/* =================================================================
   SENSE DENTAL CENTER · stylesheet
   Design tokens · OKLCH palette · Editorial layout
   ================================================================= */

:root {
  /* Surfaces — warm off-whites with mint tint */
  --surface:       oklch(0.98 0.008 100);
  --surface-2:     oklch(0.955 0.014 95);
  --surface-3:     oklch(0.92 0.018 95);
  --paper:         oklch(0.985 0.006 110);

  /* Brand — fresh mint, alegre */
  --primary:       oklch(0.58 0.13 168);
  --primary-deep:  oklch(0.34 0.10 170);
  --primary-soft:  oklch(0.82 0.08 168);
  --primary-wash:  oklch(0.94 0.04 168);

  /* Accent — warm coral, brighter */
  --accent:        oklch(0.72 0.15 38);
  --accent-deep:   oklch(0.56 0.14 38);
  --accent-soft:   oklch(0.88 0.06 45);

  /* Ink */
  --ink:           oklch(0.18 0.03 168);
  --ink-soft:      oklch(0.36 0.03 168);
  --ink-mute:      oklch(0.50 0.022 168);
  --hairline:      oklch(0.88 0.012 168);

  /* Misc */
  --max:        1240px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  28px;
  --radius-xl:  44px;

  --shadow-sm: 0 1px 2px oklch(0.30 0.04 180 / 0.06), 0 2px 6px oklch(0.30 0.04 180 / 0.05);
  --shadow:    0 12px 32px -12px oklch(0.30 0.04 180 / 0.15), 0 2px 6px oklch(0.30 0.04 180 / 0.06);
  --shadow-lg: 0 28px 60px -20px oklch(0.30 0.04 180 / 0.22), 0 4px 12px oklch(0.30 0.04 180 / 0.07);

  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --body:    "Onest", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --t-fast:   180ms cubic-bezier(0.2, 0.6, 0.2, 1);
  --t-med:    420ms cubic-bezier(0.2, 0.6, 0.2, 1);
  --t-slow:   720ms cubic-bezier(0.16, 0.84, 0.24, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.1; font-weight: 500; }
p { margin: 0 0 1em; max-width: 65ch; }

::selection { background: var(--accent-soft); color: var(--primary-deep); }

.skip {
  position: absolute; left: -10000px; top: auto;
  background: var(--ink); color: var(--surface);
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: 14px; z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Scroll progress bar (top of page) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-deep), var(--accent), var(--primary-deep));
  background-size: 200% 100%;
  animation: progress-shimmer 4s linear infinite;
  transition: width 60ms linear;
  box-shadow: 0 0 12px oklch(0.55 0.13 42 / 0.4);
}
@keyframes progress-shimmer {
  to { background-position: -200% 0; }
}

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.display {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 80, "SOFT" 40, "wght" 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  margin: 0 0 1.25rem;
  max-width: 22ch;
}
.section-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.55;
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* ==================== BUTTONS ==================== */
.btn {
  --bg: var(--ink);
  --fg: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid var(--bg);
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
  position: relative;
  overflow: hidden;
}
.btn .btn-arrow { transition: transform var(--t-med) var(--ease-out-quart); }
.btn:hover { transform: translateY(-1px); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --bg: var(--primary-deep);
  --fg: var(--surface);
}
.btn--primary:hover { --bg: var(--primary); }

/* Book-button: icon hidden by default; CSS for mobile-only icon swap is in media query */
.btn-book__icon { display: none; }
.btn-book__text { display: inline; }

.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { --bg: var(--ink); --fg: var(--surface); }

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 30px; font-size: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--primary-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap var(--t-med) var(--ease-out-quart), color var(--t-fast);
}
.link-arrow:hover { gap: 14px; color: var(--accent-deep); }

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.975 0.012 90 / 0.85);
  border-bottom: 1px solid transparent;
  transition: background var(--t-med), border-color var(--t-med), padding var(--t-med);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.site-header.is-scrolled {
  background: oklch(0.975 0.012 90 / 0.96);
  border-bottom-color: var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 18px var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--primary-deep);
}
.brand-mark { display: inline-flex; }
.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 30px;
  font-variation-settings: "opsz" 40, "SOFT" 50;
  letter-spacing: -0.02em;
}
.brand-text em {
  font-style: normal;
  font-family: var(--body);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Footer brand keeps original smaller size */
.brand--footer .brand-text strong { font-size: 22px; }
.brand--footer .brand-text em { font-size: 10px; margin-top: 2px; }

.primary-nav {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}
.primary-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink);
  transition: color var(--t-fast);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out-quart);
}
.primary-nav a:hover { color: var(--primary-deep); }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: oklch(1 0 0 / 0.6);
  gap: 0;
}
.lang-pill {
  padding: 6px 11px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  background: transparent;
  border: none;
  transition: color var(--t-fast), background var(--t-fast);
  cursor: pointer;
}
.lang-pill:hover { color: var(--primary-deep); }
.lang-pill[aria-current="true"] {
  background: var(--primary-deep);
  color: var(--surface);
  box-shadow: 0 1px 4px oklch(0.30 0.04 168 / 0.20);
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* ==================== HERO (rich, illustrated) ==================== */
.hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 5rem) var(--gutter) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
  min-height: clamp(720px, 92vh, 920px);
  display: flex;
  align-items: center;
}

