/* Foundations 938 public site */
:root {
  --navy: #0d333f;
  --navy-2: #154754;
  --navy-3: #082630;
  --gold: #fcbf3c;
  --gold-hover: #ffcd5e;
  --gold-light: #ffe289;
  --gold-ink: #2b1f00;
  --on-navy: #d6e3e7;
  --bg: #ffffff;
  --bg-alt: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --input-bg: #ffffff;
  --text: #0f1d24;
  --muted: #4b5b63;
  --border: #e1ddd3;
  --border-strong: #c9c3b6;
  --primary: #0d333f;
  --primary-hover: #154754;
  --primary-ink: #ffffff;
  --accent: #8a5a00;
  --link: #0b6378;
  --focus: #0b6378;
  --error-bg: #fef2f2; --error-ink: #991b1b; --error-bd: #fecaca;
  --ok-bg: #effaf3; --ok-ink: #166534; --ok-bd: #bbe5c8;
  --info-bg: #eef6f8; --info-ink: #0b4a5a; --info-bd: #bcdbe3;
  --shadow-sm: 0 1px 2px rgba(15, 29, 36, .06);
  --shadow: 0 1px 2px rgba(15, 29, 36, .05), 0 10px 30px -12px rgba(15, 29, 36, .14);
  --shadow-lg: 0 2px 4px rgba(15, 29, 36, .06), 0 24px 60px -20px rgba(15, 29, 36, .28);
  --radius: 16px;
  --radius-sm: 12px;
  --hh: 64px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
@media (min-width: 1100px) { :root { --hh: 76px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071a20; --bg-alt: #0a222a; --surface: #0e2a33; --surface-2: #112f39; --input-bg: #0a222a;
    --text: #eef3f5; --muted: #a8bac1; --border: #21434f; --border-strong: #2f5866;
    --primary: #fcbf3c; --primary-hover: #ffcd5e; --primary-ink: #2b1f00; --accent: #ffd87a;
    --link: #ffe289; --focus: #ffe289;
    --error-bg: #2a1215; --error-ink: #fecaca; --error-bd: #7f1d1d;
    --ok-bg: #0f2a1a; --ok-ink: #bbf7d0; --ok-bd: #1d6b3a;
    --info-bg: #0e2a33; --info-ink: #cfe6ec; --info-bd: #2f5866;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071a20; --bg-alt: #0a222a; --surface: #0e2a33; --surface-2: #112f39; --input-bg: #0a222a;
  --text: #eef3f5; --muted: #a8bac1; --border: #21434f; --border-strong: #2f5866;
  --primary: #fcbf3c; --primary-hover: #ffcd5e; --primary-ink: #2b1f00; --accent: #ffd87a;
  --link: #ffe289; --focus: #ffe289;
  --error-bg: #2a1215; --error-ink: #fecaca; --error-bd: #7f1d1d;
  --ok-bg: #0f2a1a; --ok-ink: #bbf7d0; --ok-bd: #1d6b3a;
  --info-bg: #0e2a33; --info-ink: #cfe6ec; --info-bd: #2f5866;
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
body.auth-open, body.menu-open { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0; letter-spacing: -.012em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
[hidden]:not(.slide) { display: none !important; }
.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; }
.skip-link { position: absolute; left: 16px; top: 12px; transform: translateY(-200%); visibility: hidden; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; }
.skip-link:focus { transform: none; visibility: visible; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
@media (max-width: 379px) { .wrap { padding: 0 16px; } }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
@media (min-width: 1280px) { .wrap { padding: 0 40px; } }
.narrow { max-width: 860px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent; font: 600 1rem/1.1 var(--sans); letter-spacing: .005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s; -webkit-tap-highlight-color: transparent; }
.btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; min-height: 52px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 8px 20px -8px rgba(13, 51, 63, .55); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 22px -10px rgba(252, 191, 60, .7); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-outline-light { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--text); }
.btn-quiet { background: transparent; color: #fff; min-height: 44px; padding: 0 14px; }
.btn-quiet:hover { background: rgba(255, 255, 255, .1); }
.btn[disabled] { opacity: .7; cursor: progress; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 650; color: var(--link); text-decoration: none; }
.text-link .ic { width: 18px; height: 18px; transition: transform .18s; }
.text-link:hover { text-decoration: underline; }
.text-link:hover .ic { transform: translateX(3px); }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(13, 51, 63, .97); border-bottom: 1px solid rgba(255, 255, 255, .07); transition: box-shadow .2s; padding-top: env(safe-area-inset-top); }
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed phone menu inside it. */
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: transparent; border-bottom-color: transparent; }
  .site-header::before { content: ''; position: absolute; inset: 0 0 -1px; z-index: -1; border-bottom: 1px solid rgba(255, 255, 255, .07); background: rgba(13, 51, 63, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
}
.site-header.scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.site-header :focus-visible, .hero :focus-visible, .section-navy :focus-visible, .visit :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-light); }
.header-row { display: flex; align-items: center; gap: 8px; height: var(--hh); }
.brand { margin-right: auto; display: flex; align-items: center; min-width: 0; min-height: 44px; flex: 0 1 auto; border-radius: 8px; }
.logo { display: block; width: auto; height: 22px; max-width: 100%; }
@media (min-width: 380px) { .logo { height: 24px; } }
@media (min-width: 720px) { .logo { height: 28px; } }
@media (min-width: 1100px) { .logo { height: 30px; } }
.nav { display: flex; align-items: center; order: 3; }
.header-actions { order: 2; display: flex; align-items: center; gap: 6px; }
.header-apply { min-height: 42px; padding: 0 18px; border-radius: 10px; font-size: .95rem; }
.login-btn { font-size: .95rem; }
.menu-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 12px; margin-right: -8px; border-radius: 10px; border: 0; background: transparent; color: #fff; cursor: pointer; font: 600 .95rem var(--sans); -webkit-tap-highlight-color: transparent; }
.menu-btn:hover { background: rgba(255, 255, 255, .08); }
.menu-word { display: none; }
@media (min-width: 600px) { .menu-word { display: inline; } .menu-btn { margin-right: -12px; } }
.menu-icon { position: relative; display: block; width: 22px; height: 14px; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .22s ease, top .22s ease, bottom .22s ease, width .22s; }
.menu-icon::before { top: 1px; }
.menu-icon::after { bottom: 1px; width: 70%; left: auto; }
.menu-btn[aria-expanded="true"] .menu-icon::before { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { bottom: 6px; width: 100%; transform: rotate(-45deg); }

/* Phone/tablet menu: a full-height sheet under the header */
.menu { position: fixed; left: 0; right: 0; top: calc(var(--hh) + env(safe-area-inset-top)); bottom: 0; z-index: 29; display: none; flex-direction: column; gap: 24px; padding: 8px max(20px, env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)); background: var(--navy); overflow-y: auto; overscroll-behavior: contain; }
.menu.open { display: flex; animation: menuIn .22s ease both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.menu-links { list-style: none; }
.menu-links a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 6px 2px; color: #fff; text-decoration: none; font: 600 1.35rem/1.2 var(--serif); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.menu-links a::after { content: ''; width: 9px; height: 9px; border-top: 2px solid rgba(255, 255, 255, .45); border-right: 2px solid rgba(255, 255, 255, .45); transform: rotate(45deg); margin-right: 6px; }
.menu-links a:hover { color: var(--gold-light); }
.menu-actions { display: grid; gap: 12px; margin-top: auto; }
.menu-actions .btn { width: 100%; }
.menu-note { color: rgba(255, 255, 255, .6); font-size: .9rem; text-align: center; }
@media (min-width: 600px) and (max-width: 1099px) {
  .menu { left: auto; width: min(420px, 100%); box-shadow: -30px 0 60px rgba(0, 0, 0, .35); border-left: 1px solid rgba(255, 255, 255, .08); }
}
.menu-scrim { display: none; }
@media (min-width: 600px) and (max-width: 1099px) {
  body.menu-open .menu-scrim { display: block; position: fixed; inset: 0; z-index: 28; background: rgba(3, 14, 18, .5); }
}
/* Header buttons by width: phones keep it to logo + menu */
.login-btn, .header-apply { display: none; }
@media (min-width: 600px) { .header-apply { display: inline-flex; } }
@media (min-width: 760px) { .login-btn { display: inline-flex; } }

/* Desktop: inline nav */
@media (min-width: 1100px) {
  .nav { order: 1; margin-right: 12px; }
  .menu-btn { display: none; }
  .menu { display: flex; position: static; flex-direction: row; padding: 0; background: none; overflow: visible; gap: 0; animation: none; }
  .menu-links { display: flex; align-items: center; gap: 2px; }
  .menu-links a { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; font: 500 .98rem/1 var(--sans); color: var(--on-navy); }
  .menu-links a::after { display: none; }
  .menu-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
  .menu-links a.is-current { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
  .menu-extra, .menu-actions, .menu-note { display: none !important; }
  .header-actions { order: 2; gap: 8px; }
}
@media (min-width: 1100px) and (max-width: 1199px) { .menu-links a { padding: 0 10px; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; color: #fff; overflow: hidden; padding: 44px 0 0; background:
  radial-gradient(900px 520px at 88% -8%, rgba(252, 191, 60, .2), transparent 62%),
  radial-gradient(700px 500px at -10% 110%, rgba(21, 71, 84, .9), transparent 60%),
  linear-gradient(165deg, #0d333f 0%, #11414e 55%, #0b2c36 100%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: url('/img/ridges.svg') bottom / 100% 100% no-repeat; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 600px) { .hero { padding-top: 64px; } }
@media (min-width: 960px) { .hero { padding-top: 88px; } .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; } }
@media (min-width: 1280px) { .hero-grid { gap: 72px; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: var(--gold-light); font-size: .85rem; font-weight: 650; letter-spacing: .01em; margin-bottom: 22px; }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(252, 191, 60, .22); }
.hero h1 { font-size: clamp(2.35rem, 1.2rem + 5.2vw, 4.6rem); line-height: 1.04; letter-spacing: -.02em; }
.h1-line { display: block; text-wrap: balance; }
.hero-accent { color: var(--gold); }
.lead { font-size: clamp(1.06rem, .98rem + .45vw, 1.25rem); line-height: 1.6; color: var(--on-navy); margin-top: 20px; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 479px) { .hero-actions { display: grid; } .hero-actions .btn { width: 100%; } }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; color: var(--on-navy); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ic { width: 18px; height: 18px; color: var(--gold); stroke-width: 2.4; }
.hero-verse { margin: 0 auto; padding-top: 48px; padding-bottom: 72px; text-align: center; }
.hero-verse blockquote { margin: 0 auto; max-width: 40ch; font: italic 400 clamp(1.05rem, .95rem + .5vw, 1.3rem)/1.5 var(--serif); color: #eef5f7; }
.hero-verse figcaption { margin-top: 8px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
@media (min-width: 960px) { .hero-verse { padding-top: 64px; padding-bottom: 104px; } }

/* Phone mock */
.hero-visual { position: relative; display: none; justify-self: center; width: 100%; max-width: 420px; padding: 20px 0; }
@media (min-width: 720px) { .hero-visual { display: block; } }
.phone { position: relative; width: 280px; margin: 0 auto; padding: 12px; border-radius: 44px; background: linear-gradient(145deg, #1e3c46, #061a20); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4); }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 12px; background: #04141a; z-index: 2; }
.phone-screen { border-radius: 33px; background: #f5f3ee; color: #0f1d24; padding: 50px 14px 14px; display: grid; gap: 10px; overflow: hidden; }
.ps-top { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 2px; }
.ps-hello { font: 700 1rem var(--serif); }
.ps-av { width: 30px; height: 30px; border-radius: 50%; background: #0d333f; color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 700; flex: none; }
.ps-av-gold { background: #fcbf3c; color: #2b1f00; }
.ps-card { background: #fff; border: 1px solid #e7e2d8; border-radius: 16px; padding: 12px 14px; }
.ps-accent { background: linear-gradient(150deg, #0d333f, #154754); color: #fff; border: 0; padding: 14px; }
.ps-label { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; opacity: .7; }
.ps-big { font: 700 1.5rem/1.2 var(--serif); margin-top: 4px; }
.ps-mid { font: 700 1.1rem/1.3 var(--serif); margin-top: 2px; }
.ps-bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .18); margin-top: 12px; overflow: hidden; }
.ps-bar span { display: block; width: 42%; height: 100%; border-radius: 4px; background: #fcbf3c; }
.ps-btn { margin-top: 12px; height: 34px; border-radius: 10px; background: #fcbf3c; color: #2b1f00; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.ps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-person { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-weight: 600; font-size: .85rem; }
.ps-tabs { display: flex; justify-content: space-around; padding: 10px 6px 2px; border-top: 1px solid #e7e2d8; margin-top: 2px; }
.ps-tabs span { width: 22px; height: 6px; border-radius: 3px; background: #d6d0c4; }
.ps-tabs span.on { background: #0d333f; }
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, .96); color: #0f1d24; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5); font-size: .82rem; line-height: 1.3; }
.float-card .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: #fff3d1; color: #8a5a00; }
.float-card strong { display: block; font-size: .88rem; }
.float-card span { color: #4b5b63; }
/* Float cards sit on the phone's bezel and status area, never over its content. */
.fc-1 { left: calc(50% - 196px); bottom: -10px; }
.fc-2 { right: calc(50% - 196px); top: -6px; }
.fc-2 .ic { background: #e3eef1; color: #0d333f; }


/* ── Trust strip ──────────────────────────────────────────────────────── */
.facts { background: var(--surface); border-bottom: 1px solid var(--border); }
.facts-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 26px 12px 22px; text-align: center; align-items: center; }
.fact:nth-child(odd) { border-right: 1px solid var(--border); }
.fact:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
@media (min-width: 900px) {
  .fact { padding: 34px 20px 30px; border-bottom: 0 !important; border-right: 1px solid var(--border); }
  .fact:last-child { border-right: 0; }
}
.fact-num { font: 700 clamp(2.1rem, 1.6rem + 1.6vw, 2.9rem)/1 var(--serif); color: var(--primary); letter-spacing: -.02em; }
.fact-text { color: var(--muted); font-size: .9rem; line-height: 1.4; max-width: 22ch; }
.fn-ref { color: inherit; text-decoration: none; margin-left: 1px; }
.trust-line { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 0 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; text-align: center; }
.trust-line .ic { color: var(--accent); flex: none; }
@media (max-width: 599px) { .trust-line { align-items: flex-start; text-align: left; } .trust-line .ic { margin-top: 2px; } }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin-bottom: 40px; }
@media (min-width: 960px) { .section-head { margin-bottom: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); }
.section-lead { color: var(--muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.18rem); margin-top: 16px; max-width: 62ch; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.badge-open { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-bd); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Navy section (testimonials) */
.section-navy { background: linear-gradient(165deg, #0d333f, #0b2c36); color: #fff; position: relative; overflow: hidden; }
.section-navy .eyebrow { color: var(--gold-light); }
.section-navy .section-lead { color: var(--on-navy); }

/* ── Programs ─────────────────────────────────────────────────────────── */
.paths { list-style: none; display: grid; gap: 18px; }
@media (min-width: 680px) { .paths { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1180px) { .paths { grid-template-columns: repeat(4, 1fr); } }
.path { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.path:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.path-band { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 22px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.path-featured .path-band { background: linear-gradient(150deg, #0d333f, #154754); border-bottom: 0; }
.path-featured .path-num { color: var(--gold-light); }
.path-featured .badge-open { background: rgba(255, 255, 255, .1); color: #c8f5d6; border-color: rgba(200, 245, 214, .35); }
.path-num { font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.path-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; flex: 1; }
.path h3 { font-size: 1.45rem; }
.path-tag { font-weight: 650; color: var(--accent); font-size: .95rem; }
.path-desc { color: var(--muted); font-size: .98rem; }
.path-meta { list-style: none; display: grid; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text); }
.path-meta li { display: flex; align-items: center; gap: 10px; }
.path-meta .ic { width: 18px; height: 18px; color: var(--accent); }
.path-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: auto; padding-top: 12px; }
.path-actions .btn { width: 100%; }
.path-featured { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent), var(--shadow); }

/* ── Day in the life ──────────────────────────────────────────────────── */
.day { list-style: none; display: grid; gap: 0; position: relative; }
.day-item { position: relative; padding: 0 0 30px 44px; }
.day-item::before { content: ''; position: absolute; left: 11px; top: 30px; bottom: -2px; width: 2px; background: linear-gradient(var(--gold), color-mix(in srgb, var(--gold) 20%, transparent)); }
.day-item:last-child::before { display: none; }
.day-item::after { content: ''; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-alt); border: 3px solid var(--gold); }
.day-time { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.day-time .ic { width: 18px; height: 18px; }
.day-item h3 { font-size: 1.3rem; }
.day-item p { color: var(--muted); margin-top: 6px; max-width: 46ch; }
@media (min-width: 900px) {
  .day { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .day-item { padding: 40px 0 0; }
  .day-item::after { left: 0; top: 0; }
  .day-item::before { left: 16px; right: -28px; top: 7px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 25%, transparent)); }
}
.life-band { display: grid; gap: 24px; margin-top: 40px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (min-width: 900px) { .life-band { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; padding: 40px 44px; margin-top: 56px; } }
.life-quote { margin: 0; }
.life-quote blockquote { margin: 0; font: italic 400 clamp(1.2rem, 1.05rem + .6vw, 1.5rem)/1.45 var(--serif); color: var(--text); }
.life-quote figcaption, .q-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .92rem; }
.q-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--gold); color: var(--gold-ink); font: 700 1rem var(--serif); }
.q-role { display: block; color: var(--muted); font-size: .84rem; }
.life-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.life-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-radius: 14px; background: var(--bg-alt); text-align: center; }
.ls-num { font: 700 clamp(1.2rem, 1rem + .9vw, 1.6rem)/1.1 var(--serif); color: var(--primary); }
.ls-label { font-size: .8rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 559px) {
  .life-band { padding: 24px 20px; }
  .life-stats { grid-template-columns: 1fr; gap: 8px; }
  .life-stats > div { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; text-align: left; }
  .ls-label { text-align: right; }
}

/* ── Features (app) ───────────────────────────────────────────────────── */
.features { list-style: none; display: grid; gap: 14px; }
@media (min-width: 560px) { .features { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.feature { padding: 24px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.feature h3 { font-size: 1.18rem; margin-top: 16px; }
.feature p { color: var(--muted); margin-top: 6px; font-size: .96rem; }
.feature-icon { flex: none; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(150deg, #0d333f, #154754); color: var(--gold); display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(13, 51, 63, .6); }
.feature-icon .ic { width: 22px; height: 22px; }
.features-foot { display: flex; align-items: flex-start; gap: 10px; margin-top: 28px; color: var(--muted); font-size: .95rem; }
.features-foot .ic { color: var(--accent); margin-top: 2px; }
@media (min-width: 720px) { .features-foot { justify-content: center; text-align: center; } }

/* ── Testimonials ─────────────────────────────────────────────────────── */
.quotes { list-style: none; display: grid; gap: 16px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.quote { position: relative; display: flex; flex-direction: column; padding: 28px 26px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.q-mark { font: 700 4rem/1 var(--serif); color: var(--gold); height: 34px; display: block; }
.quote blockquote { margin: 0; font: 400 1.12rem/1.55 var(--serif); color: #f3f7f8; flex: 1; }
.quote .q-who { color: #fff; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 22px; }
.quote .q-role { color: rgba(255, 255, 255, .62); }

/* ── Admissions ───────────────────────────────────────────────────────── */
.steps { list-style: none; display: grid; gap: 16px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step { position: relative; padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step p { color: var(--muted); margin-top: 6px; font-size: .97rem; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font: 700 1.1rem var(--serif); margin-bottom: 16px; }
.cta-band { display: grid; gap: 22px; margin-top: 28px; padding: 30px 26px; border-radius: 20px; color: #fff; background: radial-gradient(600px 300px at 100% 0%, rgba(252, 191, 60, .18), transparent 60%), linear-gradient(150deg, #0d333f, #154754); }
.cta-band h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.cta-band p { color: var(--on-navy); margin-top: 8px; max-width: 54ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .cta-band-actions { display: grid; } .cta-band-actions .btn { width: 100%; } }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 40px 44px; gap: 32px; } }

/* ── Tuition ──────────────────────────────────────────────────────────── */
.tuition-grid { display: grid; gap: 28px; }
@media (min-width: 1100px) { .tuition-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
@media (min-width: 720px) and (max-width: 1099px) { .aid-list { grid-template-columns: repeat(3, 1fr); } .aid { flex-direction: column; } }
.aid-list { list-style: none; display: grid; gap: 14px; }
.aid { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.aid h3 { font-size: 1.2rem; }
.aid p { color: var(--muted); margin-top: 6px; font-size: .97rem; }
.estimator { margin: 0; padding: 26px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
@media (min-width: 600px) { .estimator { padding: 32px; } }
.est-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.est-head h3 { font-size: 1.45rem; }
.est-field { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.est-field legend { font-weight: 650; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--border); }
.seg label { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 4px 6px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.2; transition: background .15s, color .15s, box-shadow .15s; }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-strong); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
@media (max-width: 479px) { .seg-plan { grid-template-columns: 1fr 1fr; } }
@media (max-width: 359px) { .seg span { font-size: .85rem; padding: 4px 2px; } }
.est-out { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.est-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--muted); padding: 4px 0; }
.est-aid span:last-child { color: var(--ok-ink); font-weight: 600; }
.est-total { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.est-total > div { padding: 16px; border-radius: 14px; background: var(--bg-alt); }
.est-total > div:first-child { background: linear-gradient(150deg, #0d333f, #154754); color: #fff; }
.est-total > div:first-child .est-label { color: var(--gold-light); }
.est-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.est-big { display: block; font: 700 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.15 var(--serif); margin-top: 4px; font-variant-numeric: tabular-nums; }
.est-note { margin-top: 16px; font-size: .85rem; color: var(--muted); }

/* ── Calendar ─────────────────────────────────────────────────────────── */
.dates { list-style: none; display: grid; gap: 12px; }
.date { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.date > .badge { grid-column: 2; justify-self: start; }
@media (min-width: 720px) { .date { grid-template-columns: auto 1fr auto; padding: 20px 24px; gap: 24px; } .date > .badge { grid-column: auto; justify-self: end; } }
.date h3 { font-size: 1.18rem; }
.date p { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.date-box { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--border); line-height: 1.1; }
@media (min-width: 720px) { .date-box { grid-row: auto; width: 72px; height: 72px; } }
.date-m { font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.date-d { font: 700 1.25rem var(--serif); color: var(--text); }
.date.is-now { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); }
.date.is-now .date-box { background: linear-gradient(150deg, #0d333f, #154754); border: 0; }
.date.is-now .date-m { color: var(--gold-light); }
.date.is-now .date-d { color: #fff; font-size: 1.1rem; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-search { position: relative; margin-bottom: 8px; }
.faq-search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.faq-search input { width: 100%; min-height: 56px; padding: 0 16px 0 48px; font: 400 16px var(--sans); color: var(--text); background: var(--input-bg); border: 1.5px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-sm); -webkit-appearance: none; appearance: none; }
.faq-search input::placeholder { color: var(--muted); opacity: .85; }
.faq-search input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.faq-count { min-height: 1.5em; font-size: .88rem; color: var(--muted); margin: 6px 2px 10px; }
.faq { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-of-type { border-bottom: 0; }
.faq details[hidden] { display: none; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 16px 20px; font-weight: 650; font-size: 1.02rem; line-height: 1.4; }
.faq summary:hover { background: var(--surface-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq details p { color: var(--muted); padding: 0 20px 20px; max-width: 68ch; }
.faq mark { background: color-mix(in srgb, var(--gold) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.faq-empty { padding: 28px 22px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--border-strong); text-align: center; color: var(--muted); }
.faq-empty strong { color: var(--text); }
.faq-empty p + p { margin-top: 4px; }

/* ── Visit ────────────────────────────────────────────────────────────── */
.visit { position: relative; overflow: hidden; display: grid; gap: 32px; padding: 34px 24px; border-radius: 24px; color: #fff; background: radial-gradient(700px 360px at 100% 0%, rgba(252, 191, 60, .16), transparent 60%), linear-gradient(160deg, #0d333f, #154754); }
.visit::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: url('/img/ridges.svg') bottom / 100% 100% no-repeat; pointer-events: none; }
.visit > * { position: relative; z-index: 1; }
.visit .eyebrow { color: var(--gold-light); }
.visit .section-lead { color: var(--on-navy); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 479px) { .visit-actions { display: grid; } .visit-actions .btn { width: 100%; } }
@media (min-width: 900px) { .visit { grid-template-columns: 1.1fr .9fr; padding: 56px; align-items: center; gap: 56px; } }
.contact { margin: 0; display: grid; gap: 1px; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 560px) { .contact { grid-template-columns: 1fr 1fr; } .contact > .c-wide { grid-column: 1 / -1; } }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact > div { padding: 18px 20px; background: rgba(8, 38, 48, .72); }
.contact dt { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.contact dt .ic { width: 16px; height: 16px; }
.contact dd { margin: 6px 0 0; color: #fff; overflow-wrap: anywhere; }
.contact a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-3); color: #b9cbd1; font-size: .95rem; padding: 56px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-top { display: grid; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.footer-brand p { margin-top: 16px; max-width: 34ch; }
.logo-footer { display: block; width: 200px; height: auto; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
@media (min-width: 560px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-h { font: 750 .76rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 10px; }
.footer-cols ul { list-style: none; display: grid; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 40px; color: #dce7ea; text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; font-size: .86rem; }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #dce7ea; text-decoration: none; font-weight: 600; }
.to-top .ic { width: 18px; height: 18px; }
.to-top:hover { color: #fff; }

/* ── Scroll reveal (only when motion is welcome; JS adds .reveal-on) ─── */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
}

/* ── Sign-in: full-screen split page ─────────────────────────────────── */
.auth { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; grid-template-columns: minmax(0, 1fr); overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .22s ease; }
.auth[hidden] { display: none; }
.auth.open { opacity: 1; }

/* Phone & landscape-phone: teal band with the badge, form on a sheet */
.auth-form-side { display: flex; flex-direction: column; min-height: 100dvh; padding: env(safe-area-inset-top) 0 0; color: var(--text); background: radial-gradient(500px 260px at 90% -10%, rgba(252, 191, 60, .22), transparent 60%), linear-gradient(165deg, #0d333f, #154754); }
.auth-topline { display: flex; align-items: center; min-height: 60px; padding: 8px max(12px, env(safe-area-inset-left)) 0; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 8px; border: 0; border-radius: 10px; background: transparent; color: #fff; font: 600 .95rem var(--sans); cursor: pointer; }
.back-btn:hover { background: rgba(255, 255, 255, .1); }
.back-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.auth-form-side :focus-visible { outline-color: var(--focus); }
.auth-topline :focus-visible { outline-color: var(--gold-light); }
.auth-center { flex: 1; width: 100%; margin-top: clamp(64px, calc(100dvh - 690px), 220px); padding: 0 20px 8px; background: var(--bg); border-radius: 28px 28px 0 0; }
.auth-center > * { max-width: 420px; margin-left: auto; margin-right: auto; }
.auth-badge { width: 88px; height: 88px; margin: -44px auto 18px; border-radius: 50%; overflow: hidden; background: var(--navy); border: 3px solid var(--gold); box-shadow: 0 0 0 6px var(--bg), var(--shadow); }
.auth-badge img { display: block; width: 100%; height: 100%; }
.auth-view h2 { font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.3rem); text-align: center; }
.auth-sub { color: var(--muted); margin-top: 8px; margin-bottom: 22px; text-align: center; }
.auth-view form { display: grid; gap: 6px; }
.auth-view label { font-weight: 650; font-size: .95rem; margin-top: 10px; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.label-row label { margin-top: 0; }
.label-row a { display: inline-flex; align-items: center; min-height: 32px; font-size: .92rem; font-weight: 600; text-decoration: none; }
.label-row a:hover { text-decoration: underline; }
.auth-view input { width: 100%; min-height: 54px; padding: 0 16px; font: 400 16px var(--sans); color: var(--text); background: var(--input-bg); border: 1.5px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-sm); -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.auth-view input:hover { border-color: color-mix(in srgb, var(--text) 40%, var(--border-strong)); }
.auth-view input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.auth-view input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--input-bg) inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); min-width: 62px; min-height: 44px; border: 0; background: transparent; color: var(--link); font: 650 .9rem var(--sans); cursor: pointer; border-radius: 10px; }
.pw-toggle:hover { background: var(--bg-alt); }
.auth-view .btn-block { margin-top: 22px; min-height: 54px; border-radius: 14px; font-size: 1.05rem; }
.hint { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.auth-msg { padding: 12px 14px; border-radius: 12px; margin-bottom: 8px; font-size: .95rem; border: 1px solid; }
.auth-msg.error { background: var(--error-bg); color: var(--error-ink); border-color: var(--error-bd); }
.auth-msg.success { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-bd); }
.auth-msg.info { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-bd); }
.auth-foot { margin-top: 24px; color: var(--muted); font-size: .95rem; text-align: center; }
.auth-foot a { font-weight: 650; }
.auth-view[data-view="done"] { text-align: center; }
.auth-view[data-view="done"] .spinner { margin: 8px auto 0; }
.auth-legal { display: block; text-align: center; text-wrap: balance; font-size: .82rem; color: var(--muted); padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); background: var(--bg); }
.auth-legal .ic { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-school { display: none; }

/* Tablet & desktop: split screen */
@media (min-width: 760px) and (min-height: 560px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; background: var(--surface); }
  .auth-form-side { height: 100dvh; min-height: 0; overflow-y: auto; padding: 16px 28px; background: var(--surface); }
  .auth-topline { padding: 0; }
  .back-btn { color: var(--muted); margin-left: -8px; }
  .back-btn:hover { color: var(--text); background: var(--bg-alt); }
  .auth-topline :focus-visible { outline-color: var(--focus); }
  .auth-center { flex: none; margin: auto; padding: 24px 0; max-width: 400px; background: transparent; border-radius: 0; }
  .auth-badge { width: 92px; height: 92px; margin: 0 auto 22px; box-shadow: 0 0 0 6px var(--bg-alt), var(--shadow); }
  .auth-legal { background: transparent; padding: 16px 0 0; }
  .auth-school { position: relative; display: flex; color: #fff; padding: 40px 28px; height: 100dvh; overflow-y: auto; background: radial-gradient(900px 500px at 90% 0%, rgba(252, 191, 60, .16), transparent 60%), linear-gradient(160deg, #0d333f 0%, #154754 60%, #0d333f 100%); }
}
@media (min-width: 1100px) and (min-height: 560px) { .auth-form-side { padding: 20px 48px; } .auth-school { padding: 48px 48px; } }
@media (min-width: 1280px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.auth-school::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: url('/img/ridges.svg') bottom / 100% 100% no-repeat; pointer-events: none; }
.auth-school :focus-visible { outline-color: var(--gold-light); }
.school-inner { position: relative; z-index: 1; width: 100%; max-width: 480px; margin: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.school-logo { width: min(260px, 64vw); height: auto; }
@media (min-width: 900px) and (min-height: 760px) { .school-logo { width: 300px; } }
.slides { width: 100%; display: grid; }
.slide { grid-area: 1 / 1; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity .35s ease; }
.slide[hidden] { display: flex; visibility: hidden; opacity: 0; }
.slide-kicker { font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.slide h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); color: #fff; }
.slide p:not(.slide-kicker) { color: var(--on-navy); }
.slide .btn { margin-top: 10px; min-width: 150px; }
.slide-controls { display: flex; align-items: center; gap: 12px; }
.dots { display: flex; gap: 2px; }
.dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background .2s, width .2s; }
.dot.is-active::before { background: var(--gold); width: 22px; border-radius: 6px; }
.pause-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font: 600 .85rem var(--sans); cursor: pointer; }
.pause-btn:hover { background: rgba(255, 255, 255, .1); }
.school-verse { margin: 0; max-width: 40ch; }
.school-verse blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #eef5f7; }
.school-verse figcaption { margin-top: 6px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* ══ Apply page ═════════════════════════════════════════════════════════ */
.apply-page { background: var(--bg-alt); }
.apply-hero { color: #fff; padding: 40px 0 96px; background: radial-gradient(700px 360px at 95% -20%, rgba(252, 191, 60, .2), transparent 60%), linear-gradient(165deg, #0d333f, #11414e); }
@media (min-width: 720px) { .apply-hero { padding: 56px 0 112px; } }
.apply-hero .eyebrow { color: var(--gold-light); }
.apply-hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem); }
.apply-hero p:not(.eyebrow) { color: var(--on-navy); margin-top: 12px; max-width: 60ch; }
.back-link { display: flex; width: max-content; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 12px -4px; padding: 0 6px; color: var(--on-navy); text-decoration: none; font-weight: 600; border-radius: 8px; }
.back-link:hover { color: #fff; }
.apply-wrap { max-width: 820px; margin-top: -64px; padding-bottom: 80px; }
.apply-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 20px 20px 0; counter-reset: st; }
@media (min-width: 600px) { .stepper { padding: 28px 32px 0; gap: 10px; } }
.stepper li { display: flex; flex-direction: column; gap: 8px; font-size: .78rem; font-weight: 650; color: var(--muted); min-width: 0; }
.stepper li::before { content: ''; height: 5px; border-radius: 4px; background: var(--border); }
.stepper li.done::before, .stepper li.current::before { background: var(--gold); }
.stepper li.current { color: var(--text); }
.stepper .st-name { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 600px) { .stepper .st-name { display: block; } }
.step-status { padding: 14px 20px 0; font-size: .88rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (min-width: 600px) { .step-status { padding: 14px 32px 0; } }
.save-state { display: inline-flex; align-items: center; gap: 6px; }
.save-state .ic { width: 16px; height: 16px; color: var(--ok-ink); }
.apply-form { padding: 8px 20px 24px; }
@media (min-width: 600px) { .apply-form { padding: 8px 32px 32px; } }
.ap-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.ap-step[hidden] { display: none; }
.ap-step > legend { padding: 0; margin: 14px 0 4px; font: 700 clamp(1.5rem, 1.3rem + .9vw, 1.9rem)/1.2 var(--serif); }
.ap-step > legend:focus { outline: none; }
.ap-intro { color: var(--muted); margin-bottom: 8px; }
.ap-grid { display: grid; gap: 4px 16px; }
@media (min-width: 600px) { .ap-grid { grid-template-columns: 1fr 1fr; } .ap-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; min-width: 0; }
.field > label, .field > .flabel { font-weight: 650; font-size: .95rem; }
.opt { font-weight: 500; color: var(--muted); font-size: .85rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { width: 100%; min-height: 52px; padding: 0 14px; font: 400 16px var(--sans); color: var(--text); background: var(--input-bg); border: 1.5px solid var(--border-strong); border-radius: 12px; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--error-ink); }
.field-err { display: none; align-items: center; gap: 6px; color: var(--error-ink); font-size: .88rem; font-weight: 600; }
.field-err:not(:empty) { display: flex; }
.field-err:not(:empty)::before { content: '!'; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--error-ink); color: var(--surface); font-size: .72rem; font-weight: 800; flex: none; }
.choices { display: grid; gap: 10px; }
@media (min-width: 600px) { .choices.two { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--input-bg); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover { border-color: color-mix(in srgb, var(--text) 40%, var(--border-strong)); }
.choice input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }
.choice strong { display: block; font-size: 1rem; }
.choice small { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; line-height: 1.4; }
.choice:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--input-bg)); box-shadow: 0 0 0 1px var(--primary); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice .badge { margin-left: auto; align-self: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .choice input { accent-color: var(--gold); } }
.ap-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.ap-nav .btn { min-width: 120px; }
.ap-nav .btn-next { margin-left: auto; }
@media (max-width: 479px) { .ap-nav .btn { flex: 1; min-width: 0; } }
.review { display: grid; gap: 12px; margin-top: 12px; }
.review-sec { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.review-sec h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 8px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.review-sec h3 button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--link); font: 650 .88rem var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; }
.review-sec h3 button:hover { background: var(--bg-alt); }
.review-sec dl { margin: 0; padding: 4px 16px 10px; display: grid; }
.review-sec dl > div { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.review-sec dl > div:last-child { border-bottom: 0; }
@media (min-width: 600px) { .review-sec dl > div { grid-template-columns: 200px 1fr; gap: 16px; } }
.review-sec dt { color: var(--muted); font-size: .9rem; }
.review-sec dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.soon { display: flex; gap: 14px; margin-top: 20px; padding: 18px; border-radius: 14px; background: var(--info-bg); border: 1px solid var(--info-bd); color: var(--info-ink); }
.soon .ic { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.soon p + p { margin-top: 6px; }
.send-actions { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 600px) { .send-actions { grid-template-columns: 1fr 1fr; } }
.send-note { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.send-note[data-kind="ok"] { color: var(--ok-ink); font-weight: 600; }
.apply-aside { display: grid; gap: 14px; margin-top: 22px; padding: 0 4px; color: var(--muted); font-size: .92rem; }
.apply-aside p { display: flex; gap: 10px; }
.apply-aside .ic { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.link-btn { border: 0; background: none; padding: 0; min-height: 44px; color: var(--link); font: 600 .92rem var(--sans); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.site-footer.slim { padding-top: 28px; }
