/* VOICE   plain and specific, one builder to another; short; every sentence comes from the fact sheet and copy deck
   IDEA    the page is a terminal session. The hero is AI's endless output, a sea of glyphs, and one person
           raising a hand above it; below, each section is a command and its output
   COLOUR  near-black ground, white and greys only. Brightness is the hierarchy: white for what a person
           decided, grey for what a machine produced
   TYPE    Geist Mono everywhere; Humind Lines (fonts/humind-lines.woff2) supplies box-drawing and a few UI
           glyphs on Geist Mono's exact grid so ASCII diagrams line up on every platform
   LAYOUT  a reading column on a wide grid, with full-bleed moments: the hero field, the run-through, the closing field */

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono Fallback";
  src: local("Menlo"), local("Menlo-Regular"), local("Courier New");
  size-adjust: 100%;
  ascent-override: 100.5%;
  descent-override: 29.5%;
  line-gap-override: 0%;
}
/* Built for this site: box drawing, blocks and ✓ ✕ ⏺ ⎿ ❯ ▸ ● ○ with Geist Mono's
   600-unit advance and vertical metrics. Vertical strokes overshoot the em box so
   boxes join at any line-height up to about 2. */
@font-face {
  font-family: "Humind Lines";
  src: url("fonts/humind-lines.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2500-259F, U+2713, U+2715, U+23BF, U+23FA, U+25B8, U+25CB, U+25CF, U+276F;
}

:root {
  color-scheme: dark;
  --bg: #070707;
  --bg-1: #0b0b0b;
  --bg-2: #101010;
  --line: #1b1b1b;
  --line-2: #2a2a2a;
  --line-3: #3a3a3a;
  --fg: #ededed;
  --fg-2: #a6a6a6;
  --fg-3: #858585; /* 5.2:1 or better on every ground here: the dimmest text anyone needs to read */
  --fg-4: #474747; /* decoration only: noise, # prefixes, tracks */
  --mono: "Humind Lines", "Geist Mono", "Geist Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(1.25rem, 4.2vw, 4rem);
  --max: 76rem;
  --sec: clamp(5.5rem, 12vw, 10.5rem);
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: 1.5rem;
  scroll-padding-bottom: 3.5rem;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font: 400 1rem/1.7 var(--mono);
  font-feature-settings: "liga" 0, "calt" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection { background: var(--fg); color: #000; }

a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--fg-4); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--fg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 1px; }

h1, h2, h3 { color: var(--fg); margin: 0; font-weight: 500; }
p { margin: 0 0 1.1em; }
code, kbd, pre { font-family: var(--mono); font-size: 1em; }
pre { margin: 0; }
b, strong { color: var(--fg); font-weight: 600; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.35em;
  border: 1px solid var(--line-3);
  border-bottom-width: 2px;
  border-radius: 3px;
  color: var(--fg);
  font-size: 0.8em;
  line-height: 1.45;
  text-align: center;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 50;
  padding: 0.5rem 0.9rem;
  background: var(--fg);
  color: #000;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- nav ---------- */

.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--pad);
  font-size: 0.875rem;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}
.logo { width: 1.35rem; height: 1.45rem; flex: none; }
.top nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 1.9rem); }
.top nav a { color: var(--fg-2); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
.key-btn {
  font: inherit;
  font-size: 0.8125rem;
  width: 1.75rem; height: 1.75rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-3);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
}
.key-btn:hover { color: var(--fg); border-color: var(--fg-3); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 40rem;
  max-height: 72rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  cursor: crosshair;
}
.hero a, .hero button { cursor: pointer; }
.hero h1, .hero p { cursor: text; }

.field {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.4s;
}
.field.on { opacity: 1; }

