/* ==========================================================================
   Dental Studio Jevtić — luxury 3D landing
   ========================================================================== */

:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --ink: #f4efe6;
  --ink-dim: rgba(244, 239, 230, .68);
  --ink-faint: rgba(244, 239, 230, .42);
  --gold: #d9b46a;
  --gold-hi: #f1dba6;
  --gold-lo: #a67c37;
  --line: rgba(217, 180, 106, .22);
  --glass-a: rgba(255, 255, 255, .075);
  --glass-b: rgba(255, 255, 255, .02);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Playfair Display", "Bodoni Moda", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
svg use { pointer-events: none; }

.container { width: min(1280px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Fixed layers ---------- */
#bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, #12203a 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(166, 124, 55, .14), transparent 70%),
    var(--bg);
}
.scene-scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(7, 11, 20, .55) 100%);
}
main, .footer { position: relative; z-index: 2; }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 120;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi));
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(241, 219, 166, .6);
}

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 130; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold-hi); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(241, 219, 166, .6);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor.is-hover .cursor__ring { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: rgba(217, 180, 106, .12); border-color: var(--gold-hi); }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #0f1b33, var(--bg) 70%);
}
.preloader__inner { text-align: center; display: grid; gap: 18px; justify-items: center; }
.preloader__tooth { width: 84px; height: 84px; color: var(--gold); filter: drop-shadow(0 0 24px rgba(217, 180, 106, .5)); }
.preloader__tooth path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.preloader__brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .08em; }
.preloader__brand em { color: var(--gold); font-style: italic; }
.preloader__bar { width: 200px; height: 1px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transform: scaleX(0); transform-origin: 0 50%; }
.preloader__count { font-size: .75rem; letter-spacing: .3em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(7, 11, 20, .62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.2rem; letter-spacing: .03em; font-weight: 500; }
.nav__brand svg { width: 28px; height: 28px; color: var(--gold); }
.nav__brand em { color: var(--gold); font-style: italic; font-weight: 400; }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 40px); margin-left: auto; }
.nav__links a { position: relative; font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); padding: 6px 0; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }

.burger { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 100px var(--gutter) 40px;
  background: rgba(7, 11, 20, .94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  clip-path: circle(0% at calc(100% - 42px) 38px); transition: clip-path .8s var(--ease); pointer-events: none;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 42px) 38px); pointer-events: auto; }
.menu a { font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); line-height: 1.3; font-weight: 400; }
.menu a:hover { color: var(--gold-hi); font-style: italic; }
.menu .menu__phone { margin-top: 22px; font-family: var(--sans); font-size: 1.1rem; letter-spacing: .12em; color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 32px; border-radius: 999px; border: 1px solid transparent;
  font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; isolation: isolate; will-change: transform;
  transition: box-shadow .4s, background .4s, border-color .4s, color .4s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { --h: 42px; padding: 0 22px; font-size: .72rem; }
.btn--gold { color: #1a1304; background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); box-shadow: 0 10px 40px -10px rgba(217, 180, 106, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--gold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn--gold:hover::before { transform: translateX(120%); }
.btn--gold:hover { box-shadow: 0 14px 54px -8px rgba(241, 219, 166, .75), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--ghost { color: var(--ink); border-color: rgba(244, 239, 230, .28); background: rgba(255, 255, 255, .03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--gold-hi); background: rgba(217, 180, 106, .1); }
.btn--text { background: none; border: none; padding: 0 6px; color: var(--ink-dim); }
.btn--text:hover { color: var(--gold-hi); }
.btn--text:hover svg { transform: scaleX(-1) translateX(4px) !important; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); padding: 8px 0; border-bottom: 1px solid var(--line); transition: gap .4s var(--ease), border-color .3s; }
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { gap: 18px; border-color: var(--gold-hi); }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: .74rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.eyebrow span { width: 44px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.8vw, 4.3rem); line-height: 1.08; letter-spacing: -.015em; margin-bottom: 26px; }
.h2 em, .hero__title em { font-style: italic; font-weight: 400; background: linear-gradient(120deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lead { font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--ink-dim); max-width: 56ch; font-weight: 300; }
.center { text-align: center; }

/* split-text lines */
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line .ch, [data-split] .ch { display: inline-block; will-change: transform; }
[data-split] em { display: inline; }
[data-split] em .ch { background: linear-gradient(120deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.word { display: inline-block; white-space: nowrap; }

/* glass */
.glass {
  background: linear-gradient(145deg, var(--glass-a), var(--glass-b));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(130%); -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 20px) 0 90px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; will-change: transform, opacity; }
.hero__media video { position: absolute; top: 0; bottom: 0; right: 0; left: 14%; width: 86%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
.hero__media.no-video { display: none; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 20, .75) 0%, rgba(7, 11, 20, .35) 38%, transparent 62%),
    linear-gradient(0deg, var(--bg) 0%, transparent 28%),
    linear-gradient(180deg, rgba(7, 11, 20, .55), transparent 22%);
}
/* when the 3D tooth is the hero (no video), keep text legible */
.hero.no-video::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 11, 20, .6) 0%, rgba(7, 11, 20, .15) 40%, transparent 60%);
}
.hero__content { position: relative; z-index: 2; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7.6vw, 7.4rem); line-height: 1.02; letter-spacing: -.03em; margin: 6px 0 30px; max-width: 14ch; }
.hero__lead { max-width: 52ch; font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 300; color: var(--ink-dim); margin-bottom: 38px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__rating { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-dim); padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero__rating strong { color: var(--ink); font-size: 1.05rem; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }

.scroll-cue { position: absolute; z-index: 2; left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 26px; display: grid; justify-items: center; gap: 10px; font-size: .64rem; letter-spacing: .38em; text-transform: uppercase; color: var(--ink-faint); }
.scroll-cue i { width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(7, 11, 20, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 20px 0; }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: clamp(1.3rem, 2.3vw, 2rem); font-weight: 400; font-style: italic; color: var(--ink-dim); white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--gold); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 14vh, 170px) 0; }
.section__head { margin-bottom: clamp(36px, 6vh, 70px); }
.section__head.center { display: flex; flex-direction: column; align-items: center; }

