/* Cusp Dental sample site (made up). Layout and colour only: everything that moves is a spring
   in cusp.js (tools/check-site.mjs fails this file on any CSS motion).
   Light blue and white: white pages, sky-blue fields, one deep blue for words and one bright blue to act on. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/sites/cusp-dental/fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --white: #ffffff;
  --mist: #f4f9fe;
  --sky: #e6f2fd;
  --sky-2: #d3e8fb;
  --sky-3: #b9daf8;
  --blue: #1f6fe0;
  --blue-deep: #1558bd;
  --ink: #0c2340;
  --ink-2: #44607f;
  --line: #d5e4f3;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --m: clamp(20px, 4.4vw, 72px);
  --gap: clamp(72px, 9vw, 150px);
  --r: 28px;
  --r-s: 16px;
  --step-small: 0.9375rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.3rem, 1.3rem + 3.6vw, 4.6rem);
  --shadow: 0 1px 2px rgba(12, 35, 64, 0.04), 0 12px 32px -12px rgba(21, 88, 189, 0.18);
  --shadow-lift: 0 2px 4px rgba(12, 35, 64, 0.05), 0 30px 60px -24px rgba(21, 88, 189, 0.32);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 var(--step-body)/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, table { margin: 0; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.032em; word-spacing: 0.06em; line-height: 1.04; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
main a:not(.btn):not(.plan-go):not(.tel):not(.ring-num):not(.big-tel):not(.door) { color: var(--blue-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 8px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.w-52 { max-width: 52ch; } .w-58 { max-width: 58ch; }

/* ---------- The sample strip and the bar ---------- */
.strip { margin: 0; padding: 9px var(--m); background: var(--ink); color: #dbe9f8; font-size: 0.8125rem; line-height: 1.4; text-align: center; }
.strip strong { color: #fff; font-weight: 600; }
.strip a { color: #fff; }
.strip-pause { margin-left: 10px; padding: 3px 10px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; background: none; color: #fff; font: inherit; cursor: pointer; }
.bar { position: sticky; top: 10px; z-index: 40; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); margin: 10px var(--m) 0; padding: 10px 10px 10px 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 0 0 1px rgba(12, 35, 64, 0.06), var(--shadow); }
.bar-mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.bar-mark .mk { width: 22px; height: 22px; background: var(--blue); -webkit-mask: url("/sites/cusp-dental/img/cusp.svg") center / contain no-repeat; mask: url("/sites/cusp-dental/img/cusp.svg") center / contain no-repeat; }
.bar-links { display: flex; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.bar-links a, .bar-call { font-size: var(--step-small); font-weight: 500; text-decoration: none; color: var(--ink); padding: 8px 2px; white-space: nowrap; }
.bar-links a:hover, .bar-call:hover { color: var(--blue-deep); }
.bar-links a[aria-current="page"] { color: var(--blue-deep); box-shadow: 0 2px 0 var(--blue); }
.bar-call { font-variant-numeric: tabular-nums; }
.bar-menu { display: none; position: relative; margin-left: auto; }
.bar-menu summary { list-style: none; padding: 10px 16px; border-radius: 999px; background: var(--sky); font-weight: 650; font-size: var(--step-small); cursor: pointer; }
.bar-menu summary::-webkit-details-marker { display: none; }
.bar-menu nav { position: absolute; right: 0; top: calc(100% + 14px); display: grid; min-width: 250px; padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(12, 35, 64, 0.06), var(--shadow-lift); }
.bar-menu nav a { padding: 13px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.bar-menu nav a:hover { background: var(--mist); }
@media (max-width: 980px) {
  .bar-links, .bar-call { display: none; }
  .bar-menu { display: block; }
  .bar .btn.sm { order: 3; }
  .bar { padding-left: 18px; }
}
@media (max-width: 420px) { .bar .btn.sm { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 650 1.0625rem/1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 24px -10px rgba(31, 111, 224, 0.7); }
.btn:hover { background: var(--blue-deep); }
.btn.sm { min-height: 42px; padding: 0 20px; font-size: var(--step-small); box-shadow: none; }
.btn.light { background: #fff; color: var(--blue-deep); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.btn.light:hover { background: var(--mist); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; }
.link-arrow::after { content: ""; width: 0.6em; height: 0.6em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; rotate: 45deg; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Pictures: rounded panes, and an arch for people (a crown, seen from the side) ---------- */
.pic { position: relative; overflow: hidden; border-radius: var(--r); background: var(--sky); isolation: isolate; }
.pic img, .pic video { width: 100%; height: 100%; object-fit: cover; }
.pic.arch { border-radius: 50% 50% var(--r) var(--r) / 34% 34% var(--r) var(--r); }

/* ---------- Home: the opening ---------- */
.hero { position: relative; margin-top: -78px; padding: clamp(118px, 17vh, 176px) var(--m) 0; background: linear-gradient(180deg, #ffffff 0%, var(--sky) 46%, var(--sky-2) 100%); overflow: clip; }
.hero-glow { position: absolute; left: 0; top: 0; width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0)); pointer-events: none; opacity: 0; }
.hero-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 48px); max-width: 1480px; margin: 0 auto; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3rem, min(7.5vw, 14.2vh), 8.4rem); line-height: 0.96; letter-spacing: -0.045em; font-weight: 700; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--blue); }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: clamp(14px, 2.4vh, 24px); font-size: var(--step-small); color: var(--ink-2); }
.hero-kicker strong { color: var(--ink); }
.hero-kicker .stars .mk { width: 16px; height: 16px; }
.open-now { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.open-now[hidden] { display: none; }
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa9bb; }
.open-now[data-open]::before { background: #12a150; box-shadow: 0 0 0 4px rgba(18, 161, 80, 0.16); }
.hero-note { margin-top: 16px; font-size: var(--step-small); color: var(--ink-2); }
.hero-halo { position: absolute; inset: -4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 46%, rgba(255, 255, 255, 0) 47%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.5) 63%, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, 0) 82%, rgba(255, 255, 255, 0.4) 83%, rgba(255, 255, 255, 0) 84%); }
.hero-sub { max-width: 44ch; margin-top: clamp(18px, 3vh, 30px); font-size: var(--step-lead); line-height: 1.4; color: var(--ink-2); }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(20px, 3.4vh, 34px); }
.tel { font-weight: 650; font-variant-numeric: tabular-nums; text-decoration: none; border-bottom: 2px solid var(--sky-3); padding-bottom: 2px; }
.tel:hover { border-color: var(--blue); }
.hero-tooth { position: relative; justify-self: center; width: min(100%, 66vh, 660px); aspect-ratio: 1; display: none; }
.film .hero-tooth { display: block; }
@media (min-width: 901px) { .film .hero-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.hero-canvas { position: absolute; inset: -8%; width: 116%; height: 116%; touch-action: pan-y; cursor: grab; }
.hero-canvas[data-held] { cursor: grabbing; }
.hero-shadow { position: absolute; left: 22%; right: 22%; bottom: 1%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(21, 88, 189, 0.3), rgba(21, 88, 189, 0)); }
.hero-hint { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); font-size: 0.8125rem; color: var(--ink-2); white-space: nowrap; box-shadow: 0 0 0 1px rgba(12, 35, 64, 0.05); }
.hero-facts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1480px; margin: clamp(28px, 5vh, 56px) auto 0; }
.hero-facts li { display: flex; align-items: baseline; gap: 12px; padding: 16px 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.72); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9); color: var(--ink-2); font-size: var(--step-small); line-height: 1.35; }
.hero-facts strong { font-size: 1.6rem; font-weight: 650; letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.hero-film { position: relative; max-width: 1480px; margin: clamp(20px, 3vh, 32px) auto 0; aspect-ratio: 16 / 8.2; border-radius: clamp(22px, 3vw, 44px) clamp(22px, 3vw, 44px) 0 0; overflow: hidden; background: var(--sky-3); transform-origin: 50% 100%; }
.hero-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.7rem, 13.2vw, 6rem); }
  .hero-tooth { width: min(78vw, 400px); margin-top: 6px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-film { aspect-ratio: 4 / 3.4; }
}

