/* ==========================================================================
   Solvara Implant Clinic — demonstration website
   A Work Covered demonstration concept. Porcelain daylight pages, deep navy
   rooms, one azure accent and a single warm "sol" dot in the mark.
   Motion: transforms and opacity only. Every state reads without motion.
   ========================================================================== */

/* ---------- Self-hosted variable fonts (OFL) ---------- */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations"), url("../assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/hanken-grotesk-latin-wght-italic.woff2") format("woff2-variations"), url("../assets/fonts/hanken-grotesk-latin-wght-italic.woff2") format("woff2"); }
/* Fraunces is used only inside the unchanged scripted voice demonstration (see the compatibility block at the end). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/fraunces-latin-full-normal.woff2") format("woff2-variations"), url("../assets/fonts/fraunces-latin-full-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/fraunces-latin-full-italic.woff2") format("woff2-variations"), url("../assets/fonts/fraunces-latin-full-italic.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy-950: #060c17;
  --navy-900: #0a1324;
  --navy-850: #0e1a2f;
  --navy-800: #13223b;
  --navy-700: #1c3050;
  --navy-600: #2a4468;
  --blue-700: #1d4f9f;
  --blue-600: #2459b8;
  --blue-500: #3b74d6;
  --blue-300: #8dbcf2;
  --blue-200: #c4dcf8;
  --coral: #f07f55;
  --porcelain: #f6f7f9;
  --porcelain-2: #eceff4;
  --white: #ffffff;
  --ink: #0f1a2b;
  --ink-muted: #4f5d73;
  --on-dark: #eef3f9;
  --on-dark-muted: #a9b6c8;
  --line: rgba(15, 26, 43, 0.12);
  --line-strong: rgba(15, 26, 43, 0.22);
  --line-dark: rgba(238, 243, 249, 0.14);
  --danger: #b4322a;
  --success: #1f7a53;

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --fs-hero: clamp(2.3rem, 1.2rem + 4vw, 4.8rem);
  --fs-h1: clamp(2.3rem, 1.4rem + 3.2vw, 4.4rem);
  --fs-h2: clamp(1.95rem, 1.25rem + 2.4vw, 3.5rem);
  --fs-h3: clamp(1.2rem, 1.08rem + 0.5vw, 1.5rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.92rem;
  --fs-eyebrow: 0.75rem;

  --gutter: clamp(1rem, 5vw, 4.5rem);
  --max: 80rem;
  --measure: 64ch;
  --radius: 12px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(10, 19, 36, 0.06), 0 12px 32px rgba(10, 19, 36, 0.08);
  --shadow-lg: 0 2px 6px rgba(10, 19, 36, 0.08), 0 28px 64px rgba(10, 19, 36, 0.16);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 240ms;
  --t-med: 600ms;
  --t-slow: 1100ms;
  --header-h: 4.75rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font); font-weight: 560; line-height: 1.06; letter-spacing: -0.028em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.012em; }
h4 { font-size: 1.05rem; line-height: 1.3; letter-spacing: 0; font-weight: 650; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 650; }
em { font-style: italic; }
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-header :focus-visible, .mobile-menu :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible, .hero :focus-visible { outline-color: var(--blue-300); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--ink); padding: 0.75rem 1.1rem; border-radius: var(--radius);
  font-weight: 650; text-decoration: none; box-shadow: var(--shadow); transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem;
  font-size: var(--fs-eyebrow); font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-700);
}
.eyebrow::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--coral); flex: none; }
.on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .calls-card .eyebrow, .cta-band .eyebrow { color: var(--blue-300); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); max-width: 58ch; }
.on-dark .lead { color: var(--on-dark-muted); }
.muted { color: var(--ink-muted); }
.on-dark .muted { color: var(--on-dark-muted); }
.small { font-size: var(--fs-small); }
.note { font-size: 0.86rem; color: var(--ink-muted); }
.on-dark .note { color: var(--on-dark-muted); }
.textlink {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 650; color: var(--blue-700);
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.1rem;
}
.textlink svg { width: 1rem; height: 1rem; transition: transform var(--t-fast) var(--ease-out); }
.textlink:hover svg { transform: translateX(3px); }
.on-dark .textlink { color: var(--blue-300); }
.demo-tag {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(36, 89, 184, 0.1); color: var(--blue-700); white-space: normal;
}
.on-dark .demo-tag, .hero .demo-tag, .page-hero .demo-tag, .site-footer .demo-tag { background: rgba(141, 188, 242, 0.14); color: var(--blue-200); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(3.5rem, 7vw, 7rem); }
.section-tight { padding-block: clamp(2.25rem, 4.5vw, 3.75rem); }
.bg-mist { background: var(--porcelain-2); }
.on-dark { background: var(--navy-900); color: var(--on-dark); }
.on-dark.deep { background: var(--navy-950); }
.section-head { display: grid; gap: 1.25rem 3rem; margin-bottom: clamp(2rem, 4.5vw, 3.5rem); }
.section-head > * { min-width: 0; }
@media (min-width: 60em) { .section-head.split { grid-template-columns: 6fr 5fr; align-items: end; } }
.grid { display: grid; gap: clamp(1.75rem, 4vw, 4rem); }
.grid > * { min-width: 0; }
@media (min-width: 60em) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid-5-7 { grid-template-columns: 5fr 7fr; }
  .grid-7-5 { grid-template-columns: 7fr 5fr; }
  .grid-4-8 { grid-template-columns: 4fr 8fr; }
  .align-start { align-items: start; }
}
.stack > * + * { margin-top: var(--stack, 1.25rem); }
.sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (min-width: 60em) { .grid-4-8 > .sticky h2 { font-size: clamp(1.9rem, 1.2rem + 1.5vw, 2.75rem); } }
@media (max-width: 59.99em) { .sticky { position: static; } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-600); --btn-fg: var(--white); --btn-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.75rem 1.35rem; border-radius: 999px; border: 1px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 650; font-size: 0.98rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; transition: transform var(--t-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary:hover { --btn-bg: var(--blue-700); }
.btn-light { --btn-bg: var(--white); --btn-fg: var(--navy-900); }
.btn-light:hover { --btn-bg: var(--blue-200); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-line: rgba(238, 243, 249, 0.34); }
.btn-ghost:hover { --btn-bg: rgba(238, 243, 249, 0.1); --btn-line: rgba(238, 243, 249, 0.6); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-line: var(--line-strong); }
.btn-outline:hover { --btn-line: var(--ink); }
.btn-sm { min-height: 2.5rem; padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-lg { min-height: 3.35rem; padding: 0.9rem 1.6rem; font-size: 1.02rem; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.spinner { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.live-dot { position: relative; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--coral); flex: none; }
.motion-ok .live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--coral); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark { width: 2.2rem; height: 2.2rem; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-size: 1.32rem; font-weight: 640; letter-spacing: -0.02em; }
.brand-descriptor { margin-top: 0.28rem; font-size: 0.6rem; font-weight: 650; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.72; }
.mark-arch { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }
.mark-sol { fill: var(--coral); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-dark);
  transition: background-color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header::before { content: ""; position: absolute; inset: 0 0 -2rem; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(6, 12, 23, 0.55), rgba(6, 12, 23, 0)); transition: opacity var(--t-med); }
.site-header.is-solid { background: rgba(10, 19, 36, 0.92); border-bottom-color: var(--line-dark); -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px); }
.site-header.is-solid::before { opacity: 0; }
.site-header .wrap { min-height: var(--header-h); display: flex; align-items: center; gap: 1.1rem; }
.demo-pill {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.28rem 0.65rem; border-radius: 999px;
  border: 1px solid rgba(238, 243, 249, 0.28); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--on-dark-muted); white-space: nowrap;
}
.demo-pill:hover { color: var(--on-dark); border-color: rgba(238, 243, 249, 0.55); }
.primary-nav { display: none; margin-left: auto; gap: 0.15rem; }
.primary-nav a { padding: 0.55rem 0.75rem; border-radius: 999px; text-decoration: none; font-size: 0.94rem; font-weight: 520; color: rgba(238, 243, 249, 0.86); white-space: nowrap; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--white); background: rgba(238, 243, 249, 0.08); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.primary-nav + .header-actions { margin-left: 0.4rem; }
.call-btn .label-short { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgba(238, 243, 249, 0.3); background: transparent; cursor: pointer; flex: none; }
.menu-btn .bars { display: grid; gap: 4px; }
.menu-btn .bars i { display: block; width: 1.05rem; height: 1.5px; background: currentColor; transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (min-width: 70em) {
  .primary-nav { display: flex; }
  .menu-btn { display: none; }
}
@media (max-width: 44em) {
  .demo-pill { display: none; }
  .btn-book { display: none; }
}
@media (max-width: 30em) {
  .call-btn .label-long { display: none; }
  .call-btn .label-short { display: inline; }
}
@media (max-width: 22em) { .brand-descriptor { display: none; } }

/* Mobile menu: full panel below the header, inert when closed */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--header-h) + 1.25rem) var(--gutter) 2rem;
  background: var(--navy-900); color: var(--on-dark); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), visibility 0s linear var(--t-fast);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.mobile-menu ul { list-style: none; display: grid; }
