/* =========================================================================
   GROUNDSWELL — design system
   -------------------------------------------------------------------------
   Order: tokens · reset · type · layout · motion · components · utilities
   Motion policy: CSS owns everything it can. JS owns only what CSS cannot
   express (one-shot reveals that must work in Firefox, counters, pointer
   affordances). Every scroll-linked effect is progressive enhancement.
   ====================================================================== */

/* ---------- fonts ------------------------------------------------------ */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-var-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
/* The serif is only ever set in italic -- it is an emphasis mark, not a
   headline face. The roman is declared anyway so an editor who writes
   upright serif copy gets the right face rather than Georgia; a declared
   @font-face costs nothing until something matches it. */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
/* Metric-matched fallback so the swap does not reflow. */
@font-face {
  font-family: "Grotesk Fallback";
  src: local("Arial"), local("Helvetica Neue");
  size-adjust: 97%; ascent-override: 96%; descent-override: 24%; line-gap-override: 0%;
}

/* ---------- tokens ----------------------------------------------------- */
:root {
  /* ground + ink. A clean, bright neutral ground (not the old sage-grey) with
     white cards lifted off it — the conventional light-corporate canvas. */
  --chalk:      #f6f8f7;
  --chalk-deep: #ffffff;
  --paper:      #f6f7f5;
  --ink:        #101413;
  --ink-soft:   #1a201e;
  --ink-lift:   #232a27;

  /* one accent, two exposures — brighter and more saturated than before */
  --pine:       #0e7d6e;   /* on chalk — 5.0:1 */
  --pine-deep:  #0a5f54;
  --mint:       #52d9bd;   /* on ink — 10.8:1 */

  /* speech */
  --slate:      #5f6663;   /* metadata on chalk — 5.4:1 */
  --slate-dim:  #9aa39f;   /* metadata on ink — 7.1:1 */

  --rule:       color-mix(in oklab, var(--ink) 12%, transparent);
  --rule-soft:  color-mix(in oklab, var(--ink) 7%, transparent);

  /* Per-chapter semantics. Sections flip these; components never hardcode. */
  --bg:         var(--chalk);
  --fg:         var(--ink);
  --fg-quiet:   var(--slate);
  --accent:     var(--pine);
  --line:       var(--rule);
  --line-soft:  var(--rule-soft);
  --field:      color-mix(in oklab, var(--ink) 4%, transparent);
  --surface:    var(--chalk-deep);

  /* corners + elevation — the conventional-professional signal: rounded
     cards lifted off the ground with soft, low-contrast shadows. */
  --radius-sm:  0.5rem;
  --radius-md:  0.875rem;
  --radius-lg:  1.375rem;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 22, .07), 0 1px 1px rgba(16, 24, 22, .05);
  --shadow-md: 0 10px 26px -10px rgba(16, 24, 22, .18), 0 3px 8px -3px rgba(16, 24, 22, .10);
  --shadow-lg: 0 26px 60px -18px rgba(16, 24, 22, .26);

  /* type */
  --sans: "Schibsted Grotesk", "Grotesk Fallback", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-display: clamp(3.1rem, 9.2vw, 8.4rem);
  --fs-h1:      clamp(2.5rem, 6.2vw, 5.4rem);
  --fs-h2:      clamp(1.95rem, 4vw, 3.4rem);
  --fs-h3:      clamp(1.3rem, 1.9vw, 1.7rem);
  --fs-h4:      clamp(1.08rem, 1.25vw, 1.2rem);
  --fs-lede:    clamp(1.1rem, 1.45vw, 1.375rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-meta:    0.75rem;

  /* space — 4px base, geometric-ish so sections feel composed not stepped */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;   --sp-11: 11rem;

  --section-y: clamp(4.5rem, 9vw, 9rem);
  --gutter:    clamp(1.25rem, 4.2vw, 3.5rem);
  --maxw:      84rem;
  --measure:   34rem;

  /* motion — three durations, two curves. Nothing else. */
  --t-ui:     260ms;
  --t-reveal: 720ms;
  --t-story:  1100ms;
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-inout: cubic-bezier(.62, .02, .28, 1);

  --header-h: 4.25rem;
  color-scheme: light;
}

@media (min-width: 48em) { :root { --header-h: 5rem; } }

/* Dark chapters. Applied per-section, not per-page. */
.chapter--ink {
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-quiet: var(--slate-dim);
  --accent: var(--mint);
  --line: color-mix(in oklab, var(--paper) 17%, transparent);
  --line-soft: color-mix(in oklab, var(--paper) 9%, transparent);
  --field: color-mix(in oklab, var(--paper) 6%, transparent);
  --surface: var(--ink-lift);
  color-scheme: dark;
}

/* ---------- reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
/* Native smooth scroll only for in-page anchors, and only if wanted.
   No scroll-hijacking library: the browser's own scrolling is the fastest
   and the only one that keeps the scrollbar honest. */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* No overflow-x here: it breaks position:sticky in some engines and
     hides real overflow bugs. Offenders are clipped at the component. */
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
/* <picture> is a wrapper with no box of its own to give. Left as a block it
   sits between an aspect-ratio container and the <img>, so `height: 100%` on
   the image resolves against an auto-height parent and the container is sized
   by the photograph's intrinsic ratio instead of the one the layout asked
   for. display:contents removes it from the box tree entirely. */
