:root {
  /* v0mma mentorship. Same marks as the museum (the slashed-zero wordmark, the lion painting, sand and sky taken from
     it), but a harder stage: near-black, bone type, one condensed grotesque used very large, hairlines, mono labels. */
  --ink: #05070b;
  --ink-2: #0a0d13;
  --ink-3: #10141c;
  --line: #1b212c;
  --bone: #eef1f6;
  --dim: #8a93a3;
  --sand: #dcb774; /* the accent: the ochre of the lion */
  --sky: #8fbdea;
  --blood: #ff6259;
  --ok: #7fd4a4;
  --serif: "Newsreader", Georgia, serif;
  --grot: "Hanken Grotesk", system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --logo: "Fraunces", Georgia, serif;
  --wrap: 1240px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--grot); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, canvas { max-width: 100%; display: block; }
a { color: var(--bone); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--sand); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
::selection { background: var(--sand); color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sand); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.label b { color: var(--sand); font-weight: 500; }

/* grain over everything, so the black is not flat */
body::before { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--sand); transform-origin: 0 50%; transform: scaleX(0); z-index: 95; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 60; background: rgba(7, 7, 7, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px 22px; min-height: 62px; flex-wrap: wrap; }
.brand { font-family: var(--logo); font-weight: 600; font-size: 26px; letter-spacing: 0.01em; color: var(--bone); text-decoration: none; line-height: 1; }
.brand:hover { color: var(--bone); }
.brand .o { position: relative; display: inline-block; color: var(--sand); }
.brand .o::after { content: ""; position: absolute; left: 18%; right: 18%; top: 52%; height: 2px; background: var(--sand); transform: rotate(-60deg); }
.brand-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); background: var(--sand); padding: 3px 8px 2px; }
.top nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.top nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); text-decoration: none; padding: 8px 11px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--bone); }
.top nav a.pill { color: var(--bone); border: 1px solid var(--line); margin-left: 8px; }
.top nav a.pill:hover { border-color: var(--sand); color: var(--sand); }

/* ---------- display type ---------- */
h1, h2, h3 { font-family: var(--grot); margin: 0; text-wrap: balance; }
.mega { font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.012em; font-size: clamp(64px, 12.4vw, 188px); }
.mega .line { display: block; overflow: hidden; padding-top: 0.06em; }
.mega .accent { color: var(--sand); }
.mega .out { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
h2.big { font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: 0.9; font-size: clamp(44px, 7vw, 104px); letter-spacing: -0.01em; }
h2.big em { font-style: normal; color: var(--sand); }
h3 { font-stretch: 75%; font-weight: 800; font-size: 26px; line-height: 1.08; text-transform: uppercase; letter-spacing: 0.005em; }
.lede { font-size: clamp(18px, 1.55vw, 21px); color: var(--dim); max-width: 56ch; margin: 0; }
.lede b { color: var(--bone); font-weight: 600; }

/* letters rise out of a mask */
.js [data-split] .w { display: inline-block; white-space: nowrap; }
.js [data-split] .ch { display: inline-block; transform: translateY(105%); animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--i) * 26ms + var(--d, 0ms)); }
@keyframes rise { to { transform: none; } }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--rd, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px 15px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--bone); border: 1px solid var(--line); background: transparent; cursor: pointer; overflow: hidden; isolation: isolate; transition: color 0.25s ease, border-color 0.25s ease; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--sand); transform: translateY(101%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: -1; }
.btn:hover { color: var(--ink); border-color: var(--sand); }
.btn:hover::before { transform: none; }
.btn .arr { transition: transform 0.25s ease; }
.btn:hover .arr { transform: translateX(5px); }
.btn.solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn[aria-disabled="true"] { color: var(--dim); pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 0; min-height: min(calc(100vh - 62px), 880px); display: grid; align-content: space-between; overflow: hidden; }
.hero .mega { font-size: clamp(60px, 9.4vw, 148px); }
.hero-grid { display: grid; grid-template-columns: 1fr minmax(260px, 400px); gap: 40px; align-items: end; }
.hero-art { position: relative; aspect-ratio: 2 / 3; width: 100%; margin: 0; }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art figcaption { position: absolute; left: 0; bottom: -26px; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.06em; }
.hero-copy { display: grid; gap: 28px; padding-bottom: 20px; }
.hero-meta { display: flex; gap: 12px 34px; flex-wrap: wrap; }