.mobile-menu li a { display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1.35rem; font-weight: 560; letter-spacing: -0.015em; text-decoration: none; }
.mobile-menu .menu-foot { display: grid; gap: 1rem; margin-top: 2rem; }
.mobile-menu .menu-contact { font-size: 0.92rem; color: var(--on-dark-muted); }
.mobile-menu .menu-contact strong { color: var(--on-dark); }

/* ---------- Hero (retained reception film) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: var(--on-dark); }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--navy-950); }
.hero-media picture, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img, .hero-media video { object-position: 62% 40%; }
.hero-media video { opacity: 0; transition: opacity 1100ms var(--ease-out); }
.hero-media video.is-ready { opacity: 1; }
.hero-media .veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 12, 23, 0.45) 0%, rgba(6, 12, 23, 0) 26%),
    linear-gradient(0deg, rgba(6, 12, 23, 0.7) 0%, rgba(6, 12, 23, 0.18) 38%, rgba(6, 12, 23, 0) 62%);
}
.hero-dim { position: absolute; inset: 0; background: var(--navy-950); opacity: 0; pointer-events: none; }
.hero-inner { position: relative; min-height: min(100svh, 60rem); display: grid; align-items: end; padding: calc(var(--header-h) + 2rem) 0 clamp(2.25rem, 6vh, 4.5rem); }
.hero-copy { position: relative; max-width: 48rem; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem); will-change: transform, opacity; }
.hero-copy::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius-lg);
  background: radial-gradient(125% 140% at 0% 100%, rgba(6, 12, 23, 0.9) 0%, rgba(10, 19, 36, 0.8) 46%, rgba(10, 19, 36, 0.42) 76%, rgba(10, 19, 36, 0) 100%);
}
.hero-title { font-size: var(--fs-hero); font-weight: 520; line-height: 1.02; letter-spacing: -0.035em; }
.hero-title span { display: block; color: var(--blue-300); }
.hero-lead { margin-top: 1.25rem; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); color: rgba(238, 243, 249, 0.9); max-width: 34rem; }
.hero-cta { margin-top: 1.75rem; }
.hero-demo-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.25rem; font-size: 0.82rem; color: var(--on-dark-muted); }
.js.motion-ok .hero-copy > * { opacity: 0; transform: translateY(14px); animation: resolve var(--t-slow) var(--ease-out) forwards; }
.js.motion-ok .hero-copy .eyebrow { animation-delay: 700ms; }
.js.motion-ok .hero-copy .hero-title { animation-delay: 900ms; }
.js.motion-ok .hero-copy .hero-lead { animation-delay: 1150ms; }
.js.motion-ok .hero-copy .hero-cta { animation-delay: 1350ms; }
.js.motion-ok .hero-copy .hero-demo-note { animation-delay: 1550ms; }
@keyframes resolve { to { opacity: 1; transform: none; } }
@media (max-width: 59.99em) {
  .hero-inner { min-height: 0; padding: 0 0 2.75rem; display: block; }
  .hero-media { position: relative; inset: auto; z-index: 0; aspect-ratio: 9 / 10; max-height: 62svh; min-height: 20rem; width: 100%; }
  .hero-media img, .hero-media video { object-position: 50% 42%; }
  .hero-media .veil { background: linear-gradient(0deg, rgba(6, 12, 23, 1) 0%, rgba(6, 12, 23, 0.4) 24%, rgba(6, 12, 23, 0) 44%), linear-gradient(180deg, rgba(6, 12, 23, 0.55) 0%, rgba(6, 12, 23, 0) 30%); }
  .hero-copy { margin: -4.5rem var(--gutter) 0; max-width: none; padding: 0; }
  .hero-copy::before { display: none; }
}
@media (max-width: 59.99em) and (min-aspect-ratio: 1/1) { .hero-media { aspect-ratio: 16 / 9; max-height: 70svh; } }

/* ---------- Assurance strip ---------- */
.assurances { background: var(--white); border-bottom: 1px solid var(--line); }
.assurance-list { list-style: none; display: grid; grid-template-columns: 1fr; }
@media (min-width: 40em) { .assurance-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .assurance-list { grid-template-columns: repeat(4, 1fr); } }
.assurance { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.9rem; align-items: start; padding: 1.4rem 1.25rem; }
.assurance svg { grid-row: span 2; width: 1.6rem; height: 1.6rem; color: var(--blue-600); margin-top: 0.1rem; }
.assurance b { font-weight: 650; font-size: 1rem; }
.assurance span { color: var(--ink-muted); font-size: 0.92rem; line-height: 1.45; }
.assurance:first-child { padding-left: 0; }
@media (max-width: 39.99em) { .assurance { padding-inline: 0; } .assurance + .assurance { border-top: 1px solid var(--line); } }
@media (min-width: 40em) and (max-width: 63.99em) { .assurance:nth-child(odd) { padding-left: 0; } .assurance:nth-child(even) { border-left: 1px solid var(--line); } .assurance:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (min-width: 64em) { .assurance + .assurance { border-left: 1px solid var(--line); } }

/* ---------- Media frames ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--porcelain-2); margin: 0; }
.on-dark .frame { background: var(--navy-800); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.landscape { aspect-ratio: 3 / 2; }
.frame.portrait { aspect-ratio: 4 / 5; }
.frame.wide { aspect-ratio: 21 / 9; }
.frame .caption {
  position: absolute; left: 0.9rem; bottom: 0.9rem; max-width: calc(100% - 1.8rem);
  padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(6, 12, 23, 0.66); color: var(--on-dark);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.03em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.frame.lift img { transition: transform 1200ms var(--ease-out); transform: scale(1.01); }
.frame.lift:hover img { transform: scale(1.045); }

/* ---------- Treatment overview cards ---------- */
.overview-cards { list-style: none; display: grid; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.overview-card { display: grid; align-content: start; gap: 0.6rem; padding: 1.6rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.overview-card .count { font-size: 0.76rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-700); }
.overview-card p { color: var(--ink-muted); font-size: 0.98rem; }

/* ---------- Retained bridge animation: move the light to inspect ---------- */
.craft { --mx: 50%; --my: 42%; }
.material-stage { position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-950); aspect-ratio: 4 / 3; touch-action: pan-y; box-shadow: var(--shadow-lg); }
.inspect { position: absolute; inset: 0; margin: 0; }
.inspect img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inspect video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms var(--ease-out); }
.inspect video.is-ready { opacity: 1; }
.no-motion .inspect video { display: none; }
.inspect .lit { -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, #000 13%, rgba(0, 0, 0, 0.55) 24%, transparent 46%); mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, #000 13%, rgba(0, 0, 0, 0.55) 24%, transparent 46%); }
.material-stage .spec { position: absolute; inset: -20%; pointer-events: none; opacity: 0.9; background: radial-gradient(18rem 18rem at var(--mx) var(--my), rgba(196, 220, 248, 0.2), rgba(196, 220, 248, 0.05) 45%, transparent 70%); mix-blend-mode: screen; }
.material-stage .hint { position: absolute; left: 1rem; bottom: 0.9rem; right: 1rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(238, 243, 249, 0.8); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
@media (hover: none) { .inspect .lit { -webkit-mask-image: none; mask-image: none; } .material-stage .spec { opacity: 0.5; } .material-stage .hint { display: none; } }
.no-motion .inspect .lit { -webkit-mask-image: none; mask-image: none; }
.layer-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.layer-tab { min-height: 2.75rem; padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark); cursor: pointer; font-weight: 600; font-size: 0.92rem; transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast); }
.layer-tab[aria-selected="true"] { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.layer-tab:hover:not([aria-selected="true"]) { border-color: var(--blue-300); }
.layer-panel { margin-top: 1.1rem; }
.layer-panel p { color: var(--on-dark-muted); }
.craft-points { list-style: none; display: grid; margin-top: 1.75rem; border-top: 1px solid var(--line-dark); }
.craft-points li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
.craft-points svg { width: 1.25rem; height: 1.25rem; color: var(--blue-300); margin-top: 0.15rem; }
.craft-points b { display: block; font-weight: 650; }
.craft-points span { color: var(--on-dark-muted); font-size: 0.95rem; }

/* ---------- Patient journey ---------- */
.journey-list { list-style: none; counter-reset: step; position: relative; display: grid; }
.journey-list::before { content: ""; position: absolute; left: 1.35rem; top: 1.5rem; bottom: 1.5rem; width: 1px; background: linear-gradient(180deg, var(--blue-500), var(--line-strong)); }
.journey-step { position: relative; display: grid; grid-template-columns: 2.7rem 1fr; gap: 1.25rem; padding: 1.1rem 0 1.6rem; }
.journey-step::before {
  counter-increment: step; content: counter(step);
  position: relative; z-index: 1; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line-strong); font-weight: 650; color: var(--blue-700); box-shadow: 0 0 0 6px var(--porcelain);
}
.journey-step .when { display: block; margin-bottom: 0.3rem; font-size: 0.76rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-700); }
.journey-step h3 { margin-bottom: 0.5rem; }
.journey-step p { color: var(--ink-muted); }
.motion-ok .journey-list .journey-step { opacity: 0; transform: translateY(12px); transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out); }
.motion-ok .journey-list.is-in .journey-step { opacity: 1; transform: none; }
.motion-ok .journey-list.is-in .journey-step:nth-child(2) { transition-delay: 90ms; }
.motion-ok .journey-list.is-in .journey-step:nth-child(3) { transition-delay: 180ms; }
.motion-ok .journey-list.is-in .journey-step:nth-child(4) { transition-delay: 270ms; }
.motion-ok .journey-list.is-in .journey-step:nth-child(5) { transition-delay: 360ms; }

