/* css/fonts.css */
/* Self-hosted fonts (automation/site-checks/selfhost_fonts.py).
   The Google Fonts stylesheet is a render-blocking third-party
   request; serving woff2 from our own origin removes it, both
   preconnects, and an extra connection. Latin subsets only. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/manrope-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/manrope-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/manrope-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/manrope-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* css/style.css */
/* ============================================================
   Black Tower Academy — command-center design system
   Purple-forward premium academy aesthetic. Cyan = technical
   accent only. Amber = founder/book credibility only.
   ============================================================ */
:root {
  /* Backgrounds */
  --bg: #05070b;
  --bg-alt: #070a12;
  --bg-deep: #0b1020;
  --bg-elevated: #101627;

  /* Brand purple */
  --purple: #5e6eb4;
  --purple-light: #7484d2;
  --purple-deep: #3f4d8e;
  --slate-purple: #6b728f;

  /* Text */
  --ink: #f8fafc;
  --ink-secondary: #cbd5e1;
  --muted: #94a3b8;

  /* Surfaces */
  --card: rgba(15, 23, 42, 0.74);
  --card-elevated: rgba(20, 31, 52, 0.86);
  --glass-purple: rgba(94, 110, 180, 0.1);
  --line: rgba(148, 163, 184, 0.16);
  --line-purple: rgba(94, 110, 180, 0.36);
  --line-purple-strong: rgba(116, 132, 210, 0.48);

  /* Secondary accents */
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --red: #ef4444;

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 999;
  background: var(--purple, #6d5ef0); color: #fff;
  padding: 10px 18px; border-radius: 6px; font-weight: 600; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* height:auto is required now that every <img> carries width/height. Those
   attributes let the browser reserve the right box before the file arrives,
   but without this the declared height is taken literally and anything in a
   narrower column is stretched. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.ink-secondary { color: var(--ink-secondary); }
:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
@media (max-width: 480px) { body { font-size: 16px; } }

/* Eyebrow — mono label used throughout */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1em;
  font-weight: 500;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--purple-light); flex-shrink: 0; }
.eyebrow.amber { color: var(--amber); }
.eyebrow.amber::before { background: var(--amber); }

h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 18px 60px rgba(94,110,180,0.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 70px rgba(94,110,180,0.42), 0 0 0 1px rgba(34,211,238,0.18); }
.btn-secondary {
  background: rgba(94,110,180,0.08);
  border-color: var(--line-purple);
  color: var(--ink);
}
.btn-secondary:hover { background: rgba(94,110,180,0.16); border-color: var(--purple-light); transform: translateY(-1px); }
.btn-sm { padding: 0.7em 1.3em; font-size: 0.88rem; }
.text-link {
  color: var(--purple-light);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}
.text-link:hover { text-decoration: underline; color: var(--cyan); }

/* ============================================================
   Header / Nav
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 76px;
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), backdrop-filter 0.25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(148, 163, 184, 0.12);
}
.nav-inner { display: flex; align-items: center; gap: 36px; width: 100%; }
.brand { display: flex; align-items: center; text-decoration: none; padding: 0; }
.brand img { height: 62px; width: auto; max-width: 240px; object-fit: contain; }
.nav-links { display: flex; gap: 30px; margin-left: 24px; }
.nav-links a {
  text-decoration: none; color: var(--ink-secondary); font-size: 0.92rem; font-weight: 500;
  transition: color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta-wrap { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 44px; height: 44px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.mobile-menu {
  position: fixed; inset: 76px 0 0 0; z-index: 190;
  background: rgba(5,7,11,0.97); backdrop-filter: blur(16px);
  padding: 32px 28px; display: none; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  color: var(--ink); text-decoration: none; font-size: 1.15rem; font-weight: 600;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 20px; justify-content: center; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta-wrap .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .brand img { height: 52px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 150px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(94,110,180,0.24), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(34,211,238,0.06), transparent 40%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-copy .lede {
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  color: var(--ink-secondary);
  max-width: 54ch;
  margin-bottom: 0.8em;
}
.hero-copy .support-line { color: var(--muted); font-size: 0.98rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 1.8em 0 1.4em; align-items: center; }
@media (max-width: 980px) {
  .hero { padding-top: 120px; }
}
@keyframes radar-spin { to { transform: rotate(360deg); } }
@keyframes radar-blip {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94,110,180,0.45); }
  50% { box-shadow: 0 0 0 9px rgba(94,110,180,0); }
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Hero bottom credibility strip */
.hero-strip {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.hero-strip .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 22px 28px;
}
.hero-strip-item {
  font-size: 0.88rem; color: var(--ink-secondary);
  display: flex; align-items: center; gap: 10px;
}
.hero-strip-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--purple-light); flex-shrink: 0; }
@media (max-width: 900px) { .hero-strip .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hero-strip .wrap { grid-template-columns: 1fr; } }