.ticker { margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; background: var(--ink-2); }
.ticker-track { display: inline-flex; animation: slide 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; padding: 17px 0 14px; color: var(--bone); }
.ticker span::after { content: "✕"; color: var(--blood); margin: 0 26px; font-size: 20px; vertical-align: 4px; }
.ticker span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--dim); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 120px 0; position: relative; }
.sec-head { display: grid; grid-template-columns: 180px 1fr; gap: 24px; margin-bottom: 56px; align-items: start; }
.sec-head .lede { margin-top: 22px; }
.rule { border-top: 1px solid var(--line); }

/* curriculum rows */
.rows { border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--bone); overflow: hidden; }
.row::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(216, 178, 110, 0.13), transparent 70%); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.row:hover::before { opacity: 1; }
.row .no { font-stretch: 62%; font-weight: 900; font-size: 74px; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--dim); transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.row:hover .no { color: var(--sand); -webkit-text-stroke-color: var(--sand); transform: translateX(10px); }
.row h3 { font-size: clamp(24px, 2.6vw, 36px); }
.row p { margin: 8px 0 0; color: var(--dim); max-width: 62ch; font-size: 16px; }
.row .state { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; }
.row .state::before { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; }
.row.open .state { color: var(--sand); }
.row.open .state::before { background: currentColor; }
.row.done .state { color: var(--ok); }
.row.done .state::before { background: currentColor; border-radius: 50%; }
a.row:hover { color: var(--bone); }
.row.soon { color: var(--dim); }
.row.soon h3 { color: var(--bone); opacity: 0.55; }

