/* Website-Fabrik dental-v1 (rev. 2, Porzellan & Kobalt). Mobile first. Tokens only in :root.
   Pick a measured preset from README.md (Kobalt & Minze, Petrol & Koralle, Salbei & Tinte) to fit
   the practice brand; change hues only with a new measurement. Never a brown or rust accent, never
   beige paper next to a cool accent. Ship light and dark. Page rules below use tokens only. */
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-ext-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  /* Porzellan, Kobaltkreide und Mint, clinical foundation roles. */
  --bg: #f6f7f3; --surface: #f6f7f3; --surface-2: #e4ebfa;
  --muted-strong: #3a4759; --muted: #3a4759;
  --accent-fill: #1e45c8; --accent-on-fill: #ffffff; --accent-text: #1e45c8; --accent-soft: #d9f4e6;
  --ink-field: #0f1b33; --on-ink: #f6f7f3; --on-ink-muted: #c3cee0;
  --field-1: #e4ebfa; --field-1-ink: #0f1b33; --field-2: #d9f4e6; --field-2-ink: #0f1b33; --field-3: #0f1b33; --field-3-ink: #f6f7f3;
  --radius-sm: 0px; --radius-button: 0px; --header-height: 64px;

  --paper: #f6f7f3;          /* porcelain: clean reading ground */
  --paper-deep: #e8eeea;     /* quiet band under contact details */
  --surface-calm: #e4ebfa;   /* pale cobalt: explanation and location */
  --surface-warm: #d9f4e6;   /* pale mint: the people of the practice */
  --control-line: #66727f;   /* interactive boundary, at least 3:1 */
  --ink: #0f1b33;            /* night blue body text */
  --ink-soft: #3a4759;       /* secondary text */
  --line: #cbd3d6;           /* decorative hairlines only */
  --accent: #1e45c8;         /* cobalt: CTA, links, active state */
  --accent-ink: #ffffff;     /* text on cobalt */
  --accent-ink-soft: #d9e2ff;/* secondary text on cobalt */
  --accent-2: #9fe8c8;       /* mint: highlights, markers, 3D particles (never body text on paper) */
  --field: #0f1b33;          /* strong night-blue chapter for rhythm */
  --field-ink: #f6f7f3;
  --field-ink-soft: #c3cee0;
  --field-accent: #9fe8c8;   /* mint numbers and lines on the night field */
  --focus: #c2410c;          /* visible focus ring, 3:1 on all grounds */
  --hero-bg: #1e45c8;        /* cobalt bookends: hero and contact */
  --hero-ink: #ffffff;
  --hero-ink-soft: #d9e2ff;
  --hero-highlight: #9fe8c8;
  --hero-cta-bg: #9fe8c8;
  --hero-cta-ink: #0f1b33;
  --hero-focus: #ffffff;
  --font-display: "Onest", "Segoe UI", system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, sans-serif;
  --header-h: 64px;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(72px, 11vw, 168px);
  --radius: 0px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-press: 120ms;
  --t-state: 200ms;
  --t-drawer: 240ms;
  --t-reveal: 560ms;
  color-scheme: light;
}
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1322; --surface: #0b1322; --surface-2: #14213f;
    --muted-strong: #b4bfcc; --muted: #b4bfcc;
    --accent-fill: #8fb0ff; --accent-on-fill: #0b1322; --accent-text: #8fb0ff; --accent-soft: #0f2a22;
    --ink-field: #1e45c8; --on-ink: #ffffff; --on-ink-muted: #d9e2ff;
    --field-1: #14213f; --field-1-ink: #eef2ef; --field-2: #0f2a22; --field-2-ink: #eef2ef; --field-3: #1e45c8; --field-3-ink: #ffffff;

    --paper: #0b1322; --paper-deep: #111c30; --surface-calm: #14213f; --surface-warm: #0f2a22;
    --control-line: #7e8ba0; --ink: #eef2ef; --ink-soft: #b4bfcc; --line: #26324a;
    --accent: #8fb0ff; --accent-ink: #0b1322; --accent-ink-soft: #1a2747; --accent-2: #7fddb5;
    --field: #1e45c8; --field-ink: #ffffff; --field-ink-soft: #d9e2ff; --field-accent: #b8f5da;
    --hero-bg: #1e45c8; --hero-ink: #ffffff; --hero-ink-soft: #d9e2ff; --hero-highlight: #b8f5da; --hero-cta-bg: #b8f5da; --hero-cta-ink: #0b1322; --hero-focus: #ffffff;
    --focus: #d86c10; color-scheme: dark;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --bg: #0b1322; --surface: #0b1322; --surface-2: #14213f;
    --muted-strong: #b4bfcc; --muted: #b4bfcc;
    --accent-fill: #8fb0ff; --accent-on-fill: #0b1322; --accent-text: #8fb0ff; --accent-soft: #0f2a22;
    --ink-field: #1e45c8; --on-ink: #ffffff; --on-ink-muted: #d9e2ff;
    --field-1: #14213f; --field-1-ink: #eef2ef; --field-2: #0f2a22; --field-2-ink: #eef2ef; --field-3: #1e45c8; --field-3-ink: #ffffff;

    --paper: #0b1322; --paper-deep: #111c30; --surface-calm: #14213f; --surface-warm: #0f2a22;
    --control-line: #7e8ba0; --ink: #eef2ef; --ink-soft: #b4bfcc; --line: #26324a;
    --accent: #8fb0ff; --accent-ink: #0b1322; --accent-ink-soft: #1a2747; --accent-2: #7fddb5;
    --field: #1e45c8; --field-ink: #ffffff; --field-ink-soft: #d9e2ff; --field-accent: #b8f5da;
    --hero-bg: #1e45c8; --hero-ink: #ffffff; --hero-ink-soft: #d9e2ff; --hero-highlight: #b8f5da; --hero-cta-bg: #b8f5da; --hero-cta-ink: #0b1322; --hero-focus: #ffffff;
    --focus: #d86c10; color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 760; line-height: 1.02; margin: 0 0 .5em; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 8.6vw, 7rem); font-weight: 820; letter-spacing: -0.05em; line-height: .96; }
