/* ============================================================
   NOMENA — medical spiritual design system
   ink / bone / ember / jade · Cormorant Garamond + Lexend Deca
   ============================================================ */

:root {
  --ink: #0a0e0d;
  --abyss: #060908;
  --panel: #0e1412;
  --bone: #eae6dc;
  --bone-70: rgba(234, 230, 220, 0.78);
  --bone-55: rgba(234, 230, 220, 0.62);
  --bone-30: rgba(234, 230, 220, 0.3);
  --bone-12: rgba(234, 230, 220, 0.12);
  --bone-06: rgba(234, 230, 220, 0.06);
  --ember: #c9873a;
  --ember-soft: #d9a45b;
  --ember-dim: rgba(201, 135, 58, 0.35);
  --jade: #2e5a4c;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Lexend Deca", "Helvetica Neue", Arial, sans-serif;
  --pad-x: clamp(1.25rem, 5vw, 6rem);
  --sec-gap: clamp(7rem, 16vh, 13rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--abyss);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.05rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--ember); color: var(--abyss); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--abyss); }
::-webkit-scrollbar-thumb { background: #1d2622; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--jade); }

:focus-visible { outline: 1.5px solid var(--ember-soft); outline-offset: 3px; border-radius: 2px; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ember-soft); }

/* ---------- fixed layers ---------- */

#gl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed; inset: -100px;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-38px, 22px); }
  50% { transform: translate(24px, -30px); }
  75% { transform: translate(-14px, -18px); }
  100% { transform: translate(0, 0); }
}

/* ---------- custom cursor ---------- */

.cursor { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: none; }
@media (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 5px; height: 5px; background: var(--ember-soft); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--bone-30);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              border-color 0.35s, background-color 0.35s;
}
.cursor.is-hover .cursor-ring {
  width: 58px; height: 58px;
  border-color: var(--ember-dim);
  background: rgba(201, 135, 58, 0.08);
}
@media (pointer: fine) {
  body[data-cursor-on] a, body[data-cursor-on] button,
  body[data-cursor-on] summary, body[data-cursor-on] [data-cursor] { cursor: none; }
  body[data-cursor-on] { cursor: none; }
}

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--pad-x);
  transition: background-color 0.5s, backdrop-filter 0.5s, padding 0.5s;
}
.nav.is-scrolled {
  background: rgba(6, 9, 8, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.nav-wordmark { height: 15px; width: auto; }
.nav-links { display: flex; gap: 2.2rem; margin-left: auto; }
.nav-links a {
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bone-55);
  position: relative;
  transition: color 0.35s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--ember);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--bone); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bone-06); }
.nav-progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--jade), var(--ember));
  transform: scaleX(0); transform-origin: left;
}

.nav-burger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6, 9, 8, 0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad-x);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu a {
  font-family: var(--serif); font-size: clamp(2.4rem, 9vw, 4rem);
  font-weight: 300; line-height: 1.25;
  border-bottom: 1px solid var(--bone-06);
  padding: 0.6rem 0;
  transform: translateY(24px); opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.7s;
}
.mobile-menu.is-open a { transform: none; opacity: 1; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.06s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.18s; }
.mobile-menu-cta { color: var(--ember-soft); font-style: italic; }
.mobile-menu-foot { margin-top: 3rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-30); }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  overflow: hidden;
  transition: color 0.4s, border-color 0.4s, background-color 0.4s, transform 0.2s;
  white-space: nowrap;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }

.btn-solid {
  background: var(--bone); color: var(--abyss);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(234, 230, 220, 0.12), 0 10px 34px rgba(201, 135, 58, 0.28);
}
.btn-solid::before { background: var(--ember); }
.btn-solid:hover { color: var(--abyss); box-shadow: 0 0 0 1px rgba(234, 230, 220, 0.12), 0 10px 40px rgba(201, 135, 58, 0.45); }

.btn-ghost { border: 1px solid var(--bone-30); color: var(--bone); }
.btn-ghost::before { background: var(--bone); }
.btn-ghost:hover { color: var(--abyss); }

.btn-pill { border: 1px solid var(--bone-30); color: var(--bone); padding: 0.75rem 1.4rem; font-weight: 500; }
.btn-pill::before { background: var(--bone); }
.btn-pill:hover { color: var(--abyss); }

/* ---------- shared type ---------- */

main { position: relative; z-index: 1; }

