:root {
  --bg: #f8fafe;
  --surface: #ffffff;
  --ink: #0f1c2e;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2ecf5;
  --line-faint: #eef3fa;
  --navy: #0a2240;
  --navy-mid: #0e3260;
  --navy-light: #153f78;
  --brand: #2271e2;
  --brand-deep: #1a5cc0;
  --accent: #4a9aff;
  --warm-bg: #fdfbf8;
  --cool-bg: #f1f6fc;
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1200px;
  --narrow: 800px;

  --shadow-sm: 0 2px 6px rgba(10, 30, 60, 0.04);
  --shadow-md: 0 6px 20px rgba(10, 30, 60, 0.07);
  --shadow-lg: 0 14px 40px rgba(10, 30, 60, 0.10);
  --shadow-xl: 0 24px 60px rgba(10, 30, 60, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, li, h1, h2, h3, h4, strong { overflow-wrap: anywhere; }

.container { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }
.container--narrow { width: min(var(--narrow), calc(100% - 3rem)); margin: 0 auto; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 70;
  backdrop-filter: blur(18px) saturate(1.5);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 236, 244, 0.5);
  box-shadow: var(--shadow-sm);
}

/* Dark header variant for pages with full-bleed navy hero */
.home-page .site-header {
  background: rgba(4, 21, 42, 0.85);
  border-bottom-color: rgba(255,255,255,0.06);
  backdrop-filter: blur(18px) saturate(1.3);
}
.home-page .site-header .brand-title,
.home-page .site-header .brand-sub { color: rgba(220,235,255,0.9); }
.home-page .site-header .main-nav a { color: rgba(220,235,255,0.82); }
.home-page .site-header .main-nav a:hover,
.home-page .site-header .main-nav a[aria-current='page'] { background: rgba(255,255,255,0.08); color: #fff; }
.home-page .site-header .menu-toggle { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }
.home-page .site-header .menu-toggle span,
.home-page .site-header .menu-toggle span::before,
.home-page .site-header .menu-toggle span::after { background: #fff; }

.nav-shell {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: 'Sora', sans-serif; font-weight: 700; min-width: 0;
}
.brand img {
  width: 42px; height: 42px; object-fit: contain;
  border-radius: 11px; background: #f0f5ff; padding: 0.15rem; border: 1px solid #dce8f8;
}
.brand-title { font-size: 0.92rem; line-height: 1.18; }
.brand-sub {
  display: block; font-size: 0.62rem; color: var(--ink-3);
  font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
}

.menu-toggle {
  display: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: 11px; width: 42px; height: 42px; padding: 0; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ''; display: block; width: 17px; height: 2px;
  background: var(--navy); border-radius: 2px; margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(4px); }
.menu-toggle[aria-expanded='true'] span { transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span::before { transform: translateY(0) rotate(90deg); }
.menu-toggle[aria-expanded='true'] span::after { opacity: 0; }

.main-nav { display: flex; align-items: center; gap: 0.15rem; }
.main-nav a {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; white-space: nowrap;
  padding: 0.55rem 0.65rem; border-radius: 9px;
  color: var(--ink-2); transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current='page'] { background: #edf4fd; color: var(--brand); }

/* ─── BUTTONS ─── */
.cta-pill {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.68rem 1.1rem; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; box-shadow: 0 4px 14px rgba(34, 113, 226, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: pointer;
}
.cta-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34, 113, 226, 0.3); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22); color: #dce9ff;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }

.cta-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.62rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-2); background: transparent; cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.cta-outline:hover { border-color: var(--brand); color: var(--brand); }

/* Light outline for navy sections */
.cta-outline--light {
  border-color: rgba(200,220,255,0.25);
  color: rgba(220,235,255,0.85);
}
.cta-outline--light:hover { border-color: rgba(200,220,255,0.5); color: #fff; }

/* ─── MAIN ─── */
main { padding-bottom: 0; }

/* ─── HERO (sub-pages) ─── */
.hero { padding: 2rem 0 0; }

.hero-card {
  background: linear-gradient(155deg, #04152a, var(--navy) 30%, var(--navy-mid) 65%, var(--navy-light));
  border-radius: var(--radius-lg); color: #fff;
  box-shadow: var(--shadow-xl); overflow: hidden;
}

.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 0; min-height: 400px; align-items: stretch;
}

.hero-content { padding: 2.6rem 2.5rem; min-width: 0; }

.overline {
  display: inline-flex; padding: 0.28rem 0.6rem; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.69rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.78);
}

.hero h1 {
  font-family: 'Sora', sans-serif; margin: 1rem 0 0.85rem;
  font-size: clamp(1.7rem, 2.8vw, 2.9rem); line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 800;
}

.hero p {
  margin: 0; color: rgba(220, 235, 255, 0.82);
  max-width: 50ch; line-height: 1.65; font-size: 0.95rem;
}

.hero-actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }

.hero-meta { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hero-meta span {
  display: inline-flex; border-radius: 999px; padding: 0.26rem 0.6rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.home-hero .hero-meta span {
  background: #fff; color: #0e3565; box-shadow: 0 3px 10px rgba(6, 22, 46, 0.16);
}

/* Hero image (sub-page with photo) */
.hero-image, .hero-visual { position: relative; min-height: 280px; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
.hero-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 21, 42, 0.06), rgba(4, 21, 42, 0.38));
}

/* ─── HOME HERO — FULL-BLEED ARCHITECTURAL HERO ─── */
.home-hero {
  padding: 0;
}

.home-hero .hero-card {
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(165deg, #02101f 0%, var(--navy) 25%, var(--navy-mid) 55%, var(--navy-light) 100%);
}

.home-hero .hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  min-height: 88vh;
  max-height: 820px;
}

.home-hero .hero-content {
  padding: 4.5rem 4rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
}

.home-hero h1 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); line-height: 1.04; }
.home-hero p { max-width: 46ch; font-size: 1.08rem; line-height: 1.7; }
.home-hero .home-cta-primary { padding: 0.88rem 1.4rem; font-size: 0.8rem; }
.home-hero .hero-visual { min-height: 100%; overflow: hidden; }

