/* ==========================================================================
   Scale with Nishant — The Clinic Conversion Engine
   Design tokens (spec §1.1). No colours outside these tokens.
   ========================================================================== */
:root {
  --ink: #0C0B0A;
  --ink-2: #16130F;
  --cream: #F7F3EC;
  --cream-2: #FFFFFF;
  --orange: #FF6B1A;
  --orange-deep: #C7490B;
  --orange-soft: rgba(255, 107, 26, .12);
  --text-light: #F7F3EC;
  --text-dark: #14120F;
  --muted-light: #B0A99F;
  --muted-dark: #5A554E;
  --line: rgba(255, 255, 255, .10);
  --line-dark: #DDD6C8;
  --positive: #2F9E6B;
  --negative: #C0392B;

  --serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-cubic: cubic-bezier(.33, 1, .68, 1);

  --r-card: 20px;
  --r-card-sm: 16px;
  --pad-card: clamp(24px, 3vw, 32px);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --bar-h: 40px;
  --nav-h: 68px;
}

/* Metric-matched fallbacks to prevent layout shift while fonts load */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 88%;
  ascent-override: 100%;
  descent-override: 26%;
  line-gap-override: 0%;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background-color: var(--ink); /* paints the canvas behind overscroll */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Section rhythm ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.s-ink { background: var(--ink); color: var(--text-light); }
.s-cream { background: var(--cream); color: var(--text-dark); }

/* Tiled film grain on dark sections (rendered once, repeated — cheap) */
.grain { isolation: isolate; overflow: hidden; }
.grain::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: .06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.s-cream .eyebrow { color: var(--orange-deep); }

.h1, .h2, .display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; }
.h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.06; max-width: 22ch; }
.h1 em, .h2 em { font-style: italic; }
.lede { font-size: clamp(16px, 1.6vw, 18px); max-width: 62ch; color: var(--muted-light); }
.s-cream .lede { color: var(--muted-dark); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lede { margin-top: 18px; }
.section-head__note { margin-top: 14px; font-size: 14px; color: var(--muted-dark); }
.s-ink .section-head__note { color: var(--muted-light); }
.center { text-align: center; }
.center .h2, .center .lede { margin-inline: auto; }

.hl {
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  padding: 0 .14em .02em;
  border-radius: 10px;
  line-height: 1.02;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  /* hover is instant by design; only the press gets a tiny transition */
  transition: transform 120ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn .arr { display: inline-block; transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: var(--ink); padding-right: 22px; }
.btn--primary:hover { background: var(--text-light); }
.s-cream .btn--primary:hover { background: var(--ink); color: var(--text-light); }
.btn--secondary { background: transparent; color: var(--text-light); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--muted-light); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.s-cream .pill { color: var(--orange-deep); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Placeholders (must be replaced before launch) ---------- */
.ph {
  outline: 1.5px dashed var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}
.s-cream .ph { outline-color: var(--orange-deep); }

/* ==========================================================================
   01 · Announcement bar  +  02 · Nav
   ========================================================================== */
.announce {
  position: sticky; top: 0; z-index: 60;
  min-height: var(--bar-h);
  display: flex; align-items: center; justify-content: center;
  padding: 8px var(--gutter);
  background: var(--orange); color: var(--ink);
  font-size: 14px; font-weight: 500; line-height: 1.35; text-align: center;
}
.announce strong { font-weight: 700; }

.nav {
  position: sticky; top: var(--bar-h); z-index: 50;
  height: var(--nav-h);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: transform 300ms var(--ease-out);
}
.nav.is-hidden { transform: translateY(calc(-100% - var(--bar-h))); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__mark {
  flex: none;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--orange); color: var(--ink);
  font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 14px; letter-spacing: -0.02em;
}
.brand__text { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.brand__name {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.05;
  letter-spacing: -0.01em; color: var(--text-light);
}
.brand__sub {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-light); white-space: nowrap;
  padding-left: 12px; border-left: 1px solid var(--line);
}
@media (max-width: 720px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 18px; }
}
@media (max-width: 400px) {
  .brand__mark { width: 32px; height: 32px; font-size: 13px; }
  .brand__name { font-size: 16.5px; }
  .nav .btn--sm { padding: 0 14px; font-size: 14px; }
}

/* ==========================================================================
   03 · Hero
   ========================================================================== */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 88px); }
.hero__copy { text-align: center; }
@media (min-width: 1180px) { .h1 .br { white-space: nowrap; } }
.hero__copy .pill { margin-bottom: 26px; }
.hero__copy .h1 { max-width: none; }
.hero__copy .lede { margin-top: 26px; margin-inline: auto; }
.h1 .br { display: block; }
@media (max-width: 560px) { .h1 .br { display: inline; } }

.stat-chips {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-top: clamp(40px, 5vw, 56px);
}
.stat-chip {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card-sm);
  background: var(--ink-2);
}
.stat-chip__k { font-family: var(--serif); font-size: 30px; line-height: 1.05; color: var(--orange); letter-spacing: -0.01em; }
.stat-chip__v { font-size: 14px; line-height: 1.45; color: var(--muted-light); margin-top: 6px; }

