/* =====================================================================
   CK Dental — 陳巧進 郭子進 牙科醫生
   Mobile-first, system fonts, no third-party dependencies.
   ===================================================================== */

@font-face { font-family: "Franklin"; src: url("../assets/fonts/franklin-300.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0020-00FF, U+2013-2026, U+2192, U+2197; }
@font-face { font-family: "Franklin"; src: url("../assets/fonts/franklin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0020-00FF, U+2013-2026, U+2192, U+2197; }
@font-face { font-family: "Franklin"; src: url("../assets/fonts/franklin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0020-00FF, U+2013-2026, U+2192, U+2197; }
@font-face { font-family: "Franklin"; src: url("../assets/fonts/franklin-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0020-00FF, U+2013-2026, U+2192, U+2197; }

/* ---------------------------------------------------------------- design tokens
   1. Palette — raw values, after the style reference (drmarc): warm greys + one slate blue.
   2. Semantic roles — what components use. Change a role, not a component.
   3. Legacy aliases — older component rules read these names. */
:root {
  /* 1. palette */
  --gray-900: #313131;
  --gray-700: #474747;
  --gray-600: #616161;
  --gray-300: #d2d2d2;
  --gray-200: #e6e6e6;
  --gray-100: #f2f2f2;
  --gray-50: #f9f9f9;
  --white: #ffffff;
  --blue-700: #2b384b;
  --blue-600: #37465c;
  --blue-300: #9aa9bd;
  --blue-50: #eff1f5;
  --green-700: #157f42;
  --green-800: #0f6a36;
  --green-600: #2f7d5b;
  --red-600: #a3473a;

  /* 2. semantic roles */
  --c-fg: var(--gray-900);            /* primary text */
  --c-fg-2: var(--gray-700);          /* body copy on light surfaces */
  --c-fg-muted: var(--gray-600);      /* meta, captions, secondary */
  --c-fg-inverse: var(--gray-50);     /* text on dark / accent surfaces */
  --c-bg: var(--gray-50);             /* page */
  --c-surface: var(--gray-100);       /* cards on the page */
  --c-surface-alt: var(--blue-50);    /* tinted sections */
  --c-surface-raised: var(--white);   /* floating: menus, sheets, overlays */
  --c-surface-inverse: var(--gray-900);
  --c-accent: var(--blue-600);        /* brand, active, links */
  --c-accent-strong: var(--blue-700);
  --c-accent-soft: var(--blue-300);
  --c-border: var(--gray-300);
  --c-border-soft: var(--gray-200);
  --c-positive: var(--green-600);
  --c-negative: var(--red-600);
  --c-whatsapp: var(--blue-600);       /* WhatsApp actions use the brand slate, not WhatsApp green */
  --c-whatsapp-strong: var(--blue-700);

  /* type */
  --f: "Franklin", -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
  --fs-display: clamp(2.25rem, 4.4vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 3vw, 3rem);
  --fs-h3: clamp(1.125rem, 1.35vw, 1.3rem);
  --fs-lede: clamp(1.0625rem, 1.3vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-meta: .8125rem;

  /* space (reference scale: .5 / 1 / 1.5 / 2 / 3 / 4 / 6 / 8 rem) */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem; --s-6: 4rem; --s-7: 6rem; --s-8: 8rem;
  --section: clamp(4rem, 9vw, 8rem);
  --gut: 1rem;
  --r: 8px;
  --r-sm: 6px;
  --nav-h: 64px;

  /* 3. legacy aliases */
  --ink: var(--c-fg);
  --ink-2: var(--c-fg-2);
  --muted: var(--c-fg-muted);
  --slate: var(--c-accent);
  --slate-d: var(--c-accent-strong);
  --slate-t: var(--c-surface-alt);
  --paper: var(--c-bg);
  --card: var(--c-surface);
  --alt: var(--c-surface-alt);
  --line: var(--c-border);
  --wa: var(--c-whatsapp);
  --wa-d: var(--c-whatsapp-strong);
  --ok: var(--c-positive);
  --bad: var(--c-negative);
  --shadow: none;
  color-scheme: light;
}

/* 4. extended tokens (documented in DESIGN.md) */
:root {
  /* type ramp: fixed UI steps + fluid display steps */
  --fs-hero: clamp(2.75rem, min(5.6vw, 9.6vh), 7rem); --fs-ui-fluid: clamp(.875rem, 1.2vw, 1.0625rem);
  --fs-micro: .6875rem; --fs-body-lg: 1.0625rem; --fs-title-sm: 1.125rem; --fs-caption: .75rem; --fs-ui: .9375rem; --fs-title-md: 1.25rem; --fs-title-lg: 1.5rem;  /* rem: follows the reader's text-size setting */
  --fs-price: 2.25rem; --fs-price-fluid: clamp(1.5rem, 5.5vw, 2.25rem);
  --fs-display-2: clamp(2.5rem, 6.5vw, 5.5rem);
  --fs-display-sm: clamp(2.5rem, 12vw, 3rem);
  --fs-headline-xl: clamp(2rem, 3.6vw, 3.25rem);
  --fs-headline-sm: clamp(1.5rem, 2.4vw, 2rem);
  --fs-title-fluid: clamp(1.25rem, 2vw, 1.75rem);
  --fs-il-label: clamp(16px, 1.6cqw, 26px); --fs-il-title: clamp(26px, 3.2cqw, 52px); /* intro loader spec, card-relative */
  /* radius scale */
  --r-hair: 2px; --r-xs: 4px; --r-bar: 10px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 24px; --r-sheet: 28px;
  /* UI extras */
  --c-fog: #e2e7ee;              /* cool figure grounds */
  --c-border-strong: #7d8794;    /* form field strokes (3:1 on card stone) */
  --c-mtr: #c8102e;              /* MTR station badge on clinic maps */
  --c-map-street: #b3bbc6;
  --slate-1: #a7b4c5; --slate-2: #7f91a9; --slate-3: #56698a;   /* ordered data steps (AHI, stages) */
  --hero-night: #1d232b; --hero-deep: #2e3641; --hero-mid: #3b4451; --hero-dusk: #4a5462;
  --halo-1: rgba(255,214,150,.85); --halo-2: rgba(255,160,80,.55); --halo-3: rgba(240,115,45,.28); --halo-4: rgba(210,95,40,.11); --halo-5: rgba(180,80,40,.04); /* warm seam glow, hero only */
  --hero-haze: rgba(150,172,200,.16); --hero-sheen: rgba(190,208,230,.1); --hero-floor: rgba(8,10,14,.3);
  --hero-label: rgba(230,236,244,.95); --hero-label-soft: rgba(230,236,244,.1);
  --sh-menu: 0 20px 30px -20px rgba(0,0,0,.25);
  --scrim-night: rgba(0,0,0,.55);
  /* colour channels for translucent use: rgb(var(--x-rgb) / alpha) */
  --black: #000;
  --abyss-rgb: 8 11 16;
  --black-rgb: 0 0 0;
  --blue-50-rgb: 239 241 245;
  --blue-600-rgb: 55 70 92;
  --chalk-veil-rgb: 248 248 247;
  --deep-rgb: 10 14 20;
  --gray-50-rgb: 249 249 249;
  --gray-900-rgb: 49 49 49;
  --ill-nerve-rgb: 239 196 109;
  --ink-shade-rgb: 29 33 38;
  --mist-rgb: 236 240 245;
  --night-rgb: 12 16 22;
  --paper-veil-rgb: 246 246 244;
  --red-600-rgb: 163 71 58;
  --shade-rgb: 20 24 30;
  --sky-pale-rgb: 190 205 225;
  --slate-shade-rgb: 54 62 73;
  --steel-pale-rgb: 226 232 240;
  --stone-veil-rgb: 239 239 237;
  --white-rgb: 255 255 255;
  /* one-off surfaces and strokes, named by where they are used */
  --c-clinic-map-bg: #e9ebee;
  --c-clinic-map-bg-2: #f4f4f2;
  --c-clinic-map-bg-3: #f3f3f1;
  --c-placeholder: #6b6b6b;
  --c-rule: #d9dadd;
  --c-ft-in-bg: #e4e4e1;
  --c-ft-rule: #cfd1d4;
  --c-hero-media-bg: #cfd5da;
  --c-intro-bg: #f7f5f4;
  --c-intro-ink: #141414;
  --c-intro-mark: #9c9893;
  --c-ill-ph: #f6f7f9;
  --c-im-spark-stroke: #c9d2dc;
  --c-hero-steel: #c9d6e6;
  --c-hero-ice: #f1f4f8;
  --c-om-inset-line: #c7cfda;
  --c-wave-bg: #e9edf2;
  --c-pt-bg: #e6e9ec;
  --c-ptable-bg: #fafafa;
  --c-night-1: #2e3b50;
  --c-night-2: #1c2431;
  --c-night-3: #171e29;
  --c-scr-fig-bg: #f1f3f6;
  --c-svc-contain-bg: #ecedea;
  --c-tr-fig-bg: #eef0f3;
  --c-verdict-bg: #34435a;
  --c-verdict-bg-2: #222c3b;
  --c-verdict-bg-3: #1b2330;
  --c-fig-glow: #f3f4f6;
  --c-page-stone: #e9e9e6;
  --c-page-chalk: #f0f0ee;
  /* illustration palette (anatomy diagrams only, never UI or text) */
  --ill-skin: #f6efe8; --ill-hair: #3a4252; --ill-eye: #59647a; --ill-air: #d9e5f1;
  --ill-line: #9aa5b5; --ill-line-warm: #b7aa95; --ill-tooth: #a9b3c1; --ill-tooth-old: #efe6d6;
  --ill-metal: #6f7a88; --ill-metal-2: #8a95a5; --ill-plastic: #c7ced8; --ill-bone-cool: #d5dbe3;
  --ill-gum: #e9a59a; --ill-palate: #f0c0b6; --ill-soft: #e3a294; --ill-tongue: #d98a7d;
  --ill-bone: #efe4d3; --ill-trab: #e4d5bf; --ill-cortex: #d8c4a6; --ill-new-bone: #d9bf87;
  --ill-nerve: #efc46d; --ill-gold: #c49a4c; --ill-decay: #8b6b4a; --ill-crack: #6f5b45;
}
@media (min-width: 720px) { :root { --gut: 1.5rem; --nav-h: 72px; } }
@media (min-width: 1100px) { :root { --gut: 2.5rem; } }

*, *::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) + 56px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f); font-size: var(--fs-body); line-height: 1.7; letter-spacing: .01em; font-feature-settings: "lnum", "kern";
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 500; letter-spacing: .015em; text-wrap: balance; color: var(--c-fg); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--slate); color: var(--white); }
.skip { position: fixed; top: -100px; left: 16px; z-index: 999; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.small { font-size: var(--fs-meta); color: var(--muted); }

.i { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--alt); }
.section--flush { padding-top: 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 500; font-size: var(--fs-ui); letter-spacing: .04em;
  background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s, color .2s, box-shadow .2s, transform .2s; white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--white); box-shadow: none; }
.btn--wa { background: var(--wa); color: var(--white); box-shadow: none; }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: var(--fs-small); }
.btn--block { width: 100%; }
.btn .i--arrow { width: 16px; height: 16px; transition: transform .2s; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- top bar + nav */
.topbar { display: none; background: var(--ink); color: rgb(var(--white-rgb) / .82); font-size: var(--fs-meta); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .i { width: 15px; height: 15px; opacity: .7; }
.topbar__tel a { padding: 0 8px; border-left: 1px solid rgb(var(--white-rgb) / .2); }
.topbar__tel a:first-of-type { border-left: 0; }
@media (hover: hover) { .topbar__tel a:hover { color: var(--white); text-decoration: underline; } }
@media (min-width: 900px) { .topbar { display: block; } }

.nav { position: sticky; top: 0; z-index: 50; background: rgb(var(--paper-veil-rgb) / .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1.2; min-width: 0; }
.brand__mark { width: 32px; height: 22px; flex: none; color: var(--slate); }
.brand__zh { display: block; font-size: var(--fs-body); font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.brand__en { display: block; font-size: var(--fs-micro); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.nav__menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav__menu a { display: block; padding: 8px 12px; border-radius: 999px; font-size: var(--fs-ui); font-weight: 500; transition: background .2s; }
@media (hover: hover) { .nav__menu a:hover { background: rgb(var(--ink-shade-rgb) / .06); } }
.nav__menu a[aria-current="page"] { background: var(--ink); color: var(--white); }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); place-items: center; }
.nav__burger i, .nav__burger i::before, .nav__burger i::after { display: block; width: 16px; height: 1.6px; background: currentColor; transition: transform .25s, background .25s; }
.nav__burger i { position: relative; }
.nav__burger i::before, .nav__burger i::after { content: ""; position: absolute; left: 0; }
.nav__burger i::before { transform: translateY(-5px); }
.nav__burger i::after { transform: translateY(5px); }
.menu-open .nav__burger i { background: transparent; }
.menu-open .nav__burger i::before { transform: rotate(45deg); }
.menu-open .nav__burger i::after { transform: rotate(-45deg); }

@media (max-width: 1079px) {
  .nav__burger { display: grid; }
  .nav__menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--sh-menu); display: none; }
  .menu-open .nav__menu { display: block; }
  .nav__menu ul { flex-direction: column; padding: 8px var(--gut) 16px; max-width: 1200px; margin: 0 auto; }
  .nav__menu a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body-lg); }
  .nav__menu a[aria-current="page"] { background: none; color: var(--slate); font-weight: 600; }
}
@media (max-width: 899px) { .nav__end .btn--wa { display: none; } }
@media (max-width: 380px) { .brand__zh { font-size: var(--fs-ui); letter-spacing: .04em; } .brand__en { display: none; } }

/* ---------------------------------------------------------------- hero (home) */
.hero { padding: 20px 0 8px; }
.hero__grid { display: grid; gap: 20px; }
.hero h1 { font-size: var(--fs-h2); letter-spacing: .04em; margin-top: 2px; }
.hero h1 small, .phero h1 small { display: block; font-size: var(--fs-lede); font-weight: 500; color: var(--slate); letter-spacing: .06em; margin-top: 6px; }
.hero .lede { margin-top: 12px; }

.hero__media { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--c-hero-media-bg); aspect-ratio: 4 / 3; order: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .hero { padding: 36px 0 16px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
  .hero__media { order: 0; aspect-ratio: auto; height: 100%; min-height: 460px; }
}
@media (max-width: 559px) { .hero__media { aspect-ratio: 16 / 10; } }

/* clinic strip under hero */
.strip { padding: 12px 0 0; }
.strip__grid { display: grid; gap: 8px; }
.strip__item { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--r-sm); padding: 12px 14px; box-shadow: var(--shadow); font-size: var(--fs-meta); color: var(--muted); transition: transform .2s; }
@media (hover: hover) { .strip__item:hover { transform: translateY(-2px); } }
.strip__item b { display: block; color: var(--ink); font-size: var(--fs-ui); }
.strip__item .i { color: var(--slate); width: 20px; height: 20px; }
.strip__tel { margin-left: auto; font-weight: 500; color: var(--ink); font-size: var(--fs-ui); white-space: nowrap; }
@media (min-width: 720px) { .strip__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }

/* ---------------------------------------------------------------- services */
.svcs { display: grid; gap: 16px; }
@media (min-width: 640px) { .svcs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svcs { grid-template-columns: repeat(4, 1fr); } }
.svc { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.svc__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--alt); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
@media (hover: hover) { .svc:hover .svc__media img { transform: scale(1.04); } }
.svc__media--contain { background: var(--c-svc-contain-bg); }
.svc__media--contain img { object-fit: contain; padding: 6px 0; }
@media (max-width: 639px) {
  .svc { display: grid; grid-template-columns: 104px minmax(0, 1fr); }
  .svc__media { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .svc__body { padding: 12px 14px 14px; gap: 6px; }
  .svc h3 { font-size: var(--fs-body-lg); }
  .svc p { font-size: var(--fs-small); }
  .svc .ticks { display: none; }
  .svc__foot { padding-top: 8px; }
  .svc__foot b { font-size: var(--fs-ui); }
}
.svc__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc h3 { font-size: var(--fs-title-md); }
@media (hover: hover) { .svc h3 a:hover { color: var(--slate); } }
.svc p { font-size: var(--fs-small); color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--fs-small); }
.ticks li { display: flex; gap: 6px; align-items: flex-start; }
.ticks .i { width: 16px; height: 16px; color: var(--ok); margin-top: 3px; }
.svc__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; }
.svc__foot b, .more { white-space: nowrap; }
.svc__foot b { font-size: var(--fs-body-lg); }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-small); font-weight: 500; color: var(--slate); }
.general { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.general h3 { font-size: var(--fs-ui); color: var(--muted); font-weight: 500; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-small); }

/* ---------------------------------------------------------------- price table */

.ptable { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); font-size: var(--fs-ui); }
.ptable th, .ptable td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable thead th { font-size: var(--fs-meta); color: var(--muted); font-weight: 500; background: var(--c-ptable-bg); }
.ptable tbody th a { font-weight: 500; }
@media (hover: hover) { .ptable tbody th a:hover { color: var(--slate); text-decoration: underline; } }
.ptable tr:last-child th, .ptable tr:last-child td { border-bottom: 0; }
.ptable .price { font-weight: 600; white-space: nowrap; }
@media (max-width: 639px) {
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr { display: block; }
  .ptable tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .ptable tr:last-child { border-bottom: 0; }
  .ptable th, .ptable td { padding: 0; border: 0; }
  .ptable td:nth-child(3), .ptable td:nth-child(4) { grid-column: 1 / -1; font-size: var(--fs-meta); color: var(--muted); }
  .ptable td:nth-child(3)::before { content: "療程時間："; }
}