.section-label {
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ember-soft);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  display: flex; align-items: center; gap: 1rem;
}
.section-label::after { content: ""; height: 1px; width: clamp(40px, 8vw, 110px); background: var(--bone-12); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); line-height: 1.65; color: var(--bone-70); text-wrap: pretty; }

section { padding: 0 var(--pad-x); margin-bottom: var(--sec-gap); position: relative; }

/* reveal helper (JS adds .in) */
.reveal-line { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(4rem, 10vh, 8rem);
  margin-bottom: 0;
}
.hero-inner { width: 100%; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bone);
  background: rgba(6, 9, 8, 0.42);
  border: 1px solid var(--bone-12);
  border-radius: 999px;
  padding: 0.62rem 1.15rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  margin-bottom: clamp(1.6rem, 4vh, 3rem);
}
.glyph-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 2.5px solid var(--ember-soft);
  position: relative; flex: none;
  animation: glyph-breathe 4.5s ease-in-out infinite;
}
.glyph-dot::after {
  content: ""; position: absolute; inset: 2.2px;
  border-radius: 50%; background: var(--ember-soft);
}
@keyframes glyph-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.25); opacity: 1; }
}

.hero-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(2.6rem, 9.2vw, 8.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.ht-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.ht-word { display: inline-block; transform: translateY(115%); will-change: transform; }
.ht-you {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  text-transform: none;
  background: linear-gradient(100deg, var(--ember-soft), var(--ember) 60%, #8a5a22);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.08em;
}

.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  margin-top: clamp(2.4rem, 6vh, 4.5rem);
  flex-wrap: wrap;
}
.hero-scrollcue {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--bone-30);
}
.hero-scrollcue i {
  width: 1px; height: 52px;
  background: var(--bone-30);
  position: relative; overflow: hidden;
}
.hero-scrollcue i::after {
  content: ""; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--ember-soft);
  animation: scrollcue-drop 2.2s var(--ease-out) infinite;
}
@keyframes scrollcue-drop {
  0% { top: -100%; } 55% { top: 0; } 100% { top: 100%; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */

.manifesto {
  min-height: 100svh;
  display: flex; align-items: center;
  background: linear-gradient(to bottom, transparent, rgba(6, 9, 8, 0.68) 30%, rgba(6, 9, 8, 0.68) 70%, transparent);
}
.manifesto-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.6vw, 3.9rem);
  line-height: 1.28;
  max-width: 21ch;
  text-wrap: balance;
}
.manifesto-text .mw {
  opacity: 0.1;
  display: inline-block;
  transition: none;
}
.manifesto-text .mw-key { font-style: italic; color: var(--ember-soft); }

/* ============================================================
   STATS
   ============================================================ */

.stats { margin-bottom: var(--sec-gap); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--bone-12);
  border-left: 1px solid var(--bone-12);
  background: rgba(6, 9, 8, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.stat {
  padding: clamp(1.6rem, 3.5vw, 3rem);
  border-right: 1px solid var(--bone-12);
  border-bottom: 1px solid var(--bone-12);
  position: relative;
  overflow: hidden;
  transition: background-color 0.5s;
}
.stat:hover { background: rgba(46, 90, 76, 0.1); }
.stat-num {
  font-weight: 200;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bone);
  margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-num small { font-size: 0.38em; letter-spacing: 0.02em; color: var(--bone-70); }
.stat p { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--bone-70); max-width: 20ch; }
.stat::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--ember), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.stat:hover::after { transform: scaleX(1); }

/* ============================================================
   WHAT IS NOMENA
   ============================================================ */

.what { background: var(--ink); padding-top: var(--sec-gap); padding-bottom: var(--sec-gap); margin-bottom: 0; }
.what-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.what-copy h2 { margin-bottom: 2rem; }
.what-copy .lede { margin-bottom: 1.4rem; }
.what-copy p:not(.lede) { color: var(--bone-70); max-width: 52ch; }

.what-fig { position: relative; will-change: transform; }
.what-plant {
  width: 100%; max-width: 430px; margin-left: auto;
  mix-blend-mode: screen;
  filter: invert(0.92) brightness(1.6) contrast(1.02);
  mask-image: radial-gradient(ellipse 78% 76% at 50% 42%, black 46%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 78% 76% at 50% 42%, black 46%, transparent 80%);
}
.what-fig figcaption {
  text-align: right; margin-top: 1rem;
  font-family: var(--serif); font-style: italic;
  color: var(--bone-30); font-size: 0.95rem;
}

