/* ============================================================
   Samridhi Dental Super Speciality Clinic
   Quiet-luxury boutique — ivory, charcoal, whisper of rose
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces — warm ivory, flat */
  --bg:        oklch(0.972 0.004 88);
  --bg-alt:    oklch(0.954 0.007 84);
  --surface:   oklch(0.993 0.002 90);
  --line:      oklch(0.898 0.008 80);
  --line-soft: oklch(0.928 0.006 84);

  /* Ink — warm charcoal */
  --ink:       oklch(0.235 0.012 55);
  --ink-soft:  oklch(0.44 0.014 55);
  --ink-faint: oklch(0.525 0.013 58); /* darkened from 0.575 — was 3.83:1 on bg-alt, now 4.73:1 (WCAG AA) */

  /* Dark surfaces */
  --dark:      oklch(0.235 0.012 55);
  --dark-deep: oklch(0.195 0.010 55);
  --on-dark:   oklch(0.955 0.005 85);
  --on-dark-soft: oklch(0.80 0.008 80);

  /* Accents — the clinic's own logo colors, committed */
  --gold: oklch(0.53 0.075 75); /* darkened from 0.60 — was 3.49:1 on bg-alt, now 4.67:1 (WCAG AA) */
  --gold-on-dark: oklch(0.62 0.075 75); /* separate lighter value for gold-on-dark contexts (footer, CTA) */
  --rose: oklch(0.50 0.17 345);       /* lotus magenta from the logo petals — 6.1:1 on bg */
  --rose-deep: oklch(0.42 0.16 345);  /* button/band surface — on-dark text reads 8.1:1 */
  --rose-soft: oklch(0.93 0.03 345);  /* magenta-tinted wash */
  --plum: oklch(0.23 0.05 345);       /* CTA band — a magenta-warmed dark, gold reads 4.67:1 */
  --leaf: oklch(0.55 0.15 145);       /* lotus leaf green — small non-text signals only */

  /* Type */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape — flat, precise */
  --r-img: 14px;
  --r-panel: 10px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  /* z-scale */
  --z-sticky: 100;
  --z-header: 200;
  --z-drawer: 300;
  --z-top: 400;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.05rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
/* <picture> must fill containers that set their own aspect-ratio and rely on
   object-fit on the img. Scoped deliberately: components that size the picture
   themselves (before/after, case study) must not be caught by this. */
.hero__media picture,
.about__portrait picture,
.feature__media picture,
.menu__frame picture,
.gallery figure picture { width: 100%; height: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 3px; }

::selection { background: var(--rose-soft); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.002em;
  color: var(--ink);
  text-wrap: balance;
}
.h-display { font-size: clamp(2.7rem, 1.6rem + 5vw, 5.4rem); font-weight: 400; }
.h-section { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.4rem); font-weight: 400; }
.h-sub     { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
p { text-wrap: pretty; }
.lede { font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.18rem); color: var(--ink-soft); line-height: 1.75; }
em { font-style: italic; }

/* Tracked kicker — deliberate brand system, used sparingly */
.kicker {
  display: block;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 3.4rem + 6vw, 8.5rem); position: relative; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 58ch; margin-bottom: clamp(2.4rem, 1.8rem + 2.5vw, 4rem); }
.section-head .lede { margin-top: 1.1rem; max-width: 52ch; }

.hairline { border: 0; border-top: 1px solid var(--line); }

/* ---------- Buttons — quiet pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1.75rem; border-radius: var(--r-pill);
  font-weight: 500; font-size: 0.95rem; line-height: 1; letter-spacing: 0.01em;
  border: 1px solid transparent; min-height: 48px;
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--dark { background: var(--rose-deep); color: var(--on-dark); }
.btn--dark:hover { background: oklch(0.36 0.15 345); transform: translateY(-1px); }
.btn--dark .wa-glyph { color: #4fce5d; }
.btn--outline { background: transparent; color: var(--ink); border-color: oklch(0.72 0.01 70); }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--ivory { background: var(--bg); color: var(--ink); }
.btn--ivory:hover { background: var(--surface); transform: translateY(-1px); }
.btn--outline-light { background: transparent; color: var(--on-dark); border-color: oklch(1 0 0 / .3); }
.btn--outline-light:hover { border-color: oklch(1 0 0 / .7); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  padding-block: 1.1rem;
  transition: padding .35s var(--ease-soft);
}
.header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: oklch(0.972 0.004 88 / .88);
  backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .35s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.header.is-stuck { padding-block: 0.7rem; }
.header.is-stuck::after { opacity: 1; border-bottom-color: var(--line-soft); }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* Brand and CTA hold their size; the nav is the flexible element between them,
   otherwise all three shrink and their labels wrap onto two lines. */
