/* ═════════════════════════  marrow · landing  ═════════════════════════
   Tokens lift directly from 05-vibe-system.md § Color palette.
   ────────────────────────────────────────────────────────────────────── */

:root {
  --marrow-black: #0B0E10;
  --marrow-bone: #EDE6D4;
  --marrow-ember: #E2541F;
  --marrow-amber: #E5A442;
  --clinician-steel: #6F8C95;
  --hairline: #1F2326;
  --surface-lift: #10141A;

  --bone-80: rgba(237, 230, 212, 0.80);
  --bone-60: rgba(237, 230, 212, 0.60);
  --bone-38: rgba(237, 230, 212, 0.38);

  --ease-instrument: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Söhne Halbfett", "Söhne Breit", "Geist", "Inter Display", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Söhne Buch", "Söhne", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Berkeley Mono", "Geist Mono", "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
*[hidden] { display: none !important; }
html { scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  background: var(--marrow-black);
  color: var(--marrow-bone);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Film-grain overlay — 2.5% opacity, mix-blend overlay, fixed across viewport.
   Loaded from /assets/film-grain.svg; brand-binding per 05-vibe-system.md. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/assets/film-grain.svg");
  background-size: 256px 256px;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 100;
}

/* Hero vignette — very faint radial gradient at the spine center axis. */
body::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 38%;
  width: 1200px;
  height: 1200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(237, 230, 212, 0.04) 0%, rgba(237, 230, 212, 0) 60%);
  pointer-events: none;
  z-index: 0;
}

::selection { background: var(--marrow-ember); color: #fff; }

a { color: var(--marrow-bone); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--marrow-ember);
  outline-offset: 2px;
}

/* Skip-link, visible on focus only */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--marrow-bone);
  color: var(--marrow-black);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  z-index: 200;
  transition: top 160ms var(--ease-instrument);
}
.skip-link:focus { top: 16px; outline: none; }

.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;
}

.mono { font-family: var(--font-mono); }
.dot { color: var(--clinician-steel); }

hr.hairline {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ─────────────────────────────  HEADER  ───────────────────────────── */

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 96px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--marrow-bone);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
}
.wordmark:hover, .wordmark:focus-visible { text-decoration: none; }
.wordmark-glyph { display: inline-flex; }
.wordmark-text { line-height: 1; }
.wordmark-sm { font-size: 16px; }

.header-live {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clinician-steel);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--marrow-ember);
  box-shadow: 0 0 8px rgba(226, 84, 31, 0.6);
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 6px rgba(226, 84, 31, 0.4); }
  50%      { opacity: 1;    box-shadow: 0 0 12px rgba(226, 84, 31, 0.9); }
}

/* ──────────────────────────────  HERO  ────────────────────────────── */

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 64px);
  padding: 48px 96px 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1.7fr) minmax(360px, 1fr);
  column-gap: 56px;
  align-items: start;
  position: relative;
  min-height: 720px;
}

.hero-left { padding-top: 8px; position: relative; z-index: 2; }
.hero-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.hero-right { padding-top: 56px; position: relative; z-index: 2; }

/* At tablet/mobile breakpoints the hero-center is pulled OUT of absolute
   positioning and rendered as a block element in document flow BELOW the
   text/card stack. The vibe-system rule (05 § Hero composition z-order
   and stack order, binding ≤1023px) is: text-column z-2, spine z-1, never
   overlapping the subhead. Enforced under @media (max-width: 1023px). */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clinician-steel);
  letter-spacing: 0.03em;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.eyebrow-label { opacity: 0.85; }
.eyebrow-logos { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eyebrow-logos img { height: 18px; width: auto; display: block; opacity: 0.85; }
.eyebrow-mobile { display: none; }

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--marrow-bone);
  margin: 0 0 28px;
  hyphens: none;
  text-wrap: balance;
  max-width: 18ch;
}
.hero-h1 .line { display: block; }
.hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--bone-80);
  margin: 0;
  max-width: 38ch;
}

/* chart-paper hairlines behind hero center */
.chart-paper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.chart-paper span {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--hairline);
  opacity: 0.55;
}
.chart-paper span:nth-child(1) { left: 18%; }
.chart-paper span:nth-child(2) { left: 38%; }
.chart-paper span:nth-child(3) { left: 62%; }
.chart-paper span:nth-child(4) { left: 82%; }

