:root {
    --gold: #D4AF37;
    --gold-bright: #FCF6BA;
    --gold-dark: #AA771C;
    --gold-border: rgba(212, 175, 55, 0.45);
    --gold-gradient: linear-gradient(135deg, var(--gold-dark), var(--gold-bright), var(--gold-dark));
    --black: #050505;
    --dark-grey: #1a1a1a;
    --cream: #EDE6DE;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.18);
    --bg-indigo: #0f1423;
    --bg-violet: #1b2031;
    --bg-teal: #102924;
    --depth-x: 0px;
    --depth-y: 0px;
    --wave-x: 50%;
    --wave-y: 50%;
    --envelope-tilt-x: 0deg;
    --envelope-tilt-y: 0deg;
    --envelope-shift-x: 0px;
    --envelope-shift-y: 0px;
    --scroll-ratio: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(150deg, var(--bg-indigo), var(--bg-violet) 45%, var(--bg-teal));
    color: var(--cream);
    font-family: 'Lora', serif;
    overflow-x: hidden;
    min-height: 100vh;
    perspective: 1200px;
}

html {
    scroll-behavior: smooth;
}

body.locked {
    overflow: hidden;
    height: 100vh;
}

.entrance-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #060a12;
    cursor: pointer;
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 2s cubic-bezier(0.16, 1, 0.3, 1);
    background: url('assets/cover_orig.jpg') no-repeat center center / cover;
    background-color: #000;
}

.entrance-overlay.is-hidden {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
    visibility: hidden; /* Ensure it's not rendered at all */
}

.entrance-info {
    position: relative;
    z-index: 2;
    text-align: center;
    transform: translateZ(50px);
}

.entrance-names {
    font-family: 'Alex Brush', cursive;
    font-size: clamp(3rem, 10vw, 4.5rem);
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.entrance-date {
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 0.4em;
    font-size: 0.8rem;
    color: var(--gold);
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.enter-btn-wrap {
    margin-top: 1rem;
}

.enter-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 12px 30px;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.enter-btn:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.wax-seal-inducer {
    position: relative;
    width: min(70vw, 360px);
    aspect-ratio: 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent; /* No more sun in the seal */
    animation: inducerPulse 3.5s ease-in-out infinite;
    mix-blend-mode: screen;
}

.seal-image {
    width: 90%;
    height: 90%;
    background-image: url('assets/cover.jpg'); /* New high-end image provided by user */
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--gold-dark);
    mask-image: radial-gradient(circle, black 65%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 65%, transparent 100%);
}

@keyframes inducerPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.35; filter: blur(2px); }
    50% { transform: scale(1.08); opacity: 0.85; filter: blur(0px); }
}

.silk-texture {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-image: url('https://www.transparenttextures.com/patterns/silk.png');
    opacity: 0.3; /* 30% as requested */
    pointer-events: none;
    mix-blend-mode: overlay;
}

.dress-code-icons {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dress-code-icons i {
    position: absolute;
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--gold) !important;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.dress-code-icons .icon-dress-2 {
    opacity: 0;
    transform: scale(0.6) rotate(-15deg);
}

.dress-code-icons.is-swapped .icon-dress-1 {
    opacity: 0;
    transform: scale(0.6) rotate(15deg);
}

.dress-code-icons.is-swapped .icon-dress-2 {
    opacity: 1;
    transform: scale(1) rotate(0);
}


#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Above video, below content */
    pointer-events: none;
    opacity: 1;
    mix-blend-mode: screen;
}

.bg-depth-layer {
    position: fixed;
    inset: -12%;
    z-index: 0;
    pointer-events: none;
    transform: translate3d(calc(var(--depth-x) * -0.35), calc(var(--depth-y) * -0.35), 0);
    transition: transform 0.35s ease-out;
}

/* Removed bg-depth layers ('the sun') for visual clarity per user request */
.bg-depth-layer {
    display: none;
}

