:root {
    --ink: #1B1B1E;
    --ink-soft: #52524E;
    --paper: #F6F2E9;
    --paper-alt: #EEE7D6;
    --ocean: #16324F;
    --ocean-deep: #0A1C2E;
    --teal: #0E5C56;
    --marigold: #E8A33D;
    --marigold-deep: #C97F1F;
    --line: rgba(27, 27, 30, 0.14);
    --line-soft: rgba(27, 27, 30, 0.08);
    --max: 1180px;
    --font-head: "Space Grotesk", "Arial Narrow", sans-serif;
    --font-body: "Source Serif 4", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
    font-family: var(--font-head);
    color: var(--ocean);
    font-weight: 600;
    line-height: 1.05;
    margin: 0;
    letter-spacing: -0.01em;
}

p {
    max-width: 62ch;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
}

/* -------------------- Skip link / focus -------------------- */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--marigold);
    color: var(--ocean-deep);
    padding: 10px 16px;
    z-index: 200;
    font-family: var(--font-head);
    font-weight: 600;
}

    .skip-link:focus {
        left: 16px;
        top: 16px;
    }

:focus-visible {
    outline: 3px solid var(--marigold);
    outline-offset: 3px;
}

/* -------------------- Utility bar (language + font size) -------------------- */
.utility-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    height: 40px;
    background: var(--ocean-deep);
    color: #D8D3C4;
    display: flex;
    align-items: center;
}

    .utility-bar .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 22px;
        height: 100%;
    }

.util-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-head);
    font-size: 12.5px;
}

    .util-contact a {
        color: #D8D3C4;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .util-contact a:hover {
            color: var(--marigold);
        }

    .util-contact .icon {
        font-size: 12px;
        opacity: 0.85;
    }

.util-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

@media (max-width: 640px) {
    .util-contact {
        display: none;
    }
}

.util-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.util-label {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    color: #A8A396;
}

.lang-select {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
}

    .lang-select option {
        color: var(--ink);
    }

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.font-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

    .font-btn:first-child {
        border-radius: 6px 0 0 6px;
    }

    .font-btn:nth-child(2) {
        border-left: none;
        border-right: none;
        font-size: 13px;
    }

    .font-btn:last-child {
        border-radius: 0 6px 6px 0;
        font-size: 15px;
    }

    .font-btn:hover {
        background: rgba(255,255,255,0.12);
    }

    .font-btn.is-active {
        background: var(--marigold);
        color: var(--ocean-deep);
        border-color: var(--marigold);
    }

@media (max-width: 900px) {
    .utility-bar .wrap {
        justify-content: center;
        gap: 16px;
    }

    .util-label {
        display: none;
    }
}

/* Page-level text scaling, applied via a class on <html> from the font-size control. */
html.text-scale-md {
    zoom: 1.12;
}

html.text-scale-lg {
    zoom: 1.24;
}

/* -------------------- Navigation -------------------- */
.site-nav {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(10,28,46,0.55), transparent);
    transition: background 0.35s ease, padding 0.35s ease, box-shadow .35s ease;
}

    .site-nav.is-scrolled {
        background: var(--paper);
        padding: 12px 0;
        box-shadow: 0 1px 0 var(--line);
    }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #fff;
    transition: color .35s ease;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.site-nav.is-scrolled .brand {
    color: var(--ocean);
}

.brand .mark {
    color: var(--marigold);
    font-size: 26px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-links > li > a:not(.cta) {
        display: inline-block;
        padding: 8px 14px;
        color: #EDE7D8;
        text-decoration: none;
        font-family: var(--font-head);
        font-size: 15px;
        font-weight: 500;
        border-radius: 4px;
        position: relative;
        transition: color .3s ease;
    }

.site-nav.is-scrolled .nav-links > li > a:not(.cta) {
    color: var(--ink);
}

.nav-links > li > a:not(.cta)::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--marigold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.nav-links > li > a:not(.cta):hover::after,
.nav-links > li > a.current::after {
    transform: scaleX(1);
}

.nav-links > li > a.current {
    font-weight: 700;
}

/* Registration — highlighted item with flyout */
.nav-reg {
    position: relative;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--marigold);
    color: var(--ocean-deep) !important;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 999px;
    margin-left: 8px;
    box-shadow: 0 0 0 0 rgba(232,163,61,0.5);
    transition: box-shadow .3s ease, transform .2s ease, background .3s ease;
}

    .cta:hover, .nav-reg:hover .cta, .nav-reg.is-open .cta {
        background: var(--marigold-deep);
        box-shadow: 0 0 0 6px rgba(232,163,61,0.18);
        transform: translateY(-1px);
    }

    .cta .chev {
        transition: transform .25s ease;
        font-size: 12px;
    }

