/* ==========================================================================
   HUMN - Design system & site styles
   Tokens → base → layout primitives → components → sections → utilities
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Neutrals - warm, never pure black/white */
  --ink: #0c0c0b;
  --ink-2: #151513;
  --ink-3: #1e1e1b;
  --paper: #f5f2ec;
  --paper-2: #ece8df;
  --paper-3: #e2ddd1;
  --white: #fbfaf7;

  --stone-100: #dedad0;
  --stone-200: #c8c3b7;
  --stone-300: #a8a397;
  --stone-400: #858175;
  --stone-500: #67645b;
  --stone-600: #4a4842;
  --stone-700: #34332e;
  --stone-800: #262521;

  /* Natural / signal colour - used for hierarchy, never decoration */
  --olive: #5f6546;
  --olive-2: #8b946a;
  --olive-soft: #c9cdb3;
  --ember: #d6763f;          /* single high-impact accent */
  --ember-soft: #f0c9a8;

  /* Data states */
  --state-optimal: #7f8d55;
  --state-good: #b7b08a;
  --state-watch: #d19a45;
  --state-attn: #c45f3c;

  /* Semantic (light default) */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: var(--stone-600);
  --fg-3: var(--stone-400);
  --line: rgba(12, 12, 11, 0.1);
  --line-2: rgba(12, 12, 11, 0.16);
  --surface: var(--white);

  /* Type */
  --font-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-display: clamp(3.1rem, 1.2rem + 7.6vw, 9.25rem);
  --fs-h1: clamp(2.6rem, 1.4rem + 5vw, 6.5rem);
  --fs-h2: clamp(2.15rem, 1.3rem + 3.4vw, 4.75rem);
  --fs-h3: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem);
  --fs-h4: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  /* Space & layout */
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --max: 1440px;
  --max-text: 38rem;
  --section-y: clamp(5.5rem, 3.5rem + 8vw, 11rem);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 68px;
}

/* Dark context - applied per section, the brand works in both */
.theme-dark {
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-2: var(--stone-200);
  --fg-3: var(--stone-400);
  --line: rgba(245, 242, 236, 0.1);
  --line-2: rgba(245, 242, 236, 0.18);
  --surface: var(--ink-2);
  background: var(--bg);
  color: var(--fg);
}
.theme-paper2 { --bg: var(--paper-2); background: var(--bg); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ember); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
sup { font-size: 0.6em; line-height: 0; }
sup a { color: var(--fg-3); font-family: var(--font-mono); padding: 0 1px; }
sup a:hover { color: var(--ember); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- 3. Layout primitives ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; background: var(--bg); color: var(--fg); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 4. Typography components ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 450;
  letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); flex: none; }
.eyebrow--plain::before { display: none; }

.display, .h1, .h2, .h3 { font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; text-wrap: balance; }
.display { font-size: var(--fs-display); letter-spacing: -0.055em; line-height: 0.9; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); line-height: 1; }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.03em; line-height: 1.1; }
.h4 { font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.muted { color: var(--fg-3); }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--fg-2); letter-spacing: -0.01em; max-width: var(--max-text); text-wrap: pretty; }
.body { color: var(--fg-2); max-width: var(--max-text); text-wrap: pretty; }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.num { font-feature-settings: "tnum", "ss01"; }

.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 7fr 5fr; gap: var(--gutter); }
  .section-head--split .lead { justify-self: end; }
}

/* ---------- 5. Buttons & links ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 52px; padding: 0 1.5rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .975rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s, color .3s, box-shadow .3s;
  isolation: isolate; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ember); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost::after { background: var(--fg); }
.btn--ghost:hover { color: var(--bg); }
.btn--sm { height: 40px; padding: 0 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease); padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; }

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  color: var(--paper);
  transition: transform .6s var(--ease), background-color .4s, color .4s, box-shadow .4s;
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.nav__logo { display: block; flex: none; width: 88px; }
.nav__logo img { width: 100%; height: auto; }
.nav__logo .logo-dark { display: none; }
.nav__links { display: none; margin-left: auto; gap: .25rem; }
.nav__links a {
  font-size: .9rem; padding: .5rem .8rem; border-radius: 999px; opacity: .78;
  transition: opacity .25s, background-color .25s;
}
.nav__links a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.nav__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav__region {
  display: none; align-items: center; gap: .45rem; height: 36px; padding: 0 .8rem;
  border-radius: 999px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); opacity: .85; transition: opacity .2s, box-shadow .2s;
}
.nav__region:hover { opacity: 1; }
.nav__cta { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.nav__burger { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.nav__burger span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger span + span { margin-top: 5px; }
.nav__burger { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.nav.is-solid {
  background: rgba(245, 242, 236, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.nav.is-solid .logo-light { display: none; }
.nav.is-solid .logo-dark { display: block; }
.nav.is-solid .nav__links a:hover { background: rgba(12,12,11,.05); }
.nav.is-solid .nav__region { box-shadow: inset 0 0 0 1px var(--line-2); }
.nav.is-solid .nav__cta { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.on-dark.is-solid { background: rgba(12,12,11,.78); color: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav.on-dark.is-solid .logo-light { display: block; }
.nav.on-dark.is-solid .logo-dark { display: none; }
.nav.on-dark.is-solid .nav__cta { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.nav.on-dark.is-solid .nav__region { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }

@media (min-width: 1100px) {
  .nav__links { display: flex; }
  .nav__actions { margin-left: 0; }
  .nav__region { display: inline-flex; }
  .nav__burger { display: none; }
  .nav__logo { width: 96px; }
}

/* Region popover */
.region-pop {
  position: fixed; top: calc(var(--nav-h) + 6px); right: var(--gutter); z-index: 120; width: 300px;
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(12,12,11,.35), 0 0 0 1px var(--line);
  padding: .5rem; opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease);
}
.region-pop.is-open { opacity: 1; transform: none; pointer-events: auto; }
.region-pop__item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .9rem; border-radius: 8px; font-size: .92rem; }
.region-pop__item.is-current { background: var(--paper-2); }
.region-pop__item small { font-family: var(--font-mono); font-size: .7rem; color: var(--stone-400); letter-spacing: .05em; }
.region-pop__note { padding: .6rem .9rem .5rem; font-size: .8rem; color: var(--stone-500); border-top: 1px solid var(--line); margin-top: .35rem; }
.region-pop__note button { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 110; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 2rem;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: grid; gap: .1rem; }
.menu__links a {
  font-size: clamp(2rem, 9vw, 3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.2;
  transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .04s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .08s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .12s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .16s; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: .2s; }
.menu.is-open .menu__links a:nth-child(7) { transition-delay: .24s; }
.menu__foot { margin-top: auto; display: grid; gap: 1rem; }
.menu__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--stone-400); }
body.menu-open { overflow: hidden; }
body.menu-open .nav { color: var(--paper); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .nav .logo-light { display: block; }
body.menu-open .nav .logo-dark { display: none; }
body.menu-open .nav__burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
body.menu-open .nav__cta { --btn-bg: var(--paper); --btn-fg: var(--ink); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; color: var(--paper); background: var(--ink);
  display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 115%; object-fit: cover; object-position: 62% 30%;
  transform: translate3d(0, calc(-6.5% + var(--parallax, 0px)), 0);
}
@media (max-width: 767px) { .hero__media img { object-position: 40% 20%; } }
.hero__media picture { display: block; height: 100%; animation: heroIn 2.4s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,12,11,.55) 0%, rgba(12,12,11,0) 22%),
    linear-gradient(0deg, rgba(12,12,11,.92) 0%, rgba(12,12,11,.35) 45%, rgba(12,12,11,0) 70%),
    linear-gradient(90deg, rgba(12,12,11,.55) 0%, rgba(12,12,11,0) 60%);
}
.hero__body { margin-top: auto; padding-top: calc(var(--nav-h) + 4rem); padding-bottom: clamp(1.75rem, 1rem + 2vw, 3rem); }
.hero__grid { display: grid; gap: 2.5rem; align-items: end; }
.hero h1 { max-width: 12ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: block; animation: rise 1.4s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; color: var(--stone-300); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero__copy { display: grid; gap: 2rem; max-width: 34rem; animation: fadeUp 1.2s .45s var(--ease) both; }
.hero__copy p { color: rgba(245,242,236,.78); font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -0.01em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__ctas .btn--ghost { --btn-fg: var(--paper); box-shadow: inset 0 0 0 1px rgba(245,242,236,.3); }
.hero__ctas .btn--ghost::after { background: var(--paper); }
.hero__ctas .btn--ghost:hover { color: var(--ink); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__card {
  justify-self: end; width: 100%; max-width: 340px; display: none;
  background: rgba(20,20,18,.55); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(245,242,236,.12); border-radius: var(--radius-lg); padding: 1.25rem;
  animation: fadeUp 1.2s .8s var(--ease) both;
}
.hero__card-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-300); }
.hero__card-head .live { display: inline-flex; align-items: center; gap: .4rem; }
.hero__card-head .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--state-optimal); box-shadow: 0 0 0 0 rgba(127,141,85,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127,141,85,.5); } 70% { box-shadow: 0 0 0 8px rgba(127,141,85,0); } 100% { box-shadow: 0 0 0 0 rgba(127,141,85,0); } }
.hero__age { display: flex; align-items: baseline; gap: .75rem; margin: 1.1rem 0 .25rem; }
.hero__age strong { font-size: 3.75rem; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.hero__age span { color: var(--stone-300); font-size: .9rem; }
.hero__card-sub { font-size: .82rem; color: var(--stone-300); }
.hero__bar { position: relative; height: 4px; border-radius: 4px; background: rgba(245,242,236,.12); margin: 1.1rem 0 .5rem; }
.hero__bar i { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); }
.hero__bar .bio { background: var(--ember); box-shadow: 0 0 0 4px rgba(214,118,63,.25); }
.hero__bar .chrono { background: var(--paper); }
.hero__bar-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .65rem; color: var(--stone-400); }
.hero__rows { margin-top: 1rem; border-top: 1px solid rgba(245,242,236,.1); }
.hero__rows div { display: flex; justify-content: space-between; padding: .65rem 0; font-size: .85rem; border-bottom: 1px solid rgba(245,242,236,.08); }
.hero__rows div:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__rows dt { color: var(--stone-300); }
.hero__rows dd { font-family: var(--font-mono); font-size: .8rem; display: flex; align-items: center; gap: .45rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot--optimal { background: var(--state-optimal); }
.dot--good { background: var(--state-good); }
.dot--watch { background: var(--state-watch); }
.dot--attn { background: var(--state-attn); }
.hero__card-foot { margin-top: .9rem; font-size: .68rem; color: var(--stone-400); font-family: var(--font-mono); letter-spacing: .04em; }

.hero__strip {
  border-top: 1px solid rgba(245,242,236,.14); margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: center;
  font-size: .85rem; color: rgba(245,242,236,.7);
  animation: fadeUp 1.2s 1s var(--ease) both;
}
.hero__strip li { display: inline-flex; align-items: center; gap: .6rem; }
.hero__strip li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--stone-400); }
.hero__strip .price { margin-left: auto; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: var(--paper); }
.hero__strip .price::before { display: none; }
@media (max-width: 719px) { .hero__strip li:not(.price) { display: none; } .hero__strip .price { margin-left: 0; } }

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr auto; }
  .hero__card { display: block; }
}

