/* JetBrains Mono (SIL Open Font License 1.1, see fonts/OFL.txt), self-hosted:
   no third-party request, and the whole font, box drawing included. */
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/JetBrainsMono-Bold.woff2") format("woff2"); }

/* pando · the site
   Aspen gold and amber on near-black. Green only means running, red only
   means an error. One typeface: JetBrains Mono. */

:root {
  --bg: #050505;
  --bg-1: #0a0806;
  --panel: rgba(14, 11, 7, 0.92);
  --panel-solid: #0e0b07;
  --fg: rgba(236, 236, 236, 0.94);
  --fg-strong: #ffffff;
  --fg-2: rgba(236, 236, 236, 0.72);
  --dim: rgba(236, 236, 236, 0.52);
  --faint: rgba(236, 236, 236, 0.3);
  --line: rgba(236, 236, 236, 0.14);
  --line-2: rgba(236, 236, 236, 0.34);
  --gold: #f2b84b;
  --gold-pale: #fce4a5;
  --gold-dim: rgba(242, 184, 75, 0.6);
  --gold-faint: rgba(242, 184, 75, 0.18);
  --amber: #d9822b;
  --orange: #e89a3c;
  --green: #7cffb2;
  --red: #ff6b6b;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 68ch;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 72px);
  --hud-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--hud-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--mono); font-size: 15.5px; line-height: 1.72; font-weight: 400;
  font-feature-settings: "calt" 1, "liga" 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(242, 184, 75, 0.35); color: #fff; }
