/* ══════════════════════════════════════════════════
   PRANJAL & SAVANI — Premium Wedding Invitation CSS
   ══════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────── */
:root {
    /* Envelope Sizing - Responsive Variable Set */
    --env-w: 460px;
    --env-h: 300px;
    --env-half-w: 230px;
    --env-flap-h: 150px;

    /* Light Rose & Royal Gold Theme (Pink Floral Vibe) */
    --cream: #FAF5F0; /* Soft luxury cream */
    --cream-dark: #F5E9DF;
    --parchment: #FFFFFF;
    --parchment-dark: #FAF0E6;

    --gold: #D4AF37; /* Royal gold */
    --gold-light: #FBE599;
    --gold-dark: #AA7C11;
    --gold-deep: #8A640F;
    --marigold: #E85A71; /* Soft rose pink */
    --marigold-yellow: #F497A9;
    --gold-gradient: linear-gradient(135deg, #FBE599 0%, #D4AF37 40%, #AA7C11 100%);
    --gold-gradient-simple: linear-gradient(to bottom, #D4AF37, #AA7C11);

    --text-primary: #33221A; /* Dark elegant brown for premium contrast */
    --text-secondary: #5C483D;
    --text-muted: #8C766B;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-hover: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(212, 175, 55, 0.35);
    --glass-shadow: 0 20px 60px rgba(139, 92, 26, 0.08);
    --glass-shadow-hover: 0 30px 80px rgba(139, 92, 26, 0.12), 0 6px 20px rgba(212, 175, 55, 0.1);

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-display: 'Cinzel', serif;
    --font-sans: 'Montserrat', system-ui, sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* System Dark Mode Override disabled to lock luxury light theme */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --cream: #FAF5F0;
        ...
    }
}
*/

/* Mobile Envelope Sizing */
@media (max-width: 500px) {
    :root {
        --env-w: 320px;
        --env-h: 210px;
        --env-half-w: 160px;
        --env-flap-h: 105px;
    }
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.65;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Procedural noise texture overlay on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.04;
    pointer-events: none;
    z-index: 21000; /* overlay above everything, including intro */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ambient light orbs */
.ambient-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
    mix-blend-mode: multiply;
    animation: floatOrb 22s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: 10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, #F7D070 0%, rgba(247, 208, 112, 0) 70%);
}

.orb-2 {
    bottom: -15%;
    right: 10%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, #D4AF37 0%, rgba(212, 175, 55, 0) 70%);
    animation-delay: -6s;
    animation-duration: 30s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5vw, 6vh) scale(1.15); }
    100% { transform: translate(-4vw, -5vh) scale(0.9); }
}

@media (prefers-color-scheme: dark) {
    .orb {
        opacity: 0.18;
        mix-blend-mode: screen;
    }
    .orb-1 {
        background: radial-gradient(circle, #D4AF37 0%, rgba(212, 175, 55, 0) 70%);
    }
    .orb-2 {
        background: radial-gradient(circle, #8F6D20 0%, rgba(143, 109, 32, 0) 70%);
    }
}

/* ─── PETAL CANVAS (ambient background) ─────────── */
#petal-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ─── 3D CANVAS ──────────────────────────────────── */
#canvas-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at 60% 40%, var(--cream) 0%, var(--cream-dark) 90%);
    transition: background 0.4s ease;
}

/* ─── GLASS CARD UTILITY ─────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease-out);
}

/* ════════════════════════════════════════════════════
   INTRO ENVELOPE OVERLAY
════════════════════════════════════════════════════ */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.4s ease;
}

/* Floating petal text behind envelope */
.overlay-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    color: var(--gold);
    opacity: 0.08;
    font-size: 2rem;
    animation: petalDrift linear infinite;
    user-select: none;
}
.p1 { left: 5%;  font-size: 3rem; animation-duration: 14s; animation-delay: 0s;   top: -10%; }
.p2 { left: 20%; font-size: 2rem; animation-duration: 11s; animation-delay: 2s;   top: -5%;  }
.p3 { left: 40%; font-size: 4rem; animation-duration: 16s; animation-delay: 1s;   top: -8%;  }
.p4 { left: 60%; font-size: 2.5rem; animation-duration: 13s; animation-delay: 3s; top: -12%; }
.p5 { left: 75%; font-size: 3.5rem; animation-duration: 15s; animation-delay: 0.5s; top: -6%;}
.p6 { left: 85%; font-size: 2rem; animation-duration: 12s; animation-delay: 4s;   top: -10%; }
.p7 { left: 30%; font-size: 1.5rem; animation-duration: 10s; animation-delay: 1.5s;top: -4%; }
.p8 { left: 55%; font-size: 2.8rem; animation-duration: 17s; animation-delay: 2.5s;top: -7%; }

