
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ohmyjev.xyz, shared by index.html and features.html. Layout: the NOVACON homepage. Full-screen slides over an ambient grid, the wordmark
   sits at center stage on the first slide, fixed chrome in the corners. Content follows README.md.
   Every doc slide shares one frame: label + heading on the left, lede on the right, then a body
   whose panels stretch to equal heights, so the slides line up when you page through them. */
:root {
  --ground: #0e1012; /* kb:purp: bg */
  --surface: color-mix(in srgb, var(--paper) 3%, var(--ground));
  --surface-hi: color-mix(in srgb, var(--paper) 7%, var(--ground));
  --panel: color-mix(in srgb, var(--surface) 90%, transparent);
  --panel-hi: color-mix(in srgb, var(--surface-hi) 94%, transparent);
  --paper: #e6e8e8; /* kb:purp: fg */
  --muted: color-mix(in srgb, var(--paper) 78%, transparent);
  --faint: color-mix(in srgb, var(--paper) 62%, transparent);
  --line: color-mix(in srgb, var(--paper) 14%, var(--ground));
  --steel: #798186; /* kb:purp: accent */
  --brand: #9d78ff; /* kb:purp: redDim */
  --brand-hi: #b69cff;
  --link: #c2b0f4; /* kb:purp: warm */
  --lavender: #b69cff;
  --ok: #6ed2a0; /* kb:purp: green */
  --warn: #f0be67; /* kb:purp: yellow */
  --err: #f47a7d; /* kb:purp: red */
  --info: #74c7ff;
  --inline: clamp(22px, 5.5vw, 75px);
  --block: clamp(26px, 4.5vh, 75px);
  --gap: clamp(14px, 2.2vh, 24px);
  --ui: clamp(.875rem, .82rem + .15vw, 1rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --logo: "Changa", "Space Grotesk", system-ui, sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --label: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
@media (min-width: 821px) { :root { --inline: clamp(108px, 8.5vw, 176px); } }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--ground); }
@media (min-width: 821px) and (prefers-reduced-motion: no-preference) { html { scroll-snap-type: y proximity; } }
html { scrollbar-color: var(--line) var(--ground); }
body { background: var(--ground); color: var(--paper); font-family: var(--body); -webkit-font-smoothing: antialiased; }
::selection { background: rgba(157, 120, 255, .3); color: var(--paper); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
code { font-family: var(--mono); font-size: .875em; color: var(--paper); }
.lbl { font-family: var(--label); font-weight: 600; font-size: var(--ui); letter-spacing: .06em; text-transform: uppercase; }

#ambient { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: .82; }

/* wordmark: centered over the quick start on the first slide, scrolls away with it */
.brand {
  position: absolute; top: 0; left: 0; z-index: 21; display: block; opacity: 0;
  font: 800 30px/1 var(--logo); letter-spacing: -.01em; color: var(--paper); white-space: nowrap;
}
.ready .brand { opacity: 1; }
.brand .acc { color: var(--brand); }
.brand img { display: block; width: 6.62em; height: 2em; }
/* glitch: two copies of the logo's shape, in link and lavender, flicker out of line now and then */
.glitch { position: relative; display: block; }
.glitch::before, .glitch::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  -webkit-mask: url("logo.webp") center / 100% 100% no-repeat; mask: url("logo.webp") center / 100% 100% no-repeat;
}
.glitch::before { background: var(--link); }
.glitch::after { background: var(--lavender); }
.ready .glitch { animation: glitch 3.4s step-end infinite; }
.ready .glitch::before { animation: glitch-a 3.4s step-end infinite; }
.ready .glitch::after { animation: glitch-b 3.4s step-end infinite; }
@keyframes glitch {
  0%, 69%, 73%, 91%, 95%, 100% { transform: none; opacity: 1; }
  70% { transform: translateX(-2px) skewX(-2deg); opacity: .76; }
  71% { transform: translateX(3px); opacity: 1; }
  92% { transform: scaleX(1.008); opacity: .82; }
  93% { transform: translateX(-1px); opacity: 1; }
}
@keyframes glitch-a {
  0%, 69%, 72%, 91%, 94%, 100% { clip-path: inset(0 0 100% 0); opacity: 0; transform: none; }
  70% { clip-path: inset(12% 0 62% 0); opacity: .72; transform: translateX(-.07em); }
  71% { clip-path: inset(66% 0 12% 0); opacity: .52; transform: translateX(.04em); }
  92% { clip-path: inset(38% 0 42% 0); opacity: .62; transform: translateX(-.05em); }
  93% { clip-path: inset(76% 0 8% 0); opacity: .45; transform: translateX(-.03em); }
}
@keyframes glitch-b {
  0%, 69%, 72%, 91%, 94%, 100% { clip-path: inset(100% 0 0 0); opacity: 0; transform: none; }
  70% { clip-path: inset(58% 0 18% 0); opacity: .65; transform: translateX(.07em); }
  71% { clip-path: inset(24% 0 58% 0); opacity: .46; transform: translateX(-.04em); }
  92% { clip-path: inset(8% 0 74% 0); opacity: .58; transform: translateX(.05em); }
  93% { clip-path: inset(48% 0 34% 0); opacity: .4; transform: translateX(-.03em); }
}



