/* Cosmium website styles. Tokens: spec §2. */
:root {
  --ink-950: #04161A;
  --ink-900: #072227;
  --ink-800: #0B3138;
  --teal-700: #0B4F5C;
  --teal-600: #0E7C86;
  --aqua-300: #8EE3D8;
  --aqua-100: #DDF5F1;
  --gold-500: #E2A21A;
  --coral-500: #E5674E;
  --slate-500: #6B7F84;
  --paper: #F4F7F6;
  --white: #FFFFFF;
  --text-on-dark: #E8F1F0;
  --muted-on-dark: #9DB3B5;
  --text-on-light: #0A1F24;
  --muted-on-light: #4F676C;

  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(3.2rem, 8vw, 7.5rem);
  --fs-h2: clamp(2.2rem, 4.6vw, 4.2rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --container: 1240px;
  --pad-x: clamp(16px, 4vw, 40px);
  --section-y: clamp(96px, 14vh, 180px);
  --r-card: 20px;
  --r-img: 16px;
  --r-pill: 999px;
  --border-dark: rgba(255, 255, 255, .08);
  --border-light: rgba(10, 31, 36, .08);
  --header-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html:not(.anim) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--ink-950); color: var(--text-on-dark);
  font-family: var(--font-ui); font-size: var(--fs-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--aqua-300); outline-offset: 2px; border-radius: 4px; }
.theme-light :focus-visible, .site-header.is-light :focus-visible { outline-color: var(--teal-600); }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200; padding: 12px 18px; border-radius: 10px;
  background: var(--aqua-300); color: var(--ink-950); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-ui); font-weight: 500; font-size: .75rem; line-height: 1.4;
  text-transform: uppercase; letter-spacing: .22em; color: var(--aqua-300); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; }
.eyebrow--center { display: flex; justify-content: center; }
.theme-light .eyebrow { color: var(--teal-600); }
.h2 {
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); line-height: 1.02;
  letter-spacing: -.01em; max-width: 18ch; text-wrap: balance;
}
.theme-light .h2 { color: var(--teal-700); }
.h3 { font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; }
.lead { margin-top: 24px; max-width: 60ch; color: var(--muted-on-dark); }
.theme-light .lead { color: var(--muted-on-light); }
.small { font-size: var(--fs-small); }
.footnote { font-size: var(--fs-small); color: var(--muted-on-dark); margin-top: 28px; max-width: 70ch; }
.theme-light .footnote { color: var(--muted-on-light); }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.theme-dark { color: var(--text-on-dark); }
.theme-light { color: var(--text-on-light); }
.bg-950 { background: var(--ink-950); }
.bg-900 { background: var(--ink-900); }
.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }
/* gradient blend, now used only dark-to-dark; dark/light seams are crisp (spec 2.4) */
.blend-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none;
  background: linear-gradient(to bottom, var(--blend-from), transparent);
}
.blend-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: linear-gradient(to top, var(--blend-to), transparent);
}
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--aqua-300); --fg: var(--ink-950);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: var(--r-pill); border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 500; font-size: 1rem; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s;
}
.btn .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary:hover { background: color-mix(in srgb, var(--bg), white 6%); }
.theme-light .btn--primary { --bg: var(--teal-600); --fg: var(--white); }
.btn--ghost { background: transparent; color: var(--text-on-dark); border-color: rgba(232, 241, 240, .4); }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); border-color: rgba(232, 241, 240, .7); }
.btn--sm { height: 44px; padding: 0 20px; font-size: .9375rem; }