h2 { font-size: clamp(2rem, 6.4vw, 5.25rem); letter-spacing: -0.045em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.eyebrow { font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius); border: 1px solid transparent; font: 650 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: transform var(--t-press) var(--ease-out); }
.btn-arrow { width: 14px; height: 14px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg) scale(.8); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--control-line); }

/* ---------- header and drawer ---------- */
.site-header { position: sticky; isolation: isolate; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.header-bar { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); padding: 0 var(--gutter); }
.brand { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; line-height: 1.15; margin-right: auto; min-height: 44px; justify-content: center; }
.brand-name { font-family: var(--font-display); font-weight: 780; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-place { font-size: .8rem; color: var(--ink-soft); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .menu-toggle { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--ink); border: 1px solid var(--control-line); border-radius: var(--radius); font: 600 .95rem var(--font-body); cursor: pointer; }
.menu-toggle { padding: 0 12px; }
.menu-toggle[hidden] { display: none; }
.theme-icon { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.menu-icon { position: relative; width: 18px; height: 12px; }
.menu-icon span { position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: currentColor; transition: transform var(--t-state) var(--ease-out); }
.menu-icon span:first-child { transform: translateY(-4px); }
.menu-icon span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: rotate(-45deg); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-contact { display: none; }

/* Without scripts the links stay visible in the header flow; with scripts they move into the drawer. */
html:not(.has-drawer) .site-nav { flex-basis: 100%; order: 3; padding-bottom: 8px; }
html:not(.has-drawer) .header-bar { flex-wrap: wrap; }
@media (max-width: 959.98px) {
  .has-drawer .site-nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0 0; z-index: 29;
    display: flex; flex-direction: column; gap: 32px; overflow-y: auto; overscroll-behavior: contain;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--paper);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--t-drawer) var(--ease-out), transform var(--t-drawer) var(--ease-out), visibility 0s linear var(--t-drawer);
  }
  .has-drawer .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--t-drawer) var(--ease-out), transform var(--t-drawer) var(--ease-out), visibility 0s; }
  .has-drawer .nav-list { flex-direction: column; gap: 0; }
  .has-drawer .nav-list a { font: 600 1.75rem/1.2 var(--font-display); min-height: 56px; width: 100%; border-bottom: 1px solid var(--line); }
  .has-drawer .nav-contact { display: grid; gap: 8px; }
  .nav-hours { color: var(--ink-soft); margin: 0; }
}
body.menu-open { position: fixed; left: 0; right: 0; overflow: hidden; }
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .menu-toggle { display: none !important; }
  .site-nav { display: flex; align-items: center; gap: 28px; }
  .nav-contact { display: block; }
  .nav-hours { display: none; }
  .site-nav .motion-toggle { display: none; }
}

/* ---------- hero: cobalt field, big type, image inside the first mobile viewport ---------- */
.hero { position: relative; display: grid; gap: 28px; padding: 28px 0 0; background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; }
.hero :focus-visible { outline-color: var(--hero-focus); }
.hero .eyebrow { color: var(--hero-ink-soft); }
.hero-copy { position: relative; z-index: 1; padding: 0 var(--gutter); }
.hero-copy h1 { max-width: 13ch; }
.hero-copy h1 .line { display: block; }
.hero-copy h1 .line + .line, .hero-copy h1 em { color: var(--hero-highlight); font-style: normal; }
.hero-lead { font-size: 1.125rem; color: var(--hero-ink-soft); margin-bottom: 22px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn-primary { background: var(--hero-cta-bg); color: var(--hero-cta-ink); }
.hero .btn-quiet { color: var(--hero-ink); border-color: var(--hero-ink-soft); }
.hero-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--hero-ink-soft); }
.hero-facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--hero-highlight); transform: translateY(-2px); }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform-origin: 50% 30%; }
.media-note { font-size: .8rem; color: var(--ink-soft); background: var(--paper); padding: 8px var(--gutter); margin: 0; }
.media-note:empty { display: none; }
@media (max-width: 959.98px) {
  .hero-lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-facts { display: none; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 0; padding: 0; min-height: min(92vh, 900px); }
  .hero-copy { align-self: center; padding: 96px clamp(32px, 4vw, 72px) 96px var(--gutter); }
  .hero-copy h1 { max-width: 12ch; }
  .hero-media { align-self: stretch; }
  .hero-media img { height: 100%; aspect-ratio: auto; }
  .media-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px; }
}

/* Hero lines arrive once on load (transform/opacity); the image never waits. */
@keyframes line-in { from { opacity: 0; transform: translateY(.42em); } to { opacity: 1; transform: none; } }
.motion .hero-copy h1 .line { animation: line-in 820ms var(--ease-out) both; }
.motion .hero-copy h1 .line:nth-child(2) { animation-delay: 90ms; }
.motion .hero-copy h1 .line:nth-child(3) { animation-delay: 180ms; }
.motion .hero-copy :is(.hero-lead, .hero-actions) { animation: line-in 700ms var(--ease-out) 240ms both; }