@keyframes petalDrift {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.1; }
    90%  { opacity: 0.1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* ── Intro Layout ── */
.intro-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    max-width: 520px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Top text above envelope */
.intro-header-text {
    text-align: center;
    margin-bottom: 0.5rem;
}

.intro-subtitle-top {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: #69362c; /* Rustic Garnet */
    text-transform: uppercase;
    opacity: 0.85;
}

/* ── Envelope Body ── */
.intro-envelope {
    position: relative;
    width: var(--env-w);
    height: var(--env-h);
    background: #e2d9c8; /* Warm ivory/cream from user image */
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(139, 92, 26, 0.12), 0 10px 25px rgba(139, 92, 26, 0.06);
    perspective: 1200px;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Flap - Top triangle */
.intro-flap {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 58%;
    background: linear-gradient(to bottom, #e2d9c8 40%, #d1c8b7 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    z-index: 4;
    transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0 4px 6px rgba(139, 92, 26, 0.08));
}

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

/* Inner flap shadow detail */
.flap-inner-shadow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 80%, rgba(139, 92, 26, 0.04) 100%);
    pointer-events: none;
}

/* Back of envelope (inside inner pocket) */
.intro-back {
    position: absolute;
    inset: 0;
    background: #d5c9b8; /* Shaded inner back wall */
    border-radius: 8px;
    z-index: 0;
}

/* Left Flap */
.intro-left-flap {
    position: absolute;
    left: 0; top: 0;
    width: 50.5%;
    height: 100%;
    background: linear-gradient(35deg, #e2d9c8 50%, #d1c8b7 100%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    z-index: 2;
    border-radius: 8px 0 0 8px;
}

/* Right Flap */
.intro-right-flap {
    position: absolute;
    right: 0; top: 0;
    width: 50.5%;
    height: 100%;
    background: linear-gradient(-35deg, #e2d9c8 50%, #d1c8b7 100%);
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    z-index: 2;
    border-radius: 0 8px 8px 0;
}

/* Bottom Flap */
.intro-bottom-flap {
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 58%;
    background: linear-gradient(to top, #e2d9c8 40%, #d1c8b7 100%);
    clip-path: polygon(0 100%, 100% 100%, 50% 0);
    z-index: 3;
    border-radius: 0 0 8px 8px;
    filter: drop-shadow(0 -3px 5px rgba(139, 92, 26, 0.05));
}

/* ── Intro Card (inside envelope) ── */
.intro-card {
    position: absolute;
    bottom: 14px;
    left: 5%;
    width: 90%;
    height: calc(100% - 28px);
    background: linear-gradient(160deg, #FFFDF9 0%, #FDF8EE 100%);
    border-radius: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border: 1px solid rgba(197,168,92,0.2);
    overflow: hidden;
    opacity: 0; /* Hidden until envelope opens */
}

.intro-card-border {
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border: 1px solid rgba(197, 168, 92, 0.35);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    text-align: center;
    gap: 0.4rem;
}

.intro-ornament {
    width: 140px;
    height: 18px;
    flex-shrink: 0;
}

.top-ornament { margin-bottom: 0.5rem; }
.bottom-ornament { margin-top: 0.5rem; }

.card-pretitle {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold-dark);
    text-transform: uppercase;
}

.card-names {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.1;
}

.card-names em {
    font-style: italic;
    color: var(--gold-dark);
    font-size: 1.5rem;
}

.card-date-text {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.card-divider {
    font-size: 0.6rem;
    color: var(--gold);
    letter-spacing: 3px;
}

.card-venue-hint {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ── Wax Seal ── */
.wax-seal {
    position: absolute;
    top: 155px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: #ffffff;
    border-radius: 50%;
    border: 3px solid #706f5b; /* Sage Whisper — matches reference */
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.15),
        0 8px 20px rgba(139, 92, 26, 0.18),
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.wax-seal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.wax-seal:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.2),
        0 12px 25px rgba(139, 92, 26, 0.22),
        0 0 25px rgba(230, 201, 74, 0.35),
        inset 0 2px 4px rgba(255,255,255,0.35),
        inset 0 -2px 4px rgba(0,0,0,0.15);
}

.wax-seal-inner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wax-seal-inner span {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFF8E0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    user-select: none;
}

/* ── Intro Footer / Hint ── */
.intro-footer {
    text-align: center;
}

.seal-hint {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: #69362c; /* Rustic Garnet */
    text-transform: uppercase;
    opacity: 0.85;
    animation: breathe 2.5s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

/* Mobile intro adjustments */
@media (max-width: 520px) {
    .intro-envelope {
        width: 92vw;
        height: 56vw;
    }
    .wax-seal {
        top: 28vw;
        width: 60px;
        height: 60px;
    }
    .wax-seal-inner {
        width: 46px;
        height: 46px;
    }
    .card-names {
        font-size: 1.5rem;
    }
}

/* ════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════ */
.top-nav {
    position: fixed;
    top: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.85rem 2.5rem;
    display: flex;
    gap: 2.5rem;
    z-index: 100;
    box-shadow: var(--glass-shadow);
}

.top-nav a {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.top-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0; right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease-out);
}

.top-nav a:hover::after,
.top-nav a.active::after {
    transform: scaleX(1);
}

.top-nav a:hover,
.top-nav a.active {
    color: var(--gold-dark);
}

/* Hamburger */
.hamburger {
    display: none;
    position: fixed;
    top: 1.4rem;
    right: 1.4rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(253, 250, 245, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-links a {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 3px;
    transition: color 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-links a:hover { color: var(--gold-dark); }

/* Side dots */
.side-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--parchment-dark);
    display: block;
    transition: all 0.3s var(--ease-out);
    border: 1.5px solid transparent;
}

.dot.active {
    background: var(--gold-dark);
    transform: scale(1.4);
    border-color: rgba(197,168,92,0.3);
    box-shadow: 0 0 0 4px rgba(197,168,92,0.15);
}

/* Music button */
.music-btn {
    display: none; /* Hidden on envelope page */
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 99999 !important;
    pointer-events: auto !important;
    transition: transform 0.3s var(--ease-spring);
    opacity: 1 !important;
}

.music-btn:hover { transform: scale(1.08); }

.vinyl {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #2a2a2a 30%, #111 60%, #333 70%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35), inset 0 0 10px rgba(255,255,255,0.15);
}

.vinyl::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--gold-light);
    border-radius: 50%;
    border: 3px solid #111;
}

.vinyl svg {
    color: var(--gold-light);
    z-index: 1;
    position: relative;
}

.vinyl.playing {
    animation: spinVinyl 3.5s linear infinite;
}

@keyframes spinVinyl {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════════
   MAIN SCROLL CONTENT
════════════════════════════════════════════════════ */
#scroll-main {
    position: relative;
    z-index: 2;
}

.section {
    position: relative;
    z-index: 2;
}

.section-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

/* Section header */
.section-head {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--gold-dark);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 1.2rem;
}

.section-ornament {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 5px;
}

/* Scroll animations */
.gs-reveal {
    opacity: 0;
}

.fade-up {
    opacity: 0;
}

/* ════════════════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════════════════ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 5rem;
}

.hero-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 860px;
}

/* Ornamental vine columns */
.hero-ornament-left,
.hero-ornament-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.6;
}

