/* Node Studios — v4: the network is the medium.
   Layout concept: one living network behind every section; the page itself
   changes light (paper → night → saffron) as you move through it, Grids-style
   project blocks lead with the work, and the interactions carry the culture. */

:root {
  --sec: clamp(88px, 9vw, 140px);
  --paper: oklch(0.982 0 0);
  --night: oklch(0.145 0 0);
  --ink: oklch(0.2 0 0);
  --moon: oklch(0.96 0 0);
  --saffron: oklch(0.67 0.215 37);

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: oklch(0.2 0 0 / 0.64);
  --fg-3: oklch(0.2 0 0 / 0.42);
  --rule: oklch(0.2 0 0 / 0.13);
  --accent: var(--saffron);
  --surface: oklch(0.2 0 0 / 0.04);

  --font: var(--font-text);
  /* Two fonts only. Display: Mona Sans Expanded (wdth 125), semibold — every headline,
     title and name. Text: Mona Sans at normal width, light — body, ledes and labels. */
  --font-mono: var(--font);
  --display-wdth: 'wdth' 125;
  --display-weight: 640;
  --fs-body: clamp(0.98rem, 0.94rem + 0.18vw, 1.08rem);
  --fs-small: 0.9rem;
  /* --edge hugs the screen; --gutter is the same until the screen passes ~1940px, then grows so content
     never runs wider than ~1840px. The hero and footer keep --edge so the name and logo stay full-bleed. */
  --edge: clamp(16px, 3.4vw, 48px);
  --gutter: max(var(--edge), calc((100vw - 1840px) / 2));
  --gap: clamp(12px, 1.6vw, 24px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
:root[data-theme='night'] {
  --bg: var(--night); --fg: var(--moon);
  --fg-2: oklch(0.96 0 0 / 0.66); --fg-3: oklch(0.96 0 0 / 0.42);
  --rule: oklch(0.96 0 0 / 0.14); --surface: oklch(0.96 0 0 / 0.05);
  color-scheme: dark;
}
:root[data-theme='saffron'] {
  --bg: var(--saffron); --fg: oklch(0.14 0 0);
  --fg-2: oklch(0.14 0 0 / 0.72); --fg-3: oklch(0.14 0 0 / 0.5);
  --rule: oklch(0.14 0 0 / 0.2); --accent: oklch(0.14 0 0); --surface: oklch(0.14 0 0 / 0.06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: var(--saffron); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

html { background: var(--bg); transition: background-color 0.9s var(--ease); }
body {
  margin: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 380;
  line-height: 1.5;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: color 0.6s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.net { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
main, .footer { position: relative; }
main > section, .footer { padding-inline: var(--gutter); }

.mono { font-family: var(--font); font-size: 0.68rem; font-weight: 450; letter-spacing: 0.14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.label { margin: 0; color: var(--fg-2); font-family: var(--font); font-size: 0.68rem; font-weight: 450; letter-spacing: 0.14em; text-transform: uppercase; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--saffron); vertical-align: 0.05em; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 oklch(0.67 0.215 37 / 0.5); } 70%, 100% { box-shadow: 0 0 0 7px oklch(0.67 0.215 37 / 0); } }

/* The "swag" register: the same family, pushed wide and heavy. */
.wide { font-weight: var(--display-weight); font-family: var(--font-display); font-variation-settings: var(--display-wdth); }

.h2 { margin: 0; font-size: clamp(1.6rem, 0.85rem + 2.2vw, 3.1rem); font-weight: var(--display-weight); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.reveal-mask { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.reveal-mask > span { display: block; }

.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 18px; align-items: start; padding-top: 18px; border-top: 1px solid var(--rule); margin-bottom: clamp(36px, 5vw, 72px); }
.section-head .label { grid-column: 1 / span 3; padding-top: 0.6em; }
.section-head .h2 { grid-column: 1 / span 9; }
.section-head__meta { grid-column: 11 / span 2; justify-self: end; margin: 0; padding-top: 0.6em; color: var(--fg-3); text-align: right; }

/* ---------- Buttons ---------- */

.btn { position: relative; display: inline-flex; align-items: center; gap: 0.6em; padding: 0.85em 1.35em; border: 1px solid transparent; border-radius: 999px; font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: background-color 0.3s, color 0.3s, border-color 0.3s; will-change: transform; }
.btn > span[aria-hidden] { display: inline-block; transition: transform 0.5s var(--ease), color 0.3s; }
.btn:hover > span[aria-hidden] { transform: rotate(45deg); color: var(--saffron); }
.btn--ink { background: var(--fg); color: var(--bg); }
.btn--line { border-color: var(--rule); background: transparent; }
.btn--line:hover { border-color: var(--fg); }
.btn--moon { background: var(--moon); color: var(--night); }

.link { padding: 0.2em 0; font-size: 0.95rem; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size 0.6s var(--ease); }
.link:hover { background-size: 0% 1px; background-position: right bottom; }

/* ---------- Cursor ---------- */

.cursor { position: fixed; z-index: 300; left: 0; top: 0; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--saffron); transition: transform 0.4s var(--ease), opacity 0.3s; }
.cursor__label { position: absolute; left: 14px; top: -12px; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--font); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: scale(0.6); transform-origin: left center; transition: opacity 0.25s, transform 0.45s var(--ease); }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label .cursor__dot { transform: scale(1.6); }
.cursor.is-down .cursor__dot { transform: scale(0.6); }
.cursor.is-lens .cursor__dot { transform: scale(0); }
.cursor.is-lens .cursor__label { left: -64px; top: -64px; display: grid; place-items: center; width: 128px; height: 128px; padding: 0 18px; border-radius: 50%; background: oklch(0.12 0 0 / 0.72); color: var(--paper); font-family: var(--font); font-size: 1.15rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; text-align: center; text-transform: none; white-space: normal; backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); transform: scale(0.4); transform-origin: center; }
.cursor.is-lens.is-label .cursor__label { transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Nav (Nodus-style glass pill) ----------
   A floating glass capsule. It narrows once you scroll, a soft pill slides to
   the section you're in, and it takes the light of the section under it.
   It stays in full view while you scroll. */

.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; justify-content: center; padding: calc(16px + env(safe-area-inset-top, 0px)) 12px 0; pointer-events: none; transition: transform 0.8s var(--ease-apple), opacity 0.5s var(--ease-apple); }
.glass-nav { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1180px; padding: 8px 8px 8px 20px; border: 1px solid var(--rule); border-radius: 999px; background: color-mix(in oklab, var(--bg) 74%, transparent); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.08), 0 8px 32px -12px oklch(0.1 0 0 / 0.22); color: var(--fg); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); pointer-events: auto; transition: max-width 0.7s var(--ease-apple), background-color 0.5s var(--ease-apple), border-color 0.5s var(--ease-apple); }
/* Homepage: the nav waits until the first scroll, then opens out from a small pill at the centre.
   Scoped to .can-tuck: on other pages GSAP fades the nav in, and a CSS opacity transition would fight it. */
.site-header.can-tuck .glass-nav { clip-path: inset(-40px round 999px); transition: max-width 0.7s var(--ease-apple), background-color 0.5s var(--ease-apple), border-color 0.5s var(--ease-apple), clip-path 1s var(--ease-apple), opacity 0.6s var(--ease-apple), transform 1s var(--ease-apple); }
.site-header.is-tucked .glass-nav { clip-path: inset(-40px calc(50% - 24px) round 999px); opacity: 0; transform: translateY(-10px); pointer-events: none; }
.glass-nav.is-scrolled { max-width: 860px; background: color-mix(in oklab, var(--bg) 86%, transparent); }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; color: var(--fg); text-decoration: none; }
.brand .logotype { font-size: 23px; }
/* The nav carries just the mark: the O on its own, in saffron. */
.brand .brand__mark { width: 30px; height: 30px; margin: 0; }
.logo-mark { fill: var(--mark, var(--saffron)); }
[data-theme='saffron'] .brand { --mark: currentColor; }

