/* ═══════════════════════════════════════════════════════════
   MOROCCAN LANTERN — Vellora Template
   A riad at dusk: horseshoe arches, zellige tiles,
   pierced-brass lanterns, palms & a crescent moon.
   Fonts: Gilda Display · Parisienne · Outfit
═══════════════════════════════════════════════════════════ */
:root {
    --night:      #0b2228;
    --night-2:    #10333a;
    --teal:       #1f6f78;
    --teal-l:     #2f8a91;
    --terracotta: #c8623f;
    --terra-d:    #a14a2e;
    --amber:      #e3a44c;
    --amber-l:    #ffd27a;
    --rose:       #d98f8f;
    --plaster:    #f4e6d4;
    --plaster-2:  #ead5bd;
    --ink:        #3b2a24;
    --muted:      #7d665a;
    --cream:      #f8ecdc;

    --display: 'Gilda Display', Georgia, serif;
    --script:  'Parisienne', cursive;
    --sans:    'Outfit', system-ui, sans-serif;

    --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Crect width='96' height='96' fill='%2310333a'/%3E%3Cg transform='translate%2848 48%29'%3E%3Crect x='-27' y='-27' width='54' height='54' fill='%23c8623f'/%3E%3Crect x='-27' y='-27' width='54' height='54' fill='%23c8623f' transform='rotate%2845%29'/%3E%3Crect x='-19' y='-19' width='38' height='38' fill='%23f4e6d4'/%3E%3Crect x='-19' y='-19' width='38' height='38' fill='%23f4e6d4' transform='rotate%2845%29'/%3E%3Crect x='-10' y='-10' width='20' height='20' fill='%231f6f78' transform='rotate%2845%29'/%3E%3Ccircle r='4' fill='%23e3a44c'/%3E%3C/g%3E%3Cg fill='%23e3a44c'%3E%3Crect x='-11' y='-11' width='22' height='22' transform='rotate%2845%29'/%3E%3Crect x='-11' y='-11' width='22' height='22' transform='translate%2896 0%29 rotate%2845%29'/%3E%3Crect x='-11' y='-11' width='22' height='22' transform='translate%280 96%29 rotate%2845%29'/%3E%3Crect x='-11' y='-11' width='22' height='22' transform='translate%2896 96%29 rotate%2845%29'/%3E%3C/g%3E%3Cg fill='%23d98f8f'%3E%3Crect x='-5' y='-5' width='10' height='10' transform='translate%2848 0%29 rotate%2845%29'/%3E%3Crect x='-5' y='-5' width='10' height='10' transform='translate%280 48%29 rotate%2845%29'/%3E%3Crect x='-5' y='-5' width='10' height='10' transform='translate%2896 48%29 rotate%2845%29'/%3E%3Crect x='-5' y='-5' width='10' height='10' transform='translate%2848 96%29 rotate%2845%29'/%3E%3C/g%3E%3C/svg%3E");
    --intro-shade: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(11,34,40,.5) 0%, rgba(11,34,40,.6) 55%, rgba(11,34,40,.82) 100%);
    --shadow: 0 22px 50px rgba(11, 34, 40, .28);
}

*, *::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(--plaster);
    color: var(--ink);
    line-height: 1.8;
    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, 780px); margin: 0 auto; position: relative; z-index: 2; }
section { position: relative; padding: 104px 0 96px; overflow: hidden; }
.dark { background: var(--night); color: var(--cream); }

/* ── Ambient canvas ── */
.ml-particles { position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0; transition: opacity 1.2s; }
.ml-particles.on { opacity: 1; }

/* ── Zellige band at the top of sections ── */
.zl-band {
    position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 3; pointer-events: none;
    background: var(--zellige) 0 -35px / 48px 48px repeat-x;
    -webkit-mask: radial-gradient(circle at 12px 26px, transparent 9px, #000 9.5px) 0 0 / 24px 26px repeat-x;
            mask: radial-gradient(circle at 12px 26px, transparent 9px, #000 9.5px) 0 0 / 24px 26px repeat-x;
    box-shadow: inset 0 -2px 0 var(--amber);
}
.zl-band::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber); opacity: .8;
}

/* ── Star divider ── */
.star-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px auto 0; }
.star-divider i { display: block; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--amber)); transform-origin: right center; }
.star-divider i:last-child { background: linear-gradient(90deg, var(--amber), transparent); transform-origin: left center; }
.star-divider svg { width: 18px; height: 18px; fill: var(--amber); }

