/* off-template · direction C "darkroom develop" + safelight beam + agent window that picks the look below · job: copy the install command · faces: Familjen Grotesk / JetBrains Mono · palette: night, tray, logo red, print white · motion: lively, the beam lights the hero, prints develop · waivers: mono-labels */
:root {
  --night: #141818;
  --tray: #1c2120;
  --line: #282c30;
  --red: #E5231B;
  --head: #f4f4f4;
  --text: #acb0bc;
  --print: #fcf8f4;
  --ink: #141818;
  --shadow: rgba(0, 0, 0, .6);
  --ink-line: rgba(20, 24, 24, .12);
  --mask-on: #000;
  --lit-ink: color-mix(in srgb, var(--hero-top) 28%, var(--head));
  /* the hero's light: top, low and core tones, swapped by the chosen look */
  --hero-top: var(--red);
  --hero-low: var(--pillar-low);
  --hero-core: var(--head);
  --pastel-green: #c4e6b0;
  --pastel-pink: #f5bccb;
  --ink-soft: color-mix(in srgb, var(--ink) 65%, var(--print));
  /* brushed red metal for the flow numbers (look C) */
  --metal-sheen: rgba(255, 255, 255, .78);
  --brush-hi: rgba(255, 255, 255, .2);
  --brush-lo: rgba(0, 0, 0, .16);
  --metal-1: #fff6f4; --metal-2: #f4c2bb; --metal-3: #d24b41; --metal-4: #7a1c18;
  --metal-5: #f6d4ce; --metal-6: #b8362e; --metal-7: #4a110f;
  --pillar-low: color-mix(in srgb, var(--red) 55%, var(--head));
  --teal: #6cb4bc;
  --green: #a0c080;
  --coral: #d07074;
  --font-c: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-a: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --font-b-head: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-b-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --morph: --s-bg 700ms var(--ease), --s-surface 700ms var(--ease), --s-text 700ms var(--ease), --s-head 700ms var(--ease), --s-accent 700ms var(--ease), --s-accent-2 700ms var(--ease), --s-num 700ms var(--ease);
}
/* Registered so the look colours morph. Literals are the C values (the one allowed exception). */
@property --s-bg { syntax: '<color>'; inherits: true; initial-value: #141818; }
@property --s-surface { syntax: '<color>'; inherits: true; initial-value: #1c2120; }
@property --s-text { syntax: '<color>'; inherits: true; initial-value: #acb0bc; }
@property --s-head { syntax: '<color>'; inherits: true; initial-value: #f4f4f4; }
@property --s-accent { syntax: '<color>'; inherits: true; initial-value: #E5231B; }
@property --s-accent-2 { syntax: '<color>'; inherits: true; initial-value: #E5231B; }
@property --s-num { syntax: '<color>'; inherits: true; initial-value: #E5231B; }

*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; }
html {
  scrollbar-width: thin;
  scrollbar-color: var(--line) var(--tray);
  -webkit-text-size-adjust: 100%;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--tray); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.55 var(--font-c);
  font-variant-numeric: tabular-nums;
  caret-color: var(--red);
}
/* Off-screen, not display:none: that is what makes the browser fetch looks A and B before the first click. */
.font-warm {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  white-space: nowrap;
}
.fw-a8 { font: 800 16px var(--font-a); }
.fw-a4 { font: 400 16px var(--font-a); }
.fw-b8 { font: 800 16px var(--font-b-head); }
.fw-i4 { font: 400 16px var(--font-b-body); }
.fw-i6 { font: 600 16px var(--font-b-body); }
@media (max-width: 599.98px) { body { font-size: 16px; } }

::selection { background: var(--red); color: var(--head); }

img { display: block; max-width: 100%; }
h1, h2 { text-wrap: balance; color: var(--head); }
p { max-width: 62ch; }
.small { font-size: 14px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

[data-lit] { --lit: 0; --lx: 50; }

/* ---------- JS / no-JS switches ---------- */
.no-js .js-only { display: none; }
.js .nojs-only { display: none; }

/* ---------- Nav ---------- */
.nav { position: relative; z-index: 1; padding-top: 24px; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-c);
  font-weight: 700;
  font-size: 22px;
  color: var(--head);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.caret {
  width: .72em;
  height: .6em;
  margin: 0 .04em;
  align-self: center;
  overflow: visible;
}
.caret path {
  fill: none;
  stroke: var(--red);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--text); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--head); }
.nav-links .gh { color: var(--head); padding: 12px 0; }
@media (max-width: 599.98px) { .nav-links .hide-s { display: none; } }

/* ---------- Hero ---------- */
#hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--night);
  padding-bottom: clamp(48px, 7vw, 104px);
}
.beam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  margin-top: clamp(40px, 7vw, 96px);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.copy { display: contents; }
.copy h1 { order: 1; }
.copy .lede { order: 2; }
.install { order: 3; }
.stage { order: 4; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .copy { display: block; min-width: 0; }
  .copy h1, .copy .lede, .stage, .install { order: 0; }
}

h1 {
  position: relative;
  margin: 0 0 24px;
  font: 700 clamp(2.9rem, 5.4vw, 5.4rem)/0.95 var(--font-c);
  letter-spacing: -0.025em;
}
h1 .ln { display: inline-block; }
h1 br.d { display: none; }
@media (min-width: 960px) { h1 br.d { display: inline; } }

.h1-lit {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--lit-ink);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 48% 150% at calc(var(--lx) * 1%) 0%, var(--mask-on) 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 48% 150% at calc(var(--lx) * 1%) 0%, var(--mask-on) 0%, transparent 100%);
  opacity: min(1, calc(var(--lit) * 1.5));
}

.lede {
  margin: 0 0 32px;
  max-width: 30ch;
  text-wrap: pretty;
  font-size: 18px;
  color: var(--text);
}
@media (min-width: 600px) { .lede { font-size: 20px; } }

/* ---------- Install ---------- */
.tabs { display: flex; gap: 22px; margin-bottom: 10px; }
.no-js .tabs { display: none; }
.tab {
  position: relative;
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 0;
  font: 400 15px/1.2 var(--font-c);
  color: var(--text);
  cursor: pointer;
  transition: color .15s;
}
.tab:hover { color: var(--head); }
.tab[aria-selected="true"] { color: var(--head); }
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.cmd-item { margin-bottom: 12px; }
.cmd-item[hidden] { display: none; }
.js .cmd-name { display: none; }
.cmd-name { margin: 0 0 4px; font-size: 14px; color: var(--text); }
.cmd-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--tray);
  border-radius: 0;
  padding: 14px 16px;
  font: 400 15px/1.55 var(--font-mono);
  color: var(--head);
}
.cmd-row .prompt { flex: none; color: var(--text); }
.cmd-row code {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  overflow-wrap: break-word;
  word-break: normal;
}
.copy-btn {
  flex: none;
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 2px 0;
  font: 500 13px/1.55 var(--font-mono);
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--head);
  cursor: pointer;
  transition: border-color .15s;
}
.copy-btn:hover { color: var(--red); }
.no-js .copy-btn { display: none; }
.install-note { margin: 4px 0 0; color: var(--text); }

