/* ============================================================
   ASYMPTOTE MEDIA — design system
   Palette: Eucalyptus Green #5F8575 (dominant) · White · Black
   Type:    Bebas Neue (display) · Montserrat (body / headings)
   ============================================================ */

:root {
  /* === BRAND TOKENS — single source of truth ===================== */
  --color-primary: #5F8575;   /* Eucalyptus Green — DOMINANT surface/background (brand spec) */
  --color-white:   #FFFFFF;
  --color-black:   #000000;

  /* Type tokens (brand: Bebas Neue display · Montserrat headings + body) */
  --font-display: "Bebas Neue", "Montserrat", sans-serif;  /* big statement titles only */
  --font-heading: "Montserrat", system-ui, sans-serif;     /* body/sub-headings — used at weight 700 */
  --font-body:    "Montserrat", system-ui, sans-serif;     /* body copy — weight 400 */

  /* Brand green alias + DERIVED shades (each kept only where doing real work) */
  --green:       var(--color-primary);  /* alias: all accents track the brand color */
  --green-bright:#6E9784;   /* lighter tint — link/eyebrow accents on green (legibility) */
  --green-700:   #4A685B;   /* darker tint — button & chip hover/active feedback */
  --green-deep:  #3F5A4E;   /* darker tint — footer/drawer grounding + card hover */
  --green-900:   #26362F;   /* deepest tint — scrims/gradients OVER video & imagery (legibility) */
  --ink:         #141C18;   /* near-black green — dark TEXT on light + media scrims (not a flat fill) */
  --ink-900:     #0C110E;   /* near-black — hero video backdrop / sticky-nav translucency */
  --black:       #000000;

  /* Light / mist surfaces (white-family secondary) */
  --paper:      #F4F6F4;   /* off-white page */
  --mist-100:   #E9EEEB;
  --mist-200:   #DCE5E0;
  --sage-300:   #B3C5BC;

  --white:      #FFFFFF;

  /* Semantic surfaces (layering: base -> elevated -> floating) */
  --surface-base:   var(--green);
  --surface-deep:   var(--green-900);
  --surface-ink:    var(--ink);

  /* Text */
  --text-on-dark:   #F4F6F4;
  --text-on-dark-dim: rgba(244,246,244,0.86); /* raised: dominant surface is now mid-green #5F8575 */
  --text-on-light:  var(--ink);
  --text-on-light-dim: #51625A;

  /* Tinted, layered shadows (low opacity, green-tinted) */
  --shadow-sm: 0 1px 2px rgba(12,17,14,0.18), 0 2px 6px rgba(38,79,69,0.10);
  --shadow-md: 0 8px 18px -8px rgba(12,17,14,0.40), 0 18px 40px -20px rgba(38,79,69,0.30);
  --shadow-lg: 0 18px 40px -16px rgba(12,17,14,0.55), 0 40px 90px -40px rgba(38,79,69,0.45);
  --shadow-float: 0 30px 60px -24px rgba(12,17,14,0.65), 0 2px 0 rgba(255,255,255,0.04) inset;

  /* Spacing scale (intentional tokens) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --maxw: 1320px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --radius: 4px;
  --border-frame: rgba(255,255,255,0.55);

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------- reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-on-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 2px; }

/* --------------------------- typography -------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.7rem, 0.9vw, 0.78rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; }
.body-dim { color: var(--text-on-light-dim); }

/* ---------------------------- layout ----------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 9rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* Grain overlay (SVG noise) — adds richness/depth */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.grain > * { position: relative; z-index: 2; }

/* ============================== NAV ============================== */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-2);
  padding: clamp(1.4rem, 2.4vw, 2.1rem) clamp(1.5rem, 4vw, 3.4rem);
}
.nav--solid {
  position: sticky; top: 0;
  background: color-mix(in srgb, var(--green-deep) 92%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(244,246,244,0.12);
}
.nav__group { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.2rem); }
.nav__group--right { justify-content: flex-end; }
.nav__link {
  position: relative;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  padding: 0.4rem 0;
  transition: color 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
  opacity: 0.86;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-spring);
}
.nav__link:hover, .nav__link:focus-visible { opacity: 1; }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { opacity: 1; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__logo { display: flex; justify-content: center; align-items: center; }
.nav__logo img { height: clamp(42px, 5.2vw, 64px); width: auto; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); background: var(--white);
  padding: 0.72rem 1.25rem; border-radius: 999px;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out), background 0.4s;
  box-shadow: var(--shadow-sm);
}
.nav__cta:hover, .nav__cta:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--mist-100); }
.nav__cta:active { transform: translateY(0); }

