/* Self-hosted fonts (Archivo, IBM Plex Mono). No request leaves the site for type. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('../fonts/archivo-100-900-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('../fonts/archivo-100-900-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* LB Systems. One stylesheet, no build step. */

:root {
  --ink: #0B1B33;
  --ink-2: #071226;
  --ink-3: #132A4D;
  --chalk: #EEF0EC;
  --chalk-2: #DFE2DB;
  --chalk-3: #C9CDC4;
  --amber: #FFB020;
  --amber-2: #E39A0E;
  --cobalt: #3B63F5;
  --steel: #8FA3C4;
  --slate: #26365A;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --pad-x: clamp(24px, 5.5vw, 96px);
  --nav-h: 72px;
  --rail-w: 0px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
em, i { font-style: normal; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--amber); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Type */
.h-display, .hero-h1, .gap-h2, .svc-h2, .app-h2, .ledger-h2, .work-h2, .process-h2, .contact-h2, .cs-title, .cs-h2, .wi-h1, .wi-title, .cs-next-cta h2, .e404-code {
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.01em; }

/* Split lines */
[data-split] .ln { display: block; }
[data-split] .ln-in { display: inline-block; will-change: transform, clip-path; }

/* Animation initial states. Only when JS runs and motion is allowed. */
html.anim .slide [data-in],
html.anim .slide [data-in-children] > *,
html.anim .slide [data-split] { visibility: hidden; }
/* Nothing paints until the script has chosen deck or flow layout. The .js class is set by an
   inline script in <head>, so this applies from the very first paint, before any module runs. */
html.js .deck:not(.is-deck):not(.is-flow) { visibility: hidden; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 24px;
  background: var(--amber); color: var(--ink);
  font-weight: 600; font-stretch: 105%; line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.btn:hover, .btn:focus-visible { background: var(--amber-2); }
.btn--small { padding: 11px 16px; font-size: 14px; }
.btn--ink { background: var(--ink); color: var(--chalk); }
.btn--ink:hover, .btn--ink:focus-visible { background: var(--ink-3); }
.hp { display: none !important; }
.link-more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.link-more::before { content: ''; width: 9px; height: 9px; background: var(--amber); flex: none; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* Placeholders */
.ph {
  font-family: var(--mono); font-size: 12px; line-height: 1.4;
  padding: 8px 10px; border: 1px dashed currentColor; opacity: 0.75;
}
.ph-inline { font-family: var(--mono); font-size: 0.85em; background: var(--amber); color: var(--ink); padding: 0 0.35em; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--pad-x);
  color: var(--chalk);
  transition: color 0.35s;
}
body[data-theme="light"] .nav, body[data-theme="amber"] .nav,
body[data-theme="light"] .rail, body[data-theme="amber"] .rail { color: var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-stretch: 118%; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.wm-sq { width: 11px; height: 11px; background: var(--amber); flex: none; }
body[data-theme="amber"] .nav .wm-sq { background: var(--ink); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--amber); }
.nav-cta { flex: none; }
body[data-theme="amber"] .nav-cta { background: var(--ink); color: var(--chalk); }
body[data-theme="amber"] .nav-cta:hover { background: var(--ink-2); }
.menu-btn { display: none; font-size: 14px; font-weight: 600; padding: 10px 0; }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--chalk);
  padding: calc(var(--nav-h) + 24px) var(--pad-x) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu-links { display: grid; gap: 6px; }
.menu-links a { font-stretch: 112%; font-weight: 700; font-size: clamp(30px, 8vw, 44px); line-height: 1.15; letter-spacing: -0.02em; padding: 6px 0; border-left: 8px solid transparent; padding-left: 14px; }
.menu-links a:hover { border-left-color: var(--amber); }
.menu-foot { font-family: var(--mono); font-size: 12px; color: var(--steel); }
body.menu-open .nav { color: var(--chalk); }
body.menu-open .menu-btn::after { content: ' (close)'; }

/* Section rail (deck mode only). Ticks by default, names when the pointer is over it. */
.rail {
  position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 95;
  display: none; gap: 10px; align-items: stretch; padding: 8px 12px 8px 0;
  color: var(--chalk); transition: color 0.35s;
  --marker-y: 0px;
}
.rail-track { width: 2px; background: currentColor; opacity: 0.25; position: relative; }
.rail-marker { position: absolute; left: -2px; top: 0; width: 6px; height: 22px; background: var(--amber); transform: translateY(var(--marker-y)); transition: transform 0.4s var(--ease-out); }
.rail-list { display: grid; }
.rail-list button { display: flex; align-items: center; gap: 10px; height: 22px; text-align: left; font-family: var(--mono); font-size: 11px; line-height: 1; white-space: nowrap; }
.rail-list button::before { content: ''; width: 10px; height: 2px; background: currentColor; opacity: 0.55; flex: none; }
.rail-list button:hover::before, .rail-list button.is-active::before { opacity: 1; }
.rail-list button .rail-name { opacity: 0; transform: translateX(-6px); transition: opacity 0.25s, transform 0.3s var(--ease-out); pointer-events: none; }
.rail:hover .rail-name, .rail-list button:focus-visible .rail-name { opacity: 1; transform: none; transition-delay: 0.12s; }
/* Hovering the rail: the ticks extend like pushers and the slide is shoved right to make room. */
.rail-list button::before { transition: width 0.3s var(--ease-out); }
.rail:hover .rail-list button::before, .rail:focus-within .rail-list button::before { width: 22px; }
.is-deck .slide-inner { transition: transform 0.45s var(--ease-out); }
.rail:hover ~ main .is-deck .slide-inner, .rail:focus-within ~ main .is-deck .slide-inner { transform: translateX(140px); }
.rail-list button:focus:not(:focus-visible) { outline: none; }
.rail-list button.is-active { color: var(--amber); }
.rail-list button.is-active::before { width: 16px; }
body[data-theme="amber"] .rail-list button.is-active { color: var(--ink); }
body[data-theme="amber"] .rail-marker { background: var(--ink); }

/* Machine canvas */
.machine { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: block; }
.machine.machine--inline { position: absolute; inset: 0; z-index: 0; }
.hero-stage { display: none; }

/* Deck framework */
main { position: relative; z-index: 2; }
.deck { position: relative; }
.deck.is-deck { height: 100vh; overflow: hidden; }
.slide { position: relative; background: var(--ink); color: var(--chalk); }
.slide[data-theme="light"] { background: var(--chalk); color: var(--ink); }
.slide[data-theme="amber"] { background: var(--amber); color: var(--ink); }
.is-deck .slide[data-machine] { background: transparent; }
.is-deck .slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; opacity: 0; }
.is-deck .slide-inner {
  position: absolute; inset: 0;
  padding: calc(var(--nav-h) + 1.5vh) var(--pad-x) 4vh calc(var(--pad-x) + var(--rail-w));
}
.deck-edge { position: absolute; z-index: 60; background: var(--amber); pointer-events: none; visibility: hidden; }