/* ─────────  the spine  ───────── */

.spine-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  perspective: 1400px;
  pointer-events: none;
  opacity: 0.92;
}

.spine-rotator {
  position: relative;
  transform-style: preserve-3d;
  animation: spine-rotate 60s linear infinite;
  width: 360px;
  height: 740px;
  filter: drop-shadow(0 0 40px rgba(237, 230, 212, 0.04));
  pointer-events: auto;
}

@keyframes spine-rotate {
  0%   { transform: rotateY(-14deg) rotateX(2deg); }
  25%  { transform: rotateY(8deg)   rotateX(-1deg); }
  50%  { transform: rotateY(14deg)  rotateX(2deg); }
  75%  { transform: rotateY(-8deg)  rotateX(-1deg); }
  100% { transform: rotateY(-14deg) rotateX(2deg); }
}

.spine-svg {
  width: 100%;
  height: 100%;
  color: var(--marrow-bone);
}

/* Each healthy vertebra has a slow bone-breath. */
.spine-svg .vert { animation: breath-bone 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.spine-svg .vert:nth-child(odd) { animation-delay: -1.1s; }
.spine-svg .vert:nth-child(3n)  { animation-delay: -0.5s; }
.spine-svg .vert:nth-child(5n)  { animation-delay: -1.7s; }

@keyframes breath-bone {
  0%, 100% { opacity: 0.78; }
  50%      { opacity: 0.95; }
}

/* T7 — amber emissive breath (faster, higher amplitude). */
.spine-svg .vert-amber { animation: breath-amber 2.2s ease-in-out infinite; }
@keyframes breath-amber {
  0%, 100% { opacity: 0.78; filter: drop-shadow(0 0 12px rgba(229, 164, 66, 0.45)); }
  50%      { opacity: 1;    filter: drop-shadow(0 0 32px rgba(226, 84, 31, 0.75)); }
}

/* Spine callout — hairline-tethered to T7 */
.spine-callout {
  position: absolute;
  top: 58%;
  left: 56%;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.callout-line {
  display: inline-block;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 84, 31, 0.7), rgba(229, 164, 66, 0.35));
}
.callout-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--clinician-steel);
  white-space: nowrap;
  background: rgba(16, 20, 26, 0.7);
  padding: 4px 10px;
  border: 1px solid var(--hairline);
}

/* ─────────  right-rail CTA card  ───────── */

.cta-card {
  background: var(--surface-lift);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.cta-card-final { max-width: 480px; margin: 32px auto 0; }

.cta-form-mode {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--clinician-steel);
  text-transform: lowercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.cta-email, .cta-code {
  width: 100%;
  background: transparent;
  border: 1px solid var(--clinician-steel);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--marrow-bone);
  outline: none;
  transition: border-color 160ms var(--ease-instrument), box-shadow 160ms var(--ease-instrument);
}
.cta-code { font-family: var(--font-mono); letter-spacing: 0.12em; }
.cta-email::placeholder, .cta-code::placeholder {
  color: rgba(111, 140, 149, 0.6);
  font-family: var(--font-mono);
  font-size: 13px;
}
.cta-email:focus, .cta-code:focus {
  border-color: var(--marrow-ember);
  box-shadow: 0 0 0 2px rgba(226, 84, 31, 0.35);
}

.field-helper {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--clinician-steel);
  margin: -6px 0 0;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--marrow-ember);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  transition:
    transform 60ms var(--ease-instrument),
    box-shadow 120ms var(--ease-instrument),
    opacity 160ms var(--ease-instrument);
}
.cta-pill:hover:not(:disabled) {
  box-shadow: 0 0 0 0 transparent, 0 0 24px rgba(226, 84, 31, 0.55);
}
.cta-pill:active:not(:disabled) { transform: scale(0.98); }
.cta-pill:disabled { opacity: 0.5; cursor: not-allowed; }
.cta-pill .pill-loader { display: none; font-family: var(--font-mono); }
.cta-pill[data-state="loading"] .pill-loader { display: inline; animation: dot-pulse 1.4s steps(3) infinite; }
.cta-pill-compact { padding: 12px 18px; font-size: 14px; }

@keyframes dot-pulse {
  0%, 33%   { opacity: 0.4; }
  34%, 66%  { opacity: 0.75; }
  67%, 100% { opacity: 1; }
}

