/* h.geneticker.com — the homepage concept. Builds on /shared (tokens, base). */
:root {
  --topbar-h: 60px;
  --band: 0px;                         /* the hero's helix band (narrow screens only) */
  --accent: var(--ink); --accent-text: var(--ink); --accent-btn: var(--ink); --accent-on: var(--paper);
  /* light mode: shared #6b716c is 4.42:1 on paper and 4.08:1 on paper-2 (fails AA at 11-12 px).
     This one is 5.29 / 4.88 / 5.67 (paper / paper-2 / card). Dark mode keeps tokens.css's value. */
  --ink-3: #5f655f;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body { overflow-x: hidden; }
.h2, .lede, .closing-title, .truth, .lp-reveals, .cr-headline, .door-pitch, .flow-ask { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.serif-em { font-family: var(--font-display); font-weight: 400; font-size: 1.12em; letter-spacing: -.01em; }
h2 em, h1 em, .h2 em, .truth em, .closing-title em { font-style: italic; }

/* base-coloured bits used everywhere */
[data-b="A"] { --b: var(--A); --b-text: var(--A-text); --b-soft: var(--A-soft); }
[data-b="C"] { --b: var(--C); --b-text: var(--C-text); --b-soft: var(--C-soft); }
[data-b="G"] { --b: var(--G); --b-text: var(--G-text); --b-soft: var(--G-soft); }
[data-b="T"] { --b: var(--T); --b-text: var(--T-text); --b-soft: var(--T-soft); }
.dot, .sq { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--b, var(--ink-3)); flex: none; }
.btn-cipher { background: var(--A-btn); color: var(--A-on); }
.btn-cipher:hover { box-shadow: 0 0 0 4px var(--A-soft); }
.btn-decipher { background: var(--C-btn); color: var(--C-on); }
.btn-decipher:hover { box-shadow: 0 0 0 4px var(--C-soft); }
.btn-ink .dot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--paper) 18%, transparent); }

/* ───────────────────────────── top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-in { height: var(--topbar-h); display: flex; align-items: center; gap: var(--s-3); }
.topbar .wordmark b { font-size: 24px; }
.nav { display: flex; gap: 2px; margin-left: var(--s-6); }
.nav a { text-decoration: none; font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); color: var(--ink); place-items: center; }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn path { transition: transform var(--dur) var(--ease); transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .m1 { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .m2 { transform: translateY(-4px) rotate(-45deg); }
.menu { position: absolute; z-index: 2; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
.menu-scrim { position: fixed; z-index: 1; inset: var(--topbar-h) 0 0 0; background: color-mix(in srgb, var(--ink) 35%, transparent); animation: fade .2s var(--ease); }
:root[data-theme="dark"] .menu-scrim { background: rgba(0, 0, 0, .55); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .menu-scrim { background: rgba(0, 0, 0, .55); } }
@keyframes fade { from { opacity: 0; } }
.menu-in { display: grid; padding-block: var(--s-3) var(--s-5); }
.menu-in > a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-size: 30px; line-height: 1; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.menu-in > a small { font-family: var(--font-mono); font-size: var(--t-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-left: auto; }
.mi-dot { width: 10px; height: 10px; border-radius: 2px; background: var(--b, var(--ink-3)); }
.menu-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: var(--s-4); }

/* ───────────────────────────── hero */
.hero {
  position: relative; display: grid; grid-template-rows: 1fr var(--band); overflow: hidden;
  min-height: max(620px, min(calc(100svh - var(--topbar-h)), 1000px));
  border-bottom: 1px solid var(--line);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 1; display: flex; align-items: center; padding-block: clamp(36px, 7vh, 88px) 0; }