/* bottom chrome: credits left, slide counter + back-to-top right; appears once the intro has passed */
.bottom {
  position: fixed; left: var(--inline); right: var(--inline); bottom: calc(var(--block) * .55 + env(safe-area-inset-bottom, 0px)); z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; pointer-events: none;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.bottom > * { pointer-events: auto; }
.js body:not(.passed) .bottom { visibility: hidden; opacity: 0; }
.passed .bottom { transition-delay: 0s; }
.footer { color: var(--muted); }
.footer a { color: var(--paper); transition: color .2s ease; }
.footer a:hover { color: var(--link); }
.footer a span { color: var(--brand); }
.bottom-right { display: flex; align-items: center; gap: 18px; }
.indicator { display: flex; align-items: center; gap: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.indicator .track { position: relative; display: block; width: 64px; height: 1px; background: var(--line); }
#slide-progress { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brand); transition: width .5s var(--ease); }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); color: var(--paper);
  background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .2s ease, color .2s ease;
}
.to-top span { color: var(--brand); }
.to-top:hover { border-color: var(--brand); }

/* content fades out under the bottom chrome */
body::after { content: ""; position: fixed; left: 0; right: 0; z-index: 14; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
body::after { bottom: 0; height: calc(var(--block) + 52px); background: linear-gradient(transparent, var(--ground) 55%); }
.passed::after { opacity: 1; }

/* side rail, after omp.sh: one square per slide, title pops out on hover */
.rail {
  position: fixed; right: clamp(16px, 1.8vw, 40px); top: 50%; transform: translateY(-50%); z-index: 16;
  display: flex; flex-direction: column; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.rail a { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-bottom: 1px solid var(--line); color: var(--steel); transition: color .2s ease, background .2s ease; }
.rail a:last-child { border-bottom: 0; }
.rail a:hover, .rail a:focus-visible { color: var(--paper); background: color-mix(in srgb, var(--paper) 6%, transparent); outline: none; }
.rail a[aria-current="page"] { color: var(--brand); background: rgba(157, 120, 255, .07); }
.rail a[aria-current="page"]::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: var(--brand); }
.rail svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; stroke-linejoin: miter; }
.rail .n { position: absolute; right: 5px; bottom: 3px; font: 11px var(--mono); color: var(--faint); }
.rail a[aria-current="page"] .n { color: var(--brand); }
.rail .tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none;
  display: flex; gap: 10px; padding: 10px 14px; white-space: nowrap; border: 1px solid var(--line); background: var(--ground); color: var(--paper);
  font: 600 .875rem var(--label); letter-spacing: .06em; text-transform: uppercase; transition: opacity .18s ease, transform .18s ease;
}
.rail .tip b { font-weight: 600; color: var(--brand); }
.rail a:hover .tip, .rail a:focus-visible .tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 820px) { .rail { display: none; } }

/* slides */
main { position: relative; z-index: 1; }
.slide {
  position: relative; min-height: 100vh; min-height: 100svh; scroll-snap-align: start;
  padding: calc(var(--block) + 52px) var(--inline);
}
.slide + .slide::before { content: ""; position: absolute; top: 0; left: var(--inline); right: var(--inline); height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }
.js .slide .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s var(--ease); }
.js .slide.visible .reveal { opacity: 1; transform: none; }
.js .slide .reveal:nth-child(2) { transition-delay: .08s; }

