/*
 * Evolve — the marketing site, as a night on the decks: a near-black room,
 * a faint grid and scanlines, and neon signal. Cyan is the signal, magenta the
 * second channel; acid green and hot red are reserved for pass and fail.
 * Unbounded for display, Inter to read, JetBrains Mono for machines.
 * No framework, no build step: agents and people edit this file directly.
 */
@font-face { font-family: "Unbounded"; src: url("/static/fonts/Unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ground: #06060b;
  --panel: #0c0c16;
  --panel-2: #12121f;
  --rule: #1c1c2e;
  --rule-2: #2c2c46;
  --text: #ecebff;
  --text-dim: #a9a8c9;
  --ash: #6f6e92;
  --cyan: #00e5ff;
  --magenta: #ff2bd6;
  --acid: #b6ff3b;
  --red: #ff3b6b;
  --glow-cyan: 0 0 12px rgba(0, 229, 255, .55), 0 0 32px rgba(0, 229, 255, .25);
  --glow-magenta: 0 0 12px rgba(255, 43, 214, .5), 0 0 32px rgba(255, 43, 214, .22);
  --face: "Unbounded", "Arial Black", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; font-feature-settings: "ss01", "cv11"; scroll-behavior: smooth; }
body {
  margin: 0; background-color: var(--ground); color: var(--text);
  font: 16px/1.65 var(--sans);
  background-image:
    radial-gradient(60rem 36rem at 12% -8%, rgba(255, 43, 214, .16), transparent 60%),
    radial-gradient(52rem 34rem at 96% 8%, rgba(0, 229, 255, .13), transparent 60%),
    linear-gradient(rgba(108, 108, 180, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 108, 180, .07) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed, fixed, fixed, fixed;
}
/* Scanlines over everything, never in the way. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
::selection { background: var(--magenta); color: var(--ground); }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); text-shadow: var(--glow-cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.face { font-family: var(--face); font-weight: 500; letter-spacing: -.01em; }
.mono { font-family: var(--mono); font-size: .85em; }
.dim { color: var(--ash); }
.copper { color: var(--cyan); }
.smallcaps { font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; color: var(--ash); }
.smallcaps.copper { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 229, 255, .45); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--ground); padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; }

/* Masthead: a strip of glass with a signal line under it. */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(6, 6, 11, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--magenta) 20%, var(--cyan) 80%, transparent); opacity: .7; }
.masthead-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 19px; text-transform: uppercase; letter-spacing: .06em; }
.wordmark:hover { text-shadow: none; color: var(--text); }
.masthead nav { display: none; gap: 24px; margin-left: auto; }
.masthead nav a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.masthead nav a:hover, .masthead nav a.current { color: var(--text); }
.masthead nav a.current { text-decoration: underline; text-decoration-color: var(--magenta); text-shadow: none; }
.masthead > .wrap > .button { margin-left: auto; }
@media (max-width: 899px) { .masthead nav { display: flex; } .masthead nav a:not(.keep) { display: none; } .masthead > .wrap > .button { margin-left: 0; } }
@media (min-width: 900px) { .masthead nav { display: flex; } .masthead > .wrap > .button { margin-left: 0; } }

/* Equalizer bars: the wordmark's mark, and a strip in the hero. */
.mark, .eq { display: inline-flex; align-items: flex-end; gap: 2px; }
.mark { height: 18px; }
.mark i, .eq i { display: block; width: 3px; height: 100%; background: linear-gradient(to top, var(--cyan), var(--magenta)); box-shadow: 0 0 8px rgba(0, 229, 255, .6); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite alternate; }
.mark i:nth-child(2), .eq i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.mark i:nth-child(3), .eq i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; }
.mark i:nth-child(4), .eq i:nth-child(4) { animation-duration: .9s; animation-delay: -.2s; }
.eq i:nth-child(5) { animation-duration: 1.2s; animation-delay: -.9s; }
.eq i:nth-child(6) { animation-duration: .7s; animation-delay: -.4s; }
.eq i:nth-child(7) { animation-duration: 1s; animation-delay: -.1s; }
.eq { height: 12px; margin-right: 12px; vertical-align: -1px; }
.eq i { width: 2px; }
@keyframes eq { 0% { transform: scaleY(.2); } 50% { transform: scaleY(.9); } 100% { transform: scaleY(.45); } }