/* ---------- scroll progress: one bar under the header ---------- */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--progress, 0)); transform-origin: left; }
html:not(.motion) .scroll-progress { display: none; }

/* ---------- marquee: decorative service words that travel with the scroll ---------- */
.marquee { overflow: hidden; padding: clamp(18px, 3vw, 36px) 0; background: var(--paper); border-bottom: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.marquee-track { display: inline-flex; gap: clamp(28px, 4vw, 64px); font: 800 clamp(2.6rem, 9vw, 8.5rem)/1 var(--font-display); letter-spacing: -0.05em; padding-left: var(--gutter); }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }

/* ---------- sections ---------- */
main > section { padding: var(--section) var(--gutter); }
main > section.hero { padding-left: 0; padding-right: 0; }
.section-head { margin-bottom: 32px; }

.practice { display: grid; gap: 36px; background: var(--surface-warm); }
.practice-media { position: relative; }
.practice-portrait { position: relative; max-width: 520px; }
.practice-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.practice-portrait::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 46%; height: 38%; background: var(--accent); z-index: -1; }
.practice-room { display: none; }
.practice-statement { font: 700 clamp(1.5rem, 3.6vw, 2.9rem)/1.12 var(--font-display); letter-spacing: -0.035em; max-width: 22ch; }
.practice-facts { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.practice-facts li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.practice-facts li span { color: var(--ink-soft); font-size: .85rem; min-width: 2.2ch; }
.practice-meta { color: var(--ink-soft); }
@media (min-width: 960px) {
  .practice { grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(48px, 7vw, 120px); }
  .practice-room { display: block; position: absolute; right: -8%; bottom: -48px; width: 48%; border: 8px solid var(--surface-warm); }
}

/* ---------- services as a horizontal scene: pinned on desktop, swipe track on mobile ---------- */
.services { padding-left: 0 !important; padding-right: 0 !important; background: var(--paper); }
.hscroll-head { display: grid; gap: 12px; padding: 0 var(--gutter); margin-bottom: 28px; }
.hscroll-head h2 { margin: 0; max-width: 14ch; }
.hscroll-meta { display: flex; align-items: center; gap: 16px; }
.hscroll-count { font: 800 clamp(2.4rem, 6vw, 5rem)/1 var(--font-display); color: var(--accent); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.hscroll-count small { font-size: .35em; color: var(--ink-soft); letter-spacing: 0; margin-left: 4px; }
.hscroll-bar { flex: 1; height: 3px; background: var(--line); max-width: 360px; position: relative; overflow: hidden; }
.hscroll-bar span { position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--hs, .08)); transform-origin: left; }
.hscroll-viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); }
.hscroll-viewport::-webkit-scrollbar { display: none; }
.hscroll-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; width: max-content; }
.service-panel { width: min(82vw, 520px); scroll-snap-align: start; display: grid; gap: 14px; align-content: start; }
.service-panel figure { position: relative; overflow: hidden; background: var(--surface-calm); }
.service-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-panel figcaption { font-size: .78rem; color: var(--ink-soft); padding-top: 6px; background: var(--paper); }
.panel-no { font: 800 .95rem var(--font-display); color: var(--accent); letter-spacing: .04em; }
.service-panel h3 { margin: 0; }
.service-panel p { margin: 0; color: var(--ink-soft); }
.service-panel .panel-link { font-weight: 650; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.service-panel.panel-tall img { aspect-ratio: 3 / 4; }
.service-panel.panel-wide { width: min(88vw, 680px); }
.hscroll-controls { display: flex; gap: 8px; padding: 16px var(--gutter) 0; }
.icon-btn { min-width: 48px; min-height: 48px; display: inline-grid; place-items: center; background: transparent; color: var(--ink); border: 1px solid var(--control-line); cursor: pointer; font: 700 1.1rem var(--font-body); }
.icon-btn:active { transform: scale(.97); }
@media (min-width: 960px) {
  .hscroll-head { grid-template-columns: 1fr auto; align-items: end; }
  .service-panel { width: clamp(340px, 30vw, 460px); }
  .service-panel.panel-wide { width: clamp(420px, 40vw, 620px); }
  .service-panel:nth-child(even) { padding-top: 64px; }
}
/* Desktop with motion: the sticky stage turns vertical scroll into horizontal travel. */
.hs-pin .services { padding-top: 0 !important; padding-bottom: 0 !important; }
.hs-pin .hscroll-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hs-pin .hscroll-viewport { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
.hs-pin .hscroll-track { will-change: transform; }
.hs-pin .hscroll-controls { display: none; }
.hs-pin .hscroll-track { gap: 32px; }
.hs-pin .service-panel img { aspect-ratio: auto; height: min(44vh, 460px); }
.hs-pin .service-panel:nth-child(even) { padding-top: 48px; }

/* ---------- 3D stage: lazy WebGL over a poster image that is the full fallback ---------- */
.feature-3d { display: grid; gap: 32px; background: var(--surface-calm); }
.three-stage { position: relative; aspect-ratio: 1 / 1; max-width: 640px; width: 100%; margin: 0 auto; background: radial-gradient(circle at 50% 45%, var(--paper) 0, var(--surface-calm) 68%); }
.three-stage img.three-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--t-reveal) var(--ease-out); }
.three-stage .three-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity var(--t-reveal) var(--ease-out); }
.three-stage.is-live .three-canvas { opacity: 1; }
.three-stage.is-live img.three-poster { opacity: 0; }
.three-stage figcaption { position: absolute; left: 0; top: 0; font-size: .78rem; color: var(--ink-soft); background: var(--surface-calm); padding: 0 10px 6px 0; }
.feature-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: fs; }
.feature-steps li { counter-increment: fs; padding-top: 18px; border-top: 2px solid var(--line); transition: opacity var(--t-state) var(--ease-out); }
.feature-steps li::before { content: counter(fs, decimal-leading-zero); display: block; font: 800 1rem var(--font-display); color: var(--accent); margin-bottom: 6px; }
.feature-steps li.is-current { border-top-color: var(--accent); }
@media (min-width: 960px) {
  .feature-3d { grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 6vw, 112px); align-items: start; }
  .feature-3d .three-stage { position: sticky; top: calc(var(--header-h) + 5vh); max-height: 82vh; }
  .feature-steps { gap: 0; }
  .feature-steps li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; border-top: 0; border-left: 2px solid var(--line); padding: 0 0 0 28px; }
  .feature-steps li.is-current { border-left-color: var(--accent); }
  .motion .feature-steps li:not(.is-current) { opacity: .55; }
}