/* ---------------------------------------------------------------- doctors */
.docs { display: grid; gap: 16px; }
@media (min-width: 720px) { .docs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .docs { grid-template-columns: 1fr 1fr 1fr; } }
.doc { background: var(--card); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 16px; align-content: start; margin: 0; }
.doc__head { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.doc__head h3 { font-size: var(--fs-title-md); }
.doc__head .en { font-size: var(--fs-meta); color: var(--muted); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: var(--fs-title-lg); font-weight: 500; flex: none; }
.avatar--alt { background: var(--slate); }
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-ui); }
.creds small { color: var(--muted); font-size: var(--fs-caption); letter-spacing: .04em; }
.label { display: block; font-size: var(--fs-meta); font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.days li { display: flex; justify-content: space-between; gap: 12px; background: var(--paper); border-radius: var(--r-sm); padding: 7px 12px; font-size: var(--fs-small); color: var(--muted); }
.days b { color: var(--ink); font-weight: 500; }
.doc--img { padding: 0; overflow: hidden; position: relative; min-height: 240px; }
.doc--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc--img figcaption { position: absolute; left: 12px; bottom: 12px; background: rgb(var(--white-rgb) / .92); padding: 6px 12px; border-radius: 999px; font-size: var(--fs-meta); }
@media (min-width: 720px) and (max-width: 1099px) { .doc--img { grid-column: 1 / -1; min-height: 260px; } }

/* ---------------------------------------------------------------- clinics */
.clinics { display: grid; gap: 16px; }
@media (min-width: 900px) { .clinics { grid-template-columns: repeat(3, 1fr); } }
.clinic { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.clinic__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.clinic h3 { font-size: var(--fs-title-md); }
.clinic h3 small { display: block; font-size: var(--fs-caption); font-weight: 500; color: var(--muted); }
.clinic__kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-ui); }
.clinic__kv li { display: flex; gap: 10px; align-items: flex-start; }
.clinic__kv .i { color: var(--slate); margin-top: 3px; }
.clinic__kv small { display: block; font-size: var(--fs-meta); color: var(--muted); }
.clinic__kv a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.clinic__cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.clinic__map { background: var(--c-clinic-map-bg); aspect-ratio: 8 / 5; }
.clinic__map svg { width: 100%; height: 100%; }
.clinic__map .street { fill: none; stroke: rgb(var(--ink-shade-rgb) / .35); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.clinic__map .street--minor { stroke: rgb(var(--ink-shade-rgb) / .16); stroke-width: 1; }
.clinic__map .route { fill: none; stroke: var(--slate); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 9; }
.clinic__map .m-box { fill: none; stroke: rgb(var(--ink-shade-rgb) / .4); }
.clinic__map .m-lbl { fill: var(--ink-2); font: 500 14px var(--f); letter-spacing: .04em; }
.clinic__map .m-exit { fill: var(--ink); font: 500 18px var(--f); }
.clinic__map .m-badge { fill: var(--c-mtr); }
.clinic__map .m-badge-t { fill: var(--white); font: 600 9px var(--f); }
.clinic__map .pin { fill: var(--slate); }
.clinic__map .pin-dot { fill: var(--white); }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 8px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1.8fr; gap: 48px; align-items: start; } }
.faq__list { display: grid; gap: 8px; }
.faq__item { background: var(--card); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.faq__item summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 500; font-size: var(--fs-body); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p { padding: 0 18px 18px; color: var(--muted); font-size: var(--fs-ui); }

/* ---------------------------------------------------------------- booking */

.form { display: grid; gap: 12px; }
@media (min-width: 560px) { .form { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 4px; }
.field--full, .form .btn, .form__note { grid-column: 1 / -1; }
.field label { font-size: var(--fs-meta); font-weight: 500; color: rgb(var(--white-rgb) / .8); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; border-radius: var(--r-sm); border: 1px solid rgb(var(--white-rgb) / .28); background: rgb(var(--white-rgb) / .06); color: var(--white);
  font: inherit; font-size: var(--fs-body); padding: 10px 14px; appearance: none; -webkit-appearance: none; transition: border-color .2s, background .2s;
}
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='white' fill='none' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid currentColor; outline-offset: 2px; border-color: var(--white); background: rgb(var(--white-rgb) / .1); }
.field input::placeholder, .field textarea::placeholder { color: rgb(var(--white-rgb) / .45); }
.field input[aria-invalid="true"] { border-color: var(--c-negative); }
.field .err { font-size: var(--fs-meta); color: var(--c-negative); min-height: 0; }
.field .err:empty { display: none; }
.form__note { font-size: var(--fs-meta); color: rgb(var(--white-rgb) / .6); }

.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-ui); }
.hours b { font-size: var(--fs-body-lg); font-weight: 500; font-feature-settings: "tnum"; }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contacts li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; font-size: var(--fs-ui); }
.contacts a { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; white-space: nowrap; }
@media (hover: hover) { .contacts a:hover { text-decoration: underline; } }
.contacts .i { width: 15px; height: 15px; opacity: .75; }

.panel { background: var(--card); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.panel h3 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-body); margin-bottom: 12px; }
.panel h3 .i { color: var(--slate); }

.panel + .panel { margin-top: 12px; }
.panel--tip { background: var(--slate-t); box-shadow: none; }
.panel--tip p { font-size: var(--fs-ui); color: var(--ink-2); margin-bottom: 12px; }
.panel--tip .contacts li { grid-template-columns: 1fr auto; }

/* ---------------------------------------------------------------- footer */

/* mobile action dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgb(var(--white-rgb) / .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dock__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; border-radius: var(--r-sm); font-size: var(--fs-meta); font-weight: 500; background: var(--alt); }
.dock__btn .i { width: 20px; height: 20px; }
.dock__btn--wa { background: var(--wa); color: var(--white); }
.dock__btn--book { background: var(--alt); color: var(--ink); }  /* one primary: WhatsApp carries the weight */
.dock__sheet { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 8px); background: var(--card); border-radius: var(--r); box-shadow: 0 20px 40px -10px rgb(var(--black-rgb) / .35); padding: 6px; display: grid; }
.dock__sheet[hidden] { display: none; }
.dock__sheet a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-sm); font-size: var(--fs-ui); }
.dock__sheet a + a { border-top: 1px solid var(--line); }
.dock__sheet a .i { color: var(--slate); }
.dock__sheet b { margin-left: 8px; }
body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .dock { display: none; } body { padding-bottom: 0; } }

/* ---------------------------------------------------------------- sub-page hero */
.phero { padding: 16px 0 28px; }
.phero__grid { display: grid; gap: 20px; }
.crumbs { display: flex; gap: 8px; font-size: var(--fs-meta); color: var(--muted); margin-bottom: 8px; }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); text-decoration: underline; } }
.phero h1 { font-size: var(--fs-h2); }
.phero .lede { margin-top: 10px; }
.phero__media { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--c-svc-contain-bg); aspect-ratio: 16 / 10; order: -1; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero--slim { padding-bottom: 24px; }
.phero__media--contain img { object-fit: contain; padding: 8px 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 20px; }
.facts div { background: var(--card); border-radius: var(--r-sm); padding: 10px 14px; box-shadow: var(--shadow); }
.facts dt { font-size: var(--fs-meta); color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: var(--fs-body); line-height: 1.35; }
.facts div:first-child { background: var(--ink); color: var(--white); }
.facts div:first-child dt { color: rgb(var(--white-rgb) / .7); }
@media (min-width: 900px) {
  .phero { padding: 28px 0 48px; }
  .phero__grid { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
  .phero__media { order: 0; aspect-ratio: 4 / 3.4; }
  .facts { grid-template-columns: repeat(4, 1fr); }
}

/* in-page table of contents */
.toc { position: sticky; top: var(--nav-h); z-index: 40; background: rgb(var(--paper-veil-rgb) / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.toc ul { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { display: block; padding: 6px 14px; border-radius: 999px; font-size: var(--fs-small); white-space: nowrap; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.toc a.is-on { background: var(--ink); color: var(--white); box-shadow: none; }
@media (hover: hover) { .toc a:hover { background: var(--ink); color: var(--white); box-shadow: none; } }

/* ---------------------------------------------------------------- content blocks */
.split { display: grid; gap: 24px; align-items: start; }
.split > div > p { color: var(--ink-2); }
.split > div > p + * { margin-top: 18px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }
.two { display: grid; gap: 12px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }

.figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--card); }
.figure img { width: 100%; }
.figure figcaption { padding: 10px 14px; font-size: var(--fs-meta); color: var(--muted); }
.figure--dark { background: var(--hero-night); }
.figure--dark figcaption { color: rgb(var(--white-rgb) / .7); }

.cards { display: grid; gap: 12px; }
@media (min-width: 720px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.card--tint { background: var(--card); }
.card__no { font-size: var(--fs-meta); font-weight: 600; color: var(--slate); letter-spacing: .06em; }
.card h3, .mini h3, .case h3, .cmp h3 { font-size: var(--fs-title-sm); }
.card h3 small, .mini h3 small, .case h3 small, .cmp h3 small, .part__no { display: block; font-size: var(--fs-caption); font-weight: 500; color: var(--muted); }
.card p, .mini p, .case p, .feat p, .part p { font-size: var(--fs-ui); color: var(--muted); }

.minis { display: grid; gap: 12px; }
@media (min-width: 560px) { .minis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .minis { grid-template-columns: repeat(5, 1fr); } }
.mini { background: var(--card); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 6px; align-content: start; }

.feats { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feats--3 { grid-template-columns: repeat(3, 1fr); } }
.feat { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.feat svg { width: 36px; height: 36px; flex: none; color: var(--slate); }
.feat svg * { fill: none; stroke: currentColor; stroke-width: 1.8; }
.feat h3 { font-size: var(--fs-body-lg); margin-bottom: 2px; }

.parts { display: grid; gap: 12px; }
@media (min-width: 720px) { .parts { grid-template-columns: repeat(3, 1fr); } }
.part { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.part__img { background: var(--alt); border-radius: var(--r-sm); aspect-ratio: 3 / 4; display: grid; place-items: center; padding: 10px; }
.part__img img { max-height: 100%; width: auto; object-fit: contain; }
.part h3 { font-size: var(--fs-title-sm); margin: 2px 0 4px; }
@media (min-width: 720px) and (max-width: 1099px) { .part { grid-template-columns: 1fr; } .part__img { aspect-ratio: 16 / 10; } .part__img img { max-height: 140px; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--slate); color: var(--slate); font-weight: 600; transition: background .3s, color .3s; }
.step.is-on .step__n { background: var(--slate); color: var(--white); }
.step h3 { font-size: var(--fs-body-lg); margin-bottom: 2px; }
.step p { font-size: var(--fs-ui); color: var(--muted); }

/* implant assembly sequence (desktop only; JS loads frames on demand) */

.seq { display: none; }
@media (min-width: 900px) {

  .seq { display: block; position: sticky; top: calc(var(--nav-h) + 70px); border-radius: var(--r); overflow: hidden; background: var(--c-svc-contain-bg); aspect-ratio: 720 / 900; max-height: calc(100vh - var(--nav-h) - 100px); margin: 0 auto; width: 100%; }
  .seq canvas, .seq__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .seq canvas { opacity: 0; transition: opacity .4s; }
  .seq.is-ready canvas { opacity: 1; }
  .seq.is-ready .seq__poster { opacity: 0; }

}

/* compare */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--alt); margin-bottom: 16px; }
.seg button { padding: 8px 16px; min-height: 40px; border-radius: 999px; font-size: var(--fs-ui); font-weight: 500; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.compare { display: grid; gap: 12px; }
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; } }
.cmp { background: var(--card); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.cmp--featured { box-shadow: inset 0 0 0 2px var(--slate), var(--shadow); }
.cmp__img { background: var(--c-svc-contain-bg); border-radius: var(--r-sm); height: 150px; overflow: hidden; }
.cmp__img img { width: 100%; height: 100%; object-fit: contain; }
.pc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-ui); }
.pc li { display: flex; gap: 8px; align-items: flex-start; }
.pc .i { margin-top: 3px; }
.i--check { color: var(--ok); }
.i--cross { color: var(--bad); }

/* aligner cases */
.cases { display: grid; gap: 12px; }
@media (min-width: 640px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: start; }
.case img { width: 88px; height: 88px; border-radius: 50%; }
.case h3 { margin-bottom: 4px; }

/* CCF documents */

/* related */
.rels { display: grid; gap: 10px; }
@media (min-width: 720px) { .rels { grid-template-columns: repeat(3, 1fr); } }
.rel { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; background: var(--card); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .2s; }
@media (hover: hover) { .rel:hover { transform: translateY(-2px); } }
.rel span { font-weight: 500; }
.rel b { grid-row: 2; font-size: var(--fs-small); color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------- subtle reveal (enabled by JS, skipped for reduced motion) */
.rv-on .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.rv-on .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* keep the headline above the fold on phones / tablets */
@media (max-width: 899px) {
  .phero__media, .hero__media { max-height: 38vh; width: 100%; }
}

/* =====================================================================
   v2: orthodontics + sleep-apnea components
   ===================================================================== */
.muted { color: var(--muted); font-size: var(--fs-ui); }
.feats--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .feats--2 { grid-template-columns: 1fr 1fr; } }
.ticks--lg { font-size: var(--fs-body); gap: 8px; }


/* ortho age stages */
.stages { position: relative; display: grid; gap: 14px; }
@media (min-width: 900px) { .stages { grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 22px; } }
.stages__line { display: none; }
@media (min-width: 900px) {
  .stages__line { display: block; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; background: var(--line); border-radius: var(--r-xs); overflow: hidden; }
  .stages__line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--slate-2), var(--slate)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
  .stages.in .stages__line i { transform: scaleX(1); }
  .stage::before { content: ""; position: absolute; top: -27px; left: 20px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--slate); transition: background .3s calc(.5s * var(--i) + .3s); }
  .stages.in .stage::before { background: var(--slate); }
}
.stage { position: relative; background: var(--card); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.stage__age { display: inline-flex; flex-direction: column; align-self: flex-start; background: var(--ink); color: var(--white); border-radius: var(--r-sm); padding: 6px 12px; line-height: 1.25; }
.stage__age span { font-size: var(--fs-micro); opacity: .7; }
.stage__age b { font-size: var(--fs-title-sm); }
.stage:nth-child(3) .stage__age { background: var(--slate); }
.stage:nth-child(4) .stage__age { background: var(--slate-3); }
.stage h3 { font-size: var(--fs-title-md); }
.stage h3 small { display: block; font-size: var(--fs-caption); font-weight: 500; color: var(--muted); }
.stage p { font-size: var(--fs-ui); color: var(--ink-2); }
.stage__gain { display: flex; gap: 8px; color: var(--muted) !important; }
.stage__gain .i { color: var(--ok); margin-top: 3px; }
.stage__kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.stage__kv div { background: var(--paper); border-radius: var(--r-sm); padding: 6px 10px; }
.stage__kv dt { font-size: var(--fs-caption); color: var(--muted); }
.stage__kv dd { margin: 0; font-weight: 500; font-size: var(--fs-small); }
.stage__price { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; }
.stage__price span { font-size: var(--fs-meta); color: var(--muted); }
.stage__price b { font-size: var(--fs-title-md); }

.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brands li { background: var(--paper); border-radius: var(--r-sm); padding: 8px 12px; }
.brands b { display: block; font-size: var(--fs-ui); }
.brands span { font-size: var(--fs-meta); color: var(--muted); }
.split .feats { margin-top: 12px; }

/* sleep apnea: risk */
.risk { display: grid; gap: 12px; }
@media (min-width: 960px) { .risk { grid-template-columns: 1fr 1.2fr 1.2fr; } }
.risk__factors .chips li { background: var(--paper); box-shadow: none; }
.risk__factors .small { margin-top: 10px; }
.risk__card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.risk__head { background: var(--ink); color: var(--white); padding: 14px 18px; }
.risk__card:last-child .risk__head { background: var(--slate); }
.risk__head span { display: block; font-size: var(--fs-meta); opacity: .7; }
.risk__head b { font-size: var(--fs-title-lg); }
.risk__head em, .tiles em { font-style: normal; font-feature-settings: "tnum"; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.tiles li { padding: 12px 18px; border-top: 1px solid var(--line); }
.tiles li:nth-child(odd) { border-right: 1px solid var(--line); }
.tiles span { display: block; font-size: var(--fs-meta); color: var(--muted); }
.tiles b { font-size: var(--fs-title-sm); }

.cmp__img--tall { height: 220px; background: var(--c-svc-contain-bg); }

/* AHI scale: one hue, light -> dark = severity */
.ahi { margin-top: 16px; }
.ahi__scale { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.2fr; gap: 2px; margin: 14px 0 22px; padding-bottom: 10px; }
.ahi__seg { padding: 10px 12px; color: var(--white); }
.ahi__seg:nth-child(1) { background: var(--slate-1); color: var(--ink); border-radius: 8px 0 0 8px; }
.ahi__seg:nth-child(2) { background: var(--slate-2); }
.ahi__seg:nth-child(3) { background: var(--slate-3); }
.ahi__seg:nth-child(4) { background: var(--blue-700); border-radius: 0 8px 8px 0; }
.ahi__seg b { display: block; font-size: var(--fs-ui); }
.ahi__seg span { font-size: var(--fs-meta); opacity: .85; font-feature-settings: "tnum"; }
.ahi__marker { position: absolute; left: 0; bottom: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 3px var(--ink); }
.ahi.in .ahi__marker { animation: sweep 6s cubic-bezier(.45,0,.55,1) infinite alternate; }
@keyframes sweep { from { left: 2%; } to { left: 98%; } }
.ahi__defs { display: grid; gap: 8px; margin: 0; }
@media (min-width: 720px) { .ahi__defs { grid-template-columns: 1fr 1fr; } }
.ahi__defs div { background: var(--paper); border-radius: var(--r-sm); padding: 10px 14px; }
.ahi__defs dt { font-weight: 500; font-size: var(--fs-ui); }
.ahi__defs dd { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.ahi__cta { margin-top: 14px; }

/* success-rate range bars */
.chart h3 { margin-bottom: 0; }
.rbars { display: grid; gap: 10px; margin-top: 16px; }
.rbar { display: grid; grid-template-columns: 44px 1fr 78px; gap: 10px; align-items: center; }
.rbar__k { font-size: var(--fs-small); font-weight: 500; }
.rbar__track { position: relative; height: 22px; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line) calc(10% - 1px) 10%); border-radius: var(--r-xs); }
.rbar__fill { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--hi) * 1%); border-radius: 0 var(--r-xs) var(--r-xs) 0; background: linear-gradient(90deg, var(--slate) 0 calc(var(--lo) / var(--hi) * 100%), var(--blue-300) 0); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.rbar:nth-child(2) .rbar__fill { transition-delay: .1s; } .rbar:nth-child(3) .rbar__fill { transition-delay: .2s; } .rbar:nth-child(4) .rbar__fill { transition-delay: .3s; }
.chart.in .rbar__fill { transform: scaleX(1); }
.rbar__v { font-size: var(--fs-small); font-weight: 600; font-feature-settings: "tnum"; text-align: right; }
.rbars__axis { display: flex; justify-content: space-between; margin: 6px 88px 10px 54px; font-size: var(--fs-caption); color: var(--muted); }
.chart figcaption { margin-top: 4px; }
.chart { margin: 0; }
.pricebox { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pricebox > div { background: var(--ink); color: var(--white); border-radius: var(--r); padding: 14px 16px; }
.pricebox > div + div { background: var(--slate); }
.pricebox span { display: block; font-size: var(--fs-meta); opacity: .75; }
.pricebox b { display: block; font-size: var(--fs-title-lg); line-height: 1.3; }
.pricebox small { display: block; font-size: var(--fs-meta); opacity: .7; }
.notes { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: var(--fs-ui); color: var(--ink-2); }

.steps--row .step { border-top: 0; }
@media (min-width: 960px) {
  .steps--row { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .steps--row .step { grid-template-columns: 1fr; padding: 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); align-content: start; }
  .steps--row .step:first-child { padding-top: 16px; }
}

/* sleep-apnea hero waveform */
.phero__media--wave { background: linear-gradient(160deg, var(--c-wave-bg), var(--c-fog)); }
.wave { position: relative; width: 100%; height: 100%; display: grid; }
.wave svg { width: 100%; height: 100%; }
.wave__grid path { stroke: rgb(var(--blue-600-rgb) / .1); stroke-width: 1; }
.wave__line { fill: none; stroke: url(#wv); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 5s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.wave__pause { fill: rgb(var(--red-600-rgb) / .08); stroke: rgb(var(--red-600-rgb) / .5); stroke-dasharray: 5 5; animation: pausepulse 5s ease-in-out infinite; }
@keyframes pausepulse { 0%, 30% { opacity: 0; } 45%, 85% { opacity: 1; } 100% { opacity: 0; } }
.wave__lbl { fill: var(--bad); font: 600 15px var(--f); animation: pausepulse 5s ease-in-out infinite; }
.wave__dot { fill: var(--slate); }
.wave__stats { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wave__stats div { background: rgb(var(--white-rgb) / .9); border-radius: var(--r-sm); padding: 8px 12px; box-shadow: var(--shadow); }
.wave__stats span { display: block; font-size: var(--fs-caption); color: var(--muted); }
.wave__stats b { font-size: var(--fs-title-sm); }
.phero__media { position: relative; }
.phero__media .wave__stats { z-index: 1; }
.wave--strip { height: auto; margin: 16px 0 4px; border-radius: var(--r-sm); background: linear-gradient(160deg, var(--c-wave-bg), var(--c-fog)); }
.wave--strip { max-width: 560px; }
.wave--strip svg { height: auto; }
.mad-photo { margin: 0 0 12px; }
.mad-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--c-svc-contain-bg); }
.mad-photo figcaption { margin-top: 8px; color: var(--muted); }
.wave__z { position: absolute; top: 14px; right: 18px; font: 600 30px var(--f); color: var(--slate); opacity: .5; }
.wave__z i { font-style: normal; display: inline-block; font-size: .7em; animation: zz 3s ease-in-out infinite; }
.wave__z i:last-child { font-size: .5em; animation-delay: .6s; }
@keyframes zz { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-8px); opacity: 1; } }

