@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

/* Dark is the default surface; .light sections flip the tokens. */
:root {
  --bg: #141414;
  --bg-2: #1a1a18;
  --bg-3: #23231f;
  --text: #f4f2ec;
  --text-2: #aaa9a2;
  --text-3: #8a8982;
  --line: #2e2e2a;
  --line-2: #45443f;
  --accent: #ff7a3d;
  --accent-hover: #ff8f5c;
  --on-accent: #141414;

  --fs-13: 13px; --fs-16: 16px; --fs-20: 20px; --fs-25: 25px;
  --fs-31: 31px; --fs-39: 39px; --fs-49: 49px; --fs-61: 61px;
  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-24: 24px;
  --s-32: 32px; --s-48: 48px; --s-64: 64px; --s-96: 96px; --s-128: 128px;

  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.10);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t: 200ms;
  --max: 1200px;
  --gutter: 48px;
  --serif: "Instrument Serif", Georgia, serif;
}
.light {
  --bg: #f4f2ec;
  --bg-2: #ffffff;
  --bg-3: #ebe8e0;
  --text: #141414;
  --text-2: #55544f;
  --text-3: #66655f;
  --line: #d6d3ca;
  --line-2: #bdb9ae;
  --accent: #c2410c;
  --accent-hover: #a8380a;
  --on-accent: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-16); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
button, input, textarea { font: inherit; color: inherit; }
p { margin: 0 0 var(--s-16); max-width: 65ch; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: var(--fs-61); letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: var(--fs-49); letter-spacing: -0.04em; }
h3 { font-size: var(--fs-31); }
h4 { font-size: var(--fs-20); letter-spacing: -0.015em; line-height: 1.25; }
h1 em, h2 em, h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.skip { position: absolute; left: -9999px; top: var(--s-8); background: var(--text); color: var(--bg); padding: var(--s-12) var(--s-16); border-radius: var(--radius); z-index: 100; }
.skip:focus { left: var(--s-8); }

.wrap { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s-96) 0; background: var(--bg); color: var(--text); border-top: 1px solid var(--line); position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-8); font-size: var(--fs-13); font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: var(--s-16); }
.eyebrow::before { content: ""; width: var(--s-16); height: 1px; background: currentColor; }
.lede { font-size: var(--fs-20); line-height: 1.5; color: var(--text-2); max-width: 58ch; }
.section-head { display: grid; gap: var(--s-16); margin-bottom: var(--s-64); max-width: 840px; }
.section-head p { margin: 0; }
.mt-24 { margin-top: var(--s-24); }
.mt-32 { margin-top: var(--s-32); }
.mb-16 { margin-bottom: var(--s-16); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8); min-height: 48px; padding: var(--s-12) var(--s-24); border-radius: var(--radius); border: 1px solid transparent; font-size: var(--fs-16); font-weight: 650; text-decoration: none; cursor: pointer; transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 20, 20, 0.78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t) var(--ease); color: var(--text); }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: var(--s-24); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-12); font-weight: 700; color: var(--text); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; border-radius: var(--radius); background: var(--text); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; gap: var(--s-4); margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-size: var(--fs-13); font-weight: 600; padding: 0 var(--s-12); border-radius: var(--radius); min-height: 44px; display: inline-flex; align-items: center; transition: color var(--t) var(--ease), background-color var(--t) var(--ease); }
.nav a:hover { color: var(--text); background: rgba(244, 242, 236, 0.06); }
.header-tel { color: var(--text); text-decoration: none; font-weight: 650; font-size: var(--fs-13); min-height: 44px; display: inline-flex; align-items: center; gap: var(--s-8); padding: 0 var(--s-16); border: 1px solid var(--line-2); border-radius: var(--radius); white-space: nowrap; transition: border-color var(--t) var(--ease); }
.header-tel:hover { border-color: var(--text); color: var(--text); }
.header-tel svg { width: 16px; height: 16px; }

/* Hero */
.hero { padding: var(--s-96) 0; position: relative; overflow: hidden; border-top: 0; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(244, 242, 236, 0.10) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 50%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 60% 70% at 72% 50%, #000 15%, transparent 72%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--s-64); align-items: center; position: relative; }
.hero h1 { margin-bottom: var(--s-24); }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 0.04em 0.1em 0; margin-bottom: -0.1em; }
.hero h1 .w > span { display: inline-block; transform: translateY(110%); animation: rise 900ms var(--ease) forwards; }
@keyframes rise { to { transform: none; } }
.hero .lede { margin-bottom: var(--s-32); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-12); margin-bottom: var(--s-32); }
.trust { display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-24); font-size: var(--fs-13); color: var(--text-2); font-weight: 600; margin: 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: var(--s-8); }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); }

/* Hero orbit: a role run by agents */
.orbit { position: relative; background: rgba(26, 26, 24, 0.9); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-16); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--s-24) var(--s-48); }
.orbit canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.orbit-head { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-12); font-size: var(--fs-13); color: var(--text-3); font-weight: 600; }
.orbit-head .live { width: 8px; height: 8px; border-radius: 50%; background: var(--text); animation: ping 2s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(244, 242, 236, 0.45); } 70% { box-shadow: 0 0 0 8px rgba(244, 242, 236, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 242, 236, 0); } }
.orbit-head .pause { margin-left: auto; position: relative; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); min-height: 32px; padding: 0 var(--s-12); color: var(--text-2); font-size: var(--fs-13); font-weight: 600; cursor: pointer; transition: border-color var(--t) var(--ease), color var(--t) var(--ease); }
.orbit-head .pause::before { content: ""; position: absolute; inset: -6px; }
.orbit-head .pause:hover { color: var(--text); border-color: var(--text); }
.posting { border: 1px solid var(--line-2); border-radius: var(--radius); padding: var(--s-16); background: var(--bg-3); transition: opacity 400ms var(--ease), transform 400ms var(--ease); position: relative; z-index: 1; }
.posting.swap { opacity: 0; transform: translateY(8px); }
.posting-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-8); margin-bottom: var(--s-12); }
.posting-top b { font-size: var(--fs-16); color: var(--text); font-weight: 650; }
.posting-top span { font-size: 11px; color: var(--text-3); white-space: nowrap; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.posting ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-4); }
.posting li { font-size: var(--fs-13); color: var(--text-2); padding: 6px var(--s-8); border-radius: 4px; transition: background-color 250ms var(--ease), color 250ms var(--ease); display: flex; justify-content: space-between; gap: var(--s-8); }
.posting li.on { background: rgba(244, 242, 236, 0.09); color: var(--text); }
.posting li.done { color: var(--text); }
.posting li.done::after { content: "\2713"; color: var(--text-2); }
.agents { display: grid; gap: var(--s-8); align-content: center; position: relative; z-index: 1; }
.agent { border: 1px solid var(--line-2); border-radius: var(--radius); padding: var(--s-8) var(--s-12); font-size: var(--fs-13); font-weight: 650; color: var(--text-2); display: flex; align-items: center; gap: var(--s-8); transition: border-color 250ms var(--ease), color 250ms var(--ease), background-color 250ms var(--ease), transform 250ms var(--ease); background: var(--bg-2); }
.agent i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: background-color 250ms var(--ease); flex: none; }
.agent.on { border-color: var(--text); color: var(--text); background: var(--bg-3); transform: translateX(-4px); }
.agent.on i { background: var(--text); }
.agent.human { border-style: dashed; }
.tray { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: var(--s-16); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8); min-height: 64px; position: relative; z-index: 1; }
.tray-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-right: var(--s-8); }
.tray .chip { font-size: 11px; font-weight: 650; color: var(--text); border: 1px solid var(--line-2); background: var(--bg-3); border-radius: 999px; padding: 4px var(--s-12); animation: pop 300ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }

