/* ============ SomaLofi · Somatic Blueprint landing ============ */
:root {
  --bg: #080b11;
  --bg-2: #0b1018;
  --panel: #0e141d;
  --panel-2: #121a25;
  --border: rgba(180,180,190,0.10);
  --border-strong: rgba(200,200,215,0.18);
  --text: #e9e5dd;
  --text-dim: #b6b0a5;
  --muted: #7e7b75;
  --bronze: #cf965a;
  --bronze-2: #e2b17a;
  --bronze-dim: rgba(207,150,90,0.35);
  --teal: #4fb6c4;
  --teal-2: #6fd3df;
  --teal-dim: rgba(79,182,196,0.35);
  --red: #c26a59;
  --purple: #5a6099;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; line-height: 1.5; letter-spacing: -0.005em; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 300; letter-spacing: -0.02em; margin: 0; color: var(--text); text-wrap: pretty; }
p { margin: 0; color: var(--text-dim); }
em, i { font-style: normal; color: var(--text); font-feature-settings: "tnum"; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }

.wm-sub { font-style: normal; color: var(--muted); font-weight: 300; letter-spacing: 0.04em; margin-left: 2px; }
.nav-links a.is-current { color: var(--text); }
.nav-links a.is-current::after { content: ''; display: block; height: 1px; background: var(--bronze); margin-top: 4px; opacity: .8; }

/* ---- Ambient background ---- */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-wave {
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(79,182,196,0.06), transparent 60%),
    radial-gradient(900px 600px at 85% 85%, rgba(207,150,90,0.05), transparent 60%);
  animation: bgDrift 22s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  0% { transform: translate3d(0,0,0) scale(1); opacity: .9; }
  50% { transform: translate3d(-2%, 1%, 0) scale(1.04); opacity: 1; }
  100% { transform: translate3d(2%, -1%, 0) scale(1.02); opacity: .95; }
}
.bg-aura { z-index: 0; opacity: 0.9; width:100%; height:100%; }
.bg-particles { z-index: 1; opacity: 0.7; width:100%; height:100%; }
.bg-scanlines {
  z-index: 2;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.008) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* living heartbeat corner indicator */
.heartbeat {
  position: fixed; bottom: 16px; left: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(8,11,17,0.7);
  backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--muted);
}
.hb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: hbPulse 10.9s ease-in-out infinite; }
@keyframes hbPulse {
  0%, 40% { transform: scale(1); opacity: 1; }
  8% { transform: scale(1.8); opacity: 1; }
  16% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}
.hb-label { color: var(--teal); }
.hb-bpm { color: var(--text-dim); }
@media (max-width: 600px) { .heartbeat { display: none; } }
.bg-grid {
  background-image:
    repeating-linear-gradient(to right, rgba(255,255,255,0.02) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.015) 0 1px, transparent 1px 64px);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.bg-vignette {
  background: radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(0,0,0,0.6) 100%);
}
body[data-bg-density="dense"] .bg-wave {
  background:
    radial-gradient(800px 500px at 20% 20%, rgba(79,182,196,0.10), transparent 60%),
    radial-gradient(700px 500px at 80% 70%, rgba(207,150,90,0.10), transparent 60%);
}
body[data-bg-density="off"] .bg-wave,
body[data-bg-density="off"] .bg-grid { display: none; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 40px);
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(8,11,17,0.85), rgba(8,11,17,0.5));
  border-bottom: 1px solid var(--border);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; font-size: 16px; color: var(--text); letter-spacing: 0.02em; }
