/* ==========================================================================
   Jubba Youth Association
   Palette taken from the JYA logo: green ring, navy field, yellow mark.
   ========================================================================== */

:root {
    --green: #1e9a4b;
    --green-700: #17803d;
    --green-50: #eaf4ed;
    --navy: #221e5e;
    --navy-900: #16133f;
    --navy-700: #2f2a7a;
    --yellow: #e6dd00;
    --yellow-soft: #f4ef8a;

    --ink: #15171c;
    --body: #3d4250;
    --muted: #6b7080;
    --paper: #fbfaf6;
    --sand: #f3f1e8;
    --line: #e4e1d6;
    --white: #ffffff;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1240px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(22, 19, 63, .06), 0 12px 32px -12px rgba(22, 19, 63, .18);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--body);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
[hidden] { display: none !important; }

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

.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 {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: var(--yellow); color: var(--navy); padding: .6rem 1rem;
    border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.icon { flex: none; }

/* ---------- Type ---------- */

.display {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
    letter-spacing: -.015em;
    line-height: 1.1;
    font-variation-settings: "opsz" 96;
}
.display--sm { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .65rem;
    font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.eyebrow--accent { color: var(--yellow); }

.lede { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink); }

.link-arrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 600; color: var(--green-700); text-decoration: none;
    border-bottom: 2px solid currentColor; padding-bottom: 2px; margin-top: .5rem;
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
    font-weight: 600; font-size: .975rem; line-height: 1.2; text-decoration: none;
    cursor: pointer; white-space: nowrap;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-700); }
.btn--accent { background: var(--yellow); color: var(--navy); }
.btn--accent:hover { background: var(--white); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--outline-light { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

.round-btn {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(22, 19, 63, .25);
    color: var(--white); cursor: pointer; backdrop-filter: blur(6px);
    transition: background-color .2s, border-color .2s, color .2s;
}
.round-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }

/* ---------- Topbar & header ---------- */

.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .78); font-size: .8125rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__reg { margin: 0; }
.topbar__links { display: flex; gap: 1.5rem; }
.topbar__links a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.topbar__links a:hover { color: var(--yellow); }

.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(22, 19, 63, .35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand__logo { width: 52px; height: auto; mix-blend-mode: multiply; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy); letter-spacing: -.01em; }
.brand__text span { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--green-700); }
.brand--light .brand__logo { mix-blend-mode: normal; border-radius: 50%; background: var(--white); padding: 3px; }
.brand--light .brand__text strong { color: var(--white); }
.brand--light .brand__text span { color: var(--yellow); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link {
    position: relative; display: block; padding: .55rem .8rem;
    font-weight: 500; font-size: .975rem; color: var(--ink); text-decoration: none;
}
.nav__link::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px;
    background: var(--green); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--green-700); }

.menu-toggle {
    display: none; place-items: center; width: 46px; height: 46px;
    border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
    color: var(--navy); cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

@media (max-width: 1040px) {
    .menu-toggle { display: grid; }
    .nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 1rem;
        padding: 1rem var(--gutter) 1.75rem;
        background: var(--white); border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -24px rgba(22, 19, 63, .35);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__link { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
    .nav__link::after { display: none; }
    .nav__cta { align-self: flex-start; }
}

@media (max-width: 720px) {
    .topbar__reg { display: none; }
    .topbar__inner { justify-content: center; }
    .topbar__links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    :root { --header-h: 72px; }
    .brand__logo { width: 44px; }
}

/* ---------- Hero slider ---------- */

.hero {
    position: relative; isolation: isolate; overflow: hidden;
    height: clamp(560px, calc(100svh - var(--header-h) - 40px), 820px);
    background: var(--navy-900); color: var(--white);
}
.hero__track { position: absolute; inset: 0; }

.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s 0s; z-index: 1; }

.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.slide.is-active .slide__img { transform: scale(1); }

.slide__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(22, 19, 63, .88) 0%, rgba(22, 19, 63, .6) 42%, rgba(22, 19, 63, .1) 75%),
        linear-gradient(0deg, rgba(22, 19, 63, .7) 0%, rgba(22, 19, 63, 0) 40%);
}

.slide__content {
    position: relative; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    padding-bottom: 7rem;
}
.slide__content > * { max-width: 40rem; }