/* Hamburger (mobile) */
.nav__burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; display: block; width: 22px; height: 1.5px; background: var(--text-on-dark);
  transition: transform 0.4s var(--ease-spring), opacity 0.3s;
}
.nav__burger span::before { position: absolute; transform: translateY(-7px); }
.nav__burger span::after { position: absolute; transform: translateY(7px); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  background: var(--green-deep);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.4rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-spring), visibility 0.45s;
}
.drawer.open { opacity: 1; visibility: visible; transform: translateY(0); }
.drawer a {
  font-family: var(--font-display); font-size: 2.4rem; letter-spacing: 0.02em;
  color: var(--text-on-dark); text-transform: uppercase;
  transition: color 0.3s, transform 0.4s var(--ease-spring);
}
.drawer a:hover { color: var(--green-bright); transform: translateX(4px); }
.drawer__close { position: absolute; top: 1.8rem; right: 1.8rem; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--text-on-dark); text-transform: uppercase; }

/* ============================== HERO ============================== */
.hero { position: relative; height: 100svh; min-height: 620px; width: 100%; overflow: hidden; background: var(--ink-900); }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Centre-weighted scrim only — keeps text legible while leaving the edges of the footage clean (no vignette). */
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(62% 52% at 50% 47%, rgba(12,17,14,0.44) 0%, rgba(12,17,14,0.22) 46%, rgba(12,17,14,0) 78%),
    linear-gradient(180deg, rgba(12,17,14,0.30) 0%, rgba(12,17,14,0) 15%);
  mix-blend-mode: normal;
}
.hero__overlay--tint { display: none; }

/* Inset white frame (Delvaux composition) */
.hero__frame {
  position: absolute; inset: clamp(14px, 1.6vw, 26px);
  border: 1.5px solid rgba(255,255,255,0.62);
  pointer-events: none; z-index: 50;
}
.hero__frame::after { /* subtle inner hairline */
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,0.10);
}

.hero__content {
  position: relative; z-index: 40; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-inline: var(--gutter);
}
.hero__headline {
  color: var(--white);
  font-size: clamp(3rem, 8.4vw, 8.2rem);
  letter-spacing: 0.015em;
  max-width: 18ch;
  text-shadow: 0 2px 50px rgba(12,17,14,0.55);
}
/* Logo as hero centrepiece (replaces the headline text) */
.hero__logo-wrap { display: flex; justify-content: center; margin: 0; }
.hero__logo {
  width: clamp(250px, 44vw, 620px); height: auto;
  filter: drop-shadow(0 2px 44px rgba(12,17,14,0.55));
}
.hero__sub {
  color: var(--white);
  margin-top: 1.6rem; max-width: 40ch;
  font-size: clamp(0.92rem, 1.4vw, 1.2rem);
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  opacity: 0.95;
}
.hero__actions { display: flex; gap: clamp(1.6rem, 4vw, 3rem); margin-top: clamp(1.8rem, 3vw, 2.6rem); flex-wrap: wrap; justify-content: center; }
.textlink {
  position: relative; color: var(--white);
  font-weight: 700; font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding-bottom: 6px;
}
.textlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--white); transform-origin: left; transition: transform 0.5s var(--ease-spring); opacity: 0.8;
}
.textlink:hover::after, .textlink:focus-visible::after { transform: scaleX(0.4); transform-origin: left; }
.textlink:hover, .textlink:focus-visible { color: var(--white); }

.hero__scroll {
  position: absolute; bottom: clamp(28px, 4vw, 48px); left: 50%; transform: translateX(-50%);
  z-index: 50; color: var(--text-on-dark); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; opacity: 0.7;
}
.hero__scroll span { display: block; width: 1px; height: 42px; background: linear-gradient(var(--white), transparent); animation: scrollpulse 2.4s var(--ease-out) infinite; }
@keyframes scrollpulse { 0% { transform: scaleY(0.2); transform-origin: top; opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); transform-origin: top; opacity: 0; } }