.brand, .header__cta { flex: none; }
.brand__name, .brand__sub, .header__call, .header__cta .btn { white-space: nowrap; }

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand__mark { width: 38px; height: 38px; flex: none; object-fit: contain; }
.header .brand__mark { width: 64px; height: 64px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-family: var(--display); font-weight: 500; font-size: 1.06rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.brand__sub { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav > a, .nav__trigger { white-space: nowrap; }
.nav a { position: relative; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: color .25s; padding-block: 0.3rem; }
.nav > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rose); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav > a:hover::after { transform: scaleX(1); }

/* ---------- Treatments dropdown ---------- */
.nav__group { position: relative; display: flex; align-items: center; }
.nav__trigger {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  padding-block: 0.3rem; transition: color .25s;
}
.nav__trigger:hover, .nav__group:hover .nav__trigger { color: var(--ink); }
.nav__trigger svg { width: 0.7rem; height: 0.7rem; transition: transform .3s var(--ease); }
.nav__group:hover .nav__trigger svg,
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: 100%; left: 50%; translate: -50% 0;
  min-width: 15rem; margin-top: 0.7rem; padding: 0.5rem;
  display: grid; gap: 0.1rem; list-style: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-panel); box-shadow: 0 22px 50px oklch(0.35 0.04 30 / 0.16);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
/* A hover bridge stops the menu closing as the pointer crosses the gap */
.nav__group::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 0.9rem; }
.nav__group:hover .nav__menu,
.nav__group:focus-within .nav__menu,
.nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__menu a {
  display: block; padding: 0.6rem 0.8rem; border-radius: 7px;
  font-size: 0.9rem; color: var(--ink-soft); white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav__menu a:hover { background: var(--rose-soft); color: var(--rose-deep); }
.nav__menu a[aria-current="page"] { color: var(--rose-deep); font-weight: 600; }

.header__cta { display: flex; align-items: center; gap: 1.1rem; }
.header__call { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: color .25s; }
.header__call:hover { color: var(--ink); }
.header__cta .btn { padding: 0.75rem 1.4rem; min-height: 44px; font-size: 0.9rem; }

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(7.5rem, 6rem + 7vw, 12rem); padding-bottom: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.hero__grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 1.5rem + 5vw, 5.5rem); align-items: center;
}
.hero h1 { margin-bottom: 1.6rem; max-width: 12ch; }
.hero h1 em { color: var(--rose); }
.hero__lede { max-width: 44ch; margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.9rem; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; font-size: 0.88rem; color: var(--ink-faint); }
.hero__meta .live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink-soft); font-weight: 500; }
.hero__meta .live::before {
  content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--leaf); animation: pulse 2.4s var(--ease-soft) infinite;
}
.hero__meta .sep { color: var(--line); }

.hero__media { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 4.6; }
.hero__media img { width: 100%; height: 106%; object-fit: cover; will-change: transform; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Hero entrance — one rehearsed sequence on load */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-enter] { opacity: 0; transform: translateY(22px); animation: enter 1s var(--ease) forwards; }
  .hero [data-enter="1"] { animation-delay: .05s; }
  .hero [data-enter="2"] { animation-delay: .16s; }
  .hero [data-enter="3"] { animation-delay: .27s; }
  .hero [data-enter="4"] { animation-delay: .38s; }
  .hero [data-enter="5"] { animation-delay: .49s; }
  .hero__media[data-enter] { transform: none; clip-path: inset(4% 4% 4% 4% round 14px); opacity: 0; animation: enter-media 1.3s var(--ease) .2s forwards; }
  @keyframes enter { to { opacity: 1; transform: none; } }
  @keyframes enter-media { to { opacity: 1; clip-path: inset(0 0 0 0 round 14px); } }
}

/* ============================================================
   Trust badges — quiet pills on a band
   ============================================================ */
.badges { border-block: 1px solid oklch(0.89 0.03 345); padding-block: 1.6rem; background: var(--rose-soft); }
.badges__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 0.55rem 1.15rem; font-size: 0.85rem; font-weight: 500; color: var(--ink-soft);
  background: var(--surface);
}
.badge .star { color: var(--gold); }

/* ============================================================
   About — the dentist
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 1.5rem + 5vw, 6rem); align-items: center; }
.about__portrait {
  position: relative;
  border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--bg-alt);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.about__namecard {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.6rem 1.4rem 1.1rem; display: grid; gap: 0.1rem;
  background: linear-gradient(to top, oklch(0.235 0.012 55 / 0.82), transparent);
  color: var(--on-dark);
}
.about__namecard strong { font-family: var(--display); font-weight: 500; font-size: 1.4rem; letter-spacing: 0.01em; }
.about__namecard span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-on-dark); font-weight: 500; }

.about__copy h2 { margin-bottom: 1.2rem; }
.about__quote {
  font-family: var(--display); font-style: italic; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  color: var(--ink-soft); line-height: 1.5;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: 1.3rem; margin-block: 1.8rem;
}
.about__creds { font-size: 0.85rem; color: var(--ink-faint); letter-spacing: 0.04em; margin-bottom: 1.8rem; }
.about__creds b { color: var(--ink-soft); font-weight: 600; }
.about__points { display: grid; gap: 1.05rem; }
.about__points li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.8rem; align-items: baseline; }
.about__points .dash { color: var(--rose); font-weight: 600; }
.about__points b { font-weight: 600; }
.about__points span:last-child { color: var(--ink-soft); }

/* ============================================================
   Tour — cinematic video band
   ============================================================ */