/* ---------- Stage ---------- */
.stage { position: relative; display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 960px) {
  .stage { display: flex; }
}

/* The proof sits behind the agent window, in depth: dimmed and a little out of focus at rest,
   sharp while a direction develops, on hover and on keyboard focus. */
.tray {
  position: relative;
  z-index: 0;
  align-self: flex-end;
  width: 92%;
  margin-top: -40px;
  aspect-ratio: 1600 / 1058;
  transform: scale(.97);
  transform-origin: 70% 30%;
  filter: blur(2px) brightness(.58) saturate(.85);
  transition: filter 600ms var(--ease), transform 600ms var(--ease);
}
.stage.focus .tray, .stage:hover .tray, .stage:focus-within .tray { filter: none; transform: none; }
@media (min-width: 960px) {
  .tray { width: 86%; margin-top: -200px; }
}
.liquid { display: none; }
@keyframes sheen {
  from { transform: translate(-6%, -4%) scale(1); }
  to { transform: translate(8%, 6%) scale(1.15); }
}

.print {
  position: absolute;
  inset: 0;
  border: 4px solid var(--print);
  transform: rotate(-1.2deg);
  background: var(--tray);
  box-shadow: 0 14px 26px -12px var(--shadow);
}
.print img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.js:not(.ready) .print-mock { opacity: 0; }

.ripple {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--head);
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.caption {
  display: flex;
  gap: 24px;
  margin: 12px 0 0;
  max-width: none;
  color: var(--text);
  order: 2;
  align-self: flex-end;
}
.caption .on { color: var(--head); }
.caption span { transition: color .2s; }