/* ============================================================
   CONDITIONS
   ============================================================ */

.conditions { background: var(--ink); padding-top: var(--sec-gap); }
.conditions-intro { max-width: 62ch; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.conditions-intro h2 { margin-bottom: 1.8rem; }
.conditions-intro .lede { margin-bottom: 1.2rem; }
.conditions-intro p:not(.lede) { color: var(--bone-70); }

.condition-list { list-style: none; border-top: 1px solid var(--bone-12); }
.condition {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline; gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--bone-12);
  position: relative;
  isolation: isolate;
}
.condition::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(201, 135, 58, 0.09), transparent 65%);
  opacity: 0; transition: opacity 0.5s;
}
.condition:hover::before { opacity: 1; }
.condition-idx {
  font-size: 0.75rem; letter-spacing: 0.2em; color: var(--bone-30);
  transition: color 0.4s;
}
.condition:hover .condition-idx { color: var(--ember-soft); }
.condition h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  transition: transform 0.5s var(--ease-out);
}
.condition:hover h3 { transform: translateX(10px); }
.condition p { font-size: 0.85rem; color: var(--bone-70); max-width: 44ch; }

.conditions-close {
  margin-top: clamp(4rem, 9vw, 7rem);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.25;
}

/* ============================================================
   WATCH
   ============================================================ */

.watch { background: var(--ink); padding-bottom: var(--sec-gap); margin-bottom: 0; }
.watch-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  margin: 0 auto;
  border: 1px solid var(--bone-12);
  background: var(--abyss);
}
.watch-frame video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.watch-toggle {
  position: absolute; inset: 0; margin: auto;
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 1px solid var(--bone-30);
  background: rgba(6, 9, 8, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease-out), background-color 0.4s, opacity 0.4s;
}
.watch-toggle:hover { transform: scale(1.08); background: rgba(201, 135, 58, 0.25); }
.watch-toggle svg { width: 30px; height: 30px; fill: var(--bone); }
.watch-toggle .icon-pause { display: none; }
.watch-toggle.is-playing { opacity: 0; }
.watch-frame:hover .watch-toggle.is-playing { opacity: 1; }
.watch-toggle.is-playing .icon-play { display: none; }
.watch-toggle.is-playing .icon-pause { display: block; }
.watch-caption {
  margin-top: 1.2rem; text-align: center;
  font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--bone-55);
}

/* ============================================================
   PROCESS INTRO
   ============================================================ */

.process { padding-top: var(--sec-gap); }
.process-intro { max-width: 68ch; }
.process-intro h2 { margin-bottom: 2rem; }
.process-intro .lede { margin-bottom: 1.4rem; }
.process-intro p:not(.lede) { color: var(--bone-70); }

/* ============================================================
   RESEARCH — horizontal cards
   ============================================================ */

.research { padding: 0; margin-bottom: 0; }
.research > .section-label { padding: 0 var(--pad-x); }
.research-pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.research-track {
  display: flex; gap: clamp(1.2rem, 2.5vw, 2.2rem);
  padding: 0 var(--pad-x);
  width: max-content;
  will-change: transform;
}
.rcard {
  width: clamp(300px, 34vw, 470px);
  flex: none;
  padding: clamp(1.8rem, 3vw, 3rem);
  border: 1px solid var(--bone-12);
  border-radius: 6px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(46, 90, 76, 0.22), transparent 55%),
    rgba(10, 14, 13, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s, transform 0.5s var(--ease-out);
}
.rcard:hover { border-color: var(--ember-dim); transform: translateY(-8px); }
.rcard::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0; transition: opacity 0.5s;
}
.rcard:hover::after { opacity: 1; }
.rcard-num {
  font-size: 0.72rem; letter-spacing: 0.3em; color: var(--ember-soft);
  display: block; margin-bottom: clamp(2.5rem, 6vh, 5rem);
}
.rcard h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.rcard-sub {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-55); margin-bottom: 1.6rem;
}
.rcard p:last-child { font-size: 0.88rem; color: var(--bone-70); }

.research-progress {
  margin: clamp(2.5rem, 6vh, 4rem) var(--pad-x) 0;
  height: 1px; background: var(--bone-12);
}
.research-progress i {
  display: block; height: 100%; width: 100%;
  background: var(--ember);
  transform: scaleX(0); transform-origin: left;
}

/* ============================================================
   SAFETY / ECG
   ============================================================ */

