/* =========================================================
   Maison Lumière — single stylesheet
   Sections below are ordered; later blocks refine earlier ones.
   ========================================================= */


/* #################### Base system & sections #################### */
/* =========================================================
   Maison Lumière — Precision Face & Smile Studio
   Editorial beige · frosted glass · charcoal type
   ========================================================= */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ---------- Design tokens (single source) ---------- */
:root {
  /* colour */
  --bg: #f3eee7;
  --bg-2: #ebe4da;
  --paper: #fbf8f4;
  --ink: #1f1d1b;
  --ink-2: #5b554e;
  --ink-3: #746c62;
  --line: rgba(31, 29, 27, 0.1);
  --hair: rgba(31, 29, 27, 0.12);
  --accent: #b8976b;        /* champagne */
  --accent-soft: #e6d6bf;
  --champagne: #c9ab7c;
  --bronze: #8c6d46;
  --gold: #a3835b;

  /* surfaces */
  --glass: rgba(251, 248, 244, 0.52);
  --glass-line: rgba(255, 255, 255, 0.65);
  --glass-edge: inset 0 1px 1px 0 rgba(255, 255, 255, 0.65), inset 0 0 0 0.5px rgba(255, 255, 255, 0.5), 0 20px 40px -15px rgba(24, 20, 16, 0.1);
  --shadow: 0 30px 60px -30px rgba(60, 45, 30, 0.35), 0 8px 20px -12px rgba(60, 45, 30, 0.18);
  --grade: saturate(0.5) sepia(0.16) contrast(1.03) brightness(1.03);  /* one photographic grade */

  /* type */
  --serif: "Cormorant Garamond", "Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Helvetica Neue", system-ui, sans-serif;
  --mono: "Plus Jakarta Sans", system-ui, sans-serif;

  /* shape & motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 56px);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
  overflow-x: clip; /* clip, not hidden: never turns body into a scroll container (keeps sticky + scroll lock reliable) */
}
h1, h2, h3, .display, .display-2, .statement-text, .step-q, .d-title { text-wrap: balance; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.display,
.display-2,
.display-3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
}
.display { font-size: clamp(42px, 5.6vw, 84px); }
.display-2 { font-size: clamp(36px, 4.4vw, 64px); max-width: 16ch; }
.display-3 { font-size: 30px; }
.display em, .display-2 em, .statement-text em { font-style: italic; color: var(--ink-2); }

.lede { font-size: 17px; color: var(--ink-2); max-width: 40ch; margin: 18px 0 0; }
.muted { color: var(--ink-2); }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, opacity 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover:not(:disabled) { background: #000; }
.btn-ghost { background: transparent; border-color: rgba(31, 29, 27, 0.18); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 32px));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(251, 248, 244, 0.45);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.is-scrolled { background: rgba(251, 248, 244, 0.78); box-shadow: 0 10px 30px -18px rgba(60, 45, 30, 0.4); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 18%, transparent 40%),
    conic-gradient(from 200deg, var(--accent), #f4e9da, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a { position: relative; transition: color 0.3s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* =========================================================
   1. HERO — split-face wipe
   ========================================================= */
.hero { position: relative; height: 190vh; }
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.compare {
  position: absolute;
  inset: 0;
  user-select: none;
  -webkit-user-select: none;
  background: linear-gradient(135deg, #d9cbb8, #efe6da 50%, #cdbca5); /* fallback if image fails */
  cursor: ew-resize;
}
.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  pointer-events: none;
}
/* Before: a clearly frosted placeholder until a real patient photo is dropped in */
.compare-before.is-placeholder { filter: blur(26px) grayscale(1) sepia(0.22) brightness(1.18) contrast(0.62); transform: scale(1.1); }
.before-note {
  position: absolute;
  z-index: 3;
  left: calc(var(--pos) / 2);
  top: 31%;
  width: min(260px, calc(var(--pos) - 40px));
  transform: translate(-50%, -50%);
  padding: 16px 18px;
  border: 1px dashed rgba(31, 29, 27, 0.32);
  border-radius: 4px;
  background: rgba(250, 248, 244, 0.5);
  text-align: center;
  pointer-events: none;
  transition: opacity 0.3s;
}
.before-note b, .before-note span { text-wrap: balance; }
.before-note b { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.15; color: var(--ink); }
.before-note span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }

/* After: radiant, warm, lifted */
.compare-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
  will-change: clip-path;
}
.compare-after .compare-img { filter: saturate(0.72) sepia(0.16) contrast(1.04) brightness(1.05); }
.after-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 36% at 52% 40%, rgba(255, 236, 214, 0.38), transparent 70%),
    radial-gradient(ellipse 18% 8% at 50% 52%, rgba(255, 255, 255, 0.28), transparent 70%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.compare-tag {
  position: absolute;
  top: 96px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(31, 29, 27, 0.35);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity 0.4s;
}
.tag-left { left: var(--gutter); }
.tag-right { right: var(--gutter); background: rgba(255, 255, 255, 0.55); color: var(--ink); }

/* The glass divider */
.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 0;
  z-index: 4;
  touch-action: none;
  cursor: ew-resize;
}
.divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -7px;
  width: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(8px) brightness(1.1);
  backdrop-filter: blur(8px) brightness(1.1);
  border-inline: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.25);
}
.divider-handle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px -8px rgba(40, 30, 20, 0.45), inset 0 1px 0 #fff;
  transition: transform 0.4s var(--ease);
}
.divider:hover .divider-handle,
.compare.is-dragging .divider-handle { transform: translate(-50%, -50%) scale(1.08); }
.divider-hint {
  position: absolute;
  top: calc(50% + 42px);
  left: 0;
  transform: translateX(-50%);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(31, 29, 27, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.5s;
}
.compare.was-dragged .divider-hint { opacity: 0; }

/* Diagnostic markers */
.markers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.marker:not(.is-revealed) { pointer-events: none; }
.marker.is-revealed { opacity: 1; transform: scale(1); }
.marker-dot {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 0 18px 4px rgba(255, 240, 220, 0.9);
}
.marker-dot::before,
.marker-dot::after {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: ping 2.4s var(--ease) infinite;
}
.marker-dot::after { animation-delay: 1.2s; }
.marker:hover .marker-dot::before,
.marker:hover .marker-dot::after,
.marker:focus-visible .marker-dot::before,
.marker:focus-visible .marker-dot::after { animation-duration: 1.1s; border-color: var(--accent-soft); }

@keyframes ping {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.marker-card {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translate(-6px, -50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px;
  min-width: 150px;
  border-radius: 14px;
  text-align: left;
  white-space: nowrap;
  background: rgba(251, 248, 244, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px -12px rgba(40, 30, 20, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.marker-card small { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.marker-card strong { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.1; color: var(--ink); }
.marker.flip .marker-card { left: auto; right: 30px; transform: translate(6px, -50%); }

/* Cards show once a marker sits in the "after" side, and on hover/focus */
.marker.is-revealed .marker-card,
.marker:hover .marker-card,
.marker:focus-visible .marker-card { opacity: 1; transform: translate(0, -50%); }

/* Hero copy */
.hero-copy {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(24px, 6vh, 64px);
  z-index: 5;
  max-width: 560px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.scroll-cue span {
  width: 1px;
  height: 48px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* =========================================================
   STATEMENT
   ========================================================= */
.statement { padding-block: clamp(96px, 14vw, 180px) clamp(64px, 8vw, 120px); }
.statement-text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 26ch;
}
.stats {
  margin: clamp(56px, 7vw, 96px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stats > div { padding: 28px 24px 0 0; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats > div + div { padding-left: 24px; }
.stats > div:nth-child(2) { transition-delay: 0.08s; }
.stats > div:nth-child(3) { transition-delay: 0.16s; }
.stats > div:nth-child(4) { transition-delay: 0.24s; }
.stats dt { font-family: var(--serif); font-size: clamp(44px, 4.6vw, 68px); line-height: 1; }
.stats dt span { font-size: 0.45em; color: var(--ink-3); margin-left: 4px; }
.stats dd { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }

/* =========================================================
   2. TREATMENT BENTO
   ========================================================= */
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .muted { max-width: 44ch; margin: 20px 0 0; }

.treatments { padding-block: clamp(48px, 6vw, 96px); }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(300px, auto);
  gap: 18px;
}
.card-lg { grid-column: span 2; grid-row: span 2; }
.card-wide { grid-column: span 2; }

.card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  position: relative;
  border-radius: var(--radius);
  cursor: pointer;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease), box-shadow 0.5s var(--ease);
  outline-offset: 4px;
}
.card.is-tilting { transition: transform 0.12s linear, box-shadow 0.5s var(--ease); }
.card:hover { box-shadow: var(--shadow); }

.card-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: inherit;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.75), transparent 45%),
    var(--paper);
  border: 1px solid var(--line);
}
.card-index { font-size: 12px; letter-spacing: 0.18em; color: var(--ink-3); }

.card-ring {
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--angle), transparent 0 55%, var(--accent) 70%, #fff 75%, var(--accent) 80%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.card:hover .card-ring,
.card:focus-visible .card-ring { opacity: 1; animation: spin 3.2s linear infinite; }
@keyframes spin { to { --angle: 360deg; } }

.card-foot { margin-top: auto; transform: translateZ(30px); }
.card-foot h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.card-lg .card-foot h3 { font-size: clamp(32px, 3vw, 44px); }
.card-foot p { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; max-width: 34ch; }

/* ---------- Card art (pure CSS illustrations) ---------- */
.card-art {
  position: relative;
  flex: 1;
  min-height: 120px;
  margin: 18px 0;
  border-radius: 20px;
  transform: translateZ(18px);
  transition: transform 0.8s var(--ease);
}
.card:hover .card-art { transform: translateZ(18px) scale(1.03); }

/* Veneers: a row of porcelain teeth */
.art-veneers {
  background:
    radial-gradient(ellipse 60% 40% at 50% 120%, rgba(184, 151, 107, 0.25), transparent 70%),
    linear-gradient(180deg, #efe6da, #e3d6c4);
}
.art-veneers::before {
  content: "";
  position: absolute;
  inset: 26% 12% 30%;
  border-radius: 6px 6px 40% 40% / 6px 6px 30% 30%;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(16.66% - 3px), rgba(184, 151, 107, 0.35) calc(16.66% - 3px) 16.66%),
    linear-gradient(180deg, #fff, #f6efe5 70%, #eadfce);
  box-shadow: 0 18px 30px -16px rgba(60, 45, 30, 0.45), inset 0 2px 0 #fff;
}
.art-veneers::after {
  content: "";
  position: absolute;
  inset: 24% 12% auto;
  height: 14%;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  filter: blur(6px);
}

/* Aligners: translucent arch */
.art-aligners { background: linear-gradient(160deg, #e9eef0, #dfe6e8); }
.art-aligners::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  aspect-ratio: 1.3;
  transform: translate(-50%, -38%);
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  border: 14px solid rgba(255, 255, 255, 0.65);
  border-bottom: 0;
  box-shadow: 0 0 0 1px rgba(150, 170, 180, 0.35), inset 0 0 0 1px rgba(150, 170, 180, 0.35), 0 16px 30px -18px rgba(40, 60, 70, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Laser: beam over a gum line */
.art-laser {
  background:
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(214, 140, 130, 0.35), transparent 70%),
    linear-gradient(180deg, #f1e7e2, #ead9d2);
  overflow: hidden;
}
.art-laser::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 26%;
  height: 22%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border-top: 2px solid rgba(190, 110, 100, 0.55);
}
.art-laser::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -10%;
  width: 2px;
  height: 72%;
  background: linear-gradient(transparent, #fff 60%, var(--accent));
  box-shadow: 0 0 12px 3px rgba(255, 220, 200, 0.9);
  animation: sweep 4s var(--ease) infinite alternate;
}
@keyframes sweep { from { transform: translateX(-60px) rotate(-6deg); } to { transform: translateX(60px) rotate(6deg); } }

/* Whitening: shade guide */
.art-whitening {
  background:
    linear-gradient(90deg,
      #e8d9bf 0 16%, transparent 16% 20%,
      #efe3cd 20% 36%, transparent 36% 40%,
      #f5ecdc 40% 56%, transparent 56% 60%,
      #faf5ec 60% 76%, transparent 76% 80%,
      #ffffff 80% 96%, transparent 96%) center / 80% 46% no-repeat,
    linear-gradient(180deg, #ece4d8, #e2d7c8);
}
.art-whitening::after {
  content: "BL2";
  position: absolute;
  right: 12%;
  bottom: 12%;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
}

/* Facial: proportion rings */
.art-facial {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(184, 151, 107, 0.45) 18% calc(18% + 1px), transparent calc(18% + 1px) 32%, rgba(184, 151, 107, 0.3) 32% calc(32% + 1px), transparent calc(32% + 1px) 46%, rgba(184, 151, 107, 0.18) 46% calc(46% + 1px), transparent calc(46% + 1px)),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(184, 151, 107, 0.35) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(180deg, transparent calc(50% - 0.5px), rgba(184, 151, 107, 0.35) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(135deg, #f0e8dd, #e4d9ca);
}

/* =========================================================
   4. DOCTOR'S CABINET
   ========================================================= */
.doctor {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(80px, 10vw, 160px);
  align-items: start;
}
.doctor-portrait { position: sticky; top: 110px; }
.portrait-frame {
  --portrait-scale: 1.12;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-2);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(0.5) sepia(0.18) contrast(1.03) brightness(1.03);
  transform: scale(var(--portrait-scale));
  will-change: transform;
}
.portrait-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-radius: 20px;
}
.portrait-caption strong { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.2; }
.portrait-caption span { font-size: 13px; color: var(--ink-2); }

.stack { display: flex; flex-direction: column; gap: 24px; padding-bottom: 12vh; }
.cred {
  position: sticky;
  top: calc(110px + var(--i) * 16px);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  min-height: 220px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 -12px 30px -22px rgba(60, 45, 30, 0.35);
  transform-origin: center top;
  will-change: transform, filter;
}
.cred-year { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent); }
.cred-kind { margin: 0 0 6px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.cred h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.cred p:last-child { margin: 0; color: var(--ink-2); font-size: 15px; }

/* =========================================================
   3. SMILE ASSESSMENT
   ========================================================= */
.assessment {
  position: relative;
  padding-block: clamp(80px, 10vw, 160px);
  background:
    radial-gradient(ellipse 50% 60% at 85% 30%, rgba(184, 151, 107, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(230, 214, 191, 0.7), transparent 70%),
    var(--bg-2);
  overflow: hidden;
}
.assessment-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.quiz {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 32px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.quiz-top { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; }
.quiz-count { font-size: 12px; letter-spacing: 0.16em; color: var(--ink-2); white-space: nowrap; }
.quiz-count span { color: var(--ink); font-weight: 600; }
.quiz-bar { flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.quiz-bar span { display: block; height: 100%; width: 33%; background: var(--ink); transition: width 0.7s var(--ease); }

.quiz-stage { flex: 1; position: relative; }
.step { margin: 0; padding: 0; border: 0; min-width: 0; }
.step-q {
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.step-hint { margin: 10px 0 24px; color: var(--ink-2); font-size: 14px; }

/* Step 1 — pill choices */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.choice, .option, .channel label { position: relative; cursor: pointer; }
.choice input, .option input, .channel input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 29, 27, 0.14);
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.choice svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice:active span { transform: scale(0.97); }

/* Step 2 — stacked options */
.options { display: grid; gap: 10px; }
.option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 22px 18px 56px;
  border-radius: 20px;
  border: 1px solid rgba(31, 29, 27, 0.14);
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.3s, border-color 0.3s;
}
.option span::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  border: 1px solid rgba(31, 29, 27, 0.3);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s;
}
.option strong { font-weight: 600; font-size: 15px; }
.option small { color: var(--ink-2); font-size: 13px; }
.option:hover span { border-color: var(--ink); }
.option input:checked + span { background: var(--paper); border-color: var(--ink); }
.option input:checked + span::before { border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 10px var(--ink); }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Step 3 — channel toggle + fields */
.channel {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin: 24px 0 24px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(31, 29, 27, 0.06);
}
.channel label span {
  position: relative;
  z-index: 1;
  display: block;
  padding: 10px 26px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.3s;
}
.channel input:checked + span { color: var(--paper); }
.channel input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px; }
.channel-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.5s var(--ease);
}
.channel:has(label:nth-of-type(2) input:checked) .channel-thumb { transform: translateX(100%); }

.fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.field input,
.tel select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(31, 29, 27, 0.14);
  background: rgba(255, 255, 255, 0.75);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus,
.tel select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(184, 151, 107, 0.2); }
.tel { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.tel select { width: auto; padding-right: 10px; cursor: pointer; }

.fine { margin: 18px 0 0; font-size: 12px; color: var(--ink-3); }

/* Done */
.step-done { text-align: center; padding-top: 24px; }
.step-done .step-hint { max-width: 42ch; margin-inline: auto; line-height: 1.7; }
.done-mark { width: 72px; height: 72px; margin: 0 auto 24px; }
.done-mark svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.done-mark circle { stroke: var(--accent); stroke-dasharray: 151; stroke-dashoffset: 151; }
.done-mark path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.step-done:not([hidden]) .done-mark circle { animation: draw 0.9s var(--ease) 0.2s forwards; }
.step-done:not([hidden]) .done-mark path { animation: draw 0.6s var(--ease) 0.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  transition: opacity 0.4s;
}
.quiz-nav.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-block: clamp(64px, 8vw, 112px) 32px;
}
.footer-brand .brand-mark { margin-bottom: 18px; width: 30px; height: 30px; }
.footer-brand p { margin: 0 0 6px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h4 { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.footer-cols p { margin: 0; font-size: 15px; line-height: 1.8; }
.footer-cols a:hover { color: var(--accent); }
.footer-legal {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

/* =========================================================
   TREATMENT DRAWER
   ========================================================= */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(31, 29, 27, 0.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.drawer {
  position: fixed;
  inset: clamp(12px, 3vw, 40px);
  z-index: 90;
  max-width: 1180px;
  margin-inline: auto;
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 40px 100px -30px rgba(40, 30, 20, 0.55);
  clip-path: inset(0 0 0 0 round 32px);
  overflow: hidden;
}
.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.drawer-close:hover { transform: rotate(90deg); background: #fff; }
.drawer-body {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 56px);
}

/* Staggered content entrance */
.drawer [data-in] {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
  transition-delay: calc(0.18s + var(--d, 0) * 0.05s);
}
.drawer.is-open [data-in] { opacity: 1; transform: none; filter: none; }

.d-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.d-head .card-art { margin: 0; min-height: 220px; transform: none; }
.d-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.d-sub { margin: 18px 0 22px; max-width: 48ch; color: var(--ink-2); font-size: 16px; }
.d-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-strong { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill-strong::before { background: var(--accent-soft); }

.d-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(28px, 4vw, 48px);
}
.d-label { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.d-notes blockquote {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
}
.d-notes cite { display: block; margin-top: 14px; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--ink-2); }
.d-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.d-fact { padding: 16px 18px; border-radius: 18px; background: var(--bg); }
.d-fact small { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.d-fact strong { display: block; margin-top: 4px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.pain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.pain i { height: 6px; border-radius: 6px; background: rgba(31, 29, 27, 0.1); }
.pain i.on { background: var(--accent); }

.price {
  align-self: start;
  padding: 26px;
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.price table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 14px; }
.price td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; font-weight: 500; }
.price tr.total td { border-bottom: 0; padding-top: 16px; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.price .btn { width: 100%; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-lg { grid-row: span 1; min-height: 420px; }
  .card-wide { grid-column: span 2; }
  .assessment-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(odd) { padding-left: 0; }
  .doctor { grid-template-columns: 1fr; }
  .doctor-portrait { position: relative; top: 0; max-width: 460px; }
  .d-head, .d-grid { grid-template-columns: 1fr; }
  .d-head .card-art { min-height: 160px; }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .brand-name { font-size: 19px; }
  .nav { padding-left: 14px; }
  .hero-copy { right: var(--gutter); bottom: 20px; padding: 22px; }
  .hero-copy .lede { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }
  .compare-tag { top: 84px; }
  .marker-card { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card-lg, .card-wide { grid-column: auto; }
  .card-lg { min-height: 360px; }
  .cred { grid-template-columns: 1fr; gap: 6px; padding: 24px; }
  .fields { grid-template-columns: 1fr; }
  .quiz { min-height: 0; }
  .d-facts { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* =========================================================
   EDITORIAL REFINEMENT LAYER
   Type discipline · restrained glass · sharp structure, soft pills
   ========================================================= */
body { font-family: var(--sans); font-weight: 300; letter-spacing: -0.005em; }

/* Type: tight display, italic contrast, mono micro-labels */
.display, .display-2, .display-3 { letter-spacing: -0.03em; line-height: 1.04; }
.display em, .display-2 em, .statement-text em { color: var(--ink); font-style: italic; }
.statement-text { letter-spacing: -0.025em; }
.eyebrow, .card-index, .cred-kind, .d-label, .quiz-count, .step-hint, .compare-tag, .tl-hint,
.marker-card small, .stats dd, .footer-cols h4, .scroll-cue, .chip-tag, .fine, .d-fact small, .field > span {
  font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
}
.step-hint { letter-spacing: 0.14em; }
.eyebrow::before { width: 16px; }
.eyebrow-dot::before { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: 0.85; }
.lede { font-size: 15px; line-height: 1.6; }
.stats dt { letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stats dt span { font-family: var(--mono); font-size: 0.24em; letter-spacing: 0.12em; text-transform: uppercase; vertical-align: 0.9em; margin-left: 6px; }

/* Buttons: one understated hairline system */
.btn { padding: 12px 22px; font-family: var(--sans); font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em; text-transform: none; }
.btn-dark { background: rgba(31, 29, 27, 0.92); }
.btn-ghost { border-color: rgba(31, 29, 27, 0.28); background: rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* Glass: optical edge instead of a white outline */
.glass {
  background: rgba(245, 242, 236, 0.36);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  border: 0;
  box-shadow: var(--glass-edge);
}
.nav { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 0 0 0.5px rgba(255, 255, 255, 0.5); border: 0; }

/* Hero: smaller card, the face takes the stage */
.hero-copy { max-width: 452px; padding: 28px 30px; border-radius: 22px; bottom: clamp(28px, 6vh, 56px); }
.hero-copy .eyebrow { color: var(--ink); }
.hero-copy .lede { margin-top: 14px; max-width: 34ch; color: rgba(31, 29, 27, 0.72); }
.hero-actions { margin-top: 22px; gap: 8px; }
.hero-sticky::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; z-index: 2; pointer-events: none; background: linear-gradient(0deg, rgba(24, 20, 16, 0.22), transparent); }

/* Markers: above the divider, tethered by hairlines, units in small caps */
.markers { z-index: 5; }
.marker-card { left: 58px; padding: 9px 13px; min-width: 0; border-radius: 4px; border: 0; background: rgba(250, 248, 245, 0.62); box-shadow: var(--glass-edge); }
.marker-card::before { content: ""; position: absolute; top: 50%; right: 100%; width: 41px; height: 0; border-top: 0.5px solid rgba(255, 255, 255, 0.95); box-shadow: 0 0 6px rgba(255, 255, 255, 0.6); }
.marker.flip .marker-card { left: auto; right: 58px; }
.marker.flip .marker-card::before { right: auto; left: 100%; }
/* card hangs below its dot, joined by a vertical hairline (keeps the mouth area uncluttered) */
.marker.below .marker-card { left: 50%; top: calc(100% + 30px); transform: translate(-50%, -6px); }
.marker.below.is-revealed .marker-card, .marker.below:hover .marker-card, .marker.below:focus-visible .marker-card { transform: translate(-50%, 0); }
.marker.below .marker-card::before { top: auto; bottom: 100%; right: auto; left: 50%; width: 0; height: 30px; border-top: 0; border-left: 0.5px solid rgba(255, 255, 255, 0.95); }
.marker-card small { font-size: 9px; letter-spacing: 0.18em; color: var(--ink-2); }
.marker-card strong { font-size: 25px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.marker-card strong i { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; margin-left: 3px; color: var(--ink-2); }
.compare-tag { font-size: 9.5px; padding: 6px 12px; }

/* Structure: sharp containers, soft pills */
.card, .card-inner, .card-art, .cred, .quiz, .portrait-frame, .price, .d-fact, .option span, .field input, .tel select { border-radius: var(--radius); }
.portrait-frame { border-radius: 2px; }
.portrait-caption { border-radius: 4px; }
.drawer { border-radius: 10px; }
.card-ring { border-radius: var(--radius); }

/* Treatment cards: lit, layered, a lift and a champagne edge on hover */
.card { transform: perspective(1100px) translateY(var(--lift, 0px)) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.5, 1), box-shadow 0.6s var(--ease); }
.card:hover { --lift: -6px; box-shadow: 0 30px 50px -28px rgba(60, 45, 30, 0.45), 0 10px 20px -14px rgba(60, 45, 30, 0.25); }
.card-inner {
  border: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.85), transparent 42%),
    linear-gradient(170deg, #fdfbf8 0%, #f6f1ea 60%, #efe8dd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 0.5px var(--hair), inset 0 -18px 30px -24px rgba(120, 95, 60, 0.18);
}
.card-ring { padding: 1px; background: conic-gradient(from var(--angle), transparent 0 60%, rgba(201, 171, 124, 0.9) 72%, #fff6e6 76%, rgba(201, 171, 124, 0.9) 80%, transparent 92%); }
.card:hover .card-inner { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 0.5px rgba(201, 171, 124, 0.7), inset 0 0 24px rgba(201, 171, 124, 0.12), inset 0 -18px 30px -24px rgba(120, 95, 60, 0.18); }
.card-art { box-shadow: inset 0 0 0 0.5px var(--hair), inset 0 10px 24px -14px rgba(255, 255, 255, 0.9); }
.card-foot h3 { letter-spacing: -0.025em; }
.card-foot p { font-size: 13.5px; }
.pill { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(255, 255, 255, 0.55); border: 0.5px solid var(--hair); }

/* Credentials + quiz: hairlines over fills */
.cred { box-shadow: inset 0 0 0 0.5px var(--hair), 0 -12px 30px -22px rgba(60, 45, 30, 0.3); border: 0; }
.cred h3 { letter-spacing: -0.025em; }
.cred-year { letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.choice span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Drawer: no visible scrollbar, soft fades at the edges */
.drawer-body { scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent 0, #000 28px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(transparent 0, #000 28px, #000 calc(100% - 36px), transparent); }
.drawer-body::-webkit-scrollbar { display: none; }
.d-title { letter-spacing: -0.03em; }
.d-notes blockquote { letter-spacing: -0.015em; }
.price td:last-child, .d-fact strong { font-variant-numeric: tabular-nums; }

@media (max-width: 600px) {
  .hero-copy { left: 12px; right: 12px; bottom: 14px; max-width: none; padding: 20px 20px 18px; }
  .hero-copy .display { font-size: 34px; }
  .hero-copy .lede { font-size: 13.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* Bento: five cards fill a clean 4 × 2 grid on desktop */
@media (min-width: 1081px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(300px, auto); }
  .card-wide { grid-column: span 1; }
}

/* =========================================================
   EDITORIAL PASS 2 — Cormorant display, ambient light,
   monolith metric dock, photographic treatment plates
   ========================================================= */
body {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 40%, rgba(230, 214, 191, 0.45), transparent 70%),
    radial-gradient(ellipse 55% 45% at 0% 75%, rgba(222, 205, 182, 0.4), transparent 70%),
    #f6f4ee;
  background-attachment: fixed;
}

/* Display type: light Cormorant, tight, bronze italics */
.display, .display-2, .display-3, .statement-text, .card-foot h3, .cred h3, .d-title, .step-q, .stats dt, .marker-card strong, .brand-name, .cred-year, .d-notes blockquote, .price tr.total td, .d-fact strong {
  font-family: var(--serif); font-weight: 300;
}
.display { font-size: clamp(46px, 6vw, 92px); letter-spacing: -0.03em; line-height: 1.02; }
.display-2 { font-size: clamp(42px, 5vw, 74px); letter-spacing: -0.03em; line-height: 1.04; }
.display em, .display-2 em, .statement-text em { font-style: italic; font-weight: 400; color: var(--bronze); }
.hero-copy .display { font-size: clamp(38px, 3.5vw, 52px); }
.hero-copy .display em { color: var(--ink); }
.statement-text { font-size: clamp(36px, 4.6vw, 70px); line-height: 1.06; letter-spacing: -0.03em; max-width: 22ch; color: #181614; }
.eyebrow-gold { color: #8c7a6b; margin-bottom: 26px; }
.eyebrow-gold::before { background: var(--gold); }
.brand-name { font-size: 25px; font-weight: 400; letter-spacing: -0.01em; }
.card-foot h3 { font-size: 30px; font-weight: 400; letter-spacing: -0.02em; transition: color 0.4s; }
.card-lg .card-foot h3 { font-size: clamp(36px, 3.4vw, 50px); }
.card:hover .card-foot h3 { color: var(--bronze); }
.cred h3 { font-size: 32px; font-weight: 400; }
.cred-year { font-size: 40px; color: var(--gold); }
.step-q { font-weight: 400; letter-spacing: -0.02em; }
.d-title { font-size: clamp(46px, 5.4vw, 78px); }
.marker-card strong { font-size: 28px; font-weight: 400; }

/* Monolith metric dock */
.stats { gap: 1px; border: 0; background: rgba(213, 206, 191, 0.7); border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(25, 20, 15, 0.1), inset 0 0 0 0.5px rgba(213, 206, 191, 0.9); }
.stats > div, .stats > div + div { padding: clamp(26px, 3vw, 40px); border: 0; background: rgba(250, 248, 243, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; transition: background 0.4s; }
.stats > div:hover { background: rgba(255, 253, 249, 0.96); }
.stats dt { font-size: clamp(54px, 5.4vw, 76px); font-weight: 300; letter-spacing: -0.04em; line-height: 0.9; color: #181614; }
.stats dt span { font-size: 11px; vertical-align: 0; margin-left: 8px; color: var(--bronze); }
.stats dd { margin-top: 26px; font-size: 10px; letter-spacing: 0.2em; color: #7a746b; }

/* Treatment plates: graded macro photography under frosted glass */
.card-art { overflow: hidden; background: #ede7db center / cover no-repeat; filter: none; }
.card-art::before, .card-art::after { all: unset; }
.card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(250, 248, 244, 0.7), transparent 45%), linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 40%); pointer-events: none; }
/* one warm, softened grade so the set reads as a single shoot */
.card-art { box-shadow: inset 0 0 0 0.5px rgba(31, 29, 27, 0.1); }
.card-art.art-veneers, .card-art.art-aligners, .card-art.art-laser, .card-art.art-whitening, .card-art.art-facial { background-blend-mode: normal; }
.card .card-art, .drawer .card-art { filter: saturate(0.55) sepia(0.18) contrast(1.04) brightness(1.02); transition: transform 0.9s var(--ease), filter 0.6s; }
.card:hover .card-art { transform: translateZ(18px) scale(1.03); filter: saturate(0.7) sepia(0.12) contrast(1.05) brightness(1.03); }
.card-art.art-veneers::after { background: linear-gradient(0deg, rgba(250, 248, 244, 0.75), transparent 40%), radial-gradient(ellipse 70% 60% at 30% 20%, rgba(255, 246, 230, 0.35), transparent 70%); }
.d-head .card-art { min-height: 260px; }

/* Card footer row: badge + read notes */
.card-foot p { margin-bottom: 14px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 0.5px solid rgba(31, 29, 27, 0.12); }
.card-meta .read { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); transition: transform 0.4s var(--ease), color 0.3s; white-space: nowrap; }
.card:hover .card-meta .read { transform: translateX(4px); color: var(--bronze); }
.pill::before { background: var(--gold); }

@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div, .stats > div + div { min-height: 150px; padding: 22px; }
  .stats dt { font-size: 50px; }
}
/* lining figures everywhere numbers carry data */
.stats dt, .marker-card strong, .cred-year, .d-fact strong, .price td, .quiz-count, .card-index { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.brand-name { white-space: nowrap; }
@media (max-width: 600px) { .brand-name { font-size: 20px; } .nav .btn-sm { padding: 9px 12px; } }

/* =========================================================
   PASS 3 — consistency & restraint
   One photographic language, balanced layouts, tighter rhythm
   ========================================================= */

/* Statement: two balanced columns, then the dock */
.statement { padding-block: clamp(90px, 10vw, 140px) clamp(50px, 6vw, 80px); }
.statement-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.statement-text { font-size: clamp(40px, 4.8vw, 72px); max-width: 13ch; line-height: 1.02; }
.statement-sub { margin: 28px 0 0; max-width: 46ch; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.statement-fig { margin: 0; }
.statement-fig img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; filter: var(--grade); }
.statement-fig figcaption { display: flex; gap: 12px; margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.statement-fig figcaption span { color: var(--bronze); }
.stats { margin-top: clamp(56px, 6vw, 88px); }
.stats > div, .stats > div + div { min-height: 170px; }

/* Treatments: full-bleed graded photographs with a frosted caption plate */
.treatments { padding-block: clamp(40px, 5vw, 70px) clamp(70px, 8vw, 110px); }
.bento { grid-auto-rows: minmax(330px, auto); gap: 14px; }
.card .card-inner { padding: 0; background: #e9e2d7; box-shadow: none; }
.card .card-art { position: absolute; inset: 0; margin: 0; min-height: 0; border-radius: inherit; transform: none; filter: var(--grade); }
.card:hover .card-art { transform: scale(1.04); filter: saturate(0.62) sepia(0.12) contrast(1.04) brightness(1.04); }
.card .card-art::after { background: linear-gradient(0deg, rgba(30, 24, 18, 0.28), transparent 45%); }
.card-art.art-veneers { background-image: url("img/t-veneers.jpg"); background-position: 50% 30%; }
.card-art.art-aligners { background-image: url("img/t-aligners.jpg"); background-position: 50% 25%; }
.card-art.art-laser { background-image: url("img/t-laser.jpg"); background-position: 50% 25%; }
.card-art.art-whitening { background-image: url("img/t-whitening.jpg"); background-position: 50% 30%; }
.card-art.art-facial { background-image: url("img/t-facial.jpg"); background-position: 50% 30%; }
.card-index { position: relative; z-index: 2; align-self: flex-start; margin: 16px 0 0 16px; padding: 5px 10px; border-radius: 999px; background: rgba(250, 248, 244, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font-size: 10px; }
.card .card-foot { position: relative; z-index: 2; margin: auto 12px 12px; padding: 18px 20px 16px; border-radius: 3px; background: rgba(250, 248, 244, 0.78); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 30px -18px rgba(30, 24, 18, 0.5); transform: none; }
.card .card-foot h3 { font-size: 26px; margin-bottom: 4px; }
.card-lg .card-foot { margin: auto 16px 16px; padding: 22px 26px 20px; max-width: 420px; }
.card-lg .card-foot h3 { font-size: clamp(32px, 3vw, 44px); }
.card .card-foot p { font-size: 13px; margin-bottom: 12px; }
.card-meta { padding-top: 12px; }
.d-head .card-art { filter: var(--grade); border-radius: 2px; }

/* Doctor: graded portrait, credentials as a clean ledger (no stacked boxes) */
.doctor { padding-block: clamp(70px, 8vw, 120px); align-items: center; }
.stack { gap: 0; padding-bottom: 0; border-top: 0.5px solid rgba(31, 29, 27, 0.25); }
.cred { position: relative; top: auto; transform: none; filter: none; will-change: auto; min-height: 0; padding: 26px 0; border-radius: 0; background: transparent; box-shadow: none; border-bottom: 0.5px solid rgba(31, 29, 27, 0.18); grid-template-columns: 110px 1fr; transition: background 0.4s; }
.cred:hover { background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent); }
.cred h3 { font-size: 28px; margin-bottom: 6px; }
.cred p:last-child { font-size: 14.5px; max-width: 52ch; }
.cred-year { font-size: 36px; padding-top: 2px; }

/* Assessment: compact panel, a live-looking button */
.assessment { padding-block: clamp(70px, 8vw, 120px); }
.quiz { min-height: 0; padding: clamp(24px, 3vw, 36px); border-radius: 4px; }
.quiz-stage { min-height: 250px; }
.quiz-top { margin-bottom: 26px; }
.choice span { padding: 10px 16px 10px 12px; }
.btn-dark:disabled { background: transparent; color: var(--ink-3); border-color: rgba(31, 29, 27, 0.2); opacity: 1; }
.quiz-nav { margin-top: 20px; padding-top: 20px; }

@media (max-width: 860px) {
  .statement-grid { grid-template-columns: 1fr; }
  .statement-fig { max-width: 420px; }
  .cred { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  .bento { grid-auto-rows: minmax(380px, auto); }
}
/* small cards: let the photograph breathe; details live in the notes */
.bento { grid-auto-rows: minmax(360px, auto); }
.card:not(.card-lg) .card-foot p { display: none; }
.card:not(.card-lg) .card-foot { padding: 14px 16px 12px; }
.card:not(.card-lg) .card-foot h3 { font-size: 24px; margin-bottom: 2px; }
.card-meta { padding-top: 10px; }
.pill { white-space: nowrap; }
.card:not(.card-lg) .card-meta .read { font-size: 0; }
.card:not(.card-lg) .card-meta .read::after { content: "→"; font-size: 14px; }
.treatments { padding-bottom: clamp(30px, 4vw, 50px); }
.doctor { padding-top: clamp(40px, 5vw, 70px); }
.doctor { align-items: start; }
.portrait-caption { background: rgba(250, 248, 244, 0.86); }
.portrait-caption span { color: var(--ink-2); }

/* =========================================================
   ONE SECTION = ONE SCREEN (desktop)
   Every chapter is sized to the viewport; type and imagery
   scale with its height so nothing spills to a second screen.
   ========================================================= */
@media (min-width: 1024px) and (min-height: 620px) {
  :root { --top: 104px; --bot: 44px; --avail: calc(100svh - var(--top) - var(--bot)); }
  .statement, .treatments, .doctor, .assessment {
    min-height: 100vh; min-height: 100svh;
    padding-top: var(--top); padding-bottom: var(--bot);
  }

  /* Statement: copy + plate on top, dock along the bottom */
  .statement { display: grid; grid-template-rows: 1fr auto; gap: min(4vh, 40px); }
  .statement-grid { min-height: 0; align-items: center; }
  .statement-text { font-size: min(5.2vw, 8.4vh); }
  .statement-sub { margin-top: min(3vh, 28px); font-size: min(15.5px, 1.9vh); }
  .statement-fig { height: 100%; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
  .statement-fig img { aspect-ratio: auto; height: calc(var(--avail) - min(22vh, 200px) - 70px); max-height: 560px; }
  .stats { margin-top: 0; }
  .stats > div, .stats > div + div { min-height: 0; height: min(20vh, 190px); padding: min(3.4vh, 34px) min(2.6vw, 38px); }
  .stats dt { font-size: min(5vw, 7.6vh); }
  .stats dd { margin-top: 0; }

  /* Treatments: heading + a bento that exactly fills what's left */
  .treatments { display: flex; flex-direction: column; }
  .treatments .section-head { margin-bottom: min(3.4vh, 34px); flex: none; }
  .treatments .display-2 { font-size: min(4.4vw, 7vh); max-width: none; }
  .treatments .display-2 em { display: inline; }
  .bento { flex: 1; min-height: 0; grid-template-rows: 1fr 1fr; grid-auto-rows: 0; }
  .card { min-height: 0; }
  .card-lg .card-foot h3 { font-size: min(3vw, 5vh); }

  /* Doctor: portrait and ledger share the screen */
  .doctor { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; }
  .doctor-portrait { position: relative; top: 0; height: var(--avail); }
  .portrait-frame { height: 100%; aspect-ratio: auto; }
  .portrait-frame img { height: 100%; }
  .cabinet { display: flex; flex-direction: column; justify-content: center; height: var(--avail); }
  .cabinet .section-head { margin-bottom: min(3vh, 28px); }
  .cabinet .display-2 { font-size: min(3.6vw, 6vh); max-width: 18ch; }
  .cred { padding: min(1.8vh, 18px) 0; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; }
  .cred-year { font-size: min(32px, 4.2vh); }
  .cred-kind { margin-bottom: 2px; }
  .cred h3 { font-size: min(24px, 3.1vh); margin-bottom: 2px; }
  .cred p:last-child { font-size: min(13.5px, 1.75vh); line-height: 1.5; }

  /* Assessment: centred in its screen */
  .assessment { display: flex; align-items: center; }
  .assessment-grid { width: 100%; }
  .assessment .display-2 { font-size: min(4.4vw, 7vh); }
  .quiz { max-height: var(--avail); }
}
@media (min-width: 1024px) and (min-height: 620px) and (max-height: 880px) {
  .cabinet .display-2 { font-size: min(3.2vw, 5.2vh); }
  .cabinet .section-head { margin-bottom: 1.6vh; }
  .cred { padding: 1.3vh 0; }
  .cred p:last-child { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
}


/* #################### Trust strip, treatment panels #################### */
/* Static one-line trust strip under the hero */
.trust { border-block: 0.5px solid rgba(31, 29, 27, 0.14); background: rgba(250, 248, 243, 0.6); }
.trust ul { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 28px; margin: 0 auto; padding-block: 20px; list-style: none; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@media (max-width: 860px) {
  .trust ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding-block: 18px; }
  .trust li { white-space: normal; font-size: 12.5px; line-height: 1.4; align-items: flex-start; }
  .trust li::before { flex: none; margin-top: 6px; }
}

/* Statement lit word by word */
.statement-text .w { opacity: var(--o, 1); transition: opacity 0.25s linear; }

/* Expanding treatment panels (desktop) */
.card-vlabel { display: none; }
@media (min-width: 1024px) and (min-height: 620px) {
  .bento { display: flex; gap: 12px; }
  .bento .card, .bento .card.card-lg, .bento .card.card-wide { flex: 1 1 0; min-width: 0; transform: none; transition: flex 0.9s cubic-bezier(0.7, 0, 0.2, 1), box-shadow 0.6s; }
  .bento .card.is-wide { flex: 4.2 1 0; }
  .bento .card .card-art { filter: saturate(0.25) sepia(0.25) brightness(0.92) contrast(1.02); transition: filter 0.9s, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .bento .card.is-wide .card-art { filter: var(--grade); transform: scale(1.02); }
  .bento .card .card-art::after { background: linear-gradient(0deg, rgba(24, 20, 16, 0.55), transparent 55%); }
  .bento .card.is-wide .card-art::after { background: linear-gradient(0deg, rgba(24, 20, 16, 0.2), transparent 45%); }
  .bento .card .card-foot { position: absolute; left: 0; right: auto; bottom: 0; width: min(440px, calc(100% - 32px)); margin: 16px; opacity: 0; transform: translateY(16px); transition: opacity 0.35s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
  .bento .card.is-wide .card-foot { opacity: 1; transform: none; transition-delay: 0.35s; pointer-events: auto; }
  .bento .card .card-foot p { display: block; }
  .bento .card .card-foot h3 { font-size: min(2.8vw, 4.6vh); }
  .bento .card .card-meta .read { font-size: 10.5px; }
  .bento .card .card-meta .read::after { content: none; }
  .card-vlabel { display: block; position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font-family: var(--serif); font-weight: 300; font-size: min(2.2vw, 3.6vh); letter-spacing: -0.01em; color: #fbf8f2; white-space: nowrap; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); transition: opacity 0.35s; }
  .bento .card.is-wide .card-vlabel { opacity: 0; }
  .card-ring { display: none; }
}


/* #################### Polish: legibility, voices, visit, footer, mobile menu #################### */
/* =========================================================
   POLISH LAYER — legibility, bug fixes, voices, visit, footer,
   mobile menu
   ========================================================= */

/* ---------- Legibility: darker small text, nothing under 11px ---------- */
.eyebrow, .stats dd, .card-index, .cred-kind, .d-label, .step-hint, .quiz-count, .fine, .footer-cols h4, .d-fact small, .field > span, .statement-fig figcaption { color: var(--ink-2); }
.eyebrow { font-size: 11px; }
.stats dd, .cred-kind, .d-label, .d-fact small, .footer-cols h4 { font-size: 10.5px; }
.marker-card small { font-size: 9.5px; color: #4f4942; }
.marker-card strong { font-size: 24px; white-space: nowrap; }

/* ---------- Bug fixes ---------- */
.pill.pill-strong { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.pill-strong::before { background: var(--accent-soft); }

/* ---------- Nav: CTA + mobile menu ---------- */
.menu-btn { display: none; position: relative; width: 44px; height: 40px; border: 0; border-radius: 999px; background: var(--ink); cursor: pointer; }
.menu-btn i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--paper); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn i:first-child { top: 16px; }
.menu-btn i:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] i:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 19.5px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 100px 28px 40px; background: rgba(246, 244, 238, 0.96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: menuIn 0.5s var(--ease); }
.mobile-menu a:not(.btn) { font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.mobile-menu .btn { align-self: flex-start; margin-top: 28px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav .nav-cta { display: none; }
  .nav { z-index: 50; }
}

/* ---------- Voices ---------- */
.voices { padding-block: clamp(80px, 9vw, 130px); }
.voices-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.voices-head .display-2 { max-width: 14ch; }
.rating { display: flex; align-items: center; gap: 18px; padding: 18px 26px; border-radius: 999px; background: rgba(250, 248, 243, 0.7); box-shadow: var(--glass-edge); }
.rating-num { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 54px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.stars { margin: 0; color: var(--gold); letter-spacing: 3px; font-size: 15px; }
.rating-src { margin: 4px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.quotes { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: stretch; }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(26px, 2.6vw, 40px); border-radius: 4px; background: rgba(250, 248, 243, 0.82); box-shadow: inset 0 0 0 0.5px rgba(31, 29, 27, 0.12), 0 20px 40px -28px rgba(30, 24, 18, 0.35); transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.5, 1); }
.quote:hover { transform: translateY(-6px); }
.quote blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.22; letter-spacing: -0.015em; color: var(--ink); }
.quote-feature { background: var(--ink); color: var(--paper); }
.quote-feature blockquote { color: #f5efe5; font-style: italic; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.mono-av { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--accent-soft) 60%, var(--gold)); font-family: var(--serif); font-size: 19px; color: var(--ink); }
.quote figcaption b { display: block; font-weight: 500; font-size: 14px; }
.quote figcaption span:last-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.quote-feature figcaption span:last-child { color: rgba(245, 239, 229, 0.7); }
.quote-feature figcaption b { color: #fff; letter-spacing: 0; text-transform: none; font-family: var(--sans); }
.quote figcaption b { font-family: var(--sans); letter-spacing: 0; text-transform: none; }

/* ---------- Visit ---------- */
.visit { padding-block: clamp(80px, 9vw, 130px); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.visit-steps { list-style: none; margin: clamp(26px, 4vh, 44px) 0 0; padding: 0; border-top: 0.5px solid rgba(31, 29, 27, 0.22); }
.visit-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: clamp(14px, 2.2vh, 22px) 0; border-bottom: 0.5px solid rgba(31, 29, 27, 0.16); }
.visit-steps span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--bronze); padding-top: 6px; }
.visit-steps b { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -0.02em; }
.visit-steps p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.visit-actions { display: flex; align-items: center; gap: 26px; margin-top: clamp(24px, 3.6vh, 36px); flex-wrap: wrap; }
.visit-tel { font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.visit-tel:hover { background-size: 100% 1px; }
.visit-fig { position: relative; margin: 0; border-radius: 3px; overflow: hidden; }
.visit-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 60%; filter: saturate(0.7) sepia(0.3) contrast(1.06) brightness(0.84); }
.visit-card { position: absolute; left: 18px; right: 18px; bottom: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 18px 22px; border-radius: 3px; background: rgba(250, 248, 244, 0.78); }
.visit-card span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.visit-card b { font-weight: 400; font-size: 14px; line-height: 1.55; }

/* ---------- Footer ---------- */
.footer { display: block; max-width: none; padding: clamp(60px, 7vw, 100px) 0 28px; background: #1f1c19; color: #d9d1c5; }
.footer .footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer .footer-cols h4 { color: #a59b8e; }
.footer .footer-cols p { color: #e9e2d7; font-size: 14.5px; line-height: 1.9; }
.footer .footer-cols a:hover { color: var(--accent-soft); }
.wordmark { margin: clamp(40px, 6vw, 80px) 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6.4vw, 108px); line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; color: #f3ede3; text-align: center; }
.wordmark span { color: #d2b48a; }
.legal-links { display: flex; gap: 20px; }
.legal-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(165, 155, 142, 0.5); }
.legal-links a:hover { color: #e9e2d7; }
.footer .footer-legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 40px); padding-top: 18px; border-top: 0.5px solid rgba(243, 237, 227, 0.16); font-size: 12px; color: #a59b8e; }

/* ---------- One screen each (desktop) ---------- */
@media (min-width: 1024px) and (min-height: 620px) {
  .visit { min-height: 100vh; min-height: 100svh; padding-top: var(--top); padding-bottom: var(--bot); display: flex; flex-direction: column; justify-content: center; }
  .voices .display-2, .visit .display-2 { font-size: min(4.2vw, 6.8vh); }
  .quote blockquote { font-size: min(1.9vw, 3.2vh); }
  .visit-fig img { aspect-ratio: auto; height: var(--avail); max-height: 760px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .quotes { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer .footer-cols { grid-template-columns: 1fr 1fr; }
  .rating { padding: 14px 20px; }
  .rating-num { font-size: 42px; }
}


/* #################### Final pass: grade, dark chapter, cases, fees, assessment #################### */
/* =========================================================
   FINAL PASS — one grade, one rhythm, one dark chapter
   ========================================================= */

/* ---------- Body text: no more squeeze ---------- */
body { letter-spacing: 0; font-weight: 300; }
.lede, .statement-sub, .muted, .card-foot p, .cred p:last-child, .quote figcaption, .visit-steps p, .cases-note, .fee-note, .faq p { letter-spacing: 0.002em; line-height: 1.7; }

/* ---------- Fewer mono labels: keep them for eyebrows & data, sans elsewhere ---------- */
.stats dd, .cred-kind, .step-hint, .fine, .rating-src, .quote figcaption span:last-child, .card-meta .read, .visit-card span, .statement-fig figcaption, .compare-tag, .d-fact small, .field > span, .case-meta {
  font-family: var(--sans); text-transform: none; letter-spacing: 0.01em; font-size: 13px; font-weight: 400;
}
.stats dd { font-size: 13.5px; color: var(--ink-2); }
.cred-kind { font-size: 12.5px; color: var(--gold); }
.compare-tag { font-size: 12px; font-weight: 500; }
.card-meta .read { font-size: 13px; font-weight: 500; }

/* ---------- Logo: monogram + set wordmark ---------- */
.brand { gap: 12px; color: var(--ink); }
.brand-mono { width: 34px; height: 34px; flex: none; color: var(--bronze); }
.brand-name { font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: 0.01em; }
.brand-name span { color: var(--bronze); }

/* ---------- Hero in the same colour language as the rest ---------- */
.after-glow { opacity: 0.7; }
.hero-sticky::after { background: linear-gradient(0deg, rgba(24, 20, 16, 0.3), transparent 45%); }

/* ---------- Consistent entrance for every section ---------- */
.case:nth-child(2), .quote:nth-child(2) { transition-delay: 0.12s; }
.case:nth-child(3), .quote:nth-child(3) { transition-delay: 0.24s; }

/* ---------- Selected cases ---------- */
.cases { padding-block: clamp(80px, 9vw, 130px); }
.cases-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 54px); }
.cases-note { margin: 0; max-width: 40ch; font-size: 14.5px; color: var(--ink-2); }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.case { margin: 0; }
.case-img { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 5 / 4; background: #e9e2d7; }
.case-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(0.42) sepia(0.2) contrast(1.03) brightness(1.03); transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s; }
.case:hover .case-img img { transform: scale(1.05); filter: saturate(0.65) sepia(0.1) contrast(1.04) brightness(1.04); }
.case figcaption { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin-top: 14px; align-items: baseline; }
.case-no { grid-row: span 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); }
.case b { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.015em; }
.case-meta { color: var(--ink-2); }

/* ---------- The dentist: the dark chapter ---------- */
.doctor { position: relative; isolation: isolate; color: #efe8dd; }
.doctor::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; background: radial-gradient(ellipse 60% 70% at 80% 30%, rgba(163, 131, 91, 0.16), transparent 70%), #1c1a17; }
.doctor .eyebrow { color: #b7a993; }
.doctor .eyebrow::before { background: #b7a993; }
.doctor .display-2 { color: #f5efe5; }
.doctor .display-2 em { color: #d2b48a; }
.doctor .stack { border-color: rgba(239, 232, 221, 0.22); }
.doctor .cred { border-color: rgba(239, 232, 221, 0.12); }
.doctor .cred:hover { background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent); }
.doctor .cred h3 { color: #f5efe5; }
.doctor .cred p:last-child { color: #b9ae9f; }
.doctor .cred-year { color: #d2b48a; }
.doctor .cred-kind { color: #9d907e; }
.doctor .portrait-frame { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }

/* ---------- Fees & questions ---------- */
.fees { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); padding-block: clamp(80px, 9vw, 130px); align-items: start; }
.fee-list { list-style: none; margin: clamp(26px, 4vh, 44px) 0 0; padding: 0; border-top: 0.5px solid rgba(31, 29, 27, 0.25); }
.fee-list li { display: flex; align-items: baseline; gap: 12px; padding: clamp(12px, 1.8vh, 18px) 0; border-bottom: 0.5px solid rgba(31, 29, 27, 0.12); }
.fee-name { font-family: var(--serif); font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -0.01em; }
.fee-list i { flex: 1; border-bottom: 1px dotted rgba(31, 29, 27, 0.25); transform: translateY(-4px); }
.fee-price { font-family: var(--serif); font-size: clamp(20px, 1.6vw, 24px); font-variant-numeric: lining-nums; text-align: right; white-space: nowrap; }
.fee-price small { display: block; font-family: var(--sans); font-size: 12px; color: var(--ink-2); }
.fee-name small { display: block; margin-top: 2px; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; color: var(--ink-2); }
.price-credit { margin: -8px 0 18px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.fee-note { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-2); }
.faq-col .eyebrow { margin-bottom: clamp(18px, 3vh, 30px); }
.faq { border-top: 0.5px solid rgba(31, 29, 27, 0.25); }
.faq details { border-bottom: 0.5px solid rgba(31, 29, 27, 0.14); }
.faq summary { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(14px, 2.2vh, 22px) 0; list-style: none; cursor: pointer; font-family: var(--serif); font-size: clamp(21px, 1.7vw, 27px); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0.5px solid rgba(31, 29, 27, 0.3); transition: background 0.3s, transform 0.5s var(--ease); }
.faq summary span::before, .faq summary span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.4s var(--ease); }
.faq summary span::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary span { background: var(--ink); transform: rotate(180deg); }
.faq details[open] summary span::before { background: var(--paper); }
.faq details[open] summary span::after { transform: translate(-50%, -50%) rotate(0deg); background: var(--paper); }
.faq summary:hover { color: var(--bronze); }
.faq p { margin: 0; padding: 0 48px clamp(16px, 2.4vh, 24px) 0; font-size: 15px; color: var(--ink-2); max-width: 56ch; }

/* ---------- Assessment: a consultation, not a form ---------- */
.assessment { background: radial-gradient(ellipse 50% 60% at 85% 30%, rgba(184, 151, 107, 0.2), transparent 70%), #ece5da; }
.quiz { background: #faf7f2; box-shadow: 0 40px 80px -40px rgba(60, 45, 30, 0.35), inset 0 0 0 0.5px rgba(31, 29, 27, 0.1); -webkit-backdrop-filter: none; backdrop-filter: none; padding: clamp(28px, 3vw, 44px); }
.step-q { font-size: clamp(30px, 2.6vw, 42px); }
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice span { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; height: 100%; min-height: clamp(84px, 11vh, 108px); padding: 16px 16px 14px; border-radius: 4px; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; background: #fff; border: 0.5px solid rgba(31, 29, 27, 0.14); }
.choice svg { width: 28px; height: 28px; stroke-width: 1.1; color: var(--bronze); }
.choice:hover span { border-color: var(--bronze); transform: translateY(-2px); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:checked + span svg { color: #d2b48a; }
.option span { border-radius: 4px; background: #fff; }
.quiz-stage { min-height: 0; }

/* ---------- Desktop: one screen each for the new chapters ---------- */
@media (min-width: 1024px) and (min-height: 620px) {
  .cases, .fees { min-height: 100vh; min-height: 100svh; padding-top: var(--top); padding-bottom: var(--bot); }
  .cases { display: flex; flex-direction: column; justify-content: center; }
  .cases .display-2, .fees .display-2 { font-size: min(4.2vw, 6.6vh); }
  .cases .display-2 { max-width: none; }
  .cases-head { margin-bottom: min(3.6vh, 36px); }
  .fees { align-items: center; }
}

/* ---------- Mobile: designed, not squeezed ---------- */
@media (max-width: 1023px) {
  .bento { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .bento::-webkit-scrollbar { display: none; }
  .bento .card, .bento .card.card-lg, .bento .card.card-wide { flex: 0 0 78%; min-height: 460px; scroll-snap-align: start; grid-column: auto; grid-row: auto; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case:first-child { grid-column: 1 / -1; }
  .case:first-child .case-img { aspect-ratio: 16 / 10; }
  .fees { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-copy .lede { display: none; }
  .hero-copy { padding: 18px 18px 16px; }
  .hero-copy .display { font-size: 30px; }
  .hero-copy .eyebrow { margin-bottom: 10px; }
  .hero-actions { margin-top: 16px; }
  .compare-tag { top: 84px; }
  .case-grid { grid-template-columns: 1fr; }
  .pills { grid-template-columns: 1fr 1fr; }
  .brand-name { font-size: 19px; }
  .brand-mono { width: 28px; height: 28px; }
  .faq p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* #################### Final fixes #################### */
.doctor .portrait-caption strong { color: var(--ink); }
.fee-price small { display: inline; margin-left: 8px; }
@media (min-width: 1024px) and (max-height: 880px) {
  .fee-list li { padding: 1.2vh 0; }
  .fees .display-2 { font-size: min(3.8vw, 6vh); }
  .fee-list { margin-top: 2.4vh; }
}
.visit-tel, .quote blockquote, .step-q, .faq summary, .before-note b { font-variant-numeric: lining-nums; }
@media (max-width: 600px) {
  .hero-copy.glass { background: rgba(246, 243, 237, 0.8); }
  .hero-copy .eyebrow { color: var(--ink); font-weight: 500; }
  .before-note { top: 30%; padding: 12px; }
  .before-note b { font-size: 17px; }
  .before-note span { font-size: 11.5px; }
}
@media (max-width: 600px) {
  .visit-fig { overflow: visible; }
  .visit-fig img { border-radius: 3px; object-position: 55% 70%; }
  .visit-card { position: static; margin-top: 12px; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 18px; background: rgba(250, 248, 244, 0.9); }
}
@media (max-width: 600px) { .fee-price small { display: block; margin-left: 0; } .fee-list li { align-items: flex-start; } .fee-list i { align-self: center; } }
@media (max-width: 1023px) { .visit-fig img { aspect-ratio: auto; height: min(60vh, 560px); } }

/* #################### Signature moments: shade guide + inspection lamp #################### */
/* ---------- Shade guide ---------- */
.shade { padding-block: clamp(70px, 8vw, 120px); }
.shade-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.shade .display-2 { max-width: 13ch; }
.shade .muted { max-width: 42ch; margin: 22px 0 0; font-size: 16px; }
.shade-readout { display: flex; align-items: center; gap: 22px; margin-top: clamp(24px, 4vh, 40px); padding-top: 22px; border-top: 0.5px solid var(--hair); }
.shade-code { min-width: 3.1ch; font-family: var(--serif); font-size: 64px; font-weight: 300; line-height: 0.9; color: var(--ink); font-variant-numeric: lining-nums; }
.shade-text { display: grid; gap: 4px; }
.shade-text b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.shade-text span { font-size: 14px; color: var(--ink-2); }
.shade-fine { margin: 18px 0 0; font-size: 13px; color: var(--bronze); }

.shade-stage { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 3 / 2; background: #d9c8b6; }
.shade-photo, .shade-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.shade-photo { object-fit: cover; filter: saturate(0.72) sepia(0.08) contrast(1.03); user-select: none; -webkit-user-drag: none; }
.shade-canvas { filter: saturate(0.72) sepia(0.08) contrast(1.03); opacity: 0; transition: opacity 0.4s; }
.shade-stage.is-live .shade-canvas { opacity: 1; }
.shade-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(40, 28, 18, 0.22)); }

/* the fan: tooth-coloured porcelain tabs on handles, radiating from a pivot below the frame */
.shade-fan { --pivot: 250px; --step: 7.5deg; position: absolute; z-index: 2; left: 50%; bottom: -10px; width: min(380px, 70%); height: 180px; transform: translateX(-50%); cursor: grab; touch-action: pan-y; outline: none; -webkit-tap-highlight-color: transparent; }
.shade-fan.is-drag { cursor: grabbing; }
.shade-fan:focus-visible .tab.is-on b { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.tab { --lift: 0; position: absolute; left: 50%; bottom: 0; width: 32px; height: 124px; margin-left: -16px; transform-origin: 50% calc(100% + var(--pivot)); transform: rotate(calc(var(--i) * var(--step))) translateY(calc(var(--lift) * -22px)); filter: drop-shadow(0 6px 8px rgba(40, 28, 18, calc(0.22 + var(--lift) * 0.16))); pointer-events: none; }
.tab-tooth { position: absolute; top: 0; left: 1px; width: 30px; height: 50px; border-radius: 40% 40% 46% 46% / 20% 20% 74% 74%;
  background:
    radial-gradient(55% 38% at 34% 30%, rgba(255, 255, 255, 0.6), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 62%, #aeb9c2) 0%, var(--c) 30%, var(--c) 68%, color-mix(in srgb, var(--c) 82%, #a07e52) 100%);
  box-shadow: inset 0 -3px 4px rgba(120, 88, 48, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 0 0 0.5px rgba(60, 45, 30, 0.18); }
.tab-tooth::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 9px; margin-left: -5px; border-radius: 2px; background: linear-gradient(90deg, #8f8a83, #e9e6e1 45%, #a39e97); }
.tab b { position: absolute; bottom: 0; left: 4px; width: 24px; height: 68px; display: flex; align-items: center; justify-content: center; border-radius: 4px 4px 7px 7px; background: linear-gradient(90deg, #d8d4cd, #f7f5f1 42%, #e2ded7 70%, #c9c4bb); box-shadow: inset 0 0 0 0.5px rgba(60, 50, 40, 0.25); font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: #7b7268; writing-mode: vertical-rl; transform: rotate(180deg); }
.tab.is-on b { color: var(--ink); background: linear-gradient(90deg, #e6e1d8, #fffdf9 42%, #eee9e1 70%, #d6d0c6); }
.shade-hint { position: absolute; z-index: 3; left: 50%; bottom: 182px; transform: translate(-50%, 6px); padding: 8px 14px; border-radius: 99px; background: rgba(251, 248, 244, 0.86); box-shadow: 0 8px 24px -10px rgba(40, 28, 18, 0.4); font-size: 12.5px; font-weight: 500; color: var(--ink); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.6s, transform 0.6s var(--ease); }
.shade-hint::before { content: "\2194"; margin-right: 8px; color: var(--bronze); }
.shade-stage.show-hint:not(.was-used) .shade-hint { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1024px) and (min-height: 620px) {
  .shade { min-height: 100vh; min-height: 100svh; padding-top: var(--top); padding-bottom: var(--bot); display: flex; align-items: center; }
  .shade > .container { width: 100%; }
  .shade .display-2 { font-size: min(4.2vw, 6.6vh); }
  .shade-stage { aspect-ratio: auto; height: min(var(--avail), 40vw, 640px); }
}
@media (max-width: 1023px) {
  .shade-grid { grid-template-columns: 1fr; }
  .shade-stage { order: -1; }
  .shade .display-2 { max-width: 16ch; }
}
@media (max-width: 600px) {
  .shade-stage { aspect-ratio: 4 / 3.4; margin-inline: calc(-1 * var(--gutter) + 6px); }
  .shade-fan { --pivot: 210px; --step: 8.2deg; width: 92%; bottom: -16px; }
  .tab { width: 28px; margin-left: -14px; height: 112px; }
  .tab-tooth { width: 26px; height: 44px; }
  .tab b { width: 20px; left: 4px; height: 62px; font-size: 9px; }
  .shade-hint { bottom: 152px; }
  .shade-code { font-size: 52px; }
}

/* ---------- Inspection lamp over the cases ---------- */
.cases-side { display: grid; gap: 14px; max-width: 42ch; }
.lamp-hint { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--bronze); opacity: 0; transform: translateY(4px); transition: opacity 0.8s, transform 0.8s var(--ease); }
.lamp-hint.is-on { opacity: 1; transform: none; }
.lamp-hint i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff, #dfe8f5 45%, rgba(190, 205, 230, 0) 72%); box-shadow: 0 0 0 0.5px rgba(140, 109, 70, 0.5), 0 0 10px rgba(190, 210, 240, 0.9); }
.case-img { touch-action: pan-y; }
.case-img canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.case-img .lamp-glow { mix-blend-mode: screen; }
.case:hover .case-img img { transform: none; }

/* #################### Round 3 #################### */
/* Hero: the sample "before" carries the same grade as the after, so only the teeth differ */
.compare-before { filter: saturate(0.72) sepia(0.16) contrast(1.04) brightness(1.05); }
.compare-before.is-sample { animation: beforeIn 0.6s ease-out; }
@keyframes beforeIn { from { opacity: 0.6; } to { opacity: 1; } }

/* Cases: photos are graded to one warm look in the files; keep the CSS grade light and identical */
.case-img img, .case:hover .case-img img { filter: saturate(0.92) contrast(1.02); }

/* Rhythm: content-height chapters instead of 100vh boxes with empty bands */
@media (min-width: 1024px) and (min-height: 620px) {
  .shade { min-height: 0; padding-top: clamp(72px, 7vw, 112px); padding-bottom: clamp(40px, 4vw, 64px); }
  .cases { min-height: 0; padding-top: clamp(40px, 4vw, 64px); padding-bottom: clamp(72px, 7vw, 112px); }
  .voices { padding-bottom: clamp(40px, 4vw, 64px); }
  .fees { min-height: 0; padding-top: clamp(40px, 4vw, 64px); padding-bottom: clamp(72px, 7vw, 112px); }
}
@media (max-width: 1023px) {
  .shade { padding-bottom: 36px; }
  .cases { padding-top: 36px; }
  .voices { padding-bottom: 36px; }
  .fees { padding-top: 36px; }
}

/* Visit: the reception photo is already light and calm; a gentle warm grade only */
.visit-fig img { filter: saturate(0.82) sepia(0.14) contrast(1.02) brightness(0.98); object-position: 45% 60%; }

/* Footer: compact privacy + complaints notes */
.footer-policies { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); margin-top: clamp(36px, 5vw, 60px); padding-top: clamp(24px, 3vw, 36px); border-top: 0.5px solid rgba(243, 237, 227, 0.16); }
.policy { scroll-margin-top: 110px; }
.policy h4 { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #a59b8e; }
.policy p { margin: 0; max-width: 62ch; font-size: 13px; line-height: 1.7; color: #cfc6b9; }
.policy a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(165, 155, 142, 0.5); }
.policy:target h4 { color: #d2b48a; }
@media (max-width: 860px) { .footer-policies { grid-template-columns: 1fr; } }


/* #################### Mobile responsiveness pass #################### */
/* Root fixes first; everything below is scoped to small screens, touch devices or reduced motion,
   so the desktop layout is unchanged. */

/* fixed backgrounds jank / break on iOS and Android: scroll with the page on small or touch screens */
@media (max-width: 1023px), (hover: none) {
  body { background-attachment: scroll; }
}

/* anchor jumps land below the floating nav (desktop sections already pad for it) */
@media (max-width: 1023px) {
  main section[id], .policy { scroll-margin-top: 84px; }

  /* treatment carousel: two cards per view on tablets, wrap-safe footers */
  .bento .card, .bento .card.card-lg, .bento .card.card-wide { flex-basis: calc(50% - 6px); min-height: 440px; }
  .card-meta { flex-wrap: wrap; row-gap: 8px; }
  .bento { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-padding-inline: var(--gutter); }
  .statement-fig figcaption span { white-space: nowrap; }

  /* centred media once the columns stack */
  .doctor-portrait, .statement-fig { margin-inline: auto; width: 100%; }
}

/* touch: no sticky hover lifts, spinning rings or tilts left behind after a tap */
@media (hover: none) {
  .btn:hover, .quote:hover, .choice:hover span { transform: none; }
  .card:hover { --lift: 0px; box-shadow: none; }
  .card:hover .card-ring { opacity: 0; animation: none; }
  .card:hover .card-art { transform: none; }
  .card:hover .card-foot h3 { color: inherit; }
  .card:hover .card-meta .read { transform: none; color: var(--ink); }
  .divider:hover .divider-handle { transform: translate(-50%, -50%); }
  .drawer-close:hover { transform: none; }
  .compare { cursor: auto; }
}

/* comfortable tap targets */
@media (max-width: 860px) {
  .menu-btn { height: 44px; }
  .menu-btn i:first-child { top: 18px; }
  .menu-btn i:last-child { top: 25px; }
  .menu-btn[aria-expanded="true"] i:first-child,
  .menu-btn[aria-expanded="true"] i:last-child { top: 21.5px; }
  .channel label span { padding-block: 12px; }
  .legal-links a { display: inline-block; padding-block: 10px; }
  .mobile-menu { overflow-y: auto; overscroll-behavior: contain; background: #f6f4ee; }
  .mobile-menu a:not(.btn) { padding-block: 2px; }
  .brand { min-height: 44px; }
  .footer .footer-cols p a { display: inline-block; padding-block: 7px; line-height: 1.6; }
  /* nothing under 10.5px on small screens */
  .pill { font-size: 11px; }
  .card-index, .case-no, .quiz-count { font-size: 11px; }
  .shade { padding-top: 48px; }
}

@media (max-width: 600px) {
  /* hero: handle sits higher so the copy card never covers it on short phones */
  .divider-handle { top: 40%; width: 52px; height: 52px; }
  .divider-hint { top: calc(40% + 38px); }
  .hero-copy .display { font-size: clamp(27px, 8.2vw, 32px); }
  .hero-actions .btn { min-height: 44px; }

  /* shade guide: hint sits above the face, not over the teeth */
  .shade-hint { bottom: auto; top: 14px; }

  /* treatment carousel: one card and a peek of the next */
  .bento .card, .bento .card.card-lg, .bento .card.card-wide { flex-basis: 82%; min-height: min(440px, 125vw); }
  .card-lg .card-foot { margin: auto 12px 12px; padding: 18px 20px 16px; }
  .card-lg .card-foot h3 { font-size: 30px; }

  /* stats dock: numbers fit two narrow columns */
  .stats > div, .stats > div + div { min-height: 128px; padding: 20px 16px; }
  .stats dt { font-size: clamp(36px, 11vw, 50px); }
  .stats dt span { margin-left: 4px; }
  .stats dd { margin-top: 14px; font-size: 12.5px; line-height: 1.45; }

  /* doctor ledger */
  .cred h3 { font-size: 25px; }
  .cred-year { font-size: 30px; }

  /* assessment */
  .quiz { padding: 22px 18px; }
  .step-q { font-size: 28px; }
  .choice span { min-height: 84px; padding: 14px 14px 12px; }
  .quiz-nav .btn { flex: 1; min-height: 46px; }
  .channel { display: grid; width: 100%; }
  .tel select { padding-inline: 12px 8px; }

  /* treatment drawer: tighter frame, title clears the close button, button text can wrap */
  .drawer { inset: 10px; }
  .drawer-close { top: 12px; right: 12px; }
  .drawer-body { padding: 16px 18px 28px; }
  .drawer .d-head .eyebrow { min-height: 44px; margin-bottom: 10px; padding-right: 52px; }
  .d-title { font-size: clamp(34px, 10.5vw, 44px); }
  .d-sub { font-size: 15px; }
  .d-head .card-art { min-height: 180px; }
  .d-notes blockquote { font-size: 22px; }
  .d-fact { padding: 14px; }
  .d-fact strong { font-size: 22px; }
  .price { padding: 20px 18px; }
  .price .btn { white-space: normal; text-align: center; min-height: 46px; }
  .price td { padding-block: 10px; }

  /* voices */
  .rating { border-radius: 20px; padding: 14px 18px; gap: 14px; }
  .quote { gap: 24px; }

  /* visit */
  .visit-actions { gap: 14px 22px; }
  .visit-actions .btn { flex: 1 1 100%; min-height: 46px; }
  .visit-fig img { height: min(56svh, 460px); }

  /* footer: nothing wider than the screen */
  .footer .footer-cols { gap: 28px 20px; }
  .footer .footer-cols p { line-height: 2.1; overflow-wrap: anywhere; }
  .wordmark { font-size: clamp(34px, 11.5vw, 60px); white-space: normal; }
  .footer .footer-legal { flex-direction: column; gap: 8px; }

  .mobile-menu { padding: 96px 24px 32px; }
  .mobile-menu a:not(.btn) { font-size: clamp(34px, 10vw, 44px); }
  .mobile-menu .btn { align-self: stretch; min-height: 48px; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 17px; }
  .pills { gap: 8px; }
  .choice span { font-size: 13px; }
  .visit-card { grid-template-columns: 1fr; }
  .footer .footer-cols { grid-template-columns: 1fr; }
  .trust ul { grid-template-columns: 1fr; }
}

/* landscape phones: the hero copy must not swallow the whole screen */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1023px) {
  .hero-copy { left: var(--gutter); right: auto; bottom: 12px; max-width: 380px; padding: 16px 18px; }
  .hero-copy .eyebrow { margin-bottom: 8px; }
  .hero-copy .display { font-size: 26px; }
  .hero-copy .lede { display: none; }
  .hero-actions { margin-top: 12px; }
  .scroll-cue { display: none; }
  .compare-tag { top: 76px; }
  .marker-card { display: none; }
  .mobile-menu { justify-content: flex-start; padding-top: 84px; }
  .mobile-menu a:not(.btn) { font-size: 30px; }
  .bento .card, .bento .card.card-lg, .bento .card.card-wide { min-height: 340px; flex-basis: 44%; }
  .visit-fig img { height: 80svh; }
}

/* reduced motion: no endless pulses, sweeps or cue loops */
@media (prefers-reduced-motion: reduce) {
  .marker-dot::before, .marker-dot::after, .scroll-cue span, .art-laser::after, .card:hover .card-ring { animation: none !important; }
  .mobile-menu { animation: none; }
  .statement-text .w { transition: none; }
}


/* #################### Design polish, pass 2 #################### */
/* Section-by-section refinements. Mostly scoped to phones and tablets; the few global rules
   (text wrapping, hero card legibility, quiz "done" state) also tidy the desktop. */

/* Typography: no orphans, nicer rag */
p, li, dd, blockquote, figcaption { text-wrap: pretty; }
.faq summary { line-height: 1.25; text-wrap: balance; }
.fee-name, .case b, .visit-steps b, .portrait-caption strong, .quote blockquote { text-wrap: balance; }

/* Hero: the copy card stays legible over the red sweater at every width */
@media (min-width: 601px) {
  .hero-copy.glass { background: rgba(246, 243, 237, 0.7); -webkit-backdrop-filter: blur(24px) saturate(0.85); backdrop-filter: blur(24px) saturate(0.85); }
  .hero-copy .lede { color: rgba(31, 29, 27, 0.78); }
}
/* the "Drag to compare" chip hides when the glass sits near an edge, so it is never cut off */
.divider-hint { transition: opacity 0.4s; }
.compare.hint-off .divider-hint { opacity: 0; }

/* Quiz: the finished state is a calm, centred card, not one with an empty footer band */
.quiz-nav.is-hidden { display: none; }
.step-done { padding-block: 28px 12px; }

/* ---------- Tablet & phone ---------- */
@media (max-width: 1023px) {
  /* treatment cards: one plate style for all five (the first card no longer hides the smile) */
  .bento .card.card-lg .card-foot { max-width: none; margin: auto 12px 12px; padding: 14px 16px 12px; }
  .bento .card.card-lg .card-foot h3 { font-size: 24px; margin-bottom: 2px; }
  .bento .card.card-lg .card-foot p { display: none; }
  .bento .card.card-lg .card-meta .read { font-size: 0; }
  .bento .card.card-lg .card-meta .read::after { content: "→"; font-size: 14px; }
  .card-meta .read { padding-inline: 4px 2px; }

  /* the dark chapter gets the same breathing room as the other sections */
  .doctor { padding-top: 64px; padding-bottom: 72px; }

  /* fees then questions: a clear pause between the two blocks */
  .fees { row-gap: 64px; }
}

/* ---------- Tablet only: use the width instead of centring narrow columns ---------- */
@media (min-width: 601px) and (max-width: 860px) {
  .statement-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; }
  .statement-fig { max-width: none; }

  .doctor { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; gap: 36px; }
  .doctor-portrait { position: sticky; top: 96px; max-width: none; }
  .doctor .display-2 { font-size: 40px; }

  .footer .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .footer-policies { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer columns: one line rhythm for links and plain text ---------- */
@media (max-width: 860px) {
  .footer .footer-cols p { line-height: 36px; }
  .footer .footer-cols p a { display: inline-block; padding-block: 0; line-height: 36px; }
  .footer .footer-cols h4 { margin-bottom: 6px; }
}

/* ---------- Drawer art on narrow screens: frame the face, not the hairline ---------- */
@media (max-width: 860px) {
  .d-head .card-art { min-height: 210px; }
  .drawer .card-art.art-veneers { background-position: 50% 64%; }
  .drawer .card-art.art-aligners { background-position: 50% 40%; }
  .drawer .card-art.art-laser { background-position: 50% 38%; }
  .drawer .card-art.art-whitening { background-position: 50% 36%; }
  .drawer .card-art.art-facial { background-position: 50% 42%; }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  /* hero: the glass handle rests below the smile instead of on top of it */
  .divider-handle { top: 54%; }
  .divider-hint { top: calc(54% + 36px); }

  /* trust strip: four tidy two-line cells */
  .trust ul { gap: 14px 18px; padding-block: 20px; }
  .trust li { text-wrap: balance; }

  /* shade stage on the same 16px gutter as every other image */
  .shade-stage { margin-inline: 0; }

  /* fees: the dotted leader always runs to the price; the note sits under it */
  .fee-list li { flex-wrap: wrap; align-items: baseline; row-gap: 0; column-gap: 12px; }
  .fee-list i { align-self: auto; min-width: 16px; }
  .fee-price { display: contents; }
  .fee-price small { flex-basis: 100%; margin: 2px 0 0; text-align: right; }

  /* drawer facts: three across, no orphan tile */
  .d-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .d-fact { padding: 12px; }
  .d-fact strong { font-size: 20px; }

  /* visit: phone number centred under the full-width button */
  .visit-actions { justify-content: center; }
}