/* Flow mode (below 1200px, or reduced motion) */
.is-flow .slide { padding: 0; }
.is-flow .slide-inner { position: relative; padding: 14vh var(--pad-x) 12vh; max-width: 1200px; margin: 0 auto; }
.is-flow .slide--hero { min-height: 100svh; }
.is-flow .slide--hero .hero-stage { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 52vh; overflow: hidden; }
.is-flow .hero-notes, .is-flow .scroll-cue { display: none; }
@media (min-width: 1200px) {
  /* Wide window with reduced motion: same composition as the deck, without the choreography. */
  .is-flow .slide--hero .hero-stage { top: 0; height: auto; }
  .is-flow .slide--hero .slide-inner { min-height: 100svh; max-width: none; padding-top: calc(var(--nav-h) + 1.5vh); padding-bottom: 6vh; }
  .is-flow .hero { min-height: calc(100svh - var(--nav-h) - 8vh); }
}
.is-flow .machine-still-wrap { display: block; }

/* ---------- 1. Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 46%) 1fr; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-h1 { font-size: min(3.5vw, 6.8vh); }
.hero-line { display: block; }
.hero-sub { margin-top: 2.4vh; max-width: 46ch; font-size: min(1.2vw, 2.55vh); color: var(--steel); }
.hero-sub, .hero-cta { --min-fs: 15px; font-size: max(var(--min-fs), min(1.2vw, 2.55vh)); }
.sq { width: 9px; height: 9px; background: var(--amber); flex: none; }
.hero-cta { margin-top: 3.4vh; display: flex; align-items: center; gap: 28px; }
.hero-kicker { margin-top: 2.6vh; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--steel); }
.hero-notes { position: absolute; inset: 0; pointer-events: none; }
.note {
  position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: 12px; line-height: 1; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: var(--ink-2); color: var(--chalk);
  border-left: 3px solid var(--amber);
}
.note-dot { width: 6px; height: 6px; background: var(--amber); }
.scroll-cue { position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--steel); }
.cue-bar { width: 2px; height: 38px; background: rgba(143, 163, 196, 0.35); position: relative; overflow: hidden; }
.cue-bar::after { content: ''; position: absolute; left: 0; top: -14px; width: 100%; height: 14px; background: var(--amber); animation: cue 1.6s var(--ease-out) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- 2. Services ---------- */
.services { display: grid; grid-template-rows: auto auto 1fr; align-content: start; row-gap: 3vh; }
.svc-foot { align-self: end; }
.svc-h2 { font-size: min(3.4vw, 6.6vh); max-width: 16ch; }
.svc-board { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 3.5vw; min-height: 0; }
.svc-rows { display: grid; gap: 8px; align-content: start; }
.svc-row {
  position: relative; display: grid; grid-template-columns: 12px 1fr; column-gap: 20px; align-items: center;
  background: var(--chalk-2); padding: 2.4vh 2vw 2.4vh 0; min-height: 14.5vh;
  transform-origin: 50% 50%;
}
.svc-mark { align-self: stretch; background: var(--amber); transform: scaleY(0); transform-origin: 50% 0; }
.svc-name { font-stretch: 112%; font-weight: 700; font-size: max(20px, min(2.05vw, 4vh)); letter-spacing: -0.02em; line-height: 1.05; color: var(--slate); }
.svc-hint { grid-column: 2; font-family: var(--mono); font-size: 12px; color: var(--slate); margin-top: 6px; opacity: 0.7; }
.svc-row.is-active .svc-name { color: var(--ink); }
.svc-row.is-active .svc-mark { transform: scaleY(1); }
.svc-details { position: relative; display: grid; background: var(--ink); color: var(--chalk); min-height: 0; transform-origin: 50% 50%; }
.svc-detail { grid-area: 1 / 1; min-width: 0; padding: 3.6vh 2.6vw; display: flex; flex-direction: column; justify-content: flex-start; gap: 2.2vh; }
.svc-detail:not(:first-child) { clip-path: inset(0 0 100% 0); }
.svc-lead { font-size: max(15px, min(1.15vw, 2.45vh)); line-height: 1.5; }
.svc-sub { font-family: var(--mono); font-size: 12px; color: var(--amber); font-weight: 500; }
.svc-list { display: grid; gap: 1vh; font-size: max(14px, min(1.02vw, 2.2vh)); color: var(--steel); }
.svc-list li { display: grid; grid-template-columns: 8px 1fr; gap: 12px; align-items: baseline; }
.svc-list li::before { content: ''; width: 8px; height: 8px; background: var(--amber); position: relative; top: 1px; }
.svc-foot { font-size: 15px; color: var(--slate); }
.svc-foot a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--amber); }
.is-flow .svc-board { grid-template-columns: 1fr; }
.is-flow .svc-details { display: none; }
.is-flow .svc-row { grid-template-columns: 12px 1fr; padding: 24px 20px 24px 0; }
.is-flow .svc-row .svc-mark { transform: scaleY(1); }
.is-flow .svc-row .svc-name { color: var(--ink); }
.is-flow .svc-row .svc-detail { position: static; clip-path: none; grid-row: auto; grid-column: 2; padding: 16px 0 0; gap: 14px; background: none; color: var(--ink); justify-content: start; }
.is-flow .svc-row .svc-sub { color: var(--ink); }
.is-flow .svc-row .svc-list { color: var(--slate); }