/* =====================================================================
   v2: motion layer — CSS-only where possible, all disabled for reduced motion
   ===================================================================== */
/* reading progress bar under the sticky nav */
@supports (animation-timeline: scroll()) {
  .nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--slate); transform-origin: left; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* hero entrance */
.hero__text > *, .phero__text > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero__text > :nth-child(2), .phero__text > :nth-child(2) { animation-delay: .06s; }
.hero__text > :nth-child(3), .phero__text > :nth-child(3) { animation-delay: .12s; }
.hero__text > :nth-child(4), .phero__text > :nth-child(4) { animation-delay: .18s; }
.hero__text > :nth-child(5), .phero__text > :nth-child(5) { animation-delay: .24s; }
.hero__text > :nth-child(6), .phero__text > :nth-child(6) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.hero__media, .phero__media { animation: unveil 1.1s cubic-bezier(.7,0,.2,1) both; }
@keyframes unveil { from { clip-path: inset(0 0 100% 0 round var(--r)); } to { clip-path: inset(0 0 0 0 round var(--r)); } }
.hero__media img, .phero__media img { animation: kenburns 1.6s cubic-bezier(.2,.7,.2,1) both; will-change: transform; }
@keyframes kenburns { from { scale: 1.12; } }

/* section kicker: line grows in */
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: var(--r-hair); transform-origin: left; transition: transform .7s cubic-bezier(.2,.7,.2,1) .1s; }
.rv-on .sec-head:not(.in) .kicker::before { transform: scaleX(0); }

/* cursor spotlight on cards (pointer devices) */
.fx { position: relative; isolation: isolate; }
.fx::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--blue-600-rgb) / .10), transparent 60%); }
@media (hover: hover) { .fx:hover::after { opacity: 1; } }
.rel { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
@media (hover: hover) {
  .svc { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
  .svc:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgb(var(--ink-shade-rgb) / .05), 0 22px 40px -20px rgb(var(--ink-shade-rgb) / .4); }
}

/* staggered reveal: --d set per element by JS */
.rv-on .rv { transition-delay: var(--d, 0s); }

/* WhatsApp call-to-action pulse */
.dock__btn--wa { position: relative; }
.dock__btn--wa::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgb(var(--blue-600-rgb) / .45); animation: ping 2.6s ease-out 3; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(var(--blue-600-rgb) / .4); } 70%, 100% { box-shadow: 0 0 0 12px rgb(var(--blue-600-rgb) / 0); } }

/* FAQ open animation */
.faq__item p { animation: none; }
.faq__item[open] p { animation: rise .35s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .wave__line { stroke-dashoffset: 0; }
  .stages__line i, .rbar__fill { transform: none !important; }
}
.key { display: inline-block; width: 10px; height: 10px; border-radius: var(--r-hair); vertical-align: -1px; margin-right: 4px; }
.key--lo { background: var(--slate); } .key--hi { background: var(--blue-300); }
@media (max-width: 559px) { .wave__stats { display: none; } }
.split > *, .faq > * { min-width: 0; }
@media (max-width: 380px) { .pricebox { grid-template-columns: 1fr; } .rbar { grid-template-columns: 40px 1fr 70px; } .rbars__axis { margin: 6px 80px 10px 50px; } }

/* =====================================================================
   v3: interactions after the style reference (drmarc)
   ===================================================================== */
:root { --out-quint: cubic-bezier(.22, 1, .36, 1); --io-quint: cubic-bezier(.86, 0, .07, 1); }

/* -- page transition: light cover, logo drops in, cover slides up while the page rises -- */
.pt-cover { display: none; }
html.pt .pt-cover, html.pt-leave .pt-cover {
  display: flex; position: fixed; inset: 0; z-index: 300; background: var(--c-pt-bg); color: var(--ink);
  align-items: center; justify-content: center; pointer-events: none;
}
.pt-cover__logo { display: grid; justify-items: center; gap: 8px; text-align: center; }
.pt-cover__logo svg { width: 72px; height: 48px; color: var(--slate); }
.pt-cover__logo span { font-size: var(--fs-title-md); font-weight: 600; letter-spacing: .14em; }
.pt-cover__logo small { font-size: var(--fs-micro); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
html.pt .pt-cover { animation: pt-up .9s var(--io-quint) .15s both; }
html.pt.pt-nav .pt-cover { animation-delay: .45s; animation-duration: 1.2s; }
html.pt .pt-cover__logo { animation: pt-logo .5s ease both; }
@keyframes pt-up { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes pt-logo { from { opacity: 0; transform: translateY(-1rem); } }
html.pt main { animation: pt-page .9s var(--io-quint) .15s backwards; }
html.pt.pt-nav main { animation-delay: .45s; animation-duration: 1.2s; }
@keyframes pt-page { from { transform: translateY(1%); } }
/* leaving: cover slides up from the bottom, then the next page loads underneath it */
html.pt-leave .pt-cover { animation: pt-in .6s var(--io-quint) both; }
html.pt-leave .pt-cover__logo { animation: pt-logo .4s ease .25s both; }
@keyframes pt-in { from { transform: translateY(100%); } }
/* hero content waits for the cover */
html.pt .hero__text > *, html.pt .phero__text > * { animation-delay: calc(.45s + var(--hd, 0s)); }
html.pt.pt-nav .hero__text > *, html.pt.pt-nav .phero__text > * { animation-delay: calc(.8s + var(--hd, 0s)); }
html.pt .hero__media, html.pt .phero__media, html.pt .hero__media img, html.pt .phero__media img { animation-delay: .4s; }
html.pt.pt-nav .hero__media, html.pt.pt-nav .phero__media, html.pt.pt-nav .hero__media img, html.pt.pt-nav .phero__media img { animation-delay: .75s; }
.hero__text > :nth-child(2), .phero__text > :nth-child(2) { --hd: .06s; } .hero__text > :nth-child(3), .phero__text > :nth-child(3) { --hd: .12s; }
.hero__text > :nth-child(4), .phero__text > :nth-child(4) { --hd: .18s; } .hero__text > :nth-child(5), .phero__text > :nth-child(5) { --hd: .24s; }
.hero__text > :nth-child(6), .phero__text > :nth-child(6) { --hd: .3s; }

/* -- button roll: label slides up, an inverted copy rises from below (600ms outQuint) -- */
.btn.is-roll { position: relative; padding: 0; overflow: hidden; isolation: isolate; }
.btn.is-roll .btn__face { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: inherit; width: 100%; padding: 0 20px; transition: transform .6s var(--out-quint); }
.btn--sm.is-roll .btn__face { padding: 0 14px; }
.btn.is-roll .btn__face--h { position: absolute; inset: 0; transform: translateY(100%); border-radius: inherit; background: var(--ink); color: var(--white); }
.btn.is-roll:focus-visible .btn__face { transform: translateY(-100%); }
@media (hover: hover) { .btn.is-roll:hover .btn__face { transform: translateY(-100%); } }
.btn.is-roll:focus-visible .btn__face--h { transform: translateY(0); }
@media (hover: hover) { .btn.is-roll:hover .btn__face--h { transform: translateY(0); } }
.btn--primary.is-roll .btn__face--h { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--wa.is-roll .btn__face--h { background: var(--white); color: var(--wa); box-shadow: inset 0 0 0 1.5px var(--wa); }

/* -- text roll for nav + footer links (500ms outQuint) -- */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; }
.roll > span { grid-area: 1 / 1; transition: transform .5s var(--out-quint); }
.roll > span + span { transform: translateY(100%); }
a:focus-visible > .roll > span:first-child { transform: translateY(-100%); }
@media (hover: hover) { a:hover > .roll > span:first-child { transform: translateY(-100%); } }
a:focus-visible > .roll > span + span { transform: translateY(0); }
@media (hover: hover) { a:hover > .roll > span + span { transform: translateY(0); } }
.nav__menu a .roll > span + span { color: var(--slate); }
.nav__menu a[aria-current="page"] .roll > span + span { color: var(--white); }

/* -- diagonal arrow swap in a round chip (card buttons) -- */
.arr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--white); overflow: hidden; flex: none; transition: background .5s var(--out-quint); }
.arr__in { display: grid; }
.arr .i { grid-area: 1 / 1; width: 14px; height: 14px; transition: transform .6s var(--out-quint); }
.arr .i + .i { transform: translate(-18px, 18px); }
@media (hover: hover) { .svc:hover .arr .i:first-child, .rel:hover .arr .i:first-child, .more:hover .arr .i:first-child { transform: translate(18px, -18px); } }
@media (hover: hover) { .svc:hover .arr .i + .i, .rel:hover .arr .i + .i, .more:hover .arr .i + .i { transform: translate(0, 0); } }
@media (hover: hover) { .svc:hover .arr, .rel:hover .arr { background: var(--slate); } }
.more { gap: 8px; }
.rel .arr { grid-row: 1 / span 2; grid-column: 2; width: 34px; height: 34px; }

@media (prefers-reduced-motion: reduce) {
  html.pt .pt-cover { display: none; }
}

/* =====================================================================
   v4: typography, space and surfaces after the style reference
   ===================================================================== */
/* meta label: small caps-style Latin + Chinese, muted, with a hairline */
.kicker { display: inline-flex; align-items: center; gap: .75rem; font-size: var(--fs-meta); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--c-fg-muted); margin-bottom: var(--s-3); }
.kicker > span { color: var(--c-accent); }
.kicker > span::after { content: "·"; margin-left: .75rem; color: var(--c-fg-muted); }

.sec-head { max-width: 52rem; margin-bottom: clamp(var(--s-5), 5vw, var(--s-6)); }
.sec-head h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.2; letter-spacing: .01em; }
.sec-head .lede { margin-top: var(--s-3); }
.lede { font-size: var(--fs-lede); font-weight: 300; line-height: 1.65; color: var(--c-fg-muted); max-width: 40em; }
.hero h1, .phero h1 { font-size: var(--fs-display); font-weight: 500; line-height: 1.12; letter-spacing: .01em; }
.hero h1 small, .phero h1 small { font-size: var(--fs-lede); font-weight: 400; color: var(--c-accent); letter-spacing: .04em; margin-top: var(--s-2); }
.hero .lede, .phero .lede { margin-top: var(--s-3); }
.phero .crumbs { margin-bottom: var(--s-3); font-size: var(--fs-meta); letter-spacing: .08em; }
.card h3, .mini h3, .case h3, .cmp h3, .svc h3, .feat h3, .step h3, .part h3, .stage h3, .clinic h3, .doc__head h3, .panel h3 { font-weight: 500; }
.card h3, .mini h3, .case h3, .cmp h3, .svc h3, .stage h3, .clinic h3 { font-size: var(--fs-h3); }

/* numbers & prices: light Franklin, tabular */
.facts dd, .svc__foot b, .stage__price b, .ptable .price, .pricebox b, .hours b, .strip__tel, .rel b, .tiles b, .risk__head b, .wave__stats b {
  font-weight: 400; font-feature-settings: "tnum", "lnum"; letter-spacing: -.005em;
}
.facts dd { font-size: var(--fs-title-sm); }
.facts div:first-child dd, .pricebox b { font-weight: 300; }
.pricebox b { font-size: var(--fs-price); letter-spacing: -.02em; }
.svc__foot b, .stage__price b { font-size: var(--fs-title-md); font-weight: 300; }

/* space: hero + section rhythm */
.hero { padding: clamp(var(--s-4), 5vw, var(--s-7)) 0 var(--s-4); }
.hero__grid { gap: clamp(var(--s-4), 5vw, var(--s-7)); }

.phero { padding: clamp(var(--s-4), 4vw, var(--s-6)) 0 clamp(var(--s-5), 6vw, var(--s-7)); }
.phero__grid { gap: clamp(var(--s-4), 5vw, var(--s-7)); }
.facts { gap: var(--s-1); margin: var(--s-5) 0 var(--s-4); }
.facts div { padding: var(--s-2) var(--s-2); }
.strip { padding: var(--s-2) 0 0; }

/* surfaces: flat fills, hairlines instead of shadows */
.svc, .card, .feat, .mini, .case, .clinic, .doc, .part, .cmp, .stage, .rel, .panel, .faq__item, .risk__card, .strip__item, .facts div, .ptable, .chart { box-shadow: none; }
.svc__body, .clinic__body { padding: var(--s-3); gap: var(--s-2); }
.card, .stage, .cmp, .panel, .doc { padding: var(--s-3); gap: var(--s-2); }
@media (min-width: 1100px) { .card, .stage, .cmp, .doc { padding: var(--s-4); } }
.feat, .mini, .part, .case { padding: var(--s-3); }
.svcs, .cards, .clinics, .docs, .feats, .minis, .cases, .parts, .compare, .stages, .rels, .risk { gap: var(--s-2); }
@media (min-width: 1100px) { .svcs, .clinics, .docs, .stages, .compare { gap: var(--s-3); } }
.section--alt { --card: var(--c-bg); }
.section--alt .facts div, .section--alt .panel--tip { background: var(--c-bg); }
.panel--tip { background: var(--c-surface-alt); }
.ptable thead th { background: transparent; border-bottom-color: var(--c-fg); font-weight: 400; font-size: var(--fs-meta); }
.ptable th, .ptable td { padding: var(--s-2) var(--s-3); }
.faq__item { background: transparent; border-radius: 0; border-top: 1px solid var(--c-border); }
.faq__list { gap: 0; border-bottom: 1px solid var(--c-border); }
.faq__item summary { padding: var(--s-3) 3rem var(--s-3) 0; font-weight: 500; font-size: var(--fs-body-lg); }
.faq__item p { padding: 0 3rem var(--s-3) 0; font-size: var(--fs-body); }
@media (hover: hover) {
  .card:hover, .feat:hover, .mini:hover, .case:hover, .clinic:hover, .stage:hover, .part:hover, .cmp:hover, .svc:hover { box-shadow: 0 24px 48px -32px rgb(var(--gray-900-rgb) / .45); }
}
.step__n { font-weight: 400; font-family: var(--f); }
.cmp--featured { box-shadow: inset 0 0 0 1.5px var(--c-accent); }
.mini { border-top: 2px solid var(--c-accent); }
.nav { background: rgb(var(--gray-50-rgb) / .92); border-bottom-color: var(--c-border-soft); }
.nav__menu a { font-weight: 400; }
.brand__zh { font-weight: 600; }
.topbar { background: var(--c-surface-inverse); }

.btn { font-weight: 500; letter-spacing: .06em; }

/* =====================================================================
   v4: further interactions from the reference
   ===================================================================== */
/* FAQ: "+" rotates to "×"; height eased by JS (800ms outQuint) */
.faq__item summary::after { content: none; }
.faq__icon { position: absolute; right: .25rem; top: 50%; width: 22px; height: 22px; margin-top: -11px; transition: transform .25s var(--out-quint); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: var(--c-fg); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(135deg); }
.faq__item[open] p { animation: none; }
.faq__body { overflow: hidden; }

/* underline that slides in from the left and leaves to the right */
.ul { position: relative; }
.ul::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--out-quint); }
.ul:focus-visible::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) { .ul:hover::after { transform: scaleX(1); transform-origin: left; } }
.clinic__kv a { text-decoration: none; }

/* mobile menu: fades in and rises 1rem; burger morphs with inOutQuint */
@media (max-width: 1079px) {
  .nav__menu { display: block; opacity: 0; visibility: hidden; transform: translateY(1rem); transition: opacity .3s var(--out-quint), transform .3s var(--out-quint), visibility 0s .3s; }
  .menu-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--out-quint), transform .35s var(--out-quint); }
  .nav__menu li { opacity: 0; transform: translateY(.75rem); transition: opacity .5s var(--out-quint), transform .5s var(--out-quint); }
  .menu-open .nav__menu li { opacity: 1; transform: none; }
  .menu-open .nav__menu li:nth-child(2) { transition-delay: .04s; } .menu-open .nav__menu li:nth-child(3) { transition-delay: .08s; }
  .menu-open .nav__menu li:nth-child(4) { transition-delay: .12s; } .menu-open .nav__menu li:nth-child(5) { transition-delay: .16s; }
}
.nav__burger i, .nav__burger i::before, .nav__burger i::after { transition: transform .5s var(--io-quint), background .3s; }