.vine-svg {
    width: 50px;
    height: 340px;
}

/* Hero Card */
.hero-card {
    position: relative;
    flex: 1;
    max-width: 640px;
    padding: 5.5rem 5rem;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 30px 90px rgba(44, 36, 28, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px double rgba(212, 175, 55, 0.35);
    pointer-events: none;
    border-radius: 12px;
}

.hero-card::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(197,168,92,0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Corner ornaments */
.corner {
    position: absolute;
    font-size: 1.4rem;
    color: var(--gold);
    opacity: 0.8;
    z-index: 10;
    transition: transform 0.4s var(--ease-spring);
    user-select: none;
}
.corner.tl { top: 1.2rem; left: 1.2rem; }
.corner.tr { top: 1.2rem; right: 1.2rem; }
.corner.bl { bottom: 1.2rem; left: 1.2rem; }
.corner.br { bottom: 1.2rem; right: 1.2rem; }

.hero-card:hover .corner {
    transform: scale(1.15) rotate(45deg);
}

/* Hero typography */
.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--gold-dark);
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: block;
}

.hero-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 2.5rem;
    line-height: 1;
}

.name-top,
.name-bottom {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 6px;
    display: block;
}

.name-amp {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--gold-dark);
    display: block;
    line-height: 1.4;
}

/* Top floral element */
.hero-top-floral {
    margin: 0 auto 1.5rem;
    text-align: center;
    opacity: 0.9;
}

/* Flourish divider */
.hero-flourish {
    margin: 0 auto 2rem;
    max-width: 340px;
}

.hero-flourish svg {
    width: 100%;
    height: 24px;
}

