/* ============================================================
   MERIDIAN HAIR INSTITUTE — design system
   Palette: ink #161917 · ivory #FAF8F4 · bone #F0EBE2
            champagne #B99668 · sage #6E7D74
   Type: Fraunces (display) + Inter (body)
   ============================================================ */

:root {
  --ink: #161917;
  --ink-soft: #232725;
  --ink-mute: #4d524f;
  --ivory: #faf8f4;
  --bone: #f0ebe2;
  --bone-deep: #e6dfd2;
  --gold: #b99668;
  --gold-deep: #96754a;
  --gold-pale: #d8c5a5;
  --sage: #6e7d74;
  --on-dark: #e8e5df;
  --on-dark-mute: #a8a69f;
  --line: rgba(22, 25, 23, 0.12);
  --line-strong: rgba(22, 25, 23, 0.22);
  --line-dark: rgba(232, 229, 223, 0.14);
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --sect: clamp(6rem, 12vw, 11rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 78rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--gold-pale); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--on-dark);
  padding: 0.75rem 1.25rem; font-size: 0.875rem;
}
.skip-link:focus { left: 0; }

/* ---------- typography ---------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}

.display-xl { font-size: clamp(2.75rem, 6.4vw, 5.75rem); }
.display-lg { font-size: clamp(2.25rem, 4.6vw, 4rem); }
.display-md { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.14; }
.display-sm { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.25; }

.display-it { font-style: italic; font-weight: 340; color: var(--gold-deep); }
.on-dark .display-it { color: var(--gold-pale); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ""; width: 2rem; height: 1px; background: var(--gold);
}
.on-dark .eyebrow { color: var(--gold-pale); }
.on-dark .eyebrow::before { background: var(--gold); }

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.65;
  color: var(--ink-mute);
  max-width: 38em;
}
.on-dark .lead { color: var(--on-dark-mute); }

.small { font-size: 0.875rem; line-height: 1.6; }
.mute { color: var(--ink-mute); }
.on-dark .mute { color: var(--on-dark-mute); }

/* ---------- layout ---------- */

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 52rem; margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--sect); position: relative; }
.section-tight { padding-block: clamp(4rem, 8vw, 7rem); }

.on-dark {
  background: var(--ink);
  color: var(--on-dark);
}
.on-bone { background: var(--bone); }

.grid-2 { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.sect-head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.sect-head.center { margin-inline: auto; text-align: center; }
.sect-head.center .eyebrow { justify-content: center; }
.sect-head .lead { margin-top: 1.25rem; }

/* ---------- header ---------- */

.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: transform 0.45s var(--ease), background 0.35s, box-shadow 0.35s;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(250, 248, 244, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.hidden { transform: translateY(-100%); }
.header-dark:not(.scrolled) { color: var(--on-dark); }

.header-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  height: 4.75rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  width: 2.1rem; height: 2.1rem; flex: none;
  color: var(--gold);
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.brand-name span {
  display: block;
  font-family: var(--sans);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 0.15rem;
  white-space: nowrap;
}
@media (max-width: 479px) {
  .brand-name { font-size: 1.0625rem; }
  .brand-name span { font-size: 0.5rem; letter-spacing: 0.26em; }
}
.header-dark:not(.scrolled) .brand-name span { color: var(--gold-pale); }

.nav-main { display: none; }
@media (min-width: 1040px) {
  .nav-main { display: flex; gap: 2rem; align-items: center; }
}
.nav-main > a {
  font-size: 0.9rem; font-weight: 500;
  opacity: 0.82;
  transition: opacity 0.25s;
  position: relative;
  padding-block: 0.5rem;
}
.nav-main > a:hover, .nav-main > a[aria-current="page"] { opacity: 1; }
.nav-main > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
}

a.btn.header-cta { display: none; }
@media (min-width: 1040px) { a.btn.header-cta { display: inline-flex; } }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  padding: 0.75rem 0.25rem; margin-right: -0.25rem;
}
@media (min-width: 1040px) { .nav-toggle { display: none; } }
.nav-toggle span {
  width: 1.5rem; height: 1.5px; background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: 0; z-index: 90;
  width: 100vw; overflow-x: hidden;
  background: var(--ink); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
}
.nav-open .nav-drawer { opacity: 1; visibility: visible; }
.nav-drawer a.big {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5.5vw, 2.5rem);
  min-width: 0;
  font-weight: 380;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.25s, padding-left 0.3s var(--ease);
}
.nav-drawer a.big:hover { color: var(--gold-pale); padding-left: 0.5rem; }
.nav-drawer .drawer-meta {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  font-size: 0.875rem; color: var(--on-dark-mute);
}
.nav-open { overflow: hidden; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-size: 0.9375rem; font-weight: 550;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.35s;
  will-change: transform;
  min-height: 44px;
}
.btn svg { width: 1rem; height: 1rem; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--ink); color: var(--ivory);
  box-shadow: 0 0 0 0 rgba(185, 150, 104, 0);
}
.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -14px rgba(22, 25, 23, 0.55);
}
.on-dark .btn-primary, .btn-gold {
  background: var(--gold); color: var(--ink);
}
.on-dark .btn-primary:hover, .btn-gold:hover {
  background: var(--gold-pale);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -14px rgba(185, 150, 104, 0.6);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.on-dark .btn-ghost { border-color: var(--line-dark); color: var(--on-dark); }
.on-dark .btn-ghost:hover { border-color: var(--gold); color: var(--gold-pale); }

.btn-sm { padding: 0.65rem 1.3rem; font-size: 0.875rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9375rem; font-weight: 550;
  color: var(--gold-deep);
  border-bottom: 1px solid transparent;
  transition: gap 0.3s var(--ease), border-color 0.3s;
  padding-block: 0.25rem;
}
.text-link:hover { gap: 0.85rem; border-color: var(--gold-deep); }
.on-dark .text-link { color: var(--gold-pale); }
.text-link svg { width: 0.9rem; height: 0.9rem; }

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(185, 150, 104, 0.16), transparent 55%),
    radial-gradient(80% 60% at -10% 110%, rgba(110, 125, 116, 0.12), transparent 60%),
    var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  padding-top: 8rem;
}
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(3rem, 6vh, 5.5rem); }
.hero h1 { max-width: 13em; }
.hero .lead { margin-top: 1.75rem; }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  margin-top: 2.5rem;
}
.hero-note { font-size: 0.8125rem; color: var(--on-dark-mute); margin-top: 1.1rem; }

