/* =============================================================
   WESTGATE FAMILY DENTAL — Premium Redesign
   Brand: blue heron crest · navy & dental-blue with subtle gold
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* LIGHT THEME — warm cream & ivory, deep navy ink, heron-blue + gold accents.
     Token names keep their original roles: "navy/surface" = backgrounds,
     "cream/warm-white" = primary text (now dark on light). */
  --navy:       #F4F0E7;   /* page background (warm cream) */
  --navy-deep:  #EAE3D5;   /* deeper cream — alternate/quiet sections */
  --navy-soft:  #FFFFFF;   /* elevated */
  --surface:    #FFFFFF;   /* cards */
  --surface-2:  #F6F1E7;
  --line:       rgba(20, 33, 58, 0.14);
  --line-soft:  rgba(20, 33, 58, 0.07);

  --blue:       #2F4EAE;   /* heron brand blue — buttons */
  --blue-light: #35569C;   /* accent text/eyebrows on light */
  --blue-glow:  rgba(62, 98, 198, 0.22);

  --gold:       #A9791F;   /* deeper gold for contrast on light */
  --gold-soft:  #B98F35;

  --cream:      #1B2A44;   /* primary text (deep navy ink) */
  --warm-white: #0B1524;   /* headings / darkest ink */
  --muted:      rgba(27, 42, 68, 0.64);
  --muted-soft: rgba(27, 42, 68, 0.40);

  /* Text that sits on cinematic image/dark scrims — stays light in any theme */
  --on-media:      #F6F2EA;
  --on-media-dim:  rgba(246, 242, 234, 0.82);
  --on-media-blue: #A9C4EE;
  --panel-dark:    #0B1524;  /* dark placeholder/crest panels */

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1220px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--blue); color: var(--warm-white); }

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.77rem; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 600; color: var(--blue-light); margin-bottom: 1.5rem;
}
.eyebrow--center { justify-content: center; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold-soft); }

.h-display {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.05;
  letter-spacing: -0.02em; font-optical-sizing: auto;
}
.h-display em, .h-sub em, .cta__title em { font-style: italic; color: var(--blue-light); }
.h-sub { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 54ch; margin-top: 1.4rem; }
.lede--center { margin-inline: auto; text-align: center; }
.lede a { color: var(--blue-light); border-bottom: 1px solid var(--blue-glow); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(3rem, 6vw, 5rem); }
.section-head .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.65rem; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; position: relative; will-change: transform;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s, border-color 0.3s;
}
.btn svg { transition: transform 0.4s var(--ease); }
.btn--solid {
  background: linear-gradient(135deg, var(--blue), #2B47A0);
  color: var(--warm-white);
  box-shadow: 0 12px 34px -10px var(--blue-glow);
}
.btn--solid:hover { box-shadow: 0 18px 44px -10px var(--blue-glow); }
.btn--solid:hover svg { transform: translateX(4px); }
.btn--ghost { border: 1px solid var(--line); color: var(--cream); background: rgba(255,255,255,0.02); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--blue-light); color: var(--blue-light); }
.btn--lg { padding: 1.15rem 2.4rem; font-size: 1.02rem; }

/* ---------- Custom Cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; }
.cursor { width: 34px; height: 34px; border: 1.5px solid var(--blue-light); transform: translate(-50%,-50%); transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, border-color 0.3s; }
.cursor-dot { width: 5px; height: 5px; background: var(--blue-light); transform: translate(-50%,-50%); }
.cursor.is-hover { width: 58px; height: 58px; background: rgba(157,188,234,0.12); border-color: transparent; }
.cursor.is-down { width: 22px; height: 22px; }
.cursor__label { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.5); font-family: var(--body); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-deep); white-space: nowrap; opacity: 0; transition: opacity 0.3s, transform 0.3s; }
.cursor.has-label { width: 84px; height: 84px; background: var(--blue-light); border-color: transparent; }
.cursor.has-label .cursor__label { opacity: 1; transform: translate(-50%,-50%) scale(1); }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

/* ---------- Scroll Progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--blue), var(--blue-light)); z-index: 9998; box-shadow: 0 0 14px var(--blue-glow); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 10000; background: var(--blue); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader { position: fixed; inset: 0; z-index: 10001; background: var(--navy-deep); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; transition: clip-path 1s var(--ease) 0.15s; clip-path: inset(0 0 0 0); }
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; opacity: 0; animation: preFade 0.9s ease 0.15s forwards; }
.preloader__logo { width: clamp(220px, 40vw, 340px); height: auto; }
.preloader__sub { font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--blue-light); }
.preloader__count { position: absolute; bottom: 1.8rem; right: 2.2rem; font-family: var(--display); font-size: clamp(2.4rem, 8vw, 4.2rem); color: rgba(238,233,221,0.12); line-height: 1; }
.preloader__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: rgba(238,233,221,0.08); }
.preloader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--blue-light)); box-shadow: 0 0 14px var(--blue-glow); }
@keyframes preFade { to { opacity: 1; } }
body.is-loading { overflow: hidden; }

/* Split-text characters */
.char { display: inline-block; transform: translateY(115%); opacity: 0; will-change: transform; }
.line.is-visible .char { animation: charIn 0.85s var(--ease) forwards; }
@keyframes charIn { to { transform: translateY(0); opacity: 1; } }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 900; padding: 1.05rem 0; transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s, backdrop-filter 0.4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { padding: 0.55rem 0; background: rgba(7, 14, 24, 0.72); backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--line); }
.nav__inner { width: 100%; max-width: 1340px; margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { width: clamp(170px, 20vw, 230px); height: auto; transition: transform 0.5s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.03); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--muted); position: relative; padding-block: 0.3rem; transition: color 0.3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--blue-light); transition: width 0.35s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 1.1rem; }
.nav__phone { font-size: 0.92rem; font-weight: 600; color: var(--cream); white-space: nowrap; }
.nav__phone-label { color: var(--muted); font-weight: 500; margin-right: 2px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__toggle span { width: 20px; height: 1.6px; background: var(--cream); transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav.menu-open .nav__toggle span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav.menu-open .nav__toggle span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 850; background: linear-gradient(160deg, var(--navy-deep), var(--navy)); padding: clamp(6rem, 14vw, 8rem) var(--pad) 3rem; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease); pointer-events: none; }
.menu.is-open { clip-path: inset(0 0 0% 0); pointer-events: auto; }
.menu__links { display: flex; flex-direction: column; gap: 0.2rem; }
.menu__links a { font-family: var(--display); font-size: clamp(1.7rem, 7vw, 2.8rem); display: flex; align-items: baseline; gap: 1rem; padding-block: 0.5rem; border-bottom: 1px solid var(--line); transition: color 0.3s, padding-left 0.4s var(--ease); }
.menu__links a span { font-family: var(--body); font-size: 0.8rem; color: var(--blue-light); }
.menu__links a:hover { color: var(--blue-light); padding-left: 0.6rem; }
.menu__foot { display: flex; gap: 1rem; flex-wrap: wrap; }
.menu__foot .btn { flex: 1; justify-content: center; min-width: 160px; }