.hero-copy { width: fit-content; max-width: min(100%, 800px); }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-5); color: var(--ink-2); }
.kick-ticks { display: inline-flex; gap: 3px; }
.kick-ticks i { width: 6px; height: 12px; border-radius: 1.5px; background: var(--b); }
.hero-title { font-size: clamp(46px, 6.5vw, 100px); }
.hero-title > span { display: block; white-space: nowrap; }
.hero-title em { color: var(--ink); }
.hero-sub { margin-top: var(--s-6); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 33em; }
.hero-doors { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }
.door-btn { gap: 10px; }
.hero-sample { display: inline-block; margin-top: var(--s-4); font-size: var(--t-sm); color: var(--ink-2); text-decoration-color: var(--line); }
.hero-sample:hover { color: var(--ink); text-decoration-color: currentColor; }
.hero-band { position: relative; z-index: 1; pointer-events: none; }
.hero-hint { position: absolute; z-index: 2; color: var(--ink-3); display: flex; align-items: center; gap: 8px; pointer-events: none; white-space: nowrap; background: var(--paper); padding: 2px 8px; border-radius: var(--r-pill); }
.hero-hint[data-axis="y"] { bottom: 22px; transform: translateX(-50%); }
.hero-hint[data-axis="x"] { right: var(--gutter); transform: translateY(-50%); margin-top: 16px; }
.hero-hint:not([data-axis]) { display: none; }      /* only once the animation has placed it */
.hero-hint::before { content: ''; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }
.hint-touch, .on-touch { display: none; }
@media (hover: none) { .hint-hover, .on-mouse { display: none; } .hint-touch, .on-touch { display: inline; } }

/* ───────────────────────────── sections */
.sec { padding-block: clamp(72px, 9vw, 132px); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-idx { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-5); }
.sec-idx b { font-weight: 500; color: var(--ink); }
.sec-idx::after { content: ''; flex: 1; max-width: 72px; height: 1px; background: var(--line); order: 1; }
.sec-idx b { order: 0; }
.sec-head .h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; }
.sec-head .lede { justify-self: end; margin-bottom: 6px; }

/* ───────────────────────────── two doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.door { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.door::before { content: ''; position: absolute; left: clamp(22px, 3vw, 36px); top: -1px; width: 56px; height: 3px; border-radius: 0 0 2px 2px; background: var(--b); }
.door[data-accent="A"] { --b: var(--A); --b-text: var(--A-text); --b-soft: var(--A-soft); }
.door[data-accent="C"] { --b: var(--C); --b-text: var(--C-text); --b-soft: var(--C-soft); }
.door-top { display: flex; justify-content: space-between; gap: 12px; }
.door-top .label { display: inline-flex; align-items: center; gap: 8px; }
.door-host { text-transform: none; letter-spacing: .02em; }
.door-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 5.4vw, 78px); line-height: .95; letter-spacing: -.02em; margin-top: var(--s-5); }
.door-pitch { font-size: var(--t-lg); color: var(--ink); margin-top: var(--s-3); max-width: 30em; }
.door-list { list-style: none; display: grid; gap: 10px; margin-top: var(--s-5); color: var(--ink-2); }
.door-list li { position: relative; padding-left: 22px; }
.door-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 1.5px; background: var(--b); }
.door-preview { position: relative; flex: 1 0 auto; margin-top: var(--s-6); background-color: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 36px 20px 20px; min-height: 216px; overflow: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; }
.pv-cap { position: absolute; left: 20px; top: 12px; }
.door-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: auto; padding-top: var(--s-6); }
.door-note { font-size: var(--t-sm); color: var(--ink-2); }
a.decipher-preview { display: block; text-decoration: none; color: inherit; transition: border-color var(--dur) var(--ease); }
a.decipher-preview:hover { border-color: color-mix(in srgb, var(--C) 55%, var(--line)); }

/* cipher preview: a reading card */
.cipher-preview { display: grid; place-items: center; }
.reading { width: min(100%, 360px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow-1); transition: opacity .32s var(--ease), transform .32s var(--ease); }
.reading.is-out { opacity: 0; transform: translateY(4px); }
.reading-top { display: flex; justify-content: space-between; align-items: center; }
.reading-title { font-weight: 600; font-size: var(--t-lg); margin-top: 8px; letter-spacing: -.01em; }
.reading-answer { color: var(--ink-2); margin-top: 2px; }
.reading-geno { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.reading-geno .genotype { font-size: 16px; }
.reading-ids { font-size: var(--t-xs); color: var(--ink-3); }
.pv-dots { position: absolute; right: 18px; top: 14px; display: flex; gap: 4px; }
.pv-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); transition: background var(--dur); }
.pv-dots i.on { background: var(--ink-3); }

