/* ==========================================================
   Halo Dental Studio — styles
   ========================================================== */
:root {
  --cream: #F7F2EA;
  --paper: #FFFDF9;
  --ink: #10232A;
  --ink-2: #3E525A;
  --teal: #0F5E5B;
  --teal-2: #0B4744;
  --mint: #BFE6D8;
  --sun: #FFE08A;
  --lilac: #D9D2FF;
  --coral: #FF7A59;
  --coral-soft: #FFD0C2;
  --line: rgba(16, 35, 42, .12);
  --radius: 22px;
  --shadow: 0 20px 50px -20px rgba(16, 35, 42, .25);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  --intro: 1.5s; /* when the loader finishes */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--coral); color: var(--ink); }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; position: relative; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 300; }
.skip:focus { left: 8px; }

em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--teal); }
.section--dark em { color: var(--mint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.eyebrow--light { color: var(--mint); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,122,89,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,122,89,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,89,0); } }

.display { font-family: var(--serif); font-size: clamp(52px, 8vw, 108px); letter-spacing: -.03em; font-weight: 600; }
.h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 64px); letter-spacing: -.02em; max-width: 16ch; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 46ch; margin-top: 26px; }
.muted { color: var(--ink-2); max-width: 44ch; }

.underline { position: relative; white-space: nowrap; }
.underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .16em;
  background: var(--coral); border-radius: 99px; z-index: -1;
  transform-origin: left; transform: scaleX(0); animation: draw 1s calc(var(--intro) + .7s) cubic-bezier(.7,0,.2,1) forwards;
}
@keyframes draw { to { transform: scaleX(1); } }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 250; background: var(--ink); color: var(--paper);
  display: grid; place-content: center; justify-items: center; gap: 18px;
  animation: loaderOut .8s var(--intro) cubic-bezier(.7,0,.2,1) forwards;
}
.loader__tooth { width: 90px; }
.loader__tooth path { fill: none; stroke: var(--mint); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: stroke 1.1s .1s ease-in-out forwards, fillIn .4s 1.1s forwards; }
@keyframes stroke { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: var(--mint); } }
.loader__word { font-weight: 800; font-size: 24px; letter-spacing: -.02em; opacity: 0; animation: fadeUp .6s .5s var(--ease) forwards; }
.loader__word em { color: var(--mint); margin-left: 2px; }
@keyframes loaderOut { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* intro entrance after loader */
.intro { opacity: 0; animation: fadeUp 1s calc(var(--intro) + var(--d) * .12s) var(--ease) forwards; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1s calc(var(--intro) + var(--d) * .12s) var(--ease) forwards; }
@keyframes lineUp { to { transform: none; } }

/* ---------- progress + cursor ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--mint), var(--coral)); transform-origin: left; transform: scaleX(var(--p, 0)); }

.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .compare__range { cursor: none; }

.cursor span { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; border-radius: 50%; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--coral); }
.cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid var(--ink); transition: width .3s, height .3s, margin .3s, background .3s, border-color .3s; }
.cursor.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(255,122,89,.18); border-color: var(--coral); }
.cursor.is-dark .cursor__ring { border-color: var(--paper); }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), color .3s, box-shadow .3s;
}
.btn::before { /* liquid fill on hover */
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: var(--coral); transform: translateY(102%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { color: var(--ink); box-shadow: 0 10px 24px -10px rgba(16,35,42,.5); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn--coral { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.btn--coral::before { background: var(--mint); }
.btn--small { padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; font-size: 18px; transition: .2s; }
.round:hover { background: var(--ink); color: var(--paper); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(247, 242, 234, .85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--teal); }
.brand em { font-weight: 400; margin-left: 2px; }
.brand__mark { width: 36px; height: 36px; animation: spin 18s linear infinite; }
.brand__mark path { transform-origin: center; animation: spin 18s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--coral); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.nav__toggle span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); transition: .3s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open .nav__toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 110px; position: relative; overflow-x: clip; }
.bubbles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; z-index: 0; }
.hero__glow--a { width: 420px; height: 420px; background: var(--mint); top: -120px; right: 10%; animation: drift 14s ease-in-out infinite; }
.hero__glow--b { width: 300px; height: 300px; background: var(--coral-soft); bottom: 0; left: -80px; animation: drift 18s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate(60px, 40px) scale(1.15); } }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; z-index: 1; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats { list-style: none; padding: 0; margin: 52px 0 0; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; }
.hero__stats span { font-size: 14px; color: var(--ink-2); }

