/* ===========================================================================
   Gram Dose — landing (printed spec-sheet theme)
   Light neutral paper, white label-cards, near-black ink, one burnt-orange
   signal color. Schibsted Grotesk + Spline Sans Mono data labels. Flat and
   honest: no glows, no auroras — the facts panel is the design. Same markup
   + JS. Palette (Clockwork): #F4F3F1 / #FFFFFF / #1B1917 / #E8590C.
   =========================================================================== */

:root {
  --bg: #f4f3f1;          /* light neutral canvas (chroma ~0, not cream) */
  --surface: #eae8e4;     /* lifted band */
  --card: #ffffff;        /* white card — the label paper */
  --card-2: #e3e1dc;      /* hover */
  --ink: #1b1917;         /* near-black text */
  --muted: #55524d;       /* secondary text (>=4.5:1 on bg and card) */
  --faint: #6e6a64;       /* mono labels, captions */
  --line: rgba(27, 25, 23, 0.12);
  --line-strong: rgba(27, 25, 23, 0.28);
  --accent: #e8590c;      /* burnt orange — graphics: bars, nodes, rules */
  --accent-deep: #c2410c; /* darker orange — text + button fills (>=4.5:1) */
  --on-accent: #ffffff;   /* text on an orange fill */
  --sage: #3d6a40;        /* success green, dark enough for light bg */
  --danger: #b3261e;
  --font-display: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: min(100% - 2.5rem, 38rem);
  margin-inline: auto;
}
.wrap.wide { width: min(100% - 2.5rem, 54rem); }

::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- display type ---------- */
h1, h2, .statement, .tile-line {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.018em;
}

/* ---------- header ---------- */
/* floats over the hero photo so the scene runs to the top edge */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.3rem 0;
}
header .wrap {
  width: min(100% - 2.5rem, 54rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
}
.wordmark img {
  height: 1.25rem;
  width: auto;
  display: block;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.header-right small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 33rem) { .header-right small { display: none; } }
.nav-reserve {
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.nav-reserve:hover { background: var(--accent-deep); color: var(--on-accent); transform: translateY(-1px); }
.nav-reserve:active { transform: translateY(0); }
.nav-reserve:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav-reserve[disabled] { opacity: 0.6; cursor: default; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate; /* keeps the z-index:-1 layers inside the hero */
  display: flex;
  align-items: center;
  min-height: min(86vh, 48rem);
  padding: clamp(5rem, 13vh, 7.5rem) 0 clamp(3rem, 8vh, 5rem);
  border-bottom: 1px solid var(--line);
}
.hero > .wrap { flex: 0 0 auto; }
/* full-bleed lifestyle plate — the jar lives inside the scene */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}
/* scrim: light on the copy side, clear over the jar */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(244, 243, 241, 0.6) 0%, rgba(244, 243, 241, 0) 16%),
    linear-gradient(90deg,
      rgba(244, 243, 241, 0.92) 0%,
      rgba(244, 243, 241, 0.62) 40%,
      rgba(244, 243, 241, 0.04) 66%);
}
.hero-credit {
  position: absolute;
  right: 1rem;
  bottom: 0.7rem;
  z-index: 1;
  width: max-content;
  max-width: calc(100% - 2rem);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 52rem) {
  .hero-bg { object-position: 62% 72%; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(244, 243, 241, 0.94) 0%,
      rgba(244, 243, 241, 0.78) 52%,
      rgba(244, 243, 241, 0.16) 100%);
  }
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.hero-eyebrow b { color: var(--accent-deep); font-weight: 600; }
.hero-shot { display: flex; flex-direction: column; align-items: center; }
.hero-shot img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(60vh, 30rem);
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(27, 25, 23, 0.25);
}
.hero-shot figcaption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: var(--faint);
  text-align: center;
  max-width: 26rem;
}
@media (min-width: 52rem) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-shot figcaption { text-align: left; align-self: flex-start; }
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.022em;
  font-weight: 800;
  text-wrap: balance;
}
h1 .line { display: block; }
h1 .line:last-child { color: var(--accent-deep); }
.hero p {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: clamp(1.0625rem, 2.5vw, 1.1875rem);
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- trust bar ---------- */
.trustbar {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
  background: var(--bg);
}
.trustbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.6rem;
}
.trustbar span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 52rem) {
  .trustbar .wrap { justify-content: space-between; }
}