/* ---------- Status pill ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--gold-500); color: var(--gold-500); font-size: .75rem; font-weight: 500; line-height: 1.3;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); flex: none; position: relative; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }
.is-static .dot::after { animation: none; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .4s;
  background-repeat: repeat; background-size: 128px 128px;
}
.grain.is-on { opacity: .05; }

/* ---------- Header 5.1 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: transform .45s var(--ease-out), background-color .3s, border-color .3s, color .3s;
  border-bottom: 1px solid transparent; color: var(--text-on-dark);
}
.site-header.is-scrolled {
  background: rgba(4, 22, 26, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--border-dark);
}
.site-header.is-scrolled.is-light {
  background: rgba(244, 247, 246, .78); border-bottom-color: var(--border-light); color: var(--text-on-light);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; position: relative; width: 40px; height: 40px; flex: none; margin-right: auto; border-radius: 4px; }
.brand .logo { position: absolute; inset: 0; width: 40px; height: 40px; object-fit: contain; transform: scale(1.5); transition: opacity .3s; }
.logo--black { opacity: 0; }
.site-header.is-light .logo--white { opacity: 0; }
.site-header.is-light .logo--black { opacity: 1; }
.nav-list { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav-list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-size: .9375rem; font-weight: 500; opacity: .86; transition: opacity .2s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-list a:hover, .nav-list a.is-active { opacity: 1; }
.nav-list a.is-active::after, .nav-list a:hover::after { transform: scaleX(1); }
.site-header.is-light .nav-cta { --bg: var(--teal-600); --fg: var(--white); }
.menu-toggle, .menu-close {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; border-radius: 8px;
}
.menu-toggle span, .menu-close span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; }
.menu-toggle span:first-child { top: 17px; } .menu-toggle span:last-child { top: 26px; }
.menu-close span { top: 21px; } .menu-close span:first-child { transform: rotate(45deg); } .menu-close span:last-child { transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 150; background: var(--ink-950); color: var(--text-on-dark); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner { min-height: 100%; display: flex; flex-direction: column; padding-bottom: 40px; }
.mobile-menu-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-top .logo { width: 40px; height: 40px; transform: scale(1.5); }
.menu-close { display: block; }
.mobile-links { margin: 32px 0 40px; }
.mobile-links a {
  display: block; padding: 8px 0; font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 1.1; text-decoration: none; border-bottom: 1px solid var(--border-dark);
}
.mobile-menu .btn { align-self: flex-start; }
@media (max-width: 1023px) {
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Hero 5.2 ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  background: var(--ink-950); display: flex; align-items: center;
}
.static-flag .hero { height: 900px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0, 0, 0, .55) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: var(--header-h); padding-bottom: 88px; }
.hero-title {
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h1); line-height: .95;
  letter-spacing: -.02em; color: var(--text-on-dark); margin: 4px 0 28px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line-inner { display: block; }
.hero-title em { color: var(--aqua-300); }
.hero-sub { max-width: 38rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 40px; }
.hero-trust { margin-top: 16px; font-size: var(--fs-small); color: var(--muted-on-dark); max-width: 44rem; }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-on-dark);
}
.scroll-cue i { display: block; width: 1px; height: 44px; background: rgba(142, 227, 216, .2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--aqua-300); animation: cue 2.2s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.site-header.is-scrolled ~ main .scroll-cue { opacity: 0 !important; transition: opacity .4s; }
.is-static .scroll-cue i::after { animation: none; transform: none; opacity: .5; }
/* pre-hidden states only while animation mode is active */
.anim .hero-title .line-inner { transform: translateY(110%); }
.anim .hero-fade { opacity: 0; }
@media (max-height: 760px) and (min-width: 768px) { .hero-actions { margin: 28px 0 28px; } .scroll-cue { display: none; } }