/* decipher preview: a sentence + dosage bars */
.ask { font-size: var(--t-md); line-height: 2; color: var(--ink); }
.ask-end { white-space: nowrap; }
.ask-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--C) 40%, transparent); background: var(--C-soft); color: var(--C-text); border-radius: 7px; font-weight: 500; line-height: 1; }
.bars { display: grid; grid-template-columns: repeat(3, 56px) 1fr; align-items: end; column-gap: 12px; margin-top: 14px; }
.bar { display: grid; justify-items: center; gap: 4px; }
.bar b { font-family: var(--font-mono); font-weight: 500; font-size: var(--t-xs); color: var(--ink-2); }
.bar i { width: 100%; height: calc(var(--v) * 86px); border-radius: 4px 4px 1px 1px; background: var(--C); transform-origin: bottom; transition: transform .9s var(--ease); }
.decipher-preview:not(.is-in) .bar i { transform: scaleY(.04); }
.bar:nth-child(2) i { transition-delay: .08s; } .bar:nth-child(3) i { transition-delay: .16s; }
.bar span { font-family: var(--font-mono); font-size: var(--t-2xs); color: var(--ink-3); white-space: nowrap; }
.bars-answer { align-self: center; padding-left: 8px; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.4; }
.bars-answer .mono { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--ink); letter-spacing: -.01em; margin-bottom: 4px; }
.bars-answer .faint { font-size: var(--t-xs); }

/* ───────────────────────────── how it works (flow diagram) */
.flow {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(36px, 72px) auto minmax(36px, 72px) minmax(0, 1fr); align-items: center;
  padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-lg); background-color: var(--card-2);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px;
}
.flow-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; min-height: 168px; display: flex; flex-direction: column; }
.flow-ask { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.1; margin-top: 10px; }
.flow-state { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font-size: var(--t-xs); color: var(--ink-3); }
.flow-led { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; transition: background var(--dur); }
.flow.is-asking .flow-led, .flow.is-collecting .flow-led { background: var(--G); }
.flow.is-done .flow-led { background: var(--A); }
.flow-wire { position: relative; height: 2px; align-self: center; background-image: linear-gradient(90deg, var(--ink-3) 50%, transparent 0); background-size: 6px 2px; opacity: .55; }
.flow-wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--C); opacity: 0; }
.flow-back i { background: var(--A); }
.flow.is-asking .flow-out i { animation: packet 1s var(--ease) forwards; }
.flow.is-done .flow-back i { animation: packet 1s var(--ease) forwards; }
@keyframes packet { 0% { opacity: 0; left: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; left: calc(100% - 8px); } }
.flow-devices { display: grid; justify-items: center; gap: 12px; padding-inline: 8px; }
.flow-grid { display: grid; grid-template-columns: repeat(6, 32px); gap: 8px; }
.dev { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink-3); transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), opacity .3s; }
.dev svg { width: 15px; height: 15px; }
.dev .ph { width: 10px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; opacity: .55; }
.dev .lk { display: none; }
.dev.asked { border-color: var(--ink-3); color: var(--ink-2); }
.dev.answered { background: var(--C-soft); border-color: var(--C); color: var(--C-text); }
.dev.answered .ph { display: none; } .dev.answered .lk { display: block; }
.dev.off, .lg.lg-o { border: 1px dashed var(--ink-3); color: var(--ink-3);
  background: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--ink-3) 28%, transparent) 4px 5px); }