/* ---------- process: the night field with a line that grows with the scroll ---------- */
.process { background: var(--field); color: var(--field-ink); }
.process .eyebrow, .process p { color: var(--field-ink-soft); }
.process :focus-visible { outline-color: var(--field-accent); }
.process-line { position: relative; height: 2px; background: color-mix(in srgb, var(--field-ink) 22%, transparent); margin: 40px 0 32px; }
.process-line span { position: absolute; inset: 0; background: var(--field-accent); transform: scaleX(var(--line, 1)); transform-origin: left; }
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: ps; }
.process-steps li { counter-increment: ps; }
.process-steps li::before { content: counter(ps, decimal-leading-zero); display: block; font: 800 clamp(2.4rem, 5vw, 4rem)/1 var(--font-display); color: var(--field-accent); letter-spacing: -0.04em; margin-bottom: 10px; }
.process-steps h3 { color: var(--field-ink); }
.motion .process-steps li { transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); }
.motion .process-steps li:not(.is-on) { opacity: .45; transform: translateY(14px); }
@media (min-width: 960px) {
  .process-steps { grid-template-columns: repeat(var(--steps, 3), 1fr); gap: 48px; }
}

/* ---------- words that settle while reading ---------- */
.words-anim .w { display: inline-block; opacity: var(--wo, 1); }
.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; }

.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-list a { display: flex; gap: 18px; align-items: baseline; min-height: 56px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 clamp(1.2rem, 3.4vw, 1.75rem)/1.25 var(--font-display); }
.index-no { font: 500 .9rem var(--font-body); color: var(--ink-soft); min-width: 2ch; }
.index-list a:hover, .index-list a:focus-visible { color: var(--accent); text-decoration: underline; }

/* Scenes: each has its own composition. Mobile is always a readable single column. */
.scene { display: grid; gap: 28px; }
.scene-media img, .scene-anchor img, .scene-pole img, .editorial-main img { width: 100%; object-fit: cover; }
.plain-steps, .layers { padding-left: 1.2em; }
.plain-steps li, .layers li { margin-bottom: .4em; }

.scene-reveal { padding-left: 0 !important; padding-right: 0 !important; }
.scene-reveal .scene-copy { padding: 0 var(--gutter); }
@media (min-width: 960px) {
  .scene-reveal { grid-template-columns: 1.4fr 1fr; align-items: center; gap: clamp(40px, 5vw, 80px); padding-right: var(--gutter) !important; }
  .scene-reveal .scene-copy { padding: 0; }
}

.scene-steps, .scene-chapters, .scene-explain, section.location, section#standort { background: var(--surface-calm); }
.visit, .team, .scene-gallery, .scene-questions, .scene-consult { background: var(--surface-warm); }
.step-line { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; position: relative; }
.step-line li { padding-left: 52px; position: relative; }
.step-no { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; }
.step-line li.is-current .step-no { background: var(--accent); color: var(--accent-ink); }
.scene-pole img { aspect-ratio: 4 / 5; max-height: 560px; }
@media (min-width: 960px) {
  .scene-steps { grid-template-columns: 1fr 1fr 0.8fr; grid-template-areas: "copy copy pole" "line line pole"; align-items: start; column-gap: 56px; }
  .scene-steps .scene-copy { grid-area: copy; }
  .step-line { grid-area: line; grid-template-columns: repeat(3, 1fr); padding-top: 56px; }
  .step-line::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 2px; background: var(--line); }
  .step-line::after { content: ""; position: absolute; left: 0; top: 18px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(calc((var(--step, 0) + 1) / 3)); transform-origin: left; transition: transform var(--t-reveal) var(--ease-out); }
  .step-line li { padding-left: 0; padding-top: 0; }
  .step-no { position: relative; margin: -56px 0 20px; background: var(--surface-calm); }
  .scene-pole { grid-area: pole; }
}

.scene-editorial { position: relative; }
.editorial-detail { width: 46%; margin-top: -18%; margin-left: auto; border: 6px solid var(--paper); }
@media (min-width: 960px) {
  .scene-editorial { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; column-gap: 64px; }
  .editorial-main { grid-row: 1 / span 2; }
  .editorial-detail { width: 70%; margin: 0; }
}