.hero-together {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 2.5rem;
}

/* Date/location strip */
.hero-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    margin-bottom: 2.5rem;
}

.hero-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.detail-label {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-value {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.detail-sep {
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 2px;
}

/* CTA buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient-simple);
    color: #FFF8E8;
    text-decoration: none;
    padding: 0.95rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(143, 109, 32, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, filter 0.2s ease;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(143, 109, 32, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
    filter: brightness(1.08);
}

.btn-gold:active {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.7rem 1.5rem;
    font-size: 0.68rem;
}

.btn-full {
    width: 100%;
    border-radius: 8px;
    padding: 1.1rem;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--gold-dark);
    text-decoration: none;
    padding: 0.95rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1.5px solid var(--gold);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.btn-outline:hover {
    background: rgba(197,168,92,0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197,168,92,0.2);
}

/* Scroll Prompt */
.scroll-prompt {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: breathe 3s ease-in-out infinite;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

/* ════════════════════════════════════════════════════
   LOVE QUOTE INTERSTITIAL
════════════════════════════════════════════════════ */
.love-quote-strip {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 2rem 0;
    max-width: 700px;
    margin: 0 auto;
}

.lq-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.lq-ornament {
    flex-shrink: 0;
}

.lq-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    letter-spacing: 0.3px;
    quotes: none;
    flex: 1;
    max-width: 500px;
}

@media (max-width: 768px) {
    .love-quote-strip { padding: 1rem 1.5rem 0; }
    .lq-text { font-size: 1rem; }
    .lq-inner { gap: 1rem; }
}

/* ─── STORY SECTION ─── */
.story-section {
    background: linear-gradient(180deg, transparent, rgba(23, 42, 69, 0.45) 50%, transparent);
    transition: background-color 0.8s ease;
}


.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.story-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s var(--ease-out);
}

.story-card:hover {
    transform: translateY(-6px);
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
}

.story-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(247,208,112,0.1);
    border: 1px solid rgba(247,208,112,0.25);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.story-card:hover .story-icon {
    background: rgba(247,208,112,0.18);
    box-shadow: 0 0 20px rgba(247,208,112,0.25);
}

.story-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.story-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── DETAILS SECTION ─── */
.details-section {
    background: linear-gradient(180deg, transparent, rgba(16, 30, 50, 0.45) 50%, transparent);
    transition: background-color 0.8s ease;
}

/* Countdown */
.countdown-wrap {
    padding: 3rem 3rem 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: block;
}

.countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.countdown-box {
    text-align: center;
    padding: 1.2rem 1.5rem;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.7);
    min-width: 80px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.countdown-box:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.7);
}

.countdown-box span {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold-dark);
    display: block;
    line-height: 1;
}

.countdown-box p {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.countdown-sep {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.5;
    line-height: 1;
    margin-top: -1rem;
}

/* Scratch Cards */
.scratch-wrap {
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.scratch-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: block;
}

.scratch-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.2rem;
}

.scratch-coin {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid rgba(197,168,92,0.25);
    background: var(--cream);
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.coin-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-dark);
    user-select: none;
    z-index: 1;
}

.scratch-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: crosshair;
    border-radius: 50%;
}

.scratch-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Parchment Scroll */
.parchment {
    position: relative;
    max-width: 680px;
    margin: 2rem auto;
    background: linear-gradient(160deg, #172A45 0%, #0D1F38 100%);
    padding: 3.5rem 3rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.45), 0 4px 15px rgba(0,0,0,0.25);
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
}

.parchment-rod {
    position: absolute;
    left: -3%;
    width: 106%;
    height: 18px;
    background: linear-gradient(to bottom, #8B5E2A, #5C3D12, #3D2508);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 2px rgba(255,255,255,0.2);
    z-index: 4;
}

.top-rod { top: -9px; }
.bottom-rod { bottom: -9px; }

.parchment-body { position: relative; z-index: 2; }

.parchment-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gold-deep);
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 1.8rem;
    border-left: 2px solid rgba(197,168,92,0.35);
    max-width: 580px;
    margin: 0 auto;
}

.tl-event {
    position: relative;
    padding-bottom: 2rem;
}

.tl-event.last { padding-bottom: 0; }

.tl-event::before {
    content: '';
    position: absolute;
    left: calc(-1.8rem - 5px);
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold-gradient-simple);
    border: 2px solid var(--parchment);
    box-shadow: 0 0 0 3px rgba(197,168,92,0.25);
}

