/* Slaunt launch page: the editorial launch layout (horizon hero, article blocks,
   stop-motion pre-footer) on Slaunt's palette and type. */

@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-100_900.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/GeistMono-100_900.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../assets/fonts/InterTight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Neue Haas Display"; src: url("../assets/fonts/NeueHaasDisplayMedium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --sans: var(--f-geist);
  --tight: var(--f-inter-tight);
  --serif: var(--f-serif);
  --mono: var(--f-geist-mono);
  --page: #d9d9d9;
  --page-2: #e2e2e2;
  --page-3: #ececec;
  --line: #bababa;
  --line-soft: #c9c9c9;
  --ink: #000;
  --ink-2: #0a0a0a;
  --body: #333;
  --muted-1: #585757;
  --muted-2: #6a6a6a;
  --muted-3: #808080;
  --muted-4: #8f8f8f;
  --brown: #1f160f;
  --sepia: #d66e2c;
  --champagne: #e9d9b4;
  --champagne-edge: #9a7432;
  --rival: #c4c4c4;
  --card: #cfc3b6;
  --chart-1: #d66e2c;
  --chart-2: #7a5a22;
  --chart-3: #3f5f80;
  --chart-4: #6a6a6a;
  --chart-5: #b4aba5;
  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
  --grid-margin: 80px;
  --reading: 632px;
  --media: 848px;
  --quote: 720px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; overscroll-behavior-x: none; -webkit-text-size-adjust: 100%; }
/* Off-screen chrome (the closed menu drawer, the Sign in glow) mustn't widen the page on phones. */
body { overflow-x: clip; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────────── Hero ───────────── */
.hero {
  --hero-bg: #1f160f; --hero-light: #f6efe6;
  position: relative; height: 190vh; background: var(--hero-bg); line-height: normal;
}
.hero .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; display: block; }
.hero .fallback { position: absolute; inset: 0; background: center / cover no-repeat; display: none; }
.hero.nogl .fallback { display: block; }
.hero.nogl canvas { display: none; }
.hero #ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hero .words text { fill: var(--hero-light); font-family: var(--serif); font-weight: 400; filter: url(#intro-f); }
.hero #title { fill: var(--hero-light); font-family: var(--f-wordmark); font-weight: 500; letter-spacing: -0.06em; filter: url(#type-f); }
.hero .landing { position: absolute; inset: 0; color: var(--hero-light); visibility: hidden; pointer-events: none; }
.hero .eyebrow {
  position: absolute; left: 0; right: 0; top: var(--ttop); margin: 0; text-align: center;
  font: 500 13px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 1px 12px #1f160f66;
}
.hero .toc {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--apex) + clamp(40px, 9vh, 96px));
  width: min(360px, 100vw - 2 * var(--grid-margin)); margin: -5.5px 0 0; padding: 0; list-style: none;
  font: 400 17px/1 var(--serif); pointer-events: auto;
}
.hero .toc a { display: flex; align-items: baseline; gap: 6px; padding: 5px 0; color: inherit; text-decoration: none; transition: opacity .25s; }
.hero .toc:has(a:hover) a:not(:hover) { opacity: .5; }
.hero .toc .n { font: 11px var(--mono); }
.hero .toc .dots { flex: 1; border-bottom: 1px dotted; opacity: .45; transform: translateY(-3px); }
.hero .cue {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 12px 16px;
  background: none; border: 0; border-radius: 4px; cursor: pointer; white-space: nowrap;
  color: color-mix(in srgb, var(--hero-light) 60%, transparent); font: 400 12px var(--sans); transition: color .2s;
}
.hero .cue:hover { color: color-mix(in srgb, var(--hero-light) 90%, transparent); }
/* Hero → article: the bottom of the hero blurs progressively and fades into the page.
   The band sits just above the hero's bottom edge and stays under 20vh, so it's off-screen
   while the landed hero (120vh) is at rest. */
