/* wisp site. The real app is the hero; the page around it is paper, ink and one blue. */

:root {
  --bg: #f4f3ef;
  --bg-2: #ecebe6;
  --surface: #ffffff;
  --ink: #141414;
  --ink-2: #3a3a38;
  --muted: #6c6b66;
  --faint: #a6a49d;
  --line: #e1dfd8;
  --line-2: #d1cfc7;
  --accent: #2f5bea;
  --accent-soft: rgba(47, 91, 234, 0.1);
  --warn: #b26200;
  --code-bg: rgba(20, 20, 20, 0.06);
  --band: #121212;
  --band-ink: #ededed;
  --band-muted: #8f8f8f;
  --band-line: #262626;
  --win-bar: #ebeae6;
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04), 0 40px 80px -40px rgba(30, 28, 20, 0.35);
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0d;
    --bg-2: #151514;
    --surface: #171717;
    --ink: #ededeb;
    --ink-2: #c8c7c2;
    --muted: #8d8c86;
    --faint: #5c5b57;
    --line: #232322;
    --line-2: #31302e;
    --accent: #6d8dff;
    --accent-soft: rgba(109, 141, 255, 0.14);
    --warn: #f0a33a;
    --code-bg: rgba(255, 255, 255, 0.07);
    --band: #161615;
    --band-line: #2a2a28;
    --win-bar: #1d1d1c;
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
  img.mono { filter: invert(1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
code, kbd, pre { font-family: var(--mono); }
code { white-space: nowrap; font-size: 0.86em; padding: 0.12em 0.38em; border-radius: 5px; background: var(--code-bg); }
kbd {
  display: inline-block; min-width: 1.65em; padding: 0 0.4em; font-size: 0.78em; line-height: 1.65; text-align: center; vertical-align: 0.1em;
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); color: var(--ink-2);
}
kbd + kbd { margin-left: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.wrap-wide { width: min(1320px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 500 12.5px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; font-weight: 680; letter-spacing: -0.04em; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 650 17px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.mark { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); flex: none; }
.mark::after { content: ''; position: absolute; right: -4px; bottom: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.links { display: flex; gap: 22px; margin-left: 8px; }
.links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.links a:hover { color: var(--ink); }
.nav-cmd {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 5px 0 12px; cursor: pointer;
  font: 13px var(--mono); color: var(--bg); background: var(--ink); border: 0; border-radius: 8px;
  opacity: 0; translate: 0 -4px; pointer-events: none; transition: opacity 0.25s, translate 0.25s;
}
.nav-cmd .p { opacity: 0.5; }
.nav-cmd .copy { font: 500 12px var(--sans); padding: 4px 8px; border-radius: 5px; background: color-mix(in srgb, var(--bg) 16%, transparent); }
.nav-cmd.copied .copy { background: var(--accent); color: #fff; }
/* Shows once the hero's own command has scrolled away, so the command is always on screen. */
.nav.cmd-away .nav-cmd { opacity: 1; translate: 0 0; pointer-events: auto; }
.nav-cmd + .gh { margin-left: 0; }
.gh { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); transition: border-color 0.15s; }
.gh:hover { border-color: var(--faint); }
.gh svg { width: 16px; height: 16px; }
.gh .stars { padding-left: 8px; border-left: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.cmd { display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 8px 0 18px; cursor: pointer; font: 15px var(--mono); color: var(--bg); background: var(--ink); border: 0; border-radius: 11px; transition: transform 0.1s; }
.cmd:active { transform: translateY(1px); }
.cmd code { padding: 0; background: none; font-size: 15px; color: inherit; }
.cmd .p { opacity: 0.5; }
.cmd .copy { font: 500 13px var(--sans); padding: 7px 11px; border-radius: 7px; background: color-mix(in srgb, var(--bg) 16%, transparent); min-width: 60px; text-align: center; transition: background 0.15s; }
.cmd.copied .copy { background: var(--accent); color: #fff; }
.cmd.sm { height: 40px; font-size: 14px; }
.cmd.sm code { font-size: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); transition: border-color 0.15s; }
.btn:hover { border-color: var(--faint); }

/* ---------- app windows ---------- */
.window img { width: 100%; }
.window { position: relative; overflow: hidden; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.win-bar { position: relative; display: flex; align-items: center; height: 34px; padding: 0 14px; background: var(--win-bar); border-bottom: 1px solid var(--line); }
.win-bar.dark { background: #1b1b1b; border-color: #262626; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.win-title { position: absolute; left: 50%; translate: -50% 0; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }

/* ---------- hero: a working copy of the launcher ---------- */
.hero { position: relative; padding: 44px 0 24px; }
.hero::before {
  /* a faint dot grid: the desk the launcher sits on */
  content: ''; position: absolute; inset: 0 0 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px; background-position: 50% 0;
  mask-image: radial-gradient(ellipse 45% 60% at 70% 45%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 45% 60% at 70% 45%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: 64px; align-items: start; }
.hero-top { padding-top: 12px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 13px var(--mono); color: var(--muted); margin-bottom: 20px; }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: #28c840; box-shadow: 0 0 0 3px rgba(40, 200, 64, 0.18); }
h1 { font-size: clamp(34px, 3.7vw, 54px); line-height: 1.04; font-weight: 700; letter-spacing: -0.04em; }
h1 .soft { display: block; color: var(--faint); text-wrap: balance; }
h1 .off { display: inline-block; }
h1 .off.fly { animation: off-fly 0.9s cubic-bezier(0.5, 0, 0.75, 0) both; }
@keyframes off-fly {
  0% { translate: 0 0; opacity: 1; }
  60% { translate: 0.9em -0.18em; opacity: 0; filter: blur(2px); }
  61% { translate: -0.5em 0.12em; opacity: 0; filter: blur(2px); }
  100% { translate: 0 0; opacity: 1; filter: none; }
}
.lede { margin-top: 28px; font-size: 17.5px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.fine { font-size: 13px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.desk { min-width: 0; }
.launch {
  position: relative; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 60px -30px rgba(30, 28, 20, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.launch:focus-within, .launch.typing { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); box-shadow: 0 0 0 4px var(--accent-soft), 0 24px 60px -30px rgba(30, 28, 20, 0.35); }
.l-projects { display: flex; align-items: center; gap: 6px; padding: 14px 16px 0; font-size: 12.5px; }
.l-projects .in { color: var(--faint); margin-right: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.chip.on { background: var(--bg-2); border-color: var(--line-2); color: var(--ink); font-weight: 500; }
.chip i, .q-proj i { width: 7px; height: 7px; border-radius: 50%; }
.c-violet { background: #7c6ce0; } .c-teal { background: #1f9e8a; } .c-amber { background: #d1972a; } .c-sky { background: #3b8fd9; }
.l-input {
  display: block; width: 100%; padding: 16px 18px 20px; border: 0; outline: 0; background: none;
  font: 400 clamp(17px, 2vw, 20px)/1.4 var(--sans); color: var(--ink); letter-spacing: -0.01em;
}
.l-input::placeholder { color: var(--faint); }
.l-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.l-runner { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); font-weight: 500; }
.l-runner .muted { font-weight: 400; }
.spark { color: var(--accent); font-size: 12px; }
.l-wt { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.l-wt svg { width: 14px; height: 14px; }
.grow { flex: 1; }
.l-hint { color: var(--faint); font-size: 12.5px; opacity: 0; transition: opacity 0.4s; }
.l-hint.on { opacity: 1; }
.l-send { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 16px; cursor: pointer; transition: transform 0.12s; }
.l-send.press { transform: scale(0.88); }

/* The text that leaves the launcher on its way to its row. */
.flyer { position: fixed; z-index: 30; pointer-events: none; white-space: nowrap; font: 400 clamp(17px, 2vw, 20px)/1.4 var(--sans); letter-spacing: -0.01em; color: var(--ink); transform-origin: 0 50%; }

.queue { margin-top: 10px; min-height: 360px; }
.q-group h4 { display: flex; gap: 8px; margin: 18px 4px 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.q-group h4 .n { color: var(--faint); font-variant-numeric: tabular-nums; }
.q-group:has(.q-list:empty) { display: none; }
.q-list { display: grid; gap: 8px; }
.q-row {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 14px 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.q-row.new { animation: row-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes row-in { from { opacity: 0; translate: 0 -8px; } }
.q-row.mine { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.q-dot { width: 10px; height: 10px; border-radius: 50%; justify-self: center; background: var(--faint); }
.q-row[data-s='working'] .q-dot { background: none; width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
.q-row[data-s='asking'] .q-dot { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); animation: pulse 1.6s ease-in-out infinite; }
.q-row[data-s='done'] .q-dot { background: #18794e; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--warn) 6%, transparent); } }
.q-main { min-width: 0; }
.q-title { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-sub.swap { animation: sub-in 0.35s ease both; }
@keyframes sub-in { from { opacity: 0; translate: 0 5px; } }
.q-row[data-s='asking'] .q-sub { color: var(--warn); }
.q-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.q-opts button { height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); font: 500 12.5px var(--sans); color: var(--ink); cursor: pointer; }
.q-opts button:hover { border-color: var(--warn); }
.q-opts kbd { margin-right: 6px; }
.q-side { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12.5px; font-weight: 500; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.asking { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.pill.done { color: #18794e; background: rgba(24, 121, 78, 0.1); }
.pill.working { display: none; }
.q-logo { width: 16px; height: 16px; }
.q-logo.auto { display: grid; place-items: center; color: var(--accent); font-size: 12px; }
.q-proj { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); }
.q-time { width: 26px; text-align: right; font-variant-numeric: tabular-nums; }

.desk-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; }
.desk-cta .cmd { max-width: 100%; }
.desk-cta .cmd code { overflow: hidden; text-overflow: ellipsis; max-width: 40ch; }
.desk-cta.mine .cmd { box-shadow: 0 0 0 4px var(--accent-soft); }
.desk-cta.mine .fine b { color: var(--ink); }
@media (prefers-color-scheme: dark) {
  .pill.done { color: #4cc38a; background: rgba(76, 195, 138, 0.12); }
  .q-row[data-s='done'] .q-dot { background: #4cc38a; }
}

/* ---------- harness strip ---------- */
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 56px 0 24px; }
.strip-lbl { font: 12.5px var(--mono); color: var(--muted); }
.strip ul { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.strip li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 550; color: var(--ink-2); }

/* ---------- a morning ---------- */
.morning { padding-top: 120px; }
.m-intro h2 { max-width: 20ch; }
.m-track { position: relative; height: 560vh; margin-top: 24px; }
.m-sticky { position: sticky; top: 60px; height: calc(100vh - 60px); display: flex; align-items: center; }
.m-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 64px; align-items: center; }
.m-side { position: relative; padding-left: 26px; }
.rail { position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rail i { position: absolute; inset: 0 0 auto; height: 0; background: var(--accent); transition: height 0.15s linear; }
.clock { display: flex; align-items: baseline; gap: 12px; font: 600 clamp(56px, 7vw, 96px)/1 var(--mono); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.clock small { font: 500 14px var(--mono); letter-spacing: 0; color: var(--muted); }
.chapters { position: relative; margin: 32px 0 0; padding: 0; list-style: none; min-height: 210px; }
.chapters li { position: absolute; inset: 0 0 auto; opacity: 0; translate: 0 12px; transition: opacity 0.45s, translate 0.45s; pointer-events: none; }
.chapters li.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.chapters h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; font-weight: 650; }
.chapters p { margin-top: 12px; font-size: 16.5px; color: var(--ink-2); max-width: 40ch; }
.scenes { position: relative; overflow: hidden; aspect-ratio: 1280 / 800; background: var(--surface); }
.zoom { position: absolute; inset: 0; transition: transform 0.9s cubic-bezier(0.3, 0.7, 0.2, 1), transform-origin 0.9s cubic-bezier(0.3, 0.7, 0.2, 1); }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; }
.scene.on { opacity: 1; }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.ring { position: absolute; border-radius: 12px; border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); transition: left 0.6s cubic-bezier(0.3, 0.7, 0.2, 1), top 0.6s cubic-bezier(0.3, 0.7, 0.2, 1), width 0.6s cubic-bezier(0.3, 0.7, 0.2, 1), height 0.6s cubic-bezier(0.3, 0.7, 0.2, 1); pointer-events: none; }
.toast-note {
  position: absolute; top: 3%; right: 2%; width: min(46%, 380px); display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start;
  padding: 11px 12px; border-radius: 14px; font-size: 12px; line-height: 1.35;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.3);
  opacity: 0; translate: 24px 0; transition: opacity 0.4s, translate 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast-note.on { opacity: 1; translate: 0 0; }
.toast-note img { width: 34px; height: 34px; border-radius: 8px; }
.toast-note b { display: block; font-weight: 600; }
.toast-note span { display: block; margin-top: 2px; color: var(--ink-2); }
.toast-note time { color: var(--muted); font-size: 11px; }

/* ---------- report ---------- */
.report { padding: 160px 0 120px; }
.r-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; }
.r-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.r-head h2 { max-width: 16ch; }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; background: none; cursor: pointer; font: 500 14.5px var(--sans); color: var(--muted); transition: color 0.2s; }
.seg button.on { color: var(--ink); }
.seg small { font: 11.5px var(--mono); color: var(--faint); }
.seg-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 9px; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); transition: left 0.35s cubic-bezier(0.3, 0.7, 0.2, 1), width 0.35s cubic-bezier(0.3, 0.7, 0.2, 1); }
.r-body { position: relative; margin-top: 44px; min-height: 720px; }
.r-log, .r-report { transition: opacity 0.5s, filter 0.5s, translate 0.5s; }
.r-log { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: #0f0f0f; border: 1px solid #222; box-shadow: var(--shadow); }
.r-log pre { margin: 0; padding: 22px 26px; font-size: 12px; line-height: 1.7; color: #9a9a96; white-space: pre; will-change: transform; }
.r-log pre .t { color: #e5e5e2; }
.r-log pre .ok { color: #4cc38a; }
.r-log pre .bad { color: #ff6369; }
.r-log pre .dim { color: #5d5d5a; }
.r-log::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, #0f0f0f); pointer-events: none; }
.r-report { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.r-report .scroll { max-height: 680px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.r-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; position: sticky; top: 100px; }
.r-notes li { padding-top: 18px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.r-notes b { color: var(--ink); }
.r-body[data-view='log'] .r-report { opacity: 0; filter: blur(6px); translate: 0 16px; pointer-events: none; }
.r-body[data-view='report'] .r-log { opacity: 0; translate: 0 -16px; pointer-events: none; }

/* ---------- compare (dark band) ---------- */
.compare { padding: 128px 0 140px; background: var(--band); color: var(--band-ink); }
.compare .eyebrow { color: #8aa4ff; }
.c-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 64px; }
.c-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.c-head p { font-size: 17px; color: var(--band-muted); max-width: 48ch; }
.c-head p b { color: var(--band-ink); font-weight: 600; }
.cmp-shot { max-width: 1240px; margin-inline: auto; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 120px -40px rgba(0, 0, 0, 0.9); }
.cmp-shot img { width: 100%; }

/* ---------- control ---------- */
.control { padding: 140px 0 40px; }
.sec-head h2 { max-width: 22ch; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.tile { margin: 0; }
.tile-img { overflow: hidden; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); aspect-ratio: 16 / 12; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile:hover .tile-img img { scale: 1.025; }
.tile figcaption { margin-top: 18px; font-size: 15.5px; color: var(--ink-2); max-width: 52ch; }
.tile figcaption b { color: var(--ink); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface); }
.mode { padding: 24px 26px; border-left: 1px solid var(--line); transition: background 0.2s; cursor: default; }
.mode:first-child { border-left: 0; }
.mode:hover, .mode.on { background: var(--accent-soft); }
.m-k { font: 600 13px var(--mono); }
.mode.def .m-k::after { content: 'default'; margin-left: 10px; padding: 2px 6px; border-radius: 4px; font-size: 10.5px; font-weight: 500; color: var(--accent); border: 1px solid currentColor; }
.mode p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.takeover { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 56px; align-items: center; margin-top: 96px; }
.takeover h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 680; }
.takeover p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.harness-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.harness-table th { text-align: left; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 0 0 12px; border-bottom: 1px solid var(--line-2); }
.harness-table td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.harness-table td:first-child { display: flex; align-items: center; gap: 10px; font-weight: 550; }
.harness-table code { font-size: 13px; }

/* ---------- cli ---------- */
.cli { padding: 140px 0; }
.cli-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.cli-text > p:not(.eyebrow) { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); }
.cli-text .small { font-size: 14.5px; color: var(--muted); }
.cli-text a { color: var(--accent); text-decoration: none; }
.term-win { border-radius: 12px; overflow: hidden; background: #0f0f0f; border: 1px solid #262626; box-shadow: var(--shadow); }
.term-win .win-title { color: #8a8a86; font-family: var(--mono); font-size: 11.5px; }
.replay { margin-left: auto; border: 0; background: none; color: #6a6a66; font-size: 15px; cursor: pointer; }
.replay:hover { color: #ddd; }
.term { margin: 0; height: 470px; overflow: hidden; padding: 20px 22px; font-size: 13px; line-height: 1.65; color: #d6d6d2; white-space: pre-wrap; word-break: break-word; }
.term .p { color: #8aa4ff; }
.term .c { color: #6c6c68; }
.term .h { color: #fff; font-weight: 700; }
.term .ok { color: #4cc38a; }
.term .del { color: #ff7b72; }
.term .add { color: #4cc38a; }
.term .warn { color: #f0a33a; }
.term .caret { display: inline-block; width: 8px; height: 15px; vertical-align: -2px; background: #d6d6d2; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- also ---------- */
.more { padding: 40px 0 120px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-2); }
.grid > div { padding: 26px 28px 30px 0; border-bottom: 1px solid var(--line); }
.grid > div:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.grid dt { font-weight: 650; font-size: 16px; }
.grid dd { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- install ---------- */
.install { padding: 120px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.install .sub { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.steps { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { padding: 26px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.steps .n { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 18px; border-radius: 50%; font: 600 13px var(--mono); background: var(--ink); color: var(--bg); }
.steps b { display: block; font-size: 16.5px; line-height: 1.35; }
.steps p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { padding: 120px 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.qa-list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--faint); font: 400 22px/1 var(--sans); transition: rotate 0.2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }

/* ---------- final ---------- */
.final { position: relative; overflow: hidden; padding: 140px 0 150px; text-align: center; border-top: 1px solid var(--line); }
.final-clock { position: absolute; left: 50%; top: 50%; translate: -50% -54%; font: 700 clamp(160px, 30vw, 420px)/1 var(--mono); letter-spacing: -0.08em; color: var(--ink); opacity: 0.045; pointer-events: none; white-space: nowrap; }
.final h2 { position: relative; font-size: clamp(36px, 5.6vw, 72px); }
.final .cta { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.cmd.link { justify-content: center; padding: 0 22px; text-decoration: none; }
/* wisp Cloud teaser: the final section's big-clock look, at 03:12 instead of 09:02 */
.cloud-band { padding: 120px 0 130px; }
.cloud-band .eyebrow { position: relative; }
.cloud-band .sub { position: relative; max-width: 54ch; margin: 18px auto 0; font-size: 18px; color: var(--ink-2); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; }
.foot .grow { flex: 1; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; translate: 0 18px; transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .rise.in { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .window.big { transform: none !important; }
}

/* ---------- small screens: the story becomes a plain list ---------- */
@media (max-width: 960px) {
  .links { display: none; }
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-top { padding-top: 0; }
  .l-hint { display: none; }
  .q-proj { display: none; }
  .r-head, .c-head, .takeover, .cli-grid, .faq, .r-report { grid-template-columns: 1fr; gap: 32px; }
  .m-track { height: auto; }
  .m-sticky { position: static; height: auto; display: block; }
  .m-grid { grid-template-columns: 1fr; }
  .m-side { padding-left: 0; }
  .rail, .clock { display: none; }
  .chapters { min-height: 0; }
  .chapters li { position: static; opacity: 1; translate: none; margin-bottom: 28px; }
  .chapters li::before { content: attr(data-t); display: block; font: 600 14px var(--mono); color: var(--accent); margin-bottom: 6px; }
  .m-stage { display: none; }
  .ch-shot { display: block; margin-top: 16px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
  .r-body { min-height: 0; }
  .r-log { display: none; }
  .r-body[data-view='log'] .r-report { opacity: 1; filter: none; translate: none; pointer-events: auto; }
  .seg { display: none; }
  .r-notes { position: static; }
  .duo, .steps { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .mode { border-left: 0; border-top: 1px solid var(--line); }
  .mode:first-child { border-top: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .grid > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .term { height: 420px; font-size: 12px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .grid { grid-template-columns: 1fr; }
  .grid > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .lede { font-size: 17px; }
  .cmd { width: 100%; }
  .cmd code { margin-right: auto; }
  .btn { width: 100%; justify-content: center; }
  .gh span:not(.stars) { display: none; }
  .strip { justify-content: flex-start; }
}