.nav-links { position: relative; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; z-index: 1; display: block; padding: 8px 16px; border-radius: 999px; color: var(--fg-2); font-size: 14px; line-height: 1.5; text-decoration: none; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current='true'] { color: var(--fg); }
.nav-pill { position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 100%; border-radius: 999px; background: color-mix(in oklab, var(--fg) 8%, transparent); opacity: 0; pointer-events: none; }
.nav-pill.is-ready { transition: transform 0.6s var(--ease-apple), width 0.6s var(--ease-apple), opacity 0.3s; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 500; line-height: 1.5; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.nav-cta:hover { background: var(--saffron); color: var(--ink); }
[data-theme='saffron'] .nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle { position: relative; display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); color: var(--fg); cursor: pointer; }
.nav-toggle span { position: absolute; width: 16px; height: 1.5px; border-radius: 4px; background: currentColor; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nav-toggle span:first-child { transform: translateY(-3px); }
.nav-toggle span:last-child { transform: translateY(3px); }
.nav-toggle[aria-expanded='true'] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:last-child { transform: rotate(-45deg); }

/* Mobile menu: a full-screen sheet in the page's current light. */
.menu { position: fixed; z-index: 40; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 112px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); background: var(--bg); color: var(--fg); opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease-apple), visibility 0s linear 0.35s; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease-apple); }
.menu__links { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.menu__links li { border-bottom: 1px solid var(--rule); }
.menu__links a { display: block; padding: 14px 0; color: var(--fg); font-family: var(--font-display); font-size: clamp(2rem, 9vw, 2.6rem); font-weight: var(--display-weight); letter-spacing: -0.04em; line-height: 1.1; text-decoration: none; transform: translateY(24px); opacity: 0; transition: transform 0.6s var(--ease-apple), opacity 0.6s var(--ease-apple), color 0.15s; }
.menu__links a[aria-current='true'] { color: var(--saffron); }
/* Saffron on the saffron sheet would vanish: there the current page lights in paper instead. */
:root[data-theme='saffron'] .menu__links a[aria-current='true'] { color: var(--paper); }
.menu__cta { margin-top: 32px; padding: 18px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 1.05rem; font-weight: 500; text-align: center; text-decoration: none; transform: translateY(24px); opacity: 0; transition: transform 0.6s var(--ease-apple) 0.3s, opacity 0.6s var(--ease-apple) 0.3s; }
.menu.is-open .menu__links a, .menu.is-open .menu__cta { transform: none; opacity: 1; }
.menu.is-open .menu__links li:nth-child(2) a { transition-delay: 0.05s; }
.menu.is-open .menu__links li:nth-child(3) a { transition-delay: 0.1s; }
.menu.is-open .menu__links li:nth-child(4) a { transition-delay: 0.15s; }

/* ---------- Hero: an editorial title card ---------- */

/* The wordmark spans the page and sits on the baseline rule; the network floats above it. */
/* The nav stays tucked away at the top of the homepage, so the name has the whole first screen:
   it runs edge to edge, centred, and the work row only begins to peek in at the fold. */
.hero { --gutter: var(--edge); position: relative; display: grid; grid-template-rows: auto auto; overflow: clip; }
/* The full name spans the page; real client imagery, toned ink to saffron, moves through the letters. */
.hero__head { display: grid; justify-items: center; align-content: center; gap: clamp(18px, 2.2vw, 30px); min-height: calc(100svh - clamp(44px, 6.5vh, 72px)); padding-block: env(safe-area-inset-top, 0px) 7svh; text-align: center; }
.hero__title { width: 100%; margin: 0; container-type: inline-size; }
.hero__word { display: block; font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: min(calc(100cqi / var(--fit-l2, 4.68)), 42svh); font-weight: 700; letter-spacing: -0.035em; line-height: 0.86; white-space: nowrap; text-transform: uppercase; color: transparent; background: var(--fg) url(work/hero-fill.jpg) 0% 50% / auto 260% no-repeat; -webkit-background-clip: text; background-clip: text; animation: hero-flow 48s linear infinite alternate; }
.hero__mark { display: inline-block; width: 0.765em; height: 0.765em; margin: 0 0.03em -0.017em; color: var(--saffron); vertical-align: baseline; }
.hero__mark svg { display: block; width: 100%; height: 100%; }
/* The name as it's set in the hero, reused for the nav and the footer: Mona Sans Expanded Bold, the swirl as the O. */
.logotype { display: inline-block; font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-weight: 700; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; text-transform: uppercase; color: inherit; }
.logotype__o { display: inline-block; width: 0.765em; height: 0.765em; margin: 0 0.03em -0.017em; vertical-align: baseline; color: var(--mark, var(--saffron)); }
.logotype__o svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero__l1, .hero__l2 { display: block; white-space: nowrap; }
@keyframes hero-flow { to { background-position: 100% 50%; } }
/* Work peeks in under the fold, the way the page continues. */

/* ---------- Statement ---------- */

.statement { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: clamp(110px, 14vw, 220px) clamp(90px, 11vw, 170px); }
.statement > .label { grid-column: 1 / span 3; padding-top: 0.9em; }
.statement__body { grid-column: 4 / span 9; display: grid; gap: clamp(48px, 6vw, 88px); }
.statement__lead { margin: 0; max-width: 24em; font-size: clamp(1.6rem, 0.9rem + 2.1vw, 3.1rem); font-weight: 430; line-height: 1.1; letter-spacing: -0.035em; }
.statement__lead .w { transition: color 0.45s var(--ease); }
.statement__lead.is-split .w { color: var(--fg-3); opacity: 0.45; }
.statement__lead.is-split .w.on { color: var(--fg); opacity: 1; }
.statement__lead.is-split .w.key.on { color: var(--saffron); }
.statement__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); max-width: 52rem; }
.statement__cols article { display: grid; gap: 12px; align-content: start; padding-top: 16px; border-top: 1px solid var(--rule); }
.statement__cols p { margin: 0; color: var(--fg-2); max-width: 36ch; }
.statement__cols .mono { color: var(--fg); }

/* ---------- Work: the hero's peek row swings into a column ----------
   The four cards start as the row peeking under the hero. As you scroll they
   travel into a column on the left; the right half holds the client, what we
   built and the result, and changes as each project passes the middle. */

.hero__dock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-inline: calc(var(--edge) * -1 + 10px); }
.hero__dock i { aspect-ratio: 16 / 9; }

.work { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.work__stack { grid-column: 1 / span 8; display: grid; margin: 0 0 0 calc(var(--edge) * -1 + 10px); padding: 0; list-style: none; }
/* Each project holds the screen on its own: the card stays centred for a beat before the next arrives. */
.wcard { height: 190svh; }
.wcard:last-child { height: 100svh; }
.wcard__hold { position: sticky; top: 0; display: flex; align-items: center; height: 100svh; }
.wcard__frame { width: min(100%, calc(78svh * 16 / 9)); }
.wcard__frame { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--ink); transform-origin: 0 0; will-change: transform; }
.wcard__frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease), opacity 0.6s var(--ease); user-select: none; }
.wcard__frame:hover img { scale: 1.03; }
.work.is-live .wcard:not(.is-active) img { opacity: 0.55; }

.work__panel { grid-column: 9 / -1; }
.work__sticky { position: sticky; top: 0; display: grid; grid-template-rows: auto 1fr; gap: clamp(26px, 4vh, 44px); height: 100svh; padding-block: var(--card-gap, 11svh); }
/* How far through the work you are: one hairline, filled in ink as you go. */
.work__progress { height: 2px; background: var(--rule); overflow: hidden; }
.work__progress i { display: block; height: 100%; background: var(--fg); transform: scaleX(var(--wp, 0)); transform-origin: left; }
.work__projects { display: grid; }
.wproj { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 18px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease), visibility 0s linear 0.5s; }
.wproj.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s var(--ease) 0.08s, transform 0.8s var(--ease) 0.08s, visibility 0s; }
.wproj__name { margin: 0; font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(2rem, 1rem + 2.4vw, 3.6rem); font-weight: var(--display-weight); letter-spacing: -0.045em; line-height: 0.95; }
.wproj__desc { margin: 0; max-width: 34ch; color: var(--fg-2); font-size: clamp(1rem, 0.92rem + 0.3vw, 1.2rem); line-height: 1.5; }
.wproj__result { display: grid; gap: 6px; margin: 8px 0 4px; padding-top: 18px; border-top: 1px solid var(--rule); }
.wproj__value { font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(2.8rem, 1rem + 3.6vw, 5rem); font-weight: var(--display-weight); letter-spacing: -0.05em; line-height: 0.9; color: var(--saffron); }
.wproj__label { max-width: 28ch; color: var(--fg); font-size: 15px; line-height: 1.45; }
.wproj__link { align-self: flex-start; margin-top: auto; }

