/* =====================================================================
   Emergera website layer (v3). Sits on the brand system:
   assets/brand/tokens.css + assets/brand/components.css (em-* components).
   Only page layout and site-specific pieces live here; colours, type,
   glass, buttons, forms and states come from the brand. Every value that
   changes between dark (default) and light uses a brand token, so
   data-theme="light" on <html> just works.
   ===================================================================== */

html { background: var(--em-bg); }
body.em-page { overflow-x: clip; }
.em-page main a:not([class]) { color: var(--em-link); text-underline-offset: .18em; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[id] { scroll-margin-top: calc(var(--em-nav-h) + 24px); }
img { max-width: 100%; height: auto; }
main { position: relative; }

/* ---- Header extras ---- */
.site-nav .em-nav__links a { white-space: nowrap; }
.theme-toggle { color: var(--em-text-muted); }
.theme-toggle:hover { color: var(--em-text); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="light"] .theme-toggle .i-sun, :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
.banner-cd { color: var(--em-banner-link); font-weight: 600; }
.banner-cd:empty { display: none; }
.page-crumbs { width: min(var(--em-container), 100% - 2 * var(--em-gutter)); margin: 20px auto 0; position: relative; z-index: 1; }
@media (max-width: 1100px) and (min-width: 900px) { .site-nav .em-nav__links a { padding-inline: 7px; font-size: .8125rem; } .nav-cta { display: none; } }
@media (max-width: 420px) { .nav-cta { display: none; } }

/* ---- Type helpers ---- */
.eyebrow { font: 600 var(--em-fs-sm)/1.3 var(--em-font-body); color: var(--em-accent-text); letter-spacing: -0.005em; margin: 0 0 12px; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .em-title { margin-block: 0 14px; }
.section-head .em-lead { margin: 0; }
.center .em-lead { margin-inline: auto; }
.muted { color: var(--em-text-muted); }
.note { font-size: var(--em-fs-sm); color: var(--em-text-muted); margin: 0; }
.stack { display: grid; gap: 18px; align-content: start; }

/* ---- Heroes ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; display: grid; place-items: center;
  min-height: clamp(640px, 92vh, 980px); padding-block: clamp(56px, 7vw, 96px) clamp(220px, 20vw, 290px); }
.hero .em-aurora { --aurora-y: 88%; z-index: -1; }
.hero-inner { display: grid; justify-items: center; gap: 22px; width: min(1000px, 100% - 2 * var(--em-gutter)); }
.hero h1 { margin: 0; font-family: var(--em-font-display); font-weight: 650; font-size: clamp(3.3rem, 1.1rem + 7.4vw, 7.5rem); line-height: .95; letter-spacing: -0.05em; }
.hero h1 .l { display: inline-block; }
.hero .sub { margin: 0; font: 600 var(--em-fs-xl)/1.2 var(--em-font-display); letter-spacing: -0.02em; max-width: 30ch; }
.hero .em-lead { margin: 0 auto; max-width: 48ch; }
.hero .em-btn-group { justify-content: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 16px 4px 12px; border-radius: 999px; text-decoration: none;
  font-size: .875rem; font-weight: 500; color: var(--em-text); background: var(--em-fill-1); box-shadow: inset 0 1px 0 var(--em-rim-hi), inset 0 0 0 1px var(--em-rim);
  -webkit-backdrop-filter: var(--em-glass-blur); backdrop-filter: var(--em-glass-blur); }
.hero-badge:hover { background: var(--em-fill-2); }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--em-success); box-shadow: 0 0 10px var(--em-success); }
.hero-badge b { font-weight: 600; color: var(--em-accent-text); }
/* The sun: a soft, physical light source sitting on the horizon */
.hero-sun { position: absolute; left: 50%; top: 88%; width: min(62vw, 720px); aspect-ratio: 2 / 1; transform: translate(-50%, -100%); z-index: -1; pointer-events: none; clip-path: inset(-200% -200% 0 -200%); }
.hero-sun::before { content: ""; position: absolute; left: 50%; bottom: -62%; width: 44%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #FFE3B0 0%, #FFC24A 18%, #FF8A1F 42%, #FF5A1F 62%, rgba(255,90,31,0) 72%); filter: blur(2px); opacity: .95; }
.hero-sun::after { content: ""; position: absolute; left: 50%; bottom: -60%; width: 110%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,120,40,.42), rgba(255,90,31,.12) 55%, rgba(255,90,31,0)); filter: blur(24px); }
.horizon { position: absolute; left: 0; right: 0; top: 88%; height: 1px; z-index: -1; background: linear-gradient(90deg, transparent, rgba(255,170,90,.7) 30%, rgba(255,210,150,.95) 50%, rgba(255,170,90,.7) 70%, transparent); box-shadow: 0 0 24px 2px rgba(255,120,40,.35); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.model { position: absolute; left: 50%; bottom: clamp(20px, 3vw, 36px); transform: translateX(-50%); margin: 0; list-style: none;
  display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--em-fill-1); -webkit-backdrop-filter: var(--em-glass-blur); backdrop-filter: var(--em-glass-blur);
  box-shadow: inset 0 1px 0 var(--em-rim-hi), inset 0 0 0 1px var(--em-rim), var(--em-shadow-2); font: 500 .875rem/1 var(--em-font-body); color: var(--em-text-muted); }
.model li { padding: 9px 14px; border-radius: 999px; display: flex; gap: 6px; align-items: baseline; white-space: nowrap; }
.model li span { font-size: .6875rem; font-variant-numeric: tabular-nums; opacity: .7; }
.model li:last-child { color: #fff; background: linear-gradient(180deg, rgba(255,122,61,.95), rgba(236,78,20,.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .l { animation: rise .9s var(--em-ease-out) both; }
  .hero h1 .l:nth-child(2) { animation-delay: .1s; } .hero h1 .l:nth-child(3) { animation-delay: .2s; }
  .hero .hero-badge, .hero .sub, .hero .em-lead, .hero .em-btn-group, .page-hero .hero-copy > * { animation: rise .9s var(--em-ease-out) .2s both; }
  .hero-sun { animation: sunrise 2.2s var(--em-ease-out) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes sunrise { from { transform: translate(-50%, -60%); opacity: 0; } to { transform: translate(-50%, -100%); opacity: 1; } }
}
@media (max-width: 700px) {
  .hero { min-height: 0; padding-bottom: 240px; }
  .model { font-size: .75rem; gap: 0; max-width: calc(100% - 24px); }
  .model li { padding: 8px 9px; } .model li span { display: none; }
  .hero-sun { width: 115vw; }
}

/* Inner-page hero */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(36px, 6vw, 88px) clamp(40px, 6vw, 80px); }
.page-hero .em-aurora { --aurora-y: 125%; z-index: -1; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.page-hero .hero-copy { display: grid; gap: 18px; justify-items: start; }
.page-hero .hero-copy > * { max-width: 880px; }
.page-hero h1 { margin: 0; font-family: var(--em-font-display); font-weight: 650; font-size: var(--em-fs-4xl); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.page-hero .em-lead { margin: 0; }
.page-hero .em-btn-group { margin-top: 8px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---- Sections ---- */
.band { position: relative; isolation: isolate; overflow: hidden; }
.band > .em-aurora { z-index: -1; --aurora-y: 110%; }

/* Grids */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }
.grid-2 { --min: 360px; } .grid-3 { --min: 280px; } .grid-4 { --min: 220px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split.center-y { align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Feature cards */
.em-card h3 { margin: 0 0 8px; font: 600 var(--em-fs-lg)/1.25 var(--em-font-display); letter-spacing: -0.02em; }
.em-card p { margin: 0; color: var(--em-text-muted); }
.em-card p + p { margin-top: 10px; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 12px; font: 600 .8125rem/1 var(--em-font-body);
  color: var(--em-accent-text); background: var(--em-chip-ember-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--em-ember) 30%, transparent); font-variant-numeric: tabular-nums; }
.em-card .em-link { margin-top: 16px; display: inline-flex; }
a.em-card.go { padding-inline-end: 56px; }
a.em-card.go::after { content: "→"; position: absolute; inset-inline-end: 24px; top: clamp(20px, 3vw, 32px); color: var(--em-text-muted); transition: transform var(--em-dur-2) var(--em-ease-out), color var(--em-dur-2); }
a.em-card.go:hover::after { transform: translateX(4px); color: var(--em-accent-text); }
[dir="rtl"] a.em-card.go::after { content: "←"; }
[dir="rtl"] a.em-card.go:hover::after { transform: translateX(-4px); }

/* Steps (Learn, Build, Prove...) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.steps p { font-size: var(--em-fs-sm); }

/* Featured program block */
.featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .featured { grid-template-columns: 1fr; } }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.weeks { list-style: none; padding: 0; margin: 0; display: grid; }
.weeks li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: baseline; padding: 14px 0; box-shadow: inset 0 -1px 0 var(--em-rim); }
.weeks li b { font: 600 .8125rem/1 var(--em-font-body); color: var(--em-accent-text); font-variant-numeric: tabular-nums; }

/* Agent demo console: always a dark terminal, in both themes */
.demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.console { color-scheme: dark; background: #080A14; color: #F5F5F7; border-radius: 22px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(255,255,255,.1), 0 40px 90px -40px rgba(0,0,0,.8), 0 30px 90px -50px rgba(255,90,31,.5); }
.console-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.08); font: 500 .75rem/1 var(--em-font-mono); color: #A1A3B3; }
.console-bar .dots { display: flex; gap: 6px; }
.console-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.console-bar .dots i:first-child { background: #FF5F57; } .console-bar .dots i:nth-child(2) { background: #FEBC2E; } .console-bar .dots i:nth-child(3) { background: #28C840; }
.console-step { margin-inline-start: auto; color: #FFC24A; }
.console-task { margin: 0; padding: 16px 18px 6px; font: 600 1rem/1.4 var(--em-font-display); }
.console-task::before { content: "Task  "; font: 500 .75rem/1 var(--em-font-body); color: #A1A3B3; }
.trace { list-style: none; margin: 0; padding: 8px 18px 20px; display: grid; align-content: start; gap: 10px; height: 380px; overflow-y: auto; scroll-behavior: smooth; }
.tr { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
.tr-tag { font: 600 .6875rem/1 var(--em-font-body); padding: 6px 0; text-align: center; border-radius: 8px; box-shadow: inset 0 0 0 1px currentColor; }
.tr-body { margin: 0; font-size: .9375rem; line-height: 1.5; color: #F5F5F7; min-height: 1.5em; }
code.tr-body { font: 500 .8125rem/1.55 var(--em-font-mono); color: #FFD28A; background: rgba(255,176,32,.08); border-radius: 8px; padding: 4px 8px; word-break: break-word; }
.tr-think .tr-tag { color: #FF8A5B; } .tr-act .tr-tag { color: #FFC24A; } .tr-observe .tr-tag { color: #8AB4FF; } .tr-approve .tr-tag { color: #30D5A0; }
.tr-answer .tr-tag { color: #07080F; background: var(--em-sunrise); box-shadow: none; }
.tr-answer .tr-body { font-weight: 600; }
.tr-actions { grid-column: 2; display: flex; gap: 8px; }
@media (prefers-reduced-motion: no-preference) { .tr { animation: trin .35s ease both; } @keyframes trin { from { opacity: 0; transform: translateY(6px); } } }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } .trace { height: 340px; } }

/* Roadmap marquee */
.marquee { overflow: hidden; padding-block: 26px; box-shadow: inset 0 1px 0 var(--em-rim), inset 0 -1px 0 var(--em-rim);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; }
.marquee span { font: 650 clamp(1.6rem, 1rem + 2.4vw, 2.8rem)/1 var(--em-font-display); letter-spacing: -0.035em; color: var(--em-text-muted); white-space: nowrap; }
.marquee span:nth-child(3n+1) { color: var(--em-text); }
.marquee span::after { content: ""; display: inline-block; width: .3em; height: .3em; margin-inline-start: 48px; border-radius: 50%; vertical-align: middle; background: var(--em-sunrise); }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marq 48s linear infinite; } .marquee:hover .marquee-track { animation-play-state: paused; } @keyframes marq { to { transform: translateX(-50%); } } }
@media (prefers-reduced-motion: reduce) { .marquee-track { flex-wrap: wrap; width: auto; gap: 14px 32px; justify-content: center; padding-inline: var(--em-gutter); } .marquee span[aria-hidden] { display: none; } .marquee { -webkit-mask: none; mask: none; } }

/* Career partner hand-off */
.partner-logo { display: inline-flex; align-items: center; width: fit-content; background: #fff; border-radius: 14px; padding: 12px 18px; box-shadow: var(--em-shadow-2), inset 0 0 0 1px rgba(0,0,0,.06); }
.partner-logo img { display: block; height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.handoff { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.handoff .em-card { display: grid; gap: 14px; align-content: start; }
.handoff ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.handoff li { display: flex; gap: 10px; align-items: baseline; }
.handoff li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--em-ember); transform: translateY(-2px); }
.handoff .alt li::before { background: var(--em-success); }
.handoff-bridge { display: grid; place-items: center; color: var(--em-accent-text); font-size: 1.5rem; }
[dir="rtl"] .handoff-bridge { transform: scaleX(-1); }
@media (max-width: 700px) { .handoff { grid-template-columns: 1fr; } .handoff-bridge { transform: rotate(90deg) !important; } }

/* Leaders */
.leaders { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.em-card.leader { display: grid; gap: 18px; align-content: start; padding: 14px; }
.leader-photo { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--em-fill-1); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leader-body { padding: 0 8px 10px; display: grid; gap: 6px; }
.leader-body h3 { margin: 0; }
.leaders-full .leader-body p:not(.em-label) { font-size: var(--em-fs-sm); }
@media (min-width: 601px) and (max-width: 860px) { .leaders { grid-template-columns: repeat(3, minmax(0, 1fr)); } .leaders-full { grid-template-columns: 1fr 1fr; } }

/* Instructor */
.instructor { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }

.hero-person { margin: 0; display: grid; gap: 14px; width: min(100%, 340px); justify-self: end; }
.hero-person figcaption { display: grid; gap: 2px; }
.hero-person figcaption b { font: 600 var(--em-fs-lg)/1.2 var(--em-font-display); }
.hero-person figcaption span { color: var(--em-text-muted); font-size: var(--em-fs-sm); }
@media (max-width: 900px) { .hero-person { justify-self: start; grid-template-columns: 110px 1fr; align-items: center; width: min(100%, 420px); } }

/* Course facts + countdown */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; }
.facts div { padding: 14px 16px; border-radius: 16px; background: var(--em-fill-1); box-shadow: inset 0 0 0 1px var(--em-rim); }
.facts dt { font-size: .75rem; color: var(--em-text-muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.countdown-wrap { display: grid; gap: 10px; max-width: 480px; }
.countdown-wrap .note { padding-inline-start: 4px; }

/* Curriculum */
.curriculum { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.curriculum > li { display: grid; grid-template-columns: 100px minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: start; }
.curriculum .wk b { display: block; font: 650 2.5rem/1 var(--em-font-display); letter-spacing: -0.04em; background: var(--em-sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; }
.curriculum .wk span { font-size: .8125rem; color: var(--em-text-muted); }
.curriculum h3 { margin: 0 0 12px; }
.topics { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.topics li { font-size: .8125rem; padding: 5px 11px; border-radius: 999px; background: var(--em-fill-1); box-shadow: inset 0 0 0 1px var(--em-rim); }
.build { padding: 16px 18px; border-radius: 16px; background: var(--em-chip-ember-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--em-ember) 28%, transparent); }
.build .eyebrow { margin: 0; }
.em-card .build p { margin: 6px 0 0; color: var(--em-text); font-size: var(--em-fs-sm); }
@media (max-width: 900px) { .curriculum > li { grid-template-columns: 1fr; } }

/* Agent loop figure */
.loop { margin: 0; display: grid; gap: 12px; justify-items: center; }
.loop svg { width: min(100%, 360px); height: auto; }
.loop figcaption { font-size: var(--em-fs-sm); color: var(--em-text-muted); }
.loop .l-node { fill: var(--em-solid-surface); }
.loop .l-text { fill: var(--em-text); }
.loop .l-muted { fill: var(--em-text-muted); }
.loop .l-track { stroke: var(--em-rim); }
@media (prefers-reduced-motion: no-preference) { .loop .l-run { stroke-dasharray: 100; animation: loop 6s linear infinite; } @keyframes loop { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } } }

/* Registration and forms */
.register { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .register { grid-template-columns: 1fr; } }
.form-card { display: grid; gap: 20px; }
.form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.form-head strong { font: 600 var(--em-fs-lg)/1.2 var(--em-font-display); letter-spacing: -0.02em; }
.form-note { margin: 0; font-size: .8125rem; color: var(--em-text-muted); }
.form-msg[hidden], .form-msg:empty { display: none !important; }
.em-form[aria-busy="true"] :is(.em-input, .em-select, .em-textarea) { opacity: .65; }
.done :is(.em-input, .em-select, .em-textarea, .em-check) { opacity: .55; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px 16px; }
.footer-brand { display: grid; gap: 12px; align-content: start; grid-column: span 2; max-width: 440px; }
.footer-brand p { margin: 0; }
.footer-news { display: grid; gap: 8px; margin-top: 6px; container-type: inline-size; }
.site-footer .em-footer__grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
@media (min-width: 801px) { .site-footer .footer-brand { grid-column: auto; } }
@media (max-width: 800px) { .site-footer .em-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .site-footer .em-footer__grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }
.legal-links { display: flex; gap: 16px; }

/* Price block */
.price-line { display: flex; align-items: flex-end; gap: 14px; }
.price-line .em-price { font-size: clamp(3.5rem, 2rem + 4vw, 5rem); }
.price-line span:last-child { color: var(--em-text-muted); font-size: var(--em-fs-sm); line-height: 1.35; padding-bottom: 8px; }

/* Events */
.event { display: grid; gap: 12px; align-content: start; }
.event > .em-badge { justify-self: start; }
.event .when { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-top: 6px; }
.event .when span { color: var(--em-text-muted); font-size: var(--em-fs-sm); }
.event-lead { background-image: radial-gradient(80% 120% at 100% 0%, rgba(255,90,31,.18), transparent 60%); }
.notify { container-type: inline-size; display: grid; gap: 10px; }

/* Lists */
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bullets li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.bullets li::before { content: ""; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--em-sunrise); justify-self: center; }

/* CTA band */
.cta { text-align: center; display: grid; justify-items: center; gap: 18px; }
.cta h2 { margin: 0; font-family: var(--em-font-display); font-weight: 650; font-size: var(--em-fs-4xl); letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
.cta .em-btn-group { justify-content: center; }

/* Sticky enroll bar (course page) */
.enroll-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: var(--em-z-sticky); padding: 10px 0 calc(10px + var(--em-safe-bottom));
  background: var(--em-nav-bg); -webkit-backdrop-filter: var(--em-glass-blur); backdrop-filter: var(--em-glass-blur); box-shadow: inset 0 1px 0 var(--em-nav-line);
  transform: translateY(110%); transition: transform var(--em-dur-3) var(--em-ease-out); }
.enroll-bar.show { transform: none; }
.enroll-bar .em-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.enroll-bar .em-container > div { display: grid; }
.enroll-bar span { font-size: .8125rem; color: var(--em-text-muted); }

/* Legal prose */
.prose { max-width: 72ch; }
.prose h1 { font-family: var(--em-font-display); font-weight: 650; font-size: var(--em-fs-3xl); letter-spacing: -0.04em; margin: 0 0 8px; }
.prose h2 { font: 600 var(--em-fs-xl)/1.2 var(--em-font-display); letter-spacing: -0.02em; margin: 2em 0 .5em; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-inline-start: 1.2em; display: grid; gap: 8px; margin: 0 0 1em; }

/* Admin */
.admin-top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-top h1 { margin: 0; font-family: var(--em-font-display); font-size: var(--em-fs-2xl); letter-spacing: -0.035em; }
.admin-top .em-inline-form { min-width: min(100%, 420px); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.admin-stats > div { padding: 14px 16px; border-radius: 16px; background: var(--em-fill-1); box-shadow: inset 0 0 0 1px var(--em-rim); }
.admin-stats span { display: block; font-size: .75rem; color: var(--em-text-muted); }
.admin-stats b { font: 650 1.75rem/1.1 var(--em-font-display); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 16px; }
.admin-tabs #admin-csv { margin-inline-start: auto; }
.empty-state { padding: 40px 20px !important; text-align: center; }
.empty-state b { display: block; margin-bottom: 4px; }
.empty-state span { color: var(--em-text-muted); font-size: var(--em-fs-sm); }
.skeleton td span { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--em-skeleton), var(--em-skeleton-hi), var(--em-skeleton)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Breakpoints and edge cases */
@media (min-width: 1800px) { .hero h1 { font-size: 8.25rem; } }
@media (max-width: 360px) { .hero h1 { font-size: 2.9rem; } .hero .em-btn-group .em-btn { width: 100%; } }
@media print { .em-aurora, .hero-sun, .horizon, .em-nav, .em-banner, .enroll-bar, .marquee, .footer-news, .theme-toggle { display: none !important; } .hero { min-height: 0; padding-bottom: 32px; } }

/* Continuous page background: the aurora drifts behind every page, dimmed so content leads */
.page-aurora { opacity: .42; --aurora-y: 115%; }
[data-theme="light"] .page-aurora { opacity: .6; }

/* ---- Brand photography (brand/ai/images, served as AVIF/WebP/JPEG) ---- */
.hero-photo { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; opacity: .85; }
:root:not([data-theme="light"]) .hero:has(.hero-photo) .em-aurora { background: transparent; opacity: .5; }
:root:not([data-theme="light"]) .hero:has(.hero-photo) :is(.hero-sun, .horizon) { display: none; }
[data-theme="light"] .hero-photo { display: none; }
.scene { margin: 0 0 clamp(20px, 3vw, 32px); border-radius: var(--em-radius-xl); overflow: hidden; border: 1px solid var(--em-border);
  box-shadow: var(--em-shadow-2); aspect-ratio: 1264 / 520; background: #0b0a10; }
.scene picture, .scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.steps + .scene { margin: clamp(24px, 4vw, 40px) 0 0; }
.em-card__media picture { display: block; height: 100%; }
@media (max-width: 700px) { .scene { aspect-ratio: 4 / 3; } }
@media (max-width: 359px) { .em-card__media { margin: -18px -18px 16px; } }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.facts dd { overflow-wrap: anywhere; }
@media (max-width: 420px) { .facts--2 { grid-template-columns: 1fr; } }

/* ---- Phones: tighter, app-like layout ---- */
.bn-short { display: none; }
@media (max-width: 600px) {
  .em-banner { font-size: .8125rem; padding-block: 8px; padding-top: calc(8px + var(--em-safe-top)); gap: 4px 10px; flex-wrap: nowrap; white-space: nowrap; }
  .bn-long { display: none; } .bn-short { display: inline; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .em-banner .banner-cd { display: none; }

  .hero { padding-block: 40px 170px; }
  .hero-inner { gap: 16px; }
  .hero h1 { font-size: clamp(2.9rem, 1rem + 11vw, 4rem); }
  .hero .sub { font-size: 1.1875rem; max-width: 24ch; }
  .hero .em-lead { display: none; }
  .hero .em-btn-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 360px; }
  .hero .em-btn-group .em-btn { width: 100%; }
  .hero .em-btn-group .em-btn--primary { grid-column: 1 / -1; }
  .hero .em-btn-group .em-btn--lg { --h: 50px; font-size: 1rem; }

  .page-hero { padding-block: 24px 36px; }
  .page-hero .em-btn-group { display: grid; grid-template-columns: 1fr; width: 100%; }
  .page-hero .em-btn-group .em-btn { width: 100%; }

  /* Numbered cards read as a compact list */
  .em-card:has(> .num) { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; align-items: start; padding: 16px; }
  .em-card:has(> .num) > .num { grid-row: span 3; margin: 0; }
  .em-card:has(> .num) h3 { font-size: 1.0625rem; margin-bottom: 4px; }
  .em-card:has(> .num) p { font-size: .9375rem; }
  .grid, .steps { gap: 12px; }

  /* Leadership: photo beside the name, not a full-width portrait */
  .em-card.leader { grid-template-columns: 96px 1fr; align-items: center; gap: 14px; padding: 12px; }
  .em-card.leader .leader-photo { aspect-ratio: 1; border-radius: 14px; }
  .em-card.leader .leader-body { padding: 0; gap: 4px; }
  .leaders-full .em-card.leader { align-items: start; }
  .leaders { gap: 12px; }

  /* Footer: two link columns */
  .site-footer .em-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .site-footer .footer-brand { grid-column: 1 / -1; max-width: none; }
  .site-footer .em-footer__grid > div:last-child { grid-column: 1 / -1; }
  .site-footer .em-footer__grid > div:last-child ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }

  .em-section { padding-block: 56px; }
  .section-head { margin-bottom: 22px; }
}
/* The brand kit's stacked table uses a container query; give it a container */
.em-table-wrap { container-type: inline-size; }
@media (max-width: 600px) {
  .instructor { grid-template-columns: 88px 1fr; gap: 14px; align-items: start; }
  .instructor .leader-photo { max-width: none; aspect-ratio: 1; border-radius: 14px; }
  .instructor .em-headline { font-size: 1.375rem; }
}

/* ---- Phones and touch devices: smooth first ----
   Glass blur, moving blurred blobs and blended grain are repainted on every
   scroll frame. On phones they cost more than they add, so surfaces go
   solid and the aurora stands still. The nav and enroll bar keep their blur. */
@media (max-width: 820px), (pointer: coarse) {
  .page-aurora { display: none; }
  .em-aurora i { animation: none !important; will-change: auto; filter: blur(48px); }
  .em-aurora::after { display: none; }
  .em-card, .em-btn--glass, .em-chip, .hero-badge, .model {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .em-card { background-color: var(--em-surface); }
  .em-card::after { display: none; }
  .marquee-track { animation: none !important; }
}

@media (max-width: 600px) {
  /* One primary action in view: the hero owns it; the nav keeps only the menu */
  .nav-cta { display: none; }

  /* Menu: a clean full-screen sheet under the bar */
  /* Absolute to the sticky bar: its backdrop-filter would trap position: fixed */
  .em-nav__panel:not([hidden]) { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--nav-bottom, 60px)); z-index: var(--em-z-sticky);
    display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--em-gutter) calc(24px + var(--em-safe-bottom)); background: var(--em-bg); animation: none; }
  .em-nav__panel a { font: 600 1.375rem/1.2 var(--em-font-display); letter-spacing: -0.02em; min-height: 60px; display: flex; align-items: center; }
  .em-nav__panel a:last-child { margin-top: auto; justify-content: center; min-height: 54px; border-radius: 999px; box-shadow: none;
    color: #fff; font: 600 1.0625rem/1 var(--em-font-body); background: var(--em-sunrise); }
  html:has(.em-nav__panel:not([hidden])) { overflow: hidden; }

  /* Tap targets and readable sizes */
  .em-footer a, .em-breadcrumbs a, .em-banner a { min-height: 44px; display: inline-flex; align-items: center; }
  .em-breadcrumbs { font-size: .875rem; }
  .theme-toggle { --h: 44px; width: 44px; height: 44px; }
  .topics li, .em-badge, .meta-row .em-badge { font-size: .8125rem; }

  /* Sticky enroll bar never covers content */
  body:has(.enroll-bar) { padding-bottom: calc(76px + var(--em-safe-bottom)); }

  /* Density: drop repeats and decoration on phones */
  .marquee, #usm .handoff, .loop { display: none; }
  .split { gap: 20px; }
  .curriculum > li { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .curriculum .wk { display: flex; align-items: baseline; gap: 10px; }
  .curriculum .wk b { font-size: 1.75rem; }
  .curriculum h3 { margin-bottom: 6px; }
  .topics { display: block; color: var(--em-text-muted); font-size: .9375rem; line-height: 1.5; }
  .topics li { display: inline; padding: 0; background: none; box-shadow: none; font-size: inherit; }
  .topics li:not(:last-child)::after { content: " · "; }
  .build { padding: 12px 14px; }
  .facts { gap: 8px; }
  .facts div { padding: 12px 14px; }
}
@media (max-width: 600px) {
  .hero-badge { min-height: 44px; }
  .em-link, .facts dd a { min-height: 44px; display: inline-flex; align-items: center; }
  .em-card .em-link { margin-top: 6px; }
  .model li, .facts dt, .em-countdown span, .em-caption { font-size: .8125rem; }
}
@media (max-width: 600px) {
  .site-nav { background: color-mix(in srgb, var(--em-bg) 90%, transparent); }
  html:has(.em-nav__panel:not([hidden])) .site-nav { background: var(--em-bg); }
}
@media (max-width: 600px) { .enroll-bar { background: var(--em-bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
