/* ==========================================================
   APEX ANESTHESIA PARTNERS, PLLC — Site Styles
   ========================================================== */
:root {
  --ink: #07111f;
  --ink-2: #0c1a2e;
  --ink-3: #13253f;
  --paper: #f5f2ec;
  --paper-2: #ebe6dc;
  --white: #ffffff;
  --teal: #3de0c0;
  --teal-deep: #11a88e;
  --coral: #ff7a59;
  --sky: #8fb8ff;
  --muted: #8a97ab;
  --muted-dark: #5b6577;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(7, 17, 31, 0.12);
  --radius: 22px;
  --radius-lg: 36px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html:not(.lenis) { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
::selection { background: var(--teal); color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--ink2 { background: var(--ink-2); color: var(--paper); }
.section--paper2 { background: var(--paper-2); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  color: var(--teal-deep);
}
.section--dark .eyebrow, .section--ink2 .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--teal); }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.display {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 8.2vw, 128px); line-height: 0.95; letter-spacing: -0.035em;
}
.h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.03em;
}
.h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.italic { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.accent { color: var(--teal-deep); }
.section--dark .accent, .section--ink2 .accent, .hero .accent, .page-hero .accent { color: var(--teal); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--muted-dark); max-width: 60ch; }
.section--dark .lead, .section--ink2 .lead, .hero .lead, .page-hero .lead { color: #b7c2d3; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ink);
  display: grid; place-items: center; color: var(--paper);
  transition: clip-path 1.1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader__inner { width: min(420px, 80vw); text-align: center; }
.preloader__pulse { width: 100%; height: 80px; }
.preloader__pulse path {
  fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s var(--ease) forwards;
}
.preloader__label { margin-top: 18px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.preloader__count { font-family: var(--font-display); font-size: 56px; line-height: 1; margin-top: 6px; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999;
  border-radius: 50%; transform: translate(-50%, -50%); mix-blend-mode: difference;
}
.cursor { width: 38px; height: 38px; border: 1.5px solid #fff; transition: width .35s var(--ease), height .35s var(--ease), background .35s; }
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor.is-hover { width: 72px; height: 72px; background: #fff; }
@media (hover: none), (max-width: 900px) { .cursor, .cursor-dot { display: none; } }

/* ---------- Progress bar ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--teal), var(--sky), var(--coral)); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: transform .5s var(--ease), background .4s, padding .4s, box-shadow .4s;
  color: var(--paper);
}
.header.is-scrolled { background: rgba(7, 17, 31, 0.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); padding: 12px 0; box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-110%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.04em; }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; font-size: 15px; }
.logo__text small { font-weight: 500; font-size: 10px; letter-spacing: 0.26em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; padding: 10px 14px; font-size: 14px; font-weight: 600; border-radius: 999px;
  color: #c9d3e1; transition: color .3s, background .3s;
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); transform: translateX(-50%); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:nth-child(1) { top: 19px; } .burger span:nth-child(2) { top: 26px; }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95; background: var(--ink); color: var(--paper);
  padding: 120px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease); visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mobile-menu nav a { display: block; font-family: var(--font-display); font-size: clamp(38px, 10vw, 64px); line-height: 1.15; letter-spacing: -0.03em; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s; }
.mobile-menu nav a:hover, .mobile-menu nav a.is-active { color: var(--teal); }
body.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.mobile-menu nav a:nth-child(2) { transition-delay: .05s; } .mobile-menu nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu nav a:nth-child(4) { transition-delay: .15s; } .mobile-menu nav a:nth-child(5) { transition-delay: .2s; }
.mobile-menu nav a:nth-child(6) { transition-delay: .25s; } .mobile-menu nav a:nth-child(7) { transition-delay: .3s; }
.mobile-menu__foot { color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.mobile-menu__foot a { color: var(--paper); }

@media (max-width: 1080px) {
  .nav, .header__cta .btn--ghost { display: none; }
  .burger { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--teal); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--bg); color: var(--fg); overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--paper); transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease); z-index: -1; }
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 40px -12px rgba(61, 224, 192, .6); }
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.btn--ghost { --bg: transparent; --fg: currentColor; border: 1px solid var(--line); }
.btn--ghost::before { background: var(--teal); }
.btn--ghost:hover { color: var(--ink); }
.btn--dark { --bg: var(--ink); --fg: var(--paper); }
.btn--dark::before { background: var(--teal); }
.btn--dark:hover { color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: 13px; }

.link-arrow { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; border-bottom: 1.5px solid currentColor; padding-bottom: 4px; transition: gap .4s var(--ease), color .3s; }
.link-arrow:hover { gap: 18px; color: var(--teal-deep); }
.section--dark .link-arrow:hover { color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  padding: 140px 0 48px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero__glow { position: absolute; width: 70vw; height: 70vw; border-radius: 50%; filter: blur(110px); opacity: .35; pointer-events: none; }
.hero__glow--1 { background: var(--teal-deep); top: -30vw; right: -20vw; }
.hero__glow--2 { background: #2b4cbf; bottom: -40vw; left: -25vw; opacity: .3; }
.hero__content { position: relative; z-index: 2; }
.hero .display { margin: 22px 0 32px; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta { display: grid; gap: 14px; min-width: 240px; }
.vital { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.03); backdrop-filter: blur(10px); }
.vital__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(61,224,192,.7); animation: ping 1.6s infinite; }
.vital small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.vital strong { font-size: 15px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,224,192,.6); } 80%, 100% { box-shadow: 0 0 0 14px rgba(61,224,192,0); } }

.hero__ekg { position: relative; z-index: 2; margin-top: 56px; height: 70px; border-top: 1px solid var(--line); overflow: hidden; }
.hero__ekg svg { position: absolute; top: 0; left: 0; height: 70px; width: 200%; animation: ekg 9s linear infinite; }
.hero__ekg path { fill: none; stroke: var(--teal); stroke-width: 1.6; opacity: .8; }
@keyframes ekg { to { transform: translateX(-50%); } }
.scroll-hint { position: absolute; right: var(--gutter); bottom: 130px; z-index: 3; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.scroll-hint::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--teal), transparent); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 900px) { .scroll-hint { display: none; } }

/* Split text reveal */
.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split-line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.is-ready .split-line > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: .08s; }
.split-line:nth-child(3) > span { transition-delay: .16s; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--ink); color: var(--paper); padding: clamp(160px, 22vw, 240px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.page-hero .display { font-size: clamp(48px, 9vw, 140px); margin: 20px 0 28px; }
.page-hero__crumbs { display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.page-hero__crumbs a:hover { color: var(--teal); }
.page-hero__shape { position: absolute; right: -6vw; top: 50%; width: min(52vw, 640px); transform: translateY(-50%); opacity: .55; pointer-events: none; }
.page-hero__shape path, .page-hero__shape polygon { fill: none; stroke: var(--teal); stroke-width: .6; }

/* ---------- Marquee ---------- */
.marquee { background: var(--teal); color: var(--ink); overflow: hidden; padding: 22px 0; white-space: nowrap; position: relative; }
.marquee--tilt { transform: rotate(-2deg) scale(1.04); margin: -20px 0; z-index: 5; }
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 32s linear infinite; font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -0.02em; }
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✦"; font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(48px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-48px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
.mask-reveal { position: relative; overflow: hidden; }
.mask-reveal::before { content: ""; position: absolute; inset: 0; z-index: 5; background: var(--teal); transform-origin: top; transition: transform 1.3s var(--ease); pointer-events: none; }
.mask-reveal::after { }
.mask-reveal.is-in::before { transform: scaleY(0); }
.mask-reveal img { transform: scale(1.18); transition: transform 1.8s var(--ease), filter .8s; }
.mask-reveal.is-in img { transform: scale(1); }
.mask-reveal.is-in:hover img { transform: scale(1.05); }

/* ---------- Intro / statement ---------- */
.statement { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 62px); line-height: 1.12; letter-spacing: -0.025em; max-width: 22ch; }
.statement .w { opacity: .14; transition: opacity .4s; }
.statement .w.is-lit { opacity: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(48px, 6vw, 80px); flex-wrap: wrap; }
.section-head .h2 { margin-top: 18px; max-width: 16ch; }
.section-head .lead { max-width: 42ch; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.section--dark .stats { border-color: var(--line); }
.stat { padding: 36px 24px 8px 0; border-right: 1px solid var(--line-dark); }
.section--dark .stat { border-color: var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 24px; }
.stat__num { font-family: var(--font-display); font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -0.04em; }
.stat__num sup { font-size: .4em; color: var(--teal-deep); vertical-align: top; margin-left: 4px; }
.section--dark .stat__num sup { color: var(--teal); }
.stat__label { margin-top: 12px; font-size: 14px; color: var(--muted-dark); max-width: 22ch; }
.section--dark .stat__label { color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(3) { padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); } .section--dark .stat:nth-child(n+3) { border-color: var(--line); } }

/* ---------- Service cards ---------- */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  position: relative; display: grid; grid-template-columns: 80px 1fr 1.1fr 60px; gap: 24px; align-items: center;
  padding: 36px 0; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
}
.service-row::before { content: ""; position: absolute; inset: 0; background: var(--teal); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.service-row:hover::before { transform: scaleY(1); }
.service-row:hover { color: var(--ink); }
.service-row:hover .service-row__desc { color: var(--ink-3); }
.service-row__num { font-size: 14px; font-weight: 700; color: var(--muted); padding-left: 12px; transition: color .3s; }
.service-row:hover .service-row__num { color: var(--ink); }
.service-row__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 44px); letter-spacing: -0.02em; line-height: 1.05; transition: transform .6s var(--ease); }
.service-row:hover .service-row__title { transform: translateX(14px); }
.service-row__desc { color: var(--muted); font-size: 15px; transition: color .3s; }
.service-row__icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .6s var(--ease), background .3s; }
.service-row:hover .service-row__icon { transform: rotate(-45deg); background: var(--ink); color: var(--teal); }
.service-row__icon svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; } .service-row__num { padding-left: 0; } .service-row__icon { display: none; } }

