/* Unity Dental Care, second design. The why behind these values: sites/unity-v2/DESIGN.md.
   The layout mechanics of the 3D (pinning, the phone plate, the stills) are the same as
   sites/unity/styles.css on purpose: the engine in sites/unity/.src depends on them. */

:root {
  --paper: #f5f7f7;
  --white: #ffffff;
  --plate-bg: #e3e8e9;
  --well: #ebeff0;
  --ink: #0f1e27;
  --ink-body: #26363f;
  --ink-2: #4c5c66;
  --rule: #d3dadc;
  --rule-strong: #b6c1c5;
  --teal: #0a6e75;
  --teal-hover: #075a60;
  --deep: #0f3351;
  --deep-ink: #eaf0f2;
  --deep-2: #a9bccb;
  --deep-rule: rgba(234, 240, 242, 0.16);
  --wa: #1fa855;

  /* The 3D is drawn on the same plate colour the page shows around it. */
  --scene-ground: #e3e8e9;
  --scene-accent: #0a9aa1;

  --font: "Plex Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1320px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --frame: max(var(--gutter), calc((100% - var(--max)) / 2));
  --sec: clamp(76px, 9vw, 136px);
  --bar-h: 64px;
  --svh: 1vh;
  --plate: calc(var(--svh) * 40);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
/* --plate is the phone plate's height; its colour is --plate-bg, the same as --scene-ground. */
@supports (height: 1svh) { :root { --svh: 1svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 1.85; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html[lang="en"] body { font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
dl, dd { margin: 0; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* The visitor's answer to "what bothers you?" lives on <html data-mode>. */
html[data-mode="ortho"] [data-m]:not([data-m="ortho"]),
html[data-mode="implant"] [data-m]:not([data-m="implant"]),
html[data-mode="white"] [data-m]:not([data-m="white"]),
html[data-mode="veneer"] [data-m]:not([data-m="veneer"]) { display: none !important; }

/* ── type and small parts ──────────────────────────────────────── */
.sec { padding: var(--sec) var(--frame); }
.shead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; align-items: end; margin-bottom: clamp(36px, 4.4vw, 64px); }
.shead__title { font-size: clamp(32px, 3.9vw, 52px); line-height: 1.3; font-weight: 600; color: var(--ink); }
html[lang="en"] .shead__title { line-height: 1.1; letter-spacing: -0.018em; }
.shead__lede { margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.8; max-width: 44ch; }
html[lang="en"] .shead__lede { line-height: 1.55; }
@media (max-width: 860px) { .shead { grid-template-columns: minmax(0, 1fr); row-gap: 14px; } }
.label { font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--ink-2); margin: 0 0 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; text-decoration: none;
  font: 600 16px/1.2 var(--font); white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--teal); }
.btn--line { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--deep); }
.btn--light:hover { background: var(--deep-ink); }
.btn--line-light { border-color: rgba(234, 240, 242, 0.4); color: var(--deep-ink); }
.btn--line-light:hover { border-color: var(--deep-ink); }
.link { color: var(--teal); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link:hover { color: var(--ink); }

/* A doctor named where the page says who treats you: a face and a name. */
.docs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.doc { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.doc img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--well); }
.doc:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ── top bar ───────────────────────────────────────────────────── */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--bar-h); display: flex; align-items: center; gap: 32px; padding-inline: var(--frame); color: var(--ink); transition: background-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); }
.bar.is-solid { background: rgba(245, 247, 247, 0.96); box-shadow: 0 1px 0 var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand__mark { width: 30px; height: 28px; color: var(--teal); fill: currentColor; flex: none; }
.brand__name { display: grid; line-height: 1.1; }
.brand__word { font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.brand__sub { font-size: 12px; color: var(--ink-2); }
.bar__nav { display: flex; gap: 26px; margin-inline-start: auto; }
.bar__nav a, .bar__lang, .bar__me { text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color 0.2s; }
.bar__nav a:hover, .bar__lang:hover, .bar__me:hover { color: var(--ink); }
.bar__end { display: flex; align-items: center; gap: 22px; }
.bar__book { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (max-width: 1140px) { .bar__nav { display: none; } .bar__end { margin-inline-start: auto; } }
@media (max-width: 560px) { :root { --bar-h: 56px; } .bar__book { display: none; } .bar__end { gap: 18px; } }
.flow .bar.is-away { transform: translateY(-100%); }

/* ── the mouth and the cut ──────────────────────────────────────── */
/* Without 3D each stop keeps its own still picture and the page simply flows. */
.deep { position: relative; background: var(--plate-bg); color: var(--ink); }
.deep__stage { display: none; }
.gate { position: relative; min-height: calc(var(--svh) * 100); display: grid; place-items: center; padding: calc(var(--bar-h) + 16px) var(--gutter) 24px; text-align: center; overflow: clip; }
.gate__poster { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(160vw, calc(var(--svh) * 104)); max-width: none; height: auto; pointer-events: none; }
.gate__mid { position: relative; display: grid; justify-items: center; gap: 6px; width: min(240px, 54vw); }
.gate__title { font-weight: 600; font-size: clamp(28px, min(9.4vw, 5.6svh), 56px); line-height: 1.2; color: var(--ink); }
html[lang="en"] .gate__title { font-size: clamp(24px, 3.4svh, 40px); line-height: 1.12; letter-spacing: -0.015em; }
.gate__lede { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.gate__picked { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); display: none; }
.gate__picked.is-on { display: block; }
.gate__mid.has-pick .gate__lede { display: none; }
.gate__go { margin-top: 12px; min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
.gate__side { position: absolute; top: 47%; font-size: 14px; color: var(--ink-2); pointer-events: none; }
.gate__side--right { left: calc(50% + calc(var(--svh) * 31)); }
.gate__side--left { right: calc(50% + calc(var(--svh) * 31)); }
@media (max-width: 820px), (max-height: 520px) { .gate__side { display: none; } }
.gate__foot { position: absolute; inset-inline: 0; bottom: 22px; display: flex; justify-content: center; }
.gate__whole { color: var(--ink); font-size: 16px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--rule-strong); }
.gate__whole:hover { text-decoration-color: var(--ink); }

.stop { position: relative; padding: 84px var(--gutter); max-width: 760px; }
.stop__poster { width: min(100%, 460px); margin-bottom: 24px; }
.stop__layer { color: var(--teal); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.stop__title { font-weight: 600; font-size: clamp(30px, 3vw, 44px); line-height: 1.3; margin-bottom: 20px; }
html[lang="en"] .stop__title { line-height: 1.12; letter-spacing: -0.015em; }
.stop__body { font-size: 18px; line-height: 1.85; color: var(--ink-body); max-width: 36em; }
html[lang="en"] .stop__body { line-height: 1.6; }
.stop__does { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; margin: 24px 0 18px; padding-top: 16px; border-top: 1px solid var(--rule-strong); font-size: 16px; line-height: 1.6; }
.stop__does dt { color: var(--teal); font-weight: 600; }
.stop__does dd { color: var(--ink); }
.stop .docs { margin-bottom: 26px; }
.stop__case { margin: 0 0 24px; }
.stop__case figcaption { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
@media (min-width: 821px) {
  html:not(.has3d) .stop { max-width: none; display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 1fr); column-gap: 56px; align-items: start; padding-inline: var(--frame); }
  html:not(.has3d) .stop > * { grid-column: 1; }
  html:not(.has3d) .stop__poster { grid-column: 2; grid-row: 1 / span 9; position: sticky; top: calc(var(--bar-h) + 20px); width: min(100%, 540px); }
}
/* With 3D: one canvas held in place while the words pass by. */
.has3d .deep__stage { display: block; position: sticky; top: 0; height: calc(var(--svh) * 100); z-index: 1; overflow: hidden; }
.has3d .deep__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; display: block; opacity: 0; }
.deep__still { display: none; }
.has3d .deep__still { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(160vw, calc(var(--svh) * 104)); max-width: none; height: auto; pointer-events: none; }
.has3d .deep__still.is-plate { left: 30%; width: min(50vw, calc(var(--svh) * 88)); }
[dir="ltr"] .has3d .deep__still.is-plate { left: 70%; }
.has3d .deep__flow { margin-top: -100svh; position: relative; pointer-events: none; }
.has3d .gate { z-index: 3; }
.has3d .gate__poster, .has3d .stop__poster { display: none; }
.has3d .gate__go, .has3d .gate__foot a { pointer-events: auto; }
.has3d .stop { pointer-events: auto; z-index: 2; min-height: calc(var(--svh) * 100); width: min(46vw, 620px); padding-block: calc(var(--svh) * 18) calc(var(--svh) * 12); padding-inline: var(--frame) 0; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.leaders line { stroke: var(--ink); stroke-width: 1; stroke-opacity: 0.45; opacity: 0; }
.cals { position: absolute; inset: 0; pointer-events: none; }
.cal { position: absolute; top: 0; left: 0; font-size: 16px; font-weight: 500; line-height: 1.2; color: var(--ink); padding-inline: 8px; white-space: nowrap; opacity: 0; will-change: transform; }
.deep__note { position: absolute; top: calc(var(--bar-h) + 50px); inset-inline-end: var(--frame); margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); opacity: 0; max-width: 40ch; }
.deep__rule { display: none; }
.tap { position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: rgba(15, 30, 39, 0.1); opacity: 0; pointer-events: none; }

/* The depth gauge: which layer the page is at, set like the scale beside a section drawing. */
.gauge { display: none; }
@media (min-width: 821px) and (min-height: 521px) {
  .has3d .stop__layer { display: none; }
  .has3d .gauge { display: flex; position: absolute; top: calc(var(--bar-h) + 16px); inset-inline-end: var(--frame); margin: 0; padding: 0; list-style: none; gap: 18px; font-size: 14px; line-height: 1.4; color: var(--ink-2); opacity: 0; transition: opacity 0.4s var(--ease); }
  .has3d .gauge.is-on { opacity: 1; }
  .has3d .gauge.is-past { opacity: 0; }
  .gauge li { position: relative; padding-top: 10px; transition: color 0.3s; }
  .gauge li::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--rule-strong); transition: background-color 0.3s; }
  .gauge li.is-at { color: var(--ink); font-weight: 600; }
  .gauge li.is-at::before { background: var(--teal); }
}

@media (max-width: 820px) and (orientation: portrait) {
  .has3d .stop { z-index: 0; width: auto; padding: calc(var(--plate) + 22px) var(--gutter) 40px; min-height: 0; }
  .deep__rule { display: block; position: absolute; inset-inline: 0; height: 1px; background: var(--rule-strong); opacity: 0; }
  .deep__note { top: calc(var(--plate) - 36px); font-size: 12px; max-width: 110px; inset-inline-end: var(--gutter); }
  .cal { font-size: 14px; }
  .stop__title { font-size: clamp(25px, 7vw, 36px); margin-bottom: 14px; }
  .stop__body { font-size: 17px; line-height: 1.75; }
  .doc { font-size: 14px; }
  .doc img { width: 30px; height: 30px; }
}
/* Sideways: the tooth on one half, as on a desk, with the mouth beside its question. */
@media (max-height: 520px) and (orientation: landscape) {
  .has3d .stop { width: 52vw; padding: 24px var(--gutter); min-height: calc(var(--svh) * 100); }
  .deep__rule { display: none; }
  .deep__note { top: 8px; font-size: 12px; }
  .cal { font-size: 14px; }
  .gate { place-items: center start; padding-block: 12px; }
  .gate__mid { width: 44vw; justify-items: start; text-align: start; }
  .gate__foot { justify-content: flex-start; inset-inline: var(--gutter) auto; bottom: 8px; }
  .stop__title { font-size: 25px; }
  .stop__body { font-size: 16px; line-height: 1.65; }
}

/* ── the whole smile: the aligners ─────────────────────────────── */
/* Without motion this is a plain section with the chapters as a list. */
.stage { background: var(--plate-bg); color: var(--ink); position: relative; }
.stage__pin { position: relative; padding: calc(var(--bar-h) + 72px) var(--frame) 72px; }
.stage__canvas { display: none; }
.stage__poster { position: absolute; inset: 0 0 auto 0; height: calc(var(--svh) * 100); overflow: hidden; pointer-events: none; }
.stage__poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }

