/* ==========================================================================
   F1RST — CenterPoint Church
   Site stylesheet. Loaded after Bootstrap 5.3, Swiper and Animate.css.

    1. Design tokens & Bootstrap theme
    2. Base
    3. Layout helpers
    4. Buttons
    5. Header & navigation
    6. Footer
    7. Rounded campaign panels & ambient decoration
    8. Home — hero
    9. Home — vision
   10. Video placeholder
   11. Home — pastor
   12. Home — goals
   13. Home — mission
   14. Home — links & closing call to action
   15. Interior pages
   16. Motion
   17. Reduced motion
   ========================================================================== */


/* 1. Design tokens & Bootstrap theme
   ========================================================================== */

:root {
    --navy: #17232f;
    --charcoal: #292c31;
    --ivory: #f2ede9;
    --blue: #265fa4;
    --teal: #4fa1b9;
    --gold: #c5b57a;
    --gold-light: #ddcc8f;
    --ink: #252a30;
    --muted: #64696e;

    --max: 1240px;
    --gutter: 42px;
    --banner-gutter: clamp(12px, 2vw, 28px);
    --banner-radius: clamp(22px, 3vw, 38px);
    --banner-gap: clamp(14px, 2vw, 26px);

    /* Bootstrap */
    --bs-body-font-family: Arial, Helvetica, sans-serif;
    --bs-body-font-size: 17px;
    --bs-body-line-height: 1.7;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--ivory);
    --bs-heading-color: inherit;

    /* Animate.css (used by WOW.js reveals) */
    --animate-duration: .75s;
}

@media (max-width: 900px) {
    :root { --gutter: 28px; }
}

@media (max-width: 650px) {
    :root { --gutter: 22px; }
}

@media (max-width: 360px) {
    :root { --gutter: 18px; }
}


/* 2. Base
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

a {
    color: inherit;
}

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

p {
    margin: 0 0 1.35em;
}

h1,
h2,
h3 {
    margin: 0 0 24px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
}

h2 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
}

h3 {
    font-size: 26px;
}

h1,
h2,
h3,
p,
li {
    overflow-wrap: break-word;
}

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

.skip-link {
    position: fixed;
    top: -100px;
    left: 15px;
    z-index: 1100;
    padding: 12px;
    background: var(--gold);
    color: var(--navy);
}

.skip-link:focus {
    top: 12px;
}


/* 3. Layout helpers
   ========================================================================== */

/* overflow-x: clip keeps wide Bootstrap gutters (negative row margins) from
   creating a horizontal scrollbar, without breaking position: sticky. */
.wrap {
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
    overflow-x: clip;
}

.eyebrow {
    display: block;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .19em;
    text-transform: uppercase;
}

/* Long words or numbers never force a column wider than its track. */
.row > * {
    min-width: 0;
}

/* Two-column rows. Gaps are driven by --split-gap-x / --split-gap-y so each
   section can tune them; columns stack below Bootstrap's md breakpoint. */
.split {
    --split-gap-x: 80px;
    --split-gap-y: 45px;
    --bs-gutter-x: var(--split-gap-x);
    --bs-gutter-y: var(--split-gap-y);
    position: relative;
}

@media (max-width: 900px) {
    .split { --split-gap-x: 40px; }
}

.split-pastor { --split-gap-y: 35px; }
.split-primary { --split-gap-x: 90px; --split-gap-y: 35px; }
.split-cta { --split-gap-x: 100px; --split-gap-y: 40px; }
.split-home-links { --split-gap-x: 80px; --split-gap-y: 80px; }

@media (max-width: 1000px) {
    .split-primary { --split-gap-x: 50px; }
}

@media (max-width: 800px) {
    .split-pastor { --split-gap-x: 35px; }
    .split-cta { --split-gap-x: 40px; }
}

@media (max-width: 767.98px) {
    .split { --bs-gutter-x: 0px; }
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    min-width: 0;
}

.actions .btn {
    max-width: 100%;
    text-align: center;
}

.actions-spaced {
    margin-top: 35px;
}

@media (max-width: 650px) {
    .actions .btn {
        flex: 1;
        white-space: normal;
    }
}

@media (max-width: 360px) {
    .actions {
        flex-direction: column;
    }

    .actions .btn {
        flex: auto;
        width: 100%;
        padding-inline: 16px;
    }
}


/* 4. Buttons — Bootstrap .btn themed through its CSS variables
   ========================================================================== */

