/* CSS Design System for Avishi & Rahul's Wedding Invitation */

/* CSS Variables */
:root {
    --primary-color: #9B2C39; /* Crimson Red / Kumkum Red */
    --primary-light: #B83C4B;
    --accent-gold: #C5A880; /* Elegant Soft Gold */
    --accent-gold-bright: #D4AF37; /* Metallic Gold */
    --accent-gold-dark: #8F7249;
    --canvas-bg: #FFFDF9; /* Soft Warm Ivory */
    --card-bg: #F8F3EA; /* Warm Cream */
    --text-dark: #2A2E2B; /* Deep Charcoal */
    --text-light: #7D736A; /* Soft Warm Taupe */
    --white: #FFFFFF;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', Helvetica, Arial, sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-quick: all 0.25s ease;
    
    --box-shadow-soft: 0 10px 30px rgba(155, 44, 57, 0.06);
    --box-shadow-medium: 0 15px 40px rgba(155, 44, 57, 0.12);
    --box-shadow-gold: 0 15px 35px rgba(197, 168, 128, 0.2);
}

/* Reset & Document Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--canvas-bg);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#petalCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1005;
}

/* Typography Selection */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.03em;
}

p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-quick);
}

/* Helper Components */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.small-container {
    width: 90%;
    max-width: 650px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold-dark);
    margin-top: 10px;
}

.decorative-line {
    width: 100px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 0 auto;
    position: relative;
}

.decorative-line::after {
    content: "❖";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    color: var(--accent-gold-bright);
    background-color: var(--canvas-bg);
    padding: 0 8px;
}

.events-section .decorative-line::after {
    background-color: var(--card-bg);
}

/* Floating Audio Control */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--canvas-bg);
    color: var(--accent-gold);
    border: 2.5px solid var(--accent-gold-bright);
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(26, 58, 43, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    transition: var(--transition-quick);
    overflow: hidden;
    padding: 0;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    border-color: var(--white);
}

.music-toggle-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    transition: transform 0.4s ease;
    filter: grayscale(85%) opacity(0.85); /* Slightly grey and transparent when paused */
}

.music-toggle:hover .music-toggle-logo {
    filter: none;
}

.music-toggle.playing .music-toggle-logo {
    filter: none; /* Full color when playing */
    animation: spin-logo-slow 10s linear infinite;
}

@keyframes spin-logo-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-notes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.music-notes .note {
    position: absolute;
    font-size: 14px;
    color: var(--accent-gold-bright);
    opacity: 0;
    animation: float-note 2.5s infinite linear;
}

.music-notes .note:nth-child(1) {
    top: -10px;
    left: 10px;
    animation-delay: 0s;
}

.music-notes .note:nth-child(2) {
    top: -20px;
    left: 25px;
    animation-delay: 0.8s;
}

.music-notes .note:nth-child(3) {
    top: -10px;
    left: 40px;
    animation-delay: 1.6s;
}

@keyframes float-note {
    0% {
        transform: translateY(0) scale(0.6);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-40px) translateX(10px) rotate(20deg) scale(1.1);
        opacity: 0;
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1),
                transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 10s ease-out;
}

.hero-section:hover .hero-bg {
    transform: scale(1.01);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(155, 44, 57, 0.45) 0%, rgba(77, 15, 23, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-gold-bright);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 25px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.55);
    font-style: italic;
    color: var(--white);
}

.hero-date {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    margin-bottom: 40px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 0;
    display: inline-block;
    color: var(--white) !important; /* Forces inheritance override */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--accent-gold-bright);
    color: var(--primary-color);
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.cta-button:hover {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.65);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    margin-top: 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

/* Countdown Clock */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 90px;
    height: 95px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: var(--transition-quick);
}

.countdown-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-gold-bright);
    transform: scale(1.05);
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1;
}

.countdown-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold-bright);
    margin-top: 4px;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
}

.welcome-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.8;
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 25px;
}

.story-text {
    max-width: 750px;
    margin: 0 auto;
}

/* Families Section */
.families-section {
    background-color: #FAF4ED; /* Warm Ivory Paper Background */
    text-align: center;
    padding: 80px 0;
}

.families-sub {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--accent-gold-dark);
    display: block;
    margin-bottom: 5px;
}

.families-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 4rem;
    color: #9B2C39; /* Deep maroon/kumkum red color from reference image */
    margin: 0;
    line-height: 1.2;
}

.families-card {
    background-color: var(--canvas-bg);
    border: 1px solid var(--accent-gold);
    border-radius: 12px;
    padding: 50px 30px;
    box-shadow: var(--box-shadow-soft);
    max-width: 750px;
    margin: 40px auto 0 auto;
    position: relative;
    overflow: hidden;
}

.families-card::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(197, 168, 128, 0.45);
    pointer-events: none;
    border-radius: 8px;
}

.gracious-presence {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent-gold-dark);
    display: block;
    margin-bottom: 35px;
}

.families-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.family-side {
    padding: 10px;
}

.side-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}

.parent-name {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--primary-color);
    margin: 5px 0;
    font-style: italic;
}

.family-divider {
    width: 1px;
    height: 90px;
    background-color: rgba(197, 168, 128, 0.4);
}

/* Events Section */
.events-section {
    background-color: var(--card-bg);
}

.events-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    width: 100%;
}

.event-card {
    width: 290px;
    height: 520px;
    perspective: 1000px;
    border-radius: 12px;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: var(--transition-smooth);
}

.event-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    cursor: pointer;
    animation: hintFlip 2.5s ease-in-out infinite;
}

/* Hover and active flip overrides to turn card flat on 180deg */
.event-card:hover .event-card-inner,
.event-card.flipped .event-card-inner {
    animation: none !important;
    transform: rotateY(180deg);
}

