* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #d4af37;
    --dark-gold: #b8941f;
    --rose-gold: #b76e79;
    --cream: #f5f5f0;
    --dark: #1a1a1a;
    --charcoal: #2a2a2a;
}

html {
    height: 100%;
    background: #1a1a1a;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: none;
    color: var(--cream);
    overflow-x: hidden;
    overflow-y: hidden;
    min-height: 100%;
}

body.enable-scroll {
    overflow-y: auto;
}

/* Background — locked via clip, not position:fixed */
#bg-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

#bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

#bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

/* Vintage Paper Container */
.vintage-paper {
    background: 
        linear-gradient(135deg, rgba(255, 248, 230, 0.95) 0%, rgba(250, 240, 220, 0.95) 100%);
    border: none;
    border-radius: 0;
    padding: 50px 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(139, 115, 85, 0.2);
    position: relative;

    clip-path: polygon(
        2% 0%, 5% 1%, 8% 0.5%, 12% 1.5%, 15% 0.8%, 20% 1.2%, 25% 0.5%, 30% 1%, 35% 0.3%, 40% 1.5%, 45% 0.7%, 50% 1%, 55% 0.5%, 60% 1.2%, 65% 0.8%, 70% 1.5%, 75% 0.5%, 80% 1%, 85% 0.7%, 90% 1.3%, 95% 0.5%, 98% 1%,
        99% 5%, 99.5% 10%, 99.2% 15%, 99.8% 20%, 99.3% 25%, 99.7% 30%, 99.1% 35%, 99.6% 40%, 99.4% 45%, 99.8% 50%, 99.2% 55%, 99.6% 60%, 99.3% 65%, 99.7% 70%, 99.4% 75%, 99.8% 80%, 99.1% 85%, 99.5% 90%, 99.3% 95%, 99.7% 98%,
        98% 99%, 95% 99.5%, 90% 99.2%, 85% 99.7%, 80% 99.3%, 75% 99.8%, 70% 99.1%, 65% 99.6%, 60% 99.4%, 55% 99.8%, 50% 99.2%, 45% 99.6%, 40% 99.3%, 35% 99.7%, 30% 99.4%, 25% 99.8%, 20% 99.1%, 15% 99.5%, 10% 99.3%, 5% 99.7%, 2% 99%,
        1% 95%, 0.5% 90%, 0.8% 85%, 0.3% 80%, 0.7% 75%, 0.2% 70%, 0.6% 65%, 0.4% 60%, 0.8% 55%, 0.2% 50%, 0.6% 45%, 0.3% 40%, 0.7% 35%, 0.4% 30%, 0.8% 25%, 0.1% 20%, 0.5% 15%, 0.3% 10%, 0.7% 5%
    );
}

.vintage-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 115, 85, 0.03) 2px, rgba(139, 115, 85, 0.03) 4px);
    pointer-events: none;
}

.vintage-paper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: 
        inset 0 0 30px 10px rgba(101, 67, 33, 0.4),
        inset 0 0 15px 5px rgba(139, 69, 19, 0.3);
    pointer-events: none;
}

.paper-content {
    position: relative;
    z-index: 1;
}

.hero-ornament {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b4513, transparent);
    margin: 20px auto;
}

.monogram {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--dark-gold);
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 30px;
    margin-top: 20px;
}

.name-line {
    display: block;
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ampersand {
    display: block;
    font-size: 2rem;
    color: #8b4513;
    margin: 8px 0;
}

.hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5a4a3a;
    margin-bottom: 10px;
}

.hero-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #8b4513;
    max-width: 600px;
    margin: 0 auto;
    min-height: 1.6em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    font-size: 2rem;
    color: var(--gold);
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Container */
.container-luxury {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    color: #8b4513;
    margin-bottom: 30px;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b4513, transparent);
}

/* Countdown Section */
.countdown-luxury {
    padding: 100px 20px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    align-items: stretch;
}

.countdown-item {
    background: linear-gradient(160deg,
        rgba(255, 250, 235, 0.95) 0%,
        rgba(245, 235, 210, 0.95) 100%
    );
    border: 1.5px solid rgba(139, 69, 19, 0.3);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--rose-gold), var(--gold));
    border-radius: 12px 12px 0 0;
    opacity: 0.6;
}