.hero-fig {
  position: absolute; right: -4vw; top: 50%;
  width: clamp(20rem, 42vw, 44rem);
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}
@media (max-width: 900px) { .hero-fig { opacity: 0.22; right: -30vw; } }

.proof-strip {
  border-top: 1px solid var(--line-dark);
  position: relative; z-index: 2;
}
.proof-strip-inner {
  display: grid; grid-template-columns: repeat(2, 1fr);
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
@media (min-width: 800px) { .proof-strip-inner { grid-template-columns: repeat(4, 1fr); } }
.proof-cell {
  padding: 1.6rem 1rem 1.6rem 0;
  border-left: 1px solid var(--line-dark);
  padding-left: 1.25rem;
}
.proof-cell:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 799px) {
  .proof-cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof-cell { border-top: 1px solid var(--line-dark); }
  .proof-cell:nth-child(-n+2) { border-top: 0; }
}
.proof-num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 400;
  color: var(--gold-pale);
  line-height: 1.1;
}
.proof-label { font-size: 0.8125rem; color: var(--on-dark-mute); margin-top: 0.3rem; }

/* page hero (interior pages) */
.page-hero {
  padding-top: clamp(9rem, 16vh, 12rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.page-hero .lead { margin-top: 1.5rem; }
.crumbs {
  display: flex; gap: 0.6rem; align-items: center;
  font-size: 0.8125rem; color: var(--ink-mute);
  margin-bottom: 1.75rem;
}
.crumbs a:hover { color: var(--gold-deep); }
.crumbs span { opacity: 0.5; }
.on-dark .crumbs { color: var(--on-dark-mute); }

/* ---------- cards ---------- */

.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
a.card:hover, .card.hoverable:hover {
  transform: translateY(-5px);
  border-color: var(--gold-pale);
  box-shadow: 0 24px 48px -28px rgba(22, 25, 23, 0.28);
}
.on-dark .card {
  background: var(--ink-soft);
  border-color: var(--line-dark);
}

.card .num {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--gold-deep);
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.375rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.9375rem; color: var(--ink-mute); flex: 1; }
.on-dark .card p { color: var(--on-dark-mute); }
.card .text-link { margin-top: 1.5rem; }

.card-icon {
  width: 2.75rem; height: 2.75rem;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
}
.card-icon svg { width: 100%; height: 100%; }
.on-dark .card-icon { color: var(--gold-pale); }

/* treatment feature card w/ meta row */
.card-meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--ink-mute);
}
.on-dark .card-meta { border-color: var(--line-dark); color: var(--on-dark-mute); }
.card-meta b { color: var(--ink); font-weight: 600; display: block; font-size: 0.875rem; }
.on-dark .card-meta b { color: var(--on-dark); }

/* ---------- before / after slider ---------- */

.ba-slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background: var(--bone-deep);
}
.ba-pane { position: absolute; inset: 0; }
.ba-pane.after { clip-path: inset(0 0 0 var(--split, 50%)); }
.ba-vis {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%);
  width: 2px; background: var(--ivory);
  transform: translateX(-1px);
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(22,25,23,.08);
}
.ba-handle::after {
  content: "◂ ▸";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ivory); color: var(--ink);
  font-size: 0.6rem; letter-spacing: 0.1em;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -6px rgba(22,25,23,.4);
}
.ba-tag {
  position: absolute; bottom: 0.9rem; z-index: 2;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(22, 25, 23, 0.72); color: var(--on-dark);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 0.35rem 0.8rem; border-radius: 999px;
}
.ba-tag.before { left: 0.9rem; }
.ba-tag.after-tag { right: 0.9rem; background: rgba(150, 117, 74, 0.85); }

