/* ═══════════════════════════════════════════
   BLUSH PEONY — Vellora Template
   Blush pink · rose gold · peony bouquets
═══════════════════════════════════════════ */
:root {
    --bg:          #fff8f9;
    --bg-alt:      #fdeef2;
    --card:        #ffffff;
    --text:        #5a3a44;
    --muted:       #9a7a84;
    --accent:      #d9658a;
    --accent-dark: #b84a70;
    --accent-soft: #f9d5df;
    --rose-gold:   #c98b7a;
    --line:        #f1cfd8;
    --serif:       'Cormorant Garamond', Georgia, serif;
    --script:      'Pinyon Script', cursive;
    --sans:        'Jost', system-ui, sans-serif;
    --radius:      22px;
    --shadow:      0 18px 50px rgba(201, 79, 118, .10);
}

*, *::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.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
main { position: relative; z-index: 1; }

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

.divider-svg { width: 200px; height: 26px; display: block; margin: 18px auto; }
.divider-svg.sm { width: 150px; height: 20px; margin: 10px auto 14px; }

/* ── Falling petals ── */
.petal-layer {
    position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden;
}
.petal {
    position: absolute; top: -40px;
    border-radius: 150% 0 150% 0;
    opacity: .75;
    animation-name: petalFall, petalSway;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-direction: normal, alternate;
    box-shadow: inset -2px -2px 4px rgba(201, 79, 118, .15);
}
@keyframes petalFall {
    0%   { transform: translateY(-5vh) rotate(0deg); }
    100% { transform: translateY(110vh) rotate(540deg); }
}
@keyframes petalSway {
    0%   { translate: -30px 0; }
    100% { translate: 30px 0; }
}