.nav-reg.is-open .cta .chev {
    transform: rotate(180deg);
}

.flyout {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(10,28,46,0.18);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

    .nav-reg:hover .flyout,
    .nav-reg.is-open .flyout,
    .flyout:focus-within {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .flyout a {
        display: block;
        padding: 12px 14px;
        border-radius: 6px;
        text-decoration: none;
        color: var(--ink);
        font-family: var(--font-head);
        font-size: 15px;
    }

        .flyout a:hover {
            background: var(--paper-alt);
            color: var(--ocean);
        }

    .flyout .flyout-sub {
        display: block;
        font-family: var(--font-body);
        font-size: 13px;
        color: var(--ink-soft);
        margin-top: 2px;
    }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

    .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
        content: "";
        position: absolute;
        left: 8px;
        right: 8px;
        height: 2px;
        background: #fff;
        transition: transform .25s ease, opacity .25s ease, background .3s ease;
    }

.site-nav.is-scrolled .nav-toggle span,
.site-nav.is-scrolled .nav-toggle span::before,
.site-nav.is-scrolled .nav-toggle span::after {
    background: var(--ink);
}

.nav-toggle span {
    top: 19px;
}

    .nav-toggle span::before {
        top: -7px;
    }

    .nav-toggle span::after {
        top: 7px;
    }

.nav-open .nav-toggle span {
    background: transparent;
}

    .nav-open .nav-toggle span::before {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-open .nav-toggle span::after {
        transform: translateY(-7px) rotate(-45deg);
    }

/* -------------------- Hero -------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: radial-gradient(120% 100% at 78% 20%, #1c4363 0%, var(--ocean) 45%, var(--ocean-deep) 100%);
    overflow: hidden;
    color: #F6F2E9;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 136px;
}

.hero-eyebrow {
    font-family: var(--font-head);
    color: var(--marigold);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero h1 {
    color: #fff;
    font-size: clamp(48px, 8vw, 96px);
    max-width: 12ch;
}

.hero-sub {
    color: #D8D3C4;
    font-size: 19px;
    max-width: 46ch;
    margin: 24px 0 34px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* One orchestrated entrance sequence on load — the site's single deliberate motion moment. */
@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-eyebrow, .hero h1, .hero-sub, .hero-actions {
        opacity: 0;
        animation: rise-in 0.9s cubic-bezier(.2,.7,.2,1) forwards;
    }

    .hero-eyebrow {
        animation-delay: 0.15s;
    }

    .hero h1 {
        animation-delay: 0.3s;
    }

    .hero-sub {
        animation-delay: 0.55s;
    }

    .hero-actions {
        animation-delay: 0.75s;
    }
}

.btn {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 999px;
    display: inline-block;
    transition: transform .2s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}

.btn-primary {
    background: var(--marigold);
    color: var(--ocean-deep);
}

    .btn-primary:hover {
        background: #fff;
        transform: translateY(-2px);
    }

.btn-ghost {
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
}

    .btn-ghost:hover {
        border-color: #fff;
        background: rgba(255,255,255,0.08);
    }

.btn-dark {
    border: 1.5px solid var(--ocean);
    color: var(--ocean);
}

    .btn-dark:hover {
        background: var(--ocean);
        color: #fff;
    }

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 32px;
    z-index: 2;
    color: #D8D3C4;
    font-family: var(--font-head);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .scroll-cue .line {
        width: 32px;
        height: 1px;
        background: currentColor;
    }

/* -------------------- Stat strip -------------------- */
.stats {
    background: var(--ocean-deep);
    color: #fff;
    padding: 46px 0;
}

    .stats .wrap {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

.stat .num {
    font-family: var(--font-head);
    font-size: clamp(30px, 4vw, 44px);
    color: var(--marigold);
    font-weight: 700;
}

.stat .label {
    font-size: 14px;
    color: #C9C4B4;
    margin-top: 4px;
}

/* -------------------- Countdown / launch timer -------------------- */
.countdown {
    background: var(--ocean-deep);
    color: #fff;
    padding: 52px 0;
}

.countdown-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 36px;
}

.countdown-text h2 {
    color: #fff;
    font-size: clamp(22px, 2.6vw, 30px);
    max-width: 26ch;
    margin-top: 10px;
}

.countdown-units {
    display: flex;
    gap: 18px;
}

.countdown-unit {
    text-align: center;
    min-width: 78px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 16px 10px;
}

    .countdown-unit .val {
        font-family: var(--font-head);
        font-size: clamp(28px, 3.6vw, 40px);
        font-weight: 700;
        color: var(--marigold);
        font-variant-numeric: tabular-nums;
    }

    .countdown-unit .unit-label {
        font-family: var(--font-head);
        font-size: 11.5px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #C9C4B4;
        margin-top: 6px;
    }

.countdown-units[hidden] {
    display: none;
}

.countdown-msg {
    margin: 0;
    max-width: 34ch;
    font-family: var(--font-head);
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 600;
    line-height: 1.4;
    color: var(--marigold);
}
/* Once the show is over there is nothing left to register for. */
.countdown.is-past .countdown-cta {
    display: none;
}

@media (max-width: 900px) {
    .countdown-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .countdown-units {
        gap: 10px;
    }

    .countdown-unit {
        min-width: 64px;
        padding: 12px 6px;
    }
}

/* -------------------- Sections -------------------- */
section {
    padding: 96px 0;
}

.section-alt {
    background: var(--paper-alt);
}

.kicker {
    font-family: var(--font-head);
    color: var(--teal);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 14px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

    .section-head h2 {
        font-size: clamp(30px, 4vw, 46px);
    }

    .section-head p {
        color: var(--ink-soft);
        margin-top: 16px;
        font-size: 18px;
    }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

    .two-col.reverse .art {
        order: 2;
    }

.art-block {
    border-radius: 14px;
    background: linear-gradient(135deg, var(--teal), var(--ocean));
    position: relative;
    overflow: hidden;
}

    .art-block::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 30% 20%, rgba(232,163,61,0.5), transparent 55%);
    }

