/* ==========================================================================
   SCROLL SMART — styles.css
   Glassmorphism over an animated gradient, tuned for low-end hardware:
   - Only transform/opacity are animated (GPU-friendly, no layout thrash)
   - backdrop-filter is limited to visible glass panels, with an opaque-ish
     fallback for browsers that don't support it
   - Scroll-snap is "proximity" on large screens only, and off entirely for
     small screens / short viewports / reduced-motion users
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Palette: deep indigo base + electric teal / violet / soft coral accents */
  --bg-0: #070b1a;
  --bg-1: #0c1230;
  --ink: #eef2ff;          /* primary text  — AA on all panels below */
  --ink-soft: #b6c0e2;     /* secondary text */
  --teal: #4de8c2;
  --violet: #8b7bff;
  --coral: #ff8e7a;
  --sky: #6cc9ff;

  /* Glass panels — dark, mostly opaque so text always passes WCAG AA */
  --glass-bg: rgba(15, 21, 48, 0.62);
  --glass-bg-solid: rgba(15, 21, 48, 0.92);   /* fallback, no backdrop-filter */
  --glass-border: rgba(160, 175, 255, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.07);

  --grad-accent: linear-gradient(100deg, var(--teal), var(--sky) 45%, var(--violet));
  --grad-text: linear-gradient(95deg, #5ff0cb, #7fd4ff 45%, #a99bff 80%, #ffb3a3);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --nav-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  /* Anchor jumps land clear of the floating nav */
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg-0);
  /* Static base gradient — the moving blobs layer on top of this */
  background-image:
    radial-gradient(120% 90% at 85% -10%, #1b1650 0%, transparent 55%),
    radial-gradient(110% 80% at -10% 100%, #0b2b3a 0%, transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.015em; }

::selection { background: rgba(77, 232, 194, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Animated background (blobs + grain) ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Soft-edged radial gradients — no filter:blur() needed, so they're cheap.
   Animated with transform only. */
.blob {
  position: absolute;
  width: 60vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
  animation: drift 30s var(--ease-out) infinite alternate;
}
.blob-a {
  top: -22vmax; left: -12vmax;
  background: radial-gradient(circle at 35% 35%, rgba(139, 123, 255, 0.5), transparent 62%);
}
.blob-b {
  top: 18%; right: -25vmax;
  background: radial-gradient(circle at 40% 40%, rgba(77, 232, 194, 0.34), transparent 62%);
  animation-duration: 38s;
  animation-delay: -8s;
}
.blob-c {
  bottom: -28vmax; left: 12%;
  background: radial-gradient(circle at 45% 40%, rgba(255, 142, 122, 0.26), transparent 62%);
  animation-duration: 34s;
  animation-delay: -16s;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, -4vmax, 0) scale(1.12); }
  100% { transform: translate3d(-5vmax, 5vmax, 0) scale(0.94); }
}

/* Barely-there film grain for a premium, non-flat feel (static, very cheap) */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. Scroll progress bar ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;
  background: rgba(255, 255, 255, 0.05);
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 0 2px 2px 0;
}

/* ---------- 5. Glass utilities ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 18px 45px -18px rgba(3, 6, 20, 0.8);
}
.glass-strong {
  background: rgba(17, 24, 56, 0.7);
  border: 1px solid rgba(160, 175, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 24px 60px -20px rgba(3, 6, 20, 0.9);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-strong {
    -webkit-backdrop-filter: blur(14px) saturate(1.35);
    backdrop-filter: blur(14px) saturate(1.35);
  }
}
/* No backdrop-filter support → raise opacity so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-strong { background: var(--glass-bg-solid); }
}

/* ---------- 6. Floating nav ---------- */
.nav-wrap {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 14px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--nav-h);
  padding: 0 10px 0 18px;
  border-radius: var(--radius-pill);
  max-width: 860px;
  width: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  margin-right: auto;
  white-space: nowrap;
}
.brand-mark { width: 30px; height: 30px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: block;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s, background-color 0.25s;
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.nav-link.active {
  color: #081022;
  background: linear-gradient(100deg, #5ff0cb, #7fd4ff);
  font-weight: 600;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background-color 0.25s, border-color 0.25s;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform 0.25s var(--ease-out); }

.btn-primary {
  color: #081022;                       /* dark ink on bright gradient = strong contrast */
  background: var(--grad-accent);
  box-shadow: 0 8px 28px -8px rgba(77, 232, 194, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 36px -8px rgba(108, 201, 255, 0.65);
}
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(160, 175, 255, 0.28);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(160, 175, 255, 0.5);
}

.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-nav { padding: 10px 18px; font-size: 0.9rem; white-space: nowrap; }

.text-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(77, 232, 194, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s, color 0.25s;
}
.text-link:hover { color: #8ef5da; text-decoration-color: currentColor; }

/* ---------- 8. Sections & layout ---------- */
main { display: block; }

.section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) 0 64px;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* Slide-deck scroll-snap — DESKTOP ONLY, and "proximity" (not mandatory) so
   sections taller than the viewport never trap the user. Disabled on small
   screens, short viewports, and for reduced-motion users (see media queries). */
@media (min-width: 900px) and (min-height: 660px) {
  html { scroll-snap-type: y proximity; }
  .section { scroll-snap-align: start; }
  .footer { scroll-snap-align: end; }
}

.kicker {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-wrap: balance;
}
.section-lead {
  max-width: 62ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 44px;
}
.section-lead strong { color: var(--ink); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 9. Hero ---------- */
.hero { text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(15, 21, 48, 0.55);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px 2px rgba(77, 232, 194, 0.55);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-sub {
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  margin-bottom: 38px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 54px;
}

/* Floating topic chips */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  animation: bob 5.5s ease-in-out infinite;
  animation-delay: var(--bob, 0s);
}
.chip svg { width: 17px; height: 17px; color: var(--teal); }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: var(--ink-soft);
  opacity: 0.8;
  animation: bob 2.8s ease-in-out infinite;
  transition: color 0.25s;
}
.scroll-hint:hover { color: var(--teal); }
.scroll-hint svg { width: 26px; height: 26px; }

/* ---------- 10. Card grids ---------- */
.card-grid { display: grid; gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(120, 220, 200, 0.38);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 22px 55px -18px rgba(3, 6, 20, 0.9),
    0 0 0 1px rgba(77, 232, 194, 0.08);
}
.card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p { color: var(--ink-soft); font-size: 0.98rem; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 15px;
  margin-bottom: 18px;
  color: var(--teal);
  background: linear-gradient(140deg, rgba(77, 232, 194, 0.16), rgba(139, 123, 255, 0.16));
  border: 1px solid rgba(77, 232, 194, 0.25);
}
.card-icon svg { width: 25px; height: 25px; }

/* ---------- 11. Presentation section ---------- */
.free-mark {
  color: #081022;
  background: linear-gradient(100deg, #5ff0cb, #7fd4ff);
  padding: 2px 10px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.present-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 26px;
}

.topic-list {
  border-radius: var(--radius-lg);
  padding: 14px 26px;
}
.topic-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  font-weight: 500;
}
.topic-list li + li { border-top: 1px solid rgba(160, 175, 255, 0.1); }
.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  color: #081022;
  background: var(--grad-accent);
}

.stats { display: grid; gap: 18px; }
.stat {
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num em { font-style: normal; font-size: 1.15rem; }
.stat-label { display: block; font-size: 0.92rem; color: var(--ink-soft); margin-top: 2px; }

/* ---------- 12. CTA banner (Presentation + Contact) ---------- */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  position: relative;
  overflow: hidden;
}
/* Gradient edge-glow along the top of the banner */
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad-accent);
  opacity: 0.8;
}
.cta-banner h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 5px; }
.cta-banner p { color: var(--ink-soft); }