/* ---------- Trust bar 5.2b ---------- */
.trust { background: var(--ink-950); padding: 28px 0 36px; position: relative; }
.trust .eyebrow { color: var(--muted-on-dark); margin-bottom: 22px; }
.trust-viewport { display: flex; justify-content: center; overflow: hidden; }
.trust-track { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 72px); padding: 0 var(--pad-x); flex: none; }
.trust-track--dup { display: none; }
.trust-track img {
  height: 52px; width: auto; filter: brightness(0) invert(1); opacity: .72; transition: opacity .25s;
}
.trust-track img.logo-sib { height: 30px; }
@media (max-width: 767px) { .trust-track img { height: 40px; } .trust-track img.logo-sib { height: 24px; } }
.trust-track li:hover img { opacity: 1; }
.dbt-mark {
  display: block; font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em;
  line-height: 1.35; color: var(--text-on-dark); opacity: .72; white-space: nowrap;
}
@media (max-width: 899px) {
  .trust-viewport { justify-content: flex-start; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .trust-track { justify-content: flex-start; padding: 0 calc(clamp(28px, 5vw, 72px) / 2); animation: marquee 28s linear infinite; }
  .trust-track--dup { display: flex; }
  .trust-viewport:hover .trust-track, .trust-viewport:focus-within .trust-track { animation-play-state: paused; }
  .is-static .trust-viewport { flex-wrap: wrap; justify-content: center; mask-image: none; -webkit-mask-image: none; }
  .is-static .trust-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 20px; flex: 1 1 100%; }
  .is-static .trust-track--dup { display: none; }
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Problem 5.3 ---------- */
.problem { background: var(--ink-900); }
.problem .blend-top::before { --blend-from: var(--ink-950); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--border-dark); padding-top: 40px; }
.stat-num { font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--text-on-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 14px; font-weight: 600; }
.stat-note { font-size: var(--fs-small); color: var(--muted-on-dark); }
.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(64px, 8vw, 104px); }
.pain { position: relative; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink-800); isolation: isolate; }
.pain img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.85); transform-origin: 50% 50%; }
.pain::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(14, 124, 134, .35), rgba(120, 90, 50, .22)); mix-blend-mode: color; pointer-events: none; }
.pain figcaption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 64px 20px 20px;
  background: linear-gradient(to top, rgba(4, 22, 26, .92), rgba(4, 22, 26, 0)); font-weight: 500; line-height: 1.4;
}
.closing { margin: clamp(80px, 11vw, 150px) auto 0; max-width: 22ch; text-align: center; font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.12; text-wrap: balance; }
.closing .w { opacity: 1; }
.anim .closing .w { opacity: .15; }
@media (max-width: 1023px) { .pains { grid-template-columns: repeat(2, 1fr); } .pain { aspect-ratio: 4 / 3; } }
@media (max-width: 767px) {
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .stat-num { font-size: 4rem; }
  .pains { grid-template-columns: 1fr; }
}