/* two-up panels */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pane { background: var(--ink); padding: 40px 36px 44px; display: grid; gap: 18px; align-content: start; }
.pane ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pane li { display: grid; grid-template-columns: 26px 1fr; color: var(--dim); }
.pane li b { color: var(--bone); font-weight: 600; }
.pane li::before { content: "→"; color: var(--sand); font-family: var(--mono); }
.pane.no li::before { content: "✕"; color: var(--blood); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.trio .pane { padding: 34px 30px 38px; }
.trio .pane p { margin: 0; color: var(--dim); font-size: 16px; }
.bignum { font-stretch: 62%; font-weight: 900; font-size: clamp(56px, 6.5vw, 96px); line-height: 0.85; color: var(--sand); font-variant-numeric: tabular-nums; }

.cta { text-align: left; padding: 140px 0; background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.notice { border: 1px solid var(--blood); color: var(--bone); padding: 16px 20px; font-family: var(--mono); font-size: 13px; margin: 0 0 28px; display: none; }
.notice.show { display: block; }

/* ---------- chapter page ---------- */
.chap-hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.chap-hero .mega { font-size: clamp(54px, 9.4vw, 148px); margin-top: 18px; }
.chap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 72px 0 120px; }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.toc a { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); text-decoration: none; padding: 7px 0 7px 14px; border-left: 1px solid var(--line); transition: color 0.2s ease, border-color 0.2s ease, padding 0.2s ease; }
.toc a:hover { color: var(--bone); }
.toc a.on { color: var(--sand); border-left-color: var(--sand); padding-left: 20px; }
.body { max-width: 760px; }
.body > section { padding: 0 0 84px; }
.body h2 { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 4.8vw, 64px); line-height: 0.92; margin: 6px 0 26px; }
.body h2 em { font-style: normal; color: var(--sand); }
.body h3 { margin: 44px 0 14px; display: flex; align-items: baseline; gap: 14px; }
.body h3 .n { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; color: var(--blood); font-stretch: 100%; }
.body p { margin: 0 0 18px; color: #d2cec5; }
.body p strong, .body li strong { color: var(--bone); font-weight: 700; }
.body ul, .body ol { margin: 0 0 20px; padding-left: 22px; color: #d2cec5; display: grid; gap: 8px; }
.body li::marker { color: var(--sand); font-family: var(--mono); font-size: 0.85em; }
.pull { font-stretch: 68%; font-weight: 800; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; text-transform: uppercase; color: var(--bone); border-left: 3px solid var(--sand); padding: 6px 0 6px 22px; margin: 34px 0; }
.triage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 18px 0 26px; }
.triage div { background: var(--ink-2); padding: 18px 18px 20px; font-size: 15px; color: #d2cec5; }
.triage b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; color: var(--sand); }
.triage div:nth-child(1) b { color: var(--blood); }
.triage div:nth-child(3) b { color: var(--ok); }
.triage.plain div b { color: var(--sand); }
.triage.plain div:nth-child(3) b { color: var(--blood); }

/* simulations */
.demo { border: 1px solid var(--line); background: var(--ink-2); margin: 26px 0 30px; }
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.demo-head .label b { color: var(--blood); }
.demo canvas { width: 100%; height: 300px; }
.demo-foot { display: flex; gap: 14px 22px; align-items: center; padding: 12px 16px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.demo-foot output { color: var(--bone); }
.demo-foot output b { color: var(--sand); font-weight: 500; }
.demo-foot output .bad { color: var(--blood); }
.demo-foot label { display: inline-flex; align-items: center; gap: 10px; }
.demo button { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone); background: transparent; border: 1px solid var(--line); padding: 7px 12px; cursor: pointer; }
.demo button:hover { border-color: var(--sand); color: var(--sand); }
input[type="range"] { accent-color: var(--sand); width: 170px; }

/* cases pulled from the graveyard */
.cases { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 22px 0 8px; }
.case { background: var(--ink); padding: 20px 22px 22px; display: grid; gap: 8px; text-decoration: none; color: var(--bone); transition: background 0.25s ease; }
.case:hover { background: var(--ink-3); color: var(--bone); }
.case .label { color: var(--blood); }
.case strong { font-stretch: 75%; font-weight: 800; font-size: 21px; text-transform: uppercase; line-height: 1.1; }
.case span.v { color: var(--sand); }
.case span.l { color: var(--dim); font-size: 15px; }
.cases-note { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin: 10px 0 0; }

.task { border: 1px solid var(--sand); padding: 30px 30px 32px; display: grid; gap: 14px; }
.task ol { margin: 0; }
.chap-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--dim); font-size: 13px; }
.foot .wrap { display: grid; gap: 22px; }
.foot .rowf { display: flex; justify-content: space-between; gap: 16px 30px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--dim); text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 18px; }
.foot a:hover { color: var(--bone); }
.foot p { margin: 0; max-width: 110ch; line-height: 1.6; }
.foot p b { color: var(--bone); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 300px; }
  .sec-head, .row { grid-template-columns: 1fr; gap: 12px; }
  .row .no { font-size: 54px; }
  .duo, .trio, .triage { grid-template-columns: 1fr; }
  .chap { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; grid-template-columns: 1fr 1fr; }
  section { padding: 84px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top nav a:not(.pill) { display: none; }
  .top .wrap { flex-wrap: nowrap; gap: 10px; }
  .brand-tag { letter-spacing: 0.1em; padding: 3px 6px 2px; }
  .top nav a.pill { margin-left: 0; white-space: nowrap; padding: 8px 9px; }
  .pane { padding: 28px 22px 30px; }
  .demo canvas { height: 240px; }
  .toc { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-split] .ch { transform: none; animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .btn::before { transition: none; }
}

/* ============ look v2 (2026-11-14): midnight, dot field, serif headlines, blue accent, rounded cards ============ */
html { background: var(--ink); }
body { background: transparent; font-size: 16.5px; }
body::before { display: none; }
#dots { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.top { background: rgba(5, 7, 11, 0.78); }
.top nav a, .foot a { font-family: var(--grot); font-size: 14.5px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.top nav a.pill { border-radius: 8px; }
.brand-tag { background: transparent; color: var(--sand); padding: 0; font-family: var(--serif); font-size: 21px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.label { color: var(--sand); letter-spacing: 0.2em; }
.label b { color: var(--sand); }
.mega, .hero .mega, .chap-hero .mega { font-family: var(--serif); font-stretch: 100%; font-weight: 600; text-transform: none; line-height: 1.02; letter-spacing: -0.022em; font-size: clamp(44px, 6.2vw, 92px); }
.mega .line { padding: 0.04em 0 0.1em; }
.mega .out { color: var(--dim); -webkit-text-stroke: 0; font-style: italic; font-weight: 500; }
h2.big, .body h2 { font-family: var(--serif); font-stretch: 100%; font-weight: 600; text-transform: none; line-height: 1.08; letter-spacing: -0.018em; }
h2.big { font-size: clamp(32px, 3.9vw, 54px); }
.body h2 { font-size: clamp(30px, 3.4vw, 44px); }
h2.big em, .body h2 em { font-style: italic; font-weight: 500; }
h3, .row h3, .case strong { font-family: var(--grot); font-stretch: 100%; text-transform: none; font-weight: 700; letter-spacing: -0.005em; }
h3 { font-size: 20px; }
.row h3 { font-size: clamp(20px, 1.9vw, 25px); }
.case strong { font-size: 18px; }
.pull { font-family: var(--serif); font-stretch: 100%; font-weight: 500; font-style: italic; text-transform: none; font-size: clamp(22px, 2.3vw, 29px); line-height: 1.25; }
.bignum { font-family: var(--serif); font-stretch: 100%; font-weight: 600; letter-spacing: -0.02em; }
.btn { font-family: var(--grot); font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 600; border-radius: 10px; padding: 13px 20px; background: var(--ink-2); }
.btn.solid { background: var(--sand); border-color: var(--sand); color: #04121f; }
.btn::before { background: var(--bone); }
.ticker { background: transparent; margin-top: 56px; }
.ticker span { font-family: var(--mono); font-stretch: 100%; font-weight: 400; font-size: 12.5px; letter-spacing: 0.18em; color: var(--dim); padding: 16px 0; }
.ticker span:nth-child(even) { color: var(--dim); -webkit-text-stroke: 0; }
.ticker span::after { content: "·"; color: var(--sand); margin: 0 22px; font-size: 14px; vertical-align: 0; }
.row .no { font-family: var(--mono); font-stretch: 100%; font-weight: 400; font-size: 13px; letter-spacing: 0.16em; line-height: 1.6; color: var(--sand); -webkit-text-stroke: 0; }
.row:hover .no { color: var(--bone); }
.row::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 168, 234, 0.12), transparent 70%); }
.sec-head { grid-template-columns: 1fr; gap: 14px; }
.duo, .trio, .triage, .cases, .demo, .task { border-radius: 14px; overflow: hidden; }
.pane, .case { background: var(--ink-2); }
.demo, .triage div { background: var(--ink-2); }
.task { background: var(--ink-2); border-color: var(--line); border-left: 2px solid var(--sand); }
.demo button, .chip { border-radius: 8px; }
.hero-art canvas { border-radius: 14px; }
.cta { background: transparent; }
.toc a { font-family: var(--grot); font-size: 14px; letter-spacing: 0; text-transform: none; }
.body p, .body ul, .body ol { color: #c3cad6; }

/* cards that slide sideways for ever */
.belt { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.belt-track { display: flex; gap: 12px; width: max-content; animation: slide 60s linear infinite; }
.belt:hover .belt-track { animation-play-state: paused; }
.kcard { width: 290px; flex: none; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px 20px 22px; display: grid; gap: 8px; align-content: start; }
.kcard .label { font-size: 11px; letter-spacing: 0.14em; }
.kcard b { font-size: 16px; }
.kcard p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.5; }

/* ---------- grader ---------- */
.drop { border: 1px dashed #2c3646; border-radius: 14px; background: var(--ink-2); padding: 34px 28px; display: grid; gap: 14px; justify-items: start; transition: border-color 0.2s ease, background 0.2s ease; }
.drop.over { border-color: var(--sand); background: var(--ink-3); }
.drop p { margin: 0; color: var(--dim); }
.field { display: grid; gap: 6px; font-size: 13.5px; color: var(--dim); }
.field input, .field select, textarea.ask { font: 500 15px var(--grot); color: var(--bone); background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kpi { background: var(--ink-2); padding: 16px 18px 18px; }
.kpi span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.kpi b { display: block; margin-top: 8px; font-family: var(--serif); font-weight: 600; font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi b.pos { color: var(--ok); } .kpi b.neg { color: var(--blood); }
.grade { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.grade .score { font-family: var(--serif); font-weight: 600; font-size: 84px; line-height: 0.9; color: var(--sand); }
.grade .score small { font-size: 26px; color: var(--dim); }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; font-size: 15px; color: #c3cad6; }
.checks li::before { content: "✓"; color: var(--ok); font-family: var(--mono); }
.checks li.fail::before { content: "✕"; color: var(--blood); }
.checks li.na::before { content: "–"; color: var(--dim); }
.checks li b { color: var(--bone); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.t th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 400; }
table.t th:first-child, table.t td:first-child { text-align: left; }
.chart { width: 100%; height: 320px; display: block; }
.gsec { display: grid; gap: 16px; margin-top: 44px; }
.gsec > h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.015em; }
.gsec > p { margin: 0; color: var(--dim); max-width: 70ch; }
pre.out { margin: 0; white-space: pre-wrap; word-break: break-word; font: 13.5px/1.6 var(--mono); color: #c3cad6; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 18px; min-height: 80px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .belt-track { animation: none; } }

/* ============ look v3: v0mma's own. Ochre from the painting as the accent, sky blue for labels, the stage as the centrepiece ============ */
.label, .label b, .brand-tag, .row .no, .kcard .label { color: var(--sky); }
.btn.solid { color: #1b1305; }
.kpi b, .grade .score, .bignum { color: var(--bone); }
.grade .score { color: var(--sand); }
h2.big em, .body h2 em, .mega .accent { color: var(--sand); }

.stage-box { --acc: var(--sand); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ink-2); box-shadow: 0 40px 120px -60px rgba(220, 183, 116, 0.25); }
.st-tabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.st-tabs button { font: 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); background: none; border: 0; border-right: 1px solid var(--line); padding: 12px 16px; cursor: pointer; white-space: nowrap; }
.st-tabs button:hover { color: var(--bone); }
.st-tabs button[aria-selected="true"] { color: var(--bone); background: var(--ink); box-shadow: inset 0 -2px 0 var(--acc); }
.st-tabs .st-sp { flex: 1; }
.st-tabs .st-ctl { border-right: 0; border-left: 1px solid var(--line); }
.st-tabs .st-ctl[aria-pressed="true"] { color: var(--acc); }
.st-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 10px 16px 0; font: 11px var(--mono); letter-spacing: 0.04em; color: var(--dim); }
.st-strip b { color: var(--acc); font-weight: 500; }
.st-view { position: relative; height: min(64vh, 520px); min-height: 340px; }
.st-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-cap { margin: 0; padding: 12px 16px 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14.5px; line-height: 1.5; min-height: 4.4em; }
.chap-stage { padding: 28px 0 0; }
.chap-stage .st-view { height: min(52vh, 420px); }
