/* UndangKita V5: cinematic motion, original ornament assets and responsive performance. */
.fx-cover{isolation:isolate;overflow:hidden!important;}
.fx-decor{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none;contain:layout paint;}
.fx-cover .fx-decor img{position:absolute;max-width:none;pointer-events:none;user-select:none;}
.fx-cover .fx-decor>.fx-border-glow{position:absolute;inset:16px;border:1px solid #dab77977;border-radius:48% 48% 12px 12px / 25% 25% 12px 12px;box-shadow:0 0 28px 3px #e5c68655,inset 0 0 27px #ffe8b733;animation:fxBorderPulse 4s ease-in-out infinite alternate;}
.fx-light-wash{position:absolute;inset:-20%;background:conic-gradient(from 45deg at 50% 45%,transparent 0deg,#f7d99d19 65deg,transparent 106deg,transparent 190deg,#fff3c227 270deg,transparent 320deg);animation:fxRotate 42s linear infinite;mix-blend-mode:screen;}
.fx-stardust-field{position:absolute;inset:0;background-image:radial-gradient(circle at 15% 25%,#ffecb5b0 .7px,transparent 2px),radial-gradient(circle at 85% 57%,#f7d09eae 1px,transparent 2px),radial-gradient(circle at 52% 13%,#ffffffb8 1px,transparent 2px);background-size:37px 58px,75px 91px,94px 103px;animation:fxStarShift 30s linear infinite;opacity:.77;}
.fx-cover .fx-filigree{width:190px;left:-35px;top:-38px;filter:drop-shadow(0 4px 8px #2d251c55);opacity:.78;animation:fxSwing 6.8s ease-in-out infinite alternate;}
.fx-cover .fx-filigree-b{left:auto;right:-36px;top:auto;bottom:-58px;transform:rotate(180deg);animation:fxSwing2 8.4s ease-in-out infinite alternate;}
.fx-cover .fx-bouquet{width:170px;top:-38px;left:-62px;filter:drop-shadow(0 6px 10px #0003);animation:fxFlowerWiggle 6s ease-in-out infinite alternate;}
.fx-cover .fx-bouquet-right{left:auto;right:-62px;transform:scaleX(-1);animation:fxFlowerWiggleRight 7.1s ease-in-out infinite alternate;}
.fx-cover .fx-mandala{width:310px;top:12%;left:50%;margin-left:-155px;opacity:.28;animation:fxRotate 80s linear infinite;}
.fx-cover .fx-floating-butterfly{width:77px;left:3%;top:31%;filter:drop-shadow(0 3px 5px #0004);animation:fxButterflyFlight 9s ease-in-out infinite;}
.fx-cover .fx-fly-two{width:48px;left:auto;right:7%;top:64%;animation:fxButterflyFlight2 13s ease-in-out infinite;}
.fx-cover .fx-chandelier{width:95px;top:-14px;left:12%;opacity:.74;animation:fxLampSwing 6s ease-in-out infinite alternate;transform-origin:center top;}
.fx-cover .fx-chandelier-b{left:auto;right:12%;width:70px;top:-37px;animation-delay:-2s;}
.fx-cover .fx-sparkle-asset{width:156px;bottom:18%;left:-30px;animation:fxPulse 3.3s ease-in-out infinite alternate;opacity:.8;}
.fx-cover .fx-spark-b{left:auto;right:-24px;top:14%;bottom:auto;animation-delay:-1.8s;}
.fx-glimmer-ring{position:absolute;width:min(82vw,365px);aspect-ratio:1;left:50%;top:51%;border:1px dashed #f5cf8260;border-radius:50%;transform:translate(-50%,-50%);animation:fxRotateCentered 50s linear infinite;box-shadow:0 0 24px #fff4c01d;}
.fx-glimmer-ring-two{width:min(95vw,430px);animation-duration:66s;animation-direction:reverse;border-style:dotted;opacity:.48;}
.fx-twinkle{position:absolute;left:var(--fx-x);top:var(--fx-y);width:var(--fx-size);height:var(--fx-size);background:#fff9dd;box-shadow:0 0 12px 4px #f6d38e8a;transform:rotate(45deg);animation:fxTwinkle 2.6s ease-in-out infinite;animation-delay:var(--fx-delay);}
.fx-falling-petal{position:absolute;left:var(--fx-x);top:-40px;width:12px;height:16px;border-radius:85% 0 65% 20%;background:linear-gradient(135deg,#d7b7aa,#efcfb6 70%,#fff9da);opacity:.8;transform:scale(var(--fx-scale));animation:fxPetalFall var(--fx-dur) linear infinite;animation-delay:var(--fx-delay);}
.fx-cover:not(.fx-cover-opening) .fx-bouquet, .fx-cover:not(.fx-cover-opening) .fx-floating-butterfly{will-change:transform;}
.fx-cover-opening{pointer-events:none;}
.fx-cover-opening>.fx-decor{animation:fxCoverEvaporate 1.35s ease forwards;}
.fx-opening-layer{position:fixed;inset:0;z-index:2400;overflow:hidden;pointer-events:none;display:grid;place-items:center;isolation:isolate;animation:fxTransitionOuter 1.95s linear forwards;}
.fx-curtain{position:absolute;inset:0 50% 0 0;background:radial-gradient(ellipse at 100% 40%,#f6e5c2 0%,#d6af75 70%,#987243 120%);box-shadow:inset -7px 0 40px #563b2066;transform-origin:center left;animation:fxCurtainLeft 1.9s cubic-bezier(.25,.8,.3,1) forwards;}
.fx-curtain.fx-right{inset:0 0 0 50%;background:radial-gradient(ellipse at 0 40%,#f9e7c2,#cfa76e 72%,#97703d);animation-name:fxCurtainRight;}
.fx-burst-light{position:absolute;width:12px;height:12px;border-radius:50%;background:#fff8da;box-shadow:0 0 80px 110px #fff0a6a8,0 0 210px 250px #ffffffab;animation:fxFlash 1.65s ease forwards;}
.fx-ceremony-circle{position:absolute;width:min(80vw,490px);aspect-ratio:1;border:1px solid #c6a06d;border-radius:50%;box-shadow:0 0 0 22px #fff3cd2b,0 0 0 54px #e8bd7655,0 0 0 92px #e8bd761e;animation:fxRing 1.7s ease-out forwards;}
.fx-opening-mandala{position:absolute;width:360px;opacity:.73;animation:fxRevealMandala 1.7s ease-out forwards;filter:drop-shadow(0 9px 19px #4a352635);}
.fx-opening-rings{position:absolute;width:115px;transform:translateY(-78px);animation:fxRingsRise 1.8s ease forwards;}
.fx-opening-words{z-index:2;position:absolute;left:12px;right:12px;top:51%;text-align:center;display:grid;gap:10px;color:#553a27;text-shadow:0 2px 10px #fff9;animation:fxWords 1.7s ease both;}
.fx-opening-words span{font:700 10px 'DM Sans',Arial,sans-serif;letter-spacing:3px;color:#927045;}
.fx-opening-words strong{font:400 clamp(42px,10vw,65px) 'Great Vibes','Brush Script MT',Georgia,serif;color:#6d4f33;}
.fx-opening-words small{font:500 9px 'DM Sans',Arial,sans-serif;letter-spacing:2px;}
.fx-firework-sprites{position:absolute;inset:0;display:grid;place-items:center;}
.fx-burst-particle,.fx-burst-petal{position:absolute;left:50%;top:50%;width:var(--size);height:var(--size);border-radius:50%;background:#fff9d9;box-shadow:0 0 12px 3px #fff0b9;animation:fxParticleExplode 1.6s cubic-bezier(.1,.45,.25,.99) forwards;animation-delay:var(--delay);}
.fx-burst-particle:nth-child(4n){background:#ffdd8c;box-shadow:0 0 14px #a87c4c;}
.fx-burst-particle:nth-child(7n){background:#fff;}
.fx-burst-petal{width:calc(var(--size)*1.4);height:calc(var(--size)*2);border-radius:70% 0 65% 0;background:linear-gradient(135deg,#c48ba1,#fbe4ba);box-shadow:0 0 5px #f0ceab;}
.fx-music-toggle{position:fixed!important;bottom:calc(24px + env(safe-area-inset-bottom));right:20px;z-index:1800!important;width:58px;min-width:58px;height:58px;border:1px solid #eed0a3!important;border-radius:50%!important;background:linear-gradient(140deg,#244458,#476d7e)!important;color:#ffefc6!important;box-shadow:0 5px 24px #1c2a3b66,0 0 0 3px #eac88b35!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:0;font-size:23px!important;cursor:pointer;animation:fxMusicHalo 3s ease-in-out infinite;}
.fx-music-toggle[hidden]{display:none!important;}
.fx-music-toggle span{font:700 8px/1.2 'DM Sans',Arial,sans-serif;letter-spacing:.7px;}
.fx-music-toggle.fx-music-active{box-shadow:0 5px 24px #1c2a3b77,0 0 0 7px #eac88b35!important;}
.fx-ambient-global{position:fixed;inset:0;z-index:19;pointer-events:none;overflow:hidden;contain:layout paint;}
.fx-floating-mote{position:absolute;left:var(--x);top:110%;font-size:var(--sz);color:#c8a16b;opacity:0;filter:drop-shadow(0 1px 4px #d8bf98);animation:fxAmbientUp var(--duration) linear infinite;animation-delay:var(--delay);}
.fx-scroll-in{opacity:0;transform:translateY(25px) scale(.985);transition:opacity .85s ease,transform .95s cubic-bezier(.16,1,.3,1);transition-delay:var(--fx-reveal-delay,0s);}
.fx-scroll-in.fx-on{opacity:1;transform:translateY(0) scale(1);}
/* decorative flourishes on generic invitations */
.demo-section:before,.invite-section:before,.vm-section:before{content:'';position:absolute;inset:0;pointer-events:none;background:url('/assets/motion/gold-sparkles.svg') left 0 top 12%/105px auto no-repeat,url('/assets/motion/botanical-divider.svg') center bottom 22px/190px auto no-repeat;opacity:.19;}
.demo-section:nth-of-type(2n):before,.invite-section:nth-of-type(2n):before{background-position:right 2% top 8%,center bottom 22px;}
.demo-shell .demo-cover-names,.vm-cover h2,.invite-cover h1{text-shadow:0 3px 20px #fbd18b5a;animation:fxNameBreathe 6s ease-in-out infinite;}
.demo-button#open,.vm-open-button#vm-open,.invite-cover #open-invite{position:relative;isolation:isolate;overflow:hidden;box-shadow:0 4px 25px #b9977466,0 0 0 4px #e4d1a92e;animation:fxButtonGlow 2.6s ease-in-out infinite;}
.demo-button#open:before,.vm-open-button#vm-open:before,.invite-cover #open-invite:before{content:'';position:absolute;inset:-100% auto -100% -45%;width:45%;background:linear-gradient(90deg,transparent,#fff9,transparent);transform:rotate(30deg);animation:fxButtonSweep 4.4s ease-in-out infinite;z-index:0;}
@keyframes fxBorderPulse{to{box-shadow:0 0 43px 5px #e5c68685,inset 0 0 35px #ffe8b755;}}
@keyframes fxRotate{to{transform:rotate(360deg);}}
@keyframes fxRotateCentered{to{transform:translate(-50%,-50%) rotate(360deg);}}
@keyframes fxStarShift{to{background-position:105px 75px,95px -120px,-140px 110px;}}
@keyframes fxSwing{to{transform:rotate(8deg) translate(8px,7px);}}
@keyframes fxSwing2{to{transform:rotate(175deg) translate(11px,8px);}}
@keyframes fxFlowerWiggle{to{transform:rotate(7deg) translateY(14px);}}
@keyframes fxFlowerWiggleRight{to{transform:scaleX(-1) rotate(-7deg) translateY(14px);}}
@keyframes fxButterflyFlight{0%,100%{transform:translate(0,0) rotate(-11deg) scale(.85);}35%{transform:translate(78px,-29px) rotate(15deg) scale(1.06);}68%{transform:translate(110px,32px) rotate(-3deg) scale(.94);}}
@keyframes fxButterflyFlight2{0%,100%{transform:scaleX(-1) translate(0,0) rotate(-8deg)}50%{transform:scaleX(-1) translate(49px,-62px) rotate(23deg)}}
@keyframes fxLampSwing{to{transform:rotate(10deg) translateY(4px)}}
@keyframes fxPulse{to{opacity:.24;transform:scale(1.28)}}
@keyframes fxTwinkle{0%,100%{opacity:.12;transform:scale(.5) rotate(45deg)}50%{opacity:1;transform:scale(1.55) rotate(120deg)}}
@keyframes fxPetalFall{0%{transform:translate(0,-20vh) rotate(0) scale(var(--fx-scale));opacity:0;}10%{opacity:.75;}90%{opacity:.7;}100%{transform:translate(70px,120vh) rotate(780deg) scale(var(--fx-scale));opacity:0;}}
@keyframes fxCoverEvaporate{50%{filter:brightness(1.65)}100%{opacity:0;transform:scale(1.08);}}
@keyframes fxTransitionOuter{0%{opacity:1}75%{opacity:1}100%{opacity:0}}
@keyframes fxCurtainLeft{0%,22%{transform:translateX(0)}62%{transform:translateX(-52%)}100%{transform:translateX(-110%)}}
@keyframes fxCurtainRight{0%,22%{transform:translateX(0)}62%{transform:translateX(52%)}100%{transform:translateX(110%)}}
@keyframes fxFlash{0%,14%{opacity:0;transform:scale(.18)}29%{opacity:1;transform:scale(1)}72%{opacity:.12;transform:scale(2.2)}100%{opacity:0;transform:scale(3)}}
@keyframes fxRing{0%{opacity:0;transform:scale(.26) rotate(-40deg)}30%{opacity:1;transform:scale(.83) rotate(8deg)}100%{opacity:0;transform:scale(1.5) rotate(130deg)}}
@keyframes fxRevealMandala{0%{opacity:0;transform:scale(.1) rotate(-70deg)}28%{opacity:.85;transform:scale(.7) rotate(0)}100%{opacity:0;transform:scale(1.2) rotate(110deg)}}
@keyframes fxRingsRise{0%{opacity:0;transform:translateY(100px) scale(.2)}30%,67%{opacity:1;transform:translateY(-78px) scale(1)}100%{opacity:0;transform:translateY(-125px) scale(1.25)}}
@keyframes fxWords{0%{opacity:0;transform:translateY(35px) scale(.9)}27%,68%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-28px) scale(1.04)}}
@keyframes fxParticleExplode{0%{opacity:0;transform:translate(-50%,-50%) translate(0,0) scale(.2) rotate(0)}10%{opacity:1}58%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translate(var(--dx),var(--dy)) scale(.25) rotate(var(--spin))}}
@keyframes fxAmbientUp{0%{opacity:0;transform:translateY(0) rotate(0deg) scale(.6)}12%,83%{opacity:.32}100%{opacity:0;transform:translateY(-140vh) translateX(26px) rotate(var(--rotation)) scale(1.2)}}
@keyframes fxMusicHalo{50%{box-shadow:0 5px 24px #1c2a3b66,0 0 0 9px #eac88b20}}
@keyframes fxNameBreathe{50%{text-shadow:0 3px 26px #fbd18ba3}}
@keyframes fxButtonGlow{50%{box-shadow:0 5px 33px #b997748c,0 0 0 8px #e4d1a91f}}
@keyframes fxButtonSweep{0%,34%{left:-65%;}70%,100%{left:125%;}}
@media(max-width:520px){.fx-cover .fx-mandala{width:245px;margin-left:-122px;top:17%;}.fx-cover .fx-bouquet{width:142px;left:-63px;}.fx-cover .fx-bouquet-right{left:auto;right:-63px}.fx-cover .fx-filigree{width:130px;left:-38px;}.fx-cover .fx-filigree-b{left:auto;right:-38px}.fx-cover .fx-chandelier{width:63px;left:12%;}.fx-cover .fx-chandelier-b{right:11%;left:auto}.fx-cover .fx-floating-butterfly{width:47px;}.fx-music-toggle{right:14px;bottom:calc(16px + env(safe-area-inset-bottom));width:52px;min-width:52px;height:52px;}.fx-opening-mandala{width:250px;}.fx-opening-rings{width:88px;}.fx-opening-words span{font-size:8px;letter-spacing:2px;}.fx-opening-words small{font-size:8px;}}
@media(prefers-reduced-motion:reduce){.fx-cover .fx-decor *, .fx-opening-layer *, .fx-ambient-global *, .fx-music-toggle,.demo-button#open,.vm-open-button#vm-open,.invite-cover #open-invite,.demo-shell .demo-cover-names,.vm-cover h2,.invite-cover h1{animation:none!important;transition:none!important;}.fx-scroll-in{opacity:1!important;transform:none!important;transition:none!important;}}

/* ornamental content, not just the cover */
.fx-section-assets{position:absolute!important;inset:0;pointer-events:none;z-index:0!important;overflow:hidden;}
.fx-section-assets img{position:absolute;max-width:none;pointer-events:none;opacity:.34;filter:drop-shadow(0 4px 7px #594a3430);}
.fx-section-flower-a{width:150px;left:-60px;top:2%;animation:fxFlowerWiggle 9s ease-in-out infinite alternate;}
.fx-section-flower-b{width:138px;right:-57px;bottom:7%;animation:fxFlowerWiggleRight 10s ease-in-out infinite alternate;}
.fx-section-jewel{width:130px;top:37%;right:-60px;opacity:.2!important;animation:fxPulse 4s ease-in-out infinite alternate;}
.vm-hero .fx-section-assets img{opacity:.45}
.vm-hero-portrait-asset{position:absolute!important;top:596px;left:50%;transform:translateX(-50%);width:285px;height:252px;z-index:4!important;border:7px solid #fff8e3;outline:1px solid #b5945b;outline-offset:3px;box-shadow:0 9px 33px #28435733;border-radius:46% 46% 10px 10px/28% 28% 10px 10px;background:#edf0e6;overflow:hidden;animation:fxHeroArtwork 6s ease-in-out infinite;}
.vm-hero-portrait-asset img{width:100%;height:100%;object-fit:cover;object-position:center;}
.vm-portrait-asset-caption{position:absolute;bottom:0;left:0;right:0;color:#fff8e3;background:linear-gradient(transparent,#17374fa8);padding:18px 3px 10px;font:600 8px 'DM Sans',sans-serif;letter-spacing:1.5px;text-align:center;}
@keyframes fxHeroArtwork{0%,100%{box-shadow:0 9px 33px #28435733;filter:saturate(1)}50%{box-shadow:0 12px 40px #be9e6e70;filter:saturate(1.09)}}
.vm-hero{min-height:910px!important}
@media(max-width:480px){.vm-hero-portrait-asset{top:580px;width:250px;height:260px}.vm-hero{min-height:890px!important}.fx-section-flower-a{width:120px;left:-54px}.fx-section-flower-b{width:112px;right:-48px}}
@media(prefers-reduced-motion:reduce){.vm-hero-portrait-asset,.fx-section-assets img{animation:none!important;}}
/* Keep couple names legible; real gallery photo is displayed in the framed artwork below. */
.vm-arch-hero{background:linear-gradient(180deg,#faf7eeed 0%,#fcf9f2ed 49%,#eaf0e9d9 100%),var(--vm-photo,none) center/cover!important;}
/* Only show couple photo in the framed artwork, not as faces ghosted behind lettering. */
.vm-arch-hero{background:linear-gradient(180deg,#faf7ee 0%,#fcf9f2 55%,#edf0e9 100%)!important;}