@keyframes hintFlip {
    0%, 100% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: rotateY(12deg) rotateX(0.5deg);
    }
    50% {
        transform: rotateY(-12deg) rotateX(-0.5deg);
    }
    75% {
        transform: rotateY(12deg) rotateX(0.5deg);
    }
}

.event-card-front,
.event-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
    -webkit-transform-style: flat;
    transform-style: flat;
}

/* Force iOS Safari to respect backface hiding on all relative-positioned child elements */
.event-card-front *,
.event-card-back * {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.event-card-front {
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(197, 168, 128, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
}

.event-card-front-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
    pointer-events: none;
}

.event-card-front .event-badge {
    position: relative;
    z-index: 2;
    align-self: flex-start;
}

.event-card-hint {
    position: relative;
    z-index: 2;
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
}

.event-card-back {
    background: linear-gradient(135deg, #FFFDF0 0%, #F5E0B7 100%);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 15px 35px rgba(133, 90, 27, 0.22);
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Decorative inner double border on back face */
.event-card-back::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(155, 44, 57, 0.25);
    border-radius: 8px;
    pointer-events: none;
}

.event-card-back .event-name {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-shadow: none;
}

.event-card-back .event-date-time {
    color: #2b1b1d;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.event-card-back .event-divider {
    width: 60px;
    height: 1px;
    background-color: var(--accent-gold);
    margin: 10px 0 15px 0;
}

.event-card-back .event-location-title {
    color: var(--accent-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.event-card-back .event-location-text {
    color: #2b1b1d;
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.event-card-back .event-map-btn {
    position: relative;
    z-index: 3;
}

.event-card.featured .event-card-front {
    border: 2px solid var(--accent-gold-bright);
    box-shadow: 0 15px 45px rgba(155, 44, 57, 0.25);
}

.event-card.featured .event-card-back {
    border: 3px solid var(--accent-gold-bright);
}

.event-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 30px;
    margin-bottom: 12px;
}

.event-badge.gold {
    background-color: var(--accent-gold-bright);
    color: var(--primary-color);
}

.event-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 10px;
    font-style: italic;
    text-align: center;
}

.event-date-time {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 15px;
}

.card-icon {
    color: var(--accent-gold-bright);
}

.event-divider {
    width: 50px;
    height: 1px;
    background-color: rgba(212, 175, 55, 0.6);
    margin: 0 auto 15px auto;
}

.event-location-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold-bright);
    margin-bottom: 4px;
}

.event-location-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 15px;
    font-style: italic;
    text-align: center;
}

.event-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 20px;
    background-color: transparent;
    color: var(--accent-gold-bright);
    border: 1px solid var(--accent-gold-bright);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-quick);
    cursor: pointer;
    text-decoration: none;
}

.event-map-btn:hover {
    background-color: var(--accent-gold-bright);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

/* Logo Styling */
.hero-logo-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold-bright);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    margin: 0 auto 25px auto;
    display: block;
    object-fit: cover;
}

.story-logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
    box-shadow: var(--box-shadow-soft);
    margin: 0 auto 15px auto;
    display: block;
    object-fit: cover;
}

.footer-logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-gold-bright);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    margin: 0 auto 20px auto;
    display: block;
    object-fit: cover;
}

/* Footer Section */
.footer-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    border-top: 3px solid var(--accent-gold);
}

.footer-tagline {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* Footer Helpline Styles */
.footer-help-container {
    margin: 0 auto 40px auto;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(197, 168, 128, 0.15);
    border-radius: 8px;
    display: block;
    max-width: 600px;
    width: 90%;
}

.help-title {
    font-family: var(--font-heading);
    color: var(--accent-gold-bright);
    font-size: 1.25rem;
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}

.contact-numbers {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition-quick);
    display: flex;
    align-items: center;
}

.contact-link:hover {
    color: var(--accent-gold-bright);
}

.contact-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 6px;
}

/* Footer Social Styles */
.footer-social-container {
    margin-bottom: 40px;
}

.instagram-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 25px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--accent-gold-bright);
    color: var(--accent-gold-bright);
    transition: var(--transition-quick);
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
}

.instagram-btn:hover {
    background-color: var(--accent-gold-bright);
    color: var(--primary-color);
    box-shadow: var(--box-shadow-gold);
    transform: translateY(-3px);
}

.instagram-username {
    font-family: var(--font-body);
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

/* Delayed Reveal Transitions via Wrapper */
.hero-reveal-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                margin-top 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    margin-top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-reveal-wrapper.revealed {
    max-height: 250px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 25px;
}

/* Polaroid Timeline Styles (Scroll-Stacking Effect) */
.polaroid-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 250px; /* Large spacing to allow scroll stacking */
    margin-top: 50px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px 150px 15px; /* Extra bottom padding to let the last card stand */
}

.polaroid-card {
    background: var(--white);
    padding: 15px 15px 25px 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(197, 168, 128, 0.18);
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: sticky;
    top: 150px; /* Sticks at 150px from viewport top */
    width: 290px;
    box-sizing: border-box;
}

@media (hover: hover) {
    .polaroid-card:hover {
        transform: scale(1.05) rotate(0deg) !important;
        box-shadow: 0 20px 40px rgba(197, 168, 128, 0.35);
    }
}

.polaroid-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #eee;
    border: 1px solid #e2e2e2;
    margin-bottom: 18px;
}

.polaroid-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

@media (hover: hover) {
    .polaroid-card:hover .polaroid-image-wrapper img {
        transform: scale(1.06);
    }
}