/* ---------- 8. Difference ---------- */
.statement { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; max-width: 17ch; text-wrap: balance; }
.statement .muted { color: var(--stone-300); }
.difference__intro { display: grid; gap: 2rem; margin-bottom: clamp(4rem, 3rem + 5vw, 8rem); }
@media (min-width: 960px) { .difference__intro { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--gutter); } }

.flow { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.flow__step { padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-content: start; }
.flow__viz { width: 100%; max-width: 360px; height: 160px; color: var(--ink); }
.flow__viz svg { width: 100%; height: 100%; overflow: visible; }
.flow__label { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: .08em; color: var(--fg-3); margin-bottom: .6rem; display: block; }
.flow__step h3 { margin-bottom: .5rem; }
.flow__step p { color: var(--fg-2); font-size: var(--fs-sm); max-width: 30ch; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .flow__step { border-bottom: 0; border-left: 1px solid var(--line); padding: 0 1.75rem; gap: 2.25rem; }
  .flow__step:first-child { border-left: 0; padding-left: 0; }
  .flow__viz { max-width: none; height: 150px; }
}

/* Shared illustration language: monoline ink, one ember signal, mono micro-labels */
.flow__viz .vlabel { font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; fill: var(--stone-400); }
.flow__viz .vlabel--ember { fill: var(--ember); }
.flow__viz .vlabel--olive { fill: var(--olive); }
.flow__viz .pulse { fill: none; stroke: var(--ember); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.flow.is-in .flow__viz .pulse { animation: vPulse 2.4s var(--ease) 2.2s infinite; }
@keyframes vPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.6); opacity: 0; } }

/* 01 Measure - dot matrix with a live scan line */
.viz-measure .bracket { fill: none; stroke: var(--ink); stroke-opacity: .35; stroke-width: 1.2; }
.viz-measure .m { fill: var(--ink); opacity: .16; transform-box: fill-box; transform-origin: center; }
.viz-measure .scan { opacity: 0; }
.viz-measure .scan line { stroke: var(--ember); stroke-width: 1.2; }
.flow.is-in .viz-measure .scan { opacity: 1; animation: vScan 3.2s linear infinite; transition: opacity .6s; }
.flow.is-in .viz-measure .m { animation: vDot 3.2s linear infinite; animation-delay: var(--dl); }
.flow.is-in .viz-measure .m--hit { animation-name: vHit; }
@keyframes vScan { from { transform: translateX(0); } to { transform: translateX(240px); } }
@keyframes vDot { 0% { opacity: .9; transform: scale(1.7); } 12% { opacity: .16; transform: scale(1); } 100% { opacity: .16; } }
@keyframes vHit { 0% { opacity: 1; fill: var(--ember); transform: scale(2.4); } 25% { fill: var(--ember); transform: scale(1.5); opacity: 1; } 100% { fill: var(--ink); opacity: .7; transform: scale(1.15); } }

/* 02 Understand - radial system rings */
.viz-understand .trk { fill: none; stroke: var(--ink); stroke-opacity: .07; stroke-width: 3.2; }
.viz-understand .arc { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s var(--ease); transition-delay: calc(var(--i) * 90ms + .2s); }
.viz-understand .arc--watch { stroke: var(--ember); }
.flow.is-in .viz-understand .arc { stroke-dasharray: var(--p) 100; }
.flow.is-in .viz-understand .arc--watch { animation: vBreathe 2.8s ease-in-out 2s infinite; }
@keyframes vBreathe { 50% { stroke-opacity: .45; } }
.viz-understand .core { fill: var(--ember); }
.viz-understand .leader { fill: none; stroke: var(--ember); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease) 1.6s; }
.viz-understand .leader-t { opacity: 0; transition: opacity .6s 2.2s; }
.flow.is-in .viz-understand .leader { stroke-dashoffset: 0; }
.flow.is-in .viz-understand .leader-t { opacity: 1; }