/* lit overlays */
.tray::after, .print::after, .agent::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 110% at calc(var(--lx) * 1%) 0%, var(--hero-top), transparent 72%);
  mix-blend-mode: screen;
  opacity: calc(var(--lit) * .7);
}
.print::after { opacity: calc(var(--lit) * .9); }
.agent::after { z-index: 0; }

/* ---------- Agent window ---------- */
.agent {
  position: relative;
  order: -1;
  margin-bottom: 16px;
  width: 100%;
  z-index: 2;
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 48px -16px var(--shadow);
}
@media (min-width: 960px) {
  .agent {
    position: relative;
    align-self: flex-start;
    margin-bottom: 0;
    width: min(24rem, 66%);
  }
}
.agent > * { position: relative; z-index: 1; }

.agent-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 12px;
}
.dots { display: flex; gap: 6px; flex: none; }
.dots i { display: block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.agent-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 400 13px/1 var(--font-mono);
  color: var(--text);
}

.agent-body { padding: 16px; font: 400 14px/1.55 var(--font-mono); color: var(--text); }
.agent-body p { margin: 0; max-width: none; }
.agent-body .prompt { color: var(--text); }
.agent-body .hd { color: var(--head); }
.a-line + .a-line { margin-top: 2px; }
.picks { display: flex; flex-direction: column; gap: 2px; margin: 12px -16px; }
.no-js .picks { display: none; }
.pick {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  background: none;
  border: 0;
  border-radius: 0;
  font: 400 14px/1.4 var(--font-mono);
  color: var(--head);
  text-align: left;
  cursor: pointer;
  transition: background-color .15s;
}
.pick:hover:not([aria-disabled="true"]) { background: var(--tray); }
.pick[aria-disabled="true"] { cursor: progress; }
.pick[aria-pressed="true"] { background: var(--tray); box-shadow: inset 3px 0 0 var(--red); }
.pk { color: var(--text); }
.pick[aria-pressed="true"] .pk { color: var(--head); }
.pk { flex: none; }
.status { min-height: 1.55em; font-size: 13px; color: var(--text); }
.no-js .status { display: none; }

/* ---------- Beam fallback ---------- */
#hero.beam-static .beam { display: none; }
#hero.beam-static::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: -20% auto -20% calc(var(--lamp-x, 50%) - 70px);
  width: 140px;
  background: linear-gradient(var(--red), var(--pillar-low));
  transform: rotate(-22deg);
  filter: blur(36px);
  opacity: .45;
}

/* ---------- Motion on load ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.js .ln { animation: rise .7s var(--ease) both; }
.js .ln0 { animation-delay: 0ms; }
.js .ln1 { animation-delay: 80ms; }
.js .ln2 { animation-delay: 160ms; }
.js .lede { animation: rise .7s var(--ease) 360ms both; }
.js .install { animation: rise .7s var(--ease) 440ms both; }
.ready .ln, .ready .lede, .ready .install { animation: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .tray { transition: none; }
  .js .ln, .js .lede, .js .install { animation: none; }
  .liquid { animation: none; }
  .tab::after, .tab, .copy-btn, .pick, .caption span, .nav-links a { transition: none; }
}

@media (min-width: 960px) {
}
.cmd-row .nb { white-space: nowrap; }

/* =====================================================================
   Part 2: the three looks, the sections, the footer
   Looks are mapped per section (data-look on each .sec and on .foot) so
   the rebuild can swap them one after another.
   ===================================================================== */
.sec[data-look="c"], .foot[data-look="c"] {
  --s-bg: var(--night);
  --s-surface: var(--tray);
  --s-text: var(--text);
  --s-head: var(--head);
  --s-accent: var(--red);
  --s-accent-2: var(--red);
  --s-num: var(--red);
  --s-font-head: var(--font-c);
  --s-font-body: var(--font-c);
  --s-weight: 700;
}
.sec[data-look="a"], .foot[data-look="a"] {
  --s-bg: var(--night);
  --s-surface: var(--tray);
  --s-text: var(--text);
  --s-head: var(--head);
  --s-accent: var(--teal);
  --s-accent-2: var(--green);
  --s-num: var(--teal);
  --s-font-head: var(--font-a);
  --s-font-body: var(--font-a);
  --s-weight: 800;
}
.sec[data-look="b"], .foot[data-look="b"] {
  --s-bg: var(--print);
  --s-surface: var(--print);
  --s-text: var(--ink);
  --s-head: var(--ink);
  --s-accent: var(--coral);
  --s-accent-2: var(--green);
  --s-num: var(--ink);
  --s-font-head: var(--font-b-head);
  --s-font-body: var(--font-b-body);
  --s-weight: 800;
}