/* Proof strip */
.proof { padding: var(--s-32) 0; border-top: 1px solid var(--line); }
.proof-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-12) var(--s-32); }
.proof-row .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.proof-row .n { font-size: var(--fs-16); font-weight: 650; color: var(--text-2); letter-spacing: -0.01em; }
.proof-row .sep { width: 1px; height: 24px; background: var(--line-2); }

/* Shared stage panel (always dark) */
.stage { --text: #f4f2ec; --text-2: #aaa9a2; --text-3: #8a8982; --line: #2e2e2a; --line-2: #45443f; --bg-2: #1a1a18; --bg-3: #23231f; position: relative; background: #1a1a18; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.light .stage { box-shadow: var(--shadow); border-color: #141414; }
.stage-bar { display: flex; align-items: center; gap: var(--s-8); padding: var(--s-8) var(--s-16); border-bottom: 1px solid var(--line); font-size: var(--fs-13); color: var(--text-2); font-weight: 600; min-height: 52px; }
.stage-bar .dots { display: flex; gap: 6px; margin-right: var(--s-8); }
.stage-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); display: block; }
.stage-bar .replay { margin-left: auto; position: relative; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); min-height: 32px; padding: 0 var(--s-12); color: var(--text-2); font-size: var(--fs-13); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: border-color var(--t) var(--ease), color var(--t) var(--ease); }
.stage-bar .replay::before { content: ""; position: absolute; inset: -6px; }
.stage-bar .replay:hover { border-color: var(--text); color: var(--text); }
.stage-bar .replay svg { width: 12px; height: 12px; }
.stage-bar .hint { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.stage-progress { height: 2px; background: var(--line); }
.stage-progress i { display: block; height: 100%; width: 0; background: var(--text); }
.stage svg text { font-family: "Manrope", system-ui, sans-serif; }
.stage-svg { padding: var(--s-16); }
.stage-caption { padding: var(--s-12) var(--s-16); border-top: 1px solid var(--line); font-size: var(--fs-13); color: var(--text-2); min-height: 52px; display: flex; align-items: center; gap: var(--s-12); }
.stage-caption b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.stage-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.stage-split > .console { border-left: 1px solid var(--line); }

/* SVG diagram vocabulary */
.node rect { fill: #1f1f1c; stroke: var(--line-2); stroke-width: 1.2; transition: stroke 250ms var(--ease), fill 250ms var(--ease); }
.node text { fill: #8a8982; font-size: 13px; font-weight: 650; transition: fill 250ms var(--ease); }
.node text.sub { font-size: 11px; font-weight: 500; fill: #6c6b65; }
.node.done rect { stroke: #6a6963; }
.node.done text { fill: #c9c8c1; }
.node.on rect { stroke: #f4f2ec; fill: #2b2b27; }
.node.on text { fill: #f4f2ec; }
.node.on text.sub { fill: #aaa9a2; }
.wire { fill: none; stroke: var(--line-2); stroke-width: 1.4; transition: stroke 250ms var(--ease); }
.wire.lit { stroke: #8a8983; }
.packet { fill: #f4f2ec; }
.packet-halo { fill: #f4f2ec; opacity: 0.16; }

/* Console */
.console { font-size: var(--fs-13); line-height: 1.5; padding: var(--s-16); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-height: 240px; }
.console .ln { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-12); max-height: 0; opacity: 0; overflow: hidden; flex: none; transition: max-height 300ms var(--ease), opacity 300ms var(--ease), margin 300ms var(--ease); }
.console .ln.in { max-height: 96px; opacity: 1; margin-top: var(--s-8); }
.console .who { color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; padding-top: 2px; }
.console .say { color: var(--text); }
.console .tool { color: var(--text-2); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.console .tool b { color: var(--text); font-weight: 600; }

/* Scroll-driven case studies */
.work-intro { padding-bottom: var(--s-48); }
.scrub { height: 240vh; position: relative; border-top: 1px solid var(--line); }
.scrub-pin { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; align-items: center; }
.case { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-64); align-items: center; width: 100%; }
.case-copy .kicker { display: block; font-size: var(--fs-13); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-12); }
.case-copy h3 { font-size: var(--fs-39); margin-bottom: var(--s-16); }
.case-copy p { color: var(--text-2); }
.facts { list-style: none; margin: var(--s-24) 0 0; padding: 0; display: grid; gap: var(--s-12); }
.facts li { display: grid; grid-template-columns: 16px 1fr; gap: var(--s-8); color: var(--text-2); line-height: 1.5; }
.facts li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--text); }
.facts b { color: var(--text); font-weight: 650; }
.case-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-12) var(--s-24); margin-top: var(--s-24); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-8); list-style: none; padding: 0; margin: 0; }
.chips li { font-size: var(--fs-13); font-weight: 600; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: var(--s-4) var(--s-12); }
.case-link { color: var(--text); font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.case-link:hover { color: var(--text); text-decoration-thickness: 2px; }

/* AP table */
.ap-table { padding: 0 var(--s-16) var(--s-16); }
.ap-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-13); font-variant-numeric: tabular-nums; }
.ap-table th { text-align: left; color: var(--text-3); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: var(--s-8); border-bottom: 1px solid var(--line); }
.ap-table td { padding: var(--s-8); border-bottom: 1px solid var(--line); color: var(--text-2); white-space: nowrap; opacity: 0.22; transition: opacity 250ms var(--ease), background-color 250ms var(--ease); }
.ap-table tr.shown td { opacity: 1; }
.ap-table td:first-child { color: var(--text); font-weight: 600; }
.ap-table .res { font-weight: 700; color: var(--text); }
.ap-table tr:not(.shown) .res { color: transparent; }
.ap-table tr.bad.shown td { background: #2b2b27; color: var(--text); }
.ap-table tr.bad.shown td:nth-child(4) { text-decoration: underline wavy; text-underline-offset: 4px; }

/* Method */
.method-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-64); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-8); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: var(--s-12); padding: var(--s-16); border-radius: var(--radius); border: 1px solid transparent; transition: background-color 300ms var(--ease), border-color 300ms var(--ease); }
.steps li::before { content: "0" counter(s); font-size: var(--fs-13); font-weight: 700; color: var(--text-3); padding-top: 4px; }
.steps li.on { background: var(--bg-2); border-color: var(--line-2); box-shadow: var(--shadow); }
.steps h4 { margin-bottom: var(--s-4); }
.steps p { margin: 0; color: var(--text-2); }
.files { padding: var(--s-16); display: grid; gap: var(--s-12); }
.file { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-12) var(--s-16); background: #1f1f1c; opacity: 0.3; transform: translateY(4px); transition: opacity 350ms var(--ease), border-color 350ms var(--ease), transform 350ms var(--ease); }
.file.in { opacity: 1; border-color: var(--line-2); transform: none; }
.file-head { display: flex; align-items: center; gap: var(--s-8); font-size: var(--fs-13); font-weight: 700; color: var(--text); }
.file-head .tag { margin-left: auto; font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line-2); padding: 2px var(--s-8); border-radius: 999px; }
.file-head svg { width: 16px; height: 16px; flex: none; }
.file pre { margin: var(--s-8) 0 0; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.file pre b { color: var(--text); font-weight: 600; }

/* Evals race */
.eval-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-48); align-items: start; }
.race { padding: var(--s-24); display: grid; gap: var(--s-24); }
.lane { display: grid; grid-template-columns: 96px 1fr 72px; gap: var(--s-16); align-items: center; }
.lane .m { font-weight: 650; font-size: var(--fs-13); color: var(--text); }
.lane .m small { display: block; font-weight: 500; color: var(--text-3); font-size: 11px; }
.dots12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.dots12 i { aspect-ratio: 1; border-radius: 4px; border: 1px solid var(--line-2); display: grid; place-items: center; font-style: normal; font-size: 11px; color: transparent; transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease); }
.dots12 i.pass { background: var(--text); border-color: var(--text); }
.dots12 i.fail { border-color: var(--text-2); color: var(--text-2); }
.dots12 i.fail::after { content: "\00D7"; }
.dots12 i.fixed { background: transparent; border: 2px solid var(--text); color: var(--text); }
.dots12 i.fixed::after { content: "\2713"; }
.lane .v { text-align: right; font-variant-numeric: tabular-nums; }
.lane .v b { display: block; font-size: var(--fs-16); font-weight: 650; color: var(--text); }
.lane .v span { font-size: 11px; color: var(--text-3); }
.race-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-12) var(--s-24); padding-top: var(--s-16); border-top: 1px solid var(--line); font-size: var(--fs-13); color: var(--text-2); }
.race-foot .legend { display: inline-flex; align-items: center; gap: var(--s-8); }
.race-foot .legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--text-2); }
.race-foot .legend i.p { background: var(--text); border-color: var(--text); }
.race-foot .legend i.x { border: 2px solid var(--text); }
.toggle { position: relative; margin-left: auto; background: transparent; border: 1px solid var(--line-2); color: var(--text); border-radius: var(--radius); min-height: 44px; padding: 0 var(--s-16); font-size: var(--fs-13); font-weight: 650; cursor: pointer; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease); }
.toggle:hover { border-color: var(--text); }
.toggle[aria-pressed="true"] { background: var(--text); color: #141414; border-color: var(--text); }
.route-table { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
.route-table th { text-align: left; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; padding: 0 var(--s-8) var(--s-12) 0; border-bottom: 1px solid var(--line); }
.route-table td { padding: var(--s-12) var(--s-8) var(--s-12) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.route-table td:first-child { font-weight: 650; }
.route-table td:last-child { color: var(--text-2); }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-24); margin-top: var(--s-48); }
.stats-row > div { border-top: 1px solid var(--text); padding-top: var(--s-16); }
.stats-row b { display: block; font-size: var(--fs-49); font-weight: 650; letter-spacing: -0.04em; line-height: 1; margin-bottom: var(--s-12); font-variant-numeric: tabular-nums; }
.stats-row span { color: var(--text-2); display: block; max-width: 28ch; }

/* Pointer glow on cards */
.glow { position: relative; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 242, 236, 0.08), transparent 60%); opacity: 0; transition: opacity 250ms var(--ease); pointer-events: none; z-index: 2; }
.glow:hover::after { opacity: 1; }
.light .glow::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(20, 20, 20, 0.05), transparent 60%); }