/* 03 Improve - trajectory into the target band */
.viz-improve .band { fill: var(--olive); fill-opacity: .1; }
.viz-improve .gridl line { stroke: var(--ink); stroke-opacity: .08; stroke-dasharray: 2 4; }
.viz-improve .area { fill: url(#areaGrad); opacity: 0; transition: opacity 1.2s var(--ease) 1.2s; }
.viz-improve .curve { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.viz-improve .comet { fill: none; stroke: var(--ember); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .12 2; stroke-dashoffset: .12; opacity: 0; }
.viz-improve .start { fill: var(--ink); }
.viz-improve .end { fill: var(--ember); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease) 1.9s; }
.flow.is-in .viz-improve .area { opacity: 1; }
.flow.is-in .viz-improve .curve { stroke-dashoffset: 0; }
.flow.is-in .viz-improve .end { transform: scale(1); }
.flow.is-in .viz-improve .comet { opacity: 1; animation: vComet 2.8s var(--ease-in-out) 2.2s infinite both; }
@keyframes vComet { 0% { stroke-dashoffset: .12; } 100% { stroke-dashoffset: -1; } }

/* 04 Track - re-tests stacking up */
.viz-track .base { stroke: var(--ink); stroke-opacity: .15; }
.viz-track .bar { fill: var(--ink); fill-opacity: .08; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 140ms + .2s); }
.viz-track .bar--now { fill: var(--ember); fill-opacity: .2; }
.viz-track .trend { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) .9s; }
.viz-track .tdot { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 220ms + 1s); }
.viz-track .tdot--now { fill: var(--ember); stroke: var(--ember); }
.viz-track .chip rect { fill: var(--ember); fill-opacity: .12; }
.viz-track .chip text { font-family: var(--font-mono); font-size: 9px; fill: var(--ember); letter-spacing: .04em; }
.viz-track .chip { opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease) 2s, transform .6s var(--ease) 2s; }
.flow.is-in .viz-track .bar { transform: scaleY(1); }
.flow.is-in .viz-track .trend { stroke-dashoffset: 0; }
.flow.is-in .viz-track .tdot { transform: scale(1); }
.flow.is-in .viz-track .chip { opacity: 1; transform: none; }

/* ---------- 9. Assessment ---------- */
.assess { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); }
@media (min-width: 1024px) { .assess { grid-template-columns: 5fr 7fr; align-items: start; } }
.assess__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
@media (min-width: 1024px) { .assess__media { position: sticky; top: calc(var(--nav-h) + 2rem); } }
.assess__media img { width: 100%; height: 120%; object-fit: cover; object-position: 58% 50%; transform: translate3d(0, calc(-7.5% + var(--parallax, 0px)), 0); }
.assess__media figcaption {
  z-index: 1; position: absolute; left: 1rem; bottom: 1rem; right: 1rem; display: flex; justify-content: space-between; align-items: end;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--paper); text-transform: uppercase;
}
.assess__list { counter-reset: a; }
.assess__item { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.assess__item:last-child { border-bottom: 1px solid var(--line); }
.assess__item::before { counter-increment: a; content: counter(a, decimal-leading-zero); font-family: var(--font-mono); font-size: .8rem; color: var(--fg-3); padding-top: .45rem; }
.assess__item h3 { margin-bottom: .6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.assess__item p { color: var(--fg-2); max-width: 44ch; }
.tagline { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 .75rem; border-radius: 999px;
  font-size: .8rem; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2);
}
.tag--included { background: var(--olive); color: var(--paper); box-shadow: none; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; height: 24px; }
.assess__cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.price-line { display: flex; align-items: baseline; gap: .6rem; }
.price-line .cur { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; color: var(--fg-3); }
.price-line .amt { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.price-line .per { font-size: .9rem; color: var(--fg-3); }

/* ---------- 10. Product / dashboard ---------- */
.product-wrap { position: relative; }
.app {
  --app-bg: var(--white);
  background: var(--app-bg); color: var(--ink); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 0 0 1px rgba(12,12,11,.06), 0 60px 120px -50px rgba(12,12,11,.35), 0 30px 60px -40px rgba(12,12,11,.25);
  overflow: hidden;
}
.app__bar { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.app__bar img { width: 58px; }
.app__tabs { display: none; gap: .25rem; margin-left: 1.25rem; }
.app__tabs span { font-size: .82rem; padding: .4rem .75rem; border-radius: 999px; color: var(--stone-500); }
.app__tabs span.on { background: var(--paper-2); color: var(--ink); }
.app__user { margin-left: auto; display: flex; align-items: center; gap: .65rem; font-size: .82rem; color: var(--stone-500); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--olive-soft), var(--stone-200)); display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: var(--stone-700); }
@media (min-width: 900px) { .app__tabs { display: flex; } }

.app__body { display: grid; gap: 1px; background: var(--line); }
.app__panel { background: var(--app-bg); padding: 1.5rem; }
.app__label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-400); display: flex; justify-content: space-between; align-items: center; }
@media (min-width: 980px) {
  .app__body { grid-template-columns: 0.95fr 1.1fr 1.25fr; }
}

/* ring gauge */
.gauge { position: relative; width: min(220px, 100%); aspect-ratio: 1; margin: 1.5rem auto 1rem; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__track { stroke: var(--paper-3); }
.gauge__val { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset 2.2s var(--ease); }
.gauge__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge__center strong { font-size: 3.4rem; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.gauge__center span { font-size: .78rem; color: var(--stone-400); margin-top: .35rem; }
.app__compare { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.app__compare div { background: var(--paper); border-radius: 10px; padding: .75rem .85rem; }
.app__compare dt { font-size: .72rem; color: var(--stone-400); }
.app__compare dd { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; margin-top: .15rem; }
.app__compare dd small { font-size: .72rem; color: var(--state-optimal); font-weight: 500; margin-left: .25rem; letter-spacing: 0; }

.systems { margin-top: 1rem; }
.system { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.system:last-child { border-bottom: 0; }
.system__name { font-size: .9rem; }
.system__state { font-size: .72rem; font-family: var(--font-mono); display: inline-flex; align-items: center; gap: .4rem; color: var(--stone-500); }
.system__range { grid-column: 1 / -1; position: relative; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--paper-3) 0%, var(--paper-3) 100%); }
.system__range::before { content: ""; position: absolute; left: var(--lo, 30%); width: calc(var(--hi, 70%) - var(--lo, 30%)); top: 0; bottom: 0; background: var(--olive-soft); border-radius: 3px; }
.system__range i { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ink); border: 2px solid var(--app-bg); transition: left 1.8s var(--ease); }
.is-in .system__range i { left: var(--v, 50%); }

.chart { margin-top: 1rem; }
.chart__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: .75rem; }
.chart__head strong { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.04em; }
.chart__head strong small { font-size: .8rem; color: var(--stone-400); font-weight: 400; margin-left: .3rem; letter-spacing: 0; }
.delta { font-family: var(--font-mono); font-size: .72rem; padding: .25rem .5rem; border-radius: 999px; background: rgba(127,141,85,.14); color: var(--olive); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .band { fill: rgba(127,141,85,.12); }
.chart .grid line { stroke: var(--line); }
.chart .axis text { font-family: var(--font-mono); font-size: 10px; fill: var(--stone-400); }
.chart .series { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.2s var(--ease) .2s; }
.chart .pt { fill: var(--app-bg); stroke: var(--ink); stroke-width: 1.75; opacity: 0; transition: opacity .6s var(--ease); }
.chart .pt--last { fill: var(--ember); stroke: var(--ember); }
.chart .val { font-family: var(--font-mono); font-size: 10px; fill: var(--ink); opacity: 0; transition: opacity .6s; }
.is-in .chart .series { stroke-dashoffset: 0; }
.is-in .chart .pt, .is-in .chart .val { opacity: 1; transition-delay: 1.4s; }

.note { margin-top: 1.25rem; background: var(--paper); border-radius: 12px; padding: 1rem 1.1rem; }
.note__head { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--stone-500); margin-bottom: .5rem; }
.note__head .avatar { width: 24px; height: 24px; font-size: .6rem; background: var(--ink); color: var(--paper); }
.note p { font-size: .9rem; line-height: 1.5; }
.illustrative { position: absolute; top: -2.25rem; right: 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }

.features-3 { display: grid; gap: 2rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.features-3 > div { border-top: 1px solid var(--line-2); padding-top: 1.25rem; }
.features-3 h3 { margin-bottom: .5rem; }
.features-3 p { color: var(--fg-2); font-size: var(--fs-sm); max-width: 34ch; }
@media (min-width: 800px) { .features-3 { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }

/* ---------- 11. Journey ---------- */
.journey { position: relative; }
.journey__track { display: grid; gap: 0; }
.journey__step { position: relative; padding: 2rem 0 2rem 3.25rem; border-left: 1px solid var(--line); margin-left: .5rem; }
.journey__step::before {
  content: ""; position: absolute; left: -5px; top: 2.4rem; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--stone-300); transition: background .5s, box-shadow .5s;
}
.journey__step.is-in::before { background: var(--ember); box-shadow: 0 0 0 4px rgba(214,118,63,.18); }
.journey__num { font-family: var(--font-mono); font-size: .8rem; color: var(--fg-3); display: block; margin-bottom: .75rem; }
.journey__step h3 { margin-bottom: .6rem; }
.journey__step p { color: var(--fg-2); max-width: 32ch; font-size: var(--fs-sm); }
.journey__meta { margin-top: 1rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
@media (min-width: 1000px) {
  .journey__track { grid-template-columns: repeat(5, 1fr); }
  .journey__step { border-left: 0; margin-left: 0; padding: 3rem 1.5rem 0 0; border-top: 1px solid var(--line); }
  .journey__step::before { left: 0; top: -5px; }
  .journey__progress { position: absolute; left: 0; top: 0; height: 1px; background: var(--ember); width: var(--p, 0%); transition: width .2s linear; }
}
@media (max-width: 999px) { .journey__progress { display: none; } }

/* ---------- 12. Data constellation ---------- */
.data { display: grid; gap: clamp(3rem, 2rem + 4vw, 5rem); align-items: center; }
@media (min-width: 1024px) { .data { grid-template-columns: 5fr 7fr; } }
.constellation { position: relative; width: 100%; max-width: 680px; margin-inline: auto; aspect-ratio: 1; }
.constellation svg { width: 100%; height: 100%; overflow: visible; }
.constellation .ring { fill: none; stroke: var(--line); }
.constellation .spoke { stroke: var(--line-2); stroke-dasharray: 3 5; }
.constellation .flowline { stroke: var(--ember); stroke-width: 1.25; stroke-dasharray: 6 200; stroke-dashoffset: 206; opacity: 0; }
.constellation.is-in .flowline { opacity: .9; animation: flow 3.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: 0; } }
.constellation .node circle { fill: var(--ink-2); stroke: var(--line-2); }
.constellation .node text { fill: var(--stone-200); font-size: 13px; font-family: var(--font-sans); letter-spacing: -0.01em; }
.constellation .node text.sub { fill: var(--stone-400); font-size: 10px; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.constellation .core circle.c1 { fill: var(--paper); }
.constellation .core circle.c2 { fill: none; stroke: rgba(245,242,236,.25); }
.constellation .core text { fill: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -0.02em; }
.constellation .node { opacity: 0; transition: opacity 1s var(--ease); }
.constellation.is-in .node { opacity: 1; }
.constellation__legend { display: none; }
@media (max-width: 699px) {
  .constellation svg .node text { display: none; }
  .constellation { max-width: 320px; }
  .constellation__legend { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin-top: 1.5rem; }
  .constellation__legend li { font-size: .9rem; color: var(--stone-200); border-top: 1px solid var(--line); padding-top: .6rem; }
  .constellation__legend small { display: block; font-family: var(--font-mono); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; color: var(--stone-400); margin-top: .15rem; }
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.stat strong { display: block; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.stat span { display: block; margin-top: .5rem; font-size: .85rem; color: var(--fg-3); max-width: 16ch; }

/* ---------- 13. Longevity editorial ---------- */
.editorial { position: relative; min-height: 92svh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; isolation: isolate; background: var(--ink); }
.editorial__media { position: absolute; inset: 0; z-index: -2; }
.editorial__media picture, .assess__media picture, .clinical__media picture, .global__media picture { display: block; height: 100%; }
.editorial__media img { width: 100%; height: 120%; object-fit: cover; object-position: 60% 50%; transform: translate3d(0, calc(-7.5% + var(--parallax, 0px)), 0); }
.editorial::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,12,11,.88) 0%, rgba(12,12,11,.25) 50%, rgba(12,12,11,.1) 100%); }
.editorial__body { padding-block: var(--section-y) clamp(3rem, 2rem + 4vw, 6rem); }
.editorial h2 { max-width: 16ch; }
.editorial p { color: rgba(245,242,236,.78); margin-top: 1.75rem; }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 1.75rem 1.25rem 2rem 0; border-bottom: 1px solid var(--line); }
.pillar:nth-child(odd) { padding-right: 1.25rem; }
.pillar:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.pillar__icon { width: 28px; height: 28px; margin-bottom: 1.5rem; color: var(--olive); }
.pillar h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: .45rem; }
.pillar p { font-size: .9rem; color: var(--fg-2); }
@media (min-width: 960px) {
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .pillar, .pillar:nth-child(odd), .pillar:nth-child(even) { padding: 2rem 1.75rem 2.5rem; border-left: 1px solid var(--line); }
  .pillar:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
}
.honest { margin-top: clamp(3rem, 2rem + 3vw, 5rem); display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .honest { grid-template-columns: 5fr 7fr; gap: var(--gutter); } }
.honest h3 { max-width: 18ch; }

