/* =========================================================
   Moehnke Defence School — Public & Pre-Portal Design System
   ========================================================= */

:root {
  --navy: #0A192F;
  --navy-deep: #06101f;
  --gold: #FFBF00;
  --gold-dark: #D4A000;
  --gold-soft: rgba(255, 191, 0, 0.12);
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --cream: #f7f4ef;
  --cream-dark: #ebe4d8;
  --white: #ffffff;
  /* WCAG-minded ink: never use slate-400/500 as body copy on navy */
  --ink: #f4f7fb;
  --ink-soft: #dbe4ef;
  --ink-muted: #c5d0de;
  --ink-on-cream: #1a2740;
  --muted-on-cream: #334155;
  --gold-on-cream: #7a5a00;
  --vanguard: #ef4444;
  --sentinel: #3b82f6;
  --aegis: #10b981;
  --bastion: #f59e0b;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Oswald', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --radius: 1rem;
  --radius-sm: 0.625rem;
  --shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.45);
  --header-h: 4.25rem;
  /* Wider content shell — use more of desktop / ultrawide viewports */
  --max: min(100% - 1.5rem, 90rem);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (min-width: 1280px) {
  :root { --max: min(100% - 2rem, 100rem); --header-h: 4rem; }
}
@media (min-width: 1600px) {
  :root { --max: min(100% - 2.5rem, 118rem); }
}
@media (min-width: 1920px) {
  :root { --max: min(100% - 3rem, 132rem); }
}
@media (max-width: 640px) {
  :root { --max: 100% - 1rem; --header-h: 3.75rem; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-video { display: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-soft);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
}
@media (min-width: 640px) {
  .container { width: min(100% - 1.75rem, var(--max)); }
}
@media (min-width: 1024px) {
  .container { width: min(100% - 2rem, var(--max)); }
}

/* Typography */
.display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 600;
}

.serif {
  font-family: var(--font-serif);
  font-weight: 500;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3, h4 { margin: 0; color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 10px 30px -12px rgba(255, 191, 0, 0.55);
}
.btn-gold:hover { background: var(--gold-dark); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-soft); }

.btn-navy {
  background: var(--slate-800);
  color: var(--white);
  border: 1px solid var(--slate-600);
}
.btn-navy:hover { border-color: var(--slate-400); background: var(--slate-700); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  inset: auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(6, 16, 31, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 16, 31, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 0 1 auto;
  max-width: min(100%, 18rem);
  overflow: hidden;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  background: var(--gold);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 0 24px rgba(255, 191, 0, 0.25);
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
  overflow: hidden;
}
.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--slate-300);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-700);
  display: grid;
  place-items: center;
  color: var(--slate-200);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease;
}
.menu-toggle span::before { position: absolute; top: -5px; }
.menu-toggle span::after { position: absolute; top: 5px; }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(6, 16, 31, 0.98);
  border-bottom: 1px solid var(--slate-800);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-nav.is-open { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  color: var(--slate-200);
  font-weight: 500;
}

.mobile-nav .btn { width: 100%; margin-top: 1rem; }

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .header-actions .btn-ghost.desktop-only { display: inline-flex; }
}

@media (max-width: 959px) {
  .header-actions .btn-ghost.desktop-only { display: none; }
  .header-actions .btn-gold span.hide-sm { display: none; }
}

/* Hero with video */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: flex-end;
  padding: 3rem 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 70% 20%, rgba(255, 191, 0, 0.14), transparent 55%),
    linear-gradient(135deg, #0A192F 0%, #0f172a 50%, #06101f 100%);
}

.hero-video,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video { z-index: 0; opacity: 0.55; }
.hero-poster { z-index: -1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 16, 31, 0.45) 0%, rgba(6, 16, 31, 0.55) 40%, rgba(6, 16, 31, 0.92) 100%),
    linear-gradient(90deg, rgba(6, 16, 31, 0.75) 0%, rgba(6, 16, 31, 0.25) 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 191, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 191, 0, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 50%, black, transparent);
  pointer-events: none;
}

.hero-content { max-width: 42rem; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0.75rem 0 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34rem;
  line-height: 1.65;
}

.hero-motto {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--cream);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--gold);
}