/* ---------- The gap ---------- */
.gap { display: grid; grid-template-rows: auto auto 1fr; align-content: start; row-gap: 3vh; }
.gap-h2 { font-size: min(3.4vw, 6.6vh); max-width: 18ch; }
.gap-p { max-width: 58ch; font-size: max(15px, min(1.2vw, 2.55vh)); color: var(--steel); }
.gap-quote { align-self: end; margin: 0; padding-left: 2vw; border-left: 8px solid var(--amber); font-size: min(2.6vw, 5vh); max-width: 28ch; }
.gap-quote p { font-stretch: 112%; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

/* ---------- 3. What changes ---------- */
.approach { }
.app-h2 { font-size: min(3.4vw, 6.6vh); max-width: 16ch; position: relative; z-index: 3; }
.machine-still-wrap { display: none; position: relative; margin: 32px 0 8px; }
.machine-still { width: 100%; height: auto; }
.callout-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.cl { fill: none; stroke: var(--amber); stroke-width: 2; }
.cl-end { fill: var(--amber); }
.callouts { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.callout {
  position: absolute; width: min(30ch, 26vw);
  background: var(--ink-2); padding: 18px 20px 18px 22px; border-left: 3px solid var(--amber);
  pointer-events: auto;
}
.callout-dot { position: absolute; left: -7px; top: -7px; width: 11px; height: 11px; background: var(--amber); }
.callout h3 { font-stretch: 108%; font-weight: 700; font-size: max(17px, min(1.35vw, 2.9vh)); line-height: 1.15; letter-spacing: -0.015em; }
.callout p { margin-top: 10px; font-size: max(14px, min(1vw, 2.15vh)); color: var(--steel); }
.callout--a { left: calc(var(--pad-x) + var(--rail-w)); bottom: 7vh; }
.callout--b { right: var(--pad-x); top: calc(var(--nav-h) + 3vh); }
.callout--c { right: var(--pad-x); bottom: 7vh; }
.is-flow .callout-lines { display: none; }
.is-flow .callouts { position: static; display: grid; gap: 10px; margin-top: 18px; }
.is-flow .callout { position: static; width: auto; }

/* ---------- 4. Where AI belongs ---------- */
.ledger { display: grid; grid-template-rows: auto 1fr auto; row-gap: 3vh; }
.ledger-h2 { font-size: min(3.4vw, 6.6vh); max-width: 22ch; }
.ledger-table { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4vw; align-content: start; }
.ledger-head { font-stretch: 112%; font-weight: 700; font-size: max(20px, min(1.9vw, 4vh)); letter-spacing: -0.02em; padding-bottom: 1.8vh; }
.ledger-col p { font-size: max(16px, min(1.4vw, 3vh)); font-weight: 500; padding: 2.3vh 0; border-top: 2px solid var(--ink); }
.ledger-col--no p { background: var(--ink); color: var(--chalk); border: 0; padding: 2.3vh 1.4vw; margin-bottom: 6px; }
.ledger-foot { font-size: max(15px, min(1.15vw, 2.5vh)); font-weight: 600; max-width: 60ch; }

/* ---------- 5. Work ---------- */
.work-h2 { font-size: min(3.4vw, 6.6vh); }
.plate { position: absolute; display: block; background: var(--ink-2); color: var(--chalk); transform-origin: 50% 50%; }
.plate--a { left: calc(var(--pad-x) + var(--rail-w)); top: calc(var(--nav-h) + 11vh); width: min(48%, 700px); z-index: 2; }
.plate--b { right: var(--pad-x); top: calc(var(--nav-h) + 27vh); width: min(44%, 640px); z-index: 3; box-shadow: -18px 0 0 0 var(--ink); }
.plate-shot { height: 30vh; background: var(--ink-3); display: flex; align-items: flex-end; padding: 14px; }
.plate--b .plate-shot { height: 26vh; }
.plate-body { padding: 18px 22px 22px; }
.plate-kind { font-family: var(--mono); font-size: 12px; color: var(--amber); }
.plate h3 { font-stretch: 112%; font-weight: 700; font-size: max(20px, min(1.9vw, 3.8vh)); letter-spacing: -0.02em; line-height: 1.05; margin-top: 8px; }
.plate p { margin-top: 8px; color: var(--steel); font-size: max(14px, min(1.05vw, 2.3vh)); max-width: 40ch; }
.plate .plate-result { margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--amber); color: var(--chalk); font-weight: 600; }
.plate-shot.has-img, .wi-shot.has-img { padding: 0; display: block; overflow: hidden; }
.plate-shot img, .wi-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.plate-link { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--amber); }
.plate:hover .plate-link { color: var(--amber); }
.work-all { position: absolute; left: calc(var(--pad-x) + var(--rail-w)); bottom: 6vh; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--amber); }
.is-flow .plate, .is-flow .work-all { position: static; width: auto; margin-top: 24px; }
.is-flow .plate-shot { height: 40vw; max-height: 320px; }
.is-flow .work-all { display: inline-block; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-rows: auto auto 1fr; align-content: start; row-gap: 3vh; }
.process-h2 { font-size: min(3.4vw, 6.6vh); max-width: 18ch; }
.process-p { max-width: 62ch; font-size: max(15px, min(1.15vw, 2.5vh)); color: var(--slate); }
.process-steps { display: grid; gap: 1.4vh; max-width: 72ch; align-self: start; }
.process-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: start; padding-bottom: 1.4vh; border-bottom: 2px solid var(--chalk-3); font-size: max(15px, min(1.15vw, 2.5vh)); }
.process-steps strong { font-weight: 700; }