.hero__cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cta-note { font-size: 14.5px; color: var(--muted-light); max-width: 58ch; }
.s-cream .cta-note { color: var(--muted-dark); }
.cta-disclaimer { font-size: 12.5px; line-height: 1.5; color: var(--muted-light); opacity: .72; max-width: 54ch; margin-top: 2px; }
.s-cream .cta-disclaimer { color: var(--muted-dark); }

@media (max-width: 400px) {
  .btn { font-size: 15px; padding: 0 20px; gap: 8px; }
  .btn--primary { padding-right: 18px; }
}
@media (max-width: 720px) {
  .stat-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-chip { padding: 16px; }
  .stat-chip__k { font-size: 26px; }
  .hero__cta .btn { width: 100%; }
}

/* ==========================================================================
   05 · Credibility strip
   ========================================================================== */
.cred { padding-block: 0 clamp(64px, 8vw, 96px); }
.cred__row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cred__item { padding: 32px 24px; text-align: center; }
.cred__item + .cred__item { border-left: 1px solid var(--line); }
.cred__num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--text-light); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cred__num .u { color: var(--orange); }
.cred__label { margin-top: 10px; font-size: 14px; color: var(--muted-light); line-height: 1.45; }
@media (max-width: 720px) {
  .cred__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred__item { padding: 26px 12px; }
  .cred__item:nth-child(3) { border-left: 0; }
  .cred__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ==========================================================================
   06 · Ticker
   ========================================================================== */
.ticker {
  background: var(--orange); color: var(--ink);
  overflow: hidden; padding-block: 18px;
  border-block: 1px solid var(--ink);
}
.ticker__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__item {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; white-space: nowrap;
  padding-inline: 28px;
}
.ticker__sep { font-size: 18px; flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   07 · Pain
   ========================================================================== */
.pain__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; perspective: 1200px; }
.pain-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: var(--pad-card);
  background: var(--cream-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-card);
  transform-style: preserve-3d;
  will-change: transform;
}
.pain-card.is-resetting { transition: transform 400ms var(--ease-out); }
.pain-card blockquote {
  margin: 0;
  font-family: var(--serif); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.25;
  color: var(--text-dark); letter-spacing: -0.01em;
  hanging-punctuation: first;
}
@supports not (hanging-punctuation: first) {
  .pain-card blockquote { text-indent: -0.4em; }
}
.pain-card__verdict {
  display: flex; align-items: center; gap: 10px;
  padding-top: 18px; border-top: 1px solid var(--line-dark);
  font-size: 15px; font-weight: 600; color: var(--orange-deep);
}
.pain-card__verdict::before { content: ""; width: 18px; height: 2px; background: var(--orange-deep); }
.kicker {
  margin: clamp(48px, 6vw, 72px) auto 0; max-width: 24ch; text-align: center;
  font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em;
}
.kicker em { color: var(--orange-deep); }
@media (max-width: 720px) { .pain__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   08 · Leak counter
   ========================================================================== */
.leak { border-top: 1px solid var(--line-dark); }
.leak__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.leak__inputs { display: grid; gap: 12px; }
.leak__note { font-size: 13px; color: var(--muted-dark); margin: 0 0 2px; }
.leak-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 16px 16px 18px;
  background: var(--cream-2); border: 1px solid var(--line-dark); border-radius: var(--r-card-sm);
}
.swatch { width: 14px; height: 14px; border-radius: 4px; }
.swatch--a { background: var(--orange); }
.swatch--b { background: var(--orange-deep); }
.swatch--c { background: var(--muted-dark); }
.swatch--d { background: var(--line-dark); }
.leak-row label { font-size: 15px; line-height: 1.35; font-weight: 500; }
.leak-row label small { display: block; font-size: 13px; color: var(--muted-dark); font-weight: 400; }
.stepper {
  display: flex; align-items: center;
  border: 1px solid var(--line-dark); border-radius: 12px; background: var(--cream);
}
.stepper button {
  width: 40px; height: 44px; border: 0; background: transparent; cursor: pointer;
  font-size: 18px; color: var(--muted-dark);
}
.stepper button:hover { color: var(--text-dark); }
.stepper input {
  width: 52px; height: 44px; border: 0; background: transparent; text-align: center;
  font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.leak-atv {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border: 1px dashed var(--line-dark); border-radius: var(--r-card-sm);
  font-size: 14.5px; color: var(--muted-dark);
}
.money-input {
  display: flex; align-items: center; gap: 4px;
  border: 1px solid var(--line-dark); border-radius: 12px; background: var(--cream-2);
  padding: 0 12px; height: 44px;
}
.money-input span { color: var(--muted-dark); font-weight: 500; }
.money-input input {
  width: 96px; border: 0; background: transparent; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-dark);
}
.money-input input:focus { outline: none; }
.money-input:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }

.leak__board {
  padding: var(--pad-card);
  background: var(--cream-2); border: 1px solid var(--line-dark); border-radius: var(--r-card);
}
.squares {
  display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 5px;
}
.sq {
  aspect-ratio: 1; border-radius: 4px;
  background: var(--cream); box-shadow: inset 0 0 0 1px var(--line-dark);
}
.sq.a, .sq.b, .sq.c, .sq.d { box-shadow: none; }
.sq.a { background: var(--orange); }
.sq.b { background: var(--orange-deep); }
.sq.c { background: var(--muted-dark); }
.sq.d { background: var(--line-dark); }
.js .leak__board:not(.is-filled) .sq { background: var(--cream); box-shadow: inset 0 0 0 1px var(--line-dark); transform: scale(.6); opacity: .5; }
.js .leak__board.is-filled.is-animating .sq { transition: background-color 200ms ease-out, transform 300ms var(--ease-out), opacity 200ms ease-out; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13px; color: var(--muted-dark); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .swatch { width: 10px; height: 10px; border-radius: 3px; }
.leak__total { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.leak__num { font-family: var(--serif); font-size: clamp(4rem, 9vw, 6.5rem); line-height: .9; color: var(--orange-deep); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.leak__label { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.leak__line { margin-top: 16px; max-width: 62ch; color: var(--muted-dark); }
.leak__line strong { color: var(--text-dark); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .leak__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .squares { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
  .leak-row { grid-template-columns: auto 1fr; }
  .leak-row .stepper { grid-column: 1 / -1; justify-self: start; }
}

/* ==========================================================================
   09 · Proof
   ========================================================================== */
.proof__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.proof__big { font-family: var(--serif); font-size: clamp(3.6rem, 9vw, 7rem); line-height: .95; letter-spacing: -0.03em; font-weight: 400; }
.proof__big .to { color: var(--orange); font-style: italic; }
.proof .lede { margin-top: 22px; }
.bars { padding: var(--pad-card); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-card); }
.bar { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 16px; }
.bar + .bar { margin-top: 18px; }
.bar__k { font-size: 13px; color: var(--muted-light); line-height: 1.3; }
.bar__track { height: 52px; border-radius: 12px; background: var(--line); overflow: hidden; }
.bar__fill {
  height: 100%; border-radius: 12px; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 14px;
  font-family: var(--serif); font-size: 24px; font-variant-numeric: tabular-nums;
  background: var(--muted-light); color: var(--ink);
  width: var(--w);
}
.bar--after .bar__fill { background: var(--orange); }
.js .bars:not(.is-in) .bar__fill { width: 0; }
.js .bars.is-in .bar__fill { transition: width 1200ms var(--ease-cubic); }
.js .bars.is-in .bar--after .bar__fill { transition-delay: 250ms; }
.bars__foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.proof__meta { font-size: 13.5px; color: var(--muted-light); }
.proof__shot {
  margin-top: 16px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; text-align: center; padding: 16px;
  background: var(--ink); color: var(--muted-light); font-size: 13.5px;
  outline: 1px solid var(--line); outline-offset: -1px;
}
.proof__shot img { width: 100%; height: 100%; object-fit: cover; }
.ribbon {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 28px; padding: 14px 18px;
  border: 1.5px dashed var(--orange); border-radius: 14px;
  background: var(--orange-soft);
  font-size: 14px; line-height: 1.45; color: var(--text-light);
}
.ribbon strong { color: var(--orange); }
@media (max-width: 900px) { .proof__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   10 · Arithmetic
   ========================================================================== */
.arith-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--cream-2); border: 1px solid var(--line-dark); border-radius: var(--r-card);
  overflow: hidden;
}
.arith-table th, .arith-table td { padding: 20px 24px; text-align: left; vertical-align: middle; }
.arith-table thead th {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark);
  border-bottom: 1px solid var(--line-dark); background: var(--cream);
}
.arith-table tbody tr + tr td, .arith-table tbody tr + tr th { border-top: 1px solid var(--line-dark); }
.arith-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.arith-table tbody th { font-weight: 400; }
.arith-atv { font-family: var(--serif); font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.arith-desc { display: block; font-size: 14px; color: var(--muted-dark); margin-top: 2px; }
.arith-pat { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--orange-deep); }
.arith-day { font-size: 15px; font-weight: 500; }
.arith-note { margin-top: 24px; font-size: 16px; color: var(--muted-dark); }
@media (max-width: 640px) {
  .arith-table th, .arith-table td { padding: 16px 14px; }
  .arith-table thead th { font-size: 10.5px; letter-spacing: .1em; }
  .arith-atv { font-size: 22px; }
  .arith-pat { font-size: 26px; }
  .arith-day { font-size: 13.5px; }
  .arith-desc { font-size: 12.5px; }
}

/* ==========================================================================
   11 · Calculator
   ========================================================================== */
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.calc__inputs {
  padding: var(--pad-card);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-card);
  display: grid; gap: 28px; align-content: start;
}
.slider__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.slider__head label { font-size: 15px; color: var(--muted-light); }
.slider__val { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--text-light); font-variant-numeric: tabular-nums; white-space: nowrap; }
.slider__range { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-light); margin-top: 8px; font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer;
  --fill: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(var(--orange), var(--orange)) 0 / var(--fill) 100% no-repeat, var(--line);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--orange); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%; margin-top: -9px;
  background: var(--orange); border: 4px solid var(--ink);
  box-shadow: 0 0 0 1px var(--orange);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange); border: 4px solid var(--ink); box-shadow: 0 0 0 1px var(--orange);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--orange), 0 0 0 6px var(--orange-soft), 0 0 0 8px var(--orange); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--orange), 0 0 0 6px var(--orange-soft), 0 0 0 8px var(--orange); }