picture { display: contents; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
:where(p, li) { text-wrap: pretty; }
:where(h1, h2, h3, h4, blockquote) { text-wrap: balance; }
hr { border: 0; border-top: 1px solid var(--line); }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
/* Anchors land clear of the fixed header. */
:target, [id] { scroll-margin-top: calc(var(--header-h) + 2rem); }

/* ---------- type ------------------------------------------------------- */
.display, .h1, .h2, .h3 {
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.028em;
}
.display { font-size: var(--fs-display); line-height: 0.9; letter-spacing: -0.036em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); line-height: 0.98; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.018em; font-weight: 500; }
.h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; }

/* The serif appears in italic only, one word or phrase at a time. It is an
   emphasis mark, never a headline face. */
.em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  /* Instrument Serif runs small next to the grotesk at the same size. */
  font-size: 1.11em;
  line-height: 0.9;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.45;
  letter-spacing: -0.011em;
  max-width: 38ch;
}
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 500;
  margin-top: var(--sp-8);
}
.prose h2 + p { margin-top: var(--sp-4); }
.prose ul { display: grid; gap: var(--sp-3); }
.prose ul li {
  position: relative;
  padding-left: 1.5rem;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 0.65rem; height: 1px;
  background: var(--accent);
}
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color var(--t-ui) var(--ease);
}
.prose a:hover { color: var(--accent); }

.meta {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--fg-quiet);
  font-variant-numeric: tabular-nums;
}
.meta--accent { color: var(--accent); }
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* The serif italic is an emphasis mark, a word or a short phrase at a time.
   A forty-word quotation set in it reads as a different design. Long pulls
   take the grotesk; only short ones keep the italic. */
.pull {
  font-size: clamp(1.45rem, 2.9vw, 2.3rem);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--fg);
  max-width: 30ch;
}
.pull--serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 3.1vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.012em;
  max-width: 24ch;
}

/* ---------- layout ----------------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.wrap--wide { --maxw: 96rem; }
.wrap--narrow { --maxw: 62rem; }

.section {
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--section-y);
  position: relative;
}
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* The measure grid: a narrow metadata track and a wide content track.
   Mirrors how a media plan is actually read — labels left, argument right. */
.track {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: minmax(0, 1fr);
}
.track > .track__meta { align-self: start; }
@media (min-width: 62em) {
  .track {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: var(--sp-7);
  }
  .track--wide-meta { grid-template-columns: 20rem minmax(0, 1fr); }
  .track__meta--sticky { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
}

.grid { display: grid; gap: var(--sp-6); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
/* Explicit pairs: auto-fit would give four prose blocks a 3 + 1 orphan row. */
@media (min-width: 62em) {
  .cols-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 66rem;
    column-gap: clamp(2rem, 5vw, 4rem); row-gap: var(--sp-7); }
}
.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.section-head { display: grid; gap: var(--sp-4); }
.section-head .lede { max-width: 44ch; }

/* ---------- the swell -------------------------------------------------- */
/* Section rules are not flat. Each carries one shallow rise off a baseline —
   the studio's name, and the only shape in the design that is not a
   rectangle. The apex shifts section to section so the repeat reads as
   drawn rather than tiled. */
.swell {
  display: block;
  width: 100%;
  height: 1.5rem;
  color: var(--line);
  overflow: hidden;
}
.swell svg { width: 100%; height: 100%; display: block; }
.swell path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.swell--accent { color: var(--accent); }

/* ---------- motion primitives ------------------------------------------ */
/* One reveal system. Elements declare intent with data-reveal; reveal.js
   adds .is-in once, via IntersectionObserver, so it works everywhere
   including Firefox. Without JS the :not(.js) guard keeps content visible. */
/* IMPORTANT: never put clip-path on the observed element. Chromium computes
   an IntersectionObserver's intersection rect against the clipped area, so a
   fully collapsed clip makes the element permanently 0% visible and the
   reveal can never fire. The masked image reveal therefore clips the inner
   <picture>, and the observed wrapper stays unclipped. */
.js [data-reveal] {
  opacity: 0;
  transition:
    opacity var(--t-reveal) var(--ease),
    translate var(--t-reveal) var(--ease),
    scale var(--t-story) var(--ease-inout);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="up"]    { translate: 0 1.75rem; }
.js [data-reveal="fade"]  { translate: none; }
.js [data-reveal="line"]  { translate: 0 1.1rem; transition-duration: var(--t-story); }
.js [data-reveal="scale"] { scale: 1.04; }
.js [data-reveal].is-in { opacity: 1; translate: none; scale: 1; }

/* Masked image reveal: the wipe lives on the picture, one level in. */
.js [data-reveal="image"] :is(picture, img) {
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--t-story) var(--ease-inout);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="image"].is-in :is(picture, img) { clip-path: inset(0 0 0 0); }
/* Staggered children: one delay variable, set by the parent. */
.js [data-stagger] > * { --reveal-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; translate: none; scale: 1; transition: none; }
  .js [data-reveal="image"] :is(picture, img) { clip-path: none; transition: none; }
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Page transitions. Cross-document, CSS only, no router. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
::view-transition-old(root) { animation: vt-out 220ms var(--ease-inout) both; }
::view-transition-new(root) { animation: vt-in 380ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; translate: 0 -0.75rem; } }
@keyframes vt-in { from { opacity: 0; translate: 0 1.25rem; } }
/* The chrome stays put across navigations. */
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }

/* ---------- links, buttons, arrows ------------------------------------- */
.btn {
  --btn-fg: var(--bg);
  --btn-bg: var(--fg);
  --btn-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: -0.008em;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius-pill);
  box-shadow: var(--btn-shadow);
  transition: background var(--t-ui) var(--ease), color var(--t-ui) var(--ease),
              border-color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
  translate: var(--mx, 0) var(--my, 0);
  will-change: translate;
}
.btn:hover, .btn:focus-visible { --btn-bg: var(--accent); --btn-fg: var(--bg); --btn-shadow: var(--shadow-md); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); --btn-shadow: none; border-color: var(--line); }
.btn--ghost:hover, .btn--ghost:focus-visible {
  --btn-bg: transparent; --btn-fg: var(--accent); --btn-shadow: none; border-color: var(--accent);
}
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--bg); }
.btn--accent:hover, .btn--accent:focus-visible { --btn-bg: var(--fg); --btn-fg: var(--bg); }

/* The arrow is the site's smallest recurring gesture: it always advances
   on the same axis as the thing it belongs to. */
.arrow {
  width: 0.85em; height: 0.85em;
  flex: none;
  transition: translate var(--t-ui) var(--ease);
}
.btn:hover .arrow, .btn:focus-visible .arrow { translate: 0.25em 0; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 500;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}
.link:hover, .link:focus-visible { background-size: 100% 1px; color: var(--accent); }
.link:hover .arrow, .link:focus-visible .arrow { translate: 0.25em 0; }
.link--meta { font-family: var(--mono); font-size: var(--fs-meta);
  letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- header ----------------------------------------------------- */
.skip {
  position: absolute;
  left: var(--gutter); top: 0;
  translate: 0 -120%;
  z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.1rem;
  font-size: var(--fs-small);
  transition: translate var(--t-ui) var(--ease);
}
.skip:focus { translate: 0 0.75rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--header-fg, var(--ink));
  transition: background var(--t-ui) var(--ease), color var(--t-ui) var(--ease),
              border-color var(--t-ui) var(--ease);
  border-bottom: 1px solid transparent;
}
/* Compacts once the page has moved. Driven by a scroll-timeline where
   supported so no scroll listener runs on the main thread. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 82% was not enough over the moving client marquee — the names read
     straight through the navigation. Legibility beats the glass effect. */
  background: color-mix(in oklab, var(--chalk-deep) 95%, transparent);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity var(--t-ui) var(--ease);
  pointer-events: none;
}
@supports (backdrop-filter: blur(1px)) {
  .site-header::before { backdrop-filter: blur(14px) saturate(1.4); }
}
.site-header.is-stuck::before { opacity: 1; }
.site-header.is-hidden { translate: 0 -100%; transition: translate 380ms var(--ease-inout); }

.header__inner {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  position: relative;
  z-index: 1;
}

.wordmark {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  flex: none;
}
.wordmark__mark { width: 1.6rem; height: 0.75rem; color: var(--accent); flex: none; align-self: center; }
.wordmark__mark path { fill: none; stroke: currentColor; stroke-width: 1.5; }
.wordmark__reg { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.08em;
  color: var(--fg-quiet); translate: 0 -0.55em; }

.nav { display: none; margin-left: auto; }
@media (min-width: 62em) {
  .nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
}
.nav__link {
  font-size: var(--fs-small);
  font-weight: 450;
  letter-spacing: -0.005em;
  position: relative;
  padding-block: 0.35rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  scale: 0 1;
  transform-origin: left;
  transition: scale var(--t-ui) var(--ease);
}
.nav__link:hover::after, .nav__link:focus-visible::after { scale: 1 1; }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__link[aria-current="page"]::after { scale: 1 1; background: var(--accent); }

.header__cta { display: none; }
@media (min-width: 62em) { .header__cta { display: inline-flex; padding: 0.7rem 1.15rem; } }

.header__clock {
  display: none;
  margin-left: auto;
}
@media (min-width: 78em) {
  .header__clock { display: block; }
  .nav { margin-left: 0; }
}

/* burger — an explicit two-line mark that becomes a cross. Grid is avoided
   here: place-items centring on a 2-row grid makes the rotated cross sit
   off-axis by half a row. */
