:root {
    --blue: #2d76df;
    --blue-dark: #1552a8;
    --green: #36581f;
    --green-soft: #e8f0df;
    --ink: #07110f;
    --muted: #52615a;
    --panel: #f5f7f3;
    --line: #dce5d8;
    --cream: #fffdf7;
    --focus: #ffbf47;
    --shadow: 0 18px 50px rgba(7, 17, 15, .14);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", "Nunito Sans", Avenir, "Helvetica Neue", Arial, sans-serif;
}

img {
    max-width: 100%;
}

a {
    color: var(--blue-dark);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #fff;
    padding: .8rem;
    z-index: 10;
}

.skip-link:focus {
    left: 0;
}

.site-header {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1rem 0;
    text-align: center;
    background: var(--cream);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    text-decoration: none;
    color: var(--ink);
}

.brand img {
    width: 74px;
    height: 74px;
    object-fit: contain;
}

.brand span {
    font-weight: 650;
    font-size: clamp(1.45rem, 4vw, 3.2rem);
    letter-spacing: .01em;
}

.site-nav {
    position: relative;
    display: flex;
    justify-content: center;
    gap: .25rem;
    margin-top: 1rem;
    padding: .4rem;
    background: var(--blue);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(45, 118, 223, .18);
}

.site-nav a {
    color: #07110f;
    text-decoration: none;
    padding: .85rem 1.25rem;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 750;
    text-transform: uppercase;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
    background: var(--blue-dark);
    color: #fff;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
}

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.2rem 1rem 0;
}

.hero {
    position: relative;
    overflow: visible;
    border-radius: 8px;
    background: transparent;
    animation: section-rise .55s ease both;
}

.hero > img {
    display: block;
    width: 100%;
    height: min(58vh, 560px);
    min-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-home > img {
    object-position: center 44%;
}

.hero-about > img {
    object-position: center 42%;
}

.hero-overlay {
    width: 100%;
    margin-top: 1rem;
    padding: clamp(1.1rem, 3vw, 2rem);
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(7, 17, 15, .08);
}

.hero-overlay-small {
    width: 100%;
}

.hero-mark {
    width: 78px;
    height: 78px;
    object-fit: contain;
    margin-bottom: .75rem;
}

.eyebrow {
    margin: 0 0 .65rem;
    color: var(--green);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

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

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
}

.hero h1 {
    max-width: 16ch;
    font-size: clamp(2.05rem, 4vw, 3.55rem);
    letter-spacing: -.01em;
}

.hero-overlay-small h1 {
    max-width: 13ch;
}

.hero p {
    max-width: 48rem;
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.55;
    color: #24332c;
}

.hero-actions,
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .82rem 1.25rem;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(45, 118, 223, .2);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.button::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -45%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
    transform: skewX(-16deg);
    transition: left .38s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
    background: var(--blue-dark);
    color: #fff;
    box-shadow: 0 15px 26px rgba(45, 118, 223, .28);
}

.button:hover::before,
.button:focus::before {
    left: 115%;
}

.button-secondary {
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus {
    background: #fff;
    color: var(--blue-dark);
}

.section,
.panel {
    margin: 1.2rem auto 0;
    padding: clamp(1.35rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    line-height: 1.6;
    box-shadow: 0 10px 28px rgba(7, 17, 15, .06);
    animation: section-rise .55s ease both;
}

.section-heading {
    max-width: 520px;
}

.section-heading h2,
.section h1,
.panel h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.intro-section,
.split-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
}

.intro-copy {
    font-size: 1.08rem;
    color: #24332c;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.2rem 0 0;
    animation: section-rise .55s ease both;
}

.feature-card,
.signup-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: clamp(1.2rem, 3vw, 1.7rem);
    box-shadow: 0 12px 28px rgba(7, 17, 15, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-card:hover,
.signup-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 118, 223, .34);
    box-shadow: 0 18px 38px rgba(7, 17, 15, .12);
}