/* Portfolio */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-24); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t) var(--ease); color: var(--text); text-decoration: none; }
a.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--text); border-color: var(--line-2); }
.card .thumb { aspect-ratio: 16 / 10; background: var(--bg-3); overflow: hidden; border-bottom: 1px solid var(--line); position: relative; }
.card .thumb::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 16px; background: var(--bg-3); border-bottom: 1px solid var(--line); z-index: 1; }
.card .thumb img { position: absolute; top: 16px; left: 0; width: 100%; height: calc(100% - 16px); object-fit: cover; object-position: top; transition: transform 400ms var(--ease); }
a.card:hover .thumb img { transform: scale(1.03); }
.card .body { padding: var(--s-24); display: grid; gap: var(--s-8); flex: 1; align-content: start; }
.card .type { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.card p { margin: 0; color: var(--text-2); }
.card .url { margin-top: var(--s-8); font-size: var(--fs-13); font-weight: 650; color: var(--accent); }
.mini-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-48); margin-top: var(--s-48); border-top: 1px solid var(--line); }
.mini-list > * { display: grid; grid-template-columns: 1fr auto; gap: var(--s-16); padding: var(--s-16) 0; border-bottom: 1px solid var(--line); align-items: baseline; color: var(--text); text-decoration: none; min-height: 44px; }
.mini-list b { font-weight: 650; }
.mini-list span { color: var(--text-2); font-size: var(--fs-13); text-align: right; }
.mini-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* Lab */
.lab-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-24); align-items: start; }
.lab-stack { display: grid; gap: var(--s-24); align-content: start; }
.lab-feature, .lab-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lab-item video { width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.lab-body { padding: var(--s-16) var(--s-24) var(--s-24); }
.lab-body h4 { margin-bottom: var(--s-4); }
.lab-body p { margin: 0; color: var(--text-2); }
.lab-tools { display: flex; flex-wrap: wrap; gap: var(--s-8); list-style: none; padding: 0; margin: var(--s-12) 0 0; }
.lab-tools li { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px var(--s-8); }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; }
.yt video, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt-play { position: absolute; left: var(--s-16); bottom: var(--s-16); display: inline-flex; align-items: center; gap: var(--s-8); min-height: 48px; padding: 0 var(--s-24) 0 var(--s-16); border-radius: var(--radius); border: 0; background: #f4f2ec; color: #141414; font-weight: 650; cursor: pointer; box-shadow: var(--shadow); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.yt-play:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.yt-play svg { width: 20px; height: 20px; }
.lab-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-12); }
.lab-thumb { position: relative; display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); cursor: pointer; text-align: left; aspect-ratio: 16 / 9; color: var(--text); text-decoration: none; transition: border-color var(--t) var(--ease), transform var(--t) var(--ease); }
.lab-thumb:hover { border-color: var(--line-2); transform: translateY(-1px); color: var(--text); }
.lab-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lab-thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-24) var(--s-12) var(--s-8); font-size: var(--fs-13); font-weight: 650; background: linear-gradient(transparent, rgba(20, 20, 20, 0.92)); }
.lab-thumb.channel { display: grid; place-items: center; }
.lab-thumb.channel span { position: static; background: none; padding: var(--s-16); text-align: center; text-decoration: underline; text-underline-offset: 4px; }
.lab-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lab-split { display: grid; grid-template-columns: 160px 1fr; align-items: center; }
.lab-split video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }

/* Engagement */
.engage-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-64); align-items: start; }
.terms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.terms li { display: grid; grid-template-columns: 32px 1fr; gap: var(--s-16); padding: var(--s-24) 0; border-bottom: 1px solid var(--line); }
.terms .n { font-size: var(--fs-13); font-weight: 700; color: var(--text-3); padding-top: 4px; }
.terms h4 { margin-bottom: var(--s-4); }
.terms p { margin: 0; color: var(--text-2); }

/* Posting tool */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tool-form { padding: var(--s-24); display: grid; gap: var(--s-16); align-content: start; border-right: 1px solid var(--line); }
.field { display: grid; gap: var(--s-8); }
.field label { font-size: var(--fs-13); font-weight: 650; color: var(--text); }
.field textarea, .field input { width: 100%; background: #141414; border: 1px solid var(--line-2); border-radius: var(--radius); padding: var(--s-12); color: var(--text); min-height: 48px; transition: border-color var(--t) var(--ease); }
.field textarea { min-height: 192px; resize: vertical; line-height: 1.5; font-size: var(--fs-16); }
.field textarea::placeholder, .field input::placeholder { color: #77766f; }
.field textarea:focus-visible, .field input:focus-visible { outline: 2px solid #f4f2ec; outline-offset: 2px; }
.field .hint { font-size: var(--fs-13); color: var(--text-3); }
.field .err { font-size: var(--fs-13); color: #ffb08a; }
.field .err:empty { display: none; }
.field.invalid textarea, .field.invalid input { border-color: #ffb08a; }
.tool-actions { display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: center; }
.tool-actions .run { background: #f4f2ec; color: #141414; }
.tool-actions .run:hover { background: #ffffff; color: #141414; }
.btn-text { background: none; border: 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: var(--fs-13); cursor: pointer; min-height: 44px; padding: 0 var(--s-8); }
.btn-text:hover { color: var(--text); }
.tool-out { padding: var(--s-24); display: grid; gap: var(--s-16); align-content: start; min-height: 360px; }
.tool-empty { color: var(--text-3); font-size: var(--fs-13); display: grid; gap: var(--s-12); align-content: center; height: 100%; }
.tool-empty svg { width: 32px; height: 32px; color: var(--line-2); }
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-8); }
.tool-list li { display: grid; grid-template-columns: 1fr auto; gap: var(--s-12); align-items: start; padding: var(--s-8) var(--s-12); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-13); color: var(--text); background: #1f1f1c; animation: pop 300ms var(--ease) both; }
.tool-list .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px var(--s-8); white-space: nowrap; }
.tool-list .tag.me { border-style: dashed; color: var(--text); }
.tool-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-12); padding-top: var(--s-16); border-top: 1px solid var(--line); }
.tool-sum div { font-size: var(--fs-13); color: var(--text-2); }
.tool-sum b { display: block; font-size: var(--fs-25); color: var(--text); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tool-note { font-size: var(--fs-13); color: var(--text-3); margin: 0; }
.tool-out a.mail { color: var(--text); font-weight: 650; }

/* Background */
.bg-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: var(--s-64); align-items: start; }
.portrait { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: var(--bg-3); position: sticky; top: 96px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: var(--s-24); padding: var(--s-24) 0; border-bottom: 1px solid var(--line); }
.timeline .yr { font-size: var(--fs-13); font-weight: 700; color: var(--text-3); padding-top: 4px; font-variant-numeric: tabular-nums; }
.timeline h4 { margin-bottom: var(--s-4); }
.timeline .org { font-size: var(--fs-13); font-weight: 600; color: var(--text-2); margin-bottom: var(--s-8); display: block; }
.timeline p { margin: 0; color: var(--text-2); }
.creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-12); margin-top: var(--s-32); }
.creds div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-16); font-size: var(--fs-13); color: var(--text-2); }
.creds b { display: block; color: var(--text); font-size: var(--fs-16); font-weight: 650; margin-bottom: var(--s-4); }
.stack-row { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-top: var(--s-32); }
.stack-row span { font-size: var(--fs-13); font-weight: 600; border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: var(--s-4) var(--s-12); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-64); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-16); padding: var(--s-24) 0; font-size: var(--fs-20); font-weight: 650; letter-spacing: -0.015em; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: var(--fs-25); font-weight: 400; color: var(--text-3); transition: transform var(--t) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: var(--s-24); margin: 0; }

