/* Layout concept: a night match under stadium light. Aubergine-black pitch, magenta as home colour,
   green for "on target", orange for the assumption we strike out. Bricolage display, Geist body, Geist Mono for the scoreboard. */
:root {
  --ink: #0d0610;
  --ink-2: #160a17;
  --ink-3: #21101f;
  --paper: #f3edf1;
  --paper-2: #e8dfe5;
  --fg: #f3edf1;
  --fg-dim: #a99ba7;
  --fg-faint: #6c5d6a;
  --magenta: #771160;
  --magenta-lit: #c8399f;
  --green: #00bf63;
  --orange: #ff6b00;
  --line: rgba(243, 237, 241, 0.1);
  --line-2: rgba(243, 237, 241, 0.18);
  --ink-line: rgba(13, 6, 16, 0.12);

  --f-display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --sec: clamp(96px, 14vw, 200px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main { overflow-x: clip; width: 100%; max-width: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--magenta); color: var(--paper); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); position: relative; }
.sec--tight { padding-block: clamp(64px, 9vw, 120px); }
.light { background: var(--paper); color: var(--ink); }
.light .muted { color: #5e4f5c; }
.mag { background: var(--magenta); color: var(--paper); }

/* Type */
.display, h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.035em; line-height: 0.95; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
.h-hero { font-size: clamp(3rem, min(10.5vw, 17svh), 10.5rem); line-height: 0.88; letter-spacing: -0.05em; }
.h-xl { font-size: clamp(2.8rem, 7.5vw, 7.4rem); }
.h-lg { font-size: clamp(2.2rem, 5vw, 4.8rem); }
.h-md { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.02; letter-spacing: -0.03em; }
.h-sm { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.15; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.5; max-width: 38ch; color: var(--fg-dim); text-wrap: pretty; }
.light .lede { color: #4d3f4b; }
.body { max-width: 62ch; color: var(--fg-dim); text-wrap: pretty; }
.body p { margin: 0 0 1.1em; }
.light .body { color: #4d3f4b; }
.muted { color: var(--fg-dim); }
.mono { font-size: 14px; color: var(--fg-dim); }
.lbl { display: block; font-size: 14px; color: var(--fg-dim); letter-spacing: 0; }
.light .lbl { color: #5e4f5c; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-dim); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0,191,99,.15); }
.light .eyebrow { color: #5e4f5c; }
.accent-g { color: var(--green); }
.accent-o { color: var(--orange); }
.accent-m { color: var(--magenta-lit); }
.outline { color: transparent; -webkit-text-stroke: 1.5px rgba(243, 237, 241, .5); }
.light .outline { -webkit-text-stroke-color: rgba(13,6,16,.25); }
.tnum { font-variant-numeric: tabular-nums; }

/* Nav: wordmark and menu */
.nav {
  position: fixed; z-index: 70; left: 0; right: 0; top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: transform 500ms var(--ease-out), background-color 300ms ease, border-color 300ms ease;
}
.nav.solid { background: rgba(13, 6, 16, .92); border-bottom-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
.menu-open .nav { background: transparent; border-bottom-color: transparent; transform: none; }
.nav-in { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: block; color: var(--paper); flex: none; }
.wordmark svg { display: block; height: 34px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-cta { font-size: 15px; font-weight: 500; color: var(--green); white-space: nowrap; transition: color 200ms ease; }
.nav-cta:hover { color: var(--paper); }
.menu-open .nav-cta { color: var(--paper); }
.burger { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid rgba(243, 237, 241, .25); color: var(--paper); font: inherit; font-weight: 500; font-size: 15px; padding: 9px 18px 9px 12px; border-radius: 999px; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 250ms ease, border-color 250ms ease; }
.burger:active { transform: scale(.97); }
.burger .ico { width: 22px; transition: transform 800ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .burger:hover .ico { transform: rotate(90deg); } }
.menu-open .burger { background: var(--ink); border-color: var(--ink); }
.menu-open .burger .ico { transform: rotate(135deg); }
.burger-close { display: none; }
.menu-open .burger-open { display: none; }
.menu-open .burger-close { display: inline; }
@media (max-width: 760px) { .nav-in { height: 72px; } .wordmark svg { height: 28px; } .nav-cta { display: none; } }

.menu {
  position: fixed; inset: 0; z-index: 65; background: var(--magenta); color: var(--paper);
  clip-path: circle(0% at var(--mx, calc(100% - 80px)) var(--my, 44px));
  transition: clip-path 900ms var(--ease-out), visibility 0s linear 900ms; visibility: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); grid-template-rows: 1fr auto; gap: 32px 56px;
  padding: calc(120px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  max-width: 100%;
}
.menu-open .menu { clip-path: circle(150% at var(--mx, calc(100% - 80px)) var(--my, 44px)); visibility: visible; transition: clip-path 900ms var(--ease-out); }
.menu ol { list-style: none; margin: 0; padding: 0; align-self: end; }
.menu li { overflow: hidden; }
.menu li a { display: inline-flex; align-items: baseline; gap: 18px; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-size: clamp(2.6rem, 7vw, 6rem); color: rgba(243, 237, 241, .5); padding-block: 4px; transform: translateY(105%); transition: transform 800ms var(--ease-out), color 250ms ease; }
.menu li a small { font-family: var(--f-body); font-size: 15px; letter-spacing: 0; font-weight: 400; color: rgba(243, 237, 241, .6); }
.menu li a:hover, .menu li a[aria-current="page"] { color: var(--paper); }
.menu-open .menu li a { transform: none; }
.menu-open .menu li:nth-child(1) a { transition-delay: 120ms; } .menu-open .menu li:nth-child(2) a { transition-delay: 170ms; }
.menu-open .menu li:nth-child(3) a { transition-delay: 220ms; } .menu-open .menu li:nth-child(4) a { transition-delay: 270ms; }
.menu-open .menu li:nth-child(5) a { transition-delay: 320ms; } .menu-open .menu li:nth-child(6) a { transition-delay: 370ms; }
.menu-open .menu li a:hover { transition-delay: 0ms; }
.menu-pv { position: relative; align-self: end; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: rgba(13, 6, 16, .3); }
.menu-pv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 400ms ease, transform 900ms var(--ease-out); }
.menu-pv img.show { opacity: 1; transform: none; }
.menu-pv .ico { position: absolute; left: 50%; top: 50%; width: 38%; transform: translate(-50%, -50%); color: rgba(243, 237, 241, .25); }
.menu-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(243, 237, 241, .22); font-size: 14px; color: rgba(243, 237, 241, .78); }
.menu-foot a:hover { color: var(--paper); }
@media (max-width: 860px) { .menu { grid-template-columns: 1fr; } .menu-pv { display: none; } }
@media (prefers-reduced-motion: reduce) { .menu, .menu-open .menu { transition: opacity 200ms ease; clip-path: none; opacity: 0; } .menu-open .menu { opacity: 1; } .menu li a { transform: none; } }

/* Buttons: pill with nested icon island */
.btn {
  --b-bg: var(--paper); --b-fg: var(--ink); --b-dot: var(--ink);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 7px 7px 24px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 500; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), background 250ms ease, color 250ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--b-dot); color: var(--b-bg); transition: transform 400ms var(--ease-out); }
.btn-ico svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) { .btn:hover .btn-ico { transform: translate(3px, -1px) scale(1.06) rotate(-45deg); } }
.btn--green { --b-bg: var(--green); --b-fg: #04170c; --b-dot: #04170c; }
.btn--ghost { --b-bg: transparent; --b-fg: var(--fg); --b-dot: rgba(243,237,241,.1); border-color: var(--line-2); }
.btn--ghost .btn-ico { color: var(--fg); }
.btn--ink { --b-bg: var(--ink); --b-fg: var(--paper); --b-dot: var(--paper); }
.btn--sm { padding: 5px 5px 5px 18px; font-size: 14px; gap: 10px; }
.btn--sm .btn-ico { width: 32px; height: 32px; }
.light .btn--ghost { --b-fg: var(--ink); border-color: rgba(13,6,16,.2); --b-dot: rgba(13,6,16,.08); }
.light .btn--ghost .btn-ico { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-u { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 500ms var(--ease-out); }
.link-u:hover { background-size: 100% 1px; }

/* Double-bezel shell */
.shell { padding: 6px; border-radius: 28px; background: rgba(243,237,241,.035); border: 1px solid var(--line); }
.shell > .core { border-radius: 22px; background: var(--ink-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; position: relative; height: 100%; }
.light .shell { background: rgba(13,6,16,.04); border-color: var(--ink-line); }
.light .shell > .core { background: #fbf8fa; box-shadow: inset 0 1px 0 #fff, 0 30px 60px -40px rgba(60,10,50,.35); }

/* Hero base */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: clamp(96px, 16svh, 140px); padding-bottom: clamp(40px, 6vw, 80px); isolation: isolate; }
.hero--short { min-height: 0; padding-top: clamp(110px, min(20vw, 24svh), 230px); }
.hero-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: clamp(32px, 5vw, 64px); }
.hero-meta .lede { margin: 0; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.split-line > span { display: inline-block; }

/* Reveal hooks (JS adds motion; content is visible without JS) */
.rv { will-change: transform; }

/* Marquee */
.marquee { display: flex; overflow: hidden; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex: none; gap: clamp(32px, 5vw, 72px); padding-right: clamp(32px, 5vw, 72px); animation: mq 38s linear infinite; }
.marquee--rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-100%); } }
.mq-item { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.04em; font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; gap: clamp(32px, 5vw, 72px); }
.mq-item::after { content: ""; width: .28em; height: .28em; border-radius: 50%; background: var(--orange); }
.mq-sm .mq-item { font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--fg-dim); }
.mq-sm .mq-item::after { background: var(--line-2); width: .22em; height: .22em; }

/* Horizontal scroll */
.hs { position: relative; }
.hs-track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); width: max-content; }
@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .hs { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hs::-webkit-scrollbar { display: none; }
  .hs-track > * { scroll-snap-align: start; }
}
.hs-progress { height: 2px; background: var(--line); margin: 28px var(--gutter) 0; border-radius: 2px; overflow: hidden; }
.hs-progress i { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }

/* Work card */
.wcard { width: min(78vw, 560px); flex: none; display: block; }
.wcard .core { aspect-ratio: 4 / 5; }
.wcard-info { display: flex; justify-content: space-between; gap: 16px; padding: 18px 8px 0; }
.wcard-info h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.03em; line-height: 1.1; }
.wcard-info p { margin: 4px 0 0; color: var(--fg-dim); font-size: 14px; }
.wcard .cover { transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .wcard:hover .cover { transform: scale(1.04); } }

/* Covers: art-directed plates that stand in until real photography is dropped in */
.cover { position: absolute; inset: 0; overflow: hidden; background: var(--c1, var(--magenta)); color: var(--c-fg, var(--paper)); }
.cover::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(60% 50% at var(--gx, 70%) var(--gy, 20%), var(--c2, var(--magenta-lit)) 0%, transparent 70%), radial-gradient(50% 40% at 10% 100%, var(--c3, var(--ink)) 0%, transparent 70%); opacity: .9; }
.cover-tag { position: absolute; left: 22px; top: 20px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; z-index: 2; }
.cover-word { position: absolute; left: 20px; right: 20px; bottom: 16px; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.06em; line-height: .82; font-size: clamp(3rem, 7vw, 6.5rem); z-index: 2; }
.cover-art { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.cover--big .cover-word { font-size: clamp(3.4rem, 12vw, 12rem); left: clamp(20px, 4vw, 48px); bottom: clamp(16px, 3vw, 36px); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.bento > * { min-width: 0; }
.b-7 { grid-column: span 7; } .b-5 { grid-column: span 5; } .b-4 { grid-column: span 4; } .b-8 { grid-column: span 8; } .b-6 { grid-column: span 6; } .b-12 { grid-column: span 12; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .bento > * { grid-column: auto; } }
.tile .core { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; gap: 40px; }
.tile .num { font-size: 14px; color: var(--fg-faint); }
.tile h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -0.035em; }
.tile p { margin: 12px 0 0; color: var(--fg-dim); max-width: 42ch; }
.tile ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tile li, .chip { font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-dim); }
.light .chip { border-color: rgba(13,6,16,.16); color: #4d3f4b; }

/* Rows (awards, posts) */
.rows { border-top: 1px solid var(--line); }
.light .rows { border-color: var(--ink-line); }
.row { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 0.8fr) 48px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; }
.light .row { border-color: var(--ink-line); }
.row .yr { font-family: var(--f-mono); font-size: 13px; color: var(--fg-faint); }
.row h3 { font-size: clamp(1.25rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.1; }
.row p { margin: 0; color: var(--fg-dim); font-size: 15px; }
.row .arrow { justify-self: end; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform 400ms var(--ease-out), background 250ms ease; }
.row .arrow svg { width: 14px; height: 14px; }
a.row:hover .arrow { background: var(--green); color: var(--ink); border-color: var(--green); transform: rotate(-45deg); }
.row::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-out); }
a.row:hover::before { transform: scaleX(1); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr 40px; gap: 6px 16px; } .row .yr { grid-column: 1 / -1; } .row p { grid-column: 1; } .row .arrow { grid-row: 2 / span 2; grid-column: 2; } }

