/* Hero Sequence Section */
.hero-sequence-section {
    position: relative;
    height: 400vh; /* Gives enough scroll room for 300 frames */
    background: #000;
}

.sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    /* Note: Canvas aspect ratio is handled in JS */
    z-index: 1;
}

.hero-overlay-text {
    position: absolute;
    z-index: 2;
    text-align: center;
    color: white;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 20px;
    pointer-events: none;
}

.hero-overlay-text h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.6);
    line-height: 1.1;
}

.hero-overlay-text p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
    .hero-overlay-text h1 {
        font-size: 3rem;
    }
    .hero-overlay-text p {
        font-size: 1.1rem;
    }
}

/* Framer Motion Style Animations */
.reveal-framer {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-framer.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Enhancing default reveal classes to be smoother */
.reveal {
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