/* CTA band */
.cta-band { background: #c2410c; color: #fff; padding: var(--s-96) 0; }
.cta-band h2 { color: #fff; max-width: 18ch; margin-bottom: var(--s-24); }
.cta-band p { color: #fff; font-size: var(--fs-20); line-height: 1.5; max-width: 52ch; margin-bottom: var(--s-32); }
.cta-band .btn-light { background: #fff; color: #141414; box-shadow: var(--shadow); }
.cta-band .btn-light:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); color: #141414; }
.cta-band :focus-visible { outline-color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-16); align-items: center; }
.cta-row a.plain { color: #fff; font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }

/* Footer */
.site-footer { background: #141414; color: #aaa9a2; padding: var(--s-48) 0; font-size: var(--fs-13); border-top: 1px solid #2e2e2a; }
.footer-row { display: flex; flex-wrap: wrap; gap: var(--s-24); justify-content: space-between; align-items: center; }
.footer-row a { color: #f4f2ec; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-24); }
.nap { color: #f4f2ec; font-weight: 600; }

/* Reveal */
.has-reveal [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.has-reveal [data-reveal].in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px), (max-height: 760px) {
  /* Scrub turns into normal flow; stages autoplay in view */
  .scrub { height: auto; padding: var(--s-96) 0; }
  .scrub-pin { position: static; height: auto; display: block; }
}
@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .nav { display: none; }
  .header-tel { margin-left: auto; }
  .hero-grid, .method-grid, .eval-grid, .bg-grid, .faq-grid, .lab-grid, .engage-grid { grid-template-columns: 1fr; gap: var(--s-48); }
  .grid-3, .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: var(--fs-49); }
  h2 { font-size: var(--fs-39); }
  .case { grid-template-columns: 1fr; gap: var(--s-32); }
  .portrait { position: static; max-width: 420px; }
  .tool { grid-template-columns: 1fr; }
  .tool-form { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .section, .hero, .cta-band, .scrub { padding: var(--s-64) 0; }
  h1 { font-size: 36px; line-height: 1.06; }
  h2 { font-size: var(--fs-31); }
  .case-copy h3 { font-size: var(--fs-31); }
  .lede, .cta-band p { font-size: var(--fs-16); }
  .section-head { margin-bottom: var(--s-48); }
  .header-row { gap: var(--s-8); }
  .hero-ctas .btn { width: 100%; }
  .orbit { grid-template-columns: 1fr; gap: var(--s-16); padding: var(--s-12); }
  .agents { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agent { justify-content: center; padding: var(--s-8) var(--s-4); font-size: 11px; }
  .agent i { display: none; }
  .agent.on { transform: translateY(-2px); }
  .stage-split { grid-template-columns: 1fr; }
  .stage-split > .console { border-left: 0; border-top: 1px solid var(--line); min-height: 260px; }
  .grid-3, .mini-list, .creds, .stats-row { grid-template-columns: 1fr; }
  .stats-row b { font-size: var(--fs-39); }
  .lane { grid-template-columns: 1fr 64px; gap: var(--s-8); }
  .lane .m { grid-column: 1 / -1; }
  .dots12 { gap: 4px; }
  .timeline li { grid-template-columns: 1fr; gap: var(--s-4); }
  .faq summary { font-size: var(--fs-16); }
  .console .ln { grid-template-columns: 56px 1fr; }
  .stage-bar .dots { display: none; }
  .stage svg .node text { font-size: 17px; transform: translateY(7px); }
  .stage svg .node text.sub { display: none; }
  .ap-table { padding: 0 var(--s-8) var(--s-8); }
  .ap-table table { table-layout: fixed; }
  .ap-table th, .ap-table td { padding: var(--s-8) 2px; font-size: 11px; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
  .ap-table th:first-child, .ap-table td:first-child { width: 19%; }
  .ap-table th:last-child, .ap-table td:last-child { width: 21%; }
  .lab-split { grid-template-columns: 120px 1fr; }
  .lab-split .lab-body { padding: var(--s-12) var(--s-16); }
  .proof-row .sep { display: none; }
  .mini-list > * { grid-template-columns: 1fr; gap: 0; }
  .mini-list span { text-align: left; }
  .tool-form, .tool-out { padding: var(--s-16); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .has-reveal [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .w > span { transform: none; }
}
.hero h1 .w > span.d2 { animation-delay: 140ms; }
.muted-16 { color: var(--text-2); }
.proof-row { flex-direction: column; align-items: flex-start; gap: var(--s-12); }
.proof-row .grp { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8) var(--s-24); }
.proof-row .lbl { min-width: 192px; }
.engage-grid { grid-template-columns: 1fr; gap: var(--s-48); }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-48); }
.terms li:nth-child(-n+2) { border-top: 0; }
.tool { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
@media (max-width: 760px) { .terms { grid-template-columns: 1fr; } }
.console .tool { overflow-wrap: anywhere; }
@media (max-width: 760px) { .proof-row .lbl { min-width: 0; width: 100%; } }

/* Intro video */
.btn svg { width: 16px; height: 16px; }
.intro { padding-top: var(--s-64); }
.intro-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-16); margin-bottom: var(--s-32); }
.intro-head .eyebrow { margin: 0; order: 2; }
.player { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #000; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.player video { width: 100%; height: 100%; display: block; object-fit: cover; }
.player-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: var(--s-16); padding: var(--s-32); border: 0; background: linear-gradient(180deg, rgba(20,20,20,0) 45%, rgba(20,20,20,0.75)); color: #f4f2ec; cursor: pointer; text-align: left; }
.player-play .ring { width: 96px; height: 96px; border-radius: 50%; background: #f4f2ec; color: #141414; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 0 rgba(244,242,236,0.4); transition: transform var(--t) var(--ease); animation: ping 2.4s 3; }
.player-play .ring svg { width: 36px; height: 36px; margin-left: 4px; }
.player-play:hover .ring { transform: scale(1.05); }
.player-play .lbl { font-size: var(--fs-25); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.player-play small { display: block; font-size: var(--fs-13); font-weight: 600; color: #cfcec7; letter-spacing: 0; margin-top: var(--s-4); }
.player.playing .player-play { display: none; }
.transcript { margin-top: var(--s-16); color: var(--text-2); }
.transcript summary { cursor: pointer; font-size: var(--fs-13); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; color: var(--text); }
.transcript p { margin: var(--s-8) 0 0; }
.more { margin-top: var(--s-16); }
.more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: var(--s-8); min-height: 44px; font-size: var(--fs-13); font-weight: 700; color: var(--text); border-bottom: 1px solid var(--line-2); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: var(--fs-20); font-weight: 400; color: var(--text-3); transition: transform var(--t) var(--ease); }
.more[open] summary::after { transform: rotate(45deg); }
.more .facts { margin-top: var(--s-12); }
@media (max-width: 760px) {
  .player-play { padding: var(--s-16); gap: var(--s-12); }
  .player-play .ring { width: 56px; height: 56px; }
  .player-play .ring svg { width: 24px; height: 24px; }
  .player-play .lbl { font-size: var(--fs-16); }
}
@media (max-width: 760px) {
  .player-play { align-items: center; justify-content: center; background: rgba(20, 20, 20, 0.35); }
  .player-play .lbl { display: none; }
}

/* The Map */
.map { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-12); padding: var(--s-12) var(--s-16); border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 2px; }
.seg button { background: none; border: 0; color: var(--text-2); font-size: var(--fs-13); font-weight: 700; min-height: 40px; padding: 0 var(--s-16); border-radius: 6px; cursor: pointer; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.seg button[aria-pressed="true"] { background: var(--text); color: #141414; }
.map-legend { display: flex; gap: var(--s-16); font-size: var(--fs-13); color: var(--text-2); }
.map-legend span { display: inline-flex; align-items: center; gap: var(--s-8); }
.map-legend i { display: inline-block; }
.lg-role { width: 12px; height: 12px; border: 2px solid var(--text); border-radius: 50%; }
.lg-build { width: 10px; height: 10px; background: var(--text); }
.lg-skill { width: 8px; height: 8px; background: var(--text-2); border-radius: 50%; }
.map-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.map-body canvas { width: 100%; height: 720px; touch-action: none; }
.map-panel { border-left: 1px solid var(--line); padding: var(--s-24); display: grid; gap: var(--s-12); align-content: start; max-height: 720px; overflow: auto; }
.map-panel h3 { font-size: var(--fs-25); }
.map-panel p { margin: 0; color: var(--text-2); }
.map-panel .map-sub { color: var(--text); font-weight: 600; }
.map-panel img { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.map-type { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.map-hint { font-size: var(--fs-13); }
.map-rel { display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: center; }
.map-rel span { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.map-rel button, .map-list button { background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: 6px var(--s-12); font-size: var(--fs-13); font-weight: 600; cursor: pointer; min-height: 32px; transition: border-color var(--t) var(--ease); }
.map-rel button:hover, .map-list button:hover { border-color: var(--text); }
.map-link { font-weight: 700; color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.map-more { border-top: 1px solid var(--line); padding: 0 var(--s-16); }
.map-more summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-size: var(--fs-13); font-weight: 700; }
.map-list { display: grid; gap: var(--s-16); padding-bottom: var(--s-16); }
.map-list > div { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.map-list span { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.about-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--s-24); align-items: center; margin-top: var(--s-32); }
.about-photo { width: 120px; height: 150px; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius); }
.about-row .creds { margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .map-body { grid-template-columns: 1fr; }
  .map-panel { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .about-row { grid-template-columns: 96px 1fr; }
  .about-row .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-row .btn { grid-column: 1 / -1; justify-self: start; }
  .about-photo { width: 96px; height: 120px; }
}
@media (max-width: 760px) {
  .map-body canvas { height: 520px; }
  .map-legend { display: none; }
  .about-row .creds { grid-template-columns: 1fr; }
}

/* Usage dashboard */
.usage-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-16); margin-bottom: var(--s-32); }
.usage-stats > div { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-24) var(--s-16); background: var(--bg-2); }
.usage-stats b { display: block; font-size: var(--fs-49); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: var(--s-12); font-variant-numeric: tabular-nums; }
.usage-stats span { font-size: var(--fs-16); font-weight: 600; color: var(--text); display: block; }
.usage-stats small { display: block; font-size: var(--fs-13); font-weight: 500; color: var(--text-3); margin-top: var(--s-4); }
.usage-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-16); }
.ucard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: var(--s-24); position: relative; display: grid; gap: var(--s-16); align-content: start; }
.heat-card { grid-row: span 2; }
.ucard-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-12); }
.ucard-bar h3 { font-size: var(--fs-20); margin-right: auto; }
.ucard-foot { margin: 0; font-size: var(--fs-13); color: var(--text-3); }
.ucard-foot span { color: var(--text); font-weight: 700; display: block; margin-bottom: var(--s-4); }
.heat { position: relative; min-height: 200px; }
.heat-months { display: grid; grid-template-columns: repeat(var(--weeks), 1fr); gap: 4px; font-size: 11px; color: var(--text-3); margin-bottom: var(--s-8); }
.heat-cells { display: grid; grid-template-columns: repeat(var(--weeks), 1fr); grid-template-rows: repeat(7, auto); gap: 4px; }
.heat-cells i { display: block; aspect-ratio: 1; border-radius: 3px; background: #23231f; opacity: 0; animation: pop 400ms var(--ease) forwards; cursor: default; }
.heat-cells i.l1 { background: #4a4943; }
.heat-cells i.l2 { background: #7d7c75; }
.heat-cells i.l3 { background: #c9c8c1; }
.heat-cells i.l4 { background: #f4f2ec; }
.heat-cells i:hover { outline: 2px solid var(--accent); outline-offset: 1px; }
.heat-tip { position: absolute; z-index: 5; width: 220px; background: #f4f2ec; color: #141414; border-radius: var(--radius); padding: var(--s-8) var(--s-12); font-size: var(--fs-13); box-shadow: var(--shadow-hover); pointer-events: none; }
.heat-tip b { display: block; }
.cum { width: 100%; height: 200px; }
.cum-area { fill: rgba(244, 242, 236, 0.08); }
.cum-line { fill: none; stroke: #f4f2ec; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1200ms var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cum-labels { display: flex; justify-content: space-between; font-size: var(--fs-13); color: var(--text-3); }
.cum-labels b { color: var(--text); font-size: var(--fs-20); }
.models { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-12); }
.models li { display: grid; grid-template-columns: 150px 1fr 56px; gap: var(--s-12); align-items: center; font-size: var(--fs-13); }
.models .mn { font-weight: 700; color: var(--text); }
.models .mn small { display: block; font-weight: 500; color: var(--text-3); font-size: 11px; }
.models .mb { height: 10px; background: #23231f; border-radius: 999px; overflow: hidden; }
.models .mb i { display: block; height: 100%; width: 0; background: var(--text); border-radius: 999px; transition: width 1000ms var(--ease); }
#usage.go .models .mb i { width: var(--w); }
.models .mv { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; }
.models li:hover .mb i { background: var(--accent); }
.split-bar { display: flex; height: 32px; border-radius: var(--radius); overflow: hidden; gap: 2px; }
.split-bar i { display: block; height: 100%; width: 0; transition: width 1200ms var(--ease); }
#usage.go .split-bar i { width: var(--w); }
.split-bar .p0, .split-legend .p0 { background: #5a5953; }
.split-bar .p1, .split-legend .p1 { background: #8a8982; }
.split-bar .p2, .split-legend .p2 { background: #c9c8c1; }
.split-bar .p3, .split-legend .p3 { background: #f4f2ec; }
.split-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-8); font-size: var(--fs-13); color: var(--text-2); }
.split-legend li { display: grid; grid-template-columns: 12px 56px 1fr; gap: var(--s-8); align-items: baseline; }
.split-legend li i { width: 12px; height: 12px; border-radius: 3px; display: block; align-self: center; }
.split-legend b { color: var(--text); font-variant-numeric: tabular-nums; }
.split-legend small { display: block; grid-column: 3; color: var(--text-3); }
@media (max-width: 1080px) {
  .usage-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .usage-grid { grid-template-columns: 1fr; }
  .heat-card { grid-row: auto; }
}
@media (max-width: 760px) {
  .usage-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-stats b { font-size: var(--fs-31); }
  .heat-cells, .heat-months { gap: 2px; }
  .models li { grid-template-columns: 112px 1fr 48px; }
  .ucard { padding: var(--s-16); }
}
.heat-months, .heat-cells { grid-template-columns: repeat(var(--weeks), minmax(0, 30px)); }

/* Workflow simulator */
.sim-tasks { display: flex; flex-wrap: wrap; gap: var(--s-8); padding: var(--s-16); border-bottom: 1px solid var(--line); }
.sim-tasks button { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); border-radius: 999px; min-height: 40px; padding: 0 var(--s-16); font-size: var(--fs-13); font-weight: 700; cursor: pointer; transition: all var(--t) var(--ease); }
.sim-tasks button:hover { color: var(--text); border-color: var(--text); }
.sim-tasks button[aria-pressed="true"] { background: var(--text); color: #141414; border-color: var(--text); }
.sim-pipe { list-style: none; margin: 0; padding: var(--s-16); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-8); }
.sim-pipe li { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-8) var(--s-12); min-height: 64px; display: grid; align-content: start; gap: 2px; transition: border-color 250ms var(--ease), background-color 250ms var(--ease); position: relative; }
.sim-pipe li span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.sim-pipe li b { font-size: var(--fs-13); font-weight: 700; color: var(--text); line-height: 1.3; overflow-wrap: anywhere; }
.sim-pipe li.on { border-color: var(--text); background: #2b2b27; }
.sim-pipe li.done { border-color: var(--line-2); }
.sim-pipe li.done::after { content: "\2713"; position: absolute; top: 6px; right: 10px; font-size: 12px; color: var(--text-2); }
.sim-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-8); padding: 0 var(--s-16); }
.sim-meter div { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.sim-meter b { display: block; font-size: var(--fs-25); color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-transform: none; }
#sim .console { min-height: 220px; }
.sim-out { margin: 0 var(--s-16) var(--s-16); border: 1px solid var(--text); border-radius: var(--radius); padding: var(--s-12) var(--s-16); display: grid; gap: 2px; animation: pop 350ms var(--ease); background: #2b2b27; }
.sim-out span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.sim-out b { font-size: var(--fs-16); }
.sim-out small { color: var(--text-2); font-size: var(--fs-13); }
@media (max-width: 760px) {
  .sim-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim-pipe li:last-child { grid-column: 1 / -1; }
  .sim-meter b { font-size: var(--fs-20); }
}

/* Portfolio viewer */
.viewer { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-24); align-items: start; }
.viewer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.viewer-list button { width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: var(--radius); padding: var(--s-8) var(--s-12); cursor: pointer; display: grid; gap: 2px; min-height: 48px; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease); }
.viewer-list button b { font-size: var(--fs-16); font-weight: 700; color: var(--text-2); transition: color var(--t) var(--ease); }
.viewer-list button span { font-size: var(--fs-13); color: var(--text-3); }
.viewer-list button:hover b { color: var(--text); }
.viewer-list button[aria-pressed="true"] { background: var(--bg-2); border-color: var(--line-2); }
.viewer-list button[aria-pressed="true"] b { color: var(--text); }
.viewer-stage { position: relative; padding-right: 120px; padding-bottom: var(--s-24); }
.vd { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); }
.vd-bar { display: flex; align-items: center; gap: var(--s-12); padding: var(--s-8) var(--s-12); border-bottom: 1px solid var(--line); }
.vd-bar .dots { display: flex; gap: 6px; }
.vd-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.vd-url { flex: 1; text-align: center; font-size: var(--fs-13); color: var(--text-2); background: var(--bg); border-radius: 999px; padding: 4px var(--s-12); max-width: 360px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-dots { display: flex; gap: 4px; }
.vd-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); display: block; transition: background-color var(--t) var(--ease); }
.vd-dots i.on { background: var(--text); }
.vd-screen, .vp-screen { position: relative; overflow: hidden; background: var(--bg); }
.vd-screen { aspect-ratio: 16 / 10; }
.vd-screen img, .vp-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 500ms var(--ease), transform 700ms var(--ease); }
.vd-screen img.enter, .vp-screen img.enter { opacity: 0; transform: scale(1.02); }
.vp { position: absolute; right: 0; bottom: 0; width: 200px; border: 6px solid #2b2b27; border-radius: 28px; overflow: hidden; background: #000; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5); }
.vp-screen { aspect-ratio: 9 / 19; }
.viewer-info { margin-top: var(--s-24); max-width: 52ch; display: grid; gap: var(--s-4); }
.viewer-info span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.viewer-info p { margin: 0; color: var(--text-2); }
.viewer-info a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1080px) {
  .viewer { grid-template-columns: 1fr; }
  .viewer-list { display: flex; overflow-x: auto; gap: var(--s-8); padding-bottom: var(--s-8); scrollbar-width: thin; }
  .viewer-list li { flex: none; }
  .viewer-list button { border-color: var(--line); }
}
@media (max-width: 760px) {
  .viewer-stage { padding-right: 72px; }
  .vp { width: 110px; border-width: 4px; border-radius: 18px; }
  .vd-dots { display: none; }
}
.usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1080px) { .usage-grid { grid-template-columns: 1fr; } }

/* ===== Color system ===== */
:root {
  --violet: #9b8cff; --cyan: #3fd3e0; --lime: #b8f26a; --coral: #ff7a5c; --pink: #ff6fae; --amber: #ffc650;
  --sec: var(--violet);
}
#top { --sec: var(--violet); --sec2: var(--cyan); }
#intro { --sec: var(--cyan); --sec2: var(--violet); }
#work, #voice { --sec: var(--cyan); }
#ap { --sec: var(--amber); }
#rundle { --sec: var(--lime); }
#studio { --sec: var(--pink); }
#method { --sec: var(--violet); }
#evals { --sec: var(--lime); }
#team { --sec: var(--cyan); }
#usage { --sec: var(--pink); }
#portfolio { --sec: var(--amber); }
#lab { --sec: var(--pink); }
#background { --sec: var(--violet); }
#engage { --sec: var(--cyan); }
#faq { --sec: var(--amber); }

/* section atmosphere: soft glow in each section's color */
.section, .scrub, .hero {
  background-image:
    radial-gradient(900px 520px at 88% 8%, color-mix(in srgb, var(--sec) 13%, transparent), transparent 70%),
    radial-gradient(700px 480px at 4% 92%, color-mix(in srgb, var(--sec2, var(--sec)) 8%, transparent), transparent 70%);
  background-color: var(--bg);
}
.scrub-pin { background: transparent; }
.eyebrow { color: var(--sec); }
h1 em, h2 em, h3 em { color: var(--sec); }
.hero h1 em { color: var(--sec); }

/* diagrams take their section color */
.stage { --hl: var(--sec); }
.node.on rect { stroke: var(--hl); fill: color-mix(in srgb, var(--hl) 16%, #1f1f1c); }
.node.done rect { stroke: color-mix(in srgb, var(--hl) 45%, #45443f); }
.wire.lit { stroke: color-mix(in srgb, var(--hl) 65%, #45443f); }
.packet, .packet-halo { fill: var(--hl); }
.stage-progress i { background: var(--hl); }
.console .who { color: var(--hl); }
.stage-caption b { color: var(--hl); }
.ap-table tr.bad.shown td { background: color-mix(in srgb, var(--amber) 14%, #1f1f1c); }
.ap-table tr.bad.shown td:nth-child(4), .ap-table tr.bad.shown .res { color: var(--amber); }
.facts li::before { background: var(--sec); }
.chips li { border-color: color-mix(in srgb, var(--sec) 40%, #45443f); }

/* hero agents each have a color */
.agent[data-a="data"] { --ac: var(--cyan); }
.agent[data-a="docs"] { --ac: var(--amber); }
.agent[data-a="research"] { --ac: var(--lime); }
.agent[data-a="writing"] { --ac: var(--pink); }
.agent[data-a="build"] { --ac: var(--violet); }
.agent[data-a="evan"] { --ac: var(--coral); }
.agent i { background: var(--ac); }
.agent.on { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 16%, #23231f); }
.tray .chip { border-color: var(--ac, #45443f); background: color-mix(in srgb, var(--ac, #23231f) 14%, #23231f); }
.posting li.on { background: color-mix(in srgb, var(--violet) 18%, transparent); }
.orbit { border-color: color-mix(in srgb, var(--violet) 30%, #2e2e2a); box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 30px 80px color-mix(in srgb, var(--violet) 16%, transparent); }
.orbit-head .live { background: var(--lime); }

/* proof strip */
.proof .lbl { color: var(--text-3); }

/* method steps + simulator */
#method-steps li.on { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 10%, #1a1a18); }
.sim-pipe li:nth-child(1) { --pc: var(--violet); }
.sim-pipe li:nth-child(2) { --pc: var(--pink); }
.sim-pipe li:nth-child(3) { --pc: var(--amber); }
.sim-pipe li:nth-child(4) { --pc: var(--cyan); }
.sim-pipe li:nth-child(5) { --pc: var(--lime); }
.sim-pipe li span { color: var(--pc); }
.sim-pipe li.on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 16%, #1f1f1c); }
.sim-pipe li.done { border-color: color-mix(in srgb, var(--pc) 45%, #45443f); }
.sim-pipe li.done::after { color: var(--pc); }
.sim-meter div:nth-child(1) b { color: var(--cyan); }
.sim-meter div:nth-child(2) b { color: var(--pink); }
.sim-meter div:nth-child(3) b { color: var(--amber); }
.sim-out { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 10%, #1f1f1c); }
.sim-out span { color: var(--lime); }
.sim-tasks button[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #141414; }

/* eval race lanes */
.lane:nth-of-type(1) { --lc: var(--violet); }
.lane:nth-of-type(2) { --lc: var(--cyan); }
.lane:nth-of-type(3) { --lc: var(--lime); }
.dots12 i.pass { background: var(--lc); border-color: var(--lc); }
.dots12 i.fixed { border-color: var(--cyan); color: var(--cyan); }
.lane .v b { color: var(--lc); }
.race-foot .legend i.p { background: var(--lime); border-color: var(--lime); }
.race-foot .legend i.x { border-color: var(--cyan); }
.toggle[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); }

/* stats */
.stats-row > div:nth-child(1) b, .usage-stats > div:nth-child(1) b { color: var(--violet); }
.stats-row > div:nth-child(2) b, .usage-stats > div:nth-child(2) b { color: var(--cyan); }
.stats-row > div:nth-child(3) b, .usage-stats > div:nth-child(3) b { color: var(--lime); }
.stats-row > div:nth-child(4) b, .usage-stats > div:nth-child(4) b { color: var(--amber); }
.usage-stats > div:nth-child(5) b { color: var(--pink); }
.stats-row > div { border-top-color: currentColor; }
.stats-row > div:nth-child(1) { border-top-color: var(--violet); }
.stats-row > div:nth-child(2) { border-top-color: var(--cyan); }
.stats-row > div:nth-child(3) { border-top-color: var(--lime); }
.stats-row > div:nth-child(4) { border-top-color: var(--amber); }
.usage-stats > div { border-top: 3px solid var(--tc, var(--line)); }
.usage-stats > div:nth-child(1) { --tc: var(--violet); }
.usage-stats > div:nth-child(2) { --tc: var(--cyan); }
.usage-stats > div:nth-child(3) { --tc: var(--lime); }
.usage-stats > div:nth-child(4) { --tc: var(--amber); }
.usage-stats > div:nth-child(5) { --tc: var(--pink); }

/* usage charts */
.models li[data-src="Claude Code"] .mb i { background: var(--coral); }
.models li[data-src="Codex"] .mb i { background: var(--cyan); }
.models li:hover .mb i { filter: brightness(1.15); }
.split-bar .p0, .split-legend .p0 { background: var(--violet); }
.split-bar .p1, .split-legend .p1 { background: var(--pink); }
.split-bar .p2, .split-legend .p2 { background: var(--amber); }
.split-bar .p3, .split-legend .p3 { background: var(--lime); }

/* map legend */
.lg-role { border-color: var(--violet); }
.lg-build { background: var(--cyan); }
.lg-skill { background: var(--pink); }
.seg button[aria-pressed="true"] { background: var(--sec); color: #141414; }

/* portfolio + lab */
.viewer-list button[aria-pressed="true"] { border-color: color-mix(in srgb, var(--amber) 60%, #45443f); box-shadow: inset 3px 0 0 var(--amber); }
.vd { box-shadow: 0 30px 90px color-mix(in srgb, var(--amber) 14%, rgba(0,0,0,0.35)); }
.lab-tools li { border-color: color-mix(in srgb, var(--pink) 45%, #45443f); color: #e8c4d6; }
.card .type, .viewer-info span, .map-type, .kicker, .case-copy .kicker { color: var(--sec); }
.timeline .yr { color: var(--sec); }
.terms .n { color: var(--sec); }
.faq summary::after { color: var(--sec); }
.player { border-color: color-mix(in srgb, var(--cyan) 40%, #45443f); box-shadow: 0 30px 90px color-mix(in srgb, var(--cyan) 14%, transparent); }
.lg-skill { background: var(--c, var(--pink)); }