/* ============================================================
   1 · HERO
   ============================================================ */
.hero--cine { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-deep); }
/* Full-bleed cinematic media */
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; will-change: transform, scale; animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { scale: 1.05; } to { scale: 1.17; } }
.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(7,14,24,0.94) 0%, rgba(7,14,24,0.74) 30%, rgba(7,14,24,0.32) 60%, rgba(7,14,24,0.55) 100%),
  linear-gradient(0deg, rgba(7,14,24,0.88) 2%, transparent 44%); }
.hero__mask { position: absolute; inset: 0; background: var(--navy-deep); z-index: 5; transform: translateY(0); animation: maskUp 1.5s var(--ease) 0.25s forwards; }
@keyframes maskUp { to { transform: translateY(-101%); } }

.hero__glow { position: absolute; z-index: 1; width: 55vw; height: 55vw; max-width: 720px; max-height: 720px; border-radius: 50%; background: radial-gradient(circle, var(--blue-glow), transparent 62%); filter: blur(24px); left: var(--mx, 60%); top: var(--my, 40%); transform: translate(-50%,-50%); pointer-events: none; transition: left 0.5s var(--ease-soft), top 0.5s var(--ease-soft); opacity: 0.7; mix-blend-mode: screen; }
.hero__grain { position: absolute; inset: 0; z-index: 2; opacity: 0.05; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero__particles span { position: absolute; bottom: -5%; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle, rgba(157,188,234,0.9), transparent 70%); opacity: 0; animation: floatUp linear infinite; }
.hero__particles span:nth-child(1){left:12%;animation-duration:15s;animation-delay:0s;transform:scale(.6)}
.hero__particles span:nth-child(2){left:24%;animation-duration:19s;animation-delay:3s;transform:scale(1)}
.hero__particles span:nth-child(3){left:38%;animation-duration:22s;animation-delay:6s;transform:scale(.5)}
.hero__particles span:nth-child(4){left:52%;animation-duration:17s;animation-delay:1.5s;transform:scale(.8)}
.hero__particles span:nth-child(5){left:63%;animation-duration:24s;animation-delay:8s;transform:scale(.6)}
.hero__particles span:nth-child(6){left:72%;animation-duration:16s;animation-delay:4s;transform:scale(1)}
.hero__particles span:nth-child(7){left:83%;animation-duration:21s;animation-delay:2s;transform:scale(.5)}
.hero__particles span:nth-child(8){left:91%;animation-duration:18s;animation-delay:6.5s;transform:scale(.7)}
.hero__particles span:nth-child(9){left:46%;animation-duration:26s;animation-delay:10s;transform:scale(.9)}
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: .55; } 85% { opacity: .45; } 100% { transform: translateY(-96vh) scale(1); opacity: 0; } }