.dev.off .ph { display: none; }
.flow-grid-cap { color: var(--ink-2); }
.flow-legend { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-family: var(--font-mono); font-size: var(--t-2xs); color: var(--ink-2); }
.flow-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line); background: var(--card); }
.lg-a { background: var(--C-soft); border-color: var(--C); }
.lg-w { border-color: var(--ink-3); }
.flow-meter { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; margin-top: 12px; }
.flow-meter i { height: 10px; border-radius: 1.5px; background: var(--line); transition: background .25s; }
.flow-meter i.on { background: var(--C); }
.flow.is-done .flow-meter i.on { background: var(--A); }
.flow-num { font-family: var(--font-display); font-size: clamp(40px, 4vw, 56px); line-height: 1; margin-top: 12px; letter-spacing: -.01em; transition: color .3s; }
.flow:not(.is-done) .flow-num { color: var(--ink-3); }
.flow-num small { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); letter-spacing: 0; margin-left: 8px; vertical-align: middle; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7); margin-top: var(--s-8); }
.steps li { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.step-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; background: var(--ink); color: var(--paper); font-size: var(--t-xs); margin-bottom: var(--s-3); }
.steps p { color: var(--ink-2); margin-top: 6px; max-width: 34ch; }

/* ───────────────────────────── you decide: ladder */
.ladder { list-style: none; border-top: 1px solid var(--line); }
.rung { position: relative; display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 4fr) minmax(0, 3.6fr) minmax(0, 2.8fr); gap: var(--s-6); align-items: center; padding: 22px 0 22px 0; border-bottom: 1px solid var(--line); }
.rung-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rung-n { display: inline-block; flex: none; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); position: relative; z-index: 1; }
.rung-n::before { content: ''; position: absolute; left: 5px; right: 5px; bottom: 5px; height: calc(var(--fill, 0) * 16px); border-radius: 2px; background: var(--ink-2); }
.rung[data-step="1"] { --fill: .34; } .rung[data-step="2"] { --fill: .67; } .rung[data-step="3"] { --fill: 1; }
.rung[data-step="3"] .rung-n::before { background: var(--risk); }
.rung:not(:last-child) .rung-n::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 50px; background: var(--line); }
.rung-name .h4 { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: -.01em; line-height: 1; }
.rung-what { color: var(--ink-2); }
.rung-out, .rung-see { display: grid; gap: 6px; }
.rung-see b { font-weight: 600; font-size: var(--t-sm); }
.rung-see b.risk { color: var(--risk); }
.strip { display: flex; gap: 3px; font-family: var(--font-mono); font-size: 12px; line-height: 1; }
.strip i { display: inline-grid; place-items: center; width: 18px; height: 22px; border-radius: 3px; font-style: normal; background: var(--card); border: 1px solid var(--line-2); color: var(--ink-3); }
.strip i[data-b] { background: var(--b); border-color: var(--b); color: #fff; }
.strip i[data-b]:not([data-b="G"]), .base[data-b]:not([data-b="G"]) { background: var(--b-text); border-color: var(--b-text); }
.strip i[data-b="G"] { color: #1a1300; }
:root[data-theme="dark"] .strip i[data-b]:not([data-b="G"]) { color: #06100a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .strip i[data-b]:not([data-b="G"]) { color: #06100a; } }
.strip i.x { background: var(--paper-2); border-style: dashed; color: var(--ink-2); font-size: 10px; }

/* sensitivity levels */
.levels { margin-top: clamp(56px, 7vw, 96px); }
.levels-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-9); align-items: end; margin-bottom: var(--s-6); }
.levels-head .h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.01em; max-width: 22ch; }
.levels-head .h3 .serif-em { font-size: 1em; font-style: italic; }
.level-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.level-strip button {
  --lc: var(--ink-3);
  position: relative; display: grid; align-content: space-between; justify-items: start; gap: 18px; min-height: 92px; padding: 12px 12px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); text-align: left; overflow: hidden;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur);
}
.level-strip button[data-l="4"], .level-strip button[data-l="5"] { --lc: var(--G); }
.level-strip button[data-l="6"], .level-strip button[data-l="7"] { --lc: var(--T); }
.level-strip button::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--lc); opacity: .45; transition: opacity var(--dur); }
.level-strip button .mono { font-size: var(--t-lg); color: var(--ink-3); }
.level-strip .lv-name { font-size: var(--t-xs); font-weight: 500; color: var(--ink-3); line-height: 1.2; }
.level-strip button:hover { border-color: var(--ink-3); }
.level-strip button.allowed { background: var(--A-soft); border-color: color-mix(in srgb, var(--A) 45%, var(--line)); }
.level-strip button.allowed::before { opacity: 1; }
.level-strip button.allowed .mono, .level-strip button.allowed .lv-name { color: var(--ink); }
.level-strip button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.level-strip button:not(.allowed) { background-image: repeating-linear-gradient(135deg, transparent 0 6px, var(--grid) 6px 7px); }
.level-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); margin-top: var(--s-4); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.lp-name { font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 46px); line-height: 1; letter-spacing: -.01em; margin-top: 8px; }
.lp-reveals { color: var(--ink-2); margin-top: 12px; max-width: 46ch; font-size: var(--t-lg); }
.lp-ex { margin-top: 16px; color: var(--ink); font-size: var(--t-sm); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.who { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.who li { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 500; font-size: var(--t-sm); color: var(--ink-3); transition: color var(--dur), border-color var(--dur), background var(--dur); }
.who li::after { content: 'no'; margin-left: auto; font-family: var(--font-mono); font-size: var(--t-2xs); letter-spacing: .08em; text-transform: uppercase; }
.who li.on { color: var(--ink); border-color: var(--ink-3); background: var(--card-2); }
.who li.on::after { content: 'yes'; color: var(--G-text); }
.who-ic svg { width: 20px; height: 20px; }
.who-t { display: grid; gap: 1px; line-height: 1.25; }
.who-t small { font-size: var(--t-xs); font-weight: 400; color: var(--ink-3); }
.who li.on .who-t small { color: var(--ink-2); }
.levels-rule { margin-top: var(--s-4); color: var(--ink-2); font-size: var(--t-sm); }
.levels-rule b { font-weight: 600; color: var(--ink); margin-right: 4px; }
.levels-rule .mono { font-weight: 500; }

/* ───────────────────────────── radically honest (inverted ground) */
.sec-honest { background: var(--ink); color: var(--paper); border-top: 0 !important; }
.sec-honest + .sec { border-top: 0; }
.sec-honest .label, .sec-honest .sec-idx b { color: color-mix(in srgb, var(--paper) 62%, var(--ink)); }
.sec-honest .sec-idx::after { background: color-mix(in srgb, var(--paper) 25%, var(--ink)); }
.sec-honest .sec-head { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); }
/* dark theme: a raised gel-black panel instead of a pale slab (swap the pair locally,
   so every colour-mix inside keeps its contrast) */
:root[data-theme="dark"] .sec-honest { --ink: #141917; --paper: #e9ece7; border-block: 1px solid var(--line) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sec-honest { --ink: #141917; --paper: #e9ece7; border-block: 1px solid var(--line) !important; } }
.truths { list-style: none; display: grid; grid-template-columns: 1fr 1fr; counter-reset: t; border-top: 1px solid color-mix(in srgb, var(--paper) 22%, var(--ink)); }
.truths li { counter-increment: t; position: relative; padding: clamp(24px, 3vw, 40px) clamp(0px, 2vw, 32px) clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 22%, var(--ink)); }
.truths li:nth-child(odd) { padding-right: clamp(20px, 4vw, 56px); border-right: 1px solid color-mix(in srgb, var(--paper) 22%, var(--ink)); }
.truths li:nth-child(even) { padding-left: clamp(20px, 4vw, 56px); }
.truths li::before { content: '0' counter(t); display: block; font-family: var(--font-mono); font-size: var(--t-2xs); letter-spacing: .08em; color: color-mix(in srgb, var(--paper) 55%, var(--ink)); margin-bottom: var(--s-4); }
.truth { font-family: var(--font-display); font-size: clamp(26px, 2.7vw, 38px); line-height: 1.12; letter-spacing: -.01em; max-width: 22ch; }
.truths li:nth-child(2) .truth { max-width: 30ch; }
.truth-cap { margin-top: var(--s-4); max-width: 52ch; line-height: 1.55; font-size: var(--t-xs); text-transform: none; letter-spacing: 0; }

/* ───────────────────────────── will my file work? */
.check-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.check-wrap .sec-head { display: block; margin-bottom: 0; }
.check-wrap .sec-head .lede { margin-top: var(--s-5); justify-self: start; }
.where { margin-top: var(--s-6); border-top: 1px solid var(--line); }
.where summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 600; font-size: var(--t-sm); }
.where summary::-webkit-details-marker { display: none; }
.where summary::after { content: '+'; font-family: var(--font-mono); font-size: 18px; color: var(--ink-3); transition: transform var(--dur); }
.where[open] summary::after { transform: rotate(45deg); }
.where dl { display: grid; gap: 14px; padding-bottom: var(--s-4); font-size: var(--t-sm); }
.where dt { font-weight: 600; }
.where dd { color: var(--ink-2); margin-top: 2px; }

