/* ============================================================================
   AURA MEDSPA & REGENERATIVE AESTHETICS — ZERO-LAG DARK EMERALD DESIGN SYSTEM
   5-Page Flagship Architecture · Compiled Layout Utilities (Zero CDN Runtime)
   Luxury Cursor & Mobile Drawer ported from HS Frontend Signature/Warm Engine
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@300;400;500;600&family=Syne:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-void:        #050505;
  --bg-deep:        #080b09;
  --bg-surface:     #0d120f;
  --bg-elevated:    #121915;
  --bg-card:        #151d18;

  --text-primary:   #ece9e2;
  --text-secondary: #a3aca6;
  --text-muted:     #66726b;

  --accent-mint:    #34d399;
  --accent-emerald: #10b981;
  --accent-deep:    #064e3b;
  --accent-glow:    rgba(52, 211, 153, 0.14);
  --accent-border:  rgba(52, 211, 153, 0.28);
  --rule-emerald:   rgba(52, 211, 153, 0.14);
  --rule-subtle:    rgba(255, 255, 255, 0.07);

  --glass-bg:       rgba(9, 13, 11, 0.86);
  --glass-border:   rgba(255, 255, 255, 0.07);

  --font-heading:   'Cinzel', Georgia, serif;
  --font-display:   'Syne', sans-serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:        cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:       0.2s;
  --dur:            0.42s;
  --gutter:         clamp(1.25rem, 4vw, 3.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg-void);
  color: var(--text-primary);
}

html, body {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: rgba(52, 211, 153, 0.24);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 3px;
}

/* ============================================================================
   SCROLLBAR — Obsidian Track + Emerald Thumb
   ============================================================================ */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg-void); border-left: 1px solid var(--rule-subtle); }
  ::-webkit-scrollbar-thumb { background: rgba(52, 211, 153, 0.32); border: 3px solid var(--bg-void); border-radius: 999px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent-mint); }
}
@media (hover: none), (pointer: coarse) {
  html, body { scrollbar-width: none; -ms-overflow-style: none; }
  ::-webkit-scrollbar { width: 0; height: 0; display: none; }
}

/* ============================================================================
   LUXURY CUSTOM CURSOR (Ported 1:1 from Agoura Signature, Emerald-Black Theme)
   Zero blur/blend GPU lag. Instant stand-down on scrollbar, touch & iframes.
   ============================================================================ */
#cur-dot, #cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  transform: translate(-100px, -100px);
}

#cur-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-mint);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.65);
  z-index: 10002;
  transition: width 0.26s var(--ease-out), height 0.26s var(--ease-out), background-color 0.2s ease;
}

#cur-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(52, 211, 153, 0.68);
  background: rgba(5, 10, 8, 0.18);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.42s var(--ease-out), height 0.42s var(--ease-out),
              border-radius 0.42s var(--ease-out), background-color 0.26s var(--ease-out),
              border-color 0.26s var(--ease-out);
}

#cur-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-mint);
  opacity: 0;
  transition: opacity 0.16s var(--ease-out);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

#cur-ring.is-over.has-label #cur-label { opacity: 1; }
#cur-ring.is-text #cur-label { opacity: 0; }

html.cursor-on #cur-dot {
  opacity: 1;
  transition: width 0.26s var(--ease-out), height 0.26s var(--ease-out), opacity 0.2s linear 0.02s;
}

html.cursor-on #cur-ring {
  opacity: 1;
  transition: width 0.42s var(--ease-out), height 0.42s var(--ease-out),
              border-radius 0.42s var(--ease-out), opacity 0.2s linear 0.02s;
}

#cur-dot.is-over { width: 0; height: 0; }
#cur-ring.is-over {
  width: 48px;
  height: 48px;
  background: rgba(52, 211, 153, 0.08);
  border: 1.5px solid var(--accent-mint);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.16);
}
#cur-ring.is-over.has-label {
  width: 62px;
  height: 62px;
  background: rgba(4, 15, 11, 0.92);
  border: 1.5px solid var(--accent-mint);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 20px rgba(52, 211, 153, 0.24);
}

#cur-dot.is-text { width: 0; height: 0; }
#cur-ring.is-text {
  width: 2px;
  height: 26px;
  border-radius: 0;
  border-width: 0;
  background: var(--accent-mint);
}

.autoscroll-disc {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 14, 11, 0.95);
  border: 1.5px solid var(--accent-mint);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(52, 211, 153, 0.1);
  pointer-events: none;
  z-index: 10005;
  opacity: 0;
  transform: translate(-100px, -100px) translate(-50%, -50%) scale(0.6);
  transition: opacity 0.15s ease, transform 0.18s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}
