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

/* Light is the default surface; [data-theme="dark"] flips the tokens. */
:root {
  --bg: #f7f4ee;
  --bg-2: #fffdf9;
  --bg-3: #efebe2;
  --text: #141414;
  --text-2: #4f4d47;
  --text-3: #66645d;
  --line: #e3ded3;
  --line-2: #c9c3b6;
  --accent: #c2410c;
  --accent-hover: #a8380a;
  --on-accent: #ffffff;
  --header-bg: rgba(247, 244, 238, 0.86);
  --tint: rgba(20, 20, 20, 0.05);
  --node-on: #f1ece1;
  --field-bg: #ffffff;
  --err: #b42318;
  --hl: var(--text);
  /* muted category colors, used only to tell map groups apart */
  --c-data: #9a6b12; --c-ai: #8a3f6f; --c-build: #a4532f; --c-delivery: #4f6e3c; --c-made: #3f5f7a;
  color-scheme: light;

  --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;
}
[data-theme="dark"] {
  --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;
  --header-bg: rgba(20, 20, 20, 0.82);
  --tint: rgba(244, 242, 236, 0.06);
  --node-on: #2b2b27;
  --field-bg: #141414;
  --err: #ffb08a;
  --c-data: #d9b25e; --c-ai: #d08ab6; --c-build: #e08d68; --c-delivery: #9fbf86; --c-made: #8fb3d1;
  color-scheme: dark;
}

*, *::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, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
h1 { font-size: var(--fs-61); }
h2 { font-size: var(--fs-49); }
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; color: var(--text-2); }
.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: var(--header-bg); 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; white-space: nowrap; 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); color: var(--bg); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; gap: var(--s-4); margin-left: auto; }
.nav a { white-space: nowrap; 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: var(--tint); }
.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; flex: none; }
.menu-btn { display: none; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; background: none; color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; transition: border-color var(--t) var(--ease); }
.menu-btn:hover { border-color: var(--text); }
.menu-btn svg { width: 16px; height: 16px; }
.theme-btn { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: none; color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; transition: border-color var(--t) var(--ease); }
.theme-btn:hover { border-color: var(--text); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .sun, [data-theme="dark"] .theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: block; }
.menu-btn .x, .menu-btn[aria-expanded="true"] .bars { display: none; }
.menu-btn[aria-expanded="true"] .x { display: inline; }

/* Hero */
.hero { padding: var(--s-64) 0 var(--s-96); position: relative; overflow: hidden; border-top: 0; }
.hero-stack { position: relative; display: grid; justify-items: center; gap: var(--s-32); text-align: center; }
.hero-head { display: grid; justify-items: center; max-width: 840px; }
.hero h1 { font-size: var(--fs-61); margin-bottom: var(--s-16); }
.hero .player { width: 100%; max-width: 1040px; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-16) var(--s-32); }
.hero .trust { justify-content: center; }
.hero .transcript { width: 100%; max-width: 1040px; margin-top: calc(-1 * var(--s-16)); text-align: left; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 0.1em 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: 0; }
.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); }

@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 */
.stage { position: relative; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.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, .vd-bar .dots { display: none; }
.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(--hl); }
.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: var(--bg-2); stroke: var(--line-2); stroke-width: 1.2; transition: stroke 250ms var(--ease), fill 250ms var(--ease); }
.node text { fill: var(--text-3); font-size: 13px; font-weight: 650; transition: fill 250ms var(--ease); }
.node text.sub { font-size: 11px; font-weight: 500; fill: var(--text-3); }
.node.done rect { stroke: var(--text-3); }
.node.done text { fill: var(--text-2); }
.node.on rect { stroke: var(--hl); fill: var(--node-on); }
.node.on text { fill: var(--text); }
.node.on text.sub { fill: var(--text-2); }
.wire { fill: none; stroke: var(--line-2); stroke-width: 1.4; transition: stroke 250ms var(--ease); }
.wire.lit { stroke: var(--text-3); }
.packet { fill: var(--hl); }
.packet-halo { fill: var(--hl); 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: var(--node-on); 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: var(--bg-3); 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: var(--bg); 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; }