.chapter-tabs { display: none; }
.chapter-panel { padding: 16px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .chapters.is-enhanced .chapter-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
  .chapters.is-enhanced .chapter-tabs [role="tab"] { min-height: 44px; padding: 0 16px; border: 1px solid var(--control-line); background: transparent; color: var(--ink); border-radius: var(--radius); font: 600 1rem var(--font-body); cursor: pointer; }
  .chapters.is-enhanced .chapter-tabs [aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .chapters.is-enhanced .chapter-panel { display: none; border: 0; }
  .chapters.is-enhanced .chapter-panel.is-active { display: block; animation: fade var(--t-state) var(--ease-out); }
  .chapters.is-enhanced .chapter-panel h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 960px) {
  .scene-chapters { grid-template-columns: 1fr 0.9fr; grid-template-areas: "copy anchor" "chapters anchor"; column-gap: 64px; }
  .scene-chapters .scene-copy { grid-area: copy; } .scene-chapters .chapters { grid-area: chapters; } .scene-chapters .scene-anchor { grid-area: anchor; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.scene-case { background: var(--paper-deep); }
.compare { max-width: 980px; }
.compare-frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-calm); }
.compare.is-enhanced .compare-frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(100% - var(--cmp, 50%)); width: 3px; margin-left: -1.5px; background: var(--paper); pointer-events: none; }
.compare-sim { display: inline-block; margin: 0 0 12px; padding: 4px 10px; background: var(--ink); color: var(--paper); font-size: .8rem; font-weight: 650; letter-spacing: .04em; }
.compare-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare:not(.is-enhanced) .compare-frame { aspect-ratio: auto; overflow: visible; }
.compare:not(.is-enhanced) .compare-frame img, .compare:not(.is-enhanced) .compare-after-wrap { position: static; }
.compare:not(.is-enhanced) .compare-range, .compare:not(.is-enhanced) .compare-buttons, .compare:not(.is-enhanced) .compare-label { display: none; }
.compare-after-wrap { position: absolute; inset: 0; }
.compare-label { position: absolute; top: 12px; padding: 4px 10px; background: var(--paper); color: var(--ink); font-size: .85rem; font-weight: 600; }
.compare-label-before { left: 12px; } .compare-label-after { right: 12px; }
.compare-range { display: grid; gap: 6px; margin-top: 12px; font-weight: 600; }
.compare-range input { width: 100%; min-height: 44px; accent-color: var(--accent); touch-action: pan-y; }
.compare-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.compare-note { font-size: .875rem; color: var(--ink-soft); margin-top: 12px; }

.gallery-track { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.gallery-track > li { scroll-snap-align: start; overflow: hidden; }
.gallery-track img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-track figcaption { padding-top: 8px; color: var(--ink-soft); }
.gallery-controls { display: flex; gap: 8px; margin-top: 12px; }
@media (min-width: 960px) { .gallery-track { grid-auto-columns: 44%; } }

.questions details, .faq details { border-top: 1px solid var(--line); }
.questions summary, .faq summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 600; padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary::after, .questions summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 4px 4px auto; flex-shrink: 0; }
.faq summary::after { transition: transform var(--t-state) var(--ease-out); }
.faq details[open] summary::after, .questions details[open] summary::after { transform: rotate(225deg); }
.faq details[open] > p { animation: fade var(--t-state) var(--ease-out); }
@media (min-width: 960px) {
  .scene-questions, .scene-explain, .scene-consult { grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: center; }
}

.visit-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: visit; }
.visit-steps li { display: grid; gap: 4px; padding-left: 56px; position: relative; counter-increment: visit; }
.visit-steps li::before { content: counter(visit, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 600 1.4rem var(--font-display); color: var(--accent); }
@media (min-width: 960px) { .visit-steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.team-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.team-list figcaption { padding-top: 8px; } .team-list b { display: block; }

/* ---------- location: a quiet facts column beside the consent-controlled map ---------- */
.location { display: grid; gap: 32px; }
.location-facts, .location-map { min-width: 0; }
.location address, .location-route { overflow-wrap: anywhere; }
.location .hours div { flex-wrap: wrap; }
.location-route { max-width: 100%; white-space: normal; text-align: left; }
.map-privacy { color: var(--ink-soft); font-size: 1rem; margin: 0 0 16px; }
.map-frame { display: grid; place-items: center; min-width: 0; min-height: 300px; background: var(--paper-deep); }
.map-frame > .btn { margin: 20px; }
.map-frame > [hidden] { display: none; }
.map-frame noscript { padding: 20px; }
.map-frame iframe { display: block; width: 100%; max-width: 100%; height: clamp(300px, 38vw, 440px); border: 0; }
.map-status { color: var(--ink-soft); }
.map-status:empty { display: none; }
@media (min-width: 960px) { .location { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } }

/* ---------- contact ---------- */
.contact { display: grid; gap: 40px; background: var(--hero-bg); color: var(--hero-ink); }
.contact a, .contact .eyebrow { color: var(--hero-ink); }
.contact .eyebrow, .contact .hours dt { color: var(--hero-ink-soft); }
.contact :focus-visible { outline-color: var(--hero-focus); }
.contact .hours div { border-bottom-color: color-mix(in srgb, var(--hero-ink) 30%, transparent); }
.contact .request label { color: var(--hero-ink); }
.contact .form-mode, .contact .form-status { color: var(--ink); }
.contact .form-mode a { color: var(--accent); }
.contact .btn-primary { background: var(--hero-cta-bg); color: var(--hero-cta-ink); }
.contact-phone { display: inline-block; font: 800 clamp(2.2rem, 8vw, 5.5rem)/1 var(--font-display); letter-spacing: -0.045em; color: var(--hero-ink); margin: 8px 0 20px; min-height: 44px; text-decoration-thickness: 2px; }
address { font-style: normal; margin-bottom: 16px; }
.hours { display: grid; gap: 4px; margin: 0 0 20px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; max-width: 360px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.hours dd { margin: 0; }
.request { display: grid; gap: 14px; align-content: start; max-width: 560px; }
.form-mode { padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--paper); margin: 0; }
.request label { display: grid; gap: 6px; font-weight: 600; }
.request input, .request select { min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--ink-soft); border-radius: var(--radius); }
.request .check { grid-template-columns: 24px 1fr; align-items: start; font-weight: 400; }
.request .check input { min-height: 24px; width: 24px; height: 24px; }
.request [aria-invalid="true"] { border-color: var(--focus); }
.form-status:empty { display: none; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; gap: 80px; } }