/* ---------- Treatment options ---------- */
.options-grid { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.option-card { display: grid; align-content: start; gap: 0.75rem; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), border-color var(--t-fast); }
.option-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.option-card .icon { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 12px; background: rgba(36, 89, 184, 0.09); color: var(--blue-600); }
.option-card .icon svg { width: 1.4rem; height: 1.4rem; }
.option-card p { color: var(--ink-muted); font-size: 0.98rem; }
.option-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.option-meta li { padding: 0.22rem 0.6rem; border-radius: 999px; background: var(--porcelain-2); font-size: 0.78rem; font-weight: 600; color: var(--ink-muted); }
.option-card.is-cta { background: var(--navy-900); color: var(--on-dark); border-color: var(--navy-900); }
.option-card.is-cta p { color: var(--on-dark-muted); }
.option-card.is-cta .icon { background: rgba(141, 188, 242, 0.14); color: var(--blue-300); }
.option-card.is-cta :focus-visible { outline-color: var(--blue-300); }

/* ---------- Technology and reassurance ---------- */
.tech-list { list-style: none; display: grid; border-top: 1px solid var(--line-dark); }
.tech-item { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-dark); }
.tech-item .icon { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 12px; background: rgba(141, 188, 242, 0.12); color: var(--blue-300); }
.tech-item .icon svg { width: 1.35rem; height: 1.35rem; }
.tech-item h3 { font-size: 1.12rem; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.tech-item p { color: var(--on-dark-muted); font-size: 0.97rem; }
.promises { list-style: none; display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.promise { padding: 1.5rem; border-radius: var(--radius-lg); background: rgba(238, 243, 249, 0.05); border: 1px solid var(--line-dark); }
.promise b { display: block; margin-bottom: 0.45rem; font-size: 1.05rem; font-weight: 650; }
.promise span { color: var(--on-dark-muted); font-size: 0.95rem; }

/* ---------- Voice demonstration band ---------- */
.calls-card { position: relative; overflow: hidden; display: grid; gap: 2rem; padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: 28px; background: var(--navy-900); color: var(--on-dark); box-shadow: var(--shadow-lg); isolation: isolate; }
.calls-card::after { content: ""; position: absolute; right: -10rem; top: -10rem; width: 30rem; height: 30rem; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(59, 116, 214, 0.35), transparent 65%); }
@media (min-width: 60em) { .calls-card { grid-template-columns: 7fr 5fr; align-items: center; } }
.calls-card :focus-visible { outline-color: var(--blue-300); }
.calls-card .lead { color: var(--on-dark-muted); }
.calls-wave { display: flex; align-items: center; justify-content: center; gap: 0.35rem; height: 7.5rem; padding: 1.5rem; border-radius: var(--radius-lg); background: rgba(238, 243, 249, 0.05); border: 1px solid var(--line-dark); }
.calls-wave i { display: block; width: 0.35rem; border-radius: 999px; background: linear-gradient(180deg, var(--blue-300), var(--blue-500)); height: var(--h, 40%); }
.motion-ok .calls-wave i { animation: wave 1.8s var(--ease-in-out) infinite; animation-delay: var(--d, 0s); }
@keyframes wave { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }
.calls-points { list-style: none; display: grid; gap: 0.5rem; margin: 1.25rem 0 1.75rem; }
.calls-points li { display: flex; gap: 0.6rem; align-items: baseline; color: var(--on-dark-muted); }
.calls-points li::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--coral); flex: none; transform: translateY(-0.1rem); }

