/*
Theme Name: HCE Premium
Theme URI: https://www.hce.ie/
Author: HCE / Nick Long
Description: Premium editable WordPress theme for HCE.
Version: 1.0.0
Requires at least: 5.6
Tested up to: 5.6
Requires PHP: 7.4
License: Proprietary
Text Domain: hce-premium
*/

:root {
  --black: #050505;
  --charcoal: #0b1110;
  --ink: #151713;
  --white: #ffffff;
  --paper: #f8f6ef;
  --stone: #ebe5d8;
  --mist: #dce4dc;
  --muted: #777b73;
  --accent: #143d2e;
  --accent-soft: #6e9a7b;
  --logo-on-dark: #78a783;
  --logo-on-light: #143d2e;
  --line: rgba(255, 255, 255, 0.18);
  --line-dark: rgba(5, 5, 5, 0.14);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 26px 80px rgba(5, 5, 5, 0.18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--charcoal);
  color: var(--white);
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(86px, 1fr) auto;
  left: 0;
  min-height: 62px;
  padding: 0 clamp(16px, 2.8vw, 42px);
  position: fixed;
  right: 0;
  top: 0;
  transition: color 220ms ease;
  z-index: 50;
}

.site-header::before {
  background: rgba(5, 5, 5, 0.22);
  backdrop-filter: blur(10px);
  content: "";
  inset: 0;
  position: absolute;
  transition: background 240ms ease, box-shadow 240ms ease;
  z-index: -1;
}

.site-header.is-scrolled::before,
.site-header.is-open::before {
  background: rgba(5, 5, 5, 0.82);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

@media (hover: hover) and (min-width: 980px) {
  .site-header:hover,
  .site-header.is-open {
    color: var(--black);
  }

  .site-header:hover::before,
  .site-header.is-open::before {
    background: rgba(255, 255, 255, 0.96);
  }

  .site-header:hover .wordmark,
  .site-header.is-open .wordmark {
    color: var(--logo-on-light);
  }

  .site-header:hover .search-link,
  .site-header.is-open .search-link {
    border-color: rgba(5, 5, 5, 0.18);
  }

  .site-header:hover .nav-toggle span,
  .site-header.is-open .nav-toggle span {
    background: var(--black);
  }
}

.brand {
  align-items: center;
  display: inline-flex;
  width: max-content;
}

.wordmark {
  color: var(--logo-on-dark);
  font-family: "Arial Narrow", "Arial Nova Condensed", Arial, Helvetica, sans-serif;
  font-size: 39px;
  font-stretch: condensed;
  font-weight: 700;
  letter-spacing: -0.095em;
  line-height: 0.72;
  text-transform: lowercase;
  transition: color 220ms ease;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 18px;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 2.2vw, 34px);
}