.hero__inner { position: relative; z-index: 3; width: 100%; max-width: 1340px; margin-inline: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 8rem var(--pad) clamp(4rem, 13vh, 8rem); }
.hero__copy { max-width: 660px; }
.hero__title { font-family: var(--display); font-weight: 300; font-size: clamp(2.9rem, 7vw, 5.8rem); line-height: 1.0; letter-spacing: -0.03em; margin-top: 0.5rem; text-shadow: 0 2px 40px rgba(0,0,0,0.4); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span, .hero__title .line > em { display: inline-block; }
.hero__title em { font-style: italic; color: var(--blue-light); }
.hero__lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--cream); max-width: 46ch; margin-top: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.floatcard { position: absolute; z-index: 4; background: rgba(11, 21, 36, 0.55); backdrop-filter: blur(20px) saturate(150%); border: 1px solid rgba(198,216,245,0.16); border-radius: 18px; padding: 1rem 1.2rem; box-shadow: 0 22px 50px -22px rgba(0,0,0,0.7); will-change: transform; }
.floatcard__stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }
.floatcard__big { display: block; font-family: var(--display); font-size: 1.15rem; line-height: 1.15; color: var(--warm-white); margin-top: 3px; }
.floatcard__label { font-size: 0.72rem; color: var(--muted); }
.floatcard--rating { top: 24%; right: 3%; max-width: 210px; }
.floatcard--book { top: 45%; right: 13%; display: flex; align-items: center; gap: 0.7rem; }
.floatcard__eyebrow { display: block; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-light); }
.floatcard__book-txt { font-family: var(--display); font-size: 1.1rem; color: var(--warm-white); }
.floatcard__pulse { width: 11px; height: 11px; border-radius: 50%; background: #5FBF8A; box-shadow: 0 0 0 0 rgba(95,191,138,0.5); animation: pulse 2.4s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,191,138,0.5); } 70% { box-shadow: 0 0 0 12px rgba(95,191,138,0); } 100% { box-shadow: 0 0 0 0 rgba(95,191,138,0); } }

.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--blue-light), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--blue-light); animation: scrollDrop 2s var(--ease) infinite; }
@keyframes scrollDrop { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ============================================================
   2 · STORY
   ============================================================ */
.story__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.story__media { position: relative; border-radius: var(--radius); overflow: hidden; will-change: transform; box-shadow: 0 40px 80px -34px rgba(0,0,0,0.7); }
.story__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; transition: transform 1.1s var(--ease); }
.story__media:hover img { transform: scale(1.05); }
.story__badge { position: absolute; bottom: 1.2rem; left: 1.2rem; display: flex; align-items: center; gap: 0.8rem; max-width: 240px; background: rgba(18,35,65,0.82); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 1.1rem; }
.story__badge em { font-family: var(--display); font-style: normal; font-size: 2rem; color: var(--blue-light); line-height: 1; }
.story__badge span { font-size: 0.78rem; color: var(--muted); }
.story__quote-line { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.4; margin-top: 1.8rem; color: var(--cream); }
.story__quote-line em { font-style: italic; color: var(--blue-light); }
.story__pillars { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 2.2rem; }
.pillar { display: flex; flex-direction: column; }
.pillar strong { font-family: var(--display); font-size: 1.2rem; color: var(--warm-white); }
.pillar span { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   STATEMENT — cinematic centered claim (bryant-informed)
   Uses the grotesk (Manrope) bold + two-tone headline, blue pill.
   ============================================================ */
.statement { position: relative; text-align: center; padding-block: clamp(6rem, 15vw, 11rem); background: var(--navy-deep); overflow: hidden; }
.statement__glow { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 82vw; max-width: 940px; height: 540px; background: radial-gradient(ellipse at center, var(--blue-glow), transparent 66%); pointer-events: none; animation: breathe 8s ease-in-out infinite; }
.statement__crest { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.05; pointer-events: none; }
.statement__crest img { width: min(62%, 520px); height: auto; }
.statement__inner { position: relative; z-index: 2; max-width: 900px; }
.statement__title { font-family: var(--body); font-weight: 700; font-size: clamp(2.2rem, 6.6vw, 4.7rem); line-height: 1.03; letter-spacing: -0.035em; }
.statement__title span { display: block; }
.statement__muted { color: var(--muted-soft); }
.statement__sub { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin: 1.6rem auto 2.4rem; max-width: 50ch; }
.btn--pill { border-radius: 40px; padding-inline: 2.2rem; }

/* ============================================================
   3 · DOCTOR
   ============================================================ */
.doctor__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.doctor__sticky { position: sticky; top: 110px; }
.doctor__portrait { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; will-change: transform; box-shadow: 0 40px 80px -34px rgba(0,0,0,0.7); background: linear-gradient(160deg, var(--surface), var(--navy-soft)); }
.doctor__photo { width: 100%; height: 100%; object-fit: cover; }
/* Crest fallback (shown when no authentic Dr. Ted photo is present) */
.doctor__crest { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; text-align: center; background: radial-gradient(120% 90% at 50% 20%, var(--surface-2), var(--navy-deep)); padding: 2rem; }
.doctor__crest img { width: min(74%, 300px); height: auto; opacity: 0.96; }
.doctor__crest span { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--blue-light); }
.doctor__portrait.is-crest .doctor__photo { display: none; }
.doctor__portrait.is-crest .doctor__crest { display: flex; }
.doctor__plate { position: absolute; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; padding: 1.4rem; background: linear-gradient(transparent, rgba(7,14,24,0.86)); z-index: 2; }
.doctor__portrait.is-crest .doctor__plate { display: none; }
.doctor__plate span { font-family: var(--display); font-size: 1.35rem; color: var(--warm-white); }
.doctor__plate small { font-size: 0.8rem; color: var(--blue-light); }
.doctor__quote { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; border-left: 2px solid var(--blue); padding-left: 1.4rem; margin: 2rem 0; color: var(--cream); }
.doctor__quote cite { display: block; font-family: var(--body); font-style: normal; font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }
.doctor__meta { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1.5rem 0 2rem; }
.doctor__meta div { display: flex; flex-direction: column; }
.doctor__meta strong { font-family: var(--display); font-size: 1.3rem; color: var(--blue-light); }
.doctor__meta span { font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   4 · TRUST
   ============================================================ */
.trust { background: var(--navy-deep); }
.trust__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.trustcard { grid-column: span 1; background: linear-gradient(160deg, var(--surface), var(--navy-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.7rem; transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s; }
.trustcard:hover { transform: translateY(-6px); border-color: var(--blue-glow); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); }
.trustcard--lead { grid-column: span 2; background: linear-gradient(150deg, rgba(62,98,198,0.18), var(--surface)); border-color: var(--blue-glow); }
.trustcard__no { font-family: var(--display); font-size: 0.9rem; color: var(--blue-light); letter-spacing: 0.1em; }
.trustcard h3 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; margin: 0.5rem 0 0.6rem; }
.trustcard p { color: var(--muted); font-size: 0.95rem; }
.trust__stats { grid-column: span 2; display: flex; align-items: center; justify-content: space-around; gap: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.tstat { display: flex; flex-direction: column; text-align: center; }
.tstat__num { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--blue-light); line-height: 1; }
.tstat__label { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; max-width: 16ch; }

/* Trust slider (shortened, one reason per slide) */
.trust-slider { max-width: 760px; margin-inline: auto; }
.tslide { flex: 0 0 100%; text-align: center; padding: 1rem clamp(0.5rem, 4vw, 2.5rem); }
.tslide__no { font-family: var(--display); color: var(--blue-light); letter-spacing: 0.12em; font-size: 0.95rem; }
.tslide h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.08; letter-spacing: -0.015em; margin: 0.6rem 0 1rem; }
.tslide p { color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); max-width: 46ch; margin-inline: auto; }

/* ============================================================
   5 · SERVICES
   ============================================================ */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.svc { position: relative; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; will-change: transform; transition: transform 0.5s var(--ease), border-color 0.4s; min-height: 320px; display: flex; }
