/* ==========================================================================
   Project 500K - site styles
   Palette from the logo / Ugandan flag: black, yellow, red on warm paper.
   ========================================================================== */

@font-face {
    font-family: "Bricolage";
    src: url("../fonts/bricolage.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --ink: #0e0e0e;
    --ink-2: #1a1a1a;
    --paper: #f7f3ea;
    --paper-2: #efe9db;
    --white: #ffffff;
    --yellow: #ffd100;
    --yellow-d: #e6bb00;
    --red: #d9242f;
    --muted: #5a5850;
    --line: #ded6c3;

    --f-display: "Bricolage", "Arial Black", system-ui, sans-serif;
    --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 18px;
    --radius-sm: 10px;
    --wrap: 1180px;
    --header-h: 68px;
    --shadow: 0 18px 40px -22px rgba(14, 14, 14, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img, video, iframe, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.05; letter-spacing: -.025em; margin: 0; font-weight: 800; }
p { margin: 0 0 .8em; }
ul { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.flip { transform: scaleX(-1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 200; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
    font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 30px; font-size: 1.0625rem; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-d); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2b2b2b; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--red); }

.flag-stripe {
    height: 8px;
    background: linear-gradient(90deg, var(--ink) 0 33.33%, var(--yellow) 33.33% 66.66%, var(--red) 66.66% 100%);
}

/* ---- Header ------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(247, 243, 234, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav ul a { text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; padding: 6px 0; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; border-radius: 12px; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); padding: 8px 20px 24px; border-bottom: 1px solid var(--line);
        max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul a { display: block; padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
    .site-nav ul a::after { display: none; }
    .site-nav .btn { margin-top: 18px; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 30%; }
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 14, 14, .92) 0%, rgba(14, 14, 14, .78) 42%, rgba(14, 14, 14, .25) 100%),
        linear-gradient(0deg, rgba(14, 14, 14, .6), transparent 40%);
}
.hero-inner { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 84px); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--red); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--red) 62% 92%, transparent 92%); padding: 0 .08em; }
.hero .lead { line-height: 1.4; max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .86); margin: 16px 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Numbers ------------------------------------------------------------ */
.numbers { background: var(--yellow); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.num { padding: 18px 20px; border-left: 2px solid rgba(14, 14, 14, .12); }
.num:first-child { border-left: 0; }
.num strong { display: block; font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.num span { display: block; margin-top: 4px; font-weight: 500; font-size: .92rem; }
@media (max-width: 720px) {
    .numbers-grid { grid-template-columns: 1fr 1fr; }
    .num:nth-child(3) { border-left: 0; }
    .num:nth-child(n+3) { border-top: 2px solid rgba(14, 14, 14, .12); }
}

/* ---- Sections ----------------------------------------------------------- */
.section { padding: clamp(36px, 5vw, 60px) 0; }
.kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--red); margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: clamp(18px, 3vw, 28px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .about-copy h2, .contact-info h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
.about-copy p { color: #34332e; }
.ticks { margin: 14px 0 20px; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 0 0 5px var(--yellow), inset 0 0 0 9px var(--ink); }
.about-video { margin: 0; }
.about-video video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid var(--white); }
.about-video figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Pillars */
.pillars-section { background: var(--ink); color: var(--white); }
.pillars-section .section-head p { color: rgba(255, 255, 255, .7); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--ink); padding: 0; transition: background-color .25s ease; }
.pillar:hover { background: #181818; }
.pillar-n { display: block; font-family: var(--f-display); font-weight: 800; font-size: .9rem; color: var(--yellow); margin-bottom: 6px; }
.pillar h3 { font-size: 1.2rem; margin-bottom: 6px; }
.pillar p { color: rgba(255, 255, 255, .7); font-size: .98rem; line-height: 1.45; margin: 0; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* Cohorts */
.cohort-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
.cohort-card h3 { font-size: 1.25rem; margin: 10px 0 4px; }
.cohort-card p { color: var(--muted); font-size: .98rem; line-height: 1.4; margin-bottom: 8px; }
.cohort-img { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.cohort-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cohort-card:hover .cohort-img img { transform: scale(1.05); }
.cohort-tag { position: absolute; left: 14px; top: 14px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
.cohort-soon .cohort-img img { filter: grayscale(1) brightness(.55); }
.cohort-soon .cohort-tag { background: var(--red); color: var(--white); }
@media (max-width: 960px) { .cohort-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cohort-grid { grid-template-columns: 1fr; } }

/* Stories */
.stories { background: var(--paper-2); }
.slider-track {
    display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slider-track::-webkit-scrollbar { display: none; }
.story {
    flex: 0 0 min(380px, 86%); scroll-snap-align: start; margin: 0;
    background: var(--white); border-radius: var(--radius); padding: 20px 20px; border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 10px;
}
.stars { display: flex; gap: 3px; }
.stars svg { color: #d6cfbd; }
.stars svg.on { color: var(--yellow-d); }
.story blockquote { margin: 0; flex: 1; }
.story blockquote p { font-family: var(--f-display); font-size: 1.28rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.story figcaption { font-weight: 600; font-size: .95rem; }
.story figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.slider-controls { display: flex; gap: 10px; margin-top: 8px; }
.slider-btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s; }
.slider-btn:hover { background: var(--ink); color: var(--white); }

/* Partners (logos are white artwork, so this section is dark) */
.partners { background: var(--ink); color: var(--white); }
.partners .kicker { color: var(--yellow); }
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.partner-row li { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); width: 200px; height: 104px; display: grid; place-items: center; padding: 14px; transition: border-color .25s, background-color .25s; }
.partner-row li:hover { border-color: var(--yellow); background: rgba(255, 255, 255, .08); }
.partner-row img { max-height: 76px; width: auto; object-fit: contain; }

/* CTA split */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; }
.cta-half { padding: clamp(32px, 4.5vw, 52px) 0; display: flex; }
.cta-youth { background: var(--yellow); justify-content: flex-end; }
.cta-employer { background: var(--ink); color: var(--white); }
.cta-inner { width: min(100%, 590px); padding: 0 clamp(20px, 5vw, 64px); }
.cta-inner h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 8px; }
.cta-inner p:not(.kicker) { margin-bottom: 14px; max-width: 40ch; }
.cta-youth .kicker { color: var(--ink); }
.cta-employer .kicker { color: var(--yellow); }
@media (max-width: 800px) { .cta-split { grid-template-columns: 1fr; } .cta-youth { justify-content: flex-start; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 4vw, 44px); align-items: start; }
.contact-info p { color: #34332e; max-width: 44ch; }
.contact-list { display: grid; gap: 10px; margin-top: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: 3px; color: var(--red); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--red); }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 24px); box-shadow: var(--shadow); }
.field { margin-bottom: 10px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 12px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--paper);
    border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px;
    transition: border-color .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.is-invalid { border-color: var(--red) !important; }
.field-error { color: var(--red); font-size: .86rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.form-status { margin: 16px 0 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status[data-type="success"] { color: #166534; background: #e7f6ea; padding: 12px 14px; border-radius: var(--radius-sm); }
.form-status[data-type="error"] { color: #8f1620; background: #fbe9ea; padding: 12px 14px; border-radius: var(--radius-sm); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { flex-direction: column; gap: 0; } }

.map-wrap { margin-top: clamp(20px, 3vw, 32px); }
.map-wrap iframe { width: 100%; height: 280px; border: 0; border-radius: var(--radius); filter: grayscale(.25); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .8); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .7fr 1.4fr; gap: 24px; padding: 36px 0 24px; }
.footer-brand img { background: var(--white); border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.footer-brand p { max-width: 30ch; font-size: .95rem; }
.footer-h { font-family: var(--f-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 10px; font-weight: 700; }
.footer-links { display: grid; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--yellow); }
.newsletter p { font-size: .95rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input[type="email"] { flex: 1 1 200px; width: auto; background: #1d1d1d; border-color: #333; color: var(--white); border-radius: 999px; padding: 13px 20px; }
.newsletter-form input[type="email"]:focus { border-color: var(--yellow); background: #1d1d1d; }
.newsletter-form .form-status { flex-basis: 100%; margin: 4px 0 0; }
.newsletter-form .form-status[data-type="success"] { background: transparent; color: #7ee08f; padding: 0; }
.newsletter-form .form-status[data-type="error"] { background: transparent; color: #ff8a92; padding: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .14); padding: 14px 0 20px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); transition: background-color .2s, color .2s; }
.socials a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .newsletter, .footer-brand { grid-column: 1 / -1; } }

/* ---- Content pages (terms, privacy, ...) -------------------------------- */
.page-hero { background: var(--ink); color: var(--white); padding: clamp(36px, 6vw, 64px) 0 clamp(30px, 4.5vw, 48px); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); max-width: 18ch; }
.page-hero p { color: rgba(255, 255, 255, .75); max-width: 56ch; margin: 10px 0 0; }
.page-hero .eyebrow { margin-bottom: 10px; }
.prose { width: min(100% - 40px, 780px); margin: 0 auto; padding: clamp(28px, 4vw, 44px) 0; }
.prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 1.4em 0 .4em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #34332e; line-height: 1.5; }
.prose ul { list-style: disc; padding-left: 1.3em; display: grid; gap: .4em; margin-bottom: .8em; }
.prose a { color: var(--red); text-underline-offset: 3px; }
.prose .note { background: var(--paper-2); border-left: 4px solid var(--yellow); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .95rem; }
.steps { counter-reset: step; display: grid; gap: 10px; margin: 0 0 1.5em; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 66px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--yellow); border-radius: 50%; font: 800 1.15rem var(--f-display); }
.steps strong { display: block; font-family: var(--f-display); font-size: 1.2rem; margin-bottom: 4px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: 8px; }
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.error-page h1 { font-size: clamp(5rem, 18vw, 11rem); color: var(--yellow); -webkit-text-stroke: 3px var(--ink); }
.error-page p { max-width: 40ch; margin: 12px auto 28px; color: var(--muted); }

/* ---- Motion ------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

.page-stripe { position: absolute; left: 0; right: 0; bottom: 0; }
.page-hero { position: relative; }

/* Multipage additions */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.story-grid .story { flex: none; }
@media (max-width: 960px) { .story-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .story-grid { grid-template-columns: 1fr; } }
.partners-note { text-align: center; margin: clamp(24px, 4vw, 40px) auto 0; max-width: 520px; }
.partners-note h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.partners-note p { color: rgba(255, 255, 255, .75); }
.nav-link-active, .site-nav a[aria-current="page"] { font-weight: 700; }
.site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.section-more { margin-top: 20px; }

/* Smaller description text */
body { font-size: 1rem; }
.hero .lead { font-size: clamp(.98rem, 1.3vw, 1.12rem); }
.about-copy p, .contact-info p, .section-head p, .cta-inner p:not(.kicker), .partners-note p, .newsletter p, .footer-brand p { font-size: .94rem; }
.cohort-card p, .pillar p { font-size: .9rem; }
.page-hero p { font-size: .98rem; }
.prose p, .prose li { font-size: .95rem; }
.story blockquote p { font-size: 1.12rem; }
.steps li, .faq details p { font-size: .94rem; }

/* Photos */
.pillar img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pillar-body { padding: 14px 16px 18px; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); transition: transform .5s ease; }
.gallery li { overflow: hidden; border-radius: var(--radius-sm); }
.gallery li:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; gap: 8px; } }
.page-hero.has-banner { overflow: hidden; padding: 0; }
.page-hero-inner { position: relative; z-index: 2; padding: clamp(36px, 5vw, 60px) 0 clamp(36px, 5vw, 56px); }
.page-hero-inner > * { max-width: min(520px, 100%); }
.page-hero-img { position: absolute; top: 0; right: 0; width: 58%; height: 100%; object-fit: cover; z-index: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
.page-hero .page-stripe { z-index: 3; }
@media (max-width: 760px) {
    .page-hero-img { width: 100%; opacity: .3; -webkit-mask-image: none; mask-image: none; }
    .page-hero-inner > * { max-width: 100%; }
}
.cohort-soon .cohort-img img { filter: none; }

.prose a.btn { color: var(--white); text-decoration: none; }
.prose a.btn-yellow { color: var(--ink); }

/* Tighter heading line spacing */
.hero h1 { line-height: .95; letter-spacing: -.03em; }
.page-hero h1 { line-height: .98; }

.ts-wrap { margin: 0 0 12px; min-height: 0; }
.ts-wrap:empty { display: none; }

/* Portrait (9:16) video: show it whole, never cropped */
.about-video { display: flex; flex-direction: column; align-items: center; }
.about-video video { width: auto; height: auto; max-width: 100%; max-height: min(620px, 78vh); aspect-ratio: 9 / 16; object-fit: contain; background: var(--ink); }

/* About / Who we are: pure white */
.section.about { background: #ffffff; }

/* Forms: register + partner */
.form-section { background: var(--paper); }
.form-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(20px, 4vw, 40px); align-items: start; }
.form-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.form-aside h2 { font-size: 1.5rem; margin-bottom: 12px; }
.mini-steps { counter-reset: s; display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.mini-steps li { counter-increment: s; position: relative; padding-left: 36px; font-size: .94rem; }
.mini-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font: 800 .85rem var(--f-display); }
.mini-list { display: grid; gap: 8px; margin: 0 0 14px; }
.mini-list li { position: relative; padding-left: 22px; font-size: .94rem; }
.mini-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--ink) inset; }
.aside-note { font-size: .85rem; color: var(--muted); }
.aside-note a { color: var(--red); }
.fs { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.fs legend { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; padding: 0; margin-bottom: 10px; }
select { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select:focus, input[type="date"]:focus { outline: none; border-color: var(--ink); background-color: var(--white); }
input[type="date"] { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; }
.field.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.field.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.field.check a { color: var(--red); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.check-chip { cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip span { display: inline-block; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 500; background: var(--paper); transition: background-color .2s, border-color .2s; }
.check-chip input:checked + span { background: var(--yellow); border-color: var(--ink); }
.check-chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } .form-aside { position: static; } }

/* ==== Mobile: long lists become swipe rows (shorter pages) ================ */
@media (max-width: 760px) {
    .pillars, .cohort-grid, .story-grid, .partner-row, .gallery {
        display: flex; flex-wrap: nowrap; gap: 12px;
        overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        margin-inline: -20px; padding: 2px 20px 12px; scroll-padding-inline: 20px;
        scrollbar-width: none; justify-content: flex-start;
    }
    .pillars::-webkit-scrollbar, .cohort-grid::-webkit-scrollbar, .story-grid::-webkit-scrollbar,
    .partner-row::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; }

    .pillars { background: none; border: 0; border-radius: 0; }
    .pillar { flex: 0 0 74%; scroll-snap-align: start; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden; }
    .cohort-card { flex: 0 0 78%; scroll-snap-align: start; }
    .story-grid .story { flex: 0 0 82%; scroll-snap-align: start; }
    .partner-row li { flex: 0 0 150px; width: 150px; height: 88px; scroll-snap-align: start; }
    .gallery li { flex: 0 0 72%; scroll-snap-align: start; }
    .gallery { grid-template-columns: none; }

    /* tighter overall rhythm */
    .section { padding: 28px 0; }
    .section-head { margin-bottom: 14px; }
    .section-head h2, .about-copy h2, .contact-info h2 { font-size: 1.55rem; }
    .hero-inner { padding: 36px 0 40px; }
    .hero h1 { font-size: 2.2rem; }
    .hero .lead { font-size: .95rem; margin: 12px 0 16px; }
    .btn-lg { padding: 12px 22px; font-size: 1rem; }
    .num { padding: 12px 14px; }
    .num strong { font-size: 1.8rem; }
    .page-hero-inner { padding: 28px 0 28px; }
    .page-hero h1 { font-size: 1.7rem; }
    .about-photo img, .about-video video { max-height: 300px; }
    .section-more { margin-top: 10px; }
    .cta-half { padding: 26px 0; }
    .footer-grid { padding: 26px 0 14px; gap: 18px; }
    .footer-brand p { display: none; }
    .cohort-img { aspect-ratio: 16 / 10; }
    .cohort-card h3 { font-size: 1.1rem; }
}

body { overflow-x: clip; }

/* Hero: everything centred, buttons on one line */
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 18ch; margin-inline: auto; }
.hero .lead { margin-inline: auto; }
.hero-cta { justify-content: center; flex-wrap: nowrap; gap: 12px; }
.hero-media::after { background: linear-gradient(0deg, rgba(14,14,14,.55), rgba(14,14,14,.35) 45%, rgba(14,14,14,.6)), rgba(14,14,14,.35); }
@media (max-width: 520px) {
    .hero-cta .btn-lg { padding: 11px 14px; font-size: .88rem; gap: 6px; white-space: nowrap; }
    .hero-cta .btn svg { width: 16px; height: 16px; }
}

/* Hero on phones: taller, text centred over a darker photo, buttons side by side */
@media (max-width: 760px) {
    .hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: 500px; }
    .hero-media img { object-position: 50% 30%; }
    .hero-media::after { background: linear-gradient(0deg, rgba(14,14,14,.92) 0%, rgba(14,14,14,.7) 45%, rgba(14,14,14,.45) 100%); }
    .hero-inner { padding: 40px 0 34px; }
    .hero h1 { font-size: 2.1rem; max-width: 14ch; }
    .hero-cta { width: 100%; }
    .hero-cta .btn-lg { flex: 1 1 0; min-width: 0; padding: 12px 10px; font-size: .9rem; }
}

.num { text-align: center; }

/* Mobile: smaller section headings and subheadings */
@media (max-width: 760px) {
    .section-head h2, .about-copy h2, .contact-info h2, .partners-note h2 { font-size: 1.25rem; line-height: 1.1; margin-bottom: 6px; }
    .cta-inner h2 { font-size: 1.25rem; }
    .form-aside h2 { font-size: 1.15rem; }
    .pillar h3, .cohort-card h3 { font-size: 1rem; }
    .pillar-n { font-size: .8rem; }
    .kicker { font-size: .7rem; margin-bottom: 8px; }
    .story blockquote p { font-size: .98rem; }
    .fs legend { font-size: .95rem; }
    .prose h2 { font-size: 1.1rem; }
    .steps strong { font-size: 1rem; }
    .page-hero h1 { font-size: 1.5rem; }
    .footer-h { font-size: .72rem; }
    .error-page h1 { font-size: 5rem; }
}
