/* =========================================================
   cancercare.ai — Precision medicine. Primitive operations.
   Soft white editorial theme: ink on white, ember for provocation,
   violet → teal for the answer.
   ========================================================= */

:root {
  --bg: #fafaf8;
  --bg-2: #f3f3f0;
  --bg-3: #e9e9e5;
  --card: #ffffff;
  --line: rgba(18, 19, 22, 0.1);
  --line-2: rgba(18, 19, 22, 0.2);
  --text: #121316;
  --text-2: #3d3f46;
  --muted: #62646b;

  --ember: #e8461f;        /* fills, large type */
  --ember-ink: #b83314;    /* small text on paper */
  --ember-soft: rgba(232, 70, 31, 0.12);
  --ember-glow: rgba(232, 70, 31, 0.28);

  --calm: #5b47d6;         /* violet */
  --mint: #0e8f78;         /* teal */
  --calm-soft: rgba(91, 71, 214, 0.1);

  --paper: #ffffff;
  --ink: #141414;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ember); color: #fff; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.muted-strong { color: var(--text-2); font-size: 1.12rem; max-width: 46ch; }
.small { font-size: 0.86rem; line-height: 1.55; }
.ember { color: var(--ember); }
.calm { color: var(--calm); }
sup { font-size: 0.6em; line-height: 0; }
sup a { color: var(--muted); padding: 0 1px; }
sup a:hover { color: var(--ember-ink); }

.mono-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 10px;
}

/* ---------- Atmosphere ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--ember), #f08a3c 55%, var(--calm));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0;
}
.display em { font-style: italic; color: var(--ember); }
.display, .kicker, .big-line, .returns-intro, .cost-lede, .calc-title, .m-line, .tuesday-verdict, .echo, .thesis-line, .pillar h3 { text-wrap: balance; }
.lede, .muted-strong, .tl-text > p { text-wrap: pretty; }
.h2 { font-size: clamp(2.5rem, 6.4vw, 6.2rem); max-width: 17ch; margin-bottom: clamp(48px, 7vw, 96px); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}
.eyebrow .idx { color: var(--ember-ink); }
.dot-ember, .dot-calm {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none;
}
.dot-ember { background: var(--ember); animation: beacon 2.4s var(--ease) infinite; }
.dot-calm { background: var(--calm); }
@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(232, 70, 31, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(232, 70, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 70, 31, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { background: var(--ember); border-color: var(--ember); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 36px -12px var(--ember-glow); }
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: transparent; color: var(--text); border-color: var(--text); box-shadow: none; }
.btn-small { padding: 10px 18px; font-size: 0.88rem; }
.btn-wide { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 248, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: 28px; height: 28px; }
.brand-dot { fill: var(--ember); transform-origin: 19.5px 12.5px; animation: brandpulse 3.2s var(--ease) infinite; }
@keyframes brandpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.78); } }
.brand-word { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em; }
.brand-word em { font-style: normal; color: var(--ember); }
.nav-links { display: flex; gap: 34px; font-size: 0.9rem; color: var(--text-2); }
.nav-links a { position: relative; transition: color 0.25s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 28% 48%, rgba(250, 250, 248, 0.9) 0%, rgba(250, 250, 248, 0.45) 55%, transparent 80%),
    linear-gradient(180deg, rgba(250, 250, 248, 0.7) 0%, transparent 20%, transparent 70%, var(--bg) 100%);
}
.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.hero-title { font-size: clamp(2.55rem, 6.5vw, 6.9rem); line-height: 0.98; letter-spacing: -0.025em; max-width: 12.5em; margin-bottom: clamp(28px, 3.6vw, 44px); }
.hero-title .line { display: block; }
.hero-title .line + .line { margin-top: 0.08em; }
.hero-title .line > span { display: inline-block; padding-right: 0.08em; padding-bottom: 0.06em; }
.sub-h2 {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.2; color: var(--text-2);
  margin: calc(-1 * clamp(20px, 4vw, 56px)) 0 clamp(48px, 6vw, 84px);
}
.flicker { font-style: italic; animation: flicker 7s linear infinite 2.6s; }
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.5; }
}
.lede { font-size: clamp(1.08rem, 1.45vw, 1.32rem); line-height: 1.6; color: var(--text-2); max-width: 54ch; margin: 0 0 40px; }
.lede strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-bottom: 36px;
}
.counter { display: flex; align-items: center; gap: 18px; max-width: 460px; }
.counter-num {
  font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.4rem); line-height: 1;
  color: var(--ember); font-variant-numeric: tabular-nums; min-width: 1.2ch;
}
.counter-text { font-size: 0.9rem; line-height: 1.45; color: var(--text-2); }
.scroll-cue {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 38px; background: linear-gradient(var(--muted), transparent);
  animation: drip 2.2s var(--ease) infinite;
}
.scroll-cue:hover { color: var(--text); }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Ticker ---------- */
.ticker { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); overflow: hidden; padding: 20px 0; background: var(--bg-2); }
.ticker-track { display: flex; gap: 36px; width: max-content; animation: ticker 60s linear infinite; }
.ticker-track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.9rem); color: var(--text); white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--ember); align-self: center; font-size: 0.9rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 13vw, 184px) 0; }

