/* ═══════════════════════════════════════════
   SANTORINI SUNSET — Vellora Template
   Whitewashed walls · blue domes · golden hour over the Aegean
═══════════════════════════════════════════ */
:root {
    --plaster:     #fbf8f3;
    --plaster-2:   #f5efe6;
    --white:       #ffffff;
    --aegean:      #2f62a8;
    --aegean-dk:   #1d3d73;
    --aegean-lt:   #e8f0fa;
    --sunset:      #f08a6c;
    --peach:       #f7b98b;
    --gold:        #e8b65a;
    --bougain:     #d1347a;
    --ink:         #2a3550;
    --muted:       #6f7790;
    --line:        #e6dccd;
    --serif:       'Marcellus', Georgia, serif;
    --script:      'Allura', cursive;
    --sans:        'Jost', system-ui, sans-serif;
    --radius:      22px;
    --shadow:      0 18px 46px rgba(29, 61, 115, .12);
    --horizon:     66%;
    --sun-x:       46%;
}

*, *::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; }
main { position: relative; z-index: 2; }
.container { width: min(100% - 32px, 780px); margin: 0 auto; position: relative; z-index: 2; }
section { position: relative; padding: 100px 0; overflow: hidden; }

/* ── Ambient canvas & fx ── */
.ss-particles { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity 1.5s; }
.ss-particles.on { opacity: 1; }
.fx-layer { position: fixed; inset: 0; z-index: 10002; pointer-events: none; overflow: hidden; }
.fx-bloom { position: absolute; top: 0; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.fx-bloom svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(120, 20, 60, .25)); }

/* ── Greek key band ── */
.meander {
    position: absolute; top: 0; left: 0; right: 0; height: 22px; z-index: 3; opacity: .85;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M0 1.5H24M0 22.5H24M3 19V5H19V17H8V10H14V13' fill='none' stroke='%232f62a8' stroke-width='1.8'/%3E%3C/svg%3E") repeat-x center / 22px 22px;
}

