/* ============ Verbamor marketing site — tokens ============ */
:root, [data-theme="sol"] {
  --bg: #FBF5EB; --bg-alt: #F2E7D2; --ink: #2B1D26; --muted: #6B5B54;
  --line: rgba(43,29,38,0.10); --card: #FFFFFF;
  --primary: #E14434; --primary-ink: #FFFFFF;
  --yellow: #F5C24C; --green: #6B8E3D; --pink: #F2A9B7; --lilac: #B6A0D4;
  --outline: #1B1B1B; --shadow-riso: 4px 4px 0 #1B1B1B; --shadow-riso-sm: 3px 3px 0 #1B1B1B;
  --grain-opacity: 0.035;
}
[data-theme="riso"] {
  --bg: #F5F1E8; --bg-alt: #E8E0CC; --ink: #1B1B1B; --muted: #4A4A4A;
  --line: rgba(0,0,0,0.18); --card: #FFFEFA;
  --primary: #FF3366; --primary-ink: #FFFEFA;
  --yellow: #FFE23A; --green: #00B894; --pink: #FF9BC4; --lilac: #4B6CFF;
  --outline: #1B1B1B; --shadow-riso: 4px 4px 0 #1B1B1B; --shadow-riso-sm: 3px 3px 0 #1B1B1B;
  --grain-opacity: 0.09;
}
[data-theme="dusk"] {
  --bg: #121226; --bg-alt: #1C1C3A; --ink: #F0ECFF; --muted: #8C86B5;
  --line: rgba(255,255,255,0.10); --card: #1F1F40;
  --primary: #FF8A65; --primary-ink: #141428;
  --yellow: #FFD166; --green: #7DDF9F; --pink: #FF7FB4; --lilac: #A594F9;
  --outline: #060614; --shadow-riso: 4px 4px 0 #060614; --shadow-riso-sm: 3px 3px 0 #060614;
  --grain-opacity: 0.06;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Geist", -apple-system, system-ui, sans-serif;
  font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 3px; }

.serif { font-family: "Instrument Serif", Georgia, serif; }
.kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary);
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 34px 0; }
h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.5vw, 46px); line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }

.sample-note {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--muted); letter-spacing: 0.04em;
}

/* ============ Grain ============ */
#grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url%28%23n%29'/%3E%3C/svg%3E");
}
body[data-grain="off"] #grain { display: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: 12px;
  font-family: "Geist", -apple-system, system-ui, sans-serif;
  font-size: 16px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--outline);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary {
  background: var(--primary); color: var(--primary-ink);
  box-shadow: var(--shadow-riso);
}
.btn-primary:hover { color: var(--primary-ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--outline); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow-riso-sm); }
.btn-ghost:hover { color: var(--ink); transform: translate(1.5px, 1.5px); box-shadow: 1.5px 1.5px 0 var(--outline); }

/* ============ Header ============ */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.wordmark {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  font-size: 26px; color: var(--ink);
}
.wordmark:hover { color: var(--primary); }
nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-group { display: flex; align-items: center; gap: 24px; }
nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--ink); }
.nav-divider { width: 1px; height: 18px; background: var(--line); flex: none; }
.nav-external { display: inline-flex; align-items: center; gap: 5px; }
.nav-external .ext-ic { color: var(--muted); opacity: 0.7; transition: color 0.15s ease, opacity 0.15s ease; }
.nav-external:hover .ext-ic { color: var(--ink); opacity: 1; }
nav a.is-active { color: var(--ink); }
.header-cta { min-height: 40px; padding: 8px 18px; font-size: 14px; border-radius: 10px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none; padding: 0;
  color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--outline); border-radius: 10px;
  box-shadow: 2px 2px 0 var(--outline); cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.theme-toggle:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--outline); }
.theme-toggle:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--outline); }
.theme-toggle .ic { display: none; }
[data-theme="sol"] .theme-toggle .ic-sun { display: block; }
[data-theme="dusk"] .theme-toggle .ic-moon { display: block; }