/* Section head */
.shead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.shead > div { display: grid; gap: 22px; }
@media (max-width: 860px) { .shead { grid-template-columns: 1fr; } }

/* Scrub text */
.scrub { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 4.2rem); line-height: 1.06; letter-spacing: -0.035em; max-width: 22ch; text-wrap: balance; }
.scrub .w { opacity: 1; transition: none; }
.js .scrub .w { opacity: .14; }

/* Footer */
.foot { background: var(--ink); border-top: 1px solid var(--line); padding-top: clamp(80px, 12vw, 160px); position: relative; overflow: hidden; }
.foot-cta { display: grid; gap: 36px; }
.foot-cta .h-hero span { display: inline-block; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 72px 40px; margin-top: clamp(64px, 10vw, 140px); border-top: 1px solid var(--line); }
.foot-grid h4 { margin: 0 0 14px; font-weight: 500; font-size: 14px; color: var(--fg); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--fg-dim); transition: color 200ms ease; }
.foot-grid a:hover { color: var(--fg); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--fg-faint); font-size: 13px; }
.foot-word { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.06em; line-height: .8; font-size: clamp(4rem, 17vw, 17rem); color: transparent; -webkit-text-stroke: 1px rgba(243,237,241,.08); white-space: nowrap; margin-bottom: -0.12em; pointer-events: none; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Page curtain */
.curtain { position: fixed; inset: 0; z-index: 80; background: var(--magenta); transform: translateY(100%); pointer-events: none; display: grid; place-items: center; visibility: hidden; }
.curtain.in, .curtain.out, .curtain.arrive { visibility: visible; }
.curtain svg { width: 54px; height: 54px; opacity: .9; }
.curtain.in { transform: translateY(0); transition: transform 520ms var(--ease-io); }
.curtain.out { transform: translateY(-100%); transition: transform 620ms var(--ease-io); }

/* Case study */
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }
.case-meta dt { font-size: 14px; color: var(--fg-faint); margin-bottom: 4px; }
.case-meta dd { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .case-meta { grid-template-columns: 1fr 1fr; } }
.case-plate { position: relative; aspect-ratio: 16 / 9; max-height: 82vh; width: 100%; }
@media (max-width: 760px) { .case-plate { aspect-ratio: 4 / 5; } }
.case-plate .core { position: absolute; inset: 6px; }
.chapter { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 32px 80px; padding-block: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 0; }
.chapter .label { position: sticky; top: 120px; align-self: start; display: grid; gap: 14px; }
.chapter .label .mono { color: var(--fg-faint); }
.chapter .label h2 { font-size: clamp(1.8rem, 3.2vw, 2.9rem); }
.assume { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.12; letter-spacing: -0.03em; position: relative; display: inline; background-image: linear-gradient(var(--orange), var(--orange)); background-repeat: no-repeat; background-position: 0 58%; background-size: 0% 3px; transition: background-size 1200ms var(--ease-out); }
.assume.struck { background-size: 100% 3px; color: var(--fg-dim); }
.shipped { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shipped li { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: rgba(243,237,241,.025); display: flex; gap: 14px; align-items: flex-start; }
.shipped li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--green); }
@media (max-width: 760px) { .chapter { grid-template-columns: 1fr; } .chapter .label { position: static; } .shipped { grid-template-columns: 1fr; } }
.next-case { display: block; padding-block: clamp(80px, 12vw, 160px); border-top: 1px solid var(--line); }
.next-case .h-xl { transition: transform 700ms var(--ease-out), color 300ms ease; }
.next-case:hover .h-xl { transform: translateX(1.5vw); color: var(--green); }