/* 01 versus */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.versus-head {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px;
}
.versus ul { list-style: none; margin: 0; padding: 0; }
.versus li {
  position: relative;
  padding: 24px 0 24px 30px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.12rem, 1.7vw, 1.48rem);
  line-height: 1.4;
}
.versus li::before { content: ""; position: absolute; left: 2px; top: calc(24px + 0.7em); width: 12px; height: 1.5px; }
.science li { color: var(--text-2); }
.science li::before { background: var(--calm); }
.delivery li { color: var(--text); }
.delivery li::before { background: var(--ember); }
.kicker {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 3.3rem); line-height: 1.12;
  max-width: 24ch; margin: clamp(72px, 10vw, 140px) 0 0; letter-spacing: -0.01em;
}

/* scale */
.scale { border-top: 1px solid var(--line); background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.stat { border-top: 1px solid var(--line-2); padding-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.stat-num { font-family: var(--serif); font-size: clamp(4.2rem, 10vw, 9.6rem); line-height: 0.9; letter-spacing: -0.03em; }
.stat-num small { font-size: 0.5em; vertical-align: top; color: var(--muted); }
.stat-label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted); max-width: 30ch; line-height: 1.6; }
.big-line {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.8vw, 3.6rem); line-height: 1.1;
  max-width: 26ch; margin: clamp(72px, 10vw, 140px) 0 0; letter-spacing: -0.01em;
}
.big-line em { color: var(--ember); }

/* 02 cost */
.cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.cost-lede { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.2; margin: 0 0 22px; letter-spacing: -0.005em; }
.cost-lede strong { font-style: italic; font-weight: 400; color: var(--ember); }
.cost-list { list-style: none; margin: 0; padding: 0; }
.cost-list li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--line);
  font-size: 1.1rem; color: var(--text);
}
.cost-list li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--ember); transform: translateY(-2px); }

/* calculator */
.calc {
  margin-top: clamp(80px, 11vw, 150px);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(232, 70, 31, 0.07), transparent 60%),
    var(--card);
  padding: clamp(24px, 4.4vw, 64px);
  box-shadow: 0 40px 100px -60px rgba(120, 50, 20, 0.35), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.calc-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }
.calc-head .mono-label { color: var(--ember-ink); }
.calc-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.04; margin: 0 0 14px; letter-spacing: -0.015em; }
.calc-body { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); }
.calc-inputs { display: grid; gap: 22px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 0.95rem; color: var(--text-2); margin-bottom: 4px; }
.field output { font-family: var(--mono); font-size: 0.95rem; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 30px; background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; border-radius: 2px;
  background: linear-gradient(to right, var(--ember) 0 var(--p), var(--line-2) var(--p) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -8px; border-radius: 50%;
  background: var(--text); border: 0;
  box-shadow: 0 0 0 5px rgba(232, 70, 31, 0.18);
  transition: box-shadow 0.25s, transform 0.25s;
}
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(232, 70, 31, 0.24); transform: scale(1.06); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); border-radius: 2px; }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--ember); border-radius: 2px; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 5px rgba(232, 70, 31, 0.18); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-runnable-track { box-shadow: 0 0 0 1px var(--ember); }