/* Mobile nav (hamburger + drop panel). Hidden until the mobile breakpoint. */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none; padding: 0;
  color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--outline); border-radius: 10px;
  box-shadow: 2px 2px 0 var(--outline); cursor: pointer;
}
.nav-toggle:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--outline); }
.nav-toggle:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--outline); }
.nav-toggle-box { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 0; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px;
}
.nav-toggle-bar { top: 5px; }
.nav-toggle-bar::before { content: ""; top: -5px; }
.nav-toggle-bar::after { content: ""; top: 5px; }
header.nav-open .nav-toggle-bar { background: transparent; }
header.nav-open .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
header.nav-open .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }
.header-cta .cta-short { display: none; }

/* ============ Hero ============ */
#hero { padding: 44px 0 38px; text-align: center; }
.hero-logo { display: block; width: 88px; height: 88px; margin: 0 auto 16px; }
#hero .kicker { display: block; margin-bottom: 14px; }
#hero h1 {
  font-size: clamp(42px, 6.5vw, 76px); line-height: 1.05;
  font-style: italic; max-width: 17ch; margin: 0 auto;
}
#hero .subhead {
  max-width: 52ch; margin: 18px auto 0;
  font-size: clamp(17px, 2vw, 20px); color: var(--muted);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-fine { margin-top: 13px; font-size: 13px; color: var(--muted); }

/* ============ Pain ============ */
#pain { background: var(--bg-alt); border-top: 1.5px solid var(--outline); border-bottom: 1.5px solid var(--outline); }
#pain blockquote {
  margin: 0 auto; max-width: 30ch; text-align: center;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.2;
}
#pain .pain-support {
  max-width: 46ch; margin: 20px auto 0; text-align: center; color: var(--muted); font-size: 18px;
}

/* ============ How ============ */
.section-head { max-width: 60ch; margin-bottom: 20px; }
.section-head .kicker { display: block; margin-bottom: 10px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1.5px solid var(--outline);
  border-radius: 16px; box-shadow: var(--shadow-riso); padding: 22px;
}
.step-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--muted); letter-spacing: 0.12em;
}
.how-grid .pict { margin: 12px 0 10px; }
.how-grid h3 { font-size: 27px; }
.how-grid p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* ============ Proof ============ */
#proof { background: var(--bg-alt); border-top: 1.5px solid var(--outline); border-bottom: 1.5px solid var(--outline); }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.proof-card { display: flex; flex-direction: column; gap: 6px; }
.proof-card h3 { font-size: 24px; }
.proof-card .desc { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.proof-card .sample-note { margin-top: auto; padding-top: 14px; }
.stat-big {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  font-size: clamp(64px, 8vw, 96px); line-height: 1; color: var(--primary);
}
.stat-label { font-size: 15px; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.bar-row { display: grid; gap: 6px; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-size: 13.5px; }
.bar-row .bar-label .mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; }
.bar-track { height: 26px; border: 1.5px solid var(--outline); border-radius: 8px; background: var(--bg); overflow: hidden; }
.bar-fill { height: 100%; }
.bar-fill.standard { width: 100%; background: var(--bg-alt); }
.bar-fill.tuned { width: 74%; background: var(--green); }
.bar-callout { font-size: 15px; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--outline); border-radius: 999px;
  background: var(--bg); padding: 5px 13px; font-size: 14px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.chip.mastered .dot { background: var(--green); }
.chart-legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.chart-legend .swatch { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* ============ Fit ============ */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit-grid .kicker { display: block; margin-bottom: 12px; }
.fit-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.fit-grid li { display: flex; gap: 12px; font-size: 16px; }
.fit-grid li::before { content: "→"; color: var(--primary); font-weight: 600; flex: none; width: 20px; text-align: center; }
.fit-not li::before { content: "✕"; color: var(--muted); font-size: 14px; line-height: 24.8px; }
.fit-not .kicker { color: var(--muted); }

/* ============ Pricing ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.tier { position: relative; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-riso-sm); }
.tier h3 { font-size: 28px; }
.tier .who { color: var(--muted); font-size: 14.5px; min-height: 44px; margin-top: 2px; }
.tier .price { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; margin-top: 10px; }
.tier .price span { font-size: 15px; font-weight: 400; color: var(--muted); }
.tier .per-month { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--muted); }
.tier .btn { margin-top: 20px; width: 100%; }
.tier.selected {
  border-top: 6px solid var(--primary);
  box-shadow: var(--shadow-riso);
  transform: translateY(-10px);
}
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--primary); color: var(--primary-ink);
  border: 1.5px solid var(--outline); border-radius: 999px; padding: 4px 12px;
}
.badge.quiet { background: var(--yellow); color: #1B1B1B; }
.save-pill {
  display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600;
  background: var(--yellow); color: #1B1B1B; border: 1.5px solid var(--outline);
  border-radius: 999px; padding: 2px 9px; vertical-align: middle;
}
.pricing-fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 34px; }

/* ============ FAQ ============ */
#faq .wrap { max-width: 760px; }
.faq-list { display: grid; gap: 12px; margin-top: 8px; }
details {
  background: var(--card); border: 1.5px solid var(--outline);
  border-radius: 14px; box-shadow: var(--shadow-riso-sm); padding: 0 22px;
}
summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px;
  min-height: 44px; padding: 16px 0;
  font-family: "Instrument Serif", Georgia, serif; font-size: 22px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font-size: 26px; color: var(--primary); flex: none; }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 20px; color: var(--muted); font-size: 16px; }