/* --- Animated background blobs --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.blob {
  translate: var(--mx, 0) calc(var(--my, 0) + var(--py, 0));
  transition: translate 600ms cubic-bezier(0.16, 0.84, 0.24, 1);
  filter: blur(70px);
  opacity: 0.8;
  mix-blend-mode: multiply;
  will-change: transform;
}
.blob--sage {
  width: 720px; height: 720px;
  top: -220px; right: -180px;
  background: radial-gradient(circle at 30% 30%, oklch(0.72 0.16 168 / 0.95), oklch(0.55 0.13 168 / 0.7) 50%, transparent 80%);
  animation: blob-drift-1 14s ease-in-out infinite alternate;
}
.blob--peach {
  width: 560px; height: 560px;
  bottom: -160px; left: -120px;
  background: radial-gradient(circle at 40% 60%, oklch(0.80 0.17 42 / 0.85), oklch(0.70 0.15 42 / 0.55) 50%, transparent 80%);
  animation: blob-drift-2 16s ease-in-out infinite alternate;
}
.blob--mint {
  width: 500px; height: 500px;
  top: 35%; left: 35%;
  background: radial-gradient(circle at 50% 50%, oklch(0.82 0.13 168 / 0.75), oklch(0.72 0.12 168 / 0.45) 50%, transparent 80%);
  animation: blob-drift-3 18s ease-in-out infinite alternate;
}
.blob--coral {
  width: 420px; height: 420px;
  top: 10%; left: 55%;
  background: radial-gradient(circle at 50% 50%, oklch(0.82 0.16 30 / 0.6), oklch(0.72 0.13 30 / 0.35) 55%, transparent 80%);
  animation: blob-drift-4 20s ease-in-out infinite alternate;
  mix-blend-mode: multiply;
}

@keyframes blob-drift-1 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(-140px, 120px) scale(1.25) rotate(40deg); }
}
@keyframes blob-drift-2 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(180px, -100px) scale(1.2) rotate(-30deg); }
}
@keyframes blob-drift-3 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(-120px, -80px) scale(0.85) rotate(60deg); }
}
@keyframes blob-drift-4 {
  0%   { transform: translate(0, 0) scale(0.9) rotate(0deg); }
  100% { transform: translate(80px, 140px) scale(1.15) rotate(-45deg); }
}

/* Animated SVG wave at bottom of hero */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: 140px;
  z-index: 0;
  pointer-events: none;
}
.hero-wave__line {
  animation: waveMorph 14s ease-in-out infinite alternate;
}
@keyframes waveMorph {
  0%   { d: path("M0,100 C240,40 480,160 720,100 C960,40 1200,160 1440,100 L1440,200 L0,200 Z"); }
  50%  { d: path("M0,120 C240,60 480,140 720,80 C960,140 1200,60 1440,120 L1440,200 L0,200 Z"); }
  100% { d: path("M0,80 C240,120 480,60 720,120 C960,60 1200,120 1440,80 L1440,200 L0,200 Z"); }
}

/* Floating particles (visible, bright dots that drift) */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: oklch(0.65 0.16 168 / 0.7);
  box-shadow: 0 0 16px oklch(0.65 0.16 168 / 0.6);
}
.particle--1 { top: 18%; left: 12%; animation: floatParticle 11s ease-in-out infinite alternate; }
.particle--2 { top: 65%; left: 7%; width: 6px; height: 6px; background: oklch(0.72 0.16 42 / 0.7); box-shadow: 0 0 14px oklch(0.72 0.16 42 / 0.55); animation: floatParticle 13s ease-in-out infinite alternate 0.6s; }
.particle--3 { top: 30%; left: 45%; width: 10px; height: 10px; background: oklch(0.55 0.18 168 / 0.6); box-shadow: 0 0 22px oklch(0.55 0.18 168 / 0.5); animation: floatParticle 16s ease-in-out infinite alternate 1.2s; }
.particle--4 { top: 80%; left: 38%; width: 7px; height: 7px; animation: floatParticle 12s ease-in-out infinite alternate 0.4s; }
.particle--5 { top: 12%; left: 70%; width: 5px; height: 5px; background: oklch(0.75 0.16 42 / 0.65); box-shadow: 0 0 12px oklch(0.75 0.16 42 / 0.5); animation: floatParticle 14s ease-in-out infinite alternate 1.8s; }
.particle--6 { top: 50%; left: 88%; width: 9px; height: 9px; animation: floatParticle 17s ease-in-out infinite alternate 2.2s; }
.particle--7 { top: 88%; left: 82%; width: 6px; height: 6px; background: oklch(0.70 0.16 42 / 0.6); box-shadow: 0 0 14px oklch(0.70 0.16 42 / 0.5); animation: floatParticle 13s ease-in-out infinite alternate 0.9s; }
.particle--8 { top: 5%; left: 32%; width: 7px; height: 7px; background: oklch(0.70 0.16 168 / 0.5); box-shadow: 0 0 16px oklch(0.70 0.16 168 / 0.4); animation: floatParticle 15s ease-in-out infinite alternate 1.5s; }

@keyframes floatParticle {
  0%   { transform: translate(0, 0); opacity: 0.4; }
  50%  { opacity: 1; }
  100% { transform: translate(60px, -80px); opacity: 0.5; }
}

/* Rotating conic-gradient mesh (subtle but always-moving) */
.hero-conic {
  position: absolute;
  top: 30%; left: 60%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    oklch(0.85 0.14 168 / 0.2),
    oklch(0.85 0.16 42 / 0.18),
    oklch(0.80 0.14 168 / 0.2),
    oklch(0.85 0.16 42 / 0.18),
    oklch(0.85 0.14 168 / 0.2)
  );
  filter: blur(80px);
  opacity: 0.6;
  animation: conicSpin 30s linear infinite;
  z-index: 0;
  mix-blend-mode: multiply;
}
@keyframes conicSpin {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Grain / dotted texture --- */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 50% 50%, oklch(0.30 0.04 168 / 0.10) 50%, transparent 51%);
  background-size: 28px 28px;
  mask-image: radial-gradient(75% 65% at 50% 35%, black, transparent 90%);
}

/* --- Decorative SVG --- */
.hero-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.hero-deco--leaf {
  width: 110px; height: 154px;
  top: 8%; right: 6%;
  color: var(--primary-soft);
  transform: rotate(20deg);
  animation: float-y 7s ease-in-out infinite alternate;
  opacity: 0.7;
}
.hero-deco--smile {
  width: 280px; height: 70px;
  left: 8%; top: 28%;
  color: var(--accent);
  animation: smile-draw 2.4s ease-out 0.5s forwards;
  opacity: 0;
}
.hero-deco--sparkle { width: 22px; height: 22px; color: var(--accent); }
.hero-deco--sparkle-1 {
  top: 18%; left: 48%;
  animation: twinkle 3.4s ease-in-out infinite, float-y 5s ease-in-out infinite alternate;
}
.hero-deco--sparkle-2 {
  top: 62%; right: 36%;
  width: 16px; height: 16px;
  color: var(--primary);
  animation: twinkle 4.2s ease-in-out infinite 0.6s, float-y 6s ease-in-out infinite alternate 0.3s;
}
.hero-deco--sparkle-3 {
  bottom: 22%; left: 24%;
  width: 14px; height: 14px;
  animation: twinkle 3.8s ease-in-out infinite 1.1s, float-y 5.5s ease-in-out infinite alternate 0.7s;
}
.hero-deco--squiggle {
  width: 110px; height: 30px;
  bottom: 18%; right: 42%;
  color: var(--primary);
  opacity: 0.5;
  animation: float-x 7s ease-in-out infinite alternate;
}
.hero-deco--ring {
  width: 80px; height: 80px;
  bottom: 8%; right: 4%;
  color: var(--accent);
  opacity: 0.55;
  animation: spin 30s linear infinite;
}