.btn-pill {
    --bs-btn-padding-x: 25px;
    --bs-btn-padding-y: 13px;
    --bs-btn-font-size: 14px;
    --bs-btn-font-weight: 700;
    --bs-btn-line-height: 1.4;
    --bs-btn-border-radius: 100px;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-border-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}

.btn-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px #00000018;
}

.btn-pill:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 5px;
}

/* Bootstrap paints focused buttons with their hover colours; the design keeps
   the resting colours and only adds the teal outline. */
.btn-pill:focus-visible:not(:hover) {
    border-color: var(--bs-btn-border-color);
    background-color: var(--bs-btn-bg);
    color: var(--bs-btn-color);
    box-shadow: none;
}

.btn-gold {
    --bs-btn-color: var(--navy);
    --bs-btn-bg: var(--gold);
    --bs-btn-hover-color: var(--navy);
    --bs-btn-hover-bg: var(--gold-light);
    --bs-btn-active-color: var(--navy);
    --bs-btn-active-bg: var(--gold-light);
}

.btn-navy {
    --bs-btn-color: var(--ivory);
    --bs-btn-bg: var(--navy);
    --bs-btn-hover-color: var(--ivory);
    --bs-btn-hover-bg: var(--blue);
    --bs-btn-active-color: var(--ivory);
    --bs-btn-active-bg: var(--blue);
}

.btn-ghost-light {
    --bs-btn-color: var(--ivory);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #ffffff65;
    --bs-btn-hover-color: var(--ivory);
    --bs-btn-hover-bg: #ffffff12;
    --bs-btn-hover-border-color: #ffffff65;
    --bs-btn-active-color: var(--ivory);
    --bs-btn-active-bg: #ffffff12;
    --bs-btn-active-border-color: #ffffff65;
}

.btn-outline-navy {
    --bs-btn-color: var(--navy);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #17232f55;
    --bs-btn-hover-color: var(--navy);
    --bs-btn-hover-bg: #17232f0c;
    --bs-btn-hover-border-color: #17232f55;
    --bs-btn-active-color: var(--navy);
    --bs-btn-active-bg: #17232f0c;
    --bs-btn-active-border-color: #17232f55;
}

.inline-link {
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}


/* 5. Header & navigation — Bootstrap navbar (collapses below md)
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 88px;
    background: rgba(23, 35, 47, .97);
    color: var(--ivory);
    border-bottom: 1px solid #ffffff15;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled {
    background: rgba(23, 35, 47, .98);
    box-shadow: 0 3px 20px #0002;
}

.site-navbar {
    --bs-navbar-padding-x: clamp(22px, 4vw, 64px);
    --bs-navbar-padding-y: 0;
    --bs-navbar-nav-link-padding-x: 0;
    flex-wrap: nowrap;
    height: 100%;
}

.site-brand {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.site-brand img {
    width: 125px;
    height: auto;
    object-fit: contain;
}

.site-navbar .nav-link {
    position: relative;
    padding: 0;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.site-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .25s;
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link[aria-current="page"]::after {
    width: 100%;
}

.site-navbar .nav-link:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 5px;
    box-shadow: none;
}

.site-navbar .btn-pill {
    --bs-btn-padding-y: 10px;
    min-height: 42px;
}

.site-menu-toggle {
    padding: 8px 14px;
    border: 1px solid #ffffff55;
    border-radius: 20px;
    background: none;
    color: var(--ivory);
    font-size: 14px;
    line-height: 1.7;
}

.site-menu-toggle:focus {
    box-shadow: none;
}

.site-menu-toggle:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 5px;
}

@media (min-width: 768px) {
    .site-nav {
        justify-content: flex-end;
    }

    .site-nav-list {
        align-items: center;
        gap: 32px;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .site-nav-list {
        gap: 22px;
    }
}

/* Mobile menu: a panel that drops below the header bar. */
@media (max-width: 767.98px) {
    /* Scrolls internally if it is taller than the screen (phones in landscape). */
    .site-nav {
        position: absolute;
        top: calc(100% + 1px); /* below the header's 1px border */
        right: 0;
        left: 0;
        max-height: calc(100dvh - 88px);
        overflow-y: auto;
        background: var(--navy);
        border-bottom: 1px solid #ffffff30;
    }

    .site-nav-list {
        align-items: stretch;
        gap: 25px;
        padding: 24px;
    }

    .site-navbar .nav-link {
        font-size: 16px;
    }

    .site-nav-list .btn-pill {
        --bs-btn-font-size: 16px;
        display: flex;
        width: 100%;
    }
}