.feature-number {
    display: inline-block;
    margin-bottom: 1.1rem;
    color: var(--blue-dark);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.feature-card h3,
.signup-card h3 {
    font-size: 1.35rem;
}

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

.check-list {
    display: grid;
    gap: .8rem;
    padding: 0;
    margin: 1.25rem 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .25rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--green);
    box-shadow: inset 0 0 0 4px var(--green-soft);
}

.signup-card {
    background: linear-gradient(150deg, #fff, var(--green-soft));
}

.signup-card img,
.section-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.text-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 800;
}

.centered {
    text-align: center;
}

.centered .cta-row {
    justify-content: center;
}

.columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.2rem, 4vw, 3rem);
    color: #24332c;
}

.founders-section {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    background: linear-gradient(145deg, #fff, var(--green-soft));
}

.founders-copy {
    max-width: 680px;
}

.founders-copy h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.founders-copy p:last-child {
    margin-bottom: 0;
    color: #24332c;
    font-size: 1.06rem;
}

.founder-profiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: clamp(1rem, 3vw, 1.4rem);
    align-items: start;
}

.founder-profile {
    margin: 0;
    text-align: center;
}

.founder-profile img {
    display: block;
    width: min(170px, 100%);
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto .8rem;
    border: 4px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    box-shadow: 0 10px 22px rgba(7, 17, 15, .12);
}

.founder-profile figcaption {
    color: var(--ink);
    font-weight: 750;
}

.faq-section {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(1.5rem, 4vw, 3rem);
}

.faq-list {
    display: grid;
    gap: .8rem;
}

.faq-list article {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.faq-list h3 {
    margin-bottom: .35rem;
    font-size: 1rem;
}

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

.about-values {
    margin-bottom: 1.2rem;
}

.donate-section {
    max-width: 820px;
}

.donate-section h1 {
    max-width: 720px;
    margin: 0 auto;
}

.fine-print {
    color: var(--muted);
    font-size: .94rem;
}

.align-right {
    text-align: right;
}

.wide-photo,
.event-card img {
    display: block;
    width: min(840px, 100%);
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(7, 17, 15, .12);
}

.event-card {
    padding: 1rem 0 2rem;
}

.event-card p {
    font-size: 1.05rem;
}

.event-detail h2 {
    margin-top: 1.8rem;
}

.form-embed {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 1rem auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.form-embed iframe {
    display: block;
    width: 100%;
    min-height: 760px;
    border: 0;
}

.gallery {
    columns: 4 180px;
    column-gap: .75rem;
}

.gallery-item {
    display: block;
    width: 100%;
    margin: 0 0 .75rem;
    padding: 0;
    break-inside: avoid;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .13);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .18s ease;
}

.gallery-item:hover img,
.gallery-item:focus img {
    transform: scale(1.025);
}

.site-footer {
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-top: 1.4rem;
    padding: 2rem;
    background: #000;
    color: #fff;
    text-align: center;
}

.site-footer img {
    width: 72px;
}

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

.site-footer div {
    border-left: 2px solid rgba(255, 255, 255, .7);
    padding-left: 2rem;
}

.help-widget {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 20;
    display: grid;
    justify-items: end;
    gap: .65rem;
    max-width: min(330px, calc(100vw - 2rem));
}

.help-bubble {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 100%;
    padding: .85rem .9rem .85rem 1rem;
    border: 1px solid rgba(13, 95, 166, .16);
    border-radius: 18px 18px 4px 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(9, 34, 53, .18);
    color: var(--ink);
    opacity: 0;
    transform: translateY(8px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
    cursor: pointer;
}

.help-bubble.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.help-bubble p {
    margin: 0;
    font-weight: 800;
    line-height: 1.25;
}

.help-bubble::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    bottom: -.43rem;
    width: .85rem;
    height: .85rem;
    border-right: 1px solid rgba(13, 95, 166, .16);
    border-bottom: 1px solid rgba(13, 95, 166, .16);
    background: #fff;
    transform: rotate(45deg);
}

.help-bubble-close {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.help-bubble-close:hover,
.help-bubble-close:focus-visible {
    background: rgba(13, 95, 166, .14);
}

.help-trigger {
    border: 0;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    padding: 1rem 1.2rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .33);
    cursor: pointer;
}

.help-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0, 0, 0, .55);
}