/* ============ CTA ============ */
#cta {
  background: var(--bg-alt); border-top: 1.5px solid var(--outline);
  text-align: center; padding: 40px 0;
}
#cta h2 { font-style: italic; max-width: 20ch; margin: 0 auto; }
#cta .cta-sub { max-width: 44ch; margin: 14px auto 0; color: var(--muted); font-size: 18px; }
#cta .btn { margin-top: 22px; }
#cta .hero-fine { margin-top: 12px; }

/* ============ Footer ============ */
footer { border-top: 1.5px solid var(--outline); padding: 26px 0; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner .wordmark { font-size: 22px; }
.footer-inner .copyright { color: var(--muted); font-size: 14px; }
.footer-inner .contact { margin-left: auto; font-size: 14px; }

/* ============ Legal pages ============ */
.legal { max-width: 760px; }
.legal .kicker { display: block; margin-bottom: 14px; }
.legal h1 { font-size: clamp(38px, 6vw, 60px); font-style: italic; line-height: 1.05; }
.legal .updated { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; margin-top: 14px; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 44px; }
.legal h3 { font-size: 20px; margin-top: 26px; font-family: "Geist", sans-serif; font-weight: 600; }
.legal p, .legal li { color: var(--muted); font-size: 16px; line-height: 1.6; }
.legal p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-family: "JetBrains Mono", monospace; font-size: 13px; }

/* ============ Research chips ============ */
section[id] { scroll-margin-top: 76px; }
details.cite {
  margin-top: 14px; padding: 0; background: none; border: none;
  border-radius: 0; box-shadow: none;
}
details.cite summary {
  display: inline-flex; align-items: center; gap: 8px; width: max-content;
  min-height: 0; padding: 7px 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--outline); border-radius: 999px;
  box-shadow: 2px 2px 0 var(--outline);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
details.cite summary::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
details.cite summary::after { content: "+"; margin-left: 2px; font-size: 15px; line-height: 1; color: var(--primary); }
details.cite[open] summary::after { content: "\2013"; }
details.cite summary:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--outline); }
details.cite .cite-panel {
  margin-top: 12px; padding: 13px 16px; text-align: left;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
}
details.cite .cite-panel p { padding: 0; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
details.cite .cite-panel p + p { margin-top: 8px; }
details.cite .cite-panel a { text-decoration: underline; text-underline-offset: 2px; }
.pain-cite { display: flex; justify-content: center; margin-top: 22px; }
.pain-cite details.cite { margin-top: 0; display: flex; flex-direction: column; align-items: center; }
.pain-cite .cite-panel { max-width: 54ch; }

/* ============ Science section (home) ============ */
#science .science-lede { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 56ch; }
.evidence-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.evidence { display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-riso-sm); }
.evidence .year {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  font-size: 46px; line-height: 1; color: var(--primary);
}
.evidence h3 { font-size: 21px; }
.evidence p { color: var(--muted); font-size: 14px; }
.evidence .src {
  margin-top: auto; padding-top: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px;
}
.science-more { margin-top: 26px; }

/* ============ Base 625 proof card ============ */
.proof-wide { grid-column: 1 / -1; }
.wide-inner { display: grid; grid-template-columns: auto 1fr; gap: 8px 44px; align-items: center; margin-top: 4px; }
.wide-inner .stat-big { font-size: clamp(72px, 9vw, 110px); }
.wide-copy p { color: var(--muted); font-size: 15px; max-width: 58ch; }

