/* ==========================================================================
   D-TECH — public site
   1. Tokens  2. Base  3. Layout & type  4. Buttons  5. Header  6. Hero
   7. Sections & components  8. Forms  9. Footer  10. Motion & responsive
   ========================================================================== */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/manrope-latin.woff2") format("woff2");
}

/* 1. Tokens --------------------------------------------------------------- */

:root {
    --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1180px;
    --radius: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* Dark tokens. Light is the default look: every page starts with data-theme="light". */
    color-scheme: dark;
    --bg: #0a0e14;
    --surface: #121821;
    --surface-2: #19212c;
    --field: #0e131b;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .18);
    --text: #f1f5f9;
    --muted: #96a3b3;
    --accent: #3a90e6;
    --accent-hover: #4d9ded;
    --accent-ink: #ffffff;
    --accent-text: #7fc1f7;
    --accent-soft: rgba(77, 157, 237, .15);
    --glow: rgba(58, 144, 230, .28);
    --danger: #ff6b6b;
    --danger-soft: rgba(255, 107, 107, .1);
    --header-bg: rgba(16, 22, 30, .74);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #e9eff6;
    --field: #f7f9fc;
    --line: rgba(10, 30, 60, .1);
    --line-strong: rgba(10, 30, 60, .22);
    --text: #0b1526;
    --muted: #526071;
    --accent: #2370cf;
    --accent-hover: #1c5fb3;
    --accent-ink: #ffffff;
    --accent-text: #1a60b5;
    --accent-soft: rgba(35, 112, 207, .1);
    --glow: rgba(35, 112, 207, .18);
    --danger: #c9302c;
    --danger-soft: rgba(201, 48, 44, .08);
    --header-bg: rgba(255, 255, 255, .8);
    --shadow: 0 24px 60px -28px rgba(10, 30, 60, .28);
}

/* 2. Base ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}
@media (max-width: 820px) { body.has-mobile-cta { scroll-padding-bottom: 96px; } }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    transition: background-color .3s var(--ease), color .3s var(--ease);
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.icon { flex: none; }
.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: -60px; z-index: 100;
    padding: 10px 16px; border-radius: 10px;
    background: var(--accent); color: var(--accent-ink); font-weight: 700;
    transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* 3. Layout & type -------------------------------------------------------- */

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 860px; }
.container.form-width { max-width: 900px; }

.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; overflow-x: clip; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

.display-1, .display-2, .display-3 { font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
.display-1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); line-height: 1.02; }
.display-2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; }
.display-3 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); line-height: 1.18; letter-spacing: -.025em; }
.accent { color: var(--accent-text); }