/* Program / card grid */
.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.program-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px;
    cursor: pointer;
}

    .program-card .num-mark {
        font-family: var(--font-head);
        color: var(--marigold-deep);
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 18px;
    }

    .program-card h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .program-card p {
        color: var(--ink-soft);
        font-size: 15px;
        margin: 0;
    }

    .program-card .impact {
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid var(--line-soft);
        font-family: var(--font-head);
        font-size: 14px;
        color: var(--teal);
        font-weight: 600;
    }

/* Timeline */
.timeline {
    position: relative;
    padding-left: 32px;
    border-left: 2px solid var(--line);
}

.timeline-item {
    position: relative;
    padding-bottom: 44px;
}

    .timeline-item:last-child {
        padding-bottom: 0;
    }

    .timeline-item::before {
        content: "";
        position: absolute;
        left: -38px;
        top: 4px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--marigold);
        border: 2px solid var(--paper);
        box-shadow: 0 0 0 2px var(--marigold);
    }

    .timeline-item .year {
        font-family: var(--font-head);
        color: var(--teal);
        font-weight: 700;
        font-size: 14px;
    }

    .timeline-item h3 {
        font-size: 20px;
        margin: 6px 0 8px;
    }

    .timeline-item p {
        color: var(--ink-soft);
        margin: 0;
    }

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.team-card {
    perspective: 800px;
}

    .team-card .face {
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 24px;
        transition: transform .35s ease, box-shadow .35s ease;
        transform-style: preserve-3d;
    }

    .team-card:hover .face {
        transform: rotateX(4deg) rotateY(-4deg) translateY(-4px);
        box-shadow: 0 20px 40px rgba(10,28,46,0.15);
    }

.team-avatar {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--marigold), var(--teal));
    margin-bottom: 16px;
}

.team-card h4 {
    font-size: 18px;
}