/* ============ Science page ============ */
.science-page { max-width: 800px; }
.science-hero { padding: 44px 0 8px; }
.science-hero .kicker { display: block; margin-bottom: 14px; }
.science-hero h1 { font-size: clamp(40px, 6vw, 64px); font-style: italic; line-height: 1.05; }
.science-hero .lede { margin-top: 16px; max-width: 58ch; color: var(--muted); font-size: 18px; }
.science-page .updated { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; margin-top: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink); background: var(--card); border: 1.5px solid var(--outline); border-radius: 999px;
  padding: 6px 14px; box-shadow: 2px 2px 0 var(--outline);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.toc a:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--outline); color: var(--ink); }
.science-sec { padding: 0 0 6px; margin-top: 44px; padding-top: 38px; border-top: 1px solid var(--line); }
.science-sec .sec-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--primary); letter-spacing: 0.12em;
}
.science-sec h2 { margin-top: 6px; font-size: clamp(28px, 4vw, 40px); }
.claim-label {
  margin-top: 18px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.science-sec .claim {
  margin-top: 6px;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  font-size: clamp(20px, 2.6vw, 25px); line-height: 1.3;
}
.science-sec .body { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.science-sec .aside {
  margin-top: 18px; padding: 15px 18px;
  background: var(--bg-alt); border: 1.5px solid var(--outline); border-radius: 12px;
}
.aside .aside-label {
  display: block; margin-bottom: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.science-sec .aside p { font-size: 15px; line-height: 1.6; }
.sources-label {
  display: block; margin-top: 24px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.study-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.study {
  background: var(--card); border: 1.5px solid var(--outline); border-radius: 12px;
  box-shadow: var(--shadow-riso-sm); padding: 13px 18px;
}
.study a { font-weight: 500; font-size: 15px; line-height: 1.45; }
.study .meta { margin-top: 4px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--muted); }
.fine-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.fine-list li { display: flex; gap: 12px; font-size: 15.5px; color: var(--muted); }
.fine-list li::before { content: "\219B"; color: var(--primary); font-weight: 600; flex: none; }
.science-page .back { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font-family: "JetBrains Mono", monospace; font-size: 13px; }
.science-cta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.science-cta-top .science-cta-note { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.science-cta-bottom { margin-top: 56px; padding: 44px 0 8px; border-top: 1px solid var(--line); text-align: center; }
.science-cta-bottom h2 { font-size: clamp(28px, 4vw, 40px); font-style: italic; line-height: 1.06; }
.science-cta-bottom p { margin: 14px auto 24px; max-width: 46ch; color: var(--muted); font-size: 17px; }

/* ============ Science figures ============ */
.science-fig {
  margin: 26px 0 4px; padding: 22px 22px 16px;
  background: var(--card); border: 1.5px solid var(--outline); border-radius: 14px;
  box-shadow: var(--shadow-riso);
}
.science-fig svg { display: block; width: 100%; height: auto; }
.science-fig .fig-txt { font-family: "JetBrains Mono", ui-monospace, monospace; }
.science-fig figcaption {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: 0.02em; line-height: 1.55; color: var(--muted);
}
.science-fig figcaption .fig-num { color: var(--primary); font-weight: 500; }
.science-fig .fig-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.science-fig .fig-legend span { display: inline-flex; align-items: center; }
.science-fig .fig-legend .swatch { display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 7px; }
.science-fig .fig-legend .swatch.dashed { height: 0; border-top: 3px dotted currentColor; border-radius: 0; }
.science-hero-fig { margin: 30px 0 4px; padding: 26px 24px 18px; }

/* ============ Motion ============ */
/* Continuous bob is decorative; only run it when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-float { animation: floaty 6s ease-in-out infinite; }
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; width: 100%; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-legal a { color: var(--muted); font-size: 13.5px; }
.footer-legal a:hover { color: var(--ink); }

nav a { position: relative; }
nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1);
}
nav a:hover::after { transform: scaleX(1); }
nav .nav-onpage a.is-active::after { transform: scaleX(1); }

header.scrolled { box-shadow: 0 6px 22px -14px rgba(0,0,0,0.35); }

/* Reveals fade in on opacity only (no travel) in every motion mode, which is
   safe under reduced-motion. Everything that actually moves stays in the
   no-preference block below: the slide-in travel, the logo bob, and the proof
   internals that animate (bars filling, the forecast chart drawing itself, the
   count-up numbers in JS). So a reduced-motion visitor sees the cards ease in
   with the bars/chart/numbers already at their final state, holding still per
   the README/CLAUDE guidance. These initial-hidden states assume JS runs (the
   IntersectionObserver adds .is-in); the site already relies on JS elsewhere. */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity;
}
[data-reveal].is-in { opacity: 1; }

.chip { opacity: 0; transition: opacity 0.5s ease; transition-delay: calc(var(--ci, 0) * 55ms + 0.3s); }
[data-reveal].is-in .chip { opacity: 1; }

.hero-anim { opacity: 0; transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1) var(--rd, 0ms); }
.hero-anim.is-in { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    transform: translateY(26px);
    transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
    transition-delay: var(--rd, 0ms);
    will-change: opacity, transform;
  }
  [data-reveal].is-in { transform: none; }

  .card { transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.75s cubic-bezier(0.16,1,0.3,1); }
  .how-grid .card:hover, .fit-grid .card:hover { transform: translateY(-5px); box-shadow: 7px 9px 0 var(--outline); }
  .proof-card:hover { transform: translateY(-4px); box-shadow: 6px 8px 0 var(--outline); }

  /* proof internals animate only when motion is welcome */
  .bar-fill { width: 0 !important; transition: width 1s cubic-bezier(0.16,1,0.3,1) 0.25s; }
  [data-reveal].is-in .bar-fill.standard { width: 100% !important; }
  [data-reveal].is-in .bar-fill.tuned { width: 74% !important; }

  .chart-draw { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s cubic-bezier(0.33,1,0.68,1) 0.15s; }
  [data-reveal].is-in .chart-draw { clip-path: inset(0 0 0 0); }

  .chip { transform: translateY(8px) scale(0.96); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1); transition-delay: calc(var(--ci, 0) * 55ms + 0.3s); }
  [data-reveal].is-in .chip { transform: none; }

  .hero-anim { transform: translateY(20px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1) var(--rd, 0ms), transform 0.8s cubic-bezier(0.16,1,0.3,1) var(--rd, 0ms); }
  .hero-anim.is-in { transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .how-grid, .pricing-grid { grid-template-columns: 1fr; }
  .proof-grid, .fit-grid { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .wide-inner { grid-template-columns: 1fr; gap: 12px; }
  .tier.selected { transform: none; }
  .tier .who { min-height: 0; }
  section { padding: 44px 0; }
}
@media (max-width: 560px) {
  .evidence-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-inner { justify-content: flex-start; gap: 8px; }
  /* Keep the download CTA in the toolbar; cluster the actions tight on the right. */
  .header-cta { min-height: 38px; padding: 8px 13px; font-size: 13.5px; margin-left: auto; }
  .header-cta .cta-full { display: none; }
  .header-cta .cta-short { display: inline; }
  .nav-toggle { display: inline-flex; }
  .hero-actions .btn { width: 100%; }

  /* Nav becomes a full-width panel dropping below the header. */
  nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 6px 0 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px -20px rgba(0,0,0,0.55);
    opacity: 0; transform: translateY(-8px);
    visibility: hidden; pointer-events: none;
  }
  header.nav-open nav {
    opacity: 1; transform: none; visibility: visible; pointer-events: auto;
  }
  .nav-group { flex-direction: column; align-items: stretch; gap: 0; }
  nav a { display: block; padding: 12px 24px; font-size: 17px; color: var(--ink); }
  nav a::after { display: none; }
  .nav-divider { width: auto; height: 1px; margin: 6px 24px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 6px; }
  .wordmark { font-size: 22px; }
  .header-cta { padding: 8px 10px; font-size: 12.5px; }
}
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  nav { transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
  .nav-toggle { transition: transform 0.12s ease, box-shadow 0.12s ease; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
  }
}

/* ============================================================
   BLOG
   ============================================================ */

/* ---- category tag (shared: cards + post header) ---- */
.cat-tag {
  display: inline-flex; align-items: center; gap: 7px; width: max-content;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
}
.cat-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; border: 1.5px solid var(--outline); }
.cat-tag[data-cat="tactics"] .dot { background: var(--yellow); }
.cat-tag[data-cat="science"] .dot { background: var(--green); }
.cat-tag[data-cat="stories"] .dot { background: var(--pink); }
.cat-tag[data-cat="product"] .dot { background: var(--lilac); }
.cat-tag[data-cat="company"] .dot { background: var(--primary); }

