/* Yes Chef marketing site. Static, no build. Dark first; light follows the system. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-latin-var-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/figtree-latin-var.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  /* Black, like t3.codes. fg-dim is a step lighter than T3's #737373 so small text keeps 4.5:1. */
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --bg-card: #0d0d0d;
  --bg-well: #070707;
  --fg: #f5f5f5;
  --fg-muted: #a3a3a3;
  --fg-dim: #7a7a7a;
  --fg-faint: #525252;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --pass: #3b9bff;          /* blue has one meaning: at the pass */
  --pass-deep: #0066d6;
  --pass-t: rgba(59, 155, 255, 0.14);
  --fire: #ff9f0a;
  --fire-t: rgba(255, 159, 10, 0.14);
  --ok: #30d158;
  --ok-t: rgba(48, 209, 88, 0.14);
  --red: #ff6b61;
  --red-t: rgba(255, 69, 58, 0.14);
  --gray: #8e949c;
  --gray-t: rgba(118, 118, 128, 0.2);
  --mark-bg: #0d0d0d;
  --mark-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --grid-line: rgba(255, 255, 255, 0.022);
  /* Tasting is an open PR and Sent a merged one, in GitHub's colors (Primer). Blue stays the pass. */
  --order: #8e8e93; --prep: #d1d1d6; --tasting: #3fb950; --plating: #3b9bff; --sent: #ab7df8;
  --chart-claude: #d0704f; --chart-codex: #1fa592;   /* the token chart; blue stays "at the pass" */
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f7f5;
    --bg-elev: #ffffff;
    --bg-card: #ffffff;
    --bg-well: #efefec;
    --fg: #141517;
    --fg-muted: #5c6168;
    --fg-dim: #676c74;
    --fg-faint: #a9aeb5;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.16);
    --pass: #0071e3;
    --pass-deep: #0066d6;
    --pass-t: rgba(0, 113, 227, 0.1);
    --fire: #b24c00;
    --fire-t: rgba(255, 149, 0, 0.15);
    --ok: #1f7a35;
    --ok-t: rgba(52, 199, 89, 0.15);
    --red: #c8001a;
    --red-t: rgba(255, 59, 48, 0.1);
    --gray: #636366;
    --gray-t: rgba(118, 118, 128, 0.13);
    --mark-bg: #1b1e24;
    --mark-border: rgba(0, 0, 0, 0.3);
    --shadow: 0 24px 60px -30px rgba(20, 21, 23, 0.35);
    --grid-line: rgba(0, 0, 0, 0.035);
    --order: #8e8e93; --prep: #aeaeb2; --tasting: #1a7f37; --plating: #0a6fe0; --sent: #8250df;
    --chart-claude: #c8673f; --chart-codex: #178f80;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id], .beat { scroll-margin-top: 76px; }