.team-card .role {
    color: var(--teal);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

/* Gallery */
.gallery-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-btn {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all .25s ease;
}

    .filter-btn:hover {
        border-color: var(--teal);
        color: var(--teal);
    }

    .filter-btn.is-active {
        background: var(--ocean);
        border-color: var(--ocean);
        color: #fff;
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 16px;
}

.gallery-tile {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: transform .3s ease;
}

    .gallery-tile:hover {
        transform: scale(0.98);
    }

    .gallery-tile .tag {
        position: absolute;
        left: 12px;
        bottom: 12px;
        color: #fff;
        font-family: var(--font-head);
        font-size: 13px;
        font-weight: 600;
        z-index: 2;
    }

    .gallery-tile::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 40%, rgba(10,28,46,0.75));
        z-index: 1;
    }

    .gallery-tile .bg {
        position: absolute;
        inset: 0;
    }

    .gallery-tile .tile-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

    .gallery-tile:hover .tile-img {
        transform: scale(1.06);
    }

    .gallery-tile[data-cat="school"] .bg {
        background: linear-gradient(135deg, #1c4363, var(--teal));
    }

    .gallery-tile[data-cat="health"] .bg {
        background: linear-gradient(135deg, var(--teal), #2f7a4f);
    }

    .gallery-tile[data-cat="community"] .bg {
        background: linear-gradient(135deg, var(--ocean), #4a3a63);
    }

    .gallery-tile[data-cat="fashion"] .bg {
        background: linear-gradient(135deg, var(--marigold-deep), var(--marigold));
    }

    .gallery-tile.h-tall {
        grid-row: span 2;
    }

    .gallery-tile[hidden] {
        display: none;
    }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(10,28,46,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
}

    .lightbox.is-open {
        opacity: 1;
        visibility: visible;
    }

.lightbox-panel {
    width: min(640px, 88vw);
    aspect-ratio: 4/3;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-head);
    font-size: 15px;
    cursor: pointer;
}

.lightbox-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.lightbox-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,28,46,0.75), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.lightbox-caption {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: #fff;
    font-family: var(--font-head);
    z-index: 2;
}

/* -------------------- Forms -------------------- */
.form-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 40px;
}

.field {
    margin-bottom: 22px;
}

    .field label {
        display: block;
        font-family: var(--font-head);
        font-size: 14px;
        font-weight: 600;
        color: var(--ocean);
        margin-bottom: 8px;
    }

    .field input, .field select, .field textarea {
        width: 100%;
        font-family: var(--font-body);
        font-size: 16px;
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        color: var(--ink);
    }

        .field input:focus, .field select:focus, .field textarea:focus {
            border-color: var(--teal);
        }

    .field .hint {
        font-size: 13px;
        color: var(--ink-soft);
        margin-top: 6px;
    }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-status {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(14,92,86,0.1);
    color: var(--teal);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    display: none;
}

    .form-status.is-visible {
        display: block;
    }

.is-field-invalid {
    border-color: #C0392B !important;
}

.field-error {
    color: #B33;
    font-size: 13px;
    font-family: var(--font-head);
    font-weight: 600;
    margin-top: 6px;
}

/* Stepper (registration process) */
.stepper {
    display: flex;
    gap: 0;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 140px;
    padding: 18px 20px 18px 0;
    border-top: 3px solid var(--marigold);
    position: relative;
}

    .step .step-num {
        font-family: var(--font-head);
        color: var(--marigold-deep);
        font-weight: 700;
        font-size: 13px;
    }

    .step h4 {
        font-size: 16px;
        margin: 6px 0 4px;
    }

    .step p {
        font-size: 14px;
        color: var(--ink-soft);
        margin: 0;
    }

