/* ============================================================
   Lead Physicians, LLC
   Design system v2 — refined, editorial, flowing
   ============================================================ */

/* --- Tokens --- */
:root {
  /* Ink / text */
  --ink:        #0A1628;
  --ink-soft:   #1E293B;
  --gray-900:   #0F172A;
  --gray-700:   #334155;
  --gray-600:   #475569;
  --gray-500:   #64748B;
  --gray-400:   #94A3B8;
  --gray-300:   #CBD5E1;
  --gray-200:   #E2E8F0;
  --gray-100:   #F1F5F9;
  --gray-50:    #F8FAFC;

  /* Blue palette */
  --blue:       #1E40AF;
  --blue-hi:    #2563EB;
  --blue-deep:  #1B3B7A;
  --blue-mid:   #3B82F6;
  --blue-light: #60A5FA;
  --blue-soft:  #93C5FD;
  --blue-pale:  #DBEAFE;
  --blue-tint:  #EFF6FF;
  --blue-mist:  #F5F9FF;

  /* Surfaces */
  --white:      #FFFFFF;
  --canvas:     #FBFCFD;
  --cream:      #FAF7F2;

  /* Layout */
  --w-max:      1240px;
  --w-narrow:   880px;
  --gutter:     clamp(20px, 4vw, 40px);

  /* Radius */
  --r-sm:       8px;
  --r:          14px;
  --r-lg:       24px;
  --r-xl:       32px;
  --pill:       9999px;

  /* Shadows */
  --shadow-1:   0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-2:   0 8px 28px rgba(15, 23, 42, 0.06);
  --shadow-3:   0 24px 60px rgba(15, 23, 42, 0.10);
  --shadow-img: 0 32px 80px rgba(15, 23, 42, 0.14);

  /* Motion */
  --ease:       cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--canvas);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--blue-hi); }

/* --- Display typography --- */
.display, h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; }
h3 { font-size: clamp(1.35rem, 1.7vw, 1.7rem); font-weight: 500; line-height: 1.2; }
h4 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; margin: 0; color: var(--ink); letter-spacing: 0; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--gray-600);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  width: 100%;
  max-width: var(--w-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(80px, 11vw, 160px) 0;
  position: relative;
}
section.tight { padding: clamp(60px, 8vw, 100px) 0; }
section.dark  { background: var(--ink); color: var(--gray-200); }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--white); }
section.dark .lead, section.dark p { color: rgba(255,255,255,0.74); }
section.dark .eyebrow { color: var(--blue-soft); }
section.dark .eyebrow::before { background: var(--blue-soft); }
section.tint  { background: var(--blue-tint); }
section.mist  { background: var(--blue-mist); }
section.cream { background: var(--cream); }
section.soft  { background: var(--gray-50); }

/* --- Sticky / floating nav --- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  padding: 22px 0;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease),
              padding .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
          backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--gray-100);
  padding: 14px 0;
}
.nav .nav-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 600; font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.nav-brand img { height: 38px; }

.nav-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 4px;
}
.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--gray-700);
  font-size: 0.93rem;
  font-weight: 500;
  border-radius: var(--pill);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--blue-pale); }
.nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--pill);
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: 0.005em;
  font-family: 'Inter', sans-serif;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary  { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--blue); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-outline  { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-blue     { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-hi); color: var(--white); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(30, 64, 175, .25); }
.btn-ghost    { color: var(--ink); padding: 12px 18px; }
.btn-ghost:hover { color: var(--blue); background: var(--blue-pale); }
.btn-ghost-light { color: var(--white); border-color: rgba(255,255,255,0.4); padding: 14px 26px; }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* --- Hero --- */
.hero {
  min-height: 92vh;
  padding: clamp(140px, 18vh, 220px) 0 clamp(60px, 8vw, 100px);
  background:
    radial-gradient(1200px 600px at 90% -5%, rgba(147,197,253,0.30), transparent 65%),
    radial-gradient(900px 500px at -10% 110%, rgba(30,64,175,0.10), transparent 65%),
    linear-gradient(180deg, var(--blue-mist) 0%, var(--canvas) 80%);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--blue);
  font-weight: 400;
}
.hero .lead { max-width: 60ch; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-video-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-img);
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.hero-video-wrap img,
.hero-video-wrap video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(10,22,40,0) 50%, rgba(10,22,40,0.30) 100%);
  pointer-events: none;
}
.video-play .play-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.video-play .play-btn::before {
  content: "";
  width: 0; height: 0;
  border-left: 22px solid var(--ink);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}
.video-label {
  position: absolute;
  left: 24px; bottom: 24px;
  background: rgba(10,22,40,0.65);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  color: var(--gray-500);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  animation: bob 2.5s infinite;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--gray-400), transparent);
}
@keyframes bob {
  0%,100% { transform: translate(-50%, 0); }
  50%     { transform: translate(-50%, 6px); }
}

/* --- Section heads --- */
.section-head {
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 760px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 18px; margin-bottom: 18px; }
.section-head .lead { max-width: 60ch; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* --- Mission band (large quote section) --- */
.mission-band {
  padding: clamp(100px, 12vw, 180px) 0;
}
.mission-band blockquote {
  margin: 0 auto;
  max-width: 22ch;
  text-align: left;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mission-band.dark blockquote { color: var(--white); }
.mission-band blockquote em {
  font-style: italic;
  color: var(--blue);
}
.mission-band cite {
  display: block;
  font-style: normal;
  margin-top: 36px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
}

/* --- Feature grid (cards) --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature-card:hover {
  border-color: var(--blue-soft);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.feature-card .num {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  color: var(--blue);
  font-weight: 400;
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 { margin-bottom: 14px; }
.feature-card p { color: var(--gray-600); margin: 0; }
.feature-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--blue);
}

/* --- Split section (image + text) --- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split.reverse > :first-child { order: 2; }
@media (min-width: 900px) { .split.reverse > :first-child { order: initial; } }

.media-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--blue-pale);
  box-shadow: var(--shadow-img);
  position: relative;
}
.media-frame img,
.media-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.media-tall {
  aspect-ratio: 4 / 5;
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}
.stat .label {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
}
@media (max-width: 699px) {
  .stat { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stat:last-child { border-bottom: none; }
}

/* --- Providers --- */
.provider {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--gray-200);
}
.provider:first-of-type { border-top: none; }
@media (min-width: 900px) {
  .provider { grid-template-columns: 1fr 1.1fr; }
  .provider.reverse > :first-child { order: 2; }
}
.provider-media {
  position: relative;
  border-radius: var(-