.site-footer { padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.site-footer nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-press) var(--ease-out); }
.site-footer nav a:hover::after, .site-footer nav a:focus-visible::after { transform: scaleX(1); }
.draft-note:empty { display: none; }
.image-rights { max-width: 70ch; font-size: .85rem; }

/* ---------- motion switch in nav and footer ---------- */
.motion-toggle { min-height: 44px; background: transparent; border: 1px solid var(--control-line); color: var(--ink); padding: 0 14px; font: 600 .9rem var(--font-body); cursor: pointer; }
.motion-toggle[hidden] { display: none; }
.site-footer .motion-toggle { color: var(--ink-soft); }

/* ---------- section motion: transform/opacity only, scripts and preference gated ---------- */
/* Stable hooks and palette rationale: docs/dental-v1-section-design.md in the source repo. */
.service-index { --enter-x: -8px; --enter-y: 0px; --enter-time: 320ms; --stagger-gap: 45ms; }
.practice { --enter-y: 12px; }
.visit { --enter-y: 8px; --enter-time: 360ms; --stagger-gap: 60ms; }
.team { --enter-y: 0px; --enter-scale: .99; --enter-time: 400ms; --stagger-gap: 60ms; }
.scene-explain { --enter-y: 0px; --enter-time: 320ms; --stagger-gap: 60ms; }
.contact, .scene-consult, [data-scene="X"] { --enter-y: 0px; --enter-time: 200ms; }
section.location, section#standort { --enter-y: 8px; --enter-time: 200ms; }
.motion [data-reveal]:not(.is-in), .motion [data-stagger]:not(.is-in) > * {
  opacity: 0; transform: translate(var(--enter-x, 0px), var(--enter-y, 12px)) scale(var(--enter-scale, 1));
}
.motion [data-reveal], .motion [data-stagger] > * {
  transition: opacity var(--enter-time, var(--t-reveal)) var(--ease-out), transform var(--enter-time, var(--t-reveal)) var(--ease-out);
}
.motion [data-reveal]:focus-within, .motion [data-stagger]:focus-within > * { opacity: 1; transform: none; transition: none; }
.motion [data-stagger] > * { transition-delay: calc(var(--i, 0) * var(--stagger-gap, 70ms)); }
/* Retain the legacy hook, but do not animate clipping or force a full-image repaint. */
.motion [data-clip-reveal] { transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); }
.motion [data-clip-reveal]:not(.is-in) { opacity: 0; transform: translateX(-12px); }
/* The hero never waits for entrance motion; anxiety content deliberately stays still. */
.motion :is(.hero, .scene-questions) :is([data-reveal], [data-stagger] > *, [data-clip-reveal]) {
  opacity: 1; transform: none; transition: none;
}
@media (max-width: 959.98px) {
  .practice, .team, .scene-explain { --enter-y: 0px; --enter-scale: 1; --enter-time: 200ms; }
  .motion [data-clip-reveal]:not(.is-in) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important;
    transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  [data-parallax], .btn:active { transform: none !important; will-change: auto !important; }
  [data-reveal], [data-stagger] > *, [data-clip-reveal], [data-clip-reveal] img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .step-line::after { transform: scaleX(1) !important; }
  [data-scrub-zoom] img, [data-marquee] .marquee-track, .hscroll-track, .words-anim .w, .process-steps li, .feature-steps li { transform: none !important; opacity: 1 !important; }
  .process-line span { transform: scaleX(1) !important; }
  .gallery-track { scroll-snap-type: none; }
}