.sec, .foot {
  background: var(--s-bg);
  color: var(--s-text);
  font-family: var(--s-font-body);
  transition: var(--morph);
}
.foot { position: relative; }
.sec { position: relative; padding-block: clamp(56px, 7vw, 104px); }
.sec p { max-width: 62ch; }
.sec h2 {
  margin: 0 0 24px;
  font: var(--s-weight) clamp(2rem, 4vw, 3.4rem)/1.02 var(--s-font-head);
  letter-spacing: -0.02em;
  color: var(--s-head);
}
.sec-head p { margin: 0 0 48px; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* accent devices on the h2 */
.sec[data-look="a"] h2::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-right: .3em;
  vertical-align: -0.12em;
  background: var(--s-accent);
}
.sec.arrive[data-look="a"] h2::before { animation: caret-once .8s linear 1; }
@keyframes caret-once {
  0%, 49.99% { opacity: 1; }
  50%, 99.99% { opacity: 0; }
  100% { opacity: 1; }
}
.sec[data-look="b"] h2::after {
  content: "";
  display: block;
  width: min(6rem, 40%);
  height: 3px;
  margin-top: 20px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--s-accent) 50%, var(--s-accent-2) 50%);
}

/* ---------- shared editor window (looks A only; plain wrapper elsewhere) ---------- */
.fbar { display: none; }
.fdots { display: flex; gap: 6px; flex: none; }
.fdots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.fname {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 400 12px/1 var(--font-mono);
  color: var(--s-text);
}
.sec[data-look="a"] .fbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  padding: 0 12px;
  background: var(--tray);
}
.sec[data-look="a"] :is(.frame, .win) {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 48px -16px var(--shadow);
}

/* ---------- 1. compare ---------- */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 24px;
}
@media (min-width: 760px) {
  .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.diff-v { display: none; }
.pic { --sc: var(--coral); margin: 0; min-width: 0; }
.pic-2 { --sc: var(--green); }
.frame { position: relative; }
.frame img { width: 100%; height: auto; }

.stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 16px;
  color: var(--s-text);
}
.num {
  position: relative;
  margin: 0;
  font: var(--s-weight) clamp(3.5rem, 7vw, 6rem)/1 var(--s-font-head);
  font-variant-numeric: tabular-nums;
  color: var(--s-head);
}
.digits { display: inline-block; min-width: 2ch; }
.digits[data-count="0"] { min-width: 1ch; }
@media (max-width: 520px) { .lab { flex-basis: 100%; } }
.lab { position: relative; font-size: 15px; line-height: 1.4; color: var(--s-text); }

/* C: the two prints lie on one tray panel */
.sec[data-look="c"] .pair {
  padding: clamp(16px, 3vw, 40px);
  background: var(--s-surface);
  border-radius: 6px;
}
.sec[data-look="c"] .frame { border: 6px solid var(--print); transform: rotate(-0.6deg); }
.sec[data-look="c"] .pic-2 .frame { transform: rotate(0.6deg); }

/* A: each number is a line of the editor below its window */
.sec[data-look="a"] .stat { flex-wrap: wrap; gap: 0 12px; font-family: var(--font-mono); color: var(--sc); }
.sec[data-look="a"] .num { font: 500 clamp(2rem, 4.5vw, 3.5rem)/1.1 var(--font-mono); color: var(--sc); }
.sec[data-look="a"] .num::before { content: "// "; }
.sec[data-look="a"] .lab { font: 400 14px/1.4 var(--font-mono); color: var(--sc); }
.sec[data-look="a"] .l2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* B: full-bleed pair, diff signs */
.sec[data-look="b"] .pair-wrap { max-width: none; padding-inline: 0; }
.sec[data-look="b"] .pair { gap: 0; }
.sec[data-look="b"] .stat { padding: 12px clamp(16px, 4vw, 48px) 0; }
.sec[data-look="b"] .num::before { content: "\2212\00a0"; color: var(--sc); }
.sec[data-look="b"] .pic-2 .num::before { content: "+\00a0"; }
.sec[data-look="b"] .diff-v {
  display: block;
  height: 3px;
  margin-top: 32px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--s-accent) 50%, var(--s-accent-2) 50%);
}
.sec[data-look="b"] .diff-v + .pic { margin-top: 32px; }
@media (min-width: 760px) {
  .sec[data-look="b"] .pair { grid-template-columns: minmax(0, 1fr) 3px minmax(0, 1fr); }
  .sec[data-look="b"] .diff-v {
    height: auto;
    margin-top: 0;
    transform-origin: center top;
    background: linear-gradient(var(--s-accent) 50%, var(--s-accent-2) 50%);
  }
  .sec[data-look="b"] .diff-v + .pic { margin-top: 0; }
}
.lint-note { margin: clamp(32px, 4vw, 48px) 0 0; }

