/* Brightwell Dental: demo stylesheet.
   Studio token names (--bg, --surface, --ink, --accent...) match the other demos; only the values change.
   Shape rule: buttons are full pills, cards are 20px, inputs are 12px, photos sit in arch frames.
   One accent (spruce). Motion is calm and fully disabled under prefers-reduced-motion. */

/* Satoshi by Indian Type Foundry (Fontshare, ITF Free Font License: free for commercial use), self-hosted */
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-variable-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --bg: #F3F6F5;
  --surface: #FBFCFC;
  --surface-2: #E7EFEC;
  --ink: #13201E;
  --ink-2: #4A5A57;
  --line: rgb(19 32 30 / .12);
  --line-strong: rgb(19 32 30 / .38);
  --accent: #0F6B62;
  --accent-hover: #0B5951;
  --accent-ink: #0F6B62;
  --accent-soft: #DCEBE7;
  --on-accent: #FBFCFC;
  --night: #10201C;
  --night-ink: #E7EEEC;
  --night-ink-2: #A9BAB6;
  --shadow: 0 1px 2px rgb(15 60 55 / .06), 0 18px 40px -18px rgb(15 60 55 / .22);
  --shadow-lg: 0 2px 6px rgb(15 60 55 / .08), 0 30px 70px -24px rgb(15 60 55 / .32);
  --r: 20px;
  --r-in: 12px;
  --nav-h: 72px;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --font: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1513;
    --surface: #111D1A;
    --surface-2: #152420;
    --ink: #E7EEEC;
    --ink-2: #9AAAA6;
    --line: rgb(231 238 236 / .12);
    --line-strong: rgb(231 238 236 / .34);
    --accent: #5CC2B3;
    --accent-hover: #7ED1C5;
    --accent-ink: #7ED1C5;
    --accent-soft: #163430;
    --on-accent: #0C1513;
    --night: #07100E;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 40px -18px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / .3), 0 30px 70px -24px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p a, .small a, li a:not(.btn) { color: var(--accent-ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.container { width: min(100% - 2 * clamp(16px, 4vw, 40px), 1200px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
#navSentinel { position: absolute; top: 0; height: 8px; width: 1px; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.6rem, 1.5rem + 3.9vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -.038em;
  line-height: 1.02;
  text-wrap: balance;
}
.display--page { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.7rem); }
.h2 { font-size: clamp(1.9rem, 1.35rem + 1.9vw, 2.9rem); font-weight: 500; letter-spacing: -.032em; line-height: 1.08; text-wrap: balance; }
.h3, h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.lead { font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); line-height: 1.55; max-width: 56ch; }
.small { font-size: .9rem; color: var(--ink-2); max-width: 70ch; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }

/* ---------- Buttons and links ---------- */
.btn {
  --bgc: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--bgc);
  font-weight: 600; font-size: .98rem; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--light { background: var(--night-ink); color: #0F3A35; }
.btn--light:hover { background: #fff; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn i { font-size: 1.15em; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* inline-block (not flex) so the hover underline stays under the words and skips the arrow icon */
.link { display: inline-block; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.link i { display: inline-block; vertical-align: -.12em; margin-left: 6px; transition: transform .3s var(--ease); }
.link i:first-child { margin: 0 6px 0 0; }
.link:hover { text-decoration: underline; }
.link:hover i { transform: translateX(3px); }
.link--btn { background: none; border: 0; padding: 0; cursor: pointer; }
.iconbtn { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; font-size: 1.2rem; transition: background-color .2s, border-color .2s, transform .2s; }
.iconbtn:hover { border-color: var(--ink); }
.iconbtn:active { transform: scale(.96); }

/* ---------- Photos: arch frames and "photo to come" slots ---------- */
.arch { border-radius: 50% 50% var(--r) var(--r) / 38% 38% var(--r) var(--r); overflow: hidden; background: var(--surface-2); isolation: isolate; }
.arch > img, .arch > .photo-slot { width: 100%; height: 100%; object-fit: cover; }
.photo-slot {
  aspect-ratio: var(--ratio, 4/3);
  width: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 30% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(160deg, var(--accent-soft), var(--surface-2));
  color: var(--ink-2);
}
.photo-slot__label { display: grid; justify-items: center; gap: 4px; font-size: .85rem; text-align: center; padding: 12px; }
.photo-slot__label i { font-size: 1.6rem; color: var(--accent-ink); }
.photo-slot code { font-size: .78rem; opacity: .8; }

/* ---------- Motion (only with .motion, i.e. reduced motion is off) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-arch] { opacity: 0; transform: translateY(36px); transition: opacity 1s ease, transform 1.4s var(--ease); }
.motion [data-arch] > * { transform: scale(1.12); transition: transform 1.9s var(--ease); }
.motion [data-arch].is-in { opacity: 1; transform: none; }
.motion [data-arch].is-in > * { transform: none; }
/* Masked line reveal: whole lines rise out of a mask. Fallback shows the text if the script never runs. */
.motion [data-lines]:not(.is-split) { opacity: 0; animation: lines-fallback 0s 1.8s forwards; }
@keyframes lines-fallback { to { opacity: 1; } }
.ln { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.ln__in { display: block; transform: translateY(108%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--l) * 110ms); }
.is-in > .ln > .ln__in, .is-in .ln__in { transform: none; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); background: var(--bg); box-shadow: 0 1px 0 var(--line); transition: background-color .3s ease, box-shadow .3s ease; }
/* Transparent only while the page is at the very top (set by main.js); solid otherwise, including without JS */
.nav.is-top { background: transparent; box-shadow: none; }
.nav__bar { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand__mark { width: 30px; height: 30px; color: var(--accent-ink); }
.brand__word { font-size: 1.22rem; font-weight: 700; letter-spacing: -.025em; }
.brand__word span { font-weight: 400; color: var(--ink-2); margin-left: .28em; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav__end { display: flex; align-items: center; gap: 14px; }
.nav__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; font-feature-settings: "tnum" 1; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.menu__links { display: grid; padding: 12px 0 24px; }
.menu__links a { padding: 14px 0; font-size: 1.3rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu__links a:last-child { border-bottom: 0; color: var(--accent-ink); }
@media (max-width: 1179px) { .nav__phone { display: none; } }
@media (max-width: 1023px) { .nav__links { display: none; } .nav__toggle { display: inline-block; } .nav__end { margin-left: auto; } }
@media (max-width: 559px) { .nav__end .btn { display: none; } }

/* ---------- Home: hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(24px, 4vw, 56px)); }
.hero::before { content: ""; position: absolute; inset: 0 0 110px; z-index: -1; background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 55%, var(--bg))); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { padding-block: 24px 120px; }
.hero__sub { margin-top: 24px; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 34ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__media { aspect-ratio: 4/5; max-height: min(78vh, 680px); justify-self: end; width: 100%; }
/* Hero motion: lines rise, a smile underline draws under "careful", the arch opens and the photo settles,
   then drifts gently inside the arch as you scroll (main.js sets --py). All of it is skipped under reduced motion. */
.hero__title .ln { padding-bottom: .2em; margin-bottom: -.2em; }
.hl { position: relative; display: inline-block; }
.hl__smile { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .3em; overflow: visible; }
.hl__smile path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero__media > img { transform: translateY(var(--py, 0px)) scale(1.08); }
.motion [data-hero] .ln__in { transform: translateY(108%); transition: transform 1.2s var(--ease); transition-delay: calc(.15s + var(--l) * 120ms); }
.motion [data-hero]:not(.is-in) .ln__in { animation: hero-fallback 0s 2.5s forwards; }
@keyframes hero-fallback { to { transform: none; } }
.motion [data-hero].is-in .ln__in { transform: none; }
.motion [data-hero] .hl__smile path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1) 1.15s; }
.motion [data-hero].is-in .hl__smile path { stroke-dashoffset: 0; }
.motion [data-hero-media] { clip-path: inset(26% 16% 0 16% round 50% 50% 20px 20px / 38% 38% 20px 20px); opacity: 0; transition: clip-path 1.6s var(--ease) .1s, opacity .6s ease .1s; }
.motion [data-hero-media] > img { transform: translateY(var(--py, 0px)) scale(1.22); transition: transform 2.6s var(--ease) .1s; }
.motion [data-hero-media].is-in { clip-path: inset(0 0 0 0 round 50% 50% 20px 20px / 38% 38% 20px 20px); opacity: 1; }
.motion [data-hero-media].is-in > img { transform: translateY(var(--py, 0px)) scale(1.08); }
.motion [data-hero-media].is-settled > img { transition: none; }
.motion .nav .brand__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: logo-draw 1.3s cubic-bezier(.65, 0, .35, 1) .2s forwards; }
.motion .nav .brand__mark path + path { animation-delay: .9s; animation-duration: .7s; }
@keyframes logo-draw { to { stroke-dashoffset: 0; } }
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); column-gap: 20px; margin-top: -84px; position: relative; }
.aud { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 10px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 30px; box-shadow: var(--shadow); }
.aud__icon { font-size: 1.7rem; color: var(--accent-ink); }
.aud__title { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.aud p { color: var(--ink-2); }
.aud .link { align-self: end; }

/* ---------- Sections ---------- */
section { position: relative; }
.treat, .visit, .film, .ba, .reviews, .tips, .book, .tfit, .tsteps, .tafter, .related, .join, .nervous, .principal, .people, .feesec, .infocols, .visitinfo, .legal, .hubcat { margin-top: clamp(80px, 10vw, 140px); }

/* Treatments tabs */
.tabs { margin-top: 36px; }
.tabs__list { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface-2); }
.tabs__tab { position: relative; z-index: 1; border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: color .3s; }
.tabs__tab[aria-selected="true"] { color: var(--on-accent); }
.tabs__ind { position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: var(--accent); transition: transform .55s var(--ease), width .55s var(--ease); }
.no-ind .tabs__tab[aria-selected="true"] { background: var(--accent); }
.tabs__panel { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 40px; }
.tpanel__media { aspect-ratio: 4/5; max-height: 560px; }
.tpanel__intro { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }
.tlist { margin: 24px 0; display: grid; gap: 6px; }
.tlist a { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 16px 18px; border-radius: 14px; text-decoration: none; transition: background-color .25s ease; }
.tlist a:hover { background: var(--surface); }
.tlist__name { font-weight: 600; font-size: 1.08rem; }
.tlist__from { color: var(--accent-ink); font-weight: 600; font-feature-settings: "tnum" 1; white-space: nowrap; }
.tlist__sum { grid-column: 1 / -1; color: var(--ink-2); font-size: .96rem; }

/* Care plan */
.plan { margin-top: clamp(80px, 10vw, 140px); }
.plan__grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.plan__copy .lead { margin: 20px 0 24px; }
.plancard { position: relative; overflow: hidden; background: var(--accent); color: var(--on-accent); border-radius: var(--r); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.plancard::after { content: ""; position: absolute; right: -70px; top: 36px; width: 240px; height: 420px; border: 1.5px solid color-mix(in srgb, var(--on-accent) 22%, transparent); border-radius: 50% 50% 0 0 / 40% 40% 0 0; pointer-events: none; }
.plancard__top { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.plancard__top .brand__mark { color: currentColor; }
.plancard__price { margin: 28px 0 22px; font-size: 1.05rem; }
.plancard__price strong { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; margin-right: 6px; font-feature-settings: "tnum" 1; }
.plancard ul { display: grid; gap: 10px; }
.plancard li { display: flex; gap: 10px; align-items: center; }
.plancard__note { margin-top: 24px; font-size: .82rem; opacity: .82; }

/* First visit: the smile line */
.visit__track { position: relative; margin-top: 56px; }
.smile { display: block; width: 100%; height: 140px; overflow: visible; }
.smile path { fill: none; stroke-linecap: round; }
.smile__base { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 2 6; }
.smile__line { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: var(--off, 1); }
.visit__steps { position: relative; margin-top: -140px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vstep { position: relative; padding-top: calc(var(--y) * 1px + 34px); text-align: center; }
.vstep__dot { position: absolute; left: 50%; top: calc(var(--y) * 1px); width: 18px; height: 18px; translate: -50% -50%; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); transition: background-color .4s, border-color .4s, box-shadow .6s var(--ease); }
.vstep.is-lit .vstep__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 7px var(--accent-soft); }
.vstep h3 { font-size: 1.2rem; }
.vstep p { margin: 8px auto 0; color: var(--ink-2); max-width: 26ch; font-size: .98rem; }

/* Before and after */
.ba { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.ba__copy .lead { margin: 20px 0 24px; }
.ba__frame { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--surface-2); touch-action: pan-y; }
.ba__img { position: absolute; inset: 0; }
.ba__img > img, .ba__img > .photo-slot { width: 100%; height: 100%; object-fit: cover; }
.ba__img--before .photo-slot { filter: saturate(.4) brightness(.97); }
.ba__img--after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--surface); translate: -1px 0; pointer-events: none; }
.ba__handle i { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow); }
.ba__frame:has(.ba__range:focus-visible) .ba__handle i { outline: 2px solid var(--accent); outline-offset: 3px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__tag { position: absolute; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); font-size: .82rem; font-weight: 600; pointer-events: none; }
.ba__tag--l { left: 14px; }
.ba__tag--r { right: 14px; }
.ba__note { margin-top: 12px; font-size: .86rem; color: var(--ink-2); }