.site-nav-list {
  display: flex;
  gap: clamp(18px, 2.2vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.search-link {
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  height: 22px;
  justify-content: flex-end;
  padding-left: 18px;
  transition: border-color 220ms ease;
  width: 40px;
}

.search-link svg {
  fill: currentColor;
  height: 19px;
  width: 19px;
}

.nav-toggle {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  height: 34px;
  padding: 0;
  width: 28px;
}

.nav-toggle span {
  background: currentColor;
  display: block;
  height: 1.5px;
  margin: 5px 0 5px auto;
  transition: transform 320ms var(--ease), opacity 180ms ease, background 220ms ease;
  width: 28px;
}

.nav-toggle span:nth-child(2) {
  width: 21px;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-panel {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  color: var(--black);
  display: grid;
  gap: clamp(22px, 4vw, 56px);
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr);
  left: clamp(16px, 2.8vw, 42px);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 24px;
  pointer-events: none;
  position: absolute;
  right: clamp(16px, 2.8vw, 42px);
  top: calc(100% + 8px);
  transform: translateY(-10px) scaleY(0.985);
  transform-origin: top;
  transition: max-height 460ms var(--ease), opacity 220ms ease, padding 320ms ease, transform 420ms var(--ease);
}

.site-header.is-open .nav-panel {
  max-height: 460px;
  opacity: 1;
  padding: clamp(18px, 3vw, 32px);
  pointer-events: auto;
  transform: translateY(0);
}

.nav-panel-main {
  display: grid;
  gap: 6px;
}

.nav-panel-main a {
  border-bottom: 1px solid rgba(5, 5, 5, 0.12);
  font-size: clamp(24px, 3.3vw, 48px);
  font-weight: 620;
  letter-spacing: -0.026em;
  line-height: 1.04;
  opacity: 0;
  padding: 12px 0;
  transform: translateY(18px);
  transition: opacity 360ms ease, transform 520ms var(--ease);
}

.site-header.is-open .nav-panel-main a {
  opacity: 1;
  transform: translateY(0);
}

.site-header.is-open .nav-panel-main a:nth-child(1) { transition-delay: 60ms; }
.site-header.is-open .nav-panel-main a:nth-child(2) { transition-delay: 105ms; }
.site-header.is-open .nav-panel-main a:nth-child(3) { transition-delay: 150ms; }
.site-header.is-open .nav-panel-main a:nth-child(4) { transition-delay: 195ms; }

.nav-panel-proof {
  align-self: end;
  border-left: 1px solid rgba(5, 5, 5, 0.14);
  opacity: 0;
  padding-left: 28px;
  transform: translateY(14px);
  transition: opacity 420ms ease 180ms, transform 520ms var(--ease) 180ms;
}

.site-header.is-open .nav-panel-proof {
  opacity: 1;
  transform: translateY(0);
}

.nav-panel-proof p {
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 620;
  letter-spacing: -0.018em;
  line-height: 1.16;
}

.nav-panel-proof span {
  color: rgba(5, 5, 5, 0.58);
  display: block;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stage {
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.hero-bg,
.hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-bg {
  object-fit: cover;
  transform: scale(1.045) translateY(var(--parallax-y, 0px));
  transform-origin: center;
  will-change: transform;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.45) 46%, rgba(5, 5, 5, 0.08)),
    linear-gradient(0deg, rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.05) 52%, rgba(5, 5, 5, 0.34));
}

.hero-grid {
  display: grid;
  gap: clamp(26px, 4vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.34fr);
  min-height: 100svh;
  padding: clamp(92px, 13vh, 148px) clamp(16px, 2.8vw, 42px) clamp(32px, 5vh, 72px);
  position: relative;
  z-index: 2;
}

.hero-title-block,
.hero-copy {
  align-self: end;
}

.eyebrow,
.section-label,
.project-type {
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.eyebrow.light,
.section-label.light {
  color: var(--logo-on-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
}

h1 span {
  display: block;
  font-size: clamp(42px, 5.1vw, 76px);
  font-weight: 620;
  letter-spacing: -0.032em;
  line-height: 0.99;
  max-width: 880px;
  opacity: 0;
  transform: translateY(24px);
}

h1 span:nth-child(1) { animation: heroLine 680ms var(--ease) 120ms forwards; }
h1 span:nth-child(2) { animation: heroLine 680ms var(--ease) 240ms forwards; }
h1 span:nth-child(3) { animation: heroLine 680ms var(--ease) 360ms forwards; }

@keyframes heroLine {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  border-left: 1px solid var(--line);
  max-width: min(430px, 100%);
  padding-left: 26px;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.66;
}

.hero-copy a,
.section-link {
  border-bottom: 1px solid currentColor;
  display: inline-block;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.1em;
  margin-top: 14px;
  padding-bottom: 6px;
  text-transform: uppercase;
}

.proof-strip {
  background: var(--paper);
  color: var(--black);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-strip div {
  border-right: 1px solid var(--line-dark);
  padding: clamp(22px, 3.5vw, 46px) clamp(16px, 2.8vw, 42px);
}

.proof-strip strong {
  display: block;
  font-size: clamp(25px, 2.8vw, 40px);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1;
}

.proof-strip span {
  color: rgba(5, 5, 5, 0.58);
  display: block;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  margin-top: 16px;
  text-transform: uppercase;
}

.section {
  padding: clamp(88px, 11vw, 172px) clamp(16px, 2.8vw, 42px);
}

.statement {
  background: var(--charcoal);
  color: var(--white);
}

.statement h2,
.section-intro h2,
.credentials h2,
.contact h2 {
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 620;
  letter-spacing: -0.028em;
  line-height: 1.07;
  margin-bottom: 34px;
  max-width: 1060px;
}

.statement p:not(.section-label),
.editorial-panel p,
.expertise-grid p,
.credential-list p,
.contact-grid p,
.case-copy {
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  line-height: 1.68;
  max-width: 720px;
}

.editorial-panel {
  background: var(--stone);
  color: var(--black);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  min-height: 72svh;
}

.editorial-panel.reverse {
  grid-template-columns: minmax(330px, 0.86fr) minmax(0, 1.14fr);
}

.editorial-panel.reverse figure {
  order: 2;
}

.editorial-panel figure {
  margin: 0;
  overflow: hidden;
}

.editorial-panel img {
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  transform: scale(1.045) translateY(var(--parallax-y, 0px));
  transform-origin: center;
  will-change: transform;
  width: 100%;
}

.editorial-panel > div {
  align-self: center;
  padding: clamp(44px, 7vw, 118px);
}

.editorial-panel h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 620;
  letter-spacing: -0.028em;
  line-height: 1.07;
}

.editorial-panel p {
  color: rgba(5, 5, 5, 0.68);
}

.work {
  background: var(--paper);
  color: var(--black);
}

.section-intro {
  margin-bottom: clamp(40px, 6vw, 76px);
}

.feature-work {
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: clamp(28px, 5vw, 80px);
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  overflow: hidden;
  padding-top: 24px;
}

.feature-work img {
  aspect-ratio: 1.62;
  border-radius: var(--radius-lg);
  object-fit: cover;
  transform: scale(1.045) translateY(var(--parallax-y, 0px));
  transform-origin: center;
  will-change: transform;
  width: 100%;
}

.feature-work div {
  align-self: end;
}

.feature-work h3,
.portfolio-set h2 {
  font-size: clamp(29px, 3.2vw, 46px);
  font-weight: 620;
  letter-spacing: -0.028em;
  line-height: 1.08;
}

.feature-work dl {
  border-top: 1px solid var(--line-dark);
  margin: 34px 0 0;
}

.feature-work dl div {
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: 92px 1fr;
  padding: 14px 0;
}

.feature-work dt {
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-work dd,
.case-copy {
  color: rgba(5, 5, 5, 0.64);
  margin: 0;
}

.portfolio-set {
  display: grid;
  gap: clamp(22px, 4vw, 48px);
  margin-top: clamp(70px, 9vw, 132px);
}

.portfolio-set article {
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: clamp(22px, 4vw, 60px);
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1fr);
  padding-top: 24px;
}

.portfolio-set article:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.76fr);
}

.portfolio-set article:nth-child(even) img {
  order: 2;
}

.portfolio-set img {
  aspect-ratio: 1.38;
  border-radius: var(--radius-lg);
  height: 100%;
  object-fit: cover;
  transform: scale(1.045) translateY(var(--parallax-y, 0px));
  transform-origin: center;
  width: 100%;
}

.portfolio-set span {
  color: var(--accent);
  display: block;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.1em;
  margin-bottom: 26px;
}

.portfolio-set p {
  color: rgba(5, 5, 5, 0.6);
}

.fred-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(70px, 8vw, 116px);
}