.checker { display: grid; gap: var(--s-5); }
.drop {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 300px; padding: 32px 24px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--ink-3); border-radius: var(--r-lg); background: var(--card);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.drop:hover { background: var(--card-2); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.checker.is-over .drop { border-color: var(--A); background: var(--A-soft); border-style: solid; }
.drop-art { display: flex; gap: 6px; margin-bottom: 8px; }
.drop-art i { display: grid; place-items: center; width: 38px; height: 46px; border-radius: 7px; font-style: normal; font-family: var(--font-mono); font-size: 18px; color: var(--b-text); background: var(--b-soft); border: 1px solid color-mix(in srgb, var(--b) 40%, transparent); transition: transform .24s var(--ease); }
.checker.is-over .drop-art i { transform: translateY(-4px); }
.checker.is-over .drop-art i:nth-child(2) { transition-delay: .03s; } .checker.is-over .drop-art i:nth-child(3) { transition-delay: .06s; } .checker.is-over .drop-art i:nth-child(4) { transition-delay: .09s; }
.drop-title { font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 34px); line-height: 1.05; }
.drop-sub { color: var(--ink-2); font-size: var(--t-sm); max-width: 40ch; }
.drop-pick { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.drop-safe { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--A-text); }
.drop-safe svg { width: 14px; height: 14px; }
.checker.is-reading .drop { pointer-events: none; }
.checker.is-reading .drop-title::after { content: '…'; }
.checker[data-state="done"] .drop { display: none; }

