/* Opaline Dental Studio (demo). Palette: the deep teal of the film's studio backdrop, a cool
   paper white, mint as the one accent and a soft coral for anything urgent. */
:root {
  --deep: #00181D;
  --navy: #021F25;
  --slate: #082A31;
  --slate-2: #0F363E;
  --accent: #3ED9BC;
  --accent-2: #8DEBD8;
  --warm: #FF8E72;
  --warm-2: #FFC9BA;
  --cream: #F1F7F5;
  --frost: #EEF4F2;
  --ink: #0C1F22;
  --ink-soft: #55676A;
  --light-soft: rgba(241, 247, 245, .72);
  --line-dark: rgba(241, 247, 245, .11);
  --line-light: rgba(12, 31, 34, .1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--navy); color: var(--cream); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.024em; line-height: 1.05; }
p { margin: 0; }
em { font-style: normal; color: var(--accent-2); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; left: -9999px; top: 0; }
.visually-hidden:focus { left: 12px; top: 12px; z-index: 100; background: var(--cream); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.section--light .eyebrow { color: #0B7A6A; }
.h2 { font-size: clamp(34px, 5vw, 60px); }
.section--light .h2 em { color: #0B7A6A; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--light-soft); max-width: 46ch; }
.section--light .lede { color: var(--ink-soft); }
.note { margin-top: 22px; font-size: 13px; color: rgba(241, 247, 245, .5); }
.note--dark { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 24px; border-radius: 999px; border: 0; font: 650 15.5px/1 var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { height: 42px; padding: 0 17px; font-size: 14px; }
.btn--accent { background: linear-gradient(180deg, #7BEBD5, var(--accent)); color: #04302B; box-shadow: 0 8px 24px -10px rgba(62, 217, 188, .7); }
.btn--accent:hover { box-shadow: 0 12px 30px -10px rgba(62, 217, 188, 1); }
.btn--warm { background: linear-gradient(180deg, var(--warm-2), var(--warm)); color: #3A0E04; box-shadow: 0 8px 24px -10px rgba(255, 142, 114, .85); }
.btn--warm:hover { box-shadow: 0 12px 30px -10px rgba(255, 142, 114, 1); }
.btn--lg { height: 58px; padding: 0 28px; font-size: 17px; }
.btn--glass { background: rgba(0, 24, 29, .42); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(241, 247, 245, .3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(241, 247, 245, .35); }

/* ---------- Header (big logo) ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.site-header.is-solid { background: rgba(2, 31, 37, .8); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line-dark); }
.bar { display: flex; align-items: center; gap: 24px; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -.03em; line-height: 1; }
.logo img { width: 52px; height: 52px; }
.logo small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2); margin-top: 5px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: rgba(241, 247, 245, .82); transition: color .2s; }
.nav a:hover { color: var(--cream); }
.actions { display: flex; gap: 10px; }
@media (max-width: 1080px) { .nav { display: none; } .actions { margin-left: auto; } }
@media (max-width: 600px) { .header-call { display: none; } .bar { height: 66px; gap: 12px; } .logo { font-size: 21px; gap: 10px; } .logo img { width: 42px; height: 42px; } .logo small { font-size: 10px; } .actions .btn--sm { height: 40px; padding: 0 14px; font-size: 13.5px; } }

/* ---------- Scroll film ---------- */
.film { position: relative; height: calc(var(--screens, 10) * 100vh); height: calc(var(--screens, 10) * 100svh); background: var(--deep); }
.film__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--deep) var(--empty) center / cover no-repeat; }
/* Phones/portrait: the picture fills the top of the stage (the camera pans across it, see film.js)
   and the text sits on solid navy below, so it never covers what each chapter names. */
@media (max-aspect-ratio: 1/1) {
  .film__stage { --view: 64%; background: var(--deep); }
  .film__stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--view); background: var(--empty-m, var(--empty)) center / cover no-repeat; }
}
.film__frames { position: absolute; inset: 0; width: 100%; height: 100%; }
.film__frames { opacity: 0; transition: opacity .4s; }
.film__frames.is-drawn { opacity: 1; }
.film__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 24, 29, .8) 0%, rgba(0, 24, 29, .42) 38%, rgba(0, 24, 29, 0) 64%),
              linear-gradient(0deg, rgba(0, 24, 29, .72) 0%, rgba(0, 24, 29, 0) 34%),
              linear-gradient(180deg, rgba(0, 24, 29, .6) 0%, rgba(0, 24, 29, 0) 20%); }
.film__loader { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .3s, opacity .6s .3s; }
.film__loader.is-done { opacity: 0; }

.film__hero { position: absolute; inset: 0; display: flex; align-items: center; padding-top: 70px; transform: translateY(var(--lift, 0)); }
.lockup { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; font-weight: 800; font-size: clamp(40px, 5vw, 64px); letter-spacing: -.035em; line-height: .9; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.lockup img { width: clamp(84px, 9vw, 120px); height: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .45)); }
.lockup small { display: block; margin-top: 8px; font-size: .27em; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-2); }
.film__title { font-size: clamp(42px, 6.6vw, 92px); letter-spacing: -.035em; line-height: .98; max-width: 12ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.film__title em { display: block; color: var(--accent-2); }
.film__sub { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px); color: rgba(241, 247, 245, .86); max-width: 42ch; }
.pulse { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(141, 235, 216, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(141, 235, 216, 0); } 100% { box-shadow: 0 0 0 0 rgba(141, 235, 216, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.film__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.film__chapter { position: absolute; left: 0; right: 0; bottom: clamp(28px, 7vh, 72px); opacity: 0; pointer-events: none; }
.film__meta { display: flex; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); transition: opacity .26s, transform .26s var(--ease); }
.film__text { margin-top: 10px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; max-width: 22ch; transition: opacity .26s, transform .26s var(--ease); text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.film__chapter.is-switching .film__text, .film__chapter.is-switching .film__meta { opacity: 0; transform: translateY(6px); }
.film__progress { display: flex; gap: 6px; margin-top: 20px; max-width: 420px; }
.film__progress span { flex: 1; height: 3px; border-radius: 3px; background: rgba(241, 247, 245, .2); overflow: hidden; }
.film__progress i { display: block; height: 100%; background: var(--accent-2); transform-origin: left; transform: scaleX(0); }
.film__note { margin-top: 12px; font-size: 12px; color: rgba(241, 247, 245, .5); }

.film__reveal { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: clamp(36px, 9vh, 96px); opacity: 0; visibility: hidden; background: linear-gradient(0deg, rgba(0, 24, 29, .88) 0%, rgba(0, 24, 29, .3) 42%, rgba(0, 24, 29, 0) 64%); }
.film__reveal h2 { font-size: clamp(38px, 5.6vw, 76px); letter-spacing: -.03em; }
.film__reveal h2 em { display: block; }
.film__reveal p.body { margin-top: 18px; color: rgba(241, 247, 245, .84); max-width: 52ch; font-size: clamp(16px, 1.4vw, 18px); }
.film__reveal .film__ctas { margin-top: 26px; }

.film__hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(241, 247, 245, .72); transition: opacity .4s; padding-bottom: 34px; }
.film__hint::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 26px; background: linear-gradient(var(--accent-2), transparent); animation: hint 1.8s infinite var(--ease); }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-aspect-ratio: 1/1) {
  .film__frames { height: var(--view); }
  .film__shade { background: linear-gradient(0deg, var(--deep) 0%, var(--deep) 35.5%, rgba(0, 24, 29, .7) 40%, rgba(0, 24, 29, 0) 50%), linear-gradient(180deg, rgba(0, 24, 29, .65) 0%, rgba(0, 24, 29, 0) 22%); }
  .film__hero { align-items: flex-end; padding-bottom: 40px; }
  .lockup { font-size: 40px; gap: 14px; margin-bottom: 20px; }
  .lockup img { width: 72px; }
  .film__title { font-size: clamp(38px, 10.5vw, 60px); }
  .film__hero .film__sub { display: none; }
  .film__ctas { margin-top: 22px; }
  .film__chapter { bottom: 92px; }
  .film__reveal { padding-bottom: 96px; }
  .film__hint { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--tight { padding-top: 0; }
/* Links to a section without top padding must not land under the fixed header. */
.section--tight { scroll-margin-top: 104px; }
@media (max-width: 600px) { .section--tight { scroll-margin-top: 84px; } }
.section--dark { background: var(--deep); }
.section--navy { background: var(--navy); }
.section--light { background: var(--frost); color: var(--ink); }
.head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { background: var(--slate); border-radius: var(--radius); padding: 28px 26px 26px; box-shadow: inset 0 0 0 1px var(--line-dark); display: flex; flex-direction: column; min-height: 250px; }
.service__num { font-size: 13px; font-weight: 700; color: var(--accent-2); letter-spacing: .1em; }
.service h3 { font-size: 23px; margin-top: 18px; }
.service p { margin-top: 10px; color: var(--light-soft); font-size: 16px; }
.service__meta { margin-top: auto; padding-top: 22px; font-size: 13px; font-weight: 700; color: var(--accent-2); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .service { min-height: 0; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: 0 1px 0 var(--line-light), 0 20px 40px -30px rgba(2, 31, 37, .35); display: flex; flex-direction: column; }
.review__stars { color: #e39a2d; letter-spacing: 3px; font-size: 16px; }
.review blockquote { margin: 16px 0 0; font-size: 18px; line-height: 1.5; letter-spacing: -.01em; }
.review figcaption { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--ink-soft); }
.review figcaption b { display: block; color: var(--ink); font-weight: 700; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line-light); }
.faq details:last-child { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; color: #0B7A6A; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 66ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px 72px; align-items: start; }
.contact__info { display: grid; gap: 14px; margin-top: 30px; }
.contact__info a, .contact__info div { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--light-soft); font-size: 16px; }
.contact__info svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; }
.contact__info a span { color: var(--cream); font-weight: 600; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.form { position: relative; background: var(--slate); border-radius: 22px; padding: clamp(22px, 3vw, 36px); box-shadow: inset 0 0 0 1px var(--line-dark); display: grid; gap: 16px; }
.row { display: grid; gap: 16px; }
.row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row--2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; color: rgba(241, 247, 245, .82); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--cream); background: var(--deep); border: 1px solid rgba(241, 247, 245, .16); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(62, 217, 188, .25); }
.field input:user-invalid { border-color: #d65b4f; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; }
.form__foot small { color: rgba(241, 247, 245, .5); font-size: 12.5px; }
.form__ok { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; padding: 30px; border-radius: inherit; background: var(--slate); opacity: 0; visibility: hidden; transition: opacity .4s; }
.form__ok:focus { outline: none; }
.form__ok .check { width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #04302B; }
.form__ok .check svg { width: 28px; height: 28px; }
.form__ok h3 { font-size: 24px; }
.form__ok p { color: var(--light-soft); }
.form.is-sent .form__ok { opacity: 1; visibility: visible; }

/* Footer + phone action bar */
.site-footer { background: #001217; padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--light-soft); font-size: 14.5px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.foot p { margin-top: 14px; }
.foot a { text-decoration: none; }
.foot .logo { color: var(--cream); }
.foot__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.foot__cols b { display: block; color: var(--cream); margin-bottom: 8px; font-weight: 650; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: 12.5px; color: rgba(241, 247, 245, .45); }
.action-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(0, 24, 29, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--line-dark); transform: translateY(140%); transition: transform .4s var(--ease); }
.action-bar .btn { flex: 1; height: 46px; }
.action-bar.is-visible { transform: none; }
@media (max-width: 700px) { .action-bar { display: flex; } }


/* ---------- Film reveal, timeline, before / after ---------- */

.film__reveal { background: linear-gradient(0deg, rgba(0, 24, 29, .9) 0%, rgba(0, 24, 29, .35) 40%, rgba(0, 24, 29, 0) 62%); transition: background .6s; }
.film__reveal .eyebrow, .film__reveal h2, .film__reveal p.body { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.film__reveal.is-xray { background: linear-gradient(0deg, rgba(0, 24, 29, .55) 0%, rgba(0, 24, 29, 0) 22%); }
.film__reveal.is-xray .eyebrow, .film__reveal.is-xray h2, .film__reveal.is-xray p.body { opacity: 0; transform: translateY(12px); pointer-events: none; }


/* On-site timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.timeline li { position: relative; padding-top: 48px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 10px; width: 21px; height: 21px; border-radius: 50%; background: var(--frost); box-shadow: inset 0 0 0 4px #0B7A6A; }
.timeline__day { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0B7A6A; }
.timeline h3 { font-size: 20px; margin-top: 8px; }
.timeline p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; } .timeline::before { left: 9px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: linear-gradient(180deg, var(--accent-2), var(--accent)); } .timeline li { padding: 4px 0 18px; } .timeline li::before { left: -34px; top: 4px; } }

@media (max-aspect-ratio: 1/1) {
  .film__reveal { background: linear-gradient(0deg, var(--deep) 0%, var(--deep) 36%, rgba(0, 24, 29, .75) 42%, rgba(0, 24, 29, 0) 52%); }
  .film__reveal h2 { font-size: clamp(30px, 8.6vw, 44px); }
  .film__reveal p.body { font-size: 15px; margin-top: 12px; }
  .film__reveal.is-xray { background: linear-gradient(0deg, var(--deep) 0%, var(--deep) 36%, rgba(0, 24, 29, 0) 37%); }
}
@media (max-aspect-ratio: 1/1) and (max-width: 700px) {
  .film__reveal h2 { font-size: clamp(28px, 7.8vw, 40px); }
  .film__reveal .film__ctas { margin-top: 18px; }
}

/* "See the before": the stained tooth wiped back over the final frame, drag to compare */
.before { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; visibility: hidden; pointer-events: none; --cut: 0%; touch-action: pan-y; outline: none; }
.before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.before.is-on { pointer-events: auto; cursor: ew-resize; }
.before__line { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 18px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
.before__line i { position: absolute; left: 50%; top: 42%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background-color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%2315181B%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m9 7-5 5 5 5M15 7l5 5-5 5%22/%3E%3C/svg%3E"); background-size: 24px; background-position: center; background-repeat: no-repeat; transition: transform .2s; }
.before.is-drag .before__line i { transform: scale(1.12); }
.before__tag { position: absolute; top: calc(var(--oy, 0px) + 92px); padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); background: rgba(0, 24, 29, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s; }
.before__tag--b { left: calc(var(--ox, 0px) + 18px); } .before__tag--a { right: calc(var(--orx, 0px) + 18px); }
.before.is-on .before__line, .before.is-on .before__tag { opacity: 1; }
@media (max-aspect-ratio: 1/1) { .before__tag { top: calc(var(--oy, 0px) + 72px); } }
.film__reveal { z-index: 3; }
.film__reveal.is-xray { pointer-events: none; }
.film__reveal.is-xray .film__ctas { pointer-events: auto; }
.swap-ico { width: 18px; height: 18px; flex: none; border-radius: 4px; box-shadow: inset 0 0 0 1.6px currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
[aria-pressed="true"] .swap-ico { background: linear-gradient(90deg, transparent 50%, currentColor 50%); }

/* ---------- Visit counter on the film: minutes, the four steps, three numbers (main.js) ---------- */
.counter { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: 108px; z-index: 3; width: 268px; padding: 16px 18px 14px; border-radius: 20px; opacity: 0; visibility: hidden; pointer-events: none;
  background: rgba(0, 24, 29, .62); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(241, 247, 245, .12); display: grid; gap: 13px; }
.counter__clock { display: flex; align-items: baseline; gap: 8px; }
.counter__clock b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--cream); font-variant-numeric: tabular-nums; }
.counter__clock span { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 247, 245, .6); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.steps i { --f: 0; font-style: normal; }
.steps i::before { content: ""; display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) calc(var(--f) * 100%), rgba(241, 247, 245, .14) calc(var(--f) * 100%)); }
.steps span { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 650; text-align: center; color: rgba(241, 247, 245, .5); transition: color .3s; }
.steps i.is-done span { color: var(--cream); }
.counter__stats { margin: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 6px; }
.counter__stats div { margin: 0; }
.counter__stats dt { font-size: 10.5px; font-weight: 650; color: rgba(241, 247, 245, .6); white-space: nowrap; }
.counter__stats dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--cream); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-aspect-ratio: 1/1) {
  .counter { top: auto; bottom: calc(36% + 12px); right: 12px; left: 12px; width: auto; grid-template-columns: auto 1fr; padding: 10px 14px; gap: 8px 16px; align-items: center; }
  .counter__clock { flex-direction: column; align-items: flex-start; gap: 3px; }
  .counter__clock b { font-size: 26px; }
  .counter__clock span { font-size: 9.5px; }
  .steps span { font-size: 9.5px; margin-top: 4px; }
  .counter__stats { grid-column: 1 / -1; }
  .counter__stats dd { font-size: 13px; }
}