.slide__eyebrow {
    display: inline-flex; align-items: center; gap: .65rem; align-self: flex-start;
    font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--yellow); margin-bottom: 1.25rem;
}
.slide__eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }

.slide__title {
    font-family: var(--font-display); font-weight: 500; color: var(--white);
    font-size: clamp(2.3rem, 1.3rem + 4vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em;
    font-variation-settings: "opsz" 144;
    margin-bottom: 1.25rem;
}
.slide__text { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .85); max-width: 34rem; margin-bottom: 2rem; }

.slide__eyebrow, .slide__title, .slide__text, .slide__actions {
    opacity: 0; transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.slide.is-active .slide__eyebrow { opacity: 1; transform: none; transition-delay: .25s; }
.slide.is-active .slide__title { opacity: 1; transform: none; transition-delay: .4s; }
.slide.is-active .slide__text { opacity: 1; transform: none; transition-delay: .55s; }
.slide.is-active .slide__actions { opacity: 1; transform: none; transition-delay: .7s; }

.hero__controls {
    position: absolute; left: 0; right: 0; bottom: 2rem; z-index: 3;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.hero__dots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.25rem; flex: 1; max-width: 760px; }
.hero__dot {
    display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; row-gap: .6rem; align-items: baseline;
    padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .6);
    text-align: left; cursor: pointer;
}
.hero__dot-num { font-family: var(--font-display); font-size: .95rem; }
.hero__dot-label { font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__dot-bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero__dot-bar span { display: block; height: 100%; width: 0; background: var(--yellow); }
.hero__dot.is-active, .hero__dot:hover { color: var(--white); }
.hero__dot.is-done .hero__dot-bar span { width: 100%; }
.hero__dot.is-active .hero__dot-bar span { animation: progress var(--slide-duration, 7000ms) linear forwards; }
.hero.is-paused .hero__dot.is-active .hero__dot-bar span { animation-play-state: paused; }
@keyframes progress { from { width: 0; } to { width: 100%; } }

.hero__arrows { display: flex; gap: .6rem; }
.hero .when-paused { display: none; }
.hero.is-paused .when-paused { display: block; }
.hero.is-paused .when-playing { display: none; }

.hero::after {
    content: ""; position: absolute; z-index: 2; right: 0; bottom: 0;
    width: min(32vw, 420px); height: 10px;
    background: linear-gradient(90deg, var(--green) 0 50%, var(--yellow) 50% 75%, var(--white) 75%);
}

@media (max-width: 760px) {
    .hero { height: auto; min-height: 640px; }
    .slide__content { justify-content: flex-end; padding-top: 4rem; padding-bottom: 8.5rem; }
    .slide__shade { background: linear-gradient(0deg, rgba(22, 19, 63, .95) 10%, rgba(22, 19, 63, .45) 70%, rgba(22, 19, 63, .25)); }
    .hero__dot-label { display: none; }
    .hero__dots { gap: .6rem; }
    .hero__controls { bottom: 1.5rem; align-items: center; }
    .round-btn { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .slide, .slide.is-active, .slide__img, .slide__eyebrow, .slide__title, .slide__text, .slide__actions { transition: none !important; }
    .slide__img { transform: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); }
.section--tint { background: var(--sand); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .78); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem;
    margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.75rem); flex-wrap: wrap;
}
.section-head > div { max-width: 40rem; }
.section-head__note { max-width: 26rem; margin: 0; color: var(--muted); }
.section-head--light .section-head__note { color: rgba(255, 255, 255, .7); }

/* Intro */
.intro__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.intro__body .lede { margin-bottom: 1.25rem; }

.facts {
    display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(3rem, 6vw, 5rem) 0 0;
    border-top: 1px solid var(--line);
}
.fact { padding: 1.75rem 1.5rem 0 0; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.fact dt { font-size: .875rem; color: var(--muted); margin-bottom: .5rem; }
.fact dd {
    margin: 0; font-family: var(--font-display); font-weight: 500; color: var(--navy);
    font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); line-height: 1; letter-spacing: -.02em;
}
.fact:first-child dd { color: var(--green); }

@media (max-width: 860px) {
    .intro__grid { grid-template-columns: 1fr; }
    .facts { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(3) { padding-left: 0; border-left: 0; }
    .fact { padding-bottom: 1.5rem; }
}

/* Program cards */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.program-card {
    display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: 0 1px 0 var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.program-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-50); }