.no-motion .hero__dock { display: none; }
.no-motion .wcard img { opacity: 1 !important; }

/* ---------- Services (accordion) ---------- */

.services { padding-block: var(--sec) ; }
.services__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.services__foot p { margin: 0; color: var(--fg-2); }
.services__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* On the night page the ink cards lift a step off the background. */

/* ---------- CTA (saffron page) ---------- */

.cta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(40px, 5vw, 72px); padding-block: var(--sec) clamp(56px, 6vw, 90px); }
.cta__copy { grid-column: 1 / span 6; display: grid; align-content: center; gap: clamp(22px, 2.6vw, 36px); }
.cta__title { grid-column: 1 / -1; margin: 0; font-size: clamp(2.6rem, 1rem + 5.4vw, 7.4rem); font-weight: var(--display-weight); line-height: 0.9; letter-spacing: -0.055em; }
.cta__title .line { display: block; }

/* The brief: wide, quiet fields on hairlines, set in large type. Saffron for focus, a choice and the send. */
.brief { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(26px, 3vw, 40px); }
.brief > * { grid-column: 1 / -1; }
.brief > .field--half { grid-column: span 6; }
.field { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__opt { color: var(--fg-3); letter-spacing: 0.1em; }
.field label, .field legend { padding: 0; color: var(--fg-2); font-family: var(--font); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.field input:not([type='checkbox']), .field textarea { width: 100%; padding: 6px 0 14px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--fg); font-size: clamp(1.25rem, 1rem + 0.9vw, 1.9rem); letter-spacing: -0.02em; resize: none; transition: border-color 0.3s var(--ease); }
/* Placeholders read as hints, not answers: light and faint, and fainter still once you're in the field. */
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--fg) 26%, transparent); font-weight: 300; opacity: 1; transition: opacity 0.3s var(--ease); }
.field input:focus::placeholder, .field textarea:focus::placeholder { opacity: 0.5; }
/* The notes field is one line to start, so its rule sits right under where you type; it grows as you write (main.js). */
.field textarea { min-height: 0; overflow: hidden; line-height: 1.3; field-sizing: content; }
/* A field only bots fill in (api/brief.mjs ignores those briefs). Off-screen, not display:none, so bots still see it. */
.brief__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn--send:disabled { opacity: 0.6; cursor: progress; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--saffron); }
/* A legend isn't a grid item, so the field's gap skips it: give it the same space a label gets above its input. */
.field legend { margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { padding: 10px 18px; border: 1px solid var(--rule); border-radius: 999px; color: var(--fg); font-family: var(--font); font-size: 0.95rem; font-weight: 400; letter-spacing: 0; text-transform: none; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.4s var(--ease); }
.chips label:hover { border-color: var(--fg-2); }
.chips label:active { transform: scale(0.96); }
.chips input:checked + label { background: var(--saffron); color: var(--ink); border-color: var(--saffron); }
.chips input:focus-visible + label { outline: 1.5px solid var(--saffron); outline-offset: 2px; }
.brief__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 20px; }
.btn--send { padding: 1.05em 1.8em; background: var(--saffron); color: var(--ink); font-size: 1.05rem; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease); }
.btn--send:hover { background: var(--paper); color: var(--ink); }
.btn--send:hover > span[aria-hidden] { color: var(--ink); }
.brief__error { margin: 0 auto 0 0; color: var(--saffron); font-size: var(--fs-small); font-weight: 500; }
.brief__done { display: grid; gap: 6px; }
.brief__done p { margin: 0; }
.brief__done .brief__done-title { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.03em; }

/* ---------- Footer ---------- */