.button {
  display: inline-block; padding: 12px 20px; background: var(--cyan); color: var(--ground);
  font: 600 14px/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; border: 1px solid var(--cyan);
  box-shadow: var(--glow-cyan); transition: box-shadow .2s, background .2s, color .2s;
}
.button:hover { background: var(--text); border-color: var(--text); color: var(--ground); text-shadow: none; box-shadow: 0 0 18px rgba(236, 235, 255, .6); }
.button.ghost { background: transparent; color: var(--text); border-color: var(--rule-2); box-shadow: none; }
.button.ghost:hover { border-color: var(--magenta); color: var(--text); box-shadow: var(--glow-magenta); background: transparent; }

/* Hero. */
.hero { display: grid; gap: 44px; padding-top: 56px; padding-bottom: 64px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.15fr 1fr; padding-top: 96px; padding-bottom: 96px; } }
.display {
  font-family: var(--face); font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 4.8vw, 62px); line-height: 1.02; letter-spacing: -.025em; margin: 18px 0 24px;
}
.display em {
  font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 43, 214, .35));
}
.lede { font-size: 19px; line-height: 1.6; color: var(--text-dim); max-width: 34em; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin: 16px 0 0; font-size: 12.5px; }

.plate {
  position: relative; background: linear-gradient(180deg, rgba(18, 18, 31, .82), rgba(10, 10, 20, .82));
  border: 1px solid var(--rule-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
}
/* Corner ticks, like a rack unit. */
.plate::before, .plate::after { content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none; }
.plate::before { top: -1px; left: -1px; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.plate::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--magenta); border-right: 1px solid var(--magenta); }
.hero-figure { margin: 0; padding: 26px 22px 18px; }
.hero-figure figcaption { margin-top: 14px; font-size: 13.5px; color: var(--text-dim); }
.hero-figure figcaption .smallcaps { margin-right: 8px; }

/* The lineage diagram, drawn once, then a signal runs along the winner. */
.lineage { width: 100%; height: auto; display: block; overflow: visible; }
.lineage .draw { fill: none; stroke: var(--rule-2); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s ease-out forwards; }
.lineage .draw.rejected { stroke: var(--ash); animation-delay: .35s; }
.lineage .draw.chosen { stroke: var(--cyan); stroke-width: 2.2; animation-duration: 2.2s; animation-delay: .6s; filter: drop-shadow(0 0 6px rgba(0, 229, 255, .8)); }
.lineage .pulse { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: 1.05; opacity: 0; filter: drop-shadow(0 0 6px var(--cyan)) drop-shadow(0 0 12px var(--magenta)); animation: pulse 2.6s linear 3s infinite; }
.lineage .node { fill: var(--text-dim); }
.lineage .node.base { fill: var(--ground); stroke: var(--text); stroke-width: 1.5; }
.lineage .node.decision { fill: var(--magenta); filter: drop-shadow(0 0 6px var(--magenta)); }
.lineage .node.stage { fill: var(--ground); stroke: var(--cyan); stroke-width: 1.5; }
.lineage .node.promoted { fill: var(--ground); stroke: var(--acid); stroke-width: 1.5; }
.lineage .node.promoted-core { fill: var(--acid); filter: drop-shadow(0 0 6px var(--acid)); }
.lineage .cross { stroke: var(--red); stroke-width: 1.8; fill: none; }
.lineage .label { font: 11px var(--mono); fill: var(--ash); letter-spacing: .04em; }
.lineage .label.bad { fill: var(--red); }
.lineage .label.good { fill: var(--acid); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { stroke-dashoffset: 1.05; opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Recorded figures, as meters. */
.proof { padding-bottom: 56px; }
.proof-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .proof-row { grid-template-columns: repeat(3, 1fr); } }
.proof-row li { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; border: 1px solid var(--rule); background: rgba(12, 12, 22, .6); position: relative; overflow: hidden; }
.proof-row li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--cyan), var(--magenta)); box-shadow: var(--glow-cyan); }
.proof-value { font-family: var(--face); font-weight: 600; font-size: clamp(26px, 3.1vw, 36px); line-height: 1.05; color: var(--cyan); text-shadow: var(--glow-cyan); font-variant-numeric: tabular-nums; }
.proof-label { color: var(--text-dim); font-size: 15px; max-width: 26em; }
.proof-note { margin: 14px 0 0; font-size: 12px; }