.program-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.program-card:hover .program-card__media img { transform: scale(1.05); }
.program-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.6rem; }
.program-card__num { font-family: var(--font-display); color: var(--green); font-size: .95rem; margin-bottom: .6rem; }
.program-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .6rem; letter-spacing: -.005em; }
.program-card p { color: var(--muted); font-size: .975rem; margin-bottom: 1.25rem; }
.program-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--navy); }

@media (max-width: 980px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .program-grid { grid-template-columns: 1fr; } }

/* Approach split */
.approach-split__grid { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.approach-split__media { position: relative; isolation: isolate; margin: 0; }
.approach-split__media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius); }
.approach-split__media::before {
    content: ""; position: absolute; z-index: -1; left: -1.25rem; top: -1.25rem;
    width: 45%; height: 45%; background: var(--yellow); border-radius: var(--radius);
}
.approach-split__badge {
    position: absolute; right: -1rem; bottom: 2rem; max-width: 13rem;
    padding: 1.25rem 1.4rem; border-radius: var(--radius);
    background: var(--navy); color: rgba(255, 255, 255, .85); font-size: .9rem; line-height: 1.35;
    box-shadow: var(--shadow);
}
.approach-split__badge strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.6rem; line-height: 1; color: var(--yellow); margin-bottom: .35rem; }
.approach-split__body .lede { margin-bottom: 2rem; }

.steps { counter-reset: step; display: grid; gap: 1.1rem; margin-bottom: 2rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: -.1rem;
    display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
    background: var(--green-50); color: var(--green-700); font-weight: 700; font-size: .9rem;
}
.steps strong { color: var(--ink); }

@media (max-width: 900px) {
    .approach-split__grid { grid-template-columns: 1fr; }
    .approach-split__media { max-width: 520px; margin-left: 1.25rem; }
    .approach-split__badge { right: 1rem; }
}

/* Projects row (home) */
.project-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.project-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); margin-bottom: 1.25rem; background: var(--navy-700); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__media .tag { position: absolute; left: 1rem; top: 1rem; }
.project-card__meta { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); margin-bottom: .6rem; }
.project-card h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin-bottom: .75rem; }
.project-card__loc { display: flex; gap: .45rem; font-size: .925rem; color: rgba(255, 255, 255, .65); }
.project-card__loc .icon { margin-top: .2rem; }

@media (max-width: 900px) { .project-row { grid-template-columns: 1fr; max-width: 560px; } }

