:root {
    --navy: #102c54;
    --navy-deep: #0a1f3d;
    --navy-mid: #1a3d6e;
    --steel: #5880ac;
    --steel-light: #7a9dc4;
    --steel-pale: #c5d6e8;
    --ice: #eef4f9;
    --ice-2: #f7fafc;
    --white: #ffffff;
    --ink: #1c2a3d;
    --muted: #5c6e82;
    --line: #d5e0eb;
    --shadow: 0 16px 40px rgba(16, 44, 84, 0.08);
    --radius: 14px;
    --header-h: 84px;
    --topbar-h: 38px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
    min-height: 100vh;
}

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

a {
    color: var(--navy);
    text-decoration: none;
}

a:hover {
    color: var(--steel);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--navy);
    color: #fff;
    padding: 8px 12px;
    z-index: 1000;
}

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

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    background: var(--navy);
    color: var(--steel-pale);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    justify-content: space-between;
    align-items: center;
    min-height: var(--topbar-h);
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.topbar a {
    color: var(--steel-pale);
}

.topbar a:hover {
    color: #fff;
}

.topbar svg {
    width: 14px;
    height: 14px;
    fill: var(--steel-light);
    flex-shrink: 0;
}

.topbar .sep {
    opacity: 0.55;
    margin: 0 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.section-stats {
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 24px;
}

.brand img {
    width: 198px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 14px;
    letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--steel);
}

.site-nav a.is-active {
    box-shadow: inset 0 -2px 0 var(--steel);
}

.nav-cta {
    background: var(--navy) !important;
    color: #fff !important;
    border-radius: 999px;
    margin-left: 8px;
    padding: 10px 18px !important;
    box-shadow: none !important;
}

.nav-cta:hover {
    background: var(--navy-mid) !important;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    margin: 6px 0;
    transition: 0.2s ease;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(88, 128, 172, 0.28), transparent 32%),
        radial-gradient(circle at 10% 90%, rgba(88, 128, 172, 0.16), transparent 28%),
        linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 52%, #16365f 100%);
    color: #fff;
    padding: 92px 0 100px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border: 1.5px solid rgba(197, 214, 232, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 520px;
    height: 360px;
    right: -80px;
    top: -40px;
    transform: rotate(-28deg);
}

.hero::after {
    width: 380px;
    height: 260px;
    right: 40px;
    top: 70px;
    transform: rotate(-28deg);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--steel-pale);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.12;
    margin: 0 0 18px;
    letter-spacing: -0.03em;
}

.hero .lede {
    font-family: "Source Serif 4", Georgia, serif;
    font-style: italic;
    font-size: 1.28rem;
    color: var(--steel-pale);
    max-width: 640px;
    margin: 0 0 28px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: #fff;
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--ice);
    color: var(--navy);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(197, 214, 232, 0.45);
}

.btn-ghost:hover {
    border-color: #fff;
    color: #fff;
}

.btn-navy {
    background: var(--navy);
    color: #fff;
}

.btn-navy:hover {
    background: var(--navy-mid);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--steel);
}

.btn-outline:hover {
    background: var(--ice);
    color: var(--navy);
}

.section {
    padding: 88px 0;
}

.section-ice {
    background: var(--ice-2);
}

.section-head {
    margin-bottom: 36px;
    max-width: 720px;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin: 0 0 10px;
}

.kicker::before {
    content: "";
    width: 6px;
    height: 22px;
    background: var(--navy);
}

.section h2,
.page-hero h1 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--navy);
}

.muted {
    color: var(--muted);
    margin: 0;
}

[id] {
    scroll-margin-top: 120px;
}

.page-hero {
    background:
        linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, #1b416f);
    color: #fff;
    padding: 64px 0 56px;
}

.page-hero h1 {
    color: #fff;
}

.page-hero .muted {
    color: var(--steel-pale);
}

.stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--ice);
    border: 1px solid var(--line);
}

.stat {
    padding: 28px 18px;
    text-align: center;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    font-size: 2rem;
    color: var(--navy);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.stat span {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--steel);
}

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.prose p + p {
    margin-top: 16px;
}

.purpose-grid,
.card-grid,
.values,
.why-grid,
.contact-grid,
.team-grid,
.site-grid {
    display: grid;
    gap: 20px;
}

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

.purpose-card h3,
.service-card h3,
.system-card h3,
.team-card h3 {
    margin: 0;
}