/* 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); }
.model3d { position: relative; aspect-ratio: 16 / 9; background: #1f1f1c; overflow: hidden; }
.model3d-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.model3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.model3d-canvas:active { cursor: grabbing; }
.model3d.ready .model3d-poster, .model3d.ready .model3d-load { display: none; }
.model3d-load { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: var(--s-12); padding: var(--s-24); border: 0; background: linear-gradient(180deg, rgba(20,20,20,0) 45%, rgba(20,20,20,0.8)); color: #f4f2ec; cursor: pointer; text-align: left; }
.model3d-load .ring { width: 56px; height: 56px; border-radius: 50%; background: #f4f2ec; color: #141414; display: grid; place-items: center; flex: none; transition: transform var(--t) var(--ease); }
.model3d-load .ring svg { width: 26px; height: 26px; }
.model3d-load:hover .ring { transform: scale(1.06); }
.model3d-load:disabled { cursor: progress; }
.model3d-load .lbl { font-size: var(--fs-20); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.model3d-load small { display: block; font-size: var(--fs-13); font-weight: 600; color: #cfcec7; letter-spacing: 0; margin-top: var(--s-4); }
.model3d-ui { position: absolute; left: var(--s-12); right: var(--s-12); bottom: var(--s-12); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-8); pointer-events: none; }
.model3d-ui .seg { pointer-events: auto; background: rgba(20, 20, 20, 0.8); --text: #f4f2ec; --text-2: #cfcec7; --line-2: #45443f; --bg: #141414; }
.model3d-hint { font-size: var(--fs-13); font-weight: 600; color: #cfcec7; background: rgba(20, 20, 20, 0.7); padding: var(--s-4) var(--s-8); border-radius: var(--radius); }
.model3d-status { position: absolute; top: var(--s-12); left: var(--s-12); margin: 0; font-size: var(--fs-13); font-weight: 600; color: #f4f2ec; }
.model3d-status:empty { display: none; }
.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 { color: #f4f2ec; 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 { color: var(--text); 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: var(--field-bg); 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: var(--text-3); }
.field textarea:focus-visible, .field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field .hint { font-size: var(--fs-13); color: var(--text-3); }
.field .err { font-size: var(--fs-13); color: var(--err); }
.field .err:empty { display: none; }
.field.invalid textarea, .field.invalid input { border-color: var(--err); }
.tool-actions { display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: center; }
.tool-actions .run { background: var(--text); color: var(--bg); }
.tool-actions .run:hover { background: var(--text-2); color: var(--bg); }
.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: var(--bg-3); 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-list .tag.ask { border-style: dotted; }
.tool-list .tag.no { color: var(--text-3); border-color: var(--line); }
.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: var(--bg); color: var(--text-2); padding: var(--s-48) 0; font-size: var(--fs-13); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; gap: var(--s-24); justify-content: space-between; align-items: center; }
.footer-row a { color: var(--text); 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: var(--text); 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 */
/* The nav collapses into the menu before it would wrap */
@media (max-width: 1280px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: var(--s-8) var(--gutter) var(--s-16); background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-header.menu-open .nav { display: flex; }
  .nav a { font-size: var(--fs-16); }
  .menu-btn { display: inline-flex; }
  .header-tel { margin-left: auto; }
}
@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; }
  .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); }
  .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 (max-width: 480px) {
  .header-tel { width: 44px; padding: 0; justify-content: center; }
  .header-tel .tel-num { display: none; }
}
@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; }
.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; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-16); padding: var(--s-32); border: 0; border-radius: 0; background: radial-gradient(circle at 50% 50%, rgba(20,20,20,0.55), rgba(20,20,20,0.15) 65%); color: #f4f2ec; cursor: pointer; text-align: center; }
.player-play .ring { width: 112px; height: 112px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 0 rgba(194,65,12,0.5); transition: transform var(--t) var(--ease), background-color var(--t) var(--ease); animation: ping-accent 2.4s 1s 4; }
.player-play .ring svg { width: 40px; height: 40px; margin-left: 4px; }
.player-play:hover .ring { transform: scale(1.06); background: var(--accent-hover); }
.player-play .lbl { font-size: var(--fs-25); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.player-play small { display: block; font-size: var(--fs-13); font-weight: 600; color: #e4e2db; letter-spacing: 0; margin-top: var(--s-4); }
@keyframes ping-accent { 0% { box-shadow: 0 0 0 0 rgba(194,65,12,0.5); } 70%, 100% { box-shadow: 0 0 0 24px rgba(194,65,12,0); } }
.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) {
  .hero { padding: var(--s-48) 0 var(--s-64); }
  .hero h1 { font-size: 36px; }
  .hero-stack { gap: var(--s-24); }
  .hero-foot { flex-direction: column; gap: var(--s-16); }
  .hero-foot .btn { width: 100%; }
  .hero .transcript { margin-top: calc(-1 * var(--s-8)); }
  .player-play { padding: var(--s-16); gap: var(--s-8); }
  .player-play .ring { width: 72px; height: 72px; }
  .player-play .ring svg { width: 28px; height: 28px; }
  .player-play .lbl { font-size: var(--fs-16); }
}

/* 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: var(--bg); }
.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: var(--bg-3); 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); }
@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; }
  .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: var(--bg); 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: var(--node-on); }
.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: var(--node-on); }
.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); box-shadow: inset 3px 0 0 var(--text); }
.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: var(--shadow-hover); }
.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: var(--shadow-hover); }
.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: minmax(0, 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; }
  /* The phone is 38px wider than the stage padding; keep the text clear of it */
  .viewer-info { padding-right: var(--s-48); }
  .vd-dots { display: none; }
}
.usage-grid { grid-template-columns: 1fr; }
.routes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-12); }
.routes li { border: 1px solid var(--line); border-left: 3px solid var(--vc); border-radius: var(--radius); padding: var(--s-12) var(--s-16); display: grid; gap: var(--s-8); align-content: start; background: color-mix(in srgb, var(--vc) 6%, transparent); }
.routes li[data-v="claude"] { --vc: var(--text); }
.routes li[data-v="gpt"] { --vc: var(--line-2); }
.routes .rm { font-weight: 700; color: var(--text); }
.routes .rm small { display: block; font-size: var(--fs-13); font-weight: 650; color: var(--vc); letter-spacing: 0.02em; }
.routes .rd { font-size: var(--fs-13); color: var(--text-2); line-height: 1.5; }
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-24); }
.skill-fam h4 { font-size: var(--fs-13); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-12); }
.skill-fam ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-12); }
.skill-fam li { font-size: var(--fs-13); color: var(--text-2); line-height: 1.5; }
.skill-fam li b { display: block; color: var(--text); font-weight: 700; }
@media (max-width: 1080px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .routes, .skills { grid-template-columns: 1fr; } }