.wm-mark { width: 32px; height: 18px; color: var(--teal); }
.wordmark.large { font-size: 22px; }
.wordmark.large .wm-mark { width: 42px; height: 22px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

@media (max-width: 780px) {
  .nav-links { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; font-size: 14px; font-weight: 400; letter-spacing: 0.01em;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s cubic-bezier(.2,0,0,1), background .2s, border-color .2s, color .2s;
  background: transparent; color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); }
.btn-primary {
  background: linear-gradient(180deg, var(--bronze-2), var(--bronze));
  color: #1a1208; font-weight: 500;
  box-shadow: 0 0 0 1px rgba(226,177,122,0.35), 0 8px 32px -10px rgba(207,150,90,0.5);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(226,177,122,0.6), 0 10px 40px -8px rgba(207,150,90,0.7); }
.btn.lg { padding: 14px 22px; font-size: 15px; }
.btn.xl { padding: 18px 28px; font-size: 16px; }
.btn-link { padding: 10px 2px; color: var(--text-dim); border-bottom: 1px solid transparent; border-radius: 0; }
.btn-link:hover { color: var(--text); border-bottom-color: var(--bronze); }
.arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Layout ---- */
main { position: relative; z-index: 1; }
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 4vw, 48px);
  position: relative;
}
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--bronze);
  margin-bottom: 20px; text-transform: uppercase;
}
.display {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.05;
  font-weight: 200;
  letter-spacing: -0.028em;
  text-wrap: balance;
  margin-bottom: 20px;
}
.display-2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 200;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.display-3 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.lede { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; max-width: 620px; color: var(--text-dim); margin-bottom: 32px; }
.section-lede { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; max-width: 640px; color: var(--text-dim); }
.section-lede.small { font-size: 14px; }

/* ---- Hero ---- */
.hero {
  padding: clamp(100px, 14vh, 180px) clamp(20px, 4vw, 48px) 40px;
  max-width: var(--maxw); margin: 0 auto; position: relative;
}
.hero-frame {
  position: relative;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(14,20,29,0.4), rgba(8,11,17,0.6));
}
.corner { position: absolute; width: 14px; height: 14px; border: 1px solid var(--bronze); }
.corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.hero-copy { max-width: 900px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--text-dim); text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: pulse 2.5s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 44px; }
.hero-meta { display: flex; gap: 20px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; flex-wrap: wrap; }
.hero-meta em { color: var(--text); margin-right: 4px; }
.hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }

.hero-wave { position: relative; margin-top: 48px; height: 220px; }
.hero-wave canvas { width: 100%; height: 100%; display: block; }
.wave-caption {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 24px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
}
.tag.sympathetic { color: var(--bronze); }
.tag.parasympathetic { color: var(--teal); }

.scroll-hint {
  margin-top: 40px;
  display: flex; justify-content: center; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--muted);
}
.scroll-hint svg { width: 10px; height: 16px; animation: bob 2.5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---- Toggle (Sympathetic / Parasympathetic) ---- */
.toggle-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .toggle-stage { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(14,20,29,0.6), rgba(11,16,23,0.8));
  transition: border-color .4s, box-shadow .4s, transform .4s;
  animation: cardBreath 10.9s ease-in-out infinite;
}
.card.card-teal { animation-delay: -5.4s; }
@keyframes cardBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,182,196,0); }
  50% { box-shadow: 0 0 40px -10px rgba(79,182,196,0.15); }
}
.card-bronze { border-color: rgba(207,150,90,0.30); }
.card-teal { border-color: rgba(79,182,196,0.30); }
.card.is-active.card-bronze { border-color: var(--bronze); box-shadow: 0 0 0 1px rgba(207,150,90,0.15), 0 0 60px -20px rgba(207,150,90,0.5); }
.card.is-active.card-teal { border-color: var(--teal); box-shadow: 0 0 0 1px rgba(79,182,196,0.15), 0 0 60px -20px rgba(79,182,196,0.5); }
.card.is-dim { opacity: 0.45; }
.card-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.card-icon {
  width: 44px; height: 44px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.bronze { color: var(--bronze); border-color: rgba(207,150,90,0.4); background: rgba(207,150,90,0.06); }
.card-icon.teal { color: var(--teal); border-color: rgba(79,182,196,0.4); background: rgba(79,182,196,0.06); }
.card-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.card h3 { font-size: 26px; font-weight: 300; letter-spacing: -0.02em; }
.bulletlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.bulletlist li { font-size: 14px; line-height: 1.6; color: var(--text-dim); padding-left: 20px; position: relative; }
.bulletlist li:before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 1px; background: var(--bronze); }
.card-teal .bulletlist li:before { background: var(--teal); }
.bulletlist li b { color: var(--text); font-weight: 500; }