.countdown-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--rose-gold), var(--gold));
    border-radius: 0 0 12px 12px;
    opacity: 0.6;
}

.countdown-item:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 2px 6px rgba(139, 69, 19, 0.15);
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #654321;
    line-height: 1;
    margin-bottom: 6px;
}

.countdown-label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8b4513;
    font-weight: 600;
    opacity: 0.8;
}

.countdown-divider {
    display: none;
}

/* Events Section */
.events-luxury {
    padding: 100px 20px;
}

.events-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.event-item {
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: center;
}

.event-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--rose-gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.event-item:hover::before {
    transform: scaleX(1);
}

.event-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
}

.event-item.highlight {
    border-color: var(--rose-gold);
}

.event-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #8b4513;
    margin-bottom: 15px;
}

.event-date {
    font-size: 1.2rem;
    color: #5a4a3a;
    margin-bottom: 8px;
}

.event-time {
    font-size: 1rem;
    color: #5a4a3a;
}

/* Venue Section */
.venue-luxury {
    padding: 100px 20px;
}

.venue-card {
    max-width: 700px;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
}

.venue-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.venue-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #8b4513;
    margin-bottom: 10px;
    margin-top: -10px;
}

.venue-location {
    font-size: 1.3rem;
    color: #5a4a3a;
    margin-bottom: 20px;
    opacity: 0.8;
}

.venue-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(139, 115, 85, 0.3);
}

.detail-icon {
    font-size: 2.5rem;
}

.detail-info {
    text-align: left;
}

.detail-info p {
    font-size: 1rem;
    color: #5a4a3a;
    margin-bottom: 5px;
}

.detail-sub {
    font-size: 0.85rem;
    color: #5a4a3a;
}

.weather-temp {
    font-size: 1.2rem;
    font-weight: 600;
    color: #8b4513;
}

.weather-desc {
    font-size: 0.9rem;
    color: #5a4a3a;
}

.luxury-btn {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.luxury-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--dark-gold), var(--gold));
}

/* Footer */
.luxury-footer {
    padding: 80px 20px 40px;
    text-align: center;
    position: relative;
}

.footer-ornament {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 30px;
}

.luxury-footer p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 20px;
}