/* Practice-specific composition built on dental-v1. */
h1,h2,h3 { font-weight: 800; }
h1,h2,h3,p,summary,a,dt,dd { overflow-wrap: break-word; }
h1 { font-weight: 800; }
.brand-dot { color: var(--accent); }
.site-header .brand { border-radius: 0; }
.brand-name { font-size: .98rem; white-space: nowrap; }
.header-bar { gap: 12px; }
.brand-place { font-size: .72rem; }
.hero-copy h1 { max-width: none; font-size: clamp(2.4rem,9.7vw,7.3rem); line-height: .98; letter-spacing: -.055em; margin-bottom: 20px; }
.hero-copy h1 .line { white-space: nowrap; }
main > section.hero { padding-top: 26px; padding-bottom: 0; gap: 24px; }
.hero .eyebrow { font-size: .72rem; margin-bottom: 16px; letter-spacing: .09em; }
.hero-lead { display: block; font-size: 1.05rem; line-height: 1.5; margin-bottom: 18px; }
.hero-facts { display: flex; font-size: .75rem; line-height: 1.4; gap: 6px 14px; margin-top: 18px; }
.hero-facts li::before { width: 5px; height: 5px; margin-right: 5px; }
.hero-media img { aspect-ratio: 3/2; object-position: 55% 50%; }
.hero .btn { min-height: 48px; padding-inline: 20px; }
.media-note { font-size: .75rem; }
.practice-media { isolation: isolate; }
.practice-portrait img { aspect-ratio: 4/5; object-position: 48% 50%; }
.practice-statement { max-width: 28ch; }
.practice-copy h2 { font-size: clamp(2.2rem,5.7vw,5.5rem); }
.practice-facts { border-top-color: var(--control-line); }
.practice-facts li { align-items: start; }
.words-anim .w { opacity: 1; transform: translateY(calc((1 - var(--wo, 1)) * 4px)); }
.hscroll-head h2 { max-width: 15ch; }
.hscroll-head { margin-bottom: 36px; }
.service-panel { gap: 12px; }
.service-panel h3 { font-size: clamp(1.8rem,3vw,2.7rem); line-height: 1.04; max-width: 17ch; }
.service-panel .panel-kicker { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.service-panel p { max-width: 45ch; line-height: 1.5; }
.service-panel figcaption { font-size: .75rem; }
.service-panel img { height: auto; }
.service-panel[data-scene="L06"] img { object-position: 62% 50%; }
.panel-no { border-top: 1px solid var(--control-line); padding-top: 14px; }
.feature-3d .three-stage { background: var(--surface-calm); }
.three-stage figcaption { top: auto; bottom: 0; left: 16px; background: var(--surface-calm); }
.feature-copy h2 { max-width: 12ch; }
.feature-copy .eyebrow { margin-bottom: 20px; }
.feature-steps li::before { color: var(--accent); }
.motion .feature-steps li:not(.is-current) { opacity: 1; }
.feature-steps h3 { font-size: 1.6rem; }
.scene-questions { background: var(--surface-warm); gap: 36px; }
.scene-questions h2 { max-width: 14ch; }
.scene-questions .questions { border-bottom: 1px solid var(--control-line); }
.questions details, .faq details { border-color: var(--control-line); }
.questions summary, .faq summary { gap: 20px; font-size: 1.1rem; line-height: 1.35; padding-block: 20px; }
.questions details p, .faq details p { padding-bottom: 22px; }
.text-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; font-weight: 700; }
.process h2 { max-width: 17ch; }
.motion .process-steps li:not(.is-on) { opacity: 1; }
.process h3 { font-size: 1.7rem; max-width: 13ch; }
.team { background: var(--paper); }
.team-intro { margin-bottom: 46px; }
.team-intro h2 { max-width: 16ch; }
.team-intro p { color: var(--ink-soft); max-width: 40ch; }
.team-list { display: block; }
.team-list li { display: flex; gap: 22px; padding: 24px 0; align-items: center; border-top: 1px solid var(--control-line); }
.team-list li:last-child { border-bottom: 1px solid var(--control-line); }
.team-initials { flex: 0 0 64px; font: 800 1.5rem/1 var(--font-display); color: var(--accent); }
.team-list h3 { margin-bottom: 6px; font-size: 1.3rem; }
.team-list p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.faq { background: var(--paper-deep); }
.faq h2 { margin-bottom: 40px; }
.faq details:last-child { border-color: var(--control-line); }
.location h2 { font-size: clamp(2.3rem,5vw,4.8rem); }
.location-facts h3 { font-size: 1.3rem; margin-block: 24px 12px; }
.location .hours { font-size: 1rem; }
.location .hours div { padding: 8px 0; }
.arrival-note { font-size: 1rem; color: var(--ink-soft); }
.location-map { align-self: stretch; }
.map-frame { min-height: 340px; }
.contact h2 { font-size: clamp(2.6rem,6vw,6rem); max-width: 13ch; }
.contact-phone { display: table; max-width: 100%; font-size: clamp(1.8rem,7.4vw,6.2rem); line-height: 1.12; }
.contact .contact-intro { font-size: clamp(1.7rem,3vw,2.7rem); font-weight: 700; line-height: 1.15; }
.contact .request { align-self: center; }
.contact .form-mode { padding: 0; border: 0; background: transparent; color: var(--hero-ink-soft); }
.contact .request .btn { justify-self: start; margin-top: 16px; }
.contact .hours { font-size: .95rem; }
.contact .hours dt, .contact .hours dd { color: var(--hero-ink); }
.site-footer .image-rights { margin-block: 20px; }
.site-footer .draft-note { font-size: .8rem; padding-top: 22px; max-width: 74ch; }
.legal-header { padding: 24px var(--gutter); border-bottom: 1px solid var(--control-line); }
.legal-header a { min-height: 44px; display: inline-flex; align-items: center; }
.legal { max-width: 900px; padding: 60px var(--gutter) 100px; }
.legal h1 { font-size: clamp(2.6rem,7vw,5rem); margin-bottom: 36px; }
.legal h2 { font-size: 1.6rem; margin-top: 40px; }
.legal .draft-note { border-left: 4px solid var(--accent); padding-left: 20px; }
@media (max-width: 359px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-toggle { padding: 0; width: 44px; }
  .hero-copy h1 { font-size: 10.2vw; }
  .header-tools { gap: 6px; }
  .brand-name { font-size: .9rem; }
}
@media (min-width: 960px) {
  :root { --header-height: 76px; }
  .header-bar { padding-inline: 3vw; gap: 24px; }
  .brand-name { font-size: 1.08rem; }
  .site-nav { gap: 24px; }
  .nav-list { gap: 20px; }
  .nav-list a { font-size: .85rem; }
  .nav-contact .btn { padding-inline: 18px; font-size: .85rem; min-height: 44px; }
  main > section.hero { padding: 0; grid-template-columns: 1.13fr 1fr; gap: 0; min-height: min(830px,calc(100svh - 76px)); }
  .hero-copy { padding: 60px 3vw 60px var(--gutter); }
  .hero-copy h1 { font-size: clamp(3.4rem,6.5vw,7.2rem); }
  .hero-lead { font-size: 1.18rem; max-width: 34ch; margin-bottom: 30px; }
  .hero .eyebrow { margin-bottom: 30px; }
  .hero-facts { font-size: .8rem; margin-top: 36px; }
  .hero-media img { height: 100%; aspect-ratio: auto; object-position: 57% center; }
  .practice-portrait { max-width: none; }
  .practice-portrait img { aspect-ratio: 4/5; }
  .scene-questions { grid-template-columns: 1.1fr 1fr; gap: 8vw; }
  .team { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
  .team-intro { margin: 0; }
  .team-list li { gap: 26px; }
  .team-initials { flex-basis: 80px; font-size: 2.4rem; }
  .faq { display: grid; grid-template-columns: .9fr 1.1fr; column-gap: 10vw; }
  .faq h2 { grid-row: 1/5; }
  .location-map { display: flex; flex-direction: column; }
  .map-frame { flex: 1; min-height: 460px; }
  .contact { grid-template-columns: 1.2fr .8fr; gap: 8vw; }
  .contact-phone { font-size: clamp(2.6rem,4.7vw,5.2rem); }
}
@media screen and (min-width: 960px) and (max-height: 800px) {
  .hs-pin .hscroll-head h2 { font-size: 3rem; }
  .hs-pin .hscroll-head { margin-bottom: 20px; }
  .hs-pin .service-panel img { height: 28vh; }
}
html[data-motion="off"] .three-stage.is-live .three-canvas { opacity: 0; visibility: hidden; }
html[data-motion="off"] .three-stage.is-live .three-poster { opacity: 1; }
html[data-motion="off"] .hero-copy * { animation: none; }
html[data-entered] .hero-copy * { animation: none; }
@media (prefers-reduced-motion: reduce) {
 .three-stage.is-live .three-canvas { opacity: 0; visibility: hidden; }
 .three-stage.is-live .three-poster { opacity: 1; }
}
/* Neutralise foundation hero sizing in the prescribed dental composition. */
.hero { align-content: stretch; min-height: 0; }
.hero-media picture { display: block; height: 100%; }
.hero-copy h1 .line { white-space: normal; overflow-wrap: anywhere; }
.map-privacy a, .site-footer > p a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-list a { padding-inline: 4px; }
@media (min-width: 960px) {
  .hero-media { height: 100%; }
  .hero-media picture { height: 100%; }
  .hero-media img { min-height: 100%; }
}
/* Reflow remains readable when text is enlarged independently of the viewport. */
.header-bar { flex-wrap: wrap; }
.brand { min-width: 0; flex: 1 1 8rem; }
.brand-name { white-space: normal; }
.header-tools { flex: 0 0 auto; }
.site-nav { min-width: 0; max-width: 100%; }
main > section > *, .practice-copy, .feature-copy, .scene-copy, .questions, .team-intro, .team-list, .team-list li > div, .contact-facts, .request, .hero-copy { min-width: 0; }
.hero { grid-template-columns: minmax(0,1fr); }
.hero-actions .btn { max-width: 100%; }
.contact-phone { overflow-wrap: anywhere; }
@media (min-width: 960px) {
 .practice { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
 .feature-3d { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
 .scene-questions { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
 .team, .faq { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
 .contact { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
 .site-nav { flex-wrap: wrap; }
}
.process-steps { grid-template-columns: minmax(0,1fr); }
.process-steps > li, .nav-list, .nav-contact { min-width: 0; }
.contact .hours div { flex-wrap: wrap; }
.site-footer nav { flex-wrap: wrap; }
@media (max-width: 959.98px) { .has-drawer .site-nav { top: var(--drawer-top,var(--header-h)); } }
@media (min-width: 960px) { .process-steps { grid-template-columns: repeat(var(--steps,3),minmax(0,1fr)); } }
@media (max-width: 959.98px) {
 .has-drawer .nav-list li { min-width: 0; }
 .has-drawer .nav-list a { display: block; padding: 12px 4px; overflow-wrap: anywhere; }
}
@media (min-width: 960px) {
 .hs-pin .hscroll-head h2 { font-size: clamp(2.6rem,4.8vw,4.2rem); }
 .hs-pin .service-panel img { height: min(28vh,300px); }
 .hs-pin .service-panel h3 { font-size: 2rem; }
 .hs-pin .service-panel:nth-child(even) { padding-top: 24px; }
}
.site-header { transition: none; }
.faq summary::after { content: ""; }

.three-stage figcaption { z-index: 1; }

/* Model simulation: editorial split and readable labels in both modes. */
.scene-case { background: var(--surface-calm); display: grid; gap: 32px; }
.scene-case .compare { width: 100%; min-width: 0; max-width: none; }
.scene-case .scene-copy h2 { max-width: 12ch; }
.scene-case .scene-copy > p:last-child { max-width: 48ch; }
.compare-frame figure { margin: 0; }
.compare-frame figcaption { padding: 10px 12px; background: var(--paper); color: var(--ink-soft); font-size: .8rem; }
.compare.is-enhanced .compare-frame figure { position: absolute; inset: 0; }
.compare.is-enhanced .compare-frame figcaption { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; }
.compare:not(.is-enhanced) .compare-frame img { height: auto; }
.compare:not(.is-enhanced) .compare-after-wrap { margin-top: 20px; }
.compare-label { z-index: 2; }
.compare-range input { cursor: ew-resize; }
@media (min-width: 960px) { .scene-case { grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 64px; align-items: start; } }

.compare.is-enhanced .compare-state-label { display: none; }

.scene-case .scene-copy h2 { max-width: none; font-size: clamp(2.3rem, 5vw, 4.7rem); }