/* Layouts that leave room for the 3D tooth */
.split { display: grid; grid-template-columns: 1fr; }
@media (min-width: 981px) {
  .split--tooth-right { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .split--tooth-left { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .split--tooth-left > * { grid-column: 2; }
}

/* About */
.ticks { display: grid; gap: 20px; margin: 34px 0 40px; }
.ticks li { display: flex; gap: 18px; align-items: flex-start; }
.ticks svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; color: var(--gold-hi); border: 1px solid var(--line); background: rgba(217, 180, 106, .08); }
.ticks strong { display: block; font-weight: 600; font-size: 1.02rem; }
.ticks span { color: var(--ink-dim); font-size: .95rem; font-weight: 300; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 620px; }
.stat { padding: 22px 20px; border-radius: 18px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; background: linear-gradient(120deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.stat span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); line-height: 1.5; display: block; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; perspective: 1200px; }
.card { position: relative; padding: 30px 28px 32px; overflow: hidden; transform-style: preserve-3d; transition: border-color .4s, box-shadow .4s; will-change: transform; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(241, 219, 166, .16), transparent 60%); opacity: 0; transition: opacity .4s; }
.card:hover { border-color: rgba(241, 219, 166, .5); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(217, 180, 106, .35); }
.card:hover::before { opacity: 1; }
.card__no { position: absolute; top: 22px; right: 26px; font-family: var(--serif); font-size: 1.1rem; color: var(--ink-faint); }
.card__icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 26px; transform: translateZ(40px); filter: drop-shadow(0 0 14px rgba(217, 180, 106, .4)); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.1; margin-bottom: 12px; transform: translateZ(30px); }
.card p { color: var(--ink-dim); font-size: .95rem; font-weight: 300; transform: translateZ(20px); }

/* Process */
.steps { position: relative; display: grid; gap: 34px; margin-top: 40px; padding-left: 46px; max-width: 560px; }
.steps__line { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: rgba(255, 255, 255, .12); }
.steps__line i { display: block; width: 100%; height: 100%; background: linear-gradient(var(--gold-hi), var(--gold-lo)); transform-origin: 50% 0; transform: scaleY(0); box-shadow: 0 0 14px rgba(241, 219, 166, .6); }
.step { position: relative; }
.step__dot { position: absolute; left: -46px; top: 6px; width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; transition: border-color .5s, box-shadow .5s; }
.step__dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); transition: background .5s, transform .5s var(--ease); }
.step.is-on .step__dot { border-color: var(--gold-hi); box-shadow: 0 0 22px rgba(241, 219, 166, .5); }
.step.is-on .step__dot::after { background: var(--gold-hi); transform: scale(1.3); }
.step small { display: block; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.1; margin-bottom: 8px; }
.step p { color: var(--ink-dim); font-weight: 300; }

