/* ContextDepth project page */
:root {
  --bg: #ffffff;
  --tint: #f7f7fb;
  --ink: #12121c;
  --ink-2: #474759;
  --ink-3: #85859a;
  --line: #e8e8f0;
  --line-2: #d9d9e6;
  --accent: #5b47e0;
  --accent-ink: #4635c4;
  --accent-soft: #efecff;
  --base: #a9824a;          /* query-only / baseline */
  --base-soft: #f6efe3;
  --good: #16935a;
  --good-soft: #e3f4ea;
  --bad: #d5484d;
  --bad-soft: #fbe6e5;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18, 18, 40, .04), 0 14px 36px -18px rgba(18, 18, 40, .16);
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, canvas, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, p, figure { margin: 0; }
sub, sup { font-size: .72em; line-height: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(100% - 40px, 800px); margin-inline: auto; }
.wrap-wide { width: min(100% - 40px, 1160px); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.fine { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
em { font-family: var(--serif); font-style: italic; font-size: 1.06em; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { width: min(100% - 40px, 1160px); margin-inline: auto; height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; letter-spacing: -.01em; font-size: 16px; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 600; color: var(--accent); }
.brand-mark { width: 24px; height: 24px; border-radius: 7px; border: 1.5px dashed var(--accent); display: grid; place-items: center; }
.brand-mark i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--tint); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--accent-ink); background: var(--accent-soft); }

/* ── Hero ────────────────────────────────────────── */
.hero { padding: 64px 0 34px; text-align: center; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: -58px 0 auto 0; height: 560px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 260px at 22% 8%, rgba(91, 71, 224, .09), transparent 70%),
    radial-gradient(520px 260px at 80% 0%, rgba(50, 136, 189, .08), transparent 70%),
    radial-gradient(420px 220px at 52% 30%, rgba(253, 174, 97, .07), transparent 70%);
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; margin-bottom: 26px;
}
.eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.title { font-size: clamp(54px, 9.4vw, 108px); line-height: .98; letter-spacing: -.045em; font-weight: 700; }
.title .grad {
  background: linear-gradient(92deg, #d53e4f 0%, #f46d43 22%, #e0a03a 42%, #3fa98f 62%, #3288bd 80%, #5e4fa2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { margin-top: 18px; font-size: clamp(20px, 2.7vw, 29px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; color: var(--ink); }
.authors { margin-top: 20px; font-size: 16px; color: var(--ink-3); }
.authors a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.authors a:hover { color: var(--accent); border-color: currentColor; }
.authors sup, .affils sup { font-size: .68em; margin-left: 1px; }
.affils { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.affils span + span { margin-left: 14px; }
.lede { margin: 26px auto 0; max-width: 690px; font-size: 18.5px; line-height: 1.62; color: var(--ink-2); }
.lede strong { color: var(--ink); font-weight: 600; }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 15px; font-weight: 500;
  transition: transform .15s, box-shadow .2s, border-color .2s, background .2s;
}
.btn:hover { text-decoration: none; border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(18, 18, 40, .3); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-soon { color: var(--ink-3); cursor: default; border-style: dashed; }
.btn-soon:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.btn small { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--tint); }

/* ── Segmented control ───────────────────────────── */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: #f0f0f6; }
.seg button {
  border: 0; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 7px 15px; border-radius: 999px;
  white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(18, 18, 40, .12), 0 0 0 1px rgba(18, 18, 40, .04); }
.seg-sm button { font-size: 13px; padding: 5px 12px; }

/* ── Frames / panes ──────────────────────────────── */
.frame { position: relative; overflow: hidden; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); }
.frame > canvas, .frame > img { width: 100%; height: 100%; object-fit: cover; }
.pane-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink); text-align: left; }
.pane-label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane-label em { font: 500 12px/1 var(--mono); color: var(--ink-3); font-style: normal; white-space: nowrap; }