/* ---------- form ---------- */
.capture { margin-top: 2.25rem; max-width: 26rem; }
.capture.mt-lg { margin-top: 1.75rem; }
.capture .row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.capture label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.capture input[type="email"] {
  font: inherit;
  padding: 0.85rem 1.05rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  width: 100%;
}
.capture input[type="email"]::placeholder { color: var(--faint); }
.capture input[type="email"]:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 1px;
  border-color: transparent;
}.capture.bad input[type="email"] { border-color: var(--danger); }
.capture button {
  font: inherit;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent-deep);
  color: var(--on-accent);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), transform 0.15s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.capture button:hover { background: var(--accent); transform: translateY(-1px); }
.capture button:active { transform: translateY(0); }
.capture button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.capture button[disabled] { opacity: 0.6; cursor: default; transform: none; }
.capture .note {
  margin-top: 0.8rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.capture .note.tight { margin: 0 0 0.8rem; }
.capture .note strong { color: var(--ink); }
.capture .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.capture .ok {
  display: none;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  background: var(--card);
  font-weight: 400;
  color: var(--ink);
}
.capture .ok strong { display: block; margin-bottom: 0.15rem; }
.capture.done .row, .capture.done .note { display: none; }
.capture.done .ok { display: block; }
.capture .err {
  display: none;
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--danger);
}
.capture.bad .err { display: block; }

@media (min-width: 30rem) {
  .capture .row { flex-direction: row; }
  .capture input[type="email"] { flex: 1; }
  .capture button { flex-shrink: 0; }
}

/* ---------- deposit CTA (primary reserve action) ---------- */
.cta { margin-top: 2.25rem; max-width: 26rem; }
.deposit {
  font: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  width: 100%;
  padding: 1.02rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent-deep);
  color: var(--on-accent);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.deposit:hover { background: var(--accent); transform: translateY(-1px); }
.deposit:active { transform: translateY(0); }
.deposit:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.deposit[disabled] { opacity: 0.6; cursor: default; transform: none; }
.deposit-note {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
.deposit-note strong { color: var(--ink); font-weight: 600; }
.deposit-err {
  display: none;
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--danger);
}
.cta.bad .deposit-err { display: block; }

/* email fallback — quieter ghost button beneath the deposit */
.capture.soft { margin-top: 1.5rem; }
.capture.soft button[type="submit"] {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  box-shadow: none;
}
.capture.soft button[type="submit"]:hover { background: var(--card-2); border-color: var(--ink); }

/* ---------- reservation confirmation banner ---------- */
.reserved-banner {
  background: var(--sage);
  color: #fff; /* white on #3d6a40 passes AA */
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.85rem 0;
  text-align: center;
}
.reserved-banner strong { color: #fff; font-weight: 700; }

/* ---------- dose comparison bars ---------- */
.doses {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2.75rem, 9vh, 5rem) 0;
  border-top: 1px solid var(--line);
}
.doses-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
/* light wash so the headline reads; the white card floats on the scene */
.doses::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(244, 243, 241, 0.88) 0%,
    rgba(244, 243, 241, 0.7) 55%,
    rgba(244, 243, 241, 0.22) 100%);
}
@media (max-width: 52rem) {
  .doses::before {
    background: linear-gradient(180deg,
      rgba(244, 243, 241, 0.92) 0%,
      rgba(244, 243, 241, 0.8) 70%,
      rgba(244, 243, 241, 0.4) 100%);
  }
}
.dosebars { margin-top: 2rem; }
.dosebar {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem;
  background: var(--card);
}
.db-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.db-name { font-weight: 700; letter-spacing: -0.01em; }
.db-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: right;
}
.db-row {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  align-items: center;
  gap: 0.9rem;
}
.db-row + .db-row { margin-top: 0.75rem; }
.db-label { font-size: 0.875rem; color: var(--muted); }
.db-track {
  height: 1.15rem;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
}
.db-fill {
  height: 100%;
  width: var(--w);
  border-radius: 999px;
}
.db-them { background: var(--line-strong); }
.db-us { background: var(--accent); }
.db-val {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.db-val-us { color: var(--accent-deep); }
.db-note { margin-top: 1rem; }

/* fills grow from zero when the block scrolls into view */
.js .db-fill { transition: width 0.95s var(--ease-out); }
.js .dosebars.pre .db-fill { width: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .db-fill { transition: none; }
}

/* ---------- bento fact-grid ---------- */
/* warm wash bridging the two photo bands around it; white tiles read as
   spec cards laid on paper instead of floating in gray */
.bento-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2.5rem, 8vh, 4.5rem) 0;
  background-color: #eee6d8;
}
.bento-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50rem 34rem at 82% 18%, rgba(220, 166, 92, 0.16), transparent 62%),
    radial-gradient(46rem 32rem at 12% 88%, rgba(255, 255, 255, 0.5), transparent 65%);
}
.bento { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.tile {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
  background: var(--card);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.tile:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -20px rgba(27, 25, 23, 0.3);
}
.tile p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin-top: 0.6rem; max-width: none; }
.tile-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  line-height: 1;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
}
.tile-num small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--faint);
  margin-left: 0.35rem;
  letter-spacing: 0.02em;
}
.tile-line {
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  max-width: none;
}
.tile-line span { color: var(--accent-deep); }
@media (min-width: 40rem) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
  .tile-lg { grid-row: span 2; }
  .tile-wide { grid-column: 1 / -1; }
  .tile-lg .tile-num { font-size: clamp(3rem, 7vw, 4.25rem); }
}