.help-dialog {
    position: fixed;
    right: 1rem;
    bottom: 5rem;
    width: min(440px, calc(100vw - 2rem));
    max-height: calc(100vh - 7rem);
    overflow: auto;
    z-index: 31;
    padding: 1.5rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .44);
}

.help-close,
.lightbox-close {
    float: right;
    border: 0;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
}

.help-dialog label {
    display: block;
    margin: .8rem 0;
    font-weight: 700;
}

.field-hint {
    margin: -.35rem 0 .8rem;
    color: var(--muted);
    font-size: .9rem;
}

.help-dialog input,
.help-dialog textarea {
    width: 100%;
    padding: .75rem;
    border: 1px solid #777;
    border-radius: 6px;
}

.help-dialog textarea {
    min-height: 120px;
}

.check {
    display: flex !important;
    gap: .5rem;
    align-items: flex-start;
}

.check input {
    width: auto;
}

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

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

.form-status.success {
    color: #167200;
}

.form-status.error {
    color: #a40000;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, .86);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    background: #111;
}

.lightbox-close {
    position: fixed;
    right: 1rem;
    top: 1rem;
    color: #fff;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

@keyframes section-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

@media (max-width: 920px) {
    .site-nav {
        flex-wrap: wrap;
    }

    .site-nav a {
        padding: .75rem .9rem;
    }

    .intro-section,
    .split-section,
    .feature-grid,
    .columns,
    .founders-section,
    .faq-section {
        grid-template-columns: 1fr;
    }

    .founders-copy {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: .65rem .75rem 0;
    }

    .brand {
        flex-direction: column;
        gap: .25rem;
    }

    .brand img {
        width: 56px;
        height: 56px;
    }

    .brand span {
        max-width: 12ch;
        font-size: clamp(1.45rem, 7.2vw, 2rem);
        line-height: 1.05;
    }

    .menu-toggle {
        display: inline-flex;
        margin: .7rem 0 .25rem;
        border: 0;
        border-radius: 8px;
        background: var(--blue);
        color: #fff;
        padding: .75rem 1.1rem;
        font-weight: 750;
        min-height: 44px;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        margin-top: .7rem;
    }

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

    .site-nav a {
        padding: .95rem 1rem;
        min-height: 44px;
    }

    main {
        padding: .8rem .75rem 0;
    }

    .hero > img {
        height: 330px;
        min-height: 330px;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(1.85rem, 8.8vw, 2.55rem);
    }

    .section,
    .panel {
        padding: 1.1rem;
        margin-top: .9rem;
    }

    .founder-profiles {
        grid-template-columns: 1fr 1fr;
    }

    .founder-profile img {
        width: min(138px, 100%);
    }

    .hero-actions,
    .cta-row {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

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

    .site-footer div {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .65);
        padding: 1rem 0 0;
    }

    .help-dialog {
        left: 1rem;
        right: 1rem;
        bottom: 4.8rem;
    }

    .help-widget {
        right: .7rem;
        bottom: .7rem;
        max-width: min(300px, calc(100vw - 1.4rem));
    }

    .help-bubble {
        padding: .75rem .8rem .75rem .9rem;
        font-size: .9rem;
    }

    .help-trigger {
        min-width: 44px;
        min-height: 44px;
        padding: .65rem .75rem;
        font-size: .78rem;
    }

    .gallery {
        columns: 2 130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
