/* =========================================================
   WINDERVALE — GRANTS
   RED WINE / EDITORIAL / Y2K OBJECT / ART-DIRECTED
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');


/* =========================================================
   ROOT
   ========================================================= */

:root {
    --wine: #5a1029;
    --wine-dark: #3d071b;
    --wine-light: #721d3b;
    --cream: #f5eee5;
    --white: #fffaf5;
    --pink: #d99aaa;
    --muted: rgba(255, 250, 245, 0.68);
    --line: rgba(255, 250, 245, 0.25);
    --line-strong: rgba(255, 250, 245, 0.48);
    --black: #12080c;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--wine);
    color: var(--white);
    font-family: "Space Grotesk", Arial, sans-serif;
    overflow-x: hidden;
}

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

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


/* =========================================================
   WINE BACKGROUND
   ========================================================= */

.grants-page {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 82% 12%,
            rgba(213, 114, 137, 0.18),
            transparent 27%
        ),
        radial-gradient(
            circle at 12% 72%,
            rgba(255, 190, 205, 0.07),
            transparent 22%
        ),
        linear-gradient(
            135deg,
            #3d071b 0%,
            #571029 38%,
            #67172f 70%,
            #4b0b23 100%
        );

    position: relative;
}

/* grain */
.grants-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;

    opacity: 0.08;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}


/* =========================================================
   HOME MARK
   ========================================================= */

.grants-home {
    position: fixed;
    top: 26px;
    left: 34px;
    z-index: 100;

    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.13em;

    padding: 8px 11px;

    border: 1px solid var(--line-strong);
    background: rgba(40, 4, 17, 0.35);

    backdrop-filter: blur(12px);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.grants-home:hover {
    background: var(--white);
    color: var(--wine-dark);
    transform: rotate(-2deg);
}


/* =========================================================
   MAIN
   ========================================================= */

.grants-main {
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.grants-hero {
    min-height: 100vh;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    padding:
        150px
        5vw
        110px;

    position: relative;

    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.grants-hero::after {
    content: "FUND / 001";
    position: absolute;

    right: 30px;
    top: 50%;

    transform: rotate(90deg);

    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.25em;
    opacity: 0.55;
}

.grants-eyebrow,
.grants-section-number {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--pink);
}

.grants-eyebrow {
    margin-bottom: 38px;
}

.grants-hero h1 {
    font-size: clamp(70px, 10vw, 150px);
    line-height: 0.78;
    letter-spacing: -0.075em;
    font-weight: 700;
    max-width: 800px;
}

.grants-hero-copy {
    max-width: 540px;

    margin-top: 48px;

    font-size: 18px;
    line-height: 1.45;
    color: var(--muted);
}

.grants-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 38px;
}

.grants-primary-button,
.grants-secondary-button {
    display: inline-flex;
    align-items: center;

    padding: 13px 17px;

    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.08em;

    border: 1px solid var(--white);

    transition: 0.25s ease;
}

.grants-primary-button {
    background: var(--white);
    color: var(--wine-dark);
}

.grants-secondary-button {
    background: transparent;
    color: var(--white);
}

.grants-primary-button:hover {
    background: var(--pink);
    border-color: var(--pink);
    transform: translateY(-3px);
}

.grants-secondary-button:hover {
    background: var(--wine-light);
    transform: translateY(-3px);
}


/* =========================================================
   GENERAL SECTION
   ========================================================= */

.grants-section {
    padding: 120px 5vw;

    border-top: 1px solid var(--line);

    position: relative;
}

.grants-two-column {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 100px;

    margin-top: 75px;
}

.grants-two-column h2,
.grants-process > h2,
.grants-projects-heading h2,
.grants-final h2 {
    font-size: clamp(42px, 5.5vw, 78px);
    line-height: 0.88;
    letter-spacing: -0.06em;
}

.grants-copy {
    max-width: 650px;
}

.grants-copy p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: 28px;
}


/* =========================================================
   ABOUT
   ========================================================= */

.grants-about {
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        );

    background-size: 80px 100%;
}

.grants-about::before {
    content: "01";
    position: absolute;
    right: 5vw;
    top: 100px;

    font-size: 180px;
    font-weight: 700;
    letter-spacing: -0.1em;

    opacity: 0.035;
}


/* =========================================================
   ELIGIBILITY
   ========================================================= */

.grants-eligibility {
    background: var(--cream);
    color: var(--wine-dark);
}

.grants-eligibility .grants-section-number {
    color: #8c4157;
}

.grants-eligibility .grants-copy p {
    color: rgba(61, 7, 27, 0.7);
}

.grants-rules {
    margin-top: 45px;
    border-top: 1px solid rgba(61, 7, 27, 0.25);
}

.grant-rule {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 20px;

    padding: 22px 0;

    border-bottom: 1px solid rgba(61, 7, 27, 0.25);
}

.grant-rule span {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    color: #8c4157;
}

.grant-rule p {
    margin: 0;
}


/* =========================================================
   PROCESS
   ========================================================= */

.grants-process {
    padding-bottom: 150px;
}

.grants-process > h2 {
    margin-top: 55px;
    margin-bottom: 75px;
}

.grants-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;

    background: var(--line);

    border: 1px solid var(--line);
}