html:has(.sheet[open]) { overflow: hidden; }
.nowrap { white-space: nowrap; }
@keyframes blink { 50% { opacity: 0.25; } }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--pass); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 8px 12px; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 8px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.display { font-family: var(--font-display); font-weight: 500; font-optical-sizing: auto; font-variation-settings: "SOFT" 50, "WONK" 1; letter-spacing: -0.012em; line-height: 1.04; }
.lede { color: var(--fg-muted); font-size: 18px; line-height: 1.55; letter-spacing: -0.005em; max-width: 640px; }
.lede strong, .map-body strong { color: var(--fg); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 500; font-size: 14px; padding: 10px 16px; border-radius: 9px; white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-primary { background: linear-gradient(180deg, #3b9bff, #0066d6); color: #fff; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.3); }
.btn-primary:hover { transform: translateY(-1px); background: linear-gradient(180deg, #4ea6ff, #0a70e0); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { color: var(--fg-muted); border: 1px solid var(--border); background: transparent; }
.btn-ghost:hover { color: var(--fg); border-color: var(--border-strong); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 11px; }
.btn .t3-mark { width: 16px; height: 16px; flex: none; opacity: 0.95; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand span { font-family: var(--font-display); font-variation-settings: "SOFT" 50, "WONK" 1; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.nav-right { display: inline-flex; align-items: center; gap: 6px; }
.nav-link { padding: 6px 10px; color: var(--fg-muted); font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; transition: color 0.18s ease; }
.nav-link:hover { color: var(--fg); }
.nav-gh { display: inline-flex; align-items: center; gap: 7px; }
.nav-gh svg { flex-shrink: 0; }

/* Hero */
.hero { position: relative; padding: 112px 0 56px; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 60% at 50% 38%, black 40%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 38%, black 40%, transparent 100%); }
.hero-inner { position: relative; text-align: center; z-index: 2; }
.hero-title { font-size: clamp(42px, 5.4vw, 76px); margin: 22px auto 22px; max-width: 17ch; font-weight: 500; text-wrap: balance; }
.hero-title span { display: inline-block; }
.hero-sub { color: var(--fg-muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 560px; margin: 0 auto 34px; letter-spacing: -0.005em; line-height: 1.5; text-wrap: balance; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 56px; }
.hero-note { color: var(--fg-dim); font-size: 13px; letter-spacing: -0.005em; }
.hero-note a { color: var(--fg-muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.hero-note a:hover { color: var(--fg); }

/* Floating station marks. Positions and the mark-in rhythm come from T3 Code's hero (MIT, see CREDITS.md). */
.hero-float { position: absolute; inset: 0; pointer-events: none; z-index: 1; --px: 0px; --py: 0px; }
.hero-float-mark {
  position: absolute; left: calc(50% + var(--x)); top: var(--y); width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2);
  translate: calc(var(--px) * var(--depth)) calc(var(--py) * var(--depth));
  transition: translate var(--parallax-duration, 0s) cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-float-card {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 25%;
  background: var(--mark-bg); border: 1px solid var(--mark-border);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  animation: mark-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d) both;
}
.hero-float-card img { width: 52%; height: 52%; object-fit: contain; }
.hero-float-station {
  position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%) rotate(calc(var(--rot) * -1));
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 500; letter-spacing: 0.01em; line-height: 1.3;
  color: var(--fg); background: var(--bg-elev); border: 1px solid var(--border-strong);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.6);
}
@keyframes mark-in {
  from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(calc(var(--rot) + 24deg)) scale(0.6); }
  to { opacity: 1; transform: translate(0, 0) rotate(var(--rot)); }
}
.hf-opencode    { --x: max(-300px, -19vw); --y: 28px;  --s: 64px; --rot: 6deg;  --depth: 0.6; --d: 620ms; --fx: -40px;  --fy: -80px; }
.hf-antigravity { --x: min(300px, 19vw);   --y: 28px;  --s: 64px; --rot: -5deg; --depth: 0.6; --d: 580ms; --fx: 40px;   --fy: -80px; }
.hf-claude      { --x: max(-560px, -38vw); --y: 150px; --s: 96px; --rot: -8deg; --depth: 1.2; --d: 380ms; --fx: -160px; --fy: -40px; }
.hf-codex       { --x: min(560px, 38vw);   --y: 150px; --s: 96px; --rot: 7deg;  --depth: 1.2; --d: 460ms; --fx: 160px;  --fy: -40px; }
.hf-grok        { --x: max(-420px, -29vw); --y: calc(min(338px, 23.5vw) + 72px); --s: 80px; --rot: 4deg;  --depth: 0.9; --d: 540ms; --fx: -120px; --fy: 80px; }
.hf-cursor      { --x: min(420px, 29vw);   --y: calc(min(338px, 23.5vw) + 72px); --s: 80px; --rot: -5deg; --depth: 0.9; --d: 700ms; --fx: 120px;  --fy: 80px; }
/* T3 Code is the kitchen the brigade works in, so its mark is labelled Cuisine. */
.hf-t3          { --x: max(-650px, -45vw); --y: 300px; --s: 72px; --rot: 5deg;  --depth: 1;   --d: 500ms; --fx: -140px; --fy: 20px; }
.hf-t3 .hero-float-card img { width: 58%; height: 58%; }
/* Gemini CLI balances T3 Code on the right. T3 Code runs it from the ACP registry. */
.hf-gemini      { --x: min(650px, 45vw);   --y: 300px; --s: 72px; --rot: -6deg; --depth: 1;   --d: 540ms; --fx: 140px;  --fy: 20px; }

/* Page-load sequence: [data-rise] plays once with delay --d (T3 Code's rise, MIT). */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
[data-rise] { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d, 0ms); }

/* The board render: one swappable image inside a frame. */
.board { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }
.board-frame { position: relative; overflow: hidden; border-radius: 14px; background: var(--bg-well); box-shadow: 0 0 0 1px var(--border-strong), var(--shadow); }
.board-frame img { width: 100%; height: auto; }
.board-caption { margin: 18px auto 0; text-align: center; color: var(--fg-dim); font-size: 13px; letter-spacing: -0.005em; max-width: 640px; }
.board-caption b { color: var(--fg-muted); font-weight: 500; }

/* Sections */
section { position: relative; padding: 88px 0; border-top: 1px solid var(--border); }
.hero { border-top: 0; }
.section-head { margin-bottom: 44px; max-width: 760px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; margin-bottom: 18px; text-wrap: balance; }

/* The mapping */
.map-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); }
.map { padding: 22px 22px 24px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.map:last-child { border-right: 0; }
.map-pair { display: flex; align-items: baseline; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.map-pair .k { color: var(--fg-dim); font-weight: 500; }
.map-pair .arrow { color: var(--fg-faint); font-weight: 400; }
.map-body { color: var(--fg-muted); font-size: 14px; line-height: 1.5; }

/* Run the pass. The demo board keeps The Pass's own dark surfaces in both page themes, like a screenshot. */
.beat { margin-top: 96px; }
.beat-head { max-width: 680px; margin-bottom: 28px; }
.beat-head h3 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 12px; }
.beat-head p { color: var(--fg-muted); font-size: 17px; line-height: 1.55; }

.service, .sheet {
  --board: #1c1c1e; --well: #161618; --card: #2c2c2e; --card2: #3a3a3c;
  --label: #f5f5f7; --label2: #aeaeb2; --label3: #9a9aa0;
  --sep: rgba(235, 235, 245, 0.12); --sep2: rgba(235, 235, 245, 0.2);
  --blue: #3b9bff; --blue-deep: #0066d6; --link: #7cbbff; --red: #ff938a;
  --order: #8e8e93; --prep: #d1d1d6; --fire: #ff9f0a; --tasting: #3fb950; --plating: #3b9bff; --sent: #ab7df8;
  --success: #3fb950;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color: var(--label);
}
.service { border-radius: 22px; background: var(--board); padding: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 120px -60px rgba(59, 155, 255, 0.45); }
.service-bar { display: flex; align-items: center; gap: 16px; padding: 2px 4px 14px; }
.service-counts { display: flex; gap: 6px; list-style: none; }
.service-counts li { padding: 5px 10px; border-radius: 8px; background: rgba(118, 118, 128, 0.24); font-size: 13px; color: var(--label2); white-space: nowrap; }
.service-counts b { color: var(--label); margin-left: 3px; font-variant-numeric: tabular-nums; }
.service-call { margin-left: auto; display: flex; align-items: baseline; gap: 10px; min-width: 0; font-size: 14px; color: var(--label); }
.call-k { font-size: 12.5px; color: var(--label3); white-space: nowrap; }
.service-call [data-call] { font: italic 400 19px/1.1 var(--font-display); font-variation-settings: "SOFT" 50, "WONK" 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-toggle { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--label); box-shadow: 0 0 0 1px var(--sep2); }
.service-toggle:hover { background: rgba(255, 255, 255, 0.06); }

.service-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
.lanes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.lane { background: var(--well); border-radius: 14px; padding: 10px 8px; min-height: 566px; min-width: 0; }
.lane header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 6px; padding: 0 4px 10px; }
.lane header b { font-size: 13.5px; }
.lane .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.lane-sub { grid-column: 1 / -1; font-size: 11.5px; color: var(--label2); margin-top: 1px; }
.lane-n { grid-row: 1; grid-column: 3; font-size: 12.5px; color: var(--label2); font-variant-numeric: tabular-nums; }
.lane-cards { display: flex; flex-direction: column; gap: 6px; }

.tk { position: relative; display: block; width: 100%; text-align: left; background: var(--card); border-radius: 10px; padding: 8px 9px 9px; min-width: 0; color: var(--label); transition: background 0.15s ease, box-shadow 0.15s ease; }
.tk > span { display: block; }
.tk:hover { background: var(--card2); }
.tk.at-pass { box-shadow: inset 3px 0 0 var(--blue); }
.tk .tk-st { display: flex; align-items: center; gap: 5px; font: italic 400 13.5px/1.05 var(--font-display); font-variation-settings: "SOFT" 50, "WONK" 1; color: var(--label2); margin-bottom: 5px; min-width: 0; }
.tk-m img { width: 12px; height: 12px; flex: none; }
.tk-st span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-t { font-size: 13px; font-weight: 700; line-height: 1.25; }
.tk .tk-m { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 5px; padding-right: 18px; }
.tk-id { font: 400 10.5px/1.3 var(--font-mono); color: var(--label3); }
.tk-s { font-size: 11.5px; font-weight: 700; color: var(--label2); }
.tk-s.fire { color: var(--fire); }
.tk-s.tasting { color: var(--tasting); }
.tk-s.plating { color: var(--link); }
.tk-s.sent { color: var(--sent); }
.tk-s.red { color: var(--red); }
.tk .cloche { position: absolute; bottom: 8px; right: 8px; width: 16px; height: 16px; color: var(--blue); }
.tk.spill { display: none; }
.tk.is-new { animation: tk-in 0.45s var(--ease) both; }
.tk.is-leaving { animation: tk-out 0.4s ease both; pointer-events: none; }
@keyframes tk-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes tk-out { to { opacity: 0; transform: scale(0.96); } }

.pass { background: linear-gradient(180deg, #2b3440 0, #26272b 140px, #242427); border-radius: 16px; padding: 16px 12px 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); display: flex; flex-direction: column; min-width: 0; }
.pass-head { padding: 0 4px 12px; }
.pass-head h4 { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-variation-settings: "SOFT" 50, "WONK" 1; font-weight: 600; font-size: 22px; line-height: 1.1; margin-bottom: 4px; }
.pass-head .cloche { width: 22px; height: 22px; color: var(--blue); flex: none; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(10, 132, 255, 0.22); color: var(--link); font: 700 12.5px/1 var(--font-sans); }
.pass-sub { font-size: 13px; color: var(--label2); }
.pass-list { display: flex; flex-direction: column; gap: 8px; list-style: none; align-content: start; }
.call { background: var(--card); border-radius: 12px; padding: 11px 12px 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.call-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--label3); margin-bottom: 4px; }
.call-top span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-top .tk-id { font-size: 10.5px; }
.call-q { display: block; width: 100%; text-align: left; font-size: 14.5px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; color: var(--label); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 0.15s ease; }
.call-q:hover { text-decoration-color: var(--sep2); }
.call-actions, .sheet-actions { display: flex; gap: 6px; }
.call-actions button, .sheet-actions button { flex: 1; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 700; }
.call-go { background: var(--blue-deep); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.call-go:hover { background: #0a6fe0; }
.call-refire { color: var(--label); box-shadow: inset 0 0 0 1px var(--sep2); }
.call-refire:hover { background: rgba(255, 255, 255, 0.06); }
.call.is-new { animation: tk-in 0.45s var(--ease) both; }
.pass-clear { margin: auto 0; padding: 32px 8px; text-align: center; font-size: 14px; color: var(--label2); }
.pass-clear[hidden] { display: none; }
.pass-clear b { display: block; color: var(--label); font-size: 16px; }
.pass-help { margin-top: auto; padding: 16px 4px 2px; font-size: 12.5px; line-height: 1.45; color: var(--label3); }
.pass-help b { color: var(--label2); }

.stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 28px; counter-reset: stage; list-style: none; }
.stages li { display: grid; gap: 6px; align-content: start; padding-top: 14px; border-top: 2px solid var(--c); counter-increment: stage; }
.stages b { font-size: 15px; font-weight: 650; }
.stages b::before { content: counter(stage) "  "; color: var(--fg-dim); font-weight: 400; white-space: pre; }
.stages span { font-size: 14px; color: var(--fg-muted); line-height: 1.45; }

/* The ticket sheet: full screen, the plate on the left, the ticket on the right. */
.sheet { color-scheme: dark; position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 20px; border: 0; background: transparent; overflow: hidden; }
.sheet::backdrop { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] .sheet-inner { animation: sheet-in 0.32s var(--ease) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.sheet-inner { overscroll-behavior: contain; height: 100%; max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; background: var(--board); border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 120px rgba(0, 0, 0, 0.6); overflow: hidden; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 14px; }
.sheet-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--label2); margin-bottom: 6px; }
.sheet-crumbs img { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; margin-right: 6px; }
.sheet-crumbs .sep { color: var(--label3); }
.mono { font-family: var(--font-mono); font-size: 12px; }
.sheet-stage { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(118, 118, 128, 0.24); color: var(--label); }
.sheet-stage[data-stage="2"] { background: rgba(255, 159, 10, 0.16); color: var(--fire); }
.sheet-stage[data-stage="3"] { background: rgba(46, 160, 67, 0.18); color: var(--tasting); }
.sheet-stage[data-stage="4"] { background: rgba(59, 155, 255, 0.18); color: var(--link); }
.sheet-stage[data-stage="5"] { background: rgba(171, 125, 248, 0.18); color: var(--sent); }
.sheet-head h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; }
.sheet-close { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--label2); box-shadow: inset 0 0 0 1px var(--sep2); }
.sheet-close:hover { color: var(--label); background: rgba(255, 255, 255, 0.06); }
.sheet-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 0 24px 18px; list-style: none; }
.sheet-track li { padding-top: 8px; border-top: 2px solid var(--sep); font-size: 12px; color: var(--label3); }
.sheet-track li.done { border-top-color: var(--label3); color: var(--label2); }
.sheet-track li.now { border-top-color: var(--blue); color: var(--label); font-weight: 700; }
.sheet-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; border-top: 1px solid var(--sep); }
.plate { min-width: 0; overflow: auto; padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.plate-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(118, 118, 128, 0.22); }
.seg button { padding: 5px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--label2); }
.seg button[aria-pressed="true"] { background: var(--card2); color: var(--label); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.plate-shots { flex: 1; display: grid; gap: 16px; align-content: center; justify-items: center; }
.plate-shots[data-view="split"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plate-shots[data-view="before"] .shot-after, .plate-shots[data-view="after"] .shot-before { display: none; }
.shot { margin: 0; display: grid; gap: 8px; width: 100%; }
.plate-shots:not([data-view="split"]) .shot { width: min(100%, calc((100dvh - 350px) * 1.6)); }
.shot figcaption { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--label3); }
.shot-after figcaption { color: var(--link); }
.shot svg { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 50px -24px rgba(0, 0, 0, 0.8); }
.plate-bar[hidden] { display: none; }
.plate-empty { margin: auto; max-width: 420px; text-align: center; color: var(--label2); font-size: 15px; }
.sheet-side { border-left: 1px solid var(--sep); padding: 18px 20px 22px; overflow: auto; display: flex; flex-direction: column; gap: 20px; }
.side-block h3 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label3); margin-bottom: 8px; }
.side-block p { font-size: 14.5px; line-height: 1.5; color: var(--label); }
.checks { list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--label2); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--label3); flex: none; }
.checks li.ok::before { background: var(--success); }
.checks li.run::before { background: var(--fire); }
.checks li.refire::before { background: var(--fire); }
.pr { font-size: 13.5px; color: var(--label2); }
.pr .plus { color: var(--success); font-weight: 600; }
.pr .minus { color: var(--red); font-weight: 600; }
.sheet-actions { margin-top: 4px; }
.sheet-actions button { padding: 11px 12px; font-size: 14.5px; }
.sheet-note { margin-top: auto; font-size: 12px; color: var(--label3); }