.hero { position: relative; max-width: 600px; margin-bottom: 64px; }
.hero__title { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.25; font-weight: 600; margin-bottom: 20px; }
html[lang="en"] .hero__title { line-height: 1.04; letter-spacing: -0.02em; }
.hero__lede { font-size: 18px; color: var(--ink-2); max-width: 32em; line-height: 1.8; margin: 0; }
html[lang="en"] .hero__lede { line-height: 1.55; }

.chapters { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 56px; max-width: 520px; }
.chapter p { color: var(--ink-body); }
.chapter__step { display: flex; gap: 12px; align-items: baseline; color: var(--teal) !important; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.chapter__n { color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.chapter__title { font-size: clamp(28px, 2.7vw, 40px); line-height: 1.3; margin-bottom: 14px; }
html[lang="en"] .chapter__title { line-height: 1.12; letter-spacing: -0.015em; }
.chapter__x { font-size: 15px; color: var(--ink-2) !important; padding-top: 12px; border-top: 1px solid var(--rule-strong); }
.chapter__guide { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; color: var(--ink-2); }
.chapter__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* One control with four answers, not four floating buttons. */
.pick { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; margin: 0 0 56px; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; position: relative; z-index: 2; }
.pick button { min-height: 40px; padding: 0 16px; font: 500 15px/1.2 var(--font); color: var(--ink-2); background: transparent; border: 0; border-radius: 8px; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
@media (hover: hover) { .pick button:hover { color: var(--ink); background: var(--well); } }
.pick button[aria-checked="true"] { background: var(--ink); color: var(--white); }
.motion .pick { position: absolute; margin: 0; top: calc(var(--bar-h) + 22px); inset-inline-start: var(--frame); }
.counter, .stage__note { display: none; }

.motion .stage__pin { height: calc(var(--svh) * 100); padding: 0; overflow: hidden; }
.motion .stage__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.motion .stage__poster { display: none; }
.motion .hero, .motion .chapters { position: absolute; inset-inline-start: var(--frame); top: 50%; transform: translateY(-46%); margin: 0; width: min(560px, 40vw); z-index: 1; }
.motion .chapters { display: block; width: min(460px, 34vw); }
.motion .chapter { position: absolute; inset: 0 0 auto 0; transform: translateY(-50%); opacity: 0; visibility: hidden; }
.motion .counter { display: flex; align-items: baseline; gap: 12px; position: absolute; inset-inline-end: var(--frame); bottom: 48px; color: var(--ink-2); font-size: 14px; opacity: 0; z-index: 1; }
html:not([data-mode="ortho"]) .counter { display: none; }
.counter__num { font-size: 40px; font-weight: 300; color: var(--ink); font-variant-numeric: tabular-nums; }
.counter__num b { font-weight: 500; display: inline-block; min-width: 1.2em; text-align: end; }
.motion .stage__note { display: block; position: absolute; inset-inline-start: var(--frame); bottom: 24px; font-size: 13px; color: var(--ink-2); margin: 0; max-width: 48ch; }

/* ── phones: nothing ever sits on top of a scene ───────────────────
   A phone gets a different layout, not a squeezed one: the scene is a plate held at the
   top, and the words are an ordinary page scrolling underneath it. */
.flow .stage__poster { display: none; }
.flow .stage__canvas { display: block; position: sticky; top: 0; width: 100%; background: var(--plate-bg); }
.flow .stage__note { display: block; padding: 12px var(--gutter) 32px; font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.flow .counter { display: flex; align-items: baseline; gap: 8px; position: sticky; height: 0; z-index: 3; color: var(--ink-2); font-size: 13px; opacity: 0; pointer-events: none; }
html.flow:not([data-mode="ortho"]) .counter { display: none; }
.flow .counter__num { font-size: 22px; }
.flow .hero { margin: 0; padding: 28px var(--gutter) 20px; }
.flow .hero__title { font-size: clamp(28px, 8.4vw, 46px); }
.flow .hero__lede { font-size: 16px; line-height: 1.7; }
.flow .chapters { max-width: none; gap: 0; grid-template-columns: minmax(0, 1fr); }
.flow .chapter { padding: 20px var(--gutter); }
.flow .chapter__title { font-size: clamp(24px, 6.6vw, 34px); }
.flow .chapter p { font-size: 16px; line-height: 1.75; }
.flow .chapter__x { display: none; }
.flow .pick { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; position: sticky; top: 8px; z-index: 3; margin-inline: var(--gutter); border-radius: 11px; }
.flow .pick::-webkit-scrollbar { display: none; }
.flow .pick button { min-height: 36px; padding: 0 12px; font-size: 14px; flex: none; }

@media (max-width: 820px) and (orientation: portrait) {
  .flow .stage__pin { display: flex; flex-direction: column; padding: 0; }
  .flow .stage__canvas { order: 0; height: var(--plate); z-index: 2; border-bottom: 1px solid var(--rule-strong); }
  .flow .pick { order: 1; margin-top: calc(var(--plate) * -1 + 8px); margin-bottom: calc(var(--plate) - 54px); }
  .flow .counter { order: 2; top: calc(var(--plate) - 34px); margin: -34px var(--gutter) 34px; }
  .flow .hero { order: 3; }
  .flow .chapters { order: 4; }
  /* Each beat's words hold under the plate while its scene plays, using only the browser's own
     scrolling. Each height is how much scroll that beat gets: the 24 aligners need the most. */
  .flow .chapter { padding: 0 var(--gutter); }
  .flow .chapter__in { position: sticky; top: calc(var(--plate) + 14px); padding-bottom: 20px; background: var(--plate-bg); }
  .flow .chapter:nth-child(1) { min-height: calc(var(--svh) * 110); }
  .flow .chapter:nth-child(2) { min-height: calc(var(--svh) * 130); }
  .flow .chapter:nth-child(3) { min-height: calc(var(--svh) * 130); }
  .flow .chapter:nth-child(4) { min-height: calc(var(--svh) * 280); }
  .flow .chapter:nth-child(5) { min-height: calc(var(--svh) * 110); }
  .flow .stage__note { order: 5; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .flow .stage__pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; align-items: start; }
  .flow .stage__canvas { grid-column: 2; grid-row: 1 / span 6; height: calc(var(--svh) * 100); }
  .flow .pick { grid-column: 1; margin: 8px var(--gutter); }
  .flow .counter { display: none; }
  .flow .hero, .flow .chapters, .flow .stage__note { grid-column: 1; }
  .flow .chapter__in { position: sticky; top: 62px; padding-bottom: 12px; background: var(--plate-bg); }
  .flow .chapter:nth-child(1), .flow .chapter:nth-child(5) { min-height: calc(var(--svh) * 130); }
  .flow .chapter:nth-child(2), .flow .chapter:nth-child(3) { min-height: calc(var(--svh) * 150); }
  .flow .chapter:nth-child(4) { min-height: calc(var(--svh) * 320); }
  .dock { display: none !important; }
  .gate__poster { display: none; }
}

/* ── the real result for the chosen story ──────────────────────── */
.result__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.result__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.result__photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.result__note { color: var(--ink-2); font-size: 15px; line-height: 1.7; margin-top: 14px; max-width: 60ch; }
.result__side .docs { margin-bottom: 32px; }
.result__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; line-height: 1.5; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-inline-end: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg) translateY(-3px); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--ink-body); padding-bottom: 14px; font-size: 16px; margin: 0; }
@media (max-width: 900px) { .result__body { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* before / after */
.compare { --pos: 50%; position: relative; aspect-ratio: 2 / 1; width: 100%; overflow: hidden; background: var(--well); border-radius: 6px; user-select: none; touch-action: pan-y; cursor: ew-resize; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
html[dir="ltr"] .compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px; display: grid; place-items: center; outline-offset: -6px; }
.compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: var(--white); }
.compare__handle span { width: 36px; height: 36px; border-radius: 50%; background: var(--white); position: relative; box-shadow: 0 1px 3px rgba(15, 30, 39, 0.3); }
.compare__handle span::before, .compare__handle span::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.compare__handle span::before { left: 9px; transform: rotate(-45deg); }
.compare__handle span::after { right: 9px; transform: rotate(135deg); }
.compare__tag { position: absolute; top: 10px; padding: 1px 9px; border-radius: 4px; background: rgba(15, 30, 39, 0.62); color: var(--white); font-size: 13px; line-height: 1.6; }
.compare__tag--before { right: 10px; }
.compare__tag--after { left: 10px; }
html[dir="ltr"] .compare__tag--before { right: auto; left: 10px; }
html[dir="ltr"] .compare__tag--after { left: auto; right: 10px; }

/* ── what the doctor sees, and what you see ────────────────────── */
.tech { background: var(--deep); color: var(--deep-ink); padding: var(--sec) var(--frame); }
.shead--deep .shead__title { color: var(--white); }
.shead--deep .shead__lede { color: var(--deep-2); }
.tech .label { color: var(--deep-2); }
.tech__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.tools__row { padding: 18px 0; border-top: 1px solid var(--deep-rule); }
.tools__row:last-child { border-bottom: 1px solid var(--deep-rule); }
.tools dt { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.tools dd { font-size: 16px; line-height: 1.75; color: var(--deep-2); }
.screens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.screens figure { margin: 0; }
.screens img { width: 100%; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; border-radius: 16px; border: 1px solid var(--deep-rule); background: var(--paper); }
.screens figcaption { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--deep-ink); }
.tech__honest { margin: 18px 0 0; font-size: 13px; color: var(--deep-2); }
.tech__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 960px) {
  .tech__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .screens { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .screens figure { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
  .screens figcaption { margin: 0; }
}

/* ── the doctors ───────────────────────────────────────────────── */
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.roster__card { display: grid; gap: 4px; text-decoration: none; color: inherit; }
.roster__card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--well); margin-bottom: 12px; }
.roster__name { font-size: 19px; font-weight: 600; line-height: 1.4; }
.roster__role { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.roster__card:hover .roster__name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 960px) { .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } .roster__name { font-size: 17px; } .roster__role { font-size: 14px; } }