.tl-date {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--gold-dark);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.tl-content h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.tl-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Essentials */
.essentials-wrap {
    margin-top: 2rem;
    text-align: center;
}

.essentials-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    display: block;
}

.essentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.essential-card {
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s var(--ease-out);
}

.essential-card:hover {
    transform: translateY(-5px);
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
}

.ess-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(197,168,92,0.1);
    border: 1px solid rgba(197,168,92,0.22);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.essential-card h4 {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.essential-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.color-swatches {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1rem;
}

.swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    display: inline-block;
}

.hashtag-badge {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 1px;
}

/* Venue CTA */
.venue-cta {
    margin-top: 3rem;
}

.venue-cta-inner {
    padding: 3rem 3rem;
    text-align: center;
}

.venue-cta-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold-dark);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.venue-cta-inner h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.venue-cta-inner p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ════════════════════════════════════════════════════
   RSVP SECTION
════════════════════════════════════════════════════ */
.rsvp-section {
    background: linear-gradient(180deg, transparent, rgba(240,232,214,0.3), transparent);
}

.rsvp-deadline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* RSVP Envelope */
.rsvp-envelope-container {
    perspective: 1200px;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 140px;
    text-align: center;
}

.rsvp-envelope-wrap {
    position: relative;
    width: 100%;
    height: 360px;
    background: linear-gradient(160deg, #E8D9BC, #D9C9A4);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 50px rgba(44,36,28,0.12);
    transform-style: preserve-3d;
}

.rsvp-flap {
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 0;
    border-left: 300px solid transparent;
    border-right: 300px solid transparent;
    border-top: 180px solid #F0E2C4;
    transform-origin: top center;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 4;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

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

.rsvp-pocket {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(160deg, #DFD0B0, #C9B890);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 50% 62%, 0 0);
    z-index: 3;
    border-radius: 0 0 12px 12px;
}

.rsvp-card {
    position: absolute;
    bottom: 12px;
    left: 4%;
    width: 92%;
    z-index: 2;
    padding: 2.5rem 2.5rem 2rem;
    border-radius: 10px;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.rsvp-envelope-wrap.open .rsvp-card {
    transform: translateY(-250px);
    z-index: 5;
    box-shadow: 0 25px 50px rgba(44,36,28,0.14);
}

.rsvp-form-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-divider {
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 1.8rem;
}

/* Form elements */
.form-row {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 0;
}

.form-row .form-field {
    flex: 1;
}

.form-field {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

input, select {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.65);
    border: 1.5px solid rgba(0,0,0,0.09);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    appearance: none;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 0 3px rgba(197,168,92,0.18);
}

input::placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.env-hint {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(180deg, transparent, rgba(240,232,214,0.25));
}

.footer-monogram {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--gold-dark);
    margin-bottom: 0.8rem;
    opacity: 0.7;
}

.footer-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.footer-date {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-ornament {
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.footer-credit {
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-ornament-left,
    .hero-ornament-right {
        display: none;
    }

    .hero-card {
        padding: 4rem 3rem;
    }

    .name-top,
    .name-bottom {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .top-nav { display: none; }
    .side-dots { display: none; }
    .hamburger { display: flex; }

    .section-inner { padding: 5rem 1.5rem; }
    .section-title { font-size: 2.2rem; }

    .hero-section { padding: 5rem 1.5rem 4rem; }
    .hero-card { padding: 3.5rem 2rem 3rem; }

    .name-top,
    .name-bottom {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .name-amp { font-size: 1.8rem; }
    .hero-together { font-size: 1rem; }
    .hero-details { gap: 1rem; }

    .story-grid { grid-template-columns: 1fr; }
    .essentials-grid { grid-template-columns: 1fr; }

    .countdown-box { min-width: 65px; padding: 1rem; }
    .countdown-box span { font-size: 2rem; }
    .countdown-grid { gap: 0.5rem; }
    .countdown-wrap { padding: 2rem 1.5rem; }

    .scratch-row { gap: 1rem; }
    .scratch-coin { width: 90px; height: 90px; }
    .coin-text { font-size: 1.6rem; }

    .parchment { padding: 2.5rem 1.5rem; }
    .parchment-rod { left: -4%; width: 108%; }

    .rsvp-envelope-container { padding-top: 200px; }
    .rsvp-envelope-wrap { height: 300px; }
    .rsvp-flap {
        border-left-width: 50vw;
        border-right-width: 50vw;
        border-top-width: 150px;
    }
    .rsvp-pocket { height: 150px; clip-path: polygon(0 100%, 100% 100%, 100% 0, 50% 60%, 0 0); }
    .rsvp-card { padding: 2rem 1.5rem 1.5rem; }
    .rsvp-envelope-wrap.open .rsvp-card { transform: translateY(-270px); }
    .rsvp-form-title { font-size: 1.5rem; }
    .form-row { flex-direction: column; gap: 0; }

    .hero-actions { flex-direction: column; align-items: center; }
    .btn-gold,
    .btn-outline { width: 100%; max-width: 300px; justify-content: center; }

    .venue-cta-inner { padding: 2rem 1.5rem; }
    .scratch-wrap { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .name-top,
    .name-bottom {
        font-size: 2rem;
        letter-spacing: 3px;
    }
    .hero-card { padding: 3rem 1.5rem 2.5rem; }
    .section-title { font-size: 1.9rem; }
    .countdown-box { min-width: 55px; padding: 0.8rem 0.6rem; }
    .countdown-box span { font-size: 1.7rem; }
    .countdown-sep { font-size: 1.5rem; }
}

/* ════════════════════════════════════════════════════
   PREMIUM DESIGN ENHANCEMENTS — Reference Site Inspired
════════════════════════════════════════════════════ */

/* ─── Subtle grain texture overlay on body ──────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ─── Background ambient light orbs ─────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 40% at 80% 20%, rgba(214, 189, 130, 0.08) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(197, 168, 92, 0.06) 0%, transparent 65%),
        radial-gradient(ellipse 35% 30% at 50% 50%, rgba(253, 250, 245, 0.08) 0%, transparent 70%);
}

/* ─── Gold shimmer animation on primary button ──── */
.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0) 70%
    );
    transform: skewX(-15deg);
    animation: btnShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnShimmer {
    0%   { left: -80%; }
    60%  { left: 130%; }
    100% { left: 130%; }
}

/* ─── Wax seal pulsing halo ──────────────────────── */
.wax-seal::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1.5px solid rgba(230, 200, 74, 0.3);
    animation: sealPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

.wax-seal::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(230, 200, 74, 0.15);
    animation: sealPulse 2.5s ease-in-out 0.5s infinite;
    pointer-events: none;
}

@keyframes sealPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%       { transform: scale(1.06); opacity: 1; }
}

/* ─── Hero card shine border ─────────────────────── */
.hero-card {
    position: relative;
}

.hero-card::before,
.hero-card::after {
    border-radius: 16px;
}

/* ─── Section title gradient text ────────────────── */
.section-title {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Improved glass-card hover for story/essentials cards ── */
.story-card,
.essential-card {
    position: relative;
    overflow: hidden;
}

.story-card::before,
.essential-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197,168,92,0.5), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.story-card:hover::before,
.essential-card:hover::before {
    transform: scaleX(1);
}

/* ─── Improved section dividers ──────────────────── */
.section-ornament {
    position: relative;
    display: inline-block;
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 8px;
    margin-top: 0.5rem;
}

/* ─── Timeline event hover ───────────────────────── */
.tl-event {
    transition: transform 0.3s ease;
}

.tl-event:hover {
    transform: translateX(5px);
}

.tl-event:hover::before {
    background: var(--gold-gradient);
    box-shadow: 0 0 0 4px rgba(197,168,92,0.3);
}

/* ─── Parchment enhanced texture ─────────────────── */
.parchment {
    background-image:
        linear-gradient(160deg, #172A45 0%, #0D1F38 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    border: 1px solid rgba(247, 208, 112, 0.25);
    border-radius: 12px;
}

/* ─── RSVP envelope glow when open ───────────────── */
.rsvp-envelope-wrap.open {
    box-shadow: 0 30px 70px rgba(44,36,28,0.18), 0 0 40px rgba(197,168,92,0.1);
}

/* ─── Countdown box on change animation ──────────── */
.countdown-box span.flip {
    animation: countFlip 0.35s ease;
}

@keyframes countFlip {
    0%   { transform: translateY(-8px); opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}

/* ─── Improved scroll indicator ─────────────────── */
.scroll-prompt {
    opacity: 0.7;
}

/* ─── Mobile navigation glass improvement ────────── */
@media (max-width: 768px) {
    .hamburger {
        box-shadow: 0 8px 24px rgba(44,36,28,0.12);
    }
    
    .music-btn {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 48px;
        height: 48px;
    }
}

/* ─── Footer ambient glow ────────────────────────── */
.site-footer {
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(197,168,92,0.08), transparent 70%);
    pointer-events: none;
}

/* ─── Input focus glow ───────────────────────────── */
input:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(197,168,92,0.2), 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

/* ─── Gold link underline animation ──────────────── */
a.gold-link {
    color: var(--gold-dark);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

a.gold-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 1px;
    background: var(--gold-gradient-simple);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.4s ease;
}

a.gold-link:hover::after {
    transform: scaleX(1);
}

/* ─── Date page card glass-card alias ────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* ─── Intro overlay animated background radial ───── */
.intro-overlay {
    background: var(--cream);
}

/* ─── Card top highlight line ────────────────────── */
.hero-card,
.glass-card {
    position: relative;
}

/* ─── Small decorative border on hero card (top highlight) ── */
.hero-card > .hero-eyebrow {
    position: relative;
}

/* ─── Micro-text improvements ────────────────────── */
.detail-label,
.section-eyebrow,
.countdown-label,
.scratch-label,
.essentials-label {
    letter-spacing: 3.5px;
}

/* ─── Add scrollbar styling ──────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--gold-light), var(--gold-dark));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ─── Selection color ────────────────────────────── */
::selection {
    background: rgba(197, 168, 92, 0.3);
    color: var(--gold-deep);
}

/* ════════════════════════════════════════════════════
   SAVE THE DATE CALENDAR CARD STYLES
════════════════════════════════════════════════════ */
.std-calendar-card {
    background: rgba(250, 245, 237, 0.96); /* Warm light beige matching the luxury palette */
    border: 1px solid rgba(247, 208, 112, 0.4);
    border-radius: 16px;
    padding: 2.2rem 1.8rem 1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    color: #1a130d;
    max-width: 440px;
    width: 100%;
    margin: 2.5rem auto 1.5rem;
    position: relative;
    overflow: hidden;
    font-family: var(--font-sans);
}

/* Floral styling at top mimicking user screenshot roses */
.std-calendar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="60" viewBox="0 0 400 60"><path d="M0 0 Q100 25 200 10 T400 0 L400 20 L0 20 Z" fill="%23fcebeb"/><circle cx="30" cy="15" r="12" fill="%23e85a71" opacity="0.3"/><circle cx="50" cy="22" r="16" fill="%23e85a71" opacity="0.4"/><circle cx="70" cy="12" r="10" fill="%23e85a71" opacity="0.3"/><circle cx="330" cy="18" r="14" fill="%23e85a71" opacity="0.3"/><circle cx="350" cy="22" r="16" fill="%23e85a71" opacity="0.4"/><circle cx="370" cy="14" r="10" fill="%23e85a71" opacity="0.3"/></svg>');
    background-size: cover;
    opacity: 0.85;
    pointer-events: none;
}

.std-calendar-header {
    text-align: center;
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
}

.std-calendar-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.4rem;
    font-weight: 300;
    color: #b8860b;
    margin: 0;
    line-height: 1.1;
}

.std-calendar-month {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #6b5e50;
    margin-top: 0.4rem;
    text-transform: uppercase;
}

.std-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
    max-width: 320px;
    margin: 0 auto 1.2rem;
    text-align: center;
}

.grid-day-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a89f91;
    text-transform: uppercase;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.grid-day {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a3f35;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.grid-day.empty {
    visibility: hidden;
}

.grid-day.highlighted-day {
    color: #33221A !important;
    font-weight: 700;
    z-index: 1;
}

.grid-day.highlighted-day::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(244, 178, 190, 0.65);
    z-index: -1;
    box-shadow: none;
}

.std-calendar-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.std-calendar-info .std-time {
    display: none;
}

.std-calendar-info .std-at {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: #a89f91;
    margin: 0.2rem 0;
}

.std-calendar-info .std-venue {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
    color: #b8860b;
    margin: 0;
}

.std-couple-img-wrap {
    text-align: center;
    max-width: 370px; /* Increased from 320px */
    margin: 0.6rem auto 0;
    overflow: hidden;
    position: relative;
    padding: 0.6rem;
    background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(232, 90, 113, 0.06), transparent 70%),
                radial-gradient(ellipse 60% 50% at 30% 60%, rgba(251, 229, 153, 0.08), transparent 60%),
                radial-gradient(ellipse 60% 50% at 70% 40%, rgba(212, 175, 55, 0.05), transparent 60%);
    border-radius: 12px;
}

.std-couple-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mix-blend-mode: multiply;
}

