:root {
    color-scheme: light dark;
    --viewport-height: 100dvh;
    --header-height: 5rem;
    --navy: #071e2b;
    --blue: #0a2f45;
    --green: #1eaa68;
    --green-dark: #168f59;
    --green-light: #42c882;
    --paper: #f7f4ed;
    --white: #ffffff;
    --text: #16303c;
    --muted: #526671;
    --border: #d9e0de;
    --focus: #ffd166;
    --container: 1200px;
    --radius-sm: 0.75rem;
    --radius-lg: 1.5rem;
    --shadow: 0 1.25rem 3rem rgba(7, 30, 43, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-x: clip;
    color: var(--text);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

.site-header,
main,
.site-footer,
.hero,
.page-hero,
.section {
    max-width: 100%;
}

.hero > *,
.page-hero > *,
.section > *,
.site-footer > * {
    min-width: 0;
}

body::before {
    position: fixed;
    z-index: 9999;
    inset: 0;
    border: 0 solid var(--green);
    pointer-events: none;
    content: "";
    transition: border-width 180ms ease;
}

a {
    color: inherit;
    text-underline-offset: 0.22em;
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--navy);
    max-width: 100%;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h1 {
    max-width: 13ch;
    margin-bottom: 1.5rem;
    font-size: clamp(3.25rem, 7.4vw, 7rem);
}

h2 {
    max-width: 17ch;
    margin-bottom: 1.25rem;
    font-size: clamp(2.4rem, 4.5vw, 4.75rem);
}

h3 {
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    transform: translateY(-160%);
    color: var(--white);
    background: var(--navy);
}

.skip-link:focus {
    transform: none;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    display: flex;
    min-height: 5rem;
    padding: 0.75rem max(1.25rem, calc((100vw - var(--container)) / 2));
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid rgba(7, 30, 43, 0.1);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.scroll-progress {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: left;
    background: var(--green);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}

.brand__mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--green-dark);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.brand--official {
    gap: 0.65rem;
}

.brand__official-logo {
    width: auto;
    height: 3.35rem;
    padding: 0.2rem;
    border-radius: 0.45rem;
    background: #ffffff;
    object-fit: contain;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 750;
}

.navigation__item {
    position: relative;
    display: flex;
    align-items: center;
}

.navigation__trigger {
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
}

.navigation__link {
    position: relative;
    padding: 0.7rem 0.4rem;
    border-radius: 0.45rem;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease;
}

.navigation__link:hover {
    color: var(--green-dark);
    background: rgba(30, 170, 104, 0.08);
}

.navigation__link::after {
    position: absolute;
    right: 0.4rem;
    bottom: 0.2rem;
    left: 0.4rem;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    border-radius: 999px;
    background: var(--green);
    content: "";
    transition: transform 180ms ease;
}

.navigation__link.is-active {
    color: var(--navy);
    background: rgba(30, 170, 104, 0.12);
}

.navigation__link.is-active::after {
    transform: scaleX(1);
}

.navigation__help {
    padding-right: 0.45rem;
    padding-left: 1rem;
    color: var(--white);
    background: var(--navy);
}

.navigation__trigger--help {
    background: var(--navy);
}

.navigation .navigation__help:hover,
.navigation .navigation__help.is-active {
    color: var(--white);
    background: var(--green-dark);
}

.submenu-toggle {
    display: grid;
    width: 2.25rem;
    height: 2.5rem;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0.45rem;
    color: var(--navy);
    background: transparent;
    font: inherit;
    font-size: 1.1rem;
    cursor: pointer;
}

.submenu-toggle:hover,
.submenu-toggle[aria-expanded="true"] {
    color: var(--green-dark);
    background: rgba(30, 170, 104, 0.12);
}

.submenu-toggle[aria-expanded="true"] > span:last-child {
    transform: rotate(180deg);
}

.submenu-toggle > span:last-child {
    display: none;
}

.submenu-toggle::after {
    color: currentColor;
    content: "•••";
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.submenu-toggle--help {
    color: var(--white);
}

.submenu {
    position: fixed;
    z-index: 90;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 2rem max(1.25rem, calc((100vw - var(--container)) / 2));
    grid-template-columns: repeat(3, minmax(12rem, 1fr));
    gap: 0.45rem 2rem;
    color: var(--white);
    background: var(--navy);
    box-shadow: var(--shadow);
    list-style: none;
}

.navigation__item.is-open .submenu {
    display: grid;
}

@media (min-width: 1121px) and (hover: hover) {
    .submenu-toggle {
        display: none;
    }

    .submenu {
        display: grid;
        transform: translateY(-0.35rem);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition:
            opacity 140ms ease,
            transform 140ms ease,
            visibility 140ms ease;
    }

    .navigation__item::after {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 1.25rem;
        content: "";
    }

    .navigation__item:hover > .submenu,
    .navigation__item.is-hovered > .submenu,
    .navigation__item:focus-within > .submenu {
        transform: none;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .navigation__item.is-dismissed > .submenu {
        transform: translateY(-0.35rem);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
}

.submenu a {
    display: block;
    padding: 0.7rem;
    border-left: 3px solid transparent;
    border-radius: 0.35rem;
    color: var(--white);
    text-decoration: none;
}

.submenu a:hover,
.submenu a:focus-visible {
    border-left-color: var(--green-light);
    color: var(--green-light);
    background: rgba(255, 255, 255, 0.06);
}

.submenu__group {
    margin-top: 0.5rem;
    padding-top: 1rem;
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.submenu__group-title {
    display: block;
    padding: 0 0.7rem;
    color: var(--green-light);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.submenu a.submenu__group-title {
    border-left-color: var(--green-light);
    color: var(--green-light);
}

.submenu__group > ul {
    display: grid;
    margin: 0.45rem 0 0;
    padding: 0;
    grid-template-columns: repeat(4, minmax(10rem, 1fr));
    gap: 0.45rem 1rem;
    list-style: none;
}

.submenu a.submenu__tool {
    min-height: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-left-width: 3px;
    background: rgba(255, 255, 255, 0.04);
}

.submenu a.submenu__tool:hover,
.submenu a.submenu__tool:focus-visible,
.submenu a.submenu__tool.is-active {
    border-color: var(--green-light);
    color: var(--green-light);
    background: rgba(66, 200, 130, 0.1);
}

.submenu__group,
.submenu__group > ul,
.submenu li,
.submenu a {
    min-width: 0;
}

.menu-toggle {
    display: none;
}

.hero {
    display: grid;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(var(--viewport-height) - var(--header-height));
    padding: clamp(3rem, 7vw, 7rem) max(1.25rem, calc((100vw - var(--container)) / 2));
    grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(66, 200, 130, 0.24), transparent 30%),
        var(--paper);
    background-size: 130% 130%;
    animation: hero-breath 14s ease-in-out infinite alternate;
    scroll-margin-top: var(--header-height);
}

.page-hero {
    position: relative;
    display: grid;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(var(--viewport-height) - var(--header-height));
    padding: clamp(4rem, 9vw, 8rem) max(1.25rem, calc((100vw - var(--container)) / 2));
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(66, 200, 130, 0.22), transparent 30%),
        var(--paper);
    scroll-margin-top: var(--header-height);
}

.page-hero > div:first-child {
    position: relative;
    z-index: 1;
    max-width: 56rem;
}

.page-hero h1 {
    max-width: 14ch;
}

.page-hero > div:first-child > p:last-of-type {
    max-width: 42rem;
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.page-hero__marker {
    color: rgba(7, 30, 43, 0.07);
    font-size: clamp(9rem, 22vw, 22rem);
    font-weight: 950;
    letter-spacing: -0.1em;
    line-height: 0.75;
}

.page-hero__visual {
    position: relative;
    width: min(42vw, 40rem);
    margin: 0;
}

.page-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.page-hero__visual--landscape {
    aspect-ratio: 3 / 2;
}

.page-hero__visual--portrait {
    width: min(30vw, 27rem);
    aspect-ratio: 4 / 5;
}

.page-hero__visual figcaption,
.section-media-figure figcaption {
    margin-top: 0.65rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.page-hero--dark {
    color: rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(circle at 85% 15%, rgba(66, 200, 130, 0.16), transparent 30%),
        var(--blue);
}

.page-hero--dark h1,
.page-hero--dark .eyebrow {
    color: var(--white);
}

.page-hero--dark > div:first-child > p:last-of-type {
    color: rgba(255, 255, 255, 0.76);
}

.page-hero--dark .page-hero__marker {
    color: rgba(255, 255, 255, 0.06);
}

.page-hero--help {
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.35), transparent 30%),
        var(--green-light);
}

.eyebrow {
    margin-bottom: 1rem;
    color: var(--green-dark);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero__lead {
    max-width: 39rem;
    color: var(--muted);
    font-size: clamp(1.12rem, 1.8vw, 1.35rem);
}

.actions,
.support__actions {
    display: flex;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.button {
    display: inline-flex;
    min-height: 3.25rem;
    padding: 0.85rem 1.25rem;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.button:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 0.8rem 1.8rem rgba(7, 30, 43, 0.16);
}

.is-targeted {
    outline: 4px solid var(--focus);
    outline-offset: 5px;
}

.button--primary {
    color: var(--white);
    background: var(--green);
}

.button--secondary {
    border-color: var(--border);
    color: var(--navy);
    background: var(--white);
}

.button--dark {
    color: var(--white);
    background: var(--navy);
}

.button--light {
    color: var(--navy);
    background: var(--white);
}

.trust-list {
    display: flex;
    margin: 2rem 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    list-style: none;
}

.trust-list li::before {
    content: "✓";
    margin-right: 0.45rem;
    color: var(--green-dark);
    font-weight: 900;
}

.hero__visual {
    position: relative;
    display: grid;
    min-height: min(65vh, 43rem);
    padding: 2rem;
    place-items: center;
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.75);
    background:
        linear-gradient(145deg, rgba(7, 30, 43, 0.2), rgba(7, 30, 43, 0.92)),
        repeating-linear-gradient(135deg, var(--blue) 0 2rem, #0c405e 2rem 4rem);
    box-shadow: var(--shadow);
    text-align: center;
}

.hero__visual > span {
    max-width: 14rem;
}

.hero__visual--image {
    min-height: 0;
    padding: 0;
    aspect-ratio: 3 / 2;
    overflow: visible;
}

.hero__visual aside {
    position: absolute;
    right: -1.5rem;
    bottom: 2rem;
    display: grid;
    width: min(19rem, calc(100% - 2rem));
    padding: 1.35rem;
    gap: 0.2rem;
    border-left: 4px solid var(--green);
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: var(--white);
    box-shadow: var(--shadow);
    text-align: left;
}

.hero__visual aside strong {
    color: var(--navy);
}

.section {
    position: relative;
    display: grid;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(var(--viewport-height) - var(--header-height));
    padding: clamp(3rem, 6vh, 6rem) max(1.25rem, calc((100vw - var(--container)) / 2));
    align-content: center;
    overflow: hidden;
    scroll-margin-top: var(--header-height);
}

.section::before {
    position: absolute;
    top: clamp(2rem, 5vw, 4rem);
    right: max(1.25rem, calc((100vw - var(--container)) / 2));
    color: rgba(7, 30, 43, 0.06);
    content: attr(data-index);
    font-size: clamp(5rem, 12vw, 11rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 0.8;
    pointer-events: none;
}

.section__intro {
    max-width: 49rem;
    margin-bottom: clamp(2rem, 4vh, 3.5rem);
}

.section__intro > p:last-child {
    max-width: 42rem;
    color: var(--muted);
    font-size: 1.12rem;
}

.section-media-intro {
    display: grid;
    margin-bottom: clamp(2rem, 4vh, 3.5rem);
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.section-media-intro .section__intro {
    margin-bottom: 0;
}

.section-media-figure {
    margin: 0;
}

.section-media-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow);
    object-fit: cover;
}

.section--light,
.association {
    background: var(--white);
}

.card-grid,
.association-grid,
.confidence-grid,
.mission-grid,
.observatory-grid,
.story-grid,
.team-grid {
    display: grid;
    gap: 1.25rem;
}

.card-grid--three,
.association-grid,
.mission-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.card h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}

.card:hover {
    transform: translateY(-0.65rem);
    border-color: var(--green);
    box-shadow: var(--shadow);
}

.card__number {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 3rem;
    place-items: center;
    border-radius: 50%;
    color: var(--green-dark);
    background: rgba(30, 170, 104, 0.12);
    font-weight: 850;
}

.card p {
    color: var(--muted);
}

.card a,
.story-grid a {
    color: var(--green-dark);
    font-weight: 800;
}

.section--dark {
    color: rgba(255, 255, 255, 0.8);
    background: var(--blue);
}

.section--dark::before {
    color: rgba(255, 255, 255, 0.06);
}

.section--dark h2,
.section--dark h3 {
    color: var(--white);
}

.section--dark .eyebrow {
    color: var(--green-light);
}

.section--dark .section__intro > p:last-child {
    color: rgba(255, 255, 255, 0.72);
}

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

.feature {
    padding: clamp(1.6rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    border-top: 5px solid var(--green);
    color: var(--text);
    background: var(--white);
    box-shadow: var(--shadow);
}

.feature--action {
    color: var(--text);
    background: var(--green-light);
}

.feature:not(.feature--outline) h3 {
    color: var(--navy);
}

.feature--outline {
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

.feature--outline .status {
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.feature__label {
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature .button {
    margin-top: 1rem;
}

.feature .status + .button {
    margin-left: 0.5rem;
}

.prototype-notice {
    margin: 2rem 0 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--green);
    color: var(--muted);
    background: var(--paper);
}

.status {
    display: inline-flex;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    color: var(--navy);
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 850;
}

.help,
.support {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
    gap: clamp(3rem, 8vw, 8rem);
}

.support-choice {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
    background: var(--white);
}

.support-choice > div:last-child {
    display: grid;
    justify-items: start;
    gap: 1rem;
}

.support-choice small {
    color: var(--muted);
}

.support-choice--don {
    background: var(--green-light);
}

.form-section {
    background: var(--white);
}

.help-form {
    display: grid;
    max-width: 54rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    gap: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.help-form fieldset {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 0.75rem;
    border: 0;
}

.help-form legend {
    width: 100%;
    margin-bottom: 0.75rem;
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 850;
}

.profile-choice {
    display: flex;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.help-form label:not(.profile-choice) {
    display: grid;
    gap: 0.45rem;
    color: var(--navy);
    font-weight: 750;
}

.help-form input,
.help-form select,
.help-form textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    background: var(--white);
    font: inherit;
}

.form-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.help {
    color: var(--navy);
    background: var(--green-light);
}

.help::after {
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 0;
    width: clamp(0.4rem, 1vw, 0.8rem);
    border-radius: 0 999px 999px 0;
    background: var(--green);
    content: "";
}

.help__content {
    align-self: center;
}

.help__content > p {
    font-size: 1.2rem;
}

.help__content small {
    display: block;
    margin-top: 1rem;
}

.history {
    grid-template-columns: minmax(20rem, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
    background: var(--paper);
}

.history__visual {
    display: grid;
    min-height: min(58vh, 38rem);
    padding: 2rem;
    place-items: center;
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.72);
    background:
        linear-gradient(145deg, rgba(7, 30, 43, 0.12), rgba(7, 30, 43, 0.82)),
        linear-gradient(35deg, var(--green-dark), var(--blue));
    box-shadow: var(--shadow);
    text-align: center;
}

.history__visual--image {
    min-height: 0;
    padding: 0;
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

.history__content > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.12rem;
}

.history blockquote {
    margin: 2rem 0 0;
    padding: 0.4rem 0 0.4rem 1.5rem;
    border-left: 5px solid var(--green);
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 800;
}

.mission-grid > :where(article, .card) {
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-top: 4px solid var(--green);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
}

.mission-grid > :where(article, .card) > :where(span, .card__number) {
    color: var(--green-light);
    font-weight: 900;
}

.mission-grid > :where(article, .card) p {
    color: rgba(255, 255, 255, 0.74);
}

.team {
    background: var(--white);
}

.team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-grid > :where(article, .card) {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--paper);
}

.team-grid h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.team-grid p {
    color: var(--muted);
    font-size: 0.92rem;
}

.confidence {
    background: var(--paper);
}

.confidence-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.confidence-grid > :where(article, .card) {
    padding: 2rem 1.5rem;
    border-top: 4px solid var(--green);
    background: var(--white);
}

.confidence-grid p {
    color: var(--muted);
}

.portrait-placeholder {
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 2rem;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--green-dark);
    font-weight: 900;
}

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

.story-grid article {
    min-height: clamp(17rem, 31vh, 22rem);
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: var(--radius-lg);
    background: var(--paper);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.story-grid article:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow);
}

.story-grid article > span {
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.story-grid__mission {
    color: rgba(255, 255, 255, 0.8);
    background: var(--navy) !important;
}

.story-grid__mission h3,
.story-grid__mission a {
    color: var(--white);
}

.story-grid article:last-child {
    grid-column: 1 / -1;
}

.support {
    align-items: center;
    background:
        linear-gradient(115deg, rgba(30, 170, 104, 0.08), transparent 45%),
        var(--paper);
}

.site-footer {
    display: grid;
    padding: 5rem max(1.25rem, calc((100vw - var(--container)) / 2)) 2rem;
    grid-template-columns: 1.4fr 1fr 0.7fr;
    gap: 3rem;
    color: rgba(255, 255, 255, 0.72);
    background: var(--navy);
}

.brand--footer,
.site-footer a,
.site-footer strong {
    color: var(--white);
}

.brand__official-logo--footer {
    height: 4rem;
}

.site-footer a {
    overflow-wrap: anywhere;
}

.site-footer > div {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 0.5rem;
}

.site-footer__note {
    grid-column: 1 / -1;
    margin: 2rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
}

.back-to-top {
    position: fixed;
    z-index: 80;
    right: 1.25rem;
    bottom: 1.25rem;
    display: inline-flex;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0.65rem 0.85rem;
    transform: translateY(1rem);
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 999px;
    opacity: 0;
    color: var(--white);
    background: var(--green-dark);
    box-shadow: var(--shadow);
    font: inherit;
    font-weight: 850;
    pointer-events: none;
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.back-to-top.is-visible {
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--navy);
}

.section-rail {
    position: fixed;
    z-index: 75;
    top: calc(var(--header-height) + 50%);
    right: 1rem;
    width: min(15rem, calc(100vw - 2rem));
    max-width: calc(100% - 2rem);
    transform: translateY(-50%);
}

.section-rail__toggle {
    display: none;
}

.section-rail__list {
    display: grid;
    margin: 0;
    padding: 0.8rem;
    gap: 0.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    list-style: none;
}

.section-rail__list a {
    display: grid;
    min-height: 2.65rem;
    padding: 0.45rem 0.55rem;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem;
    border-radius: 0.5rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease;
}

.section-rail__marker {
    color: var(--green-dark);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.section-rail__list a:hover,
.section-rail__list a:focus-visible {
    color: var(--navy);
    background: rgba(30, 170, 104, 0.1);
}

.section-rail__list a.is-active {
    color: var(--white);
    background: var(--green-dark);
}

.section-rail__list a.is-active .section-rail__marker {
    color: var(--white);
}

.section-rail__group-title {
    margin: 0.55rem 0.55rem 0.2rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border);
    color: var(--green-dark);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    line-height: 1.35;
    text-transform: uppercase;
}

@media (max-width: 1719px) and (min-width: 769px) {
    .section-rail {
        width: 3.8rem;
    }

    .section-rail__list {
        padding: 0.45rem;
    }

    .section-rail__list a {
        position: relative;
        display: grid;
        width: 2.8rem;
        padding: 0.45rem;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .section-rail__label {
        position: absolute;
        top: 50%;
        right: calc(100% + 0.55rem);
        display: none;
        width: max-content;
        max-width: 15rem;
        padding: 0.55rem 0.75rem;
        transform: translateY(-50%);
        border-radius: 0.45rem;
        color: var(--white);
        background: var(--navy);
        box-shadow: var(--shadow);
        white-space: normal;
    }

    .section-rail__list a:hover .section-rail__label,
    .section-rail__list a:focus-visible .section-rail__label {
        display: block;
    }

    .section-rail__group-title {
        width: 2.8rem;
        margin: 0.35rem 0;
        padding-top: 0.45rem;
        overflow: hidden;
        font-size: 0;
        text-align: center;
    }

    .section-rail__group-title::after {
        content: "Outils";
        font-size: 0.58rem;
        letter-spacing: 0.04em;
    }
}

@media (max-width: 1120px) {
    .menu-toggle {
        display: inline-flex;
        min-height: 3rem;
        padding: 0.6rem 0.85rem;
        align-items: center;
        gap: 0.65rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        color: var(--navy);
        background: var(--white);
        font: inherit;
        font-weight: 800;
    }

    .menu-toggle__icon,
    .menu-toggle__icon::before,
    .menu-toggle__icon::after {
        display: block;
        width: 1.2rem;
        height: 2px;
        background: currentColor;
    }

    .menu-toggle__icon {
        position: relative;
    }

    .menu-toggle__icon::before,
    .menu-toggle__icon::after {
        position: absolute;
        content: "";
    }

    .menu-toggle__icon::before {
        top: -0.38rem;
    }

    .menu-toggle__icon::after {
        top: 0.38rem;
    }

    .navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(var(--viewport-height) - var(--header-height));
        padding: 1rem 1.25rem 1.5rem;
        overflow-y: auto;
        align-items: stretch;
        flex-direction: column;
        overscroll-behavior: contain;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .navigation.is-open {
        display: flex;
    }

    .navigation__item {
        display: block;
    }

    .navigation__trigger {
        justify-content: space-between;
    }

    .navigation__link {
        flex: 1;
        padding: 0.65rem;
    }

    .navigation__link.is-active {
        border-left: 4px solid var(--green);
    }

    .submenu-toggle {
        flex: 0 0 3rem;
    }

    .submenu {
        position: static;
        padding: 0.65rem 0 0.65rem 1rem;
        grid-template-columns: 1fr;
        box-shadow: none;
    }

    .submenu__group > ul {
        grid-template-columns: 1fr;
    }

    .submenu a.submenu__tool {
        min-height: 3rem;
    }

    .hero,
    .page-hero {
        grid-template-columns: 1fr;
    }

    .page-hero__visual,
    .page-hero__visual--portrait {
        width: min(100%, 44rem);
        justify-self: center;
    }

    .page-hero__marker {
        position: absolute;
        top: clamp(3rem, 8vw, 5rem);
        right: clamp(1.25rem, 5vw, 3rem);
        max-width: calc(100% - 2.5rem);
        overflow: hidden;
        pointer-events: none;
    }

    .hero__visual {
        min-height: 28rem;
    }

    .card-grid--three {
        grid-template-columns: 1fr;
    }

    .association-grid,
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .card__number {
        margin-bottom: 1.5rem;
    }

    .help,
    .support,
    .history,
    .support-choice,
    .section-media-intro {
        grid-template-columns: 1fr;
    }

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

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

    .site-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1120px) {
    .page-content .section {
        scroll-margin-top: calc(var(--header-height) + 4.75rem);
    }

    .section-rail {
        top: calc(var(--header-height) + 0.75rem);
        right: 0.75rem;
        width: min(20rem, calc(100vw - 1.5rem));
        max-width: calc(100% - 1.5rem);
        transform: none;
    }

    .section-rail__toggle {
        display: grid;
        width: 100%;
        min-height: 3.25rem;
        padding: 0.55rem 3rem 0.55rem 0.85rem;
        grid-template-columns: 1fr;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        color: var(--muted);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
        font: inherit;
        font-size: 0.68rem;
        font-weight: 750;
        line-height: 1.2;
        text-align: left;
        backdrop-filter: blur(14px);
    }

    .section-rail__current {
        overflow: hidden;
        color: var(--navy);
        font-size: 0.9rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .section-rail__chevron {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        color: var(--green-dark);
        font-size: 1.15rem;
        transition: transform 180ms ease;
    }

    .section-rail.is-open .section-rail__chevron {
        transform: translateY(-50%) rotate(180deg);
    }

    .section-rail__list {
        display: none;
        max-height: min(65vh, 28rem);
        margin-top: 0.4rem;
        overflow-y: auto;
    }

    .section-rail__list a {
        position: static;
        width: auto;
        padding: 0.55rem;
        grid-template-columns: 2.1rem minmax(0, 1fr);
        justify-items: stretch;
    }

    .section-rail__label {
        position: static;
        display: block;
        width: auto;
        max-width: none;
        padding: 0;
        transform: none;
        color: inherit;
        background: transparent;
        box-shadow: none;
    }

    .section-rail__group-title {
        width: auto;
        margin: 0.55rem 0.55rem 0.2rem;
        padding-top: 0.7rem;
        overflow: visible;
        font-size: 0.68rem;
        text-align: left;
    }

    .section-rail__group-title::after {
        content: none;
    }

    .section-rail.is-open .section-rail__list {
        display: grid;
    }
}

@media (max-width: 640px) {
    h1 {
        overflow-wrap: break-word;
        hyphens: auto;
        font-size: clamp(2.65rem, 11.5vw, 3.65rem);
    }

    .site-header {
        width: 100%;
        min-height: 4.5rem;
        padding-right: 1rem;
        padding-left: 1rem;
        gap: 0.75rem;
    }

    .brand,
    .menu-toggle {
        flex: 0 0 auto;
    }

    .brand > span:last-child {
        display: none;
    }

    .menu-toggle {
        margin-left: auto;
    }

    .hero {
        padding-top: 4rem;
        padding-bottom: 5rem;
    }

    .hero__visual {
        min-height: 22rem;
    }

    .hero__visual aside {
        right: 1rem;
        bottom: -2rem;
    }

    .actions,
    .support__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .feature .status + .button {
        margin-left: 0;
    }

    .observatory-grid,
    .story-grid,
    .team-grid,
    .confidence-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        grid-template-columns: 1fr;
    }

    .page-hero__marker {
        top: 5rem;
        right: 2rem;
    }

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

    .story-grid article:last-child {
        grid-column: auto;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-footer__note {
        grid-column: auto;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --text: #e7f0ee;
        --muted: #b1c2c6;
        --border: #35464e;
        --shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.28);
    }

    body {
        background: #0f171b;
    }

    h1,
    h2,
    h3,
    .brand {
        color: #f4fbf8;
    }

    .site-header {
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(11, 18, 22, 0.96);
    }

    .navigation__link {
        color: #dce9e6;
    }

    .navigation__link:hover,
    .navigation__link.is-active {
        color: #ffffff;
        background: rgba(66, 200, 130, 0.18);
    }

    .navigation__help {
        background: var(--blue);
    }

    .submenu-toggle {
        color: #dce9e6;
    }

    .hero {
        background:
            radial-gradient(circle at 90% 10%, rgba(66, 200, 130, 0.19), transparent 30%),
            #111a1f;
    }

    .page-hero {
        padding-top: 4rem;
        padding-bottom: 5rem;
    }

    .hero__visual aside,
    .card,
    .feature,
    .story-grid article {
        color: var(--text);
        background: #18252b;
    }

    .hero__visual aside strong,
    .card h3,
    .feature:not(.feature--outline) h3,
    .story-grid article h3 {
        color: #f4fbf8;
    }

    .button--secondary,
    .button--light,
    .status {
        border-color: #49606a;
        color: #f4fbf8;
        background: #18252b;
    }

    .section--light,
    .association,
    .team,
    .confidence {
        background:
            radial-gradient(circle at 88% 18%, rgba(30, 170, 104, 0.08), transparent 28%),
            #121c21;
    }

    .section__intro > p:last-child,
    .card p,
    .hero__lead,
    .trust-list {
        color: var(--muted);
    }

    .feature--outline {
        color: rgba(255, 255, 255, 0.82);
        background: transparent;
    }

    .feature--action {
        color: #071e2b;
        background: var(--green-light);
    }

    .feature--action h3 {
        color: #071e2b !important;
    }

    .help {
        color: #071e2b;
        background: var(--green-light);
    }

    .help h2,
    .help .eyebrow {
        color: #071e2b;
    }

    .history {
        background: #10191e;
    }

    .history blockquote {
        color: #f4fbf8;
    }

    .team-grid article {
        background: #18252b;
    }

    .confidence-grid article {
        background: #18252b;
    }

    .story-grid__mission {
        background: #071e2b !important;
    }

    .support {
        background:
            linear-gradient(115deg, rgba(30, 170, 104, 0.1), transparent 45%),
            #10191e;
    }

    .form-section,
    .support-choice {
        background: #121c21;
    }

    .support-choice--don {
        color: #071e2b;
        background: var(--green-light);
    }

    .support-choice--don h2,
    .support-choice--don .eyebrow {
        color: #071e2b;
    }

    .help-form {
        background: #18252b;
    }

    .help-form legend,
    .help-form label:not(.profile-choice) {
        color: #f4fbf8;
    }

    .profile-choice,
    .help-form input,
    .help-form select,
    .help-form textarea {
        color: var(--text);
        background: #10191e;
    }

    .page-hero {
        background:
            radial-gradient(circle at 85% 15%, rgba(66, 200, 130, 0.16), transparent 30%),
            #111a1f;
    }

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

    .page-hero__marker {
        color: rgba(255, 255, 255, 0.05);
    }

    .page-hero--dark {
        background: var(--blue);
    }

    .page-hero--help {
        color: #071e2b;
        background: var(--green-light);
    }

    .page-hero--help h1,
    .page-hero--help .eyebrow {
        color: #071e2b;
    }

    .page-hero--help > div:first-child > p:last-of-type {
        color: #16303c;
    }

    .navigation {
        background-color: rgba(11, 18, 22, 0.98);
    }

    .menu-toggle {
        border-color: var(--border);
        color: #f4fbf8;
        background: #18252b;
    }

    .section-rail__toggle,
    .section-rail__list {
        border-color: #35464e;
        background: rgba(24, 37, 43, 0.97);
    }

    .section-rail__toggle,
    .section-rail__current,
    .section-rail__list a {
        color: #e7f0ee;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes hero-breath {
    from {
        background-position: 20% 20%;
    }

    to {
        background-position: 80% 55%;
    }
}

/* Intégration WordPress */

body.admin-bar .site-header {
    top: 32px;
}

.custom-logo-wrapper,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    width: auto;
    max-width: 13rem;
    height: 2.8rem;
    object-fit: contain;
}

.hero__visual img,
.history__visual img,
.section-media-figure img,
.page-hero__visual img,
.article-single__image img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.page-content {
    margin: 0;
}

.page-content > .wp-block-group {
    margin-block: 0;
}

.page-content .wp-block-group {
    box-sizing: border-box;
}

.page-content .section > .section__intro,
.page-content .section > :where(
    .card-grid,
    .association-grid,
    .confidence-grid,
    .mission-grid,
    .observatory-grid,
    .story-grid,
    .team-grid
) {
    width: 100%;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.page-content .section > .section__intro {
    max-width: 49rem !important;
}

.page-content .history > :where(.section__intro, blockquote),
.page-content :where(
    .card-grid,
    .association-grid,
    .confidence-grid,
    .mission-grid,
    .observatory-grid,
    .story-grid,
    .team-grid
) > :where(.card, .feature, article) {
    width: 100%;
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
}

.page-content .wp-block-buttons {
    margin-top: 1.5rem;
}

.page-content .wp-block-button__link {
    display: inline-flex;
    min-height: 3.25rem;
    padding: 0.85rem 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--white);
    background: var(--green);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.section--dark .wp-block-button__link {
    color: var(--navy);
    background: var(--white);
}

.text-link {
    color: var(--green-dark);
    font-weight: 800;
}

.footer-navigation {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 0.35rem;
    list-style: none;
}

.site-footer nav {
    width: 100%;
}

.article-single__header {
    padding: clamp(5rem, 10vw, 9rem) max(1.25rem, calc((100vw - var(--container)) / 2));
    color: rgba(255, 255, 255, 0.8);
    background: var(--blue);
}

.article-single__header h1,
.article-single__header .eyebrow {
    color: var(--white);
}

.article-single__meta {
    color: rgba(255, 255, 255, 0.72);
}

.article-single__image {
    width: min(var(--container), calc(100% - 2.5rem));
    max-height: 42rem;
    margin: -3rem auto 0;
}

.entry-content.container,
.container--reading,
.content-page {
    width: min(46rem, calc(100% - 2.5rem));
    margin-inline: auto;
}

.article-single .entry-content,
.content-page {
    padding-block: clamp(3rem, 7vw, 6rem);
}

.entry-content > * {
    max-width: 100%;
}

.entry-content :where(ul, ol) {
    padding-left: 1.4rem;
}

.entry-content :where(blockquote) {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--green);
    background: var(--white);
}

.post-card {
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.empty-state {
    min-height: calc(var(--viewport-height) - var(--header-height));
    align-content: center;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