/* ---- blog index ---- */
.blog-page { max-width: 1080px; }
.blog-hero { padding: 44px 0 8px; }
.blog-hero .kicker { display: block; margin-bottom: 14px; }
.blog-hero h1 { font-size: clamp(40px, 6vw, 64px); font-style: italic; line-height: 1.05; }
.blog-hero .lede { margin-top: 16px; max-width: 54ch; color: var(--muted); font-size: 18px; }

.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

/* search box */
.blog-search { position: relative; max-width: 440px; margin-top: 22px; }
.blog-search input {
  width: 100%; box-sizing: border-box; min-height: 48px;
  font-family: "Geist", -apple-system, system-ui, sans-serif; font-size: 15.5px; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--outline); border-radius: 12px;
  box-shadow: 2px 2px 0 var(--outline);
  padding: 12px 42px 12px 44px;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}
.blog-search input::placeholder { color: var(--muted); }
.blog-search input:focus { outline: none; transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--primary); border-color: var(--primary); }
.blog-search input::-webkit-search-decoration,
.blog-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.blog-search .search-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.blog-search .search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  font-size: 22px; line-height: 1; color: var(--muted);
  background: none; border: none; border-radius: 8px; cursor: pointer;
}
.blog-search .search-clear:hover { color: var(--ink); }