.check-result { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); outline: none; animation: rise .28s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.check-result[data-v="yes"] { border-top: 3px solid var(--A); }
.check-result[data-v="almost"] { border-top: 3px solid var(--G); }
.check-result[data-v="no"] { border-top: 3px solid var(--T); }
.cr-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cr-file { font-size: var(--t-xs); color: var(--ink-3); overflow-wrap: anywhere; }
.cr-headline { font-family: var(--font-display); font-size: clamp(28px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -.01em; margin-top: 14px; }
.cr-why { color: var(--ink-2); margin-top: 10px; max-width: 60ch; }
.cr-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin-top: 18px; border-top: 1px solid var(--line-2); }
.cr-facts dt, .cr-facts dd { padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.cr-facts dt { font-family: var(--font-mono); font-size: var(--t-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 11px; padding-right: 24px; }
.cr-facts dd { font-family: var(--font-mono); font-size: var(--t-sm); color: var(--ink); overflow-wrap: anywhere; }
.cr-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 40px; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.cr-more summary::-webkit-details-marker { display: none; }
.cr-more summary::after { content: '+'; margin-left: auto; font-family: var(--font-mono); font-size: 16px; color: var(--ink-3); transition: transform var(--dur); }
.cr-more[open] summary::after { transform: rotate(45deg); }
.cr-more summary:hover { color: var(--ink); }
.cr-more .cr-facts { margin-top: 0; border-top: 0; }
.cr-tip { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper-2); font-size: var(--t-sm); color: var(--ink-2); }
.cr-tip b { color: var(--ink); }
.cr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cr-proof { margin-top: 16px; display: flex; align-items: center; gap: 8px; color: var(--ink-3); text-transform: none; letter-spacing: .02em; }
.cr-proof::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--A); }
.examples { display: grid; gap: 10px; }
.ex-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-row .chip { height: 36px; padding: 0 14px; font-size: var(--t-sm); }
.ex-note { font-size: var(--t-xs); }