@media (prefers-reduced-motion: reduce) {
  .nav__menu, .nav__menu li { transition: none !important; }
}
.faq__item.is-closing .faq__icon { transform: rotate(0); }
/* headings on inverse surfaces inherit the inverse text role */
.risk__head, .pricebox, .stage__age { color: var(--c-fg-inverse); }

.pricebox > div { min-width: 0; }
.pricebox b { font-size: var(--fs-price-fluid); }
@media (max-width: 639px) { .ptable .price { white-space: normal; text-align: right; } .ptable tr { grid-template-columns: minmax(0, 1fr) auto; } .ptable th, .ptable td { padding: 0; } }
.nw { white-space: nowrap; display: inline-block; }
.hero h1 .nw + .nw { margin-left: .3em; }

/* =====================================================================
   v4: scroll-driven motion — kinetic headings, image masks, scrub bands,
   steps progress line, hero scroll-out, airway scrollytelling (osa)
   ===================================================================== */

/* kinetic section headings: tokens rise out of a mask, staggered (JS splits the text) */
.kw { white-space: nowrap; }
.kt { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.kt > span { display: inline-block; transition: transform 1s var(--out-quint), opacity .6s ease; transition-delay: var(--kd, 0s); }
.kt-on .sec-head:not(.in) .kt > span { transform: translateY(110%); opacity: 0; }
.sec-head .lede { transition: opacity .8s ease .25s, transform .8s var(--out-quint) .25s; }
.kt-on .sec-head:not(.in) .lede { opacity: 0; transform: translateY(12px); }

/* image masks: frame expands from an inset while the photo settles from a zoom */
.mk { clip-path: inset(10% 8% 10% 8% round var(--r)); transition: clip-path 1.3s var(--out-quint); }
.mk img { scale: 1.18; transition: scale 1.6s var(--out-quint); }
.mk.in { clip-path: inset(0 0 0 0 round var(--r)); }
.mk.in img { scale: 1; }
.mk-frame { border-radius: var(--r); overflow: hidden; }

/* hero scroll-out: copy drifts up and fades, media eases back (JS sets --p 0 -> 1 as the hero leaves) */
.hero__text, .phero__text { transform: translateY(calc(var(--p, 0) * -48px)); opacity: calc(1 - var(--p, 0) * .9); }
.hero__media, .phero__media { scale: calc(1 - var(--p, 0) * .05); }

/* scroll-linked word band */
.band { overflow: hidden; padding: clamp(var(--s-5), 6vw, var(--s-7)) 0; display: grid; gap: .1em; font-size: var(--fs-display-2); line-height: 1.05; font-weight: 500; letter-spacing: -.02em; pointer-events: none; user-select: none; }
.band__row { display: flex; white-space: nowrap; width: max-content; will-change: transform; transform: translate3d(calc(var(--p, .5) * -22%), 0, 0); color: var(--ink); }
.band__row--alt { transform: translate3d(calc(-30% + var(--p, .5) * 22%), 0, 0); color: transparent; -webkit-text-stroke: 1px var(--c-accent-soft); }
.band span { display: inline-flex; align-items: center; }
.band span::after { content: ""; width: .18em; height: .18em; margin: 0 .45em; border-radius: 50%; background: var(--slate); flex: none; }
.band__row--alt span::after { background: var(--c-accent-soft); }

/* steps row: progress line fills with scroll, numbers light up as it passes */
.steps--row { position: relative; --f: 0; }
.steps--row::before, .steps--row::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }
.steps--row::before { background: var(--line); }
.steps--row::after { background: var(--slate); }
.steps--row .step__n { position: relative; z-index: 1; transition: background .4s, color .4s, transform .5s var(--out-quint); }
.steps--row .step.is-on .step__n { transform: scale(1.08); }
@media (max-width: 959px) {
  .steps--row::before, .steps--row::after { left: 16px; top: 18px; bottom: 18px; width: 2px; }
  .steps--row::after { transform-origin: top; transform: scaleY(var(--f)); }
}
@media (min-width: 960px) {
  .steps--row { padding-top: 28px; }
  .steps--row::before, .steps--row::after { left: 0; right: 0; top: 0; height: 2px; }
  .steps--row::after { transform-origin: left; transform: scaleX(var(--f)); }
  .steps--row .step { transition: transform .6s var(--out-quint), box-shadow .6s; }
  .steps--row .step.is-on { transform: translateY(-4px); }
}

/* ---- scrollytelling: sticky figure scrubbed by a list of steps (JS sets --p on .scr__fig) ---- */
.scr__grid { display: grid; gap: var(--s-4); }
.scr__grid + .scr__grid { margin-top: var(--s-7); }
.scr__fig { --p: 0; margin: 0; position: relative; border-radius: var(--r); background: linear-gradient(170deg, var(--c-scr-fig-bg), var(--c-fog)); overflow: hidden; }
.scr__fig svg { display: block; width: 100%; height: 100%; }
.scr__hud { position: absolute; left: 12px; right: 12px; top: 12px; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 8px; pointer-events: none; }
.scr__label, .scr__state { grid-area: 1 / 1; font-size: var(--fs-meta); font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--c-surface-raised); color: var(--slate); box-shadow: 0 2px 8px -4px rgb(var(--ink-shade-rgb) / .25); }
.scr__label:empty { display: none; }
.scr__label.is-swap { animation: chip .5s var(--out-quint); }
@keyframes chip { from { opacity: 0; transform: translateY(6px); } }
.scr__state--bad { color: var(--c-negative); opacity: calc(1 - var(--ok, 0)); }
.scr__state--ok { color: var(--c-positive); opacity: var(--ok, 0); }
.scr__meter { grid-column: 2; justify-self: end; display: grid; gap: 4px; font-size: var(--fs-caption); color: var(--muted); text-align: right; }
.scr__meter i { display: block; width: 96px; height: 4px; border-radius: var(--r-xs); background: rgb(var(--blue-600-rgb) / .15); overflow: hidden; }
.scr__meter b { display: block; height: 100%; background: var(--slate); transform-origin: left; transform: scaleX(var(--m, 0)); }
.scr__steps { list-style: none; margin: 0; padding: 0; display: grid; }
.scr__step { padding: var(--s-4) 0; border-top: 1px solid var(--line); transition: opacity .5s ease; }
.rv-on .scr__step { opacity: .32; }
.rv-on .scr__step.is-on { opacity: 1; }
.scr__n { font-size: var(--fs-meta); font-weight: 600; color: var(--slate); letter-spacing: .1em; }
.scr__step h3 { font-size: var(--fs-title-fluid); font-weight: 500; margin: 4px 0 8px; }
.scr__step p { color: var(--ink-2); max-width: 30rem; }
@media (max-width: 899px) {
  .scr__fig { position: sticky; top: calc(var(--nav-h) + 52px); z-index: 2; height: 42vh; max-height: 360px; box-shadow: 0 18px 30px -18px rgb(var(--ink-shade-rgb) / .45); }
  .scr__step { min-height: 46vh; }
}
@media (min-width: 900px) {
  .scr__grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: start; }
  .scr__grid--flip .scr__fig { order: 2; }
  .scr__fig { position: sticky; top: calc(var(--nav-h) + 90px); aspect-ratio: 400 / 440; max-height: calc(100vh - var(--nav-h) - 130px); }
  .scr__steps { padding: 16vh 0 20vh; }
  .scr__step { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }
  .scr__step p { font-size: var(--fs-body-lg); line-height: 1.75; }
}

/* night variant: the figure glows against a dark field */
.scr--night { background: radial-gradient(120% 80% at 20% 0%, var(--c-night-1) 0%, var(--c-night-2) 60%, var(--c-night-3) 100%); color: var(--c-fg-inverse); }
.scr--night .sec-head h2, .scr--night .scr__step h3 { color: var(--white); }
.scr--night .sec-head .lede, .scr--night .kicker, .scr--night .kicker span { color: rgb(var(--blue-50-rgb) / .7); }
.scr--night .kicker::before { background: var(--c-accent-soft); }
.scr--night .scr__step { border-top-color: rgb(var(--white-rgb) / .12); }
.scr--night .scr__n { color: var(--c-accent-soft); }
.scr--night .scr__step p { color: rgb(var(--blue-50-rgb) / .72); }
.scr--night .scr__fig { box-shadow: 0 40px 80px -40px var(--scrim-night); }

/* sleep apnea: mandibular advancement */
[data-anim="mad"] {
  --dev: clamp(0, (var(--p) - .28) * 6, 1);   /* splint appears */
  --adv: clamp(0, (var(--p) - .38) * 2.6, 1); /* jaw advances (JS morph uses the same window) */
  --open: clamp(0, (var(--p) - .62) * 5, 1);  /* air flows through */
  --ok: var(--open); --m: var(--adv);
}
[data-anim="mad"] .ax-jaw { transform: translateX(calc(var(--adv) * -18px)); }
.ax-dev { fill: rgb(var(--blue-50-rgb) / .5); stroke: var(--slate); stroke-width: 1.5; stroke-dasharray: 3 2.5; opacity: var(--dev, 1); }
[data-anim="mad"] .ax-flow--b { opacity: var(--open); }
[data-anim="mad"] .ax-block { opacity: calc(1 - var(--adv) * 1.6); }
.ax-block--pulse circle:first-child { transform-box: fill-box; transform-origin: center; animation: blk 1.4s ease-out infinite; }
.ax-block--pulse circle:last-child { fill: var(--c-negative); stroke: none; }
@keyframes blk { from { scale: .4; opacity: 1; } to { scale: 1.6; opacity: 0; } }
.ax-z { fill: var(--slate); font: 600 22px var(--f); opacity: calc((1 - var(--adv, 0)) * .6); }
.ax-z text { animation: zz 2.4s ease-in-out infinite; }
.ax-z text:nth-child(2) { font-size: var(--fs-body); animation-delay: .3s; }
.ax-z text:nth-child(3) { font-size: var(--fs-caption); animation-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  .kt > span, .mk, .mk img, .sec-head .lede { transition: none !important; transform: none !important; clip-path: none !important; scale: 1 !important; opacity: 1 !important; }
  .hero__text, .phero__text { transform: none; opacity: 1; }
  .hero__media, .phero__media { scale: 1; }
  .scr__fig { --p: 1; }
  .scr__step { opacity: 1 !important; }
}

/* ---- anatomy drawings (ax-*), shared by the static and scroll-driven figures ---- */
.ax-skin { fill: var(--ill-skin); }
.ax-line { fill: none; stroke: var(--ill-line); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ax-hair { fill: var(--ill-hair); }
.ax-brow { fill: none; stroke: var(--ill-hair); stroke-width: 3; stroke-linecap: round; }
.ax-eye { fill: none; stroke: var(--ill-eye); stroke-width: 2.2; stroke-linecap: round; }
.ax-lash { fill: none; stroke: var(--ill-eye); stroke-width: 1.4; stroke-linecap: round; }
.ax-ala, .ax-mouth { fill: none; stroke: var(--ill-line-warm); stroke-width: 1.8; stroke-linecap: round; }
.ax-air { fill: var(--ill-air); }
.ax-spine rect { fill: var(--c-fog); }
.ax-wall { fill: var(--ill-palate); }
.ax-bone { fill: var(--ill-bone-cool); }
.ax-soft { fill: var(--ill-soft); }
.ax-tongue { fill: var(--ill-tongue); }
.ax-tooth { fill: var(--white); stroke: var(--ill-tooth); stroke-width: 1.2; }
.ax-flow { fill: none; stroke: var(--slate); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .03 .03; animation: flow 1.6s linear infinite; }
.ax-block circle { fill: none; stroke: var(--c-negative); stroke-width: 2.5; }
@keyframes flow { to { stroke-dashoffset: -.06; } }
.cmp__img--art { height: 300px; display: block; padding: 16px; background: linear-gradient(170deg, var(--c-scr-fig-bg), var(--c-fog)); }
.cmp__img--art img { width: 100%; height: 100%; object-fit: contain; }

/* implant procedure: assess -> extract -> place -> integrate -> restore */
[data-anim="implant"] {
  --a: clamp(0, var(--p) / .16, 1);
  --b: clamp(0, (var(--p) - .2) / .16, 1);
  --c: clamp(0, (var(--p) - .4) / .16, 1);
  --d: clamp(0, (var(--p) - .6) / .16, 1);
  --e1: clamp(0, (var(--p) - .8) / .08, 1);
  --e2: clamp(0, (var(--p) - .86) / .1, 1);
  background: linear-gradient(170deg, var(--c-fig-glow), var(--c-fog));
}
.im-bone { fill: var(--ill-bone); }
.im-trab circle { fill: var(--ill-trab); }
.im-cortex { fill: none; stroke: var(--ill-cortex); stroke-width: 4; }
.im-nerve { fill: none; stroke: var(--ill-nerve); stroke-width: 9; stroke-linecap: round; }
[data-anim="implant"] .im-nerve { stroke-width: calc(9px + (var(--a) - var(--c)) * 3px); filter: drop-shadow(0 0 calc((var(--a) - var(--c)) * 6px) rgb(var(--ill-nerve-rgb) / .9)); }
.im-root { stroke-dasharray: none; }
.im-old__t { fill: var(--ill-tooth-old); stroke: var(--ill-line-warm); stroke-width: 1.2; }
.im-crack { fill: none; stroke: var(--ill-crack); stroke-width: 2; stroke-linecap: round; }
.im-caries { fill: var(--ill-decay); opacity: .8; }
.im-old { transform-box: fill-box; transform-origin: 50% 50%; transform: translateY(calc(var(--b) * -300px)) rotate(calc(var(--b) * -10deg)); opacity: calc(1 - var(--b) * 1.2); }
.im-socket { fill: var(--ill-cortex); opacity: calc(min(1, var(--b) * 3) - var(--c) * 2); }
.im-gum { fill: var(--ill-gum); }
.im-fix { transform: translateY(calc((1 - var(--c)) * -280px)); opacity: clamp(0, var(--c) * 5, 1); }
.im-thr path { fill: none; stroke: var(--ill-metal); stroke-width: 2; }
.im-thr { transform: translateY(calc(var(--c) * 27px)); }
.im-fix__line { fill: none; stroke: var(--ill-metal); stroke-width: 1.2; }
.im-halo { fill: none; stroke: var(--ill-new-bone); stroke-width: 7; stroke-linejoin: round; opacity: calc(var(--d) * .85); }
.im-osteo circle { fill: var(--ill-cortex); transform-box: fill-box; transform-origin: center; scale: calc(.2 + var(--d) * .8); opacity: var(--d); }
.im-abut { stroke: var(--ill-metal); stroke-width: 1.2; transform: translateY(calc((1 - var(--e1)) * -200px)); opacity: clamp(0, var(--e1) * 5, 1); }
.im-crown { transform: translateY(calc((1 - var(--e2)) * -240px)); opacity: clamp(0, var(--e2) * 5, 1); }
.im-shine { fill: none; stroke: var(--white); stroke-width: 4; stroke-linecap: round; opacity: .9; }
.im-scan { opacity: calc(1 - var(--b) * 4); }
.im-scan__area { fill: url(#im-beam); transform-box: fill-box; transform-origin: top; transform: scaleY(var(--a)); }
.im-scan__beam { fill: var(--slate); transform: translateY(calc(var(--a) * 357px)); filter: drop-shadow(0 0 6px rgb(var(--blue-600-rgb) / .6)); }
.im-measure { opacity: calc(var(--a) * 2 - var(--b) * 3); }
.im-measure path { fill: none; stroke: var(--slate); stroke-width: 2; stroke-dasharray: 5 4; }
.im-measure path + path { stroke-dasharray: none; }
.im-measure text, .im-tag { font: 600 13px var(--f); fill: var(--slate); }
.im-tag--nerve { fill: var(--blue-700); opacity: calc(var(--a) * 2 - var(--b) * 3); }
.im-timer { opacity: calc(min(1, var(--d) * 5) - var(--e1) * 2); }
.im-timer__bg { fill: rgb(var(--white-rgb) / .8); stroke: rgb(var(--blue-600-rgb) / .15); stroke-width: 5; }
.im-timer__fg { fill: none; stroke: var(--ill-gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: var(--d) 1; transform: rotate(-90deg); transform-origin: 330px 72px; }
.im-timer text { font: 600 13px var(--f); fill: var(--ink); text-anchor: middle; }
.im-timer .im-timer__u { font-size: var(--fs-micro); fill: var(--muted); font-weight: 500; }
.im-spark { fill: var(--white); stroke: var(--c-im-spark-stroke); stroke-width: 1; transform-box: fill-box; transform-origin: center; opacity: var(--e2); animation: twinkle 2.2s ease-in-out infinite; }
@keyframes twinkle { 50% { scale: .6; } }

/* wordmark (assets/logo.svg from the clinic's logo artwork) */
.brand__logo { display: block; height: 30px; width: auto; }
@media (min-width: 720px) { .brand__logo { height: 38px; } }

.pt-cover__logo img { width: min(420px, 78vw); height: auto; }

/* implant: assembly sequence as a scrolly figure */
[data-anim="parts"] { background: var(--c-svc-contain-bg); }
[data-anim="parts"] canvas, [data-anim="parts"] .seq__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
[data-anim="parts"] canvas { opacity: 0; transition: opacity .4s; }
[data-anim="parts"].is-ready canvas { opacity: 1; }
[data-anim="parts"].is-ready .seq__poster { opacity: 0; }
@media (min-width: 900px) { [data-anim="parts"] { aspect-ratio: 720 / 900; } }
#structure .scr__grid { margin-bottom: var(--s-6); }

/* implant: Straumann */
.sm-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .sm-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .sm-grid { grid-template-columns: repeat(4, 1fr); } }
.sm-grid .card { background: var(--c-surface-raised); padding: var(--s-3); }
.sm-grid .card h3 { font-size: var(--fs-h3); }
.sm-grid .card p { color: var(--ink-2); font-size: var(--fs-ui); }
.verdict { margin-top: var(--s-5); display: grid; gap: var(--s-4); padding: clamp(var(--s-4), 4vw, var(--s-6)); border-radius: var(--r); color: var(--c-fg-inverse);
  background: radial-gradient(120% 120% at 0% 0%, var(--c-verdict-bg) 0%, var(--c-verdict-bg-2) 55%, var(--c-verdict-bg-3) 100%); }
.verdict .kicker, .verdict .kicker span { color: rgb(var(--blue-50-rgb) / .7); }
.verdict .kicker::before { background: var(--c-accent-soft); }
.verdict h3 { font-size: var(--fs-headline-sm); font-weight: 500; color: var(--white); line-height: 1.25; }
.verdict__head p { margin-top: var(--s-2); color: rgb(var(--blue-50-rgb) / .78); max-width: 34rem; }
.verdict__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.verdict__list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgb(var(--white-rgb) / .12); }
.verdict__list li:first-child { border-top: 0; }
.verdict__list .i { color: var(--c-accent-soft); width: 20px; height: 20px; margin-top: 3px; }
.verdict__list b { display: block; font-weight: 500; color: var(--white); }
.verdict__list span { display: block; font-size: var(--fs-ui); color: rgb(var(--blue-50-rgb) / .72); }
@media (min-width: 960px) { .verdict { grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; } }

/* =====================================================================
   home hero: full-bleed looping product film, nav floats over it
   ===================================================================== */
.brand__logo--w { display: none; }
.nav { transition: background .5s var(--out-quint), border-color .5s, color .5s; }
html.at-hero:not(.menu-open) .nav--over { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--white); }
html.at-hero:not(.menu-open) .nav--over .brand__logo:not(.brand__logo--w) { display: none; }
html.at-hero:not(.menu-open) .nav--over .brand__logo--w { display: block; }
html.at-hero:not(.menu-open) .nav--over .nav__menu a { color: rgb(var(--white-rgb) / .86); }
@media (hover: hover) { html.at-hero:not(.menu-open) .nav--over .nav__menu a:hover { background: rgb(var(--white-rgb) / .1); } }
html.at-hero:not(.menu-open) .nav--over .nav__menu a[aria-current="page"] { background: rgb(var(--white-rgb) / .14); color: var(--white); }
html.at-hero:not(.menu-open) .nav--over .nav__burger { background: rgb(var(--white-rgb) / .14); }
html.at-hero:not(.menu-open) .nav--over::after { opacity: 0; }

.hi h1 > span { display: block; animation: rise-lcp 1.1s var(--out-quint) both; }
/* starts at 1% not 0: Chrome skips text painted at opacity 0, so LCP waited for the 3D script to recolour it */
@keyframes rise-lcp { from { opacity: .01; transform: translateY(16px); } }
.hi h1 > span:nth-child(2) { animation-delay: .1s; }
html.pt .hi h1 span { animation-delay: .5s; } html.pt .hi h1 > span:nth-child(2) { animation-delay: .6s; }
.clinic__map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.02); transition: filter .5s; }
@media (hover: hover) { .clinic:hover .clinic__map iframe { filter: none; } }