/* ============================================================
   Section base
   ============================================================ */
.section { padding: clamp(64px, 9vh, 120px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 3.2em; }
.section-head p.lede { color: var(--ink-secondary); font-size: 1.08rem; margin-top: 0.6em; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   CompTIA-aligned cards
   ============================================================ */
.comptia-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.comptia-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.comptia-card:hover { border-color: var(--line-purple); transform: translateY(-3px); }
.comptia-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--cyan); border: 1px solid rgba(34,211,238,0.3); background: rgba(34,211,238,0.06);
  padding: 0.35em 0.7em; border-radius: 999px; margin-bottom: 1em;
}
.comptia-card h3 { font-size: 1.08rem; margin-bottom: 0.5em; }
.comptia-card p { font-size: 0.9rem; color: var(--ink-secondary); }
.comptia-card .best-for { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.8em; margin-top: 0.8em; }
.comptia-card .best-for strong { color: var(--ink-secondary); font-weight: 600; }
.comptia-note { margin-top: 1.8em; font-size: 0.86rem; color: var(--muted); max-width: 62ch; }
@media (max-width: 980px) { .comptia-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .comptia-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Custom Delivery — asymmetric 2 col
   ============================================================ */
.delivery-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: start; }
.process-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 20px; }
.process-steps li { display: flex; gap: 16px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-secondary); }
.process-steps li::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--purple-light);
  width: 30px; height: 30px; border: 1px solid var(--line-purple); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
@media (max-width: 900px) { .delivery-grid { grid-template-columns: 1fr; } }
.book-features { list-style: none; margin: 1.6em 0; padding: 0; display: grid; gap: 10px; }
.book-features li { font-size: 0.95rem; color: var(--ink-secondary); padding-left: 22px; position: relative; }
.book-features li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 1px; background: var(--amber); }
.book-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.testimonial-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.testimonial-card:hover { border-color: var(--line-purple); transform: translateY(-2px); }
.testimonial-card p.quote { font-size: 0.94rem; color: var(--ink-secondary); margin: 0; flex-grow: 1; }
.testimonial-card .t-name { font-weight: 600; font-size: 0.92rem; }
.testimonial-card .t-role { font-size: 0.8rem; color: var(--muted); }
.testimonial-card .t-source {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--slate-purple); margin-top: 2px;
}
/* Force one card per row on phones so cards never squish into multiple columns */
@media (max-width: 640px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Graduate Destinations
   ============================================================ */
.grad-frame {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(94,110,180,0.28);
  box-shadow: 0 32px 120px rgba(94,110,180,0.16);
  padding: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(94,110,180,0.14), transparent 60%), var(--bg-deep);
  max-width: 952px; /* image is natively 912px wide — never upscale it (was pixelating at 1080) */
  margin: 0 auto;
}
.grad-frame img { border-radius: 12px; width: 100%; height: auto; max-width: 912px; margin: 0 auto; }
.grad-disclaimer { max-width: 720px; margin: 1.6em auto 0; text-align: center; font-size: 0.82rem; color: var(--muted); }
.grad-head { text-align: center; max-width: 640px; margin: 0 auto 2.4em; }
.grad-head .eyebrow { justify-content: center; }
.grad-head .eyebrow::before { display: none; }