/* ───────────────────────────── tools */
.tools { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tool { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'ic name' 'ic host' 'what what'; column-gap: 14px; row-gap: 2px; align-content: start; height: 100%; padding: 26px 28px 30px; text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background var(--dur) var(--ease); }
.tool:hover { background: var(--card); }
.tool-ic { grid-area: ic; width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.tool:hover .tool-ic { color: var(--ink); border-color: var(--ink-3); }
.tool-ic svg { width: 22px; height: 22px; }
.tool-name { grid-area: name; font-family: var(--font-display); font-size: 28px; line-height: 1; align-self: end; }
.tool-host { grid-area: host; font-size: var(--t-xs); color: var(--ink-3); }
.tool-what { grid-area: what; color: var(--ink-2); margin-top: 16px; max-width: 36ch; }
.tool-go { position: absolute; right: 24px; top: 24px; color: var(--ink-3); transition: transform var(--dur) var(--ease), color var(--dur); }
.tool:hover .tool-go { transform: translateX(3px); color: var(--ink); }

/* ───────────────────────────── closing */
.closing { text-align: center; }
.closing-in { display: grid; justify-items: center; }
.closing-tiles { display: flex; gap: 4px; margin-bottom: var(--s-7); }
.closing-tiles i { display: grid; place-items: center; width: 24px; height: 30px; border-radius: 5px; font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--b-text); background: var(--b-soft); border: 1px solid color-mix(in srgb, var(--b) 35%, transparent); transition: opacity .4s, color .4s, background .4s; }
/* G on its own soft tint is 4.49:1 at 10-12 px; nudge it darker (lighter in dark mode) */
.closing-tiles i[data-b="G"], .drop-art i[data-b="G"] { color: color-mix(in srgb, var(--G-text) 85%, var(--ink)); }
.closing-title { font-size: clamp(44px, 6.2vw, 92px); max-width: 14ch; }
.closing .lede { margin-top: var(--s-5); margin-inline: auto; }
.closing .hero-doors { justify-content: center; }

/* ───────────────────────────── footer */
.foot { border-top: 1px solid var(--line); padding-block: var(--s-9) var(--s-6); background: var(--paper-2); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-7); flex-wrap: wrap; padding-bottom: var(--s-8); border-bottom: 1px solid var(--line); }
.foot-nav { display: flex; gap: clamp(32px, 6vw, 88px); flex-wrap: wrap; }
.foot-nav div { display: grid; gap: 8px; align-content: start; }
.foot-nav .label { margin-bottom: 4px; }
.foot-nav a { text-decoration: none; color: var(--ink-2); font-size: var(--t-sm); }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { margin-top: var(--s-5); color: var(--ink-2); font-size: var(--t-sm); max-width: 80ch; }
.foot-legal b { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-4); font-size: var(--t-xs); color: var(--ink-3); }
.ledger summary { list-style: none; cursor: pointer; display: inline-flex; align-items: flex-start; gap: 8px; font-size: var(--t-xs); color: var(--ink-2); }
.ledger summary::-webkit-details-marker { display: none; }
.ledger summary:hover { color: var(--ink); }
.ledger-led { width: 7px; height: 7px; border-radius: 50%; background: var(--A); flex: none; margin-top: .45em; }
.ledger-list { list-style: none; margin-top: 10px; max-height: 220px; overflow: auto; display: grid; gap: 2px; font-size: var(--t-2xs); color: var(--ink-3); }
.ledger-list li { display: flex; gap: 12px; justify-content: space-between; }
.ledger-list li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ledger-list li span:last-child { flex: none; white-space: nowrap; }