.tour { border-block: 1px solid var(--line-soft); }
.tour .section-head { text-align: center; margin-inline: auto; }

.tour__player {
  position: relative; max-width: 960px; margin-inline: auto;
  border-radius: var(--r-img); overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--dark); box-shadow: 0 30px 70px oklch(0.35 0.04 30 / .14);
}
.tour__player video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--dark);
}
.tour__overlay {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; width: 100%; padding: 0;
  background-image:
    linear-gradient(180deg, oklch(0.15 0.02 40 / .08), oklch(0.1 0.02 40 / .38) 78%),
    var(--poster-img);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  cursor: pointer; transition: opacity .5s var(--ease-soft);
}
.tour__overlay.is-hidden { opacity: 0; pointer-events: none; }
.tour__play {
  width: 5rem; height: 5rem; border-radius: 50%; flex: none;
  background: oklch(1 0 0 / .96); color: var(--ink);
  display: grid; place-items: center;
  transition: transform .4s var(--ease), background-color .3s;
  box-shadow: 0 20px 50px oklch(0 0 0 / .3);
}
.tour__play svg { width: 1.6rem; height: 1.6rem; margin-left: 4px; }
.tour__overlay:hover .tour__play { transform: scale(1.08); background: var(--surface); }
.tour__meta {
  position: absolute; left: 1.6rem; bottom: 1.5rem; right: 1.6rem;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  color: var(--on-dark); pointer-events: none;
}
.tour__meta strong {
  font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.15rem;
  text-shadow: 0 2px 14px oklch(0 0 0 / .45);
}
.tour__meta span {
  font-size: 0.8rem; letter-spacing: 0.08em; color: var(--on-dark-soft);
  text-shadow: 0 2px 10px oklch(0 0 0 / .45);
}
.tour__caption { text-align: center; margin-top: 1.3rem; font-size: 0.86rem; color: var(--ink-faint); }

.testi-video__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.testi-video__player { max-width: none; margin-inline: 0; box-shadow: 0 20px 45px oklch(0.35 0.04 30 / .12); }
.testi-video__player .tour__play { width: 3.8rem; height: 3.8rem; }
.testi-video__player .tour__play svg { width: 1.3rem; height: 1.3rem; }

.hero__tour {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.5rem;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); position: relative;
}
.hero__tour::after {
  content: ""; position: absolute; left: 1.75rem; right: 0; bottom: -0.15rem; height: 1px;
  background: var(--ink-soft); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.hero__tour:hover { color: var(--ink); }
.hero__tour:hover::after { transform: scaleX(1); }
.hero__tour .glyph {
  width: 1.5rem; height: 1.5rem; border-radius: 50%; flex: none;
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--rose);
}
.hero__tour .glyph svg { width: 0.55rem; height: 0.55rem; margin-left: 1px; }

/* ============================================================
   Treatment menu — editorial rows + sticky preview
   ============================================================ */
.menu__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
.menu__list { border-top: 1px solid var(--line); }
.menu__row {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: baseline;
  padding: 1.35rem 0.4rem; border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease), padding-left .3s var(--ease);
  cursor: default;
}
.menu__row:hover { background: var(--surface); padding-left: 0.9rem; }
.menu__row .idx { font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--rose); }
.menu__row h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 500; margin-bottom: 0.25rem; }
.menu__row p { font-size: 0.92rem; color: var(--ink-soft); max-width: 46ch; }

.menu__preview { position: sticky; top: 7rem; }
.menu__frame { position: relative; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-alt); }
.menu__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s var(--ease-soft);
}
.menu__frame img.is-active { opacity: 1; }
.menu__caption { margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-faint); font-style: italic; font-family: var(--display); font-size: 1.02rem; }