/* ---------- objections thread ---------- */
.voices .thread { margin-top: 2rem; max-width: 36rem; display: flex; flex-direction: column; gap: 0.75rem; }
.post {
  display: flex;
  gap: 0.9rem;
  padding: 1.15rem 1.3rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.post:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(27, 25, 23, 0.3); }
.vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--faint);
}
.vote .arrow { color: var(--accent); font-size: 0.9rem; line-height: 1; }
.post-meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  margin-bottom: 0.35rem;
}
.post-text { font-size: 1rem; line-height: 1.55; color: var(--ink); margin: 0; max-width: none; }
.post-text em { font-style: italic; color: var(--muted); }
.thread-note { margin-top: 1rem; font-size: 0.8rem; color: var(--faint); }

/* ---------- sections ---------- */
section { padding: clamp(2.75rem, 9vh, 5.5rem) 0; }
section + section { border-top: 1px solid var(--line); }

/* eyebrow / kicker label above section headings */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 1.75rem;
  height: 1.5px;
  background: var(--accent-deep);
  flex-shrink: 0;
}
h2 {
  font-size: clamp(1.7rem, 5.25vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
  max-width: 30rem;
}
section > .wrap > p {
  margin-top: 1.2rem;
  max-width: 34rem;
  color: var(--muted);
  text-wrap: pretty;
}
.stat {
  margin-top: 1.6rem;
  font-size: 1.1875rem;
  max-width: 34rem;
  color: var(--ink);
}
.stat b { color: var(--accent-deep); font-family: var(--font-mono); font-weight: 600; }

/* ---------- formula panel ---------- */
/* styled like the printed supplement-facts label it will become:
   heavy ink rule up top, white paper, ink numbers. no decoration. */
.panel {
  margin-top: 2.25rem;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
}
.panel-head {
  padding: 1.15rem 1.3rem 1rem;
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.panel-head strong { font-weight: 700; letter-spacing: 0.01em; }
.panel-head span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-align: right;
}
.panel-group {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.3rem;
  border-top: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.panel-head + .panel-group { border-top: 0; }
.panel-group span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel ul { list-style: none; }
.panel li {
  padding: 1rem 1.3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  row-gap: 0.15rem;
  align-items: baseline;
  transition: background 0.2s var(--ease-out);
}
.panel li + li { border-top: 1px solid var(--line); }
@media (hover: hover) {
  .panel li:hover { background: var(--surface); }
}
.panel .name { font-weight: 600; }
.panel .form-note {
  grid-column: 1;
  font-size: 0.85rem;
  color: var(--muted);
}
.panel .why {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.panel .dose {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink); /* label numbers in ink, like the printed panel */
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.panel-foot {
  padding: 1.1rem 1.3rem;
  border-top: 1px solid var(--line-strong);
  font-weight: 500;
  font-size: 0.95rem;
}
.panel-foot small {
  display: block;
  margin-top: 0.5rem;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- quote-ish blocks ---------- */
.plain { font-size: clamp(1.125rem, 3vw, 1.28rem); max-width: 32rem; color: var(--ink); }
.plain.mt { margin-top: 1.2rem; }

/* ---------- identity statement band ---------- */
.statement-band { background: var(--surface); }
.statement-band .statement {
  margin-top: 0;
  font-size: clamp(1.6rem, 5.25vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
  text-wrap: balance;
  max-width: 42rem;
}
.statement span { color: var(--accent-deep); }

/* ---------- founder note ---------- */
.founder .sig {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- origin / history timeline ---------- */
.story { background: var(--surface); }

/* ---------- founder note ----------
   Intentionally contrasts with #timeline's step rail: prose voice, first person,
   one pulled stat instead of four scannable nodes. No dots, no spine. */
.founder-note {
  margin-top: 2.75rem;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 52rem) {
  .founder-note { grid-template-columns: minmax(0, 1fr) 17rem; }
}
.fn-prose { max-width: 52ch; }
.fn-prose p { color: var(--muted); text-wrap: pretty; margin: 0 0 1.05rem; }
.fn-prose p:last-child { margin-bottom: 0; }
.fn-lede {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink) !important;
  text-wrap: balance;
  margin-bottom: 1.35rem !important;
}
.fn-prose strong { color: var(--accent-deep); font-family: var(--font-mono); font-weight: 600; }

/* the audit panel — the section's single visual anchor */
.fn-audit {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 1.4rem 1.25rem;
}
.fn-audit-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.1rem;
}
.fn-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.fn-row-out { padding-bottom: 0; margin-bottom: 0.9rem; border-bottom: 0; }
.fn-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 3.4rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fn-zero { color: var(--accent-deep); }
.fn-cap {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.fn-audit-foot {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--faint);
  text-wrap: pretty;
}
.story .sig {
  margin-top: 1.85rem !important;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; max-width: 36rem; }
.faq details {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  transition: border-color 0.25s var(--ease-out);
}
.faq details + details { margin-top: 0.6rem; }
.faq details[open] { border-color: var(--line-strong); }
@media (hover: hover) {
  .faq details:hover { border-color: var(--line-strong); }
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.3rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-deep);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 1.3rem 1.15rem;
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: none;
}
.faq-section .faq-note { font-size: 0.875rem; color: var(--muted); }
.faq-section .faq-note a { color: var(--accent-deep); }

/* ---------- final cta ---------- */
.final { background: var(--surface); }
.final .price-line {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--ink);
}
.final .price-line b {
  font-family: var(--font-mono);
  color: var(--accent-deep);
}

/* ---------- softgel anatomy (lifestyle plate + glass panel) ---------- */
.anatomy {
  position: relative;
  padding: clamp(0.75rem, 1.5vw, 1.5rem);
  min-height: min(92vh, 60rem);
  display: flex;
  overflow: hidden;
  isolation: isolate;
}
.anatomy-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.anatomy-glass {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 4vw, 4rem);
  border-radius: 24px;
  background: rgba(46, 34, 20, 0.5);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}
.anatomy-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.anatomy-copy h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  max-width: 14ch;
}
.anatomy-chip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: clamp(1.5rem, 3.5vh, 2.5rem);
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  max-width: 30rem;
}
.anatomy-chip .chip-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  white-space: nowrap;
}
.anatomy-chip .chip-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
  min-width: 9rem;
}
.anatomy-chip .chip-num {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 500;
  min-width: 3.2ch;
  text-align: right;
}
.anatomy-foot {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 34rem;
}
.anatomy-product {
  position: relative;
  min-height: clamp(24rem, 60vh, 34rem);
}
.anatomy-float {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.anatomy-gel {
  display: block;
  width: clamp(7rem, 11vw, 9.5rem);
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(46, 34, 20, 0.45));
}
.anatomy-note {
  position: absolute;
  max-width: 15.5rem;
  cursor: default;
}
.anatomy-note .note-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.4rem;
}
.anatomy-note p:not(.note-k) {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
/* dashed connector toward the capsule */
.anatomy-note::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  width: clamp(2rem, 4vw, 4.5rem);
  border-top: 2px dashed rgba(255, 255, 255, 0.55);
  transition: border-color 0.25s ease;
}
.note-shell {
  left: 0;
  top: 8%;
  text-align: right;
}
.note-shell::after { left: 100%; margin-left: 0.75rem; }
.note-fill {
  right: 0;
  bottom: 12%;
}
.note-fill::after { right: 100%; margin-right: 0.75rem; }
.anatomy-note.active .note-k { color: var(--accent); }
.anatomy-note.active::after { border-color: var(--accent); }
.anatomy-note:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 4px; border-radius: 8px; }