.hero__art { position: relative; aspect-ratio: 1; max-width: 520px; margin-left: auto; width: 100%; }
.layer { position: absolute; inset: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0); transition: transform .8s var(--ease); }
.layer--chips { pointer-events: none; z-index: 3; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.layer { pointer-events: none; }

/* soft playground behind the crew */
.playground {
  position: absolute; inset: 6% 4% 4% 4%;
  background: radial-gradient(70% 70% at 40% 35%, #E4F4FF 0%, #CBE8FA 45%, #B9E6DA 100%);
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  animation: morph 14s ease-in-out infinite;
  box-shadow: inset 0 -30px 60px rgba(46,143,214,.18), 0 40px 80px -40px rgba(23,59,102,.45);
}
@keyframes morph { 50% { border-radius: 56% 44% 42% 58% / 44% 56% 46% 54%; } }
.playground::before { /* polka sparkle pattern */
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .5;
  background-image: radial-gradient(circle, #fff 1.6px, transparent 2px);
  background-size: 26px 26px; animation: gridDrift 20s linear infinite;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
}
@keyframes gridDrift { to { background-position: 26px 26px; } }
.playground__floor { position: absolute; left: 10%; right: 10%; bottom: 8%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(23,59,102,.14), transparent); }

/* each mascot */
.mascot { position: absolute; pointer-events: auto; outline: none; transition: transform .45s var(--ease), filter .3s; }
.mascot svg { width: 100%; height: auto; overflow: visible; }
.mascot:hover, .mascot:focus-visible { transform: translateY(-8px) scale(1.07); filter: drop-shadow(0 14px 18px rgba(23,59,102,.25)); z-index: 5; }
.mascot::after { /* speech bubble */
  content: attr(data-say); position: absolute; left: 50%; bottom: 96%; z-index: 6;
  padding: 7px 14px; border-radius: 16px; border: 2.5px solid #173B66; background: #fff; color: #173B66;
  font: 800 13px/1.2 var(--sans); white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 10px) scale(.7); transform-origin: 50% 100%;
  transition: opacity .3s, transform .4s cubic-bezier(.3,1.6,.5,1);
  box-shadow: 0 10px 20px -10px rgba(23,59,102,.5);
}
.mascot:hover::after, .mascot:focus-visible::after, .mascot.talk::after { opacity: 1; transform: translate(-50%, 0) scale(1); }

.m-doctor { left: 0%; top: 2%; width: 32%; }
.m-hero   { left: 66%; top: -4%; width: 34%; }
.m-shield { left: -5%; top: 38%; width: 32%; }
.m-brush  { left: 26%; top: 10%; width: 47%; }
.m-happy  { left: 16%; top: 62%; width: 31%; }
.m-heal   { left: 60%; top: 53%; width: 32%; }

/* shared motion */
.mascot g, .mascot path, .mascot ellipse, .mascot rect { transform-box: fill-box; }
.m-shadow { fill: #173B66; opacity: .16; transform-origin: 50% 50%; animation: shadowBob 3s ease-in-out infinite; }
@keyframes shadowBob { 50% { transform: scaleX(.8); opacity: .1; } }
.m-bob { transform-origin: 50% 100%; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1.02, .98); } 50% { transform: translateY(-10px) scale(.99, 1.01); } }
.m-blink { transform-origin: 50% 50%; animation: blink 4.2s infinite; }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
.m-doctor .m-bob, .m-doctor .m-shadow { animation-delay: -.6s; }
.m-shield .m-bob, .m-shield .m-shadow { animation-delay: -1.4s; }
.m-heal .m-shadow { animation-delay: -2s; }
.m-doctor .m-blink { animation-delay: -1s; }
.m-shield .m-blink { animation-delay: -2.4s; }

/* doctor: inspecting with the magnifier */
.m-magnifier { transform-origin: 50% 92%; animation: inspect 2.8s ease-in-out infinite alternate; }
@keyframes inspect { from { transform: rotate(-14deg); } to { transform: rotate(10deg) translateY(-4px); } }

/* superhero: flying, cape flapping, speed lines */
.m-fly { transform-origin: 50% 50%; animation: fly 3.2s ease-in-out infinite; }
@keyframes fly { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
.m-cape { transform-origin: 50% 0%; animation: cape .6s ease-in-out infinite alternate; }
@keyframes cape { from { transform: skewX(-6deg) scaleX(1.02); } to { transform: skewX(5deg) scaleX(.95); } }
.m-hero .m-shadow { animation: shadowFly 3.2s ease-in-out infinite; }
@keyframes shadowFly { 50% { transform: scaleX(.65); opacity: .07; } }
.m-speed path { animation: speed 1s linear infinite; }
.m-speed path:nth-child(2) { animation-delay: .3s; }
.m-speed path:nth-child(3) { animation-delay: .6s; }
@keyframes speed { 0% { transform: translateX(20px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(-30px); opacity: 0; } }

/* shield guard */
.m-guard { transform-origin: 50% 80%; animation: guard 3s ease-in-out infinite; }
@keyframes guard { 0%, 60%, 100% { transform: none; } 70% { transform: translate(6px, -6px) rotate(-6deg); } 80% { transform: translate(2px, -2px) rotate(2deg); } }
.m-glint { animation: glint 3s ease-in-out infinite; }
@keyframes glint { 0%, 60%, 100% { opacity: .2; } 72% { opacity: .9; } }

/* brush buddy */
.m-toothbrush { transform-origin: 50% 85%; animation: scrub .32s ease-in-out infinite alternate; }
@keyframes scrub { from { transform: translateY(-5px) rotate(-6deg); } to { transform: translateY(5px) rotate(4deg); } }
.m-thumb { transform-origin: 50% 100%; animation: thumb 1.6s ease-in-out infinite; }
@keyframes thumb { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-14deg) translateY(-4px); } }
.m-paste { transform-origin: 50% 100%; animation: paste 3s ease-in-out infinite; }
@keyframes paste { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06, .92); } }
.m-bubbles circle { animation: bubble 2.4s ease-in infinite; transform-origin: 50% 50%; }
.m-bubbles circle:nth-child(2) { animation-delay: .8s; }
.m-bubbles circle:nth-child(3) { animation-delay: 1.6s; }
@keyframes bubble { 0% { transform: translateY(20px) scale(.2); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-40px) scale(1.2); opacity: 0; } }