/* The page ends on the logo: links above it, the wordmark sitting on the bottom edge. */
.footer { --gutter: var(--edge); display: grid; gap: clamp(40px, 6vw, 88px); padding-block: clamp(64px, 8vw, 120px) 0; overflow: clip; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: end; }
.footer__copy { grid-column: 9 / -1; justify-self: end; margin: 0; color: var(--fg-3); }
.footer__idea { grid-column: 1 / span 6; display: grid; gap: 14px; margin: 0; max-width: 18em; font-size: clamp(1.4rem, 0.9rem + 1.5vw, 2.4rem); font-weight: 430; line-height: 1.08; letter-spacing: -0.035em; }
.footer__idea .mono { color: var(--fg-3); }
.footer__cols { grid-column: 1 / span 8; max-width: 520px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.footer__cols div { display: grid; align-content: start; gap: 8px; }
.footer__cols p { margin: 0 0 6px; color: var(--fg-3); }
.footer__cols a, .footer__cols span { justify-self: start; font-size: var(--fs-small); text-decoration: none; }
.footer__cols a { background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat; transition: background-size 0.5s var(--ease); }
.footer__cols a:hover { background-size: 100% 1px; }
.mega { margin: 0; line-height: 0; user-select: none; }
/* The footer signs off with the logo itself, edge to edge. */
.mega { container-type: inline-size; }
.mega .logotype { display: block; padding-bottom: 0.025em; font-size: calc(100cqi / var(--fit-mega, 3.09)); line-height: 0.74; }
.mega__mark { flex: none; width: 0.84em; height: 0.84em; overflow: visible; }
.mega__spin { transform-origin: 50px 50px; animation: spin 40s linear infinite; }
.mega__signal { fill: var(--saffron); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .section-head .label { grid-column: 1 / -1; padding-top: 0; }
  .section-head .h2 { grid-column: 1 / span 10; }
  .statement > .label, .statement__body { grid-column: 1 / -1; }
  .statement > .label { margin-bottom: 28px; }
  .cta__copy, .brief, .footer__cols, .footer__copy { grid-column: 1 / -1; }
  .footer__copy { justify-self: start; }
  .brief > .field--half { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .site-header { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 639px) { .nav-cta { display: none; } }
@media (min-width: 768px) { .menu { display: none; } }

@media (max-width: 960px) {
  /* On phones and tablets each project is one block, read in order: its site, then its story.
     The stack, panel and lists step aside (display: contents) so cards and projects interleave. */
  .work { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-top: 72px; padding-bottom: clamp(48px, 8vw, 80px); }
  .work__stack, .work__panel, .work__sticky, .work__projects { display: contents; }
  .work__progress { display: none; }
  .wcard, .wcard:last-child { height: auto; margin-inline: calc(var(--edge) * -1 + 8px); }
  .wcard__hold { position: static; display: block; height: auto; }
  .wcard__frame { width: 100%; }
  .wcard:nth-child(1) { order: 1; } .wproj:nth-child(1) { order: 2; }
  .wcard:nth-child(2) { order: 3; } .wproj:nth-child(2) { order: 4; }
  .wcard:nth-child(3) { order: 5; } .wproj:nth-child(3) { order: 6; }
  .wcard:nth-child(4) { order: 7; } .wproj:nth-child(4) { order: 8; }
  .wcard:nth-child(5) { order: 9; } .wproj:nth-child(5) { order: 10; }
  .wcard:nth-child(6) { order: 11; } .wproj:nth-child(6) { order: 12; }
  .wproj, .wproj.is-active { grid-area: auto; gap: 12px; padding: 20px 0 clamp(48px, 9vw, 72px); opacity: 1; visibility: visible; transform: none; transition: none; }
  .wproj__name { font-size: clamp(1.8rem, 1.2rem + 3vw, 2.6rem); }
  .wproj__result { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; margin: 4px 0 0; padding-top: 12px; }
  .wproj__value { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.2rem); }
  .wproj__label { font-size: 14px; }
  .wproj__link { margin-top: 4px; }
  /* Every project is on screen in full here, so none is dimmed. */
  .work.is-live .wcard:not(.is-active) img { opacity: 1; }
}

@media (max-width: 720px) {
  /* On phones the name stacks so it stays big: NODE over STUDIOS. */
  .hero__dock { gap: 6px; margin-inline: calc(var(--edge) * -1 + 8px); }
  .section-head .h2 { grid-column: 1 / -1; }
  .section-head__meta { grid-column: 1 / -1; justify-self: start; text-align: left; padding-top: 0; }
  .statement__cols { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__word { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   About page
   ========================================================= */

.page-hero { display: grid; align-content: end; gap: clamp(24px, 3vw, 40px); min-height: min(92svh, 900px); padding-block: 140px clamp(64px, 8vw, 110px); }
.page-hero__title { margin: 0; max-width: 16ch; font-size: clamp(2.3rem, 1rem + 4.8vw, 6.2rem); font-weight: var(--display-weight); line-height: 0.94; letter-spacing: -0.05em; }
.page-hero__lede { margin: 0; max-width: 46ch; color: var(--fg-2); font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem); line-height: 1.4; }

/* ---------- Intro: the title, then the reason, filling the first screen ---------- */

.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(72px, 12svh, 160px); align-content: space-between; min-height: 100svh; padding-block: clamp(132px, 17svh, 200px) clamp(72px, 9vw, 130px); }
.intro .page-hero__title { grid-column: 1 / span 11; max-width: 13ch; font-size: clamp(2.6rem, 1rem + 6.2vw, 8rem); line-height: 0.92; }
.intro__lead { grid-column: 5 / -1; max-width: 21em; padding-top: 20px; border-top: 1px solid var(--rule); }

/* ---------- The mark: five nodes, one discipline each ----------
   Base is the finished logo with every node named and every note listed (no JS, reduced motion).
   .is-live pins it: the logo starts as an outline and scrolling brings each node in. */

.nodes__pin { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: var(--gap); row-gap: 28px; padding-block: clamp(100px, 12vw, 170px); }
.nodes__head { grid-column: 8 / -1; grid-row: 1; display: grid; gap: 18px; align-content: start; }
.nodes__head p { margin: 0; max-width: 34ch; color: var(--fg-2); }
.nodes__stage { position: relative; grid-column: 1 / span 6; grid-row: 1 / -1; align-self: center; justify-self: center; width: min(100%, 640px); aspect-ratio: 1; margin: 0; }
.nodes__svg { position: absolute; inset: 17%; width: 66%; height: 66%; overflow: visible; }
.nodes__svg > use { color: var(--saffron); }
.nodes__ghost path { fill: none; stroke: var(--fg-3); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.nodes__piece { fill: var(--fg); transition: fill 0.7s var(--ease); }
.nodes__piece.is-on, .nodes.is-whole .nodes__piece, .nodes:not(.is-live) .nodes__piece { fill: var(--saffron); }

/* Each node's name sits just outside it, on the same angle. */
.nodes__tag { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px; border: 0; background: none; color: var(--fg-3); font-family: var(--font); font-size: 0.68rem; font-weight: 450; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color 0.5s var(--ease); }
.nodes__tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.nodes__tag:nth-of-type(1) { left: 50%; top: 11%; transform: translate(-50%, -100%); }
.nodes__tag:nth-of-type(2) { left: 87%; top: 38%; transform: translate(0, -50%); }
.nodes__tag:nth-of-type(3) { left: 73%; top: 82%; }
.nodes__tag:nth-of-type(4) { left: 27%; top: 82%; transform: translate(-100%, 0); flex-direction: row-reverse; }
.nodes__tag:nth-of-type(5) { left: 13%; top: 38%; transform: translate(-100%, -50%); flex-direction: row-reverse; }
/* Without the scroll sequence the finished logo stays in view while its notes are read. */
.nodes:not(.is-live) .nodes__stage { position: sticky; top: 120px; align-self: start; }
.nodes__tag.is-set, .nodes:not(.is-live) .nodes__tag { color: var(--fg); }
.nodes__tag.is-on { color: var(--saffron); }
@media (hover: hover) { .nodes__tag:hover { color: var(--saffron); } }

.nodes__steps { position: relative; grid-column: 8 / -1; grid-row: 2 / -1; align-self: end; display: grid; gap: 36px; margin: 0; padding: 0; list-style: none; }
.nodes__steps li { display: grid; gap: 14px; align-content: end; padding-top: 18px; border-top: 1px solid var(--rule); }
.nodes__steps .mono { color: var(--fg-3); }
.nodes__steps h3 { margin: 0; font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(2rem, 1rem + 3.4vw, 4.8rem); font-weight: var(--display-weight); letter-spacing: -0.05em; line-height: 0.95; }
.nodes__steps p { margin: 0; max-width: 36ch; color: var(--fg-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.45; }
.nodes__all h3 { color: var(--saffron); }

.nodes.is-live .nodes__pin { height: 100svh; padding-block: calc(108px + env(safe-area-inset-top, 0px)) calc(48px + env(safe-area-inset-bottom, 0px)); }
.nodes.is-live .nodes__stage { width: min(100%, calc(100svh - 190px)); }
.nodes.is-live .nodes__steps { gap: 0; }
/* How far through the five you are: the steps' top rule fills in saffron. */
.nodes.is-live .nodes__steps::before { content: ''; position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 1px; background: var(--saffron); transform: scaleX(var(--np, 0)); transform-origin: left; }
.nodes.is-live .nodes__steps li { grid-area: 1 / 1; align-content: start; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease), visibility 0s 0.4s; }
.nodes.is-live .nodes__steps li.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s var(--ease) 0.1s, transform 0.8s var(--ease) 0.1s, visibility 0s; }
.nodes.is-live .nodes__steps li.is-active .mono { color: var(--saffron); }

/* ---------- House rules: an index read top to bottom; each rule lights as you reach it ---------- */

.rules { padding-block: clamp(110px, 12vw, 180px); }
.rulebook { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.rule { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 12px; align-items: baseline; padding-block: clamp(22px, 2.8vw, 40px); }
.rule::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--rule); transform-origin: left; transition: transform 1.2s var(--ease), background-color 0.6s var(--ease); }
.rule__n { grid-column: 1 / span 1; color: var(--fg-3); font-size: 12px; font-weight: 450; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; transition: color 0.5s var(--ease); }
.rule__title { grid-column: 2 / span 6; margin: 0; font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(1.7rem, 0.9rem + 3vw, 4.4rem); font-weight: var(--display-weight); letter-spacing: -0.05em; line-height: 0.95; text-wrap: balance; transition: color 0.6s var(--ease), transform 0.9s var(--ease); }
.rule__text { grid-column: 9 / span 4; margin: 0; max-width: 34ch; color: var(--fg-2); transition: opacity 0.9s var(--ease) 0.12s, transform 0.9s var(--ease) 0.12s; }
.rule.is-now .rule__n { color: var(--saffron); }
.rule.is-now::before { background: var(--fg); }
@media (hover: hover) { .rule:hover .rule__title { transform: translateX(10px); } .rule:hover .rule__n { color: var(--saffron); } }

.rules.is-live .rule:not(.is-in)::before { transform: scaleX(0); }
.rules.is-live .rule:not(.is-in) .rule__title { color: var(--fg-3); transform: translateY(22px); }
.rules.is-live .rule:not(.is-in) .rule__text { opacity: 0; transform: translateY(14px); }

@media (max-width: 960px) {
  .intro .page-hero__title, .intro__lead { grid-column: 1 / -1; }
  .nodes__head, .nodes__stage, .nodes__steps { grid-column: 1 / -1; grid-row: auto; }
  .nodes__pin { grid-template-rows: auto auto auto; }
  .nodes__stage { width: min(100%, 520px); }
  .nodes:not(.is-live) .nodes__stage { position: relative; top: auto; }
  .nodes.is-live .nodes__pin { grid-template-rows: auto minmax(0, 1fr) auto; row-gap: clamp(16px, 2.6svh, 28px); }
  .nodes.is-live .nodes__head p { display: none; }
  .nodes.is-live .nodes__stage { align-self: center; width: auto; height: 100%; max-height: 520px; max-width: 100%; }
  .nodes.is-live .nodes__steps { align-self: end; }
  .rule__title { grid-column: 2 / span 11; }
  .rule__text { grid-column: 2 / span 11; }
}
@media (max-width: 720px) {
  .intro__lead { padding-top: 16px; }
  .nodes__head .h2 { font-size: clamp(1.9rem, 1rem + 4vw, 2.4rem); }
  .nodes.is-live .nodes__pin { padding-top: calc(88px + env(safe-area-inset-top, 0px)); }
  /* On phones the names around the mark would crowd it; the note below names the node instead. */
  .nodes.is-live .nodes__tag { display: none; }
  .nodes.is-live .nodes__svg { inset: 4%; width: 92%; height: 92%; }
  .nodes__steps h3 { font-size: clamp(1.9rem, 1rem + 5vw, 2.6rem); }
  .nodes__steps p { font-size: 1rem; }
  .rule { grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 8px; }
  .rule__n { grid-column: 1; }
  .rule__title, .rule__text { grid-column: 2; }
}

/* Five disciplines in one line; each lights up and explains itself. */

/* =========================================================
   Lab: the Chladni plate, the homepage teaser and the Lab page
   ========================================================= */

/* A plate: a square of sand with instrument-style edges and a readout. */
.plate { position: relative; margin: 0; width: 100%; max-width: 620px; justify-self: end; }
.plate__canvas { display: block; width: 100%; aspect-ratio: 1; color: var(--fg); border: 1px solid var(--rule); background: radial-gradient(circle at 50% 50%, oklch(1 0 0 / 0.04), transparent 70%); cursor: pointer; }
.plate::before, .plate::after { content: ''; position: absolute; width: 14px; height: 14px; border: solid var(--saffron); pointer-events: none; }
.plate::before { left: -1px; top: -1px; border-width: 1.5px 0 0 1.5px; }
.plate::after { right: -1px; top: calc(100% - 13px - 2.4em); border-width: 0 1.5px 1.5px 0; }
.plate__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 12px; color: var(--fg-3); }
.plate__meta b { color: var(--fg); font-weight: 500; }

.lab-teaser { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: center; padding-block: clamp(110px, 12vw, 180px); }
.lab-teaser__copy { grid-column: 1 / span 5; display: grid; justify-items: start; gap: 22px; }
.lab-teaser__lede { margin: 0; max-width: 34ch; color: var(--fg-2); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); }
.lab-teaser__list { display: grid; width: 100%; margin: 6px 0 10px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.lab-teaser__list li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 2px 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.lab-teaser__list .mono { grid-row: span 2; padding-top: 0.3em; color: var(--saffron); }
.lab-teaser__list b { font-weight: 500; letter-spacing: -0.02em; }
.lab-teaser__list span:last-child { color: var(--fg-2); font-size: var(--fs-small); }
.plate--teaser { grid-column: 7 / span 6; }

.featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: center; padding-block: clamp(100px, 12vw, 170px); }
.featured__copy { grid-column: 1 / span 5; display: grid; justify-items: start; gap: 20px; }
.featured__lede { margin: 0; max-width: 38ch; color: var(--fg-2); font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem); }
.featured__note { margin: 0; color: var(--fg); }
.featured__stack { margin: 6px 0 0; color: var(--fg-3); }
.featured .plate { grid-column: 7 / span 6; }
.modes { display: flex; flex-wrap: wrap; gap: 8px; }
.modes button { padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: none; color: var(--fg-2); font-family: var(--font); font-size: 0.78rem; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.modes button:hover { border-color: var(--fg); color: var(--fg); }
.modes button[aria-pressed='true'] { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.modes .modes__scatter { font-family: var(--font); font-size: 0.88rem; }

.experiments { padding-block: clamp(100px, 12vw, 170px); }
.exp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.exp { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 12px; padding: clamp(18px, 2vw, 26px); border: 1px solid var(--rule); border-radius: 16px; background: oklch(0.982 0 0 / 0.7); backdrop-filter: blur(6px); transition: border-color 0.3s, transform 0.6s var(--ease); }
.exp:hover { border-color: var(--fg-3); transform: translateY(-3px); }
.exp--wide { grid-column: span 3; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); grid-template-rows: auto auto auto; column-gap: var(--gap); }
.exp--wide .exp__top, .exp--wide h3 { grid-column: 1; }
.exp--wide > p:not(.exp__top):not(.exp__links) { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.exp__top { display: flex; justify-content: space-between; margin: 0; color: var(--fg-3); }
.exp__top span:first-child { color: var(--saffron); }
.exp h3 { margin: 0; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem); font-weight: var(--display-weight); font-family: var(--font-display); font-variation-settings: var(--display-wdth); letter-spacing: -0.03em; line-height: 1.12; }
.exp > p { margin: 0; color: var(--fg-2); font-size: var(--fs-small); max-width: 46ch; }
.exp__stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.exp__stack li { padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.78rem; color: var(--fg-2); }
.exp .exp__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; color: var(--fg-3); }