@keyframes float-y {
  0%   { transform: translateY(0) rotate(20deg); }
  100% { transform: translateY(-14px) rotate(20deg); }
}
@keyframes float-x {
  0%   { transform: translateX(0); }
  100% { transform: translateX(10px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50%      { opacity: 1; transform: scale(1.1); }
}
@keyframes smile-draw {
  0%   { stroke-dashoffset: 650; opacity: 0; }
  10%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.hero-deco--smile path { stroke-dasharray: 650; stroke-dashoffset: 650; animation: inherit; }

/* --- Grid --- */
.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy { position: relative; z-index: 3; }

/* Ribbon — "new patients welcome" pill */
.hero-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--primary-deep);
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 8px oklch(0.30 0.04 168 / 0.06);
}
.ribbon-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.ribbon-pulse::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Hero title */
.hero-display {
  position: relative;
  margin: 0;
}
.hero-display .line {
  display: block;
  font-size: clamp(2.4rem, 6.8vw, 5.4rem);
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 380;
  line-height: 0.98;
}
.hero-display .line:nth-child(2) {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 360;
  color: var(--primary-deep);
}
.hero-display .line.accent {
  color: var(--accent-deep);
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 400;
}

/* Decorative script word — like a handwritten note */
.hero-script {
  position: absolute;
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "opsz" 30, "SOFT" 100, "wght" 360;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  color: var(--accent);
  top: -0.6em;
  right: -0.5em;
  transform: rotate(-8deg);
  background: var(--surface);
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 12px oklch(0.30 0.04 168 / 0.1);
}

/* Lead */
.hero .lead {
  margin: 1.75rem 0 2rem;
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2.5rem;
}

/* Trust block — avatars + stars + label */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  background: oklch(1 0 0 / 0.6);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.trust-avatars {
  display: inline-flex;
}
.trust-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--surface);
  margin-left: -10px;
  box-shadow: 0 1px 3px oklch(0.30 0.04 168 / 0.1);
}
.trust-avatar:first-child { margin-left: 0; }
.trust-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.trust-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--accent);
  margin-bottom: 2px;
}
.trust-text strong {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.trust-text small {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* --- Hero media (right side, rich) --- */
.hero-media {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 580px;
  margin: 0 0 0 auto;
  justify-self: end;
}

/* Decorative frame corners */
.hero-frame {
  position: absolute;
  width: 60px; height: 60px;
  border: 2px solid var(--accent);
  z-index: 5;
  pointer-events: none;
}
.hero-frame--tl {
  top: -16px; left: -16px;
  border-right: none; border-bottom: none;
  border-top-left-radius: 12px;
}
.hero-frame--br {
  bottom: -16px; right: -16px;
  border-left: none; border-top: none;
  border-bottom-right-radius: 12px;
}

.hero-photo {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo--main {
  inset: 0 0 18% 0;
  z-index: 2;
  border: 4px solid var(--surface);
  translate: var(--mx, 0) calc(var(--my, 0) + var(--py, 0));
  transition: translate 400ms cubic-bezier(0.16, 0.84, 0.24, 1);
}
.hero-photo--main img {
  animation: kenburns 18s ease-in-out infinite alternate;
}
.hero-photo__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, oklch(1 0 0 / 0.35) 50%, transparent 65%);
  mix-blend-mode: overlay;
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}
.hero-photo--alt {
  width: 44%; aspect-ratio: 4 / 3;
  bottom: 0; left: -6%;
  z-index: 4;
  border: 5px solid var(--surface);
  border-radius: var(--radius);
  rotate: -3deg;
  translate: var(--mx, 0) calc(var(--my, 0) + var(--py, 0));
  transition: rotate var(--t-med) var(--ease-out-quart), translate 400ms cubic-bezier(0.16, 0.84, 0.24, 1);
}
.hero-media:hover .hero-photo--alt { rotate: -1deg; }

/* Spinning badge — circular text */
.hero-badge {
  position: absolute;
  width: 130px; height: 130px;
  top: -22px; right: -22px;
  z-index: 6;
  display: grid;
  place-items: center;
  color: var(--primary-deep);
  translate: var(--mx, 0) calc(var(--my, 0) + var(--py, 0));
  transition: translate 400ms cubic-bezier(0.16, 0.84, 0.24, 1);
}
.badge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 8px 24px oklch(0.30 0.04 168 / 0.15);
}
.badge-text-spin {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: spin 20s linear infinite;
}
.badge-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  background: var(--primary-deep);
  border-radius: 50%;
  z-index: 1;
}
.badge-icon svg { fill: var(--surface); }

/* Floating info pills */
.info-pill {
  position: absolute;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: 0 12px 32px -10px oklch(0.30 0.04 168 / 0.22), 0 2px 6px oklch(0.30 0.04 168 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.4);
  white-space: nowrap;
}
.info-pill__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-wash);
  color: var(--primary-deep);
  flex-shrink: 0;
}
.info-pill__icon--accent {
  background: oklch(0.92 0.06 42 / 0.5);
  color: var(--accent-deep);
}
.info-pill__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.info-pill__text strong {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.info-pill__text span {
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.info-pill {
  translate: var(--mx, 0) calc(var(--my, 0) + var(--py, 0));
  transition: translate 400ms cubic-bezier(0.16, 0.84, 0.24, 1);
}
.info-pill--insurance {
  top: 6%; left: -14%;
  animation: pill-float 6s ease-in-out infinite alternate;
}
.info-pill--bilingual {
  top: 44%; right: -14%;
  animation: pill-float 7s ease-in-out infinite alternate 0.4s;
}
.info-pill--hours {
  bottom: 4%; right: -10%;
  animation: pill-float 6.5s ease-in-out infinite alternate 0.8s;
}
@keyframes pill-float {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  z-index: 3;
}
.scroll-line {
  width: 48px; height: 1px;
  background: var(--ink-mute);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: scroll-line-anim 2.4s ease-in-out infinite;
}

@keyframes kenburns {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.08) translate(-2%, -2%); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shine {
  0%, 30%  { transform: translateX(-100%); }
  60%      { transform: translateX(100%); }
  100%     { transform: translateX(100%); }
}
@keyframes scroll-line-anim {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ==================== MARQUEE ==================== */
.marquee {
  background: var(--primary-deep);
  color: var(--surface);
  padding: 22px 0;
  overflow: hidden;
  border-block: 1px solid oklch(0.30 0.05 168);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.8vw, 1.65rem);
  font-style: italic;
  font-variation-settings: "opsz" 30, "SOFT" 80, "wght" 380;
  letter-spacing: -0.01em;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee-track span::after {
  content: "✦";
  color: var(--accent);
  font-style: normal;
  font-size: 0.7em;
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==================== STORY (carousel + mesh gradient) ==================== */
.story {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

/* Animated mesh gradient background */
.story-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
}
.mesh--a {
  width: 700px; height: 700px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, oklch(0.85 0.08 168 / 0.7), transparent 70%);
  animation: mesh-drift-1 24s ease-in-out infinite alternate;
}
.mesh--b {
  width: 600px; height: 600px;
  bottom: -100px; right: -80px;
  background: radial-gradient(circle, oklch(0.88 0.09 42 / 0.6), transparent 70%);
  animation: mesh-drift-2 28s ease-in-out infinite alternate;
}
.mesh--c {
  width: 500px; height: 500px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, oklch(0.90 0.07 165 / 0.55), transparent 70%);
  animation: mesh-drift-3 32s ease-in-out infinite alternate;
}
@keyframes mesh-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 100px) scale(1.15); }
}
@keyframes mesh-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, -60px) scale(1.1); }
}
@keyframes mesh-drift-3 {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-30%, -70%) scale(1.2); }
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.story-lead p { font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--ink-soft); }