/* ───────────────────────────── responsive */
@media (max-width: 1080px) {
  .rung { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 14px; }
  .rung-what { grid-column: 2; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; justify-items: stretch; gap: 0; }
  .flow-wire { width: 2px; height: 40px; justify-self: center; background-image: linear-gradient(180deg, var(--ink-3) 50%, transparent 0); background-size: 2px 6px; }
  .flow-wire i { left: -3px; top: 0; }
  @keyframes packet { 0% { opacity: 0; top: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; top: calc(100% - 8px); } }
  .flow-card { min-height: 0; }
  .flow-grid { grid-template-columns: repeat(10, 32px); }
}
@media (max-width: 900px) {
  :root { --topbar-h: 56px; --band: 290px; }
  .nav, .top-cta { display: none; }
  .menu-btn { display: grid; }
  .sec-head, .levels-head, .sec-honest .sec-head { grid-template-columns: 1fr; }
  .levels-head { gap: var(--s-3); }
  .sec-head .lede { justify-self: start; margin-top: var(--s-4); }
  .doors { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--s-5); }
  .level-panel { grid-template-columns: 1fr; }
  .check-wrap { grid-template-columns: 1fr; }
  .truths { grid-template-columns: 1fr; }
  .truths li:nth-child(n) { padding-left: 0; padding-right: 0; border-right: 0; }
}
@media (max-width: 640px) {
  :root { --band: 290px; }
  .hero-hint[data-axis="x"] { right: 50%; transform: translate(50%, -50%); }
  .cf-long { display: none; }
  .topbar .wordmark b { font-size: 22px; }
  .hero-in { align-items: flex-start; padding-top: 40px; }
  .hero-title { font-size: clamp(40px, 11.6vw, 56px); }
  .hero-title > span { white-space: normal; }
  .hero-doors { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero-doors .btn { width: 100%; }
  .rung { grid-template-columns: 1fr; gap: 10px; padding-block: 20px; }
  .rung-what { grid-column: auto; }
  .rung:not(:last-child) .rung-n::after { display: none; }
  .strip i { width: 16px; height: 20px; font-size: 11px; }
  .level-strip { gap: 4px; }
  .level-strip button { min-height: 56px; padding: 8px 0; justify-items: center; align-content: center; }
  .level-strip .lv-name { display: none; }
  .tools { grid-template-columns: 1fr; }
  .tool { padding: 22px 20px 24px; }
  .flow { padding: 16px; }
  .flow-grid { grid-template-columns: repeat(6, 32px); }
  .bars { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .bars-answer { grid-column: 1 / -1; padding-left: 0; }
  .bars-answer .mono { display: inline; font-size: 30px; margin-right: 8px; }
  .door-cta .btn { flex: 1 1 auto; }
  .cr-facts { grid-template-columns: 1fr; }
  .cr-facts dt { border-bottom: 0; padding-bottom: 0; }
  .cr-facts dd { padding-top: 2px; }
  .drop { min-height: 260px; }
  .closing-tiles { gap: 3px; }
  .closing-tiles i { width: 18px; height: 24px; font-size: 10px; border-radius: 4px; }
  .foot-bottom { flex-direction: column; }
}
@media (pointer: coarse) {
  .theme-toggle { width: 40px; height: 40px; }
  .hero-sample { padding-block: 10px; margin-top: var(--s-2); }
  .ex-row .chip { height: 40px; }
  .foot-nav div { gap: 0; }
  .foot-nav .label { margin-bottom: 2px; }
  .foot-nav a { display: block; padding-block: 10px; min-width: 44px; }
  .topbar .wordmark, .foot .wordmark { padding-block: 9px; }
  .ledger summary { min-height: 40px; align-items: center; }
  .ledger-led { margin-top: 0; }
  .cr-more summary { min-height: 44px; }
}
@media (max-width: 380px) {
  .concept-flag { padding-inline: 8px; }
  .hero-title { font-size: 38px; }
}
