
/* SCROLL VIDEO SEQUENCE */
.scroll-sequence {
    /* Height allows for long scroll to play both videos */
    height: 400vh;
    position: relative;
    padding: 0;
    max-width: 100%;
}

.sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    transition: top 0.4s ease, height 0.4s ease;
}

.sequence-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.sequence-canvas.active {
    opacity: 1;
}

/* Optional overlay to darken videos slightly for text readability */
.sticky-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.sticky-container.dark-overlay::after {
    opacity: 1;
}

.video-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 800px;
    opacity: 0; /* Faded out initially */
    transition: opacity 0.5s ease, left 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-overlay-content.visible {
    opacity: 1;
}

@media (min-width: 769px) {
    .sticky-container.split-layout .sequence-canvas {
        transform: translateX(15%) scale(0.85);
    }
    .sticky-container.split-layout .video-overlay-content {
        left: 8%;
        transform: translateY(-50%);
        text-align: left;
        width: 45%;
    }
    .sticky-container.split-layout .hero-buttons {
        justify-content: flex-start !important;
    }
}

.video-overlay-content .badge {
    margin-bottom: 1.5rem;
}

.video-overlay-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.video-overlay-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* HERO AFTER VIDEO */
.hero-after-video {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}