.calc__result {
  padding: var(--pad-card);
  background: var(--orange); color: var(--ink);
  border-radius: var(--r-card);
  display: flex; flex-direction: column;
}
.calc__result .eyebrow { color: var(--ink); margin-bottom: 14px; }
.calc__headline { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.04; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc__support, .calc__cost { margin-top: 14px; font-size: 16px; line-height: 1.55; }
.calc__support strong, .calc__cost strong { font-variant-numeric: tabular-nums; }
.calc__metrics {
  margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--ink); border: 1px solid var(--ink);
  border-radius: 12px; overflow: hidden;
}
.metric { background: var(--orange); padding: 14px; }
.metric__k { font-size: 12px; line-height: 1.3; font-weight: 500; }
.metric__v { margin-top: 6px; font-family: var(--serif); font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__disc { margin-top: auto; padding-top: 22px; font-size: 12.5px; line-height: 1.5; opacity: .85; }
.calc__result.is-invalid .calc__metrics, .calc__result.is-invalid .calc__support, .calc__result.is-invalid .calc__cost, .calc__result.is-invalid .calc__uplift { display: none; }
.calc__uplift { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--text-light); border-left: 2px solid var(--orange); padding-left: 14px; }
@media (max-width: 900px) { .calc__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .calc__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slider__val { font-size: 22px; }
}

/* ==========================================================================
   12 · Engine — six stations
   ========================================================================== */
.engine { --gx: 56px; --gy: 56px; position: relative; }
.engine__board {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr;
  gap: var(--gy) var(--gx);
}
.engine__loop {
  position: absolute; pointer-events: none;
  top: calc((100% - var(--gy)) / 4);
  bottom: calc((100% - var(--gy)) / 4);
  left: calc((100% - 2 * var(--gx)) / 6);
  right: calc((100% - 2 * var(--gx)) / 6);
  border: 2px dashed var(--orange-deep);
  border-radius: 28px;
  opacity: .55;
}
.station {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  padding: var(--pad-card);
  background: var(--cream-2); border: 1px solid var(--line-dark); border-radius: var(--r-card);
}
.station:nth-child(2) { grid-area: 1 / 1; }
.station:nth-child(3) { grid-area: 1 / 2; }
.station:nth-child(4) { grid-area: 1 / 3; }
.station:nth-child(5) { grid-area: 2 / 3; }
.station:nth-child(6) { grid-area: 2 / 2; }
.station:nth-child(7) { grid-area: 2 / 1; }
.station__num { font-family: var(--serif); font-size: 56px; line-height: .9; color: var(--orange-deep); letter-spacing: -0.02em; }
.station__title { margin-top: 18px; font-family: var(--serif); font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; font-weight: 400; }
.station__desc { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted-dark); flex: 1; }
.gate {
  margin-top: 22px;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px;
  background: var(--orange-soft); color: var(--orange-deep);
  border-radius: 14px;
  font-size: 14px; font-weight: 600; line-height: 1.4;
}
.gate__q { flex: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding-top: 2px; }

.engine__arrow {
  position: absolute; z-index: 2;
  width: 32px; height: 32px; margin: -16px 0 0 -16px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); border: 2px solid var(--orange-deep); color: var(--orange-deep);
}
.engine__arrow svg { width: 14px; height: 14px; }
/* column centres and gap midpoints */
.engine__arrow--r1 { top: calc((100% - var(--gy)) / 4); left: calc((100% - 2 * var(--gx)) / 3 + var(--gx) / 2); }
.engine__arrow--r2 { top: calc((100% - var(--gy)) / 4); left: calc(2 * (100% - 2 * var(--gx)) / 3 + 1.5 * var(--gx)); }
.engine__arrow--dn { top: 50%; left: calc(100% - (100% - 2 * var(--gx)) / 6); }
.engine__arrow--dn svg { transform: rotate(90deg); }
.engine__arrow--l1 { top: calc(100% - (100% - var(--gy)) / 4); left: calc(2 * (100% - 2 * var(--gx)) / 3 + 1.5 * var(--gx)); }
.engine__arrow--l2 { top: calc(100% - (100% - var(--gy)) / 4); left: calc((100% - 2 * var(--gx)) / 3 + var(--gx) / 2); }
.engine__arrow--l1 svg, .engine__arrow--l2 svg { transform: rotate(180deg); }
.engine__arrow--up { top: 50%; left: calc((100% - 2 * var(--gx)) / 6); width: auto; height: 34px; margin: -17px 0 0 0; padding: 0 14px 0 10px; border-radius: 999px; gap: 6px; grid-auto-flow: column; transform: translateX(-50%); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.engine__arrow--up svg { transform: rotate(-90deg); }
.engine__loopnote { display: none; }
.engine__scope { margin-top: 22px; font-size: 14px; line-height: 1.6; color: var(--muted-dark); max-width: 70ch; }

@media (max-width: 960px) {
  .engine__board { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 20px; padding-left: 28px; }
  .station:nth-child(n) { grid-area: auto; }
  .engine__loop, .engine__arrow { display: none; }
  .engine__board::before {
    content: ""; position: absolute; left: 8px; top: 24px; bottom: 24px;
    border-left: 2px dashed var(--orange-deep); opacity: .55;
  }
  .station::before {
    content: ""; position: absolute; left: -26px; top: 36px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--cream); border: 2px solid var(--orange-deep);
  }
  .engine__loopnote {
    display: flex; align-items: center; gap: 8px; margin: 20px 0 0 28px;
    font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-deep);
  }
  .engine__loopnote svg { width: 16px; height: 16px; }
}