/* Reviews */
.rating-big { display: flex; align-items: center; gap: 22px; margin-top: 8px; }
.rating-big b { font-family: var(--serif); font-weight: 400; font-size: 5rem; line-height: 1; background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-big .stars svg { width: 22px; height: 22px; }
.rating-big small { display: block; margin-top: 6px; color: var(--ink-dim); letter-spacing: .08em; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0 50px; perspective: 1200px; align-items: stretch; }
.quote { position: relative; padding: 38px 34px 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; transform-style: preserve-3d; will-change: transform; }
.quote--hero { background: linear-gradient(145deg, rgba(217, 180, 106, .18), rgba(255, 255, 255, .03)); border-color: rgba(241, 219, 166, .4); }
.quote__mark { position: absolute; top: 4px; left: 24px; font-family: var(--serif); font-size: 7rem; line-height: 1; color: var(--gold); opacity: .35; }
.quote blockquote { position: relative; font-family: var(--serif); font-size: clamp(1.25rem, 1.6vw, 1.55rem); font-weight: 400; line-height: 1.4; padding-top: 34px; transform: translateZ(26px); }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; color: #1a1304; background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); }
.quote strong { display: block; font-weight: 600; }
.quote small { color: var(--ink-faint); font-size: .78rem; letter-spacing: .04em; }

/* Booking wizard */
.wizard { margin-top: 36px; padding: clamp(22px, 3vw, 38px); max-width: 760px; }
.wizard__steps { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 14px; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); }
.wizard__steps li { transition: color .4s; }
.wizard__steps li.is-active { color: var(--gold-hi); }
.wizard__steps li.is-done { color: var(--ink-dim); }
.wizard__bar { height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; margin-bottom: 30px; }
.wizard__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transform-origin: 0 50%; transform: scaleX(.25); transition: transform .8s var(--ease); }
.wizard__body { position: relative; min-height: 250px; }
.pane { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.pane.is-active { display: block; }
.pane legend { font-family: var(--serif); font-size: clamp(1.4rem, 2.1vw, 1.8rem); font-weight: 400; margin-bottom: 22px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(244, 239, 230, .2); background: rgba(255, 255, 255, .03); font-size: .88rem; color: var(--ink-dim); transition: all .35s var(--ease); }
.chip:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.chip.is-selected { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #1a1304; border-color: transparent; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(217, 180, 106, .7); }
.chips--time .chip { min-width: 84px; text-align: center; font-variant-numeric: tabular-nums; padding-inline: 14px; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.day { display: grid; gap: 2px; justify-items: center; padding: 14px 6px; border-radius: 16px; border: 1px solid rgba(244, 239, 230, .16); background: rgba(255, 255, 255, .03); transition: all .35s var(--ease); }
.day small { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); }
.day b { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; line-height: 1.1; }
.day span { font-size: .7rem; color: var(--ink-dim); letter-spacing: .08em; text-transform: uppercase; }
.day:hover { border-color: var(--gold); transform: translateY(-3px); }
.day.is-closed, .day:disabled { opacity: .35; cursor: not-allowed; }
.day.is-closed:hover, .day:disabled:hover { transform: none; border-color: rgba(244, 239, 230, .16); }
.day.is-selected { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); border-color: transparent; color: #1a1304; box-shadow: 0 12px 30px -10px rgba(217, 180, 106, .7); }
.day.is-selected small, .day.is-selected span { color: rgba(26, 19, 4, .75); }
.hint { margin-top: 18px; font-size: .84rem; color: var(--ink-faint); font-weight: 300; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; display: block; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; padding: 24px 18px 10px; border-radius: 14px; border: 1px solid rgba(244, 239, 230, .2); background: rgba(255, 255, 255, .04); color: var(--ink); font: inherit; outline: none; resize: vertical; transition: border-color .3s, background .3s, box-shadow .3s; }
.field span { position: absolute; left: 18px; top: 17px; pointer-events: none; color: var(--ink-faint); font-size: .95rem; transition: all .3s var(--ease); transform-origin: 0 0; }
.field input:focus, .field textarea:focus { border-color: var(--gold); background: rgba(217, 180, 106, .06); box-shadow: 0 0 0 4px rgba(217, 180, 106, .12); }
.field input:focus + span, .field input:not(:placeholder-shown) + span, .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 7px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.field.is-bad input { border-color: #e0786c; }
.wizard__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
.wizard__err { flex: 1; min-width: 0; text-align: center; font-size: .82rem; color: #f0958a; min-height: 1.2em; }
.wizard.is-done .wizard__foot, .wizard.is-done .wizard__top { display: none; }
.wizard #wizBack[hidden] { visibility: hidden; display: inline-flex; }

.pane--done { text-align: center; padding: 6px 0 4px; }
.pane--done h3 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; margin: 18px 0 10px; }
.done__badge { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #1a1304; background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 0 0 10px rgba(217, 180, 106, .12), 0 0 60px rgba(217, 180, 106, .5); }
.done__badge svg { width: 36px; height: 36px; }
.done__sum { color: var(--ink); font-size: 1.05rem; line-height: 1.8; margin: 8px 0; }
.done__sum b { color: var(--gold-hi); font-weight: 600; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.done__actions .btn { --h: 48px; padding: 0 24px; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; align-items: stretch; }
.contact__info { display: grid; gap: 14px; align-content: start; }
.info { display: flex; align-items: center; gap: 22px; padding: 26px 28px; transition: border-color .4s, transform .4s var(--ease); }
a.info:hover { border-color: var(--gold-hi); }
.info > svg { flex: none; width: 50px; height: 50px; padding: 13px; color: var(--gold-hi); border: 1px solid var(--line); border-radius: 50%; background: rgba(217, 180, 106, .08); }
.info small { display: block; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.info strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.info em { display: block; font-style: normal; font-size: .85rem; color: var(--ink-dim); margin-top: 2px; }
.contact__map { position: relative; overflow: hidden; min-height: 380px; padding: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--gold-hi); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; }
.map-fallback svg { width: 38px; height: 38px; }
.contact__map iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 380px; border: 0; filter: invert(.92) hue-rotate(185deg) saturate(.7) contrast(.95) brightness(.95); }

/* Hours */
.info--hours { align-items: flex-start; }
.hours { flex: 1; min-width: 0; }
.hours__status { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; margin: 2px 0 14px; }
.hours__status::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #6fd09a; box-shadow: 0 0 0 4px rgba(111, 208, 154, .18), 0 0 14px #6fd09a; }
.hours__status.is-closed::before { background: #e0786c; box-shadow: 0 0 0 4px rgba(224, 120, 108, .16), 0 0 14px #e0786c; }
.hours__list { display: grid; gap: 2px; }
.hours__list li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 12px; margin-inline: -12px; border-radius: 10px; font-size: .92rem; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.hours__list b { font-weight: 500; color: var(--ink); }
.hours__list li.is-closed b { color: var(--ink-faint); font-weight: 400; }
.hours__list li.is-today { background: rgba(217, 180, 106, .12); color: var(--gold-hi); }
.hours__list li.is-today b { color: var(--gold-hi); }

/* Footer */
.footer { padding: 46px 0 60px; border-top: 1px solid var(--line); background: rgba(7, 11, 20, .9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; color: var(--ink-dim); font-size: .9rem; }
.footer a:hover { color: var(--gold-hi); }
.footer__copy { color: var(--ink-faint); font-size: .8rem; }

/* Mobile call button */
.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 95; width: 58px; height: 58px; border-radius: 50%; display: none; place-items: center; color: #1a1304; background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 10px 40px rgba(217, 180, 106, .55); }
.fab svg { width: 24px; height: 24px; }
.fab::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--gold); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Reveal initial states (JS adds .js) ---------- */
.js [data-reveal], .js [data-hero] { opacity: 0; transform: translateY(34px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .fab { display: grid; }
  .section { padding: 84px 0; }
  /* On small screens the tooth sits behind the text — add a scrim for legibility */
  .about__text, .services__wrap, .process__wrap, .booking__wrap { position: relative; }
  .about, .services, .process, .booking, .contact, .reviews { background: linear-gradient(180deg, rgba(7, 11, 20, .55), rgba(7, 11, 20, .72)); }
  .hero:not(.no-video) { align-items: flex-start; padding-top: calc(var(--nav-h) + 36svh); background: var(--bg); }
  .hero__media { bottom: auto; height: 62svh; }
  .hero__media video { left: 0; width: 100%; object-position: 52% center; -webkit-mask-image: none; mask-image: none; }
  .hero__veil { background: linear-gradient(180deg, rgba(7, 11, 20, .5) 0%, transparent 22%, transparent 50%, var(--bg) 100%); }
  .hero.no-video::before { background: linear-gradient(180deg, rgba(7, 11, 20, .5), rgba(7, 11, 20, .15) 50%, rgba(7, 11, 20, .6)); }
  .quotes { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .nav__brand { font-size: 1.1rem; }
  .hero { align-items: flex-end; padding-bottom: 110px; }
  .hero:not(.no-video) { padding-bottom: 100px; }
  .hero__title { font-size: clamp(2.7rem, 13vw, 3.4rem); margin-bottom: 20px; }
  .hero__lead { margin-bottom: 26px; }
  .hero__cta { margin-bottom: 28px; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 16px 12px; }
  .stat span { font-size: .62rem; letter-spacing: .06em; }
  .fields { grid-template-columns: 1fr; }
  .wizard__steps { font-size: .56rem; letter-spacing: .12em; }
  .wizard__foot { flex-wrap: wrap; }
  .wizard__err { order: 3; flex-basis: 100%; }
  .rating-big b { font-size: 4rem; }
  .info strong { font-size: 1.55rem; }
  .btn { padding: 0 24px; }
  .hero__cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .marquee__track, .scroll-cue i, .fab::after { animation: none; }
  .js [data-reveal], .js [data-hero] { opacity: 1; transform: none; }
}