/* ---------- 14. Biological age ---------- */
.bioage { display: grid; gap: clamp(3rem, 2rem + 3vw, 5rem); }
.bioage__viz { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); box-shadow: 0 0 0 1px var(--line); }
.bioage__switch { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: var(--paper-2); margin-bottom: 2.5rem; flex-wrap: wrap; }
.bioage__switch button { height: 36px; padding: 0 1rem; border-radius: 999px; font-size: .85rem; color: var(--stone-500); transition: background .3s, color .3s; }
.bioage__switch button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.bioage__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.bioage__num dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-400); display: flex; align-items: center; gap: .5rem; }
.bioage__num dd { font-size: clamp(4.5rem, 3rem + 7vw, 10rem); font-weight: 500; letter-spacing: -0.06em; line-height: .9; margin-top: .75rem; }
.bioage__num--bio dd { color: var(--ember); }
.bioage__num dd small { font-size: .9rem; letter-spacing: 0; color: var(--stone-400); font-weight: 400; display: block; margin-top: .75rem; line-height: 1.4; }
.scale { position: relative; height: 72px; }
.scale__line { position: absolute; left: 0; right: 0; top: 36px; height: 1px; background: var(--line-2); }
.scale__ticks { position: absolute; inset: 0; }
.scale__tick { position: absolute; top: 30px; width: 1px; height: 13px; background: var(--stone-200); }
.scale__tick span { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: .68rem; color: var(--stone-400); }
.scale__band { position: absolute; top: 28px; height: 17px; border-radius: 17px; background: rgba(214,118,63,.16); transition: left 1.2s var(--ease), width 1.2s var(--ease); }
.scale__mark { position: absolute; top: 36px; transition: left 1.2s var(--ease); }
.scale__mark i { position: absolute; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); }
.scale__mark--chrono i { background: var(--ink); }
.scale__mark--bio i { background: var(--ember); box-shadow: 0 0 0 5px rgba(214,118,63,.2); }
.scale__mark b { position: absolute; bottom: 16px; transform: translateX(-50%); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; font-weight: 450; }
.scale__mark--bio b { color: var(--ember); }
.bioage__legend { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.5rem; font-size: .82rem; color: var(--stone-500); }
.bioage__legend span { display: inline-flex; gap: .5rem; align-items: center; }
.bioage__legend .band { width: 22px; height: 10px; border-radius: 10px; background: rgba(214,118,63,.2); }
.bioage__drivers { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; font-size: .88rem; }
.bioage__drivers p { color: var(--stone-500); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .25rem; }
.bioage__drivers ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.bioage__copy { display: grid; gap: 1.5rem; align-content: start; }
.caveat { font-size: var(--fs-sm); color: var(--fg-2); border-left: 2px solid var(--ember); padding-left: 1rem; max-width: 44ch; }
@media (min-width: 1024px) { .bioage { grid-template-columns: 4fr 8fr; align-items: start; } .bioage__copy { position: sticky; top: calc(var(--nav-h) + 2rem); } }

/* ---------- 15. Plans ---------- */
.plans { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); }
.plans > *, .assess > *, .data > *, .clinical > *, .global > *, .bioage > *, .science > *, .faq > *, .stories > *, .pricing > * { min-width: 0; }
@media (min-width: 1024px) { .plans { grid-template-columns: 5fr 7fr; align-items: start; } }
.plans__tabs { display: flex; gap: .4rem; margin-top: 2rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
.plans__tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .plans__tabs { display: grid; margin: 2.5rem 0 0; padding: 0; overflow: visible; gap: 0; border-top: 1px solid var(--line); }
}
.plans__tab {
  flex: none; scroll-snap-align: start; height: 40px; padding: 0 1rem; border-radius: 999px; font-size: .9rem;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); transition: background .3s, color .3s;
}
.plans__tab[aria-selected="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
@media (min-width: 1024px) {
  .plans__tab {
    height: auto; padding: 1.15rem 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center; font-size: 1.35rem; letter-spacing: -0.025em; text-align: left; color: var(--fg-3);
  }
  .plans__tab::after { content: "→"; font-size: 1rem; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease); }
  .plans__tab:hover { color: var(--fg-2); }
  .plans__tab[aria-selected="true"] { background: none; color: var(--fg); }
  .plans__tab[aria-selected="true"]::after { opacity: 1; transform: none; color: var(--ember); }
}
.protocol {
  background: var(--ink-2); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid rgba(245,242,236,.08); min-height: 520px; display: flex; flex-direction: column;
}
.protocol__head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(245,242,236,.1); }
.protocol__head h3 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.protocol__head p { color: var(--stone-300); margin-top: .6rem; font-size: .92rem; max-width: 36ch; }
.protocol__badge { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-300); border: 1px solid rgba(245,242,236,.16); border-radius: 999px; padding: .35rem .65rem; white-space: nowrap; }
.protocol__items { flex: 1; }
.protocol__item { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(245,242,236,.08); animation: fadeUp .7s var(--ease) both; }
.protocol__item:nth-child(2) { animation-delay: .07s; }
.protocol__item:nth-child(3) { animation-delay: .14s; }
.protocol__item strong { font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em; }
.protocol__item .dose { font-family: var(--font-mono); font-size: .78rem; color: var(--ember-soft); text-align: right; }
.protocol__item .why { grid-column: 1 / -1; font-size: .85rem; color: var(--stone-400); }
.protocol__foot { margin-top: 1.5rem; display: flex; gap: .75rem; align-items: start; font-size: .82rem; color: var(--stone-300); }
.protocol__foot svg { flex: none; margin-top: 2px; color: var(--olive-2); }

.disclaimer-band {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem); display: grid; gap: 1.5rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--line-2);
}
@media (min-width: 900px) { .disclaimer-band { grid-template-columns: repeat(2, 1fr) auto; align-items: center; gap: 2.5rem; } }
.disclaimer-band h4 { font-size: 1rem; font-weight: 500; margin-bottom: .35rem; display: flex; align-items: center; gap: .5rem; }
.disclaimer-band p { font-size: .9rem; color: var(--fg-2); }

/* ---------- 16. Clinical ---------- */
.clinical { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); align-items: center; }
@media (min-width: 1024px) { .clinical { grid-template-columns: 1fr 1fr; } }
.clinical__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.clinical__media img { width: 100%; height: 118%; object-fit: cover; object-position: 40% 50%; transform: translate3d(0, calc(-7.5% + var(--parallax, 0px)), 0); }
.clinical__points { margin-top: 3rem; display: grid; gap: 0; }
.clinical__points li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.clinical__points li:last-child { border-bottom: 1px solid var(--line); }
.clinical__points svg { color: var(--ember); margin-top: 3px; }
.clinical__points h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: .3rem; }
.clinical__points p { font-size: .92rem; color: var(--fg-2); }

/* ---------- 17. Pricing ---------- */
.pricing { display: grid; gap: var(--gutter); }
@media (min-width: 1024px) { .pricing { grid-template-columns: 7fr 5fr; align-items: stretch; } }
.price-card { border-radius: var(--radius-lg); padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); display: flex; flex-direction: column; position: relative; }
.price-card--primary { background: var(--ink); color: var(--paper); }
.price-card--secondary { background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.price-card__top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; flex-wrap: wrap; }
.price-card__name { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.025em; }
.price-card__desc { color: var(--stone-300); font-size: .95rem; margin-top: .4rem; max-width: 36ch; }
.price-card--secondary .price-card__desc { color: var(--stone-500); }
.price-card__price { margin: 2.5rem 0 2rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price-card__price .cur { font-family: var(--font-mono); font-size: .85rem; letter-spacing: .08em; color: var(--stone-300); }
.price-card__price .amt { font-size: clamp(3.5rem, 2.5rem + 4vw, 6rem); font-weight: 500; letter-spacing: -0.06em; line-height: .9; }
.price-card__price .per { color: var(--stone-300); font-size: .95rem; }
.price-card--secondary .price-card__price .amt { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); letter-spacing: -0.04em; }
.price-card--secondary .price-card__price .per, .price-card--secondary .price-card__price .cur { color: var(--stone-500); }
.includes { display: grid; gap: 0; margin-bottom: 2rem; }
.includes li { display: flex; gap: .85rem; align-items: start; padding: .85rem 0; border-top: 1px solid rgba(245,242,236,.1); font-size: .95rem; }
.price-card--secondary .includes li { border-top-color: var(--line); }
.includes li svg { flex: none; margin-top: 3px; color: var(--olive-2); }
.includes li small { display: block; color: var(--stone-400); font-size: .82rem; margin-top: .15rem; }
.includes--cols { grid-template-columns: 1fr; column-gap: 2rem; }
@media (min-width: 700px) { .includes--cols { grid-template-columns: 1fr 1fr; } }
.price-card__cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.price-card__fine { font-size: .8rem; color: var(--stone-400); }