/* happy: jumping for joy */
.m-jump { transform-origin: 50% 100%; animation: jump 2.2s cubic-bezier(.4,0,.3,1) infinite; }
@keyframes jump {
  0%, 70%, 100% { transform: translateY(0) scale(1); }
  8% { transform: translateY(0) scale(1.08, .9); }
  30% { transform: translateY(-34px) scale(.95, 1.06); }
  52% { transform: translateY(0) scale(1.06, .92); }
  62% { transform: translateY(0) scale(.98, 1.02); }
}
.m-happy .m-shadow { animation: shadowJump 2.2s cubic-bezier(.4,0,.3,1) infinite; }
@keyframes shadowJump { 0%, 70%, 100% { transform: none; } 30% { transform: scaleX(.6); opacity: .07; } }
.m-rays { transform-origin: 50% 100%; animation: rays 2.2s ease-in-out infinite; }
@keyframes rays { 0%, 100% { opacity: .35; transform: scale(.9); } 30% { opacity: 1; transform: scale(1.08); } }
.m-wave-l { transform-origin: 50% 50%; animation: waveL 2.2s ease-in-out infinite; }
.m-wave-r { transform-origin: 50% 50%; animation: waveR 2.2s ease-in-out infinite; }
@keyframes waveL { 30% { transform: translate(-6px, -30px); } }
@keyframes waveR { 30% { transform: translate(6px, -30px); } }

/* cavity → healed story loop */
.m-sad, .m-healed { animation: 8s ease-in-out infinite; }
.m-sad { animation-name: sad; }
.m-healed { animation-name: healed; opacity: 0; }
@keyframes sad { 0%, 44% { opacity: 1; transform: none; } 47% { opacity: 1; transform: scale(1.06) rotate(-3deg); } 50%, 94% { opacity: 0; transform: scale(.9); } 100% { opacity: 1; transform: none; } }
@keyframes healed { 0%, 47% { opacity: 0; transform: scale(.85); } 52% { opacity: 1; transform: scale(1.08); } 56%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: scale(.9); } }
.m-sad, .m-healed { transform-origin: 50% 100%; }
.m-sad > * { animation: shiver 1.2s ease-in-out infinite; }
@keyframes shiver { 0%, 100% { transform: none; } 50% { transform: translateX(1.5px); } }
.m-tear { transform-origin: 50% 0; animation: tear 1.6s ease-in infinite !important; }
@keyframes tear { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; transform: scale(1); } 100% { transform: translateY(28px); opacity: 0; } }
.m-burst use { transform-origin: 50% 50%; animation: burst 8s ease-out infinite; opacity: 0; }
.m-burst use:nth-child(2) { animation-delay: .08s; }
.m-burst use:nth-child(3) { animation-delay: .16s; }
.m-burst use:nth-child(4) { animation-delay: .24s; }
.m-burst use:nth-child(5) { animation-delay: .12s; }
@keyframes burst { 0%, 47% { opacity: 0; transform: scale(0) rotate(0); } 53% { opacity: 1; transform: scale(1.4) rotate(90deg); } 62%, 100% { opacity: 0; transform: scale(.4) rotate(180deg); } }