/* ---------- Folli-Pro 5.4 ---------- */
.product { background: var(--ink-950); overflow: hidden; }
.product-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.product-head .status-pill { margin-top: 24px; }
.product-head .lead { margin-top: 0; }
.stage { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.stage-inner {
  position: relative; display: grid; grid-template-columns: 1fr minmax(0, 520px) 1fr; gap: 32px; align-items: center;
  min-height: min(760px, 100vh); padding: 40px 0;
}
.device-wrap { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.glow { position: absolute; inset: -20% -15%; background: radial-gradient(closest-side, rgba(142, 227, 216, .18), transparent); pointer-events: none; }
.device { position: relative; }
.device img { width: 100%; max-width: 560px; }
.sweep {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: url(../assets/img/folli-pro-device.webp) center / contain no-repeat; mask: url(../assets/img/folli-pro-device.webp) center / contain no-repeat;
}
.sweep::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: 0;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(var(--sweep, -120%)) skewX(-12deg);
}
.reflection { position: relative; margin-top: -14%; opacity: .12; transform: scaleY(-1); pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 45%); mask-image: linear-gradient(to top, #000 0%, transparent 45%); }
.reflection img { width: 100%; max-width: 560px; }
.implanter { position: absolute; right: -14%; bottom: 4%; width: 58%; z-index: 2; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .45)); }
.callouts { display: contents; }
.stage-inner { grid-template-rows: repeat(5, auto); row-gap: 12px; }
.device-wrap { grid-column: 2; grid-row: 1 / span 5; }
.callout { position: relative; max-width: 290px; grid-row: var(--row); }
.callout--left { grid-column: 1; margin-left: auto; text-align: right; }
.callout--right { grid-column: 3; }
.callout .ic { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border-dark); display: grid; place-items: center; background: rgba(142, 227, 216, .06); margin-bottom: 14px; }
.callout--left .ic { margin-left: auto; }
.ic svg { width: 22px; height: 22px; fill: none; stroke: var(--aqua-300); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.callout h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.callout p { margin-top: 6px; color: var(--muted-on-dark); font-size: .9375rem; line-height: 1.55; }
.leader { position: absolute; top: 20px; width: 72px; height: 2px; overflow: visible; }
.callout--left .leader { left: calc(100% + 12px); }
.callout--right .leader { right: calc(100% + 12px); }
.leader line { stroke: var(--aqua-300); stroke-width: 1; stroke-opacity: .6; }
.leader circle { fill: var(--aqua-300); }
.product .footnote { text-align: center; margin: 8px auto 0; }
.components { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(56px, 7vw, 88px); }
.comp-card { border: 1px solid var(--border-dark); border-radius: var(--r-card); padding: 32px; background: linear-gradient(180deg, rgba(11, 49, 56, .6), rgba(11, 49, 56, .2)); display: grid; grid-template-columns: 1fr 160px; gap: 20px; align-items: center; }
.comp-card p { margin-top: 10px; color: var(--muted-on-dark); }
.comp-card img { width: 160px; }
@media (max-width: 1023px) {
  .product-head { grid-template-columns: 1fr; gap: 24px; }
  .stage-inner { display: block; min-height: 0; padding: 0; }
  .device-wrap { max-width: 480px; }
  .implanter { right: -4%; width: 50%; }
  .callouts { display: block; margin-top: 8px; }
  .callout, .callout--left { max-width: none; margin: 0; text-align: left; display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding: 22px 0; border-top: 1px solid var(--border-dark); }
  .callout .ic, .callout--left .ic { margin: 0; grid-row: span 2; }
  .leader { display: none; }
  .components { grid-template-columns: 1fr; }
  .product .footnote { text-align: left; }
}
@media (max-width: 520px) { .comp-card { grid-template-columns: 1fr; } .comp-card img { width: 200px; } }

/* ---------- How it works 5.5 ---------- */
.how { background: var(--paper); }
.how.blend-top::before { content: none; } /* dark/light seam: crisp edge (spec 2.4, round 2) */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.steps-line { position: absolute; left: 0; right: 0; top: 52px; height: 1px; background: rgba(14, 124, 134, .18); }
.steps-line i { position: absolute; inset: 0; background: var(--teal-600); transform-origin: left; }
.anim .steps-line i { transform: scaleX(0); }
.step { position: relative; }
.step-num { font-family: var(--font-display); font-size: 6.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--teal-600); background: var(--paper); display: inline-block; padding-right: 16px; position: relative; }
.step-art { width: 100%; max-width: 260px; height: 150px; margin: 24px 0; }
.step-art * { fill: none; stroke: var(--teal-600); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step-art .fill { fill: var(--teal-600); stroke: none; }
.step-art .soft { stroke-opacity: .4; }
.step h3 { color: var(--teal-700); }
.step p { margin-top: 10px; color: var(--muted-on-light); }
.example { margin-top: clamp(48px, 6vw, 72px); font-size: var(--fs-small); color: var(--muted-on-light); display: flex; gap: 10px; align-items: flex-start; max-width: 70ch; }
.example svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--muted-on-light); stroke-width: 1.5; }
@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps-line { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; display: none; }
}