/* ortho: myofunctional therapy — mouth breathing -> appliance -> nasal breathing, arch widens */
[data-anim="myo"] {
  --dev: clamp(0, (var(--p) - .3) * 8, 1);
  --x: clamp(0, (var(--p) - .36) / .24, 1);   /* jaw closes, tongue rises (JS morph uses the same window) */
  --w: clamp(0, (var(--p) - .66) / .26, 1);   /* arch widens */
}
[data-anim="myo"] .om-jaw { transform-origin: 240px 190px; rotate: calc((1 - var(--x)) * -9deg); }
[data-anim="myo"] .om-dev { opacity: calc(var(--dev) * .9); }
.om-mouth { opacity: calc(1 - var(--x, 0) * 1.4); }
.om-nose { opacity: var(--x, 1); }
.om-inset__bg { fill: var(--white); stroke: var(--c-om-inset-line); stroke-width: 1.5; }
.om-palate { fill: var(--ill-palate); }
.om-tooth { fill: var(--white); stroke: var(--ill-tooth); stroke-width: 1; translate: calc(var(--w, 0) * var(--dx)) calc(var(--w, 0) * var(--dy)); }
.om-arrows path { fill: none; stroke: var(--c-positive); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.om-arrows { opacity: var(--w, 0); }
.om-inset text { font: 600 9px var(--f); fill: var(--slate); text-anchor: middle; }

/* ortho: growth modification — palatal expander, then functional appliance */
[data-anim="growth"] {
  --dev: clamp(0, (var(--p) - .06) * 8, 1);
  --e: clamp(0, (var(--p) - .36) / .24, 1);   /* expansion */
  --v: clamp(0, (var(--p) - .62) * 12, 1);    /* switch to profile view */
  --f: clamp(0, (var(--p) - .7) / .22, 1);    /* mandible guided forward */
}
.og-a { opacity: calc(1 - var(--v, 0)); }
.og-b { opacity: var(--v, 1); }
.og-palate { fill: var(--ill-palate); }
.og-tooth { fill: var(--white); stroke: var(--ill-tooth); stroke-width: 1.2; }
.og-half--l { translate: calc(var(--e, 0) * -14px) 0; }
.og-half--r { translate: calc(var(--e, 0) * 14px) 0; }
.og-suture { fill: var(--ill-trab); transform-box: fill-box; transform-origin: center; scale: var(--e, 0) 1; }
.og-exp { opacity: var(--dev, 1); }
.og-arm { fill: none; stroke: var(--ill-metal-2); stroke-width: 3; stroke-linecap: round; }
.og-body { fill: var(--ill-plastic); stroke: var(--ill-metal-2); stroke-width: 1.2; }
.og-screw { fill: var(--ill-metal-2); }
.og-key { transform-origin: 200px 224px; rotate: calc(var(--e, 0) * 720deg); }
.og-key circle { fill: none; stroke: var(--slate); stroke-width: 1.6; stroke-dasharray: 70 30; }
.og-key path { fill: none; stroke: var(--slate); stroke-width: 1.6; stroke-linecap: round; }
.og-lower { fill: none; stroke: var(--ill-line); stroke-width: 2; stroke-dasharray: 6 5; }
.og-tag { font: 600 11px var(--f); fill: var(--muted); }
.og-tag--suture { text-anchor: middle; fill: var(--blue-700); opacity: var(--e, 0); }
.og-title { font: 600 13px var(--f); fill: var(--slate); text-anchor: middle; letter-spacing: .1em; }
[data-anim="growth"] .og-jaw { translate: calc((1 - var(--f)) * 18px) 0; }
.og-chin { opacity: calc(var(--f, 0) * 1.4); }
.og-chin path { fill: none; stroke: var(--c-positive); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.og-chin text { font: 600 12px var(--f); fill: var(--c-positive); }

/* ortho: comprehensive — crowding -> appliance -> alignment -> bone remodelling */
[data-anim="comp"] {
  --b: clamp(0, (var(--p) - .2) * 10, 1);     /* brackets + wire */
  --m: clamp(0, (var(--p) - .36) / .34, 1);   /* teeth align (JS wire uses the same window) */
  --r: clamp(0, (var(--p) - .76) / .2, 1);    /* remodelling */
}
.oc-t { translate: calc((1 - var(--m, 1)) * var(--dx)) calc((1 - var(--m, 1)) * var(--dy)); rotate: calc((1 - var(--m, 1)) * var(--rot)); }
.oc-gum { fill: var(--ill-gum); }
.oc-bk { fill: var(--ill-line); stroke: var(--ill-metal); stroke-width: .8; opacity: var(--b, 1); }
.oc-wire { fill: none; stroke: var(--ill-metal-2); stroke-width: 1.8; stroke-linejoin: round; opacity: var(--b, 1); }
.oc-inset { opacity: clamp(.35, var(--r, 1) * 4, 1); }
.oc-inset__bg { fill: var(--white); stroke: var(--ill-bone-cool); }
.oc-bone { fill: var(--ill-bone); }
.oc-new { fill: var(--ill-new-bone); transform-box: fill-box; transform-origin: left; scale: var(--r, 1) 1; translate: 12px 0; }
.oc-clast circle { fill: var(--c-negative); opacity: calc(var(--r, 1) * .8); }
.oc-mover { translate: calc(var(--r, 1) * 12px) 0; }
.oc-force { fill: none; stroke: var(--slate); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: var(--r, 1); }
.oc-lbl { font: 600 11px var(--f); opacity: var(--r, 1); }
.oc-lbl--t { fill: var(--blue-700); }
.oc-lbl--p { fill: var(--c-negative); text-anchor: end; }
.scr__chapter { display: grid; gap: 4px; margin: var(--s-7) 0 var(--s-4); max-width: 40rem; }
.scr__chapter:first-of-type { margin-top: 0; }
.scr__chapter span { font-size: var(--fs-meta); font-weight: 600; letter-spacing: .12em; color: var(--slate); }
.scr__chapter h3 { font-size: var(--fs-h3); font-weight: 500; }
.scr__chapter p { color: var(--muted); }

/* WhatsApp on dark grounds: glass outline instead of a filled colour */
.hi .btn--wa, html.at-hero:not(.menu-open) .nav--over .btn--wa { background: rgb(var(--white-rgb) / .08); color: var(--white); box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hi .btn--wa.is-roll .btn__face--h, html.at-hero .nav--over .btn--wa.is-roll .btn__face--h { background: var(--white); color: var(--ink); box-shadow: none; }

/* =====================================================================
   v5 — layout after the style reference (drmarc): inset non-sticky nav,
   one continuous page background, centred page heads, contact + reveal footer
   ===================================================================== */
:root { --nav-h: 0px; --bar-h: 64px; --card-bg: #efefed; --navy: var(--blue-600); --page: #f8f8f7; }
body { background: var(--c-page-stone); }
.page { position: relative; z-index: 1; background: var(--page); border-radius: 0 0 28px 28px; box-shadow: 0 40px 60px -40px rgb(var(--shade-rgb) / .35); }
.topbar { display: none !important; }
.section--alt, .section.section--alt { background: transparent; }
.eyebrow { display: block; font-size: var(--fs-meta); letter-spacing: .14em; color: var(--muted); margin-bottom: var(--s-2); }

/* nav: rounded light bar inset from the page edge, scrolls away with the page */
.nav, .nav.nav--over { position: relative; top: auto; z-index: 60; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 12px var(--gut) 0; }
.nav::after { display: none; }
.nav--over { position: absolute; left: 0; right: 0; top: 0; }
.nav__bar { max-width: 1440px; margin: 0 auto; min-height: var(--bar-h); display: flex; align-items: center; gap: 24px; padding: 8px 10px 8px 22px; border-radius: var(--r-bar); background: rgb(var(--stone-veil-rgb) / .92); }
.nav--over .nav__bar { background: rgb(var(--white-rgb) / .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--white); }
html.at-hero:not(.menu-open) body:has(.hi) .nav--over .nav__bar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { display: inline-flex; flex: none; }
.brand__name { font-weight: 700; font-size: var(--fs-ui); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: currentColor; }
.nav__menu { margin: 0 auto; }
.nav__menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav__menu > ul > li { position: relative; }
.nav__menu a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font-size: var(--fs-ui); font-weight: 500; letter-spacing: .08em; color: inherit; background: none; }
@media (hover: hover) { .nav__menu a:hover { background: rgb(var(--ink-shade-rgb) / .06); } }
@media (hover: hover) { .nav--over .nav__menu a:hover { background: rgb(var(--white-rgb) / .12); } }
.nav__menu a[aria-current="page"] { background: none; color: inherit; box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
.dd-caret { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--out-quint); }
.has-dd:focus-within .dd-caret { transform: rotate(180deg); }
@media (hover: hover) { .has-dd:hover .dd-caret { transform: rotate(180deg); } }
.dd { position: absolute; left: 50%; top: 100%; padding-top: 10px; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .35s var(--out-quint), visibility .25s; }
.has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) { .has-dd:hover .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
.dd ul { display: grid !important; gap: 2px !important; min-width: 168px; padding: 8px; border-radius: var(--r-bar); background: var(--white); box-shadow: 0 18px 40px -16px rgb(var(--shade-rgb) / .3); }
.dd a { display: block; padding: 9px 14px; border-radius: 6px; color: var(--ink) !important; font-size: var(--fs-small); letter-spacing: .06em; }
@media (hover: hover) { .dd a:hover { background: var(--card-bg) !important; } }
.nav__end { display: flex; align-items: center; gap: 8px; flex: none; }

/* BOOK button (reference): dark pill, caps label, circular arrow that swaps on hover */
.bk { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: var(--fs-small); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transition: background .3s; }
@media (hover: hover) { .bk:hover { background: var(--navy); } }
.bk__wa { width: 18px; height: 18px; flex: none; margin-right: -4px; }
.cta-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; overflow: hidden; flex: none; }
.cta-ico__in { position: relative; width: 16px; height: 16px; }
.cta-ico .i { position: absolute; inset: 0; width: 16px; height: 16px; transition: transform .5s var(--out-quint); }
.cta-ico .i + .i { transform: translate(-18px, 18px); }
@media (hover: hover) { .bk:hover .cta-ico .i:first-child { transform: translate(18px, -18px); } }
@media (hover: hover) { .bk:hover .cta-ico .i + .i { transform: none; } }
.bk--block { width: 100%; justify-content: space-between; }
.nav--over .bk--nav { background: var(--white); color: var(--ink); }
.nav--over .bk--nav .cta-ico { background: var(--ink); color: var(--white); }
.hi .bk { background: var(--white); color: var(--ink); }
.hi .bk .cta-ico { background: var(--ink); color: var(--white); }
.hi .btn--ghost { color: var(--white); box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / .45); background: rgb(var(--white-rgb) / .06); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

@media (max-width: 1099px) {
  .nav__menu { display: none; position: absolute; left: var(--gut); right: var(--gut); top: calc(100% + 6px); margin: 0; padding: 10px; border-radius: 12px; background: var(--white); color: var(--ink); box-shadow: 0 20px 40px -20px rgb(var(--black-rgb) / .35); }
  .menu-open .nav__menu { display: block; }
  .nav__menu ul { flex-direction: column; gap: 0; }
  .nav__menu a { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .dd { position: static; transform: none; opacity: 1; visibility: visible; padding: 0 0 6px 12px; }
  .dd ul { box-shadow: none; padding: 0; background: none; display: flex !important; flex-wrap: wrap; }
  .dd a { padding: 6px 10px; font-size: var(--fs-meta); color: var(--muted) !important; }
  .dd-caret { display: none; }
  .nav__burger { display: grid; }
  .bk--nav .bk__t { display: none; }
  .bk--nav { padding: 6px; }
}
@media (max-width: 480px) { .brand__name { font-size: var(--fs-meta); letter-spacing: .04em; } .nav__bar { padding-left: 16px; gap: 10px; } }
@media (max-width: 380px) { .lang a { padding: 6px 7px; } .brand__name { letter-spacing: .02em; } }
/* 320px phones: the name wraps to two lines so the bar fits */
@media (max-width: 350px) { .nav__bar { gap: 6px; padding-right: 6px; } .brand { flex: 0 1 auto; min-width: 0; } .brand__name { white-space: normal; font-size: var(--fs-caption); line-height: 1.15; } }

/* page head centred, media below (service pages in the reference) */
.phero { padding: clamp(var(--s-5), 7vw, var(--s-7)) 0 var(--s-5); }
.phero__head { text-align: center; max-width: 60rem; display: grid; justify-items: center; }
.phero__head .crumbs { justify-content: center; margin-bottom: var(--s-2); font-size: var(--fs-caption); }
.phero h1 { font-size: var(--fs-display-2); font-weight: 400; line-height: 1.08; letter-spacing: .02em; }
.phero h1 small { margin-top: var(--s-2); font-size: var(--fs-ui-fluid); font-weight: 500; color: var(--muted); }
.phero .lede { max-width: 42rem; margin: var(--s-3) auto 0; color: var(--ink-2); }
.phero .cta-row { justify-content: center; margin-top: var(--s-4); }
.phero__media { margin: clamp(var(--s-5), 6vw, var(--s-6)) 0 0; aspect-ratio: 21 / 9; max-height: 620px; width: 100%; order: 0; border-radius: 12px; }
.phero__media--contain { background: var(--c-svc-contain-bg); }
.phero__facts { margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.phero__facts div { background: var(--card-bg); border-radius: var(--r-bar); padding: 16px 20px; }
.phero__facts dt { font-size: var(--fs-caption); letter-spacing: .1em; color: var(--muted); }
.phero__facts dd { margin: 4px 0 0; font-size: var(--fs-body-lg); font-weight: 500; }
@media (min-width: 900px) { .phero__facts { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px) { .phero__media { aspect-ratio: 4 / 3; } }

/* in-page tabs: sticky, airier */
.toc { top: 0; background: rgb(var(--chalk-veil-rgb) / .92); border-bottom: 0; padding: 10px 0; }
.toc ul { gap: 10px; padding: 4px 0; }
.toc a { padding: 9px 18px; letter-spacing: .06em; background: var(--card-bg); box-shadow: none; }
.toc a.is-on { background: var(--ink); color: var(--white); }
@media (min-width: 900px) { .toc ul { justify-content: center; gap: 12px; } }

/* sticky offsets now that the nav does not stick */
.scr__fig { top: calc(70px + var(--s-3)); }
@media (min-width: 900px) { .scr__fig { top: calc(80px + var(--s-4)); } }

/* about / philosophy */
.about__intro { max-width: 52rem; margin-bottom: var(--s-6); }
.about__intro h2 { font-size: var(--fs-h2); font-weight: 400; line-height: 1.25; }
.about__intro .lede { margin-top: var(--s-3); }

.kits { display: grid; gap: 12px; }
@media (min-width: 640px) { .kits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .kits { grid-template-columns: repeat(4, 1fr); } }
.kit { margin: 0; background: var(--card-bg); border-radius: 12px; overflow: hidden; }
.kit__img { aspect-ratio: 4 / 3; overflow: hidden; }
.kit__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--out-quint); }
@media (hover: hover) { .kit:hover .kit__img img { scale: 1.05; } }
.kit figcaption { padding: var(--s-3); }
.kit h3 { font-size: var(--fs-body-lg); font-weight: 500; margin-bottom: 6px; }
.kit p { font-size: var(--fs-small); color: var(--ink-2); }
.doc__notes { margin: 10px 0 0; padding-left: 18px; font-size: var(--fs-small); color: var(--ink-2); display: grid; gap: 4px; }
.docs { grid-template-columns: 1fr; }
@media (min-width: 900px) { .docs { grid-template-columns: 1fr 1fr; } }

/* cards on the continuous page */
.svc, .card, .feat, .mini, .case, .clinic, .doc, .part, .cmp, .rel, .panel, .faq__item, .stage, .risk__card, .chart, .facts div { background: var(--card-bg); box-shadow: none; }
.svc__foot { justify-content: flex-end; }

/* clinic cards with the namecard maps */
.clinic { border-radius: 12px; overflow: hidden; }
.clinic__map { aspect-ratio: auto; background: var(--c-clinic-map-bg-2); padding: 14px; }
.mp { display: block; width: 100%; height: auto; }
.mp-route { fill: none; stroke: var(--slate); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--out-quint) .2s; }
.clinic.in .mp-route, html:not(.rv-on) .mp-route { stroke-dashoffset: 0; }
.mp-mark { fill: var(--ink); }

.mp-t { font-family: var(--f); font-weight: 600; fill: var(--ink); }
.clinic__note { font-size: var(--fs-small); color: var(--ink-2); margin: 6px 0 10px; }
.clinic__tels { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.clinic__tels small { margin-left: 4px; color: var(--muted); }
.clinic__cta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* contact section after the reference */
.contact__grid { display: grid; gap: 12px; }
.contact__grid > * { min-width: 0; }   /* the form's selects otherwise widen the card past a 320px screen */
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
.contact__card { background: var(--card-bg); border-radius: 12px; padding: clamp(var(--s-4), 4vw, var(--s-6)); color: var(--ink); }
.contact__card h2 { font-size: var(--fs-headline-xl); font-weight: 400; letter-spacing: .02em; }
.contact__card .lede { margin-top: var(--s-2); color: var(--ink-2); }
.contact .form { margin-top: var(--s-5); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* phones: one column, so the clinic and treatment selects show their full names */
@media (max-width: 479px) { .contact .form { grid-template-columns: 1fr; } }
.contact .field { margin: 0; }
.contact .field--full, .contact .bk--block { grid-column: 1 / -1; }
.contact input, .contact select, .contact textarea { width: 100%; border: 1px solid var(--c-border-strong); background: transparent; border-radius: 8px; padding: 12px 14px; font: inherit; font-size: var(--fs-body); color: var(--ink); }
.contact textarea { min-height: 96px; resize: vertical; }
.contact .bk--block { margin-top: 6px; }
.contact .err { font-size: var(--fs-caption); color: var(--c-negative); min-height: 0; margin: 2px 0 0; }
.contact__side { display: grid; gap: 12px; align-content: start; }
.contact__img { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; }
.contact__img img { width: 100%; height: 100%; object-fit: cover; }
.contact__info { background: var(--card-bg); border-radius: 12px; padding: var(--s-4); display: grid; gap: var(--s-3) var(--s-4); }
@media (min-width: 560px) { .contact__info { grid-template-columns: 1fr 1fr; } }
.contact__info h3 { font-size: var(--fs-small); font-weight: 600; margin-bottom: 6px; }
.contact__info p { font-size: var(--fs-small); color: var(--ink-2); margin: 0 0 8px; }
.contact__info b { font-weight: 600; color: var(--ink); margin-right: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* footer revealed from under the page as it scrolls away */
.ft { position: sticky; bottom: 0; z-index: 0; background: var(--c-page-stone); color: var(--ink); padding: calc(var(--s-6) + 28px) 0 calc(var(--s-4) + env(safe-area-inset-bottom)); margin-top: -28px; }
.ft__in { max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.ft__top { display: grid; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--c-ft-rule); }
@media (min-width: 900px) { .ft__top { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.ft__brand p { margin-top: 10px; font-size: var(--fs-small); color: var(--ink-2); }
.ft h3 { font-size: var(--fs-caption); letter-spacing: .14em; font-weight: 600; margin-bottom: 10px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-small); }
@media (hover: hover) { .ft a:hover { text-decoration: underline; } }
.ft__hours li { display: flex; justify-content: space-between; gap: 12px; }
.ft__hours p { font-size: var(--fs-caption); color: var(--muted); margin-top: 6px; }
.ft__clinics { display: grid; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--c-ft-rule); }
@media (min-width: 900px) { .ft__clinics { grid-template-columns: repeat(3, 1fr); } }
.ft__col p { font-size: var(--fs-meta); color: var(--ink-2); margin: 0 0 6px; }
.ft__tel { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ft__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: var(--s-3); font-size: var(--fs-caption); color: var(--muted); }

@media (max-width: 899px) { .ft { position: relative; } .page { border-radius: 0 0 var(--r-2xl) var(--r-2xl); } }
.nav.nav--over { position: absolute; left: 0; right: 0; top: 0; }
.clinic__map { aspect-ratio: 16 / 10; padding: 0; overflow: hidden; }
.clinic__map .mp { width: 100%; height: 100%; }

/* general dentistry: treatment template */
.tr__grid { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 900px) { .tr__grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-7); } .tr--flip .tr__media { order: 2; } }
.tr__media { display: grid; gap: 12px; }
.tr__media--two { grid-template-columns: 1fr 1fr; }
.tr__fig { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--c-tr-fig-bg); aspect-ratio: 4 / 3; }
.tr__media--two .tr__fig:first-child { grid-column: 1 / -1; }
.ill { display: block; width: 100%; height: 100%; object-fit: cover; }
.ill--ph { background: radial-gradient(60% 60% at 50% 45%, var(--c-ill-ph), var(--c-fog)); }
.tr__fig .ill { transition: scale 1.4s var(--out-quint); }
@media (hover: hover) { .tr__fig:hover .ill { scale: 1.04; } }
.tr__text h2 { font-size: var(--fs-headline-xl); font-weight: 400; line-height: 1.15; }
.tr__text .lede { margin-top: var(--s-2); }
.tr__pts { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: 0; }
.tr__pts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--c-border); font-size: var(--fs-body); color: var(--ink-2); }
.tr__pts .i { width: 18px; height: 18px; margin-top: 3px; color: var(--slate); }
.xr { margin: var(--s-4) 0 0; display: grid; gap: 8px; }
@media (min-width: 560px) { .xr { grid-template-columns: 1fr 1fr; } }
.xr div { background: var(--card-bg); border-radius: var(--r-bar); padding: 12px 16px; }
.xr dt { font-weight: 600; font-size: var(--fs-small); }
.xr dd { margin: 4px 0 0; font-size: var(--fs-meta); color: var(--ink-2); }
/* treatment points tick in one after another as the block enters */
.rv-on .tr__pts li { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .8s var(--out-quint); }
.rv-on .tr.in .tr__pts li { opacity: 1; transform: none; }
.rv-on .tr.in .tr__pts li:nth-child(2) { transition-delay: .08s; } .rv-on .tr.in .tr__pts li:nth-child(3) { transition-delay: .16s; }
.rv-on .tr.in .tr__pts li:nth-child(4) { transition-delay: .24s; } .rv-on .tr.in .tr__pts li:nth-child(5) { transition-delay: .32s; }
.card--ill { padding: 0 0 var(--s-3); overflow: hidden; }
.card--ill > :not(.card__ill) { margin-left: var(--s-3); margin-right: var(--s-3); }
.card__ill { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 6px; background: var(--c-tr-fig-bg); }
.card__ill .ill { transition: scale 1.4s var(--out-quint); }
@media (hover: hover) { .card--ill:hover .card__ill .ill { scale: 1.05; } }
.cmp__img img[src*="/ill/"] { object-fit: cover; }
.cmp__img:has(img[src*="/ill/"]) { height: auto; aspect-ratio: 4 / 3; }
.devs { display: grid; gap: 12px; }
@media (min-width: 900px) { .devs { grid-template-columns: 1fr 1fr; } }
.dev { background: var(--card-bg); border-radius: 12px; overflow: hidden; }
.dev__img { aspect-ratio: 4 / 3; background: var(--c-tr-fig-bg); }
.dev__body { padding: var(--s-4); display: grid; gap: 8px; }
.dev__body h3 { font-size: var(--fs-headline-sm); font-weight: 500; }
.dev__body p { color: var(--ink-2); }
.ptable.vs th[scope="row"] { width: 18%; font-weight: 600; }
.ptable.vs td { vertical-align: top; }
.muted { color: var(--muted); }
.phero__media .ill { width: 100%; height: 100%; object-fit: cover; }