.card {
  position: relative; padding: 36px 32px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line-dark); transition: transform .6s var(--ease), box-shadow .6s var(--ease); overflow: hidden;
  transform-style: preserve-3d;
}
.card:hover { box-shadow: 0 30px 70px -30px rgba(7,17,31,.35); }
.section--dark .card, .section--ink2 .card { background: rgba(255,255,255,.03); border-color: var(--line); }
.card__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--teal); margin-bottom: 28px; }
.section--dark .card__icon, .section--ink2 .card__icon { background: rgba(61,224,192,.12); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted-dark); font-size: 15.5px; }
.section--dark .card p, .section--ink2 .card p { color: var(--muted); }
.card__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(61,224,192,.14), transparent 40%); opacity: 0; transition: opacity .4s; }
.card:hover .card__glare { opacity: 1; }
.card ul { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted-dark); }
.section--dark .card li { color: #b7c2d3; }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--teal-deep); }

/* ---------- Care team model visual ---------- */
.model { position: relative; aspect-ratio: 1; max-width: 560px; margin: 0 auto; width: 100%; }
.model svg { width: 100%; height: 100%; overflow: visible; }
.model .orbit { fill: none; stroke: var(--line-dark); stroke-dasharray: 4 6; }
.section--dark .model .orbit { stroke: var(--line); }
.model .spin { transform-origin: 50% 50%; animation: spin 40s linear infinite; }
.model .spin-rev { transform-origin: 50% 50%; animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.model__label { font-family: var(--font-body); font-size: 13px; font-weight: 700; fill: currentColor; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline__line { position: absolute; left: 27px; top: 0; bottom: 0; width: 2px; background: var(--line-dark); }
.timeline__fill { position: absolute; left: 27px; top: 0; width: 2px; height: 0; background: linear-gradient(var(--teal), var(--teal-deep)); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding: 0 0 56px; }
.step:last-child { padding-bottom: 0; }
.step__dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-dark); display: grid; place-items: center; font-weight: 800; font-size: 15px; transition: background .5s, border-color .5s, color .5s; }
.section--paper2 .step__dot { background: var(--paper-2); }
.step.is-active .step__dot { background: var(--ink); border-color: var(--ink); color: var(--teal); }
.step__body { padding-top: 10px; }
.step__tag { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-deep); }
.step h3 { margin: 8px 0 10px; }
.step p { color: var(--muted-dark); max-width: 56ch; }