/* ============================================================
   Approach — feature rows
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 1.5rem + 5vw, 6rem); align-items: center; scroll-margin-top: 7rem; }
.feature + .feature { margin-top: clamp(4rem, 3rem + 4vw, 7rem); }
.feature:nth-child(even) .feature__media { order: 1; }
.feature__media { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 5 / 4; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feature__media:hover img { transform: scale(1.035); }
.feature h3, .feature h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 400; margin-bottom: 1.1rem; }
.feature__num { display: block; font-family: var(--display); font-style: italic; font-size: 1.05rem; color: var(--rose); margin-bottom: 0.7rem; }
.feature > div > p { color: var(--ink-soft); max-width: 50ch; }
.feature ul { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.feature ul li {
  display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.7rem;
  padding-block: 0.85rem; border-bottom: 1px solid var(--line);
  font-size: 0.95rem; color: var(--ink-soft);
}
.feature ul .dash { color: var(--rose); font-weight: 600; }

/* ============================================================
   Steps — the one true sequence
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); counter-reset: step; }
.step { border-top: 1px solid var(--ink); padding-top: 1.3rem; }
.step__n {
  counter-increment: step;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 1.05rem; color: var(--rose); margin-bottom: 0.9rem; display: block;
}
.step__n::before { content: "0" counter(step); }
.step h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 0.45rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ============================================================
   Gallery
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 12rem; gap: 0.9rem; }
.gallery figure { overflow: hidden; border-radius: var(--r-img); position: relative; }
.gallery figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: oklch(0.42 0.16 345 / 0.14); opacity: 0; transition: opacity .5s var(--ease-soft);
}
.gallery figure:hover::after { opacity: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }

/* ============================================================
   Reviews — editorial quotes
   ============================================================ */
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: clamp(2.4rem, 2rem + 2vw, 4rem); }
.google-line { font-size: 0.88rem; color: var(--ink-soft); font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; }
.google-line .star { color: var(--gold); }

.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.review { border-top: 1px solid var(--line); padding-top: 1.6rem; display: flex; flex-direction: column; gap: 1.4rem; }
.review blockquote {
  font-family: var(--display); font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.5; color: var(--ink); font-weight: 500;
}
.review blockquote::before { content: "“"; color: var(--rose); }
.review blockquote::after { content: "”"; color: var(--rose); }
.review__who { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.review__who .mono {
  width: 2.7rem; height: 2.7rem; border-radius: 50%; flex: none;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-family: var(--display); font-style: italic; font-size: 1.05rem; color: var(--ink-soft);
  background: var(--surface);
}
.review__who strong { display: block; font-size: 0.92rem; font-weight: 600; }
.review__who span { font-size: 0.8rem; color: var(--ink-faint); }

/* ============================================================
   Visit — hours + map
   ============================================================ */
.visit__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: stretch; }
.visit__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
}
.visit__card .h-sub { font-weight: 500; }
.hours-list { margin: 1.4rem 0 1.8rem; border-top: 1px solid var(--line); }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.93rem; }
.hours-list .day { font-weight: 500; }
.hours-list .time { color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.hours-list li.is-today .day {
  background: var(--rose-soft); color: var(--rose-deep);
  padding: 0.05rem 0.7rem; border-radius: var(--r-pill);
}
.hours-list li.is-today .day::after {
  content: "· today"; font-style: italic; font-family: var(--display);
  margin-left: 0.4rem;
}
.contact-rows { display: grid; gap: 1.1rem; margin-bottom: 1.8rem; }
.contact-row small { display: block; font-size: 0.68rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; margin-bottom: 0.15rem; }
.contact-row a, .contact-row p { font-size: 0.98rem; color: var(--ink); }
.contact-row a:hover { color: var(--rose); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.visit__map { border-radius: var(--r-img); overflow: hidden; min-height: 400px; border: 1px solid var(--line); }
.visit__map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; filter: saturate(0.7) contrast(0.98); }

/* ---------- Appointment form (submits via WhatsApp) ---------- */
.appt-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  margin-bottom: clamp(2.4rem, 1.8rem + 2vw, 3.6rem);
}
.appt-card h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); font-weight: 500; margin-bottom: 0.5rem; }
.appt-card > p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 1.7rem; max-width: 60ch; }
.appt-card > p.appt-form__required-note { margin-top: -1.3rem; margin-bottom: 1.3rem; font-size: 0.8rem; color: var(--ink-faint); }
.req { color: var(--rose); }

