/* =============================================================
   MedExpert — Design System
   Dark theme, light-blue accent, Inter typography
   ============================================================= */

:root {
  /* Color tokens */
  --bg: #05080f;
  --bg-elevated: #0b111e;
  --bg-elevated-2: #0e1626;
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, rgba(90, 141, 216, 0.18), transparent 60%),
             radial-gradient(900px 600px at 10% 110%, rgba(90, 141, 216, 0.10), transparent 60%),
             #05080f;

  --border: rgba(158, 197, 255, 0.10);
  --border-strong: rgba(158, 197, 255, 0.22);
  --border-soft: rgba(158, 197, 255, 0.06);

  --text: #eef2f9;
  --text-muted: #9ba6bd;
  --text-subtle: #6b7691;

  --accent: #9ec5ff;
  --accent-bright: #c6dcff;
  --accent-deep: #5a8dd8;
  --accent-glow: rgba(158, 197, 255, 0.25);

  --pill-bg: rgba(158, 197, 255, 0.06);
  --pill-border: rgba(158, 197, 255, 0.20);

  /* Spacing */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
}

/* =============================================================
   Reset & Base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* =============================================================
   Layout primitives
   ============================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  position: relative;
}
.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }

/* Grid helpers */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* =============================================================
   Typography
   ============================================================= */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.6em;
  color: var(--text);
}
h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
h4 {
  font-size: 1rem;
  font-weight: 600;
}
p { margin: 0 0 1em; color: var(--text-muted); font-size: 1rem; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--text-muted); max-width: 60ch; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: var(--r-pill);
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  flex: 0 0 6px;
}
/* Plain variant — no pill chrome, no bullet. Used where the eyebrow sits
   above a large heading and we want flush-left alignment. */
.eyebrow--plain {
  background: transparent;
  border: 0;
  padding: 0;
}
.eyebrow--plain::before { display: none; }
.accent { color: var(--accent); }
.accent-period { color: var(--accent); }
.heading-rule {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border: none;
  margin: 0.4rem 0 1.6rem;
}

/* =============================================================
   Buttons
   ============================================================= */
/* Neutralize iOS Safari's native button chrome on all of our custom buttons.
   Without this, iPad Safari paints the OS default white pill *underneath* our
   styles and lets inline SVG icons expand to their intrinsic size. */
button.btn,
button.download-trigger,
button.video-trigger,
button.bio-toggle,
button.nav-toggle {
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
  font-family: inherit;
}
button.btn svg,
button.video-trigger svg,
button.bio-toggle svg,
button.nav-toggle svg {
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #0a1226;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset, 0 8px 30px -10px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}
.btn--small { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* =============================================================
   Header / Nav
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 8, 15, 0.72);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(158, 197, 255, 0.25));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--text);
}
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter);
    gap: 0.4rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--border-soft); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn:not(.btn--icon) { display: none; }
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero .container { position: relative; z-index: 2; }

/* Hero-scoped background video — sits behind hero content,
   scrolls off the top of the page with the hero section. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg video,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.65;
  filter: blur(0.8px);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,15,0.55) 0%, rgba(5,8,15,0.62) 50%, rgba(5,8,15,0.85) 100%),
    radial-gradient(900px 500px at 80% 30%, rgba(90,141,216,0.12), transparent 70%);
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg video { display: none; }
}

/* =============================================================
   Fixed background video — applies to body.has-bg-video (homepage)
   ============================================================= */