/* ---------- Locations: animated map + cards ---------- */
.locations-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.locations-layout > * { min-width: 0; }
@media (min-width: 60em) { .locations-layout { grid-template-columns: 5fr 7fr; } }
.locmap { position: relative; width: min(100%, 26rem); margin-inline: auto; }
.locmap svg { width: 100%; height: auto; overflow: visible; }
.locmap .land path { fill: rgba(141, 188, 242, 0.08); stroke: rgba(141, 188, 242, 0.36); stroke-width: 1; stroke-linejoin: round; }
.locmap .route { fill: none; stroke: rgba(141, 188, 242, 0.5); stroke-width: 1.2; stroke-dasharray: 3 6; }
.motion-ok .locmap .route { animation: route-flow 2.6s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -18; } }
.locmap .node .halo { fill: rgba(240, 127, 85, 0.16); stroke: rgba(240, 127, 85, 0.55); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.motion-ok .locmap .node .halo { animation: halo 3.2s var(--ease-out) infinite; }
.motion-ok .locmap .node:nth-of-type(2) .halo { animation-delay: 1.05s; }
.motion-ok .locmap .node:nth-of-type(3) .halo { animation-delay: 2.1s; }
@keyframes halo { 0% { transform: scale(0.55); opacity: 1; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.locmap .node .core { fill: var(--coral); stroke: var(--navy-900); stroke-width: 2; }
.locmap .node text { fill: var(--on-dark); font-family: var(--font); font-size: 12px; font-weight: 650; letter-spacing: 0.14em; }
.locmap .node.is-active .core { fill: var(--white); }
.locmap .node.is-active text { fill: var(--blue-300); }
.locmap .traveller circle { fill: var(--blue-200); }
.locmap .map-caption { fill: var(--on-dark-muted); font-family: var(--font); font-size: 10px; letter-spacing: 0.2em; }
.no-motion .locmap .traveller { display: none; }
.location-cards { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.location-card { display: grid; gap: 0.35rem; padding: 1.35rem 1.5rem; border-radius: var(--radius-lg); background: rgba(238, 243, 249, 0.05); border: 1px solid var(--line-dark); transition: border-color var(--t-fast), background-color var(--t-fast); }
.location-card:hover, .location-card:focus-within, .location-card.is-active { border-color: rgba(141, 188, 242, 0.55); background: rgba(238, 243, 249, 0.08); }
.location-card .top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.location-card h3 { font-size: 1.45rem; }
.location-card .country { font-size: 0.76rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-300); }
.location-card p { color: var(--on-dark-muted); font-size: 0.96rem; }
.location-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; margin: 0.4rem 0 0; font-size: 0.92rem; }
.location-card dt { color: var(--on-dark-muted); }
.location-card dd { margin: 0; font-weight: 600; }
.location-card .demo-tag { justify-self: start; margin-top: 0.4rem; }
.location-fallback { color: var(--on-dark-muted); }

/* ---------- Consultation request ---------- */
.contact-panel { display: grid; gap: 0.75rem; margin-top: 1.75rem; }
.contact-line { display: grid; gap: 0.15rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.contact-line .k { font-size: 0.74rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.contact-line .v { font-size: 1.18rem; font-weight: 650; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-line .n { font-size: 0.82rem; color: var(--ink-muted); }
.coordinator { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: center; margin-top: 1.75rem; }
.coordinator .portrait { width: 5.5rem; height: 5.5rem; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, var(--blue-200), var(--porcelain-2)); }
.coordinator .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.coordinator p { font-size: 0.94rem; color: var(--ink-muted); }
.form-panel { padding: clamp(1.35rem, 4vw, 2.5rem); border-radius: 26px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-steps { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; font-size: 0.8rem; font-weight: 650; color: var(--ink-muted); }
.form-steps i { flex: 1; height: 1px; background: var(--line); }
.form-steps .on { color: var(--blue-700); }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.15rem; }
.field label, .field .label { font-weight: 600; font-size: 0.95rem; }
.input, .select, .textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--white); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 6.5rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59, 116, 214, 0.2); outline: none; }
.field .help { font-size: 0.84rem; color: var(--ink-muted); }
.field .error { display: none; font-size: 0.86rem; font-weight: 600; color: var(--danger); }
.field.is-invalid .error { display: block; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--danger); }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.92rem; transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.choice input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--blue-500); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; font-size: 0.92rem; color: var(--ink-muted); }
.check input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--blue-600); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 0.5rem; }
.form-status { margin: 1rem 0 0; font-size: 0.92rem; font-weight: 600; min-height: 1.4em; }
.form-status[data-state="error"] { color: var(--danger); }
.form-status[data-state="loading"] { color: var(--ink-muted); }
.form-demo-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-muted); max-width: none; }
.form-success { display: grid; gap: 0.9rem; }
.form-success h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.form-success p { color: var(--ink-muted); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: var(--on-dark); padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5.5rem); }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 12, 23, 0.96) 0%, rgba(6, 12, 23, 0.8) 45%, rgba(6, 12, 23, 0.35) 100%), linear-gradient(0deg, rgba(6, 12, 23, 0.8) 0%, rgba(6, 12, 23, 0) 45%); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 1.25rem; color: rgba(238, 243, 249, 0.86); }
.page-hero .cta-row { margin-top: 1.75rem; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; font-size: 0.85rem; color: var(--on-dark-muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--on-dark); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }

/* ---------- Treatment detail + FAQ ---------- */
.detail-list { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.detail { display: grid; gap: 1.5rem 3rem; padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
@media (min-width: 60em) { .detail { grid-template-columns: 5fr 7fr; } }
.detail h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); }
.ticks { list-style: none; display: grid; gap: 0.55rem; margin-top: 1rem; }
.ticks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.7rem; }
.ticks svg { width: 1.1rem; height: 1.1rem; color: var(--blue-600); margin-top: 0.25rem; }
.on-dark .ticks svg { color: var(--blue-300); }
.faq { display: grid; gap: 0.75rem; max-width: 52rem; }
.faq details { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; font-weight: 650; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--blue-700); transition: transform var(--t-fast) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.35rem 1.25rem; color: var(--ink-muted); }

/* ---------- CTA band ---------- */
.cta-band { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 28px; background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: var(--on-dark); }
@media (min-width: 60em) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.cta-band p { color: var(--on-dark-muted); margin-top: 0.6rem; }
.cta-band :focus-visible { outline-color: var(--blue-300); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { margin-top: 1rem; max-width: 34ch; color: var(--on-dark-muted); font-size: 0.95rem; }
.footer-col h2 { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a, .footer-col button { font-size: 0.97rem; text-decoration: none; color: var(--on-dark); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: var(--blue-300); text-decoration: underline; }
.footer-contact { color: var(--on-dark-muted); font-size: 0.92rem; }
.footer-contact strong { color: var(--on-dark); font-weight: 600; }
.demo-notice { display: grid; gap: 0.6rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.35rem 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--line-dark); background: rgba(238, 243, 249, 0.04); }
.demo-notice h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-300); }
.demo-notice p { color: var(--on-dark-muted); font-size: 0.92rem; max-width: 90ch; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: 0.84rem; color: var(--on-dark-muted); }
.footer-legal p { margin: 0; max-width: none; }