/* ════════════════════════════
   INTRO / COVER
════════════════════════════ */
.intro {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
    background:
        radial-gradient(ellipse at 20% 10%, #fde4ea 0%, transparent 55%),
        radial-gradient(ellipse at 85% 90%, #f9d5df 0%, transparent 55%),
        linear-gradient(180deg, #fff8f9 0%, #fdeef2 100%);
    overflow: hidden;
}
.intro-bouquet { position: absolute; width: min(62vw, 340px); height: min(62vw, 340px); pointer-events: none; }
.intro-bouquet.tl { top: -60px; left: -70px; transform: rotate(160deg); }
.intro-bouquet.br { bottom: -60px; right: -70px; transform: rotate(-20deg); }
.intro-bouquet { animation: bloomIn 1.8s cubic-bezier(.16,1,.3,1) both, sway 6s ease-in-out 1.8s infinite alternate; }
.intro-bouquet.br { animation-delay: .25s, 2s; }
@keyframes bloomIn { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes sway    { from { translate: 0 0; } to { translate: 6px -6px; } }

.intro-content {
    position: relative; z-index: 2; text-align: center;
    width: min(100%, 420px);
    padding: 44px 28px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 220px 220px 28px 28px;
    box-shadow: var(--shadow);
    animation: fadeUp 1.2s .3s cubic-bezier(.16,1,.3,1) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.intro-eyebrow {
    font-size: .72rem; letter-spacing: .35em; text-transform: uppercase; color: var(--muted);
    margin-top: 28px;
}
.intro-monogram {
    margin: 18px auto 6px; width: 92px; height: 92px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; gap: 2px;
    border: 1px solid var(--rose-gold);
    outline: 1px solid var(--accent-soft); outline-offset: 5px;
    font-family: var(--serif); font-size: 1.7rem; color: var(--accent-dark);
}
.intro-monogram i { font-family: var(--script); font-style: normal; color: var(--rose-gold); font-size: 1.3rem; }
.intro-names {
    font-family: var(--script); font-weight: 400;
    font-size: clamp(2.5rem, 11vw, 3.4rem); line-height: 1.2;
    color: var(--accent-dark); margin-top: 10px;
}
.intro-names em { font-style: normal; color: var(--rose-gold); font-size: .75em; }

.guest-card { margin: 8px 0 26px; }
.to-label { display: block; font-size: .78rem; color: var(--muted); }
.guest-name {
    font-family: var(--serif); font-weight: 600; font-size: 1.55rem;
    color: var(--text); margin: 6px 0 4px; line-height: 1.3;
}
.to-note { display: block; font-size: .66rem; color: var(--muted); opacity: .8; font-style: italic; }

.btn-blush {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 30px; border: none; border-radius: 100px; cursor: pointer;
    background: linear-gradient(135deg, #e47a9c 0%, var(--accent) 50%, var(--accent-dark) 100%);
    color: #fff; font-family: var(--sans); font-weight: 500; font-size: .82rem;
    letter-spacing: .14em; text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(217, 101, 138, .35);
    transition: transform .25s, box-shadow .25s, background .3s;
}
.btn-blush:hover  { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(217, 101, 138, .45); }
.btn-blush:active { transform: translateY(0); }
.btn-blush.full   { width: 100%; }
.btn-blush.sent   { background: linear-gradient(135deg, #8fae8a, #6f9468); box-shadow: none; }
.btn-blush: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: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 6px 8px; border-radius: 100px;
    display: flex; align-items: center; gap: 4px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(201, 79, 118, .15);
}
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); }
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: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff;
    box-shadow: 0 6px 18px rgba(217, 101, 138, .4);
    transition: transform .2s;
}
.music-toggle-btn svg { width: 20px; height: 20px; }
.music-toggle-btn:hover { transform: scale(1.08); }
.music-toggle-btn.playing { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════
   SECTION HEADINGS
════════════════════════════ */
.section-eyebrow {
    text-align: center; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
    color: var(--rose-gold); margin-bottom: 4px;
}
.section-title {
    text-align: center; font-family: var(--script); font-weight: 400;
    font-size: clamp(2.6rem, 10vw, 3.6rem); line-height: 1.25;
    color: var(--accent-dark); margin-bottom: 40px;
}
.section-intro {
    text-align: center; max-width: 520px; margin: -20px auto 44px;
    color: var(--muted); font-size: .92rem;
}

/* ════════════════════════════
   HERO
════════════════════════════ */
.hero {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 80px 16px;
    background:
        radial-gradient(ellipse at 50% 40%, #fff 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.hero-bouquet { position: absolute; width: min(70vw, 400px); height: min(70vw, 400px); pointer-events: none; }
.hero-bouquet.tr { top: -50px; right: -80px; transform: rotate(-110deg); }
.hero-bouquet.bl { bottom: -50px; left: -80px; transform: rotate(70deg); }
.hero-bouquet { animation: sway 7s ease-in-out infinite alternate; }
.hero-bouquet.bl { animation-delay: -3s; }

.hero-card {
    position: relative; z-index: 2; text-align: center;
    width: min(100%, 400px); padding: 64px 26px 48px;
    background: rgba(255, 255, 255, .78);
    border-radius: 200px 200px 24px 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.hero-card::before {
    content: ""; position: absolute; inset: 10px;
    border: 1px solid var(--accent-soft);
    border-radius: 190px 190px 16px 16px; pointer-events: none;
}
.hero-label { font-size: .72rem; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); }
.hero-names {
    font-family: var(--script); font-weight: 400; color: var(--accent-dark);
    font-size: clamp(2.8rem, 13vw, 4rem); line-height: 1.05; margin-top: 16px;
}
.hero-names span { display: block; }
.hero-names em { display: block; font-style: normal; font-size: .55em; color: var(--rose-gold); margin: 4px 0; }

.hero-date { display: flex; align-items: center; justify-content: center; gap: 14px; font-family: var(--serif); }
.hd-side {
    font-size: .95rem; color: var(--text); letter-spacing: .06em;
    padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    min-width: 92px;
}
.hd-day { font-size: 2.8rem; font-weight: 500; color: var(--accent); line-height: 1; }

.scroll-hint {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    width: 22px; height: 36px; border: 1.5px solid var(--rose-gold); border-radius: 12px; z-index: 2;
}
.scroll-hint span {
    position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
    border-radius: 2px; background: var(--accent); animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ════════════════════════════
   QUOTE
════════════════════════════ */
.quote { background: var(--bg); text-align: center; padding: 80px 0; }
.quote .container { max-width: 600px; }
.quote .garland { width: min(100%, 340px); height: 68px; display: block; margin: 0 auto 26px; }
.quote p {
    font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.75; color: var(--text);
}
.quote cite {
    display: inline-block; margin-top: 18px; font-style: normal;
    font-size: .76rem; letter-spacing: .25em; text-transform: uppercase; color: var(--rose-gold);
}

/* ════════════════════════════
   COUPLE
════════════════════════════ */
.couple { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.couple-flex {
    display: flex; align-items: center; justify-content: center; gap: 28px;
}
.couple-item { flex: 1; max-width: 300px; text-align: center; }
.portrait {
    position: relative; width: 190px; height: 250px; margin: 0 auto 26px;
}
.portrait-inner {
    position: absolute; inset: 0;
    border-radius: 100px 100px 16px 16px;
    background: linear-gradient(160deg, #fde4ea 0%, #f6b3c3 100%);
    border: 6px solid #fff; box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.portrait-inner span { font-family: var(--script); font-size: 5.5rem; color: #fff; text-shadow: 0 4px 16px rgba(184, 74, 112, .35); }
.portrait-flower {
    position: absolute; width: 86px; height: 86px; z-index: 2; bottom: -26px; right: -22px;
    filter: drop-shadow(0 6px 10px rgba(201, 79, 118, .2));
}
.couple-item:last-child .portrait-flower { right: auto; left: -22px; }
.couple .name {
    font-family: var(--script); font-weight: 400; font-size: 2.4rem; line-height: 1.2;
    color: var(--accent-dark); margin-bottom: 8px;
}
.couple .parent { font-size: .88rem; color: var(--muted); }
.ampersand { font-family: var(--script); font-size: 4rem; color: var(--rose-gold); line-height: 1; }

/* ════════════════════════════
   EVENT
════════════════════════════ */
.event { background: var(--bg-alt); }
.countdown {
    display: flex; justify-content: center; gap: 12px; margin-bottom: 48px;
}
.time-box {
    width: 74px; padding: 14px 0 10px; text-align: center;
    background: #fff; border-radius: 40px 40px 14px 14px;
    border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(201, 79, 118, .08);
}
.time-box span { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--accent); line-height: 1.1; }
.time-box label { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.event-card {
    position: relative; text-align: center; padding: 56px 24px 34px;
    background: #fff; border-radius: var(--radius);
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.event-flower {
    position: absolute; top: -36px; left: 50%; transform: translateX(-50%);
    width: 72px; height: 72px; filter: drop-shadow(0 6px 10px rgba(201, 79, 118, .2));
}
.event-title { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--accent-dark); letter-spacing: .04em; }
.event-date { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--text); }
.event-time { color: var(--accent); font-weight: 400; margin: 4px 0 10px; }
.event-location { font-size: .9rem; color: var(--muted); }

/* ════════════════════════════
   MAP
════════════════════════════ */
.map-section { background: var(--bg); }
.map-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); 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(--accent-soft); color: var(--accent-dark);
}
.map-venue { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--text); line-height: 1.4; }
.map-address { font-size: .84rem; color: var(--muted); line-height: 1.6; }
.btn-map-nav {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 100px;
    background: var(--accent); color: #fff; text-decoration: none; font-size: .78rem;
    font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
    transition: background .25s;
}
.btn-map-nav:hover { background: var(--accent-dark); }
.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(--bg-alt); color: var(--accent); text-decoration: none; font-size: .9rem;
}

/* ════════════════════════════
   GALLERY
════════════════════════════ */
.gallery { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.gallery-masonry { columns: 3 200px; column-gap: 14px; }
.gallery-item {
    break-inside: avoid; margin-bottom: 14px; border-radius: 18px; overflow: hidden;
    cursor: pointer; position: relative; border: 4px solid #fff; box-shadow: 0 10px 24px rgba(201, 79, 118, .1);
}
.gallery-item img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:first-child { border-radius: 120px 120px 18px 18px; }
.gallery-item.placeholder {
    cursor: default; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #fff 0%, var(--accent-soft) 100%);
}
.gallery-item.placeholder svg { width: 54px; height: 54px; opacity: .55; }
.gallery-item.ph-0 { height: 280px; }
.gallery-item.ph-1 { height: 180px; }
.gallery-item.ph-2 { height: 220px; }
.gallery-item.ph-3 { height: 200px; }
.gallery-item.ph-4 { height: 260px; }
.gallery-item.ph-5 { height: 170px; }

.gallery-lightbox {
    display: none; position: fixed; inset: 0; z-index: 10000; opacity: 0;
    align-items: center; justify-content: center;
    background: rgba(60, 25, 38, .92); transition: opacity .3s;
}
.lb-img-wrap { max-width: 90vw; max-height: 82vh; }
.lb-img-wrap img { max-width: 90vw; max-height: 82vh; border-radius: 14px; object-fit: contain; }
.lb-close, .lb-prev, .lb-next {
    position: absolute; background: rgba(255, 255, 255, .14); 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
════════════════════════════ */
.wishes-section { background: var(--bg-alt); }
.rsvp-card {
    background: #fff; border-radius: var(--radius); padding: 32px 26px;
    border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 34px;
}
.blush-form .input-row { margin-bottom: 18px; }
.blush-form label {
    display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 8px; font-weight: 400;
}
.blush-form input[type="text"],
.blush-form textarea {
    width: 100%; padding: 13px 16px; border-radius: 14px;
    border: 1px solid var(--line); background: var(--bg);
    font-family: var(--sans); font-size: .95rem; color: var(--text);
    transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.blush-form input:focus,
.blush-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(217, 101, 138, .12); }
.attend-options { display: flex; gap: 10px; flex-wrap: wrap; }
.attend-opt { margin: 0 !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; }
.attend-opt input { position: absolute; opacity: 0; pointer-events: none; }
.attend-opt span {
    display: inline-block; padding: 9px 18px; border-radius: 100px; font-size: .86rem;
    border: 1px solid var(--line); background: var(--bg); 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(--accent-soft) transparent;
}
.wish-item {
    display: flex; gap: 14px; padding: 18px; border-radius: 18px;
    background: #fff; border: 1px solid var(--line);
}
.wish-avatar {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f6b3c3, var(--accent)); color: #fff;
    font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
}
.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(--text); }
.wish-badge { font-size: .66rem; padding: 2px 10px; border-radius: 100px; letter-spacing: .04em; }
.wish-badge.hadir { background: #e5f1e2; color: #4f7a48; }
.wish-badge.tidak { background: #fbe3e6; color: #b84a5a; }
.wish-badge.ragu  { background: #fdf0dc; color: #a57a2c; }
.wish-message { font-size: .9rem; color: var(--text); 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-style: italic; font-family: var(--serif); font-size: 1.05rem; }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.footer {
    position: relative; overflow: hidden; text-align: center;
    padding: 110px 20px 150px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, #f9d5df 100%);
}
.footer-bouquet { width: 180px; height: 180px; display: block; margin: 0 auto 10px; }
.footer-thanks { font-family: var(--script); font-size: 3rem; color: var(--accent-dark); line-height: 1.2; }
.footer-copy { max-width: 480px; margin: 10px auto 26px; color: var(--muted); font-size: .92rem; }
.footer-names { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; letter-spacing: .08em; color: var(--text); }
.footer-credit { margin-top: 40px; font-size: .7rem; color: var(--muted); opacity: .7; letter-spacing: .06em; }

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

/* Corner bouquets on sections */
.corner-orn {
    position: absolute; width: 170px; height: 170px; z-index: 1; pointer-events: none;
    opacity: .9; animation: sway 7s ease-in-out infinite alternate;
}
.corner-orn.tl { top: -48px; left: -56px; transform: rotate(150deg); }
.corner-orn.tr { top: -48px; right: -56px; transform: rotate(-120deg); }
.corner-orn.bl { bottom: -48px; left: -56px; transform: rotate(60deg); animation-delay: -2s; }
.corner-orn.br { bottom: -48px; right: -56px; transform: rotate(-30deg); animation-delay: -4s; }

/* Garland on the hero card */
.hero-garland {
    position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
    width: 300px; height: 60px; z-index: 3;
    filter: drop-shadow(0 6px 8px rgba(201, 79, 118, .18));
}

/* Twinkling sparkles */
.sparkles svg {
    position: absolute; width: 16px; height: 16px; fill: #e8b4a0; z-index: 1; pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(232, 180, 160, .8));
    animation: twinkle 2.8s ease-in-out infinite;
}
.sparkles svg:nth-child(2n) { width: 11px; height: 11px; fill: #f3aabd; animation-delay: .9s; }
.sparkles svg:nth-child(3n) { width: 20px; height: 20px; animation-delay: 1.7s; }
@keyframes twinkle {
    0%, 100% { opacity: .2; transform: scale(.6) rotate(0deg); }
    50%      { opacity: 1;  transform: scale(1)  rotate(90deg); }
}

/* Shimmering names */
.hero-names span, .intro-names {
    background: linear-gradient(110deg, var(--accent-dark) 35%, #f6b3c3 48%, #fff4f6 50%, #f6b3c3 52%, var(--accent-dark) 65%);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: shimmer 6s ease-in-out infinite;
    padding: 0 .15em;
}
.intro-names em { -webkit-text-fill-color: var(--rose-gold); }
/* Pinyon Script's ampersand reads oddly — use the serif italic one */
.intro-monogram i, .intro-names em, .hero-names em, .ampersand, .section-title .amp {
    font-family: var(--serif); font-style: italic; font-weight: 400;
}
.section-title .amp { font-size: .7em; color: var(--rose-gold); }

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

/* Monogram slow halo */
.intro-monogram { position: relative; }
.intro-monogram::after {
    content: ""; position: absolute; inset: -12px; border-radius: 50%;
    border: 1px dashed var(--rose-gold); opacity: .6;
    animation: spin 24s linear infinite;
}

/* Ampersand with beating heart */
.ampersand { position: relative; }
.amp-heart {
    position: absolute; width: 18px; height: 18px; fill: var(--accent);
    top: 4px; right: -14px; animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); }
    30% { transform: scale(1); } 45% { transform: scale(1.2); }
}

/* Portrait & event flowers: gentle breathe */
.portrait-flower, .event-flower { animation: breathe 4s ease-in-out infinite; }
.event-card:nth-child(2) .event-flower { animation-delay: -2s; }
@keyframes breathe { 0%, 100% { scale: 1; rotate: 0deg; } 50% { scale: 1.08; rotate: 8deg; } }
.portrait { transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.portrait:hover { transform: translateY(-6px) rotate(-1.5deg); }

/* Countdown pop */
.time-box span.pop { animation: digitPop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes digitPop { 0% { transform: translateY(-6px) scale(.8); opacity: .3; } 100% { transform: none; opacity: 1; } }
.time-box { transition: transform .3s; }
.time-box:hover { transform: translateY(-4px); }

/* Buttons: soft glow pulse */
.intro .btn-blush { position: relative; }
.intro .btn-blush:hover { box-shadow: 0 10px 26px rgba(217, 101, 138, .35); }
/* pulse ring: compositor-only (transform/opacity) instead of animating box-shadow spread */
.intro .btn-blush::before {
    content: ""; position: absolute; inset: -12px; z-index: -1; pointer-events: none;
    border-radius: 100px; background: rgba(217, 101, 138, .35); opacity: 0;
    animation: glow 2.4s ease-in-out infinite;
}
@keyframes glow {
    0%, 100% { transform: scale(.902, .662); opacity: 1; }
    50%      { transform: none; opacity: 0; }
}

/* Butterflies */
.butterfly-layer { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.butterfly { position: absolute; width: 38px; height: 32px; top: 0; left: 0; }
.butterfly .bf { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 4px rgba(122, 58, 80, .15)); }
.butterfly .wing { transform-box: view-box; transform-origin: 30px 25px; animation: flap .22s ease-in-out infinite alternate; }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.25); } }
.butterfly.fly-0 { animation: fly0 22s linear infinite; }
.butterfly.fly-1 { animation: fly1 27s linear infinite; width: 30px; height: 26px; }
.butterfly.fly-2 { animation: fly2 32s linear infinite; width: 26px; height: 22px; }
@keyframes fly0 {
    0%   { transform: translate(-10vw, 70vh) rotate(20deg); }
    25%  { transform: translate(30vw, 45vh) rotate(10deg); }
    50%  { transform: translate(55vw, 60vh) rotate(25deg); }
    75%  { transform: translate(80vw, 30vh) rotate(5deg); }
    100% { transform: translate(110vw, 20vh) rotate(15deg); }
}
@keyframes fly1 {
    0%   { transform: translate(110vw, 25vh) rotate(-20deg) scaleX(-1); }
    30%  { transform: translate(70vw, 40vh) rotate(-10deg) scaleX(-1); }
    60%  { transform: translate(35vw, 20vh) rotate(-25deg) scaleX(-1); }
    100% { transform: translate(-10vw, 50vh) rotate(-10deg) scaleX(-1); }
}
@keyframes fly2 {
    0%   { transform: translate(20vw, 110vh) rotate(10deg); }
    40%  { transform: translate(40vw, 70vh) rotate(-5deg); }
    70%  { transform: translate(15vw, 35vh) rotate(15deg); }
    100% { transform: translate(60vw, -10vh) rotate(0deg); }
}

/* Burst particles */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 10001; overflow: hidden; }
.fx {
    position: absolute; width: 12px; height: 10px; margin: -5px 0 0 -6px;
    animation: fxOut 1.2s cubic-bezier(.2, .8, .3, 1) forwards;
}
.fx-petal { border-radius: 150% 0 150% 0; }
.fx-heart svg { width: 14px; height: 14px; display: block; }
@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: 76px 0; }
    .couple-flex { flex-direction: column; gap: 18px; }
    .ampersand { font-size: 3.2rem; }
    .event-grid { grid-template-columns: 1fr; gap: 50px; margin-top: 10px; }
    .countdown { gap: 8px; }
    .time-box { width: 68px; }
    .gallery-masonry { columns: 2; column-gap: 10px; }
    .gallery-item { margin-bottom: 10px; }
    .map-info { flex-direction: column; align-items: stretch; }
    .btn-map-nav { justify-content: center; }
    .hd-side { min-width: 80px; font-size: .85rem; }
    .corner-orn { width: 120px; height: 120px; }
    .corner-orn.tl, .corner-orn.tr { top: -40px; }
    .corner-orn.tl, .corner-orn.bl { left: -44px; }
    .corner-orn.tr, .corner-orn.br { right: -44px; }
    .corner-orn.bl, .corner-orn.br { bottom: -40px; }
    .hero-garland { width: 250px; height: 50px; top: -24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .petal-layer, .butterfly-layer, .fx-layer { display: none; }
    .hero-names span, .intro-names { -webkit-text-fill-color: var(--accent-dark); }
}


/* ════════════════════════════
   OPENING — peony bloom + petal swirl + veil
════════════════════════════ */
.intro.opening .intro-content,
.intro.opening .intro-bouquet,
.intro.opening .intro-monogram::after,
.intro.opening .btn-blush,
.intro.opening .btn-blush::before { animation: none !important; }
.bloom-stage { position: fixed; inset: 0; z-index: 10000; pointer-events: none; visibility: hidden; overflow: hidden; }
.bloom-stage.on { visibility: visible; }
.bloom-wash {
    position: absolute; inset: -10% 0 0; display: block;
    background:
        radial-gradient(ellipse at 50% 40%, #fff2f5 0%, transparent 60%),
        linear-gradient(180deg, #fde4ea 0%, #f6b3c3 70%, #f6b3c3 88%, rgba(246,179,195,0) 100%);
}
.bloom-peony {
    position: absolute; left: 50%; top: 50%;
    width: 240px; height: 240px; margin: -120px 0 0 -120px;
    filter: drop-shadow(0 12px 24px rgba(201,79,118,.3));
}
.swirl { position: absolute; inset: 0; }
.swirl-petal {
    position: absolute; left: 0; top: 0; margin: -6px 0 0 -6px;
    border-radius: 150% 0 150% 0; opacity: 0;
    box-shadow: inset -2px -2px 4px rgba(201,79,118,.18);
}
@media (prefers-reduced-motion: reduce) { .bloom-stage { display: none !important; } }