/* Closing call */
.close { text-align: center; padding: 112px 0 104px; }
.close-inner { display: flex; flex-direction: column; align-items: center; }
.close-title { display: flex; flex-direction: column; align-items: center; gap: 40px; font-size: clamp(48px, 8vw, 112px); line-height: 1; margin-bottom: 44px; text-wrap: balance; }
/* The Chef's call, spoken: Figtree in quotes. The brigade answers in the display serif. */
.close-call { font-family: var(--font-sans); font-variation-settings: normal; font-weight: 500; font-size: clamp(30px, 4.2vw, 56px); letter-spacing: -0.025em; line-height: 1.1; quotes: "\201C" "\201D"; }
.close-mark { width: 128px; height: 128px; border-radius: 32px; box-shadow: 0 24px 60px -20px rgba(0, 102, 214, 0.85); }
.close p { color: var(--fg-muted); font-size: 18px; max-width: 520px; margin: 0 auto 30px; line-height: 1.55; }
.close .hero-note { display: block; margin-top: 16px; max-width: 460px; }

/* Pace and standards */
.halves { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.half { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.half h3 { font-size: 27px; line-height: 1.12; margin-bottom: 10px; text-wrap: balance; }
.half p { color: var(--fg-muted); font-size: 15px; line-height: 1.55; }
.half p b { color: var(--fg); font-weight: 600; }

.tabs-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 8px; }
.tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 5px; }
.tab { display: flex; align-items: center; gap: 5px; padding: 6px 7px; border-radius: 6px; background: var(--bg-well); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 9.5px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; }
.tab i { width: 5px; height: 5px; border-radius: 50%; background: var(--fg-faint); flex: none; }
.tab.needs i { background: var(--red); animation: blink 1.2s steps(2) infinite; animation-play-state: var(--home-motion-state, paused); }
.tab.needs { color: var(--fg-muted); }
.mini-pass-head .pass-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 6px; margin-left: auto; border-radius: 9px; background: var(--pass-t); color: var(--pass); font-size: 10.5px; font-weight: 700; }
.mini-pass { border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg-elev); padding: 10px; }
.mini-pass-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.mini-pass-head .cloche { width: 14px; height: 14px; color: var(--pass); }
.mini-pass-head .pass-badge { min-width: 18px; height: 18px; font-size: 10.5px; margin-left: auto; }
.mini-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--pass); font-size: 11px; margin-bottom: 5px; }
.mini-row:last-child { margin-bottom: 0; }
.mini-row .id { font-family: var(--font-mono); color: var(--fg-dim); font-size: 10px; margin-left: auto; }