.ghost-link {
  align-self: flex-start;
  color: var(--clinician-steel);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 4px 0;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.ghost-link:hover, .ghost-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; color: var(--marrow-bone); }

/* Error text uses Marrow Ember — NEVER Amber. (Vibe rule, 05 §State colors.) */
.cta-error {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--marrow-ember);
  margin: 0;
  min-height: 0;
  display: none;
}
.cta-error.is-visible { display: block; padding-top: 4px; }
.cta-error::before {
  content: "· ";
  font-family: var(--font-mono);
  color: var(--marrow-ember);
}

.trust-line, .privacy-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--clinician-steel);
  margin: 0;
  letter-spacing: 0.005em;
}
.trust-line { padding-top: 6px; }
.privacy-line { opacity: 0.85; }

/* success state (rendered by JS, replaces .cta-form-mode contents) */
.cta-success {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cta-success .success-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--marrow-bone);
  margin: 0;
}
.cta-success .success-h::before {
  content: "· ";
  color: var(--clinician-steel);
  font-family: var(--font-mono);
}
.cta-success .success-body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--bone-80);
  margin: 0;
}

/* ────────────────────────  shared section frame  ──────────────────── */

.section {
  position: relative;
  padding: 120px 96px;
  z-index: 1;
}
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-inner.center { text-align: center; }
.section-inner.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: start;
}

.section-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.014em;
  color: var(--marrow-bone);
  margin: 0 0 32px;
  max-width: 22ch;
}
.section-h2-xl { font-size: clamp(44px, 5.4vw, 72px); margin-inline: auto; }
.section-inner.center .section-h2 { margin-inline: auto; }

.prose {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--bone-80);
  margin: 0 0 18px;
  max-width: 60ch;
}
.prose-emph { color: var(--marrow-bone); font-weight: 500; }
.prose em { font-style: italic; color: var(--marrow-bone); }
.prose strong { color: var(--marrow-bone); font-weight: 600; }

.inline-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--marrow-ember);
}
.inline-link:hover, .inline-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ─────────  §2 emotional problem — closeup vertebra  ───────── */

.vertebra-closeup {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  max-width: 480px;
  width: 100%;
  justify-self: center;
}
.closeup-svg { width: 100%; height: 100%; animation: breath-amber-slow 2.4s ease-in-out infinite; }
@keyframes breath-amber-slow {
  0%, 100% { opacity: 0.92; }
  50%      { opacity: 1; }
}
.closeup-labels { position: absolute; inset: 0; pointer-events: none; }
.closeup-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--clinician-steel);
  background: rgba(16, 20, 26, 0.7);
  border: 1px solid var(--hairline);
  padding: 4px 9px;
  white-space: nowrap;
}
.closeup-label-tl { top: 8%; left: -8%; }
.closeup-label-tr { top: 14%; right: -8%; }
.closeup-label-br { bottom: 16%; right: 2%; }

/* ─────────  §3 how it works  ───────── */

.how-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin: 32px 0 24px;
}
.how-cell { display: flex; flex-direction: column; gap: 12px; }
.how-glyph { width: 28px; height: 28px; color: var(--marrow-bone); opacity: 0.95; }
.how-line {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--bone-80);
  margin: 0;
  line-height: 1.55;
}
.how-line strong { color: var(--marrow-bone); font-weight: 600; }
.how-line em { font-style: italic; color: var(--marrow-bone); }

.how-fuse {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--bone-80);
  margin: 36px 0 0;
}
/* State pills — text is ALWAYS Marrow Bone. Amber and Ember appear only as
   border colors and leading hairline dots, per 05-vibe-system.md
   § Color palette ("Used only as emissive material on the spine and as a
   4px hairline indicator (e.g. an underline tick or a leading dot) on data
   labels. Never used as type color anywhere on the site"). */
.state-bone, .state-amber, .state-ember {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 2px 8px 2px 10px;
  border: 1px solid var(--marrow-bone);
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--marrow-bone);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.state-bone::before, .state-amber::before, .state-ember::before {
  content: "·";
  font-family: var(--font-mono);
  color: var(--marrow-bone);
}
.state-amber { border-color: var(--marrow-amber); }
.state-amber::before { color: var(--marrow-amber); }
.state-ember { border-color: var(--marrow-ember); }
.state-ember::before { color: var(--marrow-ember); }

.mini-canvas {
  margin-top: 56px;
  padding: 24px;
  background: var(--surface-lift);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}