.svc:hover { border-color: var(--blue-glow); }
.svc__no { font-family: var(--display); font-size: 0.9rem; color: var(--blue-light); letter-spacing: 0.1em; }
.svc h3 { font-family: var(--display); font-weight: 500; font-size: 1.45rem; margin: 0.3rem 0 0.6rem; }
.svc p { font-size: 0.93rem; color: var(--muted); }
.svc__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.svc__tags li { font-size: 0.72rem; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 100px; color: var(--blue-light); }
/* photo card */
.svc--photo { grid-column: span 2; align-items: flex-end; }
.svc--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,14,24,0.15) 35%, rgba(7,14,24,0.92)); }
.svc--photo:hover img { transform: scale(1.06); }
.svc__overlay { position: relative; z-index: 2; padding: 1.8rem; max-width: 520px; }
/* icon card */
.svc--icon { flex-direction: column; justify-content: flex-end; background: linear-gradient(160deg, var(--surface), var(--navy-soft)); padding: 1.8rem 1.7rem; }
.svc--icon:hover { transform: translateY(-6px); }
.svc__ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: rgba(62,98,198,0.16); color: var(--blue-light); margin-bottom: auto; }

/* ============================================================
   6 · OFFICE
   ============================================================ */
.office__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.office__list { margin: 1.8rem 0 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.office__list li { display: flex; gap: 0.9rem; align-items: center; color: var(--muted); font-size: 1rem; }
.office__list span { color: var(--gold); }
.office__media { position: relative; border-radius: var(--radius); overflow: hidden; will-change: transform; box-shadow: 0 40px 80px -34px rgba(0,0,0,0.7); }
.office__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 1.1s var(--ease); }
.office__media:hover img { transform: scale(1.05); }
.office__media-glow { position: absolute; inset: auto -12% -12% auto; width: 55%; height: 55%; background: radial-gradient(circle, var(--blue-glow), transparent 70%); filter: blur(30px); z-index: -1; }

/* ============================================================
   7 · GALLERY + BEFORE/AFTER
   ============================================================ */
.gallery__collage { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1.2rem; }
.gcell { position: relative; border-radius: var(--radius); overflow: hidden; will-change: transform; }
.gcell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gcell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,14,24,0.82)); }
.gcell:hover img { transform: scale(1.06); }
.gcell figcaption { position: absolute; left: 1.2rem; bottom: 1.1rem; z-index: 2; font-family: var(--display); font-size: 1.05rem; color: var(--warm-white); }
.gcell--a { grid-row: span 2; }
.gcell--b { grid-column: span 2; }
.gcell--c { grid-row: span 1; }
.gcell--d { grid-column: span 2; }

.ba-head { text-align: center; max-width: 640px; margin: clamp(3.5rem, 7vw, 5.5rem) auto clamp(1.8rem, 4vw, 2.6rem); }
.ba-head .lede { margin-inline: auto; text-align: center; }
.ba { max-width: 960px; margin-inline: auto; }
.ba__frame { position: relative; aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 90px -40px rgba(0,0,0,0.8); user-select: none; touch-action: none; }
.ba__img { position: absolute; inset: 0; overflow: hidden; }
.ba__img img { width: 100%; height: 100%; object-fit: cover; }
.ba__img--after img { filter: saturate(1.05) brightness(1.06); }
.ba__img--before { width: 50%; border-right: 2px solid var(--blue-light); }
.ba__img--before img { width: auto; max-width: none; height: 100%; }
.ba__tag { position: absolute; top: 1.1rem; z-index: 3; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 100px; backdrop-filter: blur(8px); }
.ba__tag--before { left: 1.1rem; background: rgba(7,14,24,0.6); color: var(--muted); border: 1px solid var(--line); }
.ba__tag--after { right: 1.1rem; background: rgba(62,98,198,0.85); color: #fff; }
.ba__handle { position: absolute; top: 0; left: 50%; height: 100%; width: 46px; transform: translateX(-50%); z-index: 4; cursor: ew-resize; display: flex; align-items: center; justify-content: center; }
.ba__line { position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: var(--blue-light); transform: translateX(-50%); box-shadow: 0 0 16px var(--blue-glow); }
.ba__grip { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue-light); color: var(--navy-deep); box-shadow: 0 10px 30px -6px var(--blue-glow); }
.ba__handle:focus-visible { outline: none; }
.ba__handle:focus-visible .ba__grip { outline: 3px solid var(--warm-white); outline-offset: 3px; }

/* ============================================================
   8 · TESTIMONIALS
   ============================================================ */
.testimonials__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.rating { text-align: right; }
.rating__stars { display: block; color: var(--gold); letter-spacing: 3px; font-size: 1.1rem; }
.rating__txt { font-size: 0.85rem; color: var(--muted); }
.slider { max-width: 900px; margin-inline: auto; padding-inline: var(--pad); }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform 0.7s var(--ease); }
.quote { flex: 0 0 100%; text-align: center; padding: 1rem clamp(0.5rem, 4vw, 3rem); }
.quote__mark { font-family: var(--display); font-size: 5rem; line-height: 0.5; color: var(--blue-light); opacity: 0.5; display: block; height: 2.2rem; }
.quote p { font-family: var(--display); font-weight: 300; font-size: clamp(1.4rem, 3vw, 2.05rem); line-height: 1.35; color: var(--cream); margin-bottom: 1.6rem; }
.quote footer { display: flex; flex-direction: column; gap: 0.3rem; align-items: center; }
.quote footer strong { font-size: 0.95rem; }
.quote footer span { color: var(--gold); letter-spacing: 2px; font-size: 0.85rem; }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 2rem; }
.slider__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); font-size: 1.1rem; color: var(--cream); transition: border-color 0.3s, color 0.3s, transform 0.3s; }
.slider__btn:hover { border-color: var(--blue-light); color: var(--blue-light); transform: scale(1.08); }
.slider__dots { display: flex; gap: 0.5rem; }
.slider__dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width 0.4s var(--ease), background 0.3s; }
.slider__dots button.is-active { width: 26px; border-radius: 8px; background: var(--blue-light); }