.polaroid-caption {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.polaroid-milestone {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.polaroid-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 8px;
    max-width: 190px;
}

.polaroid-date {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.3rem;
    color: var(--accent-gold-dark);
    margin-top: 2px;
}

/* Responsiveness Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .venue-main-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-logo-img {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .hero-date {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .countdown-container {
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .countdown-item {
        width: 70px;
        height: 75px;
    }
    
    .countdown-number {
        font-size: 1.6rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .welcome-text {
        font-size: 1.4rem;
    }
    
    .music-toggle {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* Sticky Map Mobile Overrides */
    .map-section-title {
        font-size: 1.8rem;
        top: 25px;
    }
    
    .map-zoom-viewport {
        width: 90vw;
        height: 65vh;
    }
    
    .map-popup-card {
        padding: 20px;
        max-width: 320px;
    }
    
    .popup-title {
        font-size: 1.3rem;
    }
    
    .popup-qr {
        width: 100px;
        height: 100px;
    }
    
    /* Families Section Mobile */
    .families-title {
        font-size: 3rem;
    }
    
    .families-card {
        padding: 35px 20px;
        margin: 25px 15px 0 15px;
    }
    
    .families-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .family-divider {
        width: 60px;
        height: 1px;
        margin: 10px auto;
    }
    
    .parent-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        gap: 8px;
    }
    
    .countdown-item {
        width: 60px;
        height: 65px;
    }
    
    .countdown-number {
        font-size: 1.3rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .map-section-title {
        font-size: 1.5rem;
    }
    
    .map-zoom-viewport {
        height: 55vh;
    }
}

/* Venue Section CSS */
.venue-section {
    padding: 90px 0;
    text-align: center;
    background-color: var(--canvas-bg);
}

.venue-meta-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold-dark);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-body);
}

.venue-main-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-style: italic;
    color: var(--primary-color);
    text-transform: none;
    line-height: 1.2;
    margin: 0 0 15px 0;
}

.venue-address {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 15px;
    font-family: var(--font-body);
}

.map-embed-container {
    max-width: 900px;
    margin: 35px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(155, 44, 57, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.35);
    background-color: #fffdf9;
    padding: 0;
}

.google-map-iframe {
    display: block;
    width: 100%;
    height: 450px;
}

.venue-action {
    text-align: center;
    margin-top: 30px;
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 35px;
    border-radius: 30px;
    background-color: var(--accent-gold);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.25);
    transition: var(--transition-quick);
    cursor: pointer;
}

.directions-btn:hover {
    background-color: var(--accent-gold-bright);
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.35);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .google-map-iframe {
        height: 300px;
    }
}

/* Language Selection Modal (Glassmorphic) */

/* Floating Language Toggle Button */

/* Responsive adjustments for floaters */
@media (max-width: 480px) {
    .music-toggle {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
}

/* Custom Promo Box Styles */
.custom-card-promo-container {
    margin: 40px auto;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.03) 0%, rgba(197, 168, 128, 0.12) 100%);
    border: 1px solid var(--accent-gold);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-align: center;
}

.promo-title {
    font-family: var(--font-heading);
    color: var(--accent-gold-bright);
    font-size: 1.35rem;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.promo-description {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
    font-style: italic;
}

.get-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    background-color: var(--accent-gold-bright);
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.get-quote-btn:hover {
    background-color: var(--white);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.whatsapp-icon {
    display: inline-block;
    flex-shrink: 0;
}

/* Video Popup Styles */
.video-popup {
    position: fixed;
    bottom: 95px; /* Offset above the round floating buttons on desktop */
    right: 30px;
    width: 200px;
    aspect-ratio: 9/16;
    background: #000;
    border: 3px solid var(--accent-gold);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 999;
    overflow: hidden;
    transform: translateY(120%) scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-popup.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.video-popup video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Prevents video itself from intercepting touches on iOS */
}

.video-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 15, 15, 0.75); /* Sleek translucent black */
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.video-popup-close:hover, .video-popup-close:active {
    background: var(--primary-color);
    border-color: var(--white);
    transform: scale(1.08);
}

.video-popup-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    pointer-events: auto;
}

.video-control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.75); /* Match close button theme */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.video-control-btn:hover, .video-control-btn:active {
    background: var(--accent-gold-bright);
    color: var(--primary-color) !important;
    border-color: var(--white);
    transform: scale(1.08);
}

/* Responsive adjustments for video popup */
@media (max-width: 768px) {
    .video-popup {
        bottom: 85px; /* Offset above the mobile lang & music toggle floaters */
        right: 20px;
        width: 130px;
        aspect-ratio: 9/16;
        border-width: 2px;
    }
}

/* Hero subtitle (Shubh Vivah) */
.hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.45em;
    margin-bottom: 6px;
}

/* Scratch card fallback for anyone who can't scratch */
.scratch-skip {
    margin-top: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 8px 12px;
}
.scratch-skip:hover, .scratch-skip:focus-visible { color: var(--accent-gold-bright); }

