/* ---------- FOUNDATION ---------- */

:root {
    --paper: #f1f0e3;
    --paper-light: #fffef5;
    --ink: #11100d;
    --muted: #5c564c;
    --action: #38b95f;
    --action-dark: #126b35;
    --signal: #c9e878;
    --white: #fffdf7;
    --border: 3px solid var(--ink);
    --shadow: 7px 7px 0 var(--ink);
    --content: 1180px;
    --scroll-progress: 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(17, 16, 13, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 16, 13, 0.018) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 4px solid var(--signal);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 14px;
    transform: translateY(-150%);
    background: var(--ink);
    color: var(--white);
    border: 2px solid var(--white);
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

/* ---------- NAV ---------- */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(241, 240, 227, 0.96);
    border-bottom: var(--border);
    animation: header-arrive 0.55s ease-out both;
}

.scroll-progress {
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 6px;
    overflow: hidden;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--action);
    border-right: 3px solid var(--ink);
    transform: scaleX(var(--scroll-progress));
    transform-origin: left center;
    transition: transform 0.08s linear;
}

.navbar {
    width: min(100%, calc(var(--content) + 60px));
    min-height: 82px;
    margin: auto;
    padding: 13px 30px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
}

.logo {
    color: var(--ink);
    text-decoration: none;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    line-height: 1;
}

.logo span {
    display: inline-block;
    padding: 5px 6px 3px;
    transform: rotate(-2deg);
    background: var(--action);
    color: var(--ink);
    border: 2px solid var(--ink);
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    gap: clamp(16px, 2.2vw, 30px);
}

.nav-links a {
    position: relative;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 4px;
    background: var(--action);
    border: 1px solid var(--ink);
    transform: scaleX(0) rotate(-1deg);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    transform: scaleX(1) rotate(-1deg);
}

.nav-links a.is-active {
    color: var(--action-dark);
}

.nav-links a:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
    text-decoration-color: var(--action);
}

/* ---------- BUTTONS ---------- */

.button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    min-height: 50px;
    padding: 12px 22px;
    align-items: center;
    justify-content: center;
    border: var(--border);
    border-radius: 1px;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button::after {
    content: "";
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -35%;
    width: 22%;
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    transform: translateX(-220%) skewX(-18deg);
}

.button:hover::after,
.button:focus-visible::after {
    animation: button-sweep 0.55s ease-out;
}

.button:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--ink);
}

.primary,
.petition-button {
    background: var(--action);
    box-shadow: 5px 5px 0 var(--ink);
}

.primary:hover,
.petition-button:hover {
    background: #55ca77;
}

.secondary {
    background: var(--paper-light);
    box-shadow: 5px 5px 0 var(--ink);
}

.nav-petition {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 0.78rem;
}

/* ---------- HERO ---------- */

.hero {
    position: relative;
    min-height: calc(100vh - 82px);
    padding: clamp(60px, 9vw, 120px) 30px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    border-bottom: var(--border);
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 7%;
    right: -5%;
    width: min(35vw, 430px);
    aspect-ratio: 1;
    background: repeating-linear-gradient(-45deg, var(--signal) 0 18px, transparent 18px 36px);
    border: var(--border);
    transform: rotate(4deg);
    animation: poster-float 7s ease-in-out infinite;
}

.hero-content {
    width: 100%;
    max-width: var(--content);
    margin: auto;
}

.eyebrow,
.section-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 9px 3px;
    background: var(--signal);
    border: 2px solid var(--ink);
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    line-height: 1.3;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero .eyebrow {
    animation: poster-drop 0.55s 0.1s ease-out both;
}