/* ---------- 7. Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 6vw; align-items: center; }
.contact-h2 { font-size: min(3.4vw, 6.6vh); max-width: 14ch; }
.contact-p { margin-top: 2vh; color: var(--steel); font-size: max(15px, min(1.15vw, 2.5vh)); }
.next-steps { margin-top: 3.4vh; display: grid; gap: 1.6vh; max-width: 48ch; }
.next-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: start; font-size: max(15px, min(1.05vw, 2.3vh)); }
.step-n { width: 30px; height: 30px; background: var(--amber); color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 13px; display: grid; place-items: center; }
.contact-who { margin-top: 3.4vh; padding-top: 2.4vh; border-top: 2px solid var(--slate); max-width: 48ch; }
.contact-who-h { font-stretch: 112%; font-weight: 700; font-size: max(17px, min(1.5vw, 3.1vh)); letter-spacing: -0.015em; }
.contact-who p { margin-top: 0.8vh; color: var(--steel); font-size: max(14px, min(1.05vw, 2.3vh)); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1vh 2vw; background: var(--ink-2); padding: 2.6vh 2.2vw; max-width: 640px; }
.contact-form > * { grid-column: 1 / -1; }
.contact-form .field--half { grid-column: auto; }
.is-flow .contact-form { padding: 24px 20px; }
.field { display: block; border-bottom: 2px solid var(--slate); padding: 0.4vh 0 0.6vh; transform-origin: 50% 0; }
.field-label { display: block; font-family: var(--mono); font-size: 11px; color: var(--steel); margin-bottom: 2px; }
.field input, .field textarea { width: 100%; background: none; border: 0; padding: 3px 0; font-size: max(15px, min(1.1vw, 2.4vh)); line-height: 1.35; color: var(--chalk); outline: none; resize: none; }
.field:focus-within { border-bottom-color: var(--amber); }
.form-foot { display: flex; align-items: center; gap: 22px; margin-top: 1vh; flex-wrap: wrap; }
.form-alt { font-size: 14px; color: var(--steel); }
.form-alt a { color: var(--chalk); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--amber); }
.form-status { font-family: var(--mono); font-size: 12px; color: var(--amber); line-height: 0; }
.form-status:not(:empty) { line-height: 1.4; }
.is-flow .contact { grid-template-columns: 1fr; row-gap: 40px; }

/* Footer */
.foot { position: relative; z-index: 2; background: var(--ink-2); color: var(--chalk); padding: 7vh var(--pad-x) 5vh; }
.foot-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-brand p { margin-top: 12px; color: var(--steel); font-size: 14px; max-width: 30ch; }
.foot-links { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.foot-links a:hover { color: var(--amber); }
.foot-legal { font-family: var(--mono); font-size: 12px; color: var(--steel); justify-self: end; text-align: right; }

/* ---------- Work page and case studies ---------- */
.wi-h1 { font-size: min(4.3vw, 8.4vh); }
.wi-intro { display: grid; grid-template-rows: auto 1fr; row-gap: 3vh; }
.wi-sub { max-width: 52ch; color: var(--steel); font-size: max(15px, min(1.2vw, 2.55vh)); margin-top: 2vh; }
.wi-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5vw; align-content: center; }
.wi-list .plate { position: static; width: auto; }
.wi-list .plate-shot { height: 26vh; }
.is-flow .wi-list { grid-template-columns: 1fr; }

