/* ============================================================
   Carroll Family Medicine — main stylesheet
   Palette drawn from the practice logo (azure blue / leaf green)
   Type: Plus Jakarta Sans (display) + DM Sans (UI)
   ============================================================ */

:root {
  --blue-700: #155FB0;
  --blue-800: #0E4B8F;
  --blue-500: #1E86D6;
  --blue-900: #0C2340;
  --navy: #0C2340;
  --green-500: #57a63e;
  --green-700: #3c7d2a;
  --ink: #12263c;
  --muted: #52667b;
  --paper: #f5f9fd;
  --card: #ffffff;
  --line: #dbe7f2;
  --tint-blue: #e3effb;
  --tint-green: #e6f4de;
  --grad-brand: linear-gradient(120deg, #0C2340 0%, #155FB0 100%);
  --grad-cta: linear-gradient(120deg, #155FB0, #1E86D6);
  --grad-hero: linear-gradient(103deg, rgba(12, 35, 64, .95) 0%, rgba(12, 35, 64, .72) 46%, rgba(21, 95, 176, .34) 100%);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(12, 35, 64, .06), 0 4px 12px rgba(12, 35, 64, .06);
  --shadow-lg: 0 6px 16px rgba(12, 35, 64, .10), 0 24px 48px rgba(12, 35, 64, .16);
  --radius: 18px;
  --radius-lg: 26px;
  --font-display: 'Plus Jakarta Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  --header-h: 84px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* pre-reveal translateX offsets and orbit chips must never create sideways scroll */
  overflow-x: hidden;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 .45em; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue-800); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 2px; border-radius: 4px; }

/* ambient washes + film grain: keeps the light background from reading flat */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1100px 500px at 85% -8%, rgba(87, 166, 62, .11), transparent 60%),
    radial-gradient(1000px 520px at -10% 6%, rgba(28, 106, 179, .12), transparent 60%),
    radial-gradient(900px 480px at 108% 62%, rgba(30, 134, 214, .07), transparent 65%),
    radial-gradient(760px 420px at -6% 96%, rgba(87, 166, 62, .08), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, .5), rgba(227, 239, 251, .22) 55%, rgba(230, 244, 222, .18));
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- cross-page view transitions (progressive enhancement) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ---------- buttons, chips, eyebrows ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: 0 8px 22px rgba(21, 95, 176, .34); position: relative; }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(21, 95, 176, .45); transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue-700); color: var(--blue-800); transform: translateY(-1px); }
.btn-glass {
  background: rgba(255, 255, 255, .13); color: #fff;
  border-color: rgba(255, 255, 255, .38);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--blue-800); }
.btn-light:hover { background: var(--tint-blue); }
.btn-sm { padding: 12px 20px; font-size: .92rem; }
.chip {
  display: inline-flex; align-items: center; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.chip-new { background: var(--green-500); color: #fff; }
.chip-soft { background: var(--tint-green); color: var(--green-700); font-size: .64rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-700); margin: 0 0 14px;
}
.eyebrow svg { width: 16px; height: 16px; }
.eyebrow-light { color: #bcd9f4; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 251, 254, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .92); }
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand img { height: 64px; width: auto; transition: height .25s ease; }
.site-header.scrolled .brand img { height: 54px; }
/* Privia mark rides next to the CFM logo (Kim: must be at the top of the page) */
.brand-privia {
  display: inline-flex; align-items: center; flex: none;
  margin-left: -12px; padding-left: 16px; border-left: 1px solid var(--line);
}
.brand-privia img { height: 24px; width: auto; display: block; }
/* nav rides centered in the space between the brand cluster and the actions (balanced gaps both sides) */
.primary-nav { margin-inline: auto; }
.primary-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
/* tighten as the six items approach the collapse point so nothing crowds the actions */
@media (max-width: 1280px) { .header-row { gap: 20px; } .primary-nav ul { gap: 22px; } }
.primary-nav a {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  color: var(--ink); font-weight: 500; font-size: .98rem; position: relative; padding: 6px 0;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2.5px;
  background: var(--green-500); border-radius: 2px; transition: right .22s ease;
}
.primary-nav a:hover::after { right: 0; }
.primary-nav a[aria-current="page"] { color: var(--blue-800); font-weight: 600; }
.primary-nav a[aria-current="page"]::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue-800); font-size: .98rem; white-space: nowrap; }
.phone-link svg { width: 17px; height: 17px; flex: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.fb-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: #1877F2; color: #fff;
  box-shadow: 0 4px 12px rgba(24, 119, 242, .35);
  transition: transform .2s var(--ease-out-quint), box-shadow .2s ease, filter .2s ease;
}
.fb-link:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 8px 18px rgba(24, 119, 242, .45); color: #fff; }
.fb-link svg { width: 20px; height: 20px; }