/* ---------- 13. Why Us ---------- */
.why-card { position: relative; padding-top: 34px; }
.why-num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(160, 175, 255, 0.3);
}

/* ---------- 14. Testimonials ----------
   The whole section is hidden with .is-hidden until real quotes exist.
   To show it: remove "is-hidden" from <section id="testimonials"> in index.html. */
.is-hidden { display: none !important; }

.quote-card { display: flex; flex-direction: column; }
.quote-mark {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 0.6;
  margin-bottom: 16px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quote-card blockquote p { font-size: 1rem; color: var(--ink); font-style: italic; }
.quote-card figcaption {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
}
.quote-name { font-weight: 700; font-size: 0.95rem; }
.quote-role { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- 15. Founders / About ---------- */
.founders { max-width: 820px; }
.founder-card { text-align: center; }
.founder-photo {
  width: 118px; height: 118px;
  border-radius: 50%;
  margin: 4px auto 20px;
  object-fit: cover;
  border: 2px solid rgba(160, 175, 255, 0.25);
}
/* Gray placeholder circle w/ initials — swap for a real <img> later */
.founder-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #3a4160, #232a45);
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: #8f9ac0;
}
.founder-role {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 4px 0 14px;
}
.founder-bio { font-size: 0.96rem; }

/* ---------- 16. For Parents (micro-section) ---------- */
.parents {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 820px;
  margin-top: 18px;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.parents-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  color: var(--coral);
  background: rgba(255, 142, 122, 0.12);
  border: 1px solid rgba(255, 142, 122, 0.3);
}
.parents-icon svg { width: 23px; height: 23px; }
.parents h3 { font-size: 1.1rem; margin-bottom: 6px; }
.parents p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- 17. Contact ---------- */
.contact-grid { margin-bottom: 26px; }
.contact-card h3 { font-size: 1.25rem; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  transition: color 0.25s;
  word-break: break-all;
}
a.contact-line:hover { color: var(--teal); }
.contact-line svg { width: 19px; height: 19px; flex: none; color: var(--teal); }
.contact-line.muted { color: var(--ink-soft); font-weight: 500; }
.contact-line.muted svg { color: var(--ink-soft); }

/* ---------- 18. Footer ---------- */
.footer {
  border-top: 1px solid rgba(160, 175, 255, 0.12);
  background: rgba(7, 11, 26, 0.6);
  padding: 44px 0 40px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-tag { display: block; color: var(--ink-soft); font-size: 0.92rem; margin-top: 2px; }
.footer-line { color: var(--ink-soft); font-size: 0.92rem; }
.footer-meta { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- 19. Scroll-reveal animation ----------
   Elements with [data-reveal] start hidden and slide/fade in when script.js
   adds .in-view. Optional per-element stagger via inline style="--d:.15s". */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s var(--ease-out) var(--d, 0s),
    transform 0.75s var(--ease-out) var(--d, 0s);
}
[data-reveal].in-view { opacity: 1; transform: none; }

/* Stagger the cards inside any revealed grid */
.card-grid[data-reveal] > * ,
.hero-chips[data-reveal] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.card-grid[data-reveal].in-view > *,
.hero-chips[data-reveal].in-view > * {
  opacity: 1;
  transform: none;
}
.card-grid[data-reveal].in-view > *:nth-child(1), .hero-chips[data-reveal].in-view > *:nth-child(1) { transition-delay: 0.05s; }
.card-grid[data-reveal].in-view > *:nth-child(2), .hero-chips[data-reveal].in-view > *:nth-child(2) { transition-delay: 0.14s; }
.card-grid[data-reveal].in-view > *:nth-child(3), .hero-chips[data-reveal].in-view > *:nth-child(3) { transition-delay: 0.23s; }
.card-grid[data-reveal].in-view > *:nth-child(4), .hero-chips[data-reveal].in-view > *:nth-child(4) { transition-delay: 0.32s; }

/* If JS never runs, nothing should stay invisible */
.no-js [data-reveal],
.no-js .card-grid[data-reveal] > *,
.no-js .hero-chips[data-reveal] > * {
  opacity: 1;
  transform: none;
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1000px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: 1fr; }
  .present-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  /* Compact nav: brand + Book Us + hamburger; links drop down as a glass panel */
  .nav { padding-right: 8px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: #0d1230; /* fully opaque: menu text must never mix with content behind it */
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 60px -12px rgba(3, 6, 20, 0.9);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-link { padding: 12px 16px; font-size: 1rem; text-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: calc(var(--nav-h) + 36px) 0 48px; min-height: 0; } /* snap off, natural flow */
  .hero { min-height: 100svh; } /* keep the hero full-screen for impact */
  .container { width: min(1120px, 100% - 32px); }
  .card-grid.two, .card-grid.four { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: stretch; text-align: center; padding: 26px 22px; }
  .cta-banner .btn { width: 100%; }
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .parents { flex-direction: column; }
  .scroll-hint { display: none; }
  .btn-nav { display: none; } /* keep the mobile pill uncluttered; hero CTA is right below */
  .desk-only { display: none; }
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .blob, .chip, .scroll-hint, .eyebrow-dot { animation: none; }
  [data-reveal],
  .card-grid[data-reveal] > *,
  .hero-chips[data-reveal] > * {
    transition: opacity 0.4s ease;
    transform: none;
  }
  .btn, .card, .nav-link { transition-duration: 0.01s; }
  .btn-primary:hover, .btn-ghost:hover, .card:hover { transform: none; }
}