.addons { margin-top: var(--gutter); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.addons__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem) 1.25rem; }
.addons__head p { color: var(--stone-500); font-size: .92rem; max-width: 44ch; margin-top: .4rem; }
.addon { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.15rem clamp(1.5rem, 1rem + 2vw, 2.5rem); border-top: 1px solid var(--line); cursor: pointer; transition: background .25s; }
.addon:hover { background: var(--paper); }
.addon input { position: absolute; opacity: 0; pointer-events: none; }
.addon__check { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--stone-300); display: grid; place-items: center; transition: background .25s, box-shadow .25s; }
.addon__check svg { opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease); color: var(--paper); }
.addon input:checked + .addon__check { background: var(--ink); box-shadow: none; }
.addon input:checked + .addon__check svg { opacity: 1; transform: none; }
.addon input:focus-visible + .addon__check { outline: 2px solid var(--ember); outline-offset: 2px; }
.addon__name { font-weight: 500; letter-spacing: -0.01em; }
.addon__desc { display: block; font-size: .85rem; color: var(--stone-500); margin-top: .15rem; }
.addon__price { font-family: var(--font-mono); font-size: .9rem; white-space: nowrap; }
.addons__total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--paper-2); border-top: 1px solid var(--line); }
.addons__total .label { font-size: .85rem; color: var(--stone-500); }
.addons__total strong { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.04em; display: block; line-height: 1.1; }
.addons__total strong .cur { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; color: var(--stone-500); margin-right: .35rem; font-weight: 400; }

/* ---------- 18. UAE / global ---------- */
.global { display: grid; gap: clamp(3rem, 2rem + 4vw, 5rem); }
@media (min-width: 1024px) { .global { grid-template-columns: 6fr 6fr; align-items: center; } }
.global__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.global__media img { width: 100%; height: 118%; object-fit: cover; object-position: 30% 50%; transform: translate3d(0, calc(-7.5% + var(--parallax, 0px)), 0); }
@media (min-width: 1024px) { .global__media { aspect-ratio: 5 / 6; } }
.global__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; margin-top: 3rem; }
.global__list h3 { font-size: 1rem; font-weight: 500; margin-bottom: .35rem; }
.global__list p { font-size: .9rem; color: var(--fg-2); }
.cities { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; }
.cities .now { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: .6rem; }
.cities .now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(214,118,63,.2); }
.cities .next { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- 19. Business ---------- */
.biz { display: grid; gap: clamp(3rem, 2rem + 3vw, 5rem); }
.biz__grid { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 760px) { .biz__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .biz__grid { grid-template-columns: repeat(4, 1fr); } }
.biz__cell { background: var(--bg); padding: 2rem 1.75rem 2.25rem; min-height: 240px; display: flex; flex-direction: column; }
.biz__cell .idx { font-family: var(--font-mono); font-size: .72rem; color: var(--fg-3); }
.biz__cell h3 { margin-top: auto; padding-top: 3rem; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: .5rem; }
.biz__cell p { font-size: .9rem; color: var(--fg-2); }
.privacy-split { display: grid; gap: 1px; background: var(--line-2); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 900px) { .privacy-split { grid-template-columns: 1fr 1fr; } }
.privacy-split > div { background: var(--ink-2); padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
.privacy-split .who { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-400); margin-bottom: 1.5rem; display: block; }
.privacy-split ul li { display: flex; gap: .75rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.privacy-split ul li svg { flex: none; }
.privacy-split .yes svg { color: var(--olive-2); }
.privacy-split .no { color: var(--stone-400); }
.privacy-split .no svg { color: var(--state-attn); }

/* ---------- 20. Science ---------- */
.science { display: grid; gap: clamp(3rem, 2rem + 3vw, 5rem); }
@media (min-width: 1024px) { .science { grid-template-columns: 7fr 5fr; } }
.paper-list { border-top: 2px solid var(--fg); }
.paper { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .paper { grid-template-columns: 4rem 13rem 1fr; gap: 1.5rem; } }
.paper .idx { font-family: var(--font-mono); font-size: .78rem; color: var(--fg-3); padding-top: .2rem; }
.paper h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.paper p { font-size: .95rem; color: var(--fg-2); grid-column: 2; }
@media (min-width: 700px) { .paper p { grid-column: 3; grid-row: 1; } }
.refs { font-size: .82rem; color: var(--fg-2); line-height: 1.5; }
.refs h3 { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); font-weight: 400; padding-bottom: 1rem; border-bottom: 2px solid var(--fg); margin-bottom: .5rem; }
.refs ol { counter-reset: r; }
.refs li { counter-increment: r; display: grid; grid-template-columns: 2rem 1fr; padding: .75rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 24px); }
.refs li::before { content: "[" counter(r) "]"; font-family: var(--font-mono); color: var(--fg-3); font-size: .75rem; padding-top: .1rem; }
.refs li:target { background: rgba(214,118,63,.08); }
.refs em { font-style: italic; }
.refs a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.refs a:hover { text-decoration-color: currentColor; }

/* ---------- 21. Stories ---------- */
.stories { display: grid; gap: var(--gutter); }
@media (min-width: 900px) { .stories { grid-template-columns: 1fr 1fr; } }
.story {
  position: relative; display: flex; flex-direction: column; gap: 2.5rem; margin: 0;
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  background: var(--white); box-shadow: 0 0 0 1px var(--line); overflow: hidden;
}
.story--dark { background: var(--ink); color: var(--paper); box-shadow: none; }
.story__mark { font-size: 6rem; line-height: .6; height: 2.25rem; font-weight: 500; color: var(--ember); letter-spacing: -0.05em; }
.story__quote { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.12; text-wrap: balance; }
.story__body { margin-top: 1.25rem; color: var(--stone-600); max-width: 46ch; text-wrap: pretty; }
.story--dark .story__body { color: var(--stone-300); }
.story figcaption { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; gap: .85rem; align-items: center; font-size: .95rem; }
.story--dark figcaption { border-top-color: rgba(245,242,236,.12); }
.story figcaption strong { display: block; font-weight: 500; letter-spacing: -0.01em; }
.story figcaption small { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-400); margin-top: .15rem; }
.story .avatar { width: 40px; height: 40px; font-size: .85rem; }
.story--dark .avatar { background: var(--ember); color: var(--ink); }

/* ---------- 22. Trust ---------- */
.trust { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust > div { background: var(--bg); padding: 2rem 1.5rem 2.25rem 0; }
@media (min-width: 760px) { .trust > div { padding: 2.25rem 1.75rem 2.5rem; } .trust > div:first-child { padding-left: 0; } }
.trust svg { color: var(--fg); margin-bottom: 2rem; }
.trust h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: .45rem; }
.trust p { font-size: .9rem; color: var(--fg-2); }

