.home-page {
    --home-blue: #002676;
    --home-blue-light: #174f7d;
    --home-gold: #FDB515;
    --home-ink: #152536;
    --home-muted: #607083;
    --home-line: rgba(0, 38, 118, 0.12);
    --home-section-gap: 36px;
    padding: 12px 0 0;
    color: var(--home-ink);
}

.home-hero {
    display: flex;
    height: calc(100vh - 126px);
    height: calc(100dvh - 126px);
    min-height: 0;
    margin-bottom: 20px;
    flex-direction: column;
}

.home-hero__media {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 0;
    background: #dce5eb;
    box-shadow: 0 24px 60px rgba(0, 38, 118, 0.15);
}

.home-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.home-hero__content {
    flex: 0 0 auto;
    max-width: none;
    padding: 4px 0 20px;
    text-align: center;
}

.home-eyebrow {
    margin: 0 0 10px;
    color: #94700d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0;
    color: var(--home-blue);
    font-size: clamp(32px, 3.3vw, 42px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
    white-space: nowrap;
}

.home-hero .home-eyebrow {
    margin-bottom: 14px;
    font-size: 18px;
    letter-spacing: 0.11em;
}

.home-story {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-community {
    display: flex;
    flex-direction: column;
    gap: var(--home-section-gap);
}

.home-community > .home-gallery,
.home-community > .home-socials {
    margin-top: 0;
}

.home-story__mission {
    border-radius: 24px;
}

.home-story__mission {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 30px 34px;
    text-align: center;
}

.home-section-title,
.home-gallery h2,
.home-sponsors h2 {
    margin: 0;
    color: var(--home-blue);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    text-align: center;
}

.home-story__mission > p:not(.home-eyebrow) {
    max-width: 960px;
    margin: 22px auto 0;
    color: var(--home-muted);
    font-size: 20px;
    line-height: 1.7;
}

.home-mark {
    display: flex;
    justify-content: center;
    margin: 0 auto 14px;
}

.home-mark img {
    display: block;
    width: 160px;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.home-socials {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 0 24px;
}

.home-socials__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.home-socials .home-section-title {
    margin-bottom: 22px;
}

.home-socials__links a {
    display: flex;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 38, 118, 0.12);
    color: var(--home-blue);
    opacity: 1;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.home-socials__links a:hover,
.home-socials__links a:focus {
    background: rgba(0, 38, 118, 0.2);
    color: var(--home-blue);
    text-decoration: none;
    transform: translateY(-2px);
}

.home-socials__links a:focus-visible {
    outline: 3px solid rgba(253, 181, 21, 0.7);
    outline-offset: 2px;
}

.home-social-link__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.home-social-link__icon svg {
    display: block;
    width: 40px;
    height: 40px;
}

.home-gallery {
    width: 100%;
    max-width: 1320px;
    margin: 72px auto 0;
}

.home-gallery h2 {
    margin: 0 0 28px;
}

.home-gallery__frame {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.home-gallery__grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
}

.home-gallery__grid::-webkit-scrollbar {
    display: none;
}

.home-gallery__grid img {
    display: block;
    width: calc((100% - 24px) / 3);
    min-width: calc((100% - 24px) / 3);
    aspect-ratio: 4 / 3;
    flex: 0 0 calc((100% - 24px) / 3);
    object-fit: cover;
    scroll-snap-align: start;
}

.home-gallery__button {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--home-blue);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    transition: opacity 160ms ease;
}

.home-gallery__button:hover,
.home-gallery__button:focus {
    background: transparent;
    color: var(--home-blue);
    opacity: 0.65;
}

.home-gallery__button:focus-visible {
    outline: 2px solid var(--home-blue);
    outline-offset: 2px;
}

.home-sponsors {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 22px;
    margin-top: var(--home-section-gap);
    padding-top: 0;
    text-align: center;
}

body.home footer hr {
    display: none;
}

.home-sponsor-card {
    display: flex;
    width: 250px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: opacity 160ms ease, transform 160ms ease;
}

.home-sponsor-card:hover,
.home-sponsor-card:focus {
    opacity: 0.78;
    transform: translateY(-3px);
}

.home-sponsor-card:focus-visible {
    outline: 3px solid rgba(253, 181, 21, 0.7);
    outline-offset: 3px;
}

.home-sponsor-card img {
    display: block;
    width: 100%;
    max-width: 175px;
    max-height: 68px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .home-hero h1 {
        font-size: clamp(38px, 7vw, 52px);
        white-space: normal;
    }

}

@media (min-width: 768px) {
    .home-hero {
        margin-bottom: 0;
    }

    .home-community {
        justify-content: flex-start;
        padding: 18px 0 0;
        box-sizing: border-box;
    }

    .home-community .home-story__mission {
        padding: 8px 34px;
    }

    .home-community .home-story__mission > p:not(.home-eyebrow) {
        margin-top: 12px;
        font-size: 19px;
        line-height: 1.55;
    }

    .home-community .home-socials {
        padding-bottom: 0;
    }

    .home-community .home-gallery h2 {
        margin-bottom: 8px;
    }

    .home-community .home-gallery__grid img {
        height: clamp(170px, 29vh, 310px);
        aspect-ratio: auto;
    }

}

@media (max-width: 767px) {
    .home-page {
        --home-section-gap: 32px;
        padding: 8px 0 0;
    }

    .home-hero {
        height: auto;
        margin-bottom: 0;
    }

    .home-hero__media {
        flex: 0 0 auto;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .home-hero__media img {
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: center;
    }

    .home-hero__content {
        padding: 6px 0 18px;
    }

    .home-mark {
        margin-bottom: 10px;
    }

    .home-mark img {
        width: 130px;
    }

    .home-hero h1 {
        font-size: clamp(26px, 8vw, 36px);
    }

    .home-story__mission {
        padding: 24px 28px;
        border-radius: 20px;
    }

    .home-story__mission > p:not(.home-eyebrow) {
        margin-top: 14px;
        font-size: 18px;
        line-height: 1.6;
    }

    .home-socials {
        padding-bottom: 0;
    }

    .home-socials .home-section-title {
        margin-bottom: 16px;
    }

    .home-gallery h2 {
        margin-bottom: 12px;
    }

    .home-gallery__grid {
        gap: 6px;
    }

    .home-gallery__frame {
        gap: 8px;
    }

    .home-gallery__grid img {
        width: 100%;
        min-width: 100%;
        flex-basis: 100%;
    }

    .home-gallery__button {
        width: 42px;
        height: 42px;
        font-size: 26px;
    }

    .home-sponsors {
        align-items: center;
        gap: 16px;
    }

    .home-sponsor-card {
        width: 100%;
    }
}
