/* ── Concept B: One Sock, Five Truths ──────────────────────────
   Editorial. Oat paper, ink navy, mauve as the only warm accent,
   emerald reserved for measured results. Instrument Serif display. */

:where(:root) {
  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --paper: var(--oat);
  --paper-2: oklch(98.5% .008 80);
  --line: oklch(88% .015 80);
  --line-soft: oklch(92% .012 80);
  --ink-soft: oklch(45% .02 250);
  --ink-faint: oklch(62% .015 250);
  --accent: var(--mauve);
  --accent-deep: oklch(52% .09 350);
  --measured: oklch(50% .13 162);
  --maxw: 1240px;
}

[data-theme='light'], [data-theme='paper'] {
  --color-bg: var(--paper);
  --color-surface: var(--paper-2);
  --color-surface-2: #fff;
  --color-border: var(--line);
  --color-divider: var(--line-soft);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-soft);
  --color-text-faint: var(--ink-faint);
  --color-primary: var(--accent-deep);
  --color-primary-ink: #fff;
}
[data-theme='dark'], [data-theme='ink'] {
  --paper: oklch(17% .015 260);
  --paper-2: oklch(21% .015 260);
  --line: oklch(31% .02 260);
  --line-soft: oklch(26% .015 260);
  --ink-soft: oklch(76% .015 260);
  --ink-faint: oklch(58% .015 260);
  --accent-deep: oklch(80% .06 350);
  --measured: var(--emerald);
  --color-bg: var(--paper);
  --color-surface: var(--paper-2);
  --color-surface-2: oklch(24% .015 260);
  --color-border: var(--line);
  --color-divider: var(--line-soft);
  --color-text: oklch(95% .01 260);
  --color-text-muted: var(--ink-soft);
  --color-text-faint: var(--ink-faint);
  --color-primary: var(--accent-deep);
  --color-primary-ink: oklch(18% .02 300);
}

html { overflow-x: clip; }
body { background: var(--color-bg); color: var(--color-text); overflow-x: clip; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.skip { position: absolute; left: -999px; top: 0; z-index: 60; background: var(--color-text); color: var(--color-bg); padding: .6rem 1rem; }
.skip:focus { left: 8px; top: 8px; }

.eyebrow {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent-deep); font-weight: 600; margin-bottom: var(--space-4);
}

h1, h2, h3, .listing-frame, .plate-value, .hero-h1 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em { font-style: italic; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  padding: .7rem 1.15rem; border-radius: var(--radius-full); font-size: var(--text-sm);
  font-weight: 550; border: 1px solid transparent; transition: all var(--transition-interactive);
  white-space: nowrap;
}
.btn-primary { background: var(--color-text); color: var(--color-bg); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--color-border); color: var(--color-text); }
.btn-ghost:hover { border-color: var(--color-text); }
.btn-sm { padding: .45rem .85rem; font-size: var(--text-xs); }
.btn-lg { padding: .9rem 1.6rem; font-size: var(--text-base); }

/* ── topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: var(--space-4);
  padding: .7rem clamp(1rem, 3vw, 2.5rem);
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-divider);
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; min-width: 0; }
.brand-mark { width: 26px; height: 26px; color: var(--accent-deep); flex: none; }
.brand-word { font-weight: 650; letter-spacing: -0.02em; font-size: var(--text-sm); }
.brand-sep, .brand-concept { color: var(--color-text-faint); font-size: var(--text-sm); }
.brand-concept { font-family: var(--font-display); font-size: 1rem; }
.rail { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.rail-svg { width: 116px; height: 12px; color: var(--color-text); flex: none; }
.rail-dots circle { fill: var(--color-border); transition: fill .3s var(--ease-out), r .3s var(--ease-out); }
.rail-dots circle.on { fill: var(--accent-deep); }
.rail-dots circle.cur { fill: var(--color-text); r: 4.4; }
.rail-fill { transition: x2 .35s var(--ease-out); }
.rail-label { font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-full);
  border: 1px solid var(--color-border); color: var(--color-text-muted);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-text); }

/* ── hero ── */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 3vw, 2.5rem) var(--space-16); }
.hero-inner { display: grid; gap: clamp(1.5rem, 4vw, 2.75rem); grid-template-columns: 1fr; }
.hero-art { position: relative; }
.hero-art img {
  width: 100%; aspect-ratio: 15 / 8; object-fit: cover; object-position: 40% 76%; border-radius: 2px;
  -webkit-mask-image: radial-gradient(88% 128% at 46% 50%, #000 58%, transparent 99%);
  mask-image: radial-gradient(88% 128% at 46% 50%, #000 58%, transparent 99%);
}

.hero-art-cap { position: relative; z-index: 2; text-align: left; margin-top: .5rem; font-size: var(--text-xs); color: var(--color-text-faint); }
.hero-h1 { font-size: var(--text-3xl); line-height: 1.02; margin-bottom: var(--space-5); }
.hero-h1 em { color: var(--accent-deep); }
.hero-sub { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 34ch; line-height: 1.35; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: var(--space-8) 0 var(--space-8); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); border-top: 1px solid var(--color-border); padding-top: var(--space-5); }
.hero-facts .fact { min-width: 0; }
.hero-facts dt { font-size: var(--text-xs); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: .1em; }
.hero-facts dd { font-family: var(--font-mono); font-size: var(--text-lg); line-height: 1.2; margin-top: .3rem; }
.hero-note { max-width: 76ch; margin: var(--space-8) 0 0; font-size: var(--text-xs); color: var(--color-text-faint); }

@media (min-width: 900px) {
  .hero-art img { aspect-ratio: 15 / 7; }
}

/* ── story shell ── */
.story { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem) clamp(3rem, 8vw, 7rem); }
.story-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
@media (min-width: 980px) {
  .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
}

.stage-col { position: relative; align-self: stretch; }
.stage {
  position: sticky; top: 68px; height: min(62vh, 460px);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 90% at 50% 30%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%),
    var(--color-surface);
  overflow: hidden; isolation: isolate;
  transition: background .6s var(--ease-out);
}
@media (min-width: 980px) { .stage { top: 84px; height: min(78vh, 660px); } }
.stage[data-ch='4'] { background: var(--color-surface); }
.stage[data-ch='5'] { background: radial-gradient(110% 90% at 50% 40%, color-mix(in oklab, var(--measured) 12%, transparent), transparent 72%), var(--color-surface); }
.stage-tag {
  position: absolute; left: var(--space-4); top: var(--space-4); z-index: 6;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-text-faint);
}