@media (max-width: 900px) {
  .anatomy { min-height: 0; }
  .anatomy-glass { grid-template-columns: 1fr; padding: 1.5rem 1.25rem 1.75rem; }
  .anatomy-copy h2 { max-width: none; }
  .anatomy-product {
    min-height: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem 1.25rem;
  }
  .anatomy-float {
    position: static;
    transform: none;
    grid-row: 1 / 3;
  }
  .anatomy-gel { width: clamp(4.5rem, 22vw, 6.5rem); }
  .anatomy-note { position: static; max-width: none; text-align: left; }
  .anatomy-note::after { content: none; }
  .anatomy-note {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
  }
}

/* ---------- full-bleed photo band (smiley break) ---------- */
.photo-band {
  position: relative;
  padding: 0; /* full-bleed: override the generic section padding */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.photo-band img {
  display: block;
  width: 100%;
  height: clamp(300px, 52vw, 520px);
  object-fit: cover;
}
.photo-band-caption {
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  right: 1rem;
  bottom: clamp(1rem, 3.5vw, 2.25rem);
  margin: 0;
  max-width: 24rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 1rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
  box-shadow: 0 14px 28px -20px rgba(27, 25, 23, 0.3);
}
.photo-band-caption strong { color: var(--ink); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 3rem;
  font-size: 0.8rem;
  color: var(--muted);
}
footer p { max-width: 60ch; }
footer p + p { margin-top: 0.9rem; }
footer a { color: var(--muted); }
footer .contact { font-size: 0.9rem; color: var(--ink); }
footer .contact a { color: var(--accent-deep); }
footer .footer-egg { font-size: 0.75rem; color: var(--faint); }

/* ---------- sticky mobile CTA bar ---------- */
.bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--card);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -8px 24px -16px rgba(27, 25, 23, 0.25);
  padding: 0.6rem 1.25rem calc(0.6rem + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.35s var(--ease-out);
}
.bar.show { transform: none; }
.bar .bar-price {
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}
.bar .bar-price b {
  font-family: var(--font-mono);
  color: var(--accent-deep);
  font-weight: 600;
}
.bar button {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.72rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent-deep);
  color: var(--on-accent);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.bar button:hover { background: var(--accent); transform: translateY(-1px); }