.appt-form { display: grid; gap: 1.1rem; }
.appt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.appt-form .field { display: grid; gap: 0.45rem; }
.appt-form label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.appt-form input, .appt-form select, .appt-form textarea {
  font: inherit; font-size: 0.96rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: 0.8rem 1rem; width: 100%; transition: border-color .25s var(--ease);
}
.appt-form input:focus, .appt-form select:focus, .appt-form textarea:focus { border-color: var(--rose); }
.appt-form input:focus-visible, .appt-form select:focus-visible, .appt-form textarea:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.appt-form textarea { resize: vertical; min-height: 5rem; }
.appt-form__submit { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.appt-form__note { font-size: 0.82rem; color: var(--ink-faint); }

@media (max-width: 620px) {
  .appt-form__row { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.4rem 0.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  transition: color .25s;
}
.faq summary:hover { color: var(--rose); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: none; width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  color: var(--rose); transition: transform .4s var(--ease), color .3s;
}
.faq details[open] summary .plus { transform: rotate(135deg); color: var(--rose); }
.faq summary .plus svg { width: 0.95rem; height: 0.95rem; }
.faq .faq__a { overflow: hidden; }
.faq .faq__a p { padding: 0 0.2rem 1.5rem; color: var(--ink-soft); max-width: 62ch; }

/* ============================================================
   CTA — flat espresso band
   ============================================================ */
.cta { background: var(--plum); color: var(--on-dark); text-align: center; }
.cta__lede {
  display: block; font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); color: var(--gold-on-dark); margin-bottom: 0.9rem;
}
.cta h2 { color: var(--on-dark); font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4rem); font-weight: 400; margin-bottom: 1.2rem; }
.cta h2 em { color: oklch(0.82 0.09 345); }
.cta p { color: var(--on-dark-soft); max-width: 46ch; margin: 0 auto 2.4rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--dark-deep); color: var(--on-dark-soft); padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer .brand__name { color: var(--on-dark); }
.footer .brand__sub { color: var(--gold-on-dark); }
.footer__about { margin-top: 1.2rem; font-size: 0.92rem; line-height: 1.7; max-width: 30ch; }
.footer h4 {
  font-family: var(--body); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.24em; color: oklch(0.62 0.01 70); margin-bottom: 1.2rem; font-weight: 600;
}
.footer ul { display: grid; gap: 0.7rem; }
.footer ul a, .footer ul li { font-size: 0.92rem; color: var(--on-dark-soft); }
.footer ul a:hover { color: var(--on-dark); }
.footer__bottom {
  margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid oklch(1 0 0 / .09);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.82rem; color: oklch(0.64 0.01 70); /* 4.24:1 on dark footer bumped to clear WCAG AA 4.5:1 */
}
.footer__social { display: flex; gap: 0.6rem; }
.footer__social a {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid oklch(1 0 0 / .16); transition: border-color .3s, color .3s;
}
.footer__social a:hover { border-color: oklch(1 0 0 / .5); color: var(--on-dark); }
.footer__social svg { width: 1.05rem; height: 1.05rem; }

/* ============================================================
   Mobile sticky bar
   ============================================================ */
.mobile-bar { display: none; }

/* ============================================================
   Scroll reveals — quiet
   ============================================================ */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-reveal="2"] { transition-delay: .1s; }
.js [data-reveal][data-reveal="3"] { transition-delay: .2s; }

/* Reveals depend on scroll-triggered IntersectionObserver callbacks, which
   never fire for content a user never scrolls to (printing, "Save as PDF",
   headless screenshot tools) — always show content in that case. */
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

.js [data-reveal] .feature__media img,
.js [data-reveal] .gallery img { transform: scale(1.08); transition: transform 1.4s var(--ease); }
.js [data-reveal].is-in .feature__media img,
.js [data-reveal].is-in .gallery img { transform: scale(1); }

.js [data-reveal] .tour__player { transform: scale(0.97); transition: transform 1.1s var(--ease); }
.js [data-reveal].is-in .tour__player { transform: scale(1); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero__media { max-width: 560px; aspect-ratio: 4 / 3; }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 420px; }
  .menu__grid { grid-template-columns: 1fr; }
  .menu__preview { display: none; }
  .visit__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .feature__media { max-width: 560px; }
}

/* Between the full nav and the drawer the header gets tight: drop the phone
   number first (the Book button and the sticky mobile bar still cover contact). */
@media (max-width: 1200px) {
  .header__call { display: none; }
}

/* Below this the full nav can't fit alongside the brand and CTA, so switch to
   the drawer rather than let the header squeeze. */
@media (max-width: 1020px) {
  /* Keep the header (and its toggle) above the drawer so the close ✕ is visible */
  .header { z-index: var(--z-top); }
  .nav, .header__call, .header__cta .btn { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
    position: relative; z-index: 1;
  }
  .nav-toggle svg { width: 1.3rem; height: 1.3rem; }
  .nav-toggle .x { display: none; }
  .nav-toggle[aria-expanded="true"] { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--on-dark); }
  .nav-toggle[aria-expanded="true"] .menu { display: none; }
  .nav-toggle[aria-expanded="true"] .x { display: block; }

  .drawer {
    position: fixed; inset: 0; z-index: var(--z-drawer); background: var(--bg);
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--gutter); transform: translateX(100%); transition: transform .45s var(--ease); visibility: hidden;
  }
  .drawer.is-open { transform: none; visibility: visible; }
  .drawer a {
    font-family: var(--display); font-size: 2rem; font-weight: 400; padding: 0.75rem 0;
    color: var(--ink); border-bottom: 1px solid var(--line);
  }
  .drawer a:last-of-type { border-bottom: 0; }
  .drawer .btn { margin-top: 1.5rem; font-size: 1rem; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 10rem; }
  .gallery .g-wide { grid-column: span 2; }

  .mobile-bar {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky);
    background: oklch(0.985 0.003 88 / .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding: 0.65rem 0.75rem; gap: 0.65rem;
  }
  .mobile-bar .btn { flex: 1; }
  body { padding-bottom: 4.7rem; }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .badges__row { gap: 0.55rem; }
  .badge { font-size: 0.8rem; padding: 0.5rem 0.95rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .menu__row { grid-template-columns: 2.2rem 1fr; }
  .tour__play { width: 4rem; height: 4rem; }
  .tour__play svg { width: 1.3rem; height: 1.3rem; }
  .tour__meta { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}

@media (min-width: 1021px) { .drawer { display: none; } }

/* ============================================================
   Wedding Smile Package
   ============================================================ */
.promo-band {
  background: var(--rose-deep);
  padding-block: clamp(2.4rem, 1.9rem + 2.5vw, 3.6rem);
}
.promo-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem 2.5rem;
}
.promo-band__copy { max-width: 56ch; }
.promo-band h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 400; margin-bottom: 0.5rem; color: var(--on-dark); }
.promo-band p { color: oklch(0.88 0.035 345); font-size: 0.96rem; }