/* quick start, under the wordmark on the first slide; JS places it */
.quick { position: absolute; left: 50%; transform: translateX(-50%); width: min(calc(100% - 2 * var(--inline)), 880px); }
h1 { color: var(--paper); font: 700 clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem)/1.05 var(--display); letter-spacing: -.03em; text-align: center; text-wrap: balance; }
h1 a { color: var(--brand); }
h1 a:hover { color: var(--brand-hi); }
.tagline { max-width: 60ch; margin: 16px auto 0; color: var(--muted); font-size: clamp(1rem, .94rem + .25vw, 1.125rem); line-height: 1.5; text-align: center; text-wrap: pretty; }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: .75rem; }
.badges span { display: inline-flex; align-items: center; gap: 8px; padding: 4px 9px; border: 1px solid var(--line); color: var(--muted); }
.badges span::before { content: ""; width: 5px; height: 5px; background: var(--steel); }
.badges span:first-child::before { background: var(--brand); }
.badges span:nth-child(2)::before { background: var(--lavender); }
.qs { margin-top: 26px; }
.qs-head { display: flex; justify-content: space-between; align-items: flex-end; color: var(--faint); font-size: .75rem; margin-bottom: 8px; }
.qs-tabs { display: flex; gap: 4px; }
.qs-tab { padding: 3px 8px 4px; border-bottom: 1px solid transparent; color: var(--faint); transition: color .2s ease, border-color .2s ease; }
.qs-tab:hover { color: var(--paper); }
.qs-tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.qs-rows[hidden] { display: none; }
.qs-rows { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 78%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.qs-row { display: flex; align-items: stretch; border-top: 1px solid var(--line); transition: background .2s ease; }
.qs-row:first-child { border-top: 0; }
.qs-row:hover { background: color-mix(in srgb, var(--surface-hi) 60%, transparent); }
.qs-n, .qs-p { display: grid; place-items: center; width: 44px; flex: none; border-right: 1px solid var(--line); font-family: var(--mono); font-size: .875rem; }
.qs-n { color: var(--faint); }
.qs-p { color: var(--brand); }
.qs-row code { flex: 1; min-width: 0; padding: 13px 16px; font: 14px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.qs-row .where { align-self: center; padding: 0 12px; color: var(--faint); font-size: .6875rem; white-space: nowrap; }
.qs-row .copy-btn { flex: none; min-width: 88px; padding: 0 14px; border-left: 1px solid var(--line); color: var(--brand); font: 600 .875rem var(--label); letter-spacing: .06em; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.qs-row .copy-btn:hover { background: var(--brand-hi); color: var(--ground); }
.hint { margin-top: 12px; color: var(--muted); font-size: 1rem; line-height: 1.5; text-align: center; }

/* doc slides: one shared frame. Label, heading and lede sit at the same spot on every slide and the
   body fills the rest, so panels end on the same line too; capped so tall screens don't stretch it */
.doc { display: flex; flex-direction: column; justify-content: center; }
.doc-inner { display: flex; flex-direction: column; gap: clamp(18px, 3vh, 40px); width: min(100%, 1360px); min-height: min(calc(100svh - 2 * (var(--block) + 52px)), 880px); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 72px); align-items: start; }
.section-label { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--paper); margin-bottom: clamp(10px, 1.8vh, 18px); }
.section-label::before { content: ""; width: 6px; height: 6px; background: var(--brand); }
.section-label span { margin-left: 8px; color: var(--faint); }
h2 { color: var(--paper); font: 600 clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem)/1.1 var(--display); letter-spacing: -.02em; text-transform: lowercase; text-wrap: balance; }
h2 em { font-style: inherit; color: var(--brand); }
.lede { max-width: 62ch; color: var(--muted); font-size: clamp(1rem, .95rem + .2vw, 1.125rem); line-height: 1.5; }
.body { flex: 1; display: grid; gap: var(--gap); }
.body.main-first { grid-template-rows: 1fr auto; }
.body.main-last { grid-template-rows: auto 1fr; }
h3 { font: 600 var(--ui) var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--paper); }
:where(.body) p, :where(.body) li { color: var(--muted); font-size: 1rem; line-height: 1.45; }
.lede a, .body a:not(.cta) { color: var(--link); text-decoration: underline; text-decoration-color: rgba(201, 184, 255, .4); text-underline-offset: 3px; }
.lede a:hover, .body a:not(.cta):hover { text-decoration-color: var(--link); }