.countdown-done {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.story-invite { margin-bottom: 50px; }

/* Families: bride & groom presented as a pair */
.grandparents-section { margin-bottom: 30px; position: relative; z-index: 2; }
.grandparents-section .side-label {
    color: var(--accent-gold-dark);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 8px;
}
.grandparents-section .parent-name { font-size: 1.35rem; margin: 2px 0; }
.families-rule {
    width: 100px; height: 1px; margin: 0 auto 30px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}
.families-grid { position: relative; z-index: 2; }
.family-side .side-label {
    color: var(--accent-gold-dark);
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 0;
}
.couple-name {
    font-family: 'Pinyon Script', cursive;
    font-size: 3.2rem;
    line-height: 1.15;
    color: var(--primary-color);
    margin: 2px 0 2px;
}
.relation {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}
.family-side .parent-name { font-size: 1.2rem; font-weight: 500; margin: 2px 0; }
.family-divider { position: relative; display: flex; align-items: center; justify-content: center; }
.family-heart {
    position: absolute;
    background: var(--canvas-bg);
    color: var(--accent-gold);
    font-size: 1rem;
    line-height: 1;
    padding: 6px 0;
}

/* Schedule at a glance */
.schedule-strip {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 34px auto 6px;
    max-width: 720px;
    padding: 0;
    position: relative;
}
.schedule-strip li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    padding-top: 22px;
    min-width: 0;
}
.schedule-strip li::before {
    content: "";
    position: absolute;
    top: 6px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--canvas-bg);
    border: 2px solid var(--accent-gold);
    z-index: 1;
}
.schedule-strip li::after {
    content: "";
    position: absolute;
    top: 11px; left: 50%;
    width: 100%; height: 1px;
    background: rgba(197, 168, 128, 0.55);
}
.schedule-strip li:last-child::after { display: none; }
.schedule-strip .ss-main::before { background: var(--accent-gold-bright); border-color: var(--primary-color); transform: scale(1.25); }
.ss-date {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 600;
}
.ss-name {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    text-align: center;
    line-height: 1.35;
    padding: 0 4px;
}

/* Event card back: tidy layout + actions */
.event-card:focus-visible { outline: 2px solid var(--accent-gold-bright); outline-offset: 6px; border-radius: 14px; }
.event-card-back { padding: 26px 20px; }
.event-card-back .event-location-text { margin-bottom: 16px; }
.event-card-back.compact .event-name { font-size: 1.45rem; margin-bottom: 2px; }
.event-card-back.compact .event-date-time { font-size: 0.82rem; margin-bottom: 2px; }
.event-card-back.compact .event-divider { margin: 6px auto 10px; }
.event-card-back.compact .event-location-title { margin-bottom: 0; }
.event-card-back.compact .event-location-text { font-size: 0.95rem; margin-bottom: 12px; }
.sub-events-list {
    list-style: none;
    width: 100%;
    padding: 0 14px;
    margin: 0 0 12px;
}
.sub-events-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px dotted rgba(155, 44, 57, 0.2);
}
.sub-events-list li:last-child { border-bottom: none; }
.sub-name {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 0.88rem;
    font-style: italic;
    font-weight: 600;
    text-align: left;
}
.sub-time { color: #2b1b1d; font-size: 0.74rem; white-space: nowrap; }

.event-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    position: relative;
    z-index: 3;
}
.event-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 30px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}
.event-action.solid { background: var(--primary-color); color: var(--white); }
.event-action:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(155, 44, 57, 0.25); }