.bar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (min-width: 48rem) { .bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }

/* ---------- motion ---------- */
.js .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.js .reveal.pre {
  opacity: 0;
  transform: translateY(14px);
}
/* sliding variants: sections enter from the side, connecting the scroll */
.js .reveal.slide-l.pre { transform: translateX(-24px); }
.js .reveal.slide-r.pre { transform: translateX(24px); }
/* zoom-settle variant: object scales into place instead of sliding */
.js .reveal.zoom { transition-duration: 1.1s; }
.js .reveal.zoom.pre { transform: scale(0.965); }
.js h1 .line {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js h1.pre .line { opacity: 0; transform: translateY(18px); }
.js h1 .line:nth-child(2) { transition-delay: 0.09s; }
.js h1 .line:nth-child(3) { transition-delay: 0.18s; }

/* bento tiles POP one by one: quick spring entrance (animation, so it never
   fights the hover transition), then the card just sits there, visible */
@keyframes tile-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.js .bento .reveal {
  animation: tile-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.js .bento .reveal.pre {
  animation: none;
  transition: none;
  opacity: 0;
  transform: translateY(18px) scale(0.94);
}
.js .bento .reveal:nth-child(2) { animation-delay: 0.12s; }
.js .bento .reveal:nth-child(3) { animation-delay: 0.24s; }
.js .bento .reveal:nth-child(4) { animation-delay: 0.36s; }
/* pc hover: the card zooms toward you a touch (the reveal system's
   transform:none was silently killing the old hover lift — restored as a zoom) */
@media (hover: hover) {
  .js .bento .tile:hover { transform: translateY(-2px) scale(1.02); }
}
.js .thread .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .thread .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ---------- plaster texture (flat sections join the material world) ---------- */
.textured {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.36 0 0 0 0 0.33 0 0 0 0 0.29 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- why hair thins (lifestyle plate + frosted glass card) ---------- */
.thins {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3.5rem, 10vh, 6rem) 0;
  border-top: 1px solid var(--line);
}
.thins-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}
.thins-glass {
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: rgba(46, 34, 20, 0.5);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}
.thins-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.75rem;
}
.thins-glass h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.018em;
  line-height: 1.1;
  max-width: 20ch;
}
.thins-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.2rem);
  margin-top: clamp(1.75rem, 4.5vh, 2.75rem);
}
.thins-col svg {
  width: 34px;
  height: 34px;
  color: #fff;
  display: block;
}
.thins-col h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0.9rem 0 0.4rem;
}
.thins-col p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 52rem) {
  .thins-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 33rem) {
  .thins-grid { grid-template-columns: 1fr; }
  .thins-glass { background: rgba(46, 34, 20, 0.62); }
}