.filter-btn {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink); background: var(--card); border: 1.5px solid var(--outline); border-radius: 999px;
  padding: 7px 15px; box-shadow: 2px 2px 0 var(--outline); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.filter-btn .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; border: 1.5px solid var(--outline); }
.filter-btn[data-cat="tactics"] .dot { background: var(--yellow); }
.filter-btn[data-cat="science"] .dot { background: var(--green); }
.filter-btn[data-cat="stories"] .dot { background: var(--pink); }
.filter-btn[data-cat="product"] .dot { background: var(--lilac); }
.filter-btn[data-cat="company"] .dot { background: var(--primary); }
.filter-btn:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--outline); }
.filter-btn.is-active { background: var(--ink); color: var(--bg); box-shadow: 2px 2px 0 var(--outline); }
.filter-btn.is-active .dot { border-color: var(--bg); }

/* featured post */
.post-featured {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; margin-top: 30px;
  background: var(--card); border: 1.5px solid var(--outline); border-radius: 18px;
  box-shadow: var(--shadow-riso); overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.75s cubic-bezier(0.16,1,0.3,1);
}
.post-featured:hover { transform: translateY(-5px); box-shadow: 7px 9px 0 var(--outline); color: var(--ink); }
.post-featured .cover { border-right: 1.5px solid var(--outline); min-height: 300px; }
.post-featured .feat-body { padding: 32px 34px; display: flex; flex-direction: column; }
.post-featured .feat-flag {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.post-featured h2 { font-size: clamp(28px, 3.4vw, 40px); font-style: italic; line-height: 1.08; margin-top: 8px; }
.post-featured .excerpt { margin-top: 14px; color: var(--muted); font-size: 16.5px; line-height: 1.6; max-width: 46ch; }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; }
.post-meta .meta-txt { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.post-meta .meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); opacity: 0.6; }