.safety { padding-top: var(--sec-gap); }
.safety-title { max-width: 22ch; margin-bottom: clamp(3rem, 7vw, 5rem); }
.safety-ecg { margin: 0 calc(var(--pad-x) * -1) clamp(3rem, 7vw, 5rem); }
.safety-ecg svg { width: 100%; height: clamp(80px, 14vw, 160px); display: block; }
#ecgPath {
  stroke: var(--ember-soft);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(201, 135, 58, 0.55));
}
.safety-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  border-top: 1px solid var(--bone-12);
  padding-top: clamp(2rem, 4vw, 3rem);
  background: rgba(6, 9, 8, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.safety-idx {
  font-family: var(--serif); font-style: italic;
  color: var(--ember-soft); font-size: 1.3rem;
  display: block; margin-bottom: 1rem;
}
.safety-item p { font-size: 0.9rem; color: var(--bone-70); }
.safety-close {
  margin-top: clamp(4rem, 9vw, 7rem);
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.22;
}

/* ============================================================
   METHODOLOGY
   ============================================================ */

.method { background: var(--ink); padding-top: var(--sec-gap); padding-bottom: var(--sec-gap); margin-bottom: 0; }
.method-title { max-width: 24ch; margin-bottom: 1.6rem; }
.method-lede { max-width: 52ch; margin-bottom: clamp(3.5rem, 8vw, 6rem); }

.method-steps { position: relative; display: grid; gap: clamp(2.2rem, 5vw, 4rem); padding-left: clamp(2rem, 5vw, 4rem); }
.method-line {
  position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: var(--bone-12);
}
.method-line i {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--jade), var(--ember));
  transform: scaleY(0); transform-origin: top;
}
.mstep {
  position: relative;
  max-width: 62ch;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border: 1px solid transparent;
  border-radius: 6px;
  transition: border-color 0.5s, background-color 0.5s;
}
.mstep:hover { border-color: var(--bone-12); background: rgba(6, 9, 8, 0.45); }
.mstep::before {
  content: ""; position: absolute;
  left: calc((clamp(2rem, 5vw, 4rem) + 4.5px) * -1);
  top: clamp(2.2rem, 4vw, 3.4rem);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--abyss);
  border: 2px solid var(--ember-soft);
}
.mstep-num {
  font-size: 0.72rem; letter-spacing: 0.3em; color: var(--ember-soft);
  display: block; margin-bottom: 1.2rem;
}
.mstep h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin-bottom: 1rem;
}
.mstep > p { color: var(--bone-70); font-size: 0.95rem; max-width: 56ch; }
.mstep-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.mstep-tags li {
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone-55);
  border: 1px solid var(--bone-12);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about { padding-top: var(--sec-gap); }
.about-title { max-width: 24ch; margin-bottom: 1.8rem; }
.about-lede { max-width: 54ch; }

/* ============================================================
   VOICES / MARQUEE
   ============================================================ */

.voices { padding: 0; overflow: clip; }
.voices > .section-label { padding: 0 var(--pad-x); }
.marquee { display: grid; gap: 1.4rem; }
.marquee-row {
  display: flex; gap: 1.4rem;
  width: max-content;
  will-change: transform;
}
.voice {
  width: clamp(320px, 38vw, 520px);
  flex: none;
  border: 1px solid var(--bone-12);
  border-radius: 6px;
  padding: clamp(1.5rem, 2.6vw, 2.4rem);
  background: rgba(10, 14, 13, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.5s;
}
.voice:hover { border-color: var(--ember-dim); }
.voice blockquote {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--bone);
  margin-bottom: 1.4rem;
  text-wrap: pretty;
}
.voice figcaption { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-70); }
.voice figcaption em { text-transform: none; letter-spacing: 0.02em; font-size: 0.85rem; }

/* ============================================================
   PATHWAYS / PLANS
   ============================================================ */