/* ---------- Intro film: the play pill grows into the player ---------- */
.film__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.film__head .lead { margin-top: 16px; }
.film__poster {
  --fs: 1;
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  border-radius: 28px; transform: scale(var(--fs)); transform-origin: 50% 0%;
}
.film__poster:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.film__frame {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 28px;
  background: #F3F6F5; box-shadow: var(--shadow-lg);
}
.film__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.film__poster:hover .film__frame img { transform: scale(1.025); }
.film__cta {
  position: absolute; right: clamp(14px, 2.6vw, 32px); bottom: clamp(14px, 2.6vw, 32px);
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 22px 8px 8px; border-radius: 999px;
  background: #FBFCFC; color: #13201E; font-weight: 600; font-size: 1rem;
  box-shadow: 0 18px 40px -16px rgb(15 60 55 / .45); transition: transform .6s var(--spring);
}
.film__poster:hover .film__cta { transform: translateY(-3px); }
.film__play {
  width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #0F6B62; color: #FBFCFC; font-size: 20px; transition: transform .6s var(--spring);
}
.film__play i { margin-left: 3px; }
.film__poster:hover .film__play { transform: scale(1.08); }
.film__words { margin-top: 20px; max-width: 72ch; }
.film__words summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-weight: 600; color: var(--accent-ink); border-radius: 6px; }
.film__words summary::-webkit-details-marker { display: none; }
.film__words summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.film__words summary i { transition: transform .3s var(--ease); }
.film__words[open] summary i { transform: rotate(180deg); }
.film__wordsbody { display: grid; gap: 8px; margin-top: 14px; padding-left: 16px; border-left: 2px solid var(--accent-soft); color: var(--ink-2); font-size: .98rem; }