/* ============================================================
   Values / Standard of Instruction
   ============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; border-top: 2px solid var(--purple-light);
}
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.value-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Who We Train
   ============================================================ */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience-grid .audience-card:nth-child(4),
.audience-grid .audience-card:nth-child(5) { grid-column: span 1; }
.audience-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.audience-card h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.audience-card p { font-size: 0.9rem; color: var(--ink-secondary); margin: 0; }
@media (max-width: 980px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .audience-grid { grid-template-columns: 1fr; } }
.contact-detail { display: flex; flex-direction: column; gap: 4px; margin-bottom: 1.4em; }
.contact-detail .cd-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-detail a { font-size: 1.05rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.contact-detail a:hover { color: var(--purple-light); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #030408;
  border-top: 1px solid var(--line);
  padding: 60px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
  background-image: linear-gradient(rgba(148,163,184,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000 20%, transparent 80%);
}
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; position: relative; z-index: 1; margin-bottom: 40px; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; color: var(--muted); max-width: 38ch; }
.footer-col h2 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1em; }
.footer-col a { display: block; color: var(--ink-secondary); text-decoration: none; font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--purple-light); }

/* Touch targets. Footer links measured 21-24px tall at 375px; a thumb needs
   about 44px. Scoped to coarse pointers so the desktop footer is untouched, and
   the existing 10px margin is absorbed into the padding so the column height
   barely moves. */
@media (pointer: coarse) {
  .footer-col a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0;
  }
  .footer-legal a,
  .footer-atlas a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px; position: relative; z-index: 1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: var(--slate-purple);
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }

/* css/pages.css */
/* ============================================================
   Black Tower Academy — multi-page components
   Builds on css/style.css tokens. Interior pages, path cards,
   program grids, method row, forms, CTA bands.
   ============================================================ */

/* Active nav state */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  border-radius: 2px;
}
.mobile-menu a.active { color: var(--purple-light); }

/* Inline single-row nav (SANS-style): one clean line, no wrapping */
.nav .wrap { max-width: 1340px; }
.nav-inner { gap: 22px; }
.nav-links { gap: 22px; margin-left: 20px; }
.nav-links a { white-space: nowrap; font-size: 0.9rem; }
.nav-cta-wrap { gap: 10px; }
.nav-cta-wrap .btn-sm { padding: 0.62em 1.05em; font-size: 0.84rem; white-space: nowrap; }

@media (max-width: 1240px) {
  .nav-links { display: none; }
  .nav-cta-wrap .btn { display: none; }
  .nav-toggle { display: flex; }
  .brand img { height: 52px; }
}
@media (min-width: 1241px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ============================================================
   Interior page hero
   ============================================================ */
.page-hero {
  position: relative;
  padding: 150px 0 68px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 10%, rgba(94,110,180,0.22), transparent 46%),
    radial-gradient(circle at 6% 90%, rgba(34,211,238,0.05), transparent 40%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 70% at 60% 20%, #000 30%, transparent 78%);
}
.page-hero .wrap { position: relative; z-index: 1; max-width: 900px; }
.page-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); margin-bottom: 0.5em; }
.page-hero .lede { font-size: clamp(1.06rem, 1.6vw, 1.24rem); color: var(--ink-secondary); max-width: 62ch; }
.page-hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.8em; }

/* Decorative background overlays must never intercept clicks (cross-browser
   safety — masked/positioned pseudo-elements can capture pointer events). */
.hero::before, .page-hero::before, .footer::before, .cta-band::before,
.hero-strip, .grad-frame::before { pointer-events: none; }
/* Guarantee interactive hero content sits above any overlay in every engine */
.hero-inner, .hero-inner .hero-copy, .hero-actions, .page-hero .wrap { position: relative; z-index: 2; }
.hero-actions a, .page-hero .hero-actions a { position: relative; z-index: 2; }
.hero-inner .hero-copy { max-width: 100%; }
.hero-inner .lede { max-width: 60ch; }
.hero-inner .support-line { max-width: 58ch; }
.hero-inner .hero-actions { margin: 2em 0 1.6em; align-items: center; }