/* ---------- 23. FAQ / accordion ---------- */
.faq { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 1024px) { .faq { grid-template-columns: 4fr 8fr; } }
.acc { border-top: 1px solid var(--line-2); }
.acc details { border-bottom: 1px solid var(--line-2); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .pm { position: relative; width: 14px; height: 14px; flex: none; }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.acc summary .pm::after { transform: rotate(90deg); }
.acc details[open] summary .pm::after { transform: rotate(0); }
.acc .acc__body { padding: 0 0 1.75rem; color: var(--fg-2); max-width: 62ch; }
.acc .acc__body p + p { margin-top: .75rem; }

/* ---------- 24. Final CTA ---------- */
.final { text-align: left; }
.final .display { max-width: 11ch; }
.final__row { display: grid; gap: 2rem; margin-top: 3rem; align-items: end; }
@media (min-width: 900px) { .final__row { grid-template-columns: 1fr auto; } }
.final__tag { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-400); }

/* ---------- 25. Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(4rem, 3rem + 4vw, 7rem) 0 2rem; border-top: 1px solid rgba(245,242,236,.08); }
.footer__top { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 4fr 8fr; } }
.footer__brand img { width: 120px; }
.footer__brand p { color: var(--stone-300); margin-top: 1.5rem; max-width: 30ch; font-size: .95rem; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
@media (min-width: 700px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer__cols h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-400); font-weight: 400; margin-bottom: 1.1rem; }
.footer__cols li + li { margin-top: .6rem; }
.footer__cols a { font-size: .92rem; color: var(--stone-200); transition: color .2s; }
.footer__cols a:hover { color: var(--paper); }
.footer__word { margin: clamp(4rem, 3rem + 5vw, 8rem) 0 2rem; }
.footer__word img { width: 100%; opacity: .95; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(245,242,236,.1); font-size: .8rem; color: var(--stone-400); }
.footer__bottom .region { display: inline-flex; gap: 1rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.footer__bottom .region button { text-decoration: underline; text-underline-offset: 3px; color: var(--stone-300); font-size: inherit; letter-spacing: inherit; text-transform: inherit; font-family: inherit; }
.footer__legal { font-size: .75rem; color: var(--stone-500); margin-top: 1.25rem; max-width: 90ch; line-height: 1.6; }

/* ---------- 26. Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .5rem .5rem 1.1rem; border-radius: 999px;
  background: rgba(12,12,11,.88); color: var(--paper);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: translateY(140%); transition: transform .6s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta small { display: block; font-size: .68rem; color: var(--stone-400); font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.sticky-cta strong { font-weight: 500; font-size: .95rem; }
.sticky-cta .btn { height: 44px; }
@media (min-width: 1100px) { .sticky-cta { left: auto; right: 24px; bottom: 24px; width: auto; gap: 1.5rem; } }

/* ---------- 27. Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: end center; visibility: hidden; }
@media (min-width: 720px) { .modal { place-items: center; } }
.modal.is-open { visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(12,12,11,.55); opacity: 0; transition: opacity .4s var(--ease); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal.is-open .modal__scrim { opacity: 1; }
.modal__panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92svh; overflow-y: auto;
  background: var(--paper); color: var(--ink); border-radius: 22px 22px 0 0; padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .55s var(--ease);
}
@media (min-width: 720px) { .modal__panel { border-radius: 22px; padding: 2.5rem; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .55s var(--ease), opacity .35s; } }
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.modal__close:hover { background: var(--paper-2); }
.modal h2 { font-size: 2rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; margin: 1rem 0 .5rem; padding-right: 2rem; }
.modal .sub { color: var(--stone-500); font-size: .95rem; margin-bottom: 1.75rem; }
.form { display: grid; gap: .9rem; }
.form__row { display: grid; gap: .9rem; }
@media (min-width: 520px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .8rem; color: var(--stone-600); }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 1rem; border-radius: 10px; border: 0; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s; font-size: 1rem; appearance: none;
}
.field textarea { height: 96px; padding: .8rem 1rem; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2367645b' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.consent { display: flex; gap: .7rem; align-items: start; font-size: .8rem; color: var(--stone-500); line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.form__note { font-size: .75rem; color: var(--stone-400); text-align: center; }
.form-success { display: none; text-align: left; padding: 1rem 0; }
.form-success.is-shown { display: block; }
.form-success h3 { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.035em; margin: 1rem 0 .5rem; }
.form-success p { color: var(--stone-500); }
.check-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--olive); color: var(--paper); display: grid; place-items: center; }

/* ---------- 28. Motion utilities ---------- */
/* Headlines rise word by word */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.split.is-in .w > span { transform: none; }

/* Staggered groups */
.stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--si, 0) * 60ms + .1s); }
.stagger.is-in > * { opacity: 1; transform: none; }
.hero__rows.stagger > * { transition-delay: calc(var(--si, 0) * 90ms + 1.2s); }
.hero .stagger > * { opacity: 1; transform: none; animation: fadeUp .8s var(--ease) both; animation-delay: calc(var(--si, 0) * 100ms + 1.1s); }

/* Images: mask wipe plus a slow settle */
.reveal-mask picture { transform: scale(1.14); transition: transform 2.2s var(--ease); }
.reveal-mask.is-in picture { transform: none; }

/* Pillar icons draw themselves */
.pillar__icon path, .pillar__icon circle { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .25s; }
.pillar.is-in .pillar__icon path, .pillar.is-in .pillar__icon circle { stroke-dashoffset: 0; }

/* Footer wordmark wipes in */
.footer__word img { clip-path: inset(0 100% 0 0); transition: clip-path 2s var(--ease-in-out); }
.footer__word.is-in img { clip-path: inset(0 0 0 0); }

/* Product settles as you scroll */
.product-wrap .app { transform-origin: 50% 0; will-change: transform; }

/* Hero card: markers travel into place, card follows the pointer */
.hero__card { transition: transform .8s var(--ease); will-change: transform; }
.hero__bar i { animation: markIn 1.6s var(--ease) 1.2s both; }
@keyframes markIn { from { left: 50%; opacity: 0; } }

/* Buttons: magnetic follow eases back */
.btn { transition: transform .5s var(--ease), background-color .3s, color .3s, box-shadow .3s; }

/* Eyebrow dot breathes */
.eyebrow::before { animation: eyePulse 3s ease-in-out infinite; }
@keyframes eyePulse { 50% { opacity: .35; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-mask > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-in-out); }
.reveal-mask.is-in > * { clip-path: inset(0 0 0 0); }
.no-js .reveal, .no-js .reveal-mask > * { opacity: 1; transform: none; clip-path: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-mask > * { clip-path: none; }
  .split .w > span, .stagger > * { transform: none !important; opacity: 1 !important; }
  .footer__word img { clip-path: none; }
  .reveal-mask picture { transform: none; }
  [data-parallax] img { transform: none !important; height: 100% !important; }
}

/* ---------- 29. Print ---------- */
@media print {
  .nav, .sticky-cta, .modal, .menu, .region-pop { display: none !important; }
  .theme-dark, .hero, .editorial, .footer { background: #fff !important; color: #000 !important; }
}

/* ==========================================================================
   HUMN Journal - index + article pages
   ========================================================================== */
.page-light main { padding-top: var(--nav-h); }
.j-head { padding-block: clamp(4rem, 3rem + 5vw, 8rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.j-head__grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 960px) { .j-head__grid { grid-template-columns: 8fr 4fr; gap: var(--gutter); } }
.j-head h1 { max-width: 13ch; margin-top: 1.5rem; }
.j-head__meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); display: grid; gap: .4rem; }
@media (min-width: 960px) { .j-head__meta { justify-self: end; text-align: right; } }