/* Removed bg-depth layers and silk for video focus */


.bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease;
}

/* --- RESPONSIVE / MOBILE-FIRST REFACTOR --- */
@media (max-width: 600px) {
    :root {
        --card-padding: 20px;
    }

    .entrance-names {
        font-size: 2.8rem !important;
        white-space: normal !important;
        width: 90% !important;
        line-height: 1.1;
        margin-top: 15px;
    }

    .section {
        padding: 60px 20px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .card {
        width: 100% !important;
        padding: 30px 20px !important;
        margin: 0 !important;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .countdown-container {
        gap: 10px !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    .countdown-item {
        min-width: 70px !important;
    }

    .countdown-val {
        font-size: 2rem !important;
    }

    /* Fix character wrapping in buttons */
    .btn-primary, .rsvp-trigger {
        width: 100% !important;
        max-width: 280px;
        font-size: 1rem !important;
        padding: 15px 20px !important;
    }

    /* Cinematic Video Framing: No zoom bars, no pillarboxing */
    .bg-video, .intro-scrub {
        width: 100vw !important;
        height: 100vh !important;
        object-fit: cover !important;
        object-position: center 30% !important; /* Ensures the wax seal is always focused */
        background: #000;
        transform: translate(-50%, -50%);
    }
}

/* High-end 'Mobile App' Card Polish */
.card {
    background: rgba(10, 15, 25, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fix for the 'sun' masking on mobile */
body::before {
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.bg-video.is-visible {
    opacity: 1;
}

.intro-scrub {
    z-index: -1;
    filter: saturate(1.1) brightness(0.85);
}

.intro-video-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: #060a12;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
.hero-bg {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: -1;
}
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 12;
    background: linear-gradient(90deg, rgba(252, 246, 186, 0.85), rgba(212, 175, 55, 0.95));
    box-shadow: 0 0 14px rgba(252, 246, 186, 0.65);
    transition: width 0.2s ease-out;
}

.scroll-progress.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(20px);
}

#main-content {
    position: relative;
    z-index: 2;
    background: transparent; /* Rely on bg-video */
    mix-blend-mode: normal;
    background-repeat: no-repeat;
    opacity: 1;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

#main-content::before,
#main-content::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

#main-content::before {
    z-index: 1;
    background: transparent; /* Removed noisy radial gradients */
    opacity: calc(0.35 + (var(--scroll-ratio) * 0.25));
    transform: translate3d(0, calc(var(--scroll-ratio) * -60px), 0) scale(calc(1 + (var(--scroll-ratio) * 0.08)));
}

#main-content::after {
    z-index: 1;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 32%, rgba(255, 255, 255, 0.03) 62%, transparent 100%);
    mix-blend-mode: screen;
    opacity: 0.28;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 140px 20px;
    text-align: center;
    opacity: 0;
    filter: blur(20px);
    transform: translateY(80px) perspective(1200px) rotateX(10deg) scale(0.95);
    transition: 
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.section.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) perspective(1200px) rotateX(0) scale(1);
}

.saga-card {
    position: relative;
    overflow: hidden;
}

.silk-texture {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: transparent; /* Removed noisy radial gradients */
    pointer-events: none;
    animation: heroFlow 10s ease-in-out infinite alternate;
}

.icon-hero {
    width: 60px; height: 60px;
    color: var(--gold);
    margin-bottom: 30px;
    filter: drop-shadow(0 0 10px var(--gold));
}

.hero-content {
    position: relative;
    z-index: 2;
    transform: translate3d(0, calc(var(--scroll-ratio) * -20px), 0);
    transition: transform 0.25s ease-out;
}

[data-immersive-text] {
    display: inline-block;
}

.immersive-text .text-word {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.32ch;
}

.immersive-text .text-char {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 1.2em, 0) scale(0.92) rotate(6deg);
    filter: blur(10px);
    transition:
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.7s ease,
        filter 0.8s ease;
    transition-delay: calc(var(--char-index) * 18ms);
    will-change: transform, opacity, filter;
}