/* Venue */
.venue-container { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.map-embed-container { width: 100%; }

/* Footer bits */
.contact-link svg { margin-right: 6px; }
.controls-right { display: flex; gap: 8px; align-items: center; }
.footer-tagline { margin-top: 15px; }

@media (max-width: 768px) {
    .family-divider { width: 60px; height: 1px; }
    .couple-name { font-size: 2.8rem; }
    .ss-date { font-size: 0.92rem; }
    .ss-name { font-size: 0.58rem; letter-spacing: 0.06em; }
}

/* Respect people who turn off animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    #petalCanvas { display: none; }
    .event-card-inner { animation: none !important; }
}

/* Venue switcher: Indore + Khargone */
.venue-switch { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.venue-tab {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-width: 150px; padding: 12px 18px;
    border: 1px solid rgba(197, 168, 128, 0.6); border-radius: 12px;
    background: var(--white); color: var(--text-light);
    font-family: var(--font-body); cursor: pointer; transition: var(--transition-quick);
}
.venue-tab:hover { border-color: var(--accent-gold); }
.venue-tab.active { border-color: var(--primary-color); background: #FFF8F0; box-shadow: var(--box-shadow-soft); }
.vt-dates { font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-gold-dark); font-weight: 600; }
.vt-name { font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: var(--primary-color); }
.vt-city { font-size: 0.75rem; }
.ss-city { font-size: 0.6rem; color: var(--accent-gold-dark); font-style: italic; margin-top: -4px; }
@media (max-width: 480px) { .venue-tab { min-width: 0; flex: 1; padding: 10px 8px; } }

/* Map card (used where Google Maps can't be embedded) */
.map-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 260px; margin-top: 30px; padding: 30px 20px;
    border-radius: 12px; border: 1px solid rgba(197, 168, 128, 0.6);
    background:
        repeating-linear-gradient(0deg, rgba(197,168,128,0.12) 0 1px, transparent 1px 38px),
        repeating-linear-gradient(90deg, rgba(197,168,128,0.12) 0 1px, transparent 1px 38px),
        #FBF6EE;
    color: var(--primary-color); text-align: center;
}
.map-card:hover { box-shadow: var(--box-shadow-medium); }
.map-card .mc-pin { width: 44px; height: 44px; color: var(--primary-color); }
.map-card .mc-name { font-family: var(--font-heading); font-style: italic; font-size: 1.6rem; }
.map-card .mc-addr { font-size: 0.85rem; color: var(--text-light); }
.map-card .mc-cta { margin-top: 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* --- Hero: slow drift on the palace backdrop --- */
.hero-bg { animation: kenBurns 26s ease-in-out infinite alternate; transition: none; }
.hero-section:hover .hero-bg { transform: none; }
@keyframes kenBurns {
    from { transform: scale(1.05) translate3d(0, 0, 0); }
    to   { transform: scale(1.14) translate3d(-1.2%, -1.5%, 0); }
}
.hero-content { will-change: transform, opacity; }

/* --- Hero intro: plays once the envelope has opened --- */
.intro-item { opacity: 0; }
body.intro-play .intro-item { animation: introRise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes introRise {
    from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
    to   { opacity: 1; transform: none; filter: none; }
}

/* The monogram lands like a seal being pressed, then keeps a soft gold glow */
body.intro-play .intro-seal {
    animation: sealPress 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both, logoGlow 4.5s ease-in-out 2.2s infinite;
    animation-delay: var(--d, 0ms), 2.2s;
}
@keyframes sealPress {
    0%   { opacity: 0; transform: scale(0.35) rotate(-28deg); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes logoGlow {
    0%, 100% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(212, 175, 55, 0); }
    50%      { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 9px rgba(212, 175, 55, 0.18), 0 0 38px 6px rgba(212, 175, 55, 0.35); }
}

/* "Shubh Vivah" tracks in from wide spacing */
body.intro-play .intro-track { animation-name: trackIn; animation-duration: 1.6s; }
@keyframes trackIn {
    from { opacity: 0; letter-spacing: 1.3em; filter: blur(4px); }
    to   { opacity: 1; letter-spacing: 0.45em; filter: none; }
}

/* Names: each letter rises out of a soft blur; the ampersand arrives in gold, last */
.hero-title .ch { display: inline-block; opacity: 0; }
.hero-title .ch.amp { color: var(--accent-gold-bright); }
body.intro-play .hero-title .ch {
    animation: charRise 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--d, 0ms) + var(--ci) * 55ms);
}
body.intro-play .hero-title .ch.amp {
    animation: ampBloom 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(var(--d, 0ms) + 900ms);
}
@keyframes charRise {
    from { opacity: 0; transform: translateY(0.55em) rotate(6deg); filter: blur(8px); }
    to   { opacity: 1; transform: none; filter: none; }
}
@keyframes ampBloom {
    from { opacity: 0; transform: scale(0.2) rotate(-40deg); }
    to   { opacity: 1; transform: none; }
}
@keyframes dealIn {
    from { opacity: 0; transform: translateY(-40px) rotate(-8deg) scale(0.9); }
    to   { opacity: 1; transform: none; }
}
.cta-button::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 40%;
    left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: sheen 5.5s ease-in-out 3.2s infinite;
    pointer-events: none;
}
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Countdown digits drop in when they change */
.countdown-number { display: inline-block; }
.countdown-number.tick { animation: tickIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes tickIn { from { opacity: 0; transform: translateY(-45%); } to { opacity: 1; transform: none; } }

/* --- Section headers: gold rule draws outward, then the diamond turns into place --- */
.section-header.fade-up .decorative-line {
    transform: scaleX(0);
    transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.35s;
}
.section-header.fade-up .decorative-line::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-180deg) scale(0.3);
    transition: opacity 0.6s ease 1s, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 1s;
}
.section-header.visible .decorative-line { transform: scaleX(1); }
.section-header.visible .decorative-line::after { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }

/* --- Our Story: polaroids develop like instant film --- */
.polaroid-image-wrapper { position: relative; }
.polaroid-image-wrapper img {
    filter: sepia(0.7) saturate(0.35) brightness(1.5) contrast(0.7) blur(2px);
    transition: filter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s ease;
}
.polaroid-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fffdf6;
    opacity: 0.9;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.polaroid-card.developed .polaroid-image-wrapper img { filter: none; }
.polaroid-card.developed .polaroid-image-wrapper::after { opacity: 0; }
.polaroid-caption > * { opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.45s ease; }
.polaroid-card.developed .polaroid-caption > * { opacity: 1; transform: none; }
.polaroid-card.developed .polaroid-caption > :nth-child(1) { transition-delay: 0.2s; }
.polaroid-card.developed .polaroid-caption > :nth-child(2) { transition-delay: 0.3s; }
.polaroid-card.developed .polaroid-caption > :nth-child(3) { transition-delay: 0.4s; }

/* --- Families: the two sides meet in the middle, the heart beats --- */
.families-card.fade-up .grandparents-section,
.families-card.fade-up .family-side { transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.families-card.fade-up .grandparents-section { opacity: 0; transform: translateY(14px); transition-delay: 0.25s; }
.families-card.fade-up .family-side:first-child { opacity: 0; transform: translateX(-36px); transition-delay: 0.55s; }
.families-card.fade-up .family-side:last-child { opacity: 0; transform: translateX(36px); transition-delay: 0.55s; }
.families-card.visible .grandparents-section,
.families-card.visible .family-side:first-child,
.families-card.visible .family-side:last-child { opacity: 1; transform: none; }
.families-card.visible .family-heart { animation: heartBeat 1.3s ease-in-out 1.3s 2; }
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.45); }
    30% { transform: scale(1); }
    45% { transform: scale(1.3); }
}

/* --- Schedule strip: the thread draws from date to date --- */
.schedule-strip li:nth-child(1) { --n: 0; }
.schedule-strip li:nth-child(2) { --n: 1; }
.schedule-strip li:nth-child(3) { --n: 2; }
.schedule-strip li:nth-child(4) { --n: 3; }
.schedule-strip.fade-up li::before { transform: scale(0); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--n) * 0.32s + 0.3s); }
.schedule-strip.fade-up li::after { transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease calc(var(--n) * 0.32s + 0.5s); }
.schedule-strip.fade-up li > * { opacity: 0; transition: opacity 0.6s ease calc(var(--n) * 0.32s + 0.35s); }
.schedule-strip.visible li::before { transform: scale(1); }
.schedule-strip.visible .ss-main::before { transform: scale(1.25); }
.schedule-strip.visible li::after { transform: scaleX(1); }
.schedule-strip.visible li > * { opacity: 1; }