.field-ascii {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  color: var(--fg-4);
  font-size: 13.5px;
  line-height: 1.24;
  white-space: pre;
  user-select: none;
  pointer-events: none;
}
.field-ascii { color: #3a3a3a; }
.field-ascii i { color: #5e5e5e; font-style: normal; }
.field-ascii b { color: var(--fg); font-weight: 600; }
.field-ascii em { font-style: normal; font-weight: 600; background: var(--fg); color: #000; }
.webgl .field-ascii, .js .field-ascii:not(.drawn) { display: none; }
/* Without JS: the mark alone, drawn once in the markup. */
html:not(.js) .field-ascii {
  inset: auto;
  right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  top: 50%;
  transform: translateY(-50%);
  overflow: visible;
  color: var(--fg);
  font-weight: 600;
  font-size: clamp(9px, 1.05vw, 15px);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 34rem at 14% 54%, rgba(7, 7, 7, 0.9), rgba(7, 7, 7, 0.55) 45%, rgba(7, 7, 7, 0) 72%),
    linear-gradient(to bottom, rgba(7, 7, 7, 0.65), rgba(7, 7, 7, 0) 7rem);
}

.hero-copy {
  position: relative;
  width: min(44rem, 52vw);
  margin-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  padding-block: 6rem 4rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 1rem + 4.7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 500;
}
.hero h1 span { display: block; white-space: nowrap; }

/* The copy arrives with the field: a short, staggered rise. */
.js .hero-copy > *, .js .top { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.22s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.3s; }
.js .top { animation-name: fade; animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(0.6rem); } }
@keyframes fade { from { opacity: 0; } }
.lede {
  margin: 1.9rem 0 2rem;
  max-width: 46ch;
  font-size: clamp(0.98rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 1.65;
  color: #b4b4b4;
}
.note { margin: 1.1rem 0 0; font-size: 0.8125rem; color: var(--fg-3); }
.note strong { font-weight: 500; }
.note a { color: var(--fg-2); white-space: nowrap; }

/* Two lines are kept free for the result from the start, so it never prints
   over the noise and nothing moves when it arrives. */
.pick-out {
  min-height: 6.8em;
  max-width: 62ch;
  margin: 1.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--fg);
  white-space: pre-wrap;
}
.pick-out .dim { color: var(--fg-3); }
.pick-out .caret {
  display: inline-block;
  width: 0.6em; height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--fg);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hint {
  position: absolute;
  left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  bottom: 1.6rem;
  margin: 0;
  font-size: 0.75rem;
  color: var(--fg-3);
  transition: opacity 0.8s, transform 0.8s;
  pointer-events: none;
}
.hint::before { content: "# "; content: "# " / ""; color: var(--fg-4); }
.hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .hint-mouse { display: none; }
  .hint-touch { display: inline; }
}
.hint.gone { opacity: 0; transform: translateY(0.4rem); }
.no-field .hint, html:not(.js) .hint, html:not(.js) .key-btn, html:not(.js) .copy, html:not(.js) .run-switch { display: none; }
html:not(.js) .cmd:not(.cfg) { padding-right: 1.1rem; }

.cue {
  position: absolute;
  right: var(--pad);
  bottom: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--fg-3);
  text-decoration: none;
  font-size: 0.875rem;
}
.cue:hover { color: var(--fg); border-color: var(--fg-3); }

/* ---------- commands ---------- */

.cmd {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg-1);
  color: var(--fg);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 0.9rem;
}
.cmd .ps { color: var(--fg-3); user-select: none; }
.cmd code { white-space: pre; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 34rem) {
  .cmd:not(.cfg) code { white-space: pre-wrap; overflow-wrap: anywhere; }
}
.cmd code::-webkit-scrollbar { display: none; }
.copy {
  flex: none;
  margin-left: auto;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: transparent;
  color: var(--fg-3);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.copy:hover { color: var(--fg); border-color: var(--fg-3); }
.copy.done { color: #000; background: var(--fg); border-color: var(--fg); }
.cmd-hero {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  padding: 0.7rem 0.65rem 0.7rem 1.15rem;
  gap: 1.1rem;
  background: rgba(11, 11, 11, 0.86);
  border-color: var(--line-3);
}
.cmd.cfg { display: block; width: 100%; max-width: 40rem; padding: 1rem 1.1rem; }
.cmd.cfg pre { overflow-x: auto; font-size: 0.875rem; line-height: 1.55; }
.cmd.cfg .copy { position: absolute; top: 0.6rem; right: 0.6rem; }

/* ---------- sections ---------- */

.sec { padding-block: var(--sec) 0; }
.sec:last-of-type { padding-bottom: var(--sec); }

/* Each section opens with the command that prints it: `$ humind why`, then
   its title as the output. The command types itself when it scrolls in. */
.cl {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fg);
  white-space: pre;
}
.cl .ps { color: var(--fg-3); margin-right: 1ch; }
.cl .ct { min-width: 1ch; }
.cl::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 1.25rem;
  background: var(--line);
}
.cl.typing .ct::after {
  content: "";
  display: inline-block;
  width: 0.6em; height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.18em;
  background: var(--fg);
  animation: blink 1.05s steps(1) infinite;
}
.title {
  margin-top: clamp(1.4rem, 2.6vw, 2.2rem);
  max-width: 24ch;
  font-size: clamp(1.7rem, 0.95rem + 2.75vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
  transition: opacity 0.45s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pending .title { opacity: 0; transform: translateY(0.35rem); }
@media print { .pending .title { opacity: 1; transform: none; } }

.out { margin-top: clamp(1.8rem, 3.2vw, 2.8rem); max-width: 66ch; }
.out p { font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem); }
.out .small { font-size: 0.8125rem; color: var(--fg-3); line-height: 1.7; }
.out-split { max-width: none; display: grid; gap: 2rem clamp(2rem, 5vw, 5.5rem); grid-template-columns: minmax(0, 1fr); }
.out-split > * { min-width: 0; }
@media (min-width: 62rem) {
  .out-split { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); align-items: start; }
  .out-split > .diff { margin-top: 0.35rem; }
}