/* ---------- Sticky scroller ---------- */
.sticky-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.sticky-wrap__aside { position: sticky; top: 120px; align-self: start; }
@media (max-width: 960px) { .sticky-wrap { grid-template-columns: 1fr; } .sticky-wrap__aside { position: static; } }

/* ---------- Image-like panels (generated art) ---------- */
.art-panel {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5;
  background: radial-gradient(120% 90% at 20% 10%, #1d3b66 0%, var(--ink) 60%);
  color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; padding: 36px;
}
.art-panel--wide { aspect-ratio: 16/10; }
.art-panel__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-panel__caption { position: relative; z-index: 1; }
.art-panel__caption small { display: block; color: var(--teal); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.parallax-inner { will-change: transform; }

/* ---------- Values ---------- */
.value { padding: 32px 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 70px 1fr; gap: 20px; }
.section--dark .value { border-color: var(--line); }
.value__num { font-family: var(--font-display); font-size: 28px; color: var(--teal-deep); font-style: italic; }
.section--dark .value__num { color: var(--teal); }
.value p { color: var(--muted-dark); margin-top: 8px; }
.section--dark .value p { color: var(--muted); }

/* ---------- Team ---------- */
.member { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); color: var(--paper); aspect-ratio: 3/4; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; isolation: isolate; }
.member__art { position: absolute; inset: 0; z-index: -1; transition: transform 1s var(--ease); }
.member:hover .member__art { transform: scale(1.06); }
.member__initials { position: absolute; top: 24px; left: 28px; font-family: var(--font-display); font-size: 92px; line-height: 1; font-style: italic; color: rgba(255,255,255,.12); }
.member__role { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.member h3 { margin-top: 8px; }
.member p { color: #b7c2d3; font-size: 14px; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-dark); }
.faq__item { border-bottom: 1px solid var(--line-dark); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left; padding: 28px 0; font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; }
.faq__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); position: relative; transition: background .4s, transform .5s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--ink); color: var(--teal); transform: rotate(180deg); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 60px 28px 0; color: var(--muted-dark); max-width: 70ch; }