/* the pinned product */
.stage-product {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(42%, 210px); z-index: 3; transition: transform .7s var(--ease-out), filter .7s var(--ease-out);
}
.stage-product img {
  width: 100%; border-radius: 50% / 44%;
  -webkit-mask-image: radial-gradient(72% 72% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(72% 72% at 50% 50%, #000 62%, transparent 100%);
  filter: saturate(1.02);
}
.stage[data-ch='2'] .stage-product { transform: translate(-50%, -50%) scale(.82); }
.stage[data-ch='3'] .stage-product { transform: translate(-50%, -50%) scale(.62) translateY(-46%); filter: none; }
.stage[data-ch='4'] .stage-product { transform: translate(-50%, -50%) scale(.7); filter: grayscale(.7) opacity(.4); }
.stage[data-ch='5'] .stage-product { transform: translate(-50%, -50%) scale(.78); }

.layer {
  position: absolute; inset: 0; z-index: 4; opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease-out);
}
.layer.on { opacity: 1; pointer-events: auto; }
.ctx {
  position: absolute; background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: .5rem .7rem;
  font-size: var(--text-xs); display: flex; align-items: center; gap: .45rem;
  opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.layer-1.on .ctx.show { opacity: 1; transform: none; }

.searchbar { left: 6%; top: 8%; width: min(58%, 300px); justify-content: space-between; border-radius: var(--radius-full); }
.searchbar .mono { color: var(--color-text); }
.titlecard { left: 5%; top: 21%; width: min(46%, 250px); flex-direction: column; align-items: flex-start; gap: .2rem; line-height: 1.25; }
.titlecard .tc-title { font-size: 11px; }
.titlecard .tc-meta { font-family: var(--font-mono); font-size: 9px; color: var(--color-text-faint); }
.titlecard .tc-stars { color: var(--amber); letter-spacing: .04em; font-size: 10px; }
.badge-rank { right: 7%; top: 20%; flex-direction: column; gap: 0; align-items: flex-start; }
.badge-rank b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--accent-deep); }
.badge-rank span { color: var(--color-text-faint); font-size: 10px; }
.chip-share { right: 6%; top: 44%; flex-direction: column; gap: 0; align-items: flex-start; max-width: 45%; }
.chip-share b { font-family: var(--font-mono); font-size: var(--text-lg); }
.chip-share span { color: var(--color-text-faint); font-size: 10px; }
.tick-buy { left: 8%; bottom: 24%; color: var(--measured); border-color: color-mix(in oklab, var(--measured) 40%, var(--color-border)); }
.pull-number {
  left: 0; right: 0; bottom: 4%; margin: 0 auto; width: max-content; max-width: 92%;
  flex-direction: column; align-items: center; gap: .15rem; background: transparent; border: none; box-shadow: none;
}
.pull-number b { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; }
.pull-number span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-faint); }

/* Chapter 2 — before/after reveal */
.layer-2 { display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); }
.reveal {
  opacity: 0; transform: translateX(6%); transition: opacity .55s var(--ease-out), transform .65s var(--ease-out);
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 5 / 4;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-surface-2); box-shadow: var(--shadow-lg); touch-action: pan-y;
  --split: 50%;
}
.reveal-a { clip-path: inset(0 calc(100% - var(--split)) 0 0); background: var(--color-bg); }
.reveal-side { position: absolute; inset: 0; padding: clamp(.8rem, 2.2vw, 1.2rem); display: flex; flex-direction: column; gap: .5rem; }
.reveal-b { background: var(--color-surface); clip-path: inset(0 0 0 var(--split)); padding-top: 44%; }
.reveal-kicker { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-faint); }
.reveal-title { font-family: var(--font-display); font-size: clamp(1.05rem, 2.6vw, 1.5rem); line-height: 1.15; max-width: none; }
.reveal-b .reveal-title { color: var(--accent-deep); }
.reveal-a .reveal-stats { margin-top: .55rem; }
.reveal-b .reveal-stats { margin-top: .5rem; }
.reveal-stats { list-style: none; display: grid; gap: .2rem; font-size: var(--text-xs); }
.reveal-stats li { display: flex; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--color-divider); padding-top: .25rem; max-width: none; }
.reveal-stats b { font-family: var(--font-mono); font-weight: 500; }
.reveal-thumb { position: absolute; right: .8rem; top: .8rem; width: 27%; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.reveal-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: 34px; transform: translateX(-17px);
  cursor: ew-resize; display: grid; place-items: center; z-index: 5;
}
.reveal-handle::before { content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--accent-deep); }
.reveal-grip {
  width: 30px; height: 30px; border-radius: var(--radius-full); background: var(--color-surface-2);
  border: 1px solid var(--accent-deep); box-shadow: var(--shadow-md); position: relative;
}
.reveal-grip::after { content: '⇤ ⇥'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: var(--accent-deep); }
.layer-2.on .reveal { opacity: 1; transform: none; }
.reveal-cap { position: absolute; left: 0; right: 0; bottom: .6rem; text-align: center; font-size: 10px; color: var(--color-text-faint); max-width: none; padding: 0 1rem; }

