/* CARLES & NINGSIH — VINTAGE MOTION V2
   Decorative animation layer. Keeps existing content, admin and Supabase intact.
*/
:root{--v2-brass:#c1a265;--v2-honey:#e6d29c;--v2-night:#20394c;--v2-ivory:#f8f5e8}
.cover-page,.site .section,.site .intro-section,.site .closing-section{isolation:isolate}
.v2-decor{pointer-events:none!important;user-select:none;position:absolute;display:block;z-index:1}
.v2-decor img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.v2-decor[aria-hidden="true"]{contain:layout style}
/* COVER: deep relief, golden filigree, gentle mist and corner garlands */
.cover-page{background-image:radial-gradient(circle at 50% 45%,#fffaf24d 0%,transparent 60%)!important}
.cover-page:after{content:"";position:absolute;inset:27px;border:1px solid rgba(177,139,64,.68);border-radius:47% 47% 23px 23px/21% 21% 23px 23px;pointer-events:none;z-index:2;box-shadow:inset 0 0 0 3px rgba(250,247,225,.3),0 0 0 1px rgba(50,68,76,.2)}
.cover .vintage-cover-landscape:after{background:linear-gradient(180deg,#f7f3e2d9 0%,#f9f7edcb 22%,#faf7ebad 44%,#f5f0db43 70%,#162c42a0 100%)}
.v2-cover-crest{width:min(82%,350px);height:115px;top:5%;left:50%;transform:translateX(-50%);z-index:4;opacity:.86;filter:drop-shadow(0 2px 2px #fff7d5)}
.v2-cover-corner-left,.v2-cover-corner-right{z-index:3;width:285px;height:480px;top:-110px;left:-128px;transform-origin:28% 10%;filter:drop-shadow(0 7px 12px rgba(28,47,56,.2))}
.v2-cover-corner-right{left:auto;right:-145px;transform:scaleX(-1);transform-origin:72% 10%}
.v2-cover-bottom-left,.v2-cover-bottom-right{z-index:3;width:233px;height:432px;bottom:-253px;left:-93px;transform:rotate(-21deg);transform-origin:24% 85%}
.v2-cover-bottom-right{left:auto;right:-101px;transform:scaleX(-1) rotate(-18deg);transform-origin:75% 85%}
.v2-cover-butterfly{z-index:5;top:29%;left:7%;width:38px;height:42px;opacity:.8;filter:drop-shadow(0 3px 3px #6d603e66)}
.v2-cover-butterfly.v2-right{top:33%;left:auto;right:9%;width:26px;opacity:.68}
.v2-cover-birds{width:127px;top:19%;left:53%;opacity:.5;z-index:2}
.v2-cover-lace{height:45px;left:6%;right:6%;bottom:8%;opacity:.64;z-index:3}
.v2-cover-haze{inset:auto 0 0;height:30%;z-index:1;background:linear-gradient(0deg,#dce1d4b5,transparent);filter:blur(12px);opacity:.4}
.cover .cover-center{z-index:8}
.cover .cover-center .royal-initials{filter:drop-shadow(0 4px 5px #ffffffe6)}
.cover .pill-button{position:relative;overflow:hidden;box-shadow:0 8px 24px #1b35454b,0 0 0 4px #f4ebd58c;background:linear-gradient(115deg,#7c613e,#d6b477 51%,#917145)}
.cover .pill-button:after,.site .pill-button:after{content:"";position:absolute;inset:-80% -15%;width:35%;background:linear-gradient(90deg,transparent,#ffffffb0,transparent);transform:translateX(-500%) rotate(30deg);animation:v2-button-sheen 6.3s ease-in-out infinite;pointer-events:none}
@keyframes v2-button-sheen{0%,49%{transform:translateX(-500%) rotate(30deg)}64%,100%{transform:translateX(550%) rotate(30deg)}}
.cover:not(.is-opened) .v2-cover-corner-left{animation:v2-vine-left 9.8s ease-in-out infinite alternate}
.cover:not(.is-opened) .v2-cover-corner-right{animation:v2-vine-right 11.3s ease-in-out infinite alternate}
.cover:not(.is-opened) .v2-cover-bottom-left{animation:v2-bottom-left 9s ease-in-out infinite alternate}
.cover:not(.is-opened) .v2-cover-bottom-right{animation:v2-bottom-right 10.5s ease-in-out infinite alternate}
.cover:not(.is-opened) .v2-cover-butterfly{animation:v2-butterfly-float 7.2s ease-in-out infinite}
.cover:not(.is-opened) .v2-cover-butterfly.v2-right{animation-delay:-3.7s;animation-duration:9.6s}
.cover:not(.is-opened) .v2-cover-crest{animation:v2-crest-glow 8s ease-in-out infinite}
.cover.is-opened .cover-center{animation:v2-cover-exit .74s ease forwards}
.cover.is-opened .v2-cover-corner-left{animation:v2-curtain-left .78s ease-in forwards}
.cover.is-opened .v2-cover-corner-right{animation:v2-curtain-right .78s ease-in forwards}
@keyframes v2-cover-exit{to{opacity:0;transform:translateY(-60%) scale(.93)}}
@keyframes v2-curtain-left{to{transform:translate(-130px,-90px) rotate(-21deg);opacity:0}}
@keyframes v2-curtain-right{to{transform:translate(130px,-90px) scaleX(-1) rotate(21deg);opacity:0}}
@keyframes v2-vine-left{to{transform:rotate(5deg) translate(8px,7px)}}
@keyframes v2-vine-right{to{transform:scaleX(-1) rotate(-5deg) translate(8px,5px)}}
@keyframes v2-bottom-left{to{transform:rotate(-15deg) translateY(-10px)}}
@keyframes v2-bottom-right{to{transform:scaleX(-1) rotate(-12deg) translateY(-9px)}}
@keyframes v2-butterfly-float{0%,100%{transform:translate(0,0) rotate(-9deg) scale(1)}35%{transform:translate(25px,-22px) rotate(12deg) scale(.88)}70%{transform:translate(6px,-36px) rotate(-4deg) scale(1.05)}}
@keyframes v2-crest-glow{50%{opacity:.98;filter:drop-shadow(0 0 7px #c4a06a70)}}
/* Floating gold fireflies and petal sprites. Movement limited by reduced-motion/data-saver controls. */
.v2-glint{position:absolute;z-index:2;display:block;left:var(--x);top:var(--y);width:var(--size,5px);height:var(--size,5px);border-radius:50%;background:#fff4cd;box-shadow:0 0 0 2px #d5b77b55,0 0 11px 5px #dec18391;opacity:0;animation:v2-glitter var(--dur,5s) ease-in-out var(--delay,0s) infinite;pointer-events:none}
.v2-glint:nth-child(3n){background:#eac27a;box-shadow:0 0 11px 2px #eac27a70}
@keyframes v2-glitter{0%,100%{opacity:0;transform:translate3d(0,12px,0) scale(.25)}35%{opacity:.95}68%{opacity:.28;transform:translate3d(9px,-16px,0) scale(1.3)}}
.v2-mote{position:absolute;pointer-events:none;top:-15%;left:var(--x);width:var(--s,10px);height:var(--s,10px);border-radius:3px 15px 3px 14px;background:radial-gradient(circle at 25% 25%,#fff8e1 0%,#b9965d 70%);z-index:4;opacity:0;animation:v2-mote-fall var(--d,13s) linear var(--delay,0s) infinite}
@keyframes v2-mote-fall{0%{opacity:0;transform:translate3d(0,-20px,0) rotate(0deg)}12%{opacity:.72}78%{opacity:.65}100%{opacity:0;transform:translate3d(var(--dx,58px),104vh,0) rotate(520deg)}}
/* INTRO: richly framed garden with moving clouds, foreground botanical layers, birds */
.intro-section{background:radial-gradient(ellipse at 50% 8%,#fffcf1 0,#f5f3e8 58%,#e4e7e6 100%)}
.intro-section .vintage-hero-arch{inset:29px 18px 19px;border:1.5px solid #bda46b;border-radius:48% 48% 18px 18px/13% 13% 18px 18px;box-shadow:inset 0 0 0 7px #fff9e857,0 0 0 4px #ddca9a3b}
.v2-hero-crest{top:14px;left:50%;width:81%;height:103px;transform:translateX(-50%);z-index:2;opacity:.74}
.v2-hero-vine-left,.v2-hero-vine-right{top:17%;left:-99px;width:202px;height:375px;z-index:2;opacity:.64;transform-origin:20% 20%}
.v2-hero-vine-right{left:auto;right:-102px;transform:scaleX(-1);transform-origin:80% 20%}
.v2-hero-meadow-left,.v2-hero-meadow-right{bottom:-102px;left:-90px;width:275px;height:470px;z-index:3;opacity:.85;transform-origin:20% 85%}
.v2-hero-meadow-right{left:auto;right:-95px;transform:scaleX(-1);transform-origin:80% 85%}
.v2-hero-fog{position:absolute;inset:auto -22% 3%;height:280px;z-index:1;opacity:.65;background:radial-gradient(ellipse at 48% 88%,#f7f5e8e8,transparent 64%),linear-gradient(0deg,#eef0ebe8,transparent 75%);filter:blur(26px);pointer-events:none}
.v2-hero-birds{width:143px;top:41%;right:8%;z-index:2;opacity:.51}
.v2-hero-butterfly{width:43px;height:45px;top:48%;left:7%;z-index:3}
.v2-hero-dew{width:50%;height:185px;bottom:20%;left:24%;z-index:1;opacity:.32;background:radial-gradient(circle,#f9f6e6c8 0%,transparent 65%);filter:blur(18px)}
.intro-section .eyebrow,.intro-section .royal-initials,.intro-section .couple-name,.intro-section .intro-date{z-index:5}
.v2-hero-inview .v2-hero-vine-left{animation:v2-vine-left 9s ease-in-out infinite alternate}
.v2-hero-inview .v2-hero-vine-right{animation:v2-vine-right 10.5s ease-in-out infinite alternate}
.v2-hero-inview .v2-hero-meadow-left{animation:v2-garden-left 9s ease-in-out infinite alternate}
.v2-hero-inview .v2-hero-meadow-right{animation:v2-garden-right 10.2s ease-in-out infinite alternate}
.v2-hero-inview .v2-hero-fog{animation:v2-fog-drift 13s ease-in-out infinite alternate}
.v2-hero-inview .v2-hero-butterfly{animation:v2-butterfly-float 8s ease-in-out infinite}
@keyframes v2-garden-left{to{transform:translate(6px,-6px) rotate(4deg)}}
@keyframes v2-garden-right{to{transform:scaleX(-1) translate(6px,-6px) rotate(-4deg)}}
@keyframes v2-fog-drift{to{transform:translateX(27px) scale(1.1);opacity:.9}}
/* SECTION ORNAMENTATION. A living floral border on both sides + golden openwork dividers. */
.section{position:relative}
.v2-side-left,.v2-side-right{width:171px;height:306px;top:var(--v2-side-top,17%);left:-86px;opacity:var(--v2-side-opacity,.32);transform-origin:30% 12%;filter:drop-shadow(0 6px 12px rgba(63,75,66,.16))}
.v2-side-right{left:auto;right:-88px;transform:scaleX(-1);transform-origin:70% 12%}
.v2-corner-bottom{width:128px;height:240px;bottom:-134px;left:-50px;opacity:.33;transform:rotate(-45deg)}
.v2-corner-bottom.v2-right{left:auto;right:-52px;transform:scaleX(-1) rotate(-45deg)}
.v2-section-divider{left:50%;top:2px;width:73%;height:72px;transform:translateX(-50%);opacity:.82}
.v2-gold-lace{left:0;bottom:2px;width:100%;height:41px;opacity:.6}
.v2-dust-layer{inset:0;z-index:1;overflow:hidden}
.v2-section-fog{inset:35% -45px 18%;z-index:0;background:radial-gradient(ellipse at 50% 40%,#fff7df7c 0%,transparent 65%);filter:blur(19px);opacity:.52}
.v2-section-decor{z-index:0}
.section .section-title{position:relative;z-index:2;text-shadow:0 2px 15px #fffdf5b5}
.section .section-title:after{content:"";display:block;width:135px;height:30px;margin:8px auto -8px;background:url('assets/v2-separator.svg') center/contain no-repeat;opacity:.7}
.event-section .section-title,.greeting .salam-heading{z-index:2;position:relative;text-shadow:0 2px 8px #152f40}
.event-section .section-title:after{filter:brightness(1.35)}
.greeting,.event-section{--v2-side-opacity:.48}
.greeting .v2-side-left,.greeting .v2-side-right,.event-section .v2-side-left,.event-section .v2-side-right{filter:brightness(1.7) saturate(.62) drop-shadow(0 6px 12px #0d263454)}
.greeting:after,.event-section:after{content:"";position:absolute;inset:18px 13px;z-index:0;border:1px solid #d3b77c70;border-radius:48% 48% 20px 20px/10% 10% 20px 20px;pointer-events:none}
.greeting>.section-flourish,.event-section>.section-flourish{position:relative;z-index:2}
.couple-section .picture-arch{filter:drop-shadow(0 17px 13px #17354d35);transition:transform .7s cubic-bezier(.2,.6,.2,1)}
.couple-section .person.visible .picture-arch{animation:v2-portrait-waltz 7.8s ease-in-out infinite alternate}
@keyframes v2-portrait-waltz{to{transform:translateY(-9px) rotate(.6deg)}}
.couple-section .arch-bouquet{width:230px;opacity:.95;filter:drop-shadow(0 7px 11px #1a344b3d)}
.couple-section{background:linear-gradient(180deg,#f9f8f1e9,#e4e8e6ec 75%,#faf8f0f6),url('assets/vintage-forest.webp') center/cover}
.story-section .story-arch{box-shadow:0 15px 30px #1733492d,0 0 0 6px #fff5e5a6;transition:transform .8s ease}
.story-section .story-arch.visible{animation:v2-story-levitate 9s ease-in-out infinite alternate}
@keyframes v2-story-levitate{to{transform:translateY(-7px)}}
.gallery-section .gallery-grid{gap:13px;perspective:700px}
.gallery-section .gallery-piece{border:5px solid #fffdfa;outline:1px solid #aa956e;box-shadow:0 8px 20px #233c4b39;transition:transform .7s ease,box-shadow .5s}
.gallery-section .gallery-piece:nth-child(4n+1){transform:rotate(-2deg)}
.gallery-section .gallery-piece:nth-child(4n+2){transform:rotate(1.8deg) translateY(9px)}
.gallery-section .gallery-piece:nth-child(4n+3){transform:rotate(1.7deg) translateY(-4px)}
.gallery-section .gallery-piece:nth-child(4n+4){transform:rotate(-1.5deg) translateY(7px)}
.gallery-section .gallery-piece:hover{transform:scale(1.055) rotate(0) translateY(-5px);box-shadow:0 12px 28px #233c4b4d;z-index:5}
.gallery-section .gallery-piece img{transition:transform 7s ease}
.gallery-section .gallery-piece:hover img{transform:scale(1.12)}
.date-section{background:linear-gradient(#f8f5ecdd,#f8f5ecee),url('assets/vintage-forest.webp') center/cover}
.countdown>div{box-shadow:inset 0 0 0 2px #fffcf5,0 6px 17px #15354729;animation:v2-clock-glow 4.3s ease-in-out infinite alternate}
.countdown>div:nth-child(2){animation-delay:-1s}.countdown>div:nth-child(3){animation-delay:-2s}.countdown>div:nth-child(4){animation-delay:-3s}
@keyframes v2-clock-glow{to{box-shadow:inset 0 0 0 2px #fffcf5,0 2px 22px #d9b16b7c;transform:translateY(-4px)}}
.event-box{position:relative;overflow:visible;box-shadow:0 12px 30px #132e3c55,0 0 0 4px #fff8e724;transition:transform .5s ease}
.event-box:hover{transform:translateY(-5px)}
.event-box:before{content:"";position:absolute;inset:13px;border:1px solid #cdb27f88;border-radius:50% 50% 12px 12px/16% 16% 12px 12px;pointer-events:none}
.event-section .event-garden{filter:saturate(.9) contrast(1.02);mask-image:linear-gradient(to bottom,transparent 0%,black 40%);-webkit-mask-image:linear-gradient(to bottom,transparent 0%,black 40%)}
.host-group{box-shadow:0 9px 19px #344c5829,0 0 0 3px #f5edd675}
.inset-frame{position:relative;box-shadow:0 10px 26px #213f4c30,0 0 0 5px #e4d7bb5c}
.closing-section{background:linear-gradient(180deg,#f8f7f2,#f8f7f1b0),url('assets/vintage-forest.webp') center bottom/cover}
.closing-section>.closing-garden{opacity:.74;mask-image:linear-gradient(to bottom,transparent 1%,black 43%);-webkit-mask-image:linear-gradient(to bottom,transparent 1%,black 43%)}
.closing-section .v2-side-left,.closing-section .v2-side-right{top:5%;opacity:.52}
.creator-credit{background:linear-gradient(145deg,#263a47,#1e3347 50%,#15283c)}
.creator-credit:after{content:"";position:absolute;top:0;left:5%;width:90%;height:42px;background:url('assets/v2-separator.svg') center/contain no-repeat;opacity:.7;pointer-events:none}
/* Scroll-reveal choreography; existing .reveal continues to be managed by app.js */
body:not(.v2-reduce) .reveal.visible{animation:v2-rise-in .88s cubic-bezier(.19,.8,.22,1) both}
body:not(.v2-reduce) .section .reveal.visible:nth-child(3n){animation-delay:.09s}
body:not(.v2-reduce) .section .reveal.visible:nth-child(3n+1){animation-delay:.17s}
@keyframes v2-rise-in{from{opacity:0;filter:blur(5px);transform:translate3d(0,27px,0) scale(.98)}to{opacity:1;filter:blur(0);transform:translate3d(0,0,0) scale(1)}}
.v2-inview .v2-side-left{animation:v2-section-sway-left 8s ease-in-out infinite alternate}
.v2-inview .v2-side-right{animation:v2-section-sway-right 9.1s ease-in-out infinite alternate}
@keyframes v2-section-sway-left{to{transform:translate(10px,-12px) rotate(5deg)}}
@keyframes v2-section-sway-right{to{transform:scaleX(-1) translate(9px,-13px) rotate(-5deg)}}
.v2-inview .v2-section-divider{animation:v2-crest-glow 8s ease-in-out infinite}
.v2-inview .v2-section-fog{animation:v2-fog-drift 12s ease-in-out infinite alternate}
.v2-inview .v2-gold-lace{animation:v2-lace-wave 7s ease-in-out infinite alternate}
@keyframes v2-lace-wave{to{opacity:.85;transform:translateY(-3px)}}
/* Scene lens scroll depth: restricted to decorative elements; never move forms/text. */
.v2-hero-fog,.v2-hero-dew,.v2-hero-birds{translate:0 calc(var(--v2-depth,0) * 1px)}
.v2-hero-fog{translate:0 calc(var(--v2-depth,0) * .5px)}
/* Burst when opening invitation */
.v2-opening-burst{position:fixed;inset:0;z-index:60;pointer-events:none;overflow:hidden}
.v2-opening-burst>i{position:absolute;left:50%;top:49%;display:block;width:var(--s,10px);height:var(--s,10px);background:linear-gradient(135deg,#fff7d5,#bc985b 65%,#698099);border-radius:2px 11px 2px 12px;opacity:0;animation:v2-burst 1.45s ease-out var(--delay,0s) forwards}
@keyframes v2-burst{0%{opacity:0;transform:translate(-50%,-50%) scale(.2) rotate(0)}13%{opacity:.92}100%{opacity:0;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(.7) rotate(540deg)}}
/* DESKTOP: side background glows and giant floating silhouette */
@media(min-width:760px){
 .desktop-background:after{content:"";position:absolute;left:0;bottom:-65px;width:47%;height:57%;background:url('assets/v2-hanging-vine.svg') left bottom/contain no-repeat;opacity:.2;pointer-events:none;animation:v2-vine-left 11s ease-in-out infinite alternate}
 .desktop-background:before{content:"";position:absolute;right:0;top:0;width:55%;height:20%;background:url('assets/v2-crest.svg') center/contain no-repeat;opacity:.36;pointer-events:none}
 .v2-cover-crest{top:3.5%}
}
@media(max-width:420px){
 .v2-cover-corner-left,.v2-cover-corner-right{width:238px;height:415px;top:-130px;left:-139px}
 .v2-cover-corner-right{left:auto;right:-147px}
 .v2-cover-bottom-left,.v2-cover-bottom-right{width:210px}
 .v2-cover-crest{width:75%;top:5%}
 .v2-hero-vine-left,.v2-hero-vine-right{width:170px;left:-108px;opacity:.5}
 .v2-hero-vine-right{left:auto;right:-108px}
 .v2-hero-meadow-left,.v2-hero-meadow-right{width:220px;left:-100px}
 .v2-hero-meadow-right{left:auto;right:-100px}
 .v2-side-left,.v2-side-right{width:127px;left:-79px;opacity:.28}
 .v2-side-right{left:auto;right:-79px}
 .v2-section-divider{width:70%}
}
/* User accessibility + phone performance */
@media(prefers-reduced-motion:reduce){
 .v2-decor,.v2-glint,.v2-mote,.v2-opening-burst>*{animation:none!important;transition:none!important}
 .v2-glint,.v2-mote{display:none!important}
 .v2-cover-butterfly{display:none}
 .v2-cover-haze,.v2-hero-fog{filter:none}
}
body.v2-reduce .v2-decor,body.v2-reduce .v2-glint,body.v2-reduce .v2-mote{animation:none!important}
body.v2-reduce .v2-glint,body.v2-reduce .v2-mote{display:none!important}

/* Keep the wedding heading clear of the tall calligraphic monogram. */
.intro-section .royal-initials { margin-top: 38px; margin-bottom: 12px; }
.intro-section .eyebrow { z-index: 6; }