/* frosted glass cards */
.glass {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 18px; font-size: 14px; line-height: 1.3;
  background: rgba(255,253,249,.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 24px 50px -22px rgba(8,47,46,.55), inset 0 1px 0 rgba(255,255,255,.9);
  animation: float 6s ease-in-out infinite;
}
.glass strong { display: block; font-size: 15px; }
.glass small { color: var(--ink-2); }
.glass i { font-style: normal; color: #F5A524; letter-spacing: 1px; font-size: 12px; }
.glass--a { right: -8%; top: 38%; }
.glass--b { right: -8%; top: 46%; animation-delay: -2s; }
.glass--c { left: 40%; bottom: -4%; animation-delay: -4s; }
.glass__ring { width: 44px; height: 44px; transform: rotate(-90deg); flex: none; }
.glass__ring circle { fill: none; stroke: var(--mint); stroke-width: 5; }
.glass__ring .glass__ring-val { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ring 1.6s calc(var(--intro) + .9s) var(--ease) forwards; }
@keyframes ring { to { stroke-dashoffset: 18; } }
.glass__faces { display: flex; }
.glass__faces span { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 2px solid #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-left: -8px; }
.glass__faces span:first-child { margin-left: 0; }
.live { width: 12px; height: 12px; border-radius: 50%; background: #22C55E; margin: 0 6px; flex: none; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes float { 50% { transform: translateY(-10px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 2px solid var(--ink); border-radius: 20px; transform: translateX(-50%); z-index: 2; opacity: 0; animation: fadeUp 1s calc(var(--intro) + 1s) forwards; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--coral); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 30px 0; margin: -10px 0; position: relative; z-index: 2; }
.marquee__row { background: var(--ink); color: var(--paper); padding: 20px 0; transform: rotate(-2deg); margin: 0 -30px; }
.marquee__row--alt { background: var(--coral); color: var(--ink); transform: rotate(1.5deg); margin-top: -14px; }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: scroll 32s linear infinite; align-items: center; }
.marquee__row--alt .marquee__track { animation-direction: reverse; animation-duration: 40s; }
.marquee span { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); font-style: italic; white-space: nowrap; }
.marquee__row--alt span { font-family: var(--sans); font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); font-size: clamp(22px, 2.6vw, 32px); }
.marquee i { color: var(--coral); font-style: normal; }
.marquee__row--alt i { color: var(--ink); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--dark { background: var(--ink); color: var(--paper); overflow: hidden; }
.section--dark p, .section--dark .muted { color: rgba(255,253,249,.75); }
.section--tint { background: var(--paper); }
.section__head { margin-bottom: 56px; }
.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }

/* animated wave at the top of dark sections */
.wave {
  position: absolute; top: -1px; left: 0; right: 0; height: 60px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23F7F2EA' d='M0 0h1440v30c-120 20-240 20-360 0S840 10 720 30 480 50 360 30 120 10 0 30z'/%3E%3C/svg%3E") repeat-x 0 0 / 1440px 60px;
  animation: wave 16s linear infinite;
}
.wave::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: inherit; background-position: 720px 6px; animation: wave 10s linear infinite reverse;
}
@keyframes wave { to { background-position-x: 1440px; } }

/* rising bubbles in dark sections */
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floaters span { position: absolute; bottom: -60px; border-radius: 50%; border: 1.5px solid rgba(191,230,216,.35); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 60%); animation: rise linear infinite; }
.floaters span:nth-child(1) { left: 6%;  width: 22px; height: 22px; animation-duration: 14s; }
.floaters span:nth-child(2) { left: 18%; width: 40px; height: 40px; animation-duration: 19s; animation-delay: -6s; }
.floaters span:nth-child(3) { left: 32%; width: 14px; height: 14px; animation-duration: 11s; animation-delay: -3s; }
.floaters span:nth-child(4) { left: 48%; width: 30px; height: 30px; animation-duration: 17s; animation-delay: -9s; }
.floaters span:nth-child(5) { left: 61%; width: 18px; height: 18px; animation-duration: 13s; animation-delay: -1s; }
.floaters span:nth-child(6) { left: 74%; width: 48px; height: 48px; animation-duration: 22s; animation-delay: -12s; }
.floaters span:nth-child(7) { left: 86%; width: 16px; height: 16px; animation-duration: 12s; animation-delay: -5s; }
.floaters span:nth-child(8) { left: 94%; width: 26px; height: 26px; animation-duration: 16s; animation-delay: -8s; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(24px, -50vh); } 90% { opacity: 1; } 100% { transform: translate(-10px, -110vh); opacity: 0; } }

/* ---------- services ---------- */
.tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-bottom: 34px; position: relative; padding: 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.tabs__pill { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: left .45s var(--ease), width .45s var(--ease); }
.tabs button { position: relative; z-index: 1; border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: color .3s; }
.tabs button[aria-selected="true"] { color: var(--paper); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1000px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 12px; min-height: 290px; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .35s, opacity .8s var(--ease);
  transform-style: preserve-3d;
}
.card::after { /* glare */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.9), transparent 45%);
  mix-blend-mode: soft-light;
}
.card::before { /* colour wash that grows from the icon */
  content: ""; position: absolute; width: 64px; height: 64px; left: 32px; top: 32px; border-radius: 50%;
  background: var(--c, var(--mint)); opacity: .35; transform: scale(0); transition: transform .7s var(--ease); z-index: 0;
}
.card > * { position: relative; z-index: 1; }
.card:hover { box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card:hover::before { transform: scale(9); }
.card h3 { font-family: var(--serif); font-size: 28px; margin-top: 10px; }
.card p { color: var(--ink-2); }
.card__icon { width: 64px; height: 64px; border-radius: 20px; background: var(--c); display: grid; place-items: center; transition: transform .5s var(--ease); }
.card__icon svg { width: 36px; height: 36px; }
.card:hover .card__icon { transform: rotate(-10deg) scale(1.1) translateZ(30px); }
.card__price { margin-top: auto; font-weight: 700; font-size: 15px; color: var(--teal); display: flex; justify-content: space-between; align-items: center; }
.card__price i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--teal); transition: transform .4s var(--ease), background .3s, color .3s; }
.card:hover .card__price i { transform: rotate(-45deg); background: var(--teal); color: var(--paper); }
.card.is-hidden { display: none; }
.card.pop { animation: pop .6s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(20px); } }