/* Sections. */
.section { padding-top: 80px; padding-bottom: 80px; position: relative; }
.section::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: linear-gradient(90deg, var(--rule-2), transparent 70%); }
@media (min-width: 720px) { .section::before { left: 32px; right: 32px; } }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.display-2 { font-family: var(--face); font-weight: 600; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -.02em; margin: 0; max-width: 22em; }
.section-lede { font-size: 18px; color: var(--text-dim); max-width: 40em; margin: 0 0 32px; }
.sub-head { margin: 44px 0 4px; }

/* Why: two options that fail, and the third. */
.options { display: grid; gap: 18px; }
@media (min-width: 900px) { .options { grid-template-columns: repeat(3, 1fr); } }
.option { padding: 24px; border: 1px solid var(--rule); background: rgba(12, 12, 22, .6); }
.option.bad { border-top: 2px solid var(--red); }
.option.good { border: 1px solid rgba(182, 255, 59, .5); border-top: 2px solid var(--acid); background: linear-gradient(180deg, rgba(182, 255, 59, .06), rgba(12, 12, 22, .7)); box-shadow: 0 0 40px -12px rgba(182, 255, 59, .35); }
.option h3 { margin: 8px 0 14px; font-size: 20px; font-weight: 600; line-height: 1.25; }
.option ul { margin: 0; padding: 0; list-style: none; }
.option li { padding: 10px 0 10px 24px; border-top: 1px solid var(--rule); position: relative; color: var(--text-dim); }
.option li::before { position: absolute; left: 0; font-family: var(--mono); }
.option.bad li::before { content: "×"; color: var(--red); }
.option.good li::before { content: "▸"; color: var(--acid); text-shadow: 0 0 8px var(--acid); }
.option.good li { color: var(--text); }

/* What changes for you. */
.shifts { margin: 0; display: grid; gap: 0; }
.shift { display: grid; gap: 4px 40px; padding: 18px 0; border-top: 1px solid var(--rule); }
.shift:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .shift { grid-template-columns: 1fr 1.3fr; align-items: baseline; } }
.shift dt { color: var(--ash); text-decoration: line-through; text-decoration-color: rgba(255, 59, 107, .6); }
.shift dd { margin: 0; font-size: 19px; line-height: 1.45; color: var(--text); }
.shift dd::before { content: "→ "; color: var(--magenta); font-family: var(--mono); text-shadow: 0 0 8px var(--magenta); }

/* Four steps, numbered like a tracklist. */
.movements { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.movements li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.movements .numeral { grid-row: span 2; font-size: 26px; line-height: 1.1; color: var(--magenta); text-shadow: var(--glow-magenta); }
.movements h3 { margin: 0; font: 600 17px/1.4 var(--sans); }
.movements p { margin: 6px 0 0; color: var(--text-dim); max-width: 44em; }
@media (min-width: 900px) { .movements li { grid-template-columns: 80px 260px 1fr; } .movements .numeral { grid-row: auto; } .movements p { margin: 0; } }

/* Specimen table. */
.table-wrap { overflow-x: auto; }
.specimens { width: 100%; border-collapse: collapse; min-width: 640px; }
.specimens caption { text-align: left; padding: 16px 20px 6px; }
.specimens th, .specimens td { text-align: left; padding: 14px 20px; border-top: 1px solid var(--rule); vertical-align: baseline; }
.specimens thead th { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ash); border-top: 0; }
.specimens tbody tr:hover { background: rgba(0, 229, 255, .04); }
.specimens .num { text-align: right; font-variant-numeric: tabular-nums; }
.verdict { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; }
.verdict::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 1px; background: var(--ash); border-radius: 50%; }
.verdict.selected, .verdict.pass { color: var(--acid); text-shadow: 0 0 8px rgba(182, 255, 59, .5); }
.verdict.selected::before, .verdict.pass::before { background: var(--acid); box-shadow: 0 0 8px var(--acid); }
.verdict.rejected, .verdict.fail { color: var(--red); text-shadow: 0 0 8px rgba(255, 59, 107, .45); }
.verdict.rejected::before, .verdict.fail::before { background: var(--red); box-shadow: 0 0 8px var(--red); }

