@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   Latent School — design system
   Single organized stylesheet. No build tooling, no framework.

   Font note: "Google Sans" / "Product Sans" below are LOCAL-ONLY preference
   names with tuned system fallbacks. They are NOT web-loaded (there is no
   Google Fonts import for them anywhere on this site). JetBrains Mono is the
   only web font, used strictly for technical labels and numerals.

   Palette: deep navy institution (#0B2A6F / #13307A), blue action (#1A5BFA),
   pale-blue wash (#BFDBFE), mint accent (#34D399), paper surfaces.
   Header/hero/final invitation stay deep navy; mint is a restrained accent.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens — light default, explicit data-theme overrides,
      prefers-color-scheme fallback for first paint before JS runs.
   -------------------------------------------------------------------------- */
:root {
  --ink: #18181b;
  --ink-secondary: #52525b;
  --ink-tertiary: #71717a;
  --primary: #1A5BFA;
  --primary-hover: #1646d8;
  --accent: #34D399;
  --accent-hover: #2abf8a;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --surface: #f2f7ff;
  --surface-raised: #ffffff;
  --surface-wash: #BFDBFE;
  --border: rgba(39, 39, 42, 0.10);
  --border-strong: rgba(39, 39, 42, 0.18);
  --focus: #34D399;
  --shadow-sm: 0 1px 2px rgba(15, 28, 51, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(15, 28, 51, 0.12), 0 1px 2px rgba(15,28,51,0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --content: 1120px;
  --reading: 68ch;
  --hero-bg: #13307A;
  --hero-fg: #FFFFFF;
  --hero-muted: rgba(255, 255, 255, 0.82);
  --hero-border: rgba(255, 255, 255, 0.18);
  --sans: "Google Sans", "Google Sans Text", "Product Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #18181b;
  --ink-secondary: #52525b;
  --ink-tertiary: #71717a;
  --primary: #1A5BFA;
  --primary-hover: #1646d8;
  --accent: #34D399;
  --accent-hover: #2abf8a;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --surface: #f6f8fc;
  --surface-raised: #ffffff;
  --surface-wash: #BFDBFE;
  --border: rgba(39, 39, 42, 0.10);
  --border-strong: rgba(39, 39, 42, 0.18);
  --focus: #34D399;
  --shadow-sm: 0 1px 2px rgba(15, 28, 51, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(15, 28, 51, 0.12), 0 1px 2px rgba(15,28,51,0.06);
  --hero-bg: #13307A;
  --hero-fg: #FFFFFF;
  --hero-muted: rgba(255, 255, 255, 0.82);
  --hero-border: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f4f5;
  --ink-secondary: #A1A1AA;
  --ink-tertiary: #71717a;
  --primary: #5b8def;
  --primary-hover: #7aa7ff;
  --accent: #34D399;
  --accent-hover: #6ee7b7;
  --accent-soft: rgba(52, 211, 153, 0.16);
  --surface: #0e131f;
  --surface-raised: #141b2e;
  --surface-wash: #1e3a8a;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --focus: #34D399;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 24px -12px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.5);
  --hero-bg: #13307A;
  --hero-fg: #FFFFFF;
  --hero-muted: rgba(255, 255, 255, 0.84);
  --hero-border: rgba(255, 255, 255, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f4f5;
    --ink-secondary: #A1A1AA;
    --ink-tertiary: #71717a;
    --primary: #5b8def;
    --primary-hover: #7aa7ff;
    --accent: #34D399;
    --accent-hover: #6ee7b7;
    --accent-soft: rgba(52, 211, 153, 0.16);
    --surface: #0e131f;
    --surface-raised: #141b2e;
    --surface-wash: #1e3a8a;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --focus: #34D399;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 8px 24px -12px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.5);
    --hero-bg: #13307A;
    --hero-fg: #FFFFFF;
    --hero-muted: rgba(255, 255, 255, 0.84);
    --hero-border: rgba(255, 255, 255, 0.18);
  }
}

/* --------------------------------------------------------------------------
   2. Base — reset, typography scale, links, focus, utilities.
   Type scale: hero display / section heading / card heading / lead / body /
   label. Body measure stays within 45–72ch for comfortable reading.
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }

body {
  margin: 0;
  max-width: 100%;
  font-family: var(--sans);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
  font-size: 0.98rem;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[data-theme="light"] body { background: #f6f8fc; color: #18181b; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  text-wrap: balance;
}
h3, .btn, .topic-card h3 { font-family: var(--sans); }
code, pre, kbd, samp { font-family: var(--mono); }

.skip-link {
  position: absolute; left: 12px; top: -100px;
  background: var(--ink); color: var(--surface-raised);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--content); margin-inline: auto; padding-inline: 20px; min-width: 0; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.mono { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.02em; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --------------------------------------------------------------------------
   3. Header — always deep navy chrome with the light logo.
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #0B2A6F;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(4,18,52,.08);
  transition: background 200ms ease, border-color 200ms ease;
}
.site-header.is-scrolled { background: #0B2A6F; border-bottom-color: rgba(255,255,255,0.18); }
@media (prefers-color-scheme: dark) {
  .site-header { background: #0B2A6F; }
  .site-header.is-scrolled { background: #0B2A6F; }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding-block: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; padding: 4px 6px; border-radius: 8px; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
@media (min-width: 768px) { .brand-logo { height: 46px; } }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; margin-right: 14px; }
.site-nav a {
  font-family: var(--sans);
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.01em;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 6px 4px; border-radius: 4px;
  white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color 150ms ease, background 150ms ease;
}
.site-nav a:hover { color: #FFFFFF; background: rgba(255,255,255,0.10); }
.site-nav a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 720px) { .site-nav { gap: 14px; margin-right: 8px; } .site-nav a { font-size: 0.84rem; } }
@media (max-width: 640px) { .site-nav { display: none; } }
@media (max-width: 620px) { .brand-logo { height: 36px; max-width: 180px; } .site-header .wrap { min-height: 68px; } }
@media (max-width: 440px) { .brand-logo { height: 32px; max-width: 160px; } }

/* Theme-aware logos; the navy header always shows the light logo. */
.logo-dark { display: block; }
.logo-light { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-dark { display: none; }
  .logo-light { display: block; }
}
html[data-theme="light"] .logo-dark { display: block; }
html[data-theme="light"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: block; }
.site-header .logo-dark { display: none !important; }
.site-header .logo-light { display: block !important; }

/* --------------------------------------------------------------------------
   4. Buttons — shared conversion controls. 44px minimum targets.
   -------------------------------------------------------------------------- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.9375rem; line-height: 1;
  padding: 13px 22px; border-radius: 4px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  letter-spacing: 0.01em; min-height: 44px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #FFFFFF; border-color: var(--primary); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink-tertiary); background: var(--surface-raised); }
.btn-large { padding: 15px 30px; font-size: 1rem; }
.btn-small { padding: 9px 16px; font-size: 0.85rem; }

/* Hero buttons — navy fill shared with the header chrome, light ring. */
.btn-hero {
  background: #0B2A6F; color: #FFFFFF; border: 1.5px solid rgba(255,255,255,0.68);
  padding: 15px 30px; font-size: 0.95rem; font-weight: 600;
  min-height: 48px; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.14), 0 0 0 1px rgba(255,255,255,0.06), 0 8px 24px rgba(3,18,55,.18);
}
.btn-hero:hover { background: #14307A; border-color: rgba(255,255,255,0.9); color: #FFFFFF; }
.btn-hero:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
html[data-theme="dark"] .btn-hero { background: #18181B; color: #8FB0FF; border: 1.5px solid #27272A; }
html[data-theme="dark"] .btn-hero:hover { background: #27272A; border: 1.5px solid #3F3F46; color: #8FB0FF; }
.btn-hero-ghost {
  background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.32);
  padding: 15px 26px;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.48); color: #FFFFFF; }
.site-header .btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,0.36); background: rgba(255,255,255,0.10); }
.site-header .btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.55); color: #FFFFFF; }

/* --------------------------------------------------------------------------
   5. Hero — deep navy editorial composition, left-aligned contents.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 82% 18%, rgba(52,211,153,.07), transparent 24rem), var(--hero-bg);
  color: var(--hero-fg);
  padding-block: 72px 96px;
  overflow: clip;
  text-align: left;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
}
.hero .wrap { max-width: 1040px; min-width: 0; overflow-x: clip; position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin: 0 0 18px;
  text-align: left;
}
.hero-date {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 7px 14px; border-radius: 999px;
  max-width: 100%;
  flex-wrap: wrap; justify-content: flex-start;
  text-align: left;
}
.hero-date .dot { background: var(--accent); }
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.hero h1 {
  margin: 12px 0 18px;
  max-width: 100%; width: 100%;
  text-wrap: balance;
  overflow-wrap: normal; word-break: normal;
  line-height: 1;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start;
  text-align: left;
  /* No overflow clipping here: display lines are sized to fit their box
     (see responsive .hero-ai-line clamps), so words stay fully visible
     instead of being silently cut. Ancestor guards (.hero .wrap, html)
     remain as a backstop only. */
  box-sizing: border-box;
}
.hero-ai {
  display: block;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.88;
  max-width: 100%; width: 100%;
  overflow-wrap: normal; word-break: normal; hyphens: none;
  text-align: left;
  margin-inline: 0;
  box-sizing: border-box;
}
.hero-ai-line {
  display: block;
  font-family: var(--sans);
  font-size: clamp(2rem, 11vw + 0.25rem, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  white-space: nowrap;
  overflow-wrap: normal; word-break: normal; hyphens: none;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
}
.hero-course {
  display: block;
  font-family: var(--sans);
  font-style: normal; font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw + 0.6rem, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0.96;
  margin-top: 0.18em;
  text-transform: none;
  white-space: nowrap;
  text-align: left;
}

.hero-kicker {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  font-weight: 500; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.82);
  margin: 0 0 18px;
  text-align: left;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 22px; justify-content: flex-start; }
.hero-meta-item {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 10px 20px; border-radius: 999px;
  line-height: 1; white-space: nowrap;
}
@media (max-width: 480px) {
  .hero-meta { gap: 8px; }
  .hero-meta-item { font-size: 0.78rem; padding: 8px 16px; }
}
.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: rgba(255,255,255,0.82);
  max-width: 52ch;
  margin: 0 0 30px;
  text-align: left;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; align-items: center; text-align: left; }
.hero-ctas .btn, .hero .btn-hero { min-width: 0; }
.hero-footnote {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-size: 0.92rem; font-weight: 400;
  letter-spacing: normal; line-height: 1.5;
  color: rgba(255,255,255,0.82);
  text-align: left;
  max-width: 48ch;
  background: none; padding: 0;
}

/* --------------------------------------------------------------------------
   6. Sections — shared rhythm, kickers, reading measure.
   -------------------------------------------------------------------------- */
.section { position: relative; padding-block: 56px; }
@media (min-width: 768px) { .section { padding-block: 80px; } }
.section-head { max-width: 62ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section h2 { font-weight: 700; text-wrap: balance; font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.04em; line-height: 1.02; margin: 0 0 12px; }
.section-head h2 { text-wrap: balance; }
.section p { margin: 0; color: var(--ink-secondary); max-width: 62ch; }
.section h3:not(.module-title) { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.section-kicker {
  font-family: var(--mono);
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
}
html[data-theme="dark"] .section-kicker { color: var(--primary-hover); }

/* --------------------------------------------------------------------------
   7. Topics — two-row marquee over a theme-token surface.
   Loop geometry is exact: the track is gapless (gap:0) and each duplicated
   group carries the 16px seam internally, so -50% loops seamlessly.
   Safari/WebKit fallbacks: -webkit-max-content sizing, @-webkit-keyframes +
   -webkit-animation loop, physical inset offsets, -webkit-clip-path, and an
   overflow:hidden fallback ahead of overflow:clip (unsupported pre-Safari 16).
   -------------------------------------------------------------------------- */
.topics { padding-block: 64px; overflow: hidden; overflow: clip; background: var(--surface); }
@media (min-width: 768px) { .topics { padding-block: 96px; } }
.topics .section-head p { margin-inline: auto; }
html[data-theme="light"] .topics { background: #eaf2ff; background: color-mix(in srgb, #BFDBFE 30%, #f6f8fc 70%); }

.marquee {
  margin-top: 40px;
  display: grid; gap: 16px;
  overflow: hidden; overflow: clip;
  max-width: 100%;
  contain: paint; isolation: isolate;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black clamp(72px, 8vw, 128px), black calc(100% - clamp(72px, 8vw, 128px)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black clamp(72px, 8vw, 128px), black calc(100% - clamp(72px, 8vw, 128px)), transparent 100%);
}
@media (min-width: 768px) { .marquee { margin-top: 52px; } }
.marquee-row { overflow: hidden; overflow: clip; max-width: 100%; contain: paint; isolation: isolate; transform: translateZ(0); backface-visibility: hidden; }
.marquee-track {
  display: flex; flex-wrap: nowrap;
  gap: 0;
  width: -webkit-max-content;
  width: max-content;
  will-change: transform;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  contain: paint;
}
.marquee-group {
  display: flex; flex-wrap: nowrap;
  gap: 16px;
  padding-inline-end: 16px;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: -webkit-max-content;
  width: max-content;
  contain: paint;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.marquee-track--forward { -webkit-animation: marquee-left 42s linear infinite; animation: marquee-left 42s linear infinite; -webkit-animation-delay: -21s; animation-delay: -21s; }
.marquee-track--reverse { -webkit-animation: marquee-right 44s linear infinite; animation: marquee-right 44s linear infinite; -webkit-animation-delay: -22s; animation-delay: -22s; }

@-webkit-keyframes marquee-left {
  from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  to { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}
@keyframes marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@-webkit-keyframes marquee-right {
  from { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
  to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}
@keyframes marquee-right {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

/* Pause on hover / keyboard focus so content stays readable. */
.marquee:hover .marquee-track,
.marquee:focus .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

/* Topic cards — raised surface, per-topic accent, CSS-only artwork. */
.topic-card {
  flex: 0 0 344px;
  position: relative; overflow: hidden; overflow: clip;
  isolation: isolate; z-index: 0;
  contain: paint;
  -webkit-clip-path: inset(0 round 12px);
  clip-path: inset(0 round 12px);
  transform: translateZ(0);
  backface-visibility: hidden;
  background-color: var(--surface-raised);
  background-image: linear-gradient(155deg, var(--card-art-dark) 0%, color-mix(in srgb, var(--card-art-dark) 42%, #ffffff) 48%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  min-height: 520px;
  box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; text-align: left;
  box-shadow: 0 10px 30px -20px rgba(11,42,111,.28), 0 1px 2px rgba(11,42,111,.06);
}
@media (min-width: 768px) { .topic-card { flex-basis: 384px; min-height: 550px; } }
.topic-body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  text-align: left;
  width: 100%; margin-top: auto; gap: 8px;
  padding: 28px 24px 24px;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--surface-raised) 96%, transparent) 0%,
    color-mix(in srgb, var(--surface-raised) 92%, transparent) 38%,
    color-mix(in srgb, var(--surface-raised) 78%, transparent) 62%,
    color-mix(in srgb, var(--surface-raised) 52%, transparent) 78%,
    transparent 100%);
}
.topic-card h3 {
  font-size: clamp(1.92rem, 2.4vw + 0.65rem, 2.62rem);
  font-weight: 700; letter-spacing: -0.045em;
  margin: 0 0 10px; line-height: 1.06;
  text-align: left; text-wrap: balance;
  max-width: 100%; overflow-wrap: anywhere;
  color: var(--ink);
  position: relative; z-index: 2;
}
.topic-card p {
  margin: 0; font-size: 0.94rem; color: var(--ink-secondary);
  line-height: 1.55; text-align: left;
  max-width: 28ch; text-wrap: balance;
  position: relative; z-index: 2;
}

/* Per-topic accents + shared art variables (orb positions, dot fields). */
.topic-card--tokens { --card-accent: #5b8fff; --card-art-dark: #123c94; --card-art-light: #7393bd; --shape-step: 29px; --shape-offset: 0 0; --shape-angle: 90deg; --orb-x: 74%; --orb-y: 24%; --orb-size: 76px; --orb-ring: 79px; --orb-two-x: 27%; --orb-two-y: 42%; }
.topic-card--structured { --card-accent: #c084fc; --card-art-dark: #5b2c83; --card-art-light: #a38ab8; --shape-step: 37px; --shape-offset: 8px 11px; --shape-angle: 8deg; --orb-x: 22%; --orb-y: 31%; --orb-size: 64px; --orb-ring: 67px; --orb-two-x: 73%; --orb-two-y: 18%; }
.topic-card--streaming { --card-accent: #38bdf8; --card-art-dark: #075e85; --card-art-light: #78a9b9; --shape-step: 32px; --shape-offset: 4px 15px; --shape-angle: 0deg; --orb-x: 58%; --orb-y: 20%; --orb-size: 94px; --orb-ring: 97px; --orb-two-x: 18%; --orb-two-y: 51%; }
.topic-card--retrieval { --card-accent: #fbbf24; --card-art-dark: #7a3d16; --card-art-light: #c7aa76; --shape-step: 35px; --shape-offset: 12px 6px; --shape-angle: 135deg; --orb-x: 78%; --orb-y: 34%; --orb-size: 70px; --orb-ring: 73px; --orb-two-x: 38%; --orb-two-y: 20%; }
.topic-card--tools { --card-accent: #34d399; --card-art-dark: #075c3b; --card-art-light: #7db79f; --shape-step: 42px; --shape-offset: 0 18px; --shape-angle: 90deg; --orb-x: 50%; --orb-y: 27%; --orb-size: 88px; --orb-ring: 91px; --orb-two-x: 50%; --orb-two-y: 27%; }
.topic-card--routing { --card-accent: #fb7185; --card-art-dark: #852052; --card-art-light: #c68d9f; --shape-step: 31px; --shape-offset: 7px 3px; --shape-angle: 45deg; --orb-x: 20%; --orb-y: 22%; --orb-size: 82px; --orb-ring: 85px; --orb-two-x: 73%; --orb-two-y: 45%; }
.topic-card--agents { --card-accent: #a5b4fc; --card-art-dark: #2b317a; --card-art-light: #8e9abe; --shape-step: 40px; --shape-offset: 15px 8px; --shape-angle: 45deg; --orb-x: 69%; --orb-y: 29%; --orb-size: 98px; --orb-ring: 101px; --orb-two-x: 24%; --orb-two-y: 55%; }
.topic-card--memory { --card-accent: #e879f9; --card-art-dark: #5d226f; --card-art-light: #b394ba; --shape-step: 34px; --shape-offset: 3px 14px; --shape-angle: 135deg; --orb-x: 70%; --orb-y: 24%; --orb-size: 108px; --orb-ring: 111px; --orb-two-x: 32%; --orb-two-y: 38%; }
.topic-card--multimodal { --card-accent: #2dd4bf; --card-art-dark: #006a68; --card-art-light: #7db5ad; --shape-step: 28px; --shape-offset: 10px 4px; --shape-angle: 90deg; --orb-x: 32%; --orb-y: 26%; --orb-size: 72px; --orb-ring: 75px; --orb-two-x: 68%; --orb-two-y: 49%; }
.topic-card--evals { --card-accent: #5eead4; --card-art-dark: #176354; --card-art-light: #7cafa6; --shape-step: 44px; --shape-offset: 7px 17px; --shape-angle: 0deg; --orb-x: 72%; --orb-y: 26%; --orb-size: 90px; --orb-ring: 93px; --orb-two-x: 25%; --orb-two-y: 48%; }
.topic-card--safety { --card-accent: #fde047; --card-art-dark: #5d5310; --card-art-light: #cdb574; --shape-step: 38px; --shape-offset: 14px 2px; --shape-angle: 135deg; --orb-x: 68%; --orb-y: 25%; --orb-size: 84px; --orb-ring: 87px; --orb-two-x: 28%; --orb-two-y: 49%; }
.topic-card--observability { --card-accent: #c4b5fd; --card-art-dark: #402a8c; --card-art-light: #9a91c1; --shape-step: 33px; --shape-offset: 3px 9px; --shape-angle: 45deg; --orb-x: 72%; --orb-y: 31%; --orb-size: 100px; --orb-ring: 103px; --orb-two-x: 22%; --orb-two-y: 22%; }

/* CSS-only artwork: two layered gradients per card — a dotted field with an
   accent orb (::before) plus a directional linear motif (::after). The copy
   scrim above keeps text legible; art is decorative by construction. */
.topic-card::before,
.topic-card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  contain: strict;
  overflow: hidden;
}
.topic-card.topic-card::before {
  display: block;
  background:
    radial-gradient(circle at var(--orb-x) var(--orb-y), transparent 0 var(--orb-size), color-mix(in srgb, var(--card-accent) 82%, transparent) var(--orb-ring) calc(var(--orb-ring) + 3px), transparent calc(var(--orb-ring) + 4px)),
    radial-gradient(circle at var(--orb-two-x) var(--orb-two-y), color-mix(in srgb, #ffffff 40%, transparent) 0 8px, transparent 9px 42px, color-mix(in srgb, var(--card-accent) 52%, transparent) 43px 45px, transparent 46px),
    radial-gradient(circle, color-mix(in srgb, #ffffff 46%, transparent) 0 2px, transparent 2.8px) var(--shape-offset) / var(--shape-step) var(--shape-step);
  opacity: .74;
  filter: none;
}
.topic-card.topic-card::after {
  display: block;
  background:
    conic-gradient(from var(--shape-angle) at var(--orb-two-x) var(--orb-two-y), transparent 0 34deg, color-mix(in srgb, #ffffff 30%, transparent) 35deg 66deg, transparent 67deg 180deg, color-mix(in srgb, var(--card-accent) 34%, transparent) 181deg 210deg, transparent 211deg),
    repeating-linear-gradient(var(--shape-angle), transparent 0 48px, color-mix(in srgb, #ffffff 25%, transparent) 49px 51px, transparent 52px 96px);
  opacity: .48;
  filter: none;
}

/* Topic-specific compositions — each card keeps a recognisable motif. */
.topic-card.topic-card--tokens::before { background: radial-gradient(circle, color-mix(in srgb, #ffffff 62%, transparent) 0 2px, transparent 2.8px) 0 0 / 24px 24px, radial-gradient(circle at 72% 22%, transparent 0 72px, color-mix(in srgb, var(--card-accent) 80%, transparent) 74px 77px, transparent 79px); }
.topic-card.topic-card--tokens::after { background: repeating-linear-gradient(90deg, transparent 0 31px, color-mix(in srgb, #ffffff 32%, transparent) 32px 34px, transparent 35px 63px); }
.topic-card.topic-card--structured::before { background: linear-gradient(90deg, transparent 16%, color-mix(in srgb, var(--card-accent) 24%, transparent) 16% 84%, transparent 84%) 50% 15% / 74% 64px no-repeat, linear-gradient(90deg, transparent 11%, color-mix(in srgb, var(--card-accent) 32%, transparent) 11% 89%, transparent 89%) 50% 32% / 86% 64px no-repeat, linear-gradient(90deg, transparent 21%, color-mix(in srgb, var(--card-accent) 20%, transparent) 21% 79%, transparent 79%) 50% 49% / 68% 64px no-repeat; }
.topic-card.topic-card--structured::after { background: linear-gradient(90deg, transparent 16%, color-mix(in srgb, #ffffff 68%, transparent) 16% 84%, transparent 84%) 50% 15% / 74% 2px no-repeat, linear-gradient(90deg, transparent 11%, color-mix(in srgb, #ffffff 72%, transparent) 11% 89%, transparent 89%) 50% 32% / 86% 2px no-repeat, radial-gradient(circle at 23% 20%, #ffffff 0 5px, transparent 6px), radial-gradient(circle at 77% 37%, #ffffff 0 5px, transparent 6px); }
.topic-card.topic-card--streaming::before { background: repeating-linear-gradient(0deg, transparent 0 58px, color-mix(in srgb, #ffffff 42%, transparent) 59px 62px, transparent 63px 94px), linear-gradient(90deg, color-mix(in srgb, var(--card-accent) 48%, transparent), transparent 70%); }
.topic-card.topic-card--streaming::after { background: radial-gradient(ellipse 42px 11px at 20% 26%, #ffffff 0 62%, transparent 65%), radial-gradient(ellipse 58px 13px at 53% 45%, #ffffff 0 62%, transparent 65%), radial-gradient(ellipse 34px 9px at 80% 19%, #ffffff 0 62%, transparent 65%); }
.topic-card.topic-card--retrieval::before { background: conic-gradient(from 220deg at 21% 20%, transparent 0 30deg, color-mix(in srgb, #ffffff 36%, transparent) 31deg 82deg, transparent 83deg), repeating-linear-gradient(0deg, transparent 0 35px, color-mix(in srgb, #ffffff 30%, transparent) 36px 38px, transparent 39px 68px); }
.topic-card.topic-card--retrieval::after { background: radial-gradient(circle at 21% 20%, transparent 0 39px, var(--card-accent) 41px 44px, transparent 46px), linear-gradient(136deg, transparent 0 58%, color-mix(in srgb, #ffffff 52%, transparent) 58% 60%, transparent 60%); }
.topic-card.topic-card--tools::before { background: radial-gradient(circle at 50% 28%, transparent 0 48px, color-mix(in srgb, #ffffff 68%, transparent) 50px 54px, transparent 56px 78px, color-mix(in srgb, var(--card-accent) 70%, transparent) 80px 83px, transparent 85px), linear-gradient(90deg, transparent 49%, color-mix(in srgb, #ffffff 54%, transparent) 49% 51%, transparent 51%); }
.topic-card.topic-card--tools::after { background: radial-gradient(circle at 50% 28%, var(--card-accent) 0 7px, transparent 8px), linear-gradient(90deg, transparent 49%, var(--card-accent) 49% 51%, transparent 51%) 0 42% / 100% 35% no-repeat; }
.topic-card.topic-card--routing::before { background: radial-gradient(circle at 50% 25%, color-mix(in srgb, var(--card-accent) 34%, transparent) 0 31px, transparent 32px 57px, color-mix(in srgb, #ffffff 68%, transparent) 59px 63px, transparent 65px), radial-gradient(ellipse 78% 32% at 50% 14%, transparent 68%, color-mix(in srgb, #ffffff 42%, transparent) 69% 71%, transparent 72%), linear-gradient(180deg, transparent 27%, color-mix(in srgb, #ffffff 42%, transparent) 27% 28.2%, transparent 28.2%) 50% 0 / 2px 48% no-repeat; }
.topic-card.topic-card--routing::after { background: linear-gradient(90deg, transparent 21%, color-mix(in srgb, #ffffff 52%, transparent) 21% 79%, transparent 79%) 0 55% / 100% 2px no-repeat, radial-gradient(circle at 22% 55%, transparent 0 18px, color-mix(in srgb, #ffffff 66%, transparent) 20px 23px, transparent 25px), radial-gradient(circle at 50% 55%, transparent 0 18px, color-mix(in srgb, var(--card-accent) 75%, transparent) 20px 23px, transparent 25px), radial-gradient(circle at 50% 25%, var(--card-accent) 0 7px, transparent 8px); }
.topic-card.topic-card--agents::before { background: radial-gradient(circle at 31% 29%, transparent 0 61px, color-mix(in srgb, #ffffff 60%, transparent) 63px 66px, transparent 68px), radial-gradient(circle at 68% 43%, transparent 0 54px, color-mix(in srgb, var(--card-accent) 64%, transparent) 56px 59px, transparent 61px); }
.topic-card.topic-card--agents::after { background: linear-gradient(90deg, transparent 17%, color-mix(in srgb, #ffffff 58%, transparent) 17% 83%, transparent 83%) 0 49% / 100% 2px no-repeat, radial-gradient(circle at 17% 49%, #ffffff 0 5px, transparent 6px), radial-gradient(circle at 83% 49%, var(--card-accent) 0 5px, transparent 6px); }
.topic-card.topic-card--memory::before { background: radial-gradient(circle at 70% 24%, transparent 0 40px, color-mix(in srgb, #ffffff 60%, transparent) 42px 45px, transparent 47px 72px, color-mix(in srgb, #ffffff 42%, transparent) 74px 77px, transparent 79px 104px, color-mix(in srgb, var(--card-accent) 48%, transparent) 106px 109px, transparent 111px); }
.topic-card.topic-card--memory::after { background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, #ffffff 34%, transparent) 62% 69%, transparent 69%), linear-gradient(180deg, transparent 72%, color-mix(in srgb, var(--card-accent) 32%, transparent) 72% 80%, transparent 80%); }
.topic-card.topic-card--multimodal::before { background: radial-gradient(circle at 30% 30%, transparent 0 57px, color-mix(in srgb, #ffffff 60%, transparent) 59px 62px, transparent 64px), radial-gradient(circle at 61% 46%, transparent 0 47px, color-mix(in srgb, var(--card-accent) 65%, transparent) 49px 52px, transparent 54px), radial-gradient(circle at 44% 64%, transparent 0 64px, color-mix(in srgb, #ffffff 42%, transparent) 66px 69px, transparent 71px); }
.topic-card.topic-card--multimodal::after { background: repeating-linear-gradient(90deg, transparent 0 10px, color-mix(in srgb, #ffffff 48%, transparent) 11px 14px, transparent 15px 25px) 0 76% / 100% 30px no-repeat; }
.topic-card.topic-card--evals::before { background: linear-gradient(154deg, transparent 0 47%, color-mix(in srgb, #ffffff 68%, transparent) 47% 49%, transparent 49%), repeating-linear-gradient(0deg, transparent 0 45px, color-mix(in srgb, #ffffff 30%, transparent) 46px 48px, transparent 49px 78px); }
.topic-card.topic-card--evals::after { background: linear-gradient(154deg, transparent 0 50%, var(--card-accent) 50% 52%, transparent 52%), radial-gradient(circle at 20% 60%, #ffffff 0 5px, transparent 6px), radial-gradient(circle at 78% 27%, var(--card-accent) 0 5px, transparent 6px); }
.topic-card.topic-card--safety::before { background: conic-gradient(from 0deg at 50% 29%, transparent 0 30deg, color-mix(in srgb, #ffffff 38%, transparent) 31deg 59deg, transparent 60deg 121deg, color-mix(in srgb, var(--card-accent) 44%, transparent) 122deg 150deg, transparent 151deg), linear-gradient(118deg, transparent 35%, color-mix(in srgb, #ffffff 52%, transparent) 35% 37%, transparent 37%); }
.topic-card.topic-card--safety::after { background: radial-gradient(circle at 50% 29%, transparent 0 28px, var(--card-accent) 30px 33px, transparent 35px), radial-gradient(circle at 50% 29%, #ffffff 0 5px, transparent 6px); }
.topic-card.topic-card--observability::before { background: repeating-linear-gradient(0deg, transparent 0 38px, color-mix(in srgb, #ffffff 42%, transparent) 39px 42px, transparent 43px 70px), linear-gradient(105deg, transparent 0 49%, color-mix(in srgb, var(--card-accent) 60%, transparent) 49% 51%, transparent 51%); }
.topic-card.topic-card--observability::after { background: linear-gradient(105deg, transparent 0 54%, #ffffff 54% 56%, transparent 56%), radial-gradient(ellipse 42% 15% at 65% 38%, transparent 69%, color-mix(in srgb, #ffffff 66%, transparent) 70% 73%, transparent 74%); }

/* Light theme: same compositions on a tinted paper canvas, stronger borders. */
html[data-theme="light"] .topic-card {
  --card-accent: var(--card-art-light);
  background-color: #ffffff;
  background-image: linear-gradient(155deg,
    color-mix(in srgb, var(--card-art-light) 30%, #ffffff) 0%,
    color-mix(in srgb, var(--card-art-light) 13%, #ffffff) 52%,
    #ffffff 100%);
  border: 1.5px solid rgba(15, 28, 51, 0.14);
  box-shadow: 0 8px 24px -12px rgba(15, 28, 51, 0.14), 0 2px 6px rgba(15, 28, 51, 0.08);
}
html[data-theme="light"] .topic-card.topic-card::before { opacity: .64; filter: saturate(.92) contrast(1.04); }
html[data-theme="light"] .topic-card.topic-card::after { opacity: .56; filter: saturate(.9) contrast(1.05); }
html[data-theme="light"] .topic-body { background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, .97) 48%, rgba(255, 255, 255, .72) 70%, transparent 100%); }
html[data-theme="light"] .topic-card h3 { color: #18181b; }
html[data-theme="light"] .topic-card p { color: rgba(24, 24, 27, .78); }
@media (prefers-color-scheme: light) {
  .topic-card::before { filter: saturate(1.12) contrast(1.1); }
  .topic-card::after { filter: saturate(1.08); }
}

/* Dark theme: compositions dim against the raised surface. */
html[data-theme="dark"] .topic-card {
  background-color: #141b2e;
  background-image: linear-gradient(155deg, color-mix(in srgb, var(--card-art-dark) 58%, #11131c) 0%, color-mix(in srgb, var(--card-art-dark) 26%, #090b12) 48%, #000000 100%);
  border-color: var(--border);
}
html[data-theme="dark"] .topic-card.topic-card::before { opacity: .42; filter: saturate(.56) brightness(.82); }
html[data-theme="dark"] .topic-card.topic-card::after { opacity: .27; filter: saturate(.48) brightness(.78); }
@media (prefers-color-scheme: dark) {
  .topic-card::before { opacity: 0.88; filter: brightness(1.25) saturate(1.15); }
  .topic-card::after { opacity: 0.88; filter: brightness(1.25) saturate(1.15); }
}

/* --------------------------------------------------------------------------
   8. Outcomes — three editorial capability panels.
   -------------------------------------------------------------------------- */
.outcomes { background: var(--surface-raised); border-block: 1px solid var(--border); }
html[data-theme="light"] .outcomes { background: #ffffff; }
.outcomes-grid { display: grid; gap: 16px; margin-top: 32px; align-items: stretch; }
@media (min-width: 860px) { .outcomes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.outcome-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 30px 28px;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
html[data-theme="light"] .outcome-card { background: #f6f8fc; border-color: rgba(11,42,111,.11); }
.outcomes .outcome-card h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 750; letter-spacing: -0.03em; line-height: 1.08;
  margin: 0 0 10px; color: var(--ink);
}
html[data-theme="light"] .outcome-card h3 { color: #0a0a0b; }
html[data-theme="dark"] .outcome-card h3 { color: #fafafa; }
.outcome-card > p { font-size: 1.02rem; line-height: 1.6; color: var(--ink); margin: 0 0 18px; max-width: 38ch; min-height: 3.2em; flex-grow: 1; }
html[data-theme="light"] .outcome-card > p { color: #0a0a0b; }
html[data-theme="dark"] .outcome-card > p { color: #fafafa; }
.outcome-list { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 1rem; line-height: 1.55; color: var(--ink); }
html[data-theme="light"] .outcome-list { color: #0a0a0b; }
html[data-theme="dark"] .outcome-list { color: #fafafa; }
.outcome-list li::marker { color: var(--primary); font-weight: 700; }

/* --------------------------------------------------------------------------
   9. How it works — numbered process steps + conversion moment.
   -------------------------------------------------------------------------- */
.how { background: var(--surface); }
html[data-theme="light"] .how { background: #f6f8fc; }
.steps {
  list-style: none; counter-reset: step;
  margin: 32px 0 0; padding: 0;
  display: grid; gap: 16px;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.step {
  counter-increment: step;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 26px;
  min-width: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}
html[data-theme="light"] .step { background: #ffffff; border-color: rgba(11,42,111,.11); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--sans);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1;
  color: #0B2A6F;
  margin-bottom: 14px;
}
html[data-theme="dark"] .step::before { color: #dbeafe; }
.how .step h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 12px; color: var(--ink); }
.step p { font-size: 1.02rem; line-height: 1.6; color: var(--ink); margin: 0; }
.how-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 768px) { .how-ctas .btn { width: 100%; } }

/* --------------------------------------------------------------------------
   10. Syllabus — phase overview, then one ordered list of 20 modules.
   -------------------------------------------------------------------------- */
.syllabus { padding-block: 56px; }
@media (min-width: 768px) { .syllabus { padding-block: 80px; } }
html[data-theme="light"] .syllabus { background: #f6f8fc; }
.syllabus-head {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px;
}
.syllabus-head-text { flex: 1 1 320px; min-width: 240px; }
#syllabus-heading {
  font-family: var(--sans);
  font-size: clamp(2.0rem, 3.8vw, 3.0rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.02;
  margin: 0 0 12px;
  max-width: 18ch;
  text-wrap: balance;
  background: transparent; text-shadow: none;
}
.syllabus-lead { margin-top: 0; max-width: 62ch; color: var(--ink-secondary); font-size: 1.0rem; line-height: 1.6; }
.syllabus-actions { flex: 0 0 auto; align-self: flex-start; }
.syllabus-actions button {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-weight: 600; font-size: 0.92rem;
  padding: 12px 22px; border-radius: 4px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #0B2A6F 0%, #1A5BFA 100%);
  color: #FFFFFF;
  cursor: pointer; min-height: 44px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.14), 0 4px 12px rgba(11,42,111,0.18);
  transition: background 150ms ease, box-shadow 150ms ease, transform 120ms ease;
}
.syllabus-actions button:hover { background: linear-gradient(135deg, #14307A 0%, #2f6bff 100%); color: #FFFFFF; box-shadow: 0 4px 16px rgba(11,42,111,0.28); }
.syllabus-actions button:active { transform: translateY(1px); }
.syllabus-actions button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 640px) {
  .syllabus-head { flex-direction: column; }
  /* Column main axis is vertical: reset the row-oriented 320px flex basis,
     which would otherwise force a ~320px-tall text block (dead gap). */
  .syllabus-head-text { flex: 0 1 auto; min-width: 0; }
}

/* Module list — exactly one ordered list of 20 dialog-trigger buttons.
   Phase progression is carried by the four sans phase markers on the
   boundary cards (01 / 06 / 12 / 18); there is no separate overview. */
.module-list {
  display: grid; gap: 16px;
  margin-top: 28px; margin-bottom: 0;
  list-style: none;
  padding: 0;
  align-items: stretch;
}
@media (min-width: 700px) and (max-width: 1099px) { .module-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; } }
/* Content-safe rows: the 180px baseline holds for typical titles, but rows
   grow (never clip) for phase markers and long titles. */
@media (min-width: 1100px) { .module-list { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); } }
@media (max-width: 1099px) { .module-item:nth-child(1) { grid-column: auto; } }
@media (min-width: 1100px) { .module-item:nth-child(1) { grid-column: span 2; } }

.module-item {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  display: flex; flex-direction: column;
  min-width: 0;
  overflow: hidden;
  min-height: 168px; height: 100%;
  align-self: stretch;
  box-shadow: 0 8px 24px -22px rgba(11,42,111,.3);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
html[data-theme="light"] .module-item { background: #ffffff; border-color: rgba(11,42,111,.11); }
.module-item:has(.module-trigger:hover) { border-color: rgba(26,91,250,.34); box-shadow: 0 14px 34px -24px rgba(11,42,111,.42); }
@media (prefers-color-scheme: dark) { .module-item { background: var(--surface-raised); border-color: var(--border); } }
html[data-theme="dark"] .module-item { background: var(--surface-raised); border-color: var(--border); }

.module-trigger {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  appearance: none; -webkit-appearance: none;
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; height: 100%;
  min-height: 168px;
  flex: 1 1 auto; align-self: stretch;
  padding: 24px;
  margin: 0;
  background: transparent;
  border: none; border-radius: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit; color: inherit;
  min-width: 0;
}
.module-trigger:hover { background: color-mix(in srgb, var(--surface-wash) 10%, transparent); }
.module-trigger:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--focus); border-radius: 6px; }
.module-trigger:active { transform: translateY(1px); }

/* Phase marker — strong sans editorial label opening each phase range. */
.phase-marker {
  position: relative; z-index: 1;
  font-family: var(--sans);
  font-size: 0.92rem; font-weight: 700;
  letter-spacing: -0.02em; text-transform: none;
  color: var(--ink);
  margin-bottom: -4px;
}
html[data-theme="light"] .phase-marker { color: #0B2A6F; }
html[data-theme="dark"] .phase-marker { color: #f4f4f5; }

/* Background numeral — decorative, hidden from assistive tech in markup. */
.module-number {
  position: absolute;
  top: 54%; left: 52%;
  transform: translate(-50%, -40%);
  font-family: var(--sans);
  font-size: clamp(4.4rem, 8.5vw, 6.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  text-transform: none;
  color: var(--ink);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (prefers-color-scheme: dark) { .module-number { color: #8fb0ff; opacity: 0.07; } }
html[data-theme="dark"] .module-number { color: #8fb0ff; opacity: 0.07; }
html[data-theme="light"] .module-number { color: #0B2A6F; opacity: 0.09; }

.module-title {
  position: relative; z-index: 1;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.06vw + 0.82rem, 1.80rem);
  line-height: 1.24;
  color: var(--ink);
  margin: 0;
  max-width: 100%; min-width: 0;
  overflow-wrap: break-word; word-break: normal; hyphens: auto;
  text-wrap: balance;
  display: block;
}
html[data-theme="light"] .module-title { color: #18181b; }

/* --------------------------------------------------------------------------
   11. Dialog — request form. Desktop is the single scroll region;
   mobile (≤640px) becomes a bottom sheet scrolled by .dialog-inner.
   -------------------------------------------------------------------------- */
dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  max-width: 560px;
  width: min(calc(100vw - 24px), 560px);
  max-height: 84vh;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--shadow-md), 0 20px 48px -16px rgba(15,28,51,0.16);
}
dialog::backdrop { background: rgba(15, 28, 51, 0.40); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html[data-theme="light"] dialog {
  border-color: rgba(11,42,111,0.14);
  background: #ffffff; color: #18181b;
  box-shadow: 0 24px 64px -12px rgba(15,28,51,0.18), 0 8px 24px rgba(15,28,51,0.10);
}
html[data-theme="light"] dialog::backdrop { background: rgba(15, 28, 51, 0.36); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html[data-theme="dark"] dialog {
  border-color: rgba(255,255,255,0.14);
  background: #0e131f; background: var(--surface);
  color: #f4f4f5;
  box-shadow: 0 24px 64px -12px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.45);
}
html[data-theme="dark"] dialog::backdrop { background: rgba(8, 18, 48, 0.58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (prefers-color-scheme: dark) {
  dialog { border-color: rgba(255,255,255,0.14); background: #0e131f; background: var(--surface); color: #f4f4f5; box-shadow: 0 24px 64px -12px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.45); }
  dialog::backdrop { background: rgba(8, 18, 48, 0.58); }
}
@media (prefers-color-scheme: light) {
  dialog { border-color: rgba(11,42,111,0.14); background: #ffffff; color: #18181b; box-shadow: 0 24px 64px -12px rgba(15,28,51,0.18), 0 8px 24px rgba(15,28,51,0.10); }
  dialog::backdrop { background: rgba(15, 28, 51, 0.36); }
}

.dialog-inner {
  --dialog-text-lg: calc(1.5rem + 2pt);
  --dialog-text-md: calc(0.9rem + 2pt);
  --dialog-text-sm: calc(0.8rem + 2pt);
  position: relative;
  padding: 28px 28px 24px;
  background: transparent;
  min-width: 0;
}
html[data-theme="dark"] .dialog-inner { background: transparent; }
@media (max-width: 480px) { .dialog-inner { padding: 24px 18px calc(20px + env(safe-area-inset-bottom, 0px)); } }
.dialog-grid { display: grid; grid-template-columns: 1fr; min-width: 0; }
.dialog-grid[hidden], .dialog-success[hidden] { display: none !important; }

.dialog-success {
  min-height: 360px;
  padding: 72px 32px 56px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dialog-success:focus { outline: none; }
.dialog-success-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0B2A6F 0%, #1A5BFA 100%);
  color: #FFFFFF;
  font-size: 1.65rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(26, 91, 250, 0.22);
}
.dialog-success h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.dialog-success p {
  max-width: 31ch;
  margin: 0;
  color: var(--ink-secondary);
  font-size: var(--dialog-text-md);
  line-height: 1.6;
  text-wrap: balance;
}
html[data-theme="light"] .dialog-success h2 { color: #18181b; }
html[data-theme="light"] .dialog-success p { color: #52525b; }
html[data-theme="dark"] .dialog-success h2 { color: #f4f4f5; }
html[data-theme="dark"] .dialog-success p { color: #d4d4d8; }
#syllabus-dialog-title {
  font-family: var(--sans);
  font-size: var(--dialog-text-lg);
  font-weight: 700; letter-spacing: -0.04em;
  margin: 0 0 10px; padding-right: 48px;
  color: var(--ink); line-height: 1.18;
  max-width: 22ch; text-wrap: balance;
}
html[data-theme="light"] #syllabus-dialog-title { color: #18181b; }
html[data-theme="dark"] #syllabus-dialog-title { color: #f4f4f5; }
.dialog-desc {
  font-size: var(--dialog-text-md);
  color: var(--ink-secondary);
  margin: 0 0 18px; line-height: 1.6;
  max-width: 44ch; text-wrap: pretty;
}
html[data-theme="light"] .dialog-desc { color: #52525b; }
html[data-theme="dark"] .dialog-desc { color: #A1A1AA; }

/* Chromeless close: no border/background box, 44px hit target, wash on hover. */
.dialog-close {
  position: absolute; top: 14px; right: 14px;
  appearance: none;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  padding: 0;
  border: none; border-radius: 10px;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 150ms ease, color 150ms ease, transform 120ms ease;
}
html[data-theme="light"] .dialog-close { color: #52525b; }
html[data-theme="dark"] .dialog-close { color: #A1A1AA; }
.dialog-close:hover { color: var(--ink); background: rgba(128, 128, 136, 0.16); }
html[data-theme="light"] .dialog-close:hover { color: #18181b; }
html[data-theme="dark"] .dialog-close:hover { color: #f4f4f5; }
.dialog-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* CSS-only X glyph */
.dialog-close::before, .dialog-close::after {
  content: "";
  position: absolute;
  width: 16px; height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.dialog-close::after { transform: rotate(-45deg); }

/* Info panel — unboxed: content sits directly on the modal surface. */
.dialog-info { background: transparent; border: none; border-radius: 0; padding: 0; margin: 0 0 18px; box-shadow: none; }
html[data-theme="light"] .dialog-info { background: transparent; border: none; box-shadow: none; }
html[data-theme="dark"] .dialog-info { background: transparent; border: none; box-shadow: none; }
.dialog-info-title {
  font-family: var(--sans);
  font-size: var(--dialog-text-md); font-weight: 600; letter-spacing: -0.01em;
  text-transform: none;
  margin: 0 0 10px; color: var(--ink);
}
html[data-theme="light"] .dialog-info-title { color: #18181b; }
html[data-theme="dark"] .dialog-info-title { color: #f4f4f5; }
.dialog-info-list {
  margin: 0; padding-left: 18px;
  font-size: var(--dialog-text-md); line-height: 1.6; color: var(--ink-secondary);
  display: grid; gap: 8px;
}
html[data-theme="light"] .dialog-info-list { color: #52525b; }
html[data-theme="dark"] .dialog-info-list { color: #d4d4d8; }
.dialog-info-list li::marker { color: var(--primary); }

/* Form — labels above controls, 48px controls, blue focus, red invalid. */
#syllabus-form { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--border); margin-top: 2px; }
html[data-theme="light"] #syllabus-form { border-top-color: rgba(11,42,111,0.10); }
html[data-theme="dark"] #syllabus-form { border-top-color: rgba(255,255,255,0.12); }
#syllabus-form .field { min-width: 0; display: grid; gap: 6px; align-content: start; }
#syllabus-form .field label {
  font-family: var(--sans);
  font-weight: 600; font-size: var(--dialog-text-md); line-height: 1.4; color: var(--ink);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
html[data-theme="light"] #syllabus-form .field label { color: #18181b; }
html[data-theme="dark"] #syllabus-form .field label { color: #f4f4f5; }

/* Visible controls — scoped to .field/.phone-attach so the honeypot
   (.hp-field) is never styled as a visible input. */
#syllabus-form .field input[type="text"],
#syllabus-form .field input[type="email"] {
  appearance: none; -webkit-appearance: none;
  display: block; width: 100%; max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 16px; line-height: 1.45;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
html[data-theme="light"] #syllabus-form .field input { border-color: rgba(11,42,111,0.18); background: #ffffff; color: #0f172a; }
html[data-theme="dark"] #syllabus-form .field input { border-color: rgba(255,255,255,0.18); background: #0e131f; color: #f4f4f5; }
@media (prefers-color-scheme: light) { #syllabus-form .field input { border-color: rgba(11,42,111,0.18); background: #ffffff; color: #0f172a; } }
@media (prefers-color-scheme: dark) { #syllabus-form .field input { border-color: rgba(255,255,255,0.18); background: #0e131f; color: #f4f4f5; } }
#syllabus-form .field input:hover { border-color: var(--ink-tertiary); }
#syllabus-form .field input:focus-visible {
  outline: 2px solid #2563eb; outline-offset: 2px;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.16);
}
#syllabus-form .field input[aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,0.14); }
#syllabus-form .field input::placeholder { color: #64748b; }
html[data-theme="dark"] #syllabus-form .field input::placeholder { color: #71717a; }

/* Attached phone control: country select + number input joined with one
   seamless border. The container owns border/background/radius/height; the
   children are borderless and transparent. Joined at every width. */
#syllabus-form .phone-attach {
  display: flex; align-items: stretch;
  min-width: 0; max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
html[data-theme="light"] #syllabus-form .phone-attach { border-color: rgba(11,42,111,0.18); background: #ffffff; color: #0f172a; }
html[data-theme="dark"] #syllabus-form .phone-attach { border-color: rgba(255,255,255,0.18); background: #0e131f; color: #f4f4f5; }
@media (prefers-color-scheme: light) { #syllabus-form .phone-attach { border-color: rgba(11,42,111,0.18); background: #ffffff; color: #0f172a; } }
@media (prefers-color-scheme: dark) { #syllabus-form .phone-attach { border-color: rgba(255,255,255,0.18); background: #0e131f; color: #f4f4f5; } }
#syllabus-form .phone-attach select,
#syllabus-form .phone-attach input[type="tel"] {
  appearance: none; -webkit-appearance: none;
  border: none; background-color: transparent;
  box-shadow: none; border-radius: 0;
  box-sizing: border-box;
  min-width: 0; min-height: 48px;
  padding: 12px 14px;
  color: inherit;
  font-size: 16px; line-height: 1.45;
  font-family: inherit;
}
/* Code prefix: relative box sizing the column; the native select fills it
   while a synced overlay shows only the code. Compact 118px basis fits
   "+ Code" / "+998" plus the chevron; 104px floor keeps the select usable
   while recovered width goes to the number input. */
#syllabus-form .phone-attach .code-wrap {
  position: relative;
  display: flex;
  flex: 0 1 118px;
  min-width: 104px;
  border-right: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
#syllabus-form .phone-attach select {
  flex: 1 1 auto; min-width: 0; width: 100%;
  /* Closed rendering hides the full country name; the overlay below shows
     only the calling code. The popup menu keeps explicit option colors. */
  color: transparent;
}
#syllabus-form .phone-attach select.is-empty { color: transparent; }
#syllabus-form .phone-attach option { color: #0f172a; background-color: #ffffff; }
html[data-theme="dark"] #syllabus-form .phone-attach option { color: #f4f4f5; background-color: #0e131f; }
#syllabus-form .phone-attach .code-display {
  position: absolute;
  left: 14px; right: 36px; top: 50%;
  transform: translateY(-50%);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  pointer-events: none;
  color: inherit;
  font-size: 16px; line-height: 1.45;
}
#syllabus-form .phone-attach input[type="tel"] { flex: 1 1 auto; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
#syllabus-form .phone-attach input[type="tel"]::placeholder { color: #64748b; }
html[data-theme="dark"] #syllabus-form .phone-attach input[type="tel"]::placeholder { color: #71717a; }
#syllabus-form .phone-attach:hover { border-color: var(--ink-tertiary); }
#syllabus-form .phone-attach:focus-within {
  outline: 2px solid #2563eb; outline-offset: 2px;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.16);
}
#syllabus-form .phone-attach select:focus-visible,
#syllabus-form .phone-attach input[type="tel"]:focus-visible { outline: none; box-shadow: none; border-color: transparent; }
/* Error state: :has covers modern browsers; JS toggles .is-invalid alongside
   aria-invalid as fallback. */
#syllabus-form .phone-attach:has(select[aria-invalid="true"], input[aria-invalid="true"]),
#syllabus-form .phone-attach.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,0.14); }
/* Empty-state tint follows the select state onto the visible overlay. */
#syllabus-form .phone-attach select.is-empty + .code-display { color: #64748b; }
html[data-theme="dark"] #syllabus-form .phone-attach select.is-empty + .code-display { color: #A1A1AA; }
@media (prefers-color-scheme: dark) { #syllabus-form .phone-attach select.is-empty + .code-display { color: #A1A1AA; } }
html[data-theme="light"] #syllabus-form .phone-attach select.is-empty + .code-display { color: #64748b; }
@media (max-width: 480px) {
  #syllabus-form .phone-attach .code-wrap { flex-basis: 104px; }
  #syllabus-form .phone-attach select { padding-right: 30px; background-position: right 8px center; }
  #syllabus-form .phone-attach .code-display { right: 30px; }
}

/* Attached select chevron (appearance:none removes the native arrow).
   Driven by a theme variable so no competing background shorthand resets it. */
#syllabus-form .phone-attach select {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2352525b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  padding-right: 36px;
  background: transparent var(--select-chevron) no-repeat right 12px center / 16px 16px;
  max-width: 100%;
}
html[data-theme="light"] #syllabus-form .phone-attach select {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2352525b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html[data-theme="dark"] #syllabus-form .phone-attach select {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23A1A1AA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: light) {
  #syllabus-form .phone-attach select {
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2352525b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
@media (prefers-color-scheme: dark) {
  #syllabus-form .phone-attach select {
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23A1A1AA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
/* Optional select empty-state: the country select is optional, so a
   required-based pseudo-class can never match. JS toggles .is-empty instead. */
#syllabus-form .phone-attach select.is-empty { color: #64748b; }
html[data-theme="dark"] #syllabus-form .phone-attach select.is-empty { color: #A1A1AA; }
@media (prefers-color-scheme: dark) { #syllabus-form .phone-attach select.is-empty { color: #A1A1AA; } }
/* Explicit light theme wins over the system-dark fallback above. */
html[data-theme="light"] #syllabus-form .phone-attach select.is-empty { color: #64748b; }
/* Back-compat alias for existing contracts expecting the email selector. */
#syllabus-form input[type="email"]:focus-visible {
  outline: 2px solid #2563eb; outline-offset: 2px;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.16);
}

/* Identity (name + email): single full-width column at every width; each
   field takes its own row inside the centered form measure. */
.identity-row { display: grid; gap: 12px; grid-template-columns: 1fr; min-width: 0; }

/* Quiet "Optional" badge: small caps pill instead of parenthesized text. */
.optional {
  display: inline-flex; align-items: center;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.5; white-space: nowrap;
  color: var(--ink-tertiary);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 1px 9px;
}

/* Honeypot: robustly visually hidden + offscreen, never visible.
   Not display:none (so naive bots still fill it). High-specificity
   overrides below ensure generic form-control rules cannot restyle it. */
.hp-field {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important; height: 1px !important;
  min-height: 0 !important;
  margin: -1px !important; padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
#syllabus-form .hp-field label,
#syllabus-form .hp-field input[type="text"] {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  min-height: 0 !important;
  margin: -1px !important; padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1px !important;
  line-height: 1 !important;
}

/* Turnstile — official flexible widget fills its wrapper (~300px practical
   minimum, ~65px normal height); the wrapper only aligns it with the
   fields and guards page-level horizontal overflow (the injected iframe
   is never scaled or restyled — sizing/alignment live on the wrapper).
   No small-screen scale workaround is used. */
.turnstile-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
#turnstile-widget { line-height: 0; max-width: 100%; }

/* Action row — submit + verification. Base stacks in DOM order (submit,
   then verification) with no clipping; the >=900px desktop rule below
   shares one row when the pair fits, wrapping intrinsically otherwise. */
.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

/* Submit — strong blue gradient primary action with arrow chip. */
#syllabus-form button[type="submit"] {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: linear-gradient(135deg, #0B2A6F 0%, #1A5BFA 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: var(--dialog-text-md);
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(26,91,250,0.16);
  transition: background 150ms ease, box-shadow 150ms ease, transform 120ms ease;
  width: 100%;
}
@media (min-width: 480px) { #syllabus-form button[type="submit"] { width: auto; min-width: 176px; } }
#syllabus-form button[type="submit"][disabled] { opacity: 0.65; cursor: progress; }
#syllabus-form button[type="submit"][aria-busy="true"] { cursor: progress; }
/* Submit arrow: circled chevron chip that nudges on hover. */
#syllabus-form button[type="submit"] .submit-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
  transition: transform 150ms ease;
}
#syllabus-form button[type="submit"] .submit-arrow::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 7px; height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translate(-62%, -50%) rotate(45deg);
}
#syllabus-form button[type="submit"]:hover .submit-arrow { transform: translateX(3px); }
#syllabus-form button[type="submit"]:hover { background: linear-gradient(135deg, #14307A 0%, #2f6bff 100%); box-shadow: 0 3px 10px rgba(26,91,250,0.22); }
#syllabus-form button[type="submit"]:active { transform: translateY(1px); }
#syllabus-form button[type="submit"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Status — announced via role=status; rail color carries state. */
#syllabus-status {
  font-size: var(--dialog-text-md);
  line-height: 1.55;
  color: var(--ink);
  margin: 6px 0 0;
  padding: 12px 14px 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  display: flex; align-items: flex-start; gap: 10px;
}
#syllabus-status::before {
  content: "✓";
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary); color: #ffffff;
  font-size: var(--dialog-text-sm); font-weight: 700; line-height: 1;
  margin-top: 1px;
}
html[data-theme="light"] #syllabus-status { color: #18181b; background: #ffffff; border-color: rgba(11,42,111,0.12); }
html[data-theme="dark"] #syllabus-status { color: #f4f4f5; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
@media (prefers-color-scheme: light) { #syllabus-status { color: #18181b; background: #ffffff; border-color: rgba(11,42,111,0.12); } }
@media (prefers-color-scheme: dark) { #syllabus-status { color: #f4f4f5; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); } }
#syllabus-status[hidden] { display: none !important; }
#syllabus-status[data-state="error"] { border-left-color: #dc2626; }
#syllabus-status[data-state="error"]::before { content: "!"; background: #dc2626; }
#syllabus-status[data-state="pending"] { border-left-color: var(--primary); }
#syllabus-status:focus { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Privacy note under the form with a subtle divider. */
.dialog-info-note {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin: 4px 0 0;
  font-size: var(--dialog-text-sm);
  line-height: 1.55;
  color: var(--ink-tertiary);
}
html[data-theme="light"] .dialog-info-note { border-top-color: rgba(11,42,111,0.10); }
html[data-theme="dark"] .dialog-info-note { border-top-color: rgba(255,255,255,0.12); }

/* Dialog responsive geometry — desktop card vs mobile bottom sheet. */
@media (min-width: 641px) {
  /* Desktop: the dialog itself is the single scrolling region. The inner
     stays non-scrolling (both axes set explicitly so x-hidden cannot
     recompute y into a second scroller). */
  dialog#syllabus-dialog {
    max-width: min(calc(100vw - 32px), 520px);
    max-height: min(84vh, 720px);
    max-height: min(84dvh, 720px);
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }
  dialog#syllabus-dialog .dialog-inner {
    max-height: none;
    overflow-y: visible;
    overflow-x: visible;
    overscroll-behavior: auto;
    padding: 28px 28px calc(24px + env(safe-area-inset-bottom, 0px));
  }
}
/* Wide dialog (large tablet landscape / desktop): stacked top/bottom composition.
   A compact navy header band spans the full width on top; the form sits in the
   section below, centered at a comfortable measure. Below 900px the layout
   collapses to the base single column (DOM order = reading order). */
@media (min-width: 900px) {
  /* Viewport-safe height: at typical >=800px heights everything fits with
     no scrollbar; overflow-y:auto from the 641 rule stays as fallback. */
  dialog#syllabus-dialog {
    max-width: min(calc(100vw - 48px), 1260px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
  }
  dialog#syllabus-dialog .dialog-inner { padding: 0; }
  /* Stacked: header band on top, form section below (no side-by-side split). */
  .dialog-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .dialog-context {
    background: linear-gradient(160deg, #0B2A6F 0%, #1A5BFA 100%);
    color: #FFFFFF;
    padding: 30px 32px 18px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    /* Compact single-column flow: title, one short intro line, then three
       short check items — no left/right content columns; wraps gracefully. */
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
    align-items: start;
  }
  /* Context text is white-on-navy in both themes: the `html` prefix ties the
     theme-override specificity so these later rules win. */
  html .dialog-context #syllabus-dialog-title { color: #FFFFFF; font-size: 1.28rem; line-height: 1.2; max-width: none; padding-right: 48px; margin-bottom: 0; }
  html .dialog-context .dialog-desc { color: rgba(255, 255, 255, 0.86); margin-bottom: 0; max-width: 60ch; line-height: 1.5; }
  .dialog-context .dialog-info { margin-bottom: 0; }
  html .dialog-context .dialog-info-title { color: #FFFFFF; margin-bottom: 6px; }
  html .dialog-context .dialog-info-list { color: rgba(255, 255, 255, 0.87); gap: 6px; list-style: none; padding-left: 0; }
  .dialog-context .dialog-info-list li { position: relative; padding-left: 22px; }
  .dialog-context .dialog-info-list li::before {
    content: "✓";
    position: absolute; left: 0; top: 2px;
    width: 15px; height: 15px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    font-size: 10px; font-weight: 700; line-height: 1;
  }
  .dialog-context .dialog-info-list li::marker { color: var(--accent); }
  /* Close floats over the navy band: light glyph, no box, clear of content. */
  dialog#syllabus-dialog .dialog-close { color: rgba(255, 255, 255, 0.88); }
  dialog#syllabus-dialog .dialog-close:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.16); }
  #syllabus-form {
    border-top: none;
    margin: 0 auto;
    width: 100%;
    max-width: 680px;
    box-sizing: border-box;
    padding: 24px 32px calc(24px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
    /* Balanced centered column: enough top breathing room before the first
       field without the excess that pushed the modal tall. Top-aligned
       under the header band. */
    align-content: start;
  }
  /* Full-width rows: Full name, Email, and Phone each take the full
     centered measure; no side-by-side identity grid at any width. */
  #syllabus-form .identity-row { grid-template-columns: minmax(0, 1fr); }
  /* Action row: compact submit left, flexible Turnstile right — sized by
     the row's own width, not the viewport. flex-wrap drops the pair to two
     lines whenever 172px submit + 16px gap + 300px widget basis (488px)
     cannot fit the actual content box (at full 680px measure: 616px inner,
     so one row with the widget grown to fill the rest). Center alignment
     pairs the 48px button with the ~65px widget. The widget cell may grow
     but never shrinks below its floor, so the widget never distorts or
     clips: the row wraps instead of overflowing past the
     field/divider/note edges. DOM order (submit, verification) matches
     visual/tab order — no reordering. Stacks below 900px via the base
     single column. */
  .form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 16px;
  }
  .form-actions button[type="submit"] { flex: 0 0 auto; }
  .form-actions .turnstile-wrap {
    /* Flexible column: grows to consume the space right of Submit while the
       official flexible widget expands naturally (~300px practical minimum,
       ~65px normal height). Basis 300px drives the wrap decision; the
       min() floor keeps the cell inside the content box on tiny screens. */
    flex: 1 1 300px;
    min-width: min(300px, 100%);
    max-width: 100%;
    margin-left: auto;
    justify-content: flex-end;
    min-height: 0;
  }
  /* Compact left-aligned action relating to the right-aligned Turnstile:
     deliberate minimum width for label + arrow + 48px target,
     never full-width on desktop (mobile sheet keeps full-width below). */
  #syllabus-form button[type="submit"] { width: auto; min-width: 172px; justify-self: start; }
}
html[data-theme="light"] dialog#syllabus-dialog.is-success .dialog-close { color: #52525b; }
html[data-theme="dark"] dialog#syllabus-dialog.is-success .dialog-close { color: #A1A1AA; }
#syllabus-form { gap: 14px; }
.dialog-info { margin-bottom: 16px; }

@media (max-width: 640px) {
  dialog#syllabus-dialog {
    width: 100%;
    max-width: none;
    margin: auto 0 0 0;
    max-height: 86vh;
    max-height: 86dvh;
    border-radius: 10px 10px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    overflow: hidden;
  }
  dialog#syllabus-dialog .dialog-inner {
    padding: 24px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    max-height: 86vh;
    max-height: 86dvh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }
  #syllabus-dialog-title { padding-right: 48px; }
  .dialog-success { min-height: 320px; padding: 64px 20px 44px; }
  .dialog-info { margin-bottom: 16px; }
  #syllabus-form { padding-top: 16px; gap: 10px; }
  #syllabus-form button[type="submit"] { width: 100%; min-width: 0; }
}

/* --------------------------------------------------------------------------
   12. FAQ — native details disclosures in a reading column.
   -------------------------------------------------------------------------- */
.faq { padding-block: 40px; }
@media (min-width: 768px) { .faq { padding-block: 56px; } }
html[data-theme="light"] .faq { background: #ffffff; }
#faq-heading {
  font-family: var(--sans);
  font-size: clamp(2.0rem, 3.8vw, 3.0rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.02;
  margin: 0 auto 28px;
  text-align: center;
  max-width: 16ch;
  text-wrap: balance;
}
.faq-list { margin-top: 0; display: grid; gap: 14px; max-width: 720px; margin-inline: auto; }
.faq-item {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
html[data-theme="light"] .faq-item { background: #ffffff; border-color: rgba(11,42,111,.11); }
.faq-item details { padding: 18px 20px; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600; font-size: 1.02rem; line-height: 1.35; letter-spacing: -0.02em;
  color: var(--ink);
  user-select: none;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-tertiary);
  font-weight: 400; font-size: 1.15rem; line-height: 1;
  transition: transform 180ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.faq-item details[open] summary::after {
  transform: rotate(45deg);
  background: var(--surface-raised);
  border-color: var(--border-strong);
  color: var(--primary);
}
.faq-item summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
html[data-theme="light"] .faq-item summary::after { background: #f2f7ff; border-color: rgba(11,42,111,.12); color: #0B2A6F; }
@media (prefers-color-scheme: dark) {
  .faq-item { background: var(--surface-raised); border-color: var(--border-strong); }
  .faq-item summary::after { background: var(--surface); border-color: var(--border); }
}
html[data-theme="dark"] .faq-item { background: var(--surface-raised); border-color: var(--border-strong); }
.faq-q { margin: 0; }
@media (prefers-color-scheme: dark) { .faq-q { color: #f4f4f5; } }
.faq-a { font-size: 0.94rem; line-height: 1.6; color: var(--ink-secondary); margin-top: 10px; }
@media (prefers-color-scheme: dark) { .faq-a { color: #d4d4d8; } }
html[data-theme="dark"] .faq-a { color: #d4d4d8; }
html[data-theme="light"] .faq-a { color: #52525b; }
.faq-a p { margin: 0; }

/* --------------------------------------------------------------------------
   13. Final CTA band — deep navy invitation.
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--hero-bg);
  color: var(--hero-fg);
  border-radius: 12px; padding: 40px 28px;
  display: grid; gap: 22px;
  box-shadow: 0 20px 46px -28px rgba(11,42,111,.48);
  position: relative; overflow: hidden; text-align: center;
  isolation: isolate;
  border: 1px solid var(--hero-border);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 90% at 85% 0%, rgba(191,219,254,0.22), transparent 60%), radial-gradient(ellipse 60% 70% at 12% 100%, rgba(52,211,153,0.18), transparent 55%);
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.1fr auto; align-items: center; text-align: left; padding: 52px 44px; } }
.cta-band h2 { color: inherit; margin: 0 0 10px; font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.cta-band p { color: rgba(255,255,255,0.84); margin: 0; max-width: none; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (min-width: 860px) { .cta-band-actions { justify-content: flex-end; } }
html[data-theme="light"] main > .section:last-child { background: #f6f8fc; }

/* --------------------------------------------------------------------------
   14. Footer.
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 40px 28px; font-size: 0.84rem; color: var(--ink-tertiary); }
html[data-theme="light"] .site-footer { background: #ffffff; border-top-color: rgba(11,42,111,.10); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 24px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wordmark { font-family: var(--sans); font-synthesis: none; }
.footer-brand strong { color: var(--ink); font-size: 1.3rem; font-weight: 650; letter-spacing: -0.03em; }
.footer-logo { width: 24px; height: 24px; object-fit: contain; }
.footer-about { margin: 0; font-size: 0.86rem; color: var(--ink-secondary); max-width: 34ch; }
.footer-status { margin: 12px 0 0; color: var(--ink); font-size: 0.76rem; font-weight: 600; }
.footer-col-title {
  font-family: var(--sans); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px;
}
.footer-links { display: grid; gap: 6px; font-size: 0.86rem; }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); margin-top: 32px; padding-top: 18px;
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.03em;
}
html[data-theme="light"] .footer-base { border-top-color: rgba(11,42,111,.10); }

/* --------------------------------------------------------------------------
   15. Legal + contact pages — same header/footer/tokens as the main site.
   -------------------------------------------------------------------------- */
.legal-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.legal-header { border-bottom: 1px solid var(--border); }
.legal-header .wrap { min-height: 72px; display: flex; align-items: center; }
.legal-home { color: var(--ink); font-size: 1.35rem; font-weight: 650; letter-spacing: -0.03em; text-decoration: none; }
.legal-main { flex: 1 1 auto; padding-block: 40px 64px; }
@media (min-width: 768px) { .legal-main { padding-block: 56px 80px; } }
.legal-content { width: min(100% - 40px, 720px); margin: 0 auto; padding-block: 72px; }
.legal-content h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4rem); }
.legal-updated { margin: 12px 0 40px; color: var(--ink-tertiary); font-size: 0.82rem; }
.legal-content h2 { margin: 36px 0 10px; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; }
.legal-content p { margin: 0 0 16px; color: var(--ink-secondary); }
.legal-content ul { margin: 0 0 16px; padding-left: 1.2rem; color: var(--ink-secondary); }
.legal-content li + li { margin-top: 6px; }
.legal-footer { margin-top: auto; }

.legal-hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  border-radius: var(--radius);
  border: 1px solid var(--hero-border);
  padding: 32px 26px;
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.legal-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 90% at 85% 0%, rgba(191,219,254,0.22), transparent 60%), radial-gradient(ellipse 60% 70% at 12% 100%, rgba(52,211,153,0.18), transparent 55%);
  pointer-events: none;
}
@media (min-width: 768px) { .legal-hero { padding: 44px 40px; } }
.legal-eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin: 0 0 12px;
}
.legal-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em; line-height: 1.02;
  color: #FFFFFF;
  text-wrap: balance;
  max-width: 20ch;
}
.legal-lead { margin: 0; color: rgba(255,255,255,0.84); max-width: 62ch; line-height: 1.6; font-size: 1rem; text-wrap: pretty; }
.legal-updated { margin: 18px 0 0; color: var(--ink-tertiary); font-size: 0.82rem; }
html[data-theme="light"] .legal-updated { color: #71717a; }
.legal-grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 860px) { .legal-grid { grid-template-columns: 1fr 1fr; gap: 18px; } }
.legal-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
@media (min-width: 768px) { .legal-card { padding: 26px 24px; } }
html[data-theme="light"] .legal-card { background: #ffffff; border-color: rgba(11,42,111,0.11); }
.legal-card h2 { margin: 0 0 10px; font-size: 1.18rem; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.legal-card p { margin: 0 0 12px; color: var(--ink-secondary); font-size: 0.95rem; line-height: 1.65; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul { margin: 0 0 12px; padding-left: 1.2rem; color: var(--ink-secondary); font-size: 0.95rem; line-height: 1.65; display: grid; gap: 6px; }
.legal-card ul:last-child { margin-bottom: 0; }
.legal-card li::marker { color: var(--primary); }
.legal-card a { overflow-wrap: anywhere; }

/* Contact page: compact centered composition reusing legal tokens.
   Single heading, one neutral line, one prominent email action. */
.contact-main { display: flex; align-items: center; }
.contact-main > .wrap { width: 100%; }
.contact-wrap { max-width: 600px; margin-inline: auto; text-align: center; padding-block: 32px 48px; }
.contact-wrap .legal-eyebrow { color: var(--ink-tertiary); }
.contact-wrap h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em; line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}
.contact-lead { margin: 0; color: var(--ink-secondary); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
.contact-email {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; min-width: 44px;
  margin-top: 24px;
  padding: 14px 30px;
  font-size: 1.05rem; font-weight: 600; letter-spacing: 0.01em;
  color: #FFFFFF;
  background: linear-gradient(135deg, #0B2A6F 0%, #1A5BFA 100%);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(26,91,250,0.16);
  transition: background 150ms ease, box-shadow 150ms ease, transform 120ms ease;
  overflow-wrap: anywhere;
}
.contact-email:hover { background: linear-gradient(135deg, #14307A 0%, #2f6bff 100%); color: #FFFFFF; box-shadow: 0 3px 10px rgba(26,91,250,0.22); }
.contact-email:active { transform: translateY(1px); }
.contact-email:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* No-JS fallback note (only rendered inside <noscript>). */
.noscript-note {
  margin: 16px auto;
  max-width: 62ch;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   16. Responsive guards — no horizontal overflow at 320–1440px.
   Viewport-specific hero sizes live inside max-width media only.
   -------------------------------------------------------------------------- */
.hero-ai-line, .hero-course, .hero h1, .hero .btn-hero,
.syllabus-actions button, #syllabus-form input, #syllabus-form select,
#syllabus-form button[type="submit"], .cta-band, .module-title {
  max-width: 100%;
  box-sizing: border-box;
}
/* Touch targets: summary rows keep a 44px minimum; module triggers use the
   larger base min-height above (with a tighter responsive value below). */
.faq-item summary { min-height: 44px; }

@media (max-width: 768px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-hero { width: 100%; }
  .syllabus-actions { width: 100%; }
  .syllabus-actions button { width: 100%; }
  .cta-band-actions .btn { width: 100%; }
}
@media (max-width: 414px) {
  .wrap { padding-inline: 16px; }
  .hero-meta-item { max-width: 100%; }
}

@media (max-width: 640px) {
  .section { padding-block: 48px; }
  .topics, .faq, .syllabus { padding-block: 48px; }
  .hero { padding-block: 56px 72px; text-align: left; padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
  .hero .wrap { max-width: 100%; }
  .hero h1 { margin-top: 0; margin-bottom: 16px; gap: 6px; }
  .hero-ai { letter-spacing: -0.04em; }
  .hero-ai-line { font-size: clamp(1.9rem, 11vw, 3.1rem); letter-spacing: -0.04em; line-height: 0.94; }
  .hero-course { font-size: clamp(1.15rem, 5.4vw, 1.6rem); white-space: normal; text-wrap: balance; }
  .hero-eyebrow { font-size: 0.7rem; margin-bottom: 14px; }
  .hero-kicker { font-size: 1.02rem; margin-bottom: 14px; text-wrap: balance; }
  .hero-meta { margin-bottom: 16px; gap: 8px; }
  .hero-lead { font-size: 1rem; line-height: 1.6; margin-bottom: 22px; text-wrap: pretty; }
  .hero-ctas { flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; }
  .hero .btn-hero { justify-content: center; text-align: center; min-height: 52px; font-size: 1rem; line-height: 1.4; white-space: normal; text-wrap: balance; }
  /* Long conversion labels must wrap (never force horizontal overflow) once
     the how-it-works and final CTAs go full-width on narrow screens. */
  .how-ctas .btn,
  .cta-band-actions .btn {
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .cta-band-actions { flex-direction: column; align-items: stretch; }
  .topic-card { min-height: 400px; flex-basis: 310px; padding: 0; border-radius: 10px; }
  .topic-body { padding: 22px 18px 18px; }
  .topic-card h3 { font-size: clamp(1.78rem, 4.6vw + 0.50rem, 2.10rem); line-height: 1.08; }
  .marquee-track--forward { animation-duration: 42s; }
  .marquee-track--reverse { animation-duration: 44s; }
  .site-header .wrap { min-height: 64px; padding-block: 8px; }
  .brand-logo { height: 38px; max-width: 176px; }
  .module-item, .module-trigger { min-height: 148px; }
  .module-trigger { padding: 20px; }
  .cta-band { padding: 32px 22px; }
  .outcomes-grid, .steps { gap: 14px; }
}
/* Mobile FAQ keeps the reduced rhythm too. */
@media (max-width: 640px) {
  .faq { padding-block: 40px; }
}
@media (min-width: 641px) and (max-width: 767px) {
  .topic-card { min-height: 480px; }
}
@media (max-width: 380px) {
  /* Display lines stay huge but must fit narrow fallback fonts: 10vw keeps
     the 11-char ENGINEERING line inside a 320px gutter box with margin. */
  .hero-ai-line { font-size: clamp(1.7rem, 10vw, 2.5rem); white-space: nowrap; overflow-wrap: normal; word-break: normal; hyphens: none; text-align: left; }
  .hero-course { font-size: clamp(1.05rem, 5vw, 1.45rem); white-space: normal; overflow-wrap: break-word; word-break: normal; text-align: left; text-wrap: balance; }
  .hero .btn-hero {
    max-width: 100%; width: 100%;
    white-space: normal; text-wrap: balance;
    overflow-wrap: anywhere; word-break: normal;
    text-align: left; justify-content: flex-start;
    box-sizing: border-box;
    padding: 14px 18px;
    font-size: 0.9rem; line-height: 1.35;
  }
  .hero-ctas { width: 100%; max-width: 100%; box-sizing: border-box; padding-inline: 0; align-items: flex-start; justify-content: flex-start; text-align: left; }
}
@media (max-width: 320px) {
  .hero-ai-line { font-size: clamp(1.6rem, 10vw, 2.2rem); letter-spacing: -0.03em; }
  .hero-course { font-size: clamp(1rem, 5vw, 1.3rem); }
}

/* Tablet hero composition — centered narrow container, left-aligned contents. */
@media (min-width: 641px) and (max-width: 1023px) {
  .hero { padding-block: 64px 80px; text-align: left; }
  .hero .wrap { max-width: 860px; display: flex; flex-direction: column; align-items: stretch; }
  .hero h1 { align-items: flex-start; text-align: left; }
  .hero-ai { text-align: left; }
  .hero-ai-line { font-size: clamp(2.4rem, 7.5vw, 4.5rem); letter-spacing: -0.04em; line-height: 0.92; text-align: left; }
  .hero-course { font-size: clamp(1.4rem, 3.2vw, 2rem); text-align: left; }
  .hero-kicker { text-align: left; }
  .hero-meta { justify-content: flex-start; }
  .hero-lead { text-align: left; margin-inline: 0; }
  .hero-ctas { justify-content: flex-start; text-align: left; }
}

/* Desktop hero composition — centered narrow container, left-aligned contents. */
@media (min-width: 1024px) {
  .hero { padding-block: 72px 88px; text-align: left; }
  .hero .wrap { max-width: 880px; display: flex; flex-direction: column; align-items: stretch; }
  .hero h1 { margin: 0 0 20px; max-width: 100%; align-items: flex-start; text-align: left; }
  .hero-ai { text-align: left; }
  .hero-ai-line { font-size: clamp(3rem, 5.5vw, 6rem); letter-spacing: -0.04em; line-height: 0.92; text-align: left; }
  .hero-course { font-size: clamp(1.6rem, 2.6vw, 2.3rem); text-align: left; }
  .hero-kicker { margin-bottom: 12px; text-align: left; }
  .hero-meta { margin-bottom: 20px; justify-content: flex-start; }
  .hero-lead { margin-bottom: 28px; max-width: 56ch; text-align: left; margin-inline: 0; }
  .hero-ctas { justify-content: flex-start; text-align: left; }
  /* Symmetric backdrop for the centered composition: faint dotted field
     faded radially, clipped by .hero overflow. Decorative only. */
  .hero::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1.7px) 0 0 / 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 65% 85% at 50% 38%, black 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 65% 85% at 50% 38%, black 25%, transparent 75%);
    pointer-events: none;
  }
}

/* Desktop syllabus composition — centered intro, capped grid. */
@media (min-width: 1024px) {
  .syllabus { padding-block: 88px; }
  .syllabus-head { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  /* Same column-axis fix as mobile: the base 320px row basis would leave a
     tall empty block between intro text and cards. */
  .syllabus-head-text { flex: 0 1 auto; min-width: 0; width: 100%; max-width: 64ch; }
  #syllabus-heading { margin-inline: auto; max-width: 22ch; }
  .syllabus-lead { margin-inline: auto; }
  .syllabus-actions { align-self: center; }
  .module-list { max-width: 1020px; margin-inline: auto; gap: 18px; }
}

/* --------------------------------------------------------------------------
   17. Reduced motion — the marquee is the only continuous animation;
   remove it (and smooth scrolling) for users who ask for less motion.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track,
  .marquee-track--forward,
  .marquee-track--reverse {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transform: none !important;
    transform: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