/* dial */
.dial-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 260px; }
.dial {
  position: relative;
  width: 120px; height: 56px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0a0e14, #181e28);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6), inset 0 -1px 2px rgba(255,255,255,0.04);
  cursor: pointer; padding: 0;
}
.dial-track {
  position: absolute; inset: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(207,150,90,0.4), rgba(79,182,196,0.4));
  opacity: 0.6;
}
.dial-knob {
  position: absolute; top: 6px; left: 6px;
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a3730, #1a1612);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.6), inset 0 1px 2px rgba(255,255,255,0.1);
  transition: transform .5s cubic-bezier(.5,1.8,.5,1);
}
.dial.is-para .dial-knob { transform: translateX(64px); background: radial-gradient(circle at 35% 30%, #2a3a3d, #0f1a1c); }
.dial-labels {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; color: var(--muted);
  pointer-events: none;
}
.dial.is-para .dial-labels span:last-child { color: var(--teal); }
.dial:not(.is-para) .dial-labels span:first-child { color: var(--bronze); }
.dial-reading { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; color: var(--teal); text-align: center; }
.dial:not(.is-para) ~ .dial-reading { color: var(--bronze); }

/* pull quote */
.pull-quote {
  max-width: 780px; margin: 80px auto 0;
  text-align: center;
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 200;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.pull-quote.small { font-size: 16px; color: var(--text-dim); border: none; font-style: italic; }
.pull-quote span { font-size: 0.8em; color: var(--text-dim); display: inline-block; margin-top: 8px; }

/* ---- Three states / thermometer ---- */
.ladder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: stretch;
}
@media (max-width: 720px) { .ladder { grid-template-columns: 1fr; } .thermometer { display: none; } }
.thermometer {
  position: relative;
  width: 90px;
  display: flex; flex-direction: column; align-items: center;
}
.therm-tube {
  width: 28px; flex: 1; display: flex; flex-direction: column;
  border: 1px solid var(--border-strong); border-radius: 18px 18px 0 0;
  overflow: hidden; background: rgba(255,255,255,0.01);
  position: relative;
}
.therm-seg { flex: 1; position: relative; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.therm-seg:last-child { border-bottom: none; }
.seg-social { background: linear-gradient(180deg, rgba(79,182,196,0.45), rgba(79,182,196,0.15)); }
.seg-fight { background: linear-gradient(180deg, rgba(207,150,90,0.35), rgba(207,150,90,0.12)); }
.seg-freeze { background: linear-gradient(180deg, rgba(90,96,153,0.35), rgba(90,96,153,0.12)); }
.therm-bulb {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(90,96,153,0.8), rgba(40,42,80,0.9));
  border: 1px solid var(--border-strong);
  margin-top: -6px;
}
.state-list { display: flex; flex-direction: column; gap: 20px; }
.state {
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(14,20,29,0.5), rgba(11,16,23,0.6));
}
.state-band { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.state-pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  padding: 5px 10px; border-radius: 3px;
  border: 1px solid currentColor;
}
.state-pill.social { color: var(--teal); background: rgba(79,182,196,0.08); }
.state-pill.fight { color: var(--bronze); background: rgba(207,150,90,0.08); }
.state-pill.freeze { color: #8990c9; background: rgba(90,96,153,0.12); }
.state-sub { font-size: 13px; color: var(--muted); font-style: italic; }
.state p { font-size: 14px; line-height: 1.65; }
.state.state-social { border-left: 2px solid var(--teal); }
.state.state-fight { border-left: 2px solid var(--bronze); }
.state.state-freeze { border-left: 2px solid #8990c9; }

/* ---- Vagus / Split ---- */
.split-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: stretch; }
@media (max-width: 900px) { .split-grid { grid-template-columns: 1fr; } }
.anatomy-panel {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background:
    radial-gradient(600px 400px at 50% 40%, rgba(79,182,196,0.08), transparent 70%),
    linear-gradient(180deg, rgba(14,20,29,0.6), rgba(8,11,17,0.8));
  display: flex; flex-direction: column;
}
.anatomy-inner { flex: 1; display: flex; justify-content: center; align-items: center; min-height: 380px; position: relative; }
.anatomy-svg { width: 80%; max-width: 240px; color: var(--text-dim); opacity: 0.85; }
.ant-pin { position: absolute; }
.ant-pin .pin-dot {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 12px var(--teal);
  animation: pulseDot 3s infinite;
}
.pin-1 { top: 18%; left: 56%; }
.pin-2 { top: 40%; left: 60%; animation-delay: 1s; }
.pin-3 { top: 62%; left: 54%; animation-delay: 2s; }
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }
.anatomy-caption { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--muted); text-align: center; margin-top: 20px; }