/* ==========================================================================
   13 · Without / With
   ========================================================================== */
.vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.vs__col { border-radius: var(--r-card); border: 1px solid var(--line); overflow: hidden; }
.vs__col--without { background: transparent; }
.vs__col--with { background: var(--ink-2); border-color: rgba(255, 107, 26, .35); }
.vs__head { padding: 22px var(--pad-card); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.vs__col--without .vs__head { color: var(--muted-light); }
.vs__col--with .vs__head { color: var(--orange); }
.vs__row { display: flex; gap: 14px; align-items: flex-start; padding: 18px var(--pad-card); font-size: 16px; line-height: 1.5; }
.vs__row + .vs__row { border-top: 1px solid var(--line); }
.vs__col--without .vs__row { color: var(--muted-light); }
.vs__col--with .vs__row { color: var(--text-light); }
.mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.mark svg { width: 12px; height: 12px; }
.mark--x { color: var(--negative); box-shadow: inset 0 0 0 1.5px var(--negative); }
.mark--tick { background: var(--positive); color: var(--ink); }
@media (max-width: 800px) { .vs { grid-template-columns: 1fr; } }

/* ==========================================================================
   14 · Apply / Don't apply
   ========================================================================== */
.fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.fit__col { padding: var(--pad-card); border-radius: var(--r-card); border: 1px solid var(--line-dark); background: var(--cream-2); }
.fit__col--no { background: transparent; }
.fit__title { font-family: var(--serif); font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; font-weight: 400; margin-bottom: 18px; }
.fit__col--yes .fit__title em { color: var(--orange-deep); }
.fit__item { display: flex; gap: 14px; align-items: flex-start; padding-block: 14px; font-size: 16px; line-height: 1.5; }
.fit__item + .fit__item { border-top: 1px solid var(--line-dark); }
.fit__col--no .fit__item { color: var(--muted-dark); }
.fit__col--no .mark--x { color: var(--negative); }
@media (max-width: 800px) { .fit { grid-template-columns: 1fr; } }

/* ==========================================================================
   15 · About
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden;
  background: var(--ink-2);
  outline: 1px solid var(--line); outline-offset: -1px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__ph {
  position: absolute; inset: 16px; border-radius: 8px; /* 20 − 12 inset, rounded down */
  border: 1.5px dashed var(--orange);
  display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--muted-light); font-size: 14px; line-height: 1.5;
}
.portrait__ph b { display: block; font-family: var(--serif); font-weight: 400; font-size: 64px; color: var(--orange); line-height: 1; margin-bottom: 12px; font-style: italic; }
.about__body { margin-top: 22px; font-size: 17px; max-width: 62ch; color: var(--muted-light); }
.signature {
  margin-top: 28px; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--orange);
}
.about__chips { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
}
@media (max-width: 420px) { .about__chips { grid-template-columns: 1fr 1fr; gap: 10px; } .about__chips .stat-chip { padding: 14px; } }

/* ==========================================================================
   16 · Steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: var(--pad-card); background: var(--cream-2); border: 1px solid var(--line-dark); border-radius: var(--r-card); }
.step__n {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--orange);
  font-family: var(--serif); font-size: 22px; line-height: 1;
}
.step__title { margin-top: 22px; font-family: var(--serif); font-size: 28px; line-height: 1.1; font-weight: 400; letter-spacing: -0.01em; }
.step__desc { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--muted-dark); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   17 · FAQ
   ========================================================================== */
.faq-section { padding-top: 0; }
.faq-wrap { border-top: 1px solid var(--line-dark); padding-top: clamp(72px, 10vw, 128px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); }
.faq { border-top: 1px solid var(--line-dark); }
.faq__item { border-bottom: 1px solid var(--line-dark); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; border: 0; background: transparent; text-align: left; cursor: pointer;
  font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2.2vw, 25px); line-height: 1.2; letter-spacing: -0.01em; color: var(--text-dark);
}
.faq__icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--text-dark);
  transition: transform 250ms var(--ease-out);
}
.faq__icon svg { width: 14px; height: 14px; }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: var(--ink); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 56px 24px 0; font-size: 16.5px; line-height: 1.65; color: var(--muted-dark); max-width: 62ch; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
@media (max-width: 800px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq__a p { padding-right: 0; }
}