.wi { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4vw; align-items: center; }
.wi-kind { font-family: var(--mono); font-size: 12px; color: var(--amber); }
.slide[data-theme="light"] .wi-kind { color: var(--slate); }
.wi-title { font-size: min(3.6vw, 7vh); margin-top: 1vh; }
.wi-sum { margin-top: 2vh; font-size: max(15px, min(1.15vw, 2.5vh)); max-width: 46ch; }
.slide[data-theme="dark"] .wi-sum { color: var(--steel); }
.wi-facts { margin-top: 2.6vh; display: grid; gap: 1vh; }
.wi-facts li { display: grid; grid-template-columns: 8px 1fr; gap: 12px; align-items: baseline; font-size: max(14px, min(1.05vw, 2.3vh)); font-weight: 500; }
.wi-facts li::before { content: ''; width: 8px; height: 8px; background: var(--amber); position: relative; top: 1px; }
.wi-cta { margin-top: 3.4vh; }
.wi-shot { height: 56vh; background: var(--ink-3); display: flex; align-items: flex-end; padding: 14px; color: var(--chalk); }
.slide[data-theme="light"] .wi-shot { background: var(--chalk-2); color: var(--ink); }
.is-flow .wi { grid-template-columns: 1fr; row-gap: 28px; }
.is-flow .wi-shot { height: 52vw; max-height: 380px; }