/* Chapter 3 — founder sequence */
.layer-3 { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-4); padding: clamp(1rem, 3vw, 2rem); }
.seq { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.seq-card {
  position: relative; background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: .7rem .6rem; display: flex; flex-direction: column; gap: .45rem;
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.layer-3.on .seq-card { opacity: 1; transform: none; }
.layer-3.on .seq-2 { transition-delay: .16s; } .layer-3.on .seq-3 { transition-delay: .32s; }
.seq-n { font-size: 9px; color: var(--color-text-faint); letter-spacing: .12em; }
.seq-card figcaption { font-size: 10px; color: var(--color-text-muted); margin-top: auto; max-width: none; }
.hangtag { border: 1px dashed var(--color-border); border-radius: var(--radius-sm); padding: .5rem; text-align: center; background: color-mix(in oklab, var(--accent) 12%, transparent); }
.hangtag .mono { font-size: var(--text-xs); }
.hangtag small { display: block; font-size: 9px; color: var(--color-text-faint); margin-top: .2rem; }
.slip { border-left: 2px solid var(--accent-deep); padding-left: .5rem; }
.slip p { font-size: 9px; letter-spacing: .12em; color: var(--color-text-faint); }
.slip ul { list-style: none; font-family: var(--font-mono); font-size: 10px; line-height: 1.45; }
.inc { display: flex; align-items: baseline; gap: .3rem; }
.inc b { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; }
.inc b span { color: var(--accent-deep); }
.inc small { font-size: 9px; color: var(--color-text-faint); }
.seq-3 img { width: 40%; border-radius: var(--radius-full); border: 1px solid var(--color-border); }
.seq-quote { border-top: 1px solid var(--color-border); padding-top: .8rem; }
.seq-quote p { font-family: var(--font-display); font-size: clamp(1.05rem, 2.6vw, 1.5rem); line-height: 1.2; max-width: none; }
.seq-quote cite { font-size: 10px; color: var(--color-text-faint); font-style: normal; }

/* Chapter 4 — memory wipe */
.layer-4 { display: flex; flex-direction: column; justify-content: center; gap: .6rem; padding: clamp(1rem, 3vw, 2rem); }
.wipe { list-style: none; display: grid; gap: .45rem; }
.wipe li {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-2);
  padding: .5rem .7rem; font-size: var(--text-xs); display: flex; align-items: center; gap: .5rem;
  opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), filter .4s var(--ease-out);
  max-width: none;
}
.wipe li .mono { font-size: 9px; color: var(--color-text-faint); flex: none; }
.wipe li.in { opacity: 1; transform: none; }
.wipe li.wiped { opacity: .22; filter: grayscale(1); transform: translateX(6px); }
.wipe-empty {
  border: 1px dashed var(--color-border); border-radius: var(--radius-md); padding: .8rem;
  text-align: center; opacity: 0; transition: opacity .5s var(--ease-out);
}
.wipe-empty.in { opacity: 1; }
.wipe-empty p { font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); max-width: none; }
.wipe-blank { height: 34px; margin: .5rem 0; border-bottom: 1px solid var(--color-border); }
.wipe-empty small { font-size: 10px; color: var(--color-text-faint); }

/* Chapter 5 — memory weave */
.layer-5 { padding: clamp(1rem, 3vw, 2rem); }
.weave { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--measured); opacity: .85; }
.weave-threads path { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.1s var(--ease-out); }
.layer-5.on .weave-threads path { stroke-dashoffset: 0; }
.weave-nodes { position: absolute; inset: 0; }
.weave-node {
  position: absolute; transform: translate(-50%, -50%); max-width: 44%;
  background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: .4rem .55rem; text-align: left; font-size: 10px; line-height: 1.3; box-shadow: var(--shadow-md);
  transition: border-color var(--transition-interactive), transform .4s var(--ease-out), opacity .4s var(--ease-out);
  opacity: 0;
}
.layer-5.on .weave-node { opacity: 1; }
.weave-node:hover, .weave-node[aria-pressed='true'] { border-color: var(--measured); }
.weave-node .wn-kind { display: block; font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-faint); }
.weave-node[aria-pressed='true'] .wn-kind { color: var(--measured); }
.weave-detail {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); width: min(88%, 420px);
  background: var(--color-surface-2); border: 1px solid var(--color-border); border-left: 2px solid var(--measured);
  border-radius: var(--radius-md); padding: .6rem .75rem; font-size: var(--text-xs); box-shadow: var(--shadow-lg);
}
.weave-detail p { max-width: none; }
.weave-detail .wd-meta { font-family: var(--font-mono); font-size: 10px; color: var(--color-text-faint); margin-top: .25rem; }

