:root {
    --bg: #0f0f10;
    --bar: #151515;
    --text: #efece6;
    --muted: rgba(239, 236, 230, 0.72);
    --footer-bg: #e7e3dd;
    --footer-text: #2b292b;
    --card: rgba(15, 15, 16, 0.72);
    --border: rgba(239, 236, 230, 0.22);
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: "Neogroteskess";
    src: url("fonts/Fontspring-DEMO-neogroteskess-ultralight.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Tempting";
    src: url("fonts/Tempting.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "FuturaPT-Demi";
    src: url("fonts/futura-pt/FuturaCyrillicDemi.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "FuturaPT-Bold";
    src: url("fonts/futura-pt/FuturaCyrillicBold.ttf") format("truetype");
    font-display: swap;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Neogroteskess", sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

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

.scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bg-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.65) 60%, rgba(0, 0, 0, 0.8));
}

.bg-video,
.bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}

.bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.bg-three {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
}

.bg-three canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.85;
}

.top-bar {
    position: relative;
    z-index: 2;
    height: 90px;
    background: var(--bar);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2em;
    font-weight: 300;
    font-size: 44px;
    font-family: 'FuturaPT-Demi';
}
.footer-center {
    font-size: 26px !important;
    font-family: 'FuturaPT-Demi';
}
.menu {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 10px 24px 0;
    font-size: 14px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.menu-bar {
    border-top: 1px solid rgba(239, 236, 230, 0.14);
    border-bottom: 1px solid rgba(239, 236, 230, 0.14);
    padding-bottom: 10px;
}

.menu a {
    opacity: 0.78;
    transition: opacity 0.2s ease;
}

.menu a:hover {
    opacity: 1;
}

.menu span {
    opacity: 0.6;
}

.hero {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px 120px;
}

.hero-inner {
    max-width: 920px;
}

.hero-title {
    font-size: clamp(28px, 3.2vw, 36x);
    font-weight: 300;
    line-height: 1.35;
    margin: 0 0 18px;
    letter-spacing: 0.01em;
    font-family: 'Tempting';
}

.hero-subtitle {
    margin: 0;
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--muted);
    font-weight: 300;
    letter-spacing: 0.02em;
    font-family: "Neogroteskess";
}

.section {
    position: relative;
    z-index: 2;
    padding: 24px 24px 120px;
    display: flex;
    justify-content: center;
}

.participation-grid {
    width: min(1280px, 92vw);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 24px;
    align-content: start;
}

.page-title {
    font-size: clamp(44px, 7vw, 84px);
    letter-spacing: 0.12em;
    font-weight: 300;
    margin: 0 0 18px;
    font-family: "FuturaPT-Bold";
}

.page-intro {
    max-width: 420px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.ways {
    justify-self: end;
    text-align: right;
    max-width: 360px;
    padding-top: 40px;
}

.ways h3 {
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 300;
    margin: 0 0 16px;
    font-family: 'Tempting';
}

.ways p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.prompt-title {
    margin: 64px 0 18px;
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 300;
    line-height: 1.2;
    font-family: 'Tempting';
}

.form-underline {
    margin-top: 18px;
    display: grid;
    gap: 18px;
    max-width: 520px;
}

.field-line label {
    display: block;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
    color: var(--muted);
}

.field-line input,
.field-line textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(239, 236, 230, 0.24);
    padding: 6px 2px 10px;
    background: transparent;
    color: var(--text);
    font-family: "Neogroteskess", sans-serif;
    font-size: 14px;
    outline: none;
}

.field-line textarea {
    min-height: 72px;
    resize: vertical;
}

.submit-pill {
    margin-top: 6px;
    justify-self: start;
    padding: 11px 32px;
    color: var(--text);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    background: url(assets/button_bg.png) black;
    background-size: cover;
    border: none;
}

.side-quote {
    margin-top: 80px;
    text-align: right;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.right-bottom {
    align-self: end;
}

.left-bottom {
    align-self: start;
}

.form-card {
    width: min(680px, 92vw);
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    backdrop-filter: blur(6px);
}

.form-card h1 {
    margin: 0 0 12px;
    font-weight: 300;
    font-size: 32px;
    letter-spacing: 0.02em;
}

.form-card p {
    margin: 0 0 24px;
    color: var(--muted);
}

.form-grid {
    display: grid;
    gap: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--muted);
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(15, 15, 16, 0.7);
    color: var(--text);
    font-family: "Neogroteskess", sans-serif;
    font-size: 16px;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    margin-top: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.submit-btn:hover {
    background: var(--text);
    color: var(--bg);
}

.status {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}

.footer {
    position: relative;
    z-index: 3;
    background: var(--footer-bg);
    color: var(--footer-text);
    height: 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
}

.footer-left {
    font-size: 16px;
    letter-spacing: 0.02em;
    justify-self: start;
}

.footer-center {
    font-size: 16px;
    letter-spacing: 0.25em;
    font-weight: 500;
    justify-self: center;
}

.footer-right {
    display: flex;
    gap: 16px;
    justify-self: end;
}

.icon {
    width: 20px;
    height: 20px;
    fill: var(--footer-text);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.icon:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .top-bar {
        height: 68px;
        font-size: 20px;
    }

    .menu {
        padding-top: 12px;
        letter-spacing: 0.16em;
    }

    .hero,
    .section {
        padding: 32px 20px 40px;
    }

    .participation-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ways,
    .side-quote {
        text-align: left;
        justify-self: start;
    }

    .ways {
        padding-top: 0;
    }

    .prompt-title {
        margin-top: 32px;
    }

    .footer {
        height: auto;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px 20px;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-self: center;
    }
}