.std-welcome-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem; /* Increased from 0.92rem */
    color: var(--text-secondary);
    margin: 0.8rem auto 0;
    max-width: 340px; /* Increased from 280px */
    line-height: 1.45;
    text-align: center;
}

/* Center and align actions block properly on all devices */
.std-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 1rem !important;
    gap: 0.8rem !important;
}

.std-actions .btn-gold {
    width: 100% !important;
    max-width: 280px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    justify-content: center !important;
}

/* ════════════════════════════════════════════════════
   DUSTY ROSE CURTAINS UNVEILING SYSTEM
════════════════════════════════════════════════════ */
.curtain-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #2e241e 0%, #120e0b 100%);
    z-index: 10;
}

/* Left & Right Curtain Halves */
.curtain-half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 20;
    display: flex;
    box-shadow: 0 0 45px rgba(25, 18, 14, 0.95);
    will-change: transform;
}

.curtain-left {
    left: 0;
    transform-origin: left center;
    background: #c09f8a; /* Monogram dusty rose/bronze */
}

.curtain-right {
    right: 0;
    transform-origin: right center;
    background: #c09f8a; /* Monogram dusty rose/bronze */
}

/* 3D Vertical Pleats/Folds — monochromatic pink-beige silk coordinates */
.curtain-fold {
    flex: 1;
    height: 100%;
    box-shadow: inset 0 0 15px rgba(50, 30, 20, 0.45);
    background: linear-gradient(to right, 
        rgba(50, 30, 20, 0.35) 0%, 
        rgba(250, 242, 233, 0.15) 30%, 
        rgba(50, 30, 20, 0.2) 50%, 
        rgba(250, 242, 233, 0.1) 70%, 
        rgba(50, 30, 20, 0.35) 100%
    );
}