/* Centered section head helper */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* ============================================================
   Path / choice cards (Home "Choose Your Path" + Contact)
   ============================================================ */
.path-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-card {
  position: relative;
  background: linear-gradient(180deg, var(--card-elevated), rgba(11,16,32,0.9));
  border: 1px solid var(--line-purple);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.38);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  overflow: hidden;
}
.path-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light), var(--cyan));
  opacity: 0; transition: opacity 0.2s var(--ease);
}
.path-card:hover { transform: translateY(-4px); border-color: var(--line-purple-strong); box-shadow: 0 28px 100px rgba(94,110,180,0.2); }
.path-card:hover::before { opacity: 1; }
.path-card .pc-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 1em; }
.path-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 0.5em; }
.path-card p { color: var(--ink-secondary); font-size: 0.98rem; flex-grow: 1; margin-bottom: 1.4em; }
.path-card .pc-go { color: var(--purple-light); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.path-card:hover .pc-go { color: var(--cyan); }
@media (max-width: 780px) { .path-cards { grid-template-columns: 1fr; } .path-card { padding: 30px; } }

/* ============================================================
   Program grid (Home preview + Programs page areas)
   ============================================================ */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.program-card:hover { transform: translateY(-3px); border-color: var(--line-purple); box-shadow: 0 24px 80px rgba(94,110,180,0.14); }
.program-card .pg-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-light); display: block; margin-bottom: 0.9em; }
.program-card h3 { font-size: 1.12rem; margin-bottom: 0.5em; }
.program-card p { font-size: 0.92rem; color: var(--ink-secondary); margin: 0; }
@media (max-width: 900px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .program-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Method row — 5 steps (Explain / Demonstrate / Practice / Coach / Assess)
   ============================================================ */
.method-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.method-step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 2px solid var(--purple-light);
  padding: 24px 20px;
}
.method-step .m-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--purple-light); letter-spacing: 0.1em; display: block; margin-bottom: 0.8em; }
.method-step h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.method-step p { font-size: 0.86rem; color: var(--muted); margin: 0; }
@media (max-width: 980px) { .method-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .method-row { grid-template-columns: 1fr; } }

/* ============================================================
   Steps list (numbered "How training works" / custom approach)
   Reuses .process-steps from style.css; add a boxed variant
   ============================================================ */
.steps-panel {
  background: var(--card-elevated); border: 1px solid var(--line-purple); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: 0 32px 120px rgba(94,110,180,0.14);
}

/* ============================================================
   CTA band (final CTAs across pages)
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(94,110,180,0.22), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(34,211,238,0.06), transparent 45%),
    var(--bg-deep);
  border: 1px solid var(--line-purple);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); max-width: 20ch; margin: 0 auto 0.5em; }
.cta-band p { color: var(--ink-secondary); max-width: 56ch; margin: 0 auto 1.6em; }
.cta-band .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   Mini proof (home) — testimonials + grad preview split
   ============================================================ */
.proof-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.proof-quotes { display: grid; gap: 16px; }
.grad-preview {
  border: 1px solid rgba(94,110,180,0.28); border-radius: var(--radius-lg);
  padding: 16px; background: radial-gradient(circle at 50% 0%, rgba(94,110,180,0.12), transparent 60%), var(--bg-deep);
  box-shadow: 0 24px 80px rgba(94,110,180,0.12);
}
.grad-preview img { border-radius: 10px; }
.grad-preview .gp-cap { font-size: 0.78rem; color: var(--muted); margin: 0.9em 0 0; }
@media (max-width: 900px) { .proof-split { grid-template-columns: 1fr; } }
.form-panel > .eyebrow { margin-bottom: 0.6em; }

/* Anchor offset so sticky header doesn't cover jumped-to sections */
[id] { scroll-margin-top: 96px; }

