/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: auto;
    /* No smooth scroll - we want direct control */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f2f2f2;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e0e0e0;
    border-top-color: #0a0a0a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.loading-progress {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0a0a0a;
}

/* Scroll Container - This controls animation length */
.scroll-container {
    height: 350vh;
    /* Adjust for animation feel: 300vh = faster, 400vh = slower */
    position: relative;
}

/* Sticky Hero */
.hero-sticky {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #f2f2f2;
    /* Match your frame background */
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 3rem;
}

.scroll-hint {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(10, 10, 10, 0.5);
    opacity: 1;
    transition: opacity 0.5s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Content Section - Appears after hero */
.content-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background-color: #f2f2f2;
}

.content-wrapper {
    max-width: 600px;
    text-align: center;
}

.content-wrapper h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0a0a0a;
    margin-bottom: 1.5rem;
}

.content-wrapper p {
    font-size: 1.125rem;
    color: #4a4a4a;
    line-height: 1.8;
}

.content-divider {
    width: 60px;
    height: 2px;
    background-color: #0a0a0a;
    margin: 2.5rem auto;
}

.content-subtle {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-container {
        height: 300vh;
        /* Slightly faster on mobile */
    }

    .hero-overlay {
        padding-bottom: 2rem;
    }

    .scroll-hint {
        font-size: 0.625rem;
    }

    .content-section {
        padding: 3rem 1.5rem;
    }

    .content-wrapper h2 {
        font-size: 1.75rem;
    }

    .content-wrapper p {
        font-size: 1rem;
    }
}