/* Scrollytelling Section Scoped CSS */
.hero-scroll-container {
    height: 800vh;
    position: relative;
    background-color: #000;
}

.sticky-canvas-wrapper {
    width: 100%;
    height: 100dvh; /* Dynamic viewport height perfectly resolves mobile Safari URL-bar jumping */
    overflow: hidden;
    background-color: #000;
}

.sticky-canvas-wrapper canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text Overlays */
.scroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    padding: 2rem;
    z-index: 5;
}

.scroll-overlay.active {
    opacity: 1;
}

.overlay-content {
    max-width: 500px;
}

.overlay-content h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-weight: 400;
}

.overlay-content p {
    font-size: 1.2rem;
    color: #fff;
    font-family: 'Manrope', sans-serif;
}

/* Positions */
.position-bottom-left {
    align-self: flex-end;
    margin-bottom: 10vh;
    margin-left: 5vw;
}

.position-bottom-right {
    align-self: flex-end;
    margin-bottom: 10vh;
    margin-left: auto;
    margin-right: 5vw;
    text-align: right;
}

.position-middle-left {
    align-self: center;
    margin-left: 5vw;
}

.position-middle-right {
    align-self: center;
    margin-left: auto;
    margin-right: 5vw;
    text-align: right;
}

.position-center {
    margin: auto;
    text-align: center;
    z-index: 10;
    pointer-events: auto;
}

.btn-outline {
    pointer-events: auto !important;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.title-lg {
    font-size: clamp(2.2rem, 8vw, 6rem); /* Deeply lowered the minimum bounds so mobile screens gracefully shrink */
    line-height: 1.1;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif !important;
    color: white !important;
}

@media (max-width: 768px) {
    .overlay-content {
        position: absolute;
        bottom: 8vh !important; /* Pushed slightly downward for better eye alignment on narrow screens */
        left: 50% !important;
        transform: translateX(-50%);
        width: 90%;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }
    
    .overlay-content h2 {
        font-size: 2.2rem !important; /* Forces smaller stage headings */
    }

    .overlay-content p {
        font-size: 1rem !important; /* Reduces subtext scale */
    }

    .position-center {
        bottom: 50% !important;
        transform: translate(-50%, 50%) !important;
        width: 95%;
    }
    
    /* Assure the button is tap-friendly */
    .btn-outline {
        display: inline-block;
        margin-top: 15px; 
    }
}