.hero h1 {
    max-width: 900px;
    margin-bottom: 34px;
    color: var(--ink);
    font-family: Impact, "Arial Black", Arial, sans-serif;
    font-size: clamp(4.3rem, 10vw, 8.8rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1;
    text-transform: uppercase;
    animation: headline-arrive 0.75s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero h1::after {
    content: "";
    display: block;
    width: min(420px, 70%);
    height: 15px;
    margin-top: 24px;
    background: var(--action);
    border: 2px solid var(--ink);
    transform: rotate(-1deg);
    transform-origin: left center;
    animation: stripe-draw 0.65s 0.72s ease-out both;
}

.hero-text {
    max-width: 720px;
    margin-bottom: 15px;
    color: var(--ink);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.65;
}

.hero-text:nth-of-type(2) {
    animation: fade-rise 0.6s 0.42s ease-out both;
}

.hero-text:nth-of-type(3) {
    animation: fade-rise 0.6s 0.5s ease-out both;
}

.hero-text:nth-of-type(4) {
    animation: fade-rise 0.6s 0.58s ease-out both;
}

.hero-text strong {
    background: var(--signal);
    color: var(--ink);
    padding: 0 3px;
}

.hero-text-secondary {
    margin-top: 4px;
    margin-bottom: 32px;
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    animation: fade-rise 0.6s 0.66s ease-out both;
}

/* ---------- GENERAL SECTIONS ---------- */

.section {
    max-width: var(--content);
    margin: auto;
    padding: clamp(78px, 9vw, 118px) 30px;
    scroll-margin-top: 96px;
}

.section h2 {
    max-width: 940px;
    margin-bottom: 24px;
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    font-weight: 900;
    font-kerning: none;
    font-feature-settings: "kern" 0;
    letter-spacing: 0.02em;
    line-height: 1.13;
    text-wrap: balance;
    text-transform: uppercase;
}

.section > p {
    max-width: 800px;
    margin-bottom: 20px;
    color: var(--muted);
}

.section-intro {
    max-width: 760px;
    font-size: 1.12rem;
    line-height: 1.75;
}

/* ---------- FACT CARDS ---------- */

.fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 52px;
}

.fact-card {
    position: relative;
    min-height: 390px;
    padding: clamp(25px, 4vw, 36px);
    display: flex;
    flex-direction: column;
    background: var(--paper-light);
    border: var(--border);
    border-radius: 1px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fact-card::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    width: 76px;
    height: 14px;
    background: var(--signal);
    border: 2px solid var(--ink);
    transform: translateX(-50%) rotate(-1.5deg);
    transition: transform 0.2s ease;
}

.fact-card:nth-child(even) {
    background: #e1efdd;
}

.fact-card:hover {
    transform: translate(-2px, -2px) rotate(-0.2deg);
    box-shadow: 10px 10px 0 var(--ink);
}

.fact-card:hover::before {
    transform: translateX(-50%) rotate(1.5deg) scaleX(1.08);
}

.fact-number {
    display: inline-block;
    width: fit-content;
    margin-bottom: 24px;
    padding: 7px 10px 5px;
    background: var(--action);
    border: 2px solid var(--ink);
    color: var(--ink);
    font-family: Impact, "Arial Black", Arial, sans-serif;
    font-size: clamp(1.2rem, 2.6vw, 2rem);
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-transform: uppercase;
}

.fact-card h3 {
    margin-bottom: 15px;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.16;
}

.fact-card p {
    margin-bottom: 28px;
    color: #363129;
    font-size: 1rem;
    line-height: 1.7;
}

.fact-footer {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    border-top: 2px solid var(--ink);
}

.fact-source {
    color: var(--ink);
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.source-link {
    width: fit-content;
    color: var(--action-dark);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.source-link:hover {
    color: var(--ink);
    background: var(--signal);
    transform: translateX(4px);
}

/* ---------- LOCAL CARDS ---------- */

.dark-section {
    max-width: none;
    padding-left: max(30px, calc((100vw - 1120px) / 2));
    padding-right: max(30px, calc((100vw - 1120px) / 2));
    background: var(--ink);
    color: var(--white);
    border-block: 10px solid var(--action);
}

.dark-section .section-label {
    background: var(--action);
}

.dark-section > p {
    color: #d8d0c1;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 46px;
}

.card {
    padding: 30px;
    background: var(--paper-light);
    color: var(--ink);
    border: 3px solid var(--white);
    border-radius: 0;
    box-shadow: 6px 6px 0 var(--action);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 11px 0 var(--action);
}

.card h3 {
    margin-bottom: 14px;
    font-size: 1.5rem;
}

.card p {
    margin-bottom: 22px;
    color: #494238;
}

.status {
    display: inline-block;
    padding: 6px 9px 4px;
    border: 2px solid var(--ink);
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.pending {
    background: var(--signal);
    color: var(--ink);
}

/* ---------- RESEARCH GRID ---------- */

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 46px;
}

.research-grid div {
    min-height: 145px;
    padding: 24px;
    background: var(--paper-light);
    border: var(--border);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.research-grid div:nth-child(3n + 2) {
    background: var(--signal);
}

.research-grid div:hover {
    transform: translateY(-4px) rotate(0.25deg);
    background: #dcf1a7;
}

.research-grid h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
}

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

/* ---------- ACTION ---------- */

.action-section {
    max-width: none;
    padding-left: max(30px, calc((100vw - 1120px) / 2));
    padding-right: max(30px, calc((100vw - 1120px) / 2));
    background: var(--action);
    border-block: var(--border);
    text-align: center;
}

.action-section .section-label {
    background: var(--paper-light);
}

.action-section h2,
.action-section > p {
    margin-left: auto;
    margin-right: auto;
}

.action-section > p {
    color: var(--ink);
    font-size: 1.1rem;
}

.action-buttons {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.action-section button {
    background: var(--signal);
    box-shadow: 6px 6px 0 var(--ink);
}

.instagram-button {
    background: var(--paper-light);
    box-shadow: 6px 6px 0 var(--ink);
}

.instagram-button:hover {
    background: var(--white);
}

/* ---------- FOOTER ---------- */

footer {
    padding: 48px 30px;
    background: var(--ink);
    color: var(--white);
    text-align: center;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    min-width: 82px;
    min-height: 48px;
    padding: 9px 13px;
    background: var(--signal);
    color: var(--ink);
    border: var(--border);
    border-radius: 0;
    box-shadow: 4px 4px 0 var(--ink);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) rotate(1deg);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top span {
    display: inline-block;
    margin-right: 4px;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) rotate(1deg);
}

.back-to-top:hover {
    box-shadow: 7px 7px 0 var(--ink);
    transform: translate(-2px, -2px) rotate(-1deg);
}

.back-to-top:hover span {
    transform: translateY(-3px);
}

/* ---------- MOTION ---------- */

.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.65s ease,
        transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes header-arrive {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes poster-drop {
    from {
        opacity: 0;
        transform: translateY(-18px) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

@keyframes headline-arrive {
    from {
        opacity: 0;
        transform: translateX(-34px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes stripe-draw {
    from {
        transform: rotate(-1deg) scaleX(0);
    }
    to {
        transform: rotate(-1deg) scaleX(1);
    }
}

@keyframes fade-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes poster-float {
    0%,
    100% {
        transform: rotate(4deg) translateY(0);
    }
    50% {
        transform: rotate(2.5deg) translateY(8px);
    }
}

@keyframes button-sweep {
    from {
        transform: translateX(-220%) skewX(-18deg);
    }
    to {
        transform: translateX(720%) skewX(-18deg);
    }
}

@media (hover: hover) {
    .section-label:hover,
    .eyebrow:hover {
        box-shadow: 3px 3px 0 var(--ink);
        transform: translate(-1px, -1px) rotate(-1deg);
    }
}

footer > p:first-child {
    font-family: Impact, "Arial Black", Arial, sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-note {
    margin-top: 5px;
    color: #b8b0a2;
    font-size: 0.9rem;
}

.footer-social {
    margin-top: 15px;
}

.footer-social a {
    color: var(--signal);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-underline-offset: 4px;
}

.footer-social a:hover {
    color: var(--white);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 920px) {
    .navbar {
        grid-template-columns: 1fr auto;
    }

    .nav-links {
        display: none;
    }

    .hero::before {
        opacity: 0.42;
    }

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

@media (max-width: 720px) {
    html {
        scroll-padding-top: 78px;
    }

    .navbar {
        min-height: 74px;
        padding: 11px 18px;
        gap: 12px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-petition {
        min-height: 42px;
        padding: 7px 11px;
        font-size: 0.66rem;
        box-shadow: 3px 3px 0 var(--ink);
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        min-width: 72px;
        min-height: 44px;
        padding: 7px 10px;
        font-size: 0.7rem;
    }

    .hero {
        min-height: calc(100vh - 74px);
        padding: 58px 20px 68px;
    }

    .hero::before {
        top: 12%;
        right: -20%;
        width: 65vw;
    }

    .hero h1 {
        font-size: clamp(3rem, 16vw, 6.2rem);
        line-height: 1.02;
    }

    .section h2 {
        font-size: clamp(2.15rem, 9.5vw, 3rem);
        overflow-wrap: break-word;
    }

    .section {
        padding: 74px 20px;
    }

    .fact-grid,
    .cards,
    .research-grid {
        grid-template-columns: 1fr;
    }

    .fact-card {
        min-height: auto;
        box-shadow: 5px 5px 0 var(--ink);
    }

    .dark-section,
    .action-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 440px) {
    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .action-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .action-buttons .button {
        width: 100%;
    }

    .fact-card,
    .card,
    .research-grid div {
        padding: 22px;
    }
}

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

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

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}