.purpose-card h3,
.service-card .card-head {
    background: var(--navy);
    color: #fff;
    padding: 14px 18px;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-card .card-head {
    background: var(--navy);
    color: #fff;
    padding: 18px 22px;
}

.team-card .card-head h3 {
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.purpose-card:nth-child(2) h3,
.service-card:nth-child(even) .card-head,
.values li:nth-child(even) {
    background: var(--steel);
}

.team-card .bio {
    margin: 0;
    padding: 22px;
    background: var(--ice);
}

.team-card .bio p {
    margin: 0;
}

.team-card .bio p + p {
    margin-top: 14px;
}

.purpose-card p,
.service-card p {
    margin: 0;
    padding: 20px 18px;
    background: var(--ice);
    min-height: 140px;
}

.card-grid {
    grid-template-columns: repeat(3, 1fr);
}

.service-card,
.system-card,
.site-card,
.why-card,
.team-card,
.contact-panel,
.purpose-card {
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-card p,
.system-card p,
.why-card p,
.site-card p {
    color: var(--muted);
}

.values {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
}

.values li {
    list-style: none;
    background: var(--navy);
    color: #fff;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.16em;
    padding: 22px 10px;
}

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

.why-card,
.system-card,
.site-card,
.contact-panel {
    padding: 24px;
}

.why-card strong,
.system-card h3,
.site-card h3 {
    display: block;
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ice);
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-band {
    background: var(--navy-mid);
    color: #fff;
    padding: 56px 0;
}

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

.cta-band h2 {
    color: #fff;
    margin: 0 0 8px;
}

.cta-band p {
    margin: 0;
    color: var(--steel-pale);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

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

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

.system-card[hidden],
.site-card[hidden] {
    display: none;
}

.site-grid {
    grid-template-columns: repeat(3, 1fr);
}

.site-card a {
    font-weight: 700;
    word-break: break-all;
}

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

.team-card .meta {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--steel-pale);
    font-weight: 600;
}

.contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
}

.form-row {
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: 700;
    font-size: 0.86rem;
    margin-bottom: 6px;
    color: var(--navy);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--steel);
    border-color: var(--steel);
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.alert-success {
    background: #e8f6ee;
    color: #14532d;
}

.alert-error {
    background: #fdecec;
    color: #7f1d1d;
}

.map-frame {
    margin-top: 16px;
    border: 1px solid var(--line);
    min-height: 220px;
    background: var(--ice);
}

.map-frame iframe {
    width: 100%;
    height: 220px;
    border: 0;
    display: block;
}

.site-footer {
    background: var(--navy);
    color: var(--steel-pale);
    padding-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr;
    gap: 36px;
    padding-bottom: 40px;
}

.footer-logo img {
    width: 210px;
    height: auto;
}

.footer-brand p {
    margin: 12px 0 0;
    font-size: 0.92rem;
}

.footer-tagline {
    color: #fff;
    font-weight: 600;
}

.site-footer h2 {
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 8px 0 16px;
}

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

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: var(--steel-pale);
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(197, 214, 232, 0.18);
    padding: 18px 0 32px;
    font-size: 0.82rem;
}

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

.footer-bottom p {
    margin: 0;
}

.footer-bottom-tagline {
    color: var(--steel-pale);
    text-align: center;
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.92;
}

.footer-credit img {
    height: 36px;
    width: auto;
    max-width: none;
}

.footer-credit:hover {
    opacity: 1;
}

@media (max-width: 980px) {
    .stats,
    .card-grid,
    .site-grid,
    .split,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .stat:nth-child(2n) {
        border-right: 0;
    }

    .stat:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .cta-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 20px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    body.nav-open .site-nav {
        display: flex;
    }

    .nav-cta {
        margin: 8px 0 0;
        text-align: center;
    }

    .purpose-grid,
    .card-grid,
    .why-grid,
    .system-grid,
    .site-grid,
    .split,
    .contact-grid,
    .footer-grid,
    .values {
        grid-template-columns: 1fr;
    }

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

    .stat,
    .stat:nth-child(2n) {
        border-right: 0;
        border-top: 1px solid var(--line);
    }

    .stat:first-child {
        border-top: 0;
    }

    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .hero {
        padding: 64px 0 72px;
    }

    .section {
        padding: 64px 0;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}