.hero-blend { position: relative; z-index: 2; height: 0; pointer-events: none; }
.hero-blend i, .hero-blend::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 19vh; }
.hero-blend i { -webkit-backdrop-filter: blur(var(--b)); backdrop-filter: blur(var(--b)); -webkit-mask: linear-gradient(transparent var(--m0), #000 var(--m1)); mask: linear-gradient(transparent var(--m0), #000 var(--m1)); }
.hero-blend i:nth-child(1) { --b: 2px; --m0: 0%; --m1: 30%; }
.hero-blend i:nth-child(2) { --b: 6px; --m0: 20%; --m1: 55%; }
.hero-blend i:nth-child(3) { --b: 14px; --m0: 45%; --m1: 80%; }
.hero-blend i:nth-child(4) { --b: 28px; --m0: 65%; --m1: 100%; }
.hero-blend::after { background: linear-gradient(color-mix(in srgb, var(--page) 0%, transparent), color-mix(in srgb, var(--page) 10%, transparent) 30%, color-mix(in srgb, var(--page) 35%, transparent) 55%, color-mix(in srgb, var(--page) 72%, transparent) 78%, var(--page)); }
.hero .stage.loading #ov, .hero .stage.loading .landing, .hero .stage.loading .cue { visibility: hidden; }

/* ───────────── Side TOC ───────────── */
.side-toc { position: fixed; left: 0; top: calc(50vh - 40px); z-index: 30; opacity: 0; pointer-events: none; transition: opacity .3s; }
.side-toc.visible { opacity: 1; pointer-events: auto; }
.side-toc ol { margin: 0; padding: 0; list-style: none; }
.side-toc a { position: relative; display: flex; align-items: center; width: 44px; height: 20px; text-decoration: none; }
.side-toc a::before { content: ""; width: 16px; height: 1px; flex-shrink: 0; background: var(--muted-2); opacity: .6; transition: width .25s, opacity .25s, background .25s; }
.side-toc a:hover::before { background: var(--muted-1); opacity: 1; }
.side-toc a.active::before { width: 24px; background: var(--ink); opacity: 1; }
.side-toc .tip {
  position: absolute; left: 34px; top: 50%; transform: translateY(-50%) translateX(-4px);
  padding: 3px 12px; border-radius: 999px; background: var(--ink-2); color: #fff;
  font: 400 12px/1.5 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.side-toc a:hover .tip { opacity: 1; transform: translateY(-50%); }

/* ───────────── Article (blog-post reading theme) ───────────── */
.article { padding: 128px var(--grid-margin) 96px; max-width: 1920px; margin: 0 auto; }
.article > * { width: 100%; max-width: var(--reading); margin-left: auto; margin-right: auto; }
.article p { font: 400 17px/1.75 var(--sans); color: var(--body); margin: 22px auto 0; text-wrap: pretty; }
.article p:empty { margin-top: 0; }
.article p.summary { font: 400 30px/1.25 var(--tight); letter-spacing: -0.03em; color: var(--ink-2); margin: 0 auto 48px; }
.article p.summary + p { margin-top: 0; }
.article strong { font-weight: 600; color: var(--ink-2); }
.article a { color: var(--ink-2); text-decoration: underline; text-decoration-color: #0000004d; text-underline-offset: 2px; transition: text-decoration-color .2s; }
.article a:hover { text-decoration-color: #000; }
.article code { font: .86em var(--mono); color: #1a1a1a; background: var(--page-3); border: 1px solid var(--line-soft); border-radius: 4px; padding: 2px 5px; }
.article h2 { font: 400 34px/1.1 var(--tight); letter-spacing: -0.035em; color: var(--ink-2); margin: 56px auto 20px; }
.article h3 { font: 700 21px/1.25 var(--tight); letter-spacing: -0.03em; color: var(--ink-2); margin: 40px auto 14px; }
.article h2 + h3 { margin-top: 0; }
.article h2 + p, .article h3 + p { margin-top: 0; }
.article ul.list { padding-left: 24px; color: var(--body); font: 400 17px/1.7 var(--sans); margin: 20px auto 0; }
.article ul.list li { margin: 6px 0; }
.article ul.list li::marker { color: #9a9a9a; }
.article .anchor { display: block; height: 0; }
.article [id] { scroll-margin-top: 100px; }
.article .media { max-width: var(--media); margin: 64px auto; }
.article .media + p { margin-top: 0; }
.article .media.narrow { max-width: var(--reading); }
.sample-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 2px 8px; border-radius: 999px;
  border: 1px dashed var(--muted-3); color: var(--muted-1); font: 500 11px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle;
}

/* Plan grid (the launch page's benchmark grid) */
.bench { --hl: var(--champagne); --rival: var(--rival); --edge: var(--champagne-edge); }
.bench table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font: 400 14px/1.4 var(--sans); color: var(--ink); }
.bench th, .bench td { border-bottom: 1px solid var(--ink); border-left: 1px solid var(--ink); text-align: left; vertical-align: top; height: 60px; padding: 10px 12px; font-weight: 400; background: var(--page); }
.bench thead th, .bench thead td { border-top: 1px solid var(--ink); height: 46px; vertical-align: baseline; font-weight: 600; white-space: nowrap; }
.bench thead th small { display: block; font-weight: 400; color: var(--muted-1); margin-top: 2px; }
.bench tr > :last-child { border-right: 1px solid var(--ink); }
.bench col.label { width: 260px; }
.bench .cat { display: block; font-weight: 600; }
.bench .b { display: block; margin-top: 4px; color: var(--muted-1); line-height: 1.25; }
.bench .v { display: block; }
.bench .v.bold { font-weight: 600; }
.bench .v.no { color: var(--muted-3); }
.bench .win-ours { background: var(--hl); }
.bench .win-rival { background: var(--rival); }
.bench .subject { position: relative; }
.bench .subject::after { content: ""; position: absolute; inset: -1px; border-left: 3px solid var(--edge); border-right: 3px solid var(--edge); pointer-events: none; }
.bench thead .subject { box-shadow: inset 0 2px 0 var(--edge); border-top-color: var(--edge); }
.bench tbody tr:last-child .subject { box-shadow: inset 0 -2px 0 var(--edge); border-bottom-color: var(--edge); }
.bench .subject + * { border-left: none; }
.caption { max-width: 640px; margin: 24px auto 0; color: var(--muted-1); font: 400 14px/1.45 var(--sans); text-align: center; text-wrap: pretty; }
.caption p { font: inherit; margin: 0 0 8px; color: inherit; }

/* Small table */
.ptable h4 { font: 700 21px/1.25 var(--tight); letter-spacing: -0.03em; margin: 0 0 4px; }
.ptable .grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.ptable .grid > .r { text-align: right; font-variant-numeric: tabular-nums; }
.article .agent { white-space: nowrap; }
.article .agent-logo, .article .ws-icon { display: inline-block; height: 0.92em; margin-left: 0.32em; vertical-align: -0.1em; }
.article .agent-logo svg, .article .ws-icon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.article .agent-logo.is-claude { width: 1.38em; } /* Clawd: 9 cells × 3 rows of 1:2 terminal cells */
.article .agent-logo.is-claude svg { overflow: hidden; }
.article .agent-logo.is-codex { width: 0.92em; }
.article .ws-icon { width: 0.92em; }
.article .ws-icon svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.article .ws-icon svg .dot { fill: currentColor; }
/* Codex: slices through the mark's depth, turned together in 3D */
.cx3d { display: block; width: 100%; height: 100%; perspective: 6em; }
.cx3d-spin { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; }
.cx3d-slice { position: absolute; inset: 0; transform: translateZ(calc(var(--z) * var(--depth) * 0.46em)); }
.cx3d-slice.side { color: color-mix(in srgb, currentColor 40%, var(--page)); }
.cx3d-slice svg { position: absolute; inset: 0; }
.article .file-dl { margin-top: 28px; }
.article .file-dl a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--ink); border-radius: 6px; text-decoration: none; color: var(--ink-2); font: 500 15px/1.3 var(--sans); transition: background .2s; }
.article .file-dl a:hover { background: var(--page-3); }
.article .file-dl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.article .file-dl__meta { color: var(--muted-1); font-weight: 400; font-size: 14px; }
.article hr.rule { border: 0; border-top: 1px solid var(--line); max-width: var(--reading); margin: 72px auto 8px; }
.ptable .grid > div { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); min-height: 46px; padding: 10px 12px; font: 400 14px/1.4 var(--sans); }
.ptable .grid > .hd { border-top: 1px solid var(--ink); font-weight: 600; }
.ptable .grid > .c0 { border-left: 1px solid var(--ink); font-weight: 600; }

/* Tabs (shared) */
.tabs { display: flex; gap: 16px; position: relative; align-items: center; }
.tab { background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; font: 500 15px/1.55 var(--sans); color: var(--muted-3); transition: color .15s var(--ease-out-quart); }
.tab:hover { color: var(--muted-1); }
.tab.active { color: var(--ink); }

/* Chart switcher */
.charts .tabs { margin-bottom: 16px; }
.charts .stage { position: relative; transition: height .3s var(--ease-out-quart); }
.chart-frame { border: 1px solid var(--ink); background: var(--page); padding: 24px; }
.chart-frame .cap { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 24px; }
.chart-frame .title { font: 600 17px/1.4 var(--sans); }
.chart-frame .sub { font: 400 15px/1.4 var(--sans); color: var(--muted-1); }
.chart-frame .legend { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 32px; padding: 0; list-style: none; font: 15px/1.4 var(--sans); }
.chart-frame .legend li { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: opacity .3s var(--ease-out-quart); user-select: none; }
.chart-frame .legend li.off { opacity: .4; }
.chart-frame .legend b { font-weight: 600; }
.chart-frame .legend svg { width: 14px; height: 14px; flex: none; }
.chart-frame .legend svg * { stroke: var(--ink); }
.chart-frame .plot { position: relative; }
.chart-frame .plot svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.chart-foot { margin: 16px 0 0; color: var(--muted-1); font: 14px/1.45 var(--sans); text-align: center; text-wrap: pretty; }
.plot .c-grid { stroke: var(--line); }
.plot .c-tick { fill: var(--muted-1); font: 13px var(--sans); }
.plot .c-axisLine { stroke: var(--ink); }
.plot .c-axisLabel { fill: var(--ink); font: 14px var(--sans); }
.plot .c-line { fill: none; stroke-width: 3px; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease-out-quart) var(--chart-delay, 0s), opacity .3s; }
.plot .c-mark { stroke: var(--ink); stroke-width: 1px; }
.plot .c-node, .plot .c-pointLabel { transition: opacity .3s var(--ease-out-quart) calc(var(--chart-delay, 0s) + .49s); }
.plot .c-panelTitle { fill: var(--ink); font: 600 14px var(--sans); }
.plot .c-endLabel { fill: var(--muted-1); font: 13px var(--sans); }
.plot .c-pointLabel { fill: var(--ink); font: 12px var(--sans); paint-order: stroke; stroke: var(--page); stroke-width: 4px; stroke-linejoin: round; }
.plot .c-focusTarget { outline: none; }
.plot .c-focusTarget circle { pointer-events: all; }
.plot[data-armed] .c-line { stroke-dashoffset: 1px; }
.plot[data-armed] .c-node, .plot[data-armed] .c-pointLabel { opacity: 0; }
.plot .dim { opacity: .12 !important; transition: opacity .3s !important; }
.tooltip {
  position: absolute; pointer-events: none; background: var(--ink-2); color: #fff; border-radius: 6px;
  padding: 6px 10px; font: 13px/1.35 var(--sans); white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .15s;
}
.tooltip.on { opacity: 1; }
.tooltip span { color: var(--muted-4); }

/* Quote carousel */
.quotes { max-width: 100%; }
.quotes .tabs { width: min(var(--quote), 100%); margin: 0 auto 16px; }
.quotes .more { margin-left: auto; position: relative; flex-shrink: 0; }
.quotes .more-btn { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--page-3); border-radius: 8px; display: grid; place-items: center; opacity: .7; cursor: pointer; transition: all .2s; }
.quotes .more-btn:hover { opacity: 1; }
.quotes .more-btn svg { width: 14px; height: 14px; }
.quotes .more-btn line { stroke: currentColor; stroke-width: 1.5px; stroke-linecap: round; }
.quotes .more-btn .v { transform-origin: 50%; transition: transform .25s var(--ease-out-quart); }
.quotes .more-btn[aria-expanded="true"] .v { transform: rotate(90deg); }
.quotes .menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; min-width: 148px; padding: 6px 0; background: var(--page-3); border: 1px solid var(--ink); display: flex; flex-direction: column; }
.quotes .menu[hidden] { display: none; }
.quotes .menu button { padding: 4px 12px; background: none; border: 0; text-align: left; white-space: nowrap; cursor: pointer; color: var(--muted-1); font: 500 15px/1.55 var(--sans); }
.quotes .menu button:hover { color: var(--ink); background: #0000000a; }
.quotes .stage { position: relative; width: 100vw; margin-left: calc(50% - 50vw); overflow: clip visible; transition: height .35s var(--ease-out-quart); }
.quotes .slide { position: absolute; top: 0; left: 0; right: 0; width: min(var(--quote), 100% - 2 * var(--grid-margin)); margin: 0 auto; opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .34s var(--ease-out-quart); }
.quotes .slide[data-slide="active"] { z-index: 2; opacity: 1; pointer-events: auto; }
.quotes .slide[data-slide="prev"], .quotes .slide[data-slide="far-prev"] { transform: translateX(calc(-100% - 64px)); }
.quotes .slide[data-slide="next"], .quotes .slide[data-slide="far-next"] { transform: translateX(calc(100% + 64px)); }
.quotes .slide[data-slide="prev"], .quotes .slide[data-slide="next"] { opacity: .2; pointer-events: auto; cursor: pointer; }
.quotes .slide[data-slide="prev"]:hover, .quotes .slide[data-slide="next"]:hover { opacity: .35; }
.quotes .veil { position: absolute; top: 0; bottom: 0; width: 56px; z-index: 3; pointer-events: none; }
.quotes .veil.l { left: 0; background: linear-gradient(to right, var(--page), transparent); }
.quotes .veil.r { right: 0; background: linear-gradient(to left, var(--page), transparent); }
.qcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--ink); border-top-width: 4px; }
.qcard .body { padding: 16px; flex: 1; }
.qcard .label { display: block; font: 500 10px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.qcard .label em { font-style: normal; color: #7a3a10; }
.qcard blockquote { margin: 8px 0 0; }
.qcard blockquote p { margin: 0; font: 400 24px/1.25 var(--serif); letter-spacing: -0.01em; color: var(--ink-2); }
.qcard .split { display: grid; grid-template-columns: 1fr 1fr; }
.qcard .split > div { border-top: 1px solid var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.qcard .split > div + div { border-left: 1px solid var(--ink); }
.qcard .value { font: 500 15px/1.6 var(--sans); }

/* Side-by-side comparison */
.cmp .head { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 32px; margin-bottom: 24px; }
/* Phones: tab rows scroll sideways inside their own strip, so every tab and the replay button stay reachable */
@media (max-width: 640px) {
  .tabs { min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .cmp .head .tabs { flex: 1; }
  .cmp .head .replay { flex: none; }
  .ptable .grid > div { padding: 8px 8px; font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
}
.cmp .replay { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; cursor: pointer; border: 1px solid #00000033; background: var(--page-3); color: var(--muted-1); transition: color .2s, border-color .2s; }
.cmp .replay:hover { border-color: #00000066; color: var(--ink); }
.cmp .replay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4px; stroke-linecap: round; stroke-linejoin: round; }
.cmp .replay.spin svg { animation: spin .6s var(--ease-out-quart); }
@keyframes spin { to { transform: rotate(360deg); } }
.cmp .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.cmp .side { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.cmp .lbl { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 500 13px/1 var(--sans); color: var(--muted-2); }
.cmp .side.latest .lbl { color: var(--ink); }
.cmp .side.latest .lbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sepia); }
.cmp .chat { flex: 1; border: 1px solid var(--ink); padding: 22px 24px 24px; display: flex; flex-direction: column; animation: fadein .3s; background: var(--page); }
@keyframes fadein { from { opacity: 0; } }
.cmp .prompt { align-self: flex-end; max-width: 85%; margin: 0 0 20px; padding: 10px 14px; border-radius: 12px; background: var(--page-3); border: 1px solid var(--line-soft); font: 400 14.5px/1.5 var(--sans); transition: opacity .3s; }
.cmp .response { font: 400 15px/1.65 var(--sans); color: #1a1a1a; }
.cmp .response p { margin: 0 0 10px; font: inherit; color: inherit; }
.cmp .response ul, .cmp .response ol { margin: 0 0 10px; padding-left: 20px; }
.cmp .response li { margin: 2px 0; padding-left: .25ch; }
.cmp .response li::marker { transition: color .32s; }
.cmp .response code { font: .9em var(--mono); background: none; border: 0; padding: 0; }
.cmp .response > :last-child { margin-bottom: 0; }
.cmp .w { transition: opacity .32s; }
.cmp[data-stream] .w:not(.on), .cmp[data-stream] .prompt:not(.on) { opacity: 0; }
.cmp[data-stream] li:not(.on)::marker { color: transparent; }
.cmp-note { margin: 14px 0 0; text-align: center; color: var(--muted-1); font: 14px/1.45 var(--sans); }

/* ───────────── Pre-footer ───────────── */
.prefooter { position: relative; height: 100vh; margin-top: -96px; margin-bottom: -26vh; pointer-events: none; background: linear-gradient(transparent 96px, var(--page) 96px); }
.prefooter .pf-stage { position: relative; height: 100vh; overflow: hidden; isolation: isolate; }
.prefooter canvas { position: absolute; inset: 0; display: block; }
.prefooter .pf-fade { position: absolute; left: 0; right: 0; bottom: 0; background: var(--brown); z-index: 1; }
.prefooter .pf-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.prefooter.nogl .pf-fallback { display: block; }
.prefooter + .site-footer { padding-top: 0; }

/* ───────────── Smaller screens ───────────── */
@media (max-width: 991px) {
  :root { --grid-margin: 32px; }
  .side-toc { display: none; }
  .bench { overflow-x: auto; }
  .bench table { min-width: 680px; }
}
@media (max-width: 767px) {
  :root { --grid-margin: 20px; }
  .cmp .pair { grid-template-columns: 1fr; }
  .article p.summary { font-size: 24px; }
  .hero .eyebrow { font-size: 11px; transform: translateY(-1rem); }
  .hero .toc { width: min(236px, 62vw); font-size: 15px; top: calc(var(--apex) + 28px); }
}
@media (prefers-reduced-motion: reduce) {
  .plot .c-line, .plot .c-node, .plot .c-pointLabel, .quotes .slide, .cmp .w { transition: none !important; }
}

/* Dot figure */
.dots-media { margin: 40px auto; }
.dots-fig { display: block; width: 100%; height: auto; overflow: visible; }
.dz-win { fill: color-mix(in srgb, var(--chart-1) 10%, transparent); stroke: color-mix(in srgb, var(--chart-1) 35%, transparent); stroke-width: 1; }
.dz-dot { fill: var(--ink); transition: opacity .25s; }
.dz-dot--decision { fill: var(--chart-1); }
.dz-dot.dz-dot--landed { fill: var(--chart-1); transition: fill .3s; }
.dz-arc { stroke: var(--chart-1); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; }
.dz-tick { fill: var(--muted-1); font: 12px var(--sans); }
.dz-say { fill: var(--ink-2); font: 500 15px var(--sans); transition: opacity .18s; }

/* Wide tables scroll inside their own box on phones instead of squeezing */
@media (max-width: 640px) {
  .ptable { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ptable .grid[data-cols="5"] { min-width: 560px; }
  .ptable .grid[data-cols="5"] > div { overflow-wrap: normal; }
}

/* Compact at-a-glance chart */
.mini-chart { margin: 8px auto 40px; }
.mini-chart__title { font: 600 14px var(--sans); color: var(--ink-2); margin-bottom: 6px; }
.mini-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.mini-chart .c-line { stroke-width: 2.5px; }
.mini-chart .mini-val { font: 700 14px var(--sans); paint-order: normal; stroke: none; }
.mini-chart .mini-name { font: 400 13px var(--sans); fill: var(--body); paint-order: normal; stroke: none; }

.mini-chart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.mini-chart__head .mini-chart__title { margin: 0; }
.mini-chart__steps { display: flex; gap: 6px; }
.mini-chart__steps button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.mini-chart__steps button::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--muted-1); opacity: .45; transition: opacity .2s, transform .2s; }
.mini-chart__steps button[aria-selected="true"]::after { background: var(--ink-2); opacity: 1; transform: scale(1.25); }
.mini-chart__progress { height: 2px; margin-top: 4px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.mini-chart__progress i { display: block; height: 100%; width: 0; background: var(--muted-1); }
@keyframes mini-progress { to { width: 100%; } }