@media (max-width: 650px) {
    .site-header {
        height: 74px;
    }

    .site-nav {
        max-height: calc(100dvh - 74px);
    }

    .site-navbar {
        --bs-navbar-padding-x: 22px;
    }

    .site-brand img {
        width: 105px;
    }
}

@media (max-width: 360px) {
    .site-navbar {
        --bs-navbar-padding-x: 18px;
        gap: 10px;
    }

    .site-brand img {
        width: clamp(70px, 26vw, 94px);
    }

    .site-menu-toggle {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Home: transparent navigation over the hero video until the page scrolls. */
.home-video .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
}

.home-video .site-header:not(.is-scrolled) {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #fff;
}

.home-video .site-header:not(.is-scrolled) .nav-link {
    color: #fff;
}

.home-video .site-header:not(.is-scrolled) .btn-pill {
    --bs-btn-color: #fff;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #ffffff80;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ffffff20;
    --bs-btn-hover-border-color: #ffffff80;
}

@media (max-width: 767.98px) {
    .home-video .site-menu-toggle {
        border-color: #ffffff80;
        color: #fff;
    }

    .home-video .site-header:not(.is-scrolled) .site-nav {
        background: rgba(23, 35, 47, .98);
    }
}


/* 6. Footer
   ========================================================================== */

.site-footer {
    margin: var(--banner-gap) var(--banner-gutter) var(--banner-gutter);
    padding: 55px 0;
    overflow: hidden;
    border-radius: var(--banner-radius);
    background: var(--navy);
    color: var(--ivory);
}

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

.footer-logo {
    width: 125px;
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.footer-meta {
    color: #b9c2c8;
    font-size: 13px;
    overflow-wrap: break-word;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 23px;
    font-size: 14px;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold);
}

/* Copyright + "Designed with ♥ by Sevenly" bar */
.site-footer {
    padding-bottom: 28px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 30px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid #ffffff1a;
    color: #b9c2c8;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.footer-bottom p {
    margin: 0;
}

.footer-copyright .bi {
    margin-right: 4px;
    color: var(--ivory);
}

.footer-credit a {
    color: var(--ivory);
    font-weight: 700;
    text-decoration: none;
}

.footer-credit a:hover {
    color: var(--gold);
}

.footer-heart {
    display: inline-block;
    margin: 0 3px;
    color: var(--gold); /* same gold as the header's Give button */
    animation: heartbeat 1.3s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 28%, 70%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    42% { transform: scale(1.18); }
}

@media (max-width: 650px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 360px) {
    .footer-links {
        gap: 16px;
    }
}


/* 7. Rounded campaign panels & ambient decoration
   ========================================================================== */

.page-hero,
.video-section,
.primary,
.mission,
.final-cta {
    margin-inline: var(--banner-gutter);
    overflow: hidden;
    border-radius: var(--banner-radius);
}

/* Banner wraps sit a little closer to the rounded edges on phones. */
@media (max-width: 650px) {
    .page-hero,
    .video-section,
    .primary,
    .mission,
    .final-cta,
    .site-footer {
        --gutter: 20px;
    }
}

@media (max-width: 360px) {
    .page-hero,
    .video-section,
    .primary,
    .mission,
    .final-cta,
    .site-footer {
        --gutter: 16px;
    }
}

/* Decorative circles drift with the scroll (see app.js) and breathe slowly
   while their section is on screen. */
.video-section,
.primary,
.video-placeholder {
    --curve-x: 0px;
    --curve-y: 0px;
}

.video-section::before,
.primary::before,
.video-placeholder::before {
    translate: var(--curve-x) var(--curve-y);
    transform-origin: center;
    pointer-events: none;
    animation: curve-breathe 18s ease-in-out infinite alternate paused;
}

.primary::before {
    animation-duration: 23s;
    animation-delay: -8s;
}

.video-placeholder::before {
    animation-duration: 25s;
    animation-delay: -10s;
}

[data-background-active].video-section::before,
[data-background-active].primary::before,
[data-background-active].video-placeholder::before {
    animation-play-state: running;
}

@media (max-width: 650px) {
    .video-section::before,
    .primary::before {
        animation-duration: 26s;
    }
}

@keyframes curve-breathe {
    from { scale: 1; rotate: -3deg; }
    to { scale: 1.07; rotate: 3deg; }
}

/* The rings draw their border outside width/height (content-box), as in the
   prototype; Bootstrap Reboot would otherwise make pseudo-elements border-box
   and shrink them by twice the border width. */
.intro::before,
.video-section::before,
.video-placeholder::before,
.primary::before,
.secondary-goal::before,
.final-cta::before {
    box-sizing: content-box;
}


/* 8. Home — hero
   ========================================================================== */

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: 160px 24px 100px;
    overflow: hidden;
    background: var(--navy);
    color: var(--ivory);
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, #101c2b75 0%, #101c2b38 40%, #101c2b80 100%);
    pointer-events: none;
}