.tag {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .7rem; border-radius: 999px;
    background: var(--white); color: var(--navy); font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.tag--live { background: var(--yellow); }
.tag--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Regions teaser */
.regions-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.regions-teaser .lede { margin-bottom: 2rem; }
.region-list { border-top: 2px solid var(--ink); }
.region-list li { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.region-list h3 { font-size: 1.05rem; font-weight: 600; }
.region-list p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .regions-teaser { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .region-list li { grid-template-columns: 1fr; gap: .25rem; } }

/* Partners */
.partners { border-block: 1px solid var(--line); background: var(--white); }
.partners__inner { display: flex; align-items: center; gap: 2rem 3rem; padding-block: 2.25rem; flex-wrap: wrap; }
.partners__label { margin: 0; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.partners__list { display: flex; flex-wrap: wrap; gap: 1rem 3rem; flex: 1; justify-content: space-between; }
.partners__list li { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--navy); opacity: .85; }

/* CTA */
.cta { position: relative; overflow: hidden; background: var(--green); color: rgba(255, 255, 255, .9); }
.cta::before {
    content: ""; position: absolute; right: -6%; top: 0; bottom: 0; width: 46%;
    background: var(--navy); clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}
.cta::after {
    content: ""; position: absolute; right: 30%; top: 0; bottom: 0; width: 14%;
    background: var(--yellow); clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%); opacity: .95;
}
.cta__inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap;
    padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem);
}
.cta__inner > div:first-child { max-width: 36rem; }
.cta h2 { color: var(--white); margin-bottom: .9rem; }
.cta__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 900px) {
    .cta::before { width: 100%; right: 0; top: auto; height: 38%; clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%); }
    .cta::after { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: clamp(360px, 48vh, 500px);
    display: flex; align-items: flex-end;
    background: var(--navy-900); color: var(--white);
}
.page-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22, 19, 63, .9), rgba(22, 19, 63, .55) 60%, rgba(22, 19, 63, .25)); }
.page-hero__inner { padding-block: 4rem 4.5rem; }
.page-hero__title {
    font-family: var(--font-display); font-weight: 500; color: var(--white);
    font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem); line-height: 1.05; letter-spacing: -.02em;
    max-width: 18ch; margin-bottom: 1.25rem; font-variation-settings: "opsz" 144;
}
.page-hero__lead { max-width: 40rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(255, 255, 255, .82); }
.page-hero__wedge {
    position: absolute; right: 0; bottom: 0; width: min(36vw, 460px); height: 64px;
    background: var(--paper); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.page-hero__wedge::before {
    content: ""; position: absolute; inset: 0; background: var(--yellow);
    clip-path: polygon(100% 0, 100% 18%, 14% 100%, 0 100%);
}

.crumbs { display: flex; gap: .6rem; font-size: .875rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span:last-child { color: var(--yellow); }

/* ---------- About ---------- */

.prose-split { display: grid; grid-template-columns: 18rem 1fr; gap: clamp(2rem, 6vw, 6rem); }
.prose { max-width: 44rem; }
.prose p { margin-bottom: 1.35em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose-split__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.mini-facts { margin: 0; display: grid; gap: 1.25rem; padding: 1.5rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.mini-facts dt { font-size: .8125rem; color: var(--muted); }
.mini-facts dd { margin: .15rem 0 0; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
    .prose-split { grid-template-columns: 1fr; }
    .prose-split__aside { position: static; }
    .mini-facts { grid-template-columns: repeat(2, 1fr); }
}

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.vm-card { padding: clamp(2rem, 4vw, 3.25rem); border-radius: var(--radius); background: var(--white); border-top: 6px solid var(--green); }
.vm-card--navy { background: var(--navy); border-top-color: var(--yellow); }
.vm-card__text { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); line-height: 1.35; color: var(--ink); }
.vm-card--navy .vm-card__text { color: var(--white); }
@media (max-width: 820px) { .vm-grid { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value { padding: 2rem 1.75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .3s; }
.value:hover { background: var(--white); }
.value__num { display: block; font-family: var(--font-display); color: var(--green); margin-bottom: 1.5rem; }
.value h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; }
.value p { color: var(--muted); font-size: .975rem; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

.approach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.approach-card { padding: 2rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.approach-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; margin-bottom: .75rem; color: var(--yellow) !important; }
@media (max-width: 760px) { .approach-grid { grid-template-columns: 1fr; } }

.board { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.board__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.person { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.person__initials {
    display: grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%;
    background: var(--green-50); color: var(--green-700); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.person > span:last-child { display: flex; flex-direction: column; }
.person strong { color: var(--ink); }
.person > span:last-child span { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .board__list { grid-template-columns: 1fr; } }

/* ---------- Programs ---------- */

.programs-layout { display: grid; grid-template-columns: 17rem 1fr; gap: clamp(2rem, 5vw, 5rem); }
.programs-index { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.programs-index ol { counter-reset: idx; display: grid; gap: .1rem; border-left: 2px solid var(--line); }
.programs-index a {
    display: block; margin-left: -2px; padding: .45rem 0 .45rem 1rem;
    border-left: 2px solid transparent; color: var(--muted); font-size: .925rem; line-height: 1.35; text-decoration: none;
    transition: color .2s, border-color .2s;
}
.programs-index a:hover { color: var(--ink); }
.programs-index a.is-current { color: var(--green-700); border-left-color: var(--green); font-weight: 600; }

.programs-list { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.program-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.program-row:nth-child(even) .program-row__media { order: 2; }
.program-row__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3.2; background: var(--green-50); }
.program-row__media img { width: 100%; height: 100%; object-fit: cover; }
.program-row__num { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--green); margin-bottom: .75rem; }
.program-row h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); letter-spacing: -.01em; margin-bottom: 1rem; }
.program-row__summary { color: var(--ink); font-weight: 500; font-size: 1.1rem; }
.program-row p:last-child { color: var(--muted); }

@media (max-width: 1040px) {
    .programs-layout { grid-template-columns: 1fr; }
    .programs-index { display: none; }
}
@media (max-width: 720px) {
    .program-row { grid-template-columns: 1fr; }
    .program-row:nth-child(even) .program-row__media { order: 0; }
}

/* ---------- Projects ---------- */

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line);
    background: var(--white); color: var(--ink); font-size: .9rem; font-weight: 500; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.chip span { font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: var(--sand); }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip.is-active span { background: var(--yellow); color: var(--navy); }

.project-list { display: grid; gap: 1.25rem; }
.project-item {
    display: grid; grid-template-columns: 300px 1fr; gap: 0;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: box-shadow .3s var(--ease), border-color .3s;
}
.project-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.project-item__media { min-height: 100%; background: var(--green-50); }
.project-item__media img { width: 100%; height: 100%; object-fit: cover; }
.project-item__body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.project-item__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.project-item__year { font-family: var(--font-display); font-size: 1.1rem; color: var(--green-700); }
.project-item .tag { background: var(--sand); }
.project-item .tag--live { background: var(--yellow); }
.project-item h2 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); font-weight: 600; line-height: 1.3; margin-bottom: 1.5rem; max-width: 40rem; }
.project-item__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.5rem; margin: 0; padding-top: 1.25rem; border-top: 1px dashed var(--line); }
.project-item__meta dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.project-item__meta dd { margin: 0; font-size: .925rem; color: var(--ink); line-height: 1.45; }
.empty-note { padding: 3rem; text-align: center; color: var(--muted); }

@media (max-width: 1000px) { .project-item__meta { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
    .project-item { grid-template-columns: 1fr; }
    .project-item__media { aspect-ratio: 16 / 9; }
}

/* ---------- Where we work ---------- */

.map-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.map-frame { position: sticky; top: calc(var(--header-h) + 2rem); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sand); aspect-ratio: 1 / 1.05; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.region-cards { display: grid; gap: 1.25rem; }
.region-card { padding: 1.75rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); border-left: 5px solid var(--green); }
.region-card:nth-child(2) { border-left-color: var(--navy); }
.region-card:nth-child(3) { border-left-color: var(--yellow); }
.region-card h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; margin-bottom: .5rem; }
.region-card > p { color: var(--muted); margin-bottom: 1.25rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { padding: .35rem .85rem; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-size: .875rem; font-weight: 600; }

.border-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.border-card { padding: 2rem; background: var(--white); border-radius: var(--radius); }
.border-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; margin-bottom: .5rem; color: var(--navy); }
.border-card p { color: var(--muted); }

@media (max-width: 900px) {
    .map-split { grid-template-columns: 1fr; }
    .map-frame { position: static; aspect-ratio: 4 / 3; }
    .border-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-list { display: grid; gap: 1.5rem; margin: 2rem 0; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--green-50); color: var(--green-700); }
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--green-700); }
.contact-note { padding: 1.25rem 1.4rem; border-radius: var(--radius-sm); background: var(--sand); font-size: .925rem; }