.burger {
  margin-left: auto;
  width: 2.75rem; height: 2.75rem;
  position: relative;
  flex: none;
}
@media (min-width: 62em) { .burger { display: none; } }
.burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 1.35rem; height: 1.5px;
  margin-left: -0.675rem;
  background: currentColor;
  transition: translate var(--t-ui) var(--ease), rotate var(--t-ui) var(--ease),
              opacity 120ms linear;
}
.burger span:nth-child(1) { translate: 0 -5px; }
.burger span:nth-child(2) { translate: 0 4px; }
[aria-expanded="true"].burger span:nth-child(1) { translate: 0 0; rotate: 45deg; }
[aria-expanded="true"].burger span:nth-child(2) { translate: 0 0; rotate: -45deg; }

/* ---------- mobile menu ------------------------------------------------ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--paper);
  /* The panel is a dark chapter: every token inside it flips, or the accent
     stays at its light-ground value and fails contrast on the ink. */
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-quiet: var(--slate-dim);
  --accent: var(--mint);
  --line: color-mix(in oklab, var(--paper) 17%, transparent);
  color-scheme: dark;
  padding: calc(var(--header-h) + var(--sp-6)) var(--gutter) var(--sp-7);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--sp-6);
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 420ms var(--ease-inout), visibility 0s linear 420ms;
  visibility: hidden;
}
.menu[data-open="true"] {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 460ms var(--ease-inout), visibility 0s;
}
.menu__list { display: grid; align-content: center; gap: 0.15em; }
.menu__item { overflow: hidden; }
.menu__link {
  display: block;
  font-size: clamp(2.4rem, 11vw, 4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  translate: 0 110%;
  transition: translate 520ms var(--ease), color var(--t-ui) var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
.menu[data-open="true"] .menu__link { translate: 0 0; }
.menu__link[aria-current="page"] { color: var(--mint); }
.menu__foot {
  display: grid; gap: var(--sp-4);
  border-top: 1px solid color-mix(in oklab, var(--paper) 18%, transparent);
  padding-top: var(--sp-5);
  --fg-quiet: var(--slate-dim);
  --accent: var(--mint);
}
body[data-menu="open"] { overflow: hidden; }
/* The header sits above the panel. Without this it is ink on ink and the
   close control disappears entirely. */
body[data-menu="open"] .site-header {
  color: var(--paper);
  --accent: var(--mint);
}
body[data-menu="open"] .site-header::before { opacity: 0; }

/* ---------- hero ------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero__eyebrow {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  align-items: center;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.hero__title { margin-top: clamp(1.25rem, 3vw, 2.25rem); }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; }
.js .hero__line > span {
  translate: 0 100%;
  animation: hero-line 900ms var(--ease) forwards;
  animation-delay: calc(180ms + var(--i) * 110ms);
}
@keyframes hero-line { to { translate: 0 0; } }

.hero__body {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  display: grid;
  gap: var(--sp-6);
  align-items: start;
}
@media (min-width: 62em) {
  .hero__body {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 6vw, 5rem);
  }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Spec sheet. The counterweight to the headline is information, not an
   ornament: what the studio is made of, set like a datasheet. */
.spec { display: grid; }
.spec__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: var(--sp-4);
  padding-block: 0.65rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.spec__row:last-child { border-bottom: 1px solid var(--line); }
.spec__value { font-size: var(--fs-small); letter-spacing: -0.008em; }

/* Availability. A live signal, not a badge. */
.status { display: inline-flex; align-items: center; gap: 0.6rem; }
.status__dot {
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  position: relative;
}
@media (prefers-reduced-motion: no-preference) {
  .status__dot::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: ping 2.8s var(--ease-inout) infinite;
  }
}
@keyframes ping {
  0%   { scale: 1; opacity: .55; }
  70%, 100% { scale: 3.4; opacity: 0; }
}

/* Hero band — the visual is a strip of the work, not a stock photograph
   of a team. Parallaxed off a view timeline where supported. */
.band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.2vw, 1rem);
  overflow: clip;
}
.band__cell { overflow: clip; aspect-ratio: 4 / 3; position: relative; }
@media (min-width: 48em) { .band__cell { aspect-ratio: 5 / 4; } }
/* Below 48em three equal columns give three thumbnails nobody can read.
   The band becomes a swipeable strip instead: same three frames, each of
   them actually large enough to look at, and no extra page height. */
@media (max-width: 47.99em) {
  .band {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .band::-webkit-scrollbar { display: none; }
  .band__cell { flex: none; width: 84%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
}
.band img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .band { view-timeline: --band block; }
    .band__cell img {
      animation: band-drift linear both;
      animation-timeline: --band;
      animation-range: entry 0% exit 100%;
      scale: 1.12;
    }
    .band__cell:nth-child(2) img { animation-name: band-drift-2; }
    @keyframes band-drift   { from { translate: 0 -3%; } to { translate: 0 3%; } }
    @keyframes band-drift-2 { from { translate: 0 3%; }  to { translate: 0 -3%; } }
  }
}