.anatomy-notes { display: flex; flex-direction: column; gap: 16px; }
.note-card {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(14,20,29,0.5);
  position: relative;
}
.note-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--teal); margin-bottom: 6px; }
.note-card h4 { font-size: 18px; font-weight: 400; margin-bottom: 6px; }
.note-card p { font-size: 14px; line-height: 1.6; }
.note-card p b { color: var(--teal); font-weight: 500; }
.bottom-ribbon {
  margin-top: 8px;
  padding: 18px 22px;
  border: 1px solid var(--teal-dim);
  border-radius: 4px;
  background: rgba(79,182,196,0.05);
  color: var(--text);
  font-size: 14px; line-height: 1.55;
  position: relative;
}
.bottom-ribbon:before {
  content: ""; position: absolute; inset: -1px auto auto -1px; width: 12px; height: 12px;
  border-top: 1px solid var(--teal); border-left: 1px solid var(--teal);
}
.bottom-ribbon:after {
  content: ""; position: absolute; inset: auto -1px -1px auto; width: 12px; height: 12px;
  border-bottom: 1px solid var(--teal); border-right: 1px solid var(--teal);
}

/* ---- Chemistry ---- */
.chem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) { .chem-grid { grid-template-columns: 1fr; } }
.chem-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(14,20,29,0.4);
  position: relative;
}
.chem-card.bronze { border-top: 2px solid var(--bronze); }
.chem-card.teal { border-top: 2px solid var(--teal); }
.chem-dot { position: absolute; top: 20px; right: 20px; width: 8px; height: 8px; border-radius: 50%; }
.chem-card.bronze .chem-dot { background: var(--bronze); box-shadow: 0 0 10px var(--bronze); }
.chem-card.teal .chem-dot { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.chem-name { font-size: 22px; font-weight: 300; margin-bottom: 4px; }
.chem-role { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 14px; text-transform: uppercase; }
.chem-card p { font-size: 14px; line-height: 1.6; }
.chem-half { margin-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--bronze); letter-spacing: 0.1em; }
.chem-divider {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--teal);
  margin: 16px 0 0;
}
.chem-divider:before, .chem-divider:after {
  content: ""; flex: 1; height: 1px; background: var(--border-strong);
}

/* ---- 3 AM Spiral ---- */
.spiral-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .spiral-stage { grid-template-columns: 1fr; } }
.spiral { position: relative; aspect-ratio: 1; max-width: 440px; margin: 0 auto; width: 100%; }
.spiral svg { width: 100%; height: 100%; overflow: visible; }
.spiral-ring { animation: rotate 60s linear infinite; transform-origin: 0 0; }
@keyframes rotate { to { transform: rotate(360deg); } }
.spiral .node circle { fill: rgba(12,17,24,0.9); stroke: var(--bronze); stroke-width: 1; }
.spiral .node text { fill: var(--text); font-size: 9px; font-family: var(--sans); letter-spacing: 0.02em; font-weight: 400; }
.spiral-pulse {
  position: absolute; inset: 50% auto auto 50%;
  width: 20px; height: 20px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--bronze), transparent 70%);
  animation: spiralGlow 4s ease-in-out infinite;
}
@keyframes spiralGlow { 0%,100% { opacity: 0.3; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 0.8; transform: translate(-50%,-50%) scale(1.6); } }

.spiral-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.spiral-steps li { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.spiral-steps li:last-child { border-bottom: none; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--bronze); letter-spacing: 0.1em; }
.spiral-steps p { font-size: 14px; line-height: 1.6; }
.spiral-steps p b { color: var(--text); font-weight: 500; }