/* ---------- 2. flow ---------- */
.flow-win { margin-top: 40px; }
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 40px); }
}
.steps li { min-width: 0; }
.steps .n {
  display: block;
  margin-bottom: 12px;
  font: var(--s-weight) clamp(3rem, 6vw, 5rem)/1 var(--s-font-head);
  color: var(--s-num);
}
.steps h3 {
  margin: 0 0 8px;
  font: var(--s-weight) 20px/1.25 var(--s-font-head);
  color: var(--s-head);
}
.steps p { margin: 0; color: var(--s-text); }

/* A: the four steps are lines of one editor window */
.sec[data-look="a"] .steps {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 20px clamp(16px, 3vw, 28px);
}
.sec[data-look="a"] .steps li {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  column-gap: 16px;
}
.sec[data-look="a"] .steps .n {
  grid-row: 1 / span 2;
  margin: 0;
  font: 400 15px/1.55 var(--font-mono);
  color: var(--s-accent);
}
.sec[data-look="a"] .steps h3 { grid-column: 2; margin: 0; font-size: 17px; }
.sec[data-look="a"] .steps p { grid-column: 2; }

/* B: a diff line on the left of each step */
.sec[data-look="b"] .steps li { position: relative; padding-left: 24px; }
.sec[data-look="b"] .steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  transform-origin: center top;
  background: linear-gradient(var(--s-accent) 50%, var(--s-accent-2) 50%);
}

/* ---------- 3. tells ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 48px;
  align-items: start;
}
.split h2 { margin: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split h2 { position: sticky; top: 96px; }
}
.tells {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tells li {
  position: relative;
  justify-self: start;
  margin-left: -2px; /* the spans' left padding, so the text keeps its edge */
  font-size: 22px;
  line-height: 1.3;
  color: var(--s-head);
}
/* The strike rides on an invisible copy of the text laid over it: it follows each line box, so a tell that
   wraps on a phone is struck on every line, and it stays on top of the letters. Both copies get the same
   padding on every line, so they wrap at the same words. */