/* ---------- marquee ---------------------------------------------------- */
.marquee {
  --marquee-duration: 52s;
  overflow: clip;
  padding-block: var(--sp-5);
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 6rem, #000 calc(100% - 6rem), transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-right: clamp(2rem, 5vw, 4.5rem);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__group { animation: marquee var(--marquee-duration) linear infinite; }
  .marquee:hover .marquee__group,
  .marquee:focus-within .marquee__group { animation-play-state: paused; }
}
@keyframes marquee { to { translate: -100% 0; } }
.marquee__item {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 450;
  letter-spacing: -0.012em;
  white-space: nowrap;
  color: var(--fg-quiet);
  transition: color var(--t-ui) var(--ease);
}
.marquee__item:hover { color: var(--fg); }

/* ---------- service list ---------------------------------------------- */
/* An editorial list, not cards. Hovering a row lifts its image into the
   sticky pane on the right; on touch the image simply sits inline. */
.services__layout { display: grid; gap: var(--sp-6); }
@media (min-width: 68em) {
  .services__layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--sp-8); }
}
.services__pane { display: none; }
@media (min-width: 68em) {
  .services__pane {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + var(--sp-6));
    aspect-ratio: 4 / 5;
    overflow: clip;
    background: var(--field);
  }
  .services__pane img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    scale: 1.05;
    transition: opacity 420ms var(--ease), scale 700ms var(--ease);
  }
  .services__pane img.is-active { opacity: 1; scale: 1; }
}
.service-row {
  display: block;
  border-top: 1px solid var(--line);
  padding-block: clamp(1.25rem, 2.4vw, 1.85rem);
  position: relative;
  transition: color var(--t-ui) var(--ease);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row__head { display: flex; align-items: baseline; gap: var(--sp-4); }
.service-row__title {
  font-size: clamp(1.5rem, 2.9vw, 2.35rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.026em;
  transition: translate 420ms var(--ease);
}
.service-row__arrow { margin-left: auto; width: 1rem; height: 1rem; align-self: center;
  color: var(--fg-quiet); transition: translate var(--t-ui) var(--ease), color var(--t-ui) var(--ease); }
.service-row__lede { display: block; color: var(--fg-quiet); margin-top: var(--sp-3); max-width: 46ch;
  font-size: var(--fs-small); }
.service-row__foot { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-3); }
@media (hover: hover) {
  .service-row:hover .service-row__title,
  .service-row:focus-visible .service-row__title { translate: 0.6rem 0; }
  .service-row:hover .service-row__arrow,
  .service-row:focus-visible .service-row__arrow { translate: 0.35rem 0; color: var(--accent); }
  .service-row:hover, .service-row:focus-visible { color: var(--fg); }
}
.service-row__thumb { margin-top: var(--sp-4); aspect-ratio: 16 / 10; overflow: clip; }
.service-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 68em) { .service-row__thumb { display: none; } }

/* ---------- work: horizontal rail --------------------------------------
   Previously this pinned the section and panned the track from a view
   timeline. That looked right and was wrong: the pan ran over the timeline's
   `cover` range (subject height + viewport) while the sticky pin only lasts
   `subject height - viewport`, so the animation reached about 55% before the
   section released and the last three projects were never reachable.

   It is now a real horizontal scroll container at every width. Native
   scrolling means wheel, trackpad, touch, drag, arrow keys, Home/End and
   focus-scrolling all work, in every browser, with no measurement step that
   can silently disagree with the layout. Six projects take one flick instead
   of two thousand pixels of vertical scroll.
   ---------------------------------------------------------------------- */
.rail { position: relative; }
.rail__track {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  padding-inline: var(--gutter);
  padding-bottom: var(--sp-5);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__item {
  flex: none;
  width: min(82vw, 30rem);
  scroll-snap-align: start;
}
@media (min-width: 62em) { .rail__item { width: min(38vw, 32rem); } }
@media (hover: hover) { .rail__track { cursor: grab; } .rail__track.is-dragging { cursor: grabbing; } }

.rail__foot {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}
/* How far through the rail you are. Scroll-driven where supported; a static
   hairline otherwise, never the only signal that more exists. */
.rail__progress {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.rail__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  scale: 0.16 1;
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .rail__progress::after {
      animation: rail-progress linear both;
      animation-timeline: --rail-scroll;
      scale: 1 1;
      transform-origin: left;
    }
    .rail__track { scroll-timeline: --rail-scroll inline; }
    .rail { timeline-scope: --rail-scroll; }
    @keyframes rail-progress {
      from { translate: -100% 0; }
      to { translate: 0 0; }
    }
  }
}

/* ---------- project cards --------------------------------------------- */
.project {
  display: block;
  position: relative;
}
.project__media {
  display: block;
  overflow: clip;
  aspect-ratio: 4 / 3;
  background: var(--field);
  position: relative;
}
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03);
  transition: scale 900ms var(--ease), filter 600ms var(--ease);
}
@media (hover: hover) {
  .project:hover .project__media img,
  .project:focus-visible .project__media img { scale: 1.045; filter: saturate(1) contrast(1); }
}
.project__head {
  display: flex; align-items: baseline; gap: var(--sp-4);
  margin-top: var(--sp-4);
}
.project__client {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.project__arrow { margin-left: auto; width: 0.9rem; height: 0.9rem; align-self: center;
  color: var(--fg-quiet); transition: translate var(--t-ui) var(--ease), color var(--t-ui) var(--ease); }
@media (hover: hover) {
  .project:hover .project__arrow, .project:focus-visible .project__arrow {
    translate: 0.3rem 0; color: var(--accent);
  }
}
.project__title { display: block; margin-top: var(--sp-2); color: var(--fg-quiet); font-size: var(--fs-small);
  max-width: 40ch; }
.project__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-3); }
.tag {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--fg-quiet);
  background: color-mix(in oklab, var(--fg) 6%, transparent);
  border-radius: var(--radius-pill); padding: 0.3rem 0.7rem;
}