.calc-out { border-left: 1px solid var(--line); padding-left: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; gap: 36px; }
.out-big { display: block; font-family: var(--serif); font-size: clamp(3.6rem, 7.4vw, 6.8rem); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.out-sub { display: block; color: var(--text-2); font-size: 0.95rem; margin-top: 10px; line-height: 1.45; }
.out-sub b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.out-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.out-mid { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-out .btn { margin-top: auto; }

/* returns */
.returns { margin-top: clamp(72px, 10vw, 130px); }
.returns-intro { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.15; max-width: 30ch; margin: 0 0 40px; }
.returns-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: ret; }
.returns-list li { counter-increment: ret; border-top: 1px solid var(--line-2); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.returns-list li::before { content: "0" counter(ret); font-family: var(--mono); font-size: 0.72rem; color: var(--ember-ink); letter-spacing: 0.1em; }
.returns-list b { font-weight: 600; font-size: 1.05rem; }
.returns-list span { color: var(--text-2); font-size: 0.95rem; line-height: 1.5; }

/* 03 platform */
.platform { overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.aurora {
  position: absolute; inset: -10% -20% auto -20%; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 45% at 30% 35%, rgba(91, 71, 214, 0.14), transparent 70%),
    radial-gradient(ellipse 35% 40% at 75% 25%, rgba(14, 143, 120, 0.12), transparent 70%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(4%, 6%, 0) scale(1.08); } }
.platform .eyebrow .idx { color: var(--calm); }
.platform .h2 { max-width: 20ch; }
.calm-grad {
  font-style: italic;
  background: linear-gradient(100deg, var(--calm), var(--mint));
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  padding-right: 0.08em;
}
.thesis { margin: 0 0 clamp(72px, 10vw, 130px); border-left: 2px solid var(--calm); padding-left: clamp(20px, 3vw, 40px); }
.thesis-line { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.7rem); line-height: 1.25; margin: 0; color: var(--text-2); }
.thesis-line:last-child { color: var(--text); font-style: italic; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 24px;
  padding: clamp(28px, 3.6vw, 48px);
  background: rgba(255, 255, 255, 0.55);
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -60px rgba(40, 30, 90, 0.35);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 1s var(--ease);
}
.pillar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(91, 71, 214, 0.09), transparent 60%);
}
.pillar:hover { border-color: rgba(91, 71, 214, 0.4); box-shadow: 0 40px 90px -50px rgba(60, 40, 160, 0.4); }
.pillar:hover::before { opacity: 1; }
.pillar-num { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--calm); }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.02; letter-spacing: -0.015em; margin: 18px 0 18px; }
.pillar p { color: var(--text-2); margin: 0 0 28px; font-size: 1.04rem; }
.pillar-return { margin: auto 0 0 !important; padding-top: 22px; border-top: 1px dashed var(--line-2); color: var(--text) !important; font-weight: 500; }
.pillar-return .mono-label { color: var(--calm); }

