/* ==========================================================================
   EPOCH Cohort 3 | site.css
   Mobile-first. Strict monochrome. No emojis, no em dashes.
   Palette: #000000 #0a0a0a #141414 #262626 #ffffff #888888
   (index.html only. styles.css and feedback.css still serve the cohort 2 subpage.)
   ========================================================================== */

:root {
    --black: #000000;
    --ink: #0a0a0a;
    --panel: #141414;
    --line: #262626;
    --white: #ffffff;
    --mute: #888888;
    --soft: #bdbdbd;

    --f-head: 'Space Grotesk', -apple-system, 'Segoe UI', sans-serif;
    --f-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --gutter: 20px;
    --nav-h: 60px;
    --bar-h: 72px;
    --r: 14px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    background: var(--black);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: calc(var(--bar-h) + var(--safe-b));
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.mono {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mute);
}

.dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--white);
    margin-right: 8px;
    vertical-align: 1px;
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { transition: transform 0.25s var(--ease); }
.btn-solid { background: var(--white); color: var(--black); }
.btn-ghost { border: 1px solid #3a3a3a; color: var(--white); }
@media (hover: hover) {
    .btn-solid:hover { background: #e6e6e6; }
    .btn-solid:hover svg { transform: translateX(3px); }
    .btn-ghost:hover { border-color: var(--white); }
}

/* ---------- Header ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    height: calc(var(--nav-h) + var(--safe-t));
    padding-top: var(--safe-t);
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.brand-word { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.14em; }
.brand-chip {
    font-family: var(--f-mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--soft);
}
.nav-links { display: none; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-apply {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--white);
    color: var(--black);
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}
.menu-btn {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
}
.menu-btn span, .menu-btn span::before {
    display: block;
    width: 20px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), background 0.2s;
}
.menu-btn span { position: relative; }
.menu-btn span::before { content: ''; position: absolute; top: 6px; left: 0; }
.menu-btn span::after {
    content: '';
    position: absolute; top: -6px; left: 0;
    width: 20px; height: 2px; background: var(--white); border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-btn[aria-expanded='true'] span { background: transparent; }
.menu-btn[aria-expanded='true'] span::before { transform: translateY(-6px) rotate(-45deg); }
.menu-btn[aria-expanded='true'] span::after { transform: translateY(6px) rotate(45deg); }

/* Full screen menu (phone) */
.menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: var(--black);
    padding: calc(var(--nav-h) + var(--safe-t) + 24px) var(--gutter) calc(32px + var(--safe-b));
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu a.m-link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    min-height: 64px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--f-head);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.menu a.m-link small { font-family: var(--f-mono); font-size: 0.68rem; color: var(--mute); letter-spacing: 0.08em; }
.menu .btn { margin-top: auto; width: 100%; }

/* ---------- Layout helpers ---------- */
section { position: relative; }
.sec { padding: 72px 0; }
.sec-alt { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { margin-bottom: 36px; max-width: 760px; }
.sec-head .mono { display: block; margin-bottom: 14px; }
.sec-head h2 {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(1.9rem, 7.4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}
.sec-head p { margin-top: 16px; color: var(--soft); font-size: 1.02rem; max-width: 62ch; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + var(--safe-t) + 44px) 0 56px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 20%, transparent 75%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    top: -30%; left: 50%;
    width: 120vw; max-width: 1100px; aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(255,255,255,0.09), transparent);
    pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-tag {
    display: inline-flex; align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(20,20,20,0.7);
}
.hero h1 {
    margin-top: 24px;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(2.55rem, 11.4vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--mute); }
.hero-sub {
    margin-top: 22px;
    color: var(--soft);
    font-size: 1.06rem;
    max-width: 58ch;
}
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }

.facts {
    margin-top: 44px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--line);
    gap: 1px;
}
.fact { background: var(--ink); padding: 20px 18px; }
.fact b {
    display: block;
    font-family: var(--f-head);
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.fact span { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--mute); line-height: 1.35; }