/* ortho: diagnosis, mandibular adaptive treatment */
.dg { display: grid; gap: var(--s-4); }
@media (min-width: 1000px) { .dg { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } .dg__note { grid-column: 1 / -1; } }
.dg__head h2 { font-size: var(--fs-h2); font-weight: 400; line-height: 1.25; }
.dg__head .lede { margin-top: var(--s-3); }
.dg__price { margin-top: var(--s-4); display: inline-grid; gap: 2px; padding: 18px 24px; border-radius: 12px; background: var(--ink); color: var(--white); }
.dg__price span { font-size: var(--fs-meta); opacity: .75; }
.dg__price b { font-size: var(--fs-price); font-weight: 300; letter-spacing: -.01em; }
.dg__price small { font-size: var(--fs-meta); opacity: .75; }
.dg__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.dg__list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; background: var(--card-bg); border-radius: var(--r-bar); padding: 16px 20px; }
.dg__list li > span { font-weight: 600; color: var(--slate); letter-spacing: .1em; font-size: var(--fs-meta); padding-top: 3px; }
.dg__list h3 { font-size: var(--fs-body); font-weight: 500; }
.dg__list p { font-size: var(--fs-small); color: var(--ink-2); margin-top: 2px; }
.dg__note { background: var(--card-bg); border-radius: 12px; padding: var(--s-4); }
.dg__note h3 { display: flex; gap: 8px; align-items: center; font-size: var(--fs-body-lg); font-weight: 600; margin-bottom: 8px; }
.dg__note p { color: var(--ink-2); max-width: 60rem; }
.mt { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 900px) { .mt { grid-template-columns: 1.1fr 1fr; gap: var(--s-6); } }
.mt__fig { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--c-tr-fig-bg); aspect-ratio: 4 / 3; position: relative; }
.mt__fig .ill, .mt__fig canvas, .mt__fig video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt__ph { width: 100%; height: 100%; }
.mt__cmp { display: grid; gap: 10px; }
.mt__opt { background: var(--card-bg); border-radius: 12px; padding: var(--s-3) var(--s-4); }
.mt__opt h3 { font-size: var(--fs-title-md); font-weight: 500; margin: 2px 0 6px; }
.mt__opt p { color: var(--ink-2); font-size: var(--fs-ui); }
.mt__opt--on { background: var(--ink); color: var(--white); }
.mt__opt--on .eyebrow, .mt__opt--on p { color: rgb(var(--white-rgb) / .75); }
.mt__caveat { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: var(--fs-meta); color: var(--muted); margin: 6px 4px 0; }
.mt__caveat .i { width: 18px; height: 18px; }
.logos { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.logos li { display: grid; place-items: center; min-height: 84px; padding: 14px; border-radius: var(--r-bar); background: var(--white); text-align: center; }
.logos img { max-width: 140px; max-height: 34px; width: auto; height: auto; filter: grayscale(1) contrast(1.1); opacity: .85; transition: filter .4s, opacity .4s; }
@media (hover: hover) { .logos li:hover img { filter: none; opacity: 1; } }
.logos__word { font-weight: 700; font-size: var(--fs-title-md); letter-spacing: .02em; color: var(--ink); line-height: 1.1; }
.logos__word small { display: block; font-size: var(--fs-micro); font-weight: 500; letter-spacing: .12em; color: var(--muted); margin-top: 4px; }
.logos__word--spark { font-style: italic; letter-spacing: .04em; }
.sm-logo { display: block; height: 34px; width: auto; margin-bottom: var(--s-4); filter: grayscale(1) brightness(.35); }

/* implant: centred assembly stage with leader lines to each part */
.asm { position: relative; height: 260vh; margin-top: var(--s-4); }
.asm__stage { position: sticky; top: 70px; height: calc(100vh - 90px); display: grid; grid-template-columns: 1fr minmax(280px, 34vw) 1fr; grid-template-rows: 1fr 1fr 1fr; align-items: center; column-gap: var(--s-4); }
.asm__canvas { grid-column: 2; grid-row: 1 / -1; position: relative; height: 100%; max-height: 760px; aspect-ratio: 720 / 900; justify-self: center; border-radius: var(--r-xl); overflow: hidden; background: var(--c-svc-contain-bg); }
.asm__canvas canvas, .asm__canvas .seq__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.asm__canvas canvas { opacity: 0; transition: opacity .4s; }
.asm__canvas.is-ready canvas { opacity: 1; }
.asm__canvas.is-ready .seq__poster { opacity: 0; }
.asm__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.asm__lines path { fill: none; stroke: var(--slate); stroke-width: 1.4; stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke-dashoffset 1s var(--out-quint); }
.asm__lines circle { fill: var(--slate); opacity: 0; transition: opacity .4s .5s; }
.asm__lines .is-on path { stroke-dashoffset: 0; }
.asm__lines .is-on circle { opacity: 1; }
.asm__call { max-width: 340px; padding: var(--s-3); border-radius: 12px; background: var(--card-bg); opacity: .25; transform: translateY(10px); transition: opacity .6s, transform .8s var(--out-quint), background .4s; }
.asm__call.is-on { opacity: 1; transform: none; }
.asm__call--1 { grid-column: 1; grid-row: 1; justify-self: end; }
.asm__call--2 { grid-column: 3; grid-row: 2; justify-self: start; }
.asm__call--3 { grid-column: 1; grid-row: 3; justify-self: end; }
.asm__n { font-size: var(--fs-caption); font-weight: 600; color: var(--slate); }
.asm__call h3 { font-size: var(--fs-title-md); font-weight: 500; margin: 4px 0 6px; }
.asm__call p { font-size: var(--fs-small); color: var(--ink-2); }
@media (max-width: 899px) {
  .asm { height: auto; }
  .asm__stage { position: static; height: auto; display: grid; grid-template-columns: 1fr; grid-template-rows: none; gap: 10px; }
  .asm__canvas { grid-column: 1; grid-row: auto; width: min(100%, 420px); height: auto; }
  .asm__call, .asm__call--1, .asm__call--2, .asm__call--3 { grid-column: 1; grid-row: auto; justify-self: stretch; max-width: none; opacity: 1; transform: none; }
  .asm__lines { display: none; }
}
@media (min-width: 900px) {
  .asm__stage { grid-template-columns: 1fr minmax(260px, 30vw) 1fr; }
  .asm__canvas { width: 100%; height: auto; max-height: calc(100vh - 110px); align-self: center; }
}
/* Higgsfield frame films inside figures */
.scr__fig[data-seq] { aspect-ratio: 1 / 1; background: var(--c-tr-fig-bg); }
.scr__fig[data-seq] canvas, .scr__fig[data-seq] .seq__poster, .mt__fig[data-seq] canvas, .mt__fig[data-seq] .seq__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-seq] canvas { opacity: 0; transition: opacity .4s; }
[data-seq].is-ready canvas { opacity: 1; }
[data-seq].is-ready .seq__poster { opacity: 0; }
.mt__fig[data-seq] { aspect-ratio: 1 / 1; }
@media (max-width: 899px) { .scr__fig[data-seq] { height: auto; max-height: 46vh; aspect-ratio: 1 / 1; margin: 0 auto; width: min(100%, 46vh); } }
.mad2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.mad2__card { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-tr-fig-bg); }
.mad2__card .ill { transition: scale 1.2s var(--out-quint); }
@media (hover: hover) { .mad2__card:hover .ill { scale: 1.05; } }
.mad2__card span { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 8px; background: rgb(var(--white-rgb) / .92); font-size: var(--fs-meta); color: var(--muted); }
.mad2__card b { display: block; font-size: var(--fs-ui); color: var(--ink); }
.mad2__more { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-bar); background: var(--ink); color: var(--white); font-size: var(--fs-small); }
.mad2__more .i { width: 18px; height: 18px; transition: transform .4s var(--out-quint); }
@media (hover: hover) { .mad2__more:hover .i { transform: translateX(4px); } }
.tr__media--two .tr__fig:first-child { grid-column: auto; }
.tr__media--two .tr__fig { aspect-ratio: 3 / 4; }
.tr__media--two .ill { object-position: 50% 50%; }
.cmp__img--ill { height: auto; aspect-ratio: 4 / 5; padding: 0; } .cmp__img--ill .ill { object-fit: cover; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(var(--ink-shade-rgb) / .06); }
.lang a { padding: 6px 9px; border-radius: 999px; font-size: var(--fs-meta); font-weight: 600; letter-spacing: .04em; color: inherit; opacity: .78; }
.lang a[aria-current="true"] { background: var(--white); color: var(--ink); opacity: 1; }
@media (hover: hover) { .lang a:hover { opacity: 1; } }
.nav--over .lang { background: rgb(var(--white-rgb) / .12); }
@media (max-width: 1099px) { .lang a { padding: 6px 7px; } }

html[lang="en"] .kicker > span { display: none; }
html[lang="en"] .phero h1 { letter-spacing: 0; text-transform: uppercase; }
@media (max-width: 420px) { .lang { display: inline-flex; } .lang a { padding: 5px 6px; font-size: var(--fs-caption); } .bk--nav { display: none; } }

/* nav dropdown after the reference: a full-width navy panel under the bar, contact info + link columns */
@media (min-width: 1100px) {
  .nav__bar { position: relative; }
  .nav__menu > ul > li.has-dd { position: static; }
  .dd { position: absolute; left: 0; right: 0; top: 100%; padding-top: 0; transform: translateY(-6px); }
  .has-dd:hover .dd, .has-dd:focus-within .dd { transform: none; }
  .dd__in { margin-top: 0; padding: 40px 64px 44px; border-radius: 0 0 var(--r-bar) var(--r-bar); background: var(--navy); color: var(--white); display: grid; grid-template-columns: 1fr 3fr; gap: 40px; box-shadow: 0 30px 50px -30px rgb(var(--shade-rgb) / .5); }
  .nav__bar:has(.has-dd:hover), .nav__bar:has(.has-dd:focus-within) { border-radius: var(--r-bar) var(--r-bar) 0 0; }
  .dd__info { display: grid; align-content: start; gap: 4px; }
  .dd__info span { font-size: var(--fs-meta); color: rgb(var(--white-rgb) / .65); margin-top: 10px; }
  .dd__info span:first-child { margin-top: 0; }
  .dd__info a, .dd__info b { font-size: var(--fs-body-lg); font-weight: 500; color: var(--white) !important; padding: 0 !important; background: none !important; }
  .dd__h { display: block; font-size: var(--fs-meta); letter-spacing: .14em; color: rgb(var(--white-rgb) / .65); margin-bottom: 14px; }
  .dd ul { display: grid !important; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 24px !important; min-width: 0; padding: 0; background: none; box-shadow: none; }
  .dd a { color: var(--white) !important; padding: 6px 0 !important; font-size: var(--fs-body); letter-spacing: .08em; border-radius: 0; }
  .dd a:hover { background: none !important; text-decoration: underline; text-underline-offset: 5px; }
  .has-dd:hover .dd-caret, .has-dd:focus-within .dd-caret { transform: rotate(90deg); }
  .dd-caret { width: 6px; height: 10px; }
}
@media (max-width: 1099px) { .dd__info, .dd__h { display: none; } .dd__in { padding: 0; } }
.nav:not(.nav--over) .nav__menu > ul > li > a { color: var(--ink) !important; }
.nav--over .nav__menu > ul > li > a { color: var(--white) !important; }
@media (min-width: 1100px) { .dd .dd__info a { font-size: var(--fs-body-lg); letter-spacing: .04em; } }