/* ---- Pacer ---- */
.pacer-stage { display: flex; flex-direction: column; gap: 40px; }
.pacer-curve { width: 100%; height: 180px; }
.pacer-curve svg { width: 100%; height: 100%; }
.breath-path-glow { filter: blur(8px); opacity: 0.6; }
.pacer-controls {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(14,20,29,0.6), rgba(11,16,23,0.4));
}
@media (max-width: 720px) { .pacer-controls { grid-template-columns: 1fr; } }
.pacer-orb { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.pacer-orb-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--teal-dim);
}
.pacer-orb-core {
  position: absolute; inset: 25%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(111,211,223,0.5), rgba(79,182,196,0.15) 70%, transparent);
  border: 1px solid var(--teal-dim);
  box-shadow: 0 0 40px rgba(79,182,196,0.3), inset 0 0 30px rgba(111,211,223,0.2);
  transition: inset 4s cubic-bezier(.5,0,.5,1), background 2s;
}
.pacer-orb-core.is-inhale { inset: 5%; background: radial-gradient(circle at 35% 35%, rgba(226,177,122,0.5), rgba(207,150,90,0.2) 70%, transparent); border-color: var(--bronze-dim); box-shadow: 0 0 60px rgba(207,150,90,0.4), inset 0 0 40px rgba(226,177,122,0.3); }
.pacer-orb-core.is-exhale { inset: 28%; }
.pacer-orb-core.is-inhale { transition-duration: 4s; }
.pacer-orb-core.is-exhale { transition-duration: 8s; }
.pacer-phase {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--text); pointer-events: none;
}
.pacer-info { display: flex; flex-direction: column; gap: 12px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.kv span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; }
.kv b { font-weight: 400; color: var(--text); font-family: var(--mono); }
.breath-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .breath-facts { grid-template-columns: 1fr; } }
.fact {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(14,20,29,0.4);
}
.fact h5 { font-size: 15px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.fact p { font-size: 13px; line-height: 1.6; }

/* ---- Breathing primitives (applied via JS w/ .breathe / reveal) ---- */
.breathe { animation: soma 10.9s ease-in-out infinite; }
.breathe-slow { animation: soma 14s ease-in-out infinite; }
.breathe.offset-1 { animation-delay: -1.8s; }
.breathe.offset-2 { animation-delay: -3.6s; }
.breathe.offset-3 { animation-delay: -5.4s; }
@keyframes soma {
  0%,100% { opacity: .92; filter: brightness(.97); }
  50% { opacity: 1; filter: brightness(1.06); }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,0,0,1), transform .9s cubic-bezier(.2,0,0,1); }
.reveal.in { opacity: 1; transform: none; }

/* Section tag breathing pulse */
.section-tag, .card-kicker, .layer-tag, .state-pill, .cta-eyebrow, .eyebrow {
  position: relative;
}
.eyebrow .dot {
  animation: pulse 10.9s ease-in-out infinite;
}

/* text drift for display headlines */
.display, .display-2 { animation: headFloat 16s ease-in-out infinite; }
@keyframes headFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* thermometer breathing fill */
.therm-seg { animation: segBreath 10.9s ease-in-out infinite; }
.seg-fight { animation-delay: -3.6s; }
.seg-freeze { animation-delay: -7.2s; }
@keyframes segBreath { 0%,100% { opacity: .78; } 50% { opacity: 1; } }
.therm-bulb { animation: bulbBreath 10.9s ease-in-out infinite; }
@keyframes bulbBreath {
  0%,100% { box-shadow: 0 0 12px rgba(90,96,153,0.2); }
  50% { box-shadow: 0 0 30px rgba(90,96,153,0.55); }
}

/* pin dots coordinated */
.ant-pin .pin-dot { animation: pulseDot 10.9s ease-in-out infinite; }
.pin-1 .pin-dot { animation-delay: 0s; }
.pin-2 .pin-dot { animation-delay: -3.6s; }
.pin-3 .pin-dot { animation-delay: -7.2s; }

/* chem dot coordinated pulse */
.chem-dot { animation: chemPulse 10.9s ease-in-out infinite; }
.chem-card:nth-child(2) .chem-dot { animation-delay: -2s; }
.chem-card:nth-child(3) .chem-dot { animation-delay: -4s; }
.chem-card:nth-child(5) .chem-dot { animation-delay: -6s; }
.chem-card:nth-child(6) .chem-dot { animation-delay: -8s; }
.chem-card:nth-child(7) .chem-dot { animation-delay: -10s; }
@keyframes chemPulse {
  0%,100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.4); opacity: 1; }
}

