/* Locally served Archivo; license: assets/fonts/OFL.txt. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   TRIPLE DESIGN STUDIO
   Structural modernism. One family (Archivo), two grounds,
   one accent. The grid stays visible. Native scroll only —
   the page pins, it never hijacks.
   ============================================================ */

/* ---- 1. Tokens -------------------------------------------- */

:root {
  --font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --t-xl:      clamp(3.25rem, 9vw, 8.5rem);
  --t-display: clamp(2.25rem, 5vw, 4.25rem);
  --t-head:    clamp(1.375rem, 2.4vw, 2rem);
  --t-body-l:  clamp(1.0625rem, 1.5vw, 1.25rem);
  --t-body:    1.0625rem;   /* 17px */
  --t-cap:     0.875rem;    /* 14px */
  --t-eyebrow: 0.8125rem;   /* 13px — the hard floor */

  --gut:   clamp(1.5rem, 5vw, 6rem);
  --sect:  clamp(5rem, 11vh, 10rem);
  --maxw:  1440px;
  --nav-h: max(60px, 3.75rem);
  /* Permanent dark chrome for the hero and mobile navigation sheet. */
  --chrome-dark: #060908;
  --chrome-on-dark: #FFFFFF;
  --dialog-scrim: rgba(6, 9, 8, 0.64);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Semantic ground tokens. Every component reads these, so a
   section works on either ground without knowing which it is. */

:root,
.ground-light {
  --bg:          #FFFFFF;
  --fg:          #0A0C0B;   /* 19.62:1 */
  --fg-2:        #4A5451;   /*  7.84:1 */
  --fg-3:        #6E7774;   /*  4.61:1 */
  --rule:        #DCDEDC;
  --rule-strong: #929592;   /*  3.04:1 — control edges, WCAG 1.4.11 */
  --accent:      #169485;   /* marks, rules, display sizes only */
  --accent-text: #0F6F63;   /*  6.04:1 — the accent when it carries words */
  --error:       #BD564B;   /*  4.55:1 */
  --nav-veil:    rgba(255, 255, 255, 0.72);
}

.ground-dark {
  --bg:          #060908;
  --fg:          #FFFFFF;   /* 19.99:1 */
  --fg-2:        #A8B0AD;   /*  9.02:1 */
  --fg-3:        #7C8582;   /*  5.27:1 */
  --rule:        #232927;
  --rule-strong: #585E5C;   /*  3.03:1 — control edges, WCAG 1.4.11 */
  --accent:      #2ECCB8;   /*  9.94:1 */
  --accent-text: #2ECCB8;
  --error:       #E4685A;   /*  6.12:1 */
  --nav-veil:    rgba(6, 9, 8, 0.72);
}


/* Dark theme. The page is built on two grounds, so a dark theme that
   flattened both into one colour would delete the section-to-section
   step that carries the whole layout. Instead each ground keeps its
   role and becomes a tier of dark: the light ground lifts to #0E1211,
   the dark ground stays at #060908. Light sections are still the
   lighter ones — the rhythm survives, an octave down. */

:root[data-theme="dark"],
[data-theme="dark"] .ground-light {
  --bg:          #0E1211;
  --fg:          #FFFFFF;   /* 18.05:1 */
  --fg-2:        #A8B0AD;   /*  8.15:1 */
  --fg-3:        #7C8582;   /*  4.76:1 */
  --rule:        #262D2B;
  --rule-strong: #5B625F;   /*  3.01:1 — control edges, WCAG 1.4.11 */
  --accent:      #2ECCB8;   /*  8.98:1 */
  --accent-text: #2ECCB8;
  --error:       #E4685A;   /*  5.77:1 */
  --nav-veil:    rgba(14, 18, 17, 0.72);
}

/* Tells the browser which way its own furniture goes — native
   scrollbars, form controls, the overscroll gutter. Without it the
   scrollbar stays light against a dark page. */
:root                    { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 2rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

[hidden] { display: none !important; }
main:focus, section[tabindex="-1"]:focus { outline: none; }
.contact-grid > *, .case-body > *, .project-inner > *, .footer-cols > * { min-width: 0; }

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.05; }
p  { margin: 0 0 1.15em; }

::selection { background: #0F6F63; color: #fff; }                 /*  6.04:1 */
[data-theme="dark"] ::selection { background: #2ECCB8; color: #0A0C0B; }  /*  9.76:1 */

/* ---- 2. Utilities ----------------------------------------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 0; left: -9999px; z-index: 300;
  background: #0A0C0B; color: #fff;
  padding: 1rem 1.5rem;
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap    { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { background: var(--bg); color: var(--fg); padding-block: var(--sect); }

.eyebrow {
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3); margin: 0 0 1.75rem;
}
.eyebrow .num { color: var(--accent-text); }

.display    { font-size: var(--t-display); letter-spacing: -0.02em; }
.display-xl { font-size: var(--t-xl); letter-spacing: -0.035em; line-height: 0.94; }
.head       { font-size: var(--t-head); letter-spacing: -0.01em; }
.lede       { font-size: var(--t-body-l); color: var(--fg-2); max-width: 36ch; }
.cap        { font-size: var(--t-cap); font-weight: 500; letter-spacing: 0.06em; color: var(--fg-3); margin: 0; }
.dim        { color: var(--fg-3); }
.text-link { text-decoration: underline; text-underline-offset: 0.2em; }
.reading-page { max-width: 56rem; }
.reading-copy { max-width: 68ch; margin-top: 3rem; }
.reading-copy h2 { margin: 2.5rem 0 1rem; font-size: var(--t-head); }
.reading-copy p { color: var(--fg-2); }
.reading-copy a { text-decoration: underline; text-underline-offset: 0.2em; color: var(--accent-text); }
.page-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.page-actions .btn { padding-block: 0.75rem; }

/* a visible hairline — the grid is part of the identity */
.rule { height: 1px; border: 0; background: var(--rule); margin: 0; }
.rule--section { margin-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 6vw, 5rem); }

/* ---- 3. Buttons ------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 52px; padding: 0 2rem;
  font: inherit; font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg); background: transparent;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid:hover { background: transparent; color: var(--fg); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px;
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg);
}
.arrow-link svg { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ---- 4. Nav ----------------------------------------------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 200;
  min-height: var(--nav-h); color: #fff;
  transition: color .4s var(--ease);
}
.nav::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(6, 9, 8, 0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid transparent;
  opacity: 0; transition: opacity .4s var(--ease);
}
.nav.is-veiled::before { opacity: 1; border-bottom-color: #232927; }

.nav.is-light { color: #0A0C0B; }
.nav.is-light::before { background: rgba(255, 255, 255, 0.72); }
.nav.is-light.is-veiled::before { border-bottom-color: #DCDEDC; }

.nav-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gut); min-height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.5rem);
}

/* Brand anchors left; the nav, theme switch and hamburger travel as
   one cluster on the right. */
.nav-inner > nav { margin-left: auto; min-width: 0; }
.nav:not(.menu-ready) { position: relative; background: var(--bg); color: var(--fg); }
.nav:not(.menu-ready) .nav-brand img { filter: none; }
[data-theme="dark"] .nav:not(.menu-ready) .nav-brand img { filter: brightness(0) invert(1); }

.nav-brand { display: inline-flex; align-items: center; min-height: 44px; }
/* The logo is dark charcoal lettering with a teal mark. On a light ground it
   is used exactly as drawn. On a dark ground it is knocked out to solid
   white — never inverted, which turned the teal mark pink. */
.nav-brand img { height: 20px; width: auto; filter: brightness(0) invert(1); transition: filter .4s var(--ease); }
.nav.is-light .nav-brand img { filter: none; }

.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.25rem;
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  position: relative; opacity: 0.82; transition: opacity .3s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current] { opacity: 1; }
.nav-list a::after {
  content: ''; position: absolute; left: 0.25rem; right: 0.25rem; bottom: 12px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; margin-right: -10px;
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 12px; width: 20px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Theme switch. Sits in the right cluster with the hamburger and
   borrows the nav's own colour, so it flips with the ground like
   everything else in the bar. */
.nav-theme {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; background: none; color: inherit; cursor: pointer;
  opacity: 0.82; transition: opacity .3s var(--ease);
}
.nav-theme.is-ready { display: inline-flex; flex-shrink: 0; }
.nav-theme:hover { opacity: 1; }
.nav-theme svg { width: 19px; height: 19px; }

/* Show the theme you would be switching TO, not the one you are in. */
.nav-theme .icon-sun { display: none; }
[data-theme="dark"] .nav-theme .icon-sun  { display: block; }
[data-theme="dark"] .nav-theme .icon-moon { display: none; }

/* In dark theme every ground is dark, so the nav's ground detection
   has nothing light left to react to. The class still lands — the
   observer runs regardless — so it is answered here instead of being
   turned off in JS, which keeps one source of truth for the ground. */
[data-theme="dark"] .nav.is-light { color: #fff; }
[data-theme="dark"] .nav.is-light::before { background: rgba(6, 9, 8, 0.72); }
[data-theme="dark"] .nav.is-light.is-veiled::before { border-bottom-color: #232927; }
[data-theme="dark"] .nav.is-light .nav-brand img { filter: brightness(0) invert(1); }


/* The mobile menu drops an opaque dark sheet behind a nav that may
   still be in its light state, which left the brand and the buttons
   near-black on near-black. While that sheet is up the bar is dark,
   whatever the section under it says. */
body.nav-open .nav.is-light { color: #fff; }
body.nav-open .nav.is-light::before { background: rgba(6, 9, 8, 0.72); }
body.nav-open .nav.is-light .nav-brand img { filter: brightness(0) invert(1); }

/* Same for the progress bar reading the foot of the window. */
[data-theme="dark"] .scroll-progress.is-light   { background: rgba(255, 255, 255, 0.14); }
[data-theme="dark"] .scroll-progress.is-light i { background: #2ECCB8; }

/* ---- 4b. Scroll progress ---------------------------------- */

/* A hairline on the foot of the window that fills left to right with
   how far down the document the reader is. Track plus fill, the same
   two-part build as .hero-progress, so the page only ever speaks in
   one progress vocabulary. Under the nav's 200 so the mobile menu
   covers it, over the page's own 1-3. */
.scroll-progress {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  height: 2px; pointer-events: none;
  background: rgba(255, 255, 255, 0.14);
  transition: opacity .3s var(--ease);
}
.scroll-progress i {
  display: block; height: 100%; width: 100%;
  background: #2ECCB8;
  transform: scaleX(0); transform-origin: left;
}

/* Nothing to report on a page that does not scroll. */
.scroll-progress.is-off { opacity: 0; }

/* The bar reads whichever ground is under the foot of the window, the
   same way the nav reads whichever is under its baseline. */
.scroll-progress.is-light          { background: rgba(10, 12, 11, 0.12); }
.scroll-progress.is-light i        { background: #169485; }

/* Static launch introduction; project imagery is added in a later release. */
.launch-hero {
  min-height: 100vh; min-height: 100svh;
  padding-block: calc(var(--nav-h) + clamp(4rem, 10vh, 8rem)) 3rem;
  display: flex; align-items: center;
  background: var(--bg); color: var(--fg);
}
.launch-hero > .wrap { width: 100%; }
.launch-hero .eyebrow { color: var(--accent-text); }
.launch-hero-content {
  display: grid; grid-template-columns: 1.15fr minmax(0, 0.85fr);
  align-items: end; gap: clamp(2.5rem, 6vw, 6rem);
}
.launch-hero-title { font-size: var(--t-xl); letter-spacing: -0.035em; line-height: 0.94; }
.launch-hero-copy > p { max-width: 36ch; color: var(--fg-2); }
.launch-hero-copy > .lede { margin: 0 0 1.5rem; color: var(--fg); }
.launch-hero-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem;
  margin-top: clamp(4rem, 10vh, 8rem); padding-top: 1.5rem;
  border-top: 1px solid var(--rule); color: var(--fg-3);
  font-size: var(--t-cap);
}
.launch-hero-meta p { margin: 0; color: inherit; font-size: inherit; }
.studio-details { margin-top: clamp(3rem, 6vw, 5rem); }
@media (max-width: 860px) {
  .launch-hero-content { grid-template-columns: 1fr; }
  .launch-hero { padding-top: calc(var(--nav-h) + 3.5rem); }
}

/* ---- 5. Hero: pinned stage + scrubbed sequence ------------- */

.hero { background: #060908; }
.hero-track { position: relative; }
html.hero-motion .hero-track { height: 240svh; }

.hero-stage {
  position: sticky; top: 0;
  min-height: 100vh; min-height: 100svh; overflow: hidden;
  padding-block: calc(var(--nav-h) + 3rem) 8rem;
  display: grid; place-items: center;
}

.hero-canvas, .hero-still {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-canvas { visibility: hidden; }
.hero.has-sequence .hero-canvas { visibility: visible; }
/* Retain the still beneath the canvas, including its accessible description. */

.hero-stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 55%, transparent 22%, rgba(6, 9, 8, 0.62) 100%);
}

.hero-type {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw);
  padding-inline: var(--gut); color: #fff;
}
.hero-type .eyebrow { color: #2ECCB8; }
.hero-title { font-size: var(--t-xl); letter-spacing: -0.035em; line-height: 0.94; }
.hero-title span { display: block; }
.hero-title .faint { color: rgba(255, 255, 255, 0.40); }
.hero-sub { margin: 2rem 0 0; max-width: 32ch; color: rgba(255, 255, 255, 0.74); font-size: var(--t-body-l); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.service-link { margin-top: 2rem; }
.triple-item .head { margin-bottom: 0.75rem; }

.hero-meta {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 2rem;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-meta p { margin: 0; }

.hero-progress { flex: none; width: min(180px, 34vw); height: 2px; background: rgba(255, 255, 255, 0.18); }
.hero:not(.has-sequence) .hero-progress { visibility: hidden; }
.hero-progress i { display: block; height: 100%; width: 0; background: #2ECCB8; }

.seq-loading {
  display: none;
  position: absolute; z-index: 3; left: 50%; bottom: 5.5rem; transform: translateX(-50%);
  width: 120px; height: 1px; background: rgba(255, 255, 255, 0.2);
}
.hero.sequence-loading .seq-loading { display: block; }
.seq-loading i { display: block; height: 100%; width: 0; background: #fff; transition: width .2s linear; }
.seq-loading.is-done { opacity: 0; transition: opacity .5s var(--ease); }

/* ---- 6. Statement ----------------------------------------- */

.statement .display { max-width: 20ch; }

.triple {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: clamp(3rem, 7vw, 6rem);
}
.triple-item { background: var(--bg); padding: clamp(1.75rem, 3vw, 2.75rem); }
.triple-item .num {
  display: block; font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.12em; color: var(--accent-text); margin-bottom: 1.25rem;
}
.triple-item h3 { font-size: var(--t-head); margin-bottom: 0.75rem; }
.triple-item p  { color: var(--fg-2); font-size: 1rem; line-height: 1.7; margin: 0; }

/* ---- 7. Work ---------------------------------------------- */

.work-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem;
}

.project { border-top: 1px solid var(--rule); }
.project-inner {
  display: grid; grid-template-columns: 1fr minmax(0, 60%);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.project-info  { position: sticky; top: calc(var(--nav-h) + 3rem); }
.project-index {
  display: block; margin-bottom: 1.25rem;
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.12em; color: var(--accent-text);
}
.project-title { font-size: var(--t-display); letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.project-facts { list-style: none; margin: 0 0 2rem; padding: 0; }
.project-facts li {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding: 0.7rem 0; border-top: 1px solid var(--rule); font-size: var(--t-cap);
}
.project-facts .k {
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
}

.project-media { overflow: hidden; background: var(--rule); }
.project-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* CGI is labelled honestly, never passed off as built photography */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3);
}
.badge::before { content: ''; width: 6px; height: 6px; background: var(--accent); flex: none; }

/* ---- 8. Method -------------------------------------------- */

.method-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.method-step { background: var(--bg); padding: clamp(1.75rem, 3vw, 2.5rem); }
.method-step .num {
  display: block; margin-bottom: clamp(2.5rem, 6vw, 4rem);
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.12em; color: var(--accent-text);
}
.method-step h3 { font-size: var(--t-head); margin-bottom: 0.75rem; }
.method-step p  { color: var(--fg-2); font-size: 1rem; line-height: 1.7; margin: 0; }

/* ---- 9. Figures ------------------------------------------- */
/* Markup removed pending real numbers — the placeholders it carried were
   not facts. Rules kept so the section can be restored verbatim. */

.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.figure strong {
  display: block; margin-bottom: 1rem;
  font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1;
}
.figure span {
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
}

/* ---- 10. Recognition -------------------------------------- */
/* Markup removed pending real awards and memberships. Rules kept so the
   section can be restored verbatim. */

.recog-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.recog-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 2rem;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0; border-bottom: 1px solid var(--rule);
  font-size: var(--t-head); letter-spacing: -0.01em;
}
.recog-list .yr {
  flex: none; font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.12em; color: var(--fg-3);
}

/* ---- 11. Contact ------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); }
.contact-intro { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.case-hero .contact-title {
  max-width: none; margin-bottom: 1.5rem;
  font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.05;
}
.contact-intro .lede { max-width: 52ch; }

.contact-details { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.contact-details li {
  display: grid; grid-template-columns: 8rem 1fr; gap: 1rem;
  padding: 1.1rem 0; border-top: 1px solid var(--rule); font-size: var(--t-body);
}
.contact-details li:last-child { border-bottom: 1px solid var(--rule); }
.contact-details .k {
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
}
.contact-details a { position: relative; border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; }
.contact-details a:hover { border-color: var(--accent); color: var(--accent-text); }
/* A 44px tap target that does not drag the underline away from the text.
   The row's 1.1rem padding keeps neighbouring targets from overlapping. */
.contact-details a::after {
  content: ''; position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%); height: 44px;
}

.field { margin-bottom: 1.75rem; }
.form-hint { margin: 0.75rem 0 2rem; color: var(--fg-2); font-size: var(--t-cap); }
.field label {
  display: block; margin-bottom: 0.6rem;
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  background: transparent; color: var(--fg);
  border: 0; border-bottom: 1px solid var(--rule-strong);
  padding: 0.6rem 0; border-radius: 0;
  font: inherit; font-size: var(--t-body);
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  padding-right: 2rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 11px) 1.4rem, calc(100% - 6px) 1.4rem;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field select option { background: var(--bg); color: var(--fg); }
.btn:disabled { cursor: wait; opacity: 0.65; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: var(--error); }
.field-error {
  display: block; margin-top: 0.5rem;
  font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.1em; color: var(--error);
}

.form-note { margin: 1.25rem 0 0; min-height: 1.4rem; font-size: var(--t-cap); font-weight: 500; color: var(--fg-2); }
.form-note[data-state="error"] { color: var(--error); }

/* ---- 12. Footer ------------------------------------------- */

.footer {
  background: var(--bg); color: var(--fg);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem;
  border-top: 1px solid var(--rule);
}
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.footer h3 {
  margin-bottom: 1.5rem;
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
}
.footer address, .footer p { font-style: normal; color: var(--fg-2); font-size: var(--t-cap); line-height: 1.9; margin: 0 0 0.5rem; }
.footer a:hover { color: var(--accent-text); }
/* The contact links carry the same 44px target as .footer-links a, so all
   three columns sit on one rhythm. */
.footer p > a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-cap); color: var(--fg-2); }
/* The footer always sits on the dark ground, so the logo is knocked out to
   white here — same treatment as the nav on a dark ground, and no longer
   an inline style repeated across six files. */
.footer-logo { height: 22px; width: auto; margin-bottom: 1.5rem; filter: brightness(0) invert(1); }
/* Group attribution. Sits above the base rule at the same weight as
   the address — a fact about the practice, not a headline. */
.footer .footer-note {
  max-width: 60ch;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.footer-base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--rule);
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3);
}
.footer-base p { margin: 0; font-size: inherit; letter-spacing: inherit; color: inherit; }

/* ---- 13. Case study page ---------------------------------- */

.case-hero { padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 7rem)); }
.case-hero .display-xl { max-width: 14ch; margin-bottom: 2rem; }
.case-media { margin-block: clamp(2.5rem, 6vw, 5rem); }
.case-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--rule); }
.case-body { display: grid; grid-template-columns: 1fr minmax(0, 55%); gap: clamp(2rem, 6vw, 6rem); }
.case-body p { color: var(--fg-2); font-size: var(--t-body-l); }
.case-next { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ---- 14. Reveals ------------------------------------------ */
/* Animate on entry without hiding content while scripts load or fail. */
.reveal.is-in { animation: reveal-in .7s var(--ease) both; }
@keyframes reveal-in {
  from { opacity: 0.5; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.reveal:focus-within { animation: none; }

/* Continuous media scale runs on the compositor where supported. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .project-media img {
      animation: media-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }
  }
}
@keyframes media-rise {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* ---- 15. Responsive --------------------------------------- */

@media (max-width: 1024px) {
  .figures     { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .project-inner, .case-body { grid-template-columns: 1fr; }
  .project-info { position: static; }
}

@media (max-width: 860px) {
  .nav.menu-ready .nav-toggle { display: block; flex-shrink: 0; }
  .nav.menu-ready .nav-list {
    position: fixed; inset: 0; z-index: -1;
    overflow-y: auto; padding: calc(var(--nav-h) + 1rem) var(--gut) 2rem;
    flex-direction: column; flex-wrap: nowrap; justify-content: center; gap: 0.5rem;
    background: var(--chrome-dark); color: var(--chrome-on-dark);
    visibility: hidden; opacity: 0;
    transition: opacity .4s var(--ease), visibility .4s var(--ease);
  }
  .nav.menu-ready .nav-list.is-open { visibility: visible; opacity: 1; }
  .nav.menu-ready .nav-list a { font-size: 1.25rem; letter-spacing: 0.1em; min-height: 48px; opacity: 1; }
  .nav:not(.menu-ready) { position: relative; background: var(--bg); color: var(--fg); }
  .nav:not(.menu-ready) .nav-inner { flex-wrap: wrap; padding-block: 0.5rem; }
  .nav:not(.menu-ready) .nav-inner > nav { width: 100%; }
  .nav:not(.menu-ready) .nav-list { flex-wrap: wrap; gap: 0.25rem 1rem; }
  .nav:not(.menu-ready) .nav-brand img { filter: none; }
  [data-theme="dark"] .nav:not(.menu-ready) .nav-brand img { filter: brightness(0) invert(1); }
  html.hero-motion .hero-track { height: 180svh; }
  .nav-list a::after { display: none; }
  .nav.menu-ready .nav-list a[aria-current] {
    text-decoration: underline; text-underline-offset: 0.4em;
    text-decoration-thickness: 2px;
  }
  /* overflow alone does not hold on iOS Safari; main.js pins the body at
     its current offset and restores it on close. */
  body.nav-open { position: fixed; left: 0; right: 0; overflow: hidden; }

  .triple, .method-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .recog-list li { font-size: var(--t-body-l); }
}

@media (max-width: 560px) {
  .figures     { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .contact-details li, .project-facts li { grid-template-columns: 1fr; gap: 0.15rem; }
  .hero-meta .hero-hide-sm { display: none; }
  .hero-actions .btn { padding-inline: 1.25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* Short landscape windows and zoomed views need room for the hero copy. */
@media (max-height: 600px) {
  html.hero-motion .hero-track { height: auto; }
  .hero-stage { position: relative; }
  .hero-progress { visibility: hidden; }
  .nav.menu-ready .nav-list { justify-content: flex-start; }
}

/* Keep text, boundaries and navigation legible when users request more contrast. */
@media (prefers-contrast: more) {
  :root, .ground-light, .ground-dark,
  :root[data-theme="dark"], [data-theme="dark"] .ground-light {
    --fg-2: var(--fg);
    --fg-3: var(--fg);
    --rule: var(--fg);
    --rule-strong: var(--fg);
  }
  .nav-list a, .nav-theme { opacity: 1; }
  .hero-title .faint, .hero-sub, .hero-meta { color: var(--fg); }
  .reveal.is-in { animation: none; }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .nav::before {
    opacity: 1;
    background: var(--chrome-dark);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav.is-light::before, [data-theme="dark"] .nav.is-light::before { background: var(--bg); }
  body.nav-open .nav.is-light::before { background: var(--chrome-dark); }
}

@media (forced-colors: active) {
  .btn, .field input, .field select, .field textarea { border: 1px solid ButtonText; }
  .nav-list a[aria-current] { text-decoration: underline; }
  .hero-canvas, .hero-still, .hero-stage::after { visibility: hidden; }
  .hero-title .faint, .hero-sub, .hero-meta { color: CanvasText; }
}

/* ---- Consent preferences ---------------------------------- */

.consent-launcher {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 180;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}
.consent-launcher:hover { border-color: var(--fg); }
.consent-launcher img { display: block; width: 32px; height: auto; }
body.nav-open .consent-launcher { visibility: hidden; }
.consent-tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--t-cap)/1.4 var(--font);
  width: max-content;
  max-width: calc(100vw - 6rem);
  visibility: hidden;
}
.consent-launcher:hover .consent-tooltip,
.consent-launcher:focus-visible .consent-tooltip { visibility: visible; }
.consent-launcher.tooltip-off .consent-tooltip { visibility: hidden; }
html.consent-open { overflow: hidden; }
.consent-panel {
  width: min(52rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  max-height: calc(100svh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--t-cap)/1.75 var(--font);
  color-scheme: dark;
}
.consent-panel[open] { display: flex; flex-direction: column; }
.consent-panel::backdrop { background: var(--dialog-scrim); }
.consent-heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.65rem 1rem; }
.consent-panel h2 { margin: 0; font-size: 1.125rem; line-height: 1.4; font-weight: 600; }
.consent-panel p { margin: 0.75rem 0 1.25rem; }
.consent-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 1rem 0.5rem; scrollbar-gutter: stable; }
.consent-body > p { color: var(--fg-2); }
.consent-body a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.consent-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.5rem/1 var(--font);
  cursor: pointer;
}
.consent-category { padding-block: 0.35rem; }
.consent-category summary { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; padding-block: 0.5rem; cursor: pointer; list-style: none; font-size: 1rem; font-weight: 600; }
.consent-category summary::-webkit-details-marker { display: none; }
.consent-category summary::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-right: 1px solid var(--fg); border-bottom: 1px solid var(--fg); transform: rotate(-45deg); }
.consent-category[open] > summary::before { transform: rotate(45deg); }
.consent-category-status, .consent-required { margin-left: auto; text-align: right; font-weight: 400; font-size: var(--t-cap); }
.consent-category-status { color: var(--fg-2); }
.consent-category-body { padding-left: 1.25rem; }
.consent-category-body > p { margin: 0.15rem 0 1rem; color: var(--fg-2); }
.consent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid var(--rule); }
.consent-row > :first-child { min-width: 0; }
.consent-row h3, .consent-row strong { display: block; margin: 0; font-size: 1rem; font-weight: 500; }
.consent-row p, .consent-detail { display: block; margin: 0.35rem 0 0; color: var(--fg-2); font-size: var(--t-cap); line-height: 1.6; }
label.consent-row { cursor: pointer; }
.consent-row input { appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 44px; width: 44px; height: 26px; margin: 0.15rem 0 0; border: 1px solid var(--rule-strong); border-radius: 20px; background: var(--rule); cursor: pointer; }
.consent-row input::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--fg); }
.consent-row input:checked { background: var(--accent-text); border-color: var(--accent-text); }
.consent-row input:checked::before { transform: translateX(18px); background: var(--bg); }
.consent-required { color: var(--accent-text); }
.consent-panel .consent-note { color: var(--fg-2); font-size: var(--t-cap); }
.consent-bottom { flex: 0 0 auto; padding: 1rem; border-top: 1px solid var(--rule); background: var(--bg); }
.consent-feedback { color: var(--accent-text); }
.consent-feedback:empty { display: none; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.consent-action {
  flex: 1 1 9rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--fg);
  border-radius: 2px;
  background: var(--fg);
  color: var(--bg);
  font: 500 var(--t-cap)/1.4 var(--font);
  cursor: pointer;
}
.consent-save { flex-grow: 1.3; background: var(--bg); color: var(--fg); }
.consent-action:hover, .consent-close:hover { outline: 1px solid var(--fg); outline-offset: 2px; }
/* Leave room for the persistent control at the end of the page. */
.footer { padding-bottom: max(5rem, calc(env(safe-area-inset-bottom) + 4rem)); }
@media (max-width: 420px) {
  .consent-actions { flex-direction: column; }
  .consent-action { flex-basis: auto; }
  .consent-required { font-size: var(--t-eyebrow); }
}
/* On very short windows, scroll the whole panel so every control remains reachable. */
@media (max-height: 420px) {
  .consent-panel[open] { display: block; overflow-y: auto; }
  .consent-body { overflow: visible; }
}
@media (forced-colors: active) {
  .consent-launcher, .consent-panel, .consent-close, .consent-action, .consent-tooltip { border-color: ButtonText; }
  .consent-row input { appearance: auto; -webkit-appearance: auto; }
  .consent-row input::before { display: none; }
}

/* ---- 16. Reduced motion ----------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* the stage un-pins and the sequence collapses to a single still */
  .hero-track { height: auto !important; }
  .hero-stage { position: static; }
  .hero.has-sequence .hero-canvas { visibility: hidden; }
  .hero.sequence-loading .seq-loading { display: none; }
  .reveal.is-in { animation: none; }
}