/* about: intro row, two grouped lists, airway highlight */
.ab__intro { display: grid; gap: var(--s-4); padding-bottom: var(--s-5); border-bottom: 1px solid var(--c-border); }
@media (min-width: 900px) { .ab__intro { grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: end; } }
.ab__intro h2 { font-size: var(--fs-h2); font-weight: 400; line-height: 1.22; }
.ab__sub { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--fs-body); }
.ab__groups { display: grid; gap: var(--s-5); padding: var(--s-5) 0; }
@media (min-width: 900px) { .ab__groups { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
.ab__group h3 { font-size: var(--fs-meta); font-weight: 600; letter-spacing: .14em; color: var(--muted); margin-bottom: var(--s-2); }
.ab__list { list-style: none; margin: 0; padding: 0; }
.ab__list li { padding: 20px 0; border-top: 1px solid var(--c-border); }
.ab__list h4 { font-size: var(--fs-h3); font-weight: 500; margin: 0 0 6px; }
.ab__list p { color: var(--ink-2); font-size: var(--fs-ui); }
.ab__airway { display: grid; gap: var(--s-3); padding: clamp(var(--s-4), 4vw, var(--s-6)); border-radius: 12px; background: var(--navy); color: var(--white); }
@media (min-width: 900px) { .ab__airway { grid-template-columns: 1fr 1.4fr; gap: var(--s-6); align-items: start; } }
.ab__airway .eyebrow { color: rgb(var(--white-rgb) / .65); }
.ab__airway h3 { font-size: var(--fs-h2); font-weight: 400; }
.ab__airway p { color: rgb(var(--white-rgb) / .8); }
.ab__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-3); }
.ab__links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgb(var(--white-rgb) / .1); font-size: var(--fs-small); transition: background .3s; }
@media (hover: hover) { .ab__links a:hover { background: rgb(var(--white-rgb) / .2); } }
.ab__links .i { width: 16px; height: 16px; }
.gen-row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; padding: 22px 26px; margin-bottom: 12px; border-radius: 12px; background: var(--ink); color: var(--white); transition: background .4s; }
@media (hover: hover) { .gen-row:hover { background: var(--navy); } }
.gen-row__k { font-size: var(--fs-title-fluid); font-weight: 500; white-space: nowrap; }
.gen-row__k small { display: block; font-size: var(--fs-caption); color: rgb(var(--white-rgb) / .6); font-weight: 500; }
.gen-row__list { color: rgb(var(--white-rgb) / .78); font-size: var(--fs-ui); line-height: 1.8; }
.gen-row .cta-ico { width: 40px; height: 40px; }
@media (hover: hover) { .gen-row:hover .cta-ico .i:first-child { transform: translate(18px, -18px); } }
@media (hover: hover) { .gen-row:hover .cta-ico .i + .i { transform: none; } }
@media (max-width: 720px) { .gen-row { grid-template-columns: 1fr auto; } .gen-row__list { grid-column: 1 / -1; grid-row: 2; font-size: var(--fs-small); } }
@media (min-width: 1100px) { .svcs--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 1099px) { .svcs--4 { grid-template-columns: repeat(2, 1fr); } }

/* FAQ after the reference: one soft panel, padded rows */
.faq__list { background: var(--card-bg); border-radius: 12px; border: 0; padding: 8px clamp(18px, 3vw, 36px); gap: 0; }
.faq__item { background: transparent !important; border-top: 1px solid var(--c-rule); border-radius: 0; }
.faq__item:first-child { border-top: 0; }
.faq__item summary { padding: 24px 3rem 24px 0; }
.faq__item p { padding: 0 3rem 24px 0; color: var(--ink-2); }

/* footer: inset rounded panel with breathing room on the sides, like the reference */
.ft { background: transparent; padding: calc(28px + var(--s-3)) var(--gut) var(--s-3); }
.ft__in { background: var(--c-ft-in-bg); border-radius: var(--r-xl); padding: clamp(var(--s-4), 4vw, var(--s-6)) clamp(var(--s-3), 4vw, var(--s-6)) var(--s-3); max-width: 1440px; }
body { background: var(--c-page-chalk); }
.minis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.mini.card--ill { padding: 0 0 var(--s-3); }
.asm { height: 190vh; }
.asm.is-assembling .asm__lines g { opacity: 0; transition: opacity .3s; }
.asm.is-assembling .asm__call { opacity: .45; }
.cmp-h { font-size: var(--fs-meta); font-weight: 600; letter-spacing: .14em; color: var(--muted); margin: var(--s-5) 0 var(--s-2); } .cmp-h:first-of-type { margin-top: 0; }
/* clinic maps: traced streets + UI overlays */
.clinic__map { background: var(--c-clinic-map-bg-3); }
.mp-streets { fill: var(--c-map-street); }
.mp-route { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--out-quint) .3s; }
.mp-chip rect { fill: var(--white); stroke: rgb(var(--ink-shade-rgb) / .12); stroke-width: .3; }
.mp-chip text { font-family: var(--f); font-weight: 600; fill: var(--ink); letter-spacing: .02em; }
.mp-chip--mtr rect { fill: var(--ink); stroke: none; }
.mp-chip--mtr text { fill: var(--white); }
.mp-chip--clinic rect { fill: var(--navy); stroke: none; }
.mp-chip--clinic text { fill: var(--white); }
.mp-pin__dot { fill: var(--navy); stroke: var(--white); stroke-width: .8; }
.mp-pin__pulse { fill: var(--navy); opacity: .35; transform-box: fill-box; transform-origin: center; animation: mp-pulse 2.2s ease-out infinite; }
@keyframes mp-pulse { from { scale: .6; opacity: .45; } to { scale: 2.6; opacity: 0; } }
.mp-streets { fill: var(--c-map-street); }
.mp-route { stroke-width: var(--rw, 1.6px); }
.mp-pin__dot { stroke-width: .5; }
.clinic__map { background: var(--c-map-street); }
.mp-streets { fill: var(--c-clinic-map-bg-2); }
.clinic:not(.rv) .mp-route, .clinic.in .mp-route { stroke-dashoffset: 0; }
/* steps sit around the sticky figure's centre so the highlighted text is level with the animation */
@media (min-width: 900px) {
  .scr__steps { padding: 22vh 0 30vh; }
  .scr__step { min-height: 46vh; }
}
.mt__vs { margin: var(--s-5) 0 0; border-radius: var(--r-xl); overflow: hidden; background: var(--c-tr-fig-bg); }
.mt__vs .ill { aspect-ratio: 16 / 9; height: auto; }
.mt__vs figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-rule); }
.mt__vs figcaption span { background: var(--card-bg); padding: 14px 20px; font-size: var(--fs-small); text-align: center; }
.mt__vs figcaption span + span { background: var(--ink); color: var(--white); }
/* illustrations ease out of a slight zoom and drift as they cross the viewport */
.tr__fig .ill, .card__ill .ill, .kit__img img { scale: calc(1.14 - var(--p, .5) * .14); translate: 0 calc((var(--p, .5) - .5) * -4%); transition: scale .2s linear; }
@media (prefers-reduced-motion: reduce) { .tr__fig .ill, .card__ill .ill, .kit__img img { scale: 1; translate: none; } }
.ab__airway h3 { color: var(--white); }

/* page transition: the navbar wordmark, enlarged */
.pt-cover__logo .brand__name { font-size: var(--fs-headline-sm); font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.logos img { max-height: 40px; }

/* polish pass (taste + Emil Kowalski motion skills) --------------------------------------------- */
/* headings never leave a lone character on the last line; body copy avoids orphans */
h1, h2, h3, .lede { text-wrap: balance; }
/* Chinese headings break at punctuation, not mid-phrase (「親 / 自主理」); anywhere is the fallback for a long run */
:lang(zh) .hi__explore p { word-break: keep-all; overflow-wrap: anywhere; }
p, li, dd { text-wrap: pretty; }
/* pressed feedback: quick, transform-only, one curve */
.btn, .bk, .dock__btn, .nav__menu a, .lang a, .svc__media, .faq summary {
  transition-property: transform, background-color, color, box-shadow; transition-timing-function: cubic-bezier(.2, 0, 0, 1); }
.btn:active, .bk:active, .dock__btn:active, .lang a:active { transform: scale(.97); transition-duration: 140ms; }
.nav__menu a:active { transform: translateY(1px); transition-duration: 120ms; }
/* 404 */
.nf { min-height: 60svh; display: grid; align-content: center; text-align: center; }
.nf .cta-row { justify-content: center; margin-top: var(--s-5); }
@media (prefers-reduced-motion: reduce) { .btn:active, .bk:active, .dock__btn:active, .lang a:active, .nav__menu a:active { transform: none; } }

/* fx.js (anime.js + Motion) takes over these; drop the CSS versions so they don't fight */
.fx-hero .hi h1 > span { animation: none; }
.fx-tilt .svc { transition: box-shadow .35s; will-change: transform; }
@media (hover: hover) { .fx-tilt .svc:hover { transform: none; } }

/* Vercel Web Interface Guidelines pass */
a, button, summary, label, select, [role="button"] { touch-action: manipulation; }
html { -webkit-tap-highlight-color: rgb(var(--slate-shade-rgb) / .12); }
[id] { scroll-margin-top: 96px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.dock__sheet, .nav__menu { overscroll-behavior: contain; }
@media (pointer: fine) { html { overscroll-behavior-y: none; } }

/* ===================================================================== home hero (3D)
   WebGL canvas fills the stage: flat unlit background shapes + lit arch/aligner/implant (hero3d.js).
   Copy sits on the left over the empty half of the scene; on phones the scene sits above the copy. */

 /* 3.9:1 on the hero silver; blue-300 was 2:1 */

/* 3D-anchored callouts */

/* light hero: the floating nav keeps dark text over it */

/* booking form on the light contact card: visible labels, readable placeholders, slate focus + chevron */
.contact .field label { font-size: var(--fs-meta); font-weight: 500; color: var(--c-fg-2); }
.contact .field input::placeholder, .contact .field textarea::placeholder { color: var(--c-placeholder); opacity: 1; }
.contact .field :is(input, select, textarea):focus { border-color: var(--blue-600); background: var(--white); }
.contact .field :is(input, select, textarea):focus-visible { outline: 2px solid var(--blue-600); outline-offset: 1px; }
.contact select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%2337465c' fill='none' stroke-width='1.6'/></svg>") no-repeat right 14px center; padding-right: 36px; }
.contact .field input[aria-invalid="true"] { border-color: var(--c-negative); }

/* =====================================================================
   Scrolltide ports: Hover Tabs (treatments), Focus Reveal (facilities)
   ===================================================================== */
/* Hover Tabs: the active row takes the frame's colour and joins it through two concave fillets */
.ht { --ht-surface: var(--c-ft-in-bg); --ht-speed: .45s; --ht-tr: 12px; margin-top: var(--s-3); display: grid; grid-template-columns: 1fr; gap: 12px; }
.ht > * { min-width: 0; }
.ht__tabs { display: flex; flex-direction: column; gap: 4px; }
.ht__tab { position: relative; display: grid; grid-template-rows: auto 0fr; padding: 18px 20px; border-radius: var(--ht-tr); cursor: pointer; outline: none;
  transition: background-color var(--ht-speed) ease, grid-template-rows var(--ht-speed) var(--out-quint); }
.ht__tab[aria-selected="true"] { grid-template-rows: auto 1fr; background: var(--ht-surface); }
@media (hover: hover) { .ht__tab:not([aria-selected="true"]):hover .ht__title { color: var(--slate); } }
.ht__tab:focus-visible { outline: 2px solid var(--blue-600); outline-offset: -2px; }
.ht__title { font-size: var(--fs-title-fluid); font-weight: 500; line-height: 1.3; transition: color .2s; }
.ht__more { min-height: 0; overflow: hidden; }
.ht__text { padding-top: 10px; opacity: 0; translate: 0 -4px; transition: opacity var(--ht-speed) ease, translate var(--ht-speed) ease; }
.ht__text p { font-size: var(--fs-small); color: var(--ink-2); margin-bottom: 10px; max-width: 34em; }
.ht__tab[aria-selected="true"] .ht__text { opacity: 1; translate: 0 0; }
.ht__panel { position: relative; aspect-ratio: 3 / 2; padding: 8px; border-radius: var(--r-2xl); background: var(--ht-surface); }
.ht__pic { position: absolute; inset: 8px; margin: 0; overflow: hidden; border-radius: 12px; opacity: 0; transition: opacity var(--ht-speed) ease; }
.ht__pic.is-on { opacity: 1; }
.ht__pic img { width: 100%; height: 100%; object-fit: cover; scale: 1.04; transition: scale calc(var(--ht-speed) * 2) var(--out-quint); }
.ht__pic.is-on img { scale: 1; }
.ht__pic--contain { background: var(--c-svc-contain-bg); }
.ht__pic--contain img { object-fit: contain; padding: 12px 0; }
.ht__go { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 16px; border-radius: 999px; background: rgb(var(--white-rgb) / .92); font-size: var(--fs-small); font-weight: 500; }
@media (hover: hover) { .ht__go:hover { background: var(--white); } }
@media (min-width: 960px) {
  .ht { grid-template-columns: 32% 1fr; gap: 0; }
  .ht__tabs { padding-top: 28px; gap: 0; }
  .ht__tab { border-radius: var(--ht-tr) 0 0 var(--ht-tr); }
  .ht__tab::before, .ht__tab::after { content: ""; position: absolute; right: 0; width: var(--ht-tr); height: var(--ht-tr); opacity: 0; pointer-events: none; transition: opacity var(--ht-speed) ease; }
  .ht__tab::before { bottom: 100%; background: radial-gradient(circle at 0 0, transparent calc(var(--ht-tr) - .5px), var(--ht-surface) var(--ht-tr)); }
  .ht__tab::after { top: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--ht-tr) - .5px), var(--ht-surface) var(--ht-tr)); }
  .ht__tab[aria-selected="true"]::before, .ht__tab[aria-selected="true"]::after { opacity: 1; }
  .ht__panel { aspect-ratio: auto; min-height: 520px; border-radius: var(--r-2xl); }
  .ht__pic { border-radius: var(--r-xl); }
}

/* Focus Reveal: words sit blurred until a four-bracket focus frame travels to them (js/main.js) */
.fr { position: relative; margin: 0 0 var(--s-4); font-size: var(--fs-h2); font-weight: 500; line-height: 1.3; color: var(--ink); --fr-ease: cubic-bezier(.22,1,.36,1); }
.fr__w { display: inline-block; margin-right: .55em; transition: filter .5s var(--fr-ease), opacity .5s var(--fr-ease); }
.fr.is-live .fr__w { filter: blur(5px); opacity: .45; }
.fr.is-live .fr__w.is-on { filter: none; opacity: 1; }
.fr__frame { position: absolute; top: 0; left: 0; pointer-events: none; transition: transform .5s var(--fr-ease), width .5s var(--fr-ease), height .5s var(--fr-ease); }
.fr__frame i { position: absolute; width: .3em; height: .3em; border: max(2px, .036em) solid var(--slate); }
.fr__frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.fr__frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.fr__frame i:nth-child(3) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.fr__frame i:nth-child(4) { bottom: 0; left: 0; border-right: 0; border-top: 0; }

/* =====================================================================
   Home hero: 3D implant over the slate mesh (js/implant.js), ported from the
   Website company hero. Slate gradient is the fallback without WebGL.
   ===================================================================== */
.hi { --split: 68%; --foot: 132px; --hi-accent: var(--c-hero-steel); --hi-ink: var(--c-hero-ice); --hi-dim: rgb(var(--steel-pale-rgb) / .78); --hi-line: rgb(var(--sky-pale-rgb) / .24);
  position: relative; height: 100svh; min-height: 680px; overflow: hidden; isolation: isolate; color: var(--hi-ink);
  background: linear-gradient(115deg, var(--hero-dusk) 0%, var(--hero-mid) 35%, var(--hero-deep) 60%, var(--hero-night) 100%); }
.hi__mesh, .hi__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hi__mesh { z-index: -3; }
.hi__gl { z-index: 0; }
/* directional light falloff: bright left, deep right */
.hi__tint { position: absolute; inset: 0; z-index: -2; pointer-events: none; background:
  radial-gradient(ellipse 55% 60% at 50% 55%, var(--hero-haze), transparent 70%),
  linear-gradient(90deg, var(--hero-sheen), transparent 40%, rgb(var(--abyss-rgb) / .5) 100%),
  linear-gradient(180deg, transparent 70%, var(--hero-floor)); }
/* radiant glow behind the implant seam: CSS, since soft glows in the transparent canvas end in a hard disc after bloom */
.hi__halo { position: absolute; z-index: -1; left: 50%; top: 40%; width: min(120vh, 1100px); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, var(--halo-1), var(--halo-2) 9%, var(--halo-3) 24%, var(--halo-4) 46%, var(--halo-5) 70%, transparent); }
.hi--static .hi__halo { opacity: .5; }
/* live: implant.js pins the halo to the crown seam (transform), so it follows the implant as it explodes */
.hi--live .hi__halo { left: 0; top: 0; will-change: transform; }
/* scroll story: the track gives the scroll distance and the hero sticks inside it. Sticky, not a GSAP pin: the browser
   holds a sticky hero itself, while a JS pin lands a frame late and the first wheel tick slid the hero up */