.footer-hearts {
    font-size: 1.5rem;
    color: var(--rose-gold);
    letter-spacing: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .monogram {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 2.2rem;
    }

    .countdown-grid {
        max-width: 340px;
        gap: 10px;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .events-timeline {
        grid-template-columns: 1fr;
    }

    .venue-card {
        padding: 5px 25px;
    }

    .venue-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .countdown-grid {
        max-width: 300px;
        gap: 8px;
    }

    .countdown-item {
        padding: 15px 8px;
    }

    .countdown-number {
        font-size: 1.7rem;
    }

    .countdown-label {
        font-size: 0.5rem;
    }

    .vintage-paper {
        padding: 30px 20px;
    }
}



/* Sections hidden until JS shows them */
.hero, .countdown-luxury, .events-luxury, .venue-luxury, .families-section, .things-to-know, .luxury-footer {
    opacity: 0;
}

.content-visible {
    opacity: 1 !important;
    transition: opacity 1s ease !important;
}

/* Paper emerge */
.vintage-paper {
    opacity: 0;
    transform: scale(0.95);
}

.vintage-paper.emerged {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease, transform 1s ease;
}

/* Hero hidden/bloom */
.hero-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.hero-bloom {
    animation: hero-card-bloom 1.4s ease forwards !important;
}

@keyframes hero-card-bloom {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

/* Curtain opening via CSS transition */
.curtain-overlay.opening .curtain-left  { transform: translateX(-100%); }
.curtain-overlay.opening .curtain-right { transform: translateX(100%); }
.curtain-overlay.opening .curtain-rod   { opacity: 0; transform: translateY(-50px); }
.curtain-overlay.opening .curtain-valance { opacity: 0; transform: translateY(-60px); }

/* Scroll reveals */
.reveal {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal-up { transform: translateY(60px); }
.reveal-scale { transform: scale(0.85); }
.reveal.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Heart CSS animations */
.curtain-heart.heart-active {
    animation: heart-grand-arrive 1.4s cubic-bezier(0.22, 1.4, 0.36, 1) 0.3s forwards;
}

@keyframes heart-grand-arrive {
    0%   { transform: translate(-50%, calc(-50% + 80px)) scale(0.3); opacity: 0; }
    50%  { transform: translate(-50%, calc(-50% - 20px)) scale(1.12); opacity: 1; }
    75%  { transform: translate(-50%, calc(-50% + 8px))  scale(0.97); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.curtain-heart.heart-depart {
    animation: heart-grand-depart 0.9s cubic-bezier(0.4, 0, 0.6, 1) forwards !important;
}

@keyframes heart-grand-depart {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    30%  { transform: translate(-50%, calc(-50% - 30px)) scale(1.08); opacity: 1; }
    100% { transform: translate(-50%, calc(-50% - 220px)) scale(0.15); opacity: 0; }
}

/* Wing flap CSS animations */
.wing-left {
    animation: flap-left 1.8s ease-in-out infinite;
}
.wing-right {
    animation: flap-right 1.8s ease-in-out infinite;
}
.heart-body {
    animation: heart-bob 2.4s ease-in-out infinite;
}

@keyframes flap-left {
    0%, 100% { transform: scaleY(1) rotate(0deg); }
    40%, 60% { transform: scaleY(0.65) rotate(-4deg); }
}
@keyframes flap-right {
    0%, 100% { transform: scaleY(1) rotate(0deg); }
    40%, 60% { transform: scaleY(0.65) rotate(4deg); }
}
@keyframes heart-bob {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

/* ══ FAMILIES SECTION ══ */
.families-section {
    padding: 80px 20px;
}

.section-label {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 600;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 400;
    text-align: center;
    color: #654321;
    margin-bottom: 16px;
}

.blessings-verse {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    color: #8b7355;
    margin-bottom: 40px;
    line-height: 1.6;
}

.families-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 700px) {
    .families-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.family-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    position: relative;
}

.family-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--rose-gold));
    border-radius: 16px 16px 0 0;
}

.family-card-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 6px;
}

.family-card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #654321;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

.family-row {
    margin-bottom: 14px;
}

.family-row:last-child {
    margin-bottom: 0;
}

.family-row-role {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rose-gold);
    font-weight: 700;
    margin-bottom: 4px;
}

.family-row-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: #5a4a3a;
    line-height: 1.5;
}

.families-and {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
}

/* ══ THINGS TO KNOW SECTION ══ */
.things-to-know {
    padding: 100px 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 860px;
    margin: 0 auto;
}

.info-grid .event-content p,
.info-grid .event-content .info-tagline,
.info-grid .event-content .info-joke,
.info-grid .event-content .event-date,
.info-grid .event-content .event-time {
    font-size: 1rem;
    color: #5a4a3a;
    margin-bottom: 8px;
    font-style: normal;
    line-height: 1.6;
}

.info-grid .event-content .info-joke {
    font-style: italic;
    color: #8b7355;
}

.secret-code {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--rose-gold);
    background: rgba(183, 110, 121, 0.08);
    padding: 10px 14px;
    border-radius: 8px;
    display: block;
    margin: 10px 0;
    text-align: center;
    border: 1px dashed rgba(183, 110, 121, 0.3);
}

.survival-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
}

.survival-tip {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #5a4a3a;
    white-space: nowrap;
}

.info-final {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    text-align: center;
    color: #654321;
    margin-top: 12px;
    line-height: 1.5;
}

/* Gold Particles Canvas */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.petals-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Scroll reveals handled by IntersectionObserver */

/* Countdown — GSAP handles flip, hide .flip-next */
.flip-next { display: none; }

/* Typewriter cursor */
.hero-quote .typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #8b4513;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursor-blink 0.7s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Glowing border pulse on highlight event */
.event-item.highlight {
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(212, 175, 55, 0);
        border-color: var(--rose-gold);
    }
    50% {
        box-shadow: 0 4px 30px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.15);
        border-color: var(--gold);
    }
}

/* 3D tilt on countdown items */
.countdown-item {
    transform-style: preserve-3d;
    transition: all 0.3s ease, transform 0.15s ease;
}



/* Ampersand heartbeat */
.ampersand {
    display: block;
    font-size: 2rem;
    color: #8b4513;
    margin: 8px 0;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}


