/**Layer 132: Multimedia Storytelling*/

.immersive-wrapper {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    width: 100%;
    overflow-x: hidden;
    background: #fff;
}

/* Hero Section */
.immersive-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller for parallax room */
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    /* Backdrop filter fallback */
    backdrop-filter: blur(4px);
    border-radius: 12px;
    margin: 0 1rem;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.story-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.story-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.scroll-hint {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
    animation: bounce 2s infinite;
    display: block;
}

/* Chapters */
.story-chapter {
    position: relative;
    padding: 6rem 1rem;
    max-width: 100%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
}

.story-chapter.in-view {
    opacity: 1;
    transform: translateY(0);
}

.text-chapter {
    max-width: 700px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.text-chapter h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Full Width Media */
.full-media-chapter {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.floating-caption {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 80%;
}

/* Split Layout */
.split-chapter {
    display: flex;
    max-width: 1200px;
    margin: 4rem auto;
    gap: 4rem;
}

.split-media {
    flex: 1;
}

.split-media img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.split-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.sticky-side {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.story-quote {
    font-size: 2rem;
    font-style: italic;
    color: #3b82f6;
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 4rem 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .story-title {
        font-size: 2rem;
    }

    .split-chapter {
        flex-direction: column;
    }

    .sticky-side {
        position: relative;
    }

    .full-media-chapter {
        height: 50vh;
    }
}