/* ── patients' words ───────────────────────────────────────────── */
.voices { background: var(--white); }
.voices__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.voices__list li { padding-top: 20px; border-top: 1px solid var(--rule); }
.voices__list blockquote { margin: 0 0 14px; font-size: 19px; line-height: 1.75; color: var(--ink); text-align: start; }
html[lang="en"] .voices__list blockquote { text-align: right; }
.voices__en { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.voices__doc { margin: 0; font-size: 14px; color: var(--ink-2); }
.voices__doc a { color: var(--teal); }
@media (max-width: 960px) { .voices__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .voices__list { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ── the clinic's own record ───────────────────────────────────── */
.log__years { display: grid; gap: 48px; }
.log__year { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; align-items: start; }
.log__y { font-size: clamp(32px, 3.4vw, 48px); font-weight: 300; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; position: sticky; top: calc(var(--bar-h) + 24px); }
.log__list { list-style: none; margin: 0; padding: 0; }
.log__list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-top: 1px solid var(--rule); }
.log__list li:last-child { border-bottom: 1px solid var(--rule); }
.log__list time { font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.log__list p { margin: 0; font-size: 17px; line-height: 1.75; }
@media (max-width: 760px) {
  .log__year { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .log__y { position: static; font-size: 30px; }
  .log__list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ── everything else ───────────────────────────────────────────── */
.more { background: var(--white); }
.more__list { list-style: none; margin: 0; padding: 0; }
.more__list > li { border-top: 1px solid var(--rule); }
.more__list > li:last-child { border-bottom: 1px solid var(--rule); }
.more summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) 24px; gap: 24px; align-items: center; padding: 22px 0; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; justify-self: end; width: 9px; height: 9px; border-inline-end: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg) translateY(-3px); transition: transform 0.25s var(--ease); }
.more details[open] summary::after { transform: rotate(-135deg); }
.more h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.4; font-weight: 600; }
.more__who { font-size: 15px; color: var(--ink-2); }
.more details p { color: var(--ink-body); max-width: 62ch; padding-bottom: 22px; margin: 0; }
@media (max-width: 820px) { .more summary { grid-template-columns: minmax(0, 1fr) 24px; row-gap: 2px; } .more__who { grid-row: 2; } .more summary::after { grid-row: 1 / span 2; grid-column: 2; } }

/* ── inside ────────────────────────────────────────────────────── */
.inside__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.inside__grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
@media (max-width: 820px) { .inside__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── your first step ───────────────────────────────────────────── */
.visit { background: var(--white); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.visit__arch { display: block; background: var(--plate-bg); border-radius: 8px; overflow: hidden; }
.visit__arch img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.visit__picked { color: var(--teal); font-size: 16px; font-weight: 500; margin: 12px 0 0; min-height: 1.5em; }
.way { display: grid; gap: 2px; text-decoration: none; padding: 18px 0; border-top: 1px solid var(--rule); transition: color 0.2s; }
.way:hover b { color: var(--teal); }
.way b { font-size: 22px; font-weight: 600; line-height: 1.4; }
.way span { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.pay { color: var(--ink-2); font-size: 15px; line-height: 1.75; padding-top: 18px; border-top: 1px solid var(--rule); margin: 0; }
.visit__facts > div { padding: 18px 0; border-top: 1px solid var(--rule); }
.visit__facts > div:last-child { border-bottom: 1px solid var(--rule); }
.visit__facts dt { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.visit__facts address { font-style: normal; font-size: 17px; line-height: 1.7; margin-bottom: 8px; }
.visit__facts p { font-size: 16px; color: var(--ink-body); margin-bottom: 8px; }
.visit__hours { font-size: 16px; line-height: 1.7; }
.visit__hours-line { margin: 0; }
.visit__hours-line--off { color: var(--ink-2); }
@media (max-width: 1080px) { .visit__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .visit__start { grid-column: 1 / -1; max-width: 420px; } }
@media (max-width: 680px) { .visit__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ── a doctor's page ───────────────────────────────────────────── */
.dr__hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: calc(var(--bar-h) + 56px) var(--frame) 72px; }
.dr__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--well); }
.dr__back { display: inline-block; color: var(--ink-2); font-size: 15px; margin-bottom: 20px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--rule-strong); }
.dr__name { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.25; margin-bottom: 8px; }
html[lang="en"] .dr__name { line-height: 1.05; letter-spacing: -0.02em; }
.dr__role { font-size: 19px; color: var(--ink-2); margin: 0 0 12px; }
.dr__line { color: var(--teal); font-weight: 500; }
.dr__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dr__quote { margin: 0; padding: 72px var(--frame); background: var(--white); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.6; font-weight: 400; color: var(--ink); }
html[lang="en"] .dr__quote { line-height: 1.35; }
.dr__quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 15px; color: var(--ink-2); text-align: start; }
.dr__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); padding: 80px var(--frame); }
.dr__bio p { font-size: 18px; line-height: 1.9; max-width: 60ch; color: var(--ink-body); }
html[lang="en"] .dr__bio p { line-height: 1.65; }
.dr__facts > div { padding: 16px 0; border-top: 1px solid var(--rule); }
.dr__facts > div:last-child { border-bottom: 1px solid var(--rule); }
.dr__facts dt { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.dr__facts ul { margin: 0; padding-inline-start: 1.1em; }
.dr__facts li { font-size: 16px; line-height: 1.7; }
.dr__work { padding: 0 var(--frame) 80px; }
.dr__cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.dr__cases figure { margin: 0; }
.dr__cases figcaption { font-size: 15px; color: var(--ink-2); margin-top: 10px; }
.dr__shot { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 6px; }
.dr__nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px var(--frame); border-top: 1px solid var(--rule); }
.dr__nav a { text-decoration: none; font-size: 20px; font-weight: 600; display: grid; }
.dr__nav small { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.dr__nav span { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .dr__hero { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--bar-h) + 24px); }
  .dr__photo { max-width: 320px; }
  .dr__body { grid-template-columns: minmax(0, 1fr); padding-block: 56px; }
  .dr__quote { padding-block: 48px; }
}