.hero-background-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-title {
    margin: 0;
}

.hero-logo {
    width: min(690px, 85vw);
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.hero-verse {
    max-width: 700px;
    margin: 65px auto 0;
    color: #fff;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.65;
    text-shadow: 0 1px 10px #0008;
}

.hero-verse span {
    display: block;
    margin-top: 14px;
    color: var(--gold);
    font-size: 14px;
    letter-spacing: .15em;
}

@media (max-width: 650px) {
    .hero {
        padding: 125px 22px 85px;
    }

    .hero-content {
        width: 100%;
        min-width: 0;
    }

    .hero-logo {
        width: min(690px, 100%);
    }

    .hero-verse {
        margin-top: 40px;
    }
}

/* Phones in landscape: keep the logo and the verse within the first screen. */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 110px 24px 50px;
    }

    .hero-logo {
        width: min(520px, 60vw);
    }

    .hero-verse {
        margin-top: 28px;
        font-size: 16px;
    }
}


/* 9. Home — vision
   ========================================================================== */

.intro {
    position: relative;
    padding: 85px 0 95px;
    overflow: clip;
}

.intro::before {
    content: '';
    position: absolute;
    right: -250px;
    bottom: -350px;
    width: 700px;
    height: 700px;
    border: 80px solid #4fa1b916;
    border-radius: 50%;
    pointer-events: none;
}

.intro .eyebrow {
    color: #326678;
}

.intro-copy {
    max-width: 535px;
    padding-bottom: 34px;
    container-type: inline-size;
}

/* The title stays on one line and scales with its column. */
.intro-copy h2 {
    font-size: clamp(16px, 2.2vw, 30px);
    letter-spacing: -.035em;
    white-space: nowrap;
}

@supports (font-size: 1cqi) {
    .intro-copy h2 {
        font-size: clamp(14px, 5.4cqi, 30px);
    }
}

.intro-copy p:last-child {
    margin-bottom: 0;
}

.intro-photo {
    position: relative;
    z-index: 3;
    margin: 0;
}

.intro-photo img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: 50% 35%;
    border-radius: 160px 160px 28px 28px;
}

@media (max-width: 900px) {
    .intro-photo img {
        height: 390px;
    }
}

@media (max-width: 650px) {
    .intro {
        padding: 65px 0 70px;
    }

    .intro-copy {
        padding-bottom: 0;
    }

    .intro-photo img {
        height: 360px;
        border-radius: 140px 140px 22px 22px;
    }
}


/* 10. Video placeholder
   ========================================================================== */

.video-section {
    position: relative;
    padding: 85px 0 100px;
    background: var(--blue);
    color: var(--ivory);
}

.video-section::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -470px;
    width: 950px;
    height: 950px;
    border: 120px solid #4fa1b950;
    border-radius: 50%;
}

.commit-video-section {
    margin-top: var(--banner-gap);
}

.video-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 28px;
    overflow: hidden;
    border-radius: var(--banner-radius);
    background: var(--navy);
    text-align: center;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: -400px;
    right: -360px;
    width: 750px;
    height: 750px;
    border: 1px solid #c5b57a45;
    border-radius: 50%;
}

/* Con video: el reproductor ocupa todo el marco 16:9. */
.video-placeholder.has-video {
    padding: 0;
}

.video-placeholder.has-video::before {
    content: none;
}

.video-placeholder video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--navy);
}

.video-copy {
    position: relative;
    max-width: 100%;
}

.video-status {
    margin: 0;
    color: var(--ivory);
    font-size: clamp(16px, 2vw, 25px);
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.5;
}

@media (max-width: 650px) {
    .video-section {
        padding: 65px 0;
    }

    .video-placeholder {
        padding: 22px 16px;
    }

    .video-status {
        font-size: 16px;
        letter-spacing: .06em;
    }
}