/* ---------- Tabs (patients) ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-dark); font-weight: 700; font-size: 14px; transition: background .4s, color .4s, border-color .4s; }
.tab.is-active { background: var(--ink); color: var(--teal); border-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .7s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 16px; padding: 20px 22px; background: var(--white); border-radius: 16px; border: 1px solid var(--line-dark); cursor: pointer; transition: background .3s, border-color .3s; user-select: none; }
.checklist li .box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--muted); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.checklist li .box svg { width: 14px; height: 14px; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); color: var(--ink); }
.checklist li.is-checked { background: rgba(61,224,192,.12); border-color: var(--teal-deep); }
.checklist li.is-checked .box { background: var(--teal); border-color: var(--teal); }
.checklist li.is-checked .box svg { opacity: 1; transform: none; }
.checklist__meter { margin-top: 22px; height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.checklist__meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-deep), var(--teal)); transition: width .6s var(--ease); }
.checklist__status { margin-top: 10px; font-size: 14px; color: var(--muted-dark); }

/* ---------- Callout / CTA ---------- */
.cta {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: var(--paper);
  padding: clamp(48px, 8vw, 110px) clamp(28px, 6vw, 90px); isolation: isolate;
}
.cta::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -15%; top: -40%; border-radius: 50%; background: var(--teal-deep); filter: blur(120px); opacity: .45; z-index: -1; }
.cta .h2 { max-width: 14ch; margin: 18px 0 32px; }
.cta__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-dark); display: grid; gap: 6px; margin-bottom: 16px; transition: transform .5s var(--ease); }
.info-card:hover { transform: translateX(8px); }
.info-card small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--teal-deep); }
.info-card strong { font-size: 18px; }
.info-card a:hover { color: var(--teal-deep); }
.form { display: grid; gap: 22px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 0 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--paper); font: inherit; font-size: 16px; outline: none; transition: border-color .3s; border-radius: 0;
}
.field select { appearance: none; cursor: pointer; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field label { position: absolute; left: 0; top: 24px; color: var(--muted); pointer-events: none; transition: transform .35s var(--ease), font-size .35s, color .35s; transform-origin: left; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select.has-value + label { transform: translateY(-22px); font-size: 12px; color: var(--teal); letter-spacing: .08em; }
.field.is-error input, .field.is-error textarea, .field.is-error select { border-color: var(--coral); }
.field__err { font-size: 12px; color: var(--coral); margin-top: 6px; min-height: 1em; }
.form__note { font-size: 13px; color: var(--muted); }
.form__success { display: none; padding: 20px; border-radius: 16px; background: rgba(61,224,192,.12); border: 1px solid var(--teal); color: var(--paper); }
.form.is-sent .form__success { display: block; animation: fadeUp .6s var(--ease); }
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) hue-rotate(180deg) contrast(.9); }