/* ── footer, dock, WhatsApp ────────────────────────────────────── */
.foot { background: var(--well); color: var(--ink); padding: 64px var(--frame) calc(40px + 64px); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; padding-bottom: 32px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.foot__id p { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; }
.foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.foot__links dt { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.foot__links dd { font-size: 16px; line-height: 1.9; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__legal { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); max-width: 90ch; margin: 0 0 8px; }
@media (max-width: 720px) { .foot__grid { grid-template-columns: minmax(0, 1fr); } }
.wa-float {
  position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 29;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--wa); color: var(--white); text-decoration: none;
  box-shadow: 0 2px 10px rgba(15, 30, 39, 0.18); transform: translateY(160%); transition: transform 0.45s var(--ease);
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float.is-on { transform: none; }
.dock { display: none; }
@media (max-width: 820px) {
  .wa-float { display: none; }
  .dock {
    display: grid; grid-template-columns: 1fr 1.3fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 30;
    background: var(--white); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%); transition: transform 0.45s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
  .dock__main { background: var(--ink); color: var(--white) !important; }
  .dock svg { width: 20px; height: 20px; }
  .dock__wa { color: var(--wa) !important; }
}
.word { display: inline-block; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
/* A button's words wrap on a small phone rather than pushing the whole page sideways. */
@media (max-width: 820px), (max-height: 520px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
}
@media (max-width: 820px) and (orientation: portrait) {
  .has3d .deep__still.is-plate { left: 50%; top: calc(var(--plate) / 2); width: calc(var(--plate) * 1.2); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .has3d .deep__still { left: 26%; width: calc(var(--svh) * 124); }
  [dir="ltr"] .has3d .deep__still { left: 74%; }
  .has3d .deep__still.is-plate { left: 25%; width: calc(var(--svh) * 100); }
  [dir="ltr"] .has3d .deep__still.is-plate { left: 75%; }
}