/* Shimmer on section headings */
.section-heading {
    background: linear-gradient(90deg, #8b4513 0%, #d4af37 50%, #8b4513 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ══ CINEMATIC CURTAIN REVEAL ══ */
.curtain-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: hidden;
    pointer-events: all;
    background: transparent;
}

.curtain-overlay.opening { pointer-events: none; }

/* ── Panels ── */
/* Curtain panel transitions */
.curtain-left,
.curtain-right {
    position: absolute;
    top: -2%;
    width: 52%;
    height: 106%;
    overflow: hidden;
    transition: transform 2.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.curtain-rod {
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.curtain-valance {
    transition: opacity 1.4s ease, transform 1.4s ease;
}

.curtain-left  { left: 0;  transform-origin: left center; }
.curtain-right { right: 0; transform-origin: right center; }

/* ── Deep velvet base ── */
.curtain-fabric {
    position: absolute;
    inset: 0;
    background:
        /* velvet sheen: bright highlight down the leading edge */
        linear-gradient(90deg,
            rgba(255,200,220,0.07) 0%,
            rgba(255,200,220,0.13) 4%,
            transparent 18%,
            transparent 82%,
            rgba(0,0,0,0.25) 100%
        ),
        /* rich velvet colour — deep burgundy-rose */
        linear-gradient(175deg,
            #7a2d3e 0%,
            #9e3d52 12%,
            #c05070 25%,
            #a03858 38%,
            #8a2e48 50%,
            #b04868 62%,
            #952040 75%,
            #7a2d3e 88%,
            #5e1e2e 100%
        );
}

/* ── Heavy pleated folds ── */
.curtain-folds {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(0,0,0,0.22)      0px,
        rgba(0,0,0,0.22)      2px,
        transparent           2px,
        transparent           18px,
        rgba(255,255,255,0.06) 18px,
        rgba(255,255,255,0.06) 20px,
        transparent           20px,
        transparent           36px,
        rgba(0,0,0,0.18)      36px,
        rgba(0,0,0,0.18)      38px,
        transparent           38px,
        transparent           54px,
        rgba(255,255,255,0.04) 54px,
        rgba(255,255,255,0.04) 56px,
        transparent           56px,
        transparent           72px
    );
}

/* ── Silk sheen sweep ── */
.curtain-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255,220,235,0.08) 30%,
        rgba(255,255,255,0.14) 50%,
        rgba(255,220,235,0.06) 70%,
        transparent 100%
    );
    animation: silk-sweep 5s ease-in-out infinite;
    transform: translateX(-120%);
}

@keyframes silk-sweep {
    0%   { transform: translateX(-120%); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}

/* ── Bottom hem weight — heavy drape shadow ── */
.curtain-left::after,
.curtain-right::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0,0,0,0.35) 60%,
        rgba(0,0,0,0.55) 100%
    );
    pointer-events: none;
}

/* ── Ornate pelmet rod ── */
.curtain-rod {
    position: absolute;
    top: 0;
    left: -1%;
    width: 102%;
    height: 38px;
    z-index: 10003;
    background:
        linear-gradient(180deg,
            #2a1008 0%,
            #4a2010 12%,
            #6b3418 28%,
            #8b4820 44%,
            #6b3418 56%,
            #4a2010 72%,
            #2a1008 88%,
            #1a0804 100%
        );
    box-shadow:
        0 4px 24px rgba(0,0,0,0.8),
        0 1px 0 rgba(212,175,55,0.25),
        inset 0 1px 1px rgba(255,220,140,0.15),
        inset 0 -2px 6px rgba(0,0,0,0.6);
    border-bottom: 2px solid rgba(212,175,55,0.35);
    border-top: 1px solid rgba(212,175,55,0.15);
}

/* Embossed gold trim line */
.curtain-rod::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 3%;
    right: 3%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212,175,55,0.15) 5%,
        rgba(212,175,55,0.5) 20%,
        rgba(255,220,140,0.7) 50%,
        rgba(212,175,55,0.5) 80%,
        rgba(212,175,55,0.15) 95%,
        transparent 100%
    );
    box-shadow: 0 0 8px rgba(212,175,55,0.3);
}