.tells li span {
  padding: 0 6px 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.tells li i {
  position: absolute;
  inset: 0;
  color: transparent;
  font-style: normal;
  pointer-events: none;
  user-select: none;
}
.tells li i span {
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'><path d='M0 2.8Q200 6.2 400 3.2' fill='none' stroke='%23E5231B' stroke-width='2.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>") left 0 top 0.5em / 100% 8px no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.tells li:nth-child(4n+2) i span { background-position-y: 0.48em; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'><path d='M0 5Q200 1.8 400 4.6' fill='none' stroke='%23E5231B' stroke-width='2.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>"); }
.tells li:nth-child(4n+3) i span { background-position-y: 0.46em; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'><path d='M0 3C180 3.4 300 4.4 400 5' fill='none' stroke='%23E5231B' stroke-width='2.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>"); }
.tells li:nth-child(4n) i span { background-position-y: 0.52em; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'><path d='M0 4.8C180 4.4 300 3.4 400 2.8' fill='none' stroke='%23E5231B' stroke-width='2.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>"); }
.tells.arm li i span { background-size: 0% 8px; }
.tells.go li i span { transition: background-size 500ms var(--ease) calc(var(--i, 0) * 60ms); }

/* ---------- 4. install (the hero's tabs + command row, six tabs) ---------- */
.inst .tabs { flex-wrap: wrap; gap: 4px 22px; margin-bottom: 12px; }
.inst .tab { color: var(--s-text); }
.inst .tab:hover, .inst .tab[aria-selected="true"] { color: var(--s-head); }
.inst .tab::after { background: var(--s-accent); }
.sec[data-look="b"] .inst .tab:not([aria-selected="true"]) { color: var(--ink-soft); }
.inst .cmd-item { margin: 0; }
.inst .cmd-item + .cmd-item { margin-top: 12px; }
.inst .cmd-row { background: var(--s-surface); }
.inst .copy-btn { color: var(--s-head); }
.inst .copy-btn:hover { color: var(--s-head); text-decoration-color: var(--s-accent); }
.sec[data-look="a"] .inst .cmd-row { background: none; }
.sec[data-look="a"] .inst .cmd-item + .cmd-item { margin-top: 0; }
.sec[data-look="b"] .inst .cmd-row { background: var(--ink); color: var(--print); }
.sec[data-look="b"] .inst .cmd-row .prompt { color: var(--print); }
.sec[data-look="b"] .inst .copy-btn { color: var(--print); }
.sec[data-look="b"] .inst .copy-btn:hover { color: var(--print); text-decoration-color: var(--coral); }
.sec[data-look="b"] .inst .copy-btn:focus-visible { outline-color: var(--print); }
.install-after { margin: 32px 0 0; }

/* ---------- 5. vault ---------- */
.vault-head { min-width: 0; }
@media (min-width: 960px) {
  .split .vault-head { position: sticky; top: 96px; }
  .split .vault-head h2 { position: static; }
}
.vault-art { container-type: inline-size; max-width: 520px; margin: 32px 0 0; }
.vault-art canvas { display: none; width: 100%; }
/* No JS: the same Obsidian logo as text, 108 columns wide. */
.vault-still {
  margin: 0;
  overflow: hidden;
  font: 400 calc(100cqi / 64.8) / 1.11 var(--font-mono);
  color: var(--s-accent);
}
.vault-art.live canvas { display: block; }
.vault-art.live .vault-still { display: none; }
.vault-art figcaption { margin-top: 12px; font-size: 14px; color: var(--s-text); }
.vault > p:first-child { margin-top: 0; font-size: 19px; color: var(--s-head); }
.vault-steps { display: grid; gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.vault-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0 12px; align-items: baseline; }
.vault-steps .vn { font-size: 22px; font-weight: 700; color: var(--s-accent); }
.vault-steps p { margin: 0; color: var(--s-text); }
.vault-steps strong { color: var(--s-head); }
.vault-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 20px 0 0; }
.vault-links a, .vault-links button {
  padding: 12px 0;
  border: 0;
  background: none;
  color: var(--s-head);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--s-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
  transition: text-underline-offset .2s var(--ease);
}
.vault-links a:hover, .vault-links button:hover { text-underline-offset: 8px; }
.vault-links .vault-explore[hidden] { display: none; }
.vault-note { margin: 16px 0 0; font-size: 14px; color: var(--s-text); }

/* ---------- 5b. the starter vault, explored: its graph in characters over the whole section ---------- */
.sec.exploring .split { display: none; }
.vault-stage[hidden] { display: none; }
.vstage-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; }
.vstage-bar h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; color: var(--s-head); }
.vstage-bar h3:focus { outline: none; }
.vstage-hint { flex: 1 1 260px; margin: 0; font-size: 15px; color: var(--s-text); }
.vstage-close, .vnote-close {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--s-head);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--s-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}
.vstage-graph {
  position: relative;
  height: clamp(520px, 74vh, 780px);
  margin-top: 16px;
  overflow: hidden;
}
.vstage-graph canvas { display: block; width: 100%; height: 100%; }
.vstage-nodes { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.vstage-nodes button {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}
.vstage-nodes button.dragging { cursor: grabbing; }
.vstage-nodes button:focus-visible { outline: 2px solid var(--s-head); outline-offset: 2px; }

.vnote {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 44%);
  background: var(--s-surface);
  color: var(--s-text);
  font-size: 15px;
  line-height: 1.55;
}
.vnote { border-left: 1px solid var(--line); }
.sec[data-look="b"] .vnote { border-left-color: var(--ink-line); }
.vnote[hidden] { display: none; }
.vnote-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 16px 20px 8px; }
.vnote-path { grid-column: 1 / -1; margin: 0; font: 400 13px/1.4 var(--font-mono); color: var(--s-text); }
.vnote-head h4 { margin: 0; align-self: center; font-size: 22px; line-height: 1.2; color: var(--s-head); }
.vnote-head h4:focus { outline: none; }
.vnote-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 24px; }
.vnote-body p, .vnote-body ul, .vnote-body ol, .vnote-body table, .vnote-body pre { max-width: none; margin: 0 0 12px; }
.vnote-body ul, .vnote-body ol { padding-left: 20px; }
.vnote-body li { margin-bottom: 4px; }
.vnote-body h2, .vnote-body h3, .vnote-body h4 { margin: 20px 0 8px; font-size: 16px; line-height: 1.3; color: var(--s-head); }
.vnote-body strong { color: var(--s-head); }
.vnote-body code, .vnote-body pre { font: 400 13px/1.5 var(--font-mono); }
.vnote-body pre { overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.vnote-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vnote-body th, .vnote-body td { padding: 6px 8px 6px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.sec[data-look="b"] .vnote-body th, .sec[data-look="b"] .vnote-body td { border-bottom-color: var(--ink-line); }
.vnote-body a, .vnote-body .vlink {
  padding: 0;
  border: 0;
  background: none;
  color: var(--s-head);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--s-accent);
  text-underline-offset: 3px;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .vnote.opening { animation: vnote-in 260ms var(--ease) both; }
}
@keyframes vnote-in { from { opacity: 0; transform: translateX(16px); } }
@media (max-width: 719px) {
  .vstage-graph { height: 78vh; min-height: 480px; }
  .vnote { top: auto; left: 0; width: auto; max-height: 62%; }
  @keyframes vnote-in { from { opacity: 0; transform: translateY(16px); } }
}

/* ---------- footer ---------- */
.foot {
  padding-block: 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.foot[data-look="b"] { border-top-color: var(--ink-line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot .logo { color: var(--s-head); }
.foot p { margin: 0; max-width: none; color: var(--s-text); }
.foot-meta { display: flex; align-items: center; gap: 24px; }
.foot-meta span { display: inline-flex; align-items: center; min-height: 44px; }
.foot-meta a { color: var(--s-head); text-underline-offset: 4px; }
.foot-line { flex: 1 0 100%; max-width: 62ch; }

/* ---------- entrances and the rebuild (classes toggled by JS) ----------
   The section itself stays opaque and still. Fading or shifting it shows the
   black page behind a white look, and replaying that on every look change
   reads as a reload. */
.sec.pre > * { opacity: 0; transform: translateY(16px); }
.sec.in > * { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }

/* B: the dark hero fades into the white page. A and C are already dark, so this reads as nothing there. */
#compare {
  isolation: isolate;
  padding-top: max(clamp(56px, 7vw, 104px), clamp(96px, 10vw, 160px));
}
#compare::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(96px, 10vw, 160px);
  background: linear-gradient(in oklab, var(--night) 0%, var(--night) 8%, var(--s-bg) 92%);
  pointer-events: none;
  z-index: 0;
}
#compare > .container { position: relative; z-index: 1; }

/* the develop line that sweeps a section while it rebuilds */
.sec::after, .foot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--s-accent);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.steps li:nth-child(2) { --k: 1; }
.steps li:nth-child(3) { --k: 2; }
.steps li:nth-child(4) { --k: 3; }

@keyframes dev-line {
  0% { transform: translateY(0); opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { transform: translateY(var(--h, 0px)); opacity: 0; }
}
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes n-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) rotate(-3deg); } }
@keyframes win-open { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* the terminal command types itself by revealing (JS wraps the letters, then restores the markup) */
.ty { opacity: 0; }
.ty.ty-on { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .sec.rb::after, .foot.rb::after { animation: dev-line 520ms var(--ease); }

  /* lines draw themselves, once, when the section first arrives */
  .sec.arrive[data-look="b"] h2::after { animation: draw-x 700ms var(--ease) 200ms backwards; }
  .sec.arrive[data-look="b"] .diff-v { animation: draw-x 700ms var(--ease) 250ms backwards; }
  @media (min-width: 760px) {
    .sec.arrive[data-look="b"] .diff-v { animation-name: draw-y; }
  }
  .sec.arrive[data-look="b"] .steps li::before { animation: draw-y 700ms var(--ease) calc(var(--k, 0) * 90ms + 200ms) backwards; }

  /* the flow numbers rise one after another */
  .sec.arrive:not([data-look="a"]) .steps .n { animation: n-rise 500ms var(--ease) calc(var(--k, 0) * 90ms + 150ms) backwards; }

  /* pictures arrive in the look's own way */
  .sec.arrive[data-look="c"] .frame { animation: drop 600ms var(--ease) 200ms backwards; }
  .sec.arrive[data-look="c"] .pic-2 .frame { animation-delay: 320ms; }
  .sec.arrive[data-look="a"] .frame { animation: win-open 450ms var(--ease) 200ms backwards; }
  .sec.arrive[data-look="a"] .pic-2 .frame { animation-delay: 320ms; }
  .sec.arrive[data-look="b"] .frame { animation: wipe 700ms var(--ease) 200ms backwards; }
  .sec.arrive[data-look="b"] .pic-2 .frame { animation-delay: 320ms; }

  /* A: the four lines of flow.md appear one by one */
  .sec.arrive[data-look="a"] .steps li { animation: line-in 400ms var(--ease) calc(var(--k, 0) * 120ms + 200ms) backwards; }

  /* C: the install prompt blinks twice */
  .sec.in[data-look="c"] .inst .cmd-row .prompt { animation: caret-once .6s linear 300ms 2; }
}

@media (prefers-reduced-motion: reduce) {
  .sec.pre > * { opacity: 1; transform: none; }
  .sec, .foot, .sec.in > * { transition: none; }
  .sec::after, .foot::after { display: none; }
  .tells.arm li i span { background-size: 100% 8px; }
  .tells.go li i span { transition: none; }
  .sec[data-look="a"].in h2::before { animation: none; }
}
#built p, #built li, .foot p { text-wrap: pretty; }

/* Touch targets: 44px minimum on every control */
.tab { min-height: 44px; }
.copy-btn { min-height: 44px; min-width: 44px; margin-block: -10px; }
.logo { min-height: 44px; align-items: center; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.tab { min-width: 44px; }

/* Look C: the two verdict counts stay red and green, with no glow. */
.sec[data-look="c"] .pic .num { color: var(--red); }
.sec[data-look="c"] .pic-2 .num { color: var(--green); }
/* The four flow numbers are brushed red metal. No text-shadow: that was the glow. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .sec[data-look="c"] .steps .n {
    background-image:
      linear-gradient(118deg, transparent 30%, var(--metal-sheen) 46%, transparent 58%),
      repeating-linear-gradient(90deg, var(--brush-hi) 0 1px, var(--brush-lo) 1px 2px, transparent 2px 3px),
      linear-gradient(175deg, var(--metal-1) 0%, var(--metal-2) 16%, var(--metal-3) 34%, var(--metal-4) 48%, var(--metal-5) 57%, var(--metal-6) 74%, var(--metal-7) 100%);
    background-size: 100% 100%, 3px 100%, 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
@media (forced-colors: active) {
  .sec[data-look="c"] .steps .n {
    background: none;
    color: var(--s-num);
    -webkit-text-fill-color: unset;
  }
}

/* A picked option's focus ring sits inside its row, not on the window's edge. */
.pick:focus-visible { outline-offset: -3px; }

/* The hero follows the chosen look. A: teal, pastel green and pastel pink light on the night.
   B: a cream hero, the light in coral and pastel pink, the ink tokens swapped for the page. */
html[data-look="a"] { --hero-top: var(--teal); --hero-low: var(--pastel-green); --hero-core: var(--pastel-pink); }
html[data-look="b"] {
  --hero-top: var(--coral);
  --hero-low: var(--pastel-pink);
  --hero-core: var(--print);
  --night: var(--print);
  --head: var(--ink);
  --text: var(--ink-soft);
  --line: var(--ink-line);
  --tray: color-mix(in srgb, var(--print) 92%, var(--ink));
}

/* Look switch: the new look grows as a circle from the picked prompt (View Transitions API).
   The sections skip their colour morph while it runs; the circle is the transition. */
html.vt .sec, html.vt .foot { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  ::view-transition-old(root) { z-index: 1; }
  ::view-transition-new(root) { z-index: 2; animation: look-circle 850ms cubic-bezier(.65, 0, .35, 1) both; }
}
@keyframes look-circle {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 50%)); }
  to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 50%)); }
}
/* app.js draws a liquid rim on the new look; the CSS circle stays as the fallback. */
html.vt-shape::view-transition-new(root) { animation: none; }

/* ---------- the notice: what this visitor sees differently, at the bottom, never over the page ---------- */
.notice {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  background: var(--tray);
  color: var(--text);
}
.notice[hidden] { display: none; }
.notice-text { max-width: 68ch; margin: 0; font-size: 14px; line-height: 1.45; }
.notice-close {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--head);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.notice-close:hover { color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .notice.in { animation: notice-in 300ms var(--ease) both; }
}
@keyframes notice-in { from { opacity: 0; transform: translateY(100%); } }
body:has(.notice:not([hidden])) { padding-bottom: 64px; }