/* --- Event cards rise and tip forward, dealt out left to right --- */
.events-grid-container .event-card.fade-up {
    transform: perspective(1000px) translateY(70px) rotateX(20deg);
    transform-origin: 50% 100%;
    transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 120ms);
}
.events-grid-container .event-card.fade-up.visible { transform: none; }

/* --- Venue tabs and map --- */
.venue-tab { position: relative; overflow: hidden; }
.venue-tab.active::after {
    content: "";
    position: absolute;
    left: 20%; right: 20%; bottom: 0;
    height: 2px;
    background: var(--accent-gold-bright);
    animation: tabLine 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes tabLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
    .intro-item, .hero-title .ch, .polaroid-caption > * { opacity: 1 !important; transform: none !important; filter: none !important; }
    .polaroid-image-wrapper img { filter: none !important; }
    .polaroid-image-wrapper::after { opacity: 0 !important; }
    .hero-bg, .cta-button::after { animation: none !important; }
}

/* =========================================================
   Opening envelope (shared by both invitation sites)
   ========================================================= */
.envelope-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 24px 16px;
    overflow: hidden;
    background: radial-gradient(120% 90% at 50% 42%, #8A2232 0%, #5A1220 46%, #2A070F 100%);
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
/* slow-turning gold rays, like a mandala behind the envelope */
.envelope-overlay::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 170vmax;
    height: 170vmax;
    margin: -85vmax 0 0 -85vmax;
    background: repeating-conic-gradient(rgba(231, 200, 115, 0.10) 0deg 0.7deg, transparent 0.7deg 7.5deg);
    -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.55) 20%, transparent 52%);
            mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.55) 20%, transparent 52%);
    animation: mandalaTurn 160s linear infinite;
    pointer-events: none;
}
/* fine concentric gold rings */
.envelope-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-radial-gradient(circle at 50% 50%, transparent 0 56px, rgba(231, 200, 115, 0.07) 56px 57px);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
            mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
    pointer-events: none;
}
@keyframes mandalaTurn { to { transform: rotate(360deg); } }

/* rising gold dust */
.env-dust, .env-dust::after {
    position: absolute;
    left: 0; right: 0; top: 0;
    bottom: -300px;
    pointer-events: none;
    background-image:
        radial-gradient(1.6px 1.6px at 22px 34px, rgba(255, 222, 150, 0.9), transparent),
        radial-gradient(1.2px 1.2px at 140px 92px, rgba(255, 222, 150, 0.7), transparent),
        radial-gradient(2px 2px at 226px 164px, rgba(255, 232, 175, 0.85), transparent),
        radial-gradient(1px 1px at 82px 206px, rgba(255, 222, 150, 0.6), transparent),
        radial-gradient(1.4px 1.4px at 262px 254px, rgba(255, 222, 150, 0.7), transparent);
    background-size: 300px 300px;
    animation: dustRise 38s linear infinite;
    opacity: 0.75;
}
.env-dust::after {
    content: "";
    bottom: -470px;
    background-size: 470px 470px;
    animation-duration: 60s;
    opacity: 0.5;
}
@keyframes dustRise { to { transform: translateY(-300px); } }
.env-dust::after { animation-name: dustRise2; }
@keyframes dustRise2 { to { transform: translateY(-470px); } }

/* caption above, hint below */
.envelope-caption, .env-hint { position: relative; z-index: 2; text-align: center; transition: opacity 0.45s ease, transform 0.45s ease; }
.env-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: #E7C873;
    margin-bottom: 4px;
    animation: capIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}
.env-title {
    font-family: 'Pinyon Script', cursive;
    font-size: clamp(2.6rem, 11vw, 3.8rem);
    line-height: 1.15;
    color: #FFF6E6;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    animation: capIn 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}
.env-title span { color: #E7C873; }
.env-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 246, 230, 0.78);
    animation: capIn 1s ease 1.3s both;
}
.env-hint-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #E7C873;
    box-shadow: 0 0 0 0 rgba(231, 200, 115, 0.6);
    animation: hintPulse 1.8s ease-out infinite;
}
@keyframes capIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hintPulse { 0% { box-shadow: 0 0 0 0 rgba(231, 200, 115, 0.6); } 100% { box-shadow: 0 0 0 12px rgba(231, 200, 115, 0); } }

/* the envelope */
.env-stage { position: relative; z-index: 3; }
.env {
    position: relative;
    width: min(86vw, 380px);
    aspect-ratio: 3 / 2;
    perspective: 1400px;
    cursor: pointer;
    animation: envIn 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both, envFloat 5s ease-in-out 1.3s infinite;
}
.env:focus { outline: none; }
.env:focus-visible { outline: 2px solid #E7C873; outline-offset: 10px; border-radius: 12px; }
.envelope-overlay.is-opening .env { outline: none; }
@keyframes envIn { from { opacity: 0; transform: translateY(-50px) rotate(-5deg) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes envFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(0.5deg); } }
.env-shadow {
    position: absolute;
    left: 12%; right: 12%;
    bottom: -26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
    filter: blur(5px);
    animation: shadowFloat 5s ease-in-out 1.3s infinite;
    transition: opacity 0.6s ease;
}
@keyframes shadowFloat { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.88); opacity: 0.7; } }

