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

html,
body {
    width: 100%;
    background: #000;
    overscroll-behavior: none;
}

body {
    color: #fff;
    font-family: "Space Mono", ui-monospace, monospace;
}

/* Fixed full-viewport canvas; the page scrolls behind it via .scroll-track */
#sequence {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    background: #000;
    z-index: 1;
}

/* Tall invisible element that creates the scroll distance driving the animation.
   Height is set in JS (var --track-h) so frame pacing stays consistent. */
.scroll-track {
    position: relative;
    width: 100%;
    height: var(--track-h, 600vh);
    z-index: 0;
    pointer-events: none;
}

/* Loading overlay */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.4vh;
    background: #000;
    transition: opacity 0.6s ease;
}

.loader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.loader__bar {
    width: 36vw;
    max-width: 320px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.loader__fill {
    display: block;
    width: 0%;
    height: 100%;
    background: #fff;
    transition: width 0.2s ease;
}

.loader__text {
    font-size: 12px;
    letter-spacing: 0.25em;
    opacity: 0.7;
}

html.snap-on {
    scroll-snap-type: none;
}

.content {
    position: relative;
    z-index: 2;
}