/* ============================================================
   9 · TECHNOLOGY
   ============================================================ */
.tech { background: var(--navy-deep); }
.tech__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.tech__head { position: sticky; top: 110px; }
.tech__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.techcard { background: linear-gradient(160deg, var(--surface), var(--navy-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.7rem; transition: transform 0.5s var(--ease), border-color 0.4s; }
.techcard:hover { transform: translateY(-6px); border-color: var(--blue-glow); }
.techcard__ico { color: var(--gold); font-size: 1.1rem; }
.techcard h3 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; margin: 0.8rem 0 0.5rem; }
.techcard p { color: var(--muted); font-size: 0.93rem; }

/* ============================================================
   10 · INSURANCE + PATIENTS
   ============================================================ */
.insurance__grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.insurance__cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.2rem; margin-top: 2.4rem; }
.ins { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.5rem 1.4rem; background: var(--surface); transition: transform 0.5s var(--ease), border-color 0.4s; }
.ins:hover { transform: translateY(-5px); border-color: var(--blue-glow); }
.ins h3 { font-family: var(--display); font-weight: 500; font-size: 1.15rem; margin-bottom: 0.5rem; }
.ins p { color: var(--muted); font-size: 0.88rem; }
.ins--accent { background: linear-gradient(150deg, rgba(62,98,198,0.16), var(--surface)); border-color: var(--blue-glow); }
.ins--accent h3 { color: var(--blue-light); }
.patients { background: linear-gradient(160deg, var(--surface-2), var(--navy-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.9rem; }
.patients__title { font-family: var(--display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.patients__sub { color: var(--muted); font-size: 0.92rem; margin: 0.8rem 0 1.4rem; }
.patients__list { display: flex; flex-direction: column; gap: 0.8rem; }
.formlink { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(7,14,24,0.3); transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s; }
.formlink:hover { border-color: var(--blue-light); background: var(--surface); transform: translateX(5px); }
.formlink__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(62,98,198,0.16); color: var(--blue-light); font-size: 1.1rem; flex-shrink: 0; }
.formlink span span, .formlink > span { display: flex; flex-direction: column; }
.formlink strong { font-size: 0.98rem; }
.formlink small { color: var(--muted); font-size: 0.8rem; }

/* ============================================================
   11 · FAQ
   ============================================================ */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.acc { border-bottom: 1px solid var(--line); }
.acc__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; color: var(--cream); transition: color 0.3s; }
.acc__q:hover { color: var(--blue-light); }
.acc__ico { font-family: var(--body); font-size: 1.5rem; color: var(--blue-light); transition: transform 0.4s var(--ease); flex-shrink: 0; }
.acc.is-open .acc__ico { transform: rotate(45deg); }
.acc__a { overflow: hidden; max-height: 0; transition: max-height 0.5s var(--ease); }
.acc__a p { padding-bottom: 1.5rem; color: var(--muted); max-width: 60ch; }

/* ============================================================
   12 · CTA
   ============================================================ */
.cta { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); text-align: center; overflow: hidden; }
.cta__glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80vw; max-width: 900px; height: 500px; background: radial-gradient(ellipse at top, var(--blue-glow), transparent 65%); pointer-events: none; animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: 0.55; transform: translateX(-50%) scale(1); } 50% { opacity: 0.85; transform: translateX(-50%) scale(1.05); } }
.cta__inner { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.cta__title { font-family: var(--display); font-weight: 300; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; letter-spacing: -0.02em; }
.cta__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3rem auto 1.5rem; text-align: left; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input { width: 100%; padding: 1.3rem 1.2rem 0.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--cream); font-size: 1rem; font-family: inherit; transition: border-color 0.3s; }
.field input:focus { outline: none; border-color: var(--blue-light); }
.field label { position: absolute; left: 1.2rem; top: 1rem; color: var(--muted); font-size: 1rem; pointer-events: none; transition: transform 0.3s var(--ease), color 0.3s; transform-origin: left; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-0.7rem) scale(0.78); color: var(--blue-light); }
.cta__form .btn { grid-column: 1 / -1; justify-self: center; }
.cta__formnote { grid-column: 1/-1; text-align: center; color: var(--blue-light); font-size: 0.9rem; min-height: 1.2rem; }
.cta__formnote.is-success { color: var(--gold-soft); }
.cta__or { color: var(--muted); margin-top: 0.5rem; }
.cta__or a { color: var(--blue-light); font-weight: 600; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: stretch; }
.contact__list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 2rem; }
.contact__list li { display: flex; flex-direction: column; gap: 0.3rem; }
.contact__label { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-light); }
.contact__list a { font-size: 1.1rem; color: var(--cream); transition: color 0.3s; }
.contact__list a:hover { color: var(--blue-light); }
.hours { margin-top: 2.4rem; }
.hours__table { width: 100%; max-width: 360px; border-collapse: collapse; margin-top: 1rem; }
.hours__table td { padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.hours__table td:last-child { text-align: right; color: var(--muted); }
.hours__closed td { color: var(--muted-soft); }
.contact__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 440px; filter: grayscale(0.3) contrast(1.05) brightness(0.85); }
.contact__map iframe { display: block; height: 100%; min-height: 440px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer__logo { width: 240px; height: auto; margin-bottom: 1.2rem; }
.footer__tag { font-family: var(--display); font-size: 1.25rem; line-height: 1.35; }
.footer__tag em { font-style: italic; color: var(--blue-light); }
.footer__col h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 1.2rem; }
.footer__col a { display: block; color: var(--muted); font-size: 0.95rem; padding: 0.35rem 0; transition: color 0.3s, padding-left 0.3s; }
.footer__col a:hover { color: var(--cream); padding-left: 5px; }
.footer__contact p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.footer__contact a { color: var(--cream); }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; padding: 0; transition: border-color 0.3s, color 0.3s, transform 0.3s; }
.footer__social a:hover { border-color: var(--blue-light); color: var(--blue-light); transform: translateY(-3px); }
.footer__bar { border-top: 1px solid var(--line); padding: 1.5rem var(--pad); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; max-width: var(--wrap); margin-inline: auto; font-size: 0.82rem; color: var(--muted-soft); }