/* tracklist tag shimmer on interval */
.ttag { animation: tagPulse 10.9s ease-in-out infinite; }
.tracklist li:nth-child(2) .ttag { animation-delay: -2s; }
.tracklist li:nth-child(3) .ttag { animation-delay: -4s; }
.tracklist li:nth-child(4) .ttag { animation-delay: -6s; }
.tracklist li:nth-child(5) .ttag { animation-delay: -8s; }
@keyframes tagPulse { 0%,100% { opacity: .85; } 50% { opacity: 1; filter: brightness(1.15); } }

/* hero frame subtle edge-glow breath */
.hero-frame, .cta-frame { animation: frameBreath 10.9s ease-in-out infinite; }
@keyframes frameBreath {
  0%,100% { box-shadow: 0 0 0 0 rgba(207,150,90,0), inset 0 0 40px rgba(79,182,196,0); }
  50% { box-shadow: 0 0 80px -30px rgba(207,150,90,0.25), inset 0 0 60px rgba(79,182,196,0.03); }
}
.cta-frame { animation-delay: -5.4s; }

/* wordmark glow pulse */
.wm-mark { animation: wmPulse 10.9s ease-in-out infinite; }
@keyframes wmPulse {
  0%,100% { filter: drop-shadow(0 0 0 rgba(79,182,196,0)); }
  50% { filter: drop-shadow(0 0 6px rgba(79,182,196,0.7)); }
}

/* corner tick breath */
.corner { animation: cornerBreath 10.9s ease-in-out infinite; }
@keyframes cornerBreath { 0%,100% { opacity: .6; } 50% { opacity: 1; } }

/* dial track subtle breath */
.dial-track { animation: dialTrack 10.9s ease-in-out infinite; }
@keyframes dialTrack { 0%,100% { opacity: .5; } 50% { opacity: .8; } }

/* spiral pulse tuned to heartbeat */
.spiral-pulse { animation: spiralGlow 10.9s ease-in-out infinite; }

/* ring-core already breathes — sync to 10.9s */
.ring-core { animation: coreBreath 10.9s ease-in-out infinite; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---- Session anatomy rings ---- */
.session-stage {
  position: relative;
  max-width: 1040px; margin: 0 auto;
  min-height: 540px;
  padding: 60px 0;
}
.rings {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 420px; height: 420px;
}
.ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--teal-dim);
}
.ring.r1 { inset: 25%; border-color: rgba(79,182,196,0.6); }
.ring.r2 { inset: 12%; border-color: rgba(79,182,196,0.35); }
.ring.r3 { inset: 0; border-color: rgba(79,182,196,0.2); }
.ring-core {
  position: absolute; inset: 38%; border-radius: 50%;
  background: radial-gradient(circle, rgba(111,211,223,0.9), rgba(79,182,196,0.3) 60%, transparent);
  box-shadow: 0 0 60px rgba(79,182,196,0.4);
  animation: coreBreath 6s ease-in-out infinite;
}
@keyframes coreBreath { 0%,100% { transform: scale(0.85); opacity: 0.7; } 50% { transform: scale(1.05); opacity: 1; } }

.layer {
  position: absolute;
  width: 280px;
  padding: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(14,20,29,0.85), rgba(11,16,23,0.9));
  backdrop-filter: blur(8px);
}
.layer-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; color: var(--teal); margin-bottom: 8px; }
.layer h4 { font-size: 16px; font-weight: 400; margin-bottom: 8px; line-height: 1.3; }
.layer p { font-size: 13px; line-height: 1.55; }
.layer-1 { left: 0; top: 50px; }
.layer-2 { right: 0; top: 50px; }
.layer-3 { right: 0; bottom: 50px; }
@media (max-width: 900px) {
  .session-stage { min-height: auto; padding: 20px 0; }
  .rings { display: none; }
  .layer { position: relative; width: auto; margin-bottom: 16px; left: auto; right: auto; top: auto; bottom: auto; }
}