.cs-title-wrap { display: grid; grid-template-columns: 1fr minmax(240px, 30%); column-gap: 5vw; align-items: center; height: 100%; }
.cs-kind { font-family: var(--mono); font-size: 12px; color: var(--amber); }
.cs-title { font-size: min(5vw, 9.5vh); margin-top: 1.4vh; }
.cs-sum { margin-top: 2.6vh; max-width: 40ch; font-size: max(16px, min(1.35vw, 2.9vh)); color: var(--steel); }
.cs-meta { display: grid; gap: 0; border-top: 2px solid var(--slate); }
.cs-meta div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 1.6vh 0; border-bottom: 2px solid var(--slate); font-size: 14px; }
.cs-meta dt { font-family: var(--mono); font-size: 12px; color: var(--steel); }
.cs-meta dd { margin: 0; font-weight: 500; }
.is-flow .cs-title-wrap { grid-template-columns: 1fr; row-gap: 32px; align-items: start; }

.cs-h2 { font-size: min(3.4vw, 6.6vh); }
.cs-problem { display: grid; grid-template-columns: 1fr 1fr; column-gap: 5vw; align-items: center; }
.cs-p { margin-top: 2.4vh; font-size: max(15px, min(1.15vw, 2.5vh)); max-width: 48ch; }
.slide[data-theme="light"] .cs-p { color: var(--slate); }
.cs-frictions { display: grid; gap: 8px; }
.cs-frictions li { background: var(--chalk-2); color: var(--ink); padding: 2.4vh 2vw; display: grid; grid-template-columns: 12px 1fr; gap: 18px; align-items: center; min-height: 12vh; font-stretch: 108%; font-weight: 700; font-size: max(16px, min(1.4vw, 3vh)); letter-spacing: -0.015em; line-height: 1.15; }
.cs-frictions li::before { content: ''; align-self: stretch; background: var(--ink); }
.is-flow .cs-problem { grid-template-columns: 1fr; row-gap: 28px; }

.cs-change { display: grid; grid-template-rows: auto 1fr auto; row-gap: 3vh; }
.cs-outcomes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2vw; align-content: center; }
.cs-outcomes li { border-top: 3px solid var(--ink); padding-top: 2.4vh; }
.cs-outcomes h3 { font-stretch: 110%; font-weight: 700; font-size: max(22px, min(2.2vw, 4.6vh)); letter-spacing: -0.02em; line-height: 1.05; }
.cs-outcomes p { margin-top: 1.6vh; font-size: max(16px, min(1.25vw, 2.7vh)); font-weight: 500; }
.cs-quote { background: var(--ink); color: var(--chalk); padding: 2.6vh 2.4vw; font-size: max(15px, min(1.2vw, 2.6vh)); max-width: 70ch; }
.cs-quote .ph { display: inline-block; margin-top: 8px; }
.is-flow .cs-outcomes { grid-template-columns: 1fr; gap: 20px; }