/* ---------- Careers ---------- */
.role { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line-dark); transition: padding .5s var(--ease); }
.role:hover { padding-left: 18px; }
.role h3 { font-size: clamp(22px, 2vw, 28px); }
.role span { color: var(--muted-dark); font-size: 15px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); font-size: 12px; font-weight: 700; }
@media (max-width: 860px) { .role { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(80px, 10vw, 130px) 0 32px; position: relative; overflow: hidden; }
.footer__big { font-family: var(--font-display); font-size: clamp(64px, 17vw, 270px); line-height: .85; letter-spacing: -0.06em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18); margin-top: 80px; user-select: none; }
.footer__big span { color: var(--teal); -webkit-text-stroke: 0; font-style: italic; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: #cdd6e3; transition: color .3s; }
.footer a:hover { color: var(--teal); }
.footer__tag { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.02em; max-width: 16ch; margin: 24px 0; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 40px; font-size: 13px; color: var(--muted); }
.to-top { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Misc ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 10px 16px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .3s, color .3s; }
.section--dark .tag { border-color: var(--line); }
.tag:hover { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.notice { padding: 18px 22px; border-radius: 16px; background: rgba(255,122,89,.1); border-left: 3px solid var(--coral); font-size: 14.5px; color: var(--ink-3); }
.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 56px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
.spin-slow { transform-origin: 200px 230px; animation: spin 80s linear infinite; }
.footer a.btn { color: var(--ink); }
.footer a.logo { color: var(--paper); }
@media (max-width: 560px) {
  .header__cta .btn { display: none; }
  .logo svg { width: 36px; height: 36px; }
  .logo__text { font-size: 13px; }
  .hero__meta { width: 100%; }
}

/* ==========================================================
   Photography
   ========================================================== */
.hero__photo, .page-hero__bg, .image-band__img { position: absolute; inset: 0; overflow: hidden; }
.hero__photo > div, .page-hero__bg > div, .image-band__img > div { position: absolute; inset: -12% 0; }
.hero__photo img, .page-hero__bg img, .image-band__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo img { opacity: .38; filter: saturate(.7) contrast(1.05); }
.hero__photo::after, .page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,17,31,.55) 0%, rgba(7,17,31,.35) 40%, var(--ink) 100%), linear-gradient(90deg, var(--ink) 0%, rgba(7,17,31,.2) 70%); }
.page-hero__bg img { opacity: .55; filter: saturate(.75); animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero__canvas { z-index: 1; }
.page-hero__shape { z-index: 1; }

.photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .8s; }
.photo > div[data-parallax] { position: absolute; inset: -10% 0; }
.photo:hover img { transform: scale(1.05); }
.photo figcaption { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(7,17,31,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--paper); font-size: 13px; font-weight: 700; }
.photo--wide { aspect-ratio: 16/9; }