/* hairline grids: equal cells, panels stretch */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-auto-rows: 1fr; }
.grid > * { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: clamp(14px, 2vh, 22px) clamp(14px, 1.4vw, 22px); background: var(--panel); transition: background .25s ease; }
.grid > *:hover { background: var(--panel-hi); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grow { flex: 1; }

/* feature cards */
.feat .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.feat svg { width: 22px; height: 22px; fill: none; stroke: var(--paper); stroke-width: 1.3; stroke-linecap: square; stroke-linejoin: miter; transition: stroke .25s ease; }
.feat:hover svg { stroke: var(--brand); }
.kind { font: 600 .6875rem var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.kind::before { content: ""; width: 5px; height: 5px; background: var(--steel); }
.kind.gate::before { background: var(--brand); }
.kind.check::before { background: var(--lavender); }
.kind.route::before { background: var(--info); }
.kind.fast::before { background: var(--brand); }
.feat h3 { font: 600 1.1875rem/1.2 var(--display); letter-spacing: -.01em; text-transform: none; }
.feat p { font-size: .9375rem; }
.feat .cfg { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--faint); font: .8125rem var(--mono); }
.feat .cfg::before { content: "⚙ "; color: var(--steel); }
.feat:hover .cfg { color: var(--muted); }

/* stat strip on the flow slide */
.stats > * { flex-direction: row; align-items: center; gap: 14px; }
.stats b { font: 700 clamp(1.8rem, 2.6vw, 2.6rem)/1 var(--display); letter-spacing: -.04em; color: var(--paper); }
.stats small { margin-left: 3px; font-size: .45em; letter-spacing: 0; color: var(--brand); }
.stats .lbl { font-size: .75rem; line-height: 1.4; color: var(--faint); }

/* code windows */
.code { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: color-mix(in srgb, var(--ground) 78%, transparent); }
.code-bar { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: .6875rem; }
.code-bar .dots { color: var(--steel); font-size: .5rem; letter-spacing: .35em; }
.copy { margin-left: auto; color: var(--muted); font-size: .6875rem; transition: color .2s ease; }
.copy:hover { color: var(--paper); }
.copy span { color: var(--brand); }
.code pre { flex: 1; padding: 10px 14px; font: 14px/1.6 var(--mono); color: var(--paper); white-space: pre-wrap; overflow-wrap: break-word; }
.nw { white-space: nowrap; }
.code .c { color: var(--steel); }
.code .o { color: var(--err); }
.code .g { color: var(--ok); }
.code .k { color: var(--lavender); }
.grid .code { margin-top: auto; }
.grid > * > .code.grow { margin-top: 4px; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.card-head .meta { color: var(--faint); font: 600 .6875rem var(--label); letter-spacing: .06em; text-transform: uppercase; text-align: right; text-decoration: none !important; }
.card-head a.meta { color: var(--muted); transition: color .2s ease; }
.card-head a.meta:hover { color: var(--paper); }
.card-head a.meta span { color: var(--brand); }
.cmd { padding: 8px 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ground) 78%, transparent); font: 14px/1.6 var(--mono); color: var(--paper); white-space: pre-wrap; overflow-wrap: break-word; }

