/* ============================================
   ENVELOPE VIDEO + INVITATION REVEAL
   ============================================ */

/* Video scene — full viewport */
.envelope-video-scene {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.2s ease;
}

.envelope-video-scene.fade-out {
    opacity: 0;
    pointer-events: none;
}

.envelope-video-scene.hidden {
    display: none;
}

/* Video element — fill the screen, maintain aspect ratio */
.envelope-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 53% center;
    display: block;
}


/* Clickable overlay (invisible, sits on top of video) */
.envelope-click-overlay {
    position: absolute;
    inset: 0;
    z-index: 51;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: max(30px, 6vh);
}

.envelope-click-overlay.hidden {
    display: none;
    pointer-events: none;
}

/* Tap hint — gold pill on dark background */
.envelope-tap-hint {
    background: rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 30px;
    padding: 0.6rem 2rem;
    animation: hintGlow 3s ease-in-out infinite;
}

.envelope-click-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: rgba(232, 213, 163, 0.9);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

@keyframes hintGlow {

    0%,
    100% {
        border-color: rgba(212, 175, 55, 0.2);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.05);
    }

    50% {
        border-color: rgba(212, 175, 55, 0.5);
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.12);
    }
}


/* ============================================
   INVITATION REVEAL (after video)
   ============================================ */

.invitation-reveal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
    pointer-events: none;
}

.invitation-reveal.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Standalone invitation card (on starry background) */
.invitation-card-standalone {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 3.5rem 3rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(212, 175, 55, 0.05);
}

/* Gold corner marks */
.invitation-card-standalone::before,
.invitation-card-standalone::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.invitation-card-standalone::before {
    top: 16px;
    left: 16px;
    border-right: none;
    border-bottom: none;
}

.invitation-card-standalone::after {
    bottom: 16px;
    right: 16px;
    border-left: none;
    border-top: none;
}

/* Inner border */
.invitation-card-standalone .invitation-inner-border {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: 8px;
    pointer-events: none;
}

.invitation-card-standalone .invite-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.6rem, 1.5vw, 0.75rem);
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.65);
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.invitation-card-standalone .invite-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--gold-light, #e8d5a3);
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.15;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.12);
}

.invitation-card-standalone .invite-ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    color: var(--gold, #d4af37);
    margin: 0.2rem 0;
}

.invitation-card-standalone .invite-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    color: rgba(240, 236, 226, 0.7);
    font-style: italic;
    margin: 1rem 0 0.3rem;
}

.invitation-card-standalone .invite-venue {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.55rem, 1.5vw, 0.7rem);
    color: rgba(168, 160, 192, 0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.invitation-card-standalone .invite-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold, #d4af37), transparent);
    margin: 0.6rem auto;
    opacity: 0.4;
}

.invitation-card-standalone .invite-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(197, 191, 176, 0.75);
    margin: 0.8rem 0 1.5rem;
    line-height: 1.7;
}

.invitation-card-standalone .invite-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.invitation-card-standalone .invite-actions .btn {
    font-size: 0.7rem;
    padding: 0.7rem 1.8rem;
    letter-spacing: 2px;
}

.invitation-card-standalone .invite-actions .btn-secondary {
    border-color: var(--gold, #d4af37);
    color: var(--gold, #d4af37);
}

.invitation-card-standalone .invite-actions .btn-secondary:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-light, #e8d5a3);
}


/* ============================================
   LANDING SECTIONS (revealed after invitation)
   ============================================ */

.landing-sections {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.landing-sections.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 500px) {
    .invitation-card-standalone {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem;
    }

    .invitation-card-standalone .invite-actions {
        flex-direction: column;
        align-items: center;
    }

    .invitation-card-standalone .invite-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}