.dot.green { background: #34d399; }

/* Trust strip */
.trust-strip {
  border-block: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.65);
  padding: 1rem 0;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.trust-strip-inner strong { color: var(--gold); font-weight: 700; }

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin: 0.5rem 0 0.85rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.section-light {
  background: var(--cream);
  color: var(--slate-800);
}

.section-light h2,
.section-light h3 { color: var(--navy); }

.section-light p,
.section-light .section-head p { color: var(--muted-on-cream); }

.section-light .eyebrow { color: var(--gold-on-cream); }

.section-muted {
  background: rgba(15, 23, 42, 0.55);
  border-block: 1px solid rgba(51, 65, 85, 0.45);
}

/* Cards */
.grid-3 {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--slate-700);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.25s ease, box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 191, 0, 0.45);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-light .card {
  background: var(--white);
  border-color: var(--cream-dark);
  box-shadow: 0 10px 30px -18px rgba(10, 25, 47, 0.2);
}

.section-light .card p { color: var(--slate-600); }
.section-light .card h3 { color: var(--navy); }
.section-light .card:hover { border-color: rgba(212, 160, 0, 0.5); }

/* Feature split */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
}

.media-frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  min-height: 280px;
  background: var(--slate-900);
  box-shadow: var(--shadow);
}

.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  opacity: 0.85;
}

.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 16, 31, 0.55));
  pointer-events: none;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--slate-300);
  font-size: 0.95rem;
}

.checklist li::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  margin-top: 0.45rem;
  flex-shrink: 0;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.section-light .checklist li { color: var(--slate-700); }

/* Houses */
.house-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 800px) {
  .house-grid { grid-template-columns: repeat(4, 1fr); }
}

.house-card {
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--slate-700);
  background: rgba(15, 23, 42, 0.7);
}

.house-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.house-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--slate-400);
}

.house-card.vanguard { border-color: color-mix(in srgb, var(--vanguard) 45%, transparent); }
.house-card.vanguard h3 { color: var(--vanguard); }
.house-card.sentinel { border-color: color-mix(in srgb, var(--sentinel) 45%, transparent); }
.house-card.sentinel h3 { color: var(--sentinel); }
.house-card.aegis { border-color: color-mix(in srgb, var(--aegis) 45%, transparent); }
.house-card.aegis h3 { color: var(--aegis); }
.house-card.bastion { border-color: color-mix(in srgb, var(--bastion) 45%, transparent); }
.house-card.bastion h3 { color: var(--bastion); }

/* CTA band */
.cta-band {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255, 191, 0, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(6, 16, 31, 0.95));
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  max-width: 18ch;
  margin: 0.5rem auto 1rem;
}

.cta-band p {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  color: var(--slate-400);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(255, 191, 0, 0.1), transparent 50%),
    linear-gradient(180deg, #0A192F 0%, #06101f 100%);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.85rem;
  max-width: 16ch;
}

.page-hero p {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* Forms */
.form-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--slate-700);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}

label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-700);
  background: var(--navy-deep);
  color: var(--white);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
}

textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  padding: 1rem;
  border-radius: 0.85rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  margin-top: 1rem;
}

.form-success.is-visible { display: block; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--slate-700);
  background: var(--navy-deep);
  font-size: 0.8rem;
  color: var(--slate-300);
  cursor: pointer;
}

.chip input { width: auto; accent-color: var(--gold); }

/* FAQ */
.faq details {
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.7);
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details[open] summary { color: var(--gold); margin-bottom: 0.5rem; }

.faq p {
  margin: 0;
  color: var(--slate-400);
  font-size: 0.95rem;
}

/* Portal gateway */
.portal-hero {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem 3rem;
}

.portal-panel {
  width: min(100%, 36rem);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 191, 0, 0.25);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.portal-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0.75rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.55);
  background: #040b16;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
}

.footer-brand p {
  color: var(--ink-muted);
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
  max-width: 28rem;
  line-height: 1.55;
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  color: var(--slate-300);
  font-size: 0.9rem;
  padding: 0.3rem 0;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(51, 65, 85, 0.45);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.disclaimer {
  color: var(--ink-muted);
  font-size: 0.8rem;
  border-left: 2px solid var(--gold);
  padding-left: 0.75rem;
  margin-top: 1rem;
  max-width: 28rem;
}

.emergency {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Utility */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--ink-muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--slate-700);
  background: rgba(15, 23, 42, 0.65);
}

.step-num {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.step p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid rgba(255, 191, 0, 0.25);
  margin-left: 0.5rem;
  padding-left: 1.25rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.55rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.timeline-item strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
}

.timeline-item span {
  color: var(--slate-400);
  font-size: 0.88rem;
}

/* =========================================================
   Curriculum application (classroom vs practical by grade)
   Parent trust � Investor gauges � Practical training
   ========================================================= */