/* ── chapter text column ── */
.chapters { display: grid; }
.chapter {
  min-height: auto; padding: clamp(2.5rem, 8vh, 7rem) 0;
  border-bottom: 1px solid var(--color-divider);
  opacity: .38; transition: opacity .5s var(--ease-out);
}
.chapter:last-child { border-bottom: none; }
.chapter.active, .chapter:focus-within { opacity: 1; }
@media (min-width: 980px) { .chapter { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; } }
.ch-kicker { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .16em; color: var(--accent-deep); font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.ch-kicker .mono { color: var(--color-text-faint); letter-spacing: 0; }
.ch-h { font-size: var(--text-xl); margin: var(--space-4) 0 var(--space-5); }
.ch-lede { font-size: var(--text-base); color: var(--color-text-muted); }
.ch-body { margin-top: var(--space-4); color: var(--color-text-muted); font-size: var(--text-sm); }
.pull {
  font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.02;
  margin: var(--space-6) 0; letter-spacing: -0.03em; max-width: none;
}
.pull small { display: block; font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-faint); margin-top: .5rem; }
.ch-list { list-style: none; display: grid; gap: .55rem; margin: var(--space-5) 0; }
.ch-list li { display: flex; gap: .7rem; align-items: baseline; font-size: var(--text-sm); border-top: 1px solid var(--color-divider); padding-top: .55rem; max-width: none; }
.ch-list li b { font-family: var(--font-mono); font-weight: 500; flex: none; min-width: 5.6em; }
.ch-list li span { color: var(--color-text-muted); }
.ch-kicker-note { margin-top: var(--space-5); font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.2; }
.ch-note { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--color-text-faint); }
.ch-hint { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--accent-deep); }
.ch-quote { margin: var(--space-6) 0; border-left: 2px solid var(--accent); padding-left: var(--space-5); }
.ch-quote p { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.25; }
.ch-quote.big p { font-size: var(--text-xl); }
.ch-quote cite { display: block; margin-top: .5rem; font-size: var(--text-xs); font-style: normal; color: var(--color-text-faint); }
.observed {
  margin-top: var(--space-5); border: 1px solid var(--color-border); border-left: 2px solid var(--rose);
  border-radius: var(--radius-md); padding: .8rem .9rem; background: var(--color-surface);
}
.observed h4 { font-family: var(--font-body); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--color-text-faint); font-weight: 600; }
.observed ul { list-style: none; display: grid; gap: .4rem; margin-top: .5rem; }
.observed li { font-size: var(--text-xs); color: var(--color-text-muted); max-width: none; }
.observed li b { color: var(--color-text); font-weight: 550; }

.tablewrap { overflow-x: auto; margin-top: var(--space-5); }
.serp-table { width: 100%; border-collapse: collapse; font-size: var(--text-xs); }
.serp-table th, .serp-table td { text-align: right; padding: .5rem .4rem; border-bottom: 1px solid var(--color-divider); white-space: nowrap; }
.serp-table th:first-child, .serp-table td:first-child { text-align: left; white-space: normal; min-width: 12ch; }
.serp-table thead th { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-faint); font-weight: 600; }
.serp-table td b { font-family: var(--font-mono); font-weight: 500; }
.serp-table tr.us td:first-child { color: var(--accent-deep); font-weight: 600; }
.serp-table tr.us { background: color-mix(in oklab, var(--accent) 10%, transparent); }