/* Pillars carousel */
.pillars-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
}

.pillars-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1.5rem 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  scroll-padding: 0 0.5rem;
}
.pillars-track::-webkit-scrollbar { display: none; }

.pillar-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 270px;
  max-width: 360px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-out-quart),
              box-shadow var(--t-med),
              border-color var(--t-med);
  box-shadow: 0 2px 8px oklch(0.30 0.04 168 / 0.04);
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-soft);
}
.pillar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 100% 0%, var(--primary-wash), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
  z-index: 0;
}
.pillar-card:hover::after { opacity: 1; }

.pillar-card > * { position: relative; z-index: 1; }

.pillar-num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 350;
  color: var(--primary-soft);
  line-height: 1;
  opacity: 0.6;
  transition: color var(--t-med), opacity var(--t-med);
  pointer-events: none;
}
.pillar-card:hover .pillar-num { color: var(--accent); opacity: 1; }

.pillar-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary-wash);
  color: var(--primary-deep);
  margin-bottom: 0.5rem;
  transition: background var(--t-med), transform var(--t-med) var(--ease-out-quart);
}
.pillar-card:hover .pillar-icon {
  background: var(--primary-deep);
  color: var(--surface);
  transform: rotate(-6deg);
}

.pillar-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-variation-settings: "opsz" 40, "SOFT" 50, "wght" 420;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.pillar-body {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
  max-width: none;
}

.pillar-accent {
  display: block;
  margin-top: auto;
  width: 32px;
  height: 2px;
  background: var(--accent);
  transition: width var(--t-med) var(--ease-out-quart);
}
.pillar-card:hover .pillar-accent { width: 64px; }

.pillars-nav {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--ink);
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.pillars-nav:hover {
  background: var(--primary-deep);
  color: var(--surface);
  border-color: var(--primary-deep);
  transform: scale(1.05);
}
.pillars-nav:active { transform: scale(0.95); }

.pillars-progress {
  position: relative;
  height: 3px;
  max-width: 320px;
  margin: 1.5rem auto 0;
  border-radius: 2px;
  overflow: hidden;
}
.progress-rail {
  position: absolute;
  inset: 0;
  background: var(--hairline);
  border-radius: 2px;
}
.progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--primary-deep), var(--accent));
  border-radius: 2px;
  transition: width 200ms ease-out;
}

/* ==================== SERVICES ==================== */
.services {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--surface);
  isolation: isolate;
}
.services-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  color: var(--primary);
}
.svc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.svc-orb--a {
  width: 680px; height: 680px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, oklch(0.78 0.10 168 / 0.55), transparent 70%);
  animation: svcOrbA 28s ease-in-out infinite alternate;
}
.svc-orb--b {
  width: 520px; height: 520px;
  bottom: -160px; left: -120px;
  background: radial-gradient(circle, oklch(0.85 0.09 45 / 0.4), transparent 70%);
  animation: svcOrbB 32s ease-in-out infinite alternate;
}
@keyframes svcOrbA {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-100px, 80px) scale(1.1); }
}
@keyframes svcOrbB {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(120px, -60px) scale(1.08); }
}
.svc-lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.svc-lines path {
  stroke-dasharray: 4 8;
  animation: lineFlow 22s linear infinite;
}
.svc-lines path:nth-child(2) { animation-duration: 28s; animation-direction: reverse; }
@keyframes lineFlow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -240; }
}
.service-feature {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--hairline);
}
.service-feature__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--primary-wash);
}
.service-feature__media img {
  width: 100%;
  height: calc(100% + 100px);  /* extra height absorbs parallax translate range */
  object-fit: cover;
  position: absolute;
  top: -50px;                   /* center the image vertically by default */
  left: 0;
  transition: filter 1200ms var(--ease-out-quart);
}
.service-feature:hover .service-feature__media img { filter: saturate(1.1) contrast(1.03); }
.feature-tag {
  position: absolute;
  top: 20px; left: 20px;
  padding: 7px 14px;
  background: var(--surface);
  color: var(--accent-deep);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
}
.service-feature__body h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  margin-bottom: 1.25rem;
  max-width: 16ch;
  font-variation-settings: "opsz" 80, "SOFT" 40, "wght" 380;
}
.service-feature__body p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.service-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-bottom: 2rem;
}
.service-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
}
.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1px;
  background: var(--accent);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}
.service-card {
  position: relative;
  padding: 2.25rem 1.75rem 2rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--t-med), transform var(--t-med);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out-quart);
}
.service-card:hover { background: var(--paper); }
.service-card:hover::before { transform: scaleX(1); }
.service-card-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--primary-wash);
  color: var(--primary-deep);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
}
.service-card h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-variation-settings: "opsz" 36, "SOFT" 50, "wght" 420;
  color: var(--ink);
  line-height: 1.15;
}
.service-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
.service-card-mark {
  margin-top: auto;
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--primary-deep);
  transition: background var(--t-med), border-color var(--t-med), transform var(--t-med) var(--ease-out-quart);
}
.service-card:hover .service-card-mark {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: var(--surface);
  transform: rotate(-45deg);
}

.service-list {
  background: var(--primary-wash);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.service-list__title {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-variation-settings: "opsz" 30, "SOFT" 50, "wght" 450;
  color: var(--primary-deep);
  margin: 0;
}
.service-list ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 32px;
}
.service-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--ink);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 1px;
  background: var(--primary-deep);
}