/* ======================= BUTTONS / CTAS ========================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1rem 1.7rem; border-radius: 999px;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out), background 0.4s, color 0.4s;
}
.btn .arrow { transition: transform 0.5s var(--ease-spring); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(5px); }
.btn--primary { background: var(--green); color: var(--white); box-shadow: var(--shadow-md); }
.btn--primary:hover, .btn--primary:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: var(--green-700); }
.btn--primary:active { transform: translateY(-1px); }
.btn--light { background: var(--white); color: var(--ink); box-shadow: var(--shadow-md); }
.btn--light:hover, .btn--light:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn--ghost { border: 1px solid currentColor; color: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); color: var(--white); transform: translateY(-3px); }
.btn--on-dark.btn--ghost { color: var(--white); }
.btn--on-dark.btn--ghost:hover { background: var(--white); color: var(--ink); }

/* ====================== SECTION PRIMITIVES ====================== */
.bg-dark { background: var(--color-primary); color: var(--text-on-dark); }
.bg-green { background: var(--color-primary); color: var(--white); }
.bg-deep { background: var(--color-primary); color: var(--text-on-dark); }
.bg-paper { background: var(--paper); color: var(--text-on-light); }
.bg-mist { background: var(--mist-100); color: var(--text-on-light); }
.bg-forest { background: var(--green-900); color: var(--text-on-dark); }

.section-head { max-width: 760px; }
.section-head .eyebrow { color: var(--green); display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.bg-dark .section-head .eyebrow, .bg-green .section-head .eyebrow, .bg-deep .section-head .eyebrow { color: rgba(244,246,244,0.92); }
.bg-green .section-head .eyebrow { color: rgba(255,255,255,0.85); }
.section-head h2 { font-size: clamp(2.4rem, 6vw, 5rem); }
.section-head h2.display { line-height: 0.95; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; display: inline-block; opacity: 0.6; }
.hero__eyebrow::before { display: none; } /* hero eyebrow: no leading line, centred */

/* Sub-line band under hero */
.subline {
  background: var(--color-primary); color: var(--text-on-dark);
  text-align: center;
}
.subline p {
  font-weight: 500; letter-spacing: 0.01em;
  font-size: clamp(1.05rem, 1.9vw, 1.45rem); line-height: 1.6; max-width: 54ch; margin-inline: auto;
  color: var(--text-on-dark); /* warm sentence-case statement on #5F8575 */
}
.subline .accent { color: inherit; } /* same colour as the rest of the line */

/* Intro split */
.intro-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 0.85fr 1.15fr; } }
.intro-grid h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
.intro-grid .lede { color: var(--text-on-light-dim); }
/* Lead + supporting paragraphs share one size so the block reads evenly */
.intro-grid .lede, .intro-grid p { font-size: 1.05rem; line-height: 1.7; }
.kicker-num { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.2em; color: var(--green); }

/* ====================== SPECIALTIES GRID ======================= */
.specialties { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(244,246,244,0.18); border: 1px solid rgba(244,246,244,0.18); }
@media (min-width: 640px) { .specialties { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .specialties { grid-template-columns: repeat(3, 1fr); } }
.specialty {
  background: var(--green-700); padding: clamp(1.8rem, 3vw, 2.8rem);
  position: relative; overflow: hidden;
  transition: background 0.5s var(--ease-out);
}
.specialty::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 0% 0%, rgba(95,133,117,0.22), transparent 55%);
  opacity: 0; transition: opacity 0.6s var(--ease-out);
}
.specialty:hover { background: var(--green-900); }
.specialty:hover::before { opacity: 1; }
.specialty__icon { width: 52px; height: 52px; color: rgba(244,246,244,0.9); margin-bottom: 1.4rem; transition: transform 0.6s var(--ease-spring), color 0.4s; }
.specialty:hover .specialty__icon { transform: translateY(-4px) scale(1.04); color: var(--white); }
.specialty__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }
.specialty h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--white); margin-bottom: 0.5rem; }
.specialty p { color: var(--text-on-dark-dim); font-size: 0.95rem; line-height: 1.65; }
.specialty__index { position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.1em; color: rgba(244,246,244,0.45); }
/* Full-width specialty card — fills an otherwise-orphaned last row */
.specialty--wide { grid-column: 1 / -1; text-align: center; }
.specialty--wide .specialty__icon { margin-inline: auto; }
.specialty--wide p { max-width: 62ch; margin-inline: auto; }
/* Contact page leads straight into the form section (no separate page-head) */
.contact-lead { padding-top: clamp(6rem, 10vw, 9rem); }