/* ---------- Technology 5.6 ---------- */
.tech { background: var(--ink-900); }
.tech.blend-top::before { content: none; } /* dark/light seam: crisp edge (spec 2.4, round 2) */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.graft { position: relative; width: 100%; max-width: 440px; aspect-ratio: 440 / 560; margin-top: 48px; }
.graft svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-part { transition: opacity .35s, stroke .35s, fill .35s; }
.graft .g-lead { stroke: rgba(157, 179, 181, .45); stroke-width: 1; transition: stroke .3s; }
.graft-label {
  position: absolute; transform: translateY(-50%); background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-size: .8125rem; font-weight: 500; letter-spacing: .02em; color: var(--muted-on-dark); text-align: left; line-height: 1.25;
  transition: color .3s; min-height: 32px; max-width: 32%;
}
.graft-label--left { text-align: right; transform: translate(-100%, -50%); }
.graft-label.is-on { color: var(--text-on-dark); }
.graft-label--warn, .graft-label--warn.is-on { color: var(--coral-500); }
.graft[data-active] .g-part { opacity: .45; }
.graft[data-active="epidermis"] .p-epidermis,
.graft[data-active="sebaceous"] .p-sebaceous,
.graft[data-active="perifollicular"] .p-perifollicular,
.graft[data-active="bulb"] .p-bulb,
.graft[data-active="transection"] .p-transection { opacity: 1; }
.graft[data-active="perifollicular"] .p-perifollicular { stroke: var(--aqua-300); stroke-opacity: 1; }
.graft .g-lead.is-on { stroke: var(--aqua-300); }
.graft .g-lead.warn { stroke: var(--coral-500); }
.sorter {
  position: relative; border: 1px solid var(--border-dark); border-radius: var(--r-card); background: var(--ink-950);
  overflow: hidden; height: 520px;
}
.sorter-row { position: absolute; left: 24px; right: 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border-dark); padding-top: 12px; }
.sorter-row .g-name { font-weight: 600; font-size: .9375rem; display: flex; align-items: center; gap: 10px; }
.sorter-row .g-name i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sorter-row .g-desc { color: var(--muted-on-dark); font-size: var(--fs-small); margin-left: 4px; font-weight: 400; }
.sorter-row .g-count { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.strand { position: absolute; left: 0; top: 0; width: 10px; height: 44px; will-change: transform; }
.strand path { fill: none; stroke-width: 1.4; stroke-linecap: round; }
.sorter-caption { margin-top: 14px; font-size: var(--fs-small); color: var(--muted-on-dark); }
.proofs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--border-dark); padding-top: 40px; }
.proof-num { font-family: var(--font-display); font-size: clamp(3.4rem, 6vw, 5rem); line-height: 1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tag { font-family: var(--font-ui); font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-pill); border: 1px solid var(--gold-500); color: var(--gold-500); line-height: 1.2; }
.proof p { margin-top: 12px; color: var(--muted-on-dark); max-width: 40ch; }
@media (max-width: 1023px) {
  .tech-grid { grid-template-columns: 1fr; }
  .graft { margin: 40px auto 0; }
}
@media (max-width: 767px) { .proofs { grid-template-columns: 1fr; } .sorter { height: 460px; } }

/* ---------- Why it matters 5.7 ---------- */
.impact { background: var(--white); }
.impact.blend-top::before { content: none; } /* dark/light seam: crisp edge (spec 2.4, round 2) */
.impact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.impact-card { border: 1px solid var(--border-light); border-radius: var(--r-card); padding: clamp(28px, 3.4vw, 44px); background: var(--white); transition: transform .3s var(--ease-out), box-shadow .3s; }
.impact-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(10, 31, 36, .25); }
.impact-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.1; color: var(--teal-700); }
.impact-card p { margin-top: 12px; color: var(--muted-on-light); }
.impact .lead { margin: 0 0 40px; }
.compare { margin-top: clamp(72px, 9vw, 120px); }
.compare-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--teal-700); margin-bottom: 28px; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border-light); border-radius: var(--r-card); }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; font-size: .9375rem; }
caption { text-align: left; padding: 18px 20px; color: var(--muted-on-light); font-size: var(--fs-small); caption-side: bottom; border-top: 1px solid var(--border-light); }
th, td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-light); }
thead th { font-weight: 600; color: var(--teal-700); font-size: .875rem; }
tbody th { font-weight: 500; color: var(--text-on-light); background: var(--white); }
td { color: var(--muted-on-light); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.col-fp { background: var(--aqua-100); color: var(--teal-700); font-weight: 700; }
thead .col-fp { font-weight: 700; }
.table-hint { display: none; }
@media (max-width: 767px) {
  .impact-cards { grid-template-columns: 1fr; }
  table th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--border-light); }
  .table-hint { display: block; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 40px; pointer-events: none; border-radius: 0 var(--r-card) var(--r-card) 0; background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff); }
  .compare-box { position: relative; }
}