/* ==================== EXPERIENCE ==================== */
.experience {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--primary-deep);
  color: var(--surface);
  isolation: isolate;
}
.exp-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  color: var(--primary-soft);
}
.exp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.exp-orb--a {
  width: 580px; height: 580px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, oklch(0.50 0.13 168 / 0.5), transparent 70%);
  animation: expOrbA 28s ease-in-out infinite alternate;
}
.exp-orb--b {
  width: 460px; height: 460px;
  bottom: -100px; right: -80px;
  background: radial-gradient(circle, oklch(0.65 0.13 50 / 0.35), transparent 70%);
  animation: expOrbB 32s ease-in-out infinite alternate;
}
.exp-orb--c {
  width: 380px; height: 380px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, oklch(0.60 0.12 175 / 0.4), transparent 70%);
  animation: expOrbC 36s ease-in-out infinite alternate;
}
@keyframes expOrbA {
  0%   { transform: translate(0,0); }
  100% { transform: translate(120px, 80px) scale(1.1); }
}
@keyframes expOrbB {
  0%   { transform: translate(0,0); }
  100% { transform: translate(-100px, -60px) scale(1.08); }
}
@keyframes expOrbC {
  0%   { transform: translate(-50%,-50%); }
  100% { transform: translate(-30%, -70%) scale(0.9); }
}
.exp-circuit {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.exp-circuit path {
  stroke-dasharray: 4 6;
  animation: lineFlow 18s linear infinite;
}
.exp-circuit path:nth-child(2) { animation-duration: 24s; animation-direction: reverse; }
.exp-circuit path:nth-child(3) { animation-duration: 28s; }
.experience .eyebrow { color: oklch(0.75 0.04 168); }
.experience .eyebrow::before { background: var(--accent); }
.experience .section-title { color: var(--surface); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid oklch(0.40 0.04 168);
}
.step {
  padding: 2.5rem 1.5rem 2rem;
  border-right: 1px solid oklch(0.40 0.04 168);
  position: relative;
}
.step:last-child { border-right: none; }
.step-num {
  font-family: var(--display);
  font-size: 3.5rem;
  font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 350;
  color: oklch(0.55 0.06 42);
  display: block;
  margin-bottom: 1.5rem;
  line-height: 0.9;
}
.step h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-variation-settings: "opsz" 36, "SOFT" 50, "wght" 420;
  margin-bottom: 0.75rem;
  color: var(--surface);
}
.step p {
  font-size: 14.5px;
  color: oklch(0.82 0.025 168);
  line-height: 1.55;
  margin: 0;
}

/* ==================== TEAM ==================== */
.team {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--paper);
}
.team-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.team-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.team-media figcaption {
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--surface);
  color: var(--primary-deep);
  font-family: var(--display);
  font-size: 13px;
  font-variation-settings: "opsz" 14, "SOFT" 50, "wght" 500;
  padding: 8px 14px;
  border-radius: 999px;
}
.team-copy p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
}
.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
}
.team-stats > div { padding-right: 1rem; }
.team-stats dt {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-variation-settings: "opsz" 80, "SOFT" 40, "wght" 380;
  color: var(--primary-deep);
  line-height: 1;
  margin-bottom: 8px;
}
.team-stats dd {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ==================== INSURANCE ==================== */
.insurance {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--surface);
  isolation: isolate;
}
.ins-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ins-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}
.ins-orb--a {
  width: 620px; height: 620px;
  top: -180px; left: 20%;
  background: radial-gradient(circle, oklch(0.82 0.10 168 / 0.5), transparent 70%);
  animation: insOrbA 30s ease-in-out infinite alternate;
}
.ins-orb--b {
  width: 500px; height: 500px;
  bottom: -120px; right: 15%;
  background: radial-gradient(circle, oklch(0.85 0.09 45 / 0.4), transparent 70%);
  animation: insOrbB 34s ease-in-out infinite alternate;
}
@keyframes insOrbA {
  0%   { transform: translate(0,0); }
  100% { transform: translate(-160px, 80px) scale(1.1); }
}
@keyframes insOrbB {
  0%   { transform: translate(0,0); }
  100% { transform: translate(180px, -60px) scale(1.08); }
}
.insurance-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.insurance .section-head { margin-bottom: 0; }

.insurance-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.insurance-list li {
  padding: 18px 8px 18px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-variation-settings: "opsz" 30, "SOFT" 50, "wght" 380;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color var(--t-fast), padding-left var(--t-med) var(--ease-out-quart);
}
.insurance-list li:hover { color: var(--primary-deep); padding-left: 12px; }
.insurance-list li::before {
  content: "+";
  color: var(--accent);
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
}
.insurance-footnote {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 2.5rem;
  font-style: italic;
}

/* ==================== MAP APPS (Google / Apple / Waze) ==================== */
.map-apps {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.map-apps__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.map-apps__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.map-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.map-app-btn:hover { transform: translateY(-1px); }
.map-app-btn--google:hover { border-color: #4285F4; color: #1a73e8; }
.map-app-btn--apple:hover { border-color: var(--ink); color: var(--ink); background: oklch(0.98 0.005 100); }
.map-app-btn--waze:hover { border-color: #33CCFF; color: #00aae2; }
.map-app-btn svg { flex-shrink: 0; }

/* ==================== PATIENT FORMS ==================== */
.forms {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.forms-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.forms-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}
.forms-orb--a {
  width: 580px; height: 580px;
  top: -180px; left: 10%;
  background: radial-gradient(circle, oklch(0.85 0.10 168 / 0.4), transparent 70%);
  animation: insOrbA 32s ease-in-out infinite alternate;
}
.forms-orb--b {
  width: 460px; height: 460px;
  bottom: -130px; right: 15%;
  background: radial-gradient(circle, oklch(0.85 0.09 45 / 0.35), transparent 70%);
  animation: insOrbB 28s ease-in-out infinite alternate;
}
.forms-inner { position: relative; z-index: 1; }
.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.form-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--t-med) var(--ease-out-quart), box-shadow var(--t-med), border-color var(--t-med);
  overflow: hidden;
}
.form-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-soft);
}
.form-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out-quart);
}
.form-card:hover::after { transform: scaleX(1); }
.form-card__num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.form-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--primary-wash);
  color: var(--primary-deep);
  margin-bottom: 0.5rem;
  transition: background var(--t-med), color var(--t-med), transform var(--t-med);
}
.form-card:hover .form-card__icon {
  background: var(--primary-deep);
  color: var(--surface);
  transform: rotate(-6deg);
}
.form-card__title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-variation-settings: "opsz" 30, "SOFT" 50, "wght" 420;
  margin: 0;
  line-height: 1.2;
  color: var(--ink);
}
.form-card__desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.form-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
}
.form-card__cta {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-deep);
}
.form-card__arrow {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--primary-deep);
  transition: background var(--t-med), color var(--t-med), border-color var(--t-med), transform var(--t-med);
}
.form-card:hover .form-card__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
  transform: rotate(-45deg);
}
.forms-note {
  margin-top: 2rem;
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
  text-align: center;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== BEFORE / AFTER GALLERY ==================== */
.gallery {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--surface);
  isolation: isolate;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-out-quart), box-shadow var(--t-med);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.case-compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.case-img {
  position: relative;
  overflow: hidden;
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease-out-quart);
}
.case-card:hover .case-img img { transform: scale(1.05); }
.case-img--before img { filter: grayscale(0.3) brightness(0.95); }
.case-img--after img { filter: saturate(1.1) contrast(1.04); }
.case-tag {
  position: absolute;
  top: 12px;
  padding: 5px 10px;
  font-family: var(--body);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  z-index: 2;
}
.case-tag--before {
  left: 12px;
  background: oklch(0.30 0.04 168 / 0.85);
  color: var(--surface);
  backdrop-filter: blur(6px);
}
.case-tag--after {
  right: 12px;
  background: var(--accent);
  color: var(--surface);
}
.case-info {
  padding: 1.25rem 1.5rem 1.5rem;
}
.case-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-variation-settings: "opsz" 30, "SOFT" 50, "wght" 420;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.case-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.gallery-cta {
  margin-top: 2.5rem;
  text-align: center;
}
.gallery-cta .link-arrow {
  display: inline-flex;
}