/* Warm spotlight glow from rod */
.curtain-rod::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 10%;
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse at center top,
        rgba(255,220,140,0.12) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* ── Valance (decorative top swag) ── */
.curtain-valance {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 10002;
    background:
        /* scalloped swag shape via radial gradients */
        radial-gradient(ellipse 18% 100% at 9%   0%, #8a2e48 60%, transparent 61%),
        radial-gradient(ellipse 18% 100% at 27%  0%, #8a2e48 60%, transparent 61%),
        radial-gradient(ellipse 18% 100% at 45%  0%, #8a2e48 60%, transparent 61%),
        radial-gradient(ellipse 18% 100% at 63%  0%, #8a2e48 60%, transparent 61%),
        radial-gradient(ellipse 18% 100% at 81%  0%, #8a2e48 60%, transparent 61%),
        radial-gradient(ellipse 18% 100% at 99%  0%, #8a2e48 60%, transparent 61%),
        /* gold trim line */
        linear-gradient(180deg, transparent 0%, transparent 55%, rgba(212,175,55,0.6) 56%, rgba(212,175,55,0.6) 60%, transparent 61%);
    pointer-events: none;
}

.curtain-valance::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(0,0,0,0.18)       0px,  rgba(0,0,0,0.18)       2px,
        transparent            2px,  transparent            18px,
        rgba(255,255,255,0.05) 18px, rgba(255,255,255,0.05) 20px,
        transparent            20px, transparent            36px
    );
    pointer-events: none;
}

/* ── Tassels ── */
.curtain-tassel {
    position: absolute;
    bottom: 28%;
    width: 18px;
    z-index: 3;
    pointer-events: none;
}

.curtain-left  .curtain-tassel { right: 0; }
.curtain-right .curtain-tassel { left: 0; }

.curtain-tassel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,
        #fff8d0, #d4af37 50%, #7a5810
    );
    box-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 10px rgba(212,175,55,0.4);
}

.curtain-tassel::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg,
        #d4af37 0%,
        #b8941f 40%,
        rgba(184,148,31,0.3) 80%,
        transparent 100%
    );
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(212,175,55,0.3);
}

/* ── Spotlights ── */
.spotlight {
    position: absolute;
    top: -10%;
    width: 260px;
    height: 130%;
    background: radial-gradient(ellipse at top,
        rgba(255,240,200,0.18) 0%,
        rgba(255,220,180,0.06) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 2;
    animation: spot-breathe 6s ease-in-out infinite;
}

.spotlight   { left: 22%; transform: rotate(-8deg); }
.spotlight-2 { left: 62%; transform: rotate(8deg); animation-delay: 3s; }

@keyframes spot-breathe {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.85; }
}

/* Heart position */
.curtain-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10004;
    width: clamp(220px, 40vw, 360px);
    opacity: 0;
    transform: translate(-50%, calc(-50% + 80px)) scale(0.3);
    pointer-events: none;
    filter:
        drop-shadow(0 0 30px rgba(232,69,106,0.8))
        drop-shadow(0 0 60px rgba(212,175,55,0.4));
}

/* ── Tap to open prompt ── */
.curtain-tap {
    display: none;
}

.winged-heart {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Wing and heart-body animations — CSS driven */
.wing-left  { transform-origin: 158px 105px; }
.wing-right { transform-origin: 182px 105px; }
.heart-body { transform-origin: 170px 115px; }

.heart-sparkles circle,
.heart-sparkles path {
    animation: sparkle-twinkle 1.6s ease-in-out infinite;
}
.heart-sparkles circle:nth-child(2) { animation-delay: 0.3s; }
.heart-sparkles circle:nth-child(3) { animation-delay: 0.6s; }
.heart-sparkles circle:nth-child(4) { animation-delay: 0.2s; }
.heart-sparkles circle:nth-child(5) { animation-delay: 0.8s; }
.heart-sparkles path:nth-child(6)   { animation-delay: 0.1s; }
.heart-sparkles path:nth-child(7)   { animation-delay: 0.5s; }
.heart-sparkles path:nth-child(8)   { animation-delay: 0.9s; }

@keyframes sparkle-twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.6); }
    50%       { opacity: 1;   transform: scale(1.3); }
}

/* Hero bloom handled by GSAP */