.cta--short { align-items: end; }
.cta__side { grid-column: 8 / span 5; display: grid; justify-items: start; gap: 22px; }
.cta__side p { margin: 0; max-width: 34ch; }

@media (max-width: 960px) {
  .lab-teaser__copy, .plate--teaser, .featured__copy, .featured .plate, .cta__side { grid-column: 1 / -1; }
  .plate { justify-self: start; }
  .exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp--wide { grid-column: span 2; }
}
@media (max-width: 720px) {
  .exp-grid { grid-template-columns: minmax(0, 1fr); }
  .exp--wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .exp--wide > p:not(.exp__top):not(.exp__links) { grid-column: 1; grid-row: auto; }
}

/* ---------- Display font: applied to every headline, title and name ---------- */
.h2, .cta__title, .page-hero__title, .hcard__name, .brief__done-title, .footer__idea, .mega { font-family: var(--font-display); font-variation-settings: var(--display-wdth); }
.h2, .cta__title, .page-hero__title, .hcard__name { letter-spacing: -0.035em; }
.footer__idea { font-weight: var(--display-weight); font-size: clamp(1.2rem, 0.9rem + 1.2vw, 2rem); }
.brief__done .brief__done-title { font-weight: var(--display-weight); }
/* Text font: long statements stay in the light text face. */
.statement__lead { font-weight: 350; }

/* ---------- Section header and services: modelled on AGR ---------- */

/* A large title with its count in index style, and one quiet line far right. */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.sec-head__title { grid-column: 1 / span 9; margin: 0; font-family: var(--font-display); font-size: clamp(3.2rem, 1rem + 6.4vw, 7.4rem); font-weight: var(--display-weight); letter-spacing: -0.045em; line-height: 0.85; }
.sec-head__count { position: relative; top: -2.6em; margin-left: 0.5em; font-family: var(--font); font-size: 12px; font-weight: 450; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; vertical-align: baseline; }
.sec-head__note { grid-column: 10 / span 3; justify-self: end; margin: 0; max-width: 24ch; color: var(--fg); font-size: 15px; line-height: 1.45; text-wrap: balance; }

.svc-acc { border-top: 1px solid var(--rule); }
.svc-item { border-bottom: 1px solid var(--rule); }
.svc-item__h { margin: 0; font: inherit; }
.svc-item__btn { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; width: 100%; padding: clamp(18px, 2vw, 26px) 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.svc-item__n { grid-column: 1 / span 3; font-size: 12px; font-weight: 450; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.svc-item__name { grid-column: 1 / span 11; font-family: var(--font-display); font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.6rem); font-weight: var(--display-weight); letter-spacing: -0.02em; line-height: 1.15; transition: transform 0.6s var(--ease); }
.svc-item__btn:hover .svc-item__name { transform: translateX(8px); }
.svc-item__icon { grid-column: 12; justify-self: end; position: relative; width: 14px; height: 14px; }
.svc-item__icon::before, .svc-item__icon::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform 0.6s var(--ease); }
.svc-item__icon::after { transform: rotate(90deg); }
.svc-item.is-open .svc-item__icon::after { transform: rotate(0deg); }
.svc-item__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.8s var(--ease); }
.svc-item.is-open .svc-item__panel { grid-template-rows: 1fr; }
.svc-item__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); min-height: 0; overflow: hidden; }
.svc-item__list { grid-column: 1 / span 3; display: grid; gap: 6px; margin: 0; padding: 8px 0 clamp(26px, 3vw, 40px); list-style: none; font-size: 15px; }
.svc-item__desc { grid-column: 4 / span 6; margin: 0; padding: 8px 0 clamp(26px, 3vw, 40px); max-width: 46ch; color: var(--fg-2); font-size: clamp(1rem, 0.94rem + 0.3vw, 1.2rem); line-height: 1.5; }
.services__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(40px, 5vw, 72px); }
.services__foot p { margin: 0; font-size: 15px; line-height: 1.45; }

@media (max-width: 960px) {
  .sec-head__title { grid-column: 1 / -1; }
  .sec-head__note { grid-column: 1 / -1; justify-self: start; margin-top: 20px; }
  .svc-item__n { grid-column: 1 / span 2; }
  .svc-item__name { grid-column: 1 / span 11; }
  .svc-item__list { grid-column: 1 / -1; order: 2; padding-top: 0; }
  .svc-item__desc { grid-column: 1 / -1; }
}