/* ════════════════════════════
   LANTERNS
════════════════════════════ */
.lantern {
    position: absolute; top: 0; left: var(--x, 50%);
    width: var(--w, 40px); margin-left: calc(var(--w, 40px) / -2);
    display: flex; flex-direction: column; align-items: center;
    --lamp: #5b3a1f;
    pointer-events: none;
}
.lantern .chain {
    display: block; width: 2px; height: var(--chain, 40px);
    background: repeating-linear-gradient(180deg, #c28a3e 0 4px, #6b4219 4px 6px);
}
.lantern-body {
    position: relative; width: 100%;
    transform-origin: 50% calc(var(--chain, 40px) * -1);
    animation: lanternSway 4.2s ease-in-out infinite alternate;
    animation-delay: var(--d, 0s);
}
.lantern-body svg { position: relative; z-index: 2; width: 100%; height: auto; display: block; aspect-ratio: 60 / 132; overflow: visible; }
.lantern-glow {
    position: absolute; z-index: 1; left: 50%; top: 52%;
    width: 340%; aspect-ratio: 1; transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 122, .55) 0%, rgba(227, 164, 76, .22) 30%, rgba(227, 164, 76, 0) 65%);
    opacity: 0; transition: opacity .6s;
}
.lantern.lit { --lamp: #ffd27a; }
.lantern.lit .lantern-glow { opacity: 1; animation: flicker 3.2s infinite; animation-delay: var(--d, 0s); }
.lantern.lit .lantern-body svg { filter: drop-shadow(0 0 6px rgba(255, 196, 110, .55)); }
@keyframes lanternSway { from { rotate: -4deg; } to { rotate: 4deg; } }
@keyframes flicker {
    0%, 100% { opacity: 1; }    8% { opacity: .82; }  12% { opacity: .95; }
    31% { opacity: .78; }       36% { opacity: 1; }    58% { opacity: .9; }
    62% { opacity: .72; }       66% { opacity: .96; }  85% { opacity: .86; }
}

/* ════════════════════════════
   INTRO / COVER
════════════════════════════ */
.intro {
    position: fixed; inset: 0; z-index: 9999; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    perspective: 900px;
}
.intro-bg {
    position: absolute; inset: 0;
    background: var(--intro-shade), var(--zellige) 0 0 / 96px 96px;
}
.intro.mosaic-on .intro-bg { display: none; }
.mosaic { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.mosaic .tile { position: absolute; display: block; backface-visibility: hidden; will-change: transform, opacity; }

.intro-lanterns { position: absolute; inset: 0 0 auto 0; z-index: 3; }

.intro-arch {
    position: relative; z-index: 2;
    width: min(88vw, 370px); aspect-ratio: 360 / 600; max-height: 92vh;
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, .5));
    animation: archIn 1.4s cubic-bezier(.16, 1, .3, 1) both;
}
.intro.opening .intro-arch { animation: none; }
@keyframes archIn { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
.arch-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.intro-content {
    position: absolute; left: 17%; right: 17%; top: 15%; bottom: 5%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: var(--cream);
}
.intro-eyebrow { font-size: .66rem; letter-spacing: .36em; text-transform: uppercase; color: var(--amber); }
.medallion { position: relative; width: 86px; height: 86px; margin: 14px auto 6px; display: flex; align-items: center; justify-content: center; }
.medallion-star {
    position: absolute; inset: 0; width: 100%; height: 100%;
    fill: none; stroke: var(--amber); stroke-width: 2;
    animation: spin 30s linear infinite;
}
.medallion span { position: relative; font-family: var(--display); font-size: 1.45rem; color: var(--amber-l); letter-spacing: .04em; }
.medallion i { font-family: var(--script); font-style: normal; font-size: 1.1rem; color: var(--rose); margin: 0 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.intro-names {
    font-family: var(--script); font-weight: 400; font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.15;
    color: var(--plaster); text-shadow: 0 2px 18px rgba(255, 196, 110, .35);
}
.intro-names em { font-style: normal; color: var(--amber); }
.guest-card { margin: 14px 0 18px; padding: 10px 12px; border-top: 1px solid rgba(227, 164, 76, .4); border-bottom: 1px solid rgba(227, 164, 76, .4); width: 100%; }
.to-label { display: block; font-size: .7rem; color: rgba(248, 236, 220, .7); }
.guest-name { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--cream); line-height: 1.35; margin-top: 2px; }

.btn-amber {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border: 1px solid rgba(255, 220, 160, .6); border-radius: 100px; cursor: pointer;
    background: linear-gradient(135deg, #e9b25c 0%, var(--terracotta) 100%);
    color: #fff8ec; text-decoration: none;
    font-family: var(--sans); font-weight: 500; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(200, 98, 63, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
    transition: transform .25s, box-shadow .25s, filter .25s;
}
.btn-amber:hover  { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(200, 98, 63, .5); filter: brightness(1.05); }
.btn-amber:active { transform: none; }
.btn-amber.sm   { padding: 10px 18px; font-size: .72rem; }
.btn-amber.full { width: 100%; }
.btn-amber.sent { background: linear-gradient(135deg, #2f8a91, var(--teal)); box-shadow: none; }
.btn-amber:disabled { cursor: default; }
/* pulse ring: compositor-only (transform/opacity) instead of animating box-shadow */
.intro-content { z-index: 0; }
.intro .btn-amber { position: relative; }
.intro .btn-amber::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: rgba(255, 196, 110, .45);
    animation: amberPulse 2.6s ease-in-out infinite;
}
@keyframes amberPulse {
    0%, 100% { transform: none; opacity: 1; }
    50%      { transform: scale(1.133, 1.636); opacity: 0; }
}

/* ════════════════════════════
   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(11, 34, 40, .86);
    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 rgba(227, 164, 76, .35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}
nav a {
    color: rgba(248, 236, 220, .65); 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: var(--night); background: linear-gradient(135deg, var(--amber-l), var(--amber)); }
nav a:hover:not(.active) { color: var(--amber-l); }
nav a:focus-visible { outline: 2px solid var(--amber); 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%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, #f3c77a, #b97a35);
    color: var(--night); border: 1px solid rgba(255, 230, 180, .7);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    transition: transform .2s;
}
.music-toggle-btn svg { width: 19px; height: 19px; }
.music-toggle-btn:hover { transform: scale(1.08); }
.music-toggle-btn.playing { animation: spin 8s linear infinite; }

/* ════════════════════════════
   SECTION HEADINGS
════════════════════════════ */
.section-head { text-align: center; margin-bottom: 44px; }
.eyebrow { display: block; font-family: var(--script); font-size: 1.7rem; line-height: 1.3; color: var(--terracotta); }
.dark .eyebrow { color: var(--amber); }
.section-title {
    font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 8vw, 2.9rem);
    line-height: 1.15; letter-spacing: .04em; color: var(--night);
}
.dark .section-title { color: var(--plaster); }
.section-intro { text-align: center; max-width: 520px; margin: -14px auto 46px; color: var(--muted); font-size: .92rem; }

/* ════════════════════════════
   HERO
════════════════════════════ */
.hero {
    min-height: 100vh; min-height: 100svh; padding: 90px 16px 70px;
    display: flex; align-items: center; justify-content: center;
    background: var(--night);
}
.hero-scene { position: absolute; inset: 0; overflow: hidden; }
.hero-sky {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, #0a1f26 0%, #12363e 32%, #4b3a4a 58%, #a2574a 76%, #e08a50 90%, #f2b25c 100%);
}
.hero-stars {
    position: absolute; inset: 0 0 40% 0;
    background-image:
        radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%),
        radial-gradient(1.6px 1.6px at 44% 26%, #ffe8c0 50%, transparent 51%),
        radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 78% 30%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 90% 6%, #ffe8c0 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 7% 40%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 55% 42%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 36% 50%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 96% 46%, #fff 50%, transparent 51%);
    animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
.hero-moon {
    position: absolute; top: 8%; right: 34%; width: 58px; height: 64px; border-radius: 50%;
    box-shadow: 14px -8px 0 0 #f8e2b0;
    filter: drop-shadow(0 0 18px rgba(248, 226, 176, .55));
    transform: rotate(-20deg);
}
.hero-layer { position: absolute; bottom: 0; pointer-events: none; }
.hero-far { left: 0; width: 100%; height: 26%; fill: #0d2a30; }
.hero-palm { bottom: -2%; height: 62%; width: auto; aspect-ratio: 200 / 420; fill: #071a1f; }
.hero-palm-l { left: -12%; }
.hero-palm-r { right: -12%; }
.hero-floor {
    position: absolute; left: 0; right: 0; bottom: 0; height: 10%;
    background: var(--zellige) 0 0 / 40px 40px;
    -webkit-mask: linear-gradient(transparent, #000 60%); mask: linear-gradient(transparent, #000 60%);
    opacity: .55;
}
.hero-lanterns { position: absolute; inset: 0 0 auto 0; z-index: 3; }

.hero-frame {
    position: relative; z-index: 2;
    width: min(88vw, 380px); aspect-ratio: 360 / 600;
}
/* perf: the big drop-shadow sits on the arch itself (the glass is ~opaque, so the text's
   own shadow was invisible) — the animated hero text no longer re-filters the whole frame */
.hero-frame .arch-svg { filter: drop-shadow(0 26px 60px rgba(0, 0, 0, .55)); }
/* perf: hero layers are moved by GSAP (entrance + scroll parallax) — keep them composited
   so each frame is a cheap transform instead of a repaint */
.hero-frame, .hero-moon, .hero-stars, .hero-far, .hero-palm, .hero-lanterns { will-change: transform; }
.hero-content {
    position: absolute; left: 17%; right: 17%; top: 17%; bottom: 5%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: var(--cream);
}
.hero-label { font-size: .66rem; letter-spacing: .38em; text-transform: uppercase; color: var(--amber); }
.hero-names {
    font-family: var(--script); font-weight: 400; font-size: clamp(2.5rem, 12vw, 3.3rem); line-height: 1.1;
    color: var(--plaster); margin-top: 12px;
    text-shadow: 0 2px 20px rgba(255, 196, 110, .35);
}
.hero-names .nm { display: block; }
.hero-names .amp { display: block; font-family: var(--display); font-size: .45em; color: var(--amber); margin: 4px 0; }
.hero-names .w { display: inline-block; white-space: nowrap; }
.hero-names .ch { display: inline-block; }
.hero-date { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-family: var(--display); }
.hd-side {
    font-size: .8rem; letter-spacing: .08em; min-width: 72px; padding: 5px 0;
    border-top: 1px solid rgba(227, 164, 76, .5); border-bottom: 1px solid rgba(227, 164, 76, .5);
    color: var(--cream);
}
.hd-day { font-size: 2.5rem; line-height: 1; color: var(--amber-l); }

/* ════════════════════════════
   QUOTE
════════════════════════════ */
.quote {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 210, 150, .25), transparent 60%),
        linear-gradient(180deg, #b4573a 0%, var(--terra-d) 100%);
    padding: 96px 0;
}
.niche {
    position: relative; max-width: 560px; margin: 0 auto; text-align: center;
    padding: 92px 30px 44px; color: var(--cream);
    background: linear-gradient(180deg, rgba(11, 34, 40, .35), rgba(11, 34, 40, .15));
    border: 1px solid rgba(255, 220, 170, .45);
    border-radius: 200px 200px 16px 16px;
    box-shadow: inset 0 0 0 8px rgba(255, 220, 170, .06), 0 20px 50px rgba(60, 20, 10, .3);
}
.quote-star {
    position: absolute; top: 26px; left: 50%; margin-left: -26px; width: 52px; height: 52px;
    fill: none; stroke: var(--amber-l); stroke-width: 3;
    animation: spin 24s linear infinite;
}
.quote-text { font-family: var(--display); font-size: 1.08rem; line-height: 1.85; }
.quote-text .wd { display: inline-block; }
.quote cite {
    display: inline-block; margin-top: 18px; font-style: normal; font-size: .72rem;
    letter-spacing: .3em; text-transform: uppercase; color: var(--amber-l);
}

/* ════════════════════════════
   COUPLE
════════════════════════════ */
.couple {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .55), transparent 65%),
        var(--plaster);
}
.couple-flex { display: flex; align-items: flex-start; justify-content: center; gap: 22px; }
.couple-item { flex: 1; max-width: 290px; text-align: center; }
.window { position: relative; width: 190px; margin: 0 auto 22px; padding-top: 40px; }
.window .mini-lantern { left: 50%; top: -6px; z-index: 3; }
.window-svg { display: block; width: 100%; height: auto; aspect-ratio: 200 / 270; filter: drop-shadow(0 16px 30px rgba(161, 74, 46, .3)); }
.win-initial { font-family: var(--script); font-size: 86px; fill: #fff6e6; text-anchor: middle; }
.couple .name { font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: var(--night); line-height: 1.3; }
.couple .parent { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.ampersand { position: relative; align-self: center; width: 74px; height: 74px; display: flex; align-items: center; justify-content: center; margin-top: 60px; }
.amp-star { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--terracotta); opacity: .15; animation: spin 20s linear infinite; }
.ampersand span { position: relative; font-family: var(--script); font-size: 2.6rem; color: var(--terracotta); line-height: 1; }

/* ════════════════════════════
   EVENT
════════════════════════════ */
.event {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(47, 138, 145, .35), transparent 60%),
        var(--night);
}
.event::before, .gallery::before, .footer::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: var(--zellige) 0 0 / 120px 120px; opacity: .06;
}
.countdown { display: flex; justify-content: center; gap: 10px; margin-bottom: 56px; }
.time-box {
    position: relative; width: 78px; height: 78px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    perspective: 400px;
}
.tb-star { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(31, 111, 120, .55); stroke: var(--amber); stroke-width: 2; }
.time-box span { position: relative; font-family: var(--display); font-size: 1.6rem; color: var(--amber-l); line-height: 1; display: inline-block; }
.time-box label { position: relative; font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(248, 236, 220, .8); margin-top: 2px; }

.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.arch-card {
    position: relative; text-align: center; padding: 74px 24px 34px;
    background: linear-gradient(180deg, rgba(47, 138, 145, .22), rgba(16, 51, 58, .9));
    border-radius: 160px 160px 18px 18px;
    border: 1px solid rgba(227, 164, 76, .55);
    box-shadow: inset 0 0 0 6px rgba(227, 164, 76, .07), var(--shadow);
}
.arch-card::before {
    content: ""; position: absolute; inset: 9px; border-radius: 150px 150px 12px 12px;
    border: 1px dashed rgba(227, 164, 76, .35); pointer-events: none;
}
.arch-card .mini-lantern { left: 50%; top: 0; }
.card-content { position: relative; padding-top: 34px; }
.event-title { font-family: var(--display); font-weight: 400; font-size: 1.65rem; color: var(--plaster); letter-spacing: .04em; }
.event-date { font-family: var(--display); font-size: 1.02rem; color: var(--cream); margin-top: 6px; }
.event-time {
    display: inline-block; margin: 10px 0 12px; padding: 4px 16px; border-radius: 100px;
    background: rgba(227, 164, 76, .16); color: var(--amber-l); font-weight: 400; font-size: .9rem;
}
.event-location { font-size: .9rem; color: rgba(248, 236, 220, .75); }

/* ════════════════════════════
   MAP
════════════════════════════ */
.map-section { background: var(--plaster); }
.map-card {
    background: #fffaf2; border-radius: 20px; overflow: hidden;
    border: 1px solid var(--plaster-2); box-shadow: 0 18px 40px rgba(161, 74, 46, .16);
}
.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 40px; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--terracotta); color: #fff4e6;
}
.map-venue { font-family: var(--display); font-size: 1.15rem; color: var(--night); 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(--plaster-2); color: var(--terracotta); text-decoration: none; font-size: .9rem;
}

/* ════════════════════════════
   GALLERY
════════════════════════════ */
.gallery { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.gallery-arches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1000px; }
.gallery-item {
    position: relative; aspect-ratio: 3 / 4; overflow: hidden; cursor: pointer;
    border-radius: 50% 50% 10px 10px / 38% 38% 10px 10px;
    border: 2px solid rgba(227, 164, 76, .7);
    box-shadow: 0 0 0 5px rgba(16, 51, 58, 1), 0 0 0 6px rgba(227, 164, 76, .35), 0 14px 30px rgba(0, 0, 0, .35);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item.placeholder {
    cursor: default; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(31, 111, 120, .55), rgba(11, 34, 40, .92) 75%),
        var(--zellige) 0 0 / 44px 44px;
}
.gallery-item.placeholder svg { width: 34px; height: 34px; fill: var(--amber); opacity: .8; animation: spin 18s linear infinite; }

.gallery-lightbox {
    display: none; position: fixed; inset: 0; z-index: 10000; opacity: 0;
    align-items: center; justify-content: center;
    background: rgba(7, 22, 26, .94); transition: opacity .3s;
}
.lb-img-wrap img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 12px; border: 2px solid rgba(227, 164, 76, .6); }
.lb-close, .lb-prev, .lb-next {
    position: absolute; background: rgba(227, 164, 76, .18); color: var(--amber-l); 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: var(--cream); font-size: .85rem; letter-spacing: .1em; }