/* ===== Quiet color =====
   One accent (buttons, links, the CTA band). Everything else is ink on paper. */
.routes li { background: var(--bg-2); }
.routes .rm small { color: var(--text-3); }
.lg-role { border-color: var(--text); }
.lg-build { background: var(--c-made); }
.lg-skill { background: var(--c, var(--text-3)); }
.sim-out { border-color: var(--text); }
.stats-row > div { border-top-color: var(--line-2); }

/* How I help */
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-24); }
.help-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-32) var(--s-24); display: grid; gap: var(--s-12); align-content: start; box-shadow: var(--shadow); }
.help-card .n { font-size: var(--fs-13); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.help-card h3 { font-size: var(--fs-25); letter-spacing: -0.02em; line-height: 1.2; }
.help-card p { margin: 0; color: var(--text-2); }
.help-card ul { list-style: none; margin: var(--s-8) 0 0; padding: var(--s-16) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-8); font-size: var(--fs-13); color: var(--text-2); }
.help-card li { display: grid; grid-template-columns: 16px 1fr; gap: var(--s-8); }
.help-card li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--text-3); }
.help-foot { margin: var(--s-32) 0 0; color: var(--text-2); }
@media (max-width: 1080px) { .help-grid { grid-template-columns: 1fr; gap: var(--s-16); } }