.pathways { background: var(--ink); padding-top: var(--sec-gap); padding-bottom: var(--sec-gap); margin-bottom: 0; }
.pathways-intro { max-width: 64ch; margin-bottom: clamp(3rem, 7vw, 5rem); }
.pathways-intro h2 { margin-bottom: 1.6rem; }
.pathways-intro .lede { color: var(--bone-70); }

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
  align-items: stretch;
}
.plan {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  border: 1px solid var(--bone-12);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.5s, transform 0.25s var(--ease-out);
  will-change: transform;
}
.plan::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(201, 135, 58, 0.12), transparent 65%);
  opacity: 0; transition: opacity 0.45s;
  pointer-events: none;
}
.plan:hover::before { opacity: 1; }
.plan:hover { border-color: var(--bone-30); }
.plan-featured { border-color: var(--ember-dim); background: linear-gradient(170deg, #14201b, var(--panel) 55%); }
.plan-featured:hover { border-color: var(--ember); }
.plan-badge {
  align-self: flex-start;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--abyss);
  background: linear-gradient(90deg, var(--ember-soft), var(--ember));
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.4rem;
}
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 0.9rem; }
.plan-desc { font-size: 0.88rem; color: var(--bone-55); flex: 1; }
.plan-price {
  font-weight: 200;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  letter-spacing: -0.02em;
  margin: 1.8rem 0 0.4rem;
  font-variant-numeric: tabular-nums;
}
.plan-price s { font-size: 0.45em; color: var(--bone-30); margin-right: 0.7rem; font-weight: 300; }
.plan-currency { font-size: 0.55em; color: var(--ember-soft); margin-right: 0.1em; }
.plan-note { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-30); margin-bottom: 2rem; }
.plan .btn { align-self: flex-start; }

.pathways-honest {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  max-width: 58ch;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--bone-70);
  border-left: 1px solid var(--ember-dim);
  padding-left: 1.6rem;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq { padding-top: var(--sec-gap); }
.faq-title { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.faq-list {
  border-top: 1px solid var(--bone-12);
  max-width: 900px;
  background: rgba(6, 9, 8, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 0 clamp(1.2rem, 2.6vw, 2.2rem);
}
.faq-item { border-bottom: 1px solid var(--bone-12); }
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(1.4rem, 3vw, 2.1rem) 0;
  transition: color 0.35s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  transition: transform 0.45s var(--ease-out);
}
.faq-item summary:hover span { transform: translateX(8px); color: var(--ember-soft); }
.faq-item summary i {
  flex: none; width: 34px; height: 34px;
  border: 1px solid var(--bone-30); border-radius: 50%;
  position: relative;
  transition: transform 0.5s var(--ease-out), border-color 0.35s, background-color 0.35s;
}
.faq-item summary i::before, .faq-item summary i::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  background: var(--bone);
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease-out);
}
.faq-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary i { transform: rotate(135deg); border-color: var(--ember); background: rgba(201, 135, 58, 0.12); }
.faq-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}
.faq-item[open] .faq-body { grid-template-rows: 1fr; }
.faq-body > p {
  overflow: hidden;
  max-width: 68ch;
  color: var(--bone-70);
  font-size: 0.95rem;
}

/* ============================================================
   CONSULT
   ============================================================ */

.consult { padding-top: var(--sec-gap); min-height: 100svh; isolation: isolate; }
.consult::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0 calc(var(--pad-x) * -1);
  background: linear-gradient(to bottom, transparent 0%, rgba(6, 9, 8, 0.55) 18%, rgba(6, 9, 8, 0.55) 100%);
  pointer-events: none;
}
.consult-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}
.consult-copy h2 { margin-bottom: 1.8rem; }
.consult-copy .lede { margin-bottom: 2.2rem; }
.consult-points { list-style: none; display: grid; gap: 0.9rem; margin-bottom: 2.8rem; }
.consult-points li {
  position: relative; padding-left: 1.8rem;
  font-size: 0.88rem; color: var(--bone-70);
}
.consult-points li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--ember-soft);
}
.consult-contact { font-style: normal; }
.consult-contact a {
  font-family: var(--serif); font-size: 1.5rem;
  color: var(--ember-soft);
  border-bottom: 1px solid var(--ember-dim);
  transition: border-color 0.35s, color 0.35s;
}
.consult-contact a:hover { color: var(--bone); border-color: var(--bone-30); }
.consult-contact p { margin-top: 1rem; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--bone-55); }

.consult-form {
  border: 1px solid var(--bone-12);
  border-radius: 8px;
  padding: clamp(1.8rem, 3.4vw, 3rem);
  background: rgba(10, 14, 13, 0.84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid; gap: 1.5rem;
}
.field { display: grid; gap: 0.55rem; }
.field label {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bone-70);
}
.field-opt { text-transform: none; letter-spacing: 0.05em; color: var(--bone-30); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--bone);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--bone-30);
  padding: 0.65rem 0;
  border-radius: 0;
  transition: border-color 0.35s;
  appearance: none;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--bone-30); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--ember-soft); }