/* line-art icons that draw themselves */
.draw path, .draw circle { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s .3s var(--ease); }
.is-in .draw path, .is-in .draw circle { stroke-dashoffset: 0; }

/* ---------- anatomy ---------- */
.anatomy { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.anatomy__copy .muted { margin-top: 18px; }
.anatomy__card { margin-top: 36px; background: var(--cream); border-radius: var(--radius); padding: 28px 30px 24px; border: 1px solid var(--line); position: relative; overflow: hidden; min-height: 210px; }
.anatomy__num { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: .8; color: var(--coral); position: absolute; right: 24px; top: 22px; opacity: .9; }
.anatomy__title { font-family: var(--serif); font-size: 34px; margin-bottom: 12px; }
.anatomy__text { color: var(--ink-2); max-width: 42ch; }
.anatomy__card.swap .anatomy__title, .anatomy__card.swap .anatomy__text, .anatomy__card.swap .anatomy__num { animation: fadeUp .6s var(--ease); }
.anatomy__meter { height: 3px; background: var(--line); border-radius: 3px; margin-top: 22px; overflow: hidden; }
.anatomy__meter span { display: block; height: 100%; width: 100%; background: var(--teal); transform-origin: left; transform: scaleX(0); }
.anatomy__meter.run span { animation: meter 6s linear forwards; }
@keyframes meter { to { transform: scaleX(1); } }
.anatomy__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.anatomy__list button { border: 1.5px solid var(--line); background: transparent; border-radius: 99px; padding: 8px 16px; font-weight: 700; font-size: 14px; transition: .25s; }
.anatomy__list button:hover { border-color: var(--ink); }
.anatomy__list button[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: var(--paper); }

.anatomy { grid-template-columns: .85fr 1.15fr; }
@property --sx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --sy { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.anatomy__figure { position: relative; width: 100%; perspective: 1200px; }
.xp {
  position: relative; aspect-ratio: 4 / 3; border-radius: 32px; overflow: hidden; isolation: isolate;
  box-shadow: 0 50px 90px -35px rgba(12,60,110,.6), 0 0 0 1px rgba(255,255,255,.6) inset;
  transition: --sx .9s var(--ease), --sy .9s var(--ease), transform .6s var(--ease);
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  background: #2a6fb5;
}
.xp__inner { position: absolute; inset: 0; animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.09) translate(-1%, -1%); } }
.xp__img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }

/* spotlight: everything dims except a soft circle around the selected part */
.xp__dim {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at var(--sx) var(--sy), transparent 0, transparent 9%, rgba(6,22,40,.5) 24%, rgba(6,22,40,.62) 60%);
  transition: opacity .5s;
}
.xp.is-lens .xp__dim { opacity: .35; }

/* periodic light sweep */
.xp__sweep { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.xp__sweep::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 30%; left: -40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg); animation: xpSweep 7s ease-in-out infinite;
}
@keyframes xpSweep { 0%, 60% { left: -40%; } 100% { left: 130%; } }

/* hotspots sit exactly on the photo's own label dots */
.xp__spots { position: absolute; inset: 0; z-index: 4; }
.xp__dot {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.95); box-shadow: 0 0 0 4px rgba(255,255,255,.28), 0 0 18px rgba(191,245,230,.9);
  transition: transform .35s var(--ease), background .3s, box-shadow .3s; z-index: 5;
}
.xp__dot::before, .xp__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); animation: ping 2.4s ease-out infinite; }
.xp__dot::after { animation-delay: 1.2s; }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.xp__dot:hover, .xp__dot:focus-visible { transform: scale(1.25); outline: none; }
.xp__dot.is-active { background: var(--coral); transform: scale(1.35); box-shadow: 0 0 0 5px rgba(255,122,89,.35), 0 0 28px rgba(255,122,89,.95); }
.xp__dot.is-active::before, .xp__dot.is-active::after { border-color: var(--coral); }
.xp__tag {
  position: absolute; z-index: 6; transform: translate(-50%, calc(-100% - 22px)); pointer-events: none;
  background: rgba(255,253,249,.92); backdrop-filter: blur(8px); color: var(--ink); font-weight: 800; font-size: 14px;
  padding: 7px 14px; border-radius: 99px; white-space: nowrap; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
  left: var(--sx); top: var(--sy); transition: opacity .3s;
}
.xp__tag::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.xp.is-lens .xp__tag { opacity: 0; }