/* Softer gradient overlays for bento — smooth blend instead of abrupt mask */
.home-hero .hero-visual::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg,
    var(--navy) 0%,
    rgba(10,34,64,0.92) 8%,
    rgba(10,34,64,0.7) 20%,
    rgba(10,34,64,0.4) 38%,
    rgba(10,34,64,0.15) 58%,
    rgba(10,34,64,0.05) 75%,
    transparent 90%
  );
}
.home-hero .hero-visual::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(4,21,42,0.35) 0%, transparent 10%,
    transparent 90%, rgba(4,21,42,0.35) 100%
  );
}

/* Bento scrolling image grid */
.hero-bento {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.5rem; padding: 0.5rem;
  overflow: hidden; z-index: 1;
}

.bento-col { overflow: hidden; position: relative; }

.bento-col-track {
  display: flex; flex-direction: column; gap: 0.5rem;
  animation: bento-scroll 50s linear infinite;
}
.bento-col--reverse .bento-col-track {
  animation-direction: reverse;
  animation-duration: 62s;
}

.bento-col-track img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 10px; flex: 0 0 auto;
  opacity: 0.88; filter: saturate(1.05) contrast(1.02);
}

@keyframes bento-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

/* Sub-page hero (with image) */
.hero:not(.home-hero) { padding: 1.6rem 0 0; }
.hero:not(.home-hero) .hero-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); min-height: clamp(280px,28vw,340px); }
.hero:not(.home-hero) .hero-content { padding: 1.8rem 2rem 1.6rem; }
.hero:not(.home-hero) .hero-image { min-height: 100%; align-self: stretch; }
.hero:not(.home-hero) .hero-image img { height: 100%; }

/* Text-only hero (most sub-pages) */
body:not(.home-page):not(.about-page) .hero { padding: 1.2rem 0 0; }
body:not(.home-page):not(.about-page) .hero .hero-grid { grid-template-columns: 1fr; min-height: 0; }
body:not(.home-page):not(.about-page) .hero .hero-content { padding: 1.6rem 2rem 1.4rem; }

.hero-icon-list {
  margin: 0.85rem 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.32rem;
}
.hero-icon-list li {
  display: inline-flex; align-items: center; gap: 0.32rem;
  padding: 0.24rem 0.5rem; border: 1px solid rgba(200,220,255,0.24);
  border-radius: 999px; background: rgba(255,255,255,0.06);
  color: rgba(230,242,255,0.82); font-size: 0.66rem;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.hero-icon-list li::before {
  content: ""; width: 0.35rem; height: 0.35rem;
  border-radius: 999px; background: rgba(255,255,255,0.55); flex: 0 0 auto;
}

/* ─── STATS BAR — integrated with hero flow ─── */
.stats-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: none;
  padding: 2rem 0;
}

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; text-align: center;
}