/* ════════════════════════════
   INTRO — whitewashed wall & blue doors
════════════════════════════ */
.intro { position: fixed; inset: 0; z-index: 10000; overflow: hidden; }
.intro-wall { position: absolute; inset: 0; will-change: transform, opacity; }
.intro-floor {
    position: absolute; left: 0; right: 0; bottom: 0; height: 8vh; z-index: 1;
    background: linear-gradient(180deg, #ece0cf 0%, #dccab2 100%);
    box-shadow: inset 0 6px 10px -6px rgba(120, 90, 60, .35);
}
.doorway-wrap {
    position: absolute; left: 0; right: 0; margin: 0 auto; bottom: 8vh; z-index: 2;
    width: min(84vw, 380px); height: min(74vh, 620px);
}
.doorway {
    position: absolute; inset: 0; overflow: hidden;
    border-radius: 999px 999px 0 0;
    perspective: 1300px;
    /* the wall itself is this huge shadow — the doorway stays a real hole */
    box-shadow: 0 0 0 220vmax #f7f1e8;
}
.door-frame {
    position: absolute; inset: -14px -14px 0 -14px; pointer-events: none;
    border: 14px solid #fffdf8; border-bottom: 0;
    border-radius: 999px 999px 0 0;
    box-shadow: 0 0 0 1px #e3d6c3, inset 0 0 0 1px #e3d6c3, 0 14px 30px rgba(120, 90, 60, .14), inset 0 10px 20px rgba(120, 90, 60, .12);
}
.door-step {
    position: absolute; left: -30px; right: -30px; bottom: -14px; height: 14px;
    background: linear-gradient(180deg, #fffdf8, #e9dcc8); border-radius: 3px;
    box-shadow: 0 6px 12px rgba(120, 90, 60, .18);
}
.door-light {
    position: absolute; inset: 0; z-index: 0; opacity: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(255, 236, 190, .95) 0%, rgba(255, 190, 130, .6) 40%, rgba(255, 160, 120, 0) 75%);
}
.door {
    position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1;
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 24px),
        linear-gradient(180deg, #3f80d2 0%, #2a62ad 55%, #1f4e93 100%);
    backface-visibility: hidden;
    will-change: transform;
}
.door-l { left: 0; transform-origin: 0 50%; box-shadow: inset -2px 0 0 rgba(0, 0, 0, .18), inset -8px 0 14px rgba(0, 0, 0, .12); }
.door-r { right: 0; transform-origin: 100% 50%; box-shadow: inset 2px 0 0 rgba(255, 255, 255, .12), inset 8px 0 14px rgba(0, 0, 0, .12); }
.door-panel {
    position: absolute; left: 16%; right: 16%; top: 30%; height: 30%;
    border-radius: 6px; border: 2px solid rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .08), inset 0 0 18px rgba(0, 0, 0, .18);
}
.door-panel.low { top: 66%; height: 24%; }
.knob {
    position: absolute; top: 58%; width: 12px; height: 12px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff3c6, #e8b65a 55%, #9b6f22);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}
.door-l .knob { right: 12px; }
.door-r .knob { left: 12px; }

.intro-branch {
    position: absolute; top: -26px; z-index: 4; width: min(52vw, 300px); height: auto; aspect-ratio: 240 / 320;
    filter: drop-shadow(0 10px 12px rgba(120, 30, 70, .18));
}
.intro-branch.l { left: -34px; transform-origin: 0 0; }
.intro-branch.r { right: -34px; transform-origin: 100% 0; }
.intro:not(.opening) .intro-branch { animation: breeze 6s ease-in-out infinite alternate; }
.intro:not(.opening) .intro-branch.r { animation-delay: -3s; }
@keyframes breeze { from { rotate: -2deg; } to { rotate: 2.5deg; } }

.intro-pot {
    position: absolute; bottom: 3vh; z-index: 4; width: 64px; height: 92px;
}
.intro-pot.l { left: 4px; }
.intro-pot.r { right: 4px; }
.intro-pot::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 40px;
    background: linear-gradient(90deg, #b8643f, #d98a5e 45%, #a9532f);
    clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
    border-top: 5px solid #c77249;
}
.intro-pot svg { position: absolute; left: -26px; bottom: 30px; width: 116px; height: 87px; }

.intro-content {
    position: absolute; z-index: 6;
    left: 0; right: 0; margin: 0 auto; bottom: calc(8vh + min(74vh, 620px) * .5); transform: translateY(50%);
    width: calc(min(84vw, 380px) - 34px);
    text-align: center; padding: 34px 20px 26px;
    background: rgba(255, 252, 247, .94);
    border-radius: 160px 160px 18px 18px;
    box-shadow: 0 20px 50px rgba(15, 35, 75, .35);
    animation: introIn 1.3s .2s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes introIn { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
.intro-eyebrow { font-size: .7rem; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.intro-names {
    font-family: var(--script); font-weight: 400; color: var(--aegean);
    font-size: clamp(2.5rem, 11vw, 3.2rem); line-height: 1.15; margin-top: 6px;
}
.intro-names em { font-style: normal; color: var(--sunset); }
.intro-olive { display: block; width: 170px; height: 34px; margin: 4px auto 6px; }
.guest-card { margin: 4px 0 20px; }
.to-label { display: block; font-size: .78rem; color: var(--muted); }
.guest-name { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--ink); margin: 4px 0 2px; line-height: 1.3; }
.to-note { display: block; font-size: .66rem; color: var(--muted); font-style: italic; opacity: .85; }

.btn-aegean {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border: none; border-radius: 100px; cursor: pointer; text-decoration: none;
    background: linear-gradient(135deg, #3f80d2 0%, var(--aegean) 55%, var(--aegean-dk) 100%);
    color: #fff; font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(47, 98, 168, .35);
    transition: translate .25s, box-shadow .25s;
    position: relative; overflow: hidden;
}
.btn-aegean::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    animation: sheen 3.4s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(0); } 100% { transform: translateX(475%); } }
.btn-aegean:hover { translate: 0 -2px; box-shadow: 0 14px 30px rgba(47, 98, 168, .45); }
.btn-aegean.sm { padding: 10px 20px; font-size: .74rem; }
.btn-aegean.full { width: 100%; }
.btn-aegean.sent { background: linear-gradient(135deg, #7fb08a, #5e9068); }
.btn-aegean:disabled { cursor: default; }

/* ════════════════════════════
   NAVIGATION & MUSIC
════════════════════════════ */
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, .9); 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(47, 98, 168, .15); box-shadow: 0 10px 30px rgba(29, 61, 115, .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(--aegean); }
nav a:hover:not(.active) { color: var(--aegean); }
nav a:focus-visible { outline: 2px solid var(--aegean); outline-offset: 1px; }

.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(--aegean); color: #fff; box-shadow: 0 6px 18px rgba(29, 61, 115, .35);
    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 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════
   HERO — the caldera at sunset
════════════════════════════ */
.hero {
    min-height: 100vh; min-height: 100svh; padding: 0;
    display: flex; flex-direction: column; align-items: center;
    background: #1c2f63;
}
.hero-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-sky {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        #1b2c5e 0%, #34397f 20%, #6c4f97 36%, #b85f92 48%, #ec7c84 56%, #f8a777 62%, #ffd294 var(--horizon), #ffd294 100%);
}
.hero-stars i {
    position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 4px #fff; animation: twinkle 3s ease-in-out infinite;
}
.hero-stars i:nth-child(1)  { top: 6%;  left: 12%; }
.hero-stars i:nth-child(2)  { top: 11%; left: 34%; animation-delay: .7s; }
.hero-stars i:nth-child(3)  { top: 4%;  left: 58%; animation-delay: 1.4s; }
.hero-stars i:nth-child(4)  { top: 14%; left: 78%; animation-delay: .3s; }
.hero-stars i:nth-child(5)  { top: 21%; left: 90%; animation-delay: 2s; }
.hero-stars i:nth-child(6)  { top: 19%; left: 6%;  animation-delay: 1.1s; }
.hero-stars i:nth-child(7)  { top: 8%;  left: 86%; animation-delay: 2.4s; width: 3px; height: 3px; }
.hero-stars i:nth-child(8)  { top: 26%; left: 22%; animation-delay: .9s; opacity: .6; }
.hero-stars i:nth-child(9)  { top: 2%;  left: 44%; animation-delay: 1.8s; }
.hero-stars i:nth-child(10) { top: 17%; left: 66%; animation-delay: 2.7s; opacity: .7; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .95; } }

.hero-sun {
    position: absolute; z-index: 1;
    left: var(--sun-x); top: calc(var(--horizon) - 92px);
    width: 120px; height: 120px; margin-left: -60px;
}
.sun-disc {
    position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, #fff8d8 0%, #ffe09a 38%, #ffb36a 72%, #ff8a5c 100%);
    box-shadow: 0 0 40px 10px rgba(255, 196, 120, .7), 0 0 120px 40px rgba(255, 150, 110, .35);
}
.sun-glow {
    position: absolute; inset: -150px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 150, .55) 0%, rgba(255, 150, 120, .18) 40%, rgba(255, 140, 120, 0) 70%);
    animation: sunPulse 5s ease-in-out infinite;
}
@keyframes sunPulse { 0%, 100% { scale: 1; opacity: .85; } 50% { scale: 1.12; opacity: 1; } }