/* magnifying lens */
.xp__lens {
  position: absolute; z-index: 7; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%; pointer-events: none;
  background-image: url("images/tooth-anatomy.webp"); background-repeat: no-repeat;
  box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 0 7px rgba(15,94,91,.5), 0 25px 50px -10px rgba(0,0,0,.6), inset 0 0 30px rgba(0,0,0,.25);
  opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease);
}
.xp.is-lens .xp__lens { opacity: 1; transform: scale(1); }
.xp__hint { position: absolute; z-index: 6; left: 16px; bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff; background: rgba(6,22,40,.55); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 99px; transition: opacity .3s; }
.xp.is-lens .xp__hint { opacity: 0; }
@media (hover: none) { .xp__lens { display: none; } .xp__hint { display: none; } }
.anatomy__list { gap: 6px; }
.anatomy__list button { padding: 7px 14px; font-size: 13px; }

/* ---------- compare ---------- */
.smile { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.smile__copy p { margin-top: 20px; max-width: 44ch; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks li::before { content: "✓"; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; }

.compare { position: relative; aspect-ratio: 1200/628; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); user-select: none; }
.compare__img { position: absolute; inset: 0; }
.compare__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compare__img--after::after { /* soft glint sweeping across the whitened smile */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%; animation: glint 4.5s ease-in-out infinite;
}
@keyframes glint { 0% { background-position: 150% 0; } 60%, 100% { background-position: -50% 0; } }
.compare__img--after { clip-path: inset(0 0 0 var(--pos)); }
.shine path { transform-box: fill-box; transform-origin: center; animation: twinkle 2s ease-in-out infinite; }
.shine path:nth-child(2) { animation-delay: .6s; }
.shine path:nth-child(3) { animation-delay: 1.2s; }
.compare__tag { position: absolute; top: 16px; left: 16px; background: rgba(16,35,42,.75); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; letter-spacing: .06em; text-transform: uppercase; }
.compare__tag--after { left: auto; right: 16px; background: var(--coral); color: var(--ink); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 22px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.compare.hint .compare__handle span { animation: nudge 1.4s ease-in-out 2; }
@keyframes nudge { 25% { transform: translate(-80%, -50%); } 75% { transform: translate(-20%, -50%); } }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--teal), var(--coral)); transform-origin: left; transform: scaleX(var(--p, 0)); height: 3px; }
.step { padding: 30px 26px 34px 0; position: relative; }
.step::before { content: ""; position: absolute; top: -7px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 3px solid var(--line); z-index: 1; transition: background .4s, border-color .4s, transform .4s var(--ease); }
.step.is-lit::before { background: var(--coral); border-color: var(--coral); transform: scale(1.2); }
.step__n { font-family: var(--serif); font-style: italic; font-size: 56px; color: var(--coral); line-height: 1; display: block; margin-bottom: 18px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 16px; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member { margin: 0; }
.member__avatar {
  aspect-ratio: 4/5; border-radius: 200px 200px var(--radius) var(--radius); background: var(--bg);
  display: grid; place-items: center; overflow: hidden; position: relative; transition: border-radius .6s var(--ease);
}
.member__avatar::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(16,35,42,.25); animation: spin 30s linear infinite; }
.member__avatar::after { content: "✦"; position: absolute; top: 18%; right: 18%; font-size: 22px; color: var(--paper); transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease); }
.member__avatar span { font-family: var(--serif); font-size: 64px; font-style: italic; color: var(--ink); position: relative; transition: transform .6s var(--ease); }
.member:hover .member__avatar { border-radius: var(--radius) var(--radius) 200px 200px; }
.member:hover .member__avatar span { transform: scale(1.15) rotate(-6deg); }
.member:hover .member__avatar::after { transform: scale(1) rotate(0); }
.member figcaption { margin-top: 16px; }
.member strong { display: block; font-size: 19px; }
.member small { color: var(--ink-2); font-size: 15px; }

/* ---------- quotes ---------- */
.quotes { max-width: 900px; position: relative; }
.quotes__mark { position: absolute; top: -90px; left: -20px; font-family: var(--serif); font-size: 260px; line-height: 1; color: var(--coral); opacity: .18; pointer-events: none; }
.quotes__track { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(20px); filter: blur(6px); transition: opacity .7s, transform .7s var(--ease), filter .7s; pointer-events: none; }
.quote.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.quote p { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.25; letter-spacing: -.01em; }
.quote footer { margin-top: 24px; color: var(--ink-2); }
.quotes__nav { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.quotes__dots { display: flex; gap: 8px; }
.quotes__dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: var(--line); transition: width .3s, background .3s; }
.quotes__dots button.is-active { width: 34px; background: var(--coral); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; perspective: 1000px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; background: var(--cream); position: relative; transition: transform .5s var(--ease), opacity .8s var(--ease), box-shadow .3s; }
.plan:hover { box-shadow: var(--shadow); }
.plan h3 { font-size: 22px; }
.plan__price { font-family: var(--serif); font-size: 60px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.plan__price span { font-size: 28px; vertical-align: top; margin-right: 2px; }
.plan__price small { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "✦"; position: absolute; left: 0; color: var(--coral); }
.plan--featured { background: var(--teal); color: var(--paper); border-color: var(--teal); overflow: hidden; }
.plan--featured::after { /* moving sheen */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-20deg); animation: sheen 4s ease-in-out infinite; pointer-events: none;
}
@keyframes sheen { 60%, 100% { left: 130%; } }
.plan--featured .plan__price small { color: rgba(255,255,255,.7); }
.plan--featured li::before { color: var(--sun); }
.plan--featured .btn { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.plan__badge { position: absolute; top: 18px; right: 20px; background: var(--coral); color: var(--ink); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 6px 14px; border-radius: 99px; transform: rotate(4deg); animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(4deg); } 85% { transform: rotate(-4deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(0); } }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq .muted { margin-top: 20px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 24px 50px 24px 0; font-weight: 700; font-size: 20px; position: relative; transition: color .2s, padding .3s var(--ease); }
.accordion summary:hover { color: var(--teal); padding-left: 8px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 20px; font-weight: 400; transition: transform .3s, background .3s; }
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--coral); border-color: var(--coral); }
.accordion details p { padding: 0 50px 24px 0; color: var(--ink-2); }
.accordion details[open] p { animation: fadeUp .5s var(--ease); }