/* ── Wall (hero) ─────────────────────────────────── */
.wall { position: relative; height: 520vh; }
.wall-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #fff; }
#wall-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wall-veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 44% at 50% 27%, #fff 0%, #fff 54%, rgba(255, 255, 255, .9) 68%, rgba(255, 255, 255, 0) 100%); }
.wall-hero { position: absolute; left: 0; right: 0; top: 58px; padding: 38px 20px 0; text-align: center; will-change: opacity, transform; }
.wall-hero .title { font-size: clamp(50px, 8vw, 100px); }
.wall-hero .eyebrow-pill { margin-bottom: 20px; }
.wall-hero .subtitle { margin-top: 14px; }
.wall-hero .authors { margin-top: 12px; }
.wall-hero .lede { margin-top: 16px; max-width: 640px; font-size: 16.5px; line-height: 1.55; }
.wall-hero .actions { margin-top: 22px; }
.wall-rail { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); margin: 0; padding: 14px 16px; list-style: none; display: flex; flex-direction: column; gap: 11px; opacity: 0; transition: opacity .35s; pointer-events: none; border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px -14px rgba(18, 18, 40, .45), 0 0 0 1px rgba(18, 18, 40, .06); }
.wall-rail li { display: flex; align-items: center; gap: 9px; font: 500 11.5px/1 var(--mono); color: var(--ink-3); transition: color .3s; }
.wall-rail i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background .3s, transform .3s; }
.wall-rail li.on { color: var(--ink); font-weight: 600; }
.wall-rail li.on i { background: var(--accent); transform: scale(1.5); }
.wall-sweep { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 18, 40, .35), 0 0 26px rgba(18, 18, 40, .4); opacity: 0; pointer-events: none; transition: opacity .2s; will-change: transform; }
.wall-sweep span { position: absolute; top: 74px; font: 600 12.5px/1 var(--mono); color: #fff; padding: 9px 12px; border-radius: 8px; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(18, 18, 40, .55); }
.wall-sweep .sw-l { right: 14px; background: var(--accent); }
.wall-sweep .sw-r { left: 14px; background: var(--base); }
.wall-sweep.s2 .sw-l { background: var(--ink); }
.wall-sweep.s2 .sw-r { background: var(--accent); }
/* Spotlight card: solid, so nothing has to be blurred behind it while the wall animates. */
.wall-card {
  --cw: 500px; --ar: 1.3333;
  position: absolute; z-index: 6; left: 50%; top: calc(50% + 22px); width: min(var(--cw), 92vw, calc((100svh - 318px) * var(--ar)));
  transform: translate(-50%, -50%) scale(.97); padding: 16px 16px 14px; border-radius: 18px; background: #fff; pointer-events: none;
  box-shadow: 0 30px 80px -30px rgba(18, 18, 40, .55), 0 0 0 1px rgba(18, 18, 40, .07); opacity: 0; transition: opacity .35s, transform .35s, width .35s;
}
.wall-card.on { opacity: 1; transform: translate(-50%, -50%); }
.wall-card.m-depth { --cw: 800px; --ar: 4.17; }
.wall-card.m-cloud { --cw: 760px; --ar: 2.71; }
.wc-kicker { margin: 0 2px; font: 600 11.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.wc-title { margin: 9px 2px 12px; font-size: clamp(19px, 2vw, 25px); line-height: 1.18; letter-spacing: -.022em; font-weight: 650; color: var(--ink); }
.wall-card canvas { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--tint); }
.wall-card-meta { margin-top: 9px; padding: 0 2px; font: 500 12px/1.5 var(--mono); color: var(--ink-2); }
.wall-card-meta p { margin: 0; }
.wall-card-meta b { color: var(--ink); font-weight: 600; }
.wall-card-meta .up { color: var(--good); font-weight: 600; }
.wall-card-meta .tri { display: grid; gap: 10px; margin: -2px 0 8px; text-align: center; font-size: 11.5px; color: var(--line-2); }
.wall-card-meta .tri.n3 { grid-template-columns: repeat(3, 1fr); }
.wall-card-meta .tri.n2 { grid-template-columns: 1fr 1fr; }
.wall-card-meta .tri span { transition: color .3s; }
.wall-card-meta .tri span.on { color: var(--ink); font-weight: 600; }
.wc-note { margin: 8px 2px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.wall-skip { position: absolute; z-index: 7; right: 18px; bottom: 20px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .96); color: var(--ink-2); font-size: 13px; font-weight: 500; box-shadow: 0 10px 24px -12px rgba(18, 18, 40, .45); opacity: 0; pointer-events: none; transition: opacity .3s, color .2s, border-color .2s; }
.wall-skip.on { opacity: 1; pointer-events: auto; }
.wall-skip:hover { color: var(--ink); border-color: var(--ink); }
.wall-skip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }.wall-scroll { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 15px 9px; border-radius: 999px; pointer-events: none; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: rgba(255, 255, 255, .9); box-shadow: 0 10px 24px -10px rgba(18, 18, 40, .45); }
.wall-scroll i { width: 2px; height: 14px; border-radius: 1px; background: var(--ink); animation: wall-bob 1.4s ease-in-out infinite; }
@keyframes wall-bob { 0%, 100% { transform: translateY(-2px); opacity: .4; } 50% { transform: translateY(3px); opacity: 1; } }
.stage-sec { padding: 30px 0 0; }
.stage-sec .wrap-stage { margin-top: 0; }
@media (max-width: 760px) {
  .wall-rail { display: none; }
  .wall-card { padding: 13px 12px 12px; top: calc(50% + 14px); }
  .wc-note { font-size: 12.5px; }
  .wall-hero { padding-top: 22px; }
  .wall-hero .lede { display: none; }
  .wall-veil { background: radial-gradient(ellipse 110% 46% at 50% 24%, #fff 0%, #fff 56%, rgba(255, 255, 255, .9) 70%, rgba(255, 255, 255, 0) 100%); }
}
@media (max-width: 1180px) { .wall-rail { display: none; } }
@media (prefers-reduced-motion: reduce) { .wall-scroll i { animation: none; } }

/* ── Demo stage ──────────────────────────────────── */
.wrap-stage { width: min(100% - 40px, 1320px); margin-top: 46px; }
.stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: min(84vh, 780px); min-height: 540px; margin-inline: auto; isolation: isolate;
  border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-align: left;
  box-shadow: 0 1px 2px rgba(18, 18, 40, .04), 0 34px 80px -38px rgba(18, 18, 40, .32);
}
#st-cloud { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; transition: opacity .4s; border-radius: inherit; }
#st-cloud:active { cursor: grabbing; }
.stage.loading #st-cloud { opacity: 0; }
.stage[data-mode="2d"] #st-cloud { visibility: hidden; }
.st-leaders, .st-labels { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .2s; }
.st-leaders line { stroke: rgba(18, 18, 40, .7); stroke-width: 1.2; }
.st-leaders .ray { stroke: var(--ink-3); stroke-dasharray: 3 5; }
.st-leaders .gap { stroke-width: 4; stroke-linecap: round; }
.st-leaders circle { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.lab {
  position: absolute; transform: translate(-50%, -100%); white-space: nowrap; font: 600 12px/1 var(--sans); color: var(--ink);
  padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(18, 18, 40, .1);
  box-shadow: 0 8px 18px -10px rgba(18, 18, 40, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lab b { font: 600 12px/1 var(--mono); margin-left: 5px; font-variant-numeric: tabular-nums; }
.lab.pred { background: var(--base); color: #fff; border-color: transparent; transition: background .5s; }
.stage[data-state="c"] .lab.pred { background: var(--accent); }
.lab.cam { color: var(--accent-ink); }
.lab.gap { transform: translate(-50%, 0); font: 600 11.5px/1 var(--mono); padding: 5px 8px; }
.lab.m { transform: translate(-108%, -50%); padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; font: 500 11px/1 var(--mono); color: var(--ink-3); }
.glass {
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(18, 18, 40, .08); border-radius: 16px;
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 14px 36px -18px rgba(18, 18, 40, .34);
}
.seg.glass { border-radius: 999px; background: rgba(240, 240, 246, .86); }
.st-caption {
  position: absolute; left: 20px; top: 18px; max-width: min(560px, calc(100% - 370px)); pointer-events: none; padding: 11px 15px 12px;
  font-size: clamp(16px, 1.5vw, 20px); line-height: 1.34; letter-spacing: -.012em; font-weight: 500; color: var(--ink-2);
  background: rgba(255, 255, 255, .84); border: 1px solid rgba(18, 18, 40, .08); border-radius: 16px;
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 14px 36px -18px rgba(18, 18, 40, .34);
}
.st-caption b { color: var(--ink); font-weight: 650; }
.st-top { position: absolute; right: 20px; top: 18px; }
.st-hud { position: absolute; right: 20px; top: 68px; bottom: 76px; width: 292px; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.st-hud > * { pointer-events: auto; }
.hud-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 600 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.hud-h em { font: 500 10.5px/1 var(--mono); letter-spacing: 0; text-transform: none; font-style: normal; color: var(--ink-2); white-space: nowrap; }
.st-pip { padding: 12px; }
.st-pip-view { position: relative; margin-top: 9px; border-radius: 9px; overflow: hidden; background: var(--tint); }
.st-pip-zoom { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform 1s cubic-bezier(.65, .02, .22, 1); }
.st-pip-zoom img { position: absolute; max-width: none; opacity: 0; transition: opacity .45s; }
.st-pip-zoom img.on { opacity: 1; }
.st-pip-view .roi { position: absolute; border: 1.5px dashed #fff; border-radius: 3px; box-shadow: 0 0 0 1px rgba(18, 18, 40, .4); opacity: 0; pointer-events: none; transition: opacity .5s .3s, inset 1s cubic-bezier(.65, .02, .22, 1); }
.stage.ctx .st-pip-view .roi { opacity: 1; }
.st-read { padding: 13px 14px 12px; }
.st-med { margin-top: 9px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.st-med b { font: 600 27px/1 var(--mono); letter-spacing: -.045em; color: var(--base); font-variant-numeric: tabular-nums; transition: color .5s; white-space: nowrap; }
.st-med span { font: 500 10.5px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.stage[data-state="c"] .st-med b, .stage[data-state="c"] .st-kpis b { color: var(--accent); }
.stage.compact .st-med b { font-size: 19px; }
.stage.compact .st-med span { display: none; }
.stage.compact .st-kpis { grid-template-columns: 1fr; }
.stage.compact .st-kpis b { font-size: 16px; }
.st-gauge { position: relative; height: 16px; margin-top: 10px; }
.st-gauge::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 4px; border-radius: 2px; background: rgba(18, 18, 40, .1); }
.g-gt { position: absolute; top: 0; width: 2px; height: 16px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.g-pred { position: absolute; top: 2px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--base); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(18, 18, 40, .4); transition: background .5s; }
.stage[data-state="c"] .g-pred { background: var(--accent); }
.st-kpis { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-kpis span { display: block; font: 500 10.5px/1 var(--mono); color: var(--ink-3); }
.st-kpis b { display: block; margin-top: 6px; font: 600 19px/1 var(--mono); letter-spacing: -.03em; color: var(--base); font-variant-numeric: tabular-nums; transition: color .5s; white-space: nowrap; }
.hud-h2 { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(18, 18, 40, .08); }
#st-bias { opacity: 0; transition: opacity .4s; }
.stage.sel #st-bias { opacity: 1; }
.st-cands { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.st-cand { display: grid; grid-template-columns: 20px 1fr auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; font: 500 11px/1 var(--mono); color: var(--ink-2); opacity: .26; transition: opacity .4s, border-color .3s, background .3s, color .3s; font-variant-numeric: tabular-nums; }
.st-cand.on { opacity: 1; }
.st-cand.cur { background: rgba(18, 18, 40, .05); }
.st-cand.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.st-cand .bd { font: 600 9px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 3px 5px; border-radius: 4px; background: rgba(18, 18, 40, .06); color: var(--ink-3); opacity: 0; transition: opacity .4s; }
.st-cand.badge .bd { opacity: 1; }
.st-cand.sel .bd { background: var(--accent); color: #fff; }
.st-bottom { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.st-bottom > * { pointer-events: auto; }
.st-timeline { flex: 1; max-width: 540px; margin-inline: auto; display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px; }
.st-play { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; transition: transform .15s; }
.st-play:hover { transform: scale(1.06); }
.st-play svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.st-play .i-play { display: none; fill: currentColor; stroke: none; }
.stage.paused .st-play .i-play { display: inline; }
.stage.paused .st-play .i-pause { display: none; }
.st-track { position: relative; flex: 1; height: 34px; display: flex; align-items: flex-end; gap: 3px; padding-bottom: 6px; cursor: pointer; touch-action: none; }
.st-seg { position: relative; height: 6px; border-radius: 3px; background: rgba(18, 18, 40, .13); transition: background .3s; }
.st-seg em { position: absolute; left: 1px; top: -16px; font: 500 9.5px/1 var(--mono); font-style: normal; color: var(--ink-3); white-space: nowrap; transition: color .3s; }
.st-seg.on { background: rgba(91, 71, 224, .4); }
.st-seg.on em { color: var(--ink); font-weight: 600; }
.st-head { position: absolute; bottom: 2px; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); pointer-events: none; }
.st-hint { font: 500 11px/1 var(--mono); color: var(--ink-3); padding: 9px 12px; border-radius: 999px; white-space: nowrap; }
.st-legend { flex: 1; max-width: 540px; margin-inline: auto; padding: 12px 18px; }
.ex-legend { display: flex; align-items: center; gap: 14px; font: 500 11.5px/1 var(--mono); color: var(--ink-3); }
.ex-legend .bar { position: relative; flex: 1; height: 8px; border-radius: 4px; }
.ex-legend .bar span { position: absolute; top: 13px; transform: translateX(-50%); white-space: nowrap; }
.ex-legend.has-ticks { padding-bottom: 14px; }
.st-2d { position: absolute; inset: 0; background: #fff; border-radius: inherit; }
.cmp { position: absolute; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--tint); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cmp canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmp .tag { position: absolute; top: 10px; font: 600 11.5px/1 var(--mono); color: #fff; padding: 6px 9px; border-radius: 6px; pointer-events: none; }
.cmp .tag-l { left: 10px; background: var(--base); }
.cmp .tag-r { right: 10px; background: var(--accent); }
.cmp-handle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 18, 40, .25); pointer-events: none; }
.cmp-handle i { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(18, 18, 40, .35); }
.cmp-handle i::before, .cmp-handle i::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 0 2px 2px; margin-top: -4px; }
.cmp-handle i::before { left: 9px; transform: rotate(45deg); }
.cmp-handle i::after { right: 9px; transform: rotate(-135deg); }
.probe { position: absolute; z-index: 3; pointer-events: none; transform: translate(14px, 14px); background: rgba(16, 16, 26, .92); color: #fff; border-radius: 9px; padding: 9px 11px; font: 500 11.5px/1.55 var(--mono); white-space: nowrap; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .5); }
.probe.flip { transform: translate(calc(-100% - 14px), 14px); }
.probe b { font-weight: 600; }
.probe .r-q { color: #e9c58e; } .probe .r-c { color: #b7abff; } .probe .r-g { color: #fff; }
.probe small { opacity: .62; font-size: 10.5px; }
.st-strip { margin-top: 14px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.st-strip button { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--tint); aspect-ratio: 4 / 3; opacity: .66; transition: opacity .2s, border-color .2s, transform .2s; }
.st-strip button img { width: 100%; height: 100%; object-fit: cover; }
.st-strip button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 6px; font-size: 10.5px; font-weight: 600; line-height: 1.15; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(12, 12, 24, .74)); }
.st-strip button small { display: block; font-weight: 500; font-size: 9.5px; opacity: .8; }
.st-strip button i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #fff; }
.st-strip button:hover { opacity: 1; transform: translateY(-1px); }
.st-strip button[aria-selected="true"] { opacity: 1; border-color: var(--accent); }
.st-note { margin: 14px auto 0; max-width: 880px; text-align: center; }
@media (max-width: 1020px) {
  .stage { aspect-ratio: 4 / 3.3; min-height: 0; max-height: none; overflow: visible; }
  .st-hud { top: calc(100% + 14px); bottom: auto; left: 0; right: 0; width: auto; flex-direction: row; align-items: flex-start; }
  .st-hud > * { flex: 1; min-width: 0; }
  .st-caption { top: 58px; left: 14px; max-width: calc(100% - 28px); }
  .st-top { left: 14px; right: auto; top: 14px; }
  .st-hint { display: none; }
  .st-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wrap-stage { width: min(100% - 24px, 1320px); }
  .stage { aspect-ratio: 4 / 5.2; }
  .st-hud { flex-direction: column; align-items: stretch; }
  .st-bottom { flex-wrap: wrap; left: 12px; right: 12px; bottom: 12px; gap: 8px; }
  .st-timeline, .st-legend { order: 2; flex-basis: 100%; max-width: none; }
  .st-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-caption { font-size: 15px; padding: 9px 12px 10px; }
  .st-seg em { font-size: 8.5px; }
}

/* ── Key numbers ─────────────────────────────────── */
.numbers { padding: 26px 0 8px; }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.num { padding: 26px 24px 24px; border-left: 1px solid var(--line); }
.num:first-child { border-left: 0; }
.num b { display: block; font: 600 40px/1 var(--mono); letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.num:first-child b { color: var(--accent); }
.num b i { font-style: normal; color: var(--ink-3); font-weight: 400; margin: 0 -2px; }
.num > span { display: block; margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

/* ── Sections ────────────────────────────────────── */
.section { padding: 92px 0 0; }
.section-tint { margin-top: 92px; padding: 84px 0 92px; background: var(--tint); border-block: 1px solid var(--line); }
.section-tint + .section { padding-top: 84px; }
.section-tint + .section-tint { margin-top: 0; border-top: 0; }
.kicker { font: 600 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
h2 { font-size: clamp(29px, 4vw, 42px); line-height: 1.12; letter-spacing: -.032em; font-weight: 650; }
h2 em { font-weight: 500; font-size: 1.04em; letter-spacing: -.02em; }
.section-lede { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 700px; }
.wrap + .wrap-wide { margin-top: 40px; }
.prose { margin-top: 26px; }
.prose p { color: var(--ink-2); font-size: 17.5px; line-height: 1.74; }
.prose p + p { margin-top: 1.05em; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ── Video ───────────────────────────────────────── */
.video-shell { overflow: hidden; padding: 0; background: #fff; }
.video-shell video { width: 100%; aspect-ratio: 16 / 9; background: #fff; }

/* ── Method ──────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 22px 22px 24px; display: flex; flex-direction: column; }
.step header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 14px/1 var(--mono); flex: none; }
.step h3 { font-size: 18.5px; letter-spacing: -.02em; font-weight: 600; }
.step p { font-size: 15px; line-height: 1.62; color: var(--ink-2); margin-top: 16px; }
.step-viz { position: relative; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); overflow: hidden; aspect-ratio: 16 / 10.5; }

.viz-out img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.viz-out img.on { opacity: 1; }
.viz-out .roi { position: absolute; border: 2px dashed #fff; border-radius: 3px; box-shadow: 0 0 0 1px rgba(18, 18, 40, .4); }
.viz-out .roi span, .chip {
  font: 500 10.5px/1 var(--mono); color: #fff; background: rgba(18, 18, 28, .74); padding: 4px 6px; border-radius: 4px; white-space: nowrap;
}
.viz-out .roi span { position: absolute; left: 5px; bottom: 5px; }
.viz-out .chip { position: absolute; right: 8px; top: 8px; }

.viz-pred { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; padding: 6px; }
.viz-pred .cell { position: relative; border-radius: 7px; overflow: hidden; background: #fff; }
.viz-pred canvas { width: 100%; height: 100%; object-fit: cover; }
.viz-pred .cell span { position: absolute; left: 5px; bottom: 5px; font: 500 10.5px/1 var(--mono); color: #fff; background: rgba(18, 18, 28, .74); padding: 4px 6px; border-radius: 4px; }
.viz-pred .cell.q span { background: var(--base); }

.viz-sel { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; }
.viz-sel .ref { position: relative; }
.viz-sel .ref img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viz-sel .ref .chip { position: absolute; left: 7px; top: 7px; }
.viz-sel .ref .bias { position: absolute; left: 7px; right: 7px; bottom: 7px; background: rgba(255, 255, 255, .94); border-radius: 7px; padding: 7px 8px; font: 500 11px/1.35 var(--mono); color: var(--ink); }
.viz-sel .ref .bias b { color: var(--accent-ink); }
.viz-sel .list { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px 10px; background: #fff; border-left: 1px solid var(--line); }
.viz-sel .row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); color: var(--ink-2); padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line); }
.viz-sel .row .bar { height: 5px; border-radius: 3px; background: #eee; position: relative; overflow: hidden; }
.viz-sel .row .bar i { position: absolute; top: 0; bottom: 0; background: var(--ink-3); }
.viz-sel .row.elig { border-color: var(--line-2); }
.viz-sel .row.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.viz-sel .row.sel .bar i { background: var(--accent); }
.viz-sel .row .mk { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }

.math { font-family: var(--serif); font-size: 19px !important; color: var(--ink) !important; line-height: 1.5 !important; white-space: nowrap; overflow-x: auto; overflow-y: hidden; padding: 12px 0 4px; }
.math i { font-style: italic; }
.math sub { font-size: .68em; }
.hat { position: relative; display: inline-block; }
.hat::after { content: '\02C6'; position: absolute; left: .1em; right: -.14em; top: -.4em; text-align: center; font-style: normal; font-size: .95em; line-height: 1; }
.math .frac .hat::after { top: -.36em; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 3px; font-size: .9em; line-height: 1.25; }
.frac span:first-child { border-bottom: 1px solid currentColor; padding: 0 4px 1px; }
.frac span:last-child { padding: 1px 4px 0; }

.paper-fig { margin-top: 26px; }
.paper-fig-frame { overflow: hidden; padding: 14px; }
.paper-fig-frame.pad { padding: 22px 26px; }
.paper-fig-frame img { width: 100%; height: auto; border-radius: 8px; }
.paper-fig figcaption { margin: 16px auto 0; max-width: 860px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.paper-fig figcaption strong { color: var(--ink); }

/* ── Chart ───────────────────────────────────────── */
.chart { padding: 20px 24px 20px; }
.chart-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-key { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.chart-key span { display: inline-flex; align-items: center; gap: 7px; }
.k { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.k-q { background: #fff; border: 2.5px solid var(--base); }
.k-o { background: #b9aef5; }
.k-s { background: var(--accent); }
.k-line-s { width: 20px; height: 3px; border-radius: 2px; background: var(--accent); }
.k-line-d { width: 20px; height: 0; border-radius: 0; border-top: 2px dashed var(--ink-3); background: none; }
.chart-body { margin-top: 20px; position: relative; }
.row-ch { display: grid; grid-template-columns: 150px 1fr 76px; align-items: center; gap: 14px; height: 50px; border-top: 1px solid var(--line); }
.row-ch:first-of-type { border-top: 0; }
.row-ch .name { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.row-ch .name sup { color: var(--ink-3); font-weight: 400; }
.track { position: relative; height: 100%; }
.track .grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.track .span { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: linear-gradient(90deg, #e2ddfb, var(--accent)); transition: left .7s cubic-bezier(.3, .7, .2, 1), width .7s cubic-bezier(.3, .7, .2, 1), background .4s; }
.track .span.neg { background: linear-gradient(270deg, #f6d1d0, var(--bad)); }
.track .pt { position: absolute; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; transition: left .7s cubic-bezier(.3, .7, .2, 1); }
.track .pt-q { background: #fff; border: 3px solid var(--base); z-index: 2; }
.track .pt-o { background: #b9aef5; border: 2px solid #fff; z-index: 1; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }
.track .pt-s { background: var(--accent); border: 2px solid #fff; z-index: 3; box-shadow: 0 2px 6px rgba(91, 71, 224, .45); }
.track .pt-s.neg { background: var(--bad); box-shadow: 0 2px 6px rgba(213, 72, 77, .4); }
.track .lab { position: absolute; top: 50%; font: 500 11.5px/1 var(--mono); color: var(--ink-3); transform: translate(-50%, -24px); transition: left .7s cubic-bezier(.3, .7, .2, 1); white-space: nowrap; font-variant-numeric: tabular-nums; }
.track .lab-s { color: var(--ink); font-weight: 600; transform: translate(-50%, 13px); }
.row-ch .gain { font: 600 16px/1 var(--mono); letter-spacing: -.03em; text-align: right; color: var(--good); font-variant-numeric: tabular-nums; }
.row-ch .gain.neg { color: var(--bad); }
.axis { display: grid; grid-template-columns: 150px 1fr 76px; gap: 14px; margin-top: 2px; }
.axis .ticks { position: relative; height: 22px; }
.axis .ticks span { position: absolute; top: 7px; transform: translateX(-50%); font: 400 11px/1 var(--mono); color: var(--ink-3); }
.axis .cap { font: 500 11px/1 var(--mono); color: var(--ink-3); padding-top: 7px; text-align: right; }
.chart-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.chart-note b { color: var(--ink); font-weight: 600; }

/* ── Tables ──────────────────────────────────────── */
.table-card { margin-top: 18px; padding: 22px 24px 20px; }
.table-head h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.table-head p { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); max-width: 900px; }
.table-scroll { margin-top: 16px; overflow-x: auto; }
.tbl { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 820px; font: 400 13px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tbl th { font: 600 12px/1.2 var(--sans); color: var(--ink-2); padding: 8px 6px; text-align: center; white-space: nowrap; }
.tbl thead tr:first-child th { font-size: 13px; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.tbl thead tr:nth-child(2) th { color: var(--ink-2); border-bottom: 1px solid var(--line); }
.tbl thead tr:last-child th { font-weight: 500; color: var(--ink-3); border-bottom: 1.5px solid var(--ink); font-size: 11.5px; }
.tbl th.l, .tbl td.l { text-align: left; padding-left: 2px; font: 600 13.5px/1 var(--sans); color: var(--ink); white-space: nowrap; }
.tbl td { padding: 0; text-align: center; height: 34px; border-bottom: 1px solid #fff; }
.tbl td span { display: block; padding: 10px 6px; margin: 0 1px; border-radius: 5px; }
.tbl td.best span { font-weight: 600; color: var(--ink); }
.tbl td.gap, .tbl th.gap { width: 14px; min-width: 14px; }
.tbl-dense { font-size: 12px; min-width: 1040px; }
.tbl-dense td span { padding: 10px 3px; }
.tbl tbody tr:hover td.l { color: var(--accent-ink); }

/* ── On-demand formulas ──────────────────────────── */
.term {
  appearance: none; border: 0; background: none; padding: 0 2px; margin: 0 -2px; font: inherit; color: inherit; cursor: help; border-radius: 4px;
  text-decoration: underline dotted var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: background .2s, color .2s;
}
.term:hover, .term[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.step p.term-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font: 500 12.5px/1.6 var(--mono); color: var(--ink-3); }
.term-row > span { font: italic 500 16px/1 var(--serif); color: var(--accent); margin-right: -6px; }
[data-pop]:not(.term) { cursor: help; transition: box-shadow .2s; }
.viz-sel .bias[data-pop]:hover, .viz-sel .bias[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--accent); }
.viz-sel .list[data-pop]:hover, .viz-sel .list[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--accent-soft); }
.viz-sel .bias b { text-decoration: underline dotted; text-underline-offset: 3px; }
.pop {
  position: absolute; z-index: 60; width: min(400px, calc(100vw - 24px)); padding: 16px 18px 15px; background: #fff;
  border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 22px 54px -20px rgba(18, 18, 40, .38), 0 2px 8px rgba(18, 18, 40, .06);
  opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; text-align: left;
}
.pop.open { opacity: 1; transform: none; }
.pop.below { transform: translateY(-6px); }
.pop.below.open { transform: none; }
.pop::after { content: ''; position: absolute; left: var(--ax, 50%); bottom: -7px; width: 12px; height: 12px; margin-left: -6px; background: #fff; border: solid var(--line-2); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.pop.below::after { bottom: auto; top: -7px; border-width: 1px 0 0 1px; }
.pop h4 { font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pop p { margin-top: 10px; font-size: 14px; line-height: 1.58; color: var(--ink-2); }
.pop p i { font-family: var(--serif); font-size: 1.08em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Probe ───────────────────────────────────────── */
.pb { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.62fr); }
.pb-how { padding: 22px 22px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.pb-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--tint); }
.pb-stage img { position: absolute; max-width: none; width: 120%; height: 120%; left: -10%; top: -10%; object-fit: fill; }
.pb-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pb-tag { position: absolute; font: 600 10.5px/1 var(--mono); padding: 4px 6px; border-radius: 4px; pointer-events: none; white-space: nowrap; }
.pb-tag-in { transform: translate(-100%, 0) translate(-5px, 5px); background: rgba(255, 255, 255, .95); color: var(--ink); }
.pb-tag-out { transform: translate(5px, 5px); background: var(--accent); color: #fff; }
.pb-eq { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 110px; }
.pb-op { display: flex; flex-direction: column; align-items: center; gap: 9px; font: 500 11px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.pb-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 5px; background: url(../images/probe_scene.jpg) center / 120% auto no-repeat; transition: width .5s cubic-bezier(.3, .7, .2, 1), background-size .5s cubic-bezier(.3, .7, .2, 1); }
.pb-thumb.wide { overflow: hidden; box-shadow: 0 0 0 2px var(--accent); }
.pb-thumb.wide::before { content: ''; position: absolute; inset: 0; background: rgba(91, 71, 224, .44); }
.pb-thumb.wide i { position: absolute; left: 50%; top: 50%; aspect-ratio: 4 / 3; transform: translate(-50%, -50%); background: url(../images/probe_scene.jpg) center / 120% auto no-repeat; outline: 1.5px dashed #fff; transition: width .5s cubic-bezier(.3, .7, .2, 1), background-size .5s cubic-bezier(.3, .7, .2, 1); }
.pb-thumb.narrow { outline: 1.5px dashed var(--ink-2); outline-offset: 2px; }
.pb-eq > b { font: 500 26px/1 var(--serif); color: var(--ink); padding-bottom: 20px; }
.pb-res { display: flex; flex-direction: column; align-items: center; gap: 9px; font: 600 12px/1 var(--mono); color: var(--ink); }
.pb-res i { display: block; width: 26px; height: 46px; border-bottom: 1.5px solid var(--ink-3); background: linear-gradient(var(--accent), var(--accent)) center bottom / 12px 72% no-repeat; border-radius: 0; }
.pb-key { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font: 500 11.5px/1 var(--mono); color: var(--ink-3); }
.pb-key span { display: inline-flex; align-items: center; gap: 6px; }
.pb-key i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.k-ring { background: rgba(91, 71, 224, .44); box-shadow: inset 0 0 0 1.5px var(--accent); }
.k-score { background: #fff; border: 1.5px dashed var(--ink-2); }
.k-veil { background: var(--tint); box-shadow: inset 0 0 0 1px var(--line-2); }
.pb-steps { align-self: center; }
.pb-probes { padding: 22px 24px 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.pb-probe { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pb-probe header { display: flex; gap: 12px; align-items: flex-start; }
.pb-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 13px/1 var(--mono); flex: none; margin-top: 1px; }
.pb-probe h3 { font-size: 19px; letter-spacing: -.02em; font-weight: 600; line-height: 1.25; }
.pb-probe header p { margin-top: 5px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.pb-probe header svg { width: 17px; height: 17px; vertical-align: -3.5px; margin-right: 5px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pb-chart svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.pb-band { fill: var(--accent-soft); transition: x .35s cubic-bezier(.3, .7, .2, 1); }
.pb-neg { fill: rgba(213, 72, 77, .07); }
.pb-grid { stroke: var(--line); stroke-width: 1; }
.pb-zero { stroke: #b4b4c4; stroke-width: 1.2; }
.pb-tick { font: 400 9.5px var(--mono); fill: var(--ink-3); }
.pb-series { transition: opacity .25s; }
.pb-series.dim { opacity: .13; }
.pb-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: stroke-width .2s; }
.pb-series.hi .pb-line { stroke-width: 3; }
.pb-dot { stroke: #fff; stroke-width: 2; transition: r .25s; }
.pb-ghost { fill: none; stroke-width: 1.6; stroke-dasharray: 4 4; opacity: 0; transition: opacity .25s; }
.pb-series.hi .pb-ghost { opacity: .8; }
.pb-read { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pb-item { display: flex; align-items: center; gap: 7px; min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 9px; font: 500 12px/1 var(--sans); color: var(--ink-2); transition: opacity .25s, border-color .2s; }
.pb-item i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pb-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-item b { margin-left: auto; font: 600 12px/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.pb-item:hover { border-color: var(--line-2); }
.pb-item.dim { opacity: .42; }
.pb-item[aria-pressed="true"] { border-color: var(--ink); }
.pb-take { font-size: 13.5px; line-height: 1.52; color: var(--ink-2); }
.pb-note { margin-top: 14px; max-width: 900px; }
@media (max-width: 1020px) {
  .pb { grid-template-columns: 1fr; }
  .pb-how { border-right: 0; border-bottom: 1px solid var(--line); }
  .pb-stage { max-width: 460px; width: 100%; align-self: center; }
}
@media (max-width: 700px) {
  .pb-probes { grid-template-columns: 1fr; padding-inline: 16px; }
  .pb-how { padding-inline: 16px; }
}

/* ── Limits, bib, footer ─────────────────────────── */
.limits { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.limits h4 { font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.limits p { margin-top: 12px; font-size: 15.5px; line-height: 1.68; color: var(--ink-2); }
.bib { position: relative; margin-top: 26px; padding: 22px 24px; box-shadow: none; background: var(--tint); }
.bib pre { margin: 0; font: 400 13.5px/1.7 var(--mono); color: var(--ink); overflow-x: auto; white-space: pre; }
.copy { position: absolute; right: 14px; top: 14px; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 500; transition: border-color .2s, color .2s; }
.copy:hover { border-color: var(--ink); }
.copy.done { color: var(--good); border-color: var(--good); }
/* ── Agent skill ─────────────────────────────────── */
.skill { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.skill-prompt { padding: 18px; box-shadow: none; }
.skill-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.skill-tabs::-webkit-scrollbar { display: none; }
.skill-box { position: relative; margin-top: 14px; padding: 46px 18px 18px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); }
.skill-box pre { margin: 0; min-height: 132px; font: 400 13.5px/1.7 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.skill-box pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
.skill-box .copy { right: 10px; top: 10px; }
.skill-note { margin-top: 12px; min-height: 44px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.skill-links { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; font-size: 14px; color: var(--ink-3); }
.skill-links a { font-weight: 500; }
.skill-links code { font: 400 12.5px/1.4 var(--mono); color: var(--ink-2); background: var(--tint); padding: 2px 6px; border-radius: 6px; }
.skill-steps { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: skill; display: grid; gap: 22px; }
.skill-steps li { counter-increment: skill; position: relative; padding-left: 44px; }
.skill-steps li::before { content: counter(skill); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 12.5px/1 var(--mono); color: var(--accent-ink); background: var(--accent-soft); }
.skill-steps b { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.skill-steps span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.62; color: var(--ink-2); }
@media (max-width: 900px) { .skill { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.footer { margin-top: 96px; padding: 34px 0 44px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-2); font-size: 14.5px; }
.footer .fine { margin-top: 8px; }

/* ── Reveal ──────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .dial-view img, .ruler-gt, .ruler-pred, .track .pt, .track .span, .track .lab { transition: none; }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1020px) {
  .explorer { grid-template-columns: 1fr; }
  .ex-scenes { position: static; grid-template-columns: repeat(6, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-links a:not(:nth-child(-n+4)) { display: none; }
  .dial-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dial-grid .pane:first-child { grid-column: 1 / -1; }
  .dial-foot { grid-template-columns: 1fr; gap: 18px; }
  .num-grid { grid-template-columns: 1fr 1fr; }
  .num:nth-child(3) { border-left: 0; }
  .num:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .ex-2d { grid-template-columns: 1fr; }
  .ex-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .ex-metrics { grid-template-columns: 1fr; }
  .limits { grid-template-columns: 1fr; gap: 24px; }
  .section { padding-top: 68px; }
  .section-tint { margin-top: 68px; padding: 64px 0 68px; }
  .row-ch, .axis { grid-template-columns: 96px 1fr 62px; gap: 10px; }
  .row-ch .name { font-size: 13px; }
  .chart-key { margin-left: 0; }
}
@media (max-width: 560px) {
  .nav-links a:not(:nth-child(-n+3)) { display: none; }
  .nav-links a { padding: 7px 9px; }
  .nav-inner, .wrap, .wrap-wide { width: min(100% - 28px, 1160px); }
  .hero { padding-top: 40px; }
  .pane-label em { display: none; }
  .dial-stats { gap: 22px; }
  .cand dl { font-size: 10px; }
  .dial { padding: 14px 14px 14px; }
  .dial-scenes button { width: 44px; height: 32px; }
  .ex-scenes { grid-template-columns: repeat(4, 1fr); }
  .ex-main, .chart, .table-card { padding-inline: 14px; }
  .seg button { padding: 7px 11px; font-size: 13px; }
  .num b { font-size: 32px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .track .lab:not(.lab-s) { display: none; }
}

@media (max-width: 420px) {
  .nav-links a:not(:nth-child(-n+2)) { display: none; }
  .lede { font-size: 17px; }
  .ex-toolbar .seg button { padding: 6px 9px; font-size: 12.5px; }
}