/* ===== Blog ===== */
.blog .nav-inline { display: flex; position: static; flex-direction: row; gap: var(--s-24); padding: 0; border: 0; background: none; }
.post-wrap { max-width: 760px; }
.post-back { display: inline-flex; align-items: center; gap: var(--s-8); min-height: 44px; margin-bottom: var(--s-24); font-size: var(--fs-13); font-weight: 700; color: var(--text-2); text-decoration: none; }
.post-back::before { content: "\2190"; }
.post-back:hover { color: var(--text); }
.post-head { margin-bottom: var(--s-48); }
.post-meta { margin: 0 0 var(--s-16); font-size: var(--fs-13); font-weight: 600; color: var(--text-3); }
.post-head h1, .blog-index h1 { font-size: var(--fs-49); margin-bottom: var(--s-16); }
.post-head .lede { margin: 0; }
.post-body { max-width: 65ch; }
.post-body h2 { font-size: var(--fs-25); margin: var(--s-48) 0 var(--s-16); }
.post-body h3 { font-size: var(--fs-20); margin: var(--s-32) 0 var(--s-12); }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote, .post-body pre { margin: 0 0 var(--s-16); }
.post-body ul, .post-body ol { padding-left: var(--s-24); }
.post-body li { margin-bottom: var(--s-8); }
.post-body blockquote { border-left: 3px solid var(--line-2); padding-left: var(--s-16); color: var(--text-2); }
.post-body blockquote p { margin: 0 0 var(--s-12); }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body code { font-size: 0.9em; background: var(--bg-3); padding: 2px var(--s-4); border-radius: 4px; }
.post-body pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-16); overflow-x: auto; font-size: var(--fs-13); }
.post-body pre code { background: none; padding: 0; }
.post-body .table-wrap { overflow-x: auto; margin: 0 0 var(--s-24); border: 1px solid var(--line); border-radius: var(--radius); }
.post-body table { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
.post-body th, .post-body td { text-align: left; padding: var(--s-12) var(--s-16); border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { color: var(--text); font-weight: 700; background: var(--bg-2); }
.post-body td { color: var(--text-2); }
.post-body tr:last-child td { border-bottom: 0; }
.post-author { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-16); align-items: center; margin-top: var(--s-64); padding-top: var(--s-24); border-top: 1px solid var(--line); }
.post-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.post-author p { margin: 0; font-size: var(--fs-13); color: var(--text-2); }
.post-author b { color: var(--text); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-12); }
.post-list a { display: grid; gap: var(--s-4); align-content: start; height: 100%; padding: var(--s-24); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--text-2); text-decoration: none; box-shadow: var(--shadow); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.post-list a:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); transform: translateY(-1px); color: var(--text-2); }
.post-list time { font-size: var(--fs-13); font-weight: 600; color: var(--text-3); }
.post-list b { font-size: var(--fs-20); line-height: 1.3; letter-spacing: -0.02em; color: var(--text); }
.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-16); margin-bottom: var(--s-32); }
.post-empty { color: var(--text-2); }
@media (max-width: 1080px) { .post-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .post-head h1, .blog-index h1 { font-size: 36px; }
  .blog .nav-inline { gap: var(--s-16); }
  .blog .brand { white-space: nowrap; }
  .blog .nav-inline a[href="/"] { display: none; }
}