/* Founder highlights list (About) */
.highlight-list { list-style: none; margin: 1.4em 0 0; padding: 0; display: grid; gap: 10px; }
.highlight-list li { font-size: 0.94rem; color: var(--ink-secondary); padding-left: 22px; position: relative; }
.highlight-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* Two-column intro (About founder) */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split-2 { grid-template-columns: 1fr; } }

/* Footer: 4 columns (brand + 3 link groups) */
.footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }
.footer-brand p a { color: var(--ink-secondary); text-decoration: none; }
.footer-brand p a:hover { color: var(--purple-light); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ============================================================
   Imagery pass (2026-07) — media frames, hero media, image cards
   ============================================================ */

/* Reusable framed image with soft purple glow */
.media-glow { position: relative; }
.media-glow::before {
  content: ""; position: absolute; z-index: 0;
  inset: 10% -6% -8% 6%;
  background: radial-gradient(circle at 60% 55%, rgba(94,110,180,0.38), rgba(94,110,180,0.06) 46%, transparent 72%);
  filter: blur(22px); pointer-events: none;
}
.media-frame {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-purple);
  box-shadow: 0 32px 120px rgba(94,110,180,0.22);
  background: var(--bg-deep);
}
.media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Chips overlaid on the bottom of an image */
.media-chips {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 44px 16px 16px;
  background: linear-gradient(to top, rgba(5,7,11,0.86), rgba(5,7,11,0.25) 60%, transparent);
}
.media-chip {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: rgba(11,16,32,0.7); backdrop-filter: blur(6px);
  border: 1px solid var(--line-purple); border-radius: 999px; padding: 0.45em 0.85em;
}

/* Two-column hero with media */
.hero-grid2 { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; }
.hero-grid2 .hero-copy { max-width: 100%; }
.hero-media { aspect-ratio: 16 / 11; }
@media (max-width: 980px) {
  .hero-grid2 { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { aspect-ratio: 16 / 10; }
}

/* Full-width banner image */
.banner-frame {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-purple);
  box-shadow: 0 32px 120px rgba(94,110,180,0.18);
}
.banner-frame img { display: block; width: 100%; height: auto; }
/* The 21:6 cinematic crop was an inline style, so it could not adapt. At 375px
   it left a 90px strip where the room and the instructor were unreadable -- the
   whole point of the photograph. Wider screens keep the banner; phones get a
   shape you can actually see into. */
.banner-frame { aspect-ratio: 21 / 9; }
@media (max-width: 700px) {
  .banner-frame { aspect-ratio: 16 / 9; }
}

/* Process graphic frame (custom course design) */
.graphic-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-purple);
  box-shadow: 0 32px 120px rgba(94,110,180,0.16);
  max-width: 1040px; margin: 0 auto;
}
.graphic-frame img { display: block; width: 100%; height: auto; }

/* Image-top program cards */
.imgcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.imgcard:hover { transform: translateY(-4px); border-color: var(--line-purple); box-shadow: 0 28px 100px rgba(94,110,180,0.16); }
.imgcard-media { aspect-ratio: 16 / 10; overflow: hidden; }
.imgcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.imgcard:hover .imgcard-media img { transform: scale(1.04); }
.imgcard-media.branded {
  background:
    radial-gradient(circle at 30% 25%, rgba(116,132,210,0.35), transparent 60%),
    linear-gradient(135deg, var(--purple-deep), var(--bg-deep));
  display: flex; align-items: center; justify-content: center;
}
.imgcard-media.branded .branded-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 20px; }
.imgcard-body { padding: 24px 26px; }
.imgcard-body .pg-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-light); display: block; margin-bottom: 0.7em; }
.imgcard-body h3 { font-size: 1.12rem; margin-bottom: 0.45em; }
.imgcard-body p { font-size: 0.92rem; color: var(--ink-secondary); margin: 0; }