.grant-process-card {
    min-height: 290px;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.075),
            rgba(255,255,255,0.015)
        );

    display: flex;
    flex-direction: column;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.grant-process-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

.grant-process-card > span {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    color: var(--pink);
}

.grant-process-card h3 {
    margin-top: auto;

    font-size: 27px;
    letter-spacing: -0.04em;
}

.grant-process-card p {
    margin-top: 15px;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   APPLICATION
   ========================================================= */

.grants-submission {
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.018) 40px,
            rgba(255,255,255,0.018) 41px
        );
}

.submission-list {
    margin-top: 45px;

    border-top: 1px solid var(--line);
}

.submission-list > div {
    display: grid;
    grid-template-columns: 50px 180px 1fr;
    gap: 15px;

    padding: 24px 0;

    border-bottom: 1px solid var(--line);

    align-items: baseline;
}

.submission-list span {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    color: var(--pink);
}

.submission-list strong {
    font-size: 12px;
    letter-spacing: 0.08em;
}

.submission-list p {
    margin: 0;
    font-size: 14px;
}


/* =========================================================
   AGREEMENT
   ========================================================= */

.grants-agreement {
    padding-top: 150px;
    padding-bottom: 150px;
}

.grants-agreement-box {
    margin-top: 70px;

    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 70px;

    padding: 60px;

    border: 1px solid var(--line-strong);

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(220, 150, 170, 0.15),
            transparent 30%
        ),
        rgba(42, 4, 17, 0.32);

    box-shadow:
        14px 14px 0 rgba(30, 2, 12, 0.3);
}

.agreement-label {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--pink);
}

.grants-agreement-box h2 {
    margin-top: 35px;

    font-size: clamp(38px, 5vw, 70px);
    line-height: 0.88;
    letter-spacing: -0.06em;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.grants-projects {
    background: var(--cream);
    color: var(--wine-dark);
}

.grants-projects .grants-section-number {
    color: #8c4157;
}

.grants-projects-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-top: 70px;
}

.grants-projects-heading span {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #8c4157;
}

.grant-project-placeholder {
    margin-top: 70px;

    min-height: 230px;

    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;

    border: 1px solid rgba(61, 7, 27, 0.3);

    padding: 40px;

    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 38px,
            rgba(61,7,27,0.045) 39px
        );
}

.placeholder-number {
    font-family: "DM Mono", monospace;
    font-size: 50px;
    color: #9a5165;
}

.grant-project-placeholder h3 {
    font-size: 25px;
    letter-spacing: -0.04em;
}

.grant-project-placeholder p {
    margin-top: 12px;

    color: rgba(61, 7, 27, 0.65);
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.grants-final {
    min-height: 80vh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 120px 5vw;

    position: relative;

    border-top: 1px solid var(--line);
}

.grants-final::after {
    content: "MAKE / FUND / RELEASE";
    position: absolute;

    right: 5vw;
    top: 50%;

    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.18em;

    transform: rotate(90deg);

    color: var(--pink);
}

.grants-final > span {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.15em;

    color: var(--pink);

    margin-bottom: 30px;
}

.grants-final h2 {
    font-size: clamp(70px, 11vw, 170px);
}

.grants-final-button {
    width: fit-content;

    margin-top: 50px;

    padding: 18px 25px;

    border: 1px solid var(--white);

    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.1em;

    transition: 0.25s ease;
}

.grants-final-button:hover {
    background: var(--white);
    color: var(--wine-dark);
    transform: translateX(8px);
}


/* =========================================================
   FOOTER
   ========================================================= */

.grants-footer {
    min-height: 100px;

    border-top: 1px solid var(--line);

    display: grid;
    grid-template-columns: 1fr 1fr 100px;
    align-items: center;

    padding: 25px 5vw;

    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.grants-footer span:nth-child(2) {
    text-align: center;
}

.grants-footer span:last-child {
    text-align: right;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .grants-main {
        width: calc(100% - 30px);
    }

    .grants-home {
        left: 18px;
        top: 18px;
    }

    .grants-hero {
        grid-template-columns: 1fr;
        min-height: 90vh;
        padding: 140px 30px 90px;
    }

    .grants-hero h1 {
        font-size: clamp(65px, 17vw, 110px);
    }

    .grants-two-column,
    .grants-agreement-box {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .grants-section {
        padding: 90px 30px;
    }

    .grants-process-grid {
        grid-template-columns: 1fr 1fr;
    }

    .submission-list > div {
        grid-template-columns: 40px 1fr;
    }

    .submission-list p {
        grid-column: 2;
    }

    .grants-final {
        min-height: 65vh;
        padding: 90px 30px;
    }

    .grants-footer {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 25px 30px;
    }

    .grants-footer span:nth-child(2),
    .grants-footer span:last-child {
        text-align: left;
    }
}


@media (max-width: 600px) {

    .grants-hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .grants-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .grants-process-grid {
        grid-template-columns: 1fr;
    }

    .grant-process-card {
        min-height: 230px;
    }

    .grants-agreement-box {
        padding: 30px;
    }

    .grant-project-placeholder {
        grid-template-columns: 70px 1fr;
        padding: 25px;
    }

    .grants-final {
        padding-left: 20px;
        padding-right: 20px;
    }

    .grants-final h2 {
        font-size: 18vw;
    }

    .grants-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}