.lead { font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--muted); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
    margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .lead { max-width: 40ch; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; gap: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-top { align-items: start; }
.split .eyebrow { margin-bottom: 16px; }
.split .lead { margin-top: 18px; }
.split .btn-row { margin-top: 28px; }
.sticky { position: sticky; top: 120px; }

.prose { color: var(--muted); font-size: 1.0625rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--text); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; margin-top: 2em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { display: grid; gap: .5em; padding-left: 1.2em; list-style: disc; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
    font-weight: 600; color: var(--accent-text);
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Decorative glows and pixel clusters */
.glow {
    position: absolute; z-index: -1; pointer-events: none;
    width: min(760px, 90vw); aspect-ratio: 1;
    background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.glow-hero { top: -34%; left: -18%; }
.glow-left { top: 10%; left: -30%; }
.glow-right { top: 0; right: -30%; }

.pixels { position: absolute; width: 18px; height: 18px; background: var(--accent); opacity: .5; pointer-events: none; }
.pixels::before, .pixels::after { content: ""; position: absolute; width: 18px; height: 18px; background: var(--accent); }
.pixels::before { left: 18px; top: 18px; opacity: .55; }
.pixels::after { left: 36px; top: 0; opacity: .28; }
.pixels-a { left: 28px; bottom: 46px; }
.pixels-b { right: 40px; top: -18px; }

/* 4. Buttons -------------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 24px;
    border: 1px solid transparent; border-radius: 999px;
    font-weight: 650; font-size: .975rem; letter-spacing: -.005em; white-space: nowrap;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 30px -10px var(--glow); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line); border-radius: 50%;
    background: transparent; color: var(--text);
    transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }

[data-theme="dark"] .show-light, [data-theme="light"] .show-dark { display: none; }

/* 5. Header --------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 50; padding-top: 14px; }
.nav {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 64px; padding: 0 12px 0 22px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled .nav { box-shadow: var(--shadow); border-color: var(--line-strong); }

.brand {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em;
}
.brand-logo { display: block; height: 30px; width: auto; }
/* The mark's navy gradient was drawn for white paper; lift it slightly on dark surfaces */
[data-theme="dark"] .brand-logo { filter: brightness(1.08); }
.site-footer .brand-logo { height: 34px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    padding: 8px 14px; border-radius: 999px;
    font-size: .925rem; font-weight: 550; color: var(--muted);
    transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
.nav-toggle .when-open, .nav-toggle[aria-expanded="true"] .when-closed { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: block; }

.mobile-nav {
    display: grid; gap: 4px; margin-top: 10px; padding: 14px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); box-shadow: var(--shadow);
}
.mobile-nav a:not(.btn) {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 14px; border-radius: 12px; font-weight: 600; font-size: 1.05rem;
}
.mobile-nav a:not(.btn) .icon { color: var(--muted); }
.mobile-nav a[aria-current="page"] { background: var(--surface-2); color: var(--accent-text); }
.mobile-nav .btn { margin-top: 8px; }

/* 6. Hero ----------------------------------------------------------------- */

.hero { position: relative; padding-top: clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy .lead { margin-top: 24px; }
.hero-copy .btn-row { margin-top: 36px; }

.hero-visual { position: relative; padding: 0 0 56px 28px; }
.hero-photo {
    position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: calc(var(--radius) + 8px);
    border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(4, 8, 14, .55)); pointer-events: none; }
.hv-card {
    position: absolute; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); box-shadow: var(--shadow);
}
.hv-main { left: 0; bottom: 0; width: min(300px, 78%); padding: 18px 20px; }
.hv-head { display: flex; align-items: center; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.hv-title { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--muted); }
.hv-steps { display: grid; gap: 2px; margin-top: 12px; }
.hv-steps li {
    display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: center;
    padding: 7px 8px; border-radius: 12px; font-weight: 650; font-size: .92rem; line-height: 1.3;
}
.hv-steps li span {
    grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--line-strong); font-size: .76rem; color: var(--muted);
}
.hv-steps li em { font-style: normal; font-weight: 500; font-size: .78rem; color: var(--muted); }
.hv-steps li.done span { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.hv-steps li.now { background: var(--surface-2); }
.hv-steps li.now span { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 800; }

.hv-chip {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px;
    border-radius: 999px; font-size: .86rem; font-weight: 650; white-space: nowrap;
    animation: float 7s ease-in-out infinite;
}
.hv-chip .icon { color: var(--accent-text); }
.hv-chip-a { top: 22px; right: -14px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Trust strip: affiliation logos directly under the hero */
.trust-strip { margin-top: clamp(48px, 6vw, 80px); padding: 22px 0; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.trust-strip .container { display: flex; align-items: center; gap: 18px 36px; flex-wrap: wrap; }
.trust-label { flex: none; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trust-row { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; flex: 1; }
.trust-row li { display: flex; align-items: center; gap: 12px; }
.trust-name { display: grid; font-weight: 800; font-size: 1rem; letter-spacing: .04em; line-height: 1.15; }
.trust-name small { font-weight: 500; font-size: .74rem; letter-spacing: 0; color: var(--muted); max-width: 22ch; }
.trust-strip .link-arrow { margin: 0; flex: none; font-size: .9rem; }
.trust-row-sm { margin-top: 22px; gap: 10px 22px; }
.trust-row-sm li { gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.logo-chip-sm { height: 36px; min-width: 36px; padding: 4px 6px; border-radius: 9px; }
.logo-chip-sm img { height: 26px; max-width: 64px; }
.footer-logos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

.page-hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px); overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero .lead { margin-top: 20px; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero-center { text-align: center; padding-bottom: clamp(72px, 10vw, 128px); }
.page-hero-center .lead { margin-inline: auto; }
.page-hero-form { padding-bottom: 8px; }

/* 7. Sections & components ------------------------------------------------ */

/* Affiliation tiles */
.logo-label { margin-top: 28px; }
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.logo-tile {
    display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 18px;
    border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
    font-size: 1.15rem; font-weight: 800; letter-spacing: .04em;
}
.logo-dot { width: 10px; height: 10px; margin: 0 6px; border-radius: 3px; background: var(--accent); }
/* Official logos always sit on white so they read correctly in both themes */
.logo-chip { display: grid; place-items: center; flex: none; height: 52px; min-width: 52px; padding: 6px 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.logo-chip img { height: 38px; width: auto; max-width: 96px; object-fit: contain; }
.logo-chip-dark { background: #0c2340; border-color: transparent; }
.logo-chip-lg { display: inline-grid; height: 76px; min-width: 76px; padding: 9px 12px; border-radius: 16px; }
.logo-chip-lg img { height: 56px; max-width: 150px; }

/* Photos */
.photo { position: relative; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); background: var(--surface-2); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.photo-tall { aspect-ratio: 4 / 3; }
.photo-wide { aspect-ratio: 21 / 9; overflow: hidden; }
.photo-wide::after { content: ""; position: absolute; inset: 40% 0 0; border-radius: inherit; background: linear-gradient(180deg, transparent, rgba(4, 8, 14, .78)); pointer-events: none; }
.photo figcaption { position: absolute; z-index: 1; left: clamp(18px, 3vw, 36px); right: clamp(18px, 3vw, 36px); bottom: clamp(16px, 2.6vw, 30px); color: #fff; font-size: clamp(1.05rem, 2.2vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; text-wrap: balance; }
.pixels-c { right: 46px; bottom: -18px; }
.feature-after-photo { margin-top: 16px; }

/* Large statement */
.statement { max-width: 980px; }
.statement .eyebrow { margin-bottom: 22px; }
.statement-text { font-size: clamp(1.6rem, 3.6vw, 2.9rem); font-weight: 500; line-height: 1.16; letter-spacing: -.03em; text-wrap: balance; }
.statement-text span { color: var(--muted); }
.statement .lead { margin-top: 26px; }

/* Numbered rows (programs, pathways) */
.service-list { border-top: 1px solid var(--line); }
.service-row {
    position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 56px;
    gap: 24px; align-items: center; padding: 30px 20px;
    border-bottom: 1px solid var(--line);
    transition: background-color .3s var(--ease), padding .3s var(--ease);
}
.service-num { font-size: .85rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.service-title { font-size: clamp(1.35rem, 2.8vw, 2.1rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; transition: color .3s; }
.service-text { color: var(--muted); font-size: .975rem; }
.service-arrow {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid var(--line-strong); color: var(--text);
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
a.service-row:hover { background: var(--surface); padding-left: 32px; }
a.service-row:hover .service-title { color: var(--accent-text); }
a.service-row:hover .service-arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }
div.service-row .service-arrow { color: var(--accent-text); border-color: var(--line); }

/* Feature panel */
.feature {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
    background:
        radial-gradient(520px 320px at 0% 100%, var(--accent-soft), transparent 70%),
        var(--surface);
}
.feature .eyebrow { margin-bottom: 16px; }
.feature-copy .lead { margin-top: 18px; }
.feature-copy .btn { margin-top: 28px; }
.feature .muted { margin: 4px 0 16px; }

.check-list { display: grid; gap: 10px; }
.check-list-2 { grid-template-columns: repeat(2, 1fr); }
.check-list li {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px;
    border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
    font-weight: 600; font-size: .96rem;
}
.feature .check-list li { background: var(--bg); }
.check-list li span {
    display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-text);
}

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.affil-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.card {
    position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card h3 { margin-top: 22px; font-size: 1.15rem; font-weight: 650; letter-spacing: -.015em; }
.card p { margin-top: 10px; color: var(--muted); font-size: .96rem; }
.card-icon {
    display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-text);
}
.card-lg { padding: clamp(28px, 4vw, 44px); }
.card-lg .eyebrow { margin-top: 26px; }
.card p.card-statement { margin-top: 14px; color: var(--text); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.step-num { position: absolute; top: 26px; right: 28px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.affil h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: .03em; }

/* Pathway tiles */
.path-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.path-tile {
    display: flex; flex-direction: column; gap: 28px; padding: 24px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
    font-size: 1.1rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25;
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.path-tile .icon { color: var(--accent-text); }
.path-tile:hover { border-color: var(--accent); transform: translateY(-3px); }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.stat strong { display: block; font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.stat span { display: block; margin-top: 12px; font-weight: 650; }
.stat p { margin-top: 8px; color: var(--muted); font-size: .9rem; }

/* Programs page */
.program-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.program { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 120px; }
.program:target { border-color: var(--accent); }
.program-head { display: flex; gap: 18px; align-items: flex-start; }
.program-head h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; }
.program-head p { margin-top: 6px; color: var(--muted); font-size: .96rem; }
.program-empty { margin-top: 22px; color: var(--muted); font-size: .92rem; }
.program-empty a { color: var(--accent-text); font-weight: 600; }
.course-list { display: grid; gap: 8px; margin-top: 22px; }
.course-list a {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px;
    border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg);
    transition: border-color .2s var(--ease);
}
.course-list a:hover { border-color: var(--accent); }
.course-name { font-weight: 600; margin-right: auto; }
.course-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.course-apply { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-size: .85rem; font-weight: 700; white-space: nowrap; }

/* Timeline */
.timeline { display: grid; gap: 12px; counter-reset: step; }
.timeline li {
    display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding: 24px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.timeline-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.timeline h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.015em; }
.timeline p { margin-top: 6px; color: var(--muted); font-size: .96rem; }

/* Call to action */
.cta {
    position: relative; overflow: hidden; text-align: center;
    padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
    border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 10px);
    background:
        radial-gradient(60% 90% at 50% 120%, var(--glow), transparent 70%),
        var(--surface);
}
.cta .eyebrow { margin-bottom: 18px; }
.cta .lead { margin: 18px auto 0; }
.cta .btn-row { margin-top: 32px; }

/* Success */
.success-mark {
    display: grid; place-items: center; width: 76px; height: 76px; margin: 0 0 26px; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 12px var(--accent-soft);
}
.page-hero-center .success-mark { margin-inline: auto; }
.ref-card {
    display: grid; gap: 6px; max-width: 440px; margin: 36px auto; padding: 26px;
    border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface);
}
.ref-card span { color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.ref-card strong { font-size: 2rem; font-weight: 700; letter-spacing: .02em; color: var(--accent-text); }
.ref-card small { color: var(--muted); font-size: .88rem; }

/* 8. Forms ---------------------------------------------------------------- */

.section-form { padding-top: 32px; }
.form { display: grid; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px;
    border: 1px solid var(--line); border-radius: var(--radius-md); font-size: .94rem;
}
.alert .icon { margin-top: 2px; }
.alert-error { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.alert-note { background: var(--accent-soft); border-color: transparent; }
.alert-note .icon { color: var(--accent-text); }

.form-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-card-pad { padding: clamp(28px, 5vw, 48px); }
.form-card-pad .lead { margin-top: 12px; }
.form-card-head { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.form-card-head > div { flex: 1 1 180px; min-width: 0; }
.form-card-head h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.form-card-head p { color: var(--muted); font-size: .9rem; }
.form-num {
    display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink); font-size: .9rem; font-weight: 800;
}
.form-card-body { display: grid; gap: 22px; padding: 26px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field > label, .field > .label { font-size: .88rem; font-weight: 650; }
.req { color: var(--danger); }
.optional { color: var(--muted); font-weight: 500; }
.hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.field-error { color: var(--danger); font-size: .84rem; font-weight: 600; }

.control { position: relative; }
.control > .icon { position: absolute; left: 15px; top: 15px; color: var(--muted); pointer-events: none; }
.control input, .control select, .control textarea {
    width: 100%; min-height: 48px; padding: 0 16px 0 44px;
    border: 1px solid var(--line-strong); border-radius: 12px; background: var(--field);
    font-size: .96rem; font-weight: 500;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.control textarea { padding: 14px 16px; min-height: 150px; resize: vertical; line-height: 1.55; }
.control input::placeholder, .control textarea::placeholder { color: var(--muted); opacity: .75; }
.control select {
    appearance: none; -webkit-appearance: none; padding-right: 42px; text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a96a3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center;
}
.control select:invalid, .control select.is-empty { color: var(--muted); }
.control select option { color: var(--text); background: var(--surface); }
.control input:hover, .control select:hover, .control textarea:hover { border-color: var(--muted); }
.control input:focus, .control select:focus, .control textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.control-file input { padding: 9px 12px 9px 44px; height: auto; font-size: .88rem; color: var(--muted); }
.control-file input::file-selector-button {
    margin-right: 12px; padding: 6px 14px; border: 0; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-text); font: inherit; font-weight: 700; cursor: pointer;
}
.has-error .control input, .has-error .control select, .has-error .control textarea { border-color: var(--danger); }
.has-error .choice, .has-error .consent { border-color: var(--danger); }

/* Choice cards (radio) */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 16px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--field); cursor: pointer;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--surface-2); color: var(--muted); transition: background-color .2s, color .2s; }
.choice-text { display: grid; margin-right: auto; line-height: 1.3; }
.choice-text strong { font-weight: 700; font-size: .98rem; }
.choice-text small { color: var(--muted); font-size: .82rem; }
.choice-mark { width: 20px; height: 20px; flex: none; border: 1.5px solid var(--line-strong); border-radius: 50%; transition: border-color .2s, box-shadow .2s; }
.choice:hover { border-color: var(--muted); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:checked) .choice-icon { background: var(--accent); color: var(--accent-ink); }
.choice:has(input:checked) .choice-mark { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--field), inset 0 0 0 10px var(--accent); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }

/* Checkboxes */
.check-box {
    display: grid; place-items: center; width: 22px; height: 22px; flex: none;
    border: 1.5px solid var(--line-strong); border-radius: 7px; background: var(--field); color: transparent;
    transition: background-color .15s, border-color .15s, color .15s;
}
.check-pill, .consent { position: relative; cursor: pointer; }
.check-pill input, .consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
input:checked + .check-box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
input:focus-visible + .check-box { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }

.check-pill {
    display: inline-flex; align-items: center; gap: 12px; justify-self: start; padding: 12px 18px 12px 14px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--field);
    font-weight: 700; font-size: .95rem;
}
.check-pill-sm { padding: 8px 14px 8px 10px; border-radius: 999px; font-size: .85rem; font-weight: 650; }
.check-pill-sm .check-box { width: 18px; height: 18px; border-radius: 6px; }

.consent-list { display: grid; gap: 10px; }
.consent {
    display: flex; gap: 14px; align-items: flex-start; padding: 15px 16px;
    border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--field);
    font-size: .93rem; line-height: 1.5;
    transition: border-color .2s;
}
.consent:hover { border-color: var(--line-strong); }
.consent a { color: var(--accent-text); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* Conditional panels: collapsed only when JavaScript is running */
.sub-panel { display: grid; gap: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-2); }
.sub-group { display: grid; gap: 22px; }
.js .sub-panel:not(.is-open), .js .sub-group:not(.is-open) { display: none; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }

.form-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 6px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-side { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-item div { display: grid; min-width: 0; }
.contact-item span:not(.card-icon) { color: var(--muted); font-size: .82rem; font-weight: 600; }
.contact-item a, .contact-item strong { font-weight: 650; overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--accent-text); }

/* 9. Footer --------------------------------------------------------------- */

.site-footer { position: relative; margin-top: clamp(32px, 6vw, 72px); padding-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-about p { margin-top: 14px; max-width: 42ch; color: var(--muted); font-size: .94rem; }
.footer-about .footer-tagline { color: var(--text); font-weight: 600; }
.footer-title { margin-bottom: 18px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-list { display: grid; gap: 11px; font-size: .95rem; }
.footer-list a { transition: color .2s; }
.footer-list a:hover { color: var(--accent-text); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; color: var(--accent-text); }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color .2s, color .2s, border-color .2s; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.footer-wordmark {
    margin: clamp(32px, 6vw, 64px) 0 -0.12em; text-align: center; user-select: none;
    font-size: clamp(4.5rem, 21vw, 17rem); font-weight: 800; letter-spacing: -.05em; line-height: .85; white-space: nowrap;
    background: linear-gradient(180deg, var(--text) 0%, transparent 92%);
    -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .16;
}
.footer-bottom {
    position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 22px 0 28px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: .88rem; background: var(--bg);
}
.footer-bottom a:hover { color: var(--text); }

/* 10. Motion & responsive ------------------------------------------------- */

.reveal-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal-ready .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1020px) {
    .nav-links { display: none; }
    .nav-toggle { display: inline-grid; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
    .card-grid, .affil-grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .service-row { grid-template-columns: 40px 1fr 52px; }
    .service-text { grid-column: 2 / 3; grid-row: 2; }
    .service-arrow { grid-row: 1 / 3; grid-column: 3; }
}
@media (min-width: 1021px) {
    .mobile-nav { display: none !important; }
}

@media (max-width: 820px) {
    .split, .feature, .duo, .program-list, .contact-grid { grid-template-columns: 1fr; }
    .sticky { position: static; }
    .stat-grid { grid-template-columns: 1fr; }
    .section-head { align-items: flex-start; }
    .glow { width: 130vw; }
    .photo-wide { aspect-ratio: 4 / 3; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 32px, var(--container)); }
    .site-header { padding-top: 10px; }
    .nav { min-height: 58px; padding: 0 8px 0 14px; gap: 8px; }
    .nav-apply-long { display: none; }
    .nav-apply { padding: 0 14px; }
    .brand { font-size: 1.1rem; gap: 9px; }
    .brand-logo { height: 26px; }
    .field-grid, .choice-grid, .card-grid, .affil-grid, .step-grid, .check-list-2, .footer-top { grid-template-columns: 1fr; }
    .path-grid { grid-template-columns: 1fr 1fr; }
    .path-tile { padding: 18px; font-size: 1rem; gap: 18px; }
    .btn-row .btn { flex: 1 1 100%; }
    .form-card-head { padding: 18px; flex-wrap: wrap; }
    .form-card-body { padding: 18px; }
    .sub-panel { padding: 16px; }
    .form-submit { flex-direction: column-reverse; align-items: stretch; }
    .service-row { padding: 22px 6px; gap: 6px 14px; grid-template-columns: 30px 1fr 44px; }
    a.service-row:hover { padding-left: 6px; }
    .service-arrow { width: 44px; height: 44px; }
    .hero-visual { padding: 0 0 0 0; display: grid; gap: 12px; }
    .hero-photo { aspect-ratio: 4 / 3; }
    .hv-main { position: static; width: auto; }
    .hv-chip { font-size: .8rem; padding: 10px 14px; }
    .hv-chip-a { top: 14px; right: 14px; }
    .trust-strip .container { gap: 14px; }
    .trust-row { gap: 10px 18px; }
    .trust-name small { display: none; }
    .timeline li { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; }
    .timeline-num { width: 40px; height: 40px; }
    .course-apply { display: none; }
    .program, .card { padding: 22px; }
    .program-head { flex-direction: column; gap: 14px; }
    /* 16px inputs stop iOS from zooming the page on focus */
    .control input, .control select, .control textarea { font-size: 1rem; }
}

/* 11. Programs, courses and admissions ----------------------------------- */

/* Status tags */
.tag {
    display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px;
    font-size: .74rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; vertical-align: middle;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-open { background: var(--accent-soft); color: var(--accent-text); }
.tag-soon { background: rgba(242, 180, 65, .14); color: #f2b441; }
.tag-closed { background: var(--surface-2); color: var(--muted); }
[data-theme="light"] .tag-soon { color: #8a5a06; }

.live-dot {
    position: relative; display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent);
}
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

.live-note {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 14px 8px 12px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    font-size: .86rem; font-weight: 600; transition: border-color .2s var(--ease);
}
.live-note:hover { border-color: var(--accent); }
.live-note .icon { color: var(--muted); }
.eyebrow .live-dot { margin-right: 2px; }
.eyebrow:has(.live-dot)::before { display: none; }

/* Announcement bar */
.announce { background: var(--accent); color: var(--accent-ink); font-size: .88rem; font-weight: 650; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap; padding: 9px 0; text-align: center; }
.announce .live-dot, .announce .live-dot::after { background: var(--accent-ink); border-color: var(--accent-ink); }
.announce .live-dot::after { background: transparent; }
.announce a { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }

/* Home rows: open count next to the category name */
.service-title .tag { margin-left: 10px; letter-spacing: 0; transform: translateY(-3px); }

/* Filter bar */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
    border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text);
    font-size: .9rem; font-weight: 600; white-space: nowrap;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip b { font-weight: 600; font-size: .78rem; color: var(--muted); }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip.is-active b { color: inherit; opacity: .7; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch-track { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line-strong); transition: background-color .2s var(--ease); }
.switch-track span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track span { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 4px var(--accent-soft); }

.filter-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.link-button { padding: 0; border: 0; background: none; color: var(--accent-text); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* Category blocks and course cards */
.program-block { scroll-margin-top: 120px; }
.program-block + .program-block { margin-top: clamp(40px, 6vw, 72px); }
.program-block .program-head { align-items: center; margin-bottom: 22px; }
.program-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course-card {
    display: flex; flex-direction: column; gap: 12px; padding: 24px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.course-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.course-card[data-state="open"]:hover { border-color: var(--accent); }
.course-card[data-state="closed"] h3 { color: var(--muted); }
.course-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.course-card h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.course-card { position: relative; }
.course-card p { color: var(--muted); font-size: .94rem; }
.course-deadline { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.course-card .course-deadline { color: var(--text); font-size: .86rem; }
.course-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.course-card-actions .link-arrow { margin-top: 0; font-size: .92rem; }
.course-card-actions .btn { position: relative; z-index: 1; }
.more-note { margin-top: 8px; text-align: center; }

/* Course page */
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.crumbs a:hover { color: var(--text); }
.course-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.course-hero .display-2 { margin-top: 18px; }
.fact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 32px 0 0; }
.fact-row div { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.fact-row dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.fact-row dt .icon { color: var(--accent-text); }
.fact-row dd { margin: 6px 0 0; font-weight: 650; line-height: 1.35; }

.apply-card {
    position: sticky; top: 110px; display: grid; gap: 14px; padding: 26px;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: radial-gradient(320px 200px at 100% 0%, var(--accent-soft), transparent 70%), var(--surface);
}
.apply-card-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.apply-card p:not(.apply-card-title) { color: var(--muted); font-size: .94rem; }
.apply-card-link { justify-self: center; color: var(--muted); font-size: .86rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.apply-card-link:hover { color: var(--text); }

.course-body { display: grid; gap: clamp(36px, 5vw, 56px); max-width: 900px; }
.course-section h2 { margin-bottom: 18px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -.025em; }
.module-list { display: grid; gap: 8px; }
.module-list li { display: flex; gap: 16px; align-items: baseline; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-weight: 600; }
.module-list span { color: var(--accent-text); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Application form: progress, selected course, closed state */
.js-only-block { display: none; }
.js .js-only-block { display: block; }
.form-progress { position: sticky; top: 86px; z-index: 20; padding: 10px 0 0; pointer-events: none; }
.form-progress ol {
    display: flex; gap: 4px; padding: 6px; pointer-events: auto;
    border: 1px solid var(--line); border-radius: 999px; background: var(--header-bg);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
.form-progress li { flex: 1; min-width: 0; }
.form-progress a {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 8px; border-radius: 999px;
    color: var(--muted); font-size: .82rem; font-weight: 650; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.form-progress a span {
    display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%;
    border: 1.5px solid var(--line-strong); font-size: .72rem; transition: background-color .2s, border-color .2s, color .2s;
}
.form-progress a em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-progress a.is-current { background: var(--surface-2); color: var(--text); }
.form-progress a.is-done span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-size: 0; }
.form-progress a.is-done span::after { content: "✓"; font-size: .74rem; font-weight: 800; }
.form-card[data-step] { scroll-margin-top: 160px; }

.course-info {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: start; padding: 18px;
    border: 1px solid var(--accent); border-radius: var(--radius-md); background: var(--accent-soft);
}
.course-info strong { font-weight: 700; }
.course-info p { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.course-info dl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.course-info dl div { padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: .82rem; }
.course-info dt { display: inline; color: var(--muted); }
.course-info dd { display: inline; margin: 0 0 0 4px; font-weight: 650; }
.course-info a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-size: .86rem; font-weight: 650; white-space: nowrap; }

.alert-warn { border-color: rgba(242, 180, 65, .5); background: rgba(242, 180, 65, .1); margin-bottom: 18px; }
.alert-warn .icon { color: #f2b441; }
.alert-warn a { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.closed-card { display: grid; gap: 16px; justify-items: start; }
.closed-card .lead { margin-top: 0; }

@media (max-width: 1020px) {
    .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .course-hero-grid { grid-template-columns: 1fr; }
    .apply-card { position: static; }
}
@media (max-width: 620px) {
    .course-grid { grid-template-columns: 1fr; }
    .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
    .chips::-webkit-scrollbar { display: none; }
    .filter-bar { align-items: flex-start; }
    .form-progress { top: 76px; }
    .form-progress a em { display: none; }
    .form-progress a.is-current em { display: inline; }
    .form-progress li:has(.is-current) { flex: 2.4; }
    .course-info { grid-template-columns: 1fr; }
    .service-title .tag { display: inline-flex; margin: 6px 0 0; transform: none; }
}

/* 12. Final polish: custom selects, date of birth, uploads, error summary, FAQ, mobile bar -- */

/* Custom select (progressive enhancement of <select>; the native control stays in the form) */
.cs-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px; opacity: 0; pointer-events: none; overflow: hidden; }
.cs { position: relative; }
.cs-button {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px 0 44px;
    border: 1px solid var(--line-strong); border-radius: 12px; background: var(--field); color: var(--text);
    font-size: .96rem; font-weight: 500; text-align: left; line-height: 1.3; cursor: pointer;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.control-plain .cs-button, .control-plain input { padding-left: 14px; }
.cs-button .icon { color: var(--muted); transition: transform .2s var(--ease); }
.cs-button:hover { border-color: var(--muted); }
.cs-button:focus-visible, .cs.is-open .cs-button { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cs.is-open .cs-button .icon { transform: rotate(180deg); }
.cs-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs.is-placeholder .cs-value { color: var(--muted); }
.cs.is-disabled .cs-button { opacity: .55; cursor: not-allowed; }
.has-error .cs-button { border-color: var(--danger); }
.cs-panel {
    position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; min-width: 240px;
    display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden;
    border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
    animation: cs-in .16s var(--ease);
}
.cs-up .cs-panel { top: auto; bottom: calc(100% + 6px); }
@keyframes cs-in { from { opacity: 0; transform: translateY(-4px); } }
.cs-sheet-head { display: none; }
.cs-search { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cs-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 6px 0; font-size: .95rem; color: var(--text); }
.cs-search input:focus { outline: none; }
.cs-list { max-height: 300px; overflow-y: auto; padding: 6px; overscroll-behavior: contain; scrollbar-width: thin; }
.cs-list:focus { outline: none; }
.cs-group { padding: 10px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cs-option {
    display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 12px; border-radius: 9px;
    font-size: .95rem; font-weight: 500; cursor: pointer; scroll-margin: 6px;
}
.cs-option span:first-child { flex: 1; min-width: 0; }
.cs-option small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.cs-option .icon { color: var(--accent-text); opacity: 0; flex: none; }
.cs-option[aria-selected="true"] { font-weight: 650; }
.cs-option[aria-selected="true"] .icon { opacity: 1; }
.cs-option.is-active { background: var(--surface-2); }
.cs-option[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.cs-option-clear { color: var(--muted); font-style: italic; }
.cs-empty { padding: 18px; text-align: center; color: var(--muted); font-size: .9rem; }

/* On phones the list opens as a bottom sheet with a dimmed backdrop */
@media (max-width: 620px) {
    .cs.is-open::before { content: ""; position: fixed; inset: 0; z-index: 69; background: rgba(0, 0, 0, .55); animation: cs-fade .2s var(--ease); }
    @keyframes cs-fade { from { opacity: 0; } }
    .cs-panel, .cs-up .cs-panel {
        position: fixed; z-index: 70; inset: auto 0 0 0; top: auto; max-height: min(78vh, 620px); min-width: 0;
        border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom);
        animation: cs-sheet .25s var(--ease);
    }
    @keyframes cs-sheet { from { transform: translateY(24px); opacity: 0; } }
    .cs-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; font-weight: 700; }
    .cs-sheet-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; border-radius: 2px; background: var(--line-strong); transform: translateX(-50%); }
    .cs-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); }
    .cs-list { max-height: none; padding: 6px 10px 12px; }
    .cs-option { min-height: 48px; font-size: 1rem; }
    .cs-search { padding: 8px 18px; }
    .cs-search input { font-size: 1rem; }
    body.cs-lock { overflow: hidden; }
}

/* Valid-state tick on text inputs */
.field.is-valid .control:not(.control-plain):not(.control-file) > input { border-color: var(--accent); padding-right: 44px; }
.field.is-valid .control:not(.control-plain):not(.control-file):has(> input)::after {
    content: ""; position: absolute; right: 15px; top: 15px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat, linear-gradient(#000 0 0); mask-composite: exclude;
}
.field.is-valid .cs-button, .field.is-valid .dob-grid input { border-color: var(--accent); }

/* Date of birth: three labelled boxes (day, month, year) */
.dob-grid { display: grid; grid-template-columns: 72px 72px 1fr; gap: 10px; max-width: 320px; }
.dob-part { display: grid; gap: 6px; }
.dob-part label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.dob-grid input { text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.dob-part-year input { text-align: left; }

/* Pill radios (gender) */
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-choice { position: relative; cursor: pointer; }
.pill-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill-choice span {
    display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 12px;
    background: var(--field); font-weight: 600; font-size: .95rem; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.pill-choice:hover span { border-color: var(--muted); }
.pill-choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.pill-choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }
.has-error .pill-choice span { border-color: var(--danger); }

/* Nomination letter upload */
.file-drop { position: relative; }
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop.has-file .file-input { pointer-events: none; height: 0; }
.file-drop-label {
    display: grid; justify-items: center; gap: 6px; padding: 24px 18px; text-align: center;
    border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--field); color: var(--muted);
    font-size: .92rem; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.file-drop-label strong { color: var(--accent-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.file-drop-label small { font-size: .8rem; }
.file-drop-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 4px; }
.file-drop:hover .file-drop-label, .file-drop.is-dragging .file-drop-label { border-color: var(--accent); background: var(--accent-soft); }
.file-input:focus-visible + .file-drop-label { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.file-drop.has-file .file-drop-label { display: none; }
.has-error .file-drop-label { border-color: var(--danger); }
.file-chosen {
    display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px;
    border: 1px solid var(--accent); border-radius: var(--radius-md); background: var(--accent-soft);
}
.file-chosen .icon:first-child { color: var(--accent-text); }
.file-chosen-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chosen-size { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.icon-btn-sm { width: 34px; height: 34px; }
@media (max-width: 620px) { .file-drop-or { display: none; } }

/* Error summary (links jump to each field) */
.error-summary { align-items: flex-start; }
.error-summary:focus { outline: 2px solid var(--danger); outline-offset: 3px; }
.error-summary ul { display: grid; gap: 6px; margin-top: 8px; padding-left: 1.1em; list-style: disc; font-weight: 500; }
.error-summary ul:empty { display: none; }
.error-summary a { text-decoration: underline; text-underline-offset: 3px; }
.secure-note { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); font-size: .78rem; font-weight: 600; }
.secure-note .icon { color: var(--accent-text); }
.text-link { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Audience list (home) */
.audience-list { display: grid; gap: 14px; margin-top: 26px; }
.audience-list li { display: flex; gap: 14px; align-items: flex-start; }
.audience-list strong { display: block; font-weight: 650; }
.audience-list p { margin-top: 3px; color: var(--muted); font-size: .94rem; }
.check-mark { display: grid; place-items: center; width: 26px; height: 26px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.live-note-sep { color: var(--muted); margin: 0 -2px; }

/* FAQ accordion */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: border-color .2s var(--ease); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none;
    font-weight: 650; font-size: 1.02rem; line-height: 1.35; border-radius: var(--radius-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s; }
.faq details[open] .faq-icon { transform: rotate(0deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq-body { padding: 0 20px 20px; color: var(--muted); font-size: .97rem; line-height: 1.6; }

/* Mobile apply bar */
.mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; align-items: center; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
    background: var(--header-bg); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    transform: translateY(110%); transition: transform .3s var(--ease);
}
.mobile-cta .btn { flex: 1; }
.mobile-cta .icon-btn { width: 50px; height: 50px; flex: none; }
.mobile-cta.is-visible { transform: none; }
@media (max-width: 820px) { .mobile-cta { display: flex; } }

.footer-domain { color: var(--muted); }

/* 13. Step-by-step application ------------------------------------------ */
.js .wizard [data-step]:not(.is-active) { display: none; }
.js .wizard .form-submit { display: none; }
.js .wizard.is-last .form-submit { display: flex; }
.js .wizard.is-last .form-submit [data-submit] { display: none; }
.js .step-nav.js-only-block, .step-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 6px 26px 24px; }
.step-count { color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.step-nav-buttons { display: flex; gap: 10px; margin-left: auto; }
.form-progress a { pointer-events: none; }
.form-progress a.is-visited, .form-progress a.is-current { pointer-events: auto; }
.form-progress a.is-visited:not(.is-current):hover { color: var(--text); }
.form-card[data-step] h2:focus { outline: none; }

/* Documents step */
.doc-list { display: grid; }
.doc-item { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px 28px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.doc-item:first-child { padding-top: 0; border-top: 0; }
.doc-item:last-child { padding-bottom: 0; }
.doc-copy { display: grid; gap: 6px; }
.doc-copy label { font-size: .95rem; font-weight: 650; }
.doc-item .file-drop-label { padding: 18px 16px; }

/* Review step */
.review { display: grid; gap: 12px; }
.review-group { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--field); }
.review-group h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .98rem; font-weight: 700; }
.review-group dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-top: 14px; }
.review-group dt { font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.review-group dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.review-group dl > dd.muted { grid-column: 1 / -1; font-weight: 500; }
@media (max-width: 620px) {
    .doc-item { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
    .review-group dl { grid-template-columns: 1fr; gap: 10px; }
    .step-nav { padding: 4px 18px 18px; }
    .step-nav-buttons { width: 100%; }
    .step-nav-buttons .btn { flex: 1; }
    .form-progress li:has(.is-current) { flex: 2.6; }
}