/* flow: what happens to one tool call */
.flow-cols { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
.pipe { position: relative; display: flex; flex-direction: column; gap: 12px; padding-left: 26px; }
.pipe::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(var(--brand), var(--line) 40%, var(--line) 70%, var(--ok)); }
.node, .stage { position: relative; border: 1px solid var(--line); background: var(--panel); }
.node::before, .stage::before { content: ""; position: absolute; left: -24px; top: 15px; width: 9px; height: 9px; border: 1px solid var(--steel); background: var(--ground); }
.stage::before { border-color: var(--brand); background: var(--brand); }
.stage { display: flex; flex-direction: column; flex: 3; }
.stage + .stage { flex: 2; }
.node { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--paper); font-size: 1rem; }
.node .lbl { color: var(--faint); font-size: .6875rem; }
.stage h3 { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.stage h3 b { color: var(--brand); }
.stage h3 i { margin-left: auto; font-style: normal; color: var(--faint); font-size: .6875rem; }
.rule { flex: 1; display: grid; grid-template-columns: minmax(0, .9fr) 18px minmax(0, 1.3fr); gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.35; }
.stage h3 + .rule { border-top: 0; }
.rule .if { color: var(--muted); }
.rule .to { color: var(--steel); }
.rule .then { color: var(--paper); }
.rule .then.deny { color: var(--err); }
.rule .then.ok { color: var(--ok); }
.side { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.side .code { flex: none; }
.callout { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: clamp(14px, 2vh, 22px) clamp(14px, 1.4vw, 22px); border: 1px solid var(--line); background: var(--panel); }
.callout h3 { color: var(--ok); }
.callout.warn { flex: none; border-color: rgba(255, 200, 87, .45); background: rgba(255, 200, 87, .06); }
.callout.warn p { color: #f3e2bd; }

/* demo: a Claude Code window replaying one ohmyjev moment at a time */
.demo-cols { flex: 1; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; }
.term { background: color-mix(in srgb, var(--ground) 92%, transparent); }
.term-body { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 340px; padding: 18px 20px; font: 14px/1.6 var(--mono); color: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; }
.term-body .t, .term-body .a { padding-left: 2ch; text-indent: -2ch; }
.term-body .l { display: block; animation: line-in .35s var(--ease) both; }
.term-body .u { color: var(--muted); }
.term-body .u::before { content: "> "; color: var(--faint); }
.term-body .t b { font-weight: 400; color: var(--paper); }
.term-body .t::before, .term-body .a::before { content: "⏺ "; color: var(--ok); }
.term-body .a::before { color: var(--paper); }
.term-body .r { padding-left: 5ch; text-indent: -3ch; color: var(--faint); }
.term-body .r::before { content: "⎿  "; }
.term-body .x { color: var(--err); }
.term-body .w { color: var(--warn); }
.term-body .m { color: var(--faint); }
.term-input { display: flex; gap: 1ch; margin: 0 14px; padding: 9px 12px; border: 1px solid var(--line); font: 14px/1.5 var(--mono); color: var(--paper); min-height: 2.6em; }
.term-input::before { content: ">"; color: var(--faint); }
.term-input span::after { content: ""; display: inline-block; width: .55em; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: var(--paper); animation: caret 1.1s steps(1) infinite; }
.term-status { padding: 8px 26px 12px; font: 13px/1.5 var(--mono); color: var(--faint); }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes caret { 50% { opacity: 0; } }
.scenes { display: grid; gap: 1px; grid-auto-rows: 1fr; background: var(--line); border: 1px solid var(--line); }
.scene { display: flex; flex-direction: column; gap: 6px; padding: clamp(14px, 2vh, 20px) clamp(14px, 1.4vw, 22px); background: var(--panel); text-align: left; text-transform: none; letter-spacing: normal; transition: background .2s ease; }
.scene:hover { background: var(--panel-hi); }
.scene .st { display: flex; font: 600 var(--ui) var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--paper); align-items: center; gap: 10px; }
.scene .st::before { content: ""; width: 6px; height: 6px; background: var(--steel); transition: background .2s ease; }
.scene .sd { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.scene[aria-selected="true"] { background: var(--panel-hi); }
.scene[aria-selected="true"] .st { color: var(--brand); }
.scene[aria-selected="true"] .st::before { background: var(--brand); }

/* install steps */
.step .n { display: flex; align-items: center; gap: 10px; color: var(--brand); font: 600 .8125rem var(--label); letter-spacing: .08em; }
.step .n::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.step h3 { color: var(--paper); font: 600 1.25rem/1.2 var(--display); letter-spacing: -.01em; text-transform: none; }
.step ol { display: grid; gap: 4px; padding-left: 18px; }
.step li::marker { color: var(--steel); font-family: var(--mono); font-size: .8125rem; }
.fix h3 { font-size: .8125rem; color: var(--warn); }
.fix p { font-size: .9375rem; }

/* settings table */
.table { border: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; }
th { padding: 7px 14px; text-align: left; font: 600 .6875rem var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); background: var(--panel); }
td { padding: clamp(3px, .5vh, 8px) 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9375rem; line-height: 1.35; vertical-align: top; background: color-mix(in srgb, var(--surface) 82%, transparent); transition: background .2s ease; }
tr:hover td { background: var(--panel-hi); }
tr:last-child td { border-bottom: 0; }
td:first-child, td:nth-child(2) { white-space: nowrap; }
td:first-child code { color: var(--paper); }
td:nth-child(2) { color: var(--lavender); font-family: var(--mono); font-size: .8125rem; }
td.on { color: var(--ok); }

/* links */
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: auto; padding-top: 4px; }
.links a { display: inline-flex; gap: 8px; color: var(--paper); font-size: .8125rem; text-decoration: none !important; }
.links a span { color: var(--brand); transition: transform .25s ease; }
.links a:hover span { transform: translate(3px, -3px); }

/* laptop screens: same frame, denser type so each slide still fits one screen */
@media (min-width: 1001px) and (max-height: 880px) {
  .lede { font-size: .9375rem; line-height: 1.45; }
  .feat h3 { font-size: 1.0625rem; }
  .feat svg { width: 20px; height: 20px; }
  td { padding-top: 2px; padding-bottom: 2px; font-size: .875rem; line-height: 1.3; }
  th { padding-top: 4px; padding-bottom: 4px; }
  .code pre, .cmd { line-height: 1.45; padding-top: 8px; padding-bottom: 8px; }
  :where(.body) p, :where(.body) li { font-size: .9375rem; line-height: 1.4; }
  .grid > * { padding: 12px 14px; gap: 6px; }
  .feat .top { margin-bottom: 0; }
  .feat p { font-size: .875rem; line-height: 1.35; }
  .feat .cfg { padding-top: 6px; }
  .node { padding: 7px 14px; }
  .stage h3 { padding: 7px 14px; }
  .rule { padding: 6px 14px; font-size: .9375rem; }
  .pipe { gap: 8px; }
}
@media (max-width: 1180px) {
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .head, .flow-cols, .demo-cols, .g2, .g3 { grid-template-columns: 1fr; }
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lede { margin-top: 14px; }
  .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-auto-rows: auto; }
  .doc-inner { min-height: 0; }
}
@media (max-width: 600px) {
  .slide { padding-top: calc(var(--block) + 56px); padding-bottom: 96px; }
  .g4, .g5 { grid-template-columns: 1fr; }
  .qs-row .where, .qs-n { display: none; }
  .qs-row code { padding: 12px; font-size: 13px; }
  .qs-row .copy-btn { min-width: 72px; }
  .rule { grid-template-columns: 1fr; gap: 2px; }
  .rule .to { display: none; }
  .indicator { display: none; }
  .bottom { font-size: .6875rem; gap: 12px; }
  .footer { letter-spacing: .04em; white-space: nowrap; }
  .card-head .meta { text-align: left; }
  /* settings table becomes one block per setting: name and default on a line, what it changes under it */
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { padding: 10px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 82%, transparent); }
  tr:last-child { border-bottom: 0; }
  td, tr:hover td { display: inline; padding: 0; border: 0; background: none; white-space: normal !important; }
  td:nth-child(2)::before { content: " · "; color: var(--faint); }
  td:nth-child(3) { display: block; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .slide .reveal { opacity: 1; transform: none; transition: none; }
  .glitch, .glitch::before, .glitch::after, .term-body .l, .term-input span::after { animation: none !important; }
  #slide-progress { transition: none; }
}