body.has-bg-video {
  background: var(--bg);
}
.bg-video-fixed {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.bg-video-fixed video,
.bg-video-fixed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Soften the video itself so it reads as atmosphere, not foreground action */
  opacity: 0.65;
  filter: blur(0.8px);
}
/* Dark overlay sits over the video, ensures content stays readable as it scrolls */
.bg-video-fixed::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,15,0.68) 0%, rgba(5,8,15,0.72) 50%, rgba(5,8,15,0.78) 100%),
    radial-gradient(1100px 700px at 80% 20%, rgba(90,141,216,0.10), transparent 70%);
}
@media (prefers-reduced-motion: reduce) {
  .bg-video-fixed video { display: none; }
}
/* Make sections subtly more readable on top of the video without obscuring it */
body.has-bg-video .site-header { background: rgba(5, 8, 15, 0.6); }
body.has-bg-video .site-footer { background: rgba(5, 8, 15, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { margin-top: 1.5rem; max-width: 50ch; }
.hero-subline {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 1.2rem 0 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Glowing globe illustration */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art-svg { width: 100%; height: 100%; max-width: 540px; }
.hero-art-img {
  width: 100%;
  height: 100%;
  max-width: 540px;
  object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(158, 197, 255, 0.25));
}

/* Smaller decorative globe used on the Contact page to balance the form */
.contact-art {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-art img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 50px rgba(158, 197, 255, 0.22));
}
@media (max-width: 880px) {
  .contact-art { display: none; }
}

/* =============================================================
   Headshots (used on About / leadership cards)
   ============================================================= */
.headshot {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 18px 40px -20px rgba(0,0,0,0.6);
  margin-bottom: 1.2rem;
  display: block;
}

/* =============================================================
   Expandable bio cards (Mary & Maryann on About)
   ============================================================= */
.bio-card {
  display: flex;
  flex-direction: column;
}
/* Higher-specificity selector so these win against `.card p` */
.card .bio-summary p,
.card .bio-full p {
  margin: 0 0 1rem 0;
}
.card .bio-summary p:last-child,
.card .bio-full p:last-child {
  margin-bottom: 0;
}
.bio-full {
  /* When toggled on, the parent .card simply grows to fit. */
  margin-top: 1rem;
}
.bio-toggle {
  margin-top: 0.5rem;
  align-self: flex-start;
  background: transparent;
  border: 0;
  padding: 0.25rem 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.bio-toggle:hover { color: var(--accent-strong, var(--accent)); }
.bio-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.bio-toggle .arrow {
  transition: transform 200ms ease;
}
.bio-card[data-bio-expanded="true"] .bio-toggle .arrow {
  transform: rotate(90deg);
}

/* =============================================================
   Cards
   ============================================================= */
.card {
  background: linear-gradient(180deg, rgba(158,197,255,0.025), rgba(158,197,255,0)) , var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.2vw, 1.8rem);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--border-strong);
}
.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(158, 197, 255, 0.08);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}
.card-icon svg { width: 18px; height: 18px; }
.card h3 { margin-bottom: 0.4em; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

/* HDS pill rows */
.pill-row {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pill-row:hover { border-color: var(--border-strong); background: var(--bg-elevated-2); }
.pill-row .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  border-radius: var(--r-pill);
  background: rgba(158,197,255,0.07);
  border: 1px solid var(--pill-border);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-row .tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.pill-row .text { color: var(--text); font-size: 0.95rem; font-weight: 500; }
.pill-row .arrow { margin-left: auto; color: var(--text-subtle); }
.pill-row:hover .arrow { color: var(--accent); }

/* =============================================================
   Stats
   ============================================================= */
.stat {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}
.stat-num {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.stat-num .plus { color: var(--accent); }
.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* =============================================================
   Inset card (for subordinate callouts)
   ============================================================= */
.inset {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2vw, 1.8rem);
}
.inset .eyebrow { margin-bottom: 0.8rem; }

/* =============================================================
   Testimonials
   ============================================================= */
.quote {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
}
.quote p {
  color: var(--text);
  font-size: 0.98rem;
  margin: 0;
}
.quote-by {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2540, #2d3e6b);
  flex: 0 0 28px;
}
.quote-by-meta { font-size: 0.85rem; color: var(--text-muted); }
.quote-by-meta strong { display: block; color: var(--text); font-weight: 600; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  margin-top: 4rem;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 32ch;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-compliance {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}
.footer-compliance::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* =============================================================
   Forms
   ============================================================= */
form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }
label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
input, textarea, select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated-2);
}
textarea { resize: vertical; min-height: 130px; }
.form-help { font-size: 0.82rem; color: var(--text-subtle); margin-top: 0.3rem; }
.form-success {
  display: none;
  padding: 1rem 1.2rem;
  background: rgba(158,197,255,0.08);
  border: 1px solid var(--pill-border);
  border-radius: var(--r-md);
  color: var(--accent-bright);
  font-size: 0.95rem;
}
.form-success.is-visible { display: block; }

/* Inline thank-you state that replaces the form after a successful submission */
.form-success-state {
  text-align: center;
  padding: 1.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(158, 197, 255, 0.14);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  box-shadow: 0 0 40px rgba(158, 197, 255, 0.20);
}
.form-success-icon svg { width: 26px; height: 26px; }
.form-success-state h3 { margin: 0; font-size: 1.25rem; }
.form-success-state p { color: var(--text-muted); max-width: 40ch; margin: 0; }