/* Ornate valance/drape matching the warm gold/sage scheme of the monogram */
.curtain-valance {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: linear-gradient(to bottom, rgba(30,20,15,0.7), transparent 85%), 
                repeating-linear-gradient(to right, #898269 0px, #eee0d3 10px, #c09f8a 20px, #eee0d3 30px, #898269 40px);
    box-shadow: 0 4px 18px rgba(30,20,15,0.4);
    z-index: 25;
    opacity: 0.88;
    clip-path: polygon(
        0% 0%, 100% 0%, 100% 45%, 
        97.5% 85%, 95% 45%, 92.5% 85%, 90% 45%, 87.5% 85%, 85% 45%, 82.5% 85%, 80% 45%, 
        77.5% 85%, 75% 45%, 72.5% 85%, 70% 45%, 67.5% 85%, 65% 45%, 62.5% 85%, 60% 45%, 
        57.5% 85%, 55% 45%, 52.5% 85%, 50% 45%, 47.5% 85%, 45% 45%, 42.5% 85%, 40% 45%, 
        37.5% 85%, 35% 45%, 32.5% 85%, 30% 45%, 27.5% 85%, 25% 45%, 22.5% 85%, 20% 45%, 
        17.5% 85%, 15% 45%, 12.5% 85%, 10% 45%, 7.5% 85%, 5% 45%, 2.5% 85%, 0% 45%
    );
    pointer-events: none;
}

/* Stage content overlay containing invitation header and seal */
.intro-scene-curtain {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center aligned instead of space-between */
    gap: 1.8rem; /* Align elements closer together */
    padding: 2rem;
    z-index: 30;
    pointer-events: none;
}

.intro-scene-curtain .intro-header-text,
.intro-scene-curtain .intro-footer,
.intro-scene-curtain .wax-seal {
    pointer-events: auto;
}

/* Increased Monogram / Wax Seal diameter to 160px with color coordination */
.intro-scene-curtain .wax-seal {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 160px; /* Increased from 130px */
    height: 160px; /* Increased from 130px */
    border: 5px solid #eee0d3; /* Monogram cream border */
    background: #faf2e9; /* Monogram warm base color */
    box-shadow: 
        0 18px 45px rgba(25, 18, 14, 0.45),
        0 0 35px rgba(192, 159, 138, 0.35),
        inset 0 3px 6px rgba(255,255,255,0.4);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2), box-shadow 0.3s ease;
}

.intro-scene-curtain .wax-seal:hover {
    transform: scale(1.06);
    box-shadow: 
        0 20px 50px rgba(25, 18, 14, 0.5),
        0 0 40px rgba(192, 159, 138, 0.45),
        inset 0 3px 6px rgba(255,255,255,0.4);
}

.intro-scene-curtain .intro-subtitle-top {
    color: #fff5f0 !important;
    text-shadow: 0 2px 12px rgba(30,10,15,0.8);
    letter-spacing: 5px;
}

.intro-scene-curtain .seal-hint {
    color: #fff5f0 !important;
    text-shadow: 0 2px 12px rgba(30,10,15,0.8);
    font-size: 0.76rem;
    letter-spacing: 4px;
}