.case-card { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--ivory); }
.case-card .ba-slider { border-radius: 0; }
.case-body { padding: 1.5rem clamp(1.25rem, 2vw, 1.75rem); }
.case-body h3 { font-size: 1.1875rem; margin-bottom: 0.35rem; }
.case-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-top: 1.1rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.case-facts div b {
  display: block; font-family: var(--serif); font-weight: 450;
  font-size: 1.1875rem; color: var(--gold-deep);
}
.case-facts div span { font-size: 0.75rem; color: var(--ink-mute); letter-spacing: 0.04em; }

/* ---------- process timeline ---------- */

.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 1.1rem; top: 0.5rem; bottom: 0.5rem;
  width: 1px; background: var(--line-strong);
}
.on-dark .timeline::before { background: var(--line-dark); }
.tl-item { position: relative; padding: 0 0 2.75rem 3.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0.65rem; top: 0.35rem;
  width: 0.95rem; height: 0.95rem; border-radius: 50%;
  background: var(--ivory);
  border: 1.5px solid var(--gold-deep);
}
.on-dark .tl-item::before { background: var(--ink); border-color: var(--gold); }
.tl-item .tl-step {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.4rem; display: block;
}
.on-dark .tl-item .tl-step { color: var(--gold-pale); }
.tl-item h3 { font-size: 1.3125rem; margin-bottom: 0.5rem; }
.tl-item p { font-size: 0.9375rem; color: var(--ink-mute); max-width: 34em; }
.on-dark .tl-item p { color: var(--on-dark-mute); }
.tl-item .tl-time { font-size: 0.8125rem; color: var(--sage); margin-top: 0.5rem; font-weight: 550; }

/* ---------- accordion ---------- */

.acc { border-top: 1px solid var(--line); }
.on-dark .acc { border-color: var(--line-dark); }
.acc-item { border-bottom: 1px solid var(--line); }
.on-dark .acc-item { border-color: var(--line-dark); }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0.25rem;
  text-align: left;
  font-family: var(--serif); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 420;
  transition: color 0.25s;
}
.acc-btn:hover { color: var(--gold-deep); }
.on-dark .acc-btn:hover { color: var(--gold-pale); }
.acc-icon {
  flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.on-dark .acc-icon { border-color: var(--line-dark); }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 0.7rem; height: 1.2px; background: currentColor;
  transform: translate(-50%, -50%);
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease); }
.acc-item.open .acc-icon { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); }
.acc-item.open .acc-icon::before, .acc-item.open .acc-icon::after { background: var(--ink); }
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p {
  padding: 0 3.5rem 1.5rem 0.25rem;
  font-size: 0.9375rem; color: var(--ink-mute); max-width: 44em;
}
.on-dark .acc-panel p { color: var(--on-dark-mute); }

/* ---------- pricing ---------- */

.price-grid { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  border: 1px solid var(--line); border-radius: 2px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column;
  background: var(--ivory);
  position: relative;
}
.price-card.featured {
  background: var(--ink); color: var(--on-dark);
  border-color: var(--ink);
}
.price-card .plan-tag {
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink);
  font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 1.375rem; }
.price-card .price-sub { font-size: 0.875rem; color: var(--ink-mute); margin-top: 0.25rem; }
.price-card.featured .price-sub { color: var(--on-dark-mute); }
.price-figure {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.25rem, 3.4vw, 2.9rem);
  margin: 1.5rem 0 0.2rem;
}
.price-figure sup { font-size: 0.45em; font-weight: 500; margin-right: 0.15em; }
.price-figure small { font-family: var(--sans); font-size: 0.4em; font-weight: 500; color: var(--ink-mute); }
.price-card.featured .price-figure small { color: var(--on-dark-mute); }
.price-card .price-from { font-size: 0.8125rem; color: var(--gold-deep); font-weight: 550; }
.price-card.featured .price-from { color: var(--gold-pale); }
.price-list { margin: 1.6rem 0 2rem; flex: 1; }
.price-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  font-size: 0.9rem; padding-block: 0.45rem;
  color: var(--ink-mute);
}
.price-card.featured .price-list li { color: var(--on-dark-mute); }
.price-list li svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.28rem; color: var(--gold-deep); }
.price-card.featured .price-list li svg { color: var(--gold); }