/* ---------- Your first visit: where the hour goes ---------- */
.sortbar { display: flex; height: 54px; border-radius: 16px; overflow: hidden; margin-bottom: 18px; background: rgba(12, 31, 34, .06); }
.sortbar i { display: flex; align-items: center; padding-left: 16px; width: 0; overflow: hidden; font-style: normal; font-weight: 750; font-size: 16px; color: #fff; transition: width 1.2s var(--ease); }
.sortbar.is-in i { width: var(--w); }
.sortbar i:nth-child(2) { transition-delay: .15s; } .sortbar i:nth-child(3) { transition-delay: .3s; }
.sorts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sort { background: #fff; border-radius: 22px; padding: 28px 26px 24px; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line-light), 0 24px 48px -36px rgba(2, 31, 37, .45); }
.sort .sort__pct { font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.sort h3 { font-size: 24px; margin-top: 14px; color: var(--ink); }
.sort p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }
.sort__meta { margin-top: auto; padding-top: 20px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 900px) { .sorts { grid-template-columns: 1fr; } .sortbar { height: 46px; } .sortbar i { font-size: 14px; padding-left: 10px; } }

/* How it works sits on a dark section here */
.section--dark .timeline p { color: var(--light-soft); }
.section--dark .timeline__day { color: var(--accent-2); }
.section--dark .timeline li::before { background: var(--navy); box-shadow: inset 0 0 0 4px var(--accent); }

/* ---------- Opaline: film details ---------- */
/* The sharp still gets the picture's own box from film.js (placeHd), clipped to the frames box. */
.film__hdbox { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.film__hd { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; opacity: 0; transition: opacity .35s; }
.film__hd.is-on { opacity: 1; }
@media (max-aspect-ratio: 1/1) { .film__hdbox { height: var(--view); } }
/* The tooth sits right of centre on a dark backdrop: text needs only a light shade on the left. */
.film__shade { background: linear-gradient(90deg, rgba(0, 24, 29, .55) 0%, rgba(0, 24, 29, .2) 34%, rgba(0, 24, 29, 0) 52%), linear-gradient(180deg, rgba(0, 24, 29, .55) 0%, rgba(0, 24, 29, 0) 18%); }
.film__reveal { background: linear-gradient(90deg, rgba(0, 24, 29, .6) 0%, rgba(0, 24, 29, .2) 36%, rgba(0, 24, 29, 0) 54%); }
.film__reveal.is-xray { background: none; }
.film__reveal h2 { max-width: 14ch; }
.film__reveal p.body { max-width: 40ch; }
@media (max-aspect-ratio: 1/1) {
  .film__shade { background: linear-gradient(0deg, var(--deep) 0%, var(--deep) 35.5%, rgba(0, 24, 29, .7) 39%, rgba(0, 24, 29, 0) 46%), linear-gradient(180deg, rgba(0, 24, 29, .6) 0%, rgba(0, 24, 29, 0) 20%); }
  .film__reveal { background: linear-gradient(0deg, var(--deep) 0%, var(--deep) 36%, rgba(0, 24, 29, .75) 40%, rgba(0, 24, 29, 0) 48%); }
  .film__reveal.is-xray { background: linear-gradient(0deg, var(--deep) 0%, var(--deep) 36%, rgba(0, 24, 29, 0) 37%); }
  .film__reveal h2, .film__reveal p.body { max-width: none; }
}
@media (max-aspect-ratio: 1/1) and (max-width: 700px) {
  .film__reveal .film__ctas { gap: 8px; }
  .film__reveal .btn { height: 48px; padding: 0 16px; font-size: 14.5px; flex: 1 1 auto; }
}
.btn--accent .swap-ico, .btn--glass .swap-ico { margin-right: 0; }

/* ---------- Shared pieces: cards, chips, small notes ---------- */
.card { padding: clamp(18px, 2.6vw, 30px); border-radius: 24px; background: var(--slate); box-shadow: inset 0 0 0 1px var(--line-dark); }
.k { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; background: rgba(241, 247, 245, .06); color: var(--cream); font: 600 14.5px/1.2 var(--font); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-dark); transition: background .2s, color .2s, transform .15s; }
.chip:hover { background: rgba(241, 247, 245, .1); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--ink); box-shadow: none; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats3 div { padding: 12px; border-radius: 14px; background: rgba(241, 247, 245, .05); box-shadow: inset 0 0 0 1px var(--line-dark); min-width: 0; }
.stats3 b { display: block; font-size: 20px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats3 span { display: block; font-size: 12px; line-height: 1.25; color: var(--light-soft); }
.link { padding: 0; border: 0; background: none; color: var(--accent-2); font: 650 14.5px/1.3 var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- What's bothering you? (app.js) ---------- */
.asks { margin-bottom: 16px; }
.verdict { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; padding: 14px; padding-right: clamp(18px, 3vw, 40px); background: radial-gradient(120% 120% at 100% 0%, rgba(62, 217, 188, .16), rgba(62, 217, 188, 0) 60%), var(--navy); }
.tooth { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--deep); }
.tooth picture { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.tooth picture.is-on { opacity: 1; }
.tooth img { width: 100%; height: 100%; object-fit: cover; }
.tooth__tag { position: absolute; left: 12px; bottom: 12px; padding: 7px 14px; border-radius: 999px; background: rgba(0, 24, 29, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 650; font-size: 13.5px; }
.verdict__body { padding: 8px 0; min-width: 0; }
.verdict h3 { font-size: clamp(24px, 2.8vw, 36px); margin: 10px 0 12px; text-wrap: balance; }
.verdict__text { color: var(--light-soft); max-width: 52ch; }
.verdict .stats3 { margin: 20px 0 16px; grid-template-columns: 1.7fr 1fr 1fr; }
.verdict .stats3 .wide b { font-size: 16px; white-space: normal; letter-spacing: -.015em; line-height: 1.2; }
.urgent { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 142, 114, .12); box-shadow: inset 0 0 0 1px rgba(255, 142, 114, .4); font-size: 14px; color: #FFD9CF; }
.urgent.is-on { display: block; }
.urgent a { color: #fff; font-weight: 700; white-space: nowrap; }
.verdict__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.verdict .note { margin-top: 16px; }
@media (max-width: 860px) {
  .verdict { grid-template-columns: 1fr; padding: 10px; gap: 6px; border-radius: 20px; }
  .tooth { aspect-ratio: 16 / 10; }
  .verdict__body { padding: 10px 8px 10px; }
  .stats3 b { font-size: 18px; }
  .verdict .stats3 { grid-template-columns: 1fr 1fr; }
  .verdict .stats3 .wide { grid-column: 1 / -1; }
}

/* ---------- Booking calendar (book.js) ---------- */
.book { scroll-margin-top: 92px; padding: clamp(14px, 2.4vw, 28px); background: radial-gradient(90% 70% at 0% 0%, rgba(62, 217, 188, .12), rgba(62, 217, 188, 0) 60%), var(--slate); }
.bsteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 clamp(16px, 2.4vw, 24px); padding: 0; list-style: none; }
.bstep { display: block; width: 100%; padding: 10px 12px 11px; border: 0; border-radius: 14px; background: rgba(241, 247, 245, .05); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--cream); font: inherit; text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s; min-width: 0; }
.bstep:disabled { cursor: default; opacity: .5; }
.bstep b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.bstep span { display: block; margin-top: 3px; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bstep[aria-current="step"] { background: rgba(62, 217, 188, .12); box-shadow: inset 0 0 0 2px var(--accent); }
.bstep.is-done b::after { content: " ✓"; }
.book__main { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(18px, 2.4vw, 32px); align-items: start; }
.book.is-done .book__main { grid-template-columns: 1fr; }
.book.is-done .bside { display: none; }
.bside { padding: 18px 18px 6px; border-radius: 18px; background: var(--deep); box-shadow: inset 0 0 0 1px var(--line-dark); }
.bside__sum { margin: 10px 0 0; }
.bside__sum div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: 14.5px; }
.bside__sum dt { color: var(--light-soft); flex: none; }
.bside__sum dd { margin: 0; font-weight: 650; text-align: right; }
.bside__perks { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--light-soft); }
.bside__perks li { display: flex; gap: 9px; align-items: flex-start; }
.bside__perks svg { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--accent); }
@media (max-width: 900px) { .book__main { grid-template-columns: 1fr; } .bside { display: none; } }
.bpanel { min-height: 372px; }
.bpanel[hidden] { display: none; }
.bpanel:focus { outline: none; }
.bpanel__q { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.bpanel__q small { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--light-soft); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; background: rgba(241, 247, 245, .05); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--cream); font: inherit; text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s, transform .15s; }
.opt:hover { background: rgba(241, 247, 245, .09); }
.opt:active { transform: scale(.985); }
.opt[aria-pressed="true"] { background: rgba(62, 217, 188, .12); box-shadow: inset 0 0 0 2px var(--accent); }
.opt b { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.opt i { grid-column: 1; font-style: normal; font-size: 13.5px; color: var(--light-soft); }
.opt em { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-size: 16px; font-weight: 750; color: var(--cream); white-space: nowrap; }
.opt em small { display: block; font-size: 12.5px; font-weight: 600; color: var(--light-soft); }
.cal { max-width: 560px; }
.cal__month { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--light-soft); margin-bottom: 8px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__dow { font-size: 11.5px; font-weight: 700; text-align: center; color: rgba(241, 247, 245, .5); padding-bottom: 2px; }
.day { position: relative; display: grid; place-items: center; align-content: center; gap: 1px; aspect-ratio: 1 / 1; min-height: 44px; padding: 0; border: 0; border-radius: 14px; background: rgba(241, 247, 245, .06); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--cream); font: 700 17px/1 var(--font); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .2s, box-shadow .2s, transform .15s; }
.day small { font-size: 10.5px; font-weight: 650; color: var(--accent-2); letter-spacing: .02em; }
.day:hover { background: rgba(241, 247, 245, .11); }
.day:active { transform: scale(.95); }
.day:disabled { cursor: default; background: none; box-shadow: none; color: rgba(241, 247, 245, .28); }
.day:disabled small { color: inherit; }
.day[aria-pressed="true"] { background: var(--accent); color: #04302B; box-shadow: none; }
.day[aria-pressed="true"] small { color: #04302B; }
.day--pad { visibility: hidden; }
.times__k { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--light-soft); margin: 16px 0 8px; }
.times__k:first-of-type { margin-top: 0; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.time { height: 46px; padding: 0; white-space: nowrap; border: 0; border-radius: 12px; background: rgba(241, 247, 245, .06); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--cream); font: 650 15px/1 var(--font); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .2s, transform .15s; }
.time:hover { background: rgba(241, 247, 245, .12); }
.time:active { transform: scale(.96); }
.time:disabled { cursor: default; background: none; color: rgba(241, 247, 245, .26); text-decoration: line-through; }
.time[aria-pressed="true"] { background: var(--accent); color: #04302B; box-shadow: none; }
.bform { display: grid; gap: 14px; max-width: 620px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--deep); box-shadow: inset 0 0 0 1px var(--line-dark); max-width: 100%; }
.seg button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: rgba(241, 247, 245, .75); font: 650 14px/1.1 var(--font); cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.bfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-dark); }
.bfoot small { font-size: 12.5px; color: rgba(241, 247, 245, .5); max-width: 46ch; }
.bfoot [hidden] { display: none; }
.bdone { display: grid; justify-items: start; gap: 6px; }
.bdone .check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #04302B; margin-bottom: 8px; }
.bdone .check svg { width: 28px; height: 28px; }
.bdone h3 { font-size: clamp(28px, 3.4vw, 40px); }
.bdone > p { color: var(--light-soft); max-width: 56ch; }
.ticket { width: 100%; max-width: 560px; margin: 16px 0 6px; padding: 4px 18px; border-radius: 18px; background: var(--deep); box-shadow: inset 0 0 0 1px var(--line-dark); }
.ticket div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.ticket div:last-child { border-bottom: 0; }
.ticket dt { color: var(--light-soft); flex: none; }
.ticket dd { margin: 0; font-weight: 650; text-align: right; }
.bdone__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 10px; }
@media (max-width: 700px) {
  .book { padding: 12px; border-radius: 20px; }
  .bsteps { gap: 4px; }
  .bstep { padding: 8px 8px 9px; border-radius: 12px; }
  .bstep b { font-size: 10px; letter-spacing: .08em; }
  .bstep span { font-size: 12.5px; }
  .opts { grid-template-columns: 1fr; }
  .opt { padding: 12px 14px; }
  .bpanel { min-height: 0; }
  .cal__grid { gap: 4px; }
  .day { border-radius: 12px; font-size: 16px; }
  .times { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .time { font-size: 13.5px; letter-spacing: -.01em; }
  .seg { display: flex; }
  .seg button { flex: 1; padding: 0 10px; }
  .bfoot .btn { width: 100%; }
}

/* ---------- Your first visit ---------- */
.sortbar i span { white-space: nowrap; }
.sortbar__look { background: #0B7A6A; } .sortbar__clean { background: #19A58F; } .sortbar__plan { background: #5B7A85; }
.sort--look .sort__pct { color: #0B7A6A; } .sort--clean .sort__pct { color: #148A78; } .sort--plan .sort__pct { color: #4D6973; }
.sort__pct small { font-size: .32em; font-weight: 700; letter-spacing: .02em; margin-left: 6px; }

/* ---------- Visit us ---------- */
.hours { margin: 0 0 18px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 16px; }
.hours dt { color: var(--light-soft); }
.hours dd { margin: 0; font-weight: 650; }
.visit__call { margin: 0 0 18px; font-size: 15px; color: var(--warm-2); }
.visit__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.visit .card h3 { font-size: 24px; margin-bottom: 8px; }

/* ---------- Phones held sideways: very little height ---------- */
@media (min-aspect-ratio: 1/1) and (max-height: 520px) {
  .bar { height: 58px; }
  .logo { font-size: 20px; gap: 10px; }
  .logo img { width: 38px; height: 38px; }
  .logo small { font-size: 9.5px; margin-top: 4px; }
  .film__hero { padding-top: 52px; }
  .lockup, .film__hero .film__sub, .film__hint, .film__note, .counter__stats { display: none; }
  .film__hero .eyebrow { margin-bottom: 8px; }
  .film__title { font-size: clamp(30px, 11vh, 46px); }
  .film__ctas { margin-top: 14px; gap: 8px; }
  .film__hero .btn, .film__reveal .btn { height: 42px; padding: 0 16px; font-size: 14px; }
  .counter { top: 70px; width: 236px; padding: 10px 12px; gap: 8px; }
  .counter__clock b { font-size: 26px; }
  .film__chapter { bottom: 14px; }
  .film__text { font-size: 17px; max-width: 30ch; margin-top: 6px; }
  .film__progress { margin-top: 10px; max-width: 260px; }
  .film__reveal { padding-bottom: 16px; }
  .film__reveal .eyebrow { margin-bottom: 6px; }
  .film__reveal h2 { font-size: 30px; }
  .film__reveal p.body { font-size: 14px; margin-top: 8px; max-width: 44ch; }
  .film__reveal .film__ctas { margin-top: 12px; }
}