/* Field trials. */
.trials { display: grid; gap: 18px; }
@media (min-width: 900px) { .trials { grid-template-columns: repeat(3, 1fr); } }
.trial { padding: 22px; display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--rule-2); }
.trial.bad { border-top-color: var(--red); }
.trial.good { border-top-color: var(--acid); }
.trial h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.stages { list-style: none; margin: 0; padding: 0; }
.stages li { display: grid; grid-template-columns: 60px 1fr auto; column-gap: 12px; row-gap: 2px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); }
.stages .stage-pct { grid-row: span 2; font-size: 19px; color: var(--cyan); }
.stages .verdict { grid-column: 3; grid-row: 1; }
.trial-outcome { margin: auto 0 0; color: var(--text-dim); font-size: 14.5px; }

/* Agents. */
.split { display: grid; gap: 36px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.agents { list-style: none; margin: 0; padding: 0; }
.agents li { padding: 18px 0; border-top: 1px solid var(--rule); }
.agents li:first-child { border-top: 0; }
.agents h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.agents p { margin: 0; color: var(--text-dim); }

/* Objections. */
.objections { display: grid; gap: 0; }
@media (min-width: 900px) { .objections { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.objection { padding: 24px 0; border-top: 1px solid var(--rule); }
.objection h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--magenta); text-shadow: 0 0 12px rgba(255, 43, 214, .35); }
.objection p { margin: 0; color: var(--text-dim); max-width: 34em; }

/* Limits. */
.limits { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
@media (min-width: 900px) { .limits { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.limits li { padding: 16px 0 16px 24px; border-top: 1px solid var(--rule); position: relative; color: var(--text-dim); }
.limits li::before { content: "//"; position: absolute; left: 0; color: var(--magenta); font-family: var(--mono); font-size: 13px; }

/* FAQ. */
.faq { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary { display: flex; gap: 14px; align-items: baseline; padding: 18px 0; cursor: pointer; list-style: none; font: 600 17px/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-family: var(--mono); color: var(--cyan); width: 1ch; flex: none; }
.faq details[open] summary::before { content: "−"; color: var(--magenta); }
.faq summary:hover { color: var(--cyan); }
.faq details p { margin: 0 0 20px; padding-left: calc(1ch + 14px); color: var(--text-dim); max-width: 44em; }

/* Terminal. */
.terminal { position: relative; padding: 22px 20px; overflow-x: auto; background: #030306; }
.terminal pre { margin: 0; font-size: 14px; line-height: 1.9; color: var(--text); text-shadow: 0 0 6px rgba(0, 229, 255, .25); }
.terminal .line { display: block; white-space: pre; }
.terminal .prompt { color: var(--acid); text-shadow: 0 0 8px rgba(182, 255, 59, .6); }
.copy { position: absolute; top: 12px; right: 12px; background: transparent; color: var(--ash); border: 1px solid var(--rule-2); padding: 4px 10px; cursor: pointer; }
.copy:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.start-next { margin: 20px 0 0; color: var(--text-dim); }

/* Learn in layers. */
.learn { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .learn { grid-template-columns: repeat(5, 1fr); } }
.learn a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px; border: 1px solid var(--rule); background: rgba(12, 12, 22, .6); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.learn a:hover { border-color: var(--cyan); box-shadow: 0 0 24px -6px rgba(0, 229, 255, .5); text-shadow: none; }
.learn .numeral { font-size: 22px; color: var(--magenta); line-height: 1; text-shadow: var(--glow-magenta); }
.learn-name { font-weight: 600; }
.learn .dim { font-size: 14px; }

.footer { padding: 32px 0 48px; position: relative; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--magenta) 80%, transparent); opacity: .5; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; }
.footer-row .face { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer-row a { margin-left: auto; font-family: var(--mono); font-size: 13px; }

.notfound { min-height: 60vh; }

/* Drawn figures (the docs and the front page). */
.doc-figure { margin: 28px 0; padding: 22px; align-self: start; }
.doc-figure svg { width: 100%; max-width: 760px; margin: 0 auto; height: auto; display: block; overflow: visible; }
.doc-figure figcaption { margin-top: 14px; font-size: 13.5px; color: var(--text-dim); }
.doc-figure figcaption .smallcaps { margin-right: 8px; }
.fig-box rect { fill: var(--ground); stroke: var(--rule-2); stroke-width: 1.2; }
.fig-box.evolve rect { fill: rgba(0, 229, 255, .05); stroke: var(--cyan); filter: drop-shadow(0 0 6px rgba(0, 229, 255, .45)); }
.fig-t { font: 600 14px var(--sans); fill: var(--text); }
.fig-s { font: 12px var(--mono); fill: var(--text-dim); }
.fig-k { font: 600 12px var(--mono); fill: var(--cyan); text-transform: uppercase; letter-spacing: .12em; }
.fig-t.bad, .fig-s.bad { fill: var(--red); }
.fig-s.good { fill: var(--acid); }
.fig-s.dim { fill: var(--ash); }
.fig-arrow { fill: none; stroke: var(--cyan); stroke-width: 1.6; }
.fig-back { fill: none; stroke: var(--red); stroke-width: 1.3; stroke-dasharray: 4 4; }
.fig-head { fill: var(--text-dim); }
.fig-stable { fill: var(--rule-2); }
.fig-canary { fill: var(--cyan); filter: drop-shadow(0 0 4px rgba(0, 229, 255, .7)); }

/* Docs hub. */
.docs-hub { padding-top: 56px; padding-bottom: 72px; }
.hub-head .display-2 { font-size: clamp(32px, 4.6vw, 52px); }
.layers { list-style: none; margin: 0; padding: 0; }
.layer { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .layer { grid-template-columns: 96px 1fr; } }
.layer-mark .numeral { font-size: 30px; line-height: 1; color: var(--magenta); text-shadow: var(--glow-magenta); }
.layer-body h2 { margin: 0; font-size: 22px; font-weight: 600; }
.layer-body > p { margin: 4px 0 14px; }
.layer-pages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 900px) { .layer-pages { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.layer-pages li { border-top: 1px solid var(--rule); }
/* Each entry is one link: a cyan title with an arrow, the whole row clickable. */
.layer-pages a { display: block; padding: 12px 12px 14px; margin: 0 -12px; border-left: 2px solid transparent; color: inherit; text-decoration: none; transition: background .15s, border-color .15s; }
.layer-pages a:hover, .layer-pages a:focus-visible { background: rgba(0, 229, 255, .05); border-left-color: var(--cyan); text-shadow: none; }
.page-title { font-weight: 600; color: var(--cyan); }
.page-title::after { content: " →"; display: inline-block; margin-left: 2px; transition: transform .15s; }
.layer-pages a:hover .page-title { text-decoration: underline; text-underline-offset: 3px; text-shadow: 0 0 10px rgba(0, 229, 255, .5); }
.layer-pages a:hover .page-title::after { transform: translateX(3px); }
.layer-pages .mono { margin-left: 8px; font-size: 11px; }
.page-tldr { display: block; margin-top: 4px; color: var(--text-dim); font-size: 14.5px; }

/* Docs page. */
.docs { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 1000px) { .docs { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
.docs-nav { font-size: 14px; }
@media (min-width: 1000px) { .docs-nav { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; } }
.docs-nav-layer { margin-top: 18px; }
.docs-nav-layer p { margin: 0 0 6px; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav li a { display: block; padding: 4px 0 4px 12px; border-left: 1px solid var(--rule-2); color: var(--text-dim); text-decoration: none; }
.docs-nav li a:hover { color: var(--text); text-shadow: none; }
.docs-nav li a.current { color: var(--text); border-left: 2px solid var(--cyan); padding-left: 11px; box-shadow: -6px 0 12px -8px var(--cyan); }
.track { color: var(--magenta); letter-spacing: 0; text-transform: none; font-size: 11px; margin-right: 6px; }
@media (max-width: 999px) {
  .docs-nav { order: 2; border-top: 1px solid var(--rule); padding-top: 20px; }
  .docs-nav-layer ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .docs-nav li a { border: 0; padding: 4px 0; }
  .docs-nav li a.current { border: 0; padding: 4px 0; box-shadow: none; text-decoration: underline; text-decoration-color: var(--cyan); }
}
.doc { min-width: 0; max-width: 46rem; }
.doc h1 { margin-top: 10px; }
.tldr { margin: 24px 0 8px; padding: 18px 22px; background: linear-gradient(90deg, rgba(0, 229, 255, .07), rgba(12, 12, 22, .6)); border-left: 2px solid var(--cyan); box-shadow: -8px 0 20px -12px var(--cyan); }
.tldr p { margin: 6px 0 0; font-size: 19px; line-height: 1.5; color: var(--text); }
.toc { margin: 20px 0 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.toc ul { list-style: none; margin: 8px 0 0; padding: 0; columns: 2; column-gap: 32px; font-size: 14px; }
.toc li { break-inside: avoid; padding: 2px 0; }
.toc a { color: var(--text-dim); text-decoration: none; }
.toc a:hover { color: var(--cyan); }
@media (max-width: 600px) { .toc ul { columns: 1; } .tldr p { font-size: 17px; } }

.prose { margin-top: 12px; font-size: 16.5px; line-height: 1.75; }
.prose h2 { font-family: var(--face); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; margin: 48px 0 12px; scroll-margin-top: 84px; }
.prose h3 { font-size: 17px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--text-dim); }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--magenta); }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--panel-2); border: 1px solid var(--rule); padding: 1px 5px; color: var(--cyan); overflow-wrap: anywhere; }
.prose pre { background: #030306; border: 1px solid var(--rule-2); padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; }
.prose pre code { background: none; border: 0; padding: 0; color: var(--text); overflow-wrap: normal; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
.prose thead th { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ash); border-top: 0; }
.prose td:first-child code { white-space: nowrap; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--magenta); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--rule); background: rgba(12, 12, 22, .6); color: var(--text); text-decoration: none; }
.pager a:hover { border-color: var(--cyan); box-shadow: 0 0 20px -6px rgba(0, 229, 255, .5); text-shadow: none; }
.pager .next { text-align: right; grid-column: 2; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lineage .draw { animation: none; stroke-dashoffset: 0; }
  .lineage .pulse, .mark i, .eq i { animation: none; }
  .mark i, .eq i { transform: scaleY(.6); }
}

/* Replay: a recorded run played back as a terminal session. Lines are all
 * visible without the player script; with it (.replay-live) they appear at
 * their recorded second. */
.replay-page { padding-top: 48px; }
.replay-head { margin-bottom: 24px; }
.replay-head .display-2 { font-size: clamp(30px, 4.4vw, 50px); }
.player { background: #030306; }
.player-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--rule-2); background: rgba(18, 18, 31, .9); }
.player-dots { display: inline-flex; gap: 6px; }
.player-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-2); }
.player-dots i:first-child { background: var(--red); } .player-dots i:nth-child(2) { background: #ffbf3b; } .player-dots i:nth-child(3) { background: var(--acid); }
.player-cmd { color: var(--text-dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--red); }
.player-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.2s steps(2) infinite; }
.done .player-live { color: var(--ash); } .done .player-live i { animation: none; background: var(--ash); box-shadow: none; }
@keyframes blink { 50% { opacity: .2; } }
.player-meta { margin: 0; padding: 12px 16px; display: grid; gap: 2px 24px; font-size: 12px; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .player-meta { grid-template-columns: 2fr 1fr 1.4fr .6fr; } }
.player-meta div { display: flex; gap: 10px; min-width: 0; }
.player-meta dt { color: var(--ash); }
.player-meta dd { margin: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-log { list-style: none; margin: 0; padding: 14px 16px; font-size: 12.5px; line-height: 1.55; height: 26rem; overflow-y: auto; scroll-behavior: smooth; }
.rl { display: grid; grid-template-columns: 5.5em 16.5em 1fr; gap: 0 12px; padding: 3px 0; }
.replay-live .rl { display: none; }
.replay-live .rl.on { display: grid; animation: line-in .25s ease-out; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }
.rl-clock { color: var(--ash); }
.rl-type { color: var(--cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-text { color: var(--text); overflow-wrap: anywhere; }
.rl.pass .rl-text { color: var(--acid); }
.rl.fail .rl-text { color: var(--red); text-shadow: 0 0 10px rgba(255, 59, 107, .45); }
.rl.warn .rl-text { color: #ffbf3b; }
.rl-claim .rl-type { color: #ffbf3b; }
.rl-claim .rl-text { color: var(--text-dim); font-style: italic; }
.rl-note { margin: 8px 0; padding: 8px 12px; border-left: 2px solid var(--magenta); background: rgba(255, 43, 214, .06); grid-template-columns: 3.5em 1fr; }
.rl-note .rl-clock { display: none; }
.rl-note .rl-type { color: var(--magenta); }
.rl-note .rl-text { font-family: var(--sans); font-size: 14px; color: var(--text); }
@media (max-width: 700px) {
  .rl { grid-template-columns: 1fr; }
  .rl-clock:empty { display: none; }
  .rl-type { font-size: 11px; }
}
.player-status { display: grid; gap: 8px 24px; padding: 12px 16px; border-top: 1px solid var(--rule-2); font-size: 12px; background: rgba(12, 12, 22, .9); }
@media (min-width: 900px) { .player-status { grid-template-columns: 1fr .6fr 1.6fr 1.2fr; align-items: center; } }
.player-status b { font-weight: 600; color: var(--text); }
.traffic, .window { display: flex; align-items: center; gap: 10px; min-width: 0; }
.split-bar, .window-bar { flex: 0 0 90px; height: 6px; display: flex; background: var(--rule); overflow: hidden; }
.split-bar i:first-child { background: var(--acid); box-shadow: 0 0 6px rgba(182, 255, 59, .6); transition: width .4s; }
.split-bar i:last-child { background: var(--magenta); box-shadow: 0 0 6px var(--magenta); transition: width .4s; }
.window-bar i { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.player-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--rule); }
.player-controls .button { padding: 8px 16px; }
.speeds { display: inline-flex; border: 1px solid var(--rule-2); }
.speed { background: transparent; color: var(--text-dim); border: 0; padding: 7px 12px; font: 600 12px var(--mono); cursor: pointer; }
.speed + .speed { border-left: 1px solid var(--rule-2); }
.speed[aria-pressed="true"] { color: var(--ground); background: var(--cyan); }
.player-clock { margin-left: auto; font-size: 13px; color: var(--cyan); }
/* Without the script there is nothing to control. */
.player:not(.replay-live) .player-controls, .player:not(.replay-live) .player-status { display: none; }
.replay-after { padding-top: 64px; }

/* The front page's player, in the hero: shorter, no clock column, no speeds. */
.hero-player { min-width: 0; }
.compact .player-log { height: 21rem; font-size: 12px; }
.compact .rl { grid-template-columns: 11.5em 1fr; }
.compact .rl-clock { display: none; }
.compact .rl-note { grid-template-columns: 3.2em 1fr; }
.compact .rl-note .rl-text { font-size: 13px; }
.compact .player-status { grid-template-columns: 1fr 1fr; font-size: 11.5px; }
.compact .player-status .traffic, .compact .player-status .window { grid-column: span 2; }
.compact .speeds { display: none; }
.compact .player-meta { grid-template-columns: 1fr; }
.player-full { font-size: 13px; }
@media (max-width: 700px) { .compact .rl { grid-template-columns: 1fr; } .compact .player-log { height: 24rem; } }

/* Start: step one, then two paths side by side. */
.start-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.start-steps > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; row-gap: 12px; }
.start-steps > li > .numeral { font-size: 26px; line-height: 1.1; color: var(--magenta); text-shadow: var(--glow-magenta); }
.start-steps h3 { margin: 0 0 8px; font: 600 18px/1.4 var(--sans); }
.start-steps > li > h3 { grid-column: 2; margin: 2px 0 0; }
.start-steps > li > .terminal { grid-column: 2; }
.start-paths { grid-template-columns: 56px minmax(0, 1fr); }
.start-path { grid-column: 2; min-width: 0; }
.start-path > p { color: var(--text-dim); margin: 0 0 12px; max-width: 40em; }
@media (min-width: 1000px) {
  .start-paths { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 28px; }
  .start-path + .start-path { grid-column: 3; }
}
.transcript pre { font-size: 12.5px; line-height: 1.7; }
.terminal .line.out { color: var(--text-dim); text-shadow: none; }
.start-path code { color: var(--cyan); font-size: .9em; }