/* 11. Home — pastor
   ========================================================================== */

.pastor-section {
    position: relative;
    padding: 120px 0 150px;
}

.pastor-image {
    position: sticky;
    top: 120px;
}

.pastor-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.15;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: 24px 24px 200px 24px;
}

/* Photo/copy split of the free space: .8fr / 1.2fr (1fr / 1.4fr up to 800px). */
@media (min-width: 768px) {
    .split-pastor > .pastor-image { flex-grow: .8; }
    .split-pastor > .pastor-copy-column { flex-grow: 1.2; }
}

@media (min-width: 768px) and (max-width: 800px) {
    .split-pastor > .pastor-image { flex-grow: 1; }
    .split-pastor > .pastor-copy-column { flex-grow: 1.4; }
}

.signature {
    margin-top: 28px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

@media (max-width: 767.98px) {
    .pastor-image {
        position: static;
    }
}

@media (max-width: 650px) {
    .pastor-section {
        padding: 70px 0 90px;
    }

    .pastor-image img {
        aspect-ratio: 1 / 1.1;
        border-radius: 20px 20px 140px 20px;
    }
}


/* 12. Home — goals
   ========================================================================== */

.metric {
    margin: 22px 0 12px;
    color: var(--gold);
    font-size: clamp(80px, 12vw, 150px);
    font-weight: 800;
    letter-spacing: -.07em;
    line-height: 1;
}

.metric-label {
    margin-bottom: 25px;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.15;
}

/* Primary goal */
.primary {
    position: relative;
    padding: 100px 0;
    background: var(--navy);
    color: var(--ivory);
}

.primary::before {
    content: '';
    position: absolute;
    bottom: -600px;
    left: -500px;
    width: 950px;
    height: 950px;
    border: 100px solid #4fa1b92b;
    border-radius: 50%;
}

.primary .eyebrow {
    color: var(--gold);
}

.primary .metric {
    color: var(--teal);
}

.primary p {
    color: #d4dadd;
}

/* Secondary goal */
.secondary-goal {
    position: relative;
    padding: 100px 0;
    overflow: clip;
    background: var(--ivory);
}

.secondary-goal::before {
    content: '';
    position: absolute;
    top: -240px;
    right: -520px;
    width: 1000px;
    height: 1000px;
    border: 1px solid #265fa425;
    border-radius: 50%;
    pointer-events: none;
}

.secondary-goal .eyebrow {
    color: #44656e;
}

.secondary-goal .metric {
    color: var(--blue);
    font-size: clamp(65px, 10vw, 122px);
    white-space: nowrap;
}

.secondary-goal .metric-label {
    font-size: 26px;
}

.secondary-intro {
    --bs-gutter-x: 100px;
    --bs-gutter-y: 25px;
    position: relative;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .secondary-intro-metric {
        flex-grow: 1.25;
    }
}

/* Allocation cards: a 3-column grid; Swiper turns it into a carousel on phones. */
.allocations {
    position: relative;
}

.allocations:not(.swiper-initialized) {
    overflow: visible;
}

.allocations:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.allocations:not(.swiper-initialized) .swiper-pagination {
    display: none;
}

.allocations .swiper-slide {
    height: auto;
}

.allocations .swiper-pagination {
    --swiper-pagination-color: var(--blue);
    --swiper-pagination-bullet-inactive-color: var(--navy);
    --swiper-pagination-bullet-inactive-opacity: .25;
    --swiper-pagination-bullet-size: 9px;
    --swiper-pagination-bullet-horizontal-gap: 8px;
    position: static;
    margin-top: 22px;
}

/* 25px touch targets around the 9px bullets. */
.allocations .swiper-pagination-bullet {
    position: relative;
}

.allocations .swiper-pagination-bullet::after {
    content: '';
    position: absolute;
    inset: -8px;
}

/* The body grows so the divider and "Explore this goal" sit at the bottom. */
.allocation {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 28px;
    overflow: hidden;
    border-top: 5px solid var(--teal);
    border-radius: 24px;
    background: #fff9;
}

.allocation-body {
    flex-grow: 1;
}

.allocation-blue {
    border-top-color: var(--blue);
}

.allocation-gold {
    border-top-color: var(--gold);
}

.allocation .category {
    display: block;
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.allocation .amount {
    margin-bottom: 22px;
    color: var(--blue);
    font-size: 39px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.2;
}

.allocation h3 {
    font-size: 22px;
    line-height: 1.15;
}

.allocation p {
    font-size: 16px;
}

.allocation .disclosure-toggle {
    font-size: 14px;
}

/* Disclosure ("+ / −" expandable text, Bootstrap Collapse) */
.disclosure {
    border-top: 1px solid #252a3030;
}

.disclosure-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 20px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.disclosure-toggle::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
}

.disclosure-toggle[aria-expanded="true"]::after {
    content: '−';
}

.disclosure-body {
    padding-bottom: 20px;
}

@media (max-width: 1000px) {
    .secondary-intro {
        --bs-gutter-x: 50px;
    }

    .allocations:not(.swiper-initialized) .swiper-wrapper {
        gap: 14px;
    }

    .allocation {
        padding: 27px 20px;
    }

    .allocation .amount {
        font-size: 32px;
    }
}

/* The approved design stacks the goal intro and the cards from 800px down. */
@media (max-width: 800px) {
    .secondary-intro {
        --bs-gutter-x: 0px;
    }

    .secondary-intro > * {
        flex: 0 0 100%;
    }

    .allocations:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Three columns: the cards share two rows (text, "Explore this goal") through
   subgrid, so the divider and the button line up across all cards — even
   while one of them is expanded. */
@media (min-width: 801px) {
    .allocations:not(.swiper-initialized) .swiper-wrapper {
        row-gap: 0;
    }

    .allocations:not(.swiper-initialized) .swiper-slide,
    .allocations:not(.swiper-initialized) .allocation {
        display: grid;
        grid-row: span 2;
        grid-template-rows: subgrid;
        row-gap: 0;
    }

    .allocations:not(.swiper-initialized) .allocation {
        height: auto;
    }
}

@media (max-width: 767.98px) {
    .secondary-intro {
        --bs-gutter-x: 0px;
    }
}

@media (max-width: 650px) {
    .primary,
    .secondary-goal {
        padding: 65px 0;
    }

    .metric {
        font-size: 100px;
    }

    .secondary-goal .metric {
        font-size: clamp(58px, 17vw, 95px);
    }

    .secondary-goal .metric-label {
        font-size: 22px;
    }

    .secondary-intro {
        margin-bottom: 35px;
    }

    .allocation {
        padding: 30px;
        border-radius: 22px;
    }

    .allocation .amount {
        font-size: 40px;
    }
}

@media (max-width: 360px) {
    .metric {
        font-size: clamp(48px, 24vw, 86px);
    }

    .metric-label {
        font-size: 25px;
    }

    .secondary-goal .metric {
        font-size: clamp(29px, 15vw, 54px);
    }

    .allocation {
        padding: 24px 18px;
    }

    .allocation .amount {
        font-size: 32px;
    }
}


/* 13. Home — mission
   ========================================================================== */

.mission {
    --photo-y: 0px;
    position: relative;
    isolation: isolate;
    padding: 95px 0 110px;
    background: var(--blue);
    color: var(--ivory);
}

.mission::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #101c2bcc, #101c2b99);
    pointer-events: none;
}

/* Oversized photo plane so every parallax position stays covered. */
.mission-background-photo {
    position: absolute;
    inset: -90px 0;
    z-index: -2;
    background: url('../img/mission-oct14.webp') center 42% / cover no-repeat;
    transform: translate3d(0, var(--photo-y, 0px), 0);
}

.mission-content {
    max-width: 700px;
}

.mission .eyebrow {
    color: #ddcf9d;
}

.mission h2 {
    font-size: clamp(38px, 4.6vw, 60px);
}

.mission-statement {
    margin: 25px 0;
    padding-left: 22px;
    border-left: 3px solid var(--gold);
    font-size: 25px;
    line-height: 1.35;
}

.mission .disclosure {
    border-color: #ffffff35;
}

@media (max-width: 650px) {
    .mission {
        padding: 65px 0;
    }

    .mission::before {
        background: #101c2bbd;
    }

    .mission-background-photo {
        inset: -60px 0;
        background-position: 48% 45%;
    }
}


/* 14. Home — links & closing call to action
   ========================================================================== */

.home-links {
    padding: 100px 0;
}

.home-link {
    padding: 5px 0 35px;
}

.home-link-divided {
    padding-left: 70px;
    border-left: 1px solid #292c3130;
}

.home-link .eyebrow {
    color: #44656e;
}

.home-link h2 {
    font-size: 43px;
}

.home-link p {
    font-size: 17px;
}

.final-cta {
    position: relative;
    padding: 100px 0;
    background: var(--charcoal);
    color: var(--ivory);
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -300px;
    left: -780px;
    width: 1000px;
    height: 1000px;
    border: 100px solid #4fa1b928;
    border-radius: 50%;
}

.final-cta h2 {
    color: var(--gold);
    font-size: clamp(54px, 8vw, 96px);
}

.final-cta p {
    color: #dfdfdb;
}

.final-cta .actions {
    margin-top: 35px;
}

.seek-brand img {
    width: min(390px, 100%);
    height: auto;
    margin-top: 20px;
    object-fit: contain;
}

@media (max-width: 800px) {
    .home-link-divided {
        padding-left: 35px;
    }
}

@media (max-width: 767.98px) {
    .home-link-divided {
        padding: 40px 0 0;
        border-top: 1px solid #292c3130;
        border-left: 0;
    }
}

@media (max-width: 650px) {
    .home-links,
    .final-cta {
        padding: 65px 0;
    }

    .home-link h2 {
        font-size: 36px;
    }

    .final-cta h2 {
        font-size: 65px;
    }

    .seek-brand img {
        width: min(280px, 100%);
    }
}

@media (max-width: 360px) {
    .home-link h2 {
        font-size: 32px;
    }

    .final-cta h2 {
        font-size: clamp(35px, 15vw, 54px);
    }
}


/* 15. Interior pages
   ========================================================================== */

/* Page hero with a parallax photo */
.page-hero {
    --photo-y: 0px;
    position: relative;
    isolation: isolate;
    margin-top: var(--banner-gap);
    padding: 90px 0 100px;
    background: var(--navy);
    color: var(--ivory);
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(12, 23, 34, .82) 0%, rgba(12, 23, 34, .72) 48%, rgba(12, 23, 34, .43) 100%);
    pointer-events: none;
}