.cs-next { display: grid; grid-template-columns: 1fr 1fr; column-gap: 5vw; align-items: center; }
.cs-next-label { font-family: var(--mono); font-size: 12px; color: var(--amber); }
.cs-next-label--ink { color: var(--ink); }
.cs-next .plate { position: static; width: auto; margin-top: 1.6vh; }
.cs-next .plate-shot { height: 30vh; }
.cs-next-cta h2 { font-size: min(3.4vw, 6.6vh); }
.cs-next-cta p { margin-top: 2vh; color: var(--steel); font-size: max(15px, min(1.15vw, 2.5vh)); max-width: 40ch; }
.slide[data-theme="amber"] .cs-next-cta p { color: var(--ink); }
.slide[data-theme="amber"] .cs-next .plate { box-shadow: 8px 8px 0 0 var(--ink-2); }
.cs-next-cta .btn { margin-top: 3vh; }
.is-flow .cs-next { grid-template-columns: 1fr; row-gap: 40px; }

.cs-figure { margin-top: 2.6vh; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; max-width: 46ch; }
.cs-figure-n { font-stretch: 112%; font-weight: 700; font-size: min(4.2vw, 8vh); letter-spacing: -0.03em; line-height: 1; color: var(--amber); }
.cs-figure-t { font-size: max(14px, min(1.05vw, 2.3vh)); color: var(--steel); }
.cs-actions, .cs-next-actions { margin-top: 3vh; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cs-next-cta .cs-next-actions .btn { margin-top: 0; }
.cs-byline { margin-top: 2.4vh; font-family: var(--mono); font-size: 12px; color: var(--steel); }
.slide[data-theme="amber"] .cs-byline { color: var(--ink); opacity: 0.7; }
.cs-p + .cs-p { margin-top: 1.6vh; }
.cs-frictions--strip { counter-reset: strip; }
.cs-frictions--strip li { min-height: 0; padding: 1.5vh 1.4vw; font-size: max(15px, min(1.15vw, 2.5vh)); grid-template-columns: 24px 1fr; }
.cs-frictions--strip li::before { counter-increment: strip; content: counter(strip); background: none; align-self: center; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--slate); }
.cs-problem .process-steps { align-self: center; }
.slide[data-theme="dark"] .process-steps li { border-bottom-color: var(--slate); }
.slide[data-theme="dark"] .process-p { color: var(--steel); }
.process-steps--plain li { grid-template-columns: 1fr; }
.cs-split { align-self: center; }
.cs-split .ledger-head { font-size: max(17px, min(1.4vw, 3vh)); padding-bottom: 1.2vh; }
.cs-split .ledger-col p { font-size: max(14px, min(1.05vw, 2.3vh)); padding: 1.4vh 0; }
.cs-split .ledger-col--no p { padding: 1.4vh 1vw; margin-bottom: 4px; }
.cs-works { align-self: center; }
.cs-works .ledger-head { display: block; padding-bottom: 1.2vh; border-bottom: 2px solid var(--ink); margin-bottom: 1.6vh; }
.cs-works .wi-facts { margin-top: 0; }

/* ---------- Privacy / legal ---------- */
.form-privacy { font-size: 12px; color: var(--steel); margin-top: 0.6vh; max-width: 60ch; }
.form-privacy a { color: var(--chalk); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--amber); }
.legal { min-height: 100svh; background: var(--chalk); color: var(--ink); padding: calc(var(--nav-h) + 6vh) var(--pad-x) 10vh; }
.legal-inner { max-width: 68ch; }
.legal h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1; margin-bottom: 1.6vh; }
.legal-meta { font-family: var(--mono); font-size: 12px; color: var(--slate); margin-bottom: 4vh; }
.legal h2 { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; margin: 4.5vh 0 1.4vh; }
.legal p, .legal li { font-size: 17px; line-height: 1.6; margin-bottom: 1.2vh; }
.legal ul { padding-left: 1.2em; margin-bottom: 1.2vh; }
.legal a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--amber); }
.legal .btn { margin-top: 4vh; }