.form-card { padding: clamp(1.75rem, 4vw, 3rem); background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card .display { margin-bottom: 1.75rem; }
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .925rem; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); font-size: .8125rem; margin-left: .25rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(30, 154, 75, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c2412d; }
.field__error { margin: 0; color: #b23a27; font-size: .875rem; }
.form .btn { justify-self: start; margin-top: .5rem; }

.alert { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.25rem; margin-bottom: 1.75rem; border-radius: var(--radius-sm); background: var(--green-50); color: var(--green-700); border: 1px solid rgba(30, 154, 75, .25); }
.alert p { color: var(--ink); }
.alert .icon { margin-top: .2rem; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); font-size: .95rem; }
.footer__band { background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: 2.5rem; }
.footer__quote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2.5rem; padding-block: 4rem 3rem; }
.footer__about p { margin-top: 1.25rem; max-width: 22rem; }
.footer__reg { font-size: .85rem; color: var(--yellow); }
.footer__title { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; }
.footer__links { display: grid; gap: .6rem; }
.footer__links a, .footer__contact a { text-decoration: none; transition: color .2s; }
.footer__links a:hover, .footer__contact a:hover { color: var(--yellow); }
.footer__contact { display: grid; gap: 1rem; }
.footer__contact li { display: flex; gap: .75rem; }
.footer__contact .icon { color: var(--green); margin-top: .2rem; }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: rgba(255, 255, 255, .5); }
.footer__base p { margin: 0; }

@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