@media (min-width: 1021px) {
  .hero--wedding .hero__grid { grid-template-columns: 1.2fr 0.8fr; }
}
.tour__player--vertical { width: 100%; aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
.tour__player--vertical .tour__play { width: 3.8rem; height: 3.8rem; }
.tour__player--vertical .tour__play svg { width: 1.25rem; height: 1.25rem; }
.tour__player--vertical .tour__meta { left: 1.2rem; right: 1.2rem; bottom: 1.1rem; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.tour__player--vertical .tour__meta strong { font-size: 1.02rem; }

.wedding-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 1.5rem + 2vw, 4rem); }

.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(2rem, 1.5rem + 2vw, 3rem); }
.package { border-top: 1px solid var(--ink); padding-top: 1.4rem; }
.package .kicker { margin-bottom: 0.8rem; }
.package h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.7rem; }
.package p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 1.2rem; }
.package ul { display: grid; gap: 0.6rem; }
.package ul li { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.6rem; font-size: 0.92rem; color: var(--ink-soft); }
.package ul .dash { color: var(--rose); font-weight: 600; }

@media (max-width: 1020px) {
  .wedding-menu { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 620px) {
  .promo-band__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Treatment-page feature lists ---------- */
.feature-list { display: grid; gap: 1.05rem; }
.feature-list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.7rem; align-items: baseline; }
.feature-list .dash { color: var(--rose); font-weight: 600; }
.feature-list b { font-weight: 600; color: var(--ink); }
.feature-list span:last-child { color: var(--ink-soft); }

/* ---------- Case story quote ---------- */
.story-card {
  max-width: 820px; margin-inline: auto;
  border-left: 0; border-top: 3px solid var(--rose);
  background: var(--surface); border-radius: var(--r-panel);
  padding: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem);
  box-shadow: 0 24px 60px oklch(0.42 0.16 345 / 0.08);
}
.story-card blockquote p {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem); line-height: 1.55; color: var(--ink);
}
.story-card__by { margin-top: 1.4rem; font-size: 0.9rem; color: var(--ink-faint); font-weight: 500; }

/* ---------- Before / after case ---------- */
.beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 0.6rem + 2vw, 2rem); }
.beforeafter__item { margin: 0; }
.beforeafter__item picture { display: block; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 18px 44px oklch(0.35 0.04 30 / 0.12); }
.beforeafter__item img { width: 100%; height: 100%; object-fit: cover; }
.beforeafter__item figcaption { margin-top: 0.9rem; font-size: 0.9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.6rem; }
.beforeafter__tag {
  display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: var(--r-pill);
  background: oklch(0.92 0.02 30); color: var(--ink-soft);
}
.beforeafter__tag--after { background: var(--rose-soft); color: var(--rose-deep); }
.beforeafter__note { text-align: center; margin-top: 1.4rem; font-size: 0.82rem; color: var(--ink-faint); font-style: italic; }

@media (max-width: 620px) {
  .beforeafter { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- Multi-angle clinical case study (before | after) ---------- */
.case-study {
  max-width: 900px; margin-inline: auto;
  display: grid; gap: clamp(1.2rem, 0.9rem + 1vw, 1.9rem);
}
/* Before / After column headers, shown once above all views */
.case-study__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.7rem, 0.4rem + 1.2vw, 1.2rem);
  justify-items: center;
}
.case-view { margin: 0; display: grid; gap: 0.6rem; }
.case-view__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint); text-align: center;
}
.case-view__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.7rem, 0.4rem + 1.2vw, 1.2rem); }
.case-view__pair picture {
  display: block; border-radius: var(--r-panel); overflow: hidden;
  background: var(--bg-alt); box-shadow: 0 14px 36px oklch(0.35 0.04 30 / 0.14);
}
.case-view__pair img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   Smile Journey timeline
   ============================================================ */