.details {
    margin-top: 14px;
    display: grid;
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--line);
}
.details div { background: var(--ink); padding: 14px 18px; display: grid; gap: 3px; }
.details dt { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.details dd { font-size: 0.98rem; }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 16px; }
.pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 22px 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.pillar.hl { background: var(--white); color: var(--black); border-color: var(--white); }
.pillar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pillar-num {
    font-family: var(--f-head);
    font-size: 4rem;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1.5px #5a5a5a;
}
.pillar.hl .pillar-num { -webkit-text-stroke-color: #000; }
.pillar-flag {
    font-family: var(--f-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #3a3a3a;
    color: var(--soft);
    text-transform: uppercase;
}
.pillar.hl .pillar-flag { background: #000; border-color: #000; color: #fff; }
.pillar h3 {
    margin-top: 22px;
    font-family: var(--f-head);
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.pillar-promise { margin-top: 10px; font-size: 1.02rem; font-weight: 500; color: var(--white); }
.pillar.hl .pillar-promise { color: #000; }
.pillar ul { margin-top: 20px; display: grid; gap: 14px; }
.pillar li {
    position: relative;
    padding-left: 18px;
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--soft);
}
.pillar.hl li { color: #2a2a2a; }
.pillar li::before {
    content: '';
    position: absolute; left: 0; top: 0.62em;
    width: 7px; height: 1px; background: currentColor;
}
.pillar li strong { color: var(--white); font-weight: 600; }
.pillar.hl li strong { color: #000; }
.pillar-out {
    margin-top: auto;
    padding-top: 22px;
}
.pillar-out-in {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.pillar.hl .pillar-out-in { border-top-color: #cfcfcf; }
.pillar-out .mono { display: block; margin-bottom: 6px; }
.pillar.hl .pillar-out .mono { color: #555; }
.pillar-out p { font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }

/* ---------- Proof band (Indian Express half + war room half) ---------- */
.proof { display: grid; gap: 16px; }
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.card-badge {
    position: absolute; left: 12px; bottom: 12px;
    display: inline-flex; align-items: center;
    padding: 6px 11px;
    background: rgba(0,0,0,0.82);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--f-mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.card-body { padding: 22px 20px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.card h3 { font-family: var(--f-head); font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.card blockquote { font-size: 0.93rem; color: var(--soft); line-height: 1.6; border-left: 2px solid #3a3a3a; padding-left: 14px; }
.card-link {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px;
    font-family: var(--f-mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}
.card-link svg { transition: transform 0.25s var(--ease); }
@media (hover: hover) { .card-link:hover svg { transform: translate(2px, -2px); } }
.card-note { font-size: 0.8rem; color: var(--mute); }
.card p.cap { font-size: 0.93rem; color: var(--soft); }

/* ---------- Compare ---------- */
.compare { display: grid; gap: 12px; }
.cmp {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--line);
    gap: 1px;
}
.cmp > div { padding: 16px 18px; background: var(--ink); }
.cmp .old { color: var(--mute); }
.cmp .old span { text-decoration: line-through; text-decoration-color: #555; }
.cmp .new { background: var(--panel); color: var(--white); font-weight: 500; }
.cmp small { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); text-decoration: none; }
.cmp .new small { color: var(--soft); }
.compare-note { margin-top: 8px; color: var(--mute); font-size: 0.9rem; max-width: 70ch; }

.paths { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.path {
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel);
}
.path b { display: block; font-family: var(--f-mono); font-size: 0.66rem; color: var(--mute); letter-spacing: 0.1em; margin-bottom: 10px; font-weight: 500; }
.path h4 { font-family: var(--f-head); font-size: 1rem; line-height: 1.25; font-weight: 600; }
.path p { margin-top: 8px; font-size: 0.82rem; color: var(--mute); line-height: 1.5; }
.paths-title { margin-top: 44px; }

/* ---------- Rails (swipe on phone, grid on desktop) ---------- */
.chips { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.chip {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #333;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--soft);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip[aria-pressed='true'] { background: var(--white); color: var(--black); border-color: var(--white); }

.rail {
    display: flex;
    gap: 12px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 84%; scroll-snap-align: start; }
.rail-hint { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.rail-bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-bar i { display: block; height: 100%; width: 20%; background: var(--white); transform-origin: left; transition: transform 0.1s linear; }

.builder {
    padding: 22px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    display: flex; flex-direction: column; gap: 10px;
}
.builder[hidden] { display: none; }
.b-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mono-box {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    font-family: var(--f-head); font-weight: 700; font-size: 0.95rem;
}
.b-tag {
    font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--soft);
}
.builder h3 { font-family: var(--f-head); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.b-venture { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); }
.builder p { font-size: 0.9rem; color: var(--mute); line-height: 1.55; }
.b-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.b-sector { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.b-in {
    margin-left: auto;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%;
    color: var(--soft);
}
@media (hover: hover) { .b-in:hover { color: #000; background: #fff; } }

.voice {
    padding: 26px 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    display: flex; flex-direction: column; gap: 16px;
}
.v-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.v-quote { font-family: var(--f-head); font-size: 1.28rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.v-body { font-size: 0.9rem; color: var(--mute); line-height: 1.65; }
.v-by { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; }
.v-by strong { display: block; font-family: var(--f-head); font-size: 1rem; }
.v-by span { font-size: 0.8rem; color: var(--mute); line-height: 1.4; display: block; margin-top: 2px; }
.v-metric { flex: none; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border: 1px solid #3a3a3a; border-radius: 999px; }

/* ---------- Partners ---------- */
.partners { display: grid; gap: 12px; }
.partner {
    padding: 22px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    display: flex; flex-direction: column; gap: 12px;
}
.p-logo { height: 52px; display: flex; align-items: center; gap: 12px; }
.p-logo img { max-height: 40px; max-width: 190px; width: auto; object-fit: contain; }
.p-logo.inv img { filter: brightness(0) invert(1); opacity: 0.9; }
.p-logo.aig img { height: 36px; border-radius: 4px; }
.p-logo.aig span { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.p-logo.aic img { max-height: 48px; border-radius: 4px; }
.p-logo.hsbc img { height: 38px; }
.p-logo.hsbc div { display: flex; flex-direction: column; line-height: 1.15; }
.p-logo.hsbc b { font-family: var(--f-head); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.04em; }
.p-logo.hsbc small { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.partner h3 { font-family: var(--f-head); font-size: 1.15rem; font-weight: 600; }
.partner p { font-size: 0.9rem; color: var(--mute); line-height: 1.55; }

/* ---------- Selection accordion ---------- */
.sel { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.sel details { border-bottom: 1px solid var(--line); }
.sel summary {
    list-style: none;
    display: flex; align-items: center; gap: 16px;
    min-height: 72px;
    padding: 14px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.sel summary::-webkit-details-marker { display: none; }
.sel summary .n { font-family: var(--f-mono); font-size: 0.76rem; color: var(--mute); letter-spacing: 0.06em; flex: none; }
.sel summary .t { font-family: var(--f-head); font-size: 1.12rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.sel summary .pm { margin-left: auto; flex: none; width: 28px; height: 28px; position: relative; }
.sel summary .pm::before, .sel summary .pm::after {
    content: ''; position: absolute; left: 6px; right: 6px; top: 13px; height: 2px; background: var(--white);
    transition: transform 0.3s var(--ease);
}
.sel summary .pm::after { transform: rotate(90deg); }
.sel details[open] summary .pm::after { transform: rotate(0); }
.sel .body { padding: 0 0 24px 0; color: var(--soft); max-width: 62ch; font-size: 0.98rem; line-height: 1.65; }

/* ---------- Apply ---------- */
.apply-card {
    padding: 36px 22px;
    border: 1px solid #333;
    border-radius: 20px;
    background: var(--ink);
    text-align: left;
    position: relative;
    overflow: hidden;
}
.apply-card h2 { margin-top: 16px; font-family: var(--f-head); font-weight: 700; font-size: clamp(2rem, 8.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.apply-card > p { margin-top: 16px; color: var(--soft); max-width: 54ch; }
.apply-grid { margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.apply-grid div { background: var(--panel); padding: 16px 16px; }
.apply-grid small { display: block; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--mute); text-transform: uppercase; margin-bottom: 4px; }
.apply-grid b { font-family: var(--f-head); font-size: 1rem; font-weight: 600; }
.apply-card .btn { width: 100%; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 28px; border-top: 1px solid var(--line); }
.footer-in { display: grid; gap: 22px; }
.f-title { font-family: var(--f-head); font-weight: 700; letter-spacing: 0.1em; font-size: 0.95rem; }
.f-sub { margin-top: 4px; color: var(--mute); font-size: 0.85rem; }
.f-meta { color: var(--mute); font-size: 0.85rem; display: grid; gap: 6px; }
.f-meta a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sticky apply bar (phone) ---------- */
.bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: 10px var(--gutter) calc(10px + var(--safe-b));
    background: rgba(0, 0, 0, 0.96);
    border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: 14px;
    transform: translateY(110%);
    transition: transform 0.35s var(--ease);
}
.bar.show { transform: translateY(0); }
.bar-txt { flex: 1; line-height: 1.25; }
.bar-txt b { display: block; font-family: var(--f-head); font-size: 0.95rem; }
.bar-txt span { font-size: 0.74rem; color: var(--mute); }
.bar .btn { min-height: 48px; padding: 0 22px; }

/* ---------- Reveal ---------- */
.js-ready .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js-ready .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js-ready .rv { opacity: 1; transform: none; transition: none; }
    .dot { animation: none; }
    * { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Tablet and up
   ========================================================================== */
@media (min-width: 720px) {
    :root { --gutter: 32px; --nav-h: 68px; }
    .sec { padding: 104px 0; }
    .sec-head { margin-bottom: 52px; }
    .hero { padding-top: calc(var(--nav-h) + var(--safe-t) + 80px); padding-bottom: 88px; }
    .hero-cta { flex-direction: row; }
    .facts { grid-template-columns: repeat(4, 1fr); }
    .fact { padding: 26px 24px; }
    .details { grid-template-columns: repeat(2, 1fr); }
    .cmp { grid-template-columns: 1fr 1fr; }
    .paths { grid-template-columns: repeat(4, 1fr); }
    .partners { grid-template-columns: repeat(2, 1fr); }
    .apply-card { padding: 56px 48px; }
    .apply-grid { grid-template-columns: repeat(4, 1fr); }
    .apply-card .btn { width: auto; }
    .footer-in { grid-template-columns: 1fr auto; align-items: end; }
    .f-meta { text-align: right; }
}

@media (min-width: 960px) {
    .menu-btn, .menu { display: none; }
    .nav-links { display: flex; gap: 28px; }
    .nav-links a {
        font-family: var(--f-body);
        font-size: 0.88rem;
        color: var(--soft);
        padding: 8px 0;
        position: relative;
        transition: color 0.2s;
    }
    .nav-links a::after {
        content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
        background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
    }
    .nav-links a:hover, .nav-links a.active { color: var(--white); }
    .nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

    .hero h1 { max-width: 16ch; }
    .details { grid-template-columns: repeat(4, 1fr); }

    .pillars { grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
    .pillar { padding: 32px 28px 28px; }
    .pillar.hl { transform: translateY(-14px); }
    @media (hover: hover) {
        .pillar:not(.hl):hover { border-color: #4a4a4a; transform: translateY(-4px); }
    }

    .proof { grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
    .card-body { padding: 28px 28px 26px; }
    .card h3 { font-size: 1.45rem; }

    .rail { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 16px; }
    .rail > * { flex: none; }
    .rail-hint { display: none; }
    .rail.voices { grid-template-columns: repeat(3, 1fr); }

    .partners { grid-template-columns: repeat(4, 1fr); }
    .sel summary .t { font-size: 1.3rem; }

    /* bar is a phone pattern */
    .bar { display: none; }
    body { padding-bottom: 0; }
}

/* Phone: the menu button and the sticky apply bar carry the CTA, so the header stays clean. */
@media (max-width: 719px) {
    .nav-apply { display: none; }
}

/* ==========================================================================
   Apply page (apply.html)
   ========================================================================== */
.apply-page { padding-bottom: calc(40px + var(--safe-b)); }
.back-link { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); min-height: 48px; display: inline-flex; align-items: center; padding: 0 4px; }
@media (hover: hover) { .back-link:hover { color: var(--white); } }

.ap-main { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 24px; }
.ap-wrap { max-width: 760px; }
.ap-head h1, .ap-done h1 { margin-top: 16px; font-family: var(--f-head); font-weight: 700; font-size: clamp(2.2rem, 10vw, 3.8rem); line-height: 1.04; letter-spacing: -0.03em; }
.ap-head p, .ap-done p { margin-top: 16px; color: var(--soft); max-width: 56ch; }

.ap-facts { margin: 28px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ap-facts div { background: var(--panel); padding: 14px 14px; }
.ap-facts small { display: block; font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--mute); text-transform: uppercase; margin-bottom: 3px; }
.ap-facts b { font-family: var(--f-head); font-size: 0.95rem; font-weight: 600; }

.ap-form { margin-top: 20px; padding: 22px 18px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ap-seg { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-seg legend { grid-column: 1 / -1; margin-bottom: 8px; }
.ap-seg label { position: relative; display: block; }
.ap-seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.ap-seg span { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid #3a3a3a; border-radius: 999px; font-family: var(--f-head); font-weight: 600; font-size: 0.95rem; color: var(--soft); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.ap-seg input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); }
.ap-seg input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 3px; }

.ap-sec { margin: 30px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.ap-seg + .ap-hint + .ap-sec { margin-top: 22px; }

.ap-row { display: grid; gap: 0; }
.ap-f { margin-bottom: 16px; display: block; }
.ap-f label { display: block; margin-bottom: 8px; font-family: var(--f-head); font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.ap-f label i { font-style: normal; color: var(--mute); }
.ap-f input, .ap-f select, .ap-f textarea {
    width: 100%; min-height: 52px; padding: 14px 16px;
    background: var(--black); color: var(--white);
    border: 1px solid #333; border-radius: 12px;
    font-family: var(--f-body); font-size: 16px; line-height: 1.4;
    -webkit-appearance: none; appearance: none;
    transition: border-color 0.2s;
}
.ap-f textarea { resize: vertical; min-height: 110px; }
.ap-f select {
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.ap-f input::placeholder, .ap-f textarea::placeholder { color: #555; }
.ap-f input:focus, .ap-f select:focus, .ap-f textarea:focus { outline: none; border-color: var(--white); }
.ap-f .bad { border-color: #fff; box-shadow: 0 0 0 2px #fff; }
.ap-hint { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--mute); }
.ap-count { display: block; margin-top: 6px; text-align: right; font-family: var(--f-mono); font-size: 0.68rem; color: var(--mute); }
.ap-seg ~ .ap-hint { margin: 12px 0 0; }

.ap-error { margin: 8px 0 16px; padding: 14px 16px; border: 1px solid #fff; border-radius: 12px; background: var(--black); font-size: 0.92rem; }
.ap-submit { width: 100%; margin-top: 8px; border: 0; }
.ap-submit:disabled { opacity: 0.6; cursor: wait; }
.ap-fine { margin-top: 14px; text-align: center; font-size: 0.78rem; color: var(--mute); }

.ap-done { padding: 40px 0 60px; }
.ap-done .btn { margin-top: 28px; }

@media (min-width: 720px) {
    .ap-main { padding-top: calc(var(--nav-h) + 56px); }
    .ap-form { padding: 34px 34px 32px; }
    .ap-row { grid-template-columns: 1fr 1fr; gap: 16px; }
    .ap-submit { width: auto; min-width: 280px; }
    .ap-fine { text-align: left; }
}

.hero-note { margin-top: 14px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--mute); }

/* Google sign in card (apply page) */
.ap-auth { margin: 20px 0 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.ap-auth-txt b { display: block; font-family: var(--f-head); font-size: 1rem; font-weight: 600; }
.ap-auth-txt span { display: block; margin-top: 4px; font-size: 0.86rem; color: var(--mute); word-break: break-word; }
.ap-auth-btn { width: 100%; }
.ap-auth + .ap-form { margin-top: 12px; }
@media (min-width: 720px) {
    .ap-auth { flex-direction: row; align-items: center; justify-content: space-between; padding: 18px 22px; }
    .ap-auth-btn { width: auto; flex-shrink: 0; }
}