.hero-far {
    position: absolute; z-index: 2; left: 0; width: 100%; height: 5%;
    bottom: calc(100% - var(--horizon)); fill: #7d4d7e; opacity: .75;
}
.hero-sea {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; top: var(--horizon); overflow: hidden;
    background: linear-gradient(180deg, #d27f93 0%, #8a6aa2 10%, #4b5a9c 30%, #2a4381 60%, #1b2f60 100%);
}
.sea-glint {
    position: absolute; top: 0; left: var(--sun-x); width: 130px; margin-left: -65px; height: 75%;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 214, 150, .35) 30%, rgba(255, 236, 190, .55) 50%, rgba(255, 214, 150, .35) 70%, transparent 100%),
        repeating-linear-gradient(180deg, rgba(255, 228, 170, .55) 0 1.5px, transparent 1.5px 9px);
    filter: blur(.6px);
    -webkit-mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 40%, transparent 100%), radial-gradient(ellipse at 50% 0, #000 30%, transparent 70%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
    mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 40%, transparent 100%);
    animation: glint 2.2s ease-in-out infinite alternate;
}
@keyframes glint { from { opacity: .55; scale: .85 1; } to { opacity: 1; scale: 1.15 1; } }
.sea-waves {
    position: absolute; left: 0; width: 200%; height: 14px;
    fill: none; stroke: rgba(255, 230, 220, .22); stroke-width: 1.4;
    animation: waves 14s linear infinite;
}
.sea-waves.w1 { top: 12%; }
.sea-waves.w2 { top: 40%; animation-duration: 10s; animation-direction: reverse; stroke: rgba(255, 255, 255, .14); }
.sea-waves.w3 { top: 72%; animation-duration: 8s; height: 20px; stroke: rgba(255, 255, 255, .1); }
@keyframes waves { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-boat {
    position: absolute; z-index: 4; left: 48%; top: calc(var(--horizon) + 1.5%);
    width: 46px; height: 40px;
    animation: drift 40s ease-in-out infinite alternate;
}
.hero-boat .boat-bob, .footer-boat .boat-bob { width: 100%; height: 100%; display: block; animation: bob 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes drift { from { translate: -40px 0; } to { translate: 60px 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-2px) rotate(2deg); } }

.gulls { position: absolute; inset: 0; z-index: 5; }
.gull { position: absolute; left: 0; width: 26px; height: 11px; color: #3b2f4a; opacity: .75; animation: gullFly 30s linear infinite, flap .55s ease-in-out infinite alternate; }
.gull.g1 { top: 30%; }
.gull.g2 { top: 36%; width: 18px; height: 8px; animation-duration: 38s, .45s; animation-delay: -12s, 0s; }
.gull.g3 { top: 24%; width: 14px; height: 6px; animation-duration: 46s, .5s; animation-delay: -26s, 0s; opacity: .55; }
@keyframes gullFly {
    0%   { translate: -10vw 0; }
    50%  { translate: 55vw -30px; }
    100% { translate: 112vw 10px; }
}
@keyframes flap { from { scale: 1 1; } to { scale: 1 -.5; } }

.hero-village { position: absolute; height: auto; aspect-ratio: 400 / 420; }
.hero-village-r { z-index: 6; right: -4px; bottom: -2px; width: min(92vw, 640px); filter: drop-shadow(-8px -4px 18px rgba(255, 160, 110, .25)); }
.hero-village-l { z-index: 2; left: -6px; bottom: calc(100% - var(--horizon) - 10px); width: min(34vw, 300px); opacity: .7; filter: saturate(.6) brightness(.82) hue-rotate(-12deg); }
.windmill .blades { animation: blades 9s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blades { from { rotate: 0deg; } to { rotate: 360deg; } }

.hero-branch, .intro-branch, .portrait-sprig, .intro-pot svg { overflow: visible; }
.hero-branch { position: absolute; z-index: 7; top: -24px; width: min(44vw, 300px); height: auto; aspect-ratio: 240 / 320; filter: drop-shadow(0 10px 14px rgba(30, 10, 40, .35)); }
.hero-branch-l { left: -30px; transform-origin: 0 0; }
.hero-branch-r { right: -30px; transform-origin: 100% 0; }

.hero-frame {
    position: relative; z-index: 10; text-align: center; color: #fff;
    padding: calc(13vh + 20px) 20px 0; width: min(100%, 640px);
}
.hero-label { font-size: .72rem; letter-spacing: .42em; text-transform: uppercase; color: #ffe6d2; }
.hero-names {
    font-family: var(--script); font-weight: 400; line-height: 1.02; margin-top: 10px;
    font-size: clamp(3.6rem, 16vw, 5.8rem); color: #fff;
    text-shadow: 0 2px 20px rgba(255, 160, 120, .55), 0 0 2px rgba(40, 20, 60, .25);
}
.hero-names .nm { display: block; }
.hero-names .w { display: inline-block; white-space: nowrap; }
.hero-names .ch { display: inline-block; }
.hero-names .amp { display: block; font-size: .5em; line-height: .9; color: #ffd27a; margin: -.12em 0 -.05em; }
.hero-olive { display: block; width: 190px; height: 38px; margin: 8px auto 6px; filter: brightness(1.9) saturate(.5); }
.hero-date { display: flex; align-items: center; justify-content: center; gap: 14px; font-family: var(--serif); }
.hd-side {
    font-size: .92rem; letter-spacing: .08em; min-width: 96px; padding: 5px 0;
    border-top: 1px solid rgba(255, 255, 255, .45); border-bottom: 1px solid rgba(255, 255, 255, .45);
}
.hd-day { font-size: 2.8rem; line-height: 1; color: #ffd27a; text-shadow: 0 0 18px rgba(255, 190, 110, .6); }

.scroll-hint {
    position: absolute; bottom: 92px; left: 50%; margin-left: -11px; z-index: 10;
    width: 22px; height: 36px; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 12px;
}
.scroll-hint span {
    position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
    border-radius: 2px; background: #fff; 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); } }

/* ════════════════════════════
   SECTION HEADINGS
════════════════════════════ */
.section-head { text-align: center; margin-bottom: 40px; }
.eyebrow { font-family: var(--script); font-size: 2rem; line-height: 1.1; color: var(--sunset); display: inline-block; }
.section-title {
    font-family: var(--serif); font-weight: 400; color: var(--aegean-dk);
    font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.2; letter-spacing: .04em;
}
.divider { display: block; width: 200px; height: 40px; margin: 6px auto 0; }
.section-intro { text-align: center; max-width: 540px; margin: -14px auto 46px; color: var(--muted); font-size: .92rem; }

/* ════════════════════════════
   QUOTE
════════════════════════════ */
.quote { background: var(--plaster); text-align: center; padding: 96px 0 84px; }
.quote .container { max-width: 620px; }
.quote-dome { display: block; width: 64px; height: 64px; margin: 0 auto 18px; filter: drop-shadow(0 6px 10px rgba(29, 61, 115, .2)); }
.quote-text { font-family: var(--serif); font-size: 1.12rem; line-height: 1.85; color: var(--ink); }
.quote-text .wd { display: inline-block; }
.quote cite { display: inline-block; margin-top: 16px; font-style: normal; font-size: .76rem; letter-spacing: .28em; text-transform: uppercase; color: var(--aegean); }

/* ════════════════════════════
   COUPLE — shuttered windows
════════════════════════════ */
.couple { background: linear-gradient(180deg, var(--plaster) 0%, var(--aegean-lt) 100%); }
.couple-flex { display: flex; align-items: center; justify-content: center; gap: 30px; }
.couple-item { flex: 1; max-width: 300px; text-align: center; }
.portrait { position: relative; width: 196px; margin: 0 auto 24px; }
.portrait-window {
    position: relative; width: 196px; height: 256px; overflow: hidden; perspective: 900px;
    border-radius: 999px 999px 10px 10px;
    border: 8px solid #fff;
    box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.portrait-view {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 50% 74%, #fff1c2 0 12%, rgba(255, 200, 120, .7) 13%, rgba(255, 160, 120, 0) 32%),
        linear-gradient(180deg, #4a4590 0%, #b8679a 38%, #f59a7c 62%, #ffd294 72%, #4b5a9c 72.5%, #2a4381 100%);
}
.portrait-view span { font-family: var(--script); font-size: 6rem; color: #fff; text-shadow: 0 4px 18px rgba(40, 20, 60, .35); margin-top: -30px; }
.shutter {
    position: absolute; top: 0; bottom: 0; width: 50%; display: none; z-index: 2;
    background:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, .16) 0 2px, rgba(0, 0, 0, .14) 2px 4px, transparent 4px 12px),
        linear-gradient(180deg, #3f80d2, #24569e);
    backface-visibility: hidden;
}
.shutter.l { left: 0; transform-origin: 0 50%; box-shadow: inset -2px 0 0 rgba(0, 0, 0, .2); }
.shutter.r { right: 0; transform-origin: 100% 50%; box-shadow: inset 2px 0 0 rgba(255, 255, 255, .15); }
.couple-item.armed .shutter { display: block; }
.portrait-sprig {
    position: absolute; z-index: 3; top: -26px; left: -40px; width: 130px; height: auto; aspect-ratio: 120 / 90;
    filter: drop-shadow(0 6px 8px rgba(120, 30, 70, .2));
}
.portrait-sprig.flip { left: auto; right: -40px; }
.couple .name { font-family: var(--script); font-weight: 400; font-size: 2.6rem; line-height: 1.2; color: var(--aegean-dk); margin-bottom: 6px; }
.couple .parent { font-size: .88rem; color: var(--muted); }
.ampersand { font-family: var(--script); font-size: 4.4rem; color: var(--sunset); line-height: 1; }

/* ════════════════════════════
   EVENT — domes & blue doors
════════════════════════════ */
.event { background: var(--aegean-lt); padding-top: 120px; }
.countdown { display: flex; justify-content: center; gap: 12px; margin-bottom: 54px; perspective: 400px; }
.time-box {
    position: relative; width: 74px; padding: 30px 0 10px; text-align: center; margin-top: 22px;
    background: #fff; border-radius: 6px 6px 14px 14px; box-shadow: 0 10px 22px rgba(29, 61, 115, .12);
}
.time-box::before {
    content: ""; position: absolute; left: 8px; right: 8px; top: -26px; height: 30px;
    border-radius: 999px 999px 0 0;
    background: radial-gradient(circle at 35% 30%, #7fb0ee 0%, #3d7bd0 40%, #1f4f99 100%);
}
.time-box::after {
    content: ""; position: absolute; left: 50%; top: -38px; width: 2px; height: 12px; margin-left: -1px; background: #fff;
    box-shadow: 0 4px 0 0 #fff;
}
.time-box span { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--aegean); 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: 26px; }
.event-card {
    position: relative; text-align: center;
    background: #fff; border-radius: 150px 150px 18px 18px; overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow);
    perspective: 1000px;
}
.card-content { padding: 40px 24px 34px; position: relative; z-index: 1; }
.event-dome { width: 56px; height: 56px; display: block; margin: 0 auto 6px; }
.event-title { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--aegean-dk); letter-spacing: .05em; }
.event-date { font-family: var(--serif); font-size: 1.04rem; color: var(--ink); margin-top: 8px; }
.event-time {
    display: inline-block; margin: 8px 0 10px; padding: 4px 16px; border-radius: 100px;
    background: #fff1e8; color: #c9603f; font-weight: 500; font-size: .9rem;
}
.event-location { font-size: .9rem; color: var(--muted); }
.card-doors { position: absolute; inset: 0; z-index: 3; display: none; }
.door-card.armed .card-doors { display: block; }
.cd {
    position: absolute; top: 0; bottom: 0; width: 50%;
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 20px),
        linear-gradient(180deg, #3f80d2, #1f4e93);
    backface-visibility: hidden;
}
.cd::before {
    content: ""; position: absolute; left: 18%; right: 18%; top: 34%; height: 34%;
    border-radius: 6px; border: 2px solid rgba(255, 255, 255, .18); box-shadow: inset 0 0 14px rgba(0, 0, 0, .2);
}
.cd::after {
    content: ""; position: absolute; top: 58%; width: 10px; height: 10px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff3c6, #e8b65a 55%, #9b6f22);
}
.cd.l { left: 0; transform-origin: 0 50%; }
.cd.l::after { right: 10px; }
.cd.r { right: 0; transform-origin: 100% 50%; }
.cd.r::after { left: 10px; }

/* ════════════════════════════
   MAP
════════════════════════════ */
.map-section { background: var(--plaster); }
.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(--aegean-lt); color: var(--aegean); }
.map-venue { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); 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(--aegean-lt); color: var(--aegean); text-decoration: none; font-size: .9rem; }

/* ════════════════════════════
   GALLERY — arched windows
════════════════════════════ */
.gallery { background: linear-gradient(180deg, #fff6ef 0%, var(--plaster) 100%); padding-top: 120px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
    position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 4;
    border-radius: 999px 999px 12px 12px; border: 5px solid #fff;
    box-shadow: 0 0 0 1px var(--line), 0 12px 26px rgba(29, 61, 115, .1);
}
.gallery-item:nth-child(3n+2) { border-radius: 12px; margin-top: 30px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.placeholder {
    cursor: default; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #fde3d3 0%, #f9c3b0 50%, #e8f0fa 50.5%, #cddcf0 100%);
}
.gallery-item.placeholder svg { width: 54px; height: 54px; }

.gallery-lightbox { display: none; position: fixed; inset: 0; z-index: 10003; opacity: 0; align-items: center; justify-content: center; background: rgba(20, 30, 60, .93); transition: opacity .3s; }
.lb-img-wrap img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 12px; }
.lb-close, .lb-prev, .lb-next {
    position: absolute; background: rgba(255, 255, 255, .15); 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(--aegean-lt); }
.rsvp-card {
    background: #fff; border-radius: 120px 120px var(--radius) var(--radius); padding: 50px 26px 32px;
    border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 34px;
}
.ss-form .input-row { margin-bottom: 18px; }
.ss-form label { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 400; }
.ss-form input[type="text"], .ss-form textarea {
    width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--plaster);
    font-family: var(--sans); font-size: .95rem; color: var(--ink); transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.ss-form input:focus, .ss-form textarea:focus { outline: none; border-color: var(--aegean); box-shadow: 0 0 0 4px rgba(47, 98, 168, .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(--plaster); color: var(--ink); transition: .25s; }
.attend-opt input:checked + span { background: var(--aegean); border-color: var(--aegean); color: #fff; }
.attend-opt input:focus-visible + span { outline: 2px solid var(--aegean); 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: #c9d8ee 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: 999px 999px 8px 8px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #3f80d2, var(--aegean-dk)); color: #fff; font-family: var(--serif); 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(--ink); }
.wish-badge { font-size: .66rem; padding: 2px 10px; border-radius: 100px; letter-spacing: .04em; }
.wish-badge.hadir { background: #e3f1e5; color: #3f7a4d; }
.wish-badge.tidak { background: #fbe3e6; 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); }

/* ════════════════════════════
   FOOTER — the sun sets
════════════════════════════ */
.footer { position: relative; overflow: hidden; min-height: 640px; padding: 90px 20px 170px; text-align: center; color: #fff; }
.footer-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.footer-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #1b2c5e 0%, #4a3f8a 30%, #b05f92 52%, #f08a7c 64%, #ffcb8e 72%); }
.footer-sun {
    position: absolute; z-index: 1; left: 50%; top: calc(72% - 70px); width: 120px; height: 120px; margin-left: -60px; border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, #fff8d8 0%, #ffe09a 38%, #ffb36a 72%, #ff8a5c 100%);
    box-shadow: 0 0 50px 16px rgba(255, 190, 120, .6), 0 0 140px 60px rgba(255, 140, 110, .3);
}
.footer-sea { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; top: 72%; overflow: hidden; background: linear-gradient(180deg, #c97c94 0%, #5a5c9e 22%, #2a4381 60%, #1b2f60 100%); }
.footer-sea .sea-glint { left: 50%; }
.footer-village { position: absolute; z-index: 3; right: -10px; bottom: -4px; width: min(70vw, 460px); height: auto; aspect-ratio: 400 / 420; filter: brightness(.55) saturate(.7) hue-rotate(-15deg); }
.footer-boat { position: absolute; z-index: 3; left: 18%; top: calc(72% + 3%); width: 38px; height: 33px; animation: drift 30s ease-in-out infinite alternate; }
.footer-inner { position: relative; z-index: 4; max-width: 520px; margin: 0 auto; }
.footer .eyebrow { font-size: 3rem; color: #ffd9b8; }
.footer-copy { margin: 10px auto 24px; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.footer-names { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; letter-spacing: .06em; text-shadow: 0 2px 14px rgba(0, 0, 0, .2); }
.footer-names em { font-family: var(--script); font-style: normal; color: #ffd27a; }
.divider.light { filter: brightness(1.9) saturate(.5); }
.footer-credit { margin-top: 26px; font-size: .7rem; letter-spacing: .06em; opacity: .7; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (min-width: 900px) {
    :root { --sun-x: 36%; }
    .hero-frame { padding-top: 15vh; }
    .hero-branch { width: 320px; }
}
@media (max-width: 640px) {
    section { padding: 80px 0; }
    .couple-flex { flex-direction: column; gap: 14px; }
    .ampersand { font-size: 3.6rem; }
    .event-grid { grid-template-columns: 1fr; gap: 24px; }
    .countdown { gap: 9px; }
    .time-box { width: 70px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gallery-item:nth-child(3n+2) { margin-top: 0; border-radius: 999px 999px 12px 12px; }
    .gallery-item:nth-child(4n+2), .gallery-item:nth-child(4n+3) { border-radius: 12px; }
    .gallery-item:nth-child(2n) { margin-top: 26px; }
    .map-info { flex-direction: column; align-items: stretch; }
    .hd-side { min-width: 84px; font-size: .84rem; }
}

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