.tablist { display: flex; gap: 32px; border-bottom: 1px solid var(--hairline); }
.tab {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--clinician-steel);
  padding: 12px 0;
  position: relative;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
}
.tab[aria-selected="true"] {
  color: var(--marrow-bone);
  border-bottom-color: var(--marrow-ember);
}
.tab:hover, .tab:focus-visible { color: var(--marrow-bone); }
.tabpanels { padding: 36px 0 12px; }
.tabpanel { display: flex; align-items: center; gap: 32px; }
.tabpanel[hidden] { display: none; }

.tab-vert {
  width: 120px; height: 60px;
  border-radius: 60px / 30px;
  border: 1.2px solid var(--marrow-bone);
  position: relative;
  flex-shrink: 0;
}
.tab-vert::before, .tab-vert::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 24px; height: 1.2px;
  background: var(--marrow-bone);
}
.tab-vert::before { left: -28px; box-shadow: 0 -4px 0 var(--marrow-bone), 0 4px 0 var(--marrow-bone); }
.tab-vert::after  { right: -28px; box-shadow: 0 -4px 0 var(--marrow-bone), 0 4px 0 var(--marrow-bone); }
.tab-vert-bone   { animation: breath-bone 3s ease-in-out infinite; }
.tab-vert-amber  { border-color: var(--marrow-amber); box-shadow: 0 0 20px rgba(229, 164, 66, 0.45); animation: breath-amber 2.2s ease-in-out infinite; }
.tab-vert-amber::before, .tab-vert-amber::after { background: var(--marrow-amber); box-shadow-color: var(--marrow-amber); }
.tab-vert-ember  { border-color: var(--marrow-ember); box-shadow: 0 0 28px rgba(226, 84, 31, 0.6); animation: breath-ember 1.8s ease-in-out infinite; }
.tab-vert-ember::before, .tab-vert-ember::after { background: var(--marrow-ember); }
@keyframes breath-ember {
  0%, 100% { box-shadow: 0 0 18px rgba(226, 84, 31, 0.45); }
  50%      { box-shadow: 0 0 36px rgba(226, 84, 31, 0.85); }
}

.tab-reading {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bone-80);
  margin: 0;
  line-height: 1.55;
}

.how-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--clinician-steel);
}

/* ─────────  §4 why now / report  ───────── */

.report-col { display: flex; align-items: center; justify-content: center; }
.report-frame {
  width: 100%;
  max-width: 460px;
  display: block;
  border: 1px solid var(--hairline);
  background: var(--surface-lift);
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.6));
}

/* ─────────  §5 social proof  ───────── */

.section-proof .section-h2 { margin-bottom: 24px; }
.proof-count {
  font-family: var(--font-mono);
  font-size: clamp(48px, 6vw, 72px);
  color: var(--marrow-bone);
  margin: 16px 0 4px;
  letter-spacing: -0.02em;
}
.proof-cap {
  font-size: 13px;
  color: var(--clinician-steel);
  margin: 0 0 32px;
}
.proof-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.proof-logos img { height: 22px; width: auto; opacity: 0.55; }
.proof-footnote {
  font-size: 11px;
  color: rgba(111, 140, 149, 0.6);
  margin: 12px 0 0;
}

/* ─────────  §6 FAQ  ───────── */

.faq-item {
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
}
.faq-item:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--marrow-bone);
  letter-spacing: -0.008em;
  padding: 4px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(16, 20, 26, 0.4); }
.q-mark {
  font-size: 14px;
  color: var(--clinician-steel);
  width: 16px;
  flex-shrink: 0;
}
.faq-a {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--bone-80);
  margin: 12px 0 0 32px;
  max-width: 64ch;
}
.faq-a em { color: var(--marrow-bone); font-style: italic; }

/* ─────────  §7 final CTA  ───────── */

.section-final { padding-bottom: 160px; }
.final-lede {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--bone-80);
  margin: 0 auto 24px;
  max-width: 36ch;
}
.final-coda {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  color: var(--bone-60);
  max-width: 50ch;
  margin: 0 auto 24px;
  line-height: 1.55;
}

/* ─────────  footer  ───────── */