/* ==================== VOICES ==================== */
.voices {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.voices::before {
  content: "";
  position: absolute;
  inset: -50px;
  z-index: -1;
  background:
    radial-gradient(40% 30% at 20% 30%, oklch(0.85 0.07 168 / 0.45), transparent 70%),
    radial-gradient(35% 25% at 80% 70%, oklch(0.88 0.09 42 / 0.4), transparent 70%),
    radial-gradient(30% 20% at 50% 100%, oklch(0.90 0.06 165 / 0.4), transparent 70%);
  filter: blur(40px);
  animation: voices-mesh 20s ease-in-out infinite alternate;
}
@keyframes voices-mesh {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.05); }
}
.voices .section-head { text-align: center; margin-bottom: clamp(3rem, 6vw, 4rem); }
.voices .section-head .eyebrow { justify-content: center; }
.voices .section-head h2 { margin-inline: auto; }

.voices-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}
.voices-track {
  flex: 1;
  display: flex;
  gap: 2rem;
  overflow: hidden;
  scroll-snap-type: x mandatory;
}
.voice {
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  transition: opacity var(--t-slow);
}
.voice-quote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-variation-settings: "opsz" 60, "SOFT" 50, "wght" 380;
  font-style: italic;
  color: var(--primary-deep);
  line-height: 1.35;
  max-width: 28ch;
  margin: 0 auto 1.5rem;
  position: relative;
}
.voice-quote::before {
  content: "“";
  font-size: 5rem;
  color: var(--accent);
  line-height: 0;
  position: absolute;
  top: 0.4em;
  left: -0.6em;
  opacity: 0.3;
}
.voice-author {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.voice-context {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 4px;
  font-style: italic;
}

.voice-nav {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  flex-shrink: 0;
}
.voice-nav:hover { background: var(--primary-deep); color: var(--surface); border-color: var(--primary-deep); }

.voices-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}
.voices-dots button {
  width: 28px; height: 3px;
  background: var(--hairline);
  border-radius: 2px;
  transition: background var(--t-fast), width var(--t-med);
}
.voices-dots button[aria-current="true"] {
  background: var(--accent);
  width: 48px;
}

/* ==================== CONTACT ==================== */
.contact {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.contact-info {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: sticky;
  top: 100px;
}
.contact-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 2.5rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}
.contact-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; }
.contact-list dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 2px;
}
.contact-list dd {
  font-family: var(--display);
  font-size: 16px;
  font-variation-settings: "opsz" 30, "SOFT" 50, "wght" 400;
  color: var(--ink);
  line-height: 1.5;
}
.contact-list a { color: var(--primary-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-list a:hover { color: var(--accent-deep); }

.contact-map {
  grid-column: 2;
  grid-row: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow);
  background: var(--surface-2);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  grid-column: 2;
  grid-row: 2;
  background: var(--surface);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  display: grid;
  gap: 1rem;
}
.contact-form__title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-variation-settings: "opsz" 40, "SOFT" 50, "wght" 420;
  margin-bottom: 0.5rem;
  color: var(--primary-deep);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 6px; }
.field span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
  font-family: var(--body);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}
.form-note {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 4px 0 0;
}

/* ==================== BIG CTA ==================== */
.bigcta {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--surface);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.bigcta::before {
  content: "";
  position: absolute;
  inset: -100px;
  z-index: -1;
  background:
    radial-gradient(40% 40% at 30% 40%, oklch(0.85 0.1 42 / 0.55), transparent 70%),
    radial-gradient(50% 40% at 70% 60%, oklch(0.85 0.07 168 / 0.5), transparent 70%),
    radial-gradient(35% 30% at 50% 90%, oklch(0.90 0.06 165 / 0.45), transparent 70%);
  filter: blur(50px);
  animation: bigcta-mesh 24s ease-in-out infinite alternate;
}
@keyframes bigcta-mesh {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 40px) scale(1.1); }
}
.bigcta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(1px 1px at 50% 50%, oklch(0.30 0.04 168 / 0.08) 50%, transparent 51%);
  background-size: 24px 24px;
  mask-image: radial-gradient(80% 80% at 50% 50%, black, transparent 90%);
  pointer-events: none;
}
.bigcta-inner { max-width: 760px; margin: 0 auto; }
.bigcta-inner .eyebrow { justify-content: center; }
.bigcta-inner .eyebrow::before { background: var(--accent); }
.bigcta-inner h2 { margin-inline: auto; }
.bigcta-inner .section-lead { margin: 0 auto 2.5rem; }
.bigcta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ==================== FOOTER ==================== */
.site-footer {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  background: var(--primary-deep);
  color: oklch(0.82 0.025 168);
  overflow: hidden;
  isolation: isolate;
}
.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.footer-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}
.footer-orb--a {
  width: 480px; height: 480px;
  top: -160px; left: 8%;
  background: radial-gradient(circle, oklch(0.45 0.14 168 / 0.45), transparent 70%);
  animation: insOrbA 28s ease-in-out infinite alternate;
}
.footer-orb--b {
  width: 420px; height: 420px;
  bottom: -120px; right: 12%;
  background: radial-gradient(circle, oklch(0.50 0.12 45 / 0.3), transparent 70%);
  animation: insOrbB 32s ease-in-out infinite alternate;
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid oklch(0.40 0.04 168);
}
.brand--footer { color: var(--surface); }
.brand--footer .brand-text strong { color: var(--surface); }
.brand--footer .brand-text em { color: oklch(0.7 0.04 168); }
.footer-tagline {
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
  font-variation-settings: "opsz" 30, "SOFT" 80, "wght" 380;
  color: oklch(0.75 0.04 168);
  margin: 1rem 0 0;
  max-width: 30ch;
}
.footer-col__title,
.footer-col h4 {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.65 0.04 168);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: grid; gap: 8px; }
.footer-col a {
  font-family: var(--display);
  font-size: 17px;
  font-variation-settings: "opsz" 30, "SOFT" 50, "wght" 380;
  color: var(--surface);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--accent-soft); }