.loop-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: var(--space-5) 0; }
.loop-steps li { font-size: var(--text-xs); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: .3rem .7rem; max-width: none; }
.loop-steps li:last-child { border-color: var(--measured); color: var(--measured); }
.lift { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: var(--space-5); }
@media (min-width: 560px) { .lift { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lift-cell { border-top: 1px solid var(--color-border); padding-top: .5rem; }
.lift-cell b { display: block; font-family: var(--font-mono); font-size: var(--text-lg); color: var(--measured); }
.lift-cell span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-faint); }

/* static frames — reduced motion only */
.static-frame { display: none; }

/* ── loom ── */
.loom { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.loom > * { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2.5rem); }
.loom-head { padding-top: clamp(2.5rem, 7vw, 5rem); }
.loom-head h2 { font-size: var(--text-2xl); }
.loom-sub { margin-top: var(--space-4); color: var(--color-text-muted); }
.loom-grid { padding-inline: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-top: var(--space-8); border: 1px solid var(--color-border); background: var(--color-border); }
.loom-stop {
  background: var(--color-surface-2); padding: .6rem .4rem; text-align: left; display: flex; flex-direction: column; gap: .25rem;
  min-width: 0; transition: background var(--transition-interactive);
}
.loom-stop:hover { background: color-mix(in oklab, var(--accent) 12%, var(--color-surface-2)); }
.loom-stop[aria-selected='true'] { background: var(--color-text); color: var(--color-bg); }
.loom-stop .ls-m { font-family: var(--font-mono); font-size: 9px; opacity: .7; }
.loom-stop .ls-l { font-size: var(--text-xs); font-weight: 550; line-height: 1.15; }
.loom-stop .ls-spark { width: 100%; height: 22px; margin-top: .3rem; overflow: visible; }
.loom-stop .ls-spark .line { fill: none; stroke: var(--accent-deep); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.loom-stop[aria-selected='true'] .ls-spark .line { stroke: currentColor; }
.loom-stop .ls-bar { height: 3px; background: currentColor; opacity: .35; border-radius: 2px; margin-top: .3rem; }
.loom-stop[aria-selected='true'] .ls-bar { opacity: 1; }

.loom-body { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
@media (min-width: 900px) { .loom-body { grid-template-columns: .8fr 1.1fr 1fr; align-items: start; } }

.loom-stage { position: relative; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-2); padding: var(--space-6); }
.loom-scene { position: absolute; inset: 0; transition: background .6s var(--ease-out), opacity .6s var(--ease-out); }
[hidden] { display: none !important; }
.loom-stage img, .loom-grip { position: relative; z-index: 2; margin: 0 auto; width: min(70%, 220px); }
.loom-grip { display: grid; place-items: center; color: var(--accent-deep); text-align: center; }
.loom-grip p { font-size: 10px; color: var(--color-text-muted); }
.loom-stage figcaption { position: relative; z-index: 2; margin-top: var(--space-4); font-size: 10px; color: var(--color-text-faint); text-align: center; }

.listing-chip { display: inline-block; border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: .3rem .7rem; font-size: var(--text-xs); background: var(--color-surface-2); }
.listing-frame { font-size: var(--text-lg); margin: var(--space-4) 0 var(--space-4); }
.listing-bullets { list-style: none; display: grid; gap: .4rem; }
.listing-bullets li { font-size: var(--text-sm); padding-left: 1.1rem; position: relative; }
.listing-bullets li::before { content: '—'; position: absolute; left: 0; color: var(--accent-deep); }
.listing-bullets li:first-child { font-weight: 550; }
.listing-bullets .dim { color: var(--color-text-faint); }
.listing-note { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--color-text-muted); }
.listing-live { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-text-muted); border-left: 2px solid var(--rose); padding-left: .6rem; }
.spark-wrap { margin-top: var(--space-6); border-top: 1px solid var(--color-border); padding-top: var(--space-4); }
.spark-label { font-size: 10px; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: .08em; }
.spark { width: 100%; height: 72px; margin-top: .5rem; overflow: visible; }
.spark path.line { fill: none; stroke: var(--accent-deep); stroke-width: 1.4; }
.spark path.area { fill: color-mix(in oklab, var(--accent) 30%, transparent); stroke: none; }
.spark circle { fill: var(--color-text); }
.spark text { font-family: var(--font-mono); font-size: 8px; fill: var(--color-text-faint); }
.spark-meta { font-size: 10px; color: var(--color-text-faint); margin-top: .3rem; }