/* ============================================================
   REVEAL
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.hero__title .line > span, .hero__title .line > em { transform: translateY(110%); transition: transform 1s var(--ease); }
.hero__title .line.is-visible > span, .hero__title .line.is-visible > em { transform: translateY(0); }

/* ============================================================
   CINEBAND — reusable full-bleed cinematic parallax section
   ============================================================ */
.cineband { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--navy-deep); }
.cineband__bg { position: absolute; inset: -10% 0; z-index: 0; }
.cineband__bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.cineband__scrim { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(7,14,24,0.93) 0%, rgba(7,14,24,0.72) 34%, rgba(7,14,24,0.3) 66%, rgba(7,14,24,0.5) 100%),
  linear-gradient(0deg, rgba(7,14,24,0.5), transparent 40%); }
.cineband__inner { position: relative; z-index: 2; }
.cineband__copy { max-width: 620px; }
.cineband__list { margin: 1.8rem 0 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.cineband__list li { display: flex; gap: 0.9rem; align-items: center; color: var(--cream); font-size: 1rem; }
.cineband__list li span { color: var(--gold); flex-shrink: 0; }
/* centered "visual moment" variant */
.cineband--center { text-align: center; justify-content: center; min-height: 82vh; }
.cineband--center .cineband__scrim { background: linear-gradient(0deg, rgba(7,14,24,0.72) 0%, rgba(7,14,24,0.55) 60%, rgba(7,14,24,0.7) 100%); }
.cineband--center .cineband__inner { max-width: 900px; margin-inline: auto; }
.cineband__quote { font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 5.2vw, 3.7rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--warm-white); }
.cineband__quote em { font-style: italic; color: var(--blue-light); }
.cineband__sub { color: var(--cream); font-size: clamp(1rem, 1.5vw, 1.2rem); margin-top: 1.4rem; }

/* ============================================================
   LIGHT CONTRAST BLOCK (bryant dark→light→dark rhythm)
   ============================================================ */
.section--light { background: var(--cream); color: var(--navy); }
.section--light .eyebrow { color: var(--blue); }
.section--light .eyebrow__dot { background: var(--gold); box-shadow: 0 0 10px rgba(198,161,91,0.5); }
.section--light .h-display { color: var(--navy); }
.section--light .h-display em { color: var(--blue); }
.section--light .lede { color: rgba(11,21,36,0.66); }
.section--light .ins { background: #FFFFFF; border-color: rgba(11,21,36,0.10); box-shadow: 0 18px 40px -28px rgba(11,21,36,0.28); }
.section--light .ins h3 { color: var(--navy); }
.section--light .ins p { color: rgba(11,21,36,0.62); }
.section--light .ins--accent { background: linear-gradient(150deg, rgba(62,98,198,0.12), #FFFFFF); border-color: rgba(62,98,198,0.28); }
.section--light .ins--accent h3 { color: var(--blue); }
.section--light .ins:hover { border-color: rgba(62,98,198,0.4); }
/* the patient-forms aside stays dark = a rich contrast card on the light field */

/* ============================================================
   SCROLL-DRIVEN STORYTELLING (bryant-style pinned stage)
   ============================================================ */
.scrolly { position: relative; background: var(--navy-deep); }
.scrolly__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scrolly__media { position: absolute; inset: 0; }
.scrolly__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 6s var(--ease); }
.scrolly__img.is-active { opacity: 1; transform: scale(1); }
.scrolly__tint { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,14,24,0.9) 0%, rgba(7,14,24,0.5) 45%, rgba(7,14,24,0.25) 100%), linear-gradient(0deg, rgba(7,14,24,0.7), transparent 45%); }
.scrolly__panel { position: absolute; left: 0; bottom: 0; z-index: 2; width: 100%; max-width: 1220px; margin-inline: auto; left: 50%; transform: translateX(-50%); padding: 0 var(--pad) clamp(3rem, 8vh, 6rem); }
.scrolly__eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.77rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: var(--blue-light); margin-bottom: 1.4rem; }
.scrolly__caps { position: relative; min-height: 44vh; max-width: 620px; }
.scrolly__cap { position: absolute; inset: 0; opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); pointer-events: none; }
.scrolly__cap.is-active { opacity: 1; transform: none; pointer-events: auto; }
.scrolly__no { font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }
.scrolly__cap h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0.7rem 0 1rem; color: var(--warm-white); }
.scrolly__cap p { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--cream); max-width: 52ch; }
.scrolly__trigger { position: relative; height: 100vh; }
@media (max-width: 640px) {
  .scrolly__caps { min-height: 52vh; }
  .scrolly__tint { background: linear-gradient(0deg, rgba(7,14,24,0.92) 8%, rgba(7,14,24,0.35) 60%); }
}

/* ============================================================
   TEAM PAGE
   ============================================================ */
.section-head--left { text-align: left; max-width: none; margin-inline: 0; }
.section-head--left .eyebrow { justify-content: flex-start; }

/* Fullscreen cinematic intro */
.thero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 8rem var(--pad) 4rem; background: radial-gradient(120% 90% at 50% 0%, var(--navy-soft), var(--navy) 55%, var(--navy-deep)); }
.thero__crest { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.06; pointer-events: none; }
.thero__crest img { width: min(70%, 620px); height: auto; }
.thero__inner { position: relative; z-index: 2; max-width: 900px; }
.thero__title { font-family: var(--display); font-weight: 300; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.03; letter-spacing: -0.03em; margin-top: 0.6rem; }
.thero__title .line { display: block; overflow: hidden; }
.thero__title .line > span, .thero__title .line > em { display: inline-block; }
.thero__title em { font-style: italic; color: var(--blue-light); }
.thero__lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 54ch; margin: 2rem auto 0; }
.thero__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-top: 3rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.thero .hero__scroll-line { width: 1px; height: 46px; }