.footer-lang {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
}
.footer-lang button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid oklch(0.40 0.04 168);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: oklch(0.82 0.025 168);
  transition: all var(--t-fast);
  cursor: pointer;
}
.footer-lang button:hover { border-color: var(--accent); color: var(--accent-soft); }
.footer-lang button[aria-current="true"] {
  background: var(--accent);
  color: var(--primary-deep);
  border-color: var(--accent);
}
.footer-address {
  font-family: var(--display);
  font-size: 15px;
  font-style: normal;
  font-variation-settings: "opsz" 30, "SOFT" 50, "wght" 380;
  color: oklch(0.82 0.025 168);
  line-height: 1.6;
}
.footer-address a { color: var(--surface); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 13px;
  color: oklch(0.65 0.04 168);
}

/* ==================== ANIMATIONS ==================== */
/* No-JS fallback: if reveal-ready class never added, content stays visible */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out-quart), transform 900ms var(--ease-out-quart);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready .reveal.in,
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy .reveal { --reveal-delay: 0ms; }
.hero-copy .reveal:nth-child(2) { --reveal-delay: 120ms; }
.hero-copy .display .line:nth-child(1) { --reveal-delay: 100ms; }
.hero-copy .display .line:nth-child(2) { --reveal-delay: 240ms; }
.hero-copy .display .line:nth-child(3) { --reveal-delay: 380ms; }
.hero-copy .lead { --reveal-delay: 540ms; }
.hero-copy .hero-ctas { --reveal-delay: 680ms; }
.hero-copy .hero-meta { --reveal-delay: 820ms; }
.hero-media { --reveal-delay: 200ms; }

/* ==================== CURSOR ==================== */
.cursor-dot {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
  transition: width 240ms var(--ease-out-quart), height 240ms var(--ease-out-quart), background 240ms var(--t-fast);
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { opacity: 0.6; }
  .cursor-dot.is-active {
    width: 44px; height: 44px;
    background: oklch(0.69 0.135 42 / 0.25);
  }
}