.curric-callout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0 0;
}
@media (min-width: 640px) {
  .curric-callout { grid-template-columns: 1fr 1fr; }
}
/* Grade 1 / Grade 12 highlight tiles — solid navy, high-contrast body copy */
.curric-callout-card {
  border-radius: var(--radius);
  border: 1px solid var(--slate-600);
  background: var(--navy);
  padding: 1.35rem 1.4rem;
  box-shadow: none;
}
.curric-callout-card .eyebrow {
  margin: 0;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.curric-callout-card .big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--gold);
  line-height: 1;
  margin: 0.4rem 0 0.65rem;
}
.curric-callout-card p,
.curric-callout-card p.body {
  margin: 0;
  color: #cbd5e1; /* slate-300 on navy */
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 500;
}
.curric-callout-card p strong,
.curric-callout-card p.body strong {
  color: #ffffff;
  font-weight: 700;
}
/* Same tiles on cream / light sections — max contrast for body copy */
.section-light .curric-callout-card {
  background: #ffffff;
  border: 1px solid var(--slate-300);
  box-shadow: 0 1px 0 rgba(10, 25, 47, 0.06);
}
.section-light .curric-callout-card .eyebrow {
  color: #92400e; /* dark amber — AA on white */
}
.section-light .curric-callout-card .big {
  color: var(--navy);
}
/* Body sentences after the bold % lines — solid dark charcoal for easy reading */
.section-light .curric-callout-card p,
.section-light .curric-callout-card p.body {
  color: #1e3a5f; /* deep navy-blue slate, high contrast on white */
  font-size: 1.08rem;
  line-height: 1.75;
  font-weight: 500;
}
.section-light .curric-callout-card p strong,
.section-light .curric-callout-card p.body strong {
  color: #0A192F;
  font-weight: 800;
}

.curric-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-600);
  background: var(--navy);
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.65;
  font-weight: 500;
}
.curric-note strong { color: #ffffff; }
.section-light .curric-note {
  background: #ffffff;
  border: 1px solid var(--slate-300);
  color: #1e293b;
}
.section-light .curric-note strong { color: var(--navy); }

.curric-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(6, 16, 31, 0.55);
}
.section-light .curric-table-wrap {
  background: var(--white);
  border-color: var(--cream-dark);
  box-shadow: 0 10px 30px -18px rgba(10, 25, 47, 0.18);
}

.curric-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
  font-size: 0.88rem;
}
.curric-table th,
.curric-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
  vertical-align: middle;
}
.section-light .curric-table th,
.section-light .curric-table td {
  border-bottom-color: var(--cream-dark);
}
.curric-table th {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
  font-weight: 700;
  background: rgba(15, 23, 42, 0.8);
}
.section-light .curric-table th {
  background: var(--cream);
  color: var(--slate-600);
}
.curric-table td { color: var(--slate-300); }
.section-light .curric-table td { color: var(--slate-700); }
.curric-table tr:last-child td { border-bottom: 0; }
.curric-table .grade-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.section-light .curric-table .grade-label { color: var(--navy); }
.curric-table .pct { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.curric-table .pct-class { color: #93c5fd; }
.curric-table .pct-prac { color: #6ee7b7; }
.section-light .curric-table .pct-class { color: #1d4ed8; }
.section-light .curric-table .pct-prac { color: #047857; }

.mix-bar {
  display: flex;
  height: 0.85rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(51, 65, 85, 0.6);
  min-width: 8rem;
  max-width: 14rem;
}
.mix-bar .seg-class {
  background: #2563eb; /* solid — no gradient */
}
.mix-bar .seg-prac {
  background: #059669; /* solid — no gradient */
}
.mix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--slate-300);
  font-weight: 600;
}
.section-light .mix-legend {
  color: var(--slate-700);
}
.mix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.mix-legend i {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  display: inline-block;
}
.mix-legend .leg-class { background: #3b82f6; }
.mix-legend .leg-prac { background: #10b981; }

.curric-chart {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
.curric-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
}
@media (min-width: 640px) {
  .curric-row { grid-template-columns: 4.5rem 1fr 9rem; }
}
.curric-row .g {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--slate-300);
  font-weight: 600;
}
.section-light .curric-row .g { color: var(--navy); }
.curric-row .nums {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--slate-300);
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}
.section-light .curric-row .nums {
  color: var(--slate-700);
}
.curric-row .bar {
  display: flex;
  height: 1.1rem;
  border-radius: 0.35rem;
  overflow: hidden;
  background: rgba(51, 65, 85, 0.5);
}
.curric-row .bar .c { background: #2563eb; /* solid classroom */ }
.curric-row .bar .p { background: #059669; /* solid practical */ }
.section-light .curric-row .bar {
  background: var(--slate-200);
}

.trust-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-card {
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.75);
  padding: 1.25rem;
}
.section-light .trust-card {
  background: var(--white);
  border-color: var(--cream-dark);
}
.trust-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.5rem 0 0.4rem;
}
.trust-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate-400);
  line-height: 1.55;
}
.section-light .trust-card p { color: var(--slate-600); }
.trust-card .icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
}