.autoscroll-disc.is-active { opacity: 1; }
.autoscroll-disc svg { width: 24px; height: 24px; overflow: visible; }
.autoscroll-disc__up, .autoscroll-disc__dn {
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.45;
  transition: opacity 0.15s ease, transform 0.15s ease, stroke 0.15s ease;
}
.autoscroll-disc.is-up .autoscroll-disc__up { opacity: 1; stroke: var(--accent-mint); transform: translateY(-1.5px); }
.autoscroll-disc.is-dn .autoscroll-disc__dn { opacity: 1; stroke: var(--accent-mint); transform: translateY(1.5px); }
.autoscroll-disc__dot { fill: var(--accent-mint); }

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  #cur-dot, #cur-ring, .autoscroll-disc { display: none !important; }
}

/* ============================================================================
   HEADER, WARM-STYLE 3-BAR BURGER & LUXURY FULLSCREEN MOBILE DRAWER
   ============================================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-mint), var(--accent-emerald));
  z-index: 10000;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 1.15rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-bottom: 1px solid transparent;
  transition: transform 0.36s var(--ease-out), background-color 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}

.site-nav.is-stuck {
  background: rgba(5, 8, 7, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--rule-emerald);
  padding-block: 0.9rem;
}

.site-nav.is-hidden {
  transform: translateY(-102%);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--text-primary);
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo span {
  font-family: var(--font-body);
  font-size: 0.56rem;
  letter-spacing: 0.38em;
  color: var(--accent-mint);
  font-weight: 400;
  margin-top: 0.34rem;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.22s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent-mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #04120c;
  background: var(--accent-mint);
  border: 1px solid var(--accent-mint);
  padding: 0.68rem 1.35rem;
  border-radius: 999px;
  transition: background-color 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: #4ee6ae;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.32);
  transform: translateY(-1px);
}

/* Warm-Style 3-Stripe Pill Burger Button in Emerald-Black */
.burger {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: rgba(11, 18, 14, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.burger:hover {
  border-color: var(--accent-mint);
  background: rgba(16, 30, 23, 0.96);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.18);
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent-mint);
  border-radius: 2px;
  transition: transform 0.26s var(--ease-out), opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
}

/* Luxury Fullscreen Mobile Drawer (Locks background scroll 100%, scrolls inside) */
html.menu-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: radial-gradient(circle at 85% 12%, rgba(16, 78, 56, 0.28), transparent 55%), #050807;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.42s var(--ease-out), visibility 0s linear 0.42s;
}

.menu[data-open="true"] {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.42s var(--ease-out), visibility 0s;
}

.menu__top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(5, 8, 7, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 1rem;
  border-bottom: 1px solid var(--rule-emerald);
}

.menu__close {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: rgba(12, 22, 17, 0.9);
  color: var(--accent-mint);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu__links {
  margin-block: 1.25rem auto;
  padding-block: 0.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid rgba(52, 211, 153, 0.12);
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.5rem, 6.2vw, 2.25rem);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.38s var(--ease-out), transform 0.38s var(--ease-out), color 0.2s ease;
}

.menu__link:first-child {
  border-top: 1px solid rgba(52, 211, 153, 0.12);
}

.menu[data-open="true"] .menu__link {
  opacity: 1;
  transform: none;
}

.menu__link:nth-child(1) { transition-delay: 0.04s; }
.menu__link:nth-child(2) { transition-delay: 0.08s; }
.menu__link:nth-child(3) { transition-delay: 0.12s; }
.menu__link:nth-child(4) { transition-delay: 0.16s; }
.menu__link:nth-child(5) { transition-delay: 0.20s; }

.menu__link:hover,
.menu__link.is-active {
  color: var(--accent-mint);
}

.menu__arrow {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--accent-mint);
  transition: transform 0.22s var(--ease-out);
}

.menu__link:hover .menu__arrow {
  transform: translateX(5px);
}

.menu__foot {
  border-top: 1px solid var(--rule-emerald);
  padding-top: 1.35rem;
  display: grid;
  gap: 0.65rem;
}