a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(242, 184, 75, 0.35); transition: border-color .2s, color .2s; }
a:hover { color: var(--gold-pale); border-bottom-color: var(--gold-pale); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
img, svg, canvas { display: block; max-width: 100%; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
strong, b { color: var(--fg-strong); font-weight: 700; }
em { font-style: normal; color: var(--gold-pale); }
code, kbd, samp { font-family: var(--mono); font-size: 0.94em; }
p code, li code, td code, dd code, .prose code {
  color: var(--gold-pale); background: rgba(242, 184, 75, 0.07); border: 1px solid rgba(242, 184, 75, 0.14);
  padding: 0.05em 0.38em; border-radius: 5px; white-space: nowrap;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 6px; border: 0; }
.skip:focus { top: 12px; }

.g { color: var(--gold); }
.gp { color: var(--gold-pale); }
.gr { color: var(--green); }
.rd { color: var(--red); }
.am { color: var(--amber); }
.or { color: var(--orange); }
.d { color: var(--dim); }
.f { color: var(--faint); }
.w { color: var(--fg-strong); }
.b { font-weight: 700; }
.glow-g { text-shadow: 0 0 14px rgba(242, 184, 75, 0.55); }
.glow-gr { text-shadow: 0 0 12px rgba(124, 255, 178, 0.55); }

/* ---------- the HUD: chapter marker (left), navigation (right) ---------- */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hud-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.97), rgba(5, 5, 5, 0.9) 68%, rgba(5, 5, 5, 0));
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.chap { display: grid; gap: 5px; text-decoration: none; border: 0; color: inherit; min-width: 0; }
.chap:hover { color: inherit; }
.chap-bar { display: flex; gap: 6px; height: 3px; }
.chap-bar i { display: block; width: 22px; height: 3px; background: var(--gold-faint); position: relative; overflow: hidden; }
.chap-bar i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--f, 0)); }
.chap-line { display: flex; align-items: baseline; gap: 0; white-space: nowrap; font-size: 15px; line-height: 1; }
.chap-n { color: var(--gold); font-weight: 700; text-shadow: 0 0 10px rgba(242, 184, 75, 0.5); }
.chap-dot { color: var(--gold-dim); padding: 0 0.5ch; }
.chap-name { color: #f2f2f2; font-weight: 500; }
.chap-beat { color: var(--dim); font-size: 13px; padding-left: 2.2ch; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); font-size: 13px; }
.nav a { color: var(--dim); border: 0; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--fg-strong); }
.nav a.nav-cta { color: var(--bg); background: var(--gold); padding: 6px 12px; border-radius: 6px; font-weight: 700; }
.nav a.nav-cta:hover { background: var(--gold-pale); color: #000; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--fg); font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 6px; cursor: pointer; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.chapter { position: relative; padding: clamp(96px, 14vh, 160px) 0 clamp(72px, 10vh, 120px); }
.chapter + .chapter { border-top: 1px solid rgba(236, 236, 236, 0.06); }
.eyebrow { display: flex; align-items: baseline; gap: 0; font-size: 14px; margin-bottom: 18px; white-space: nowrap; flex-wrap: wrap; }
.eyebrow .n { color: var(--gold); font-weight: 700; text-shadow: 0 0 10px rgba(242, 184, 75, 0.45); }
.eyebrow .dot { color: var(--gold-dim); padding: 0 0.5ch; }
.eyebrow .nm { color: #f2f2f2; }
.eyebrow .bt { color: var(--dim); padding-left: 2.2ch; }

.headline {
  font-size: clamp(28px, 4.2vw, 54px); line-height: 1.12; font-weight: 500; letter-spacing: -0.01em;
  color: #f2f2f2; margin: 0 0 0.35em; max-width: 24ch; text-wrap: balance;
}
.headline .chev { color: var(--gold); margin-right: 0.35em; font-weight: 500; }
.headline .hi { color: var(--gold); text-shadow: 0 0 16px rgba(242, 184, 75, 0.5); }
.headline .cur { display: inline-block; width: 0.5em; height: 0.9em; margin-left: 0.12em; background: var(--gold); vertical-align: -0.08em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sub { color: var(--fg-2); font-size: clamp(15px, 1.35vw, 19px); margin: 0 0 2.2rem; max-width: 62ch; }
.sub::before { content: "// "; color: var(--faint); }
.lede { font-size: clamp(16px, 1.3vw, 18px); color: var(--fg); max-width: 64ch; }
h3 { font-size: 19px; font-weight: 700; color: var(--fg-strong); margin: 2.6em 0 0.7em; letter-spacing: -0.005em; }
h3 .g { font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; color: var(--gold-pale); margin: 1.8em 0 0.5em; }
ul.dash, ol.num { padding: 0; margin: 0 0 1.2em; list-style: none; max-width: var(--measure); }
ul.dash > li { position: relative; padding-left: 2.2ch; margin: 0 0 0.55em; }
ul.dash > li::before { content: "─"; position: absolute; left: 0; color: var(--gold-dim); }
ol.num { counter-reset: n; }
ol.num > li { position: relative; padding-left: 4ch; margin: 0 0 0.8em; counter-increment: n; }
ol.num > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; color: var(--gold); font-weight: 700; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.split.wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split.stack { grid-template-columns: minmax(0, 1fr); }
.stack > * + * { margin-top: 18px; }

/* ---------- panels, terminals, code ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; position: relative; }
.panel.gold { border-color: rgba(242, 184, 75, 0.45); box-shadow: 0 0 0 1px rgba(242, 184, 75, 0.06), 0 18px 60px -30px rgba(242, 184, 75, 0.35); }
.panel.red { border-color: rgba(255, 107, 107, 0.6); background: rgba(20, 6, 6, 0.8); }
.panel h4:first-child, .panel h3:first-child { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }
.card-title { display: flex; align-items: baseline; gap: 10px; font-weight: 700; color: var(--fg-strong); margin: 0 0 10px; font-size: 16px; }
.card-title .tag { font-weight: 400; font-size: 12px; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; }

.term {
  background: #080705; border: 1px solid rgba(236, 236, 236, 0.16); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgba(236, 236, 236, 0.08); color: var(--dim); font-size: 12.5px; }
.term-bar .dots { display: flex; gap: 7px; margin-right: 6px; }
.term-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(236, 236, 236, 0.18); display: block; }
.term-bar .grow { flex: 1; }
.term pre, pre.code {
  margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.62; color: var(--fg);
  tab-size: 2; white-space: pre; scrollbar-width: thin; scrollbar-color: rgba(242, 184, 75, 0.35) transparent;
}
pre.code { background: #080705; border: 1px solid rgba(236, 236, 236, 0.14); border-radius: 10px; }
.term pre .p, pre.code .p { color: var(--gold); user-select: none; }
.term pre .c, pre.code .c { color: rgba(236, 236, 236, 0.5); }
.term pre .k, pre.code .k { color: var(--gold-pale); }
.term pre .s, pre.code .s { color: #b9e6c9; }
.copy {
  font: inherit; font-size: 12px; background: transparent; color: var(--dim); border: 1px solid var(--line-2);
  border-radius: 6px; padding: 3px 9px; cursor: pointer; transition: color .15s, border-color .15s;
}
.copy:hover { color: var(--fg-strong); border-color: var(--gold); }
.copy.done { color: var(--green); border-color: rgba(124, 255, 178, 0.6); }
.codewrap { position: relative; }
.codewrap > .copy { position: absolute; top: 10px; right: 10px; background: #080705; }

.kbd, kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: 1.75em; padding: 0 0.45em;
  font-family: var(--mono); font-size: 0.86em; font-weight: 500; color: #f4f4f4; line-height: 1;
  background: #110e0a; border: 1.5px solid rgba(236, 236, 236, 0.55); border-radius: 6px;
  box-shadow: 0 2px 0 rgba(236, 236, 236, 0.18); vertical-align: 0.05em; white-space: nowrap;
}
kbd.hot, .kbd.hot { border-color: var(--gold); color: var(--gold); box-shadow: 0 2px 0 rgba(242, 184, 75, 0.35), 0 0 16px rgba(242, 184, 75, 0.3); }

/* definition rows: `verb   what it does` */
.defs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 28px; margin: 0 0 1.6em; }
.defs dt { color: var(--gold-pale); white-space: nowrap; }
.defs dt code { background: none; border: 0; padding: 0; color: var(--gold-pale); }
.defs dd { margin: 0; color: var(--fg-2); }
.defs dd p { margin-bottom: 0.4em; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 1.8em; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid rgba(236, 236, 236, 0.08); }
.tbl th { color: var(--dim); font-weight: 500; font-size: 12.5px; letter-spacing: 0.02em; border-bottom-color: rgba(236, 236, 236, 0.2); }
.tbl td:first-child { white-space: nowrap; }
.tbl-scroll { overflow-x: auto; margin: 0 0 1.8em; }
.tbl-scroll .tbl { margin: 0; min-width: 560px; }
.tbl-scroll .tbl.wrap { min-width: 0; }
.tbl.wrap td:first-child { white-space: normal; }
.tbl.wrap td code { white-space: normal; overflow-wrap: anywhere; }

/* status glyphs */
.st-run { color: var(--green); }
.st-start { color: var(--gold); }
.st-fail { color: var(--red); }
.st-stop { color: var(--dim); }

.callout { border-left: 2px solid var(--gold); padding: 6px 0 6px 18px; margin: 1.6em 0; color: var(--fg-2); max-width: var(--measure); }
.callout.warn { border-left-color: var(--orange); }
.callout.red { border-left-color: var(--red); }
.callout strong { color: var(--gold-pale); }
.callout p:last-child { margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 14.5px; font-weight: 700;
  padding: 11px 18px; border-radius: 8px; border: 1.5px solid var(--gold); color: var(--bg); background: var(--gold);
  cursor: pointer; transition: background .15s, color .15s, box-shadow .2s; text-decoration: none;
}
.btn:hover { background: var(--gold-pale); border-color: var(--gold-pale); color: #000; box-shadow: 0 0 30px rgba(242, 184, 75, 0.35); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); font-weight: 500; }
.btn.ghost:hover { color: var(--fg-strong); border-color: var(--gold); box-shadow: none; }
.btn .kbd { font-size: 12px; height: 1.6em; }

/* ---------- 01–03 · the story: hero + a grove stage the page scrolls over ---------- */
.story { position: relative; }
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.js .stage { position: sticky; top: 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%); }

.hero {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  text-align: center; padding: clamp(84px, 12vh, 140px) var(--gutter) 0; pointer-events: none;
}
.hero > * { pointer-events: auto; }
.wordmark {
  font-size: clamp(64px, 10.5vw, 158px); line-height: 0.95; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: #f6f6f6;
  text-shadow: 0 0 44px rgba(242, 184, 75, 0.55), 0 0 110px rgba(242, 184, 75, 0.18);
}
.tagline { font-size: clamp(19px, 2.4vw, 34px); font-weight: 500; color: #ededed; margin: 0.25em 0 0.55em; }
.tagline .cur { display: inline-block; width: 0.5em; height: 0.92em; background: var(--gold); vertical-align: -0.1em; margin-left: 0.1em; animation: blink 1.1s steps(1) infinite; }
.hero-what { font-size: clamp(14px, 1.15vw, 16px); color: var(--fg-2); max-width: 82ch; margin: 0 auto 1.4em; text-wrap: balance; text-shadow: 0 0 12px #050505; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; left: var(--gutter); bottom: 18px; z-index: 3; font-size: 12px; color: var(--dim); display: flex; flex-direction: row; align-items: center; gap: 10px; transition: opacity .4s; }
.scroll-hint i { width: 1px; height: 22px; background: linear-gradient(var(--gold), transparent); animation: drip 1.8s ease-in-out infinite; order: -1; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.seed-hud { position: absolute; right: var(--gutter); bottom: 18px; z-index: 3; font-size: 12px; color: rgba(236, 236, 236, 0.32); pointer-events: none; }

/* the beat copy: sits over the stage, top left, like the film's headline */
.beat-copy { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: calc(var(--hud-h) + clamp(20px, 5vh, 56px)); pointer-events: none; }
.beat-copy .headline { margin-bottom: 0.3em; max-width: 36ch; }
.beat-copy .headline, .beat-copy .sub, .beat-copy .beat-body { text-shadow: 0 0 10px #050505, 0 0 24px #050505, 0 0 3px #050505; }
.beat-copy .sub { margin-bottom: 0.9em; max-width: 72ch; }
.beat-copy .beat-body { max-width: 60ch; color: var(--fg-2); font-size: 14.5px; line-height: 1.65; background: rgba(5, 5, 5, 0.62); box-shadow: 0 0 26px 14px rgba(5, 5, 5, 0.62); border-radius: 8px; }
.beat-copy .beat-body p code { white-space: normal; }
.beat-copy .beat-body p { margin-bottom: 0.6em; }
.beat-big { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; opacity: 0; transition: opacity .5s; padding-bottom: 12vh; }
.beat-big.on { opacity: 1; }
.beat-big .pando-name { font-size: clamp(64px, 12vw, 176px); font-weight: 700; letter-spacing: 0.12em; color: #f4f4f4; text-shadow: 0 0 40px rgba(242, 184, 75, 0.55); line-height: 1; }
.beat-big .pando-latin { margin-top: 18px; font-size: clamp(16px, 1.8vw, 24px); color: var(--fg-2); }
.beat-big .pando-latin q { color: var(--gold); quotes: "“" "”"; }
.beat-big .pando-year { margin-top: 8px; font-size: 14px; color: var(--dim); }

/* callouts around the lone trunk (03 · Why) */
.callouts { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.co { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; font-size: clamp(13px, 1.5vw, 22px); line-height: 1.45; white-space: nowrap; }
.co.err { color: var(--red); background: rgba(20, 6, 6, 0.85); border: 1.5px solid rgba(255, 107, 107, 0.7); border-radius: 8px; padding: 0.5em 0.8em; }
.co.ask { color: #f2f2f2; background: rgba(14, 11, 7, 0.9); border: 1.5px solid rgba(236, 236, 236, 0.55); border-radius: 10px; padding: 0.5em 0.9em; }
.co.ask .who { position: absolute; top: -1.6em; left: 2px; font-size: 0.7em; color: var(--dim); }
.co.cmd { color: #f2f2f2; font-size: clamp(18px, 2.1vw, 34px); }
.co.cmd .p { color: var(--gold); }
.co.port { color: var(--red); font-size: clamp(13px, 1.3vw, 20px); }

.beats { position: relative; }
.js .beats { margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.beat { min-height: 90vh; min-height: 90svh; }
.beat:first-child { min-height: 100vh; min-height: 100svh; }
.js .beat { position: relative; }
.js .beat .beat-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* without JavaScript, each beat is plain text */
html:not(.js) .beat { min-height: 0; padding: 48px var(--gutter); }
html:not(.js) .beat-copy, html:not(.js) .beat-big, html:not(.js) .callouts { display: none; }

/* ---------- 04 · the screen you can press keys in ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 28px; border: 1px solid rgba(236, 236, 236, 0.14); border-radius: 14px; overflow: hidden; background: #070605; position: relative; box-shadow: 0 40px 120px -60px rgba(242, 184, 75, 0.25); }
.demo:focus-within { border-color: rgba(242, 184, 75, 0.5); box-shadow: 0 0 0 1px rgba(242, 184, 75, 0.15), 0 30px 90px -50px rgba(242, 184, 75, 0.45); }
.tui {
  position: relative; font-size: clamp(8.4px, 1.02vw, 13.5px); line-height: 1.42; color: var(--fg); padding: 12px 12px 10px;
  outline: none; overflow: hidden; background: #080705; white-space: pre; cursor: text; font-variant-ligatures: none;
}
.tui .ln { display: block; height: 1.42em; overflow: hidden; }
.tui .w { color: #fff; }
.tui .b { font-weight: 700; }
.tui .d { color: rgba(236, 236, 236, 0.5); }
.tui .d2 { color: rgba(236, 236, 236, 0.72); }
.tui .f { color: rgba(236, 236, 236, 0.5); }
.tui .g { color: var(--gold); }
.tui .gr { color: var(--green); }
.tui .rd { color: var(--red); }
.tui .or { color: var(--orange); }
.tui .am { color: #f5cf7a; }
.tui .bd { color: rgba(236, 236, 236, 0.3); }
.tui .gb { color: rgba(242, 184, 75, 0.85); }
.tui .sel { background: rgba(242, 184, 75, 0.1); }
.tui .msel { background: rgba(242, 184, 75, 0.16); }
.tui .mbg { background: #0d0a06; }
.tui .fl1 { background: rgba(124, 255, 178, 0.22); }
.tui .fl2 { background: rgba(124, 255, 178, 0.13); }
.tui .fl3 { background: rgba(124, 255, 178, 0.06); }
.demo-grove { position: relative; height: clamp(280px, 31vw, 400px); border-top: 1px solid rgba(236, 236, 236, 0.08); background: radial-gradient(ellipse at 50% 100%, rgba(242, 184, 75, 0.05), transparent 60%), #060504; }
.demo-grove canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-caption { position: absolute; left: 18px; top: 14px; right: 40%; z-index: 2; font-size: clamp(14px, 1.45vw, 20px); font-weight: 500; color: #f2f2f2; pointer-events: none; text-shadow: 0 0 10px #050505, 0 0 3px #050505; }
.demo-caption .chev { color: var(--gold); margin-right: 0.35em; }
.demo-caption .cur { display: inline-block; width: 0.5em; height: 0.9em; background: var(--gold); vertical-align: -0.08em; margin-left: 0.1em; animation: blink 1.1s steps(1) infinite; }
.demo-caption small { display: block; font-size: 12.5px; color: var(--gold-pale); opacity: .8; font-weight: 400; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat { position: absolute; right: 16px; top: 14px; width: min(46%, 320px); z-index: 2; background: rgba(14, 11, 7, 0.94); border: 1px solid rgba(242, 184, 75, 0.45); border-radius: 12px; font-size: 12.5px; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; pointer-events: none; }
.chat.on { opacity: 1; transform: none; }
.chat header { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-bottom: 1px solid rgba(236, 236, 236, 0.1); color: var(--dim); }
.chat header i { width: 7px; height: 7px; border-radius: 50%; background: rgba(236, 236, 236, 0.3); display: block; }
.chat header span { margin-left: 6px; }
.chat .msg { padding: 7px 12px 2px; transition: opacity .3s; }
.chat .msg .who { color: var(--dim); font-size: 11px; }
.chat .msg .url { color: var(--gold); word-break: break-all; }
.chat .msg.reply { padding-bottom: 10px; font-size: 15px; color: #f2f2f2; }
.chat .msg.reply.typing .body { color: var(--dim); font-size: 12.5px; }
.keys { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 10px 12px; border-top: 1px solid rgba(236, 236, 236, 0.08); background: #080705; }
.keys .lbl { color: var(--dim); font-size: 12px; margin-right: 4px; }
.keys button { font: inherit; font-size: 12.5px; display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--fg-2); border: 0; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.keys button:hover { color: var(--fg-strong); background: rgba(236, 236, 236, 0.05); }
.keys button .kbd { font-size: 12px; transition: border-color .15s, color .15s, box-shadow .15s; }
.keys button.next .kbd { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 14px rgba(242, 184, 75, 0.35); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 2px rgba(242, 184, 75, 0.1); } }
.keys .grow { flex: 1; }
.keys .auto, .keys .rst { color: var(--dim); font-size: 12px; border: 1px solid var(--line); }
.keys .auto.on { color: var(--gold); border-color: rgba(242, 184, 75, 0.45); }
.demo-hint { font-size: 13px; color: var(--dim); margin-top: 12px; }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 28px; margin: 0 0 1.6em; }
.legend > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 14px; padding: 6px 0; border-bottom: 1px solid rgba(236, 236, 236, 0.06); }
.legend .gl { font-weight: 700; }
.legend span:last-child { color: var(--fg-2); }

/* ---------- diagrams ---------- */
.fig { margin: 2.2em 0; }
.fig figcaption { font-size: 13px; color: var(--dim); margin-top: 10px; }
.fig figcaption::before { content: "// "; color: var(--faint); }
.tree-ls { font-size: 13.5px; line-height: 1.7; }
.tree-ls .br { color: var(--faint); }
.tree-ls .dir { color: var(--gold-pale); }
.tree-ls .note { color: var(--dim); }

/* the three modes */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 2em 0; }
.mode { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.mode canvas { width: 100%; aspect-ratio: 16 / 10; height: auto; background: #060504; border-bottom: 1px solid rgba(236, 236, 236, 0.07); }
.mode .body { padding: 18px 20px 20px; }
.mode .name { font-size: 17px; font-weight: 700; color: var(--fg-strong); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.mode .name .exp { font-size: 11.5px; font-weight: 500; color: var(--orange); border: 1px solid rgba(232, 154, 60, 0.6); border-radius: 999px; padding: 0 8px; }
.mode .how { color: var(--gold-pale); font-size: 13px; margin: 6px 0 10px; }
.mode p { font-size: 14px; color: var(--fg-2); }
.mode .facts { font-size: 13px; margin: 0; padding: 0; list-style: none; }
.mode .facts li { padding: 3px 0; color: var(--fg-2); }
.mode .facts li b { color: var(--fg); font-weight: 500; }
.mode .facts .own { color: var(--green); }
.mode .facts .shr { color: var(--gold); }

/* the promise: the repository is sealed */
.promise-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }

/* steps with a rail */
.rail { position: relative; margin: 2em 0; padding-left: 34px; }
.rail::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), rgba(242, 184, 75, 0.1)); }
.rail > li { list-style: none; position: relative; margin: 0 0 1.5em; }
.rail > li::before { content: ""; position: absolute; left: -30px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); box-shadow: 0 0 10px rgba(242, 184, 75, 0.45); }
.rail > li.ok::before { border-color: var(--green); box-shadow: 0 0 10px rgba(124, 255, 178, 0.5); }
.rail .step { color: var(--fg-strong); font-weight: 700; }

/* reference */
.ref-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 2rem; }
.ref-nav a { font-size: 13px; border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px; color: var(--fg-2); }
.ref-nav a:hover { color: var(--fg-strong); border-color: var(--gold); }
.verb { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 28px; padding: 16px 0; border-bottom: 1px solid rgba(236, 236, 236, 0.07); }
.verb .sig { color: var(--gold-pale); font-weight: 500; }
.verb .sig .name { color: var(--fg-strong); font-weight: 700; }
.verb .what { color: var(--fg-2); }
.verb .what p { margin-bottom: 0.5em; }
.verb .flags { font-size: 13.5px; margin-top: 6px; }
.verb .flags code { white-space: nowrap; }
.keymap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 40px; }
.keymap .row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 7px 0; border-bottom: 1px solid rgba(236, 236, 236, 0.06); align-items: baseline; }
.keymap .row .ks { display: flex; gap: 5px; flex-wrap: wrap; }
.keymap .row .ks kbd { font-size: 12px; }
.keymap .row span { color: var(--fg-2); font-size: 14px; }

/* status */
.honest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.honest .panel h4 { margin-top: 0; }
.honest .yes li::before { content: "●"; color: var(--green); }
.honest .no li::before { content: "○"; color: var(--dim); }
.honest ul { list-style: none; padding: 0; margin: 0; }
.honest li { position: relative; padding-left: 2.2ch; margin-bottom: 0.55em; color: var(--fg-2); }
.honest li::before { position: absolute; left: 0; }

/* ---------- the end card ---------- */
.endcard { position: relative; height: min(92vh, 900px); min-height: 560px; overflow: hidden; border-top: 1px solid rgba(236, 236, 236, 0.06); }
.endcard canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.endcard .end-copy { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; padding-top: clamp(56px, 10vh, 120px); text-align: center; pointer-events: none; }
.endcard .end-copy::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 100%); height: 70%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 40%, rgba(5, 5, 5, 0.75), rgba(5, 5, 5, 0) 65%); z-index: -1; }
.endcard .end-copy > * { pointer-events: auto; }
.endcard .wordmark { font-size: clamp(64px, 10vw, 150px); }
.endcard .tagline { margin-bottom: 1.2em; }
.foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px var(--gutter); font-size: 12.5px; color: var(--dim); background: linear-gradient(to top, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0)); }
.foot a { color: var(--fg-2); border-bottom-color: var(--line-2); }