/* redacted */
.redacted-sec { border-top: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.redacted-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.redacted-copy .h2 { margin-bottom: 32px; }
.redacted-copy .muted-strong { margin: 0 0 36px; }
.memo {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: clamp(26px, 4vw, 48px);
  font-family: var(--mono);
  font-size: clamp(0.84rem, 1.1vw, 0.98rem);
  line-height: 2.05;
  box-shadow: 0 50px 100px -40px rgba(60, 40, 20, 0.45), 0 2px 6px rgba(60, 40, 20, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: rotate(1.6deg);
  background-image: linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 100% 2.05em;
}
.memo.reveal.in { transform: rotate(1.6deg); }
.memo-head { display: flex; justify-content: space-between; font-size: 0.72rem; letter-spacing: 0.18em; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; font-weight: 500; }
.memo-subject { font-weight: 500; margin: 0 0 10px; }
.memo-body p { margin: 0 0 14px; }
.rx {
  background: var(--ink); color: transparent; border-radius: 2px;
  padding: 0.05em 0.15em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  user-select: none; -webkit-user-select: none;
  transition: background 0.35s;
}
.memo:hover .rx { background: #000; }
.rx:hover { background: var(--ember) !important; }
.stamp {
  position: absolute; right: clamp(14px, 3vw, 34px); bottom: clamp(18px, 3vw, 40px);
  font-family: var(--mono); font-weight: 500; font-size: clamp(0.85rem, 1.3vw, 1.08rem);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ember); border: 3px solid var(--ember); border-radius: 6px;
  padding: 6px 14px;
  transform: rotate(-11deg) scale(1);
  opacity: 0.9;
  mix-blend-mode: multiply;
}
.js .memo .stamp { opacity: 0; transform: rotate(-11deg) scale(1.9); transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 0.6s, opacity 0.2s 0.6s; }
.js .memo.in .stamp { opacity: 0.9; transform: rotate(-11deg) scale(1); }

/* 04 tuesday */
.tuesday { border-top: 1px solid var(--line); isolation: isolate; overflow: hidden; }
.tuesday::before, .tuesday::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity 1.2s var(--ease); }
.tuesday::before { background: radial-gradient(ellipse 60% 50% at 85% 30%, rgba(232, 70, 31, 0.09), transparent 70%); opacity: 1; }
.tuesday::after { background: radial-gradient(ellipse 60% 50% at 15% 40%, rgba(91, 71, 214, 0.1), transparent 70%), radial-gradient(ellipse 50% 40% at 85% 80%, rgba(14, 143, 120, 0.09), transparent 70%); opacity: 0; }
.tuesday.is-on::before { opacity: 0; }
.tuesday.is-on::after { opacity: 1; }
.tuesday .h2 { max-width: 22ch; }
.tuesday .h2 em { transition: color 0.8s var(--ease); }
.tuesday.is-on .h2 em { color: var(--calm); }

.switch-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-bottom: 12px; position: sticky; top: 64px; z-index: 5; background: rgba(250, 250, 248, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.patient { margin: 0; color: var(--text-2); }
.patient b { color: var(--text); font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.switch-opt { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.4s; }
.switch-opt.off { color: var(--text); }
.switch-opt.on { color: var(--muted); }
.switch-track { position: relative; width: 68px; height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-3); transition: background 0.5s, border-color 0.5s; }
.switch-thumb { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--ember); box-shadow: 0 4px 14px var(--ember-glow); transition: transform 0.5s cubic-bezier(0.5, 1.6, 0.4, 1), background 0.5s, box-shadow 0.5s; }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(32px); background: linear-gradient(135deg, var(--calm), var(--mint)); box-shadow: 0 4px 16px rgba(91, 71, 214, 0.4); }
.switch[aria-checked="true"] .switch-track { border-color: rgba(91, 71, 214, 0.45); background: #ebe7f7; }
.switch[aria-checked="true"] .switch-opt.off { color: var(--muted); }
.switch[aria-checked="true"] .switch-opt.on { color: var(--text); }
.switch:not([aria-checked="true"]) .switch-track { animation: nudge 2.8s ease-in-out infinite 1s; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 70, 31, 0); } 50% { box-shadow: 0 0 0 6px rgba(232, 70, 31, 0.14); } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember-ink); padding-top: 0.55em; transition: color 0.6s; }
.tuesday.is-on .timeline time { color: var(--calm); }
.tl-text, .tuesday-verdict { display: grid; }
.tl-text > p, .tuesday-verdict > span { grid-area: 1 / 1; margin: 0; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); }
.tl-text > p { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.22; letter-spacing: -0.005em; }
.tl-text .without { color: var(--text-2); }
.tl-text .with { color: var(--text); }
.tuesday .with { opacity: 0; transform: translateY(10px); filter: blur(6px); pointer-events: none; }
.tuesday.is-on .with { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.tuesday.is-on .without { opacity: 0; transform: translateY(-10px); filter: blur(6px); pointer-events: none; }
.tuesday-verdict { margin: clamp(56px, 8vw, 100px) 0 0; font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.12; max-width: 28ch; }
.tuesday-verdict em { color: var(--ember); }
.tuesday-verdict .with em { color: var(--calm); }

/* 05 manifesto */
.manifesto { border-top: 1px solid var(--line); }
.m-lines { margin: 0; }
.m-line {
  font-family: var(--serif); font-size: clamp(2.3rem, 5.8vw, 5.6rem); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 0.42em; max-width: 22ch;
  color: rgba(18, 19, 22, 0.13);
  transition: color 1s var(--ease);
}
.m-line em { font-style: italic; transition: color 1s var(--ease); }
.m-line.lit { color: var(--text); }
.m-line.lit em { color: var(--ember); }
.m-line:last-child.lit em {
  background: linear-gradient(100deg, var(--calm), var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html:not(.js) .m-line { color: var(--text); }
.share { margin-top: clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.share .mono-label { margin: 0; }
.share-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* 06 briefing */
.briefing { border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; background: var(--bg-2); }
.briefing::before { content: ""; position: absolute; inset: auto -10% -30% -10%; height: 70%; z-index: -1; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(232, 70, 31, 0.1), transparent 70%); pointer-events: none; }
.briefing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
.briefing .h2 { margin-bottom: 32px; }
.echo { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line-2); font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.25; color: var(--text-2); max-width: 26ch; }
.echo b { font-weight: 400; color: var(--ember); font-variant-numeric: tabular-nums; }
.brief-form { background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; padding: clamp(24px, 3.6vw, 44px); display: grid; gap: 22px; box-shadow: 0 40px 100px -60px rgba(120, 50, 20, 0.35); }
.f-row label { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.f-row label .muted { text-transform: none; letter-spacing: 0; }
.f-row input, .f-row select, .f-row textarea {
  width: 100%; background: transparent; color: var(--text);
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  padding: 10px 0 12px; font: inherit; font-size: 1.05rem;
  transition: border-color 0.3s;
}
.f-row textarea { resize: vertical; min-height: 80px; }
.f-row select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2362646b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px;
}
.f-row select option { background: #fff; color: var(--text); }
.f-row input:focus, .f-row select:focus, .f-row textarea:focus { outline: none; border-bottom-color: var(--ember); }
.f-row.invalid input, .f-row.invalid select { border-bottom-color: var(--ember); }
.form-note { margin: 0; text-align: center; }
.brief-form.sent { place-items: center; text-align: center; min-height: 420px; align-content: center; }
.sent-title { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05; margin: 0 0 12px; }
.sent-title em { font-style: italic; color: var(--ember); }

/* footer */
.footer { border-top: 1px solid var(--line-2); padding: 56px 0 64px; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.footer .brand { margin-bottom: 14px; }
.footer-notes p { margin: 0 0 10px; max-width: 80ch; }
.footer-notes sup { color: var(--ember-ink); margin-right: 4px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-title .line.reveal { opacity: 1; transform: none; }
.js .hero-title .line.reveal > span { opacity: 0; transform: translateY(0.35em); filter: blur(14px); transition: opacity 1.4s var(--ease), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), filter 1.4s var(--ease); }
.js .hero-title .line.reveal.in > span { opacity: 1; transform: none; filter: none; }
.js .hero-title .line.reveal.d1 > span { transition-delay: 0.35s; }
.js .memo.reveal { transform: translateY(40px) rotate(4deg); }
.js .memo.reveal.in { transform: rotate(1.6deg); }
.d1 { transition-delay: 0.1s !important; }
.d2 { transition-delay: 0.2s !important; }
.d3 { transition-delay: 0.3s !important; }
.d4 { transition-delay: 0.4s !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .returns-list { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .versus, .cost-grid, .calc-body, .pillars, .redacted-grid, .briefing-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .returns-list { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .timeline time { padding-top: 0; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .memo { transform: rotate(0.8deg); }
  .js .memo.reveal.in { transform: rotate(0.8deg); }
  .switch-row { top: 58px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 96px; }
  .btn { padding: 15px 22px; }
  .cta-row .btn { width: 100%; }
  .returns-list { grid-template-columns: 1fr; }
  .out-row { grid-template-columns: 1fr; }
  .nav .btn-small { padding: 9px 14px; font-size: 0.82rem; }
  .brand-word { font-size: 1rem; }
  .switch-row { position: static; }
  .scroll-cue { white-space: normal; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-title .line.reveal > span { opacity: 1; transform: none; filter: none; }
  .ticker-track { animation: none; }
  .grain { animation: none; }
}