.menu__foot-meta {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.menu__foot-cta {
  margin-top: 0.4rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.95rem 1.5rem;
  background: var(--accent-mint);
  color: #04120c;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* ============================================================================
   LAYOUT CONTAINERS & GRID SYSTEM (Zero Tailwind CDN dependency)
   ============================================================================ */
.wrap {
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  position: relative;
}

.sec--surface { background: var(--bg-deep); }
.sec--void { background: var(--bg-void); }
.sec--bordered { border-block: 1px solid var(--rule-subtle); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}
.grid-2--top { align-items: start; }

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================================
   TYPOGRAPHY & BUTTONS
   ============================================================================ */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-mint);
  font-weight: 500;
}

.deco-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--accent-mint);
  opacity: 0.75;
}

.heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 6.2vw, 5.25rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.8vw, 3.25rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--text-primary);
}

.text-mint { color: var(--accent-mint); }

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.body-lg {
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #04120c;
  background: var(--accent-mint);
  padding: 1rem 2.1rem;
  border-radius: 3px;
  border: 1px solid var(--accent-mint);
  transition: background-color 0.22s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.btn-mint:hover {
  background: #4ee6ae;
  box-shadow: 0 0 32px rgba(52, 211, 153, 0.34);
  transform: translateY(-2px);
}

.btn-luxury {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 2.1rem;
  border-radius: 3px;
  transition: border-color 0.22s ease, color 0.22s ease, background-color 0.22s ease, transform 0.2s ease;
}

.btn-luxury:hover {
  border-color: var(--accent-mint);
  color: var(--accent-mint);
  background: rgba(52, 211, 153, 0.06);
  transform: translateY(-2px);
}

/* ============================================================================
   HERO & PAGE HEADERS
   ============================================================================ */
.hero-full {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 8.5rem 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-sub {
  position: relative;
  min-height: 68svh;
  display: flex;
  align-items: flex-end;
  padding: 8.5rem 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.85);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 7, 0.65) 0%, rgba(5, 8, 7, 0.42) 45%, #050505 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.stats-bar {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule-subtle);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.1;
  margin-top: 0.35rem;
}

.stat-unit {
  color: var(--accent-mint);
  font-size: 0.7em;
}

/* ============================================================================
   CARDS, MEDIA PLATES, X-RAY & COMPONENTS
   ============================================================================ */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--rule-subtle);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.glass-card:hover {
  border-color: var(--accent-border);
}

.media-plate {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--rule-subtle);
  background: var(--bg-surface);
}

.media-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
}

.media-plate:hover img {
  transform: scale(1.035);
}

.xray-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--rule-subtle);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-surface);
  transition: border-color 0.25s ease;
}

.xray-card:hover {
  border-color: var(--accent-mint);
}

.xray-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.65s var(--ease-out), filter 0.4s ease;
  filter: brightness(0.62) saturate(0.88);
}

.xray-card:hover .xray-bg {
  transform: scale(1.05);
  filter: brightness(0.76) saturate(1);
}

.xray-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 7, 0.12) 0%, rgba(5, 8, 7, 0.72) 55%, rgba(5, 8, 7, 0.96) 100%);
}

.xray-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.num-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent-mint);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.num-tag::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-border);
}

.price-tag {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-primary);
}

.price-from {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Marquee — Refined Editorial Scale & Calm Pace */
.marquee-wrap {
  overflow: hidden;
  padding-block: 0.95rem;
  background: var(--bg-deep);
  border-block: 1px solid var(--rule-subtle);
}

.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marquee 62s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  padding-inline: 1.35rem;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 0.95vw, 0.84rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(236, 233, 226, 0.56);
}

.marquee-track .marquee-sep {
  color: var(--accent-mint);
  font-size: 0.65em;
  padding-inline: 0.2rem;
  opacity: 0.85;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Tabs & Accordions — Flush Sticky Sync with Header + Zero Mobile Overlap */
.tabs-bar {
  position: sticky;
  top: var(--nav-h, 72px);
  z-index: 55;
  background: rgba(5, 8, 7, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule-subtle);
  border-bottom: 1px solid var(--rule-emerald);
  padding-block: 0.8rem;
  transition: top 0.36s var(--ease-out), box-shadow 0.25s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

body.nav-is-hidden .tabs-bar {
  top: 0;
}

.tabs-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.service-category-tabs {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 2px;
  -webkit-overflow-scrolling: touch;
}
.service-category-tabs::-webkit-scrollbar { display: none; }

.tabs-bar__cta {
  display: none;
  padding: 0.62rem 1.2rem;
  font-size: 0.66rem;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .tabs-bar__cta { display: inline-flex; }
}

.tab-btn {
  padding: 0.65rem 1.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--rule-subtle);
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: rgba(52, 211, 153, 0.14);
  border-color: var(--accent-mint);
  color: var(--accent-mint);
}

.treatment-panel { display: none; }
.treatment-panel.active { display: block; }

.accordion-item {
  border-bottom: 1px solid var(--rule-subtle);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0;
  text-align: left;
}

.accordion-title {
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: var(--text-primary);
  font-weight: 500;
}

.accordion-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-mint);
  flex-shrink: 0;
  transition: transform 0.26s var(--ease-out), background-color 0.2s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background: rgba(52, 211, 153, 0.14);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.accordion-body-inner {
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.72;
}

