:root {
    color-scheme: light;
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --deep: #112544;
    --nav-offset: 104px;
}

html {
    scroll-padding-top: var(--nav-offset, 0px);
}

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    background: linear-gradient(130deg, #f6efe5 0%, #faf7f1 45%, #efe7db 100%);
    color: var(--ink);
    overflow-x: hidden;
}

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

.has-sticky-nav {
    padding-top: var(--nav-offset);
    scroll-padding-top: var(--nav-offset);
}

.has-sticky-nav .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: transparent;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.has-sticky-nav .navbar.is-scrolled {
    background: rgba(250, 247, 241, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(17, 37, 68, 0.08);
}

.has-sticky-nav.is-scrolled .navbar {
    background: rgba(250, 247, 241, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(17, 37, 68, 0.08);
}

@media (max-width: 991px) {
    .has-sticky-nav {
        --nav-offset: 136px;
    }

    .navbar-collapse {
        background: rgba(250, 247, 241, 0.96);
        border-radius: 16px;
        padding: 12px 16px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    }

    .navbar-nav {
        gap: 8px;
    }
}

.grain {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='.05'/></svg>");
    pointer-events: none;
    z-index: 0;
}

.hero {
    position: relative;
    z-index: 5;
}

.logo-mark {
    background: var(--ink);
    color: #fff;
    font-family: "Bebas Neue", sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    padding: 8px 12px;
}

.logo-name {
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

.logo-tag {
    color: var(--muted);
    font-size: 12px;
}

.hero-title {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 1px;
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    color: var(--deep);
    font-weight: 600;
}

.metric-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.metric-value {
    font-size: 26px;
    font-weight: 700;
}

.metric-label {
    color: var(--muted);
    font-size: 13px;
}

.hero-card {
    background: #fff;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
    margin-top: 20px;
}

.hero-photo {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero-photo img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-photo-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(17, 37, 68, 0.92);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.has-sticky-nav .section {
    scroll-margin-top: var(--nav-offset);
}

.section-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.section-dark {
    background: linear-gradient(120deg, #112544 0%, #1c3b6c 100%);
}

.section-impact {
    background: #fff;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.image-grid img {
    border-radius: 18px;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.image-grid img:nth-child(1) {
    grid-column: span 2;
    height: 260px;
}

.story-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.story-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #ece6db;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.event-date {
    display: inline-block;
    background: #ffe9b3;
    color: #6b4e00;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.news-hero {
    background: linear-gradient(120deg, #112544 0%, #1c3b6c 100%);
    color: #fff;
    padding: 70px 0;
}

.news-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ece6db;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card-body {
    padding: 18px;
}

.news-date {
    font-size: 12px;
    color: #6b6b6b;
}

.news-content {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #ece6db;
}

@media (max-width: 575px) {
    .news-hero {
        padding: 50px 0;
    }
}

.bio-photo {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.bio-photo img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.bio-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #ece6db;
}

.story-body {
    padding: 18px 20px;
}

.callout {
    background: #141414;
}

.footer {
    padding: 32px 0;
    border-top: 1px solid #e7ded2;
}

.footer a {
    text-decoration: none;
    color: var(--ink);
}

.footer-note {
    color: var(--muted);
    font-size: 12px;
}

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

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 991px) {
    .hero-photo img {
        height: 340px;
    }

    .bio-photo img {
        height: 320px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-card {
        padding: 24px;
    }

    .image-grid img {
        height: 160px;
    }

    .image-grid img:nth-child(1) {
        height: 220px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 575px) {
    .navbar .btn {
        width: 100%;
    }

    .navbar-nav .btn {
        width: 100%;
    }

    .navbar-collapse .btn {
        margin-top: 8px;
    }

    .hero-title {
        font-size: 36px;
    }

    .lead {
        font-size: 16px;
    }

    .metric-card {
        padding: 12px;
    }

    .hero-photo img {
        height: 260px;
    }

    .bio-photo img {
        height: 260px;
    }

    .hero-card {
        padding: 20px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .image-grid img:nth-child(1) {
        grid-column: span 1;
        height: 200px;
    }

    .story-card img {
        height: 180px;
    }

    .hero-photo-badge {
        font-size: 12px;
        padding: 8px 12px;
    }

    .callout .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: 32px;
    }

    .kicker {
        letter-spacing: 2px;
    }

    .hero-photo img {
        height: 230px;
    }

    .bio-photo img {
        height: 220px;
    }

    .image-grid img {
        height: 150px;
    }

    .image-grid img:nth-child(1) {
        height: 190px;
    }
}