.immersive-text.is-visible .text-char,
.immersive-text.is-typing .text-char.is-on {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    filter: blur(0);
}

.immersive-text.is-exiting .text-char {
    opacity: 0;
    transform:
        translate3d(calc((var(--char-shift) - 0.5) * 36px), calc((-28px - (var(--char-rise) * 26px))), 0)
        scale(0.88)
        rotate(calc((var(--char-spin) - 0.5) * 28deg));
    filter: blur(16px);
}

.hero-names {
    font-family: 'Alex Brush', cursive;
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    color: var(--gold-bright);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
}

.hero-quote {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.1rem;
    max-width: 85%;
    margin: 0 auto 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.quote {
    font-size: 1.8rem;
    font-style: italic;
    max-width: 800px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.verse {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 5px;
    opacity: 0.8;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.date-scroll .year {
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.date-scroll {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    font-family: 'Playfair Display', serif;
    gap: 10px;
}

.year { font-size: 4rem; font-weight: 900; color: var(--gold); }
.full-date { font-size: 1.5rem; letter-spacing: 10px; text-transform: uppercase; }

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    animation: bounce 2s infinite;
}

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

.saga-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(22px) saturate(120%);
    -webkit-backdrop-filter: blur(22px) saturate(120%);
    padding: 60px 40px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 500px;
    width: 100%;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.saga-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow:
        0 42px 78px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.saga-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.15) 49%, transparent 84%);
    transform: translateX(-120%);
    transition: transform 1s ease;
    pointer-events: none;
}

.saga-card:hover::after {
    transform: translateX(120%);
}

.card-icon {
    width: 40px; height: 40px;
    color: var(--gold);
    margin-bottom: 20px;
}

.saga-card h2 {
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 4px;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: white;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.grid-item .label { font-size: 0.7rem; color: var(--gold); letter-spacing: 2px; display: block; margin-bottom: 10px; opacity: 0.95; }
.grid-item .value { font-size: 1.1rem; font-weight: 700; color: white; }

.address { font-size: 0.9rem; opacity: 0.85; margin-bottom: 40px; }

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-gradient);
    color: black;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 900;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.btn-action:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    filter: brightness(1.05);
}

/* Icons & Rules */
.style-title { font-size: 2rem; font-weight: 900; letter-spacing: 5px; color: white; }
.style-note { font-size: 0.9rem; margin-top: 10px; opacity: 0.95; color: var(--cream); }
.divider { width: 100px; height: 1px; background: var(--gold-border); margin: 30px auto; }
.no-kids { display: flex; align-items: center; justify-content: center; gap: 15px; opacity: 0.85; color: var(--cream); font-size: 0.85rem; letter-spacing: 1px; }
.icon-forbidden { width: 20px; color: var(--gold); opacity: 0.8; }

.holder-info {
    margin-top: 35px;
    font-size: 1rem;
    color: var(--gold-bright);
    letter-spacing: 1.5px;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    opacity: 0.9;
}
.holder-info strong { font-size: 1.15rem; color: white; display: block; margin-bottom: 5px; }

.account-list { display: flex; flex-direction: column; gap: 15px; margin: 30px 0; }
.account-item {
    background: rgba(255,255,255,0.06);
    padding: 20px; border-radius: 20px;
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}
.account-item:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.24);
}
.bank-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* Logo boxes removed for cleaner design */
.bank { font-weight: 900; color: var(--gold-bright); font-size: 0.82rem; letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 2px; }
.copy-hint { font-size: 0.6rem; color: white; opacity: 0.5; letter-spacing: 1px; text-transform: uppercase; }
.acc-num { font-family: monospace; font-size: 1.15rem; color: white; }
.icon-copy { width: 18px; opacity: 0.6; color: var(--gold); }