/* ========================= CTA BANNER ========================== */
.cta-banner { position: relative; overflow: hidden; text-align: center; }
.cta-banner__bg { position: absolute; inset: 0; z-index: 0; }
.cta-banner__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cta-banner__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,54,47,0.82), rgba(12,17,14,0.92)); }
.cta-banner .wrap { position: relative; z-index: 2; }
.cta-banner h2 { font-size: clamp(2.6rem, 7vw, 6.5rem); color: var(--white); }
.cta-banner p { color: var(--text-on-dark); max-width: 48ch; margin: 1.2rem auto 2.2rem; }

/* =========================== FOOTER ============================ */
.footer { background: var(--green-deep); color: var(--text-on-dark); padding-block: clamp(3.5rem, 6vw, 6rem) 2.5rem; position: relative; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.6rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__logo img { height: clamp(54px, 6vw, 74px); width: auto; margin-bottom: 1.4rem; }
.footer__tag { color: var(--text-on-dark-dim); max-width: 34ch; font-size: 0.95rem; }
.footer h4 { font-family: var(--font-heading); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage-300); margin-bottom: 1.2rem; }
.footer a.f-link { display: inline-block; color: var(--text-on-dark); padding: 0.32rem 0; font-size: 0.96rem; transition: color 0.3s, transform 0.4s var(--ease-spring); }
.footer a.f-link:hover, .footer a.f-link:focus-visible { color: var(--green-bright); transform: translateX(3px); }
.footer__socials { display: flex; gap: 0.8rem; margin-top: 0.4rem; }
.footer__socials a {
  width: 42px; height: 42px; border: 1px solid rgba(244,246,244,0.18); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text-on-dark);
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease-spring), border-color 0.4s;
}
.footer__socials a:hover, .footer__socials a:focus-visible { background: var(--green); color: var(--white); border-color: var(--green); transform: translateY(-3px); }
.footer__socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(244,246,244,0.10); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--text-on-dark-dim); font-size: 0.8rem; letter-spacing: 0.04em; }

/* ===================== SCROLL REVEAL ========================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-spring); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* =================== PAGE HEADER (inner) ====================== */
.pagehead { position: relative; padding-block: clamp(7rem, 12vw, 11rem) clamp(3rem, 6vw, 5rem); background: var(--color-primary); color: var(--text-on-dark); overflow: hidden; }
.pagehead::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 80% -10%, rgba(95,133,117,0.30), transparent 60%); }
.pagehead .wrap { position: relative; z-index: 2; }
.pagehead .crumb { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-on-dark-dim); margin-bottom: 1.4rem; }
.pagehead .crumb a:hover { color: var(--green-bright); }
.pagehead h1 { font-size: clamp(3rem, 9vw, 8rem); color: var(--white); }
.pagehead p { color: var(--text-on-dark-dim); max-width: 52ch; margin-top: 1.2rem; }

/* ========================= ABOUT ============================== */
.founders { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 980px) { .founders { grid-template-columns: repeat(2, 1fr); } }
.person { position: relative; }
.person__portrait {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--green-700), var(--green-900));
  box-shadow: var(--shadow-lg);
}
.person__portrait img { width: 100%; height: 100%; object-fit: cover; }
.person__portrait::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 45%, rgba(12,17,14,0.65)); }
.person__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.person__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.person__placeholder img { width: 46%; height: auto; opacity: 0.5; object-fit: contain; }
.person__meta { margin-top: 1.4rem; }
.person__meta h3 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: 0; text-transform: none; line-height: 1.2; color: var(--ink); }
.person__role { color: var(--green); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.74rem; margin-top: 0.5rem; }
.person__bio { margin-top: 1.1rem; color: var(--text-on-light-dim); }

.about-statement h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 22ch; }
.about-statement .signature { font-family: var(--font-display); color: var(--green); letter-spacing: 0.06em; font-size: 1.4rem; }

/* service-areas chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.chip { border: 1px solid rgba(20,28,24,0.18); border-radius: 999px; padding: 0.5rem 1.1rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--text-on-light-dim); transition: border-color 0.4s, color 0.4s, background 0.4s; }
.bg-dark .chip, .bg-deep .chip, .bg-green .chip { border-color: rgba(244,246,244,0.2); color: var(--text-on-dark-dim); }
.chip:hover { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
/* Statement copy when placed on the green background (matches the page-head) */
.bg-green .intro-grid .lede, .bg-green .intro-grid p { color: var(--text-on-dark-dim); }