/* grid */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1.5px solid var(--outline); border-radius: 16px;
  box-shadow: var(--shadow-riso-sm); overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.7s cubic-bezier(0.16,1,0.3,1);
}
.post-card:hover { transform: translateY(-5px); box-shadow: 6px 8px 0 var(--outline); color: var(--ink); }
.post-card .cover { height: 168px; border-bottom: 1.5px solid var(--outline); }
.post-card .card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 25px; line-height: 1.12; margin-top: 12px; }
.post-card .excerpt { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.post-card .post-meta { padding-top: 18px; }
.post-card[hidden] { display: none; }
.post-featured[hidden] { display: none; }
.blog-search .search-clear[hidden] { display: none; }

/* ---- riso cover motifs (animated, no photos) ---- */
.cover { position: relative; display: block; overflow: hidden; }
.cover .cov-bg { position: absolute; inset: 0; }
.cover .cov-tint-yellow { background: var(--yellow); }
.cover .cov-tint-green  { background: var(--green); }
.cover .cov-tint-pink   { background: var(--pink); }
.cover .cov-tint-lilac  { background: var(--lilac); }
.cover .cov-tint-primary{ background: var(--primary); }
.cover .cov-tint-alt    { background: var(--bg-alt); }
.cover svg { position: relative; display: block; width: 100%; height: 100%; }
.cover .drift { animation: coverDrift 7s ease-in-out infinite; transform-origin: center; }
.cover .drift-2 { animation: coverDrift 9s ease-in-out infinite reverse; }
.cover .spin-slow { animation: coverSpin 26s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes coverDrift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes coverSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cover .drift, .cover .drift-2, .cover .spin-slow { animation: none; } }

/* ============================================================
   BLOG POST (article)
   ============================================================ */
.article { max-width: 720px; margin: 0 auto; }
.article-hero { padding: 40px 0 4px; }
.article-hero .cat-tag { margin-bottom: 16px; }
.article-hero h1 { font-size: clamp(34px, 5.2vw, 56px); font-style: italic; line-height: 1.06; }
.article-hero .standfirst { margin-top: 18px; color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; max-width: 54ch; }
.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.byline .avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--outline); background: var(--bg-alt);
  display: grid; place-items: center;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 19px; color: var(--ink);
}
.byline .by-txt { display: flex; flex-direction: column; gap: 2px; }
.byline .by-name { font-size: 14.5px; font-weight: 600; }
.byline .by-sub { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); }

/* full-bleed cover under hero */
.article-cover {
  margin: 30px 0 8px; height: clamp(220px, 34vw, 340px);
  border: 1.5px solid var(--outline); border-radius: 18px; box-shadow: var(--shadow-riso); overflow: hidden;
}

/* table of contents */
.toc-box {
  margin: 30px 0; padding: 18px 22px;
  background: var(--bg-alt); border: 1.5px solid var(--outline); border-radius: 14px;
}
.toc-box .toc-label {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px;
}
.toc-box ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 7px; }
.toc-box li { counter-increment: toc; }
.toc-box a { display: inline-flex; gap: 10px; font-size: 15.5px; color: var(--ink); }
.toc-box a::before {
  content: counter(toc, decimal-leading-zero); color: var(--primary);
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; padding-top: 3px;
}
.toc-box a:hover { color: var(--primary); }

/* prose */
.prose { font-size: 18px; line-height: 1.72; }
.prose > h2 {
  font-size: clamp(26px, 3.4vw, 34px); line-height: 1.14; margin-top: 48px; scroll-margin-top: 84px;
}
.prose > h3 { font-family: "Geist", sans-serif; font-weight: 600; font-size: 21px; margin-top: 34px; }
.prose > p { margin-top: 20px; color: var(--ink); }
.prose > p .muted, .prose .muted { color: var(--muted); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 600; }
.prose > ul, .prose > ol { margin: 18px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.prose > ul li, .prose > ol li { padding-left: 4px; }
.prose > ul { list-style: none; padding-left: 0; }
.prose > ul > li { display: flex; gap: 12px; }
.prose > ul > li::before { content: "\2192"; color: var(--primary); font-weight: 600; flex: none; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* sources grouped by finding */
.source-groups { margin: 24px 0 0; display: grid; gap: 28px; }
.source-group .sg-head {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.source-group .sg-head .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 1.5px solid var(--outline); background: var(--line); }
.source-group .sg-head[data-cat="tactics"] .dot { background: var(--yellow); }
.source-group .sg-head[data-cat="science"] .dot { background: var(--green); }
.source-group .sg-head[data-cat="stories"] .dot { background: var(--pink); }
.source-group .sg-head[data-cat="product"] .dot { background: var(--lilac); }
.source-group .sg-head[data-cat="company"] .dot { background: var(--primary); }
.source-group .sg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.source-group .sg-list > li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.55; }
.source-group .sg-list > li::before { content: "\2192"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 600; }
.source-group .sg-list > li a { color: var(--primary); }

/* pull quote */
.pullquote {
  margin: 40px 0; padding: 6px 0 6px 28px; border-left: 4px solid var(--primary);
}
.pullquote p {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  font-size: clamp(24px, 3.4vw, 32px); line-height: 1.28; color: var(--ink); margin: 0;
}
.pullquote cite { display: block; margin-top: 12px; font-style: normal; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

/* figure block (animated diagrams) */
.figure {
  margin: 36px 0; padding: 24px; background: var(--card);
  border: 1.5px solid var(--outline); border-radius: 16px; box-shadow: var(--shadow-riso-sm);
}
.figure .fig-label {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 16px;
}
.figure figcaption { margin-top: 16px; font-size: 13.5px; color: var(--muted); line-height: 1.55; text-align: center; }

/* inline image placeholder (designed, striped) */
.inline-media {
  margin: 32px 0; border: 1.5px solid var(--outline); border-radius: 14px; box-shadow: var(--shadow-riso-sm);
  height: clamp(200px, 30vw, 300px); overflow: hidden; position: relative;
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, color-mix(in srgb, var(--ink) 6%, transparent) 13px 14px),
    var(--bg-alt);
  display: grid; place-items: center;
}
.inline-media .media-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted);
  background: var(--card); border: 1.5px solid var(--outline); border-radius: 8px; padding: 6px 12px;
}
.inline-media figcaption { position: absolute; }

