/* ═══════════════════════════════════════════
   PINK COQUETTE — Vellora Template
   Ribbon bows · pearls · lace scallops · gingham
═══════════════════════════════════════════ */
:root {
    --bg:          #fff6f7;
    --cream:       #fffbf8;
    --pink-100:    #fde7ee;
    --pink-200:    #f9cfdc;
    --pink-300:    #f4b6c8;
    --accent:      #e2668f;
    --accent-dark: #c2416f;
    --wine:        #7a2944;
    --text:        #5b2a3b;
    --muted:       #a07484;
    --serif:       'Bodoni Moda', Didot, Georgia, serif;
    --script:      'Great Vibes', cursive;
    --sans:        'DM Sans', system-ui, sans-serif;
    --shadow:      0 16px 40px rgba(194, 65, 111, .12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--sans);
    font-weight: 300;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }

.container { width: min(100% - 32px, 760px); margin: 0 auto; }
section { position: relative; padding: 96px 0; overflow: hidden; }

/* ── Patterns ── */
.gingham {
    background-color: var(--cream);
    background-image:
        linear-gradient(90deg, rgba(244, 182, 200, .32) 50%, transparent 50%),
        linear-gradient(rgba(244, 182, 200, .32) 50%, transparent 50%);
    background-size: 28px 28px;
}