/* ---------- formula: macro image + panel (Seed-style split) ---------- */
/* warm sand wash pulled from the macro's backdrop, so the photo sits IN the
   section instead of ON it; soft light from the upper-left, like the scene */
.formula {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #ece2d1;
}
.formula::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55rem 38rem at 16% 20%, rgba(220, 166, 92, 0.18), transparent 62%),
    radial-gradient(48rem 36rem at 88% 92%, rgba(255, 255, 255, 0.55), transparent 65%),
    linear-gradient(180deg, rgba(244, 243, 241, 0.9), transparent 14%);
}
.formula-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-top: 1.5rem;
}
.formula-media {
  position: sticky;
  top: 5rem;
  margin: 0;
}
.formula-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 30px 60px -32px rgba(84, 60, 28, 0.5);
}
.formula .panel {
  box-shadow: 0 24px 48px -30px rgba(27, 25, 23, 0.4);
}
@media (max-width: 52rem) {
  .formula-grid { grid-template-columns: 1fr; }
  .formula-media { position: static; max-width: 26rem; }
}

/* label rows print themselves one by one once the panel is in view */
.js .formula .panel.pre { transform: none; }
.js .formula .panel-head,
.js .formula .panel li,
.js .formula .panel-foot {
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), background 0.2s var(--ease-out);
}
.js .formula .panel.pre .panel-head,
.js .formula .panel.pre li,
.js .formula .panel.pre .panel-foot {
  opacity: 0;
  transform: translateY(10px);
}
.js .formula .panel .panel-head { transition-delay: 0.08s, 0.08s, 0s; }
.js .formula .panel li:nth-child(1) { transition-delay: 0.18s, 0.18s, 0s; }
.js .formula .panel li:nth-child(2) { transition-delay: 0.28s, 0.28s, 0s; }
.js .formula .panel li:nth-child(3) { transition-delay: 0.38s, 0.38s, 0s; }
.js .formula .panel .panel-foot { transition-delay: 0.48s, 0.48s, 0s; }

/* ---------- honest timeline (steps light up on scroll) ---------- */
.expect-lede { max-width: 44ch; margin-top: 0.75rem; }
.expect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(2rem, 5vh, 3rem);
}
.expect-steps {
  list-style: none;
  position: relative;
  padding-left: 1.6rem;
}
/* the track the steps hang off */
.expect-steps::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--line);
}
.ex-step { position: relative; padding-bottom: clamp(1.75rem, 4vh, 2.75rem); }
.ex-step:last-child { padding-bottom: 0; }
.ex-step::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 0.42rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.ex-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.ex-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0.6rem 0 0.3rem;
}
.ex-step p { font-size: 0.95rem; color: var(--muted); max-width: 42ch; }
/* dimmed until scrolled to — enhance-only, fully lit without JS */
.js .ex-step {
  transition: opacity 0.55s var(--ease-out);
}
.js .ex-step:not(.on) { opacity: 0.35; }
.js .ex-step.on::before { background: var(--accent); border-color: var(--accent); }
.js .ex-step.on .ex-pill { background: var(--ink); color: var(--bg); }
.expect-media {
  margin: 0;
  position: sticky;
  top: 5rem;
}
.expect-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.expect-media figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--faint);
  text-align: right;
}
@media (max-width: 52rem) {
  .expect-grid { grid-template-columns: 1fr; }
  .expect-media { position: static; max-width: 22rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ex-step:not(.on) { opacity: 1; }
  .ex-step::before, .ex-pill, .js .ex-step { transition: none; }
}

/* ---------- fun-fact field notes ---------- */
/* corner chip on photo plates, same voice as .hero-credit */
.fact-chip {
  position: absolute;
  right: 1rem;
  bottom: 0.7rem;
  z-index: 1;
  width: max-content;
  max-width: calc(100% - 2rem);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 6px rgba(27, 25, 23, 0.55);
}
/* inline note on light sections */
.fact-note {
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--faint);
}