.said {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-left: 2px solid var(--fg-3);
  background: var(--bg-1);
  color: var(--fg);
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* why: a diff */
.diff { margin: 0; }
.diff pre {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-1);
  font-size: 0.875rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.d-h { color: var(--fg-3); }
.d-m { color: var(--fg-3); }
.d-p { color: var(--fg); }
.d-at { color: var(--fg-3); }

/* ---------- designs: the real card, in dark mode ----------
   An HTML copy of the macOS card (native/HumindWindow.swift) with two real
   designs. It keeps the system font the card uses, not the site's mono. */
.dcard { margin: clamp(2rem, 4vw, 3rem) 0 0; max-width: 54rem; }
.hcard {
  position: relative;
  padding: 1.15rem 1.15rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #1c1c1e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(0, 0, 0, 0.8);
  color: #f2f2f2;
  font: 15px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}
.hc-head { display: flex; align-items: center; gap: 0.45rem; font-size: 1.05rem; }
.hc-head svg { width: 1.05rem; height: 1.15rem; fill: currentColor; }
.hc-head b { font-weight: 600; color: #f2f2f2; }
.hc-head span { color: #8e8e93; font-size: 0.95rem; }
.hc-x { margin-left: auto; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-size: 0.75rem; }
.hc-lead { margin: 0.85rem 0 0.2rem; color: #8e8e93; font-size: 0.95rem; }
.hc-q { margin: 0 0 0.9rem; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); font-weight: 600; color: #f2f2f2; line-height: 1.25; }
.hc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.hc-opt { position: relative; display: flex; }
.hc-opt .hc-pick { height: 100%; }
.hc-pick {
  display: block; width: 100%; padding: 0.55rem 0.55rem 0.6rem;
  border: 1.5px solid transparent; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.hc-pick:hover { background: rgba(255, 255, 255, 0.1); }
.hc-pick[aria-pressed="true"] { border-color: #f2f2f2; background: rgba(255, 255, 255, 0.12); }
.hc-shot { display: block; overflow: hidden; border-radius: 8px; background: #000; aspect-ratio: 800 / 520; }
.hc-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hc-pick:hover .hc-shot img { transform: scale(1.015); }
.hc-lbl { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.6rem; font-size: 0.98rem; color: #f2f2f2; }
.hc-radio { width: 1.05rem; height: 1.05rem; flex: none; border-radius: 50%; border: 1.5px solid #8e8e93; }
.hc-pick[aria-pressed="true"] .hc-radio { border-color: #f2f2f2; background: radial-gradient(circle, #f2f2f2 0 38%, transparent 42%); }
.hc-zoom {
  position: absolute; top: 0.95rem; right: 0.95rem; width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hc-zoom:hover { background: rgba(0, 0, 0, 0.8); }
.hc-zoom svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hc-foot { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.95rem; color: #8e8e93; font-size: 0.92rem; }
.hc-chip { padding: 0.15rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #f2f2f2; font-weight: 600; font-size: 0.85rem; }
.hc-btns { margin-left: auto; display: flex; gap: 0.45rem; }
.hc-btns span { padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #c7c7cc; }
.hc-sent {
  position: absolute; left: 1.15rem; right: 1.15rem; bottom: 1rem; margin: 0;
  display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 0.95rem;
  border-radius: 12px; background: #2c2c2e; color: #c7c7cc; font-size: 0.92rem; line-height: 1.35;
  opacity: 0; transform: translateY(0.4rem); pointer-events: none; transition: opacity 0.25s, transform 0.3s;
}
.hc-sent b { color: #f2f2f2; font-weight: 600; }
.hc-ok { width: 1.6rem; height: 1.6rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: #f2f2f2; color: #000; font-size: 0.85rem; font-weight: 700; }
.dcard.sent .hc-sent { opacity: 1; transform: none; }
.dcard figcaption { margin-top: 0.9rem; font-size: 0.75rem; color: var(--fg-3); }
.dcard figcaption::before { content: "# "; content: "# " / ""; color: var(--fg-4); }
@media (max-width: 34rem) {
  .hcard { padding: 0.9rem 0.8rem 0.85rem; border-radius: 16px; }
  .hc-opts { gap: 0.5rem; }
  .hc-pick { padding: 0.4rem; border-radius: 11px; }
  .hc-lbl { font-size: 0.85rem; gap: 0.4rem; }
  .hc-zoom { top: 0.7rem; right: 0.7rem; width: 1.8rem; height: 1.8rem; }
  .hc-foot { font-size: 0.8rem; flex-wrap: wrap; }
  .hc-sent { left: 0.8rem; right: 0.8rem; bottom: 0.85rem; }
}

@media (min-width: 62rem) {
  #designs .wrap { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  #designs .cl, #designs .title { grid-column: 1 / -1; }
  #designs .out { grid-column: 1; }
  #designs .dcard { grid-column: 2; margin-top: clamp(1.8rem, 3.2vw, 2.8rem); justify-self: end; width: 100%; max-width: 46rem; }
}

/* the full-size view */
.lightbox { padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: #000; max-width: min(92vw, 1600px); max-height: 92vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox form { display: flex; justify-content: flex-end; margin: 0; padding: 0.5rem; border-bottom: 1px solid var(--line); }
.lightbox .btn-ghost { background: rgba(0, 0, 0, 0.7); color: var(--fg); }
.lightbox img { display: block; width: auto; height: auto; max-width: min(92vw, 1600px); max-height: calc(92vh - 3rem); }

/* ---------- the demo (answer) ----------
   demo.html is a picture of real apps (the Claude app keeps its own ivory);
   the page gives it a terminal-style window, scene tabs and a caption. */
.demo { margin: clamp(2rem, 4vw, 3rem) auto 0; padding-inline: var(--pad); max-width: calc(72rem + 2 * var(--pad)); }
.demo-win { border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #000; }
.demo-bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.45rem 0.6rem 0.45rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--bg); font-size: 0.75rem; }
.demo-scenes { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.scene-btn {
  position: relative; overflow: hidden;
  font: inherit; font-size: 0.75rem; line-height: 1.2;
  padding: 0.4rem 0.7rem; min-height: 2rem;
  border: 1px solid transparent; border-radius: 4px;
  background: none; color: var(--fg-3); cursor: pointer;
}
.scene-btn:hover { color: var(--fg); }
.scene-btn[aria-pressed="true"] { color: var(--fg); border-color: var(--line-2); background: var(--bg-2); }
.scene-btn i { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; }
.demo-toggle { margin-left: auto; min-width: 4.6rem; }
.demo iframe { display: block; width: 100%; aspect-ratio: 1120 / 700; border: 0; background: #000; }
.demo-cap { margin: 0.9rem 0 0; font-size: 0.75rem; color: var(--fg-2); min-height: 1.6em; }
.demo-cap::before { content: "# "; content: "# " / ""; color: var(--fg-4); }
.demo-note { margin: 0.35rem 0 0; font-size: 0.8125rem; color: var(--fg-3); max-width: 66ch; }
html:not(.js) .demo-win, html:not(.js) .demo-cap { display: none; }
@media (max-width: 40rem) {
  .demo { padding-inline: 0; }
  .demo-win { border-inline: 0; border-radius: 0; }
  .demo-cap, .demo-note { padding-inline: var(--pad); }
  .demo .pane-dots { display: none; }
  .demo-bar { gap: 0.5rem; padding-inline: 0.6rem; }
  .scene-btn { padding-inline: 0.55rem; }
}

/* ---------- the run-through ---------- */

.sec-flow { padding-bottom: 0; }
.run {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: clamp(1rem, 2.2vw, 1.75rem) var(--pad) clamp(1rem, 2vw, 1.5rem);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(70rem 30rem at 50% 0%, rgba(255, 255, 255, 0.025), transparent 70%),
    #090909;
}
.run-panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 84rem;
  margin-inline: auto;
}
@media (min-width: 60rem) {
  .run-panes { grid-template-columns: minmax(0, 1.12fr) 7.5rem minmax(0, 1fr); gap: 0; }
}
.pane {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}
.pane-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--fg-2);
}
.pane-bar .tag { margin-left: auto; color: var(--fg-3); }
.pane-bar .replay { margin: -0.2rem -0.4rem -0.2rem 0; padding: 0.15rem 0.55rem; }
.pane-dots { display: inline-flex; gap: 0.35rem; }
.pane-dots i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--line-2); }
.pane-body {
  position: relative;
  flex: 1;
  padding: 0.9rem 1.1rem 0.8rem;
  font-size: clamp(0.75rem, 0.62rem + 0.2vw, 0.8125rem);
  line-height: 1.55;
}
.ln { margin: 0 0 0.45rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.ln.said { display: block; border-left-color: var(--fg-2); margin-bottom: 0.7rem; }
.ln b { font-weight: 600; }
.dim { color: var(--fg-3); }
.dot { color: var(--fg); }
.tree { color: var(--fg-3); margin-left: 0.6ch; }
.elicit {
  margin: 0.3rem 0 0.7rem;
  padding: 0.65rem 0.9rem 0.45rem;
  border: 1px solid var(--line-3);
  border-radius: 6px;
}
.elicit p { margin: 0 0 0.5rem; }
.el-t { color: var(--fg); font-weight: 600; }
.el-act { color: var(--fg-3); }
.sel { color: var(--fg); }
.sel.press { background: var(--fg); color: #000; }
.bars {
  margin: 0.2rem 0 0.7rem 2ch;
  font-size: min(1em, calc((100vw - 2 * var(--pad) - 4rem) / 24.6));
  line-height: 1.5;
  color: var(--fg-2);
  white-space: pre;
  overflow-x: auto;
}
.bar { color: var(--fg); }
.track { color: #262626; }

/* The gutter between the panes: a packet goes out, the tally comes back. */
.wire { display: none; position: relative; font-size: 0.75rem; color: var(--fg-3); }
@media (min-width: 60rem) {
  .wire { display: block; }
  .wire > span { position: absolute; left: 0.6rem; right: 0.6rem; height: 2.8rem; }
  .wire > span::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0.75rem;
    border-top: 1px dashed var(--line-3);
  }
  .wire em { position: absolute; left: 0; right: 0; top: 1.6rem; text-align: center; font-style: normal; }
  .w-out { top: 30%; }
  .w-back { top: 68%; }
  .pkt {
    position: absolute;
    top: 0;
    padding: 0 0.3ch;
    line-height: 1.5rem;
    font-weight: 500;
    color: var(--fg);
    background: #090909;
  }
  .w-out .pkt { right: 0; }
  .w-back .pkt { left: 0; }
  .w-out.live .pkt { animation: fly-r 0.9s cubic-bezier(0.55, 0, 0.25, 1) both; }
  .w-back.live .pkt { animation: fly-l 0.9s cubic-bezier(0.55, 0, 0.25, 1) both; }
  .wire > span.live::before { animation: dash 0.6s linear infinite; border-top-color: var(--fg-3); }
}
@keyframes fly-r { from { transform: translateX(calc(-6.3rem + 100%)); } }
@keyframes fly-l { from { transform: translateX(calc(6.3rem - 100%)); } }
@keyframes dash { from { opacity: 0.5; } }

.desk { overflow: hidden; }
.ghost {
  color: #262626;
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre;
  user-select: none;
}
.card-slot {
  position: absolute;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.card {
  width: max-content;
  max-width: 100%;
  line-height: 1.3;
  white-space: pre;
  color: var(--fg-2);
  background: var(--bg-1);
}
.card {
  font-size: min(0.8125rem, calc((100vw - 2 * var(--pad) - 2.6rem) / 24.6));
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.6);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
}
.card b { color: var(--fg); font-weight: 500; }
.card u { text-decoration: none; color: var(--fg-2); }
.m { display: inline-block; width: 1.3ch; height: 1em; margin-right: 0.7ch; vertical-align: -0.14em; fill: var(--fg); }
.opt { color: var(--fg-2); transition: background 0.15s, color 0.15s; }
.opt i { font-style: normal; color: var(--fg-3); }
.opt.hover { color: var(--fg); }
.opt.picked { background: var(--fg); color: #000; }
.opt.picked i { color: #000; }
.sent {
  margin: 0.8rem 0 0;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg-1);
  color: var(--fg);
  font-size: 0.8125rem;
  transition: opacity 0.4s, transform 0.4s;
}
.ok { margin-right: 0.4ch; }

/* The three steps, printed under the panes as comments; while the run plays,
   the one on screen lights up. */
.run-cap {
  max-width: 84rem;
  margin: 0.9rem auto 0;
  font-size: 0.75rem;
  color: var(--fg-2);
}
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.phases li { display: grid; grid-template-columns: 4.5ch minmax(0, 1fr); line-height: 1.55; transition: color 0.3s; }
.phases .n { color: var(--fg-3); }
.phases b { color: var(--fg); font-weight: 500; transition: color 0.3s; }
.run.playing .phases li, .run.playing .phases b { color: var(--fg-3); }
.run.playing .phases li.now, .run.playing .phases li.now b, .run.playing .phases li.now .n { color: var(--fg); }
.btn-ghost {
  font: inherit;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
}
.btn-ghost:hover { color: var(--fg); border-color: var(--fg-3); }

/* Short laptop screens: the whole stage fits between the title and the status line. */
@media (min-width: 60rem) and (max-height: 880px) {
  .run { padding-top: 0.9rem; }
  .pane-body { font-size: 0.75rem; line-height: 1.5; padding-block: 0.75rem 0.6rem; }
  .ln { margin-bottom: 0.35rem; }
  .elicit { padding-block: 0.5rem 0.3rem; margin-block: 0.2rem 0.55rem; }
  .elicit p { margin-bottom: 0.4rem; }
}

/* Phones: one screen at a time, the story flips between them. */
.run-switch { display: none; }
@media (max-width: 59.99rem) {
  .js .run-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 0.8rem;
    font-size: 0.8125rem;
  }
  .run-switch button {
    font: inherit;
    padding: 0.4rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 4px;
    background: none;
    color: var(--fg-3);
    cursor: pointer;
  }
  .run-switch button[aria-pressed="true"] { color: var(--fg); border-color: var(--line-3); background: var(--bg); }
  .run-switch .sw { color: var(--fg-3); }
  .js .run-panes { grid-template-areas: "stage"; }
  .js .run-panes > .pane { grid-area: stage; transition: opacity 0.35s, visibility 0.35s; }
  .js .run[data-view="you"] .pane-them, .js .run[data-view="them"] .pane-you { visibility: hidden; opacity: 0; }
  .desk { min-height: 22rem; }
}

/* timeline states, set by app.js only while the run-through plays */
.run.playing [data-at].wait { visibility: hidden; }
.run.playing .card.wait { visibility: visible; transform: translateX(calc(100% + 2rem)); opacity: 0; }
.run.playing .sent.wait { visibility: visible; opacity: 0; transform: translateY(-0.4rem); }


/* ---------- designs ---------- */

.inv { background: #e6e6e6; color: #0b0b0b; }
.ledger figcaption { margin-top: 0.8rem; font-size: 0.75rem; color: var(--fg-3); }

/* ---------- trust ---------- */

.boundary {
  margin: 2rem 0 0;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-size: 0.875rem;
  overflow: hidden;
}
.b-row { display: grid; grid-template-columns: 12ch minmax(0, 1fr); gap: 1rem; padding: 1rem 1.2rem; }
.b-who { color: var(--fg-3); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 0.2em; }
.b-you { background: var(--bg-2); color: var(--fg); }
.b-you .b-who { color: var(--fg); }
.out .b-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0 1.2rem;
  font-size: 0.6875rem;
  color: var(--fg-3);
  white-space: nowrap;
}
.out .b-line::before, .out .b-line::after { content: ""; flex: 1; border-top: 1px dashed var(--line-3); }
.out .b-line span { flex: none; max-width: 80%; white-space: normal; text-align: center; line-height: 1.5; padding-block: 0.3rem; }
@media (max-width: 34rem) { .b-row { grid-template-columns: 1fr; gap: 0.3rem; } }

.checks { list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; }
.checks li { position: relative; padding-left: 3ch; margin: 0 0 0.85rem; }
.checks li::before { content: "✓"; content: "✓" / ""; position: absolute; left: 0.6ch; color: var(--fg); }

/* ---------- credits ---------- */

.kv { margin: 2rem 0 0; display: grid; gap: 0.5rem; font-size: 0.875rem; }
.kv div { display: grid; grid-template-columns: auto minmax(1rem, 1fr) auto; align-items: baseline; gap: 0.6rem; }
.kv dt { order: 1; color: var(--fg-2); }
.kv div::after { content: ""; order: 2; border-bottom: 1px dotted var(--line-3); transform: translateY(-0.3em); }
.kv dd { order: 3; margin: 0; color: var(--fg); }
.ledger { margin: 0; }
.ledger pre {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg-1);
  color: var(--fg-3);
  font-size: 0.875rem;
  line-height: 1.75;
  white-space: pre;
  overflow-x: auto;
}
.ledger .earned { color: var(--fg); }

/* ---------- install ---------- */

.tabs {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 54rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg-1);
  overflow: hidden;
}
.tablist {
  display: flex;
  gap: 0.25rem;
  padding: 0 0.5rem;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg);
  overflow-x: auto;
  scrollbar-width: none;
}
.tablist::-webkit-scrollbar { display: none; }
.tablist [role="tab"] {
  flex: none;
  position: relative;
  padding: 0.7rem 1rem 0.8rem;
  border: 0;
  background: transparent;
  color: var(--fg-3);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.tablist [role="tab"]:hover { color: var(--fg-2); }
.tablist [role="tab"][aria-selected="true"] { color: var(--fg); }
.tablist [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0.6rem; right: 0.6rem; bottom: -1px;
  height: 2px;
  background: var(--fg);
}
.tablist [role="tab"]:focus-visible { outline-offset: -4px; }
.panel { padding: 1.6rem clamp(1rem, 3vw, 1.75rem) 1.75rem; }
.panel + .panel { border-top: 1px solid var(--line-2); }
.tabs.ready .panel + .panel { border-top: 0; }
.panel .cmd { background: var(--bg); }
.panel-h { font-size: 0.8125rem; color: var(--fg-3); font-weight: 400; margin-bottom: 1.2rem; }
.panel-h::before { content: "# "; content: "# " / ""; color: var(--fg-4); }
.panel p { font-size: 0.9375rem; margin: 1.1rem 0 0.8rem; }
.panel p code, .needs code, .dim-p code { color: var(--fg); overflow-wrap: anywhere; }
.dim-p { color: var(--fg-3); font-size: 0.875rem !important; max-width: 60ch; }
.needs { margin-top: 2.5rem; font-size: 0.8125rem; color: var(--fg-3); max-width: 64ch; }

/* ---------- faq ---------- */

.faq { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.faq div { display: grid; gap: 0.6rem 3rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.faq div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 56rem) { .faq div { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); } }
.faq dt { position: relative; padding-left: 2.2ch; color: var(--fg); font-size: 1rem; line-height: 1.55; }
.faq dt::before { content: "?"; content: "?" / ""; position: absolute; left: 0; color: var(--fg-3); }
.faq dd { margin: 0; font-size: 0.9375rem; line-height: 1.75; max-width: 62ch; }

/* ---------- closing ---------- */

.closing {
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(40rem, 92svh, 58rem);
  margin-top: var(--sec);
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
  cursor: crosshair;
}
.closing a, .closing button { cursor: pointer; }
.closing-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(56rem 30rem at 16% 52%, rgba(7, 7, 7, 0.9), rgba(7, 7, 7, 0.5) 50%, rgba(7, 7, 7, 0) 74%),
    linear-gradient(to bottom, var(--bg), rgba(7, 7, 7, 0) 6rem),
    linear-gradient(to top, var(--bg), rgba(7, 7, 7, 0) 4rem);
}
.closing-copy {
  position: relative;
  width: min(42rem, 50vw);
  margin-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
}
.closing h2 {
  font-size: clamp(2rem, 0.9rem + 3.8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.closing h2 { max-width: 14ch; }
.closing p { margin: 1.5rem 0 1.9rem; max-width: 44ch; color: #b4b4b4; }
.closing .note { margin-top: 1rem; }

/* ---------- 404 ---------- */

.lost { min-height: 70vh; padding: 9rem 0 6rem; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding: 2.75rem 0 2.5rem; font-size: 0.8125rem; color: var(--fg-3); }
.foot-inner { display: grid; gap: 1.2rem 3rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 56rem) { .foot-inner { grid-template-columns: auto minmax(0, 1fr) auto; } }
.foot-mark { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--fg); font-weight: 600; font-size: 1rem; }
.foot-line { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-block; padding-block: 0.45rem; color: var(--fg-2); }

/* ---------- the prompt: a status line along the bottom edge ---------- */

.cli {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-size: 0.8125rem;
}
.cli.show, .cli:focus-within { transform: none; }
.cli-bar {
  display: flex;
  align-items: center;
  gap: 0.8ch;
  height: 2.25rem;
  padding: 0 var(--pad);
  border-top: 1px solid var(--line-2);
  background: #0b0b0b;
}
.cli-bar:focus-within { border-top-color: var(--fg); background: #111; }
.cli-ps { color: var(--fg-2); white-space: nowrap; }
.cli-bar:focus-within .cli-ps { color: var(--fg); }
.cli-bar input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  caret-color: var(--fg);
}
.cli-bar input::placeholder { color: var(--fg-3); }
.cli-hint { color: var(--fg-3); font-size: 0.75rem; white-space: nowrap; }
.cli-hint kbd { margin: 0 0.4ch 0 1.2ch; }
.cli-out {
  position: absolute;
  left: var(--pad);
  bottom: calc(100% + 0.5rem);
  width: min(40rem, calc(100vw - 2 * var(--pad)));
  max-height: min(16rem, 40vh);
  overflow-y: auto;
  border: 1px solid var(--line-3);
  border-radius: 6px;
  background: #0b0b0b;
  padding: 0.6rem 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.6);
}
.cli-out:empty { display: none; }
.cli-out .in { color: var(--fg-3); }
.cli-out .ok { color: var(--fg); }
.cli-out .err { color: var(--fg-2); }
@media (min-width: 40rem) {
  .has-cli body { padding-bottom: 2.25rem; }
}
@media (max-width: 39.99rem) {
  .cli { display: none; }
}
@media (max-width: 56rem) { .cli-hint { display: none; } }

/* ---------- help ---------- */

.help {
  width: min(38rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid var(--line-3);
  border-radius: 10px;
  background: var(--bg-1);
  color: var(--fg-2);
  font-size: 0.875rem;
}
.help::backdrop { background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.help-in { padding: 1.4rem 1.6rem 1.5rem; }
.help-cl { color: var(--fg); margin-bottom: 1.2rem; }
.help-k { font-size: 0.75rem; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; margin: 1.2rem 0 0.6rem; }
.help-dl { margin: 0; display: grid; gap: 0.5rem; }
.help-dl div { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 1rem; }
.help-dl dt { color: var(--fg); }
.help-dl dd { margin: 0; }
.help form { margin-top: 1.6rem; text-align: right; }
@media (max-width: 34rem) { .help-dl div { grid-template-columns: 1fr; gap: 0.1rem; } }

/* ---------- tablets and phones ---------- */

@media (max-width: 59.99rem) {
  .hero {
    align-items: flex-end;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    max-height: none;
  }
  /* static, so the result line can sit under the mark, high on the screen */
  .hero-copy {
    position: static;
    width: 100%;
    margin-left: 0;
    padding: max(21rem, 47svh) var(--pad) 3.5rem;
  }
  .cmd-hero { width: min(100%, 30rem); }
  .pick-out {
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    top: 15rem;
    margin: 0;
    min-height: 4.7em;
    max-width: none;
    font-size: 0.75rem;
    line-height: 1.55;
    text-align: center;
    pointer-events: none;
  }
  .hero-shade {
    background:
      linear-gradient(to top, rgba(7, 7, 7, 0.9) 0%, rgba(7, 7, 7, 0.72) 40%, rgba(7, 7, 7, 0) 56%),
      linear-gradient(to bottom, rgba(7, 7, 7, 0.7), rgba(7, 7, 7, 0) 5rem);
  }
  .cue { display: none; }
  .hint { bottom: 1.2rem; right: var(--pad); }
  .closing { align-items: flex-end; height: auto; min-height: 44rem; }
  .closing-copy { width: 100%; margin-left: 0; padding: max(18rem, 42svh) var(--pad) 4rem; }
  .closing-shade {
    background:
      linear-gradient(to top, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.9) 48%, rgba(7, 7, 7, 0) 64%),
      linear-gradient(to bottom, var(--bg), rgba(7, 7, 7, 0) 4rem);
  }
  html:not(.js) .field-ascii { right: auto; left: 50%; top: 4.6rem; transform: translateX(-50%); font-size: clamp(7px, 1.2vw, 11px); }
}
@media (max-width: 47.99rem) {
  .hero h1 { font-size: clamp(2.3rem, 0.9rem + 7vw, 3.6rem); }
  .lede { margin: 1.2rem 0 1.4rem; font-size: 0.9375rem; line-height: 1.6; }
  .cmd-hero { width: 100%; }
  .top nav a:not([data-repo-link]):not([href="#install"]) { display: none; }
  .key-btn { display: none; }
}
@media (max-width: 34rem) {
  .tablist { padding: 0 0.2rem; gap: 0; }
  .tablist [role="tab"] { padding: 0.7rem 0.55rem 0.8rem; font-size: 0.8125rem; }
  .tablist [role="tab"][aria-selected="true"]::after { left: 0.35rem; right: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