.stats-grid > div {
  padding: 0.6rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stats-grid > div:last-child { border-right: 0; }

.stats-grid .stat-value {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: #fff; letter-spacing: -0.02em;
}

.stats-grid .stat-label {
  display: block;
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(180,210,250,0.55); margin-top: 0.2rem;
}

/* ─── TYPOGRAPHY ─── */
.headline-xl {
  font-family: 'Sora', sans-serif; font-size: clamp(1.5rem,2.2vw,2.1rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; margin: 0;
}
.headline-lg {
  font-family: 'Sora', sans-serif; font-size: clamp(1.25rem,1.6vw,1.55rem);
  font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; margin: 0;
}
.headline-md {
  font-family: 'Sora', sans-serif; font-size: clamp(1rem,1.2vw,1.12rem);
  font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; margin: 0;
}

.lead { font-size: 1.04rem; line-height: 1.72; color: var(--ink-2); max-width: 58ch; }
.body-text { color: var(--ink-2); line-height: 1.72; max-width: 62ch; }
.body-text + .body-text { margin-top: 0.7rem; }

.label-text {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand);
}

.sp-xs { height: 0.6rem; }
.sp-sm { height: 1rem; }
.sp-md { height: 1.8rem; }
.sp-lg { height: 2.8rem; }

.divider { border: 0; height: 1px; background: var(--line); margin: 0; }

.clean-list { margin: 0.8rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.clean-list li {
  position: relative; padding-left: 0.9rem;
  color: var(--ink-2); line-height: 1.6;
}
.clean-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brand); opacity: 0.4;
}

/* ─── SECTION SYSTEM ─── */
.editorial { padding: 4.5rem 0; }
.editorial--tight { padding: 3rem 0; }

.anchored { padding: 4rem 0; }
.anchored--soft { background: var(--cool-bg); }
.anchored--warm { background: var(--warm-bg); }