/* Interactive Biomarker / Clinical Case Selector (results.html) */
.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.case-tab {
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--rule-subtle);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.case-tab.is-active,
.case-tab:hover {
  border-color: var(--accent-mint);
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-mint);
}

.metric-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.45rem;
}

.metric-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-mint));
  border-radius: 999px;
  transition: width 0.5s var(--ease-out);
}

/* Testimonials & Timeline */
.testimonial-card {
  border-left: 2px solid var(--accent-mint);
  padding: 0.25rem 0 0.25rem 1.5rem;
}

.testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-primary);
  font-style: italic;
  font-weight: 300;
}

.testimonial-author {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-mint);
  margin-top: 0.75rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.75rem;
  border-left: 1px solid var(--rule-emerald);
  padding-bottom: 2rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 10px var(--accent-mint);
}

/* ============================================================================
   LUXURY FORM PLATE & CUSTOM ARIA LISTBOX (Ported from Agoura Signature, Emerald)
   Zero native OS <select> popup — luxury cursor stays live over every option.
   ============================================================================ */
.plate {
  position: relative;
  background: linear-gradient(165deg, rgba(16, 24, 19, 0.94) 0%, rgba(9, 13, 11, 0.98) 100%);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  padding: clamp(1.75rem, 3.6vw, 2.85rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.crop {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.crop--tl { top: -1px; left: -1px; border-top: 2px solid var(--accent-mint); border-left: 2px solid var(--accent-mint); }
.crop--tr { top: -1px; right: -1px; border-top: 2px solid var(--accent-mint); border-right: 2px solid var(--accent-mint); }
.crop--bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--accent-mint); border-left: 2px solid var(--accent-mint); }
.crop--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent-mint); border-right: 2px solid var(--accent-mint); }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}
@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.form-field { margin-bottom: 1.35rem; position: relative; }

.form-label,
.sel__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-mint);
  margin-bottom: 0.45rem;
}

.form-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  padding: 0.72rem 0;
  font-size: 0.98rem;
  color: var(--text-primary);
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

.form-input::placeholder { color: rgba(236, 233, 226, 0.28); }
.form-input:focus {
  outline: none;
  border-bottom-color: var(--accent-mint);
}
.form-input[type="date"] { color-scheme: dark; }

textarea.form-input {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

.field__err {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  color: #f87171;
}
.form-field[data-invalid="true"] .field__err { display: block; }
.form-field[data-invalid="true"] .form-input,
.form-field[data-invalid="true"] .sel__btn { border-bottom-color: #f87171; }

/* Custom ARIA 1.2 Combobox Listbox */
.sel { position: relative; }
.sel__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.72rem 0;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--text-primary);
  text-align: left;
  transition: border-color 0.22s ease;
}
.sel__btn:focus-visible,
.sel[data-open="true"] .sel__btn {
  outline: none;
  border-bottom-color: var(--accent-mint);
}
.sel__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sel__value[data-empty="true"] { color: rgba(236, 233, 226, 0.34); }
.sel__chev {
  flex: none;
  color: var(--accent-mint);
  transition: transform 0.34s var(--ease-out);
}
.sel[data-open="true"] .sel__chev { transform: rotate(180deg); }