.fred-gallery figure {
  background: var(--black);
  border-radius: var(--radius);
  margin: 0;
  min-height: 270px;
  overflow: hidden;
  position: relative;
}

.fred-gallery figure:nth-child(1),
.fred-gallery figure:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
}

.fred-gallery img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.045) translateY(var(--parallax-y, 0px));
  transform-origin: center;
  transition: transform 900ms var(--ease);
  will-change: transform;
  width: 100%;
}

.fred-gallery figure:hover img {
  transform: scale(1.075) translateY(var(--parallax-y, 0px));
}

.fred-gallery figcaption {
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.72), transparent);
  bottom: 0;
  color: var(--white);
  font-size: 10px;
  font-weight: 760;
  left: 0;
  letter-spacing: 0.1em;
  padding: 42px 16px 14px;
  position: absolute;
  right: 0;
  text-transform: uppercase;
}

.expertise {
  background: var(--charcoal);
}

.expertise-grid {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.expertise-grid article {
  border-right: 1px solid var(--line);
  min-height: 430px;
  padding: 34px 28px 34px 0;
}

.expertise-grid span {
  color: var(--logo-on-dark);
  display: block;
  font-size: 12px;
  font-weight: 760;
  margin-bottom: 78px;
}

.expertise-grid h3 {
  font-size: clamp(23px, 2.3vw, 33px);
  font-weight: 620;
  letter-spacing: -0.022em;
  line-height: 1.12;
}

.testimonial {
  background: #101820;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
}

blockquote {
  align-self: center;
  margin: 0;
  padding: clamp(46px, 8vw, 120px) clamp(20px, 5vw, 88px);
}

blockquote p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.35vw, 50px);
  letter-spacing: -0.018em;
  line-height: 1.14;
}