/* Philosophy */
.philosophy { background: var(--navy-deep); }
.philosophy__grid { max-width: 900px; margin-inline: auto; text-align: center; }
.philosophy__grid .eyebrow { justify-content: center; }
.philosophy__quote { font-family: var(--display); font-weight: 300; font-size: clamp(1.8rem, 4.4vw, 3.2rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--cream); }
.philosophy__quote em { font-style: italic; color: var(--blue-light); }
.philosophy__body { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 56ch; margin: 1.8rem auto 0; }

/* Members — portrait reveals + hover bios */
.members__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.member { will-change: transform; }
.member__portrait { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, var(--surface-2), var(--navy-deep)); box-shadow: 0 40px 80px -34px rgba(0,0,0,0.7); }
.member__photo { width: 100%; height: 100%; object-fit: cover; }
.member__portrait.is-crest .member__photo { display: none; }
.member__crest { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 2rem; }
.member__portrait.is-crest .member__crest { display: flex; }
.member__crest img { width: min(70%, 220px); height: auto; opacity: 0.95; }
.member__bio { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.6rem; background: linear-gradient(transparent 30%, rgba(7,14,24,0.92)); opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.member__bio p { font-size: 0.92rem; color: var(--cream); line-height: 1.5; }
.member__portrait:hover .member__bio, .member:hover .member__bio { opacity: 1; transform: none; }
.member__meta { margin-top: 1.2rem; }
.member__meta h3 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; }
.member__meta span { color: var(--blue-light); font-size: 0.9rem; }
.member__creds { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.member__creds li { font-size: 0.72rem; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }
.members__note { text-align: center; color: var(--muted-soft); font-size: 0.82rem; margin-top: 2rem; }
.members__note code { color: var(--blue-light); font-family: ui-monospace, monospace; font-size: 0.78rem; }

/* Horizontal clinic moments */
.moments__rail { display: flex; gap: 1.4rem; overflow-x: auto; padding: 1rem var(--pad) 2rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.moments__rail::-webkit-scrollbar { display: none; }
.moment { position: relative; flex: 0 0 clamp(280px, 40vw, 460px); aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; scroll-snap-align: center; }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.moment::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,14,24,0.85)); }
.moment:hover img { transform: scale(1.06); }
.moment figcaption { position: absolute; left: 1.3rem; bottom: 1.2rem; z-index: 2; font-family: var(--display); font-size: 1.1rem; color: var(--warm-white); max-width: 80%; }

/* Patient stories masonry */
.stories { background: var(--navy-deep); }
.stories__masonry { columns: 3; column-gap: 1.4rem; }
.story-quote { break-inside: avoid; margin-bottom: 1.4rem; padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--surface), var(--navy-soft)); transition: transform 0.5s var(--ease), border-color 0.4s; }
.story-quote:hover { transform: translateY(-5px); border-color: var(--blue-glow); }
.story-quote p { font-family: var(--display); font-size: 1.2rem; line-height: 1.4; color: var(--cream); }
.story-quote footer { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }
.story-quote footer span { color: var(--gold); letter-spacing: 1px; margin-left: 0.4rem; }