.sel__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #0a110d;
  border: 1px solid var(--accent-mint);
  border-radius: 3px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.78);
  max-height: min(17.5rem, 45vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.sel__list[hidden] { display: none; }
.sel[data-open="true"] .sel__list { opacity: 1; transform: none; }

.sel__opt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.88rem 1.05rem;
  font-size: 0.9rem;
  line-height: 1.38;
  color: rgba(236, 233, 226, 0.8);
  border-bottom: 1px solid rgba(52, 211, 153, 0.1);
  transition: background-color 0.16s ease, color 0.16s ease;
}
.sel__opt:last-child { border-bottom: 0; }
.sel__opt::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.sel__opt:hover,
.sel__opt.is-active {
  background: rgba(52, 211, 153, 0.1);
  color: #ffffff;
}
.sel__opt:hover::before,
.sel__opt.is-active::before { border-color: var(--accent-mint); }
.sel__opt[aria-selected="true"] {
  color: var(--accent-mint);
  font-weight: 500;
}
.sel__opt[aria-selected="true"]::before {
  background: var(--accent-mint);
  border-color: var(--accent-mint);
}
.sel__list::-webkit-scrollbar { width: 7px; }
.sel__list::-webkit-scrollbar-track { background: #0a110d; }
.sel__list::-webkit-scrollbar-thumb { background: var(--accent-mint); border: 2px solid #0a110d; border-radius: 999px; }

/* Map Frame — Balanced Compact Height on Desktop & Mobile */
.map-box {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--rule-emerald);
  height: 300px;
  background: var(--bg-surface);
}
@media (min-width: 1024px) {
  .map-box { height: 320px; }
}
.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(155deg) brightness(0.88) contrast(0.95);
}

/* Fast GPU Scroll Reveals */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   ARCHITECTURAL LUXURY FOOTER (Editorial Top Ribbon + 2-Col Mobile Grid + Card)
   ============================================================================ */
.site-footer {
  background: radial-gradient(circle at 85% 0%, rgba(16, 78, 56, 0.16), transparent 52%), #030504;
  border-top: 1px solid var(--rule-emerald);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.25rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem;
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--rule-subtle);
}

.footer-top__title {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-primary);
  margin-top: 0.65rem;
  max-width: 24ch;
}

.footer-top__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-bottom: 2.75rem;
}

.footer-cols-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.35fr 1.6fr 1.15fr;
    gap: 3rem;
    align-items: start;
  }
}

.footer-hours-card {
  background: rgba(13, 20, 16, 0.72);
  border: 1px solid var(--rule-emerald);
  border-radius: 4px;
  padding: 1.35rem 1.4rem;
}

.footer-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  padding-block: 0.42rem;
  border-bottom: 1px solid var(--rule-subtle);
  color: var(--text-secondary);
}
.footer-hours-row:last-child { border-bottom: 0; padding-bottom: 0; }
.footer-hours-row strong { color: var(--text-primary); font-weight: 500; }

.footer-heading {
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-mint);
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.62rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-mint);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--rule-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-bottom__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.footer-bottom__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mint);
}

/* === CUSTOM EMERALD LUXURY CALENDAR & DOT-ONLY CURSOR === */
/* Inside calendar panel: big ring hides cleanly, leaving only crisp emerald dot */
#cur-ring.is-dot-only {
  opacity: 0 !important;
  width: 10px !important;
  height: 10px !important;
}
#cur-dot.is-dot-only {
  width: 8px !important;
  height: 8px !important;
  background: var(--accent-mint) !important;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.9) !important;
}

.cal { position: relative; }
.cal__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.72rem 0;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--text-primary);
  text-align: left;
  transition: border-color 0.22s ease;
}
.cal__btn:focus-visible,
.cal[data-open="true"] .cal__btn {
  outline: none;
  border-bottom-color: var(--accent-mint);
}
.form-field[data-invalid="true"] .cal__btn { border-bottom-color: #f87171; }
.cal__value[data-empty="true"] { color: rgba(236, 233, 226, 0.34); }
.cal__icon { flex: none; color: var(--accent-mint); }

.cal__panel {
  position: absolute;
  left: 0;
  right: 0;
  min-width: 280px;
  top: calc(100% + 6px);
  z-index: 75;
  background: #0a110d;
  border: 1px solid var(--accent-mint);
  border-radius: 4px;
  padding: 1rem;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.82), 0 0 0 1px rgba(52, 211, 153, 0.12);
}
.cal__panel[hidden] { display: none; }

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(52, 211, 153, 0.16);
}
.cal__month {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.cal__nav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: var(--accent-mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.cal__nav:hover {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--accent-mint);
}

.cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.35rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal__day {
  height: 34px;
  border-radius: 3px;
  font-size: 0.8rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.cal__day:hover:not(:disabled) {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.5);
  color: #ffffff;
}
.cal__day.is-today {
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--accent-mint);
}
.cal__day.is-selected {
  background: var(--accent-mint);
  color: #04120c;
  font-weight: 700;
}
.cal__day:disabled {
  color: rgba(236, 233, 226, 0.18);
  pointer-events: none;
}
.cal__day--pad { pointer-events: none; }