/* ---------- reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 1080px) {
  .nav a:not(.nav-cta) { display: none; }
  .nav-toggle { display: inline-block; }
  .nav.open { position: fixed; top: var(--hud-h); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 0; background: rgba(10, 8, 6, 0.98); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; min-width: 220px; }
  .nav.open a:not(.nav-cta) { display: block; padding: 9px 12px; }
    .modes { grid-template-columns: 1fr; }
  .verb { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 820px) {
  body { font-size: 15px; }
  .split, .split.wide-left, .grid-2, .grid-3, .promise-grid, .honest { grid-template-columns: minmax(0, 1fr); }
  .keymap { grid-template-columns: minmax(0, 1fr); }
  .defs { grid-template-columns: 1fr; gap: 2px; }
  .defs dd { margin-bottom: 12px; }
  .chap-beat { display: none; }
  .tui { font-size: clamp(8px, 2.35vw, 12px); }
}
@media (max-width: 560px) {
  p code, li code, td code, dd code, .prose code { white-space: normal; overflow-wrap: break-word; }
}
@media (max-width: 520px) {
  :root { --hud-h: 56px; }
  .seed-hud { display: none; }
  .chap-bar i { width: 14px; }
  }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .headline .cur, .tagline .cur, .demo-caption .cur { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .scroll-hint i, .keys button.next .kbd { animation: none; }
}

/* ---------- bits added with the chapters ---------- */
.tag-new { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--gold); border: 1px solid rgba(242, 184, 75, 0.5); border-radius: 999px; padding: 0 8px; vertical-align: 0.2em; margin-left: 8px; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slots code { white-space: nowrap; }
.field { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; color: var(--dim); }
.field input { font: inherit; font-size: 13.5px; color: var(--fg-strong); background: #080705; border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 9px; width: 100%; min-width: 0; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 184, 75, 0.15); }
.pw-out { margin-top: 12px; min-height: 8.5em; }
.pw-note { font-size: 12px; color: var(--dim); margin: 10px 0 0; }
details { margin: 0 0 1.6em; }
details > summary { cursor: pointer; color: var(--gold); list-style: none; display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border: 1px solid rgba(242, 184, 75, 0.4); border-radius: 8px; font-size: 13.5px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸"; transition: transform .2s; }
details[open] > summary::before { transform: rotate(90deg); }
details[open] > summary { margin-bottom: 14px; }
.verbs { border-top: 1px solid rgba(236, 236, 236, 0.07); margin-bottom: 1.6em; }
.verb { grid-template-columns: 230px minmax(0, 1fr); }
.verb .what p { margin: 0 0 0.35em; }
.verb .flags { color: var(--dim); }

/* the setup screen, as it looks in a terminal */
.setup { background: #080705; border: 1px solid rgba(236, 236, 236, 0.16); border-radius: 12px; padding: 14px 18px 12px; font-size: 13.5px; position: relative; overflow: hidden; transition: border-color .6s, box-shadow .6s; }
.setup.ready { border-color: rgba(124, 255, 178, 0.55); box-shadow: 0 0 60px -20px rgba(124, 255, 178, 0.35); }
.setup-top { display: flex; gap: 6px; font-size: 12.5px; margin-bottom: 8px; }
.setup-top .grow { flex: 1; }
.setup-art { margin: 6px 0 10px; line-height: 1.12; font-size: 9px; white-space: pre; overflow: hidden; text-align: left; }
.setup-art .cn { color: var(--gold); }
.setup-art .st { color: #e2e5ec; }
.setup-art .gd { color: rgba(236, 236, 236, 0.35); }
.setup-art .rt { color: rgba(236, 236, 236, 0.45); transition: color .8s, text-shadow .8s; }
.setup.ready .setup-art .rt { color: var(--green); text-shadow: 0 0 8px rgba(124, 255, 178, 0.6); }
.setup-art .lb { color: var(--dim); }
.setup-hello { color: var(--fg-strong); font-weight: 700; margin: 0 0 6px; }
.setup-copy { color: var(--fg-2); font-size: 13px; margin: 0 0 12px; }
.setup-step { margin: 6px 0; color: var(--fg); font-size: 13px; }
.setup-step .copy { margin-left: 8px; }
.setup-prompt code { white-space: nowrap; font-size: 1em; }
.setup-prompt { margin: 6px 0 10px; padding: 10px 14px; background: rgba(242, 184, 75, 0.08); border-top: 3px solid rgba(242, 184, 75, 0.55); border-bottom: 3px solid rgba(242, 184, 75, 0.55); color: var(--gold-pale); font-size: 13px; }
.setup-wait { margin: 12px 0 8px; color: var(--fg-2); font-size: 13px; }
.setup.ready .setup-wait { color: var(--green); }
.setup.ready .spin { color: var(--green); }
.setup-keys { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--dim); border-top: 1px solid rgba(236, 236, 236, 0.08); padding-top: 8px; }
.setup-keys b { color: var(--fg-strong); }

@media (max-width: 1080px) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .legend { grid-template-columns: minmax(0, 1fr); }
  .demo-caption { right: 14px; }
  .chat { top: auto; bottom: 12px; width: min(62%, 300px); }
  .verb { grid-template-columns: 1fr; }
}

/* questions */
.faq { border-top: 1px solid rgba(236, 236, 236, 0.08); margin-bottom: 1em; }
.faq details { margin: 0; border-bottom: 1px solid rgba(236, 236, 236, 0.08); }
.faq details > summary { display: flex; border: 0; border-radius: 0; padding: 15px 0; color: var(--fg-strong); font-size: 15px; font-weight: 500; gap: 12px; }
.faq details > summary::before { color: var(--gold); }
.faq details > summary:hover { color: var(--gold-pale); }
.faq details[open] > summary { margin-bottom: 0; color: var(--gold-pale); }
.faq details p { color: var(--fg-2); margin: 0 0 18px 2.2ch; max-width: 78ch; }

/* fixes from review */
.panel h3.panel-title { font-size: 15px; font-weight: 700; color: var(--gold-pale); margin: 0 0 0.6em; }
.tui:focus-visible { outline-offset: -3px; }
.spin { display: inline-block; width: 1.2ch; text-align: center; }
html:not(.js) .demo, html:not(.js) .demo-hint, html:not(.js) #ports-widget { display: none; }
.js .rv { animation: rv-show 0s 4s forwards; }
@keyframes rv-show { to { opacity: 1; transform: none; } }
@media (max-width: 1080px) { .nav.open .nav-toggle { order: -1; align-self: flex-end; margin: 4px 4px 6px; } }
@media print {
  .js .rv { opacity: 1; transform: none; }
  .hud, .stage canvas, .demo-grove, .endcard canvas, .scroll-hint, .seed-hud { display: none; }
  .js .stage { position: relative; height: auto; }
}
.tui .sp { display: inline-block; width: 1ch; overflow: hidden; vertical-align: bottom; }
.demo-caption { right: auto; max-width: 58%; background: rgba(6, 5, 4, 0.82); box-shadow: 0 0 18px 10px rgba(6, 5, 4, 0.82); border-radius: 6px; }
@media (max-width: 820px) { .demo-caption { max-width: calc(100% - 28px); } }
.scroll-hint, .seed-hud { background: rgba(5, 5, 5, 0.72); padding: 2px 8px; border-radius: 4px; }
@media (min-width: 821px) { .split pre.code, .split .term pre, .grid-2 pre.code { font-size: 12.6px; } }

/* ---------- 04, the playground: pinned, bigger, and asking you to play ---------- */
.try .wrap:first-child .sub { margin-bottom: 1.2rem; }
.try-stage { padding: 0 var(--gutter); }
.try .demo { max-width: 1480px; margin: 0 auto; grid-template-columns: minmax(0, 1fr); }
.tui-wrap { position: relative; min-width: 0; }
.tui-wrap .tui { height: 100%; }
.missions { background: #0a0806; border-top: 1px solid rgba(236, 236, 236, 0.08); padding: 16px 18px 18px; font-size: 13.5px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.m-head { display: flex; align-items: baseline; justify-content: space-between; }
.m-title { color: var(--gold); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.m-count { color: var(--fg-2); font-size: 12.5px; }
.missions.all .m-count { color: var(--green); }
.m-lead { color: var(--fg-2); font-size: 13px; margin: 0; }
.m-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.m-list li { display: grid; grid-template-columns: 1.2em auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 8px; border-radius: 8px; color: var(--fg-2); transition: background .3s, color .3s; }
.m-list li .kbd { font-size: 12px; min-width: 2.2em; }
.m-list li .m-t { line-height: 1.35; }
.m-list li .m-t small { display: block; color: var(--dim); font-size: 11.5px; margin-top: 2px; }
.m-list li .m-st { color: var(--faint); line-height: 1.6; }
.m-list li.now { background: rgba(242, 184, 75, 0.08); color: var(--fg-strong); }
.m-list li.now .m-st { color: var(--gold); }
.m-list li.now .kbd { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 14px rgba(242, 184, 75, 0.35); animation: pulse 1.6s ease-in-out infinite; }
.m-list li.done { color: var(--fg-2); }
.m-list li.done .m-st { color: var(--green); text-shadow: 0 0 8px rgba(124, 255, 178, 0.6); }
.m-list li.done .m-t { text-decoration: line-through; text-decoration-color: rgba(124, 255, 178, 0.45); }
.m-list li.flash { animation: mdone 1.2s ease-out; }
@keyframes mdone { 0% { background: rgba(124, 255, 178, 0.28); } 100% { background: transparent; } }
.m-what { margin-top: auto; border: 1px solid rgba(242, 184, 75, 0.35); border-radius: 10px; padding: 10px 12px; background: rgba(242, 184, 75, 0.04); }
.m-what.pop { animation: mpop .7s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes mpop { 0% { transform: translateY(10px) scale(.97); opacity: .2; box-shadow: 0 0 0 rgba(242, 184, 75, 0); } 60% { box-shadow: 0 0 34px rgba(242, 184, 75, 0.35); } 100% { transform: none; opacity: 1; box-shadow: 0 0 0 rgba(242, 184, 75, 0); } }
.m-what-t { color: var(--gold); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.m-what-b { margin: 0 0 6px; color: var(--fg); font-size: 13px; line-height: 1.55; }
.m-what-b b { color: var(--fg-strong); }
.m-what-b code { white-space: normal; }
.m-what-c { display: block; color: var(--gold-pale); font-size: 12.5px; white-space: normal; overflow-wrap: anywhere; }
.m-what-c:empty { display: none; }
.m-what-c::before { content: "$ "; color: var(--gold); }
.m-what-c.plain::before { content: "// "; color: var(--faint); }

/* the invitation over the screen */
.invite { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 3; transition: opacity .4s; }
.invite-card { display: flex; align-items: center; gap: 18px; padding: 18px 24px; border-radius: 14px; background: rgba(10, 8, 5, 0.92); border: 1px solid rgba(242, 184, 75, 0.7); box-shadow: 0 0 0 1px rgba(242, 184, 75, 0.1), 0 24px 80px -20px rgba(0, 0, 0, 0.9), 0 0 60px -10px rgba(242, 184, 75, 0.35); max-width: min(92%, 520px); animation: invite-in .6s ease-out both; }
@keyframes invite-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.invite .kbd.big { font-size: 30px; height: 1.7em; min-width: 1.7em; border-width: 2px; border-color: var(--gold); color: var(--gold); box-shadow: 0 3px 0 rgba(242, 184, 75, 0.4), 0 0 30px rgba(242, 184, 75, 0.45); animation: keybob 1.6s ease-in-out infinite; flex: none; }
@keyframes keybob { 50% { transform: translateY(3px); box-shadow: 0 0 0 rgba(242, 184, 75, 0.4), 0 0 14px rgba(242, 184, 75, 0.3); } }
.invite-txt { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--fg-2); }
.invite-txt b { font-size: 18px; color: var(--fg-strong); font-weight: 700; }
.invite-txt .hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .invite-txt .hint-key { display: none; } .invite-txt .hint-touch { display: block; } }
.invite-mini { display: none; position: absolute; top: 8px; right: 10px; font-size: 12px; color: var(--fg-2); background: rgba(10, 8, 5, 0.9); border: 1px solid rgba(242, 184, 75, 0.5); border-radius: 999px; padding: 4px 12px; }
.invite-mini b { color: var(--gold); }
.demo.playing .invite-card { display: none; }
.demo.playing .invite-mini { display: block; }
.demo.user .invite { opacity: 0; }
.demo.user .invite * { animation: none; }

/* the next step, under the screen */
.coach { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 10px; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis;
  padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(10, 8, 5, 0.94); border: 1px solid rgba(242, 184, 75, 0.6); box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.9), 0 0 24px -6px rgba(242, 184, 75, 0.35); font-size: 13px; color: var(--fg); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.coach.on { opacity: 1; }
.coach.bump { animation: coachbump .5s ease-out; }
@keyframes coachbump { 0% { transform: translateX(-50%) translateY(8px); } 100% { transform: translateX(-50%); } }
.coach .c-l { color: var(--gold); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.coach .kbd { border-color: var(--gold); color: var(--gold); font-size: 12px; }
.coach .c-ok { color: var(--green); }
.demo:not(.user) .coach { display: none; }

.try-more { display: none; }

/* desktop: the stage pins while you play, and fills the screen */
@media (min-width: 1024px) and (min-height: 640px) {
  .try-pin { position: relative; height: calc(200svh - var(--hud-h)); }
  .try-stage { position: sticky; top: calc(var(--hud-h) + 4px); height: calc(100svh - var(--hud-h) - 16px); }
  .try .demo { height: 100%; margin-top: 0; grid-template-columns: minmax(0, 1fr) clamp(260px, 22vw, 330px); grid-template-rows: minmax(0, 1fr) clamp(170px, 29%, 290px) auto; }
  .try .tui-wrap { grid-column: 1; grid-row: 1; }
  .try .tui { font-size: clamp(10.5px, 0.9vw, 14px); padding: 12px 14px 10px; }
  .try .missions { grid-column: 2; grid-row: 1; border-top: 0; border-left: 1px solid rgba(236, 236, 236, 0.08); overflow: auto; }
  .try .demo-grove { grid-column: 1 / -1; grid-row: 2; height: auto; }
  .try .keys { grid-column: 1 / -1; grid-row: 3; }
  .try-more { display: block; position: absolute; right: calc(var(--gutter) + 8px); bottom: -2px; transform: translateY(100%); font-size: 12px; color: var(--dim); padding-top: 4px; }
  .try-more span { color: var(--gold); display: inline-block; animation: drip2 1.8s ease-in-out infinite; }
  @keyframes drip2 { 50% { transform: translateY(3px); } }
}
@media (prefers-reduced-motion: reduce) {
  .try-pin { height: auto !important; }
  .try-stage { position: relative !important; }
  .invite .kbd.big, .m-list li.now .kbd, .try-more span { animation: none; }
}
.m-ctl { display: flex; gap: 6px; flex-wrap: wrap; }
.m-ctl button { font: inherit; font-size: 11.5px; color: var(--dim); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.m-ctl button:hover { color: var(--fg-strong); border-color: var(--gold); }
.m-ctl .auto.on { color: var(--gold); border-color: rgba(242, 184, 75, 0.45); }
.missions.begun .m-lead { display: none; }
.m-list li { padding: 5px 8px; }
.m-list li .m-t small { display: none; }
.m-list li.now .m-t small { display: block; }
.coach { bottom: 40px; }
@media (min-width: 1024px) and (min-height: 640px) and (max-width: 1280px), (min-width: 1024px) and (min-height: 640px) and (max-height: 820px) {
  .try .demo { grid-template-rows: minmax(0, 1fr) clamp(150px, 25%, 260px) auto; }
  .try .missions { font-size: 12.5px; padding: 12px 14px 14px; gap: 8px; }
  .m-list li { padding: 4px 6px; gap: 8px; }
  .m-what { padding: 8px 10px; }
  .m-what-b { font-size: 12.5px; }
  .missions .m-lead { display: none; }
}
/* phones and small screens: the keys sit right under the screen they drive */
@media not all and (min-width: 1024px) and (min-height: 640px) {
  .try .tui-wrap { order: 1; }
  .try .keys { order: 2; border-top: 1px solid rgba(236, 236, 236, 0.08); }
  .try .missions { order: 3; }
  .try .demo-grove { order: 4; }
}
@media (max-width: 820px) {
  .try .keys { gap: 6px; padding: 10px; }
  .try .keys button { padding: 5px 6px; font-size: 13px; }
  .try .keys .kbd { font-size: 14px; height: 2em; min-width: 2.2em; }
  .try .keys .lbl { display: none; }
  .invite-card { padding: 12px 16px; gap: 12px; }
  .invite .kbd.big { font-size: 22px; }
  .invite-txt b { font-size: 16px; }
  .coach { font-size: 12px; bottom: 12px; }
}

/* install: step 1 is a line you copy, step 2 is what you do in your own project */
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.install-steps > li { margin: 0; }
.is-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; color: var(--fg-strong); margin-bottom: 10px; }
.is-h .d { font-weight: 400; font-size: 13px; }
.is-h .d code { font-weight: 400; }
pre.wrap-cmd { white-space: pre-wrap; overflow-wrap: anywhere; }
.install-steps .demo-hint { margin-top: 10px; }
pre.run-cmd { display: inline-block; padding: 12px 22px; font-size: 15px; margin-bottom: 4px; }
.is-note { color: var(--dim); font-size: 13.5px; margin: -4px 0 10px; }
.term + .is-note { margin-top: 18px; }
/* the hero's two steps, in the film's own terminal language */
.hero-steps { position: relative; margin-top: 22px; width: min(100%, 880px); text-align: left; padding: 4px 8px;
  background: rgba(8, 7, 5, 0.8); border: 1px solid rgba(242, 184, 75, 0.38); border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(242, 184, 75, 0.06), 0 22px 70px -34px rgba(242, 184, 75, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hs-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 6px; font-size: 14px; }
.hs-row + .hs-row { border-top: 1px dashed rgba(242, 184, 75, 0.22); }
.hs-n { display: inline-flex; align-items: center; justify-content: center; width: 1.75em; height: 1.75em; flex: none;
  font-size: 12.5px; font-weight: 700; color: var(--gold); background: #110e0a; border: 1.5px solid rgba(242, 184, 75, 0.75); border-radius: 6px;
  box-shadow: 0 2px 0 rgba(242, 184, 75, 0.25), 0 0 14px rgba(242, 184, 75, 0.22); }
.hs-cmd { color: #f2f2f2; white-space: nowrap; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
.hs-cmd::-webkit-scrollbar { display: none; }
.hs-cmd .p { color: var(--gold); margin-right: 0.2ch; }
.hs-cmd .cur { display: inline-block; width: 0.55em; height: 1em; background: var(--gold); vertical-align: -0.15em; margin-left: 0.25ch; animation: blink 1.1s steps(1) infinite; }
.hs-c { color: var(--dim); font-size: 13px; white-space: nowrap; }
.hs-c::before { content: "// "; color: var(--faint); }
.hs-copy { font-size: 12px; color: var(--gold); border: 1.5px solid rgba(242, 184, 75, 0.6); background: #110e0a; box-shadow: 0 2px 0 rgba(242, 184, 75, 0.2); }
.hs-copy:hover { color: #050505; background: var(--gold); border-color: var(--gold); }
@media (max-width: 640px) {
  .hs-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; }
  .hs-row .hs-cmd { white-space: normal; overflow-wrap: anywhere; font-size: 12.5px; }
  .hs-row .hs-copy, .hs-row .hs-c { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .hs-cmd .cur { animation: none; } }