.site-footer {
  padding: 64px 96px;
  position: relative;
  z-index: 1;
}
.footer-inner { max-width: 1280px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-tag { font-size: 12px; color: var(--clinician-steel); margin: 0; }
.footer-links { display: flex; gap: 18px; list-style: none; padding: 0; margin: 8px 0; font-size: 12px; color: var(--clinician-steel); }
.footer-links a { color: var(--clinician-steel); }
.footer-legal { font-size: 11px; color: rgba(111, 140, 149, 0.7); margin: 0; }

/* ─────────  sticky bottom sheet (mobile only)  ───────── */

/* Sticky bottom sheet — collapsed default is a two-row 96px element:
   row 1 (privacy strip, 12px Berkeley Mono Clinician Steel)
   row 2 (email field + Ember pill).
   Privacy line is mandatory in the first viewport, before any tap
   (gate-binding rule, 05 § Sticky bottom-sheet structure). */
.sheet {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--surface-lift);
  border-top: 1px solid var(--hairline);
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 6px;
  transform: translateY(0);
  transition: transform 200ms var(--ease-instrument);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.45);
}
.sheet[data-expanded="true"] { gap: 10px; }

.sheet-privacy {
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--clinician-steel);
  text-align: center;
  margin: 0;
  line-height: 1.25;
  opacity: 0.92;
  /* Always visible — never hidden by collapsed-state logic */
}

.sheet-grab {
  align-self: center;
  padding: 2px 36px;
  cursor: pointer;
}
.sheet-grab-bar {
  display: block;
  width: 36px;
  height: 3px;
  background: var(--hairline);
  border-radius: 4px;
}
.sheet-form { display: flex; flex-direction: column; gap: 8px; }
.sheet-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
}
.sheet-row .cta-email { padding: 10px 12px; font-size: 14px; }
.sheet-expanded {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 200ms var(--ease-instrument);
}
.sheet[data-expanded="true"] .sheet-expanded { max-height: 320px; padding-top: 4px; }
.sheet .trust-line, .sheet .privacy-line { font-size: 11px; }

/* ─────────  cookie strip  ───────── */

.cookie-strip {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--surface-lift);
  border-top: 1px solid var(--hairline);
  padding: 4px 24px calc(4px + env(safe-area-inset-bottom));
  z-index: 50;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--clinician-steel);
  text-align: center;
  height: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-strip p { margin: 0; line-height: 1.2; }

/* When the cookie strip is visible, reserve space at the bottom of the
   document so section H2 baselines never sit underneath it. */
body.cookie-strip-visible { padding-bottom: 32px; }
@media (max-width: 767px) {
  body.cookie-strip-visible { padding-bottom: 144px; }
}
.cookie-strip a { color: var(--clinician-steel); text-decoration: underline; text-underline-offset: 3px; }
.cookie-btn {
  color: var(--marrow-bone);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
}
.cookie-btn:hover { color: var(--marrow-ember); }

/* ───────────────────────────  RESPONSIVE  ─────────────────────────── */

@media (max-width: 1440px) {
  .site-header { padding-left: 64px; padding-right: 64px; }
  .hero { padding-left: 64px; padding-right: 64px; }
  .section { padding-left: 64px; padding-right: 64px; }
  .site-footer { padding-left: 64px; padding-right: 64px; }
}

@media (max-width: 1339px) {
  .hero-grid {
    grid-template-columns: minmax(420px, 1.4fr) minmax(340px, 1fr);
    column-gap: 48px;
  }
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(360px, 1fr) minmax(340px, 1fr);
    column-gap: 40px;
  }
  .hero-center { min-height: 520px; }
  .spine-rotator { width: 280px; height: 660px; }
}