/* --- added with the two-page split: the race, the claims, the say-yes slide, the features page --- */

/* the race: the same task, timed, three ways; bars fill at real relative speed */
.race-lanes > * { gap: 10px; }
.lane { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: end; }
.lane-name { color: var(--paper); font-size: 1.0625rem; font-weight: 600; }
.lane-name small { display: block; margin-top: 4px; color: var(--muted); font-size: .9375rem; font-weight: 400; }
.lane-time { text-align: right; }
.lane-time b { display: block; font: 700 clamp(1.8rem, 2.6vw, 2.6rem)/1 var(--display); letter-spacing: -.04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.lane-time small { display: block; margin-top: 6px; color: var(--faint); font: .8125rem var(--mono); }
.lane.win .lane-time b { color: var(--paper); }
.lane.done .lane-time b::after { content: " ✓"; color: var(--ok); font-size: .5em; vertical-align: .35em; }
.lane .track { grid-column: 1 / -1; height: 6px; background: var(--line); }
.lane .track i { display: block; height: 100%; width: var(--w, 0%); background: var(--steel); }
.lane.win .track i { background: var(--brand); }
.race-foot { flex-direction: row !important; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.race-foot p { color: var(--faint); font-size: .875rem; }
.replay { color: var(--brand); }
.replay:hover { color: var(--paper); }

/* claims: one panel per measured number */
.claim b { display: block; font: 700 clamp(2rem, 3vw, 3rem)/1 var(--display); letter-spacing: -.04em; color: var(--brand); }
.claim h3 { color: var(--paper); font: 600 1.1875rem/1.25 var(--display); letter-spacing: -.01em; text-transform: none; }
.claim .how { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--faint); font: .8125rem var(--mono); }
sup a { color: var(--brand) !important; text-decoration: none !important; font: .7em var(--mono); margin-left: 2px; }

/* say yes: what gets stopped */
.ticks { display: grid; gap: 10px; list-style: none; }
.ticks li { position: relative; padding-left: 18px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--brand); }

