/* Intro Overlay Styles */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
    overflow: hidden;
}

.envelope-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.intro-labels {
    position: absolute;
    top: 15%;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    z-index: 10;
}

.intro-label-top {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    color: var(--color-gold);
}

.intro-label-names {
    font-size: 2.5rem;
    color: var(--color-navy);
    margin-top: 5px;
}

/* Fullscreen Envelope Structure */
.envelope-wrapper {
    position: relative;
    width: 90vw;
    height: 60vh;
    max-width: 800px;
    max-height: 500px;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.12));
    opacity: 0;
    transform: scale(0.95);
    z-index: 5;
}

.envelope {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fcfcfc;
    border-radius: 4px;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Envelope Flap */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #f9f9f9;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 4;
    transform-origin: top;
    border-top: 1px solid rgba(0,0,0,0.02);
}

/* Envelope Body Sides */
.envelope-body {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fcfcfc;
    z-index: 3;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 50% 50%);
    background: linear-gradient(135deg, #fcfcfc 0%, #f1f1f1 100%);
}

.envelope::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(45deg, #fcfcfc 0%, #f8f8f8 100%);
    clip-path: polygon(0 100%, 100% 100%, 50% 45%);
    z-index: 3;
}

/* Wax Seal */
.wax-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #a31d1d;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.seal-inner {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: bold;
}

.skip-intro {
    position: absolute;
    bottom: 10%;
    background: none;
    border: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    cursor: pointer;
    opacity: 0;
    z-index: 10;
}

/* State: Open */
.envelope.is-open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}

.envelope.is-open .wax-seal {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1.5);
}

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--color-gold-light);
    border-radius: 50%;
    opacity: 0.25;
}