/* ---------- Sections ---------- */
.sec { padding: var(--gap) var(--m); }
.sec > *, .sec .grid { max-width: 1360px; margin-left: auto; margin-right: auto; }
.f1, .f3 { background: var(--white); }
.f2, .f4 { background: var(--mist); }
.f5 { background: var(--sky); }
.sec-h { font-size: var(--step-head); }
.sec-lede { margin-top: 30px; max-width: 46ch; font-size: var(--step-lead); line-height: 1.4; color: var(--ink-2); }
.mask-wrap { display: block; overflow: clip; padding: 0.08em 0 0.22em; margin: -0.08em 0 -0.08em; }
.mask-in { display: block; }

/* ---------- Home: the tooth builds itself (flat list without the film) ---------- */
.inside { padding: var(--gap) var(--m); background: var(--white); }
.inside-canvas { display: none; }
.inside-rail { display: none; }
.inside-title { font-size: var(--step-head); max-width: 12ch; }
.inside-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 48px; }
.inside-step { padding: 26px; border-radius: var(--r); background: var(--mist); }
.inside-step h3 { font-size: 1.5rem; }
.inside-step p { margin-top: 10px; color: var(--ink-2); }
.film .inside { height: 540svh; padding: 0; background: var(--white); }
.film .inside-stage { position: sticky; top: 0; height: 100svh; overflow: clip; background: radial-gradient(60% 62% at 68% 50%, var(--sky-2) 0%, var(--sky) 42%, #fff 100%); }
.film .inside-canvas { display: block; position: absolute; top: 0; right: 0; width: 64%; height: 100%; }
.film .inside-copy { position: absolute; left: var(--m); top: clamp(110px, 17svh, 170px); bottom: clamp(48px, 9svh, 96px); width: min(36vw, 500px); display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.film .inside-steps { display: block; position: relative; margin: 0; min-height: 250px; }
.film .inside-step { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px rgba(12, 35, 64, 0.05), var(--shadow-lift); }
.film .inside-step h3 { font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.6rem); }
.film .inside-step p { font-size: var(--step-body); }
.film .inside-rail { display: flex; flex-direction: column; gap: 10px; position: absolute; right: clamp(14px, 2.4vw, 36px); top: 50%; translate: 0 -50%; }
.inside-rail span { width: 6px; height: 26px; border-radius: 6px; background: rgba(21, 88, 189, 0.18); transform-origin: 50% 50%; }
.inside-rail span[data-on] { background: var(--blue); }
@media (max-width: 900px) {
  .film .inside { height: 500svh; }
  .film .inside-canvas { width: 100%; top: 8svh; height: 58svh; }
  .film .inside-copy { left: var(--m); right: var(--m); width: auto; top: 84px; bottom: 18px; }
  .film .inside-title { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .film .inside-steps { min-height: 0; }
  .film .inside-step { padding: 18px 20px 20px; border-radius: 22px; }
  .film .inside-step h3 { font-size: 1.5rem; }
  .film .inside-step p { margin-top: 6px; font-size: var(--step-small); }
  .film .inside-rail { right: 8px; }
}

/* ---------- Home: what's wrong, and what it costs ---------- */
.finder .grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.choices { margin: 36px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choices legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.choice { position: relative; display: inline-flex; align-items: center; min-height: 50px; padding: 10px 20px; border-radius: 26px; line-height: 1.25; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 500; cursor: pointer; }
.choice .mk { display: none; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.choice:hover { box-shadow: 0 0 0 1px var(--sky-3), var(--shadow); }
.choice:has(input:checked) { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 111, 224, 0.7); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.finder-a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; padding: clamp(20px, 3vw, 40px); border-radius: clamp(26px, 3vw, 44px); background: linear-gradient(160deg, #fff 0%, var(--sky) 100%); box-shadow: 0 0 0 1px rgba(12, 35, 64, 0.05), var(--shadow-lift); }
.answer h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.fee { margin-top: 14px; font-size: clamp(3rem, 2rem + 3.4vw, 5.2rem); font-weight: 650; letter-spacing: -0.055em; line-height: 1; color: var(--blue-deep); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--step-small); }
.facts dt { color: var(--ink-2); }
.facts dd { font-weight: 650; }
.note { margin-top: 16px; font-size: var(--step-small); color: var(--ink-2); }
.answer .btn { margin-top: 24px; }
@media (max-width: 980px) { .finder .grid { grid-template-columns: 1fr; } }

/* The flat tooth (no WebGL2, reduced motion, data saver) */
.tooth { width: 100%; max-width: 380px; justify-self: center; overflow: visible; }
.tooth .bone { fill: #ece6da; } .tooth .gum { fill: #f2a9b4; } .tooth .roots { fill: #f6efe0; }
.tooth .dentine { fill: #f6efe0; } .tooth .enamel { fill: #ffffff; } .tooth .pulp { fill: #ee7887; }
.tooth .edge { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.tooth-body { transform-box: view-box; transform-origin: 150px 300px; }
.tooth .hl { fill: var(--blue); opacity: 0; }
.tooth .extra { opacity: 0; }
.tooth .tartar { fill: #cdb873; } .tooth .crack { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.tooth .fill { fill: #e3efff; } .tooth .cap { fill: #ffffff; } .tooth .post { fill: #aeb8c6; } .tooth .thread { fill: none; stroke: #6f7b8c; stroke-width: 3; }
.tooth .shine { fill: #ffffff; }
.tooth3d { display: block; width: 100%; max-width: 480px; aspect-ratio: 5 / 6; justify-self: center; touch-action: pan-y; cursor: grab; }
.tooth3d[data-held] { cursor: grabbing; }
.tooth3d:focus-visible, .hero-canvas:focus-visible { outline: 3px solid var(--blue); outline-offset: -6px; border-radius: 30px; }
.finder-a.is-3d { position: relative; }
.is-3d > .tooth { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
@media (min-width: 641px) { .finder-a { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); } .finder-a.is-3d { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
@media (max-width: 640px) { .finder-a .tooth3d { max-width: 300px; } .tooth { max-width: 240px; } }

/* ---------- Home: three visits, three prices (each card tilts under the pointer) ---------- */
.plans .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: 1400px; }
.plans-h { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: end; margin-bottom: 30px; }
.plans-h p { color: var(--ink-2); max-width: 40ch; justify-self: end; }
.plan { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 2.6vw, 38px); border-radius: clamp(26px, 2.6vw, 38px); background: var(--mist); box-shadow: 0 0 0 1px rgba(12, 35, 64, 0.05); overflow: hidden; transform-style: preserve-3d; }
.plan-2 { background: var(--blue); color: #fff; box-shadow: var(--shadow-lift); }
.plan-3 { background: var(--sky-2); }
.plan .sheen { position: absolute; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); opacity: 0; pointer-events: none; }
.plan h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.plan .price { margin-top: 10px; font-size: clamp(3.6rem, 2.4rem + 4vw, 6.4rem); font-weight: 650; letter-spacing: -0.06em; line-height: 0.95; }
.plan ul { margin-top: 22px; display: grid; gap: 9px; font-size: var(--step-small); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.plan li .mk { width: 7px; height: 7px; margin-top: 0.55em; border-radius: 50%; background: var(--blue); }
.plan-2 li .mk { background: #fff; }
.plan-go { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; background: #fff; color: var(--blue-deep); font-weight: 650; text-decoration: none; box-shadow: 0 0 0 1px var(--line); }
.plan-2 .plan-go { box-shadow: none; }
.plan-go:hover { background: var(--ink); color: #fff; }
@media (max-width: 900px) { .plans .grid { grid-template-columns: 1fr; } .plans-h { grid-template-columns: 1fr; } .plans-h p { justify-self: start; } }

/* ---------- Home: small things, and the pictures that pass with the scroll ---------- */
.points-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin-top: 46px; }
.points-list li { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.points-list h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1875rem; letter-spacing: -0.02em; }
.points-list .mk { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.points-list p { margin-top: 8px; color: var(--ink-2); font-size: var(--step-small); }
@media (max-width: 900px) { .points-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .points-list { grid-template-columns: 1fr; } }
.ring-wrap { padding-top: var(--gap); }
.gallery { padding: 0 0 var(--gap); background: var(--mist); }
.gal-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; max-width: calc(1360px + 2 * var(--m)); margin: 0 auto; padding: 0 var(--m) 34px; }
.gal-nav { display: flex; align-items: center; gap: 12px; }
.gal-nav[hidden] { display: none; }
.gal-btn { display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.gal-btn:hover { background: var(--blue); color: #fff; }
.gal-btn:disabled { opacity: 0.35; cursor: default; background: #fff; color: var(--ink); }
.gal-btn span { width: 11px; height: 11px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; rotate: 45deg; margin-right: 4px; }
.gal-btn[data-dir="-1"] span { rotate: -135deg; margin: 0 0 0 4px; }
.gal-count { min-width: 4.2em; text-align: center; font-size: var(--step-small); color: var(--ink-2); }
.reel { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-left: var(--m); cursor: grab; }
.reel::-webkit-scrollbar { display: none; }
.reel[data-held] { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.reel:focus-visible { outline-offset: -3px; }
.reel-track { display: flex; gap: 18px; padding: 4px var(--m); width: max-content; }
.reel-track figure { width: clamp(250px, 31vw, 480px); flex: none; scroll-snap-align: start; }
.reel-track .pic { aspect-ratio: 4 / 4.6; }
.reel-track img { pointer-events: none; }
.reel-track figcaption { margin-top: 14px; font-weight: 500; color: var(--ink); }

/* ---------- Home: straighter teeth, in 3D ---------- */
.straight .grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.straight-copy > p:last-child { margin-top: 30px; }
.straight-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.straight-facts div { padding: 14px 20px; border-radius: 18px; background: var(--mist); }
.straight-facts dt { font-size: 0.8125rem; color: var(--ink-2); }
.straight-facts dd { margin-top: 2px; font-weight: 650; letter-spacing: -0.02em; }
.straight-facts div:first-child { background: var(--blue); color: #fff; }
.straight-facts div:first-child dt { color: #dbe9ff; }
.straight-stage { position: relative; border-radius: clamp(26px, 3vw, 44px); background: radial-gradient(80% 70% at 50% 42%, #fff 0%, var(--sky) 62%, var(--sky-2) 100%); box-shadow: 0 0 0 1px rgba(12, 35, 64, 0.05), var(--shadow); overflow: hidden; }
.straight-canvas { display: none; width: 100%; aspect-ratio: 16 / 11; touch-action: pan-y; cursor: grab; }
.straight-canvas[data-held] { cursor: grabbing; }
.straight-flat { aspect-ratio: 16 / 11; border-radius: 0; }
.straight-stage.is-3d .straight-canvas { display: block; }
.straight-stage.is-3d .straight-flat { display: none; }
.straight-ctl { padding: 4px clamp(20px, 3vw, 40px) clamp(20px, 3vw, 34px); }
.straight-ctl[hidden] { display: none; }
.straight-ctl label { display: block; font-weight: 650; letter-spacing: -0.02em; font-size: 1.25rem; }
.straight-ctl input { width: 100%; height: 34px; margin: 8px 0 4px; accent-color: var(--blue); cursor: pointer; }
.straight-ctl p { font-size: 0.8125rem; color: var(--ink-2); }
@media (max-width: 980px) { .straight .grid { grid-template-columns: 1fr; } .straight-canvas, .straight-flat { aspect-ratio: 4 / 3.3; } }

/* ---------- Home: your first visit ---------- */
.steps-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.steps-intro p { color: var(--ink-2); max-width: 40ch; justify-self: end; }
.acc { display: flex; gap: 10px; height: 560px; margin-top: 54px; }
.acc-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--r); background: var(--tone); color: var(--ink); }
.acc-panel:nth-child(1) { --tone: var(--sky); }
.acc-panel:nth-child(2) { --tone: var(--sky-2); }
.acc-panel:nth-child(3) { --tone: var(--sky-3); }
.acc-panel:nth-child(4) { --tone: #9ccbf5; }
.acc-panel:nth-child(5) { --tone: #7fbaf1; }
.acc-panel[data-open] { flex-grow: 8; }
.acc-tab { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 26px 0; border: 0; background: none; color: inherit; font: 650 1.25rem/1 var(--font); letter-spacing: -0.02em; cursor: pointer; }
.acc-tab span { writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap; }
.acc-panel[data-open] .acc-tab { visibility: hidden; }
.acc-body { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 28px; padding: 14px 14px 14px 36px; visibility: hidden; }
.acc-panel[data-open] .acc-body { visibility: visible; }
.acc-body .acc-text { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 22px 0; }
.acc-body h3 { font-size: var(--step-head); }
.acc-body p { max-width: 34ch; font-size: var(--step-lead); line-height: 1.4; }
.acc-body img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
@media (max-width: 900px) {
  .steps-intro { grid-template-columns: 1fr; } .steps-intro p { justify-self: start; }
  .acc { flex-direction: column; height: auto; margin-top: 36px; }
  .acc-panel { flex: none; border-radius: 22px; }
  .acc-tab { position: relative; height: 62px; padding: 0 22px; align-items: center; justify-content: flex-start; font-size: 1.125rem; width: 100%; }
  .acc-tab span { writing-mode: horizontal-tb; rotate: none; }
  .acc-panel[data-open] .acc-tab { display: none; }
  .acc-body { position: relative; grid-template-columns: 1fr; padding: 22px; display: none; gap: 18px; }
  .acc-panel[data-open] .acc-body { display: grid; }
  .acc-body .acc-text { padding: 0; gap: 12px; }
  .acc-body h3 { font-size: 1.9rem; }
  .acc-body img { aspect-ratio: 4 / 3; height: auto; }
}

/* ---------- Home: the two dentists ---------- */
.about { padding: var(--gap) var(--m); background: var(--white); }
.about-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: center; max-width: 1360px; margin: 0 auto; }
.about-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; perspective: 1200px; }
.about-pics .pic { aspect-ratio: 3 / 4.3; }
.about-pics .pic + .pic { margin-top: clamp(30px, 6vw, 90px); }
.about h2 { font-size: var(--step-head); }
.about-text { display: grid; gap: 26px; margin-top: 34px; }
.about-text h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.about-text p { margin-top: 8px; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 900px) { .about-panel { grid-template-columns: 1fr; } }

/* ---------- Home: one review ---------- */
.review .grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 100px); align-items: center; }
.review-pic { aspect-ratio: 1; max-width: 460px; }
.review blockquote p { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3.4rem); font-weight: 500; letter-spacing: -0.03em; word-spacing: 0.06em; line-height: 1.1; text-wrap: balance; }
.who { margin-top: 26px; color: var(--ink-2); font-size: var(--step-small); line-height: 1.9; }
.stars { display: inline-flex; gap: 4px; vertical-align: middle; }
.stars .mk { width: 18px; height: 18px; background: var(--blue); clip-path: polygon(50% 0, 61.8% 35.5%, 98% 35.5%, 68.5% 57.5%, 79.5% 92%, 50% 70.5%, 20.5% 92%, 31.5% 57.5%, 2% 35.5%, 38.2% 35.5%); }
.reviews.row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); }
.review-more { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 34px; padding-right: 0; }
@media (max-width: 900px) { .reviews.row { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .review .grid { grid-template-columns: 1fr; } .review-pic { max-width: 240px; } }

/* ---------- Home: the number ---------- */
.ring { margin: 0 var(--m); padding: clamp(56px, 8vw, 120px) clamp(20px, 4vw, 72px); border-radius: clamp(28px, 4vw, 56px); background: linear-gradient(150deg, #2b82f4 0%, var(--blue) 45%, var(--blue-deep) 100%); color: #fff; text-align: center; overflow: clip; }
.ring-h { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; }
.ring-num { display: block; margin-top: 14px; font-size: clamp(3rem, 12.6vw, 13rem); font-weight: 650; letter-spacing: -0.06em; line-height: 1.02; color: #fff; text-decoration: none; white-space: nowrap; }
.ring-num span { display: inline-block; }
.ring-note { max-width: 52ch; margin: 22px auto 0; color: #e3efff; }

/* ---------- Book ---------- */
.book-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); padding: clamp(24px, 4.5vw, 72px); border-radius: clamp(28px, 4vw, 56px); background: var(--sky); }
.book-left h2 { font-size: var(--step-head); }
.book-left p { margin-top: 20px; color: var(--ink-2); max-width: 40ch; }
.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.book-form input, .book-form select { width: 100%; min-height: 58px; padding: 0 20px; border: 0; border-radius: 18px; background: #fff; color: var(--ink); font: 400 1.0625rem/1.2 var(--font); box-shadow: 0 0 0 1px var(--line); appearance: none; -webkit-appearance: none; }
.book-form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 24px) 26px, calc(100% - 18px) 26px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.book-form input::placeholder { color: var(--ink-2); opacity: 1; }
.book-form input:focus-visible, .book-form select:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.book-form button { grid-column: 1 / -1; min-height: 58px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 650 1.0625rem/1 var(--font); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 24px -10px rgba(31, 111, 224, 0.7); }
.book-form button:hover { background: var(--blue-deep); }
.form-note { grid-column: 1 / -1; min-height: 1.5em; font-size: var(--step-small); color: var(--ink-2); }
.book-ticks { display: grid; gap: 10px; margin-top: 26px; font-weight: 500; }
.book-ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; }
.book-ticks li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M7.5 13.5l3.6 3.6 7.4-8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 900px) { .book-card { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .book-form { grid-template-columns: 1fr; } }

/* ---------- Inner pages: the opening ---------- */
.page-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-top: -78px; padding: clamp(140px, 20vh, 200px) max(var(--m), calc((100vw - 1360px) / 2)) clamp(48px, 7vw, 96px); background: linear-gradient(180deg, #fff 0%, var(--sky) 60%, var(--sky-2) 100%); }
.page-hero h1 { font-size: clamp(2.6rem, 1.3rem + 5.2vw, 6.6rem); letter-spacing: -0.045em; line-height: 0.98; font-weight: 700; }
.page-hero .hero-sub { max-width: 42ch; margin-top: 26px; }
.crumbs { display: flex; gap: 8px; margin-top: 30px; font-size: var(--step-small); color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--sky-3); }
.crumbs a { text-decoration: none; }
.crumbs a[aria-current] { color: var(--ink); }
.page-hero-pic { aspect-ratio: 4 / 3; box-shadow: var(--shadow-lift); }
@media (max-width: 900px) { .page-hero { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Treatments ---------- */
.tx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 90px); padding: var(--gap) max(var(--m), calc((100vw - 1360px) / 2)); background: var(--white); }
.tx-stage { position: sticky; top: 96px; align-self: start; display: grid; justify-items: center; gap: 12px; padding: clamp(16px, 2.4vw, 34px); border-radius: clamp(26px, 3vw, 44px); background: radial-gradient(80% 70% at 50% 40%, #fff 0%, var(--sky) 70%, var(--sky-2) 100%); box-shadow: 0 0 0 1px rgba(12, 35, 64, 0.05); }
.tx-stage p { max-width: 36ch; text-align: center; font-size: var(--step-small); color: var(--ink-2); min-height: 3.1em; }
.tx-stage .tooth { max-width: 400px; }
.tx-stage .tooth3d { cursor: default; max-width: 500px; }
.tx-list { display: grid; }
.tx-item { display: grid; gap: 16px; padding: clamp(36px, 5vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.tx-item:first-child { border-top: 0; padding-top: 0; }
.tx-item h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); }
.tx-item > p { color: var(--ink-2); max-width: 52ch; font-size: var(--step-lead); line-height: 1.45; }
.tx-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.tx-facts div { padding: 14px 20px; border-radius: 18px; background: var(--mist); min-width: 110px; }
.tx-facts dt { font-size: 0.8125rem; color: var(--ink-2); }
.tx-facts dd { margin-top: 2px; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }
.tx-facts div:first-child { background: var(--blue); color: #fff; }
.tx-facts div:first-child dt { color: #dbe9ff; }
.tx-pic { width: min(100%, 300px); aspect-ratio: 3 / 4; }
@media (max-width: 900px) {
  .tx { grid-template-columns: 1fr; }
  .tx-stage { top: 76px; z-index: 5; grid-template-columns: 96px 1fr; align-items: center; justify-items: start; padding: 10px 16px; border-radius: 22px; box-shadow: var(--shadow); }
  .tx-stage p { text-align: left; min-height: 0; }
  .tx-stage .tooth { max-width: 96px; }
  .tx-stage .tooth3d { width: 96px; }
}

/* ---------- Doors to the next pages ---------- */
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 max(var(--m), calc((100vw - 1360px) / 2)) var(--gap); background: var(--white); perspective: 1400px; }
.next a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 20px; align-items: stretch; min-height: 240px; padding: 14px 14px 14px clamp(22px, 3vw, 40px); border-radius: clamp(26px, 3vw, 40px); background: var(--sky); color: var(--ink); text-decoration: none; overflow: hidden; }
.next a + a { background: var(--sky-2); }
.door-text { display: flex; flex-direction: column; justify-content: space-between; padding: 16px 0; }
.door-text span { color: var(--ink-2); font-size: var(--step-small); }
.door-text strong { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.2rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1; }
.door-pic { display: block; overflow: hidden; border-radius: 22px; }
.door-pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .next { grid-template-columns: 1fr; } }

/* ---------- Fees ---------- */
.fees-wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 100px); }
.fees-side { position: sticky; top: 110px; align-self: start; }
.side-pic { aspect-ratio: 3 / 4; max-width: 340px; }
.fees-side p { margin-top: 20px; max-width: 34ch; color: var(--ink-2); }
.fee-group { padding: clamp(20px, 2.6vw, 34px); border-radius: var(--r); background: var(--mist); }
.fee-group + .fee-group { margin-top: 14px; }
.fee-group h2 { font-size: 1.5rem; letter-spacing: -0.03em; }
.fee-table { width: 100%; margin-top: 12px; border-collapse: collapse; }
.fee-table th, .fee-table td { padding: 15px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: baseline; font-weight: 500; }
.fee-table tr:first-child th, .fee-table tr:first-child td { border-top: 0; }
.fee-table small { display: block; margin-top: 2px; font-size: var(--step-small); font-weight: 400; color: var(--ink-2); }
.fee-table td { text-align: right; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--blue-deep); }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.help-grid > div { padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px rgba(12, 35, 64, 0.05); scroll-margin-top: 110px; }
.help-grid h3 { font-size: 1.375rem; letter-spacing: -0.03em; }
.help-grid p { margin-top: 10px; color: var(--ink-2); }
@media (max-width: 900px) { .fees-wrap { grid-template-columns: 1fr; } .fees-side { position: static; } .side-pic { max-width: 220px; } .help-grid { grid-template-columns: 1fr; } }

/* ---------- Questions ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 6vw, 100px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 1fr 22px; gap: 16px; align-items: center; padding: 22px 0; font-size: var(--step-lead); font-weight: 650; letter-spacing: -0.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mk { order: 2; width: 12px; height: 12px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); rotate: 45deg; justify-self: center; }
.faq details[open] summary .mk { rotate: 225deg; }
.faq details p { padding: 0 0 24px; max-width: 60ch; color: var(--ink-2); }
@media (max-width: 800px) { .faq { grid-template-columns: 1fr; } }

/* ---------- New patients ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 100px); align-items: center; }
.visit > div + .visit-pic { order: 2; }
.visit-pic { aspect-ratio: 4 / 4.6; }
.visit ol { display: grid; margin-top: 34px; counter-reset: step; }
.visit ol li { display: grid; grid-template-columns: 54px 1fr; gap: 2px 18px; padding: 20px 0; border-top: 1px solid var(--line); counter-increment: step; }
.visit ol .mk { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sky); color: var(--blue-deep); font-weight: 650; }
.visit ol .mk::before { content: counter(step); }
.visit ol h3 { font-size: 1.25rem; letter-spacing: -0.02em; align-self: end; }
.visit ol p { grid-column: 2; color: var(--ink-2); }
.urgent { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(28px, 5vw, 72px); border-radius: clamp(28px, 4vw, 56px); background: linear-gradient(150deg, #2b82f4 0%, var(--blue) 45%, var(--blue-deep) 100%); color: #fff; }
.urgent h2 { font-size: var(--step-head); }
.urgent ul { display: grid; gap: 12px; margin-top: 26px; }
.urgent li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.urgent li .mk { width: 7px; height: 7px; margin-top: 0.6em; border-radius: 50%; background: #fff; }
.urgent > div:last-child p { color: #e3efff; }
.big-tel { display: block; margin-top: 8px; font-size: clamp(2.2rem, 1.2rem + 4vw, 4.6rem); font-weight: 650; letter-spacing: -0.05em; line-height: 1; color: #fff; text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) { .visit, .urgent { grid-template-columns: 1fr; } .visit > div + .visit-pic { order: 0; } .visit-pic { max-width: 420px; } }

/* ---------- The practice ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 44px); margin-top: 46px; perspective: 1400px; }
.member { padding: 14px 14px 30px; border-radius: clamp(26px, 3vw, 44px); background: var(--mist); box-shadow: 0 0 0 1px rgba(12, 35, 64, 0.05); }
.member-pic { aspect-ratio: 4 / 4.4; border-radius: clamp(18px, 2.4vw, 32px); }
.member h3 { margin: 24px 16px 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.member .role { margin: 6px 16px 0; color: var(--blue-deep); font-weight: 650; font-size: var(--step-small); }
.member p:last-child { margin: 12px 16px 0; color: var(--ink-2); max-width: 46ch; }
.team-more { margin-top: 34px; color: var(--ink-2); }
.sec > p, .sec > p.w-58 { max-width: 1360px; padding-right: max(0px, calc(100% - 66ch)); }
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 100px); }
.hours table { width: 100%; margin-top: 28px; border-collapse: collapse; }
.hours th, .hours td { padding: 15px 14px; border-top: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hours tr[data-today] th, .hours tr[data-today] td { background: var(--blue); color: #fff; border-color: var(--blue); }
.hours tr[data-today] th { border-radius: 14px 0 0 14px; } .hours tr[data-today] td { border-radius: 0 14px 14px 0; }
.hours tr[data-today] th::after { content: " · today"; font-weight: 400; }
.here-pic { margin-top: 26px; aspect-ratio: 4 / 3; }
.listing { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 100px); align-items: start; }
.score { margin-top: 10px; font-size: clamp(5rem, 3rem + 9vw, 11rem); font-weight: 650; letter-spacing: -0.07em; line-height: 0.95; color: var(--blue-deep); }
.listing > div:first-child p:not(.score) { color: var(--ink-2); max-width: 36ch; }
.reviews { display: grid; gap: 14px; }
.reviews figure { padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px rgba(12, 35, 64, 0.04), var(--shadow); }
.reviews blockquote p { margin-top: 14px; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; }
.reviews figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--ink-2); }
@media (max-width: 900px) { .team, .hours, .listing { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { margin-top: var(--gap); padding: clamp(48px, 6vw, 96px) var(--m) 34px; background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 100%); color: var(--ink); overflow: clip; }
.foot-mark { display: flex; max-width: 1360px; margin: 0 auto; font-size: clamp(5rem, 25vw, 26rem); font-weight: 600; letter-spacing: -0.07em; line-height: 0.8; color: #fff; user-select: none; }
.foot-mark span { display: block; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 28px; max-width: 1360px; margin: clamp(36px, 5vw, 72px) auto 0; }
.foot-cols h2 { font-size: var(--step-small); font-weight: 650; letter-spacing: 0; color: var(--ink-2); margin-bottom: 10px; }
.foot-cols nav a { display: block; padding: 5px 0; text-decoration: none; font-weight: 500; }
.foot-cols nav a:hover { color: var(--blue-deep); }
.foot-contact p + p { margin-top: 12px; }
.foot-contact { font-size: var(--step-small); }
.foot-credits, .foot-legal { max-width: 1360px; margin: 34px auto 0; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(12, 35, 64, 0.12); }
.foot-legal strong { color: var(--ink); }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-contact { grid-column: 1 / -1; } }

/* ---------- Phones: the two things people came to do stay in reach ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 45; display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 0 0 1px rgba(12, 35, 64, 0.08), var(--shadow-lift); }
  .dock .btn { min-height: 50px; padding: 0 12px; }
  .dock .btn.light { box-shadow: 0 0 0 1px var(--line); }
  .foot { padding-bottom: 104px; }
  .toast { bottom: 92px; }
}

/* ---------- The sample's own notices ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; translate: -50% 0; max-width: min(92vw, 520px); padding: 14px 20px; border-radius: 18px; background: var(--ink); color: #fff; font-size: var(--step-small); line-height: 1.4; box-shadow: var(--shadow-lift); }
.toast[hidden] { display: none; }

/* ---------- Motion starting points (only once cusp.js runs; see boot.js) ---------- */
.moving [data-rise] { opacity: 0; translate: 0 26px; }
.moving.calm [data-rise] { opacity: 1; translate: none; }
.js.intro .hero-copy > *, .js.intro .hero-facts li { opacity: 0; }
.js.intro .hero-film { opacity: 0; }
.calm .hero-copy > *, .calm .hero-facts li, .calm .hero-film { opacity: 1; }

@media print {
  .strip, .bar, .dock, .toast, .foot-mark, .hero-tooth, .inside-canvas, .gal-nav { display: none; }
  .moving [data-rise] { opacity: 1; translate: none; }
}

/* ---------- Accent: coral (2026-11-11) ----------
   Blue and white stay the practice's colours and blue stays the colour to act on.
   Coral is the accent: the stars, a marker under where the practice is, the small
   list dots and the fee you are looking at. Coral words use --coral-deep (AA on white). */
:root { --coral: #ff7a59; --coral-deep: #b93f22; --coral-soft: #ffe6de; }
::selection { background: rgba(255, 122, 89, 0.3); }
.stars .mk { background: var(--coral); }
.hero h1 span + span { width: fit-content; background: linear-gradient(var(--coral), var(--coral)) 0 94% / 100% 0.08em no-repeat; }
.plan li .mk, .points-list .mk { background: var(--coral); }
.plan-2 li .mk { background: #fff; }
.fee { color: var(--coral-deep); }
.foot { box-shadow: inset 0 4px 0 var(--coral); }

/* ---------- 2026-11-14: frosted bar, next free times, shorter phone page ---------- */
/* Solid, not blurred: a blur behind a bar that stays on screen is redrawn on every scrolling frame. */
.bar { background: rgba(255, 255, 255, 0.95); }
.hero-facts li { background: rgba(255, 255, 255, 0.8); }
.slots { margin-top: clamp(20px, 3.2vh, 30px); }
.slots-h { font-size: var(--step-small); font-weight: 650; color: var(--ink); }
.slots-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.slot { display: inline-flex; flex-direction: column; justify-content: center; min-width: 118px; min-height: 60px; padding: 8px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.78); box-shadow: 0 0 0 1px var(--line), var(--shadow); color: var(--ink); text-decoration: none; line-height: 1.2; }
.slot span { font-size: 0.8125rem; color: var(--ink-2); }
.slot strong { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.slot:hover { background: var(--blue); color: #fff; box-shadow: 0 12px 26px -12px rgba(31, 111, 224, 0.8); }
.slot:hover span { color: #dbe9ff; }
.slots-note { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); }
.slots + .hero-note { margin-top: 10px; }
.points-list.is-short li:nth-child(n+5) { display: none; }
.points-more { margin-top: 22px; }
@media (max-width: 900px) {
  .film .inside { height: 400svh; }
  .slot { flex: 1 1 0; min-width: 0; padding: 8px 14px; }
}
/* The row's space is held from the first paint, so the opening doesn't jump when the times land. */
.js .slots[hidden] { display: block; visibility: hidden; }
.js .slots-row { min-height: 60px; }

/* ---------- Tap targets: 44px at least, wherever a thumb goes ---------- */
.strip-pause { position: relative; }
.strip-pause::after { content: ""; position: absolute; inset: -10px -6px; }
.bar-mark { min-height: 44px; }
.bar-menu summary { display: flex; align-items: center; min-height: 44px; }
.btn.sm { min-height: 44px; }
.tel, .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }
.straight-ctl input { height: 44px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs { align-items: center; }
.big-tel { min-height: 44px; }

/* ==========================================================================================
   Round 5 (2026-11-16): deeper, calmer, more editorial. References (docs/SITE-STANDARD.md):
   Calmoria and Ethnocare (landdding health and medical) for the split hero on a deep ground and
   the deep bands; Mindbloom for a patient's words set into the opening; Sofi for the product
   close-up. Porcelain and sky stay; a deep harbour blue gives the page depth; coral stays the
   one accent. Lighter headline weights read calmer and more expensive.
   ========================================================================================== */
:root { --deep: #0b2236; --deep-2: #12304a; --deep-text: #eaf2fb; --deep-soft: #b3c8de; }
h1, h2, h3 { font-weight: 560; }
.sec-h { font-weight: 480; letter-spacing: -0.04em; }

/* The opening: a deep ground, the molar on a porcelain stage, a patient's words beside it */
.hero { background: radial-gradient(60% 55% at 82% 18%, #1d4a73 0%, rgba(29, 74, 115, 0) 62%), radial-gradient(40% 40% at 8% 90%, rgba(255, 122, 89, 0.12), transparent 70%), linear-gradient(180deg, #0a1f33 0%, var(--deep) 60%, #0d2a43 100%); color: var(--deep-text); }
.hero-glow { opacity: 0.35; }
.hero h1 { font-weight: 450; color: #fff; }
.hero h1 span + span { color: var(--coral); font-weight: 650; }
.hero-kicker, .hero-kicker strong { color: var(--deep-text); }
.hero-sub, .hero-note { color: var(--deep-soft); }
.hero .tel { color: #fff; border-bottom-color: rgba(255, 122, 89, 0.7); }
.hero .btn { background: #fff; color: var(--deep); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6); }
.hero .btn:hover { background: var(--sky); }
.slots-h { color: var(--deep-text); }
.hero .slot { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); color: #fff; }
.hero .slot span { color: var(--deep-soft); }
.hero .slot strong { color: #fff; }
.hero-halo { background: radial-gradient(closest-side, #ffffff 0%, #eef6fe 52%, rgba(214, 233, 251, 0.55) 66%, rgba(214, 233, 251, 0) 74%); }
.hero-shadow { opacity: 0.55; }
.hero-hint { background: rgba(255, 255, 255, 0.92); color: var(--deep); }
.hero-facts li { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); color: var(--deep-soft); }
.hero-facts strong { color: #fff; }
.hero-film { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.hero-quote { position: relative; z-index: 3; max-width: 360px; margin: 18px auto 0; padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.96); color: var(--ink); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55); }
.hero-quote blockquote { margin: 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.hero-quote figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); }
.hero-quote .st { color: var(--coral-deep); letter-spacing: 0.08em; }
@media (min-width: 1000px) {
  .hero-top { position: relative; }
  .hero-quote { position: absolute; right: 2%; bottom: 6%; margin: 0; }
}

/* Prices on the deep ground */
.plans { background: linear-gradient(180deg, var(--deep) 0%, #0e2a44 100%); color: var(--deep-text); }
.plans .sec-h { color: #fff; }
.plans-h p, .plans-h p a { color: var(--deep-soft); }
.plans .plan { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); color: var(--deep-text); }
.plans .plan-2 { background: #fff; color: var(--ink); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); }
.plans .plan-3 { background: rgba(255, 255, 255, 0.1); }
.plans .plan .sheen { opacity: 0.25; }

/* Toothache: the number on the deep ground, in coral */
.ring { background: radial-gradient(70% 90% at 50% 0%, #1d4a73 0%, rgba(29, 74, 115, 0) 70%), var(--deep); }
.ring-num { color: #fff; }
.ring-num span:nth-child(-n + 3) { color: var(--coral); }
.ring-note { color: var(--deep-soft); }

/* The footer signs off at the page's measure, not as a wall of letters (owner, 2026-11-15) */
.foot-mark { font-size: clamp(3.6rem, 2rem + 7vw, 9rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; padding-top: clamp(20px, 3vw, 36px); border-top: 1px solid rgba(12, 35, 64, 0.16); color: var(--ink); }
.foot-mark span:last-child::after { content: "."; color: var(--coral); }

/* Inner pages open on the same deep ground as the home page */
.page-hero { background: radial-gradient(55% 70% at 85% 10%, #1d4a73 0%, rgba(29, 74, 115, 0) 62%), linear-gradient(180deg, #0a1f33 0%, var(--deep) 100%); color: var(--deep-text); }
.page-hero h1 { font-weight: 450; color: #fff; }
.page-hero .hero-sub { color: var(--deep-soft); }
.page-hero .crumbs a, .page-hero .crumbs { color: var(--deep-soft); }
.page-hero-pic { box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.7); }
.page-hero .crumbs a[aria-current] { color: #fff; }
.page-hero .crumbs li + li::before { color: rgba(255, 255, 255, 0.35); }
main .page-hero .crumbs a:not(.btn):not(.plan-go):not(.tel):not(.ring-num):not(.big-tel):not(.door) { color: var(--deep-soft); }
main .page-hero .crumbs a[aria-current]:not(.btn):not(.plan-go):not(.tel):not(.ring-num):not(.big-tel):not(.door) { color: #fff; }