/* footnotes */
.method ol { display: grid; gap: 6px; list-style: none; counter-reset: fn; }
.method li { position: relative; padding-left: 26px; font-size: .9375rem; }
.method li::before { counter-increment: fn; content: counter(fn); position: absolute; left: 0; top: .15em; color: var(--brand); font: .75rem var(--mono); }

/* features page: the wordmark sits top-left instead of flying in; slides grow with their content */
.page .brand { position: absolute; top: calc(var(--block) * .8); left: var(--inline); opacity: 1; font-size: 26px; }
.page .slide { min-height: 0; }
.page .doc-inner { min-height: 0; }
.page #top { padding-top: calc(var(--block) + 96px); }
.page h1 { text-align: left; }
.page .tagline { margin-left: 0; text-align: left; }
td.n { font-family: var(--mono); font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table + .table { margin-top: var(--gap); }
.bottom .footer a + a { margin-left: 4px; }
/* slides whose panels hold short content don't stretch to the screen */
#race .body, #proof .body { flex: none; }
#race .doc-inner, #proof .doc-inner { min-height: 0; }
#race .grid, #proof .grid { grid-auto-rows: auto; }
/* prose tables on the features page: plain text in every column, numbers in mono */
#hosts td, #privacy td, #numbers td { color: var(--muted); font-family: var(--body); font-size: .9375rem; white-space: normal; }
#hosts td:first-child, #privacy td:first-child, #numbers td:first-child { color: var(--paper); white-space: nowrap; }
#hosts td code, #privacy td code, #numbers td code { color: var(--lavender); }
#numbers td.n { font-family: var(--mono); font-size: .8125rem; white-space: nowrap; }
/* phones: the bottom bar is a plain footer at the end of the page, not a bar floating over the content */
@media (max-width: 600px) {
  .bottom, .js body:not(.passed) .bottom { position: static; visibility: visible; opacity: 1; z-index: 1; padding: 8px var(--inline) calc(28px + env(safe-area-inset-bottom, 0px)); }
  body::after { display: none; }
  .slide { padding-bottom: 56px; }
}

/* slide to slide, where scroll-driven animations exist (desktop only, like the snap): a leaving slide holds still,
   shrinks and fades while the next one rides up over it, and content rises with the scroll, both ways. A slide
   taller than the screen (.tall, set by site.js) scrolls normally so none of it is hidden. */
@supports (animation-timeline: view()) {
  @media (min-width: 821px) and (prefers-reduced-motion: no-preference) {
    .slide.doc { view-timeline: --slide; }
    /* the slide's children move, not the slide: a moved slide drags its own snap point along */
    .slide.doc:not(.tall) > * { animation: slide-away linear both; animation-timeline: --slide; animation-range: exit; transform-origin: 50% 0; }
    .js .slide .reveal, .js .slide.visible .reveal {
      opacity: 1; transform: none; transition: none;
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%;
    }
  }
}
@keyframes slide-away { to { transform: translateY(100vh) scale(.9); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