cite {
  color: rgba(255, 255, 255, 0.56);
  font-style: normal;
}

.testimonial img {
  height: 100%;
  min-height: 650px;
  object-fit: cover;
  transform: scale(1.045) translateY(var(--parallax-y, 0px));
  transform-origin: center;
  will-change: transform;
  width: 100%;
}

.credentials {
  background: var(--paper);
  color: var(--black);
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.credential-list {
  border-top: 1px solid var(--line-dark);
}

.credential-list div {
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  gap: 28px;
  grid-template-columns: 92px 1fr;
  padding: 24px 0;
}

.credential-list span {
  color: var(--accent);
  font-weight: 760;
}

.credential-list p {
  color: rgba(5, 5, 5, 0.66);
  margin: 0;
}

.contact {
  background: var(--accent);
  color: var(--white);
  padding: clamp(84px, 10vw, 158px) clamp(16px, 2.8vw, 42px);
}

.contact .section-label {
  color: rgba(255, 255, 255, 0.62);
}

.contact-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
}

.contact-grid a,
.contact-grid p {
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: clamp(19px, 2vw, 30px);
  font-weight: 620;
  line-height: 1.13;
  margin: 0;
  min-height: 140px;
  padding: 22px 22px 22px 0;
}

.contact-grid p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.page-hero {
  background: var(--paper);
  color: var(--black);
  min-height: 72svh;
  overflow: hidden;
  padding: clamp(122px, 17vh, 196px) clamp(16px, 2.8vw, 42px) clamp(64px, 8vw, 112px);
  position: relative;
}

.page-hero.dark {
  background: var(--black);
  color: var(--white);
}

.page-hero.dark::after {
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0.34) 55%, rgba(5, 5, 5, 0.12));
  content: "";
  inset: 0;
  position: absolute;
}

.page-hero-bg {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transform: scale(1.045) translateY(var(--parallax-y, 0px));
  transform-origin: center;
  width: 100%;
  will-change: transform;
}