.field input.is-invalid { border-bottom-color: #b0483a; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 2px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--bone-55);
  border-bottom: 1.5px solid var(--bone-55);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select option { background: var(--panel); color: var(--bone); }
.consult-submit { justify-self: start; margin-top: 0.4rem; }
.consult-note { font-size: 0.72rem; color: var(--bone-30); }
.consult-note.is-error { color: #c96a4a; }
.consult-note.is-ok { color: var(--ember-soft); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(3rem, 7vw, 5rem) var(--pad-x) 2.5rem;
  border-top: 1px solid var(--bone-06);
  margin-top: var(--sec-gap);
  background: linear-gradient(to bottom, transparent, rgba(6, 9, 8, 0.75));
}
.footer-wordmark { height: 13px; opacity: 0.85; }
.footer-meta { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--bone-30); display: grid; gap: 0.3rem; }
.footer-meta a { color: var(--bone-55); transition: color 0.3s; }
.footer-meta a:hover { color: var(--ember-soft); }
.footer-top {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bone-55);
  transition: color 0.3s;
}
.footer-top:hover { color: var(--ember-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .safety-grid { grid-template-columns: 1fr; }
  .consult-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --sec-gap: 5rem; }
  .nav { padding-top: 0.85rem; padding-bottom: 0.85rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger {
    display: block; margin-left: auto;
    width: 44px; height: 44px;
    position: relative; z-index: 101;
  }
  .nav-burger span {
    position: absolute; left: 10px; right: 10px; height: 1.5px;
    background: var(--bone);
    transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
  }
  .nav-burger span:nth-child(1) { top: 17px; }
  .nav-burger span:nth-child(2) { top: 26px; }
  .nav-burger.is-open span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
  .nav-burger.is-open span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

  /* hero */
  .hero { min-height: 94svh; padding-bottom: 2.8rem; }
  .hero-kicker { font-size: 0.64rem; letter-spacing: 0.16em; padding: 0.55rem 0.95rem; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 1.6rem; margin-top: 2rem; }
  .hero-scrollcue i { height: 40px; }

  /* type */
  .display { font-size: clamp(2rem, 9vw, 2.6rem); }
  .lede { font-size: 1.02rem; }
  .manifesto { min-height: 82svh; }
  .manifesto-text { font-size: clamp(1.65rem, 7.4vw, 2.2rem); max-width: 100%; }

  /* layout */
  .what-grid { grid-template-columns: 1fr; }
  .what-plant { margin: 0 auto; max-width: 300px; }
  .what-fig figcaption { text-align: center; }
  .condition { grid-template-columns: 2.4rem 1fr; gap: 0.9rem; }
  .condition p { grid-column: 2; }
  .condition:hover h3 { transform: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.3rem 1.1rem; }
  .stat-num { font-size: 2.1rem; }

  /* research falls back to vertical cards */
  .research-pin { min-height: 0; padding: 1rem 0 2.5rem; }
  .research-track {
    width: auto;
    flex-direction: column;
    transform: none !important;
    padding: 0 var(--pad-x);
  }
  .rcard { width: 100%; }
  .rcard:hover { transform: none; }
  .research-progress { display: none; }

  /* safety + method */
  .safety-ecg svg { height: 70px; }
  .method-steps { padding-left: 1.4rem; gap: 1.6rem; }
  .mstep { padding: 1.3rem 1.1rem; }
  .mstep::before { left: -18.5px; }

  /* marquee cards fit viewport */
  .voice { width: min(84vw, 420px); }
  .voice blockquote { font-size: 1.05rem; }

  /* watch */
  .watch-frame { aspect-ratio: 4 / 3; max-height: none; }
  .watch-toggle { width: 72px; height: 72px; }

  /* plans */
  .plan:hover { transform: none; }
  .plan .btn { align-self: stretch; justify-content: center; }

  /* faq */
  .faq-item summary span { font-size: 1.2rem; }
  .faq-item summary i { width: 30px; height: 30px; }

  /* consult — prevent iOS zoom-on-focus (needs >=16px inputs) */
  .consult-form { padding: 1.4rem 1.2rem; }
  .field input, .field textarea, .field select { font-size: 16px; }
  .consult-submit { width: 100%; }

  /* footer */
  .footer { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .ht-word { transform: none; }
  .manifesto-text .mw { opacity: 1; }
  html { scroll-behavior: auto; }
}