@media (max-width: 1024px) {
  .members__grid { grid-template-columns: 1fr 1fr; }
  .stories__masonry { columns: 2; }
}
@media (max-width: 640px) {
  .members__grid { grid-template-columns: 1fr; }
  .stories__masonry { columns: 1; }
  .member__bio { opacity: 1; transform: none; background: linear-gradient(transparent 45%, rgba(7,14,24,0.92)); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .floatcard--rating { top: 18%; right: 3%; }
  .floatcard--book { top: 36%; right: 5%; }
  .story__grid, .doctor__grid, .office__grid, .tech__inner, .faq__grid, .contact__grid, .insurance__grid { grid-template-columns: 1fr; }
  .doctor__sticky, .faq__head, .tech__head { position: static; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trustcard--lead, .trust__stats { grid-column: span 2; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .svc--photo { grid-column: span 2; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav__phone { display: none; }
  .trust__grid, .services__grid, .insurance__cards { grid-template-columns: 1fr; }
  .trustcard, .trustcard--lead, .trust__stats, .svc--photo { grid-column: span 1; }
  .trust__stats { flex-direction: column; }
  .gallery__collage { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gcell--a, .gcell--b, .gcell--c, .gcell--d { grid-column: span 1; grid-row: span 1; }
  .tech__grid { grid-template-columns: 1fr; }
  .cta__form { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bar { justify-content: flex-start; }
  .quote p { font-size: 1.3rem; }
  .story__pillars { gap: 1rem 1.6rem; }
  .floatcard { display: none; }
  .hero__scrim { background: linear-gradient(0deg, rgba(7,14,24,0.92) 6%, rgba(7,14,24,0.4) 55%, rgba(7,14,24,0.6) 100%); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .hero__title .line > span, .hero__title .line > em, .char { opacity: 1 !important; transform: none !important; }
  .cursor, .cursor-dot { display: none; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
  .preloader { display: none !important; }
  body.is-loading { overflow: auto; }
}

/* ============================================================
   LIGHT-THEME OVERRIDES
   Content flows light; cinematic image sections, crest panels,
   preloader and footer stay dark with light text.
   ============================================================ */

/* ---- Buttons ---- */
.btn--solid { color: #FFFFFF; }

/* ---- Navigation: transparent at top (no white band), light glass on scroll ---- */
.nav { background: transparent; backdrop-filter: none; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(248, 244, 236, 0.9); backdrop-filter: blur(14px) saturate(160%); border-bottom-color: var(--line); }
.nav__toggle span { background: var(--warm-white); }

/* ---- Light hero (cream, dark text, framed photo) ---- */
.hero--light { min-height: 100svh; display: flex; align-items: center; padding: 7rem 0 3rem; overflow: hidden; background: var(--navy); }
.hero--light .hero__aura { position: absolute; z-index: 0; width: 55vw; height: 55vw; max-width: 720px; max-height: 720px; border-radius: 50%; background: radial-gradient(circle, var(--blue-glow), transparent 65%); filter: blur(30px); left: var(--mx, 68%); top: var(--my, 42%); transform: translate(-50%,-50%); pointer-events: none; transition: left 0.5s var(--ease-soft), top 0.5s var(--ease-soft); opacity: 0.55; }
.hero--light .hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1340px; margin-inline: auto; min-height: auto; padding: 1rem var(--pad); display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero--light .hero__copy { max-width: 640px; }
.hero--light .hero__title { color: var(--warm-white); text-shadow: none; }
.hero--light .hero__title em { color: var(--blue-light); }
.hero--light .hero__lede { color: var(--muted); }
.hero--light .hero__visual { position: relative; aspect-ratio: 4/4.5; }
.hero--light .hero__frame { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 50px 90px -34px rgba(20,33,58,0.35); background: var(--surface-2); }
.hero--light .hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; animation: kenburns 26s ease-in-out infinite alternate; }
/* floating cards → light glass on the light theme */
.hero--light .floatcard { background: rgba(255,255,255,0.82); border-color: var(--line); box-shadow: 0 22px 50px -22px rgba(20,33,58,0.28); backdrop-filter: blur(10px); }
.hero--light .floatcard__big, .hero--light .floatcard__book-txt { color: var(--warm-white); }
.hero--light .floatcard__label { color: var(--muted); }
.hero--light .floatcard__eyebrow { color: var(--blue-light); }
.hero--light .floatcard__stars { color: var(--gold); }
.hero--light .floatcard--rating { top: 7%; left: -7%; max-width: 210px; }
.hero--light .floatcard--book { bottom: 12%; right: -6%; }
.hero--light .hero__scroll { color: var(--muted); }
@media (max-width: 1024px) {
  .hero--light .hero__inner { grid-template-columns: 1fr; }
  .hero--light .hero__visual { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ---- Preloader: stays dark, light logo ---- */
.preloader { background: #070E18; }
.preloader__sub { color: var(--on-media-blue); }

/* ---- HERO (cinematic image) — text stays light ---- */
.hero--cine .eyebrow { color: var(--on-media-blue); }
.hero--cine .hero__title { color: var(--on-media); }
.hero--cine .hero__title em { color: var(--on-media-blue); }
.hero--cine .hero__lede { color: var(--on-media-dim); }
.hero--cine .hero__scroll { color: var(--on-media-dim); }
.hero--cine .btn--ghost { color: var(--on-media); border-color: rgba(246,242,234,0.42); background: rgba(255,255,255,0.06); }
.hero--cine .btn--ghost:hover { color: #fff; border-color: var(--on-media); }
.floatcard { background: rgba(11,21,36,0.55); border-color: rgba(246,242,234,0.16); }
.floatcard__big, .floatcard__book-txt { color: var(--on-media); }
.floatcard__label { color: var(--on-media-dim); }
.floatcard__eyebrow { color: var(--on-media-blue); }

/* ---- STATEMENT band ---- */
.statement__crest { opacity: 0.06; }

/* ---- STORY badge (glass over image) ---- */
.story__badge { background: rgba(11,21,36,0.72); border-color: rgba(246,242,234,0.16); }
.story__badge em { color: var(--on-media-blue); }
.story__badge span { color: var(--on-media-dim); }

/* ---- DOCTOR crest + plate (over dark) ---- */
.doctor__crest, .member__crest { background: radial-gradient(120% 90% at 50% 20%, #12233F, #070E18); }
.doctor__crest span { color: var(--on-media-blue); }
.doctor__plate span { color: var(--on-media); }
.doctor__plate small { color: var(--on-media-blue); }

/* ---- GALLERY / MOMENTS captions (over image) ---- */
.gcell figcaption, .moment figcaption { color: var(--on-media); }

/* ---- SERVICES photo cards (text over dark image overlay) ---- */
.svc--photo h3 { color: var(--on-media); }
.svc--photo p { color: var(--on-media-dim); }
.svc--photo .svc__no { color: var(--on-media-blue); }
.svc--photo .svc__tags li { color: var(--on-media); border-color: rgba(246,242,234,0.32); }

/* ---- CINEBAND (full-bleed image) — text stays light ---- */
.cineband .eyebrow { color: var(--on-media-blue); }
.cineband .h-display { color: var(--on-media); }
.cineband .h-display em { color: var(--on-media-blue); }
.cineband .lede { color: var(--on-media-dim); }
.cineband__list li { color: var(--on-media); }
.cineband__quote { color: var(--on-media); }
.cineband__quote em { color: var(--on-media-blue); }
.cineband__sub { color: var(--on-media-dim); }

/* ---- SCROLLY pinned stage — text stays light ---- */
.scrolly__eyebrow { color: var(--on-media-blue); }
.scrolly__no { color: #D9B871; }
.scrolly__cap h2 { color: var(--on-media); }
.scrolly__cap p { color: var(--on-media); }

/* ---- TEAM cinematic intro (now a light section) ---- */
.thero__crest { opacity: 0.05; }

/* ---- FOOTER: stays dark ---- */
.footer { background: #070E18; border-top-color: rgba(246,242,234,0.10); }
.footer__tag { color: var(--on-media); }
.footer__tag em { color: var(--on-media-blue); }
.footer__col h4 { color: var(--on-media-blue); }
.footer__col a { color: var(--on-media-dim); }
.footer__col a:hover { color: var(--on-media); }
.footer__contact p { color: var(--on-media-dim); }
.footer__contact a { color: var(--on-media); }
.footer__social a { border-color: rgba(246,242,234,0.18); color: var(--on-media-dim); }
.footer__social a:hover { border-color: var(--on-media-blue); color: var(--on-media-blue); }
.footer__bar { border-top-color: rgba(246,242,234,0.10); color: rgba(246,242,234,0.5); }