.hi-track.is-pinned .hi { position: sticky; top: 0; }
/* parallax exit: the whole hero lags behind the scroll (implant.js scrubs its translate directly; a CSS variable here restyled the whole hero subtree every frame) */
.hi-track + * { position: relative; z-index: 1; background: var(--page); }
/* the nav stays over the hero through the scroll story and leaves with it (implant.js sets --nav-y to the hero's top) */
body:has(.hi-track.is-pinned) .nav--over { position: fixed; translate: 0 var(--nav-y, 0px); }
.hi__rule { position: absolute; z-index: -1; background: var(--hi-line); pointer-events: none; }
.hi__rule--v { top: 0; bottom: 0; left: var(--split); width: 1px; transform-origin: top; }
.hi__rule--h { left: 0; right: 0; bottom: var(--foot); height: 1px; transform-origin: left; }

.hi__intro { position: absolute; z-index: 4; left: calc(var(--split) + 3vw); right: var(--gut); top: clamp(120px, 18vh, 200px); margin: 0; font-size: var(--fs-lede); line-height: 1.6; color: var(--hi-accent); }
.hi__main { position: absolute; z-index: 4; left: var(--gut); bottom: calc(var(--foot) + 40px); max-width: calc(var(--split) - var(--gut) - 4vw); }
.hi__kicker { display: block; margin-bottom: var(--s-2); font-size: var(--fs-caption); letter-spacing: .2em; color: var(--hi-dim); }
.hi h1 { margin: 0; color: var(--hi-ink); font-size: var(--fs-hero); line-height: 1.04; font-weight: 400; letter-spacing: -.01em; }
.hi h1 > span:first-child { color: var(--hi-accent); }  /* --hi-accent: sampled from the mesh shader (meshslate.js) */
html[lang="en"] .hi h1 { letter-spacing: -.035em; line-height: .98; }
.hi .cta-row { margin-top: clamp(var(--s-3), 4vh, var(--s-5)); }

.hi__foot { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: var(--foot); margin: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 0 var(--gut); }
.hi__foot div:nth-child(2) { padding-left: 14%; }
.hi__foot div:nth-child(3) { position: absolute; left: calc(var(--split) + 2.4vw); }
.hi__foot dt { font-size: var(--fs-ui-fluid); font-weight: 500; }
.hi__foot dd { margin: 2px 0 0; font-size: var(--fs-small); color: var(--hi-dim); font-feature-settings: "tnum"; }

/* exploded-view part labels, placed by js/implant.js */
.hi__labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hi__label { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; opacity: 0; }
.hi__label--left { flex-direction: row-reverse; }
.hi__label > i { width: 64px; height: 1px; background: linear-gradient(90deg, var(--hero-label), var(--hero-label-soft)); }
.hi__label--left > i { transform: scaleX(-1); }
.hi__lt { display: flex; flex-direction: column; font-size: var(--fs-meta); color: var(--hi-dim); }
.hi__label--left .hi__lt { text-align: right; }
.hi__lt b { font-size: var(--fs-body-lg); font-weight: 500; color: var(--hi-ink); }

.hi__explore { position: absolute; z-index: 5; left: var(--gut); bottom: calc(var(--foot) + 40px); max-width: 420px; opacity: 0; visibility: hidden; }
.hi__explore p { margin: 0 0 18px; font-size: var(--fs-title-fluid); line-height: 1.3; }

@media (max-width: 860px) {
  /* lvh: the sticky hero fills the screen with the address bar hidden too, so no page strip shows under it;
     the text sits the bar's height (lvh - svh) higher so it clears the bar and the contact dock while it shows */
  .hi { --foot: 0px; --dock: calc(88px + env(safe-area-inset-bottom) + 100lvh - 100svh); height: 100lvh; min-height: 560px; }
  .hi__rule, .hi__foot, .hi__intro { display: none; }
  .hi__main { bottom: var(--dock); right: var(--gut); max-width: none; }
  .hi h1 { font-size: var(--fs-display-sm); }
  .hi__explore { bottom: var(--dock); right: var(--gut); }
  .hi__label > i { width: 28px; }
  .hi__lt b { font-size: var(--fs-small); }
  .hi__lt { font-size: var(--fs-caption); }
}

/*
 * Intro Loader.
 *
 * The screen is two halves, each clipped to its side, so the opening is two
 * plain translates. Text steps are CSS transitions keyed off the phase
 * class; the cards are placed per frame from one clock.
 */

.il {
  --il-bg: var(--c-intro-bg);
  --il-text: var(--c-intro-ink);
  --il-mark: var(--c-intro-mark);
  --il-card-w: 12cqw;   /* spec 10cqw, slightly larger */
  --il-card-ratio: 1.2;
  --il-card-radius: 14px;
  --il-step: 0.35s;
  --il-k: 1;
  position: absolute;
  inset: 0;
  z-index: 50;
  container-type: size;
  overflow: hidden;
  color: var(--il-text);
  pointer-events: auto;
}

.il.is-fixed {
  position: fixed;
  z-index: 10000;
}

.il.is-open {
  pointer-events: none;
}

.il__half {
  position: absolute;
  inset: 0;
  background: var(--il-bg);
  transition: translate calc(0.65s * var(--il-k)) cubic-bezier(0.76, 0, 0.24, 1);
}

.il__half.is-left {
  clip-path: inset(0 50% 0 0);
}

.il__half.is-right {
  clip-path: inset(0 0 0 50%);
}

.il--stream.is-open .il__half.is-left {
  translate: 0 -100%;
}

.il--stream.is-open .il__half.is-right {
  translate: 0 100%;
}

/* --- corner marks ---------------------------------------------------------- */

.il__marks i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--il-mark);
  transition: opacity 0.4s ease;
}

.il__marks i:nth-child(1) { left: 12.5%; top: 16%; }
.il__marks i:nth-child(2) { right: 12.5%; top: 16%; }
.il__marks i:nth-child(3) { left: 12.5%; bottom: 16%; }
.il__marks i:nth-child(4) { right: 12.5%; bottom: 16%; }

.il:is(.is-logo-out, .is-open) .il__marks i {
  opacity: 0;
}

/* --- cards ------------------------------------------------------------------ */

.il__cards {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.il__card {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--il-card-w);
  aspect-ratio: 1 / var(--il-card-ratio);
  overflow: hidden;
  border-radius: var(--il-card-radius);
  opacity: 0;
  box-shadow: 0 18px 40px -18px rgb(var(--black-rgb) / 0.35);
  will-change: transform, filter;
}

.il__card img,
.il__card span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- tagline and logo -------------------------------------------------------- */

.il__centre {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.il__tagline,
.il__logo {
  grid-area: 1 / 1;
  margin: 0;
  text-align: center;
}

.il__tagline {
  font-size: var(--fs-il-label);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition:
    opacity calc(0.3s * var(--il-k)) ease,
    filter calc(0.3s * var(--il-k)) ease;
}

.il__tagline span {
  display: inline-block;
  margin: 0 0.14em;
  opacity: 0;
  filter: blur(8px);
  translate: 0 0.3em;
  transition:
    opacity calc(0.5s * var(--il-k)) ease,
    filter calc(0.5s * var(--il-k)) ease,
    translate calc(0.6s * var(--il-k)) cubic-bezier(0.22, 1, 0.36, 1);
}

.il.is-words .il__tagline span {
  opacity: 1;
  filter: blur(0);
  translate: 0 0;
}

.il:is(.is-logo, .is-logo-out, .is-open) .il__tagline {
  opacity: 0;
  filter: blur(10px);
}

.il__logo {
  font-size: var(--fs-il-title);
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  filter: blur(14px);
  scale: 1.06;
  transition:
    opacity calc(0.45s * var(--il-k)) ease,
    filter calc(0.45s * var(--il-k)) ease,
    scale calc(0.8s * var(--il-k)) cubic-bezier(0.22, 1, 0.36, 1);
}

.il.is-logo .il__logo {
  opacity: 1;
  filter: blur(0);
  scale: 1;
}

.il:is(.is-logo-out, .is-open) .il__logo {
  opacity: 0;
  filter: blur(10px);
  scale: 0.97;
}

/* CK wordmark SVG in place of the text logo */
.il__logo img {
  display: block;
  width: clamp(240px, 30cqw, 460px);
  height: auto;
}


/* ---------------------------------------------------------------- 2026-10-18 apple-design pass */
/* tap targets: the language pills keep their look but take a 44px-tall hit area */
.lang a { position: relative; }
.lang a::before { content: ""; position: absolute; inset: -8px 0; }
/* section tabs: fade the scrolling edge so a cut-off pill reads as "more this way" */
@media (max-width: 899px) {
  .toc ul { mask-image: linear-gradient(90deg, var(--black) calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, var(--black) calc(100% - 40px), transparent); padding-right: 32px; }
  .toc ul.is-scrolled { mask-image: linear-gradient(90deg, transparent, var(--black) 24px, var(--black) calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, var(--black) 24px, var(--black) calc(100% - 40px), transparent); }
}
/* reduce transparency: frosted chrome turns solid */
@media (prefers-reduced-transparency: reduce) {
  .nav__bar, .nav--over .nav__bar, .toc, .dock, .hi .btn--wa, .hi .btn--ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__bar, .toc { background: var(--card-bg); }
  html.at-hero:not(.menu-open) body:has(.hi) .nav--over .nav__bar, .nav--over .nav__bar { background: var(--hero-deep); }
  .dock { background: var(--c-surface-raised); }
  .hi .btn--ghost, .hi .btn--wa { background: var(--hero-deep); }
}
/* more contrast: darker secondary text and visible edges on every surface */
@media (prefers-contrast: more) {
  :root { --c-fg-muted: var(--gray-700); --c-fg-2: var(--gray-900); --c-border: var(--c-border-strong); }
  .card, .svc, .faq__item, .chips li, .toc a, .dock__btn, .contact__info { box-shadow: inset 0 0 0 1px var(--c-border-strong); }
  .nav__bar, .toc { background: var(--c-surface-raised); }
}

/* clinic open / closed pill (filled by main.js from HK time) */
.open { display: grid; gap: 2px; margin: -4px 0 0; }
.open b { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 500; color: var(--c-fg-2); }
.open b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-fg-muted); flex: none; }
.open.is-on b { color: var(--c-positive); }
.open.is-on b::before { background: var(--c-positive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-positive) 18%, transparent); }
.open small { font-size: var(--fs-caption); color: var(--c-fg-muted); }
/* hero loader: shows only if the implant is still downloading after .4s (return visits skip the intro), gone once live */
.hi__load { position: absolute; z-index: 1; left: 50%; top: 40%; translate: -50% -50%; display: grid; justify-items: center; gap: 12px; pointer-events: none;
  color: var(--hi-ink); opacity: 0; animation: hi-load-in .5s ease .4s forwards; transition: opacity .5s, filter .5s; }
.hi__load .brand__name { font-size: var(--fs-title-md); font-weight: 600; letter-spacing: .08em; color: var(--hi-ink); }
.hi__load i { display: block; width: 160px; height: 1px; background: var(--hi-line); overflow: hidden; }
.hi__load b { display: block; height: 100%; background: var(--hi-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease-out; }
.hi__load small { font-size: var(--fs-micro); letter-spacing: .14em; color: var(--hi-dim); font-variant-numeric: tabular-nums; }
.hi--live .hi__load, .hi--static .hi__load { animation: none; opacity: 0; filter: blur(6px); }
@keyframes hi-load-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hi__load, .hi__load b { transition: none; } }
/* full-screen scroll films between home sections (main.js [data-film]): the frame pins while its clip scrubs,
   opening from an inset card to full bleed as it arrives; the next section scrolls up over it */
.film { position: relative; height: 260vh; }
.film__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--hero-night); }
.film__pin::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(var(--deep-rgb) / .18), transparent 30%, transparent 55%, rgb(var(--deep-rgb) / .6)); }
.film__poster, .film canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film__cap { position: absolute; z-index: 1; left: var(--gut); right: var(--gut); bottom: 12svh; margin: 0; max-width: 16em; color: var(--c-hero-ice);
  font-size: var(--fs-headline-xl); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; opacity: 0; }
.film__cap span { display: block; }
.film__cap span + span { margin-top: .4em; font-size: var(--fs-headline-sm); font-weight: 400; color: rgb(var(--steel-pale-rgb) / .82); }
@media (max-width: 860px) { .film { height: 220svh; } .film__cap { bottom: calc(110px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .film { height: auto; } .film__pin { position: relative; height: 70svh; } .film canvas { display: none; } .film__cap { opacity: 1; } }


/* home stage sections: the stills are stand-ins for scroll films; main.js drives them through the scroll engine.
   About: a framed window opens to full bleed and the intro lands on it. Facilities: pinned tour, each still wipes up
   over the last while its line in the index fills. Clinics: the harbour band drifts east under the heading. */
.ax { height: 220svh; }
.ax__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.ax__media { position: absolute; inset: 0; clip-path: inset(18% 24% 18% 24% round 20px); background: var(--hero-night); }
.ax__media img, .fx__shot img, .cx__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ax__media::after, .fx__media::after, .cx__band::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.ax__media::after { background: linear-gradient(0deg, rgb(var(--night-rgb) / .84), rgb(var(--night-rgb) / .55) 34%, rgb(var(--night-rgb) / .12) 64%, transparent 80%); }
.ax__pin > .wrap { position: relative; width: 100%; padding-bottom: clamp(var(--s-5), 9svh, var(--s-7)); }
.ax__text { border: 0; padding: 0; opacity: 0; }
.ax__text h2 { color: var(--white); }
.ax__text .lede, .ax__text .ab__sub { color: rgb(var(--mist-rgb) / .88); font-weight: 400; }
.ab__more { padding-top: var(--s-6); }

.fx__track { height: 440svh; }
.fx__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--hero-night); }
.fx__shot { position: absolute; inset: 0; overflow: hidden; }
.fx__shot + .fx__shot { clip-path: inset(100% 0 0 0); }
.fx__media::after { background: linear-gradient(90deg, rgb(var(--night-rgb) / .72), rgb(var(--night-rgb) / .42) 38%, rgb(var(--night-rgb) / 0) 66%); }
.fx__ui { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--nav-h, 64px) + clamp(var(--s-4), 6svh, var(--s-6))); padding-bottom: clamp(var(--s-4), 7svh, var(--s-6)); }
.fx .sec-head { max-width: 30rem; margin: 0; }
.fx .sec-head h2 { color: var(--white); }
.fx .sec-head .lede { color: rgb(var(--mist-rgb) / .84); }
.fx__list { list-style: none; margin: 0; padding: 0; max-width: 26rem; }
.fx__item { position: relative; padding: 14px 0 12px; border-top: 1px solid rgb(var(--white-rgb) / .2); }
.fx__bar { position: absolute; left: 0; right: 0; top: -1px; height: 1px; overflow: hidden; }
.fx__bar i { display: block; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; }
.fx__item h3 { margin: 0; font-size: var(--fs-body-lg); font-weight: 500; }
.fx__t { all: unset; display: block; width: 100%; cursor: pointer; color: rgb(var(--white-rgb) / .52); transition: color .3s ease; }
.fx__t:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 2px; }
.fx__item.is-on .fx__t { color: var(--white); }
@media (hover: hover) { .fx__t:hover { color: var(--white); } }
.fx__d { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--out-quint); }
.fx__d p { overflow: hidden; min-height: 0; margin: 0; font-size: var(--fs-small); line-height: 1.7; color: rgb(var(--mist-rgb) / .82); opacity: 0; transition: opacity .3s ease; }
.fx__item.is-on .fx__d { grid-template-rows: 1fr; }
.fx__item.is-on .fx__d p { opacity: 1; padding-top: 6px; transition-delay: .1s; }

.cx { padding-top: 0; }
.cx__band { position: relative; height: 92svh; overflow: hidden; background: var(--hero-night); }
.cx__shot { position: absolute; inset: 0; }
.cx__shot img { transform: scale(1.14); }
.cx__band::after { background: linear-gradient(180deg, rgb(var(--night-rgb) / .6), rgb(var(--night-rgb) / .12) 50%, rgb(var(--night-rgb) / .35)); }
.cx__band > .wrap { position: relative; z-index: 1; padding-top: calc(var(--nav-h, 64px) + var(--section) * .5); }
.cx .sec-head h2 { color: var(--white); }
.cx .sec-head .lede { color: rgb(var(--mist-rgb) / .86); }
.cx .clinics { position: relative; z-index: 1; margin-top: -30svh; }

@media (max-width: 860px) {
  .ax__media { clip-path: inset(22% 7% 22% 7% round 16px); }
  .fx__shot img, .cx__shot img, .ax__media img { object-position: 74% 50%; }  /* subjects sit right of centre in the 16:9 stills */
  .fx__media::after { background: linear-gradient(180deg, rgb(var(--night-rgb) / .82), rgb(var(--night-rgb) / .45) 30%, rgb(var(--night-rgb) / .1) 46%, rgb(var(--night-rgb) / .3) 56%, rgb(var(--night-rgb) / .86)); }
  .fx__ui { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }  /* clear the fixed call / WhatsApp bar */
  .fx .sec-head .lede { font-size: var(--fs-small); }
  .fx__list { max-width: none; }
  .cx__band { height: 78svh; }
  .cx .clinics { margin-top: -22svh; }
}
@media (prefers-reduced-motion: reduce) {
  .ax { height: auto; } .ax__pin { position: relative; height: 80svh; } .ax__media { clip-path: none; } .ax__text { opacity: 1; }
  .fx__track { height: auto; } .fx__pin { position: relative; height: auto; min-height: 100svh; }
  .fx__shot + .fx__shot { display: none; } .fx__d { grid-template-rows: 1fr; } .fx__d p { opacity: 1; padding-top: 6px; } .fx__t { color: var(--white); }
  .fx__ui { gap: var(--s-6); }
}
.phero__en { margin: var(--s-1) 0 0; font-size: var(--fs-caption); color: var(--muted); }
html[lang="en"] .phero__en { display: none; }
html[lang="en"] .phero h1 small { text-transform: none; }
/* preortho page: 3D appliance viewer (js/preortho3d.js adds .is-live; poster stays without WebGL) */
.po3d { margin: 0; }
.po3d__stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--paper); overflow: hidden; touch-action: pan-y; cursor: grab; }
.po3d__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.po3d__poster { width: 100%; height: 100%; object-fit: contain; }
.po3d__stage.is-live .po3d__poster { visibility: hidden; }
.po3d figcaption { margin-top: var(--s-2); font-size: var(--fs-caption); color: var(--muted); }
.po3d__parts { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.po3d__parts p { margin: 4px 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.po3d__part { font: inherit; font-weight: 500; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--c-border); }
.po3d__part:hover { text-decoration-color: currentColor; }
.po3d__part:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
.po-note { margin-top: var(--s-4); color: var(--ink-2); }
