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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #000;
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 520px;
    padding: 0 24px;
    will-change: transform, opacity;
}

.hero-tagline {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: clamp(0.85rem, 1.4vw, 1.1rem);
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: #fff;
    opacity: 0.85;
}

/* GIANT TITLE — sits between hero and spacer */
.hero-title-wrapper {
    position: relative;
    width: 100%;
    z-index: 3;
    text-align: center;
    margin-top: -0.5em;
    font-size: 19vw;
    line-height: 1;
    will-change: transform;
    pointer-events: none;
}

.hero-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1em;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    white-space: nowrap;
    user-select: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}

/* ABOUT / PROJECT INTRO */
.about {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4vh;
    background-color: #000;
    overflow: hidden;
    z-index: 1;
}

.about-inner {
    width: 100%;
    max-width: 1100px;
    padding: 0 48px;
    text-align: center;
    will-change: transform;
}

.about-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

/* ABOUT TEXT — third page */
.about-text {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4vh;
    background-color: #000;
    overflow: hidden;
    z-index: 1;
}

.about-text-inner {
    width: 100%;
    max-width: 1100px;
    padding: 0 48px;
    will-change: transform;
}

.about-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    will-change: transform;
}

.about-paragraph {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    letter-spacing: 0.02em;
    color: #fff;
    opacity: 0.85;
}

/* JOIN / FORM — fourth page */
.join {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    overflow: hidden;
    z-index: 1;
}

.join-inner {
    width: 100%;
    max-width: 640px;
    padding: 0 48px;
    will-change: transform;
}

.join-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 3rem;
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.6rem;
}

.form-field .req {
    color: #fff;
}

.form-field .opt {
    color: rgba(255, 255, 255, 0.35);
    text-transform: none;
    letter-spacing: 0.02em;
}

.form-field input {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: 1rem;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 0;
    transition: border-color 0.25s ease;
}

.form-field input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-field input:focus {
    outline: none;
    border-bottom-color: #fff;
}

.form-field input:user-invalid {
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

.join-submit {
    align-self: flex-start;
    margin-top: 1rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
    background: #fff;
    border: 1px solid #fff;
    padding: 0.9rem 2.5rem;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.join-submit:hover {
    background: transparent;
    color: #fff;
}

.join-submit:disabled {
    cursor: default;
    opacity: 0.6;
}

.join-status {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    min-height: 1.2em;
    color: rgba(255, 255, 255, 0.6);
}

.join-status.success {
    color: #fff;
}

.join-status.error {
    color: rgba(255, 255, 255, 0.9);
}

/* BLANK — empty full page between form and footer */
.blank {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 1;
}

/* FOOTER — fifth page, inverted colors */
.footer {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    color: #000;
    overflow: hidden;
    z-index: 1;
}

.footer-top {
    padding: 48px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: #000;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-title-wrapper {
    width: 100%;
    text-align: center;
    line-height: 1;
    pointer-events: none;
    margin-top: auto;
}

.footer-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1em;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #000;
    white-space: nowrap;
    user-select: none;
    display: inline-block;
}

.footer-bottom {
    padding: 24px 48px 48px;
    text-align: center;
}

.footer-copy {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #000;
    opacity: 0.6;
}

.footer-copy a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.footer-copy a:hover {
    opacity: 0.6;
}

/* SKIP LINK — visually hidden until focused (no visual change for mouse users) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background: #fff;
    color: #000;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
    text-decoration: none;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    outline: 2px solid #000;
}

/* FOOTER DISCLAIMER — small YMYL "not financial advice" notice */
.footer-disclaimer {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: 0.72rem;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: #000;
    opacity: 0.45;
    margin-bottom: 0.75rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* PARALLAX — scroll-driven animations (GPU-composited; smooth on mobile).
   JS sets --parallax-distance per element; the compositor interpolates,
   so there is no scroll-event lag / "sliding" on touch devices.
   Falls back to JS-driven parallax on browsers without scroll timelines. */
@keyframes parallax-drift {
    to { transform: translate3d(0, var(--parallax-distance, 0px), 0); }
}

@keyframes hero-fade {
    to { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: scroll()) {
        [data-parallax] {
            animation: parallax-drift linear both;
            animation-timeline: scroll(root block);
            animation-range: 0 100%;
        }

        /* hero text drifts AND fades out over the first half-screen */
        .hero-content {
            animation: parallax-drift linear both, hero-fade linear both;
            animation-timeline: scroll(root block), scroll(root block);
            animation-range: 0 100%, 0 50vh;
        }
    }
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 340px;
    }

    .join-inner {
        padding: 0 24px;
    }

    .footer-top {
        padding: 24px;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .footer-bottom {
        padding: 16px 24px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-inner,
    .about-text-inner {
        padding: 0 24px;
    }

    .about-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        max-width: 280px;
    }
}