html.has-modal { overflow: hidden; }
.film-modal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
}
.film-modal[open] { display: grid; place-items: center; }
.film-modal::backdrop { background: rgb(7 16 14 / .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.film-modal__inner { position: relative; width: min(1280px, 92vw, calc(84dvh * 16 / 9)); aspect-ratio: 16 / 9; transform-origin: 0 0; will-change: transform; }
.film-modal video { display: block; width: 100%; height: 100%; border-radius: 22px; background: #F3F6F5; box-shadow: 0 40px 120px -30px rgb(0 0 0 / .7); }
.film-modal__close {
  position: absolute; top: -60px; right: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgb(231 238 236 / .3); background: rgb(231 238 236 / .1); color: #E7EEEC; font-size: 1.2rem; cursor: pointer;
}
.film-modal__close:hover { background: rgb(231 238 236 / .2); }
.film-modal__close:focus-visible { outline: 2px solid #7ED1C5; outline-offset: 3px; }
.film-modal__end {
  position: absolute; inset: 0; border-radius: 22px; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center;
  background: rgb(16 32 28 / .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #E7EEEC;
}
.film-modal__end p { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); font-weight: 500; letter-spacing: -.03em; }
.film-modal__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.film-modal__end .btn--ghost { color: #E7EEEC; border-color: rgb(231 238 236 / .4); }
.film-modal__end .btn--ghost:hover { background: rgb(231 238 236 / .1); border-color: #E7EEEC; }
.film-modal__loading {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: rgb(16 32 28 / .7); color: #E7EEEC; font-size: .9rem; font-weight: 600;
  opacity: 0; transition: opacity .25s;
}
.film-modal.is-loading .film-modal__loading { opacity: 1; transition-delay: .35s; }
.film-modal__pulse { width: 9px; height: 9px; border-radius: 50%; background: #7ED1C5; }
@media (prefers-reduced-motion: no-preference) {
  .film-modal[open]::backdrop { animation: film-fade .22s ease-out; }
  .film-modal.is-closing::backdrop { animation: film-fade-out .5s ease-in forwards; }
  .film-modal__close { transition: opacity .3s ease .1s; }
  .film-modal.is-morphing .film-modal__close, .film-modal.is-closing .film-modal__close { opacity: 0; transition-delay: 0s; }
  .film-modal__end:not([hidden]) { animation: film-fade .5s ease-out; }
  .film-modal.is-loading .film-modal__pulse { animation: film-pulse 1s ease-in-out infinite alternate; }
}
@keyframes film-fade { from { opacity: 0; } }
@keyframes film-fade-out { to { opacity: 0; } }
@keyframes film-pulse { from { opacity: .35; transform: scale(.8); } to { opacity: 1; transform: scale(1.15); } }
@media (max-width: 767px) {
  .film__poster, .film__frame { border-radius: 20px; }
  .film__cta { padding: 6px; }
  .film__label { display: none; }
  .film__play { width: 48px; height: 48px; font-size: 18px; }
  .film-modal__inner { width: 100vw; }
  .film-modal video, .film-modal__end { border-radius: 0; }
  .film-modal__close { right: 12px; }
}

/* Team strip */
.teamstrip { margin-top: clamp(80px, 10vw, 140px); }
.teamstrip__media { aspect-ratio: 16/7; overflow: hidden; background: var(--surface-2); }
.teamstrip__media > img, .teamstrip__media > .photo-slot { width: 100%; height: 100%; object-fit: cover; }
.teamstrip__card { position: relative; max-width: 520px; margin: -120px 0 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow-lg); }
.teamstrip__card p { color: var(--ink-2); margin: 12px 0 18px; }

/* Areas marquee (the only marquee on the page) */
.areas { margin-top: clamp(64px, 8vw, 110px); border-block: 1px solid var(--line); padding-block: 26px; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; flex-shrink: 0; gap: clamp(36px, 5vw, 72px); padding-right: clamp(36px, 5vw, 72px); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 500; letter-spacing: -.02em; color: var(--ink-2); }
.motion .marquee__track { animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Reviews: spring stack */
.reviews { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.reviews__copy .lead { margin: 20px 0 28px; }
.stack__ctrl { display: flex; gap: 10px; }
.stack { display: grid; gap: 16px; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow); }
.rcard__stars { color: var(--accent-ink); display: flex; gap: 2px; font-size: 1.05rem; }
.rcard blockquote p { margin-top: 16px; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.35; letter-spacing: -.02em; font-weight: 500; }
.rcard figcaption { margin-top: 20px; font-weight: 600; display: flex; flex-direction: column; }
.rcard figcaption span { font-weight: 400; color: var(--ink-2); font-size: .94rem; }
.js .stack { display: block; position: relative; min-height: var(--stack-h, 320px); }
.js .stack .rcard { position: absolute; inset: 0 0 auto; transform-origin: 50% 0; transform: translateY(calc(var(--pos, 0) * 18px)) scale(calc(1 - var(--pos, 0) * .05)); opacity: calc(1 - var(--pos, 0) * .28); }
.js .stack .rcard[data-pos="3"] { opacity: 0; }
.motion .stack .rcard { transition: transform .8s var(--spring), opacity .45s ease; }
.motion .stack .rcard.is-leaving { animation: rcard-out .42s cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes rcard-out { to { transform: translate(-40px, -16px) rotate(-4deg); opacity: 0; } }

/* Tips bento */
.bento { margin-top: 40px; display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.tip { border-radius: var(--r); padding: 28px; display: grid; align-content: start; gap: 10px; }
.tip i { font-size: 1.9rem; color: var(--accent-ink); }
.tip p { color: var(--ink-2); }
.tip--photo { position: relative; grid-row: span 2; padding: 0; overflow: hidden; min-height: 320px; }
.tip--photo > img, .tip--photo > .photo-slot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.tip--0 { background: var(--accent-soft); }
.tip--1 { background: var(--surface); border: 1px solid var(--line); }
.tip--2 { background: var(--surface-2); }
.tip--3 { background: var(--accent); color: var(--on-accent); }
.tip--3 i, .tip--3 p { color: inherit; }
.tip--3 p { opacity: .88; }
.tips__src { margin-top: 16px; font-size: .9rem; color: var(--ink-2); }

/* FAQ: tinted full-bleed band */
.faq { margin-top: clamp(80px, 10vw, 140px); padding-block: clamp(64px, 8vw, 110px); }
.faq::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface-2); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 20px; justify-items: start; }
.faq__list { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border-radius: 16px; border: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 1.08rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--ink); translate: -50% -50%; transition: transform .4s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::before { transform: rotate(45deg); }
.faq__item[open] .faq__icon::after { transform: rotate(135deg); }
.faq__answer { padding: 0 24px 22px; color: var(--ink-2); max-width: 62ch; }
.motion .faq__item[open] .faq__answer { animation: faq-in .5s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.faq--compact .faq__intro { position: static; }

/* Emergency: the one dark band */
.emergency { margin-top: 0; background: var(--night); color: var(--night-ink); padding-block: clamp(64px, 8vw, 110px); }
.emergency__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.emergency .lead { color: var(--night-ink-2); margin: 20px 0 28px; }
.emergency__list { display: grid; gap: 22px; }
.emergency__list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.emergency__list i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(231 238 236 / .08); font-size: 1.25rem; color: #7ED1C5; }
.emergency__list h3 { font-size: 1.08rem; }
.emergency__list p { color: var(--night-ink-2); margin-top: 2px; }
.emergency__list a { color: #7ED1C5; }

/* Booking */
.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; margin-bottom: clamp(80px, 10vw, 140px); }
.book__info .lead { margin: 20px 0 28px; }
.contact-list { display: grid; gap: 12px; margin-bottom: 28px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list i { font-size: 1.2rem; color: var(--accent-ink); }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.hours { display: grid; gap: 6px; max-width: 360px; font-feature-settings: "tnum" 1; }
.hours li { display: flex; justify-content: space-between; gap: 16px; }
.hours li span:first-child { color: var(--ink-2); }
.hours li.is-today { font-weight: 700; color: var(--accent-ink); }
.hours li.is-today span:first-child { color: inherit; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form__body { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { font-weight: 600; font-size: .96rem; padding: 0; }
.optional { font-weight: 400; color: var(--ink-2); font-size: .88rem; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-in);
  padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.select { position: relative; }
.select select { appearance: none; padding-right: 40px; }
.select i { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--ink-2); }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { position: relative; font-weight: 500; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); transition: background-color .2s, border-color .2s, color .2s; }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field__err { color: #B3261E; font-size: .9rem; min-height: 0; }
.field__err:empty { display: none; }
.has-error input, .has-error select { border-color: #B3261E; }
.field__help { font-size: .88rem; color: var(--ink-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__error { color: #B3261E; font-weight: 600; }
.form__privacy { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-2); flex-wrap: wrap; }
.form__done { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 40px 0; }
.form__done:focus { outline: none; }
.form__done-icon { font-size: 3rem; color: var(--accent-ink); }
.form__done p { color: var(--ink-2); }
@media (prefers-color-scheme: dark) {
  .field__err, .form__error { color: #FFB4AB; }
  .has-error input, .has-error select { border-color: #FFB4AB; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); background: var(--surface); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand p { color: var(--ink-2); margin-top: 16px; max-width: 38ch; }
.footer__reg { font-size: .88rem; }
.footer__col { display: grid; align-content: start; gap: 10px; }
.footer__col h2 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.footer__col a { text-decoration: none; color: var(--ink); width: fit-content; }
.footer__col a:hover { text-decoration: underline; }
.hours--footer { font-size: .94rem; margin-top: 6px; }
.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 28px 32px; margin-top: 48px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.footer__base p:last-child { display: flex; gap: 20px; }
.footer__base a { color: var(--ink-2); }

/* ---------- Help panel and mobile dock ---------- */
.help__fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 12px 20px 12px 16px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: transform .3s var(--ease), background-color .2s;
}
.help__fab i { font-size: 1.35rem; }
.help__fab:hover { transform: translateY(-2px); }
.help__fab[aria-expanded="true"] { background: var(--accent); color: var(--on-accent); }
.help__panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 61;
  width: min(380px, calc(100vw - 24px)); max-height: min(620px, calc(100dvh - 120px));
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); transform-origin: 100% 100%;
}
.help__panel[hidden] { display: none; }
.motion .help__panel.is-opening { animation: help-in .32s var(--ease); }
@keyframes help-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.help__head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px 20px; }
.help__title { font-weight: 700; font-size: 1.08rem; margin-right: auto; }
.help__close, .help__back { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; flex-shrink: 0; }
.help__back + .help__title { margin-left: 4px; }
.help__body { overflow: auto; padding: 4px 12px 12px; }
.help__menu { display: grid; gap: 4px; }
.help__opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 12px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; font-weight: 600; transition: background-color .2s; }
.help__opt:hover { background: var(--surface-2); }
.help__opt > i:first-child { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 1.15rem; }
.help__chev { margin-left: auto; color: var(--ink-2); }
.help__ans { display: grid; gap: 14px; padding: 4px 8px 8px; }
.help__ans[hidden] { display: none; }
.motion .help__ans:not([hidden]) { animation: ans-in .35s var(--ease); }
@keyframes ans-in { from { opacity: 0; transform: translateX(14px); } }
.help__ans h3 { font-size: 1.15rem; }
.help__ans p { color: var(--ink-2); }
.help__actions { display: grid; gap: 8px; }
.help__actions .btn { width: 100%; }
.hours--days { max-width: none; font-size: .96rem; }
.help__note { font-size: .78rem; color: var(--ink-2); padding: 10px 20px 14px; border-top: 1px solid var(--line); }
.dock { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 76px; }
  .help__fab { display: none; }
  .help__panel { left: 12px; right: 12px; bottom: 80px; width: auto; }
  .dock {
    position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 60;
    display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 6px; padding: 6px;
    background: var(--ink); border-radius: 999px; box-shadow: var(--shadow-lg);
  }
  .dock a, .dock button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border: 0; border-radius: 999px; background: none; color: var(--bg); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; }
  .dock .dock__book { background: var(--accent); color: var(--on-accent); }
}

/* ---------- Inner pages ---------- */
.phero { padding-top: calc(var(--nav-h) + clamp(28px, 4vw, 56px)); padding-bottom: clamp(40px, 5vw, 64px); background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.phero__grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
.phero--media .phero__grid { grid-template-columns: 1.1fr .9fr; }
.phero__lede { margin-top: 20px; }
.phero__media { aspect-ratio: var(--ratio, 4/3); max-height: 520px; width: 100%; }
.phero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.pricechip { padding: 10px 18px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-feature-settings: "tnum" 1; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs i { font-size: .75rem; }

.chips { position: sticky; top: var(--nav-h); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.chips__row { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.chips a { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background-color .2s, color .2s, border-color .2s; }
.chips a.is-current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.hubcat__head { display: grid; gap: 14px; margin-bottom: 32px; }
.hubcat__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tcard { display: grid; align-content: start; gap: 10px; padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 80px); }
.tcard p { color: var(--ink-2); }
.tcard .tcard__from { color: var(--accent-ink); font-weight: 600; font-feature-settings: "tnum" 1; }
.tcard .link { margin-top: 6px; }
.tcard--page { background: var(--accent-soft); border-color: transparent; }
.tcard:target { box-shadow: 0 0 0 2px var(--accent); }

/* Treatment page */
.tfit { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.checklist { display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 1.08rem; }
.checklist i { font-size: 1.5rem; color: var(--accent-ink); }
.tsteps .h2 { margin-bottom: 36px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* The line fills as you scroll and lights each step (main.js sets --p), like "Your first visit" */
.timeline::before, .timeline::after { content: ""; position: absolute; left: 10px; right: 0; top: 11px; height: 1.5px; background: var(--line-strong); }
.timeline::after { height: 3px; top: 10px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 1)); }
.timeline li { position: relative; padding-top: 44px; }
.timeline li::before { content: ""; position: absolute; z-index: 1; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); transition: background-color .4s ease, box-shadow .6s var(--ease); }
.timeline li.is-lit::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--ink-2); }
.tcost { margin-top: clamp(80px, 10vw, 140px); padding-block: clamp(56px, 7vw, 96px); background: var(--surface-2); }
.tcost__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.tcost .lead { color: var(--ink); margin-bottom: 16px; }
.tcost .small { margin-bottom: 18px; }
.dotlist { display: grid; gap: 12px; margin: 24px 0; max-width: 70ch; }
.dotlist li { position: relative; padding-left: 22px; }
.dotlist li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.related .h3 { margin-bottom: 18px; }
.related__grid { display: grid; gap: 8px; }
.rel { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.rel:hover { border-color: var(--accent); transform: translateX(4px); }
.rel p { grid-column: 1; color: var(--ink-2); font-size: .96rem; }
.rel span { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.ctaband { margin-block: clamp(80px, 10vw, 140px); }
.ctaband__inner { text-align: center; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px); border-radius: var(--r); background: var(--accent-soft); display: grid; justify-items: center; gap: 14px; }
.ctaband__inner p { color: var(--ink-2); max-width: 52ch; }
.ctaband__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* Fees */
/* Two equal columns; cards in the same row share a height (groups are paired by size in site-data.json) */
.feegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-bottom: 20px; }
.feegroup { padding: 26px 22px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.feegroup .h3 { padding: 0 10px 10px; }
.fees { display: grid; gap: 2px; }
.fee { display: flex; justify-content: space-between; gap: 16px; padding: 12px 10px; border-radius: 12px; transition: opacity .3s ease, filter .3s ease, background-color .3s ease, box-shadow .3s ease, transform .3s var(--ease); }
.fee__price { font-weight: 600; font-feature-settings: "tnum" 1; white-space: nowrap; color: var(--accent-ink); }
/* Glass focus: the row under the pointer (or keyboard focus) sharpens, the rest soften */
@media (hover: hover) {
  .fees:has(.fee:hover) .fee:not(:hover) { opacity: .42; filter: blur(1.2px); }
}
.fees:has(.fee:focus-visible) .fee:not(:focus-visible) { opacity: .42; }
.fee:hover, .fee:focus-visible { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), var(--shadow); transform: translateY(-1px); outline: none; }
@media (prefers-reduced-transparency: reduce) { .fee:hover, .fee:focus-visible { backdrop-filter: none; background: var(--accent-soft); } }
.infocols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.infocols article { border-top: 2px solid var(--accent); padding-top: 22px; display: grid; align-content: start; gap: 10px; }
.infocols i { font-size: 1.7rem; color: var(--accent-ink); }
.infocols p { color: var(--ink-2); }

/* New patients */
.joinsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.joinsteps li { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.joinsteps i { font-size: 1.7rem; color: var(--accent-ink); }
.joinsteps p { color: var(--ink-2); }
.bring { margin-top: 28px; padding: 26px; border-radius: var(--r); background: var(--surface-2); }
.bring .dotlist { margin-bottom: 0; }
.brolink { margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px 26px; border-radius: var(--r); background: var(--accent-soft); }
.brolink > i { font-size: 1.9rem; color: var(--accent-ink); }
.brolink p { color: var(--ink-2); margin-top: 2px; }
@media (max-width: 640px) { .brolink { grid-template-columns: auto 1fr; } .brolink .btn { grid-column: 1 / -1; justify-self: start; } }
.visit__more { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.visit__more span { font-size: .92rem; color: var(--ink-2); }
.compare { margin-top: clamp(80px, 10vw, 140px); padding-block: clamp(56px, 7vw, 96px); background: var(--surface-2); }
.compare__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.compare article { padding: 30px; border-radius: var(--r); background: var(--surface); display: grid; gap: 10px; align-content: start; }
.compare article p:not(.compare__tag) { color: var(--ink-2); }
.compare__tag { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: .85rem; }
.nervous { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.nervous__media { aspect-ratio: 4/5; max-height: 560px; }
.nervous .checklist { margin-top: 28px; }

/* Team */
.principal { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.principal__media { aspect-ratio: 4/5; max-height: 600px; }
.principal__copy { display: grid; gap: 16px; }
.person__role { color: var(--accent-ink); font-weight: 600; }
.person__gdc { font-size: .9rem; color: var(--ink-2); }
.people__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 32px; }
.person__photo { aspect-ratio: 4/5; margin-bottom: 8px; }
.person__photo > img { width: 100%; height: 100%; object-fit: cover; }
.person { display: grid; gap: 8px; align-content: start; }
.person__mono { aspect-ratio: 4/5; display: grid; place-items: center; margin-bottom: 8px; font-size: 2.6rem; font-weight: 500; letter-spacing: -.04em; color: var(--accent-ink); background: linear-gradient(170deg, var(--accent-soft), var(--surface-2)); }
.person p:not(.person__role):not(.person__gdc) { color: var(--ink-2); font-size: .96rem; }
.practice { margin-top: clamp(80px, 10vw, 140px); }
.practice__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.practice__grid figure { border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.practice__grid figure > img, .practice__grid figure > .photo-slot { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; min-height: 240px; }
.practice__a { grid-column: 1 / -1; aspect-ratio: 16/8; }
.practice__b, .practice__c { aspect-ratio: 4/3; }
.practice__d { grid-column: 1 / -1; display: grid; gap: 10px; align-content: start; padding: 30px; border-radius: var(--r); background: var(--accent-soft); }
.practice__d i { font-size: 1.8rem; color: var(--accent-ink); }
.practice__d p { color: var(--ink-2); max-width: 70ch; }

/* Contact */
.visitinfo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.visitinfo article { border-top: 2px solid var(--accent); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.visitinfo i { font-size: 1.7rem; color: var(--accent-ink); }
.visitinfo p { color: var(--ink-2); }

/* Legal */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; margin-bottom: clamp(80px, 10vw, 140px); }
.legal__toc { position: sticky; top: calc(var(--nav-h) + 32px); }
.legal__toc ul { display: grid; gap: 4px; }
.legal__toc a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); }
.legal__toc a.is-current, .legal__toc a:hover { background: var(--surface-2); color: var(--ink); }
.legal__body { max-width: 70ch; display: grid; gap: 36px; }
.legal__sec { display: grid; gap: 12px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal__sec p { color: var(--ink-2); }


/* Implant explainer: realistic 3D animation (video), steps highlighted in time with it */
.explain { margin-top: clamp(80px, 10vw, 140px); }
.ex { margin-top: 32px; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.ex__stage { position: relative; border-radius: var(--r); overflow: hidden; background: #EEF2F1; box-shadow: var(--shadow); }
.ex__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #EEF2F1; }
.ex__caps ol { display: grid; gap: 16px; counter-reset: c; }
.ex__caps li { position: relative; padding-left: 46px; min-height: 30px; font-size: 1.05rem; transition: opacity .4s ease, color .4s ease; }
.ex__caps li::before { counter-increment: c; content: counter(c); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-ink); font-weight: 600; font-size: .9rem; transition: background-color .4s ease, color .4s ease; }
.ex__note { margin-top: 20px; font-size: .88rem; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ex__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 24px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); }
.ex__play:hover { transform: scale(1.04); }
.ex__play:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ex__play i { font-size: 1.2rem; }
.ex__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.ex__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
/* Player mode (added by main.js when motion is allowed) */
.ex--player.is-playing li { opacity: .5; }
.ex--player.is-playing li.is-current { opacity: 1; }
.ex--player li.is-current::before { background: var(--accent); color: var(--on-accent); }
.ex--player.is-done .ex__progress span { opacity: 0; transition: opacity .6s ease; }
@media (max-width: 1023px) { .ex { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero__grid, .tabs__panel, .plan__grid, .ba, .reviews, .faq__grid, .emergency__grid, .book, .phero--media .phero__grid, .tfit, .tcost__grid, .nervous, .principal { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 32px; }
  .hero__media { justify-self: center; max-width: 520px; max-height: none; }
  .audience { margin-top: 32px; }
  .hero::before { inset: 0 0 40% 0; }
  .tpanel__media, .nervous__media, .principal__media { max-width: 440px; }
  .faq__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .people__grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .timeline::before, .timeline::after { display: none; }
  .phero__media { max-width: 520px; }
  .teamstrip__card { margin: -60px auto 0; }
}
@media (max-width: 767px) {
  .audience { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 14px; }
  .aud { grid-row: auto; grid-template-rows: none; }
  .people__grid { grid-template-columns: repeat(2, 1fr); }
  .field-row, .compare__grid, .joinsteps, .infocols, .visitinfo, .legal, .feegrid { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .bento { grid-template-columns: 1fr; }
  .tip--photo { grid-row: auto; aspect-ratio: 4/3; min-height: 0; width: 100%; }
  .teamstrip__media { aspect-ratio: 4/3; }
  .teamstrip__card { margin: -48px 12px 0; padding: 24px; }
  .practice__grid { grid-template-columns: 1fr; }
  .practice__a { grid-column: auto; aspect-ratio: 4/3; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero::before { inset: 0 0 160px 0; }
  .tpanel__media { aspect-ratio: 16/11; max-height: 300px; border-radius: 40% 40% var(--r) var(--r) / 30% 30% var(--r) var(--r); }
  .hero__media { max-height: 70vh; }
  .tabs__list { display: flex; border-radius: 22px; }
  .tabs__tab { flex: 1 1 auto; padding: 10px 12px; }
  /* Smile line becomes a vertical rail */
  .smile { display: none; }
  .visit__steps { margin-top: 0; grid-template-columns: 1fr; gap: 28px; padding-left: 40px; }
  .visit__steps::before, .visit__steps::after { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: var(--line-strong); }
  .visit__steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
  .vstep { padding-top: 0; text-align: left; }
  .vstep__dot { left: -32px; top: 12px; }
  .vstep p { margin-left: 0; }
  .timeline { grid-template-columns: 1fr; padding-left: 36px; row-gap: 28px; }
  .timeline::before, .timeline::after { display: block; left: 9px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
  .timeline::after { transform-origin: top; transform: scaleY(var(--p, 1)); }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -36px; top: 2px; }
  .rel { grid-template-columns: 1fr; }
  .rel span { grid-row: auto; grid-column: 1; margin-top: 8px; }
}

/* ---------- Brochure: one letter-fold sheet ----------
   Default (phones, tablets, no JavaScript): the six faces sit in a swipe row in reading order (--o).
   .is-3d (set by main.js from 1024px): the sheet folds in 3D. The middle panel stays put; the right leaf folds in
   first, the left leaf (front cover on its back) folds over it. data-step: 0 cover, 1 first visit, 2 inside, 3 back. */
.bro { padding: calc(var(--nav-h) + clamp(18px, 2vw, 28px)) 0 clamp(64px, 8vw, 112px); background: linear-gradient(180deg, var(--surface-2), var(--bg) 70%); }
.bro__head .display--page { font-size: clamp(2.1rem, 1.5rem + 2vw, 3rem); }
.bro__head .crumbs { margin-bottom: 12px; }
.bro__head .lead { margin-top: 12px; max-width: 64ch; }
.bro__stage { --pw: min(340px, calc((100vw - 96px) / 3)); --ph: calc(var(--pw) * 1.62); position: relative; margin-top: clamp(20px, 2.4vw, 32px); }
.bro__shadow { display: none; }
.bro__obj {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 6px max(16px, (100vw - 1200px) / 2) 26px; scrollbar-width: none;
}
.bro__obj::-webkit-scrollbar { display: none; }
.bro__base, .bro__leaf { display: contents; }

.face {
  order: var(--o); flex: 0 0 min(340px, 84vw); scroll-snap-align: center;
  display: flex; flex-direction: column; gap: 14px; padding: 26px 24px;
  background: var(--surface); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow);
  font-size: .9rem; line-height: 1.5;
}
.face > * { flex-shrink: 0; }
.face h3 { font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--accent-ink); margin: 6px 0 2px; }
.face a:not(.btn) { color: var(--accent-ink); }
.face__h { font-size: 1.45rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.face__note { font-size: .8rem; color: var(--ink-2); }
.face__note a { font-weight: 600; }

/* Front cover: the one dark-accent panel, like the printed cover */
.face--cover { background: var(--accent); color: var(--on-accent); }
.face--cover .face__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.02rem; }
.face--cover .brand__mark { width: 28px; height: 28px; color: currentColor; }
.face__display { font-size: 1.85rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; margin-top: 6px; }
.face--cover > p:not(.face__brand) { opacity: .86; }
.face__photo { height: 190px; flex: none; }
.bro.is-3d .face__photo { height: auto; flex: 1 1 0; min-height: 120px; }
.face__open { align-self: flex-start; }
.face__open i { transition: transform .3s var(--ease); }
.face__open:hover i { transform: translateX(3px); }

/* First visit */
.face__steps { display: grid; gap: 12px; }
.face__steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.face__num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .82rem; font-feature-settings: "tnum" 1; }
.bro-film { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; text-align: left; }
.bro-film .film__frame { aspect-ratio: 2 / 1; border-radius: 14px; border: 1px solid var(--line-strong); box-shadow: 0 12px 26px -16px rgb(15 60 55 / .45); }
.bro-film .film__cta { right: 10px; bottom: 10px; gap: 10px; padding: 5px 14px 5px 5px; font-size: .86rem; }
.bro-film .film__play { width: 34px; height: 34px; font-size: 14px; }
.bro-film:hover .film__frame img { transform: scale(1.03); }
.bro-film:hover .film__cta { transform: translateY(-2px); }
.bro-film:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.face__pain { margin-top: auto; padding: 14px 16px; border-radius: var(--r-in); background: var(--accent-soft); display: grid; gap: 6px; }
.face__pain .link { font-size: .88rem; }

/* Treatments */
.face__groups { display: grid; }
.face__prices li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 2px 0; line-height: 1.35; }
.face__prices li span:last-child { color: var(--ink-2); font-feature-settings: "tnum" 1; text-align: right; }
.face__prices a { text-decoration: none; font-weight: 600; }
.face__prices a:hover { text-decoration: underline; }
.face__groups + .face__note { margin-top: auto; }

/* Care plan and reviews */
.face__price { color: var(--ink-2); }
.face__price strong { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; color: var(--accent-ink); font-feature-settings: "tnum" 1; }
.face__ticks { display: grid; gap: 4px; }
.face__ticks li { display: flex; gap: 8px; align-items: baseline; }
.face__ticks i { color: var(--accent-ink); }
.bro-rev { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.bro-rev__stars { color: var(--accent-ink); font-size: .85rem; letter-spacing: 2px; }
.bro-rev__item p { font-size: .98rem; line-height: 1.45; }
.bro-rev__item footer { margin-top: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.js .bro-rev__item:not(.is-on) { display: none; }
.motion .bro-rev__item.is-on { animation: revIn .5s var(--ease); }
@keyframes revIn { from { opacity: 0; transform: translateY(6px); } }
.bro-rev__nav { display: none; align-items: center; gap: 10px; }
.js .bro-rev__nav { display: flex; }
.bro-rev__btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; display: grid; place-items: center; cursor: pointer; }
.bro-rev__btn:hover { border-color: var(--ink); }
.bro-rev__count { font-size: .8rem; color: var(--ink-2); font-feature-settings: "tnum" 1; }

/* Team */
.face__team { display: grid; gap: 10px; }
.face__team li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; line-height: 1.3; }
.face__team img, .face__team .photo-slot { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.face__team strong { display: block; font-weight: 600; }
.face__team span { color: var(--ink-2); font-size: .84rem; }
.face__team strong { color: var(--ink); font-size: .9rem; }
.face__team + .btn { margin-top: auto; }
.face__call { align-self: center; font-size: .9rem; }

/* Back cover */
.face--back-cover { background: var(--surface-2); }
.face__contact { display: grid; gap: 6px; }
.face__contact li { display: flex; gap: 10px; align-items: center; }
.face__contact i { color: var(--accent-ink); font-size: 1.1rem; }
.face .hours--days { font-size: .86rem; gap: 2px; }
.face--back-cover .face__note:last-child { margin-top: auto; }

/* Controls: dots for the swipe row, view buttons for the 3D sheet */
.bro__bar { display: flex; align-items: center; justify-content: center; gap: 12px; }
.bro__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; transition: border-color .25s ease, opacity .25s ease; }
.bro__arrow:hover:not(:disabled) { border-color: var(--ink); }
.bro__arrow:disabled { opacity: .35; cursor: default; }
.bro__steps { display: none; }
.bro__dots { display: flex; gap: 4px; }
.bro__dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.bro__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); transition: width .4s var(--ease), background-color .3s ease; }
.bro__dot[aria-current="true"]::before { width: 22px; background: var(--accent); }
html:not(.js) .bro__bar { display: none; }
.bro__words { margin-top: 28px; text-align: center; max-width: 72ch; }
.bro__words .film__wordsbody { text-align: left; }

/* ---------- Brochure in 3D (wide screens) ---------- */
.bro.is-3d .bro__stage { height: calc((var(--ph) + 40px) * var(--s, 1)); perspective: 2600px; perspective-origin: 50% 40%; }
.bro.is-3d .bro__obj {
  display: block; overflow: visible; padding: 0; position: absolute; left: 50%; top: 8px;
  width: calc(var(--pw) * 3); height: var(--ph); margin-left: calc(var(--pw) * -1.5);
  transform-style: preserve-3d; transform-origin: 50% 0; transform: scale(var(--s, 1)) translateX(var(--shift, 0px)) rotateY(var(--flip, 0deg));
}
.bro.is-3d .bro__base, .bro.is-3d .bro__leaf { display: block; position: absolute; top: 0; width: var(--pw); height: 100%; transform-style: preserve-3d; }
.bro.is-3d .bro__base { left: var(--pw); }
.bro.is-3d .bro__leaf--l { left: 0; transform-origin: 100% 50%; transform: translateZ(2px) rotateY(var(--leaf-l)); }
.bro.is-3d .bro__leaf--r { left: calc(var(--pw) * 2); transform-origin: 0 50%; transform: translateZ(1px) rotateY(var(--leaf-r)); }
.bro.is-3d .face {
  position: absolute; inset: 0; flex: none; border-radius: 3px; overflow: hidden; padding: 24px 22px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 0 0 1px var(--line);
}
.bro.is-3d .face--back { transform: rotateY(180deg); }
/* Paper creases: a faint shade along each fold */
.bro.is-3d .face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.bro.is-3d .face--crease-l::after { background: linear-gradient(90deg, rgb(15 60 55 / .07), transparent 9%); }
.bro.is-3d .face--crease-r::after { background: linear-gradient(270deg, rgb(15 60 55 / .07), transparent 9%); }
.bro.is-3d .face--crease-l.face--crease-r::after { background: linear-gradient(90deg, rgb(15 60 55 / .07), transparent 9%, transparent 91%, rgb(15 60 55 / .07)); }
/* Panels you can tap to move: a small Back / Next tab appears on hover so the click is predictable */
.bro.is-3d .face[data-go] { cursor: pointer; }
.bro.is-3d .face[data-go]::before {
  content: attr(data-go-label); position: absolute; top: 14px; right: 14px; z-index: 1; pointer-events: none;
  padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--accent); color: var(--on-accent); opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s var(--ease);
}
.bro.is-3d .face[data-go]:hover::before { opacity: 1; transform: none; }
.bro.is-3d .face--cover[data-go]::before { background: var(--on-accent); color: var(--accent); }
/* The ground shadow widens with the sheet, so the open state reads as one object */
.bro.is-3d .bro__shadow {
  display: block; position: absolute; left: 50%; top: calc(var(--ph) * var(--s, 1) - 8px); width: calc(var(--pw) * 3); height: 40px; margin-left: calc(var(--pw) * -1.5);
  background: radial-gradient(closest-side, rgb(15 60 55 / .26), transparent); filter: blur(8px);
  transform: translateX(calc(var(--shift, 0px) * var(--s, 1))) scaleX(calc(var(--sw, .36) * var(--s, 1)));
}
.bro { --leaf-l: 180deg; --leaf-r: -180deg; }
.bro[data-step="1"] { --leaf-l: 0deg; --shift: calc(var(--pw) * .5); --sw: .7; }
.bro[data-step="2"] { --leaf-l: 0deg; --leaf-r: 0deg; --sw: 1; }
.bro[data-step="3"] { --flip: 180deg; }
.bro.is-3d .bro__steps { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.bro.is-3d .bro__dots { display: none; }
.bro__step { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: .92rem; color: var(--ink-2); cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.bro__step:hover { color: var(--ink); }
.bro__step[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.bro.is-3d .face__open[hidden] { display: none; }

/* Fold motion: leaves swing out toward the reader; slow and even (clinic tone, no bounce) */
.motion .bro.is-ready .bro__obj, .motion .bro.is-ready .bro__shadow { transition: transform .9s cubic-bezier(.45, 0, .2, 1); }
.motion .bro.is-ready .bro__leaf { transition: transform 1s cubic-bezier(.45, 0, .2, 1); }
/* The cover lifts a little on hover to show it opens */
@media (hover: hover) {
  .motion .bro.is-3d[data-step="0"] .bro__obj:hover { --leaf-l: 166deg; }
}

/* ---------- Reduced motion: everything settles instantly ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none !important; }
  .marquee { mask-image: none; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .marquee__track { flex-wrap: wrap; row-gap: 8px; flex-shrink: 1; }
}