/* ==========================================================================
   18 · Final CTA + form + footer
   ========================================================================== */
.final { overflow: hidden; }
.final__ghost {
  position: absolute; left: max(-2vw, calc((100vw - var(--container)) / 2 - 4vw)); top: 50%; transform: translateY(-52%);
  font-family: var(--serif); font-size: clamp(9rem, 24vw, 22rem); line-height: .8; letter-spacing: -0.04em;
  color: var(--ink-2); white-space: nowrap; pointer-events: none; user-select: none; z-index: 0;
}
.final .container { position: relative; z-index: 1; }
.final__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.final .h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.final .lede { margin-top: 22px; }
.final__alt { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wa-link { display: inline-flex; align-items: center; gap: 10px; }
.wa-link svg { width: 18px; height: 18px; }

.form {
  padding: var(--pad-card);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-card);
  display: grid; gap: 16px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-light); }
.field label .opt { color: var(--muted-light); font-weight: 400; }
.input {
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--ink); color: var(--text-light);
  border: 1px solid var(--line); border-radius: 12px;
}
.input::placeholder { color: var(--muted-light); opacity: .7; }
.input:hover { border-color: rgba(255,255,255,.2); }
.input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23B0A99F' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.phone { display: flex; align-items: stretch; }
.phone__cc {
  display: grid; place-items: center; padding: 0 14px;
  background: var(--ink-2); border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px;
  font-weight: 600; color: var(--muted-light); font-variant-numeric: tabular-nums;
}
.phone .input { border-radius: 0 12px 12px 0; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.field.has-error .input { border-color: var(--negative); }
.field__err { display: none; font-size: 13px; color: var(--orange); }
.field.has-error .field__err { display: block; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 6px; }
.form__fine { font-size: 13px; color: var(--muted-light); text-align: center; }
.form__status { font-size: 14px; color: var(--orange); text-align: center; min-height: 1em; }
.btn.is-loading { pointer-events: none; opacity: .8; }
@media (max-width: 900px) {
  .final__grid { grid-template-columns: 1fr; }
  .final__ghost { left: 50%; top: 24px; transform: translateX(-50%); font-size: 44vw; }
}
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } }

.footer { padding-block: 48px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted-light); }
.footer__top { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; color: var(--text-light); font-family: var(--serif); font-size: 22px; font-style: italic; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.footer__contact a { text-decoration: none; }
.footer__contact a:hover { color: var(--text-light); }
.footer__disc { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; }
.footer__disc span + span::before { content: "·"; margin: 0 8px; }
.footer__copy { margin-top: 12px; font-size: 12.5px; }

/* Sticky mobile CTA */
.mcta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--orange);
  border-top: 1px solid var(--ink);
  transform: translateY(110%);
  transition: transform 300ms var(--ease-out);
  display: none;
}
.mcta.is-visible { transform: none; }
.mcta .btn { width: 100%; min-height: 48px; background: var(--ink); color: var(--text-light); }
@media (max-width: 767px) { .mcta { display: block; } }

/* ==========================================================================
   Motion — fade-up on scroll (JS adds .js to <html>)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  transition-delay: var(--d, 0ms);
}

/* Reduced motion — everything shows in its final state */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .leak__board .sq { transform: none !important; opacity: 1 !important; }
  .js .bars .bar__fill { width: var(--w) !important; }
  .ticker__track { transform: none; }
  .nav.is-hidden { transform: none; }
  .pain-card { transform: none !important; }
}

/* ==========================================================================
   MOTION LAYER — motion.js adds .motion to <html> (never under reduced motion)
   Easings: expo-out for entrances, spring for interactive feedback.
   ========================================================================== */
:root {
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.32, .72, 0, 1);
}

/* ---------- Always-on visual upgrades ---------- */
.nav { transition: transform 300ms var(--ease-out), background-color 300ms ease; }
.nav.is-scrolled {
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--orange); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* Button-in-button arrow island */
.btn .arr {
  position: relative; flex: none;
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  background: var(--ink); color: var(--orange);
  font-size: 16px; line-height: 1; transform: none;
}
.btn--primary { padding-right: 8px; }
.btn--sm.btn--primary { padding-right: 6px; }
.btn--sm .arr { width: 32px; height: 32px; font-size: 14px; }
.s-cream .btn--primary:hover .arr { background: var(--orange); color: var(--ink); }
.mcta .btn { padding-right: 8px; }
.mcta .btn .arr { background: var(--orange); color: var(--ink); width: 34px; height: 34px; }
.arr i { grid-area: 1 / 1; font-style: normal; transition: transform 450ms var(--ease-spring); }
.arr i + i { transform: translateX(-180%); }
.btn:hover .arr i:first-child { transform: translateX(180%); }
.btn:hover .arr i + i { transform: none; }
@media (max-width: 400px) {
  .btn--primary { padding-right: 7px; }
  .btn .arr { width: 34px; height: 34px; }
}

