:root {
    --ink: #151515;
    --muted: #666666;
    --paper: #ffffff;
    --soft: #eef8f6;
    --charcoal: #1f1f1f;
    --teal: #0F8A7A;
    --teal-dark: #0A665B;
    --teal-soft: #DFF1EE;
    --red: #8B2C2C;
    --red-dark: #651F1F;
    --red-soft: #F4E7E7;
    --line: rgba(21, 21, 21, 0.14);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.7;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 18px clamp(20px, 5vw, 72px);
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0));
}

.brand,
.footer-logo {
    display: grid;
    gap: 0;
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(1.1rem, 2vw, 1.7rem);
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand span,
.footer-logo span {
    font-weight: 300;
}

.brand strong,
.footer-logo strong {
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 28px);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-nav a {
    opacity: 0.92;
    transition: color 180ms ease, opacity 180ms ease;
}

.main-nav a:hover {
    color: var(--teal-soft);
    opacity: 1;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px clamp(22px, 8vw, 130px) 90px;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(15, 138, 122, 0.62), rgba(139, 44, 44, 0.28) 54%, rgba(0, 0, 0, 0.16)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.2)),
        url("https://images.unsplash.com/photo-1507692049790-de58290a4334?auto=format&fit=crop&w=2200&q=85") center / cover;
}

.hero-content {
    max-width: 980px;
    padding-top: 48px;
}

.hero-logo {
    width: clamp(150px, 18vw, 280px);
    height: auto;
    margin: 0 0 28px;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.46));
}

.eyebrow,
.kicker {
    margin: 0 0 18px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.kicker {
    color: var(--teal);
}

.hero h1 {
    margin: 0;
    max-width: 930px;
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(3.4rem, 10vw, 9.6rem);
    font-weight: 300;
    line-height: 0.93;
    letter-spacing: 0;
}

.hero h1 span {
    font-weight: 500;
}

.hero h1 strong {
    font-weight: 700;
}

.hero-subtitle {
    margin: 24px 0 0;
    max-width: 740px;
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 500;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    align-items: center;
    gap: clamp(36px, 7vw, 90px);
    padding: clamp(68px, 10vw, 130px) clamp(22px, 7vw, 112px);
}

.split-section.about,
.split-section.partnership {
    grid-template-columns: minmax(320px, 1fr) minmax(0, 0.95fr);
    background: var(--soft);
}

.section-copy {
    max-width: 620px;
}

.section-copy h2,
.resources h2,
.events-band h2,
.where-we-meet h2 {
    margin: 0 0 24px;
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(2.2rem, 5vw, 5rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-copy h3 {
    margin: 0 0 12px;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.section-copy p {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 1.05rem;
}

.image-frame {
    position: relative;
    margin: 0;
    min-height: 420px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(15, 138, 122, 0.16), rgba(139, 44, 44, 0.1));
    mix-blend-mode: multiply;
}

.welcome-image::after {
    background:
        linear-gradient(180deg, rgba(15, 138, 122, 0.08), rgba(139, 44, 44, 0.2)),
        linear-gradient(135deg, rgba(15, 138, 122, 0.18), rgba(139, 44, 44, 0.1));
}

.image-frame.tall {
    aspect-ratio: 0.82;
}

.image-frame img {
    height: 100%;
    object-fit: cover;
}

.welcome-image img {
    object-position: center;
    filter: saturate(0.9) contrast(1.05) brightness(0.96);
}

.about-image img {
    object-position: center;
    filter: saturate(0.92) contrast(1.04);
}

.partnership-image img {
    object-position: center;
    filter: saturate(0.94) contrast(1.03) brightness(0.98);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 2px solid var(--teal);
    background: var(--teal);
    color: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
    border-color: var(--teal-dark);
    background: var(--teal-dark);
}

.button-outline {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}

.button-outline:hover {
    border-color: var(--red);
    background: var(--red);
    color: #ffffff;
}

.resources {
    padding: clamp(72px, 9vw, 120px) clamp(22px, 7vw, 112px);
    text-align: center;
}

.resources h2 {
    max-width: 920px;
    margin-inline: auto;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1120px;
    margin: 48px auto 0;
}

.resource-card {
    min-height: 230px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 24px;
    padding: 34px;
    background: var(--teal);
    color: #ffffff;
    transition: transform 180ms ease, background 180ms ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    background: var(--red);
}

.resource-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    color: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 2rem;
    font-weight: 700;
}

.resource-card strong {
    font-family: "IBM Plex Mono", monospace;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.events-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(70px, 10vw, 120px) clamp(22px, 7vw, 112px);
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(139, 44, 44, 0.84), rgba(15, 138, 122, 0.52)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.16)),
        url("img/events.jpg") center / cover;
}

