/* ── 3D scroll hero ──────────────────────────────────────────────────────── */

#bg3d {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 28%, #1b2c44 0%, #0e1a2b 55%, #0a1320 100%);
}

/* Tall scroll track - its scroll length drives the packing animation */
.exp {
    position: relative;
    height: 340vh;
    z-index: 1;
}
.exp-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.exp-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 0 24px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.exp-content .hero-cta { pointer-events: auto; }

.exp-tag {
    display: inline-block;
    background: rgba(201,153,58,0.18);
    border: 1px solid rgba(201,153,58,0.5);
    color: var(--gold-lt);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 22px;
}
.exp-title {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    line-height: 1.12;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    text-shadow: 0 4px 30px rgba(0,0,0,0.45);
    margin-bottom: 18px;
}
.exp-title .accent { color: var(--gold-lt); }
.exp-sub {
    color: rgba(255,255,255,0.82);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    max-width: 540px;
    margin: 0 auto 30px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* Scroll cue that stays until the case is packed */
.exp-cue {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.exp-cue .cue-mouse {
    width: 22px; height: 34px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    position: relative;
}
.exp-cue .cue-mouse::after {
    content: '';
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 7px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    animation: cueBob 1.6s infinite;
}
@keyframes cueBob { 0%{top:5px;opacity:1;} 100%{top:17px;opacity:0;} }

/* "Choose your package" prompt revealed when packed */
.exp-finish {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
.exp-finish.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.exp-finish .hero-cta { animation: none; }

/* Everything after the hero scrolls up over the fixed canvas */
.page-flow {
    position: relative;
    z-index: 1;
    background: var(--paper);
}

/* Fallback when WebGL/Three unavailable */
body.no3d #bg3d {
    background: linear-gradient(165deg, rgba(10,18,30,0.82), rgba(20,40,70,0.7)),
                url('https://images.unsplash.com/photo-1488085061387-422e29b40080?w=1600&q=80&auto=format&fit=crop') center/cover;
}
body.no3d .exp { height: 100vh; }
body.no3d .exp-cue { display: none; }

@media (max-width: 700px) {
    .exp { height: 260vh; }
}
@media (prefers-reduced-motion: reduce) {
    .exp { height: 100vh; }
}