/* ---- CTA ---- */
.cta { padding-bottom: clamp(60px, 10vh, 100px); }
.cta-frame {
  position: relative;
  padding: clamp(40px, 6vw, 80px);
  border: 1px solid var(--bronze-dim);
  border-radius: 4px;
  text-align: center;
  background:
    radial-gradient(800px 500px at 50% 50%, rgba(207,150,90,0.06), transparent 70%),
    linear-gradient(180deg, rgba(14,20,29,0.6), rgba(8,11,17,0.8));
}
.cta-frame .corner { border-color: var(--bronze); width: 18px; height: 18px; }
.cta-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; color: var(--bronze); margin-bottom: 24px; }
.cta-lede { font-size: 17px; max-width: 600px; margin: 0 auto 32px; color: var(--text-dim); }
.cta-actions { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 48px; }
.cta-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 720px; margin: 0 auto; padding-top: 32px; border-top: 1px dashed var(--border); }
@media (max-width: 700px) { .cta-metrics { grid-template-columns: repeat(2, 1fr); } }
.cta-metrics > div { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); }
.cta-metrics em { font-size: 20px; font-weight: 400; color: var(--bronze); }
.cta-metrics span { font-size: 10px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }

/* ---- Listen ---- */
.listen-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .listen-row { grid-template-columns: 1fr; } }
.tracklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.tracklist li {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  transition: padding .2s, color .2s;
  cursor: pointer;
}
.tracklist li:hover { padding-left: 8px; }
.tracklist li:hover .tname { color: var(--text); }
.tnum { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.tname { color: var(--text-dim); }
.ttime { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.ttag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; }
.ttag.bronze { color: var(--bronze); border: 1px solid var(--bronze-dim); background: rgba(207,150,90,0.06); }
.ttag.teal { color: var(--teal); border: 1px solid var(--teal-dim); background: rgba(79,182,196,0.06); }

/* ---- Footer ---- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px clamp(20px, 4vw, 48px) 40px;
  border-top: 1px solid var(--border);
}
.footer-top { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.footer-lede { font-size: 14px; color: var(--muted); max-width: 480px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
.footer-cols h6 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--bronze); margin-bottom: 14px; text-transform: uppercase; }
.footer-cols a { display: block; font-size: 13px; color: var(--text-dim); padding: 4px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-bot { display: flex; justify-content: space-between; padding-top: 24px; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; flex-wrap: wrap; gap: 12px; }

/* ---- Accent emphasis Tweaks ---- */
body[data-accent="teal"] { --bronze: var(--teal); --bronze-2: var(--teal-2); --bronze-dim: var(--teal-dim); }
body[data-accent="bronze"] { --teal: var(--bronze); --teal-2: var(--bronze-2); --teal-dim: var(--bronze-dim); }

/* ---- Tweaks panel ---- */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  width: 280px;
  padding: 16px;
  background: rgba(14,20,29,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: flex; flex-direction: column; gap: 8px;
}
.tweaks.hidden { display: none; }
.tweaks-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 12px; letter-spacing: 0.16em; font-family: var(--mono); color: var(--bronze); }
.tweaks-close { background: transparent; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.tweaks-row { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; }
.tweaks-row select {
  background: rgba(8,11,17,0.8); color: var(--text); border: 1px solid var(--border-strong);
  padding: 6px 8px; border-radius: 4px; font-family: var(--sans); font-size: 13px;
  letter-spacing: 0; text-transform: none;
}


/* ═════════════ DISCLAIMER BAND ═════════════ */
.disclaimer-band {
  position: relative;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  background: linear-gradient(180deg, rgba(11,16,24,0.5), rgba(8,11,17,0.7));
  padding: clamp(28px, 3.4vw, 40px) 0;
}
.disclaimer-band .wrap, .disclaimer-band .disclaimer-inner {
  max-width: 1240px; margin: 0 auto;
  padding-left: clamp(20px, 4vw, 56px); padding-right: clamp(20px, 4vw, 56px);
}
.disclaimer-inner {
  display: grid; grid-template-columns: 180px 1fr;
  gap: clamp(20px, 3vw, 48px); align-items: start;
}
.disclaimer-eye {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--bronze, #cf965a);
  white-space: nowrap; padding-top: 4px;
}
.disclaimer-eye .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--bronze, #cf965a);
  box-shadow: 0 0 8px var(--bronze, #cf965a);
}
.disclaimer-body {
  font-family: "Inter", system-ui, sans-serif; font-weight: 300;
  font-size: 13px; line-height: 1.65;
  color: var(--ink-dim, #b6b0a5); max-width: 78ch;
}
.disclaimer-body em {
  font-style: italic; color: var(--bronze-pale, #e2b17a);
}
@media (max-width: 720px) {
  .disclaimer-inner { grid-template-columns: 1fr; gap: 14px; }
  .disclaimer-body { font-size: 12.5px; }
}