.investor-panel {
  border-radius: calc(var(--radius) + 0.15rem);
  border: 1px solid rgba(255, 191, 0, 0.28);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 191, 0, 0.08), transparent 55%),
    rgba(15, 23, 42, 0.9);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.investor-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .investor-grid { grid-template-columns: repeat(3, 1fr); }
}
.investor-metric {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(6, 16, 31, 0.55);
  padding: 1.1rem 1.15rem;
}
.investor-metric h4 {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
  font-weight: 700;
}
.investor-metric p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate-300);
  line-height: 1.55;
}
.investor-metric ul {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: var(--slate-400);
  font-size: 0.85rem;
  line-height: 1.55;
}
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}
.risk-badge.managed {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.risk-badge.watch {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.risk-badge.struct {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.nav-map {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .nav-map { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .nav-map { grid-template-columns: repeat(4, 1fr); }
}
.nav-map a {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.65);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.nav-map a:hover {
  border-color: rgba(255, 191, 0, 0.45);
  transform: translateY(-2px);
}
.nav-map strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.nav-map span {
  font-size: 0.82rem;
  color: var(--slate-400);
  line-height: 1.45;
}

.prac-pillars {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .prac-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .prac-pillars { grid-template-columns: repeat(3, 1fr); }
}

.stat-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
.stat-box {
  text-align: center;
  padding: 1.15rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.7);
}
.stat-box .n {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--gold);
  line-height: 1.1;
}
.stat-box .l {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--slate-400);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero h1.wide-title { max-width: 22ch; }

.anchor-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.anchor-jump a {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 191, 0, 0.3);
  color: var(--gold);
  background: rgba(255, 191, 0, 0.06);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.anchor-jump a:hover {
  background: rgba(255, 191, 0, 0.14);
  border-color: rgba(255, 191, 0, 0.5);
}

/* =========================================================
   Parent convert rail — waitlist · donate · ask
   ========================================================= */
.btn-waitlist {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 10px 30px -12px rgba(255, 191, 0, 0.55);
}
.btn-waitlist:hover { background: var(--gold-dark); }

.family-convert {
  background:
    radial-gradient(ellipse 70% 80% at 10% 0%, rgba(255, 191, 0, 0.12), transparent 50%),
    linear-gradient(180deg, #0c1b33 0%, #06101f 100%);
  border-block: 1px solid rgba(255, 191, 0, 0.18);
  padding: clamp(2.25rem, 6vw, 3.75rem) 0;
}
.family-convert h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.65rem;
  color: #fff;
}
.family-convert > .container > p,
.family-convert .lead {
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
}
.family-convert-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .family-convert-grid { grid-template-columns: repeat(3, 1fr); }
}
.family-convert-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.2rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.16);
  background: rgba(10, 25, 47, 0.72);
  min-height: 100%;
  color: inherit;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.family-convert-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 191, 0, 0.5);
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.6);
}
.family-convert-card .kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.family-convert-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin: 0;
}
.family-convert-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}
.family-convert-card .cta {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold);
}

.header-actions .btn-waitlist {
  padding: 0.7rem 1.05rem;
  font-size: 0.78rem;
}
.header-actions .btn-portal-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.7rem 1.05rem;
  font-size: 0.78rem;
}

.sticky-parent-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(4, 11, 22, 0.94);
  border-top: 1px solid rgba(255, 191, 0, 0.28);
  backdrop-filter: blur(14px);
}
.sticky-parent-cta a,
.sticky-parent-cta button {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
@media (max-width: 959px) {
  .sticky-parent-cta { display: flex; }
  body.has-sticky-parent { padding-bottom: 4.6rem; }
}

.mobile-nav .parent-links {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.mobile-nav .parent-links a {
  border-bottom: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 191, 0, 0.28);
  background: rgba(255, 191, 0, 0.08);
  color: var(--gold);
  font-weight: 700;
}

.chip input { width: auto; margin-right: 0.35rem; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.28);
  background: rgba(15, 23, 42, 0.65);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.chip:has(input:checked) {
  border-color: rgba(255, 191, 0, 0.55);
  background: rgba(255, 191, 0, 0.12);
  color: #fff;
}

@media (prefers-contrast: more) {
  body { color: #fff; }
  .text-muted, .page-hero p, .card p, .form-note, .section-head p { color: #fff !important; }
  .section-light p { color: #0a192f !important; }
}