/* Editorial work index — alternating measure, not a 3-up card grid. */
.work-index { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.work-entry { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 62em) {
  .work-entry { grid-template-columns: repeat(12, 1fr); gap: var(--sp-6); }
  .work-entry__media { grid-column: 1 / span 7; }
  .work-entry__body  { grid-column: 9 / span 4; }
  .work-entry:nth-child(even) .work-entry__media { grid-column: 6 / span 7; grid-row: 1; }
  .work-entry:nth-child(even) .work-entry__body  { grid-column: 1 / span 4; grid-row: 1; }
  .work-entry:nth-child(3n) .work-entry__media { aspect-ratio: 3 / 2; }
}
.work-entry__media { overflow: clip; aspect-ratio: 4 / 3; background: var(--field); }
.work-entry__media img { width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.72) contrast(1.03); transition: scale 900ms var(--ease), filter 600ms var(--ease); }
@media (hover: hover) {
  .work-entry a:hover .work-entry__media img,
  .work-entry a:focus-visible .work-entry__media img { scale: 1.04; filter: saturate(1) contrast(1); }
}

/* ---------- results / measures ----------------------------------------- */
.measures { display: grid; gap: var(--sp-5); }
@media (min-width: 40em) { .measures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68em) { .measures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.measure {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2vw, 1.75rem);
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}
.measure__value :is(.num, span) { font-family: var(--sans); letter-spacing: -0.045em; }
.measure__value {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
  /* No tabular-nums here: these are single figures, not a column, and a
     tabular full stop takes a whole digit slot -- "2.4" reads as "2 . 4". */
  display: flex;
  align-items: baseline;
}
.measure__affix { font-size: 0.42em; letter-spacing: 0; font-weight: 500; color: var(--accent); }
.measure__label { font-size: var(--fs-small); font-weight: 500; letter-spacing: -0.01em; }
.measure__detail { color: var(--fg-quiet); }
/* The bar is the swell idea reduced to one dimension: a value against a
   baseline. Width is set inline from the datum, so it never lies. */
.measure__bar { height: 2px; background: var(--line); position: relative; margin-top: var(--sp-1); }
.measure__bar::after {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: var(--bar, 50%);
  background: var(--accent);
  transform-origin: left;
  scale: 0 1;
  transition: scale var(--t-story) var(--ease-inout) 120ms;
}
.is-in .measure__bar::after, .measure.is-in .measure__bar::after { scale: 1 1; }

/* ---------- process ---------------------------------------------------- */
.process { display: grid; }
.process__step {
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--sp-4);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  transition: background var(--t-ui) var(--ease);
}
.process__step:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 62em) {
  .process__step { grid-template-columns: 5rem 16rem minmax(0, 1fr) 12rem; gap: var(--sp-6);
    align-items: start; }
}
.process__num {
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.06em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.process__title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500;
  letter-spacing: -0.026em; line-height: 1.05; }
.process__lede { font-size: var(--fs-lede); letter-spacing: -0.011em; line-height: 1.35; }
.process__body { color: var(--fg-quiet); font-size: var(--fs-small); max-width: 48ch; }
.process__outputs { display: grid; gap: var(--sp-2); }

/* Question-and-answer rows. Stacked until there is room for two columns --
   an inline grid-template-columns would apply at every width and crush the
   question into a 90px gutter on a phone. */
.qa { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62em) {
  .qa { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--sp-7); }
  .qa--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}

/* ---------- testimonials ----------------------------------------------- */
.quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
.quotes__viewport { overflow: clip; }
.quotes__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-bottom: var(--sp-2);
}
.quotes__track::-webkit-scrollbar { display: none; }
.quote {
  flex: none;
  width: 100%;
  scroll-snap-align: start;
  display: grid;
  gap: var(--sp-5);
  align-content: start;
}
@media (min-width: 62em) {
  .quote {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
  }
  .quote__text { max-width: 24ch; }
}
.quote__text {
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.022em;
  font-weight: 450;
}
.quote__attr { display: grid; gap: var(--sp-1); }
.ctrls { display: flex; align-items: center; gap: var(--sp-3); }
.ctrl {
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  display: grid; place-items: center;
  transition: border-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease),
              background var(--t-ui) var(--ease);
}
.ctrl:hover:not(:disabled), .ctrl:focus-visible { border-color: var(--accent); color: var(--accent); }
.ctrl:disabled { opacity: 0.35; cursor: default; }
.ctrl svg { width: 1rem; height: 1rem; }
.quotes__count { font-variant-numeric: tabular-nums; }