.journey { position: relative; overflow: hidden; }
.journey__head { text-align: center; margin-inline: auto; }
/* Soft blurred background circles for depth */
.journey__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.journey__bg span {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5;
}
.journey__bg span:nth-child(1) { width: 22rem; height: 22rem; top: -6rem; left: -6rem; background: oklch(0.85 0.09 345 / 0.5); }
.journey__bg span:nth-child(2) { width: 18rem; height: 18rem; bottom: -5rem; right: -4rem; background: oklch(0.88 0.07 145 / 0.4); }
.journey__bg span:nth-child(3) { width: 14rem; height: 14rem; top: 40%; left: 55%; background: oklch(0.9 0.05 75 / 0.35); }
.journey .wrap { position: relative; z-index: 1; }

.journey__track {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem;
  position: relative;
}
/* Progress connector — sits at the badge row */
.journey__line {
  position: absolute; top: 1.6rem; left: 10%; right: 10%; height: 3px;
  background: var(--line); border-radius: 3px; overflow: hidden; z-index: 0;
}
.journey__line-fill {
  display: block; height: 100%; width: calc(var(--fill, 0) * 100%);
  background: linear-gradient(90deg, var(--rose), oklch(0.6 0.16 345));
  transition: width 0.7s var(--ease);
}
.journey__step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.journey__badge {
  width: 3.2rem; height: 3.2rem; flex: none; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.3rem;
  background: var(--rose-deep); color: var(--on-dark);
  font-family: var(--display); font-size: 1.3rem; font-weight: 500;
  box-shadow: 0 8px 22px oklch(0.42 0.16 345 / 0.28);
}
.journey__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: 1.6rem 1.3rem; width: 100%;
  box-shadow: 0 14px 40px oklch(0.35 0.04 30 / 0.07);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.journey__card:hover { transform: translateY(-6px); box-shadow: 0 22px 55px oklch(0.42 0.16 345 / 0.14); }
.journey__icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto 0.9rem;
  border-radius: 50%; background: var(--rose-soft); color: var(--rose-deep);
}
.journey__icon svg { width: 1.5rem; height: 1.5rem; }
/* Gentle pulse every few seconds */
@media (prefers-reduced-motion: no-preference) {
  .journey__icon { animation: journey-pulse 4s var(--ease-soft) infinite; animation-delay: calc(var(--i) * 0.4s); }
}
@keyframes journey-pulse {
  0%, 88%, 100% { transform: scale(1); }
  92% { transform: scale(1.12); }
}
.journey__card h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 0.45rem; }
.journey__card p { font-size: 0.9rem; color: var(--ink-soft); }