.env-back {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background:
        radial-gradient(circle, rgba(231, 200, 115, 0.4) 1px, transparent 1.4px) 0 0 / 12px 12px,
        linear-gradient(180deg, #A42E3E 0%, #7C1B28 100%);
    box-shadow: inset 0 0 0 1px rgba(231, 200, 115, 0.35);
    z-index: 1;
    transition: transform 0.7s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.6s ease;
}
.env-pocket {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    border-radius: 10px;
    overflow: hidden;
    filter: drop-shadow(0 -2px 3px rgba(90, 40, 20, 0.12));
    transition: transform 0.7s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.6s ease;
}
.env-flap {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 62.5%;
    z-index: 4;
    transform-origin: 50% 0;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.45, 0, 0.2, 1), z-index 0s linear 0.38s, opacity 0.6s ease;
    filter: drop-shadow(0 3px 4px rgba(90, 40, 20, 0.18));
}
.env-flap-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}
.env-flap-back { transform: rotateX(180deg); }

/* the invitation card inside */
.env-letter {
    position: absolute;
    left: 5%; right: 5%;
    top: 5%;
    height: 90%;
    z-index: 2;
    padding: 6px;
    border-radius: 6px;
    background: #FFFBF3;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.7s ease, filter 0.7s ease;
}
.env-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid rgba(201, 162, 75, 0.75);
    outline: 1px solid rgba(201, 162, 75, 0.35);
    outline-offset: -6px;
    background: radial-gradient(circle at 50% 0%, #FFFFFF 0%, #FBF1E0 100%);
}
.env-card-logo { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #C9A24B; object-fit: cover; margin-bottom: 4px; }
.env-card-kicker { font-family: var(--font-body); font-size: 0.55rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: #8F7249; }
.env-card-names { font-family: 'Pinyon Script', cursive; font-size: 1.95rem; line-height: 1.2; color: var(--primary-color); }
.env-card-names em { font-style: normal; color: #C9A24B; }
.env-card-rule { width: 64px; height: 1px; margin: 2px 0 3px; background: linear-gradient(90deg, transparent, #C9A24B, transparent); }
.env-card-date { font-family: var(--font-heading); font-style: italic; font-size: 0.9rem; letter-spacing: 0.12em; color: #2b1b1d; }
.env-card-place { font-family: var(--font-body); font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase; color: #8F7249; }
.env-card::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 234, 185, 0.85), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
}

/* wax seal */
.env-seal {
    position: absolute;
    left: 50%;
    top: 62.5%;
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    z-index: 5;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.35));
}
.env-seal-wax { position: absolute; inset: 0; width: 100%; height: 100%; }
.env-seal-logo {
    position: relative;
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #E7C873;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.env-seal::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1.5px solid #E7C873;
    animation: sealRing 2.4s ease-out 1.6s infinite;
    pointer-events: none;
}
@keyframes sealRing { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
.env:hover .env-seal { transform: scale(1.06); transition: transform 0.3s ease; }

/* ---- opening sequence (classes added by app.js) ---- */
.envelope-overlay.is-opening .envelope-caption { opacity: 0; transform: translateY(-16px); }
.envelope-overlay.is-opening .env-hint { animation: none; opacity: 0; transform: translateY(12px); }
.envelope-overlay.is-opening .env,
.envelope-overlay.is-opening .env-shadow { animation-play-state: paused; }
.envelope-overlay.is-opening .env-seal { animation: sealBreak 0.5s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.envelope-overlay.is-opening .env-seal::before { animation: none; opacity: 0; }
@keyframes sealBreak {
    0%   { transform: scale(1); opacity: 1; }
    35%  { transform: scale(1.16); opacity: 1; }
    100% { transform: translateY(46px) rotate(28deg) scale(0.7); opacity: 0; }
}

.envelope-overlay.flap-open .env-flap { transform: rotateX(180deg); z-index: 1; }

.envelope-overlay.letter-out .env-letter { transform: translateY(-64%); }

.envelope-overlay.letter-front .env-letter {
    z-index: 6;
    transform: translateY(-6%) scale(1.2);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}
.envelope-overlay.letter-front .env-card::after { animation: cardSheen 1.1s ease 0.55s both; }
@keyframes cardSheen { from { left: -60%; } to { left: 130%; } }
.envelope-overlay.letter-front .env-back,
.envelope-overlay.letter-front .env-pocket { transform: translateY(80%); opacity: 0; }
.envelope-overlay.letter-front .env-flap { transform: translateY(80%) rotateX(180deg); opacity: 0; transition: transform 0.7s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.6s ease; }
.envelope-overlay.letter-front .env-shadow { opacity: 0; }

.envelope-overlay.is-exiting { opacity: 0; visibility: hidden; pointer-events: none; }
.envelope-overlay.is-exiting .env-letter {
    transform: translateY(-6%) scale(1.55);
    opacity: 0;
    filter: blur(4px);
    transition: transform 0.8s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.7s ease, filter 0.7s ease;
}

@media (max-width: 380px) {
    .env-card-names { font-size: 1.7rem; }
    .env-card-logo { width: 40px; height: 40px; }
}

/* =========================================================
   Gold-foil scratch card (date reveal)
   ========================================================= */
.scratch-cards-wrapper {
    margin: 22px auto 4px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    position: relative;
    z-index: 15;
}
.foil-card {
    position: relative;
    width: min(84vw, 330px);
    height: 150px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
    background: #FFFBF3;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(231, 200, 115, 0.6);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
.foil-card::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 7px;
    border: 1px dashed rgba(201, 162, 75, 0.85);
    pointer-events: none;
    z-index: 4;
}
.foil-reveal {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding-top: 4px;
    background: linear-gradient(135deg, #FFFDF0 0%, #F5E0B7 100%);
}
.fr-kicker { font-family: 'Pinyon Script', cursive; font-size: 1.55rem; line-height: 1.1; color: #8F7249; }
.fr-row { display: flex; align-items: center; gap: 14px; }
.fr-side {
    min-width: 78px;
    padding: 5px 0;
    border-top: 1px solid rgba(201, 162, 75, 0.85);
    border-bottom: 1px solid rgba(201, 162, 75, 0.85);
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.5;
    color: #2b1b1d;
}
.fr-day { font-family: var(--font-heading); font-size: 3.3rem; font-weight: 500; line-height: 1; color: var(--primary-color); }
.foil-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    touch-action: none;
    cursor: grab;
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}
.foil-canvas:active { cursor: grabbing; }
.foil-card.revealed .foil-canvas { opacity: 0; transform: scale(1.06); filter: blur(3px) brightness(1.4); pointer-events: none; }
.foil-shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 250, 225, 0.2) 52%, transparent 62%);
    background-size: 250% 100%;
    background-position: 150% 0;
    animation: foilShine 3.6s ease-in-out 2.6s infinite;
    transition: opacity 0.3s ease;
}
@keyframes foilShine { 0%, 55% { background-position: 150% 0; } 100% { background-position: -60% 0; } }
.foil-card.scratching .foil-shine,
.foil-card.revealed .foil-shine { opacity: 0; animation: none; }
.foil-hand {
    position: absolute;
    left: 50%;
    top: 58%;
    width: 34px;
    height: 34px;
    margin: -6px 0 0 -10px;
    z-index: 3;
    color: #FFFBF3;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
    pointer-events: none;
    opacity: 0;
    animation: handSwipe 2.8s ease-in-out 2.8s infinite;
}
@keyframes handSwipe {
    0%   { opacity: 0; transform: translate(-80px, -14px) rotate(-10deg); }
    12%  { opacity: 1; }
    32%  { transform: translate(40px, -22px) rotate(6deg); }
    52%  { transform: translate(-44px, 6px) rotate(-8deg); }
    72%  { opacity: 1; transform: translate(66px, 12px) rotate(8deg); }
    86%, 100% { opacity: 0; transform: translate(66px, 12px) rotate(8deg); }
}
.foil-card.scratching .foil-hand,
.foil-card.revealed .foil-hand { display: none; }
.foil-fleck {
    position: absolute;
    z-index: 3;
    width: 5px;
    height: 3px;
    margin: -1.5px 0 0 -2.5px;
    border-radius: 1px;
    background: linear-gradient(90deg, #F6E2A2, #B98A36);
    pointer-events: none;
    animation: fleckFall 0.8s cubic-bezier(0.3, 0.6, 0.5, 1) forwards;
}
@keyframes fleckFall {
    from { opacity: 1; transform: translate(0, 0) rotate(0); }
    to   { opacity: 0; transform: translate(var(--dx), 48px) rotate(var(--rot)); }
}
.foil-card.revealed .fr-day { animation: dayPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both; }
.foil-card.revealed .fr-side,
.foil-card.revealed .fr-kicker { animation: capIn 0.7s ease 0.3s both; }
@keyframes dayPop { from { transform: scale(0.55); opacity: 0.3; } to { transform: none; opacity: 1; } }
body.intro-play .foil-card { animation: dealIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s both; }
body.intro-play .foil-card.revealed,
.foil-card.revealed { animation: cardGlow 1.6s ease 0.1s both; }
@keyframes cardGlow {
    0%   { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(231, 200, 115, 0.6), 0 0 0 0 rgba(231, 200, 115, 0.75); }
    100% { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(231, 200, 115, 0.6), 0 0 0 28px rgba(231, 200, 115, 0); }
}
.scratch-cards-wrapper.done .scratch-skip { visibility: hidden; }
@media (max-width: 360px) {
    .fr-day { font-size: 2.8rem; }
    .fr-side { min-width: 66px; font-size: 0.55rem; }
}

/* Family members hosting the guests (top of the footer) */
.footer-hosts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0 auto 34px;
    padding-bottom: 30px;
    max-width: 560px;
    border-bottom: 1px solid rgba(231, 200, 115, 0.3);
}
.footer-hosts-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 246, 230, 0.75);
}
.footer-hosts-names {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.4rem;
    line-height: 1.3;
    color: #E7C873;
    margin: 4px 0 2px;
}
.footer-hosts-names .nw { white-space: nowrap; }
.footer-hosts-names .dot { font-family: var(--font-heading); font-size: 1.2rem; color: rgba(255, 246, 230, 0.6); padding: 0 6px; vertical-align: middle; }
.footer-hosts-rel {
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 246, 230, 0.6);
}
@media (max-width: 480px) {
    .footer-hosts-names { font-size: 2.1rem; }
    .footer-hosts-names .dot { display: block; height: 0; overflow: hidden; }
}

/* Invitation video in full screen: keep its shape, keep our controls */
.video-popup.is-fullscreen,
.video-popup:fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    aspect-ratio: auto;
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: none;
    z-index: 2000;
    background: #000;
}
.video-popup:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
    transform: none;
    background: #000;
}
.video-popup.is-fullscreen video,
.video-popup:fullscreen video {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: auto;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    transform: translate(-50%, -50%);
    object-fit: contain;
}
.video-popup.is-fullscreen .video-popup-close,
.video-popup.is-fullscreen .video-popup-controls { z-index: 5; }
.video-popup.is-fullscreen .video-popup-close {
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
    width: 44px;
    height: 44px;
}
.video-popup.is-fullscreen .video-popup-controls {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 20px;
    right: 20px;
}
.video-popup.is-fullscreen .video-control-btn { width: 44px; height: 44px; }
.video-popup.is-fullscreen .video-control-btn svg { width: 20px; height: 20px; }