.account-item {
    animation: pulseGently 4s infinite ease-in-out;
}

@keyframes pulseGently {
    0%, 100% { transform: translateY(0); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
    50% { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.3); border-color: rgba(212, 175, 55, 0.3); }
}

/* Footer */
.footer {
    position: relative;
    padding: 120px 20px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.85));
    overflow: hidden;
    text-align: center;
}

.final-msg { 
    font-family: 'Alex Brush', cursive;
    font-size: 2.2rem; 
    margin-bottom: 40px; 
    color: var(--gold-bright);
}

.countdown { 
    display: flex; 
    gap: 32px; 
    margin: 0 auto 100px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 50px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    max-width: fit-content;
}

.unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.unit span { 
    font-family: 'Playfair Display', serif; 
    font-size: 3rem; 
    font-weight: 900; 
    color: var(--gold-bright); 
    line-height: 1;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.unit label { 
    font-size: 0.75rem; 
    letter-spacing: 2.5px; 
    padding-top: 12px;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.85;
}

@media (max-width: 600px) {
    .countdown {
        gap: 10px;
        padding: 25px;
        border-radius: 20px;
    }
    .unit {
        min-width: 70px;
    }
    .unit span {
        font-size: 2.2rem;
    }
}

/* Branding footer removed for cleaner experience */

/* Toast */
.toast {
    position: fixed; 
    bottom: 40px; 
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gold); 
    color: black;
    padding: 12px 35px; 
    border-radius: 40px;
    font-weight: 900; 
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.toast.show { 
    transform: translateX(-50%) translateY(0); 
    opacity: 1;
}

/* Silk Shimmer Effect */
.saga-card {
    position: relative;
    overflow: hidden;
}

.saga-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 300%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: rotate(25deg);
    animation: silkShimmer 6s infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
}


@keyframes silkShimmer {
    0% { transform: rotate(25deg) translate(-100%, -50%); }
    30% { transform: rotate(25deg) translate(100%, 50%); }
    100% { transform: rotate(25deg) translate(100%, 50%); }
}

@keyframes heroFlow {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.75;
    }
    100% {
        transform: translate3d(-1.3%, 1.1%, 0) scale(1.02);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .main-title { font-size: 3rem; }
    .unit span { font-size: 2.4rem; }
    .unit { min-width: 60px; }
    .countdown { gap: 15px; padding: 20px; }
    .final-msg { font-size: 1.8rem; }
    .envelope-core {
        width: min(84vw, 360px);
    }
    .envelope-letter {
        inset: 14% 9% 8%;
        padding: 18px 14px;
    }
    .letter-content h3 {
        font-size: 2.45rem;
    }
    .letter-content p {
        font-size: 0.72rem;
        letter-spacing: 2.8px;
    }

    .bank {
        font-size: 0.68rem;
    }
    .acc-num {
        font-size: 0.95rem;
    }
    .date-scroll {
        gap: 6px;
    }
    .date-scroll .year,
    .year {
        font-size: 3.3rem;
    }
    .full-date {
        font-size: 1.05rem;
        letter-spacing: 5px;
    }
}

/* New Styles */
.highlight {
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(212, 175, 55, 0.95);
    color: black;
    padding: 14px 28px;
    border-radius: 35px;
    font-size: 0.85rem;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    z-index: 5000;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    letter-spacing: 2px;
}

.toast.is-active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Animated Icons */
.card-icon, .icon-hero, .icon-copy {
    animation: iconFloat 4.5s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(4deg); }
}

.wax-seal i {
    animation: heartBeat 2.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.18); }
    30% { transform: scale(1); }
    45% { transform: scale(1.18); }
}

/* Bespoke Icon Animations */
.section.details .card-icon {
    animation: receptionOnTheWay 6s ease-in-out infinite;
    display: block !important;
    visibility: visible !important;
    color: var(--gold) !important;
}

.section.gifts .card-icon {
    animation: giftCycle 6.5s ease-in-out infinite;
}