/* ---------- hero (cinematic full-bleed) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: min(88vh, 780px); display: flex; align-items: center;
  padding: clamp(96px, 14vh, 150px) 0 clamp(80px, 12vh, 130px);
}
.hero-bg { position: absolute; inset: -14% 0; z-index: 0; will-change: transform; }
.hero-bg picture { display: contents; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: var(--grad-hero); }
/* dusk photo hero: directional veil — solid under the copy, clear where the scene glows */
.hero-warm .hero-overlay {
  background:
    linear-gradient(180deg, rgba(12, 35, 64, .3), transparent 26%, transparent 64%, rgba(12, 35, 64, .6)),
    linear-gradient(103deg, rgba(12, 35, 64, .93) 0%, rgba(12, 35, 64, .72) 38%, rgba(12, 35, 64, .34) 66%, rgba(14, 42, 77, .06) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { margin-bottom: .45em; color: #fff; text-wrap: balance; text-shadow: 0 2px 24px rgba(12, 35, 64, .35); }
.eyebrow-hero { color: #9cc6f2; }
.lede { font-size: 1.14rem; color: rgba(235, 244, 252, .92); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; margin: 32px 0 0; padding: 0; color: rgba(235, 244, 252, .88); font-size: .95rem; font-weight: 500; }
.hero-badges li { display: inline-flex; align-items: center; gap: 9px; }
.hero-badges svg { width: 18px; height: 18px; color: #8ed36f; }
.parallax-frame { overflow: hidden; border-radius: var(--radius-lg); }
.parallax-frame img { scale: 1.12; will-change: transform; }

/* ---------- page hero (subpages) ---------- */
.page-hero {
  background: var(--grad-brand); color: #eef5fc;
  padding: clamp(56px, 9vh, 92px) 0 clamp(44px, 7vh, 72px);
  position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); text-wrap: balance; }
.page-hero .lede { color: #c9dcee; }
.page-hero .eyebrow { color: #bcd9f4; }

/* ---------- photo backdrops ---------- */
.hero-media { width: 100%; height: 100%; object-fit: cover; }
.has-backdrop { position: relative; overflow: hidden; }
.backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.backdrop.backdrop-parallax { inset: -14% 0; will-change: transform; }
.backdrop picture { display: contents; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: var(--veil, rgba(12, 35, 64, .6)); }
.has-backdrop > .container { position: relative; z-index: 1; }
.page-hero.has-backdrop { --veil: var(--grad-hero); }
.biote-hero.has-backdrop { --veil: linear-gradient(103deg, rgba(12, 35, 64, .94) 0%, rgba(12, 35, 64, .74) 46%, rgba(14, 42, 77, .5) 100%); }
.biote-hero.has-backdrop::before, .biote-hero.has-backdrop::after { display: none; }
.biote-hero.has-backdrop .helix { opacity: .28; }
.veil-heavy { --veil: linear-gradient(rgba(12, 35, 64, .8), rgba(12, 35, 64, .85)); }
.cta-band.has-backdrop { --veil: linear-gradient(103deg, rgba(12, 35, 64, .88), rgba(12, 35, 64, .62)); }
.cta-band.has-backdrop > div:not(.backdrop), .cta-band.has-backdrop .hero-ctas { position: relative; z-index: 1; }
.backdrop-dark { color: #eef5fc; }
.backdrop-dark .section-head h2 { color: #fff; }
.backdrop-dark .section-head p:not(.eyebrow) { color: #c9dcee; }
.backdrop-dark .eyebrow { color: #bcd9f4; }
.backdrop-dark .symptom-note { color: #c9dcee; }

/* full-bleed emotional image band */
.img-band {
  position: relative; overflow: hidden; color: #fff;
  min-height: clamp(300px, 46vh, 440px);
  display: flex; align-items: flex-end;
  padding: 52px 0 46px;
  --veil: linear-gradient(180deg, rgba(12, 35, 64, .16), rgba(12, 35, 64, .64) 82%);
}
.img-band .container { position: relative; z-index: 1; }
.img-band .eyebrow { color: #bcd9f4; margin-bottom: 8px; }
.img-band h2 {
  color: #fff; margin: 0; max-width: 24ch;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  text-shadow: 0 2px 24px rgba(12, 35, 64, .45); text-wrap: balance;
}

/* biote teaser media card (home) */
.biote-media { position: relative; z-index: 1; margin: 0; }
.biote-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 18px 44px rgba(6, 18, 36, .35);
}

/* ---------- trust band ---------- */
.trust { background: var(--grad-brand); color: #e8f1fa; padding: 44px 0 36px; }
.trust-top { padding: 26px 0 24px; }
.trust-top .trust-points { margin-bottom: 0; }
.trust-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 54px; list-style: none; margin: 0 0 30px; padding: 0; font-weight: 600; font-size: .98rem; }
.trust-points li { display: inline-flex; align-items: center; gap: 10px; }
.trust-points svg { width: 20px; height: 20px; color: #8ed36f; }
.insurance-strip { padding: 30px 0 28px; }
.insurance-strip .insurance-lead { margin: 0 0 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.logo-pills { display: flex; gap: 14px; list-style: none; margin: 0; padding: 4px 0; }
.logo-pills li {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 14px; height: 66px; min-width: 158px; padding: 12px 24px;
  box-shadow: 0 4px 14px rgba(6, 18, 36, .25);
  transition: transform .25s var(--ease-out-quint);
}
.logo-pills li:hover { transform: translateY(-3px); }
.logo-pills img { max-height: 38px; max-width: 132px; width: auto; height: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.fineprint { text-align: center; font-size: .82rem; color: #9fb8ce; margin: 22px 0 0; }
.fineprint a { color: #cfe4f8; text-decoration: underline; }
.fineprint-dark { color: var(--muted); text-align: left; }
.fineprint-dark a { color: var(--blue-700); }

/* static insurance grid (contact page, light background) */
.logo-grid .logo-pills { flex-wrap: wrap; justify-content: center; }
.logo-grid .logo-pills li { box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.logo-grid + .fineprint-light { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 20px; }
.fineprint-light a { color: var(--blue-700); text-decoration: underline; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vh, 108px) 0; }
.section-tight-top { padding-top: 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vh, 56px); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.section-cta { margin-top: 32px; }
.fineprint-narrow { max-width: 640px; }
.fineprint-gap { margin-top: 22px; }
.spirited-standalone { padding-top: clamp(64px, 9vh, 108px); }
.pull-quote-wrap { margin-bottom: 44px; }

/* ---------- services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #c4d9ec; }
.card:hover .card-icon { transform: translateY(-3px) scale(1.06); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  transition: transform .3s var(--ease-out-quint);
}
.card-icon svg { width: 26px; height: 26px; }
.tint-blue { background: var(--tint-blue); color: var(--blue-700); }
.tint-green { background: var(--tint-green); color: var(--green-700); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }
.card-wide { grid-column: span 2; }

/* ---------- biote ---------- */
.biote { padding: clamp(64px, 9vh, 96px) 0 6px; }
.biote-panel {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  background: var(--grad-brand);
  color: #eef5fc; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.biote-panel::before, .biote-panel::after,
.biote-hero::before, .biote-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  width: 460px; height: 460px; opacity: .5; will-change: transform;
}
.biote-panel::before, .biote-hero::before {
  background: radial-gradient(circle, #5B86E5, transparent 66%);
  top: -220px; right: -120px; animation: orbA 21s ease-in-out infinite alternate;
}
.biote-panel::after, .biote-hero::after {
  background: radial-gradient(circle, rgba(87, 166, 62, .8), transparent 66%);
  bottom: -260px; left: -140px; opacity: .3; animation: orbB 27s ease-in-out infinite alternate;
}
@keyframes orbA { to { transform: translate3d(-70px, 46px, 0) scale(1.12); } }
@keyframes orbB { to { transform: translate3d(80px, -40px, 0) scale(1.08); } }
.biote-copy, .biote-list { position: relative; z-index: 1; }
.biote-panel h2 { color: #fff; }
.biote-panel > .biote-copy > p:not(.eyebrow) { color: #c9dcee; max-width: 56ch; }
.biote-note { font-size: .88rem; color: #a8c6e2; }
.biote-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.biote-list li {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px; padding: 14px 18px; font-weight: 600; font-size: .96rem;
  display: flex; align-items: center; gap: 10px;
}
.biote-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); flex: none; }
.biote-panel .fineprint { text-align: left; margin-top: 22px; font-size: .76rem; line-height: 1.55; }

/* biote page hero (services.html) */
.biote-hero {
  display: block; padding: clamp(64px, 10vh, 104px) 0 clamp(52px, 8vh, 84px);
}
.biote-hero .biote-hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  position: relative; z-index: 1;
}
.biote-hero h1 { color: #fff; }
.biote-hero .lede { color: #c9dcee; }
.biote-hero .helix { right: 30%; }

/* how-it-works steps: open horizontal flow, no tiles */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px;
  background: var(--grad-cta); color: #fff; font-weight: 700; font-family: var(--font-display); font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(21, 95, 176, .3);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 21px; left: 60px; right: -30px; height: 2px;
  background: linear-gradient(90deg, var(--line), rgba(219, 231, 242, .3));
}
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Biote certified provider cards (services page) */
.lead-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin-top: 34px; }
.lead-card {
  display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 28px; box-shadow: var(--shadow-sm);
}
.lead-card img { width: 132px; height: 156px; object-fit: cover; border-radius: 14px; }
.lead-card h3 { margin-bottom: .2em; }
.lead-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.lead-card .lead-role { color: var(--green-700); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }

/* ---------- heritage (providers page) ---------- */
.heritage { background: #fff; border-block: 1px solid var(--line); }
.heritage-copy { max-width: 720px; }
.heritage-copy p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 0; }
.stats div { border-top: 3px solid var(--green-500); padding-top: 12px; }
.stats dt { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--blue-800); }
.stats dd { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- provider bios (providers page) ---------- */
.bio-row {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-sm);
}
.bio-row + .bio-row { margin-top: 26px; }
.bio-row.flip { grid-template-columns: 1fr 300px; }
.bio-row.flip .bio-photo { order: 2; }
.bio-photo { margin: 0; }
.bio-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.bio-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: .15em; }
.bio-role { color: var(--green-700); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.bio-body p:not(.bio-role) { color: var(--muted); }
.bio-link { font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.bio-link svg { width: 16px; height: 16px; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-grid-duo { grid-template-columns: repeat(2, minmax(0, 300px)); }

/* home team teaser: intro column + staggered duo cards */
.team-duo-layout {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.team-intro { margin-bottom: 0; }
.team-intro .btn { margin-top: 28px; }
.team-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.team-points li {
  display: flex; align-items: baseline; gap: 11px;
  color: var(--muted); font-size: .96rem; font-weight: 500;
}
.team-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); flex: none; transform: translateY(-1px); }
.team-cards {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 26px); max-width: 640px; justify-self: end;
}
.team-cards::before {
  content: ""; position: absolute; right: -28px; top: -28px; width: 48%; height: 60%;
  background-image: radial-gradient(rgba(21, 95, 176, .3) 1.4px, transparent 1.4px);
  background-size: 16px 16px; border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(215deg, #000 50%, transparent 90%);
  mask-image: linear-gradient(215deg, #000 50%, transparent 90%);
}
.team-cards::after {
  content: ""; position: absolute; left: -36px; bottom: -6px; width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, rgba(87, 166, 62, .17), rgba(87, 166, 62, .05) 58%, transparent 72%);
}
.team-cards .team-card { position: relative; z-index: 1; }
.team-card-offset { margin-top: 38px; }
.team-grid-support { grid-template-columns: repeat(5, 1fr); }
.team-grid-office { grid-template-columns: repeat(3, minmax(0, 280px)); }
.team-card {
  margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .24s ease, box-shadow .24s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: var(--tint-blue); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .6, .2, 1); }
.team-card:hover .team-photo img { transform: scale(1.045); }
.team-photo-soon {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(340px 240px at 20% 0%, rgba(87, 166, 62, .18), transparent 60%),
    linear-gradient(150deg, var(--tint-blue), #cfe2f5);
}
.monogram {
  font-family: var(--font-display); font-weight: 600; font-size: 3.4rem;
  color: var(--blue-800); opacity: .82; letter-spacing: .02em;
}
.soon-chip {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-800); background: rgba(255, 255, 255, .75);
  border: 1px dashed rgba(20, 83, 143, .4); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.team-card figcaption { padding: 16px 18px 18px; }
.team-card h3 { font-size: 1.08rem; margin: 0 0 2px; }
.team-card figcaption p { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 500; }

/* ---------- spirited ---------- */
.spirited { padding-top: 0; }
.spirited-panel {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 64px);
  background: linear-gradient(140deg, #f2f9ec, #e6f2f9 70%);
  border: 1px solid #d8e8cf; border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
}
.spirited-copy p:not(.eyebrow):not(.fineprint) { color: var(--muted); max-width: 58ch; }
.spirited .eyebrow { color: var(--green-700); }
.spirited-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.spirited-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: .9rem; font-weight: 600; color: var(--ink);
}
.spirited .fineprint { margin-top: 26px; font-size: .76rem; line-height: 1.55; }

/* ---------- reviews carousel ---------- */
.reviews { background: #fff; border-block: 1px solid var(--line); }
.carousel { max-width: 820px; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex; list-style: none; margin: 0; padding: 0;
  transition: transform .55s var(--ease-out-quint);
}
.review { flex: 0 0 100%; margin: 0; padding-right: 8px; }
.review p {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.45; color: var(--ink); text-wrap: pretty;
}
.stars { color: #f5a623; letter-spacing: 4px; font-size: 1.05rem; margin-bottom: 12px; }
.carousel-nav { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.car-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; color: var(--blue-800); cursor: pointer;
  transition: transform .2s var(--ease-out-quint), border-color .2s ease, box-shadow .2s ease;
}
.car-btn svg { width: 18px; height: 18px; }
.car-btn:hover { border-color: var(--blue-700); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.car-btn:active { transform: scale(.94); }
.review-dots { display: flex; gap: 9px; }
.review-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--line); transition: background .25s ease, transform .25s var(--ease-out-quint);
}
.review-dots button.is-active { background: var(--grad-cta); transform: scale(1.3); }
.reviews-more { margin: 18px 0 0; font-size: .88rem; color: var(--muted); }
.reviews-more a { font-weight: 600; }

/* pull quote (providers page) */
.pull-quote {
  max-width: 720px; margin: 0; padding: 0 0 0 24px; border-left: 4px solid var(--green-500);
}
.pull-quote p {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 500; line-height: 1.45; color: var(--ink); margin: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad-brand); color: #eef5fc; border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 56px); box-shadow: var(--shadow-lg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.cta-band h2 { color: #fff; margin: 0 0 .2em; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.cta-band p { color: #c9dcee; margin: 0; max-width: 52ch; }
.cta-band .hero-ctas { margin: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
address { font-style: normal; }
.contact-lines { list-style: none; margin: 0 0 26px; padding: 0; }
.contact-lines li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .98rem;
}
.contact-lines span:first-child { color: var(--muted); }
.contact-lines a { font-weight: 700; }
.hours-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 32px; box-shadow: var(--shadow-sm);
}
.hours-card h3 { margin-bottom: 14px; }
.hours { width: 100%; border-collapse: collapse; font-size: .96rem; }
.hours th { text-align: left; font-weight: 600; padding: 11px 0; color: var(--ink); }
.hours td { text-align: right; padding: 11px 0; color: var(--muted); }
.hours tr + tr { border-top: 1px solid var(--line); }
.hours .is-late td { color: var(--green-700); font-weight: 600; }
.hours .chip { margin-left: 8px; vertical-align: 1px; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--blue-800); font-weight: 700; }

/* open-now chip */
.open-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  padding: 6px 13px; border-radius: 999px; margin: 0 0 14px;
}
.open-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-chip.is-open { background: var(--tint-green); color: var(--green-700); }
.open-chip.is-closed { background: #fdeaea; color: #a03535; }

/* map embed */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.map-embed iframe { display: block; width: 100%; height: 400px; border: 0; }
.map-embed-slim { margin-top: 44px; }
.map-embed-slim iframe { height: 320px; }

/* FAQ */
.faq-list { max-width: 760px; display: grid; gap: 12px; }
.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 0; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px 22px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--blue-700); line-height: 1;
  transition: transform .25s var(--ease-out-quint); flex: none;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 18px; color: var(--muted); font-size: .95rem; }
.faq .faq-body p { margin: 0; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(720px 300px at 10% -10%, rgba(30, 134, 214, .18), transparent 62%),
    radial-gradient(620px 280px at 92% 110%, rgba(87, 166, 62, .14), transparent 62%),
    var(--navy);
  color: #b9cddf; padding: 44px 0 22px;
}
/* brand-gradient accent strip along the footer's top edge */
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-800), var(--blue-500) 55%, var(--green-500));
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; }
/* logos blend directly into the navy footer (light-on-navy knockouts) — no chip/button treatment */
.footer-logo { display: inline-block; }
.footer-logo img { width: 150px; height: auto; opacity: .92; }
.footer-brand p { margin-top: 12px; margin-bottom: 0; font-size: .92rem; max-width: 34ch; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-nav a, .footer-contact a { color: #dceaf7; font-weight: 500; }
.footer-nav a { position: relative; display: inline-block; padding: 2px 0; }
.footer-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--green-500); border-radius: 2px; transition: right .22s ease;
}
.footer-nav a:hover::after { right: 0; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { font-size: .92rem; margin-bottom: 8px; }
.footer-legal { border-top: 1px solid rgba(185, 205, 223, .18); margin-top: 26px; padding-top: 16px; font-size: .8rem; color: #8aa4bc; }
.footer-legal p { margin: 0; }

/* ---------- hero text loop ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.now-booking {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  margin: 22px 0 0; font-size: .98rem; font-weight: 500; color: rgba(235, 244, 252, .82);
}
.text-loop { display: inline-grid; text-align: left; }
.text-loop span {
  grid-area: 1 / 1; white-space: nowrap;
  font-weight: 700; color: #fff;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s var(--ease-out-quint), transform .45s var(--ease-out-quint);
}
.text-loop span.is-active { opacity: 1; transform: none; }
.text-loop span.is-leaving { opacity: 0; transform: translateY(-10px); }

/* ---------- section heading draw-in ---------- */
.section-head h2::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 2px;
  background: var(--grad-cta); margin-top: 16px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out-quint) .2s;
}
.section-head.in-view h2::after { transform: scaleX(1); }

/* ---------- DNA helix (Biote) ---------- */
.helix {
  position: absolute; top: 50%; right: 33%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 17px; z-index: 0; opacity: .5;
}
.helix span { position: relative; width: 96px; height: 6px; }
.helix span::before, .helix span::after {
  content: ""; position: absolute; top: 0; width: 7px; height: 7px; border-radius: 50%;
  animation: strand 3.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.34s);
}
.helix span::before { background: #7FB3F0; }
.helix span::after { background: #8ed36f; animation-name: strand2; animation-delay: calc(var(--i) * -0.34s - 1.7s); }
@keyframes strand { 0% { left: 0; transform: scale(.55); opacity: .5; } 50% { transform: scale(1.05); opacity: 1; } 100% { left: 89px; transform: scale(.55); opacity: .5; } }
@keyframes strand2 { 0% { left: 89px; transform: scale(1.05); opacity: 1; } 100% { left: 0; transform: scale(.55); opacity: .5; } }

/* ---------- myPrivia app section ---------- */
.app { background: #fff; border-top: 1px solid var(--line); }
.app-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.app-copy p:not(.eyebrow):not(.fineprint) { color: var(--muted); max-width: 54ch; }
.store-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 20px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--navy); color: #fff; border-radius: 14px; padding: 11px 20px 11px 16px;
  transition: transform .2s var(--ease-out-quint), box-shadow .2s ease, background .2s ease;
}
.store-btn svg { width: 26px; height: 26px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.02rem; }
.store-btn small { font-size: .68rem; font-weight: 500; opacity: .75; letter-spacing: .02em; }
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: #16345c; }

/* prevent min-content grid blowout on narrow viewports */
.app-grid > *, .contact-grid > *, .biote-panel > *, .spirited-panel > *,
.biote-hero-grid > *, .bio-row > * { min-width: 0; }

.app-media { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(310px, 82vw);
  background: #0b1526; border-radius: 42px; padding: 12px;
  box-shadow: 0 30px 70px rgba(12, 35, 64, .35), inset 0 0 0 2px rgba(255, 255, 255, .08);
  animation: phoneFloat 9s ease-in-out infinite;
}
@keyframes phoneFloat { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-9px) rotate(.4deg); } }
.phone-screen {
  border-radius: 32px; overflow: hidden; position: relative;
  aspect-ratio: 600 / 1260;
  background: #fff;
}
.app-view { position: absolute; inset: 0; }
.app-view img { width: 100%; height: 100%; display: block; }
.view-a { z-index: 1; }
.view-b { z-index: 2; opacity: 0; animation: viewB 12s ease-in-out infinite; }
/* tab-switch crossfade: Visits → (tap Messages) → Messaging → (tap Visits) → Visits */
@keyframes viewB {
  0%, 32% { opacity: 0; }
  34.5%, 84% { opacity: 1; }
  86.5%, 100% { opacity: 0; }
}
.tap {
  position: absolute; left: 29%; top: 94.4%;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(21, 95, 176, .32); border: 2px solid rgba(21, 95, 176, .5);
  transform: translate(-50%, -50%) scale(.35); opacity: 0; pointer-events: none;
}
.tap-a { animation: tapPulse 12s ease-out infinite 3.6s; }
.tap-b { left: 50%; animation: tapPulse 12s ease-out infinite 9.85s; }
@keyframes tapPulse {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.35); }
  3.5% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
  4%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
}

/* ---------- orbit: rotating services wheel (home) ---------- */
.orbit-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.orbit-grid > * { min-width: 0; }
.orbit-wrap { display: flex; justify-content: center; padding: 26px 0; }
.orbit {
  --orbit-r: clamp(132px, 17vw, 205px);
  position: relative;
  width: calc(var(--orbit-r) * 2 + 120px);
  aspect-ratio: 1;
  flex: none;
}
.orbit-ring {
  position: absolute; inset: 60px; border-radius: 50%;
  border: 1.5px dashed #b9d2e8;
}
.orbit-ring::after {
  content: ""; position: absolute; inset: 34px; border-radius: 50%;
  border: 1px solid var(--line); opacity: .7;
}
.orbit-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; width: 150px;
}
.orbit-center img { width: 74px; height: auto; }
.orbit-center span { font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--blue-800); line-height: 1.25; letter-spacing: -0.01em; }
.orbit-items { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; animation: orbitSpin 56s linear infinite; }
.orbit-items li {
  position: absolute; top: 50%; left: 50%; width: 0; height: 0;
  transform: rotate(var(--a)) translateX(var(--orbit-r)) rotate(calc(-1 * var(--a)));
}
.orbit-chip {
  position: absolute; top: 0; left: 0; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 15px; font-weight: 600; font-size: .84rem; color: var(--ink);
  box-shadow: var(--shadow-sm);
  animation: orbitSpinReverse 56s linear infinite;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.orbit-chip svg { width: 16px; height: 16px; flex: none; color: var(--blue-700); }
.orbit-chip.chip-accent { background: var(--grad-cta); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(21, 95, 176, .35); }
.orbit-chip.chip-accent svg { color: #cfe6a8; }
.orbit-wrap:hover .orbit-items, .orbit-wrap:hover .orbit-chip { animation-play-state: paused; }
.orbit:hover .orbit-chip { border-color: #c4d9ec; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitSpinReverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* ---------- editorial service rows (services page) ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 56px minmax(210px, .38fr) 1fr 28px;
  gap: 22px; align-items: center; padding: 22px 10px;
  border-bottom: 1px solid var(--line); position: relative;
  transition: background .25s ease;
}
.svc-row:hover { background: linear-gradient(90deg, var(--tint-blue), rgba(227, 239, 251, 0)); }
.svc-row .card-icon { margin: 0; width: 48px; height: 48px; }
.svc-row h3 { margin: 0; font-size: 1.06rem; }
.svc-row p { margin: 0; color: var(--muted); font-size: .93rem; }
.svc-arrow { color: #b7cbde; transition: transform .25s var(--ease-out-quint), color .25s ease; }
.svc-arrow svg { width: 20px; height: 20px; display: block; }
.svc-row:hover .svc-arrow { transform: translateX(5px); color: var(--blue-700); }

/* ---------- Biote symptom checklist ---------- */
.symptom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; list-style: none; margin: 0; padding: 0; max-width: 720px; }
.symptom-grid li {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; font-weight: 500; font-size: .95rem; color: var(--ink);
}
.symptom-grid svg { width: 20px; height: 20px; flex: none; color: var(--green-500); }
.symptom-note { margin-top: 18px; color: var(--muted); font-size: .95rem; max-width: 62ch; }

/* ---------- biote logo chips ---------- */
.nav-biote-logo { height: 17px; width: auto; display: block; }
.biote-hero-brand {
  display: inline-flex; align-items: center; background: #fff; border-radius: 12px;
  padding: 9px 14px; margin-bottom: 18px;
}
.biote-hero-brand img { height: 26px; width: auto; display: block; }

/* ---------- award badge ---------- */
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.reviews-head .section-head { margin-bottom: 0; }
.award-badge { width: clamp(110px, 12vw, 150px); height: auto; flex: none; filter: drop-shadow(0 8px 18px rgba(12, 35, 64, .18)); }
.award-line { color: var(--muted); font-size: .95rem; margin: 10px 0 0; }
.reviews .carousel { margin-top: clamp(30px, 4vh, 44px); }

/* ---------- page-hero stat chips (providers) ---------- */
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; list-style: none; padding: 0; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .88rem; color: #eaf3fc;
}
.hero-chips svg { width: 16px; height: 16px; color: #8ed36f; }

/* ---------- both-providers Biote strip ---------- */
.bio-shared {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--tint-blue); border: 1px solid #cfe2f5; border-radius: var(--radius);
  padding: 20px 26px; margin-top: 26px;
}
.bio-shared p { margin: 0; font-weight: 600; color: var(--blue-900); }
.bio-shared .bio-link { white-space: nowrap; }
.lead-cards.lead-single { grid-template-columns: minmax(0, 520px); }

/* ---------- prominent testimonial panel ---------- */
.tstm-panel {
  position: relative; background: linear-gradient(140deg, #f2f9ec, #e6f2f9 70%);
  border: 1px solid #d8e8cf; border-radius: var(--radius-lg);
  padding: clamp(30px, 4.5vw, 52px) clamp(26px, 4.5vw, 56px);
  max-width: 880px; margin-bottom: 48px;
}
.tstm-panel::before {
  content: "\201C"; position: absolute; top: -6px; left: 22px;
  font-family: Georgia, serif; font-size: 7rem; line-height: 1; color: rgba(21, 95, 176, .16);
}
.tstm-panel .stars { font-size: 1.2rem; }
.tstm-panel blockquote { margin: 0; }
.tstm-panel blockquote p {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.45; color: var(--ink); margin: 0 0 14px;
}
.tstm-source { color: var(--muted); font-size: .92rem; margin: 0; }
.tstm-source a { font-weight: 600; }

/* ---------- contact form ---------- */
.contact-form { max-width: 720px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(21, 95, 176, .14);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { display: none; background: var(--tint-green); color: var(--green-700); border: 1px solid #cfe6c2; border-radius: 12px; padding: 14px 18px; font-weight: 600; font-size: .93rem; }
.form-note.is-visible { display: block; }
.form-fineprint { color: var(--muted); font-size: .82rem; margin: 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- patient form download cards ---------- */
.form-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.form-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.form-card h3 { margin: 0; font-size: 1.02rem; }
.form-card p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.form-card .btn { align-self: flex-start; }

/* ---------- Biote popup ---------- */
.biote-pop {
  position: fixed; right: 20px; bottom: 20px; z-index: 95;
  width: min(320px, calc(100vw - 24px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px 22px 20px;
  opacity: 0; transform: translateY(18px);
  transition: opacity .4s var(--ease-out-quint), transform .4s var(--ease-out-quint);
}
.biote-pop.is-in { opacity: 1; transform: none; }
.biote-pop img { height: 24px; width: auto; margin-bottom: 10px; }
.biote-pop-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; font-size: 1.08rem; color: var(--ink); margin: 0 0 6px; }
.biote-pop p:not(.biote-pop-title) { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.biote-pop-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--muted); padding: 4px;
}
.biote-pop-close:hover { color: var(--ink); }

/* ---------- legal pages ---------- */
.legal-copy { max-width: 760px; color: var(--muted); }
.legal-copy h2 { font-size: 1.12rem; margin: 36px 0 10px; color: var(--ink); }
.legal-copy ul { padding-left: 22px; margin: 0 0 1em; }
.legal-copy li { margin-bottom: 8px; }
.legal-updated { font-size: .85rem; color: var(--muted); margin-top: 40px; font-style: italic; }

/* ---------- footer social ---------- */
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-contact .footer-social { margin: 0 0 14px; justify-content: flex-end; }
p.privia-line {
  margin: 12px 0 6px; font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #8fc1ea;
}
.footer-privia { display: inline-block; }
.footer-privia img { width: 150px; height: auto; opacity: .92; display: block; }
.legal-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.legal-links a { color: #8aa4bc; }
.legal-links a:hover { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: #1877F2; border: 1px solid transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(24, 119, 242, .4);
  transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: #3b8bf5; transform: translateY(-2px); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- reveal animations (gated on html.js so content is never hidden without JS) ---------- */
html.js .reveal, html.js .reveal-right { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease-out-quint) var(--d, 0s), transform .75s var(--ease-out-quint) var(--d, 0s); }
html.js .reveal-right { transform: translateX(36px); }
html.js .in-view { opacity: 1; transform: none; }

/* ---------- scrolly engine: pinned stages + fx library ----------
   Invariant: the base stylesheet is the finished page. --progress
   defaults to 1 (at-rest design); the engine animates it 0→1 only
   under html.has-scrolly. No JS / reduced motion = final state. */
[data-scrolly] { --progress: 1; }
html.has-scrolly [data-scrolly] { --progress: 0; }

.pin-stage > .scene { position: relative; }
html.has-scrolly [data-scrolly="pin"] .pin-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden; overflow: clip;
  display: grid;
}
html.has-scrolly .pin-stage > .scene {
  grid-area: 1 / 1; opacity: 0;
  transition: opacity .6s var(--ease-out-quint);
}

.fx-frame { overflow: hidden; overflow: clip; }
.fx-scrub-img img {
  transform: scale(calc(1.14 - .14 * var(--progress, 1))) translateY(calc((1 - var(--progress, 1)) * -16px));
  transform-origin: center;
}
html.has-scrolly .fx-clip { clip-path: inset(calc((1 - var(--progress, 1)) * 14%) round var(--radius-lg)); }
.fx-count { font-variant-numeric: tabular-nums; }
.fx-magnet { transition: transform .3s var(--ease-out-quint); }

/* serif accent for emotional beats */
.serif-accent { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -0.01em; }

/* hero scroll-away exit (home) */
html.has-scrolly .hero[data-scrolly] .hero-content {
  opacity: calc(1.55 - 1.1 * var(--progress, .5));
  transform: translateY(calc((var(--progress, .5) - .5) * -72px));
}

/* ---------- biote journey: 3-scene pinned ailment → remedy ---------- */
.journey { position: relative; background: var(--navy); }
.journey .scene { min-height: 76vh; display: flex; align-items: flex-end; color: #fff; position: relative; overflow: hidden; }
html.has-scrolly .journey .scene { min-height: 0; height: 100%; }
.journey .scene picture { position: absolute; inset: 0; display: block; }
.journey .scene img { width: 100%; height: 100%; object-fit: cover; }
html.has-scrolly .journey .scene img { transform: scale(calc(1.07 - .05 * var(--progress, 1))); transform-origin: center; }
.scene-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 35, 64, .38), rgba(12, 35, 64, .12) 42%, rgba(12, 35, 64, .68) 90%); }
.journey { --seg: clamp(0, calc((var(--progress, 1) - .66) / .34), 1); }
.scene-warm::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(62% 70% at 68% 38%, rgba(255, 189, 118, .3), transparent 72%);
  opacity: var(--seg, 1);
}
.scene-warm img { filter: saturate(calc(.72 + .48 * var(--seg, 1))) brightness(calc(.96 + .05 * var(--seg, 1))); }
.scene-copy { position: relative; z-index: 1; padding-bottom: clamp(48px, 9vh, 96px); }
.scene-kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #bcd9f4; margin: 0 0 10px;
}
.scene-beat {
  font-size: clamp(1.65rem, 3.8vw, 2.8rem); line-height: 1.2; color: #fff;
  max-width: 22ch; margin: 0 0 18px; text-wrap: balance;
  text-shadow: 0 2px 26px rgba(12, 35, 64, .5);
}
.scene-copy .btn { margin-top: 4px; }
.journey-rail {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  display: grid; gap: 11px; z-index: 2;
}
.journey-rail span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, .34); border: 1px solid rgba(255, 255, 255, .4);
  transition: background .3s ease, transform .3s var(--ease-out-quint);
}
.journey[data-step="0"] .journey-rail span:nth-child(1),
.journey[data-step="1"] .journey-rail span:nth-child(2),
.journey[data-step="2"] .journey-rail span:nth-child(3) { background: #fff; transform: scale(1.3); }
.journey[data-step="0"] .scene:nth-of-type(1),
.journey[data-step="1"] .scene:nth-of-type(2),
.journey[data-step="2"] .scene:nth-of-type(3) { opacity: 1; }

/* ---------- symptoms check themselves off on scroll ---------- */
html.has-scrolly #symptoms .symptom-grid path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .45s var(--ease-out-quint);
}
html.has-scrolly #symptoms .symptom-grid li { transition: border-color .45s ease, background .45s ease; }
#symptoms .symptom-grid[data-step="0"] li:nth-child(-n+1) path,
#symptoms .symptom-grid[data-step="1"] li:nth-child(-n+2) path,
#symptoms .symptom-grid[data-step="2"] li:nth-child(-n+3) path,
#symptoms .symptom-grid[data-step="3"] li:nth-child(-n+4) path,
#symptoms .symptom-grid[data-step="4"] li:nth-child(-n+5) path,
#symptoms .symptom-grid[data-step="5"] li:nth-child(-n+6) path,
#symptoms .symptom-grid[data-step="6"] li:nth-child(-n+7) path,
#symptoms .symptom-grid[data-step="7"] li:nth-child(-n+8) path { stroke-dashoffset: 0; }
#symptoms .symptom-grid[data-step="0"] li:nth-child(-n+1),
#symptoms .symptom-grid[data-step="1"] li:nth-child(-n+2),
#symptoms .symptom-grid[data-step="2"] li:nth-child(-n+3),
#symptoms .symptom-grid[data-step="3"] li:nth-child(-n+4),
#symptoms .symptom-grid[data-step="4"] li:nth-child(-n+5),
#symptoms .symptom-grid[data-step="5"] li:nth-child(-n+6),
#symptoms .symptom-grid[data-step="6"] li:nth-child(-n+7),
#symptoms .symptom-grid[data-step="7"] li:nth-child(-n+8) { border-color: rgba(142, 211, 111, .55); }

/* ---------- how-it-works: step chips light up, connectors draw ---------- */
html.has-scrolly .steps[data-scrolly] li::before {
  background: #b9cfe4; box-shadow: none;
  transition: background .5s ease, box-shadow .5s ease;
}
.steps[data-step="0"] li:nth-child(-n+1)::before,
.steps[data-step="1"] li:nth-child(-n+2)::before,
.steps[data-step="2"] li:nth-child(-n+3)::before { background: var(--grad-cta); box-shadow: 0 6px 16px rgba(21, 95, 176, .3); }
html.has-scrolly .steps[data-scrolly] li:not(:last-child)::after { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out-quint) .1s; }
.steps[data-step="1"] li:nth-child(1)::after,
.steps[data-step="2"] li:nth-child(1)::after,
.steps[data-step="2"] li:nth-child(2)::after { transform: scaleX(1); }

/* ---------- services: sticky visual that crossfades with the rows ---------- */
.svc-duo { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.svc-visual {
  position: sticky; top: calc(var(--header-h) + 28px); margin: 0;
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; overflow: clip;
  box-shadow: var(--shadow-lg); display: grid;
}
.svc-visual picture { grid-area: 1 / 1; display: block; }
.svc-visual img { width: 100%; height: 100%; object-fit: cover; }
html.has-scrolly .svc-visual picture { opacity: 0; transition: opacity .5s var(--ease-out-quint); }
.svc-duo[data-step="0"] .svc-visual picture:nth-of-type(1),
.svc-duo[data-step="1"] .svc-visual picture:nth-of-type(2),
.svc-duo[data-step="2"] .svc-visual picture:nth-of-type(3),
.svc-duo[data-step="3"] .svc-visual picture:nth-of-type(4),
.svc-duo[data-step="4"] .svc-visual picture:nth-of-type(5) { opacity: 1; }

/* ---------- open-now dot pulse ---------- */
.open-chip.is-open::before { animation: openPulse 2.4s ease-out infinite; }
@keyframes openPulse {
  0% { box-shadow: 0 0 0 0 rgba(87, 166, 62, .45); }
  70% { box-shadow: 0 0 0 8px rgba(87, 166, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 166, 62, 0); }
}

/* below-fold containment on non-scrolly sections */
#team, #reviews, #spirited, #app, #insurance { content-visibility: auto; contain-intrinsic-size: auto 620px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid-duo { grid-template-columns: repeat(2, minmax(0, 300px)); }
  .team-grid-support { grid-template-columns: repeat(3, 1fr); }
  .primary-nav ul { gap: 20px; }
  .phone-num { display: none; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li:not(:last-child)::after { display: none; }
}
/* nav collapses earlier than the general 940 reflow: six one-line items + actions need the room */
@media (max-width: 1180px) {
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 10px 24px 22px; display: none;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .primary-nav a { display: flex; padding: 13px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--paper); }
  .primary-nav a::after { display: none; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .phone-link {
    width: 44px; height: 44px; flex: none; justify-content: center; border-radius: 50%;
    background: var(--tint-blue); gap: 0;
  }
  .phone-link svg { width: 19px; height: 19px; }
}
@media (max-width: 940px) {
  .contact-grid, .biote-panel, .spirited-panel, .app-grid, .biote-hero .biote-hero-grid, .orbit-grid { grid-template-columns: 1fr; }
  .team-duo-layout { grid-template-columns: 1fr; }
  .team-cards { justify-self: stretch; max-width: 640px; }
  .team-card-offset { margin-top: 0; }
  .svc-duo { grid-template-columns: 1fr; }
  .svc-visual { display: none; }
  .biote-media { max-width: 400px; }
  .svc-row { grid-template-columns: 48px 1fr 28px; grid-template-rows: auto auto; padding: 18px 6px; row-gap: 4px; }
  .svc-row p { grid-column: 2 / 3; }
  .svc-row .svc-arrow { grid-row: 1; grid-column: 3; }
  .form-cards { grid-template-columns: 1fr; }
  .reviews-head { justify-content: flex-start; }
  .bio-row, .bio-row.flip { grid-template-columns: 1fr; }
  .bio-row.flip .bio-photo { order: 0; }
  .bio-photo { max-width: 320px; }
  .lead-cards { grid-template-columns: 1fr; }
  .lead-card { grid-template-columns: 100px 1fr; }
  .lead-card img { width: 100px; height: 120px; }
  .hero { min-height: 74vh; }
  .helix { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-contact .footer-social { justify-content: flex-start; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .card-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .team-grid-duo { grid-template-columns: repeat(2, 1fr); }
  .team-grid-support { grid-template-columns: repeat(2, 1fr); }
  .team-card figcaption { padding: 12px 13px 14px; }
  .team-card h3 { font-size: .98rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .symptom-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .orbit { --orbit-r: clamp(92px, 27vw, 118px); width: calc(var(--orbit-r) * 2 + 92px); }
  .orbit-ring { inset: 44px; }
  .orbit-chip { font-size: .72rem; padding: 7px 11px; gap: 6px; }
  .orbit-chip svg { width: 13px; height: 13px; }
  .orbit-center img { width: 54px; }
  .orbit-center { width: 120px; }
  .orbit-center span { font-size: .8rem; }
  .btn { padding: 14px 20px; }
  .hero-badges { gap: 14px; }
  .brand img { height: 50px; }
  .site-header.scrolled .brand img { height: 44px; }
  .header-actions { gap: 10px; }
  .brand-privia { margin-left: -18px; padding-left: 12px; }
  .brand-privia img { height: 18px; }
  .site-header .fb-link { display: none; }
  .map-embed iframe { height: 300px; }
  .team-cards::before, .team-cards::after { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal-right { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .team-card:hover .team-photo img { transform: none; }
  .card:hover .card-icon { transform: none; }
  .carousel-track { transition: none; }
  .biote-panel::before, .biote-panel::after, .biote-hero::before, .biote-hero::after { animation: none; }
  .parallax-frame img { scale: 1; }
  [data-parallax] { transform: none !important; }
  .helix span::before, .helix span::after { animation: none; }
  .phone, .app-view, .tap { animation: none; }
  .orbit-items, .orbit-chip { animation: none; }
  .biote-pop { transition: none; }
  .text-loop span { transition: none; }
  .section-head h2::after { transform: scaleX(1); transition: none; }
  [data-scrolly] { --progress: 1 !important; }
  html.has-scrolly [data-scrolly="pin"] { height: auto !important; }
  html.has-scrolly [data-scrolly="pin"] .pin-stage { position: static; height: auto; display: block; overflow: visible; }
  html.has-scrolly .pin-stage > .scene { opacity: 1; transition: none; }
  .fx-scrub-img img { transform: none; }
  html.has-scrolly .fx-clip { clip-path: none; }
  .fx-magnet { transition: none; transform: none !important; }
  html.has-scrolly .hero[data-scrolly] .hero-content { opacity: 1; transform: none; }
  html.has-scrolly .journey .scene img { transform: none; }
  .scene-warm img { filter: none; }
  .open-chip.is-open::before { animation: none; }
  html.has-scrolly #symptoms .symptom-grid path { stroke-dashoffset: 0; transition: none; }
  html.has-scrolly .steps[data-scrolly] li::before { background: var(--grad-cta); box-shadow: 0 6px 16px rgba(21, 95, 176, .3); }
  html.has-scrolly .steps[data-scrolly] li:not(:last-child)::after { transform: scaleX(1); transition: none; }
  html.has-scrolly .svc-visual picture { opacity: 1; transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ============================================================
   Aesthetics page
   ============================================================ */
/* hero v2: cutout people rise from the hero's bottom edge on the brand gradient (no photo backdrop) */
.aesth-hero { padding: clamp(56px, 9vh, 100px) 0 0; }
.aesth-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 460px at 78% 92%, rgba(87, 166, 62, .30), transparent 62%),
    radial-gradient(720px 540px at 98% 16%, rgba(30, 134, 214, .38), transparent 66%),
    radial-gradient(440px 320px at 4% 100%, rgba(30, 134, 214, .22), transparent 70%);
}
.aesth-hero-grid {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 500px);
  gap: clamp(20px, 4vw, 64px); align-items: end;
}
.aesth-hero-copy { max-width: 600px; padding-bottom: clamp(48px, 8vh, 88px); }
.aesth-hero .biote-note { color: #bcd2e6; font-size: .92rem; }
.aesth-hero-people { position: relative; }
.aesth-hero-people::before {
  content: ""; position: absolute; left: 50%; bottom: -26%; width: 132%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05) 55%, transparent 72%);
}
.aesth-hero-people::after {
  content: ""; position: absolute; right: -4%; top: -14%; width: 110px; height: 110px;
  border-radius: 50%; border: 1.5px solid rgba(188, 217, 244, .35);
}
.aesth-hero-people img {
  position: relative; z-index: 1; width: 100%; height: auto;
  filter: drop-shadow(0 24px 44px rgba(6, 18, 34, .45));
}

/* CTA band: joyful cutout pops out of the band's top edge */
.aesth-cta-figure { display: none; }
@media (min-width: 941px) {
  .aesth-cta-band { position: relative; padding-right: 320px; }
  .aesth-cta-figure {
    display: block; position: absolute; right: 44px; bottom: 0; width: 250px; pointer-events: none;
  }
  .aesth-cta-figure img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 30px rgba(6, 18, 34, .35)); }
}
.section-tight-bottom { padding-bottom: clamp(30px, 4vh, 48px); }
.section-head-center { margin-inline: auto; text-align: center; }

/* facts row */
.aesth-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.aesth-facts li {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; box-shadow: var(--shadow-sm);
}
.aesth-facts svg { width: 26px; height: 26px; color: var(--blue-700); margin-bottom: 8px; }
.aesth-facts strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }
.aesth-facts span { font-size: .88rem; color: var(--muted); }

/* before / after radiance reveal slider */
.aesth-reveal-section { background: linear-gradient(180deg, transparent, rgba(227,239,251,.5) 40%, transparent); }
.ba-slider {
  --pos: 50%; position: relative; width: min(940px, 100%); margin-inline: auto;
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #0c2340; touch-action: pan-y; isolation: isolate;
}
.ba-slider .ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ba-slider .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag {
  position: absolute; top: 16px; z-index: 3; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; padding: 6px 12px; border-radius: 999px;
  background: rgba(12,35,64,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ba-tag-before { left: 16px; }
.ba-tag-after { right: 16px; background: rgba(21,95,176,.62); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4; width: 3px;
  margin-left: -1.5px; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(12,35,64,.25);
  pointer-events: none; display: flex; align-items: center; justify-content: center;
}
.ba-handle svg {
  width: 22px; height: 22px; color: var(--blue-800); background: #fff; border-radius: 50%;
  padding: 8px; width: 40px; height: 40px; box-shadow: var(--shadow-lg);
}
.ba-range {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: ew-resize;
}
.ba-range:focus-visible { outline: 3px solid #fff; outline-offset: -3px; border-radius: var(--radius-lg); }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 44px; height: 100%; background: transparent; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 44px; height: 240px; background: transparent; border: 0; cursor: ew-resize; }
.ba-range::-moz-range-track { background: transparent; }
.ba-caption { text-align: center; font-size: .82rem; color: var(--muted); margin: 16px auto 0; max-width: 560px; }

/* treatment rows (editorial, alternating) */
.aesth-treat { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.aesth-treat + .aesth-treat { margin-top: clamp(48px, 7vh, 88px); }
.aesth-treat-alt .aesth-treat-media { order: 2; }
.aesth-treat-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.aesth-treat-copy .kicker { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); margin: 0 0 10px; }
.aesth-treat-copy h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.14; margin-bottom: .5em; }
.aesth-treat-copy > p { color: var(--muted); font-size: 1.03rem; }
.aesth-targets { list-style: none; margin: 18px 0 16px; padding: 0; display: grid; gap: 9px; }
.aesth-targets li { position: relative; padding-left: 30px; font-weight: 500; color: var(--ink); }
.aesth-targets li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--tint-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4 10-10' fill='none' stroke='%233c7d2a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.aesth-meta { font-size: .9rem; color: var(--muted); font-weight: 500; margin: 0; }

@media (max-width: 940px) {
  .aesth-hero-grid { grid-template-columns: 1fr; }
  .aesth-hero-copy { padding-bottom: 10px; }
  .aesth-hero-people { max-width: min(440px, 84%); margin-inline: auto; margin-top: 14px; }
  .aesth-hero-people::after { display: none; }
}
@media (max-width: 900px) {
  .aesth-facts { grid-template-columns: repeat(2, 1fr); }
  .aesth-treat { grid-template-columns: 1fr; gap: 24px; }
  .aesth-treat-media { order: 0 !important; max-width: 420px; }
  .aesth-treat-alt .aesth-treat-media { order: 0; }
}
@media (max-width: 520px) {
  .aesth-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .ba-handle svg { transition: transform .2s var(--ease-out-quint); }
  .ba-slider:hover .ba-handle svg { transform: scale(1.06); }
}