/* ---------- Reveal system (progressive; static without JS or with reduced motion) ---------- */
.motion-ok .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.motion-ok .reveal.is-in { opacity: 1; transform: none; }
.motion-ok .reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out); }
.motion-ok .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.motion-ok .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
.motion-ok .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
.motion-ok .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
.motion-ok .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
.motion-ok .reveal-stagger.is-in > *:nth-child(6) { transition-delay: 400ms; }

/* ---------- Reduced motion / data saver: complete static experience ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero-media video { display: none; }
  .inspect video { display: none; }
  .inspect .lit { -webkit-mask-image: none; mask-image: none; }
  .locmap .traveller { display: none; }
}
.no-motion .hero-media video { display: none; }

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .hero-media video, .story-demo-root { display: none !important; }
  .hero-inner { min-height: 0; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Scripted voice demonstration — compatibility layer
   The overlay (#story-demo-root, css/story-demo.css, js/story-demo*.js and
   assets/audio) is deliberately unchanged. It inherits a few base styles from
   the page, so the values it was designed against are pinned here, scoped to
   the overlay only. :where() keeps each rule at the same specificity as the
   original global rule, so css/story-demo.css continues to win exactly as before.
   ========================================================================== */
:where(.story-demo-root) {
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --fs-h1: clamp(2.25rem, 1.4rem + 3vw, 4.25rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.6vw, 3.8rem);
  --fs-h3: clamp(1.4rem, 1.15rem + 0.9vw, 2rem);
  --fs-h4: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  --measure: 62ch;
  color: #17211d;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
:where(.story-demo-root) :is(h1, h2, h3, h4) { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.012em; font-variation-settings: "opsz" 144, "SOFT" 30; text-wrap: wrap; }
:where(.story-demo-root) h1 { font-size: var(--fs-h1); }
:where(.story-demo-root) h2 { font-size: var(--fs-h2); }
:where(.story-demo-root) h3 { font-size: var(--fs-h3); line-height: 1.15; }
:where(.story-demo-root) h4 { font-size: var(--fs-h4); line-height: 1.25; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
:where(.story-demo-root) p { margin: 0 0 1em; max-width: var(--measure); }
:where(.story-demo-root) p:last-child { margin-bottom: 0; }
:where(.story-demo-root) em, :where(.story-demo-root) .italic { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 60; }
:where(.story-demo-root) strong { font-weight: 600; }
:where(.story-demo-root) a { text-underline-offset: 0.18em; }
:where(.story-demo-root) :focus-visible { outline: 2px solid #d8b97c; outline-offset: 3px; border-radius: 2px; }