/* Event detail band (fashion show) */
.event-band {
    background: linear-gradient(135deg, var(--marigold-deep), var(--marigold));
    color: var(--ocean-deep);
    border-radius: 16px;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

    .event-band .item .label {
        font-family: var(--font-head);
        font-size: 13px;
        font-weight: 700;
        opacity: .75;
    }

    .event-band .item .value {
        font-family: var(--font-head);
        font-size: 20px;
        font-weight: 700;
        margin-top: 4px;
    }

/* -------------------- Reveal on scroll -------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* -------------------- CTA band -------------------- */
.cta-band {
    background: var(--ocean);
    color: #fff;
    border-radius: 20px;
    padding: 64px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

    .cta-band h2 {
        color: #fff;
        font-size: clamp(26px, 3vw, 36px);
        max-width: 20ch;
    }

/* -------------------- Footer -------------------- */
footer {
    background: var(--ocean-deep);
    color: #C9C4B4;
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand {
    font-family: var(--font-head);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

footer h5 {
    font-family: var(--font-head);
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer li {
    margin-bottom: 10px;
}

footer a {
    text-decoration: none;
    color: #C9C4B4;
    font-size: 14px;
}

    footer a:hover {
        color: var(--marigold);
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* -------------------- Home slideshow -------------------- */
.slideshow {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/8;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease;
}

    .slide.is-active {
        opacity: 1;
        visibility: visible;
    }

    .slide .bg {
        position: absolute;
        inset: 0;
    }

    .slide[data-cat="school"] .bg {
        background: linear-gradient(135deg, #1c4363, var(--teal));
    }

    .slide[data-cat="health"] .bg {
        background: linear-gradient(135deg, var(--teal), #2f7a4f);
    }

    .slide[data-cat="community"] .bg {
        background: linear-gradient(135deg, var(--ocean), #4a3a63);
    }

    .slide[data-cat="fashion"] .bg {
        background: linear-gradient(135deg, var(--marigold-deep), var(--marigold));
    }

.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,28,46,0.9) 0%, rgba(10,28,46,0.25) 55%, rgba(10,28,46,0.15) 75%);
    z-index: 1;
}

.slide-info {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 32px;
    z-index: 2;
    color: #fff;
}

.slide-eyebrow {
    display: block;
    font-family: var(--font-head);
    color: var(--marigold);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.slide-info h3 {
    color: #fff;
    font-size: clamp(22px, 3vw, 30px);
    margin-bottom: 8px;
}

.slide-info p {
    color: #E3DECF;
    margin: 0;
    max-width: 50ch;
    font-size: 15px;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.5);
    background: rgba(10,28,46,0.35);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, border-color .25s ease;
}

    .slide-nav:hover {
        background: rgba(10,28,46,0.6);
        border-color: #fff;
    }

    .slide-nav.prev {
        left: 20px;
    }

    .slide-nav.next {
        right: 20px;
    }

.slide-dots {
    position: absolute;
    right: 36px;
    bottom: 32px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0;
    transition: background .25s ease, transform .25s ease;
}

    .slide-dot.is-active {
        background: var(--marigold);
        transform: scale(1.3);
    }

@media (max-width: 900px) {
    .slideshow {
        aspect-ratio: 4/5;
    }

    .slide-info {
        left: 22px;
        right: 22px;
        bottom: 60px;
    }

    .slide-dots {
        right: 22px;
        bottom: 22px;
    }

    .slide-nav {
        width: 38px;
        height: 38px;
    }

        .slide-nav.prev {
            left: 12px;
        }

        .slide-nav.next {
            right: 12px;
        }
}

/* -------------------- Sports / activities grid -------------------- */
.sport-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sport-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
}

    .sport-card .sport-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--marigold), var(--teal));
        margin-bottom: 16px;
    }

    .sport-card h4 {
        font-size: 19px;
        margin-bottom: 6px;
    }

    .sport-card .sched {
        font-family: var(--font-head);
        font-size: 13px;
        font-weight: 600;
        color: var(--teal);
        margin-bottom: 10px;
    }

    .sport-card p {
        font-size: 14.5px;
        color: var(--ink-soft);
        margin: 0;
    }

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 4px;
}

    .checkbox-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: var(--font-body);
        font-size: 15px;
        font-weight: 400;
        color: var(--ink);
        text-transform: none;
        cursor: pointer;
    }

    .checkbox-group input {
        width: auto;
        accent-color: var(--teal);
    }

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

/* -------------------- School detail card -------------------- */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.detail-item .label {
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.detail-item .value {
    font-family: var(--font-head);
    font-size: 16.5px;
    color: var(--ocean);
    font-weight: 600;
}

.detail-note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
    font-size: 14px;
    color: var(--ink-soft);
}

    .detail-note a {
        color: var(--teal);
        font-weight: 600;
    }

/* -------------------- Upload dropzone -------------------- */
.dropzone {
    border: 2px dashed var(--line);
    border-radius: 14px;
    padding: 52px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease;
}

    .dropzone:hover, .dropzone:focus-visible {
        border-color: var(--teal);
    }

    .dropzone.is-dragover {
        border-color: var(--marigold);
        background: rgba(232,163,61,0.08);
    }

    .dropzone .dz-icon {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        margin: 0 auto 18px;
        background: linear-gradient(135deg, var(--marigold), var(--teal));
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 22px;
        font-family: var(--font-head);
        font-weight: 700;
    }

    .dropzone h4 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .dropzone p {
        color: var(--ink-soft);
        font-size: 14px;
        margin: 0 auto;
    }

    .dropzone .dz-formats {
        margin-top: 14px;
        font-size: 12.5px;
        color: var(--ink-soft);
    }