@keyframes receptionOnTheWay {
    0% { transform: translateX(-40px) translateY(10px) rotate(-15deg); opacity: 0.4; }
    25% { transform: translateX(0px) translateY(-10px) rotate(0deg); opacity: 1; }
    50% { transform: translateX(40px) translateY(10px) rotate(15deg); opacity: 0.4; }
    75% { transform: translateX(0px) translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateX(-40px) translateY(10px) rotate(-15deg); opacity: 0.4; }
}

@keyframes giftCycle {
    0% { transform: scale(0) translateY(20px); opacity: 0; }
    15% { transform: scale(1) translateY(0); opacity: 1; } /* Fade In / Materialize */
    45% { transform: scale(1.6) translateY(-10px); opacity: 1; } /* Grow Big */
    65% { transform: scale(2.2) translateY(-30px); opacity: 0; } /* Explode / Fade Out */
    100% { transform: scale(0); opacity: 0; }
}

/* Layout Reductions and Cleanup */
.section.gifts, .section.footer {
    padding-top: 30px;
    padding-bottom: 30px;
}

#footer {
    min-height: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 40px;
    font-family: 'Lora', serif; /* Base font */
    text-align: center;
}

.final-msg {
    font-family: 'Lora', serif; /* Specifically ensure serif for non-highlighted text */
    font-size: 1.25rem;
    color: var(--cream);
    max-width: 85%;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.final-msg .highlight {
    font-family: 'Alex Brush', cursive;
    font-size: 1.9rem;
    color: var(--gold-bright);
    margin: 0 5px;
    display: inline-block;
    vertical-align: middle;
}

/* Dress Code Red Warning */
.style-warning {
    margin: 15px 0;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.warning-dim {
    color: #a52a2a; /* Deep Burgundy/Red */
    font-family: 'Lora', serif;
}

.warning-bold {
    color: #ff3333; /* Vibrant Warning Red */
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

/* --- Enterprise Footer Redesign --- */
.enterprise-footer {
    background: rgba(10, 15, 25, 0.85);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 80px 20px 40px !important;
    position: relative;
    z-index: 20;
}

.footer-corporate {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.brand-name {
    font-family: 'Alex Brush', cursive;
    font-size: 1.8rem;
    color: var(--gold-bright);
}

.brand-tag {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--gold-dark);
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.f-link {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.f-link:hover {
    color: var(--gold);
}

.footer-mid {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.countdown-mini {
    display: flex;
    gap: 25px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 40px;
    border-radius: 100px;
    border: 1px solid rgba(212, 175, 55, 0.08);
}

.c-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.c-unit span {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.4rem;
    color: var(--gold);
}

.c-unit label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--gold-dark);
    margin-top: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--gold-dark);
    opacity: 0.7;
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    padding-top: 30px;
}

.expertos-credit a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .footer-brand { text-align: center; }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .countdown-mini {
        gap: 15px;
        padding: 15px 25px;
    }
}

/* Removal of duplicate background/light effects mentioned as "horrible" */
.bg-depth-layer-1, .bg-depth-layer-2 {
    display: none !important;
}

#main-content::before {
    display: none !important;
}

/* Corrected Mobile Media Queries */
@media (max-width: 768px) {
    .section { padding: 80px 24px; }
    .saga-card { padding: 45px 30px; border-radius: 32px; }
    .style-title { font-size: 1.7rem; }
}

@media (max-width: 600px) {
    .section { padding: 70px 20px; }
    .hero-content { padding-top: 80px; }
    .main-title { font-size: 2.8rem; }
}

/* --- Refined Layout & Interactivity --- */

.icon-center-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
}

/* Ensure all card icons are centered */
.card-icon {
    display: block;
    margin: 0 auto;
}

.map-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
}

.btn-map {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gold-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-map:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.btn-map i {
    width: 24px;
    height: 24px;
}