/* ---------- Progress 5.8 ---------- */
.progress { background: var(--paper); }
.timeline { position: relative; }
.tl-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(14, 124, 134, .18); }
.tl-line i { position: absolute; inset: 0; background: var(--teal-600); transform-origin: top; }
.anim .tl-line i { transform: scaleY(0); }
.tl-item { position: relative; width: 50%; padding: 0 56px 64px 0; }
.tl-item:nth-child(odd of .tl-item) { margin-left: 0; text-align: right; }
.tl-item:nth-child(even of .tl-item) { margin-left: 50%; padding: 0 0 64px 56px; }
.tl-dot { position: absolute; top: 6px; right: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--teal-600); }
.tl-item:nth-child(even of .tl-item) .tl-dot { right: auto; left: -7px; }
.tl-item h3 { color: var(--teal-700); }
.tl-item p { margin-top: 6px; color: var(--muted-on-light); }
.tl-media { margin-top: 18px; display: grid; gap: 12px; grid-template-columns: 1fr; }
.tl-media--2 { grid-template-columns: 1fr 1fr; }
.tl-item:nth-child(odd of .tl-item) .tl-media { justify-items: end; }
.tl-media img { border-radius: var(--r-img); width: 100%; max-width: 420px; object-fit: cover; filter: grayscale(.6); transition: filter 1.2s ease; }
.tl-media img.in-colour, .is-static .tl-media img { filter: none; }
.tl-media--2 img { aspect-ratio: 3 / 4; }
.tl-media--row { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.tl-media--row img { aspect-ratio: 4 / 3; }
.now-card { position: relative; margin: 8px auto 0; max-width: 620px; background: var(--white); border: 1px solid var(--border-light); border-left: 3px solid var(--gold-500); border-radius: var(--r-card); padding: 32px 36px; }
.now-card h3 { display: flex; align-items: center; gap: 12px; color: var(--teal-700); }
.now-card ul { margin-top: 16px; display: grid; gap: 10px; }
.now-card li { position: relative; padding-left: 22px; color: var(--text-on-light); }
.now-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--gold-500); }
@media (max-width: 767px) {
  .tl-line { left: 7px; }
  .tl-item, .tl-item:nth-child(odd of .tl-item), .tl-item:nth-child(even of .tl-item) { width: 100%; margin-left: 0; padding: 0 0 48px 40px; text-align: left; }
  .tl-dot, .tl-item:nth-child(even of .tl-item) .tl-dot { left: 0; right: auto; }
  .tl-item:nth-child(odd of .tl-item) .tl-media { justify-items: start; }
}