/* ---------- final cta lifestyle plate ---------- */
.final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.final-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
}
/* light scrim, copy side heavier — same recipe as the hero */
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(244, 243, 241, 0.95) 0%,
    rgba(244, 243, 241, 0.86) 52%,
    rgba(244, 243, 241, 0.3) 100%);
}
.final .fact-chip { color: var(--faint); }
@media (max-width: 52rem) {
  .final::before {
    background: linear-gradient(180deg,
      rgba(244, 243, 241, 0.95) 0%,
      rgba(244, 243, 241, 0.88) 70%,
      rgba(244, 243, 241, 0.45) 100%);
  }
}

/* ---------- entry modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
/* must out-specify .modal's display, or [hidden] loses and a closed modal
   leaves an invisible full-screen layer swallowing every click on the page */
.modal[hidden] { display: none; }
.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(27, 25, 23, 0.45);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.modal-card {
  position: relative;
  width: min(100%, 30rem);
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  padding: 2.1rem 1.75rem 1.6rem;
  box-shadow: 0 30px 70px -25px rgba(27, 25, 23, 0.35);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.modal.in .modal-scrim { opacity: 1; }
.modal.in .modal-card { opacity: 1; transform: none; }
.modal-card:focus { outline: none; } /* focused on open for a11y, not a visual state */

.modal-x {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.modal-x:hover { background: var(--surface); color: var(--ink); }
.modal-x:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.modal-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.5rem;
}
.modal-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5.5vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 0.9rem;
}
.modal-p {
  font-size: 1rem;
  line-height: 1.58;
  color: var(--ink);
}
.modal-p strong { font-weight: 600; }

/* the offer, set quieter than the pitch so the eye lands on the CTA next */
.modal-offer {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
.modal-offer strong { color: var(--ink); font-weight: 600; }

.modal-cta { margin-top: 1.25rem; max-width: none; }

.modal-no {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  cursor: pointer;
}
.modal-no:hover { color: var(--ink); }
.modal-no:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

.modal-foot {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--faint);
  text-align: center;
}

/* split layout: photo pane left, copy right (Seed-style) */
.modal-card.modal-split {
  width: min(100%, 46rem);
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}
.modal-split .modal-body {
  padding: 2.1rem 1.75rem 1.6rem;
  min-width: 0;
}
.modal-media {
  position: relative;
  min-height: 100%;
  background: var(--surface);
  border-radius: 1rem 0 0 1rem;
  overflow: hidden;
}
.modal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--card);
  color: var(--accent-deep);
  box-shadow: 0 4px 14px -6px rgba(27, 25, 23, 0.35);
}
@media (max-width: 40rem) {
  .modal-card.modal-split { grid-template-columns: 1fr; }
  .modal-media {
    height: 8.5rem;
    min-height: 0;
    border-radius: 1rem 1rem 0 0;
  }
}

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .post, .deposit, .capture button, .bar button, .nav-reserve {
    transition: none;
  }
  .js .reveal, .js .reveal.pre, .js h1 .line, .js h1.pre .line,
  .js .formula .panel-head, .js .formula .panel li, .js .formula .panel-foot,
  .js .formula .panel.pre .panel-head, .js .formula .panel.pre li, .js .formula .panel.pre .panel-foot {
    opacity: 1; transform: none; transition: none;
  }
  .js .bento .reveal, .js .bento .reveal.pre {
    animation: none; opacity: 1; transform: none;
  }
  .modal-scrim, .modal-card { transition: none; }
}