/* Founder image + credibility chips */
.founder-media .media-frame { aspect-ratio: 4 / 3; }
.cred-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.cred-chip {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-secondary); border: 1px solid var(--line-purple); background: var(--glass-purple);
  border-radius: 999px; padding: 0.5em 0.9em;
}

/* Resource cards (4-up) */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.resource-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.resource-card:hover { border-color: var(--line-purple); transform: translateY(-3px); }
.resource-card .rc-eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 0.8em; }
.resource-card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.resource-card p { font-size: 0.93rem; color: var(--ink-secondary); flex-grow: 1; margin-bottom: 1.2em; }
@media (max-width: 640px) { .resource-grid { grid-template-columns: 1fr; } }

/* Choose Your Path — bullets + CTA in path cards */
.path-card .pc-bullets { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 8px; }
.path-card .pc-bullets li { font-size: 0.9rem; color: var(--muted); padding-left: 18px; position: relative; }
.path-card .pc-bullets li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 1px; background: var(--purple-light); }
.path-card .btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   Legal pages (privacy / terms) — readable long-form prose
   ============================================================ */
.legal { max-width: 820px; margin: 0 auto; }
.legal .legal-updated { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2.4em; display: block; }
.legal h2 { font-size: clamp(1.25rem, 2.1vw, 1.55rem); margin: 2em 0 0.5em; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 1.5em 0 0.4em; }
.legal p, .legal li { color: var(--ink-secondary); font-size: 1rem; line-height: 1.78; }
.legal p { margin: 0 0 1em; }
.legal ul { padding-left: 1.25em; margin: 0 0 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal a { color: var(--purple-light); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .sms-box {
  border: 1px solid var(--line-purple-strong);
  background: rgba(94,110,180,0.08);
  border-radius: var(--radius); padding: 22px 26px; margin: 1.6em 0;
}
.legal .sms-box h3 { margin-top: 0; }
.legal .contact-block { border-top: 1px solid var(--line); margin-top: 2.4em; padding-top: 1.6em; font-size: 0.96rem; }

/* ============================================================
   Global form modal — same-page form fill-out, no navigation
   or scrolling required. Markup injected by functions/_middleware.js
   so it's available on every page; triggered by any link whose
   href contains #enrollment / #consultation / #general.
   ============================================================ */
.bt-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5,7,11,0.82); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.bt-modal-overlay[hidden] { display: none; }
.bt-modal {
  width: 100%; max-width: 720px; max-height: 88vh;
  background: var(--bg-elevated); border: 1px solid var(--line-purple);
  border-radius: var(--radius-lg); box-shadow: 0 40px 140px rgba(0,0,0,0.55);
  display: flex; flex-direction: column; overflow: hidden;
}
.bt-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.bt-modal-title { font-size: 1.1rem; margin: 0; }
.bt-modal-close {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  width: 36px; height: 36px; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  line-height: 1; flex-shrink: 0; transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.bt-modal-close:hover { border-color: var(--purple-light); color: var(--purple-light); }
.bt-modal-body { flex: 1; overflow: auto; background: var(--bg); position: relative; }
.bt-modal-body iframe {
  width: 100%; height: 100%; min-height: 620px; border: 0; display: block;
  opacity: 0; transition: opacity 0.25s ease, height 0.25s ease, min-height 0.25s ease;
}
.bt-modal-body iframe.is-loaded { opacity: 1; }
.bt-modal-loading {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); transition: opacity 0.2s ease;
}
.bt-modal-loading.is-hidden { opacity: 0; pointer-events: none; }
.bt-modal-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--purple-light, #a78bfa);
  animation: bt-spin 0.8s linear infinite;
}
@keyframes bt-spin { to { transform: rotate(360deg); } }
body.bt-modal-open { overflow: hidden; }
body.bt-modal-open chat-widget { display: none !important; }
@media (max-width: 620px) {
  .bt-modal-overlay { padding: 0; }
  .bt-modal { max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .bt-modal-body iframe { min-height: 100%; }
}

/* Three-across variant of .path-cards */
.path-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .path-cards.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .path-cards.cols-3 { grid-template-columns: 1fr; } }