/* ---------- Roadmap 5.9 ---------- */
.roadmap { background: var(--ink-900); overflow: hidden; }
.roadmap.blend-top::before { content: none; } /* dark/light seam: crisp edge (spec 2.4, round 2) */
.rm-pin { position: relative; }
.rm-viewport { position: relative; }
.rm-track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; padding-top: 56px; }
.rm-line { position: absolute; top: 16px; left: 0; right: 0; height: 2px; }
.rm-line .done { position: absolute; left: 0; top: 0; height: 2px; background: var(--gold-500); width: var(--done, 20%); }
.rm-line .rest { position: absolute; right: 0; top: 0; height: 2px; left: var(--done, 20%); background: repeating-linear-gradient(90deg, var(--slate-500) 0 8px, transparent 8px 16px); }
.rm-marker { position: absolute; top: 0; left: var(--done, 20%); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.rm-marker .dot { width: 14px; height: 14px; margin-top: 10px; box-shadow: 0 0 0 4px var(--ink-900); }
.rm-marker span { font-size: .75rem; font-weight: 600; color: var(--gold-500); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; background: var(--ink-900); padding: 2px 8px; border-radius: var(--r-pill); }
.rm-card { position: relative; border: 1px solid var(--border-dark); border-radius: var(--r-card); padding: 28px; background: linear-gradient(180deg, rgba(11, 49, 56, .7), rgba(11, 49, 56, .25)); }
.rm-card.is-current { border-color: rgba(226, 162, 26, .5); }
.rm-meta { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua-300); }
.rm-card h3 { margin-top: 12px; font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.rm-card ul { margin-top: 16px; display: grid; gap: 8px; }
.rm-card li { position: relative; padding-left: 16px; font-size: .9375rem; line-height: 1.5; color: var(--muted-on-dark); }
.rm-card li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 1px; background: var(--aqua-300); }
.rm-marker--mobile { display: none; }
.reg-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.reg-strip li { border: 1px solid var(--border-dark); border-radius: var(--r-pill); padding: 10px 18px; font-size: var(--fs-small); color: var(--text-on-dark); background: rgba(11, 49, 56, .5); }
/* desktop horizontal mode (JS adds .is-horizontal only when pinning) */
.roadmap.is-horizontal .rm-viewport { overflow: visible; }
.roadmap.is-horizontal .rm-track { display: flex; width: max-content; gap: 28px; }
.roadmap.is-horizontal .rm-card { width: 400px; flex: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .rm-card { padding: 22px; } .rm-card h3 { font-size: 1.45rem; } }
@media (max-width: 1023px) {
  .rm-track { grid-template-columns: 1fr; padding-top: 0; gap: 16px; padding-left: 32px; }
  .rm-line { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .rm-line .done { width: 2px; height: var(--done-v, 0px); }
  .rm-line .rest { left: 0; right: auto; width: 2px; top: var(--done-v, 0px); bottom: 0; height: auto; background: repeating-linear-gradient(180deg, var(--slate-500) 0 8px, transparent 8px 16px); }
  .rm-marker--desk { display: none; }
  .rm-marker--mobile { display: flex; position: relative; left: -32px; transform: none; flex-direction: row; gap: 14px; margin: 4px 0; }
  .rm-marker--mobile .dot { margin: 0 0 0 1px; }
}

/* ---------- Supported by 5.10 ---------- */
.support { background: var(--white); }
.support.blend-top::before { content: none; } /* dark/light seam: crisp edge (spec 2.4, round 2) */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.support-card { border: 1px solid var(--border-light); border-radius: var(--r-card); padding: 32px; display: flex; flex-direction: column; }
.support-logo { height: 72px; display: flex; align-items: center; margin-bottom: 28px; }
.support-logo img { max-height: 72px; width: auto; }
.support-logo img.logo-sib { max-height: 36px; }
.support-card--dbt { justify-content: center; }
.dbt-word { font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .12em; line-height: 1.4; color: var(--teal-700); }
.dbt-word span { display: block; margin-top: 6px; font-weight: 500; font-size: .85rem; color: var(--muted-on-light); }
.support-card h3 { color: var(--teal-700); }
.support-card p { margin-top: 6px; color: var(--muted-on-light); font-size: .9375rem; }
.support-card .amount { margin-top: auto; padding-top: 18px; font-family: var(--font-display); font-size: 1.6rem; color: var(--text-on-light); line-height: 1; }
@media (max-width: 1023px) { .support-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .support-grid { grid-template-columns: 1fr; } }

/* ---------- Team 5.10 ---------- */
.team { background: var(--paper); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.person { text-align: center; }
.portrait { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; background: var(--ink-800); }
.portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: grayscale(.25); transition: filter .4s; }
.person:hover .portrait img { filter: none; }
.person h3, .person h4 { font-family: var(--font-ui); font-weight: 600; font-size: 1.125rem; color: var(--text-on-light); }
.person .role { color: var(--teal-600); font-weight: 500; margin-top: 2px; }
.person .detail { margin-top: 8px; font-size: var(--fs-small); color: var(--muted-on-light); line-height: 1.55; }
.team-sub { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--teal-700); margin: clamp(64px, 8vw, 96px) 0 40px; display: flex; align-items: center; gap: 20px; }
.team-sub::after { content: ""; flex: 1; height: 1px; background: var(--border-light); }
@media (max-width: 1023px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Contact 5.11 ---------- */
.contact { background: var(--ink-950); }
.contact.blend-top::before { content: none; } /* dark/light seam: crisp edge (spec 2.4, round 2) */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.side-panel { margin-top: 48px; display: grid; gap: 24px; border-top: 1px solid var(--border-dark); padding-top: 32px; }
.side-panel dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .22em; color: var(--muted-on-dark); font-weight: 500; }
.side-panel dd { margin: 6px 0 0; font-size: 1.125rem; }
.side-panel a { text-decoration: none; border-bottom: 1px solid rgba(142, 227, 216, .4); }
.side-panel a:hover { border-color: var(--aqua-300); }
.form-card { background: var(--ink-900); border: 1px solid var(--border-dark); border-radius: var(--r-card); padding: clamp(24px, 3.6vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .875rem; font-weight: 500; }
.field .opt { color: var(--muted-on-dark); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16);
  background: var(--ink-950); color: var(--text-on-dark); transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; 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 1l5 5 5-5' fill='none' stroke='%239DB3B5' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--aqua-300); outline-offset: 2px; border-color: var(--aqua-300); }
.field [aria-invalid="true"] { border-color: var(--coral-500); }
.error { font-size: .8125rem; color: #F2937F; min-height: 0; }
.error:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .9375rem; color: var(--muted-on-dark); }
.check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--aqua-300); }
.check a { color: var(--aqua-300); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.form-status { font-size: .9375rem; }
.form-status.ok { color: var(--aqua-300); }
.form-status.err { color: #F2937F; }
[data-procedures][hidden] { display: none; }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer 5.12 ---------- */
.site-footer { background: var(--ink-950); border-top: 1px solid var(--border-dark); padding: 72px 0 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-logo { width: 56px; height: 56px; transform: scale(1.5); transform-origin: left center; }
.footer-tagline { margin-top: 16px; color: var(--muted-on-dark); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; color: var(--text-on-dark); opacity: .86; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.disclaimer { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border-dark); font-size: .8125rem; color: var(--muted-on-dark); max-width: 90ch; line-height: 1.6; }
.footer-bottom { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: .8125rem; color: var(--muted-on-dark); }
.back-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--text-on-dark); }
.back-top svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* ---------- Reveals ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- Simple pages (privacy, 404) ---------- */
.page-simple { min-height: 100vh; display: flex; flex-direction: column; }
.page-simple main { flex: 1; }
.legal { padding: calc(var(--header-h) + 72px) 0 96px; background: var(--paper); color: var(--text-on-light); }
.legal .container { max-width: calc(780px + 2 * var(--pad-x)); }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); line-height: 1.02; color: var(--teal-700); }
.legal .updated { margin-top: 12px; color: var(--muted-on-light); font-size: var(--fs-small); }
.legal h2 { font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-h3); color: var(--teal-700); margin-top: 40px; }
.legal p { margin-top: 10px; color: var(--text-on-light); }
.legal a { color: var(--teal-600); }
.nf { min-height: 100vh; display: flex; align-items: center; background: var(--ink-950); }
.nf h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h1); line-height: .95; letter-spacing: -.02em; }
.nf p { margin: 24px 0 36px; color: var(--muted-on-dark); font-size: 1.125rem; }
.header-static { position: absolute; }
.static-flag .grain { display: none; }

@media (min-width: 1024px) {
  /* keep the pinned technology scene inside short laptop windows */
  .graft { max-width: min(440px, calc((100svh - 330px) * 440 / 560)); }
}

/* privacy + 404: simple header (no menu script) */
@media (max-width: 1023px) { .site-header--simple .nav-cta { display: inline-flex; } }
.page-404 .site-header--simple { background: transparent; box-shadow: none; border-bottom-color: transparent; }
.page-legal .site-header--simple { background: var(--ink-950); }

/* tap targets: at least 44px */
.brand { width: 44px; height: 44px; }
.brand .logo { inset: 2px; }
.nav-list a { min-width: 44px; justify-content: center; }
.graft-label { min-height: 44px; padding: 10px 0; }
.side-panel a { position: relative; }
.side-panel a::before { content: ""; position: absolute; inset: -11px 0; }

/* Problem card 4 reuses card 1's photo: mirrored, tighter crop (round 2) */
.pain--mirror img { transform: scaleX(-1) scale(1.35); }