/* ---------- insight cards ---------------------------------------------- */
.article-list { display: grid; gap: 0; }
.article-row {
  display: grid;
  gap: var(--sp-4);
  border-top: 1px solid var(--line);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}
.article-row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 62em) {
  .article-row { grid-template-columns: 9rem minmax(0, 1fr) 14rem 6rem; gap: var(--sp-6);
    align-items: center; }
}
.article-row__title {
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 500; line-height: 1.14; letter-spacing: -0.024em;
  transition: translate 420ms var(--ease);
}
.article-row__dek { color: var(--fg-quiet); font-size: var(--fs-small); margin-top: var(--sp-2);
  max-width: 52ch; }
.article-row__media { overflow: clip; aspect-ratio: 3 / 2; background: var(--field); }
.article-row__media img { width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.7); transition: scale 900ms var(--ease), filter 600ms var(--ease); }
.article-row__arrow { width: 1rem; height: 1rem; color: var(--fg-quiet); justify-self: end;
  transition: translate var(--t-ui) var(--ease), color var(--t-ui) var(--ease); }
@media (hover: hover) {
  .article-row:hover .article-row__title { translate: 0.4rem 0; }
  .article-row:hover .article-row__media img { scale: 1.05; filter: saturate(1); }
  .article-row:hover .article-row__arrow { translate: 0.3rem 0; color: var(--accent); }
}

/* ---------- case study ------------------------------------------------- */
.case-hero__media { aspect-ratio: 16 / 9; overflow: clip; background: var(--field); }
.case-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.case-facts { display: grid; gap: var(--sp-4); }
@media (min-width: 44em) { .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68em) { .case-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.case-fact { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: var(--sp-5) var(--sp-4); display: grid; gap: var(--sp-2);
  align-content: start; }
.case-fact__value { font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.015em; }

/* Scroll storytelling: the image column is pinned while the argument moves
   past it. Sticky, not translated — so keyboard focus and find-in-page keep
   working, and the section releases on its own. */
.story { display: grid; gap: var(--sp-7); }
/* Below the pinned layout the pane has no job: its frames are shown inline
   with the chapter they belong to. Without this it renders as a stack of
   duplicate images at natural size. */
.story__pane { display: none; }
@media (min-width: 68em) {
  .story__pane { display: block; }
  .story { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start; }
  .story__pane {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-6));
    aspect-ratio: 4 / 5;
    overflow: clip;
    background: var(--field);
  }
  .story__pane { display: block; }
  .story__pane img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; scale: 1.06;
    transition: opacity 620ms var(--ease), scale 1100ms var(--ease);
  }
  .story__pane img.is-active { opacity: 1; scale: 1; }
  .story__chapters { display: grid; gap: var(--sp-10); padding-block: var(--sp-8) var(--sp-10); }
}
.story__chapters { display: grid; gap: var(--sp-7); }
.story__chapter { display: grid; gap: var(--sp-4); }
.story__chapter .prose { max-width: 46ch; }
.story__chapter-media { overflow: clip; aspect-ratio: 4 / 3; }
.story__chapter-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 68em) { .story__chapter-media { display: none; } }

/* ---------- team ------------------------------------------------------- */
.people { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 34em) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person__media { aspect-ratio: 4 / 5; overflow: clip; background: var(--field); }
.person__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 700ms var(--ease), scale 900ms var(--ease);
}
@media (hover: hover) { .person:hover .person__media img { filter: grayscale(0.55) contrast(1); scale: 1.03; } }
.person__name { margin-top: var(--sp-3); font-weight: 500; letter-spacing: -0.015em; }
.person__note { color: var(--fg-quiet); font-size: var(--fs-small); margin-top: var(--sp-2); }

/* ---------- forms ------------------------------------------------------ */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field__label { font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-quiet); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  font-size: var(--fs-body);
  letter-spacing: -0.008em;
  transition: border-color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
  border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select { appearance: none; cursor: pointer; padding-right: 2rem; }
.field--select { position: relative; }
.field--select::after {
  content: "";
  position: absolute; right: 1rem; top: 50%;
  width: 0.5rem; height: 0.5rem;
  translate: 0 -70%;
  border-right: 1px solid var(--fg-quiet);
  border-bottom: 1px solid var(--fg-quiet);
  rotate: 45deg;
  pointer-events: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
/* Errors only after the field has been interacted with. */
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: var(--fs-meta); font-family: var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase; display: none; }
.field:has(input:user-invalid) .field__error,
.field:has(textarea:user-invalid) .field__error { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.9rem;
  font-size: var(--fs-small);
  transition: border-color var(--t-ui) var(--ease), background var(--t-ui) var(--ease),
              color var(--t-ui) var(--ease);
}
.choice input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.form__status { display: none; border: 1px solid var(--accent); padding: var(--sp-5); gap: var(--sp-2); }
.form__status[data-state="sent"] { display: grid; }
.form[data-state="sent"] .form__body { display: none; }