/* Home collage */
.collage { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; gap: 24px; align-items: end; }
.photo--a { grid-column: 1 / 8; grid-row: 1 / 3; aspect-ratio: 4/5; }
.photo--b { grid-column: 8 / 13; grid-row: 1; aspect-ratio: 4/3; }
.collage__text { grid-column: 8 / 13; grid-row: 2; padding: 16px 0 24px; }
@media (max-width: 860px) {
  .collage { grid-template-columns: 1fr 1fr; }
  .photo--a { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 4/3; }
  .photo--b { grid-column: 1 / 3; grid-row: auto; }
  .collage__text { grid-column: 1 / 3; grid-row: auto; }
}

/* Full-bleed image band */
.image-band { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; padding: 120px 0 clamp(60px, 9vw, 120px); background: var(--ink); }
.image-band--short { min-height: 70vh; }
.image-band__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,17,31,.15) 0%, rgba(7,17,31,.5) 45%, rgba(7,17,31,.92) 100%); }
.image-band__content { position: relative; z-index: 1; }
.image-band .eyebrow { color: var(--teal); }
.image-band .statement { max-width: 24ch; margin-top: 18px; }
.image-band .statement .w { opacity: .3; }
.image-band .statement .w.is-lit { opacity: 1; }

/* Art panel with photo */
.art-panel--photo { background: var(--ink); }
.art-panel__img { position: absolute; inset: 0; overflow: hidden; }
.art-panel__img > div { position: absolute; inset: -10% 0; }
.art-panel__img img { width: 100%; height: 100%; object-fit: cover; }
.art-panel--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7,17,31,.92) 100%); }
.art-panel--photo .art-panel__caption { z-index: 2; }

/* Cards with photos */
.card--media { padding-top: 0; }
.card__media { margin: 0 -32px 0; height: 210px; overflow: hidden; position: relative; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,17,31,.25)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card--media:hover .card__media img { transform: scale(1.08); }
.card--media .card__icon { margin-top: -29px; position: relative; z-index: 1; border: 4px solid var(--white); box-sizing: content-box; }
.section--dark .card--media .card__icon { border-color: var(--ink); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.gallery .photo { aspect-ratio: 3/4; }
.gallery .photo:nth-child(2) { margin-top: 80px; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } .gallery .photo { aspect-ratio: 4/3; } .gallery .photo:nth-child(2) { margin-top: 0; } }

/* Team photos */
.member__art--photo { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.member:has(.member__art--photo)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,17,31,.1) 30%, rgba(7,17,31,.95) 100%); }
.member:has(.member__art--photo) .member__initials { color: rgba(255,255,255,.35); }

/* Email card */
.info-card--email { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.info-card--email small { color: var(--teal); }
.info-card--email strong { font-size: clamp(16px, 1.8vw, 21px); word-break: break-word; }
.info-card--email a:hover { color: var(--teal); }
.info-card--email span { color: var(--muted); }
.mobile-menu__foot a, .footer li a[href^="mailto"] { word-break: break-word; }
html, body { overflow-x: clip; }
/* John Bugg headshot: sits over the monogram art; removed automatically if the file is missing */
.member__photo { position: absolute; inset: 0; z-index: -1; object-position: center 20%; }
.member:has(.member__photo) .member__initials { display: none; }