/* ════════════════════════════
   WISHES / RSVP
════════════════════════════ */
.wishes-section { background: var(--plaster); }
.rsvp-card {
    background: #fffaf2; border-radius: 22px; padding: 32px 26px; margin-bottom: 34px;
    border: 1px solid var(--plaster-2); box-shadow: 0 18px 40px rgba(161, 74, 46, .14);
    border-top: 4px solid var(--terracotta);
}
.ml-form .input-row { margin-bottom: 18px; }
.ml-form label {
    display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 8px; font-weight: 500;
}
.ml-form input[type="text"],
.ml-form textarea {
    width: 100%; padding: 13px 16px; border-radius: 12px;
    border: 1px solid var(--plaster-2); background: var(--cream);
    font-family: var(--sans); font-size: .95rem; color: var(--ink);
    transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.ml-form input:focus,
.ml-form textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(200, 98, 63, .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: 1px solid var(--plaster-2); background: var(--cream); color: var(--ink); transition: .25s;
}
.attend-opt input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.attend-opt input:focus-visible + span { outline: 2px solid var(--terracotta); 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(--plaster-2) transparent;
}
.wish-item {
    display: flex; gap: 14px; padding: 18px; border-radius: 16px;
    background: #fffaf2; border: 1px solid var(--plaster-2);
    border-left: 3px solid var(--amber);
}
.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, var(--teal-l), var(--night-2)); color: var(--amber-l);
    font-family: var(--display); 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(--night); }