/* Inline error state, sits above the submit button */
.form-error-state {
  padding: 0.9rem 1.1rem;
  background: rgba(255, 120, 120, 0.08);
  border: 1px solid rgba(255, 120, 120, 0.30);
  border-radius: var(--r-md);
  color: #ffb4b4;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

/* =============================================================
   Page-specific helpers
   ============================================================= */

/* Section / page intro */
.page-intro { text-align: left; max-width: 780px; }
.page-intro h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }

/* Sticky side nav (Platform page) */
.split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
}
.side-nav {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.92rem;
}
.side-nav a {
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-md);
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}
.side-nav a:hover { color: var(--text); background: rgba(158,197,255,0.04); }
.side-nav a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(158,197,255,0.06);
}
@media (max-width: 880px) {
  .side-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-nav a { border-left: none; border-bottom: 2px solid transparent; }
  .side-nav a.is-active { border-left: none; border-bottom-color: var(--accent); }
}

.module {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--border);
}
.module:last-child { border-bottom: none; }
.module h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* Market section */
.market-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.market-row:last-child { border-bottom: none; }
.market-row .market-key { display: flex; flex-direction: column; gap: 0.6rem; }
.market-row h3 { margin: 0; font-size: 1.4rem; }
@media (max-width: 720px) {
  .market-row { grid-template-columns: 1fr; gap: 0.8rem; padding: 1.5rem 0; }
}

/* Big-stat row */
.bigstat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) { .bigstat-row { grid-template-columns: repeat(2, 1fr); } }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0a1226;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* Utilities */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

/* Tag highlight on accent words */
.gradient-text {
  background: linear-gradient(180deg, var(--accent-bright) 60%, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =============================================================
   Video lightbox & trigger card
   ============================================================= */
.video-trigger {
  display: block;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  transition: border-color 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}
.video-trigger:hover { border-color: var(--accent); transform: translateY(-2px); }
.video-trigger::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(158,197,255,0.18) 0%, rgba(158,197,255,0.05) 35%, transparent 60%),
    linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-elevated-2) 100%);
}
.video-trigger-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.5rem;
  text-align: center;
}
.video-trigger-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a1226;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset, 0 0 60px rgba(158,197,255,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-trigger:hover .video-trigger-play {
  transform: scale(1.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset, 0 0 80px rgba(158,197,255,0.65);
}
.video-trigger-play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-trigger-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.video-trigger-title { font-size: 1.05rem; color: var(--text); font-weight: 600; margin: 0; line-height: 1.3; }

.video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: clamp(1rem, 4vw, 3rem);
}
.video-lightbox.is-open { display: flex; }
.video-lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
}
.video-lightbox iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--r-lg);
  background: #000;
  box-shadow: 0 30px 90px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(158,197,255,0.15);
}
.video-lightbox-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.20);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.video-lightbox-close:hover { background: rgba(255,255,255,0.15); border-color: var(--accent); }
.video-lightbox-close svg { width: 18px; height: 18px; }
body.lightbox-open { overflow: hidden; }

/* =============================================================
   White-paper download modal (same family as the video lightbox)
   ============================================================= */
.download-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: clamp(1rem, 4vw, 3rem);
}
.download-modal.is-open { display: flex; }
.download-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: 0 30px 90px -20px rgba(0,0,0,0.8);
}
.download-modal-card h3 { font-size: 1.4rem; margin: 0.4rem 0 0.3rem; }
.download-modal-card .lede { font-size: 0.96rem; margin-bottom: 1.2rem; }
.download-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.download-modal-close:hover { background: rgba(255,255,255,0.12); border-color: var(--accent); }
.download-modal-close svg { width: 14px; height: 14px; }

/* Inline download-trigger button used inside initiative cards.
   Subtle accent-tinted at rest, fills to a solid blue button on hover. */
.download-trigger {
  /* Reset iOS Safari's native button chrome (it otherwise overrides our background
     and forces the inner SVG to its intrinsic size on iPad). */
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
  font-family: inherit;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  margin-top: 1.2rem;
  border-radius: var(--r-pill);
  background: rgba(158, 197, 255, 0.14);
  border: 1px solid rgba(158, 197, 255, 0.40);
  color: var(--accent-bright);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.download-trigger svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;        /* keep iPad Safari from letting the SVG expand */
  color: currentColor;
  transition: transform 0.2s ease;
}
.download-trigger:hover,
.download-trigger:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a1226;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(158, 197, 255, 0.45);
  outline: none;
}
.download-trigger:hover svg,
.download-trigger:focus-visible svg { transform: translateY(2px); }