/* flashcard demo */
.card-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-card {
  aspect-ratio: 3 / 2; border: 1.5px solid var(--outline); border-radius: 14px; background: var(--bg);
  box-shadow: 3px 3px 0 var(--outline); padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.mini-card .mc-flag { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mini-card .mc-word { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(26px, 4vw, 38px); line-height: 1; margin-top: auto; }
.mini-card .mc-sub { font-size: 13.5px; color: var(--muted); }
.mini-card .mc-blank { color: var(--primary); border-bottom: 2px solid var(--primary); padding: 0 12px; }

/* stat row (count-up) */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
.stat-cell .stat-num {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  font-size: clamp(44px, 7vw, 64px); line-height: 1; color: var(--primary);
}
.stat-cell .stat-cap { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* spacing timeline */
.timeline { position: relative; padding: 14px 6px 6px; }
.timeline .tl-track { position: relative; height: 2px; background: var(--line); margin: 40px 0 12px; }
.timeline .tl-fill { position: absolute; inset: 0 auto 0 0; height: 2px; background: var(--primary); width: 0; transition: width 1.4s cubic-bezier(0.16,1,0.3,1) 0.2s; }
[data-reveal].is-in .timeline .tl-fill { width: 100%; }
.timeline .tl-dot { position: absolute; top: -5px; transform: translateX(-50%); }
.timeline .tl-dot i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--outline); }
.timeline .tl-dot.on i { background: var(--primary); }
.timeline .tl-dot span { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; color: var(--muted); }

/* related posts */
.related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.related .kicker { display: block; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px;
  background: var(--card); border: 1.5px solid var(--outline); border-radius: 14px; box-shadow: var(--shadow-riso-sm);
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s cubic-bezier(0.16,1,0.3,1);
}
.related-card:hover { transform: translateY(-4px); box-shadow: 6px 8px 0 var(--outline); color: var(--ink); }
.related-card h4 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 22px; line-height: 1.12; }
.related-card .r-meta { margin-top: auto; padding-top: 8px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--muted); }

/* post top bar: back button + inline download CTA */
.post-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-top: 28px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0.02em;
  color: var(--ink); background: var(--card); border: 1.5px solid var(--outline); border-radius: 999px;
  padding: 8px 16px; box-shadow: 2px 2px 0 var(--outline);
  transition: transform 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}
.back-link:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--outline); color: var(--primary); }
.back-link .arw { font-size: 15px; line-height: 1; }
.post-topbar .btn { min-height: 40px; padding: 8px 18px; font-size: 14px; border-radius: 10px; }

/* end CTA */
.post-cta {
  margin-top: 56px; padding: 40px 34px; text-align: center;
  background: var(--bg-alt); border: 1.5px solid var(--outline); border-radius: 18px; box-shadow: var(--shadow-riso);
}
.post-cta h2 { font-size: clamp(26px, 3.6vw, 36px); font-style: italic; line-height: 1.08; }
.post-cta p { margin: 12px auto 22px; max-width: 44ch; color: var(--muted); font-size: 16.5px; }

@media (max-width: 860px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .cover { border-right: none; border-bottom: 1.5px solid var(--outline); min-height: 200px; }
  .post-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 24px; }
  .card-demo { grid-template-columns: 1fr; }
}