/* ---------- booking ---------- */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.info { margin: 40px 0 0; display: grid; gap: 22px; }
.info div { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); }
.info dt { font-weight: 700; color: var(--mint); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.info dd { margin: 0; color: rgba(255,253,249,.8); }
.info a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }

.form { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); position: relative; z-index: 1; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field select {
  font: inherit; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--cream); color: var(--ink); width: 100%;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(15,94,91,.12); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--coral); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; }
.pills span { display: inline-block; padding: 10px 18px; border-radius: 99px; border: 2px solid var(--line); font-weight: 600; font-size: 15px; cursor: pointer; transition: .2s; }
.pills input:checked + span { background: var(--teal); color: #fff; border-color: var(--teal); }
.pills input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.form .btn { grid-column: 1 / -1; margin-top: 8px; }
.form__note { grid-column: 1 / -1; font-weight: 600; min-height: 1.6em; color: var(--teal) !important; }
.form__note.is-error { color: #C2410C !important; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 40px 0 36px; border-top: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.footer__big { font-family: var(--serif); font-size: clamp(64px, 14vw, 200px); line-height: .95; letter-spacing: -.04em; font-weight: 600; }
.footer__big .ch { display: inline-block; transition: transform .5s var(--ease), color .3s; }
.footer__big .ch:hover { transform: translateY(-14%) rotate(-6deg); color: var(--coral); }
.footer__big.wave-on .ch { animation: letterWave 1.4s var(--ease) calc(var(--i) * 60ms); }
@keyframes letterWave { 40% { transform: translateY(-16%); } }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 40px; color: rgba(255,253,249,.6); font-size: 15px; }
.footer__row nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__row a { text-decoration: none; }
.footer__row a:hover { color: var(--coral); }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 180; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid, .smile, .faq, .book, .anatomy { grid-template-columns: 1fr; }
  .hero__art { margin: 20px auto 0; max-width: 440px; }
  .cards, .plans { grid-template-columns: repeat(2, 1fr); }
  .steps, .team { grid-template-columns: repeat(2, 1fr); }
  .steps::before, .steps::after { display: none; }
  .step { border-top: 2px solid var(--line); }
  .step::before { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; gap: 0; background: var(--cream);
    padding: 8px 20px 20px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2);
    transform: translateY(-16px); opacity: 0; z-index: 49; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s;
  }
  .nav.is-open { background: var(--cream); }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav__toggle { display: block; }
  .nav .btn--small { margin-left: auto; }
  .section { padding: 84px 0; }
  .cards, .plans, .steps { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr; padding: 26px; }
  .tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs button { white-space: nowrap; }
  .glass { font-size: 12px; padding: 8px 12px 8px 8px; }
  .glass strong { font-size: 13px; }
  .glass__ring { width: 34px; height: 34px; }
  .glass--a { right: -2%; }
  .glass--b { display: none; }
  .glass--c { left: 30%; }
  .hero__stats { gap: 26px; }
  .anatomy__num { font-size: 48px; }
  .quotes__mark { font-size: 180px; top: -60px; }
}
@media (max-width: 420px) {
  .nav .btn--small { display: none; }
  .nav__toggle { margin-left: auto; }
}

