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

html {
    scroll-behavior: smooth;
}

body {
    background: #050508;
    color: #666;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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


/* ── Nav ── */

.nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.nav a {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s;
}

.nav a:hover {
    color: rgba(255, 255, 255, 0.8);
}


/* ── Stars canvas ── */

#stars {
    position: fixed;
    inset: 0;
    z-index: 0;
}


/* ── Atmosphere overlay ── */

.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 15, 30, 0.3) 0%,
        rgba(15, 30, 55, 0.6) 30%,
        rgba(25, 50, 80, 0.8) 60%,
        rgba(45, 70, 100, 0.9) 80%,
        rgba(80, 100, 120, 0.95) 100%
    );
}


/* ── Hero (fixed, parallaxes up) ── */

.hero-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100svh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    pointer-events: none;
}

.hero-fixed a { pointer-events: auto; }

h1 {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 1.8rem;
    will-change: transform, opacity;
    transition: none;
}

.pitch {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: #888;
    line-height: 1.75;
    font-weight: 300;
    max-width: 480px;
    will-change: transform, opacity;
    transition: none;
}


/* ── Timeline ── */

.timeline {
    position: relative;
    z-index: 3;
    padding: 120vh 2rem 20vh 7rem;
    max-width: 650px;
    margin: 0 auto;
    overflow: visible;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 115vh;
    bottom: 35vh;
    left: 6rem;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
}

.tl-item {
    text-align: left;
    max-width: 480px;
    padding: 3rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.tl-item.vis {
    opacity: 1;
    transform: none;
}

.tl-year {
    display: block;
    font-family: 'Michroma', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.8rem;
}

.tl-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-weight: 300;
}

.tl-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
    pointer-events: auto;
}

.tl-item a:hover {
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

.tl-item {
    position: relative;
}

.tl-img {
    position: absolute;
    left: calc(100% + 2rem);
    top: 3rem;
    width: 240px;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.tl-img:hover {
    opacity: 1;
}


/* ── Ground content (at end of scroll) ── */

.ground {
    position: relative;
    z-index: 3;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ground-content {
    text-align: center;
    padding: 2rem;
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 4rem;
}

.ground-content.vis {
    opacity: 1;
    transform: none;
}


/* ── Contact ── */


.bottom {
    margin-bottom: 1.5rem;
}

.email {
    display: inline-block;
    font-size: 1.2rem;
    color: #fff;
    border-bottom: 1px solid #666;
    padding-bottom: 1px;
    margin-bottom: 1rem;
    transition: color 0.2s, border-color 0.2s;
}

.email:hover {
    color: #fff;
    border-color: #fff;
}

.links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.links a {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    transition: opacity 0.2s;
}

.links a:hover { opacity: 0.6; }


/* ── Bottom credentials ── */

.bottom {
    margin: 0 auto 1.5rem;
}

.record {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 0.3rem;
}

@media (min-width: 900px) {
    .record { white-space: nowrap; }
}

.label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    font-size: 0.58rem;
    margin-right: 0.3rem;
}


/* ── Footer ── */

footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}


/* ── Responsive ── */

@media (max-width: 600px) {
    .timeline { padding: 100vh 0 30vh; padding-left: 2.5rem; }
    .tl-item { padding: 2.5rem 1.5rem; }
    .timeline::before { left: 1.5rem; top: 95vh; bottom: 25vh; }
    .links { gap: 1rem; }
    .record { font-size: 0.6rem; }
}