/* Navy sections — use sparingly, never adjacent to another navy section */
.anchored--navy {
  background: linear-gradient(160deg, #04152a, var(--navy) 40%, var(--navy-mid) 80%, var(--navy-light));
  color: #e0ecff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(255,255,255,0.04);
}
.anchored--navy h2, .anchored--navy h3, .anchored--navy h4, .anchored--navy strong { color: #fff; }
.anchored--navy p, .anchored--navy li, .anchored--navy .lead { color: rgba(224,236,255,0.85); }
.anchored--navy .label-text { color: #7dbdff; }
.anchored--navy .clean-list li::before { background: #6aadff; opacity: 0.6; }

/* Navy band — thin divider section for structure */
.navy-band {
  background: var(--navy);
  padding: 2.8rem 0;
  color: #e0ecff;
}
.navy-band h2, .navy-band h3, .navy-band h4, .navy-band strong { color: #fff; }
.navy-band p, .navy-band .lead { color: rgba(224,236,255,0.8); }
.navy-band .label-text { color: #7dbdff; }

/* ─── LAYOUT ─── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.two-col--wide-left { grid-template-columns: 1.3fr 0.7fr; }
.two-col--wide-right { grid-template-columns: 0.45fr 0.55fr; gap: 3rem; }
.two-col--offset > :nth-child(2) { padding-top: 2rem; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }

/* ─── CARDS ─── */
.card {
  background: var(--surface); border: 1px solid var(--line-faint);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.card h4 {
  margin: 0 0 0.5rem; font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--navy);
}
.card p { margin: 0; color: var(--ink-2); line-height: 1.6; font-size: 0.92rem; }
.card p + p { margin-top: 0.4rem; }

/* Glass cards for navy sections */
.card--glass {
  background: rgba(255,255,255,0.05); border-color: rgba(200,220,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.card--glass:hover { background: rgba(255,255,255,0.09); border-color: rgba(140,190,255,0.3); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.card--glass h4 { color: #b8d6ff; }
.card--glass p { color: rgba(224,236,255,0.82); }

/* White cards on navy — for navy section contexts */
.card--on-navy {
  background: #fff;
  border: 1px solid rgba(226,236,244,0.3);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  color: var(--ink);
}
.card--on-navy:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0,0,0,0.18); }
.card--on-navy h4 { color: var(--navy); }
.card--on-navy p { color: var(--ink-2); }

/* ─── PROFILE CARDS (associate doctors, team members) ─── */
.profile-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }

.profile-card {
  background: var(--surface); border: 1px solid var(--line-faint);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }

.profile-media { aspect-ratio: 4/3; overflow: hidden; }
.profile-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.profile-card:hover .profile-media img { transform: scale(1.04); }

.profile-body { padding: 1rem 1.2rem 1.1rem; }
.profile-body h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.profile-role { color: var(--brand); font-weight: 600; font-size: 0.82rem; margin-top: 0.12rem; }
.profile-badge {
  display: inline-flex; padding: 0.2rem 0.48rem; border-radius: 999px;
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  background: #edf4fd; color: var(--brand-deep); margin-bottom: 0.35rem;
}
.profile-body p:not(.profile-role) { color: var(--ink-2); margin: 0.5rem 0 0; line-height: 1.58; font-size: 0.88rem; }

/* ─── FOUNDER CARDS — vertical, larger, more prominent ─── */
.founders-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}

.founder-card {
  background: var(--surface); border: 1px solid var(--line-faint);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.founder-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: var(--brand); }

.founder-card .profile-media { aspect-ratio: 3/2; overflow: hidden; }
.founder-card .profile-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.founder-card:hover .profile-media img { transform: scale(1.04); }

.founder-card .profile-body {
  padding: 1.5rem 1.7rem 1.7rem;
}
.founder-card .profile-body h3 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.founder-card .profile-body .profile-role { font-size: 0.88rem; margin-top: 0.2rem; }
.founder-card .profile-body p:not(.profile-role) { font-size: 0.92rem; margin-top: 0.6rem; }

/* ─── STAFF LISTS ─── */
.staff-category { padding: 1.6rem 0; }
.staff-category + .staff-category { border-top: 1px solid var(--line-faint); }
.staff-category h3 {
  font-family: 'Sora', sans-serif; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 0.7rem;
}
.staff-names {
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem;
  list-style: none; padding: 0; margin: 0;
}
.staff-names li { font-size: 0.97rem; font-weight: 500; color: var(--ink); line-height: 1.8; }

/* Navy staff variant */
.navy-band .staff-category + .staff-category { border-top-color: rgba(255,255,255,0.08); }
.navy-band .staff-category h3 { color: rgba(180,210,250,0.55); }
.navy-band .staff-names li { color: rgba(224,236,255,0.9); }

/* ─── TESTIMONIALS — navy section with WHITE cards ─── */
.testimonials-section {
  padding: 5rem 0; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #04152a, var(--navy) 40%, var(--navy-mid) 80%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.testimonials-header { text-align: center; margin-bottom: 2.5rem; }
.testimonials-header .headline-xl { color: #fff; }
.testimonials-header p { color: rgba(200,220,255,0.7); max-width: 42ch; margin: 0.4rem auto 0; font-size: 1.02rem; }

.rating-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1rem; padding: 0.38rem 0.85rem; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem; font-weight: 600; color: #fff;
}
.rating-badge .stars { color: #f5b731; font-size: 0.92rem; letter-spacing: 1px; }

.carousel-wrap { position: relative; }
.carousel-wrap::before, .carousel-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px;
  z-index: 2; pointer-events: none;
}
.carousel-wrap::before { left: 0; background: linear-gradient(90deg, var(--navy), transparent); }
.carousel-wrap::after { right: 0; background: linear-gradient(-90deg, var(--navy), transparent); }

.carousel-track {
  display: flex; gap: 1rem; width: max-content;
  animation: testimonial-scroll 100s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
.carousel-track--reverse { animation-direction: reverse; animation-duration: 110s; }
@keyframes testimonial-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* WHITE testimonial cards on navy backdrop */
.testimonial-card {
  flex: 0 0 auto; width: 310px;
  background: #ffffff;
  border: 1px solid rgba(226,236,244,0.5);
  border-radius: 16px; padding: 1.15rem 1.2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.16);
}

.testimonial-stars { color: #f5b731; font-size: 0.82rem; letter-spacing: 2px; margin-bottom: 0.5rem; }
.testimonial-text {
  color: var(--ink-2); font-size: 0.84rem; line-height: 1.58; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.testimonial-author {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--line-faint);
}
.testimonial-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #5aa0ff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.65rem; flex: 0 0 auto;
}
.testimonial-name { font-weight: 700; font-size: 0.78rem; color: var(--ink); }
.testimonial-meta { font-size: 0.64rem; color: var(--ink-3); }

.testimonials-cta { text-align: center; margin-top: 2rem; }

/* ─── MAP ─── */
.map-frame {
  border: 1px solid var(--line-faint); border-radius: 16px;
  overflow: hidden; min-height: 340px; background: #e8f0fb;
  box-shadow: var(--shadow-md);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ─── FOOTER ─── */
.site-footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 1.8rem 0;
}
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  font-size: 0.72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--brand); }
.copyright { color: #8896a8; font-size: 0.78rem; }

/* ─── REVEAL ─── */
.reveal {
  will-change: transform, opacity;
  transition: transform 0.65s cubic-bezier(0.16,1,0.3,1), opacity 0.55s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.js-enabled .reveal { opacity: 0; transform: translateY(30px); }
.js-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1240px) { .main-nav a { font-size: 0.68rem; padding: 0.5rem 0.55rem; } }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .main-nav {
    position: absolute; top: calc(100% + 0.35rem); left: 0; right: 0; z-index: 80;
    background: rgba(255,255,255,0.99); border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow-lg); padding: 0.65rem;
    display: flex; flex-direction: column; align-items: stretch; gap: 0.25rem;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    max-height: calc(100vh - 110px); overflow-y: auto;
  }
  .main-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .main-nav a { text-align: center; }
  .nav-shell .cta-pill { display: none; }

  /* Reset home-page nav colors on mobile dropdown */
  .home-page .site-header .main-nav a { color: var(--ink-2); }
  .home-page .site-header .main-nav a:hover,
  .home-page .site-header .main-nav a[aria-current='page'] { background: #edf4fd; color: var(--brand); }

  .hero { padding-top: 1.4rem; }
  .home-hero { padding-top: 0; }
  .hero-grid, .home-hero .hero-grid { grid-template-columns: 1fr; }
  .home-hero .hero-grid { min-height: auto; max-height: none; }
  .home-hero .hero-content { padding: 2rem 1.4rem 1.2rem; }
  .home-hero .hero-visual { min-height: 300px; }
  .home-hero .hero-visual::before { background: linear-gradient(180deg, rgba(4,21,42,0.92) 0%, rgba(10,34,64,0.3) 48%, transparent 70%); }
  .hero:not(.home-hero) .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero:not(.home-hero) .hero-image { min-height: 210px; }

  .two-col, .two-col--wide-left, .two-col--wide-right, .three-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col--offset > :nth-child(2) { padding-top: 0; }
  .founders-grid { grid-template-columns: 1fr; max-width: 520px; }
  .profile-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid > div { border-right: 0; }
  .stats-grid > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }

  .editorial { padding: 3rem 0; }
  .anchored { padding: 3rem 0; }
  .navy-band { padding: 2rem 0; }
  .testimonials-section { padding: 3rem 0; }
  .testimonial-card { width: 280px; }
}

@media (max-width: 760px) {
  body { line-height: 1.62; }
  .container, .container--narrow { width: min(var(--max), calc(100% - 1.4rem)); }
  .nav-shell { min-height: 62px; }
  .brand-title { font-size: 0.84rem; }

  .hero { padding: 0.6rem 0 0; }
  .home-hero { padding: 0; }
  .hero-content { padding: 1rem; }
  .hero h1 { font-size: 1.5rem; }
  .home-hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; gap: 0.4rem; }
  .hero-actions .cta-pill, .hero-actions .btn-secondary { width: 100%; padding: 0.72rem; font-size: 0.7rem; }
  .hero-meta span { font-size: 0.58rem; }
  .hero-icon-list li { font-size: 0.6rem; padding: 0.2rem 0.44rem; }

  .editorial { padding: 2.2rem 0; }
  .editorial--tight { padding: 1.6rem 0; }
  .anchored { padding: 2.2rem 0; }
  .navy-band { padding: 1.6rem 0; }
  .testimonials-section { padding: 2.2rem 0; }

  .stats-bar { padding: 1.6rem 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .stat-value { font-size: 1.2rem; }

  .profile-grid { grid-template-columns: 1fr; }
  .founders-grid { max-width: 100%; }
  .founder-card .profile-media { aspect-ratio: 4/3; }

  .testimonial-card { width: 260px; padding: 1rem; }

  .map-frame, .map-frame iframe { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 1.4rem 0; }

  .staff-names { gap: 0.15rem 1rem; }
  .staff-names li { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bento-col-track, .carousel-track { animation: none; }
  .reveal { transition: none; }
  .js-enabled .reveal { opacity: 1; transform: none; }
}