.natural-photo-banner::after {
    background: linear-gradient(90deg, rgba(12, 23, 34, .38) 0%, rgba(12, 23, 34, .2) 48%, rgba(12, 23, 34, .08) 100%);
}

.banner-photo {
    position: absolute;
    inset: -90px 0;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translate3d(0, var(--photo-y), 0);
    pointer-events: none;
}

/* Keeps the speaker's head inside the Give banner at every parallax position. */
.give-banner .banner-photo {
    inset: -35px 0 -145px;
    transform: translate3d(0, calc(var(--photo-y, 0px) * .35), 0);
}

.page-hero .wrap {
    position: relative;
    z-index: 2;
}

.page-hero .eyebrow {
    color: var(--gold);
}

.page-hero h1 {
    max-width: 850px;
    color: var(--ivory);
    font-size: clamp(46px, 7vw, 84px);
    font-weight: 800;
    text-shadow: 0 2px 18px #0003;
}

.page-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--ivory);
    font-size: 20px;
}

.natural-photo-banner h1,
.natural-photo-banner p,
.natural-photo-banner .eyebrow {
    text-shadow: 0 2px 12px #000a;
}

/* Page body */
.page-body {
    padding: 90px 0 110px;
}

.text-column {
    max-width: 760px;
}

/* Resources */
.resource-list {
    margin-top: 50px;
}