.events-band h2 {
    max-width: 850px;
    margin-bottom: 0;
}

.button-light {
    flex: 0 0 auto;
    border-color: #ffffff;
    background: #ffffff;
    color: var(--ink);
}

.button-light:hover {
    border-color: var(--red);
    background: var(--red);
    color: #ffffff;
}

.where-we-meet {
    padding: clamp(70px, 10vw, 125px) clamp(22px, 7vw, 112px);
    background: #ffffff;
    text-align: center;
}

.section-intro {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.location-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
    gap: 24px;
    max-width: 980px;
    margin: 48px auto 0;
    text-align: left;
}

.location-grid article {
    min-height: 245px;
    display: grid;
    align-content: center;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--line);
    background: var(--soft);
}

.location-grid article.primary {
    background: var(--teal);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.location-grid h3 {
    margin: 0 0 14px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 1.35rem;
    text-transform: uppercase;
}

.location-grid p {
    margin: 0 0 16px;
    color: var(--teal-dark);
    font-weight: 700;
}

.location-grid article.primary p,
.location-grid article.primary span {
    color: rgba(255, 255, 255, 0.84);
}

.location-grid span {
    color: var(--muted);
}

.site-footer {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.2fr;
    gap: clamp(34px, 6vw, 80px);
    padding: clamp(60px, 8vw, 110px) clamp(22px, 7vw, 112px);
    background: linear-gradient(135deg, var(--red-dark), #202020 46%, var(--teal-dark));
    color: #ffffff;
}

.footer-logo {
    align-self: start;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 3.8rem);
}

.contact-form {
    display: grid;
    gap: 15px;
}

.contact-form h2 {
    margin: 0 0 8px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 1.55rem;
    text-transform: uppercase;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.85rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font: inherit;
    padding: 13px 14px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--teal-soft);
}

.contact-form button {
    justify-self: start;
    min-height: 46px;
    border: 0;
    background: var(--teal);
    color: #ffffff;
    padding: 11px 28px;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 38px;
}

.footer-links h3 {
    margin: 0 0 16px;
    font-family: "IBM Plex Mono", monospace;
    text-transform: uppercase;
}

.footer-links a,
.footer-links p {
    display: block;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.74);
}

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

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
}

@media (max-width: 980px) {
    .site-header {
        position: absolute;
        align-items: flex-start;
    }

    .main-nav {
        max-width: 460px;
        flex-wrap: wrap;
    }

    .split-section,
    .split-section.about,
    .split-section.partnership,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .split-section.about .image-frame,
    .split-section.partnership .image-frame {
        order: 2;
    }

    .resource-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 680px) {
    .site-header {
        min-height: 120px;
        flex-direction: column;
        gap: 18px;
    }

    .main-nav {
        justify-content: flex-start;
        gap: 10px 16px;
        font-size: 0.68rem;
    }

    .hero {
        min-height: 92vh;
        padding-top: 180px;
    }

    .hero h1 {
        font-size: clamp(3rem, 18vw, 5.8rem);
    }

    .section-copy h2,
    .resources h2,
    .events-band h2,
    .where-we-meet h2 {
        font-size: clamp(2rem, 12vw, 3.4rem);
    }

    .image-frame {
        min-height: 340px;
    }

    .button,
    .button-row {
        width: 100%;
    }
}