/* ---------- footer ----------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--paper);
  --bg: var(--ink); --fg: var(--paper); --fg-quiet: var(--slate-dim); --accent: var(--mint);
  --line: color-mix(in oklab, var(--paper) 16%, transparent); }
.footer__statement {
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: 500; line-height: 0.95; letter-spacing: -0.035em;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem);
}
.footer__cols { display: grid; gap: var(--sp-6); padding-block: var(--sp-7);
  border-top: 1px solid var(--line); }
/* Mobile: two categories per row rather than one long stacked column. The
   brand block keeps the full width -- it is a paragraph, not a category. */
@media (max-width: 47.99em) {
  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--sp-5);
    row-gap: var(--sp-6);
  }
  .footer__col--brand { grid-column: 1 / -1; }
}
@media (min-width: 48em) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68em) { .footer__cols { grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-7); } }
.footer__col { display: grid; gap: var(--sp-3); align-content: start; }
.footer__col ul { display: grid; gap: var(--sp-2); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6);
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-block: var(--sp-5) var(--sp-7);
}
.to-top { margin-left: auto; display: inline-flex; align-items: center; gap: 0.6rem; }
.to-top svg { width: 0.9rem; height: 0.9rem; transition: translate var(--t-ui) var(--ease); }
.to-top:hover svg, .to-top:focus-visible svg { translate: 0 -0.25rem; }

/* ---------- CTA -------------------------------------------------------- */
.cta__title { font-size: clamp(2.4rem, 7.5vw, 6rem); font-weight: 500; line-height: 0.94;
  letter-spacing: -0.038em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- page header (inner pages) ---------------------------------- */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)); }
.page-head__title { margin-top: var(--sp-5); }

/* ---------- reading progress ------------------------------------------ */
/* Only on articles, where progress is genuinely useful. Scroll-timeline
   where available; the element simply stays at zero width otherwise, which
   is why it is aria-hidden and never the only signal. */
.progress {
  position: fixed;
  inset: var(--header-h) 0 auto;
  height: 2px;
  z-index: 59;
  background: var(--accent);
  transform-origin: left;
  scale: 0 1;
  pointer-events: none;
}
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .progress {
    animation: progress linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes progress { to { scale: 1 1; } }
}

/* ---------- pointer affordances ---------------------------------------- */
/* Desktop, fine-pointer, motion-allowed only. Small label, never a big
   circle following the cursor around. */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 80;
  pointer-events: none;
  translate: -50% -50%;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  scale: 0.7;
  transition: opacity 200ms var(--ease), scale 260ms var(--ease);
  will-change: transform;
}
.cursor[data-show="true"] { opacity: 1; scale: 1; }

.aside {
  border-left: 1px solid var(--accent);
  padding: var(--sp-1) 0 var(--sp-1) var(--sp-5);
  margin-top: var(--sp-8);
  display: grid;
  gap: var(--sp-3);
  color: var(--fg-quiet);
  font-size: var(--fs-small);
}

/* ---------- clipped boxes as grid/flex items --------------------------- */
/* `overflow: clip` does not create a scroll container, and Chromium does not
   zero a grid or flex item's automatic minimum size for it the way it does
   for `hidden` or `auto`. A clipped item can therefore push its own track
   wider than the container -- which is how the testimonial rail was forcing
   40px of page overflow at 390px. Every clipped box opts out explicitly. */
:is(.quotes__viewport, .rail__track, .services__pane, .story__pane,
    .work-entry__media, .project__media, .article-row__media, .case-hero__media,
    .band__cell, .person__media, .service-row__thumb, .story__chapter-media,
    .marquee, .menu__item, .hero__line) { min-width: 0; }

/* Photo frames read as lifted cards, not flush-bleed editorial crops: the
   clearest single signal of the conventional-corporate direction. */
:is(.services__pane, .story__pane, .work-entry__media, .project__media,
    .article-row__media, .case-hero__media, .band__cell, .person__media,
    .service-row__thumb, .story__chapter-media) {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- utilities -------------------------------------------------- */
html:not(.js) :is(.header__clock, .clock-line) { display: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
[hidden] { display: none !important; }
.rule { border-top: 1px solid var(--line); }
.rule-soft { border-top: 1px solid var(--line-soft); }
.dim { color: var(--fg-quiet); }
.accent { color: var(--accent); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }
.flow-tight > * + * { margin-top: var(--sp-2); }

/* Deliberately no `content-visibility: auto` on sections. Section heights
   here vary from 500px to 1400px, so any single contain-intrinsic-size guess
   makes the scrollbar jump as the reader passes each one. On a 30 KB static
   document the paint saving does not buy that back. Deferred loading happens
   where the weight actually is: the images. */

/* ---------- stretched link -------------------------------------------- */
/* One link per card. The anchor's own text stays the accessible name; the
   pseudo-element makes the whole card clickable without a second tab stop
   or an aria-hidden anchor. */
.work-entry, .article-row { position: relative; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.work-entry a:not(.stretch), .article-row a:not(.stretch) { position: relative; z-index: 2; }
.work-entry:has(.stretch:focus-visible), .article-row:has(.stretch:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 0.75rem;
}
.work-entry .stretch:focus-visible, .article-row .stretch:focus-visible { outline: none; }