.resource-list .row {
    --bs-gutter-x: 25px;
    --bs-gutter-y: 25px;
}

.resource-item {
    padding: 35px;
    border: 1px solid #292c3118;
    border-radius: 22px;
    background: #fff8;
}

.resource-item .index {
    display: block;
    margin-bottom: 25px;
    color: var(--blue);
    font-size: 14px;
    letter-spacing: .15em;
}

.resource-title {
    font-size: 28px;
}

.resource-item p {
    font-size: 16px;
}

.status-note {
    padding-top: 16px;
    border-top: 1px solid #292c3120;
    color: var(--muted);
}

/* "Coming soon" panel */
.placeholder-panel {
    position: relative;
    margin-top: 40px;
    padding: 50px;
    overflow: hidden;
    border-radius: var(--banner-radius);
    background: var(--navy);
    color: var(--ivory);
}

.placeholder-panel h2 {
    font-size: 36px;
}

.placeholder-panel p {
    margin: 0;
    color: #d8dedd;
}

.placeholder-panel .eyebrow {
    color: var(--gold);
}

/* Commit */
.commit-layout {
    --bs-gutter-x: 80px;
    --bs-gutter-y: 35px;
}

@media (min-width: 768px) {
    .commit-layout-main {
        flex-grow: 1.1;
    }

    .commit-layout-aside {
        flex-grow: .9;
    }
}