/* Reveal: fade up, staggered */
.js .journey__step { opacity: 0; transform: translateY(26px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transition-delay: calc(var(--i) * 0.12s); }
.js .journey__step.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .journey__track { grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
  .journey__card { padding: 1.3rem 0.9rem; }
  .journey__card p { font-size: 0.82rem; }
}
/* Mobile: vertical timeline with left connector */
@media (max-width: 680px) {
  .journey__track { grid-template-columns: 1fr; gap: 1.5rem; }
  .journey__line { top: 1.6rem; bottom: 1.6rem; left: 1.6rem; right: auto; width: 3px; height: auto; }
  .journey__line-fill { width: 100%; height: calc(var(--fill, 0) * 100%); transition: height 0.7s var(--ease); }
  .journey__step { flex-direction: row; align-items: flex-start; text-align: left; gap: 1.1rem; }
  .journey__badge { margin-bottom: 0; }
  .journey__icon { margin: 0 0 0.7rem; }
}

/* ============================================================
   Smile quiz launch band
   ============================================================ */
.quiz-band { background: var(--bg-alt); border-block: 1px solid var(--line-soft); padding-block: clamp(2.4rem, 1.9rem + 2.5vw, 3.4rem); }
.quiz-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem 2.5rem; }
.quiz-band__copy { max-width: 52ch; }
.quiz-band h2 { font-weight: 500; margin-bottom: 0.4rem; }
.quiz-band p { color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 620px) { .quiz-band__inner { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   Modals (native <dialog>): featured popup + quiz
   ============================================================ */
.modal { border: 0; padding: 0; margin: auto; background: transparent; max-width: min(680px, 94vw); width: 100%; color: var(--ink); }
.modal::backdrop { background: oklch(0.2 0.03 345 / 0.5); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative; background: var(--bg); border-radius: var(--r-img);
  padding: clamp(1.6rem, 1.2rem + 2vw, 2.8rem);
  box-shadow: 0 40px 90px oklch(0.2 0.03 345 / 0.4); max-height: 92dvh; overflow-y: auto;
}
@media (prefers-reduced-motion: no-preference) {
  dialog[open] .modal__panel { animation: modal-in 0.42s var(--ease) both; }
  dialog[open]::backdrop { animation: modal-fade 0.42s var(--ease) both; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal__close {
  position: absolute; top: 0.9rem; right: 0.9rem; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.modal__close:hover { color: var(--ink); border-color: var(--ink-soft); transform: rotate(90deg); }
.modal__close svg { width: 1.1rem; height: 1.1rem; }
.modal__eyebrow { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.7rem; }
.modal__head { margin-bottom: 1.6rem; max-width: 34ch; }
.modal__head h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 400; }
.modal__foot { margin-top: 1.6rem; text-align: center; }
.modal__foot .btn { font-size: 0.9rem; }

/* Featured cards */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.featured-card {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.3rem 1.2rem 1.1rem; border-radius: var(--r-panel);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.featured-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 44px oklch(0.42 0.16 345 / 0.16); }
.featured-card__tag { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); }
.featured-card h3 { font-size: 1.15rem; font-weight: 500; }
.featured-card p { font-size: 0.86rem; color: var(--ink-soft); flex: 1; }
.featured-card__go { font-size: 0.85rem; font-weight: 600; color: var(--rose-deep); margin-top: 0.4rem; }
.featured-card:hover .featured-card__go span { margin-left: 0.2rem; }
@media (max-width: 620px) { .featured-grid { grid-template-columns: 1fr; } }

/* Quiz */
.quiz__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.quiz__top .modal__eyebrow { margin-bottom: 0; }
.quiz__progress { flex: 1; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--rose), oklch(0.6 0.16 345)); transition: width 0.4s var(--ease); }
.quiz__count { font-size: 0.8rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.quiz__q { border: 0; padding: 0; margin: 0; display: none; }
.quiz__q.is-active { display: block; animation: quiz-q-in 0.35s var(--ease) both; }
@keyframes quiz-q-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.quiz__q legend { font-family: var(--display); font-size: clamp(1.35rem, 1.15rem + 1vw, 1.8rem); font-weight: 400; margin-bottom: 1.3rem; padding: 0; color: var(--ink); }
.quiz__opts { display: grid; gap: 0.7rem; }
.quiz__opt {
  text-align: left; padding: 1rem 1.2rem; border-radius: var(--r-panel);
  background: var(--surface); border: 1px solid var(--line); font-size: 0.98rem; color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.quiz__opt:hover { border-color: var(--rose); background: var(--rose-soft); transform: translateX(3px); }
.quiz__nav { margin-top: 1.4rem; min-height: 1.5rem; }
.quiz__back { font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); }
.quiz__back:hover { color: var(--rose); }

/* Quiz result */
.quiz-result__lede { color: var(--ink-soft); margin: 0.6rem 0 1.6rem; max-width: 46ch; }
.quiz-result h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 400; }
.quiz-result__cards { display: grid; gap: 0.8rem; margin-bottom: 1.8rem; }
.quiz-rec {
  display: flex; align-items: baseline; gap: 0.9rem; padding: 1.1rem 1.2rem;
  border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); text-align: left;
}
.quiz-rec__num { font-family: var(--display); font-style: italic; color: var(--rose); font-size: 1.05rem; flex: none; }
.quiz-rec h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.2rem; }
.quiz-rec h3 a { color: var(--rose-deep); }
.quiz-rec h3 a:hover { text-decoration: underline; }
.quiz-rec p { font-size: 0.86rem; color: var(--ink-soft); }
.quiz-result__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.quiz-result__disclaimer { margin-top: 1.3rem; font-size: 0.78rem; color: var(--ink-faint); }

/* Floating reopen pill */
.featured-pill {
  position: fixed; left: 1rem; bottom: 1.25rem; z-index: var(--z-sticky);
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 1.15rem; border-radius: var(--r-pill);
  background: var(--rose-deep); color: var(--on-dark); font-size: 0.85rem; font-weight: 500;
  box-shadow: 0 12px 30px oklch(0.42 0.16 345 / 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.featured-pill[hidden] { display: none; } /* author `display` above otherwise beats the UA [hidden] rule */
.featured-pill:hover { transform: translateY(-2px); box-shadow: 0 16px 38px oklch(0.42 0.16 345 / 0.45); }
.featured-pill__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--on-dark); animation: pulse 2.4s var(--ease-soft) infinite; }
@media (max-width: 1020px) { .featured-pill { bottom: 5.2rem; } }

/* Floating Instagram link */
.instagram-fab {
  position: fixed; right: 1rem; bottom: 1.25rem; z-index: var(--z-sticky);
  width: 3.1rem; height: 3.1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--rose-deep); color: var(--on-dark);
  box-shadow: 0 12px 30px oklch(0.42 0.16 345 / 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.instagram-fab svg { width: 1.4rem; height: 1.4rem; }
.instagram-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 38px oklch(0.42 0.16 345 / 0.45); }
@media (max-width: 1020px) { .instagram-fab { bottom: 5.2rem; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js [data-reveal] img { transform: none !important; }
  .js [data-reveal] .tour__player { transform: none !important; }
  .hero [data-enter] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero__media img { transform: none !important; }
  .js .journey__step { opacity: 1 !important; transform: none !important; }
}