.page-hero > div {
  max-width: 930px;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(36px, 4.5vw, 66px);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.contact-intro h1 {
  font-size: clamp(34px, 3.7vw, 54px);
  font-weight: 620;
  letter-spacing: -0.026em;
  line-height: 1.08;
}

.page-hero p:last-child {
  color: currentColor;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.5;
  max-width: 690px;
  opacity: 0.72;
}

.contact-page {
  background:
    linear-gradient(90deg, rgba(20, 61, 46, 0.96), rgba(20, 61, 46, 0.9)),
    url("assets/from-fred/site/kingston-road-galway-1.jpg") center / cover;
  color: var(--white);
  display: grid;
  gap: clamp(44px, 6vw, 96px);
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 0.78fr);
  min-height: 100svh;
  padding: clamp(122px, 17vh, 196px) clamp(16px, 2.8vw, 42px) clamp(64px, 8vw, 112px);
}

.contact-intro h1 {
  max-width: 720px;
}

.contact-details {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  gap: 16px;
  margin-top: clamp(36px, 6vw, 72px);
  max-width: 760px;
  padding-top: 24px;
}

.contact-details a {
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 620;
  letter-spacing: -0.022em;
}

.contact-details p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.contact-form {
  align-self: start;
  background: rgba(248, 246, 239, 0.98);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  color: var(--black);
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 42px);
}

.field-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.contact-form label {
  color: rgba(5, 5, 5, 0.62);
  display: grid;
  font-size: 11px;
  font-weight: 760;
  gap: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(5, 5, 5, 0.14);
  border-radius: var(--radius);
  color: var(--black);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0;
  outline: none;
  padding: 13px 14px;
  text-transform: none;
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.hp-field {
  left: -9999px;
  position: absolute;
}

.form-note,
.form-status {
  color: rgba(5, 5, 5, 0.56);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.form-submit {
  background: var(--black);
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.1em;
  padding: 16px 18px;
  text-transform: uppercase;
}

.site-footer {
  align-items: center;
  background: var(--black);
  color: rgba(255, 255, 255, 0.6);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(90px, 0.35fr) 1fr auto;
  padding: 26px clamp(16px, 2.8vw, 42px);
}

.site-footer p {
  margin: 0;
}

.site-footer > a:not(.brand) {
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1050px) {
  .hero-grid,
  .editorial-panel,
  .editorial-panel.reverse,
  .feature-work,
  .testimonial,
  .contact-page,
  .credentials,
  .portfolio-set article,
  .portfolio-set article:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .editorial-panel.reverse figure,
  .portfolio-set article:nth-child(even) img {
    order: initial;
  }

  .hero-copy {
    align-self: start;
    border-left: 0;
    padding-left: 0;
  }

  .expertise-grid,
  .contact-grid,
  .fred-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 62px;
  }

  .site-nav {
    display: none;
  }

  .search-link {
    border-left: 0;
    padding-left: 0;
    width: 28px;
  }

  .nav-panel {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    gap: 24px;
    grid-template-columns: 1fr;
    left: 0;
    right: 0;
    top: 100%;
  }

  .site-header.is-open .nav-panel {
    padding: 18px 16px 24px;
  }

  .nav-panel-proof {
    border-left: 0;
    border-top: 1px solid rgba(5, 5, 5, 0.14);
    padding-left: 0;
    padding-top: 18px;
  }

  .hero-grid {
    padding-top: 96px;
  }

  h1 span {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.02;
  }

  .proof-strip,
  .expertise-grid,
  .contact-grid,
  .fred-gallery,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .statement h2,
  .section-intro h2,
  .credentials h2,
  .contact h2,
  .page-hero h1,
  .contact-intro h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .editorial-panel img,
  .testimonial img {
    min-height: 360px;
  }

  .editorial-panel > div {
    padding: 42px 16px 58px;
  }

  .fred-gallery figure,
  .fred-gallery figure:nth-child(1),
  .fred-gallery figure:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }

  .expertise-grid article {
    min-height: auto;
    padding-right: 0;
  }

  .expertise-grid span {
    margin-bottom: 40px;
  }

  .contact-grid a,
  .contact-grid p {
    border-right: 0;
    min-height: auto;
  }

  .site-footer {
    align-items: start;
  }
}