/* Lace scallop edge, top & bottom */
.scallop { position: relative; }
.scallop::before,
.scallop::after {
    content: ""; position: absolute; left: 0; right: 0; height: 14px;
    background: radial-gradient(circle at 10px 0, transparent 7px, #fff 7.5px) repeat-x;
    background-size: 20px 14px;
}
.scallop::before { top: -13px; transform: scaleY(-1); }
.scallop::after  { bottom: -13px; }

/* Pearl string divider */
.pearl-line {
    height: 14px; width: 176px; margin: 18px auto;
    background: radial-gradient(circle at 7px 7px, #fff 0 2px, #fbeff1 3px, #ecd3da 6px, transparent 6.5px) repeat-x;
    background-size: 16px 14px;
    filter: drop-shadow(0 1px 1px rgba(194, 65, 111, .15));
}

/* ════════════════════════════
   INTRO / COVER
════════════════════════════ */
.intro {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 18px;
    background-color: var(--pink-100);
    background-image:
        linear-gradient(90deg, rgba(226, 102, 143, .14) 50%, transparent 50%),
        linear-gradient(rgba(226, 102, 143, .14) 50%, transparent 50%);
    background-size: 34px 34px;
}
.intro-sparkles svg {
    position: absolute; width: 22px; height: 22px; fill: #fff;
    filter: drop-shadow(0 0 6px rgba(226, 102, 143, .6));
    animation: twinkle 2.6s ease-in-out infinite;
}
.intro-sparkles svg:nth-child(2) { animation-delay: .7s; width: 16px; height: 16px; }
.intro-sparkles svg:nth-child(3) { animation-delay: 1.3s; width: 14px; height: 14px; }
.intro-sparkles svg:nth-child(4) { animation-delay: 1.9s; }
@keyframes twinkle { 0%,100% { opacity: .3; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

.envelope { position: relative; width: min(100%, 400px); animation: popIn .9s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }

.env-bow {
    position: absolute; top: -52px; left: 50%; margin-left: -62px;
    width: 124px; height: 104px; z-index: 3;
    filter: drop-shadow(0 6px 10px rgba(194, 65, 111, .3));
    animation: bowWiggle 3s ease-in-out infinite;
    transform-origin: 50% 40%;
}
@keyframes bowWiggle { 0%,100% { rotate: -4deg; } 50% { rotate: 4deg; } }

.env-card {
    background: #fff; text-align: center;
    padding: 64px 28px 40px;
    box-shadow: var(--shadow);
}
.env-card::before, .env-card::after { filter: drop-shadow(0 -2px 2px rgba(194, 65, 111, .04)); }

.intro-eyebrow {
    font-family: var(--serif); font-style: italic; font-size: .9rem; color: var(--muted);
}
.intro-names {
    font-family: var(--script); font-weight: 400; color: var(--accent-dark);
    font-size: clamp(2.6rem, 12vw, 3.4rem); line-height: 1.1; margin-top: 12px;
}
.intro-names span { display: block; }
.intro-names em {
    display: block; font-family: var(--serif); font-style: italic; font-size: .42em; color: var(--accent);
    margin: 4px 0;
}

.guest-card {
    margin: 4px auto 26px; padding: 14px 16px;
    border: 1.5px dashed var(--pink-300); border-radius: 14px; background: var(--bg);
}
.to-label { display: block; font-size: .74rem; color: var(--muted); }
.guest-name { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--wine); line-height: 1.35; margin-top: 2px; }

.btn-coquette {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 30px; border: 2px solid #fff; border-radius: 100px; cursor: pointer;
    background: var(--accent); color: #fff; text-decoration: none;
    font-family: var(--sans); font-weight: 500; font-size: .84rem; letter-spacing: .12em; text-transform: uppercase;
    box-shadow: 0 0 0 2px var(--accent), 0 10px 24px rgba(226, 102, 143, .35);
    transition: transform .25s, background .25s, box-shadow .25s;
}
.btn-coquette:hover  { background: var(--accent-dark); box-shadow: 0 0 0 2px var(--accent-dark), 0 14px 30px rgba(194, 65, 111, .4); transform: translateY(-2px); }
.btn-coquette:active { transform: translateY(0); }
.btn-coquette.sm     { padding: 10px 20px; font-size: .74rem; }
.btn-coquette.full   { width: 100%; }
.btn-coquette.sent   { background: #8fbf9a; box-shadow: 0 0 0 2px #8fbf9a; }
.btn-coquette:disabled { cursor: default; }

/* ════════════════════════════
   NAVIGATION
════════════════════════════ */
nav {
    position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1000; opacity: 0; pointer-events: none;
    width: max-content; max-width: calc(100% - 24px);
    transition: transform .8s cubic-bezier(.16,1,.3,1), opacity .8s cubic-bezier(.16,1,.3,1), bottom .4s ease;
}
nav.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
body:has(#qr-fab) nav#mainNav,
body.has-qr nav#mainNav { bottom: calc(84px + env(safe-area-inset-bottom)); }
.nav-inner {
    background: #fff; padding: 6px 8px; border-radius: 100px;
    display: flex; align-items: center; gap: 4px;
    border: 2px solid var(--pink-200);
    box-shadow: 0 10px 28px rgba(194, 65, 111, .18);
}
nav a {
    color: var(--muted); display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
    text-decoration: none; -webkit-tap-highlight-color: transparent;
    transition: color .3s, background-color .3s;
}
nav a svg { width: 20px; height: 20px; }
nav a.active { color: #fff; background: var(--accent); }
nav a:hover:not(.active) { color: var(--accent); background: var(--pink-100); }
nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ════════════════════════════
   MUSIC BUTTON
════════════════════════════ */
.music-toggle-btn {
    position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; z-index: 1001;
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--accent); border: 2px solid var(--pink-300);
    box-shadow: 0 6px 16px rgba(194, 65, 111, .2);
    transition: transform .2s;
}
.music-toggle-btn svg { width: 20px; height: 20px; }
.music-toggle-btn:hover { transform: scale(1.08); }
/* pulse ring: compositor-only (transform/opacity) instead of animating box-shadow.
   ::before = expanding ring, ::after = repaints the button face above it so only the outside shows */
.music-toggle-btn.playing::before,
.music-toggle-btn.playing::after {
    content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: 50%; pointer-events: none; box-sizing: border-box;
}
.music-toggle-btn.playing::before { background: rgba(226, 102, 143, .4); animation: pulse 2s ease-in-out infinite; }
.music-toggle-btn.playing::after  { background: #fff; border: 2px solid var(--pink-300); }
@keyframes pulse { 0%,100% { transform: none; opacity: 1; } 50% { transform: scale(1.435); opacity: 0; } }

/* ════════════════════════════
   SECTION HEADINGS
════════════════════════════ */
.section-title {
    text-align: center; font-family: var(--serif); font-weight: 400; font-style: italic;
    font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.15; color: var(--wine);
    margin-bottom: 40px;
}
.section-title span {
    display: block; font-family: var(--script); font-style: normal;
    font-size: .95em; color: var(--accent); margin-bottom: -6px;
}
.section-intro { text-align: center; max-width: 520px; margin: -18px auto 44px; color: var(--muted); font-size: .92rem; }

/* ════════════════════════════
   HERO
════════════════════════════ */
.hero {
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    padding: 110px 18px 90px;
}
.hero-frame { position: relative; width: min(100%, 400px); }
.frame-bow {
    position: absolute; top: -58px; left: 50%; margin-left: -70px;
    width: 140px; height: 116px; z-index: 3;
    filter: drop-shadow(0 6px 10px rgba(194, 65, 111, .3));
    animation: bowWiggle 4s ease-in-out infinite; transform-origin: 50% 40%;
}
.hero-inner {
    background: #fff; text-align: center;
    padding: 72px 26px 46px;
    box-shadow: var(--shadow);
    outline: 1.5px solid var(--pink-200); outline-offset: -12px;
}
.hero-label { font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.hero-names {
    font-family: var(--script); font-weight: 400; color: var(--accent-dark);
    font-size: clamp(3rem, 14vw, 4.2rem); line-height: 1; margin-top: 18px;
}
.hero-names span { display: block; }
.hero-names em { display: block; font-family: var(--serif); font-style: italic; font-size: .38em; color: var(--accent); margin: 8px 0; }
.hero-date { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .1em; color: var(--wine); }
.hero-sub {
    display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
    margin-top: 4px; font-size: .86rem; color: var(--muted);
}
.hero-sub svg { color: var(--accent); }

/* ════════════════════════════
   QUOTE
════════════════════════════ */
.quote { background: var(--pink-100); padding: 90px 0; }
.quote-card {
    position: relative; max-width: 580px; margin: 0 auto; text-align: center;
    padding: 50px 28px 34px; background: #fff; border-radius: 26px;
    border: 2px dashed var(--pink-300);
}
.quote-bow { position: absolute; top: -34px; left: 50%; margin-left: -40px; width: 80px; height: 66px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 1.08rem; line-height: 1.8; color: var(--text); }
.quote cite {
    display: inline-block; margin-top: 16px; font-style: normal; font-size: .74rem;
    letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
}

/* ════════════════════════════
   COUPLE — polaroids
════════════════════════════ */
.couple-flex { display: flex; align-items: flex-start; justify-content: center; gap: 24px; }
.couple-card { flex: 1; max-width: 290px; text-align: center; }

.polaroid {
    position: relative; background: #fff; padding: 12px 12px 14px;
    box-shadow: 0 12px 28px rgba(122, 41, 68, .14);
    transform: rotate(-3deg); transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.polaroid.tilt-right { transform: rotate(3deg); }
.polaroid:hover { transform: rotate(0) scale(1.03); }
.polaroid-bow {
    position: absolute; top: -26px; left: 50%; margin-left: -34px;
    width: 68px; height: 56px; z-index: 2;
    filter: drop-shadow(0 3px 5px rgba(194, 65, 111, .3));
}
.polaroid-photo {
    aspect-ratio: 4 / 5; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 30% 25%, #fff 0%, transparent 45%),
        linear-gradient(160deg, var(--pink-200) 0%, var(--accent) 100%);
}
.polaroid-photo span { font-family: var(--script); font-size: 5.5rem; color: #fff; text-shadow: 0 4px 14px rgba(122, 41, 68, .3); }
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid-caption { font-family: var(--script); font-size: 1.5rem; color: var(--accent); line-height: 1.4; margin-top: 6px; }

.couple-card .name {
    font-family: var(--serif); font-weight: 500; font-size: 1.55rem; color: var(--wine);
    margin: 26px 0 6px; line-height: 1.3;
}
.couple-card .parent { font-size: .88rem; color: var(--muted); }
.ampersand { align-self: center; color: var(--accent); padding-top: 40px; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }

/* ════════════════════════════
   EVENT — tickets
════════════════════════════ */
.event { background: var(--bg); }
.countdown { display: flex; justify-content: center; gap: 12px; margin-bottom: 50px; }
.time-box {
    width: 74px; padding: 14px 0 10px; text-align: center;
    background: #fff; border-radius: 18px;
    border: 2px solid var(--pink-200);
    box-shadow: 0 6px 0 var(--pink-200);
}
.time-box span { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; color: var(--accent-dark); line-height: 1.1; }
.time-box label { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.ticket {
    background: #fff; border-radius: 22px; overflow: hidden; text-align: center;
    box-shadow: var(--shadow);
    /* punched notches on both sides */
    -webkit-mask: radial-gradient(circle 14px at 0 64px, transparent 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle 14px at 100% 64px, transparent 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 14px at 0 64px, transparent 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle 14px at 100% 64px, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket-head {
    height: 64px; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--accent); color: #fff;
    font-family: var(--serif); font-style: italic; font-size: 1.35rem; letter-spacing: .03em;
    border-bottom: 2px dashed rgba(255, 255, 255, .6);
}
.ticket-body { padding: 22px 22px 28px; }
.ticket-day { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--accent-dark); }
.ticket-date { font-family: var(--serif); font-size: 1rem; color: var(--wine); margin-top: 6px; }
.ticket-time {
    display: inline-block; margin-top: 10px; padding: 4px 14px; border-radius: 100px;
    background: var(--pink-100); color: var(--accent-dark); font-weight: 500; font-size: .88rem;
}
.ticket-sep { height: 14px; width: 144px; margin: 16px auto 10px;
    background: radial-gradient(circle at 7px 7px, #fff 0 2px, #fbeff1 3px, #ecd3da 6px, transparent 6.5px) repeat-x;
    background-size: 16px 14px;
}
.ticket-loc { font-size: .9rem; color: var(--muted); }

/* ════════════════════════════
   MAP
════════════════════════════ */
.map-card {
    background: #fff; border-radius: 24px; overflow: hidden;
    border: 2px solid var(--pink-200); box-shadow: var(--shadow);
}
.map-info { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; flex-wrap: wrap; }
.map-detail { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 200px; }
.map-icon {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--pink-100); color: var(--accent-dark);
}
.map-venue { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--wine); line-height: 1.4; }
.map-address { font-size: .84rem; color: var(--muted); line-height: 1.6; }
.leaflet-map { height: 300px; width: 100%; z-index: 1; }
.map-embed-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    height: 220px; background: var(--pink-100); color: var(--accent); text-decoration: none; font-size: .9rem;
}

/* ════════════════════════════
   GALLERY — polaroid wall
════════════════════════════ */
.gallery { background: var(--pink-100); }
.polaroid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
.polaroid-grid .polaroid { cursor: pointer; padding: 8px 8px 26px; }
.polaroid-grid .polaroid:nth-child(3n+1) { transform: rotate(-3deg); }
.polaroid-grid .polaroid:nth-child(3n+2) { transform: rotate(2deg) translateY(10px); }
.polaroid-grid .polaroid:nth-child(3n)   { transform: rotate(-1.5deg); }
.polaroid-grid .polaroid:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.polaroid-grid .polaroid-photo { aspect-ratio: 1 / 1; }
.polaroid-grid .placeholder { cursor: default; }
.polaroid-grid .placeholder .polaroid-photo { background: linear-gradient(160deg, #fff 0%, var(--pink-200) 100%); color: #fff; }
.polaroid-grid .polaroid::after {
    content: ""; position: absolute; top: -8px; left: 50%; width: 46px; height: 16px; margin-left: -23px;
    background: rgba(244, 182, 200, .75); transform: rotate(-4deg);
}

.gallery-lightbox {
    display: none; position: fixed; inset: 0; z-index: 10000; opacity: 0;
    align-items: center; justify-content: center;
    background: rgba(90, 30, 50, .92); transition: opacity .3s;
}
.lb-img-wrap img { max-width: 90vw; max-height: 82vh; object-fit: contain; border: 8px solid #fff; }
.lb-close, .lb-prev, .lb-next {
    position: absolute; background: rgba(255, 255, 255, .16); color: #fff; border: none; cursor: pointer;
    width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.lb-close { top: 20px; right: 20px; font-size: 1.1rem; }
.lb-prev  { left: 14px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb-next  { right: 14px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .85rem; letter-spacing: .1em; }

/* ════════════════════════════
   WISHES / RSVP
════════════════════════════ */
.rsvp-card {
    background: #fff; padding: 56px 26px 34px; margin: 30px 0 50px;
    box-shadow: var(--shadow);
}
.rsvp-bow { position: absolute; top: -40px; left: 50%; margin-left: -46px; width: 92px; height: 76px; z-index: 2; filter: drop-shadow(0 4px 6px rgba(194, 65, 111, .3)); }
.coquette-form .input-row { margin-bottom: 18px; }
.coquette-form label {
    display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 8px; font-weight: 500;
}
.coquette-form input[type="text"],
.coquette-form textarea {
    width: 100%; padding: 13px 16px; border-radius: 14px;
    border: 2px solid var(--pink-200); background: var(--bg);
    font-family: var(--sans); font-size: .95rem; color: var(--text);
    transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.coquette-form input:focus,
.coquette-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(226, 102, 143, .14); }
.attend-options { display: flex; gap: 10px; flex-wrap: wrap; }
.attend-opt { margin: 0 !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; }
.attend-opt input { position: absolute; opacity: 0; pointer-events: none; }
.attend-opt span {
    display: inline-block; padding: 8px 18px; border-radius: 100px; font-size: .86rem;
    border: 2px solid var(--pink-200); background: #fff; color: var(--text); transition: .25s;
}
.attend-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.attend-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.wishes-list {
    display: flex; flex-direction: column; gap: 14px;
    max-height: 520px; overflow-y: auto; padding: 4px 4px 4px 0;
    scrollbar-width: thin; scrollbar-color: var(--pink-300) transparent;
}
.wish-item {
    display: flex; gap: 14px; padding: 18px; border-radius: 20px;
    background: #fff; border: 2px solid var(--pink-100);
    box-shadow: 0 6px 16px rgba(194, 65, 111, .06);
}
.wish-avatar {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--pink-200); color: var(--accent-dark); border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--pink-200);
    font-family: var(--serif); font-weight: 500; font-size: 1.1rem;
}
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wish-name { font-weight: 500; color: var(--wine); }
.wish-badge { font-size: .66rem; padding: 2px 10px; border-radius: 100px; letter-spacing: .04em; }
.wish-badge.hadir { background: #e3f3e6; color: #3f7a4d; }
.wish-badge.tidak { background: #fde3e8; color: #b8405c; }
.wish-badge.ragu  { background: #fdf0dc; color: #a57a2c; }
.wish-message { font-size: .9rem; margin: 6px 0 4px; line-height: 1.65; word-wrap: break-word; }
.wish-time { font-size: .72rem; color: var(--muted); }
.wish-empty { text-align: center; padding: 30px; color: var(--muted); font-family: var(--serif); font-style: italic; background: rgba(255,255,255,.8); border-radius: 18px; }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.footer {
    text-align: center; padding: 110px 20px 150px;
    background: linear-gradient(180deg, var(--pink-100) 0%, var(--pink-200) 100%);
}
.footer-bow { width: 120px; height: 100px; display: block; margin: 0 auto 6px; animation: bowWiggle 4s ease-in-out infinite; transform-origin: 50% 40%; }
.footer-thanks { font-family: var(--script); font-size: 3.2rem; color: var(--accent-dark); line-height: 1.2; }
.footer-copy { max-width: 480px; margin: 10px auto 24px; color: var(--text); opacity: .8; font-size: .92rem; }
.footer-names { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; color: var(--wine); }
.footer-names em { color: var(--accent); }
.footer .pearl-line { filter: none; }
.footer-credit { margin-top: 30px; font-size: .7rem; color: var(--wine); opacity: .55; letter-spacing: .06em; }

/* ════════════════════════════
   ORNAMENTS & CUTE ANIMATIONS
════════════════════════════ */
section > .container, .hero-frame { position: relative; z-index: 2; }

/* Lace band at the top of each section */
.lace-band {
    position: absolute; top: 0; left: 0; right: 0; height: 22px; z-index: 3; pointer-events: none;
    background:
        radial-gradient(circle at 12px 0, var(--pink-300) 9px, transparent 9.5px) repeat-x,
        radial-gradient(circle at 12px 2px, #fff 0 1.8px, transparent 2.2px) repeat-x;
    background-size: 24px 14px, 24px 14px;
    background-position: 0 0, 0 0;
}
.lace-band::after {
    content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 8px;
    background: radial-gradient(circle at 6px 4px, var(--pink-300) 0 1.6px, transparent 2px) repeat-x;
    background-size: 12px 8px; opacity: .7;
}
.footer { position: relative; overflow: hidden; }

/* Hanging ornaments in hero */
.hanging { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 3; pointer-events: none; }
.hang {
    position: absolute; top: 0; display: flex; flex-direction: column; align-items: center;
    transform-origin: top center; animation: swing 3.2s ease-in-out infinite alternate;
}
.hang .string { display: block; width: 1.5px; background: linear-gradient(var(--pink-300), var(--accent)); }
.hang svg { margin-top: -2px; filter: drop-shadow(0 4px 5px rgba(194, 65, 111, .25)); }
.hang.h1 { left: 8%;  animation-duration: 3.4s; } .hang.h1 .string { height: 60px; }  .hang.h1 svg { width: 46px; height: 38px; }
.hang.h2 { left: 26%; animation-duration: 2.8s; animation-delay: -1s; } .hang.h2 .string { height: 110px; } .hang.h2 svg { width: 34px; height: 40px; }
.hang.h3 { left: 50%; animation-duration: 3.6s; animation-delay: -.5s; } .hang.h3 .string { height: 40px; } .hang.h3 svg { width: 22px; height: 22px; fill: var(--accent); }
.hang.h4 { right: 24%; animation-duration: 3s; animation-delay: -1.6s; } .hang.h4 .string { height: 90px; } .hang.h4 svg { width: 34px; height: 40px; }
.hang.h5 { right: 7%; animation-duration: 3.3s; animation-delay: -.8s; } .hang.h5 .string { height: 70px; } .hang.h5 svg { width: 46px; height: 38px; }
@keyframes swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

/* Intro cherries */
.env-cherry {
    position: absolute; width: 56px; height: 66px; z-index: 3; bottom: -30px;
    transform-origin: 50% 10%; animation: swing 2.6s ease-in-out infinite alternate;
    filter: drop-shadow(0 4px 6px rgba(194, 65, 111, .25));
}
.env-cherry.l { left: -14px; }
.env-cherry.r { right: -14px; animation-delay: -1.3s; }

/* Hero sparkles */
.hero-sparkles svg {
    position: absolute; width: 16px; height: 16px; fill: var(--pink-300); pointer-events: none;
    animation: twinkle 2.6s ease-in-out infinite;
}
.hero-sparkles svg:nth-child(2) { animation-delay: .9s; width: 12px; height: 12px; }
.hero-sparkles svg:nth-child(3) { animation-delay: 1.6s; }

/* Names float softly */
.hero-names span { animation: floaty 4s ease-in-out infinite; }
.hero-names span:last-child { animation-delay: -2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Corner cherries & bows on sections */
.corner-cherry, .corner-bow { position: absolute; z-index: 1; pointer-events: none; opacity: .95; }
.corner-cherry { width: 70px; height: 84px; transform-origin: 50% 10%; animation: swing 3s ease-in-out infinite alternate; }
.corner-bow    { width: 84px; height: 70px; animation: bowWiggle 3.6s ease-in-out infinite; transform-origin: 50% 40%; }
.corner-cherry.tl, .corner-bow.tl { top: 34px; left: 14px; }
.corner-cherry.tr, .corner-bow.tr { top: 34px; right: 14px; }
.corner-cherry.bl, .corner-bow.bl { bottom: 24px; left: 14px; }
.corner-cherry.br, .corner-bow.br { bottom: 24px; right: 14px; }

/* Countdown bounce */
.time-box.bounce { animation: jelly .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes jelly {
    0%   { transform: scale(1, 1); }
    30%  { transform: scale(1.12, .9); }
    50%  { transform: scale(.94, 1.06); }
    70%  { transform: scale(1.03, .98); }
    100% { transform: scale(1, 1); }
}

/* Buttons: jelly hover + heartbeat icon */
.btn-coquette:hover { animation: jelly .6s; }
.btn-coquette svg { transition: transform .3s; }
.env-card .btn-coquette svg { animation: beat 1.6s ease-in-out infinite; }

/* Ticket hover */
.ticket { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.ticket:hover { transform: translateY(-6px) rotate(-1deg); }

/* Polaroid bow wiggle on hover */
.polaroid:hover .polaroid-bow { animation: bowWiggle .8s ease-in-out infinite; }

/* Floating hearts & bows rising */
.float-layer { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.floater {
    position: absolute; bottom: -40px; opacity: .55;
    animation-name: rise, drift;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-direction: normal, alternate;
}
.floater svg { width: 100%; height: 100%; display: block; }
@keyframes rise  { 0% { transform: translateY(0) rotate(-10deg); opacity: 0; } 10% { opacity: .55; } 90% { opacity: .55; } 100% { transform: translateY(-115vh) rotate(10deg); opacity: 0; } }
@keyframes drift { from { translate: -24px 0; } to { translate: 24px 0; } }

/* Burst particles */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 10001; overflow: hidden; }
.fx { position: absolute; margin: -7px 0 0 -7px; animation: fxOut 1.2s cubic-bezier(.2, .8, .3, 1) forwards; }
.fx-dot { width: 8px; height: 8px; border-radius: 50%; margin: -4px 0 0 -4px; box-shadow: 0 0 0 1px rgba(226, 102, 143, .25); }
.fx-svg svg { width: 15px; height: 15px; display: block; }
.fx-bow svg { width: 24px; height: 20px; }
@keyframes fxOut {
    0%   { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 1; }
    20%  { transform: translate(calc(var(--dx) * .4), calc(var(--dy) * .4)) scale(var(--s)) rotate(calc(var(--rot) * .3)); opacity: 1; }
    100% { transform: translate(var(--dx), calc(var(--dy) + 80px)) scale(var(--s)) rotate(var(--rot)); opacity: 0; }
}

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 640px) {
    section { padding: 80px 0; }
    .couple-flex { flex-direction: column; align-items: center; gap: 30px; }
    .couple-card { width: 78%; }
    .ampersand { padding-top: 0; }
    .event-grid { grid-template-columns: 1fr; }
    .countdown { gap: 8px; }
    .time-box { width: 68px; }
    .polaroid-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
    .map-info { flex-direction: column; align-items: stretch; }
    .corner-cherry { width: 50px; height: 60px; }
    .corner-bow    { width: 60px; height: 50px; }
    .hang.h2 .string { height: 80px; }
    .hang.h4 .string { height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .float-layer, .fx-layer { display: none; }
}


/* ════════════════════════════
   OPENING — bow unties, letter flies away
════════════════════════════ */
.intro.opening .envelope,
.intro.opening .env-bow,
.intro.opening .env-cherry,
.intro.opening .intro-sparkles svg,
.intro.opening .btn-coquette svg { animation: none !important; }
.env-bow { overflow: visible; }
.env-bow g { transform-box: fill-box; }
.env-ribbon {
    position: absolute; top: 2px; height: 16px; z-index: 2; width: 50%;
    background: linear-gradient(180deg, #f7a9c0, #e2668f 60%, #c2416f);
    box-shadow: 0 3px 6px rgba(194, 65, 111, .25);
}
.env-ribbon::after {
    content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 1.5px;
    background: rgba(255, 255, 255, .55);
}
.env-ribbon.l { left: 0; transform-origin: 0 50%; }
.env-ribbon.r { right: 0; transform-origin: 100% 50%; }
.hero-names .ch { display: inline-block; }