.wish-badge { font-size: .66rem; padding: 2px 10px; border-radius: 100px; letter-spacing: .04em; }
.wish-badge.hadir { background: #dcefe9; color: #1f6f60; }
.wish-badge.tidak { background: #f6dcd3; color: #a14a2e; }
.wish-badge.ragu  { background: #f8ead0; color: #93652a; }
.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(--display); font-style: italic; }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.footer {
    position: relative; overflow: hidden; text-align: center;
    padding: 150px 20px 190px;
    background: linear-gradient(180deg, var(--night) 0%, #14323a 60%, #3c2c35 100%);
}
.footer-lanterns { position: absolute; inset: 26px 0 auto 0; z-index: 2; }
.footer-inner { position: relative; z-index: 2; max-width: 520px; margin: 0 auto; }
.footer-seal { width: 70px; height: 70px; display: block; margin: 0 auto 10px; fill: none; stroke: var(--amber); stroke-width: 2.5; animation: spin 26s linear infinite; }
.footer .eyebrow { font-size: 2.6rem; color: var(--amber-l); }
.footer-copy { margin: 8px auto 24px; color: rgba(248, 236, 220, .78); font-size: .92rem; }
.footer-names { font-family: var(--display); font-weight: 400; font-size: 1.8rem; letter-spacing: .06em; color: var(--plaster); }
.footer-credit { margin-top: 30px; font-size: .7rem; color: rgba(248, 236, 220, .45); letter-spacing: .06em; }
.footer-skyline { position: absolute; left: 0; bottom: 0; width: 100%; height: 120px; fill: #071a1f; z-index: 1; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (min-width: 900px) {
    .hero-palm-l { left: 2%; }
    .hero-palm-r { right: 2%; }
    .hero-palm { height: 78%; }
    .hero-moon { right: 30%; width: 84px; height: 84px; box-shadow: 18px -10px 0 0 #f8e2b0; }
}
@media (max-width: 640px) {
    section { padding: 92px 0 80px; }
    .couple-flex { flex-direction: column; align-items: center; gap: 10px; }
    .ampersand { margin-top: 0; }
    .event-grid { grid-template-columns: 1fr; gap: 36px; }
    .countdown { gap: 6px; }
    .time-box { width: 74px; height: 74px; }
    .gallery-arches { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .map-info { flex-direction: column; align-items: stretch; }
    .eyebrow { font-size: 1.5rem; }
}
@media (max-height: 700px) {
    .intro-arch, .hero-frame { width: min(88vw, 330px); }
    .medallion { width: 64px; height: 64px; margin: 8px auto 2px; }
}

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