@media (max-width: 1023px) {
  .site-header { padding: 20px 32px 0; }
  .hero {
    padding: 32px 32px 80px;
    min-height: auto;
    overflow: visible;
  }
  .section { padding: 96px 32px; }
  .site-footer { padding: 56px 32px; }

  /* Hero collapses to a single-column vertical stack.
     Stack order: eyebrow → H1 → subhead → CTA card → spine canvas
     (full-width below the card stack, 60vh on tablet, 70vh on mobile). */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }
  .hero-left { max-width: 100%; }
  .hero-h1 { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-left, .hero-right, .hero-center { padding-top: 0; }
  .hero-left { order: 1; }
  .hero-right { order: 2; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-center {
    order: 3;
    position: relative;
    inset: auto;
    width: 100%;
    height: 60vh;
    min-height: 480px;
    max-height: 640px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .spine-rotator { width: 260px; height: 580px; margin: 0 auto; }
  .chart-paper { display: none; }

  /* Tablet hero-callout sits inside the spine stage's bounding box,
     never clipping outside the right edge of the hero container.
     Pulled tighter to the amber vertebra so the entire callout (line +
     monotype label) stays inside the spine-rotator's 260px width. */
  .spine-callout {
    left: 52%;
    top: 56%;
    max-width: 180px;
  }
  .spine-callout .callout-line { width: 28px; }
  .spine-callout .callout-text {
    font-size: 10.5px;
    padding: 3px 6px;
    white-space: normal;
    line-height: 1.25;
  }

  .section-inner.two-col {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .vertebra-closeup { max-width: 380px; margin: 0 auto; }
  .how-row { grid-template-columns: 1fr; gap: 28px; }
  .tabpanel { gap: 20px; }
  .header-live { display: none; }

  /* Tablet eyebrow — wrap to two rows if necessary so all four marks render. */
  .eyebrow { flex-wrap: wrap; row-gap: 8px; }
  .eyebrow-logos { flex-wrap: wrap; row-gap: 6px; }
  .eyebrow-logos img { height: 16px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 116px; }
  .spine-callout { display: none; }
  .site-header { padding: 16px 20px 0; }
  .hero { padding: 16px 20px 32px; }
  .section { padding: 72px 20px; }
  .site-footer { padding: 48px 20px 140px; }

  .eyebrow { display: none; }
  .eyebrow-mobile {
    display: block;
    margin: 6px 0 18px;
    font-size: 11px;
    color: var(--clinician-steel);
    letter-spacing: 0.02em;
  }

  /* Mobile H1 — clamp respects the vibe-system rule (48-56px ceiling on
     mobile per 05 § Breakpoints) and uses text-wrap: balance so neither
     line orphans a single word. */
  .hero-h1 { font-size: clamp(40px, 11vw, 52px); margin-bottom: 20px; }
  .hero-sub { font-size: 15px; max-width: none; }

  /* Hero center on mobile: full-bleed (negative side margins recover the
     20px hero padding), 70vh tall, sits BELOW subhead in document flow.
     Subhead and spine never share a vertical band. */
  .hero-center {
    width: calc(100% + 40px);
    margin: 0 -20px;
    height: 70vh;
    min-height: 420px;
    max-height: 560px;
    order: 3;
    overflow: hidden;
  }
  .spine-rotator { width: 200px; height: 480px; }

  /* hero-right (right-rail card) hidden on mobile — sticky sheet takes over */
  .hero-right { display: none; }

  .section-h2 { font-size: 32px; margin-bottom: 20px; }
  .section-h2-xl { font-size: 40px; }
  .prose { font-size: 16px; }

  .closeup-label-tl { top: 0; left: 0; font-size: 11px; }
  .closeup-label-tr { top: 4%; right: 0; font-size: 11px; }
  .closeup-label-br { bottom: 4%; right: 0; font-size: 11px; }

  .tablist { gap: 16px; }
  .tab { font-size: 11px; }
  .tabpanel { flex-direction: column; align-items: flex-start; gap: 16px; }

  .faq-item summary { font-size: 17px; }
  .faq-a { font-size: 15px; margin-left: 24px; }

  .final-coda { font-size: 14px; }

  .sheet { display: flex; }

  .cookie-strip { bottom: 116px; }
}

@media (max-width: 479px) {
  .hero-h1 { font-size: 40px; }
  .section-h2 { font-size: 28px; }
  .spine-rotator { width: 180px; height: 420px; }
  .hero-center { min-height: 380px; }
}

@media (orientation: landscape) and (max-height: 480px) {
  .hero { padding-top: 12px; padding-bottom: 12px; }
  .hero-h1 { font-size: 36px; }
  .spine-rotator { height: 320px; }
  .eyebrow-mobile { display: none; }
}

/* ─────────────────────  prefers-reduced-motion  ───────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
  .spine-rotator { animation: none !important; transform: rotateY(0deg); }
  .spine-svg .vert,
  .spine-svg .vert-amber,
  .tab-vert-bone, .tab-vert-amber, .tab-vert-ember,
  .closeup-svg,
  .live-dot { animation: none !important; }
  .spine-svg .vert-amber { filter: drop-shadow(0 0 16px rgba(229, 164, 66, 0.55)); opacity: 0.95; }
}
