/* Public pages: stop horizontal swipe and keep type readable on phones. */
html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    overflow-x: clip;
    max-width: 100%;
}

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

.hero,
.hero-art,
.signal-strip,
.events-section,
.join-section,
.partner-hero-card,
.partner-impact-banner,
.site-footer,
.directory-preview,
.scroll-feature,
.verify-card,
.verify-console {
    max-width: 100%;
}

.scroll-feature {
    overflow-x: clip;
}

.hero {
    overflow: hidden;
}

.hero-art {
    overflow: hidden;
}

.event-rail {
    padding-left: max(calc((100% - 1240px) / 2), 24px) !important;
    padding-right: 24px;
}

@media (max-width: 900px) {
    .hero {
        padding-top: 118px !important;
        padding-bottom: 56px !important;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 56px) !important;
        letter-spacing: -0.06em;
        margin: 18px 0 18px !important;
        overflow-wrap: break-word;
    }

    .hero-lead {
        max-width: none;
    }

    .hero-art {
        width: 100% !important;
        height: 280px !important;
        margin: 16px 0 0 !important;
        transform: none !important;
    }

    .orbit-one {
        width: min(92%, 340px);
        height: 150px;
    }

    .orbit-two {
        width: min(72%, 260px);
        height: min(72%, 260px);
    }

    .orbit-three {
        width: min(48%, 170px);
        height: min(80%, 260px);
    }

    .art-core {
        width: 168px;
        height: 168px;
    }

    .art-core strong {
        font-size: 54px;
    }

    .node-one {
        left: 8px;
        top: 36px;
    }

    .node-two {
        right: 8px;
        top: 28px;
    }

    .node-three {
        right: 12px;
        bottom: 28px;
    }

    .event-card {
        width: min(340px, calc(100% - 8px)) !important;
    }

    .display {
        overflow-wrap: break-word;
    }

    .filter-pills {
        max-width: 100%;
    }

    .footer-links {
        gap: 28px 36px !important;
    }
}

@media (max-width: 520px) {
    .hero {
        padding-top: 104px !important;
        padding-bottom: 40px !important;
    }

    .hero h1 {
        font-size: clamp(34px, 12vw, 44px) !important;
    }

    .hero-art {
        height: 220px !important;
    }

    .art-glow {
        width: 240px;
        height: 240px;
    }

    .art-core {
        width: 132px;
        height: 132px;
    }

    .art-core strong {
        font-size: 42px;
    }

    .orbit-node {
        font-size: 9px;
        padding: 6px 9px;
    }

    .hero-actions .button {
        width: 100%;
        justify-content: center;
    }

    .partner-logo {
        padding: 16px 18px;
    }

    .partner-logo img {
        height: 56px;
    }

    .partner-logo-sai img {
        height: 32px;
    }

    .impact-flow-grid {
        grid-template-columns: 1fr !important;
    }

    .verify-card {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .plan-grid-three {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-inline: auto;
    }
}