/* Loading state for the submit button */
.btn.is-loading .arr i { opacity: 0; }
.btn.is-loading .arr::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Eyebrow lead-in rule */
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 1.5px; margin-right: 10px;
  vertical-align: .32em; background: currentColor; transform-origin: 0 50%;
}

/* Form focus */
.field label { transition: color 150ms ease; }
.field:focus-within label { color: var(--orange); }

/* Hero + final ambience: warm glow and a faint dot grid, masked to fade out */
.hero::before, .final::before {
  content: ""; position: absolute; inset: -10% -5%; z-index: -2; pointer-events: none;
}
.hero::before {
  background:
    radial-gradient(38vw 38vw at 80% 22%, var(--orange-soft), transparent 70%),
    radial-gradient(28vw 28vw at 6% 92%, color-mix(in srgb, var(--orange) 6%, transparent), transparent 70%),
    radial-gradient(var(--line) 1px, transparent 1.3px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 35%, #000 35%, transparent 85%);
  mask-image: radial-gradient(ellipse 85% 75% at 60% 35%, #000 35%, transparent 85%);
}
.final::before {
  background:
    radial-gradient(40vw 40vw at 22% 45%, var(--orange-soft), transparent 70%),
    radial-gradient(30vw 30vw at 90% 90%, color-mix(in srgb, var(--orange) 5%, transparent), transparent 70%);
}

/* Pain cards: pointer spotlight + oversized quote mark */
.pain-card { position: relative; overflow: hidden; }
.pain-card > * { position: relative; z-index: 1; }
.pain-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), var(--orange-soft), transparent 65%);
  opacity: 0; transition: opacity 300ms var(--ease-out);
}
.pain-card:hover::before { opacity: 1; }
.pain-card::after {
  content: "“"; position: absolute; z-index: 0; top: -0.18em; right: 0.1em;
  font-family: var(--serif); font-size: 170px; line-height: 1; color: var(--orange-soft);
  pointer-events: none;
}

/* Slider thumb press */
input[type="range"]::-webkit-slider-thumb { transition: transform 200ms var(--ease-spring); }
input[type="range"]::-moz-range-thumb { transition: transform 200ms var(--ease-spring); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.22); }
input[type="range"]:active::-moz-range-thumb { transform: scale(1.22); }

/* Engine live loop (SVG built by motion.js) */
.engine__svg { position: absolute; inset: 0; z-index: 0; pointer-events: none; list-style: none; }
.engine__svg svg { position: absolute; inset: 0; overflow: visible; }
.engine__svg .track { fill: none; stroke: var(--orange-deep); stroke-width: 2; opacity: .14; }
.engine__svg .flow {
  fill: none; stroke: var(--orange-deep); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 6 8; opacity: .7;
}
.engine__svg .halo { fill: var(--orange-soft); }
.engine__svg .core { fill: var(--orange); }
.engine__board.has-svg .engine__loop { display: none; }
.engine__fill { display: none; list-style: none; }
.station .gate { transition: background-color 400ms ease, color 400ms ease; }
.station.is-active {
  transform: translateY(-6px);
  border-color: var(--orange-deep);
  box-shadow: 0 0 0 4px var(--orange-soft), 0 28px 50px -30px color-mix(in srgb, var(--ink) 45%, transparent);
}
.station.is-active .gate { background: var(--orange-deep); color: var(--cream-2); }
@media (max-width: 960px) {
  .engine__fill {
    display: block; position: absolute; left: 8px; top: 24px; bottom: 24px; width: 2px;
    background: var(--orange-deep); transform-origin: 50% 0; transform: scaleY(var(--p, 0));
  }
  .station::before { transition: background-color 250ms ease, transform 400ms var(--ease-spring); }
  .station.is-passed::before { background: var(--orange-deep); }
  .station.is-current::before { transform: scale(1.35); }
  .station { transition: border-color 300ms ease, box-shadow 400ms ease; }
  .station.is-current { border-color: var(--orange-deep); box-shadow: 0 0 0 4px var(--orange-soft); }
}

/* ---------- Motion-only ---------- */
.motion .announce { animation: drop-in 800ms var(--ease-expo) both; }
.motion .nav__inner { animation: fade-in 800ms var(--ease-out) 150ms both; }
@keyframes drop-in { from { transform: translateY(-100%); } }
@keyframes fade-in { from { opacity: 0; } }

/* Heavier, blur-to-sharp fade-up */
.motion .reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); }
.motion .reveal.is-in {
  opacity: 1; transform: none; filter: none;
  transition:
    opacity 700ms var(--ease-out) var(--d, 0ms),
    transform 1000ms var(--ease-expo) var(--d, 0ms),
    filter 700ms var(--ease-out) var(--d, 0ms);
}