/* ---------- Who we are: one statement ---------- */
.proof { padding: 0 var(--gutter); }
.proof__stage { display: grid; align-content: center; min-height: 100svh; padding-block: clamp(56px, 8svh, 96px); }
.proof__intro { width: 100%; }
.proof__statement { grid-column: 1 / -1; margin: 0; font-size: min(6.6vw, 10.4svh); font-weight: 450; line-height: 1.02; letter-spacing: -0.04em; text-align: justify; text-align-last: left; hyphens: none; }
/* Lit text: words go from a ghost to ink as you read down. */
[data-lit].is-split .w { color: color-mix(in oklab, var(--fg) 16%, transparent); transition: color 0.5s var(--ease); }
[data-lit].is-split .w.on { color: var(--fg); }
[data-lit].is-split .w.now { color: var(--saffron); }
/* Outcome, as in the design system: the number, what it counts, whose it is. */

/* ---------- In their words: six pieces in saffron, black and grey ----------
   Placed so no two touching pieces share a colour, at every width:
   desktop a b c / a d e / f f e, tablet a b / c e / f d, phone in source order. */
.voices { padding-block: clamp(110px, 13vw, 190px); }
.voices__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(clamp(210px, 17vw, 260px), auto)); grid-template-areas: 'a b c' 'a d e' 'f f e'; gap: var(--gap); }
.voice[data-area='a'] { grid-area: a; }
.voice[data-area='b'] { grid-area: b; }
.voice[data-area='c'] { grid-area: c; }
.voice[data-area='d'] { grid-area: d; }
.voice[data-area='e'] { grid-area: e; }
.voice[data-area='f'] { grid-area: f; }
.voice { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; margin: 0; padding: clamp(24px, 2.4vw, 36px); border: 1px solid transparent; border-radius: 14px; transition: transform 0.6s var(--ease); }
@media (hover: hover) { .voice:hover { transform: scale(1.02); } }
.voice--saffron { background: var(--saffron); color: oklch(0.14 0 0); --voice-ring: oklch(0.14 0 0); --voice-dim: oklch(0.14 0 0 / 0.72); }
.voice--white { background: oklch(0.995 0 0); color: var(--ink); border-color: var(--rule); --voice-ring: var(--saffron); --voice-dim: oklch(0.2 0 0 / 0.6); }
.voice--black { background: var(--night); color: var(--moon); --voice-ring: var(--saffron); --voice-dim: oklch(0.96 0 0 / 0.62); }
.voice--grey { background: oklch(0.885 0 0); color: var(--ink); --voice-ring: var(--ink); --voice-dim: oklch(0.2 0 0 / 0.66); }
.voice blockquote { flex: 1; margin: 0; }
.voice blockquote p { margin: 0; max-width: 34ch; font-size: clamp(1.02rem, 0.96rem + 0.25vw, 1.15rem); font-weight: 500; line-height: 1.45; letter-spacing: -0.015em; text-wrap: pretty; }
.voice--tall blockquote p { max-width: 21ch; font-size: clamp(1.35rem, 1rem + 0.95vw, 1.9rem); line-height: 1.14; letter-spacing: -0.03em; }
.voice figcaption { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.voice__avatar { display: block; flex: none; width: 48px; height: 48px; border: 1.5px solid var(--voice-ring); border-radius: 50%; object-fit: cover; background: var(--night); }
/* Each client's Instagram, quiet at the end of the caption: a 40px tap target around an 18px glyph. */
.voice__ig { display: grid; flex: none; place-items: center; width: 40px; height: 40px; margin-left: auto; border-radius: 50%; color: var(--voice-dim); transition: color 0.3s var(--ease), background-color 0.3s var(--ease); }
.voice__ig svg { width: 18px; height: 18px; }
@media (hover: hover) { .voice__ig:hover { color: inherit; background: color-mix(in oklab, currentColor 10%, transparent); } }
.voice__who { display: grid; gap: 2px; }
.voice__who b { font-weight: 600; font-size: 15px; }
.voice__who span { color: var(--voice-dim); }
.voice__tag { align-self: flex-start; color: var(--voice-dim); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.voice__next { margin: 0; font-size: clamp(2rem, 1rem + 3vw, 4rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.045em; }
.voice__next-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.voice__next-foot p { margin: 0; max-width: 26ch; color: var(--voice-dim); font-size: 15px; line-height: 1.45; }
.btn--saffron { background: var(--saffron); color: oklch(0.14 0 0); }
.btn--saffron:hover { background: var(--moon); color: oklch(0.14 0 0); }
.btn--saffron:hover > span[aria-hidden] { color: inherit; }
@media (max-width: 960px) {
  .voices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-template-areas: 'a b' 'c e' 'f d'; grid-auto-rows: minmax(240px, auto); }
}
@media (max-width: 720px) {
  .voices__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; grid-auto-rows: auto; }
  .voice[data-area] { grid-area: auto; min-height: 220px; }
  .voice--tall { min-height: 300px; }
}

/* ---------- How we work: chapters that stack ----------
   Each phase is a full screen of its own. It holds in place while the next
   swings up over it from the bottom-left corner, so the process reads like
   pages being laid down one on top of the other. */

.chapter { position: relative; min-height: 100svh; padding: 0 !important; overflow: hidden; }
/* The held beat between chapters (added by main.js): scroll distance spent reading, hidden behind the pinned chapter. */
.chapter-hold { height: 75svh; }
.chapter__inner { display: grid; grid-template-rows: auto 1fr auto; gap: clamp(20px, 3.4svh, 40px); min-height: 100svh; padding: clamp(92px, 12svh, 124px) var(--gutter) clamp(32px, 6svh, 64px); background: var(--bg); color: var(--fg); transform-origin: bottom left; will-change: transform; }
.chapter[data-theme='paper'] .chapter__inner { --bg: var(--paper); --fg: var(--ink); --muted: oklch(0.2 0 0 / 0.62); --line: oklch(0.2 0 0 / 0.16); }
.chapter[data-theme='night'] .chapter__inner { --bg: var(--night); --fg: oklch(0.96 0 0); --muted: oklch(0.96 0 0 / 0.62); --line: oklch(0.96 0 0 / 0.16); }
.chapter[data-theme='saffron'] .chapter__inner { --bg: var(--saffron); --fg: var(--ink); --muted: oklch(0.14 0 0 / 0.7); --line: oklch(0.14 0 0 / 0.22); }
.chapter__bar { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.chapter__where { margin: 0; font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.5rem); font-weight: var(--display-weight); letter-spacing: -0.03em; }
.chapter__step { margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.chapter__segs { display: flex; gap: 6px; }
.chapter__segs i { width: 28px; height: 3px; border-radius: 2px; background: var(--line); }
.chapter__segs i.done { background: var(--muted); }
.chapter__segs i.on { background: var(--fg); }
.chapter__word { align-self: center; margin: 0; font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(3.4rem, 1rem + 11vw, 13rem); font-weight: var(--display-weight); letter-spacing: -0.06em; line-height: 0.85; }
/* The lead is the chapter's one line, set large and lit word by word as the chapter holds (main.js). */
.chapter__lead { max-width: 24ch; margin: 0; font-size: clamp(1.6rem, 0.9rem + 2.6vw, 4rem); font-weight: 450; line-height: 1.06; letter-spacing: -0.04em; text-wrap: pretty; }
/* Saffron on saffron would vanish: on that chapter the word being read lights in paper instead. */
.chapter[data-theme='saffron'] [data-lit].is-split .w.now { color: var(--paper); }
.chapter__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding-top: clamp(16px, 2.4svh, 26px); border-top: 1px solid var(--line); }
.chapter__item { display: grid; align-content: start; gap: 8px; }
.chapter__item p { margin: 0; }
.chapter__item-k { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.chapter__item-v { max-width: 34ch; color: var(--muted); font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem); line-height: 1.45; }

@media (max-width: 720px) {
  /* On phones each chapter is exactly one screen, so it pins whole: it fills the tallest the screen
     gets (toolbars hidden) and keeps its content inside the shortest (toolbars shown). Type scales
     with the height too, so a short phone still fits every line. */
  .chapter { min-height: 100lvh; }
  .chapter__inner { grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(12px, 2.4svh, 22px); height: 100lvh; min-height: 0; overflow: hidden; padding: calc(80px + env(safe-area-inset-top, 0px)) var(--gutter) calc(24px + 100lvh - 100svh + env(safe-area-inset-bottom, 0px)); }
  .chapter__word { align-self: end; font-size: min(13vw, 8svh); }
  .chapter__lead { font-size: min(8.4vw, 5svh); line-height: 1.1; }
  .chapter__items { grid-template-columns: minmax(0, 1fr); gap: min(14px, 2svh); }
  .chapter__item { gap: 3px; }
  .chapter__item-k { font-size: 11px; }
  .chapter__item-v { font-size: min(3.8vw, 2.3svh); line-height: 1.4; }
  .chapter__segs { display: none; }
}

@media (max-width: 960px) {
  .proof__statement { grid-column: 1 / -1; }
  .cta__title .line { display: inline; }
  .proof__statement { font-size: min(9.4vw, 5.4svh); line-height: 1.06; text-align: left; }
  }

/* Without motion the statement isn't split into words, so its spacing can't be tuned: set it ragged-right. */
.no-motion .proof__statement { text-align: left; }
@media (max-width: 480px) {
  /* The names around the mark don't fit beside it on small phones; the notes below name each node. */
  .nodes__tag { display: none; }
}
@media (max-width: 720px) {
  /* Group titles wrap here, so the count sits lower and stays on its own line. */
  .sx-group__title .sec-head__count { top: -0.9em; }
}

/* ---------- Loader: first visit per session (js/loader.js) ----------
   A night void, the five nodes fly in and spin while the page loads, then the
   two halves part from the centre seam and the hero settles in behind them. */
.loader { display: none; }
html.is-loading, html.is-loading body { overflow: hidden; }
html.is-loading .loader { position: fixed; inset: 0; z-index: 9999; display: block; color: var(--moon); }
.loader__panel { position: absolute; left: 0; width: 100%; height: 50.5%; background: var(--night); transition: transform 0.72s var(--ease-io); will-change: transform; }
.loader__panel--top { top: 0; }
.loader__panel--bottom { bottom: 0; }
.loader.is-revealing .loader__panel--top { transform: translate3d(0, -100%, 0); }
.loader.is-revealing .loader__panel--bottom { transform: translate3d(0, 100%, 0); }
.loader__stage { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; pointer-events: none; }
/* The ring is a stack of layers (js/loader.js): the mark, its spin, and one box per node, each its own
   compositor layer so the animation keeps its frame rate while the page is still loading. */
.loader__mark { position: relative; width: clamp(150px, 24vmin, 250px); aspect-ratio: 1; color: var(--saffron); will-change: transform; }
.loader__spin, .loader__node, .loader__node svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.loader__node svg { fill: currentColor; }
/* The site sits a touch close behind the curtain, then settles back as it opens. */
/* The network settles back behind the curtain; the hero stays put so the ring can dock in its O. */
html.is-revealing .net { animation: loader-settle 0.9s var(--ease) both; }
html.is-docking .hero__mark { visibility: hidden; }
@keyframes loader-settle { from { transform: scale(1.06); } }

/* =========================================================
   Services page (services.html): cards for customers above, an expertise index for search below
   ========================================================= */

.sx-hero { padding-block: clamp(150px, 18vh, 210px) clamp(56px, 6vw, 90px); }
.sx-hero .sec-head { margin-bottom: clamp(40px, 5vw, 72px); }
.sx-jump { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 20px; padding-top: 22px; border-top: 1px solid var(--rule); }
.sx-jump__label { margin: 0; color: var(--fg-2); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.sx-jump ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sx-jump a { display: inline-block; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; text-decoration: none; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
@media (hover: hover) { .sx-jump a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); } }
/* The door to the search index: filled, so it reads as a different kind of link from the service pills. */
.sx-jump a.sx-jump__index { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (hover: hover) { .sx-jump a.sx-jump__index:hover { background: transparent; color: var(--fg); } }

.sx-cards { padding-block: 0 var(--sec); }
.sx-meta { display: flex; justify-content: space-between; margin: 0 0 clamp(24px, 3vw, 40px); color: var(--fg-2); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.sx-meta b { color: var(--fg); font-weight: 600; }
.sx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 6vw, 96px) var(--gap); }
.sx-card { display: grid; align-content: start; gap: 18px; scroll-margin-top: 110px; }
.sx-card__art { position: relative; overflow: hidden; aspect-ratio: 16 / 11; border: 1px solid transparent; border-radius: 14px; transition: transform 0.8s var(--ease); }
.sx-card__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sx-card__n { position: absolute; top: 16px; left: 18px; color: currentColor; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; opacity: 0.7; }
@media (hover: hover) { .sx-card:hover .sx-card__art { transform: translateY(-4px); } }
/* The four tiles of the palette, as on the home page's quotes. The canvas reads its ink from `color`. */
.tone-night { background: var(--night); color: var(--moon); --node-accent: var(--saffron); }
.tone-saffron { background: var(--saffron); color: oklch(0.14 0 0); --node-accent: var(--paper); }
.tone-grey { background: oklch(0.885 0 0); color: var(--ink); --node-accent: var(--saffron); }
.tone-paper { background: oklch(0.995 0 0); color: var(--ink); border-color: var(--rule); --node-accent: var(--saffron); }
.sx-card__body { display: grid; gap: 10px; }
.sx-card__pitch { margin: 0; max-width: 44ch; color: var(--fg-2); font-size: 15px; line-height: 1.45; }
.sx-card__name { margin: 0; font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(1.6rem, 1rem + 1.6vw, 2.7rem); font-weight: var(--display-weight); letter-spacing: -0.04em; line-height: 1; }
.sx-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.sx-card__tags li { padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; }
.sx-card__cta { justify-self: stretch; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.sx-card__cta span { display: inline-block; margin-left: 6px; transition: transform 0.5s var(--ease), color 0.3s; }
@media (hover: hover) { .sx-card__cta:hover span { transform: translate(3px, -3px); color: var(--saffron); } }
/* Feature cards run the full width: a wide tile, then the words in two columns. */
.sx-card--feature { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.sx-card--feature .sx-card__art { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.sx-card--feature .sx-card__body { grid-column: 1 / span 8; }
.sx-card--feature .sx-card__cta { grid-column: 1 / -1; }
.sx-card--feature .sx-card__name { font-size: clamp(2rem, 1rem + 2.6vw, 3.6rem); }

/* Where it fits: AGR's solutions index, on night. */
.sx-index { padding-block: var(--sec); }
.sx-group { margin-top: clamp(56px, 7vw, 110px); }
.sx-group:first-of-type { margin-top: 0; }
.sx-group__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; row-gap: 10px; margin-bottom: clamp(20px, 2.4vw, 32px); }
.sx-group__n { grid-column: 1 / -1; color: var(--fg-2); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.sx-group__title { grid-column: 1 / span 8; margin: 0; font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(1.7rem, 1rem + 2vw, 3rem); font-weight: var(--display-weight); letter-spacing: -0.04em; line-height: 1; }
.sx-group__title .sec-head__count { top: -1.6em; }
.sx-group__note { grid-column: 9 / span 4; justify-self: end; margin: 0; max-width: 30ch; color: var(--fg-2); font-size: 15px; line-height: 1.45; text-align: right; text-wrap: balance; }
.sx-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.sx-row { scroll-margin-top: 110px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 8px; align-items: baseline; padding-block: clamp(20px, 2.2vw, 30px); border-bottom: 1px solid var(--rule); }
.sx-row__name { grid-column: 1 / span 5; margin: 0; font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.6rem); font-weight: var(--display-weight); letter-spacing: -0.025em; line-height: 1.15; transition: transform 0.6s var(--ease), color 0.3s; }
.sx-row__desc { grid-column: 6 / span 5; margin: 0; max-width: 52ch; color: var(--fg-2); font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.1rem); line-height: 1.5; }
.sx-row__proof { grid-column: 11 / span 2; justify-self: end; color: var(--saffron); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-align: right; text-transform: uppercase; }
@media (hover: hover) { .sx-row:hover .sx-row__name { transform: translateX(8px); } }

@media (max-width: 960px) {
  .sx-card--feature .sx-card__body { grid-column: 1 / -1; }
  .sx-row__name { grid-column: 1 / span 5; }
  .sx-row__desc { grid-column: 6 / -1; }
  .sx-row__proof { grid-column: 6 / -1; justify-self: start; text-align: left; }
  .sx-group__title { grid-column: 1 / -1; }
  .sx-group__note { grid-column: 1 / -1; justify-self: start; text-align: left; }
}
@media (max-width: 720px) {
  .sx-grid { grid-template-columns: minmax(0, 1fr); }
  .sx-card--feature .sx-card__art { aspect-ratio: 16 / 11; }
  .sx-row__name, .sx-row__desc, .sx-row__proof { grid-column: 1 / -1; }
  .sx-meta span:first-child { display: none; }
}

/* =========================================================
   Work page: the index, then one case study per project
   ========================================================= */

.windex-hero { padding-block: clamp(132px, 17svh, 200px) clamp(80px, 10vw, 140px); }
.windex-hero .page-hero__title { max-width: 13ch; font-size: clamp(2.6rem, 1rem + 6vw, 7.5rem); line-height: 0.92; }
.windex-hero .page-hero__lede { margin-top: clamp(20px, 2.6vw, 32px); }

/* The index: every project on one screen, with what it brought. Each row jumps to its case study. */
.windex { margin: clamp(64px, 8vw, 120px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--fg); }
.windex a { display: grid; grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); column-gap: var(--gap); align-items: baseline; padding: clamp(18px, 2.2vw, 30px) 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.windex__n { color: var(--fg-3); font-size: 12px; font-weight: 450; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.windex__name { font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(1.6rem, 1rem + 2.4vw, 3.4rem); font-weight: var(--display-weight); letter-spacing: -0.045em; line-height: 1; transition: transform 0.6s var(--ease), color 0.3s var(--ease); }
.windex__sector { color: var(--fg-2); font-size: var(--fs-small); }
.windex__result { justify-self: end; color: var(--fg-2); font-size: var(--fs-small); text-align: right; }
.windex__result b { margin-right: 6px; color: var(--saffron); font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem); font-weight: var(--display-weight); letter-spacing: -0.03em; }
@media (hover: hover) { .windex a:hover .windex__name { transform: translateX(12px); } }
.windex a:focus-visible .windex__name { color: var(--saffron); }

/* A preview of the project follows the cursor over the index (fine pointers only, set up in main.js). */
.windex__preview { position: fixed; z-index: 20; top: 0; left: 0; width: min(30vw, 420px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; pointer-events: none; opacity: 0; scale: 0.92; transition: opacity 0.3s var(--ease), scale 0.6s var(--ease); will-change: transform; }
.windex__preview.is-on { opacity: 1; scale: 1; }
.windex__preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .windex__preview { display: none; } }

.case { scroll-margin-top: 24px; padding-block: clamp(110px, 12vw, 180px); }
.case__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(18px, 2.4vw, 32px); align-items: start; }
.case__name { grid-column: 1 / -1; margin: 0; font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(2.1rem, 0.6rem + 7vw, 9rem); font-weight: var(--display-weight); letter-spacing: -0.055em; line-height: 0.9; }
.case__lede { grid-column: 1 / span 6; margin: 0; max-width: 34ch; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem); line-height: 1.3; letter-spacing: -0.02em; }
.case__meta { grid-column: 8 / -1; display: grid; gap: 12px; margin: 0; }
.case__meta div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.case__meta dt { color: var(--fg-3); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 0.2em; }
.case__meta dd { margin: 0; }