.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.compare-table th, .compare-table td {
  padding: 1.1rem 1.25rem; text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  font-family: var(--serif); font-size: 1.125rem; font-weight: 450;
  border-bottom: 1px solid var(--line-strong);
}
.compare-table tbody th { font-weight: 600; font-size: 0.875rem; color: var(--ink-mute); white-space: nowrap; }
.compare-table td { color: var(--ink-mute); }
.compare-table td b { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 640px; }

/* ---------- testimonials ---------- */

.quote-card {
  border-left: 2px solid var(--gold);
  padding: 0.5rem 0 0.5rem clamp(1.5rem, 3vw, 2.25rem);
}
.quote-card blockquote {
  font-family: var(--serif); font-weight: 380;
  font-size: clamp(1.1875rem, 1.9vw, 1.5rem);
  line-height: 1.45;
}
.quote-card figcaption { margin-top: 1.25rem; font-size: 0.875rem; color: var(--ink-mute); }
.on-dark .quote-card figcaption { color: var(--on-dark-mute); }
.quote-card figcaption b { color: inherit; font-weight: 600; display: block; }
.stars { color: var(--gold); letter-spacing: 0.15em; font-size: 0.8125rem; margin-bottom: 1rem; }

/* ---------- doctor profiles ---------- */

.doc-card { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 800px) { .doc-card { grid-template-columns: 2fr 3fr; } }
.doc-portrait {
  aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden;
  background: linear-gradient(160deg, var(--bone) 0%, var(--bone-deep) 100%);
  display: flex; align-items: flex-end; justify-content: center;
  position: relative;
}
.doc-portrait svg { width: 72%; height: auto; opacity: 0.9; }
.doc-cred {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem;
}
.chip {
  font-size: 0.75rem; font-weight: 550; letter-spacing: 0.03em;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.35rem 0.9rem; color: var(--ink-mute);
}
.on-dark .chip { border-color: var(--line-dark); color: var(--on-dark-mute); }

/* ---------- forms ---------- */

.field { margin-bottom: 1.4rem; }
.field label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 0.9375rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(185, 150, 104, 0.18);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field .hint { font-size: 0.75rem; color: var(--ink-mute); margin-top: 0.4rem; }

.choice-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(3, 1fr); } }
.choice {
  position: relative; display: block;
}
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: flex; flex-direction: column; gap: 0.2rem;
  border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 1rem 1.1rem;
  font-size: 0.9rem; font-weight: 550;
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
  cursor: pointer;
  min-height: 44px;
}
.choice small { font-weight: 400; font-size: 0.75rem; color: var(--ink-mute); }
.choice input:checked + span {
  border-color: var(--gold-deep);
  background: rgba(185, 150, 104, 0.1);
}
.choice input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.choice:hover span { border-color: var(--gold); }

/* consultation steps */
.steps-bar {
  display: flex; gap: 0.5rem; margin-bottom: 2.5rem;
}
.steps-bar .step-seg {
  flex: 1; height: 2px; background: var(--line-strong); border-radius: 2px;
  position: relative; overflow: hidden;
}
.steps-bar .step-seg::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gold-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.steps-bar .step-seg.done::after, .steps-bar .step-seg.active::after { transform: scaleX(1); }
.step-label { font-size: 0.8125rem; font-weight: 600; color: var(--gold-deep); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.form-step { display: none; }
.form-step.active { display: block; animation: stepIn 0.5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.form-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

.form-success {
  text-align: center; padding: 3rem 1rem;
}
.form-success .tick {
  width: 4rem; height: 4rem; margin: 0 auto 1.5rem;
  border-radius: 50%; border: 1.5px solid var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep);
}
.form-success .tick svg { width: 1.6rem; height: 1.6rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(90% 120% at 90% 0%, rgba(185, 150, 104, 0.2), transparent 55%),
    var(--ink);
  color: var(--on-dark);
  text-align: center;
}
.cta-band .lead { margin-inline: auto; margin-top: 1.25rem; }
.cta-band .hero-actions { justify-content: center; margin-top: 2.25rem; }
.cta-assure {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.25rem;
  margin-top: 2.5rem;
  font-size: 0.8125rem; color: var(--on-dark-mute);
}
.cta-assure li { display: flex; align-items: center; gap: 0.5rem; }
.cta-assure svg { width: 0.9rem; height: 0.9rem; color: var(--gold-pale); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink); color: var(--on-dark);
  padding: clamp(4rem, 8vw, 6.5rem) 0 2.5rem;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid; gap: 3rem 2rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 4rem;
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2.2fr 1fr 1fr 1.4fr; } }
.footer-brand p { font-size: 0.9rem; color: var(--on-dark-mute); max-width: 26em; margin-top: 1.25rem; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 650; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-pale); margin-bottom: 1.25rem;
}
.footer-col a {
  display: block; font-size: 0.9rem; color: var(--on-dark-mute);
  padding-block: 0.35rem;
  transition: color 0.25s, padding-left 0.3s var(--ease);
}
.footer-col a:hover { color: var(--on-dark); padding-left: 0.3rem; }
.footer-contact li { font-size: 0.9rem; color: var(--on-dark-mute); padding-block: 0.35rem; }
.footer-contact b { color: var(--on-dark); font-weight: 550; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-size: 0.8125rem; color: var(--on-dark-mute);
}
.footer-bottom .legal { max-width: 52em; font-size: 0.75rem; line-height: 1.6; }