.loom-controls { display: grid; gap: var(--space-5); }
.range-row { display: grid; grid-template-columns: 8.5em 1fr 4.6em; align-items: center; gap: .6rem; font-size: var(--text-xs); }
.range-row output { text-align: right; }
.range-main { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: .6rem .8rem; background: var(--color-surface-2); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: transparent; }
input[type='range']::-webkit-slider-runnable-track { height: 2px; background: var(--color-border); border-radius: 2px; }
input[type='range']::-moz-range-track { height: 2px; background: var(--color-border); border-radius: 2px; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -6.5px; border-radius: 50%; background: var(--color-text); border: 2px solid var(--color-surface-2); }
input[type='range']::-moz-range-thumb { width: 15px; height: 15px; border: 2px solid var(--color-surface-2); border-radius: 50%; background: var(--color-text); }

.plate { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); background: var(--color-surface-2); }
.plate-label { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--color-text-faint); }
.plate-value { font-size: var(--text-2xl); line-height: 1; margin: .3rem 0 .4rem; color: var(--measured); font-family: var(--font-display); }
.plate-formula { font-size: 10px; color: var(--color-text-faint); }
.sliders { display: grid; gap: .35rem; margin: var(--space-4) 0; border-top: 1px solid var(--color-divider); padding-top: var(--space-4); }
.plate-total { font-size: var(--text-xs); color: var(--color-text-muted); border-top: 1px solid var(--color-divider); padding-top: var(--space-3); margin-bottom: var(--space-3); }
.plate-total b { color: var(--color-text); font-size: var(--text-sm); }
.truth-rail { border-left: 2px solid var(--accent); padding-left: var(--space-4); }
.truth-head { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--color-text-faint); }
.truth-rail ul { list-style: none; margin-top: .5rem; display: grid; gap: .3rem; }
.truth-rail li { font-size: var(--text-xs); display: flex; gap: .5rem; }
.truth-rail li::before { content: '='; color: var(--accent-deep); font-family: var(--font-mono); }
.disclaimer { font-size: 10px; color: var(--color-text-faint); padding-bottom: clamp(2.5rem, 7vw, 5rem); padding-top: var(--space-6); max-width: 90ch; }

/* ── founder ── */
.founder { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 3vw, 2.5rem); display: grid; gap: var(--space-8); }
@media (min-width: 800px) { .founder { grid-template-columns: .55fr 1fr; align-items: start; gap: clamp(2rem, 5vw, 4rem); } }
.founder-photo img { width: 100%; max-width: 320px; border-radius: 50%; }
.founder-name { font-size: var(--text-2xl); }
.founder-title { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3); }
.founder-facts { list-style: none; counter-reset: f; margin-top: var(--space-6); display: grid; gap: var(--space-4); }
.founder-facts li { counter-increment: f; display: grid; grid-template-columns: 2.2em 1fr; gap: .5rem; font-size: var(--text-sm); border-top: 1px solid var(--color-divider); padding-top: var(--space-4); max-width: none; }
.founder-facts li::before { content: counter(f, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-deep); }