/* ==================== LANGUAGE TRANSITION ==================== */
body.lang-changing main,
body.lang-changing .site-header,
body.lang-changing .site-footer {
  opacity: 0.3;
  transition: opacity 200ms;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .pillar-card { flex: 0 0 calc((100% - 1.5rem) / 2); min-width: 260px; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(odd) { border-right: 1px solid oklch(0.40 0.04 168); }
  .step:nth-child(even) { border-right: none; }
  .step { border-bottom: 1px solid oklch(0.40 0.04 168); }
  .step:nth-last-child(-n+2) { border-bottom: none; }

  .insurance-list { grid-template-columns: repeat(2, 1fr); }
  .service-list ul { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  /* When menu is open, remove header's backdrop-filter so the fixed nav
     positions against the viewport (not the header's containing block) */
  .site-header.is-menu-open {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--surface);
  }
  .site-header.is-menu-open .primary-nav {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0; right: 0; bottom: 0;
    width: 100vw;
    background: var(--surface);
    background-color: var(--surface);
    flex-direction: column;
    padding: 2rem var(--gutter);
    gap: 0;
    z-index: 200;
    overflow-y: auto;
    box-shadow: 0 12px 28px -8px oklch(0.20 0.04 168 / 0.18);
  }
  .site-header.is-menu-open .primary-nav a {
    display: block;
    padding: 18px 0;
    font-family: var(--display);
    font-variation-settings: "opsz" 40, "SOFT" 50;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
    letter-spacing: -0.01em;
  }
  .site-header.is-menu-open .primary-nav a:hover { color: var(--primary-deep); }
  .site-header.is-menu-open .primary-nav a::after { display: none; }

  .hero { min-height: auto; padding-top: 2rem; padding-bottom: 5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-display .line:nth-child(2) { padding-left: 0; }
  .hero-script { right: 0; top: -0.4em; font-size: 1rem; padding: 3px 10px; }
  .hero-media { max-width: 460px; margin: 0 auto; aspect-ratio: 4 / 4.5; }
  .hero-deco--leaf { width: 70px; height: 100px; top: 4%; right: 4%; }
  .hero-deco--smile { display: none; }
  .hero-deco--squiggle { display: none; }
  .info-pill--insurance { left: -2%; top: 4%; }
  .info-pill--bilingual { right: -2%; top: 38%; }
  .info-pill--hours { right: -4%; bottom: 2%; }
  .info-pill { padding: 10px 14px 10px 10px; }
  .info-pill__icon { width: 34px; height: 34px; }
  .info-pill__text strong { font-size: 12px; }
  .info-pill__text span { font-size: 10.5px; }
  .hero-scroll { display: none; }

  .story-grid { grid-template-columns: 1fr; }
  .pillars-stage { gap: 0.75rem; padding: 0 1rem; }
  .pillars-nav { width: 40px; height: 40px; }
  .pillar-card { flex: 0 0 78%; min-width: 240px; }

  .service-feature { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-bullets { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-list ul { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .step { border-right: none !important; border-bottom: 1px solid oklch(0.40 0.04 168); }
  .step:last-child { border-bottom: none; }

  .team-grid { grid-template-columns: 1fr; }
  .team-stats { grid-template-columns: 1fr 1fr 1fr; }

  .insurance-grid { grid-template-columns: 1fr; }
  /* Compact 2-column on mobile to halve section height */
  .insurance-list { grid-template-columns: 1fr 1fr; }
  .insurance-list li {
    padding: 12px 6px 12px 0;
    font-size: 14.5px;
  }
  .insurance-list li::before { font-size: 11px; }

  /* Book-a-visit button: icon-only on mobile to avoid text wrap */
  .btn-book .btn-book__text { display: none; }
  .btn-book { padding: 10px; aspect-ratio: 1; justify-content: center; }
  .btn-book__icon { display: inline-flex; }

  /* ==========================================================
     MOBILE HERO: text-first design (different from desktop)
     Hides heavy visuals: photos, pills, badge, decorative SVG.
     Massive LCP improvement — title text becomes the LCP element.
     ========================================================== */

  /* Hero layout: stack as single column, simpler */
  .hero {
    min-height: auto;
    padding: 2.5rem var(--gutter) 4rem;
    text-align: left;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-copy {
    width: 100%;
  }

  /* HIDE everything that's heavy/non-essential on mobile */
  .hero-media,
  .info-pill,
  .hero-badge,
  .hero-frame,
  .hero-conic,
  .hero-particles,
  .hero-wave,
  .hero-deco,
  .hero-scroll {
    display: none !important;
  }

  /* Simplified background blobs (kept for ambient color, no animation) */
  .blob {
    filter: blur(80px);
    opacity: 0.4;
    mix-blend-mode: normal;
    animation: none !important;
  }
  .blob--sage { width: 360px; height: 360px; top: -100px; right: -100px; }
  .blob--peach { width: 300px; height: 300px; bottom: -80px; left: -80px; }
  .blob--mint, .blob--coral { display: none; }

  /* Boost hero text on mobile (since it's the LCP now) */
  .hero-display .line {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
    line-height: 1.0;
  }
  .hero-display .line:nth-child(2) {
    padding-left: 0;
  }
  .hero-script {
    position: static;
    display: inline-block;
    transform: rotate(-4deg);
    font-size: 1.1rem;
    padding: 3px 12px;
    margin: 0.5rem 0 0;
  }
  .hero-ribbon { margin-bottom: 1.5rem; }
  .hero .lead { font-size: 1rem; margin: 1.5rem 0 1.75rem; max-width: none; }
  .hero-ctas { margin-bottom: 1.75rem; }
  .hero-trust { width: 100%; max-width: 360px; }

  /* Disable secondary section orb animations on mobile (saves CPU) */
  .svc-orb, .exp-orb, .ins-orb, .footer-orb, .forms-orb {
    animation: none !important;
  }
  .exp-orb--c, .svc-lines, .exp-circuit { display: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; grid-column: 1; grid-row: auto; }
  .contact-map { grid-column: 1; grid-row: auto; }
  .contact-form { grid-column: 1; grid-row: auto; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .display .line { font-size: clamp(2.1rem, 11vw, 3rem); }
  .hero-display .line { font-size: clamp(2.2rem, 12vw, 3.2rem); }
  .hero-badge { width: 90px; height: 90px; top: -12px; right: -12px; }
  .hero-badge .badge-icon { width: 30px; height: 30px; }
  .hero-frame { width: 36px; height: 36px; }
  .hero-frame--tl { top: -10px; left: -10px; }
  .hero-frame--br { bottom: -10px; right: -10px; }
  .info-pill--insurance { left: 0; top: -6%; }
  .info-pill--bilingual { right: 0; top: 44%; }
  .info-pill--hours { right: 0; bottom: -8%; }
  .info-pill { padding: 8px 12px 8px 8px; }
  .info-pill__icon { width: 30px; height: 30px; }
  .hero-trust { padding: 8px 14px 8px 8px; gap: 10px; }
  .trust-avatar { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* =================================================================
   Footer services block (SSR internal links — added with internal
   pages migration; additive only, used by footer.php on all pages)
   ================================================================= */
.footer-svc { padding: 1.6rem 0 0.4rem; border-bottom: 1px solid oklch(0.40 0.04 168); }
.footer-svc .footer-col__title { margin-bottom: 0.9rem; }
.footer-svc__list { display: flex; flex-wrap: wrap; gap: 0.55rem 1.6rem; list-style: none; margin: 0; padding: 0 0 1.2rem; }
.footer-svc__list a { font-size: 0.86rem; color: oklch(0.72 0.03 168); text-decoration: none; transition: color .25s; }
.footer-svc__list a:hover { color: var(--surface); }
.footer-legal-link { color: inherit; text-decoration: none; }
.footer-legal-link:hover { text-decoration: underline; }

/* =================================================================
   Header services dropdown (SSR nav to internal pages)
   ================================================================= */
.primary-nav .nav-item { position: relative; display: inline-flex; align-items: center; }
.primary-nav .nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { transition: transform .25s; margin-top: 1px; }
.nav-item.has-sub:hover .nav-caret, .nav-item.has-sub:focus-within .nav-caret { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 240px; padding: 10px;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s, transform .22s, visibility .22s;
  z-index: 300;
}
.nav-sub::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item.has-sub:hover .nav-sub, .nav-item.has-sub:focus-within .nav-sub {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.primary-nav .nav-sub a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-size: 0.88rem; color: var(--ink-soft); white-space: nowrap;
}
.primary-nav .nav-sub a::after { display: none; }
.primary-nav .nav-sub a:hover { background: var(--primary-wash); color: var(--primary-deep); }
.primary-nav .nav-sub a.nav-sub-all { margin-top: 4px; border-top: 1px solid var(--hairline); border-radius: 0 0 8px 8px; color: var(--accent-deep); font-weight: 600; }

@media (max-width: 768px) {
  /* mobile: dropdown always expanded inside the fullscreen menu */
  .site-header.is-menu-open .primary-nav .nav-item { display: block; position: static; }
  .site-header.is-menu-open .nav-caret { display: none; }
  .site-header.is-menu-open .nav-sub {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; padding: 0 0 6px 14px; border: none; box-shadow: none; background: transparent;
  }
  .site-header.is-menu-open .primary-nav .nav-sub a {
    font-family: var(--body); font-size: 1.02rem; padding: 10px 0; border-bottom: none; color: var(--ink-soft);
  }
  .site-header.is-menu-open .primary-nav .nav-sub a.nav-sub-all { border-top: none; color: var(--accent-deep); }
}

/* =================================================================
   Contact booking card (replaces the old note form — Adit portal is
   the client single contact point; additive styles only)
   ================================================================= */
.contact-book { display: flex; flex-direction: column; justify-content: center; }
.contact-book__body { color: var(--ink-soft); line-height: 1.65; margin: 0.4rem 0 1.6rem; }
.contact-book__btn { align-self: flex-start; }
.contact-book__or { margin: 1.4rem 0 0.3rem; color: var(--ink-soft); font-size: 0.95rem; }
.contact-book__or a { color: var(--primary-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