.case__lead { margin: clamp(48px, 6vw, 88px) calc(var(--edge) * -1 + 10px) 0; }
.case__lead img { display: block; width: 100%; height: auto; border-radius: 14px; }

.case__results { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); margin-top: clamp(56px, 7vw, 110px); border-top: 1px solid var(--fg); }
.case__result { display: grid; align-content: start; gap: 12px; margin: 0; padding-top: 22px; }
.case__value { color: var(--saffron); font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(3.2rem, 1rem + 6.4vw, 8rem); font-weight: var(--display-weight); letter-spacing: -0.05em; line-height: 0.9; }
.case__label { max-width: 30ch; color: var(--fg-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); }

.case__build { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(56px, 7vw, 110px); }
.case__h { grid-column: 1 / span 3; margin: 0; padding-top: 16px; color: var(--fg-3); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.case__build ul { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) var(--gap); margin: 0; padding: 0; list-style: none; }
.case__build li { display: grid; align-content: start; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.case__build b { font-family: var(--font-display); font-variation-settings: var(--display-wdth); font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); font-weight: var(--display-weight); letter-spacing: -0.03em; }
.case__build span { max-width: 40ch; color: var(--fg-2); }

/* The build, in the client's own site: screens framed as a plain browser window. */
.case__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(56px, 7vw, 110px); }
.shot { margin: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.shot--wide { grid-column: 1 / -1; }
.shot__bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-bottom: 1px solid var(--rule); }
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); opacity: 0.5; }
.shot__bar span { margin-left: 10px; color: var(--fg-3); font-size: 11px; letter-spacing: 0.02em; }
.shot img { display: block; width: 100%; height: auto; }
.shot--bare { border: 0; border-radius: 0; background: none; }
.shot--bare img { border-radius: 12px; }
.shot figcaption { padding-top: 12px; color: var(--fg-3); font-size: var(--fs-small); }