/* Masked word-by-word rise for headlines */
.motion .split.reveal, .motion .split.reveal.is-in { opacity: 1; transform: none; filter: none; }
.split .w { display: inline-block; clip-path: inset(-0.3em -0.35em -0.24em -0.35em); }
.split .wi {
  display: inline-block;
  transform: translateY(140%) rotate(5deg); transform-origin: 0 100%;
  transition: transform 1100ms var(--ease-expo);
  transition-delay: calc(var(--d, 0ms) + var(--i) * 40ms);
}
.split.is-in .wi { transform: none; }

/* Hero highlight: the orange box wipes in like a highlighter after the words land */
.motion .split .hl {
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 0 / 0% 100%;
  color: var(--text-light);
  transition: background-size 800ms var(--ease-expo), color 250ms ease;
  transition-delay: calc(var(--d, 0ms) + 650ms);
}
.motion .split.is-in .hl { background-size: 100% 100%; color: var(--ink); }

/* Eyebrow rule draws in */
.motion .eyebrow.reveal::before { transform: scaleX(0); transition: transform 900ms var(--ease-expo) calc(var(--d, 0ms) + 250ms); }
.motion .eyebrow.reveal.is-in::before { transform: scaleX(1); }

/* Ambient drift */
.motion .hero::before { animation: glow-drift 18s ease-in-out infinite alternate; }
.motion .final::before { animation: glow-drift 22s ease-in-out infinite alternate-reverse; }
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 3%, 0) scale(1.08); }
}

/* Magnetic CTAs */
.motion [data-magnetic] { transition: translate 800ms var(--ease-spring), transform 120ms var(--ease-out); }
.motion [data-magnetic].is-magnet { transition: translate 180ms var(--ease-out), transform 120ms var(--ease-out); }

/* Video play: breathing ring */
@keyframes breathe { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }

/* Leak grid: springy fill, new squares pop, random "slip away" blinks */
.motion .leak__board:not(.is-filled) .sq { transform: scale(.2); opacity: 0; }
.motion .leak__board.is-filled.is-animating .sq {
  transition: background-color 250ms ease-out, transform 700ms var(--ease-spring), opacity 250ms ease-out;
}
.motion .sq.pop { animation: sq-pop 600ms var(--ease-spring) both; }
.motion .sq.blink { animation: sq-blink 1600ms var(--ease-out); }
@keyframes sq-pop { from { transform: scale(0) rotate(-20deg); } to { transform: none; } }
@keyframes sq-blink { 0% { opacity: 1; } 30% { opacity: .15; transform: scale(.7); } 100% { opacity: 1; transform: none; } }

/* Marks draw themselves */
.motion .mark { transform: scale(.4); opacity: 0; transition: transform 600ms var(--ease-spring) calc(var(--d, 0ms) + 150ms), opacity 250ms ease calc(var(--d, 0ms) + 150ms); }
.motion .mark path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 500ms var(--ease-out) calc(var(--d, 0ms) + 300ms); }
.motion .vs__row.is-in .mark, .motion .fit__col.is-in .mark { transform: none; opacity: 1; }
.motion .vs__row.is-in .mark path, .motion .fit__col.is-in .mark path { stroke-dashoffset: 0; }

/* Engine: marching loop + settled station transitions */
.motion .engine__svg .flow { animation: ants 1.1s linear infinite; }
@keyframes ants { to { stroke-dashoffset: -28; } }
.motion .station.is-settled {
  transition: transform 600ms var(--ease-spring), box-shadow 600ms var(--ease-out), border-color 400ms ease;
}

/* Signature writes itself in */
.motion .signature.reveal { opacity: 1; filter: none; transform: none; clip-path: inset(-0.3em 100% -0.3em -0.3em); }
.motion .signature.reveal.is-in {
  clip-path: inset(-0.3em -0.3em -0.3em -0.3em);
  transition: clip-path 1500ms var(--ease-expo) 250ms;
}

/* Step numbers pop */
.motion .step .step__n {
  transform: scale(.4) rotate(-25deg); opacity: 0;
  transition: transform 700ms var(--ease-spring) calc(var(--d, 0ms) + 250ms), opacity 300ms ease calc(var(--d, 0ms) + 250ms);
}
.motion .step.is-in .step__n { transform: none; opacity: 1; }

/* FAQ answers glide in */
.motion .faq__a { transition: grid-template-rows 450ms var(--ease-spring); }
.motion .faq__a p { opacity: 0; transform: translateY(-8px); transition: opacity 250ms ease, transform 400ms var(--ease-out); }
.motion .faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: 90ms; }
.motion .faq__icon { transition: transform 450ms var(--ease-spring), background-color 200ms ease; }

/* Proof bars: springier growth */
.motion .bars.is-in .bar__fill { transition: width 1400ms var(--ease-expo); }

/* Consent line under the form button, and footer legal links */
.form__consent { margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--muted-light); }
.form__consent a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.footer__legal { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; margin-top: 10px; color: var(--muted-light); }
.footer__legal a { color: var(--muted-light); text-decoration: underline; text-underline-offset: 2px; }
.footer__legal a:hover { color: var(--text-light); }