/* ---------- 404 ---------- */
.e404 { min-height: 100svh; background: var(--amber); color: var(--ink); display: grid; align-content: center; padding: calc(var(--nav-h) + 4vh) var(--pad-x) 8vh; row-gap: 3vh; }
.e404-code { font-size: min(18vw, 30vh); line-height: 0.9; }
.e404 p { font-size: max(17px, min(1.4vw, 3vh)); max-width: 40ch; font-weight: 500; }
.e404-line { position: relative; height: 26px; margin: 2vh 0; max-width: 640px; }
.e404-line::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 4px; background: var(--ink); }
.e404-gate { position: absolute; right: 0; top: -6px; width: 6px; height: 38px; background: var(--ink); }
.e404-item { position: absolute; left: 0; top: 0; width: 26px; height: 26px; background: var(--ink); animation: e404 2.6s var(--ease-out) infinite; }
@keyframes e404 { 0% { left: 0; } 70%, 100% { left: calc(100% - 40px); } }
.e404 .btn { justify-self: start; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  :root { --nav-h: 64px; }
  .rail { display: none !important; }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .is-flow .slide--hero .slide-inner { min-height: 100svh; padding-top: calc(var(--nav-h) + 6vh); padding-bottom: 54vh; }
  .hero-h1 { font-size: clamp(34px, 6.4vw, 58px); max-width: 20ch; }
  .hero-sub, .hero-cta { font-size: clamp(15px, 1.8vw, 18px); }
  .hero-sub { margin-top: 18px; }
  .hero-cta { margin-top: 26px; }
  .hero-kicker { margin-top: 20px; }
  .hero-notes, .scroll-cue { display: none; }
  .gap-h2, .svc-h2, .app-h2, .ledger-h2, .work-h2, .process-h2, .contact-h2, .cs-h2, .wi-title, .cs-next-cta h2 { font-size: clamp(30px, 5.6vw, 52px); }
  .gap, .process { row-gap: 28px; }
  .process-steps { gap: 14px; }
  .process-steps li { padding-bottom: 14px; }
  .gap-quote { padding-left: 18px; max-width: none; }
  .gap-quote p { font-size: clamp(24px, 4.4vw, 40px); }
  .cs-title { font-size: clamp(36px, 7.5vw, 72px); }
  .wi-h1 { font-size: clamp(34px, 7.2vw, 64px); }
  .services, .ledger, .cs-change { row-gap: 28px; }
  .svc-name { font-size: clamp(20px, 3.4vw, 30px); }
  .ledger-table { grid-template-columns: 1fr; row-gap: 28px; }
  .ledger-col p { padding: 12px 0; }
  .ledger-col--no p { padding: 12px 16px; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-legal { justify-self: start; text-align: left; }
  .callout { width: auto; }
}
@media (max-width: 899px) {
  .nav { gap: 18px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-block; margin-left: auto; }
  .nav-cta { margin-left: 0; order: 3; }
  .menu-btn { order: 4; }
}
@media (max-width: 599px) {
  :root { --pad-x: 20px; }
  body { font-size: 16px; }
  .is-flow .slide-inner { padding: 12vh var(--pad-x) 10vh; }
  .is-flow .slide--hero .hero-stage { height: 46vh; }
  .is-flow .slide--hero .slide-inner { padding-bottom: 48vh; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .btn { padding: 14px 20px; }
  .nav-cta { display: none; }
  .svc-row { padding: 18px 16px 18px 0; }
  .svc-name { font-size: 22px; }
  .cs-frictions li { min-height: 0; padding: 18px 16px; font-size: 17px; }
  .cs-meta div { grid-template-columns: 80px 1fr; }
  .form-foot { gap: 14px; }
  .e404-code { font-size: 28vw; }
}

/* Reduced motion: everything visible, no scroll choreography. */
@media (prefers-reduced-motion: reduce) {
  .cue-bar::after, .e404-item { animation: none; }
  .btn, .nav, .rail { transition: none; }
}