/* From the homepage's work panel: the site, and its case study. */
.wproj__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: auto; }
.wproj__links .wproj__link { margin-top: 0; }

@media (max-width: 960px) {
  .windex a { grid-template-columns: 2.4rem minmax(0, 1fr) auto; row-gap: 6px; }
  .windex__sector { grid-column: 2; grid-row: 2; }
  .windex__result { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .case__lede, .case__meta, .case__h, .case__build ul { grid-column: 1 / -1; }
  .case__h { padding-top: 0; margin-bottom: 16px; }
}
@media (max-width: 720px) {
  .windex a { grid-template-columns: 2rem minmax(0, 1fr); }
  .windex__result { grid-column: 2; grid-row: 3; justify-self: start; text-align: left; }
  .case__meta div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .case__build ul, .case__gallery { grid-template-columns: minmax(0, 1fr); }
  .case__lead { margin-inline: calc(var(--edge) * -1 + 6px); }
}

/* ---------- Light versions for phones and portrait tablets (main.js `lite`) ----------
   The work row and How we work drop their scroll choreography here. One project peeks under the
   hero and the rest follow in order; the chapters flow one after another on the page's own light,
   which eases from paper to night to saffron and back as each one comes up. */
@media (max-width: 960px) {
  .hero__dock { display: none; }
  .work { padding-top: 0; }
  /* The fill drifting through the letters repaints every frame; on phones it holds still. */
  .hero__word { animation: none; }

  /* How we work as stacked sheets: each chapter is a full-screen sheet that sticks while you read it,
     then the next slides up over it on rounded shoulders. The desktop's pages-laid-down idea, done by the
     browser's own sticky scrolling, so nothing runs per frame. The space after each sheet is its reading beat. */
  .chapter { position: sticky; top: 0; min-height: 0; overflow: visible; }
  .chapter:not(:last-child) { margin-bottom: 55svh; }
  .chapter-hold { display: none; }
  /* lvh so a held sheet still covers the screen when the browser bars tuck away; the bottom padding keeps
     the line clear of them when they're showing. */
  .chapter__inner { grid-template-rows: auto minmax(0, 1fr) auto; gap: 0; height: auto; min-height: 100lvh; overflow: visible; padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter) calc(36px + 100lvh - 100svh + env(safe-area-inset-bottom, 0px)); border-radius: 28px 28px 0 0; transform: none; will-change: auto; }
  .chapter + .chapter .chapter__inner { box-shadow: 0 -20px 48px -28px oklch(0.1 0 0 / 0.4); }
  /* The module: a quiet label row, the word holding the middle, the line anchored at the foot on a hairline. */
  /* One size for all four words, set so the widest ("Understand.", ~5.9em) fits the column. */
  .chapter__word { align-self: center; font-size: min(calc((100vw - 2 * var(--gutter)) / 6), 10svh); line-height: 0.88; }
  .chapter__lead { align-self: end; max-width: none; padding-top: 20px; border-top: 1px solid var(--line); font-size: min(7.2vw, 4.2svh); line-height: 1.12; letter-spacing: -0.035em; }
}