/* ====================== WORK REEL / GRID ====================== */
.reel { position: relative; }
.reel__track {
  display: flex; gap: clamp(1rem, 1.6vw, 1.6rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1.4rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.reel__track::-webkit-scrollbar { height: 6px; }
.reel__track::-webkit-scrollbar-thumb { background: var(--green); border-radius: 999px; }
.reel__track::-webkit-scrollbar-track { background: rgba(20,28,24,0.08); }
.tile {
  position: relative; flex: 0 0 auto; scroll-snap-align: start; border-radius: var(--radius);
  overflow: hidden; background: var(--green-900); box-shadow: var(--shadow-md);
  transition: transform 0.6s var(--ease-spring), box-shadow 0.6s var(--ease-out);
}
.tile--portrait { width: clamp(220px, 26vw, 320px); aspect-ratio: 9/16; }
.tile--land { width: clamp(300px, 52vw, 640px); aspect-ratio: 16/9; }
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,17,14,0) 40%, rgba(12,17,14,0.78)); opacity: 0.9; transition: opacity 0.5s; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tile__meta { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; z-index: 3; color: var(--white); }
.tile__meta .t { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.15; }
.tile__meta .c { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-300); margin-top: 0.35rem; }
.tile__play { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; color: #fff; backdrop-filter: blur(4px); }
.tile__play svg { width: 13px; height: 13px; fill: currentColor; }

/* Mosaic grid variant */
.work-mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.8rem, 1.4vw, 1.4rem); }
@media (min-width: 760px) { .work-mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; } }
.work-mosaic .tile { width: 100%; height: 100%; }
.work-mosaic .tile--portrait { aspect-ratio: 9/16; }
.work-mosaic .feature { grid-column: span 2; aspect-ratio: 16/9; }
@media (min-width: 760px) { .work-mosaic .feature { grid-row: span 2; aspect-ratio: auto; } }

.reel__controls { display: flex; gap: 0.8rem; margin-top: 1.6rem; }
.reel__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(20,28,24,0.2); display: inline-flex; align-items: center; justify-content: center; transition: background 0.4s, color 0.4s, transform 0.5s var(--ease-spring), border-color 0.4s; }
.bg-dark .reel__btn, .bg-deep .reel__btn { border-color: rgba(244,246,244,0.22); color: var(--text-on-dark); }
.reel__btn:hover, .reel__btn:focus-visible { background: var(--green); color: var(--white); border-color: var(--green); transform: scale(1.06); }
.reel__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Showreels grouped by specialty */
.spec-reels { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 1.8vw, 1.8rem); }
@media (min-width: 680px) { .spec-reels { grid-template-columns: repeat(2, 1fr); } }
/* Our Work page title (no page-head; this h1 is the page's main title) */
.work-section .section-head { max-width: none; }
.work-section h1.display { font-size: clamp(3rem, 9vw, 7rem); }
.spec-reel {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--radius); border: 0; padding: 0; box-shadow: var(--shadow-md); cursor: pointer;
  color: inherit; font: inherit; text-align: left;
  background: linear-gradient(160deg, var(--green-700), var(--green-900));
  transition: transform 0.6s var(--ease-spring), box-shadow 0.6s var(--ease-out);
}
.spec-reel:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.spec-reel video, .spec-reel img { width: 100%; height: 100%; object-fit: cover; }
.spec-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,17,14,0) 38%, rgba(12,17,14,0.82)); z-index: 1; }
.spec-reel__label { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.05rem; z-index: 3; color: var(--white); }
.spec-reel__label .t { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.95rem); letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.05; }
/* Play affordance on hover */
.spec-reel__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.88); z-index: 3;
  width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,0.16);
  border: 1.5px solid rgba(255,255,255,0.82); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-spring);
}
.spec-reel:hover .spec-reel__play, .spec-reel:focus-visible .spec-reel__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.spec-reel__play svg { width: 22px; height: 22px; fill: var(--white); margin-left: 3px; }