/* Forms */
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--fg-dim); }
.field input, .field textarea, .field select { font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 12px 0; border-radius: 0; transition: border-color 250ms ease; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field select option { background: var(--ink-2); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.seg input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }
.seg label { cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-body); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--fg-dim); transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.seg label:active { transform: scale(0.97); }
.seg input:checked + label { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.seg input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 120s; }
  .curtain { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Horizontal sections: big, bold cards that always fit the screen while the row is pinned, captions included */
@media (min-width: 861px) {
  .hs-sec .wcard { --ch: clamp(320px, calc(100svh - 200px), 700px); width: calc(var(--ch) * .8); }
  .hs-sec .wcard .core { aspect-ratio: auto; height: var(--ch); }
  .hs-sec .wcard-info { min-height: 0; }
  .hs-sec .wcard-info p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hs-sec .wcard .core { container-type: size; }
  .hs-sec .wcard .cover-word { font-size: clamp(2.4rem, 19cqw, 6.5rem); }
  .hs-sec .svc-panel .core { min-height: 0; height: clamp(440px, calc(100svh - 120px), 640px); }
  .hs-sec .svc-panel .svc-img { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
}

/* Phones and small tablets */
@media (max-width: 860px) {
  /* Long horizontal rows become simple vertical stacks so nothing hides off screen */
  .hs--stack { overflow: visible; scroll-snap-type: none; }
  .hs--stack .hs-track { flex-direction: column; width: auto; gap: 12px; }
  .hs--stack .hs-track > * { width: auto; }
  .hs--stack + .hs-progress { display: none; }
  .hs--stack .svc-panel .core { min-height: 0; gap: 22px; }
  .hs--stack .tl-card .core { min-height: 0; gap: 20px; }
  .hs--stack .tl-card .y { font-size: 3.6rem; }
  /* The work row stays swipeable: show the next card and a live progress bar */
  .hs:not(.hs--stack) .wcard { width: 80vw; }
  .tile .core { min-height: 0; gap: 20px; }
}