/* ---------- floating affordances ---------- */

.sticky-cta {
  position: fixed; bottom: 1.25rem; left: 50%; z-index: 80;
  transform: translate(-50%, 140%);
  transition: transform 0.55s var(--ease);
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(22, 25, 23, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--on-dark);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 1.4rem;
  box-shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.sticky-cta.visible { transform: translate(-50%, 0); }
.sticky-cta .s-label { font-size: 0.875rem; font-weight: 500; }
@media (max-width: 480px) { .sticky-cta .s-label { display: none; } .sticky-cta { padding-left: 0.5rem; } }

.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--ivory); color: var(--ink);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 36px -14px rgba(22, 25, 23, 0.4);
  transition: transform 0.35s var(--ease), background 0.3s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: var(--bone); }
.wa-float svg { width: 1.4rem; height: 1.4rem; }

/* ---------- reveal animations ---------- */

.rv {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  transition-delay: var(--rv-delay, 0ms);
  will-change: opacity, transform, filter;
}
.rv.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .btn, .card, a.card { transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- misc / helpers ---------- */

.divider-fine { height: 1px; background: var(--line); border: 0; }
.on-dark .divider-fine { background: var(--line-dark); }

.checklist li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding-block: 0.55rem;
  font-size: 0.9375rem; color: var(--ink-mute);
}
.on-dark .checklist li { color: var(--on-dark-mute); }
.checklist svg { width: 1.05rem; height: 1.05rem; flex: none; margin-top: 0.3rem; color: var(--gold-deep); }
.on-dark .checklist svg { color: var(--gold-pale); }
.checklist b { color: var(--ink); font-weight: 600; }
.on-dark .checklist b { color: var(--on-dark); }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem); color: var(--gold-deep); line-height: 1.05;
}
.on-dark .stat b { color: var(--gold-pale); }
.stat span { font-size: 0.875rem; color: var(--ink-mute); }
.on-dark .stat span { color: var(--on-dark-mute); }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.tag-btn {
  font-size: 0.8125rem; font-weight: 550;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.5rem 1.1rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  min-height: 40px;
}
.tag-btn:hover { border-color: var(--ink); }
.tag-btn.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.gallery-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: 1fr 1fr 1fr; } }
.gallery-grid .case-card.hidden-by-filter { display: none; }

.blog-card { padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.blog-card .b-meta { font-size: 0.8125rem; color: var(--ink-mute); display: flex; gap: 1rem; margin-bottom: 0.75rem; }
.blog-card .b-cat { color: var(--gold-deep); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.6875rem; }
.blog-card h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); margin-bottom: 0.6rem; transition: color 0.25s; }
.blog-card:hover h3 { color: var(--gold-deep); }
.blog-card p { font-size: 0.9375rem; color: var(--ink-mute); max-width: 46em; }

.note-box {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: var(--bone);
  padding: 1.5rem 1.75rem;
  border-radius: 2px;
  font-size: 0.9375rem; color: var(--ink-mute);
}
.note-box b { color: var(--ink); }

.map-embed {
  border: 1px solid var(--line); border-radius: 2px;
  background: linear-gradient(140deg, var(--bone), var(--bone-deep));
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute); font-size: 0.875rem;
}

/* ---------- location block (map + info cards) ---------- */