/* ===================== VIDEO LIGHTBOX ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem); background: rgba(8,12,10,0.93); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__inner { width: 100%; max-width: 1100px; display: flex; flex-direction: column; gap: 1rem; }
.lightbox__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--white); font-size: clamp(1.5rem, 3vw, 2.4rem); }
.lightbox__stage { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.lightbox__video { display: block; width: 100%; max-height: 72vh; background: #000; }
.lightbox__strip { display: flex; gap: clamp(0.6rem, 1.2vw, 1rem); justify-content: center; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: thin; }
.lightbox__thumb { flex: 0 1 auto; width: clamp(110px, 15vw, 172px); aspect-ratio: 16/9; border-radius: 3px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.68; transition: opacity 0.3s, border-color 0.3s; background: var(--green-900); padding: 0; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: 1; }
.lightbox__thumb[aria-current="true"] { opacity: 1; border-color: var(--white); }
.lightbox__close { position: absolute; top: clamp(0.9rem, 2vw, 1.6rem); right: clamp(0.9rem, 2vw, 1.6rem); z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.4); color: var(--white); font-size: 1.05rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.3s, transform 0.4s var(--ease-spring); }
.lightbox__close:hover { background: rgba(255,255,255,0.28); transform: rotate(90deg); }
body.lightbox-open { overflow: hidden; }

/* Stories accordion — skinny tiles that widen on hover */
.stories-accordion { display: flex; flex-direction: column; gap: 0.7rem; }
.stories-accordion .tile { width: 100%; aspect-ratio: 16/9; }
@media (min-width: 760px) {
  .stories-accordion { flex-direction: row; gap: 0.6rem; height: clamp(360px, 44vw, 500px); }
  .stories-accordion .tile { flex: 1 1 0; width: auto; height: 100%; aspect-ratio: auto; min-width: 0; transition: flex-grow 0.7s var(--ease-spring); }
  .stories-accordion .tile:hover { flex-grow: 4.5; }
  .stories-accordion .tile__meta { opacity: 0; transition: opacity 0.4s var(--ease-out); }
  .stories-accordion .tile:hover .tile__meta { opacity: 1; }
}

/* ====================== PRICING / CONTACT ===================== */
.pricing { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 820px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  position: relative; background: var(--white); border: 1px solid var(--mist-200); border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem); overflow: hidden;
  transition: transform 0.6s var(--ease-spring), box-shadow 0.6s var(--ease-out), border-color 0.4s;
  box-shadow: var(--shadow-sm);
}
.price-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--green); transition: width 0.7s var(--ease-spring); }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.price-card:hover::before { width: 100%; }
.price-card .ptype { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.2; }
.price-card .pdur { color: var(--text-on-light-dim); font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.4rem; }
.price-card .pcost { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--green); letter-spacing: 0.01em; margin-top: 1.4rem; line-height: 1; }
.price-card .pcost small { font-family: var(--font-body); font-size: 0.8rem; color: var(--text-on-light-dim); letter-spacing: 0.1em; display: block; margin-top: 0.4rem; font-weight: 600; }
.price-note { color: var(--text-on-light-dim); font-size: 0.86rem; font-style: italic; margin-top: 1.6rem; }

/* contact form */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.5rem; }
.field.row2 { grid-template-columns: 1fr 1fr; gap: 1.2rem; display: grid; }
@media (max-width: 560px) { .field.row2 { grid-template-columns: 1fr; } }
.field label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--text-on-light-dim); }
/* On the green/dark contact section, labels must use readable on-green text, not the dark on-light dim colour */
.bg-dark .field label, .bg-green .field label, .bg-deep .field label,
.bg-dark .contact-info .ci .lab, .bg-green .contact-info .ci .lab, .bg-deep .contact-info .ci .lab { color: var(--text-on-dark-dim); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.96rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--mist-200); border-radius: var(--radius); padding: 0.85rem 1rem;
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(95,133,117,0.18); background: #fff;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sage-300); }
.form__status { font-size: 0.9rem; padding: 0.9rem 1rem; border-radius: var(--radius); display: none; }
.form__status.show { display: block; }
.form__status.ok { background: var(--green-deep); color: #F4F6F4; border: 1px solid rgba(244,246,244,0.35); }
.form__status.err { background: #8a2b20; color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-info { display: grid; gap: 1.6rem; align-content: start; }
.contact-info .ci { border-left: 2px solid var(--green); padding-left: 1.2rem; }
.contact-info .ci .lab { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-on-light-dim); font-weight: 700; }
.contact-info .ci a, .contact-info .ci span { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.02em; display: block; margin-top: 0.2rem; transition: color 0.3s; }
.contact-info .ci a:hover { color: var(--green); }

/* ========================= UTILITIES ========================== */
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.center { text-align: center; } .mx-auto { margin-inline: auto; }
.maxw-prose { max-width: 60ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- responsive nav ---- */
@media (max-width: 860px) {
  .nav__group { display: none; }
  .nav__burger { display: inline-flex; }
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav__group--right.always { display: flex; }
}