.verbs { display: grid; gap: 8px; margin-top: auto; }
.verb { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 9px; background: var(--bg-elev); border: 1px solid var(--border); font-size: 13px; color: var(--fg-muted); }
.verb b { display: inline-flex; align-items: center; justify-content: center; padding: 5px 0; border-radius: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.01em; }
.verb.go b { background: var(--pass-t); color: var(--pass); }
.verb.refire b { background: var(--fire-t); color: var(--fire); }
.verb.hold b { background: var(--gray-t); color: var(--gray); }
.verb.taste b { background: color-mix(in srgb, var(--tasting) 15%, transparent); color: var(--tasting); }

/* The problem and the fix, then the standards */
.split { margin-top: 20px; }
.story { list-style: none; display: grid; gap: 12px; margin-top: 4px; }
.story li { position: relative; padding-left: 16px; color: var(--fg-muted); font-size: 15px; line-height: 1.55; }
.story li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.story li b { color: var(--fg); font-weight: 600; }
.tabs-wrap { margin-top: auto; }
.fix .mini-pass { margin-top: auto; }
.mini-row .mini-q { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-acts { display: inline-flex; gap: 4px; margin-left: auto; flex: none; }
.mini-acts span { padding: 2px 7px; border-radius: 5px; font-size: 10px; font-weight: 700; }
.mini-go { background: var(--pass-deep); color: #fff; }
.mini-re { border: 1px solid var(--border-strong); color: var(--fg-muted); }
.standards { margin-top: 28px; }
.half.wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.half.wide .verbs { margin-top: 0; }

/* The problem */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.story { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.story li { counter-increment: s; position: relative; padding: 18px 20px 18px 56px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--fg-muted); font-size: 15.5px; line-height: 1.55; }
.story li::before { content: counter(s); position: absolute; left: 20px; top: 17px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--red-t); color: var(--red); font-weight: 700; font-size: 12.5px; }
.story li b { display: block; color: var(--fg); font-weight: 650; margin-bottom: 2px; }
.noise { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.noise figcaption { font-size: 14px; color: var(--fg-dim); }
.noise-window { position: relative; flex: 1; min-height: 300px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: #0c0d10; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.noise-feed { list-style: none; position: absolute; inset: 0 0 auto 0; animation: feed 26s linear infinite; animation-play-state: var(--home-motion-state, running); }
.noise-feed li { display: flex; gap: 10px; padding: 9px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-family: var(--font-mono); font-size: 12px; color: #6c727b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noise-feed .who { color: #4f555d; flex: none; width: 13ch; }
.noise-feed li.q { color: #ff8a80; }
.noise-feed li.q .who { color: #c0625a; }
@keyframes feed { to { transform: translateY(-50%); } }

/* Our way: one ticket at the pass */
.ticket-spot { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; margin-bottom: 8px; }
.ticket-copy h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.08; margin: 0 0 14px; text-wrap: balance; }
.ticket-copy p { color: var(--fg-muted); font-size: 16.5px; line-height: 1.6; }
.ticket-copy p b { color: var(--fg); font-weight: 600; }
.ticket-card { background: #1c1c1e; color: #f5f5f7; border-radius: 18px; padding: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 100px -50px rgba(59, 155, 255, 0.5), inset 3px 0 0 #3b9bff; }
.tc-top { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #aeaeb2; }
.tc-st { font: italic 400 15px/1 var(--font-display); font-variation-settings: "SOFT" 50, "WONK" 1; }
.tc-id { font-family: var(--font-mono); font-size: 11px; color: #9a9aa0; }
.tc-stage { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: rgba(59, 155, 255, 0.18); color: #7cbbff; font-size: 11.5px; font-weight: 700; }
.tc-title { font-family: var(--font-display); font-variation-settings: "SOFT" 50, "WONK" 1; font-size: 24px; font-weight: 500; margin: 8px 0 12px; }
.tc-plates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tc-plates figure { margin: 0; display: grid; gap: 5px; }
.tc-plates figcaption { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #9a9aa0; }
.tc-plates .after figcaption { color: #7cbbff; }
.tc-plates svg { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.tc-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 8px; font-size: 12.5px; color: #aeaeb2; }
.tc-checks li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3fb950; margin-right: 6px; }
.tc-pr { font-size: 12.5px; color: #aeaeb2; }
.tc-pr span:first-child { font-family: var(--font-mono); }
.tc-pr .plus { color: #3fb950; font-weight: 600; }
.tc-pr .minus { color: #ff938a; font-weight: 600; }
.tc-acts { display: flex; gap: 8px; margin-top: 14px; }
.tc-acts span { flex: 1; text-align: center; padding: 10px; border-radius: 9px; font-weight: 700; font-size: 14px; }
.tc-go { background: #0066d6; color: #fff; }
.tc-re { box-shadow: inset 0 0 0 1px rgba(235, 235, 245, 0.2); }

/* How it works: the calls */
.map-grid.map-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 36px; }
.map-grid.map-3 .map { border-right: 1px solid var(--border); border-bottom: 0; }
.map-grid.map-3 .map:last-child { border-right: 0; }
.calls-grid { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 28px; align-items: start; margin: 44px 0; }
.calls-grid h3 { font-size: clamp(26px, 2.6vw, 34px); }
.calls-grid .verbs { margin-top: 0; }

/* How it feels */
.feel-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.service-calls { list-style: none; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #0c0d10; padding: 10px 0; }
.service-calls li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 22px; }
.service-calls li + li { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.c-chef { font: italic 400 20px/1.25 var(--font-display); font-variation-settings: "SOFT" 50, "WONK" 1; color: #f2f3f5; }
.c-line { flex: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #7cbbff; padding-top: 5px; }
.feelings { list-style: none; display: grid; gap: 18px; }
.feelings li { color: var(--fg-muted); font-size: 16.5px; line-height: 1.55; }
.feelings li b { display: block; font-family: var(--font-display); font-variation-settings: "SOFT" 50, "WONK" 1; font-weight: 500; font-size: 26px; color: var(--fg); margin-bottom: 2px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.step-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--pass); }
.step h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 50, "WONK" 0; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.step p { color: var(--fg-muted); font-size: 14.5px; line-height: 1.55; }
.step p b { color: var(--fg); font-weight: 600; }

.line-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 40px; background: var(--bg-card); }
.line-item { display: flex; align-items: center; gap: 12px; padding: 18px 18px; border-right: 1px solid var(--border); min-width: 0; }
.line-item:last-child { border-right: 0; }
.line-mark { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--mark-bg); border: 1px solid var(--mark-border); display: grid; place-items: center; }
.line-mark img { width: 18px; height: 18px; object-fit: contain; }
.line-meta { min-width: 0; }
.line-name { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-station { display: block; font-size: 11.5px; color: var(--fg-dim); white-space: nowrap; }
.line-foot { margin-top: 16px; color: var(--fg-dim); font-size: 13px; }

/* The bill: the token chart, ported from the replay chart (four rows, Claude then Codex, 0 to 40B). */
.bill-grid { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: 20px; align-items: stretch; }
.bill-stats { display: grid; gap: 20px; }
.bill-stat { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.bill-stat b { font-family: var(--font-display); font-variation-settings: "SOFT" 50, "WONK" 1; font-weight: 500; font-size: clamp(52px, 5.4vw, 72px); line-height: 0.95; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.bill-stat span { color: var(--fg-muted); font-size: 15px; line-height: 1.5; }
.bill-stat small { color: var(--fg-dim); font-size: 13px; font-variant-numeric: tabular-nums; margin-top: -4px; }
.bill-chart { margin: 0; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); padding: 26px 28px 24px; }
.bill-chart-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.bill-legend { display: flex; gap: 16px; font-size: 13px; color: var(--fg-muted); margin-bottom: 14px; }
.bill-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.sw.claude, .bill-bar .claude { background: var(--chart-claude); }
.sw.codex, .bill-bar .codex { background: var(--chart-codex); }
.bill-rows { display: grid; gap: 14px; }
.bill-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) 108px; align-items: center; gap: 14px; }
.bill-lab { font-size: 14px; font-weight: 600; color: var(--fg-muted); }
.bill-row.is-ours .bill-lab { color: var(--fg); }
.bill-bar { display: flex; height: 24px; border-radius: 4px; overflow: hidden; background: var(--bg-well); box-shadow: inset 0 0 0 1px var(--border); }
.bill-bar i { display: block; height: 100%; }
.bill-bar .codex { border-radius: 0 4px 4px 0; box-shadow: -2px 0 0 var(--bg-card); }
.bill-val { font-size: 15px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bill-val small { display: block; color: var(--fg-dim); font-size: 12px; font-weight: 500; }
.bill-note { margin-top: 18px; color: var(--fg-dim); font-size: 12.5px; line-height: 1.5; }
.bill-fine { margin-top: 16px; max-width: 760px; color: var(--fg-dim); font-size: 13px; line-height: 1.55; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0 32px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-dim); }
.footer-brand img { width: 20px; height: 20px; border-radius: 5px; }
.footer-brand b { color: var(--fg-muted); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--fg-muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--fg); }

/* Responsive */
@media (max-width: 1180px) {
  .hf-claude, .hf-codex { --s: 80px; }
  .hf-grok, .hf-cursor { --s: 68px; --y: 384px; }
  .hf-grok { --x: -33vw; }
  .hf-t3 { --x: -42vw; --y: 262px; --s: 64px; }
  .hf-gemini { --x: 42vw; --y: 262px; --s: 64px; }
  .hf-cursor { --x: 33vw; }
  .line-grid { grid-template-columns: 1fr 1fr 1fr; }
  .line-item { border-bottom: 1px solid var(--border); }
  .line-item:nth-child(3n) { border-right: 0; }
  .line-item:nth-last-child(-n + 3) { border-bottom: 0; }
  /* The pass moves above the lanes; the lanes keep a fixed height so the page does not jump. */
  .service-body { grid-template-columns: minmax(0, 1fr); }
  .pass { order: -1; }
  /* Three calls side by side, and the space for them is held so the lanes below never jump. */
  .pass { min-height: 262px; }
  .pass-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .pass-clear { display: grid; place-content: center; padding: 0; }
  .pass-help { display: none; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .bill-grid { grid-template-columns: minmax(0, 1fr); }
  .bill-stats { grid-template-columns: 1fr 1fr; }
  .problem-grid, .ticket-spot, .calls-grid, .feel-grid { grid-template-columns: minmax(0, 1fr); }
  .noise-feed li { white-space: normal; flex-wrap: wrap; row-gap: 2px; }
  .noise-feed .who { width: auto; }
  .map-grid.map-3 { grid-template-columns: 1fr; }
  .map-grid.map-3 .map { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; }
  .map-grid.map-3 .map:last-child { border-bottom: 0 !important; }
  .half.wide { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: 1fr 1fr; }
  .map { border-bottom: 1px solid var(--border); }
  .map:nth-child(odd) { border-right: 1px solid var(--border); }
  .map:nth-child(even) { border-right: 0; }
  .map:nth-last-child(-n + 2) { border-bottom: 0; }
  .halves { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .line-grid { grid-template-columns: 1fr 1fr 1fr; }
  .line-item { border-bottom: 1px solid var(--border); }
  .line-item:nth-child(3n) { border-right: 0; }
  .line-item:nth-last-child(-n + 3) { border-bottom: 0; }
  .sheet { padding: 0; }
  .sheet-inner { border-radius: 0; }
  .sheet-body { grid-template-columns: minmax(0, 1fr); align-content: start; overflow: auto; }
  .plate { overflow: visible; }
  .sheet-side { border-left: 0; border-top: 1px solid var(--sep); overflow: visible; }
}
@media (max-width: 960px) {
  /* The demo: a stage per row, tickets two across, rows sized to each stage's cap so nothing jumps. */
  .service { padding: 10px; border-radius: 18px; }
  .service-bar { flex-wrap: wrap; gap: 10px; }
  .service-counts { width: 100%; }
  .service-call { flex: 1; margin-left: 0; padding: 0 2px; }
  .service-call { min-height: 40px; align-items: flex-start; }
  .service-call [data-call] { white-space: normal; font-size: 17px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lanes { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lane { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; padding: 8px; border-radius: 12px; min-height: 0; }
  .lane header { padding: 4px 0 0 2px; align-self: start; grid-template-columns: auto 1fr; }
  .lane-sub { display: none; }
  .lane-n { grid-row: 2; grid-column: 2; margin-top: 2px; }
  .lane-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 58px; gap: 6px; min-height: 58px; }
  .lane[data-stage="1"] .lane-cards, .lane[data-stage="2"] .lane-cards, .lane[data-stage="3"] .lane-cards,
  .lane[data-stage="4"] .lane-cards, .lane[data-stage="5"] .lane-cards { min-height: 122px; }
  .tk { padding: 6px 8px; overflow: hidden; }
  .tk .tk-st { font-size: 11.5px; gap: 4px; margin-bottom: 3px; }
  .tk-t { font-size: 12px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tk .tk-m { display: none; }
  .tk .cloche { width: 13px; height: 13px; bottom: auto; top: 6px; right: 6px; }
  .tk.at-pass .tk-st { padding-right: 14px; }
  .pass { padding: 12px 10px 10px; }
  /* Room for three calls and the help line, held whether the pass is full or clear. */
  .pass { min-height: 510px; }
  .pass-list { grid-template-columns: minmax(0, 1fr); }
  .pass-help { display: block; }
  .call { padding: 9px 10px 10px; }
  .call-q { font-size: 13.5px; margin-bottom: 8px; }
  .call-actions { max-width: 360px; }
}
@media (max-width: 820px) {
  section { padding: 60px 0; }
  .close { padding: 84px 0 80px; }
  .container, .nav-inner, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 176px; padding-bottom: 36px; }
  .hero-title { font-size: clamp(36px, 10.4vw, 52px); margin-top: 8px; }
  .hero-actions { margin-bottom: 44px; }
  /* Five above the headline in an arc, T3 Code in the middle; two beside the button. */
  .hf-claude      { --x: -36vw; --y: 40px;  --s: 60px; --rot: -10deg; }
  .hf-opencode    { --x: -18vw; --y: 96px;  --s: 50px; --rot: -4deg; }
  .hf-t3          { --x: 0vw;   --y: 20px;  --s: 56px; --rot: -3deg; }
  .hf-antigravity { --x: 18vw;  --y: 96px;  --s: 50px; --rot: 5deg; }
  .hf-codex       { --x: 36vw;  --y: 40px;  --s: 60px; --rot: 8deg; }
  .hf-grok        { --x: -37vw; --y: 440px; --s: 50px; --rot: -6deg; }
  .hf-cursor      { --x: 37vw;  --y: 440px; --s: 50px; --rot: 7deg; }
  .hf-gemini      { display: none; }
  .close-title { gap: 28px; }
  .close-mark { width: 96px; height: 96px; border-radius: 24px; }
  .hero-actions .hero-note { max-width: 214px; }
  .hero-float-station { font-size: 10px; padding: 2px 7px; bottom: -10px; }
  .board-frame { border-radius: 12px; }
  .section-head { margin-bottom: 30px; }
  .map-grid { grid-template-columns: 1fr; }
  .map { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; }
  .map:last-child { border-bottom: 0 !important; }
  .beat { margin-top: 64px; }
  .beat-head p { font-size: 16px; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .half { padding: 20px; }
  .half h3 { font-size: 23px; }
  .verb { grid-template-columns: 68px 1fr; }
  .step { padding: 20px; }
  .line-grid { grid-template-columns: 1fr 1fr; }
  .line-item { padding: 14px; gap: 10px; border-right: 1px solid var(--border); }
  .line-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .line-item:nth-child(2n) { border-right: 0; }
  .line-item:nth-last-child(-n + 3) { border-bottom: 1px solid var(--border); }
  .line-item:nth-last-child(-n + 2) { border-bottom: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .bill-stats { gap: 12px; }
  .bill-stat { padding: 18px; }
  .bill-stat b { font-size: 46px; }
  .bill-stat span { font-size: 14px; line-height: 1.4; }
  .bill-stat small { font-size: 12.5px; }
  .bill-chart { padding: 18px 16px; }
  /* Label and value share a line, the bar takes the full width under them. */
  .bill-rows { gap: 16px; }
  .bill-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lab val" "bar bar"; row-gap: 7px; column-gap: 12px; align-items: end; }
  .bill-lab { grid-area: lab; }
  .bill-val { grid-area: val; display: flex; align-items: baseline; gap: 8px; }
  .bill-val small { display: inline; }
  .bill-bar { grid-area: bar; height: 20px; }
  .board { max-width: 330px; }
  .sheet-head { padding: 16px 16px 10px; }
  .sheet-track { padding: 0 16px 14px; gap: 4px; }
  .sheet-track li { font-size: 10.5px; }
  .plate { padding: 14px 16px 18px; }
  .plate-shots[data-view="split"] { grid-template-columns: 1fr; }
  .sheet-side { padding: 16px; }
}
@media (max-width: 340px) {
  .hf-opencode, .hf-antigravity, .hf-grok, .hf-cursor, .hf-t3 { --s: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .noise-feed { animation: none; }
  html { scroll-behavior: auto; }
  [data-rise] { animation: none; }
  .hero-float-card { animation: none; transform: rotate(var(--rot)); }
  .hero-float-mark { translate: none; transition: none; }
  .tk.is-new, .tk.is-leaving, .call.is-new, .sheet[open] .sheet-inner { animation: none; }
  .tab.needs i { animation: none; }
  .btn, .tk { transition: none; }
}