.reflection {
    padding: 38px;
    border-radius: 80px 20px 20px 20px;
    background: #e2dbcd;
}

.reflection-title {
    font-size: 35px;
}

.reflection ol {
    padding-left: 23px;
}

.reflection li {
    margin: 18px 0;
}

.reflection .equal {
    margin-top: 35px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

/* Stories */
.story-feature {
    margin-top: 45px;
}

.story-feature .row {
    --bs-gutter-x: 70px;
    --bs-gutter-y: 35px;
}

.story-feature-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 180px 25px 25px 25px;
}

.story-feature h2 {
    font-size: 42px;
}

.empty-message {
    padding-left: 20px;
    border-left: 3px solid var(--teal);
    color: var(--muted);
}

@media (max-width: 800px) {
    .commit-layout {
        --bs-gutter-x: 35px;
    }
}

@media (max-width: 767.98px) {
    .commit-layout,
    .story-feature .row {
        --bs-gutter-x: 0px;
    }
}

@media (max-width: 650px) {
    .page-hero {
        padding: 65px 0 75px;
    }

    .page-hero::after {
        background: linear-gradient(90deg, rgba(12, 23, 34, .8), rgba(12, 23, 34, .63));
    }

    .natural-photo-banner::after {
        background: linear-gradient(90deg, rgba(12, 23, 34, .42), rgba(12, 23, 34, .16));
    }

    .banner-photo {
        inset: -60px 0;
    }

    .page-hero p {
        font-size: 18px;
    }

    .page-body {
        padding: 65px 0;
    }

    .resource-item {
        padding: 28px;
    }

    .placeholder-panel {
        padding: 32px 25px;
    }

    .placeholder-panel h2 {
        font-size: 30px;
    }

    .reflection {
        padding: 32px 26px;
    }

    .story-feature-image {
        height: 390px;
    }

    .story-feature h2 {
        font-size: 36px;
    }
}

@media (max-width: 360px) {
    .page-hero h1 {
        font-size: clamp(30px, 10vw, 38px);
        overflow-wrap: anywhere;
    }

    .page-hero p {
        font-size: 16px;
    }

    .resource-item {
        padding: 24px 18px;
    }

    .resource-title {
        font-size: 25px;
        overflow-wrap: anywhere;
    }

    .story-feature h2 {
        font-size: 32px;
    }
}


/* 16. Motion
   ========================================================================== */

/* WOW.js reveal: the gentle fade-up from the approved prototype. */
@keyframes f1rstReveal {
    from {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate__f1rstReveal {
    animation-name: f1rstReveal;
}

/* Waiting blocks are transparent, not visibility:hidden, so their links stay in
   the Tab order and screen readers still read them. WOW.js writes an inline
   visibility:hidden that the !important overrides; app.js adds .is-revealed.
   (js-wow is only set when motion is allowed.) */
.js-wow .wow {
    visibility: visible !important;
}

.js-wow .wow:not(.is-revealed) {
    opacity: 0;
}

/* Hero entrance, timed from the video's first available frame. */
.hero-sequence .hero-background-video,
.hero-sequence .hero-logo,
.hero-sequence .hero-verse {
    opacity: 0;
}

.hero-sequence.hero-intro-ready .hero-background-video {
    animation: hero-video-in .8s ease-out both;
}

.hero-sequence.hero-intro-ready .hero-logo {
    animation: hero-content-in 1.5s cubic-bezier(.2, .7, .3, 1) .9s both;
}

.hero-sequence.hero-intro-ready .hero-verse {
    animation: hero-content-in 1.3s cubic-bezier(.2, .7, .3, 1) 2.4s both;
}

@keyframes hero-video-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hero-content-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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


/* 17. Reduced motion
   ========================================================================== */

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .video-section::before,
    .primary::before,
    .video-placeholder::before {
        translate: 0 0 !important;
        scale: 1 !important;
        rotate: 0deg !important;
    }

    .banner-photo,
    .mission-background-photo {
        transform: none !important;
    }

    /* If Reduce Motion is switched on while the page is open, show everything. */
    .hero-sequence .hero-background-video,
    .hero-sequence .hero-logo,
    .hero-sequence .hero-verse,
    .js-wow .wow {
        opacity: 1 !important;
        transform: none !important;
    }
}