.loc-grid { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 960px) { .loc-grid { grid-template-columns: 1.7fr 1fr; } }
.map-frame {
  position: relative;
  border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
  background: var(--bone);
  min-height: 24rem;
}
.map-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
  filter: saturate(0.85) contrast(1.02);
}
.loc-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.loc-card {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--ivory);
  padding: 1.75rem;
  flex: 1;
}
.loc-card h3 {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.1875rem; margin-bottom: 1rem;
}
.loc-card h3 svg { width: 1.1rem; height: 1.1rem; color: var(--gold-deep); flex: none; }
.loc-card p { font-size: 0.9375rem; color: var(--ink-mute); }
.hours-row {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.9375rem; padding-block: 0.4rem;
  color: var(--ink-mute);
}
.hours-row b { color: var(--ink); font-weight: 600; }
.hours-row .closed {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--ink-mute); background: var(--bone);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.15rem 0.7rem;
}
.loc-call {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  border-radius: 10px; padding: 1.1rem;
  background: var(--ink); color: var(--ivory);
  font-weight: 550; font-size: 1.0625rem;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.loc-call:hover { background: var(--ink-soft); transform: translateY(-2px); }
.loc-call svg { width: 1.1rem; height: 1.1rem; }

/* ---------- B&A representative visualizations ----------
   Dot-density scalp fields (illustrative placeholders — swap with
   clinical photography at launch; density communicates the concept). */

.ba-vis { position: relative; }
.vis-scalp-before, .vis-scalp-after, .vis-crown-before, .vis-crown-after,
.vis-beard-before, .vis-beard-after, .vis-brow-before, .vis-brow-after,
.vis-women-before, .vis-women-after {
  background-color: #e9ddcd;
  background-image:
    radial-gradient(circle at 50% 120%, #dcc9b0 0%, transparent 60%),
    radial-gradient(rgba(58, 50, 40, 0.9) 0.8px, transparent 0.9px);
  background-size: 100% 100%, 7px 7px;
}
.vis-scalp-before {
  background-image:
    linear-gradient(to bottom, #e9ddcd 0%, #e9ddcd 46%, transparent 62%),
    radial-gradient(circle at 50% 130%, #d8c4a8 0%, transparent 55%),
    radial-gradient(rgba(58, 50, 40, 0.85) 0.8px, transparent 0.9px);
  background-size: 100% 100%, 100% 100%, 9px 9px;
}
.vis-scalp-after {
  background-image:
    linear-gradient(to bottom, rgba(233,221,205,0.9) 0%, transparent 26%),
    radial-gradient(circle at 50% 130%, #d8c4a8 0%, transparent 55%),
    radial-gradient(rgba(44, 38, 30, 0.95) 1px, transparent 1.1px);
  background-size: 100% 100%, 100% 100%, 4.5px 4.5px;
}
.vis-crown-before {
  background-image:
    radial-gradient(circle at 50% 45%, #e9ddcd 0%, #e9ddcd 26%, transparent 52%),
    radial-gradient(rgba(58, 50, 40, 0.85) 0.8px, transparent 0.9px);
  background-size: 100% 100%, 8px 8px;
}
.vis-crown-after {
  background-image:
    radial-gradient(circle at 50% 45%, rgba(233,221,205,0.55) 0%, transparent 30%),
    radial-gradient(rgba(44, 38, 30, 0.95) 1px, transparent 1.1px);
  background-size: 100% 100%, 4.5px 4.5px;
}
.vis-beard-before {
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 60%, transparent 30%, #e9ddcd 70%),
    radial-gradient(rgba(58, 50, 40, 0.7) 0.8px, transparent 0.9px);
  background-size: 100% 100%, 10px 10px;
}
.vis-beard-after {
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 60%, transparent 55%, rgba(233,221,205,0.75) 90%),
    radial-gradient(rgba(38, 32, 26, 0.95) 1.1px, transparent 1.2px);
  background-size: 100% 100%, 4px 4px;
}
.vis-brow-before {
  background-image:
    linear-gradient(105deg, transparent 44%, rgba(58,50,40,0.35) 47%, rgba(58,50,40,0.35) 49%, transparent 52%),
    radial-gradient(rgba(58, 50, 40, 0.5) 0.7px, transparent 0.8px);
  background-size: 100% 100%, 12px 12px;
}
.vis-brow-after {
  background-image:
    linear-gradient(105deg, transparent 38%, rgba(44,38,30,0.85) 43%, rgba(44,38,30,0.85) 55%, transparent 60%),
    radial-gradient(rgba(44, 38, 30, 0.55) 0.8px, transparent 0.9px);
  background-size: 100% 100%, 9px 9px;
}
.vis-women-before {
  background-image:
    linear-gradient(to right, transparent 46%, #e9ddcd 48%, #e9ddcd 52%, transparent 54%),
    radial-gradient(rgba(58, 50, 40, 0.8) 0.8px, transparent 0.9px);
  background-size: 100% 100%, 7px 7px;
}
.vis-women-after {
  background-image:
    linear-gradient(to right, transparent 48%, rgba(233,221,205,0.6) 49.5%, rgba(233,221,205,0.6) 50.5%, transparent 52%),
    radial-gradient(rgba(44, 38, 30, 0.95) 1px, transparent 1.1px);
  background-size: 100% 100%, 4.5px 4.5px;
}
.vis-note {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(22, 25, 23, 0.45);
}

/* ---------- RTL support (Arabic pages) ---------- */

[dir="rtl"] .timeline::before { left: auto; right: 1.1rem; }
[dir="rtl"] .tl-item { padding: 0 3.5rem 2.75rem 0; }
[dir="rtl"] .tl-item::before { left: auto; right: 0.65rem; }
[dir="rtl"] .note-box { border-left: 1px solid var(--line); border-right: 2px solid var(--gold); }
[dir="rtl"] .quote-card { border-left: 0; border-right: 2px solid var(--gold); padding: 0.5rem clamp(1.5rem, 3vw, 2.25rem) 0.5rem 0; }
[dir="rtl"] .acc-panel p { padding: 0 0.25rem 1.5rem 3.5rem; }
[dir="rtl"] .hero-photo { right: auto; left: 0; }
[dir="rtl"] .hero-photo::before { transform: scaleX(-1); }
[dir="rtl"] .footer-col a:hover { padding-left: 0; padding-right: 0.3rem; }
[dir="rtl"] .wm-strand { right: auto; left: -0.34em; transform: scaleX(-1); }

/* ---------- brand wordmark (logo lockup) ---------- */

.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.wordmark .wm-top {
  display: inline-flex; align-items: flex-start;
  font-family: var(--serif); font-weight: 480;
  font-size: 1.75rem; letter-spacing: 0.01em;
  position: relative;
}
.wordmark .wm-top .wm-m { color: var(--gold); margin: 0 0.02em; }
.wordmark .wm-strand { position: absolute; top: -0.62em; right: -0.34em; width: 0.85em; height: 0.9em; color: var(--gold); }
.wordmark .wm-sub {
  font-family: var(--sans); font-size: 0.5rem; font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase;
  margin-top: 0.4rem; opacity: 0.75; white-space: nowrap;
}
.site-footer .wordmark .wm-sub, .header-dark:not(.scrolled) .wordmark .wm-sub { color: var(--gold-pale); opacity: 1; }
.wordmark-lg .wm-top { font-size: 2.6rem; }
.wordmark-lg .wm-sub { font-size: 0.625rem; }
@media (max-width: 479px) {
  .wordmark .wm-top { font-size: 1.5rem; }
  .wordmark .wm-sub { font-size: 0.4375rem; letter-spacing: 0.34em; }
}

/* ---------- photography ---------- */

.photo { border-radius: 4px; overflow: hidden; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame { position: relative; }
.photo-frame::after {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 1px solid var(--gold); border-radius: 4px;
  pointer-events: none; opacity: 0.55; z-index: -1;
}
.photo-tall { aspect-ratio: 4/5; }
.photo-wide { aspect-ratio: 3/2; }
.photo-caption { font-size: 0.8125rem; color: var(--ink-mute); margin-top: 0.9rem; }
.on-dark .photo-caption { color: var(--on-dark-mute); }

/* split hero with photo */
.hero-split { position: relative; }
.hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 52%;
  overflow: hidden; pointer-events: none;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%;
  opacity: 0.92;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(22,25,23,0.55) 34%, rgba(22,25,23,0.08) 70%),
              linear-gradient(0deg, var(--ink) 2%, transparent 30%),
              linear-gradient(180deg, rgba(22,25,23,0.55) 0%, transparent 26%);
}
@media (max-width: 899px) {
  .hero-photo { position: absolute; width: 100%; opacity: 0.42; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(22,25,23,0.86) 0%, rgba(22,25,23,0.62) 55%, var(--ink) 96%); }
}

/* ghost section numerals */
.sect-tag {
  display: flex; align-items: baseline; gap: 1.25rem; margin-bottom: 1.5rem;
}
.sect-num {
  font-family: var(--serif); font-style: italic; font-weight: 340;
  font-size: clamp(2.75rem, 5vw, 4.25rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  opacity: 0.65;
}
.on-dark .sect-num { -webkit-text-stroke-color: var(--gold-pale); opacity: 0.5; }

/* grain on dark chapters */
.on-dark.grain { position: relative; }
.on-dark.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.on-dark.grain > .wrap, .on-dark.grain > .wrap-narrow, .on-dark.grain > .proof-strip { position: relative; z-index: 1; }

/* B&A slider now hosts real imagery */
.ba-slider img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

/* ---------- loading veil (once per session, quick) ---------- */

.load-veil {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.load-veil svg { width: 4rem; height: 4rem; }
.veil-ring { stroke-dasharray: 120; stroke-dashoffset: 120; animation: veilDraw 0.9s var(--ease) forwards; }
.veil-strands { stroke-dasharray: 60; stroke-dashoffset: 60; animation: veilDraw 0.9s 0.25s var(--ease) forwards; }
@keyframes veilDraw { to { stroke-dashoffset: 0; } }
.load-veil.gone { opacity: 0; visibility: hidden; }
body:not(.veiled) .load-veil { display: none; }

/* page enter transition */
.page-enter main { animation: pageIn 0.6s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.page-leave main { opacity: 0; transition: opacity 0.25s ease; }
@media (prefers-reduced-motion: reduce) {
  .page-enter main { animation: none; }
  .load-veil { display: none !important; }
}

/* ---------- language switcher ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.lang-switch select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 0.8125rem; font-weight: 550;
  color: inherit; background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 1.9rem 0.45rem 0.9rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23888' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 0.7rem;
}
.header-dark:not(.scrolled) .lang-switch select { border-color: var(--line-dark); color: var(--on-dark); }
.lang-switch select:hover { border-color: var(--gold); }
@media (max-width: 479px) { .lang-switch { display: none; } }

/* ---------- hero particle canvas ---------- */

.hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(16, 18, 17, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  animation: lbIn 0.35s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-body { width: min(64rem, 100%); }
.lb-body .ba-slider { aspect-ratio: 4/3; max-height: 72vh; width: 100%; border-radius: 10px; }
.lb-caption { color: var(--on-dark-mute); font-size: 0.9rem; margin-top: 1.1rem; text-align: center; }
.lb-close {
  position: absolute; top: 1.1rem; right: 1.25rem;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--on-dark);
  font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform 0.3s var(--ease);
}
.lb-close:hover { background: var(--ink-soft); transform: rotate(90deg); }

/* ---------- reviews ---------- */

.rating-hero {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) { .rating-hero { grid-template-columns: auto 1fr; } }
.rating-big {
  font-family: var(--serif); font-weight: 380;
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  line-height: 1;
  display: flex; align-items: baseline; gap: 1rem;
}
.rating-big .stars { font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: 0.2em; }
.rating-bars { display: grid; gap: 0.6rem; max-width: 30rem; }
.rating-bar { display: grid; grid-template-columns: 2.2rem 1fr 2.5rem; align-items: center; gap: 0.9rem; font-size: 0.8125rem; color: var(--ink-mute); }
.rating-bar .bar { height: 5px; border-radius: 3px; background: var(--bone-deep); overflow: hidden; }
.rating-bar .bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; transform-origin: left; animation: barGrow 1s var(--ease) both; }
@keyframes barGrow { from { transform: scaleX(0); } }

.review-wall { columns: 1; column-gap: 1.5rem; }
@media (min-width: 720px) { .review-wall { columns: 2; } }
@media (min-width: 1080px) { .review-wall { columns: 3; } }
.review-card {
  break-inside: avoid;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--ivory);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.review-card:hover { transform: translateY(-4px); border-color: var(--gold-pale); box-shadow: 0 20px 44px -26px rgba(22,25,23,.3); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.review-who { display: flex; align-items: center; gap: 0.8rem; }
.review-avatar {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; flex: none;
  background: var(--bone-deep); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 500; font-size: 1.05rem;
}
.review-who b { font-size: 0.9rem; display: block; line-height: 1.3; }
.review-who span { font-size: 0.75rem; color: var(--ink-mute); }
.review-src {
  font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.08em;
  color: var(--ink-mute); text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.7rem;
  white-space: nowrap;
}
.review-card p { font-size: 0.9rem; color: var(--ink-mute); }
.review-card .stars { margin-bottom: 0.6rem; }
.verified {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.6875rem; font-weight: 600; color: var(--sage);
  margin-top: 0.9rem;
}
.verified svg { width: 0.85rem; height: 0.85rem; }

.video-card {
  position: relative; border-radius: 10px; overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(150deg, var(--ink-soft), var(--ink));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.video-card:hover { transform: translateY(-4px); }
.video-card .play {
  width: 4rem; height: 4rem; border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-pale);
  transition: transform 0.35s var(--ease), background 0.3s;
}
.video-card:hover .play { transform: scale(1.1); background: rgba(185,150,104,0.15); }
.video-card .play svg { width: 1.2rem; height: 1.2rem; margin-left: 3px; }
.video-card .vc-label {
  position: absolute; bottom: 1rem; left: 1.1rem; right: 1.1rem;
  color: var(--on-dark); font-size: 0.875rem; font-weight: 550;
}
.video-card .vc-label span { display: block; font-size: 0.75rem; color: var(--on-dark-mute); font-weight: 400; }

.flag { font-size: 1.05rem; line-height: 1; margin-right: 0.15rem; }

/* google-style badge strip */
.badge-strip { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--ivory);
  padding: 0.6rem 1.2rem;
  font-size: 0.8125rem; font-weight: 550;
}
.on-dark .badge { background: var(--ink-soft); border-color: var(--line-dark); }
.badge .stars { margin: 0; font-size: 0.75rem; }

/* upload dropzone (consultation) */
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: 4px;
  padding: 2rem 1.5rem; text-align: center;
  color: var(--ink-mute); font-size: 0.9rem;
  transition: border-color 0.25s, background 0.25s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold-deep); background: rgba(185,150,104,0.06); }
.dropzone input { display: none; }
.dropzone .dz-files { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--sage); font-weight: 550; }

/* marquee for treatment ticker */
.ticker {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--line-dark);
  padding-block: 1.1rem;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 380;
  color: var(--on-dark-mute);
}
.ticker-track { display: inline-flex; gap: 3.5rem; animation: tick 42s linear infinite; padding-right: 3.5rem; }
.ticker-track span { display: inline-flex; align-items: center; gap: 3.5rem; }
.ticker-track i { font-style: normal; color: var(--gold); font-size: 0.6rem; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