.upload-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.file-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 10px 9px 16px;
    font-family: var(--font-head);
    font-size: 13.5px;
    color: var(--ink);
}

    .file-chip .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--teal);
    }

    .file-chip button {
        background: none;
        border: none;
        cursor: pointer;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        color: var(--ink-soft);
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .file-chip button:hover {
            background: rgba(0,0,0,0.06);
            color: var(--ink);
        }

/* -------------------- Data table toolbar -------------------- */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

    .table-toolbar .left {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

.record-count {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ocean);
    font-size: 14px;
}

.invalid-count {
    font-family: var(--font-head);
    font-weight: 600;
    color: #B33;
    font-size: 13px;
}

.btn-sm {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .2s ease;
}

.btn-outline {
    border: 1.5px solid var(--line);
    background: transparent;
    color: var(--ink);
}

    .btn-outline:hover {
        border-color: var(--teal);
        color: var(--teal);
    }

.btn-danger-outline {
    border: 1.5px solid rgba(179,51,51,0.45);
    background: transparent;
    color: #B33;
}

    .btn-danger-outline:hover {
        background: rgba(179,51,51,0.08);
    }

.btn-sm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* -------------------- Data table -------------------- */
.data-table-wrap {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: auto;
    background: #fff;
    max-height: 560px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

    .data-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        text-align: left;
        font-family: var(--font-head);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--ink-soft);
        background: var(--paper-alt);
        padding: 12px 14px;
        border-bottom: 1px solid var(--line);
        white-space: nowrap;
    }

    .data-table td {
        padding: 10px 14px;
        border-top: 1px solid var(--line-soft);
        font-family: var(--font-body);
        font-size: 14.5px;
        color: var(--ink);
        vertical-align: middle;
    }

    .data-table tbody tr:hover td {
        background: rgba(14,92,86,0.04);
    }

    .data-table tbody tr.is-selected td {
        background: rgba(232,163,61,0.1);
    }

    .data-table td[contenteditable="true"] {
        cursor: text;
        border-radius: 6px;
        outline-offset: -2px;
    }

        .data-table td[contenteditable="true"]:focus {
            outline: 2px solid var(--teal);
            background: #fff;
        }

    .data-table td.is-invalid {
        outline: 1.5px solid #C0392B;
        background: rgba(192,57,43,0.06);
    }

.row-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #B33;
    font-size: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .row-delete-btn:hover {
        background: rgba(179,51,51,0.1);
    }

.data-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--ink-soft);
}

    .empty-state .em-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }

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

    .table-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 40px;
        right: 0;
        height: calc(100vh - 40px);
        width: min(320px, 84vw);
        background: var(--ocean-deep);
        flex-direction: column;
        align-items: flex-start;
        padding: 96px 28px 28px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform .35s ease;
    }

    .nav-open .nav-links {
        transform: translateX(0);
    }

    .nav-links > li {
        width: 100%;
    }

        .nav-links > li > a:not(.cta) {
            color: #fff;
            width: 100%;
        }

    .nav-reg {
        width: 100%;
    }

    .cta {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }

    .flyout {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        display: none;
        margin-top: 8px;
    }

    .nav-reg.is-open .flyout {
        display: block;
    }

    .flyout a {
        color: #fff;
    }

    .two-col, .stats .wrap, .program-grid, .team-grid, .footer-grid, .event-band {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .cta-band {
        padding: 40px 28px;
    }

    .form-card {
        padding: 24px;
    }
}

/* Honeypot field for spam bots - kept off-screen rather than display:none so bots still see it */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* "Next step" button shown inside a form's success message */
.form-status .status-link {
    margin-top: 14px;
    display: inline-block;
    text-decoration: none;
}

/* Banner shown on the team page when a list was already submitted */
.notice-bar {
    background: rgba(14,92,86,0.1);
    color: var(--teal);
    border: 1px solid rgba(14,92,86,0.25);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 28px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
}

    .notice-bar[hidden] {
        display: none;
    }

.data-table td[contenteditable="true"].is-invalid {
    outline: 1.5px solid #C0392B;
    background: rgba(192,57,43,0.06);
}