/* ---------- flying guide: the super tooth follows you down the page ---------- */
.flyer { position: fixed; left: 0; top: 0; width: 84px; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .35s; will-change: transform; }
.flyer.is-ready { opacity: 1; }
.flyer__body { transition: transform .35s var(--ease); }
.flyer.is-out .flyer__body svg { animation: hop .5s cubic-bezier(.3,1.7,.5,1); }
@keyframes hop { 40% { transform: translateY(-6px) scale(1.12, .9); } }
.flyer.is-left .flyer__body { transform: scaleX(-1); }
.flyer__body svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 16px 18px rgba(23,59,102,.28)); }
.flyer path, .flyer g, .flyer rect { transform-box: fill-box; }
.flyer .fl-tilt { transform-origin: 50% 50%; }
.flyer .m-cape { animation-duration: .55s; }
.flyer.is-flying .m-cape { animation-duration: .18s; }
.flyer .fl-trail { opacity: 0; transition: opacity .3s; }
.flyer.is-flying .fl-trail { opacity: 1; }
.flyer__bubble {
  position: absolute; bottom: 92%; left: 50%; z-index: 2; pointer-events: none;
  padding: 5px 11px; border-radius: 14px; border: 2px solid #173B66; background: #fff; color: #173B66;
  font: 800 12px/1.2 var(--sans); white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(23,59,102,.55);
  opacity: 0; transform: translate(calc(-50% + var(--bx, 0px)), 10px) scale(.6); transform-origin: 50% 100%;
  transition: opacity .25s, transform .45s cubic-bezier(.3,1.6,.5,1);
}
.flyer__bubble::after { content: ""; position: absolute; left: calc(50% - var(--bx, 0px)); bottom: -9px; width: 14px; height: 14px; background: #fff; border-right: 2.5px solid #173B66; border-bottom: 2.5px solid #173B66; transform: translateX(-50%) rotate(45deg); }
.flyer.is-talking .flyer__bubble { opacity: 1; transform: translate(calc(-50% + var(--bx, 0px)), 0) scale(1); }
.flyer__bubble::after { width: 10px; height: 10px; bottom: -7px; border-width: 2px; }
.flyer__heart { position: absolute; left: 62%; top: 4%; color: #FF7A9C; font-size: 14px; opacity: 0; pointer-events: none; }
.flyer__heart--2 { left: 24%; font-size: 10px; }
.flyer.is-talking .flyer__heart { animation: heartUp 2.2s ease-out infinite; }
.flyer.is-talking .flyer__heart--2 { animation-delay: 1.1s; }
@keyframes heartUp { 0% { opacity: 0; transform: translateY(6px) scale(.4); } 20% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-26px) scale(.8) rotate(12deg); } }
@media (max-width: 760px) { .flyer { width: 62px; } .flyer__bubble { font-size: 11px; padding: 4px 9px; } }
@media (prefers-reduced-motion: reduce) { .flyer { display: none; } }

/* flying tooth pulls the before/after slider from just below the photo */
.flyer .fl-rope, .flyer .fl-face-strain, .flyer .fl-face-joy, .flyer .fl-pull-arms { opacity: 0; transition: opacity .2s; }
.flyer.is-pull:not(.is-yay) .fl-rope, .flyer.is-pull:not(.is-yay) .fl-face-strain, .flyer.is-pull:not(.is-yay) .fl-pull-arms { opacity: 1; }
.flyer.is-pull:not(.is-yay) .fl-face-normal, .flyer.is-pull:not(.is-yay) .fl-arm { opacity: 0; }
.flyer.is-yay .fl-face-joy { opacity: 1; }
.flyer.is-yay .fl-face-normal { opacity: 0; }
.flyer.is-pull:not(.is-yay):not(.is-flying) .fl-tilt { animation: strain .16s ease-in-out infinite alternate; }
@keyframes strain { from { transform: rotate(13deg) translateX(-2px); } to { transform: rotate(18deg) translateX(2px); } }
.flyer.is-pull:not(.is-yay) .m-cape { animation-duration: .22s; }
.flyer.is-pull:not(.is-yay) .flyer__heart { display: none; }
.flyer .fl-sweat path { opacity: 0; animation: sweat 1.1s ease-in infinite; }
.flyer .fl-sweat path:nth-child(2) { animation-delay: .5s; }
@keyframes sweat { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translate(12px, 26px); } }
.flyer.is-yay:not(.is-flying) .fl-tilt { animation: yay .9s cubic-bezier(.4,0,.3,1) infinite; }
@keyframes yay { 0%, 100% { transform: translateY(0) scale(1.06, .94); } 40% { transform: translateY(-24px) scale(.96, 1.05); } 70% { transform: translateY(0) scale(1.04, .96); } }
/* while pulling, the bubble sits beside the tooth so nothing covers the photo */
.flyer.is-pull .flyer__bubble { bottom: auto; top: 30%; left: auto; right: 96%; transform-origin: 100% 50%; transform: scale(.6); }
.flyer.is-pull.is-talking .flyer__bubble { transform: none; }
.flyer.is-pull .flyer__bubble::after { left: auto; right: -7px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
.flyer.is-pull.is-bubble-right .flyer__bubble { right: auto; left: 96%; transform-origin: 0 50%; }
.flyer.is-pull.is-bubble-right .flyer__bubble::after { right: auto; left: -7px; transform: translateY(-50%) rotate(135deg); }
.compare.is-tugged .compare__handle span { animation: tug .32s ease-in-out infinite alternate; }
@keyframes tug { from { transform: translate(-50%, -50%); } to { transform: translate(-58%, -50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader { display: none; }
  .intro, .reveal { opacity: 1; transform: none; }
  .line > span { transform: none; }
  .underline::after { transform: none; }
  .draw path, .draw circle { stroke-dashoffset: 0; }
}