/* ── faq ── */
.faq { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.faq > * { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2.5rem); }
.faq-head { padding-top: clamp(2.5rem, 7vw, 5rem); }
.faq-head h2 { font-size: var(--text-xl); }
.faq-cols { display: grid; gap: var(--space-8); padding-bottom: clamp(2.5rem, 7vw, 5rem); padding-top: var(--space-8); }
@media (min-width: 900px) { .faq-cols { grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); } }
.faq-sub { font-family: var(--font-body); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--color-text-faint); margin-bottom: var(--space-4); }
.acc { border-top: 1px solid var(--color-border); }
.acc-item { border-bottom: 1px solid var(--color-border); }
.acc-btn { width: 100%; text-align: left; padding: var(--space-4) 0; display: grid; grid-template-columns: 1fr 1.1rem; gap: var(--space-4); align-items: start; }
.acc-eyebrow { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-deep); margin-bottom: .25rem; }
.acc-q { font-family: var(--font-display); font-size: var(--text-base); line-height: 1.25; }
.acc-icon { width: 1.1rem; height: 1.1rem; position: relative; margin-top: .35rem; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; inset: 50% 0 auto 0; height: 1px; background: var(--color-text-muted); transition: transform .25s var(--ease-out); }
.acc-icon::after { transform: rotate(90deg); }
.acc-btn[aria-expanded='true'] .acc-icon::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); }
.acc-panel > div { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { font-size: var(--text-sm); color: var(--color-text-muted); padding-bottom: var(--space-5); }

/* ── cta + footer ── */
.cta { max-width: 74ch; margin: 0 auto; padding: clamp(3rem, 9vw, 7rem) clamp(1rem, 3vw, 2.5rem); text-align: center; }
.cta h2 { font-size: var(--text-2xl); }
.cta-sub { margin: var(--space-5) auto 0; color: var(--color-text-muted); }
.cta-sub a { text-decoration: underline; text-underline-offset: 3px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: var(--space-8); }
.foot { border-top: 1px solid var(--color-border); padding: var(--space-8) clamp(1rem, 3vw, 2.5rem) var(--space-16); }
.foot > * { max-width: var(--maxw); margin-inline: auto; }
.foot-marks { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.foot-marks .brand-mark { width: 24px; height: 24px; color: var(--accent-deep); }
.foot-word { font-weight: 650; letter-spacing: -0.02em; }
.foot-backed { font-size: var(--text-xs); color: var(--color-text-faint); margin-left: var(--space-4); }
.foot-pplx { height: 20px; width: auto; opacity: .85; }
.foot-links { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
.foot-links a { text-decoration: none; border-bottom: 1px solid var(--color-border); }
.foot-links a:hover { border-color: var(--color-text); }
.foot-source { margin-top: var(--space-3); font-size: 10px; color: var(--color-text-faint); max-width: 90ch; }

/* ── mobile stage tweaks ── */
@media (max-width: 979px) {
  .stage { height: min(54vh, 380px); }
  .pull-number b { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .seq { grid-template-columns: 1fr; }
  .seq-2, .seq-3 { display: none; }
  .weave-node { font-size: 9px; max-width: 46%; }
  .rail-label { display: none; }
  .brand-sep, .brand-concept { display: none; }
  .loom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .range-row { grid-template-columns: 7em 1fr 4.2em; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; }
  .rail { margin-left: auto; }
}

/* ── reduced motion: five static frames ── */
@media (prefers-reduced-motion: reduce) {
  .stage-col { display: none; }
  .story-grid { grid-template-columns: 1fr !important; }
  .chapter { opacity: 1 !important; min-height: auto; }
  .ch-hint { display: none; }
  .static-frame {
    display: block; margin-top: var(--space-6); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: var(--space-4); background: var(--color-surface-2);
  }
  .static-frame img { width: min(100%, 340px); margin-inline: auto; border-radius: var(--radius-md); }
  .static-frame figcaption { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-text-muted); }
  .static-wipe { display: grid; place-items: center; gap: .5rem; padding: var(--space-8) 0; border: 1px dashed var(--color-border); border-radius: var(--radius-md); }
  .static-wipe em { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-text-faint); }
}