.j-filters { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.j-filters::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 1rem; border-radius: 999px; font-size: .88rem; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s, color .25s, box-shadow .25s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--fg); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }

.j-feature { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: var(--paper); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); isolation: isolate; }
@media (min-width: 900px) { .j-feature { grid-template-columns: 7fr 5fr; min-height: 520px; } }
.j-feature__media { position: relative; overflow: hidden; min-height: 280px; }
.j-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.j-feature:hover .j-feature__media img { transform: scale(1.04); }
.j-feature__body { padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); display: flex; flex-direction: column; gap: 1.25rem; }
.j-feature__body h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.j-feature__body p { color: var(--stone-300); }
.j-feature__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid rgba(245,242,236,.12); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-400); }

.j-grid { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .j-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .j-grid { grid-template-columns: repeat(3, 1fr); } }
.j-card { background: var(--bg); padding: 2rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 1rem; min-height: 320px; transition: background .35s var(--ease); position: relative; }
@media (min-width: 700px) { .j-card { padding: 2.25rem 2rem 2rem; } }
.j-card:hover { background: var(--white); }
.j-card__top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.j-card__top .cat { display: inline-flex; align-items: center; gap: .5rem; color: var(--fg-2); }
.j-card__top .cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.j-card h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; margin-top: 1.25rem; text-wrap: balance; }
.j-card p { color: var(--fg-2); font-size: .93rem; }
.j-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.j-card__foot svg { transition: transform .45s var(--ease); color: var(--fg); }
.j-card:hover .j-card__foot svg { transform: translateX(4px); color: var(--ember); }
.j-card a::after { content: ""; position: absolute; inset: 0; }
.j-card a:focus-visible { outline: none; }
.j-card:has(a:focus-visible) { outline: 2px solid var(--ember); outline-offset: -2px; }

/* Article */
.a-head { padding-block: clamp(3.5rem, 2.5rem + 4vw, 7rem) clamp(2.5rem, 2rem + 2vw, 4rem); border-bottom: 1px solid var(--line); }
.a-crumb { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.a-crumb a:hover { color: var(--fg); }
.a-crumb .sep { opacity: .5; }
.a-head h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5.5rem); font-weight: 500; letter-spacing: -0.048em; line-height: .98; max-width: 18ch; margin-top: 1.75rem; text-wrap: balance; }
.a-head .lead { margin-top: 1.75rem; max-width: 40rem; }
.a-meta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }

.a-layout { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); padding-block: clamp(3rem, 2rem + 3vw, 5.5rem); }
@media (min-width: 1024px) { .a-layout { grid-template-columns: 4fr 8fr; } }
.a-aside { display: grid; gap: 0; align-content: start; }
@media (min-width: 1024px) { .a-aside { position: sticky; top: calc(var(--nav-h) + 2rem); } }
.a-stat { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.a-stat:last-child { border-bottom: 1px solid var(--line); }
.a-stat strong { display: block; font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.a-stat:first-child strong { color: var(--ember); }
.a-stat span { display: block; margin-top: .5rem; font-size: .85rem; color: var(--fg-3); max-width: 28ch; }
@media (min-width: 600px) and (max-width: 1023px) { .a-aside { grid-template-columns: repeat(3, 1fr); column-gap: 1.5rem; } .a-stat:last-child { border-bottom: 0; } }

.prose { max-width: 42rem; font-size: 1.125rem; line-height: 1.7; color: var(--stone-700); }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: clamp(1.4rem, 1.25rem + .6vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; color: var(--ink); margin-top: 2.75rem; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose em { font-style: italic; }
.prose ul { display: grid; gap: .65rem; }
.prose li { position: relative; padding-left: 1.5rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: .78em; width: .65rem; height: 1.5px; background: var(--ember); }
.prose > p:first-child { font-size: 1.25rem; line-height: 1.6; color: var(--ink); letter-spacing: -0.01em; }

.a-humn { margin-top: 3rem; max-width: 42rem; border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); padding: clamp(1.5rem, 1.25rem + 1.5vw, 2.25rem); display: grid; gap: 1rem; }
.a-humn p { color: var(--stone-200); }
.a-humn .eyebrow { color: var(--stone-400); }
.a-humn .link { color: var(--paper); justify-self: start; }

.a-source { margin-top: 3rem; max-width: 42rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.6; color: var(--fg-3); }
.a-source .lbl { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; margin-right: .5rem; }
.a-source a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.a-source a:hover { text-decoration-color: currentColor; }
.a-source small { display: block; margin-top: .35rem; font-size: .75rem; }

.a-related h2 { margin-bottom: 2rem; }

/* E-book: discreet strip at the end of the Journal */
.j-ebook { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap; padding: .9rem 1.25rem .9rem .9rem; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; color: var(--fg-2); }
.j-ebook p { flex: 1; min-width: 14rem; }
.j-ebook strong { color: var(--fg); font-weight: 500; }
.j-ebook p span { color: var(--fg-3); }
.j-ebook__cover { flex: none; width: 38px; height: 52px; border-radius: 2px 5px 5px 2px; background: var(--ink); color: var(--paper); font-size: 6px; font-weight: 500; letter-spacing: .2em; line-height: 1.3; display: flex; align-items: flex-end; padding: 0 0 7px 5px; box-shadow: inset 3px 0 0 rgba(255,255,255,.08), inset 0 -2px 0 var(--ember); }
.j-ebook .link { font-size: .9rem; color: var(--fg); }
/* Let the final card fill the row instead of leaving an empty grey cell */
@media (min-width: 700px) and (max-width: 1099px) { .j-grid > .j-card:last-child:nth-child(odd) { grid-column: span 2; } }
@media (min-width: 1100px) {
  .j-grid > .j-card:last-child:nth-child(3n+1) { grid-column: span 3; }
  .j-grid > .j-card:last-child:nth-child(3n+2) { grid-column: span 2; }
}

/* ---------- Legal pages ---------- */
.l-toc__lbl { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); padding-bottom: 1rem; }
.l-toc ol { border-top: 1px solid var(--line); }
.l-toc li a { display: grid; grid-template-columns: 2.25rem 1fr; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--fg-2); transition: color .2s, padding .3s; }
.l-toc li a span { font-family: var(--font-mono); font-size: .68rem; color: var(--ember); padding-top: .2em; }
.l-toc li a:hover { color: var(--fg); padding-left: .35rem; }
.l-toc__more { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; font-size: .9rem; }
@media (max-width: 1023px) { .l-toc ol { display: none; } .l-toc { grid-template-columns: 1fr !important; } .l-toc__lbl { display: none; } .l-toc__more { margin-top: 0; } }
.l-prose { font-size: 1.05rem; }
.l-prose section { scroll-margin-top: calc(var(--nav-h, 72px) + 1.5rem); }
.l-prose section + section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.l-prose h2 { margin-top: 0; display: flex; gap: 1rem; align-items: baseline; }
.l-prose .l-no { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--ember); }
.l-prose section > * + * { margin-top: 1.1rem; }
.l-prose > section:first-child > p:first-of-type { font-size: inherit; color: inherit; }
.l-prose .link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
