@font-face{font-family:Naskh;src:url(assets/naskh-regular.ttf) format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Naskh;src:url(assets/naskh-bold.ttf) format("truetype");font-weight:700;font-display:swap}
@font-face{font-family:Ruqaa;src:url(assets/ruqaa-bold.ttf) format("truetype");font-weight:700;font-display:swap}
:root{--paper:#f7f2e6;--white:#fdfaf3;--green:#425c43;--sage:#6b7d65;--gold:#b1985b;--line:rgba(177,152,91,.46);--muted:#7d8774;--art-scale:570px}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font:400 19px/1.6 Naskh,serif;background:var(--paper);color:var(--green);-webkit-font-smoothing:antialiased;overscroll-behavior:none}
button,a,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}a{text-decoration:none;color:inherit}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--green);outline-offset:4px}button:disabled{opacity:.5;cursor:wait}button[hidden],[hidden]{display:none!important}img{max-width:100%;user-select:none;-webkit-user-drag:none}svg{display:block}.definitions{position:absolute;inset:0;width:0;height:0;overflow:hidden}
.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.world{position:fixed;inset:0;background:radial-gradient(ellipse at 50% 42%,#fdfaf3 30%,#e7e2d3 100%);z-index:-2}.world:before,.world:after{content:"";position:absolute;opacity:.16;background:url(assets/final-back-paper.webp) left top/900px auto no-repeat;width:360px;height:400px;filter:blur(2px)}.world:before{left:-90px;top:-80px}.world:after{right:-90px;bottom:-80px;rotate:180deg}
.storybook{position:relative;width:100%;height:100svh;isolation:isolate;overflow:hidden;perspective:1500px;background:var(--paper);--pointer-x:0;--pointer-y:0}
.paper-grain{position:absolute;inset:0;z-index:18;pointer-events:none;opacity:.13;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.24' fill='%23837654' d='M0 0h150v150H0z'/%3E%3C/svg%3E")}
.masthead{position:absolute;inset:8px 22px auto;display:flex;justify-content:space-between;align-items:center;z-index:30;height:51px;transition:opacity .6s}
.utility{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;padding:4px 10px;border:1px solid rgba(177,152,91,.28);border-radius:24px;background:rgba(253,250,243,.87);font-size:14px;backdrop-filter:blur(8px)}
.utility .icon{width:20px;height:20px}.home-mark{width:44px;height:47px;padding:3px 7px}.home-mark img{height:100%;width:100%;object-fit:contain}
.sound-button{width:44px;height:44px;padding:8px;position:relative}.sound-button .sound-wave{display:none;position:absolute;left:50%;bottom:7px;translate:-50% 0;gap:2px;height:7px;align-items:end}.sound-wave i{display:block;width:2px;height:7px;background:var(--gold);animation:wave 1s ease-in-out infinite alternate}.sound-wave i:nth-child(2){animation-delay:-.5s}.sound-wave i:nth-child(3){animation-delay:-.2s}
[data-music=playing] .sound-button .icon{translate:0 -3px;scale:.82}[data-music=playing] .sound-wave{display:flex}[data-music=muted] .sound-button:after{content:"";position:absolute;width:22px;height:1px;background:var(--green);rotate:45deg}
#pages{position:absolute;inset:0;touch-action:pinch-zoom}.scene{position:absolute;inset:0;background:var(--paper);opacity:0;visibility:hidden;pointer-events:none;overflow:hidden;transform-origin:50% 100%;transition:visibility 1.5s;backface-visibility:hidden;contain:layout paint}
.scene.active{visibility:visible;opacity:1;pointer-events:auto;z-index:2;animation:page-open 1.45s cubic-bezier(.18,.7,.22,1) both}
.scene.leaving{visibility:visible;z-index:3;pointer-events:none;animation:page-close 1.45s cubic-bezier(.3,.1,.3,1) both}
.storybook.backward .scene.active{animation-name:page-return}.storybook.backward .scene.leaving{animation-name:page-close-back}
.page-sheen{position:absolute;inset:0;z-index:20;pointer-events:none;background:linear-gradient(100deg,transparent 35%,rgba(255,253,243,.6) 49%,rgba(177,152,91,.1) 51%,transparent 63%);opacity:0;transform:translateX(130%);border-radius:45%}
.turning .page-sheen{animation:paper-shimmer 1.5s ease both}
.page-botanicals{position:absolute;inset:0;pointer-events:none;z-index:3;overflow:hidden}
.corner{position:absolute;background-image:url(assets/final-back-paper.webp);background-size:var(--art-scale) auto;background-repeat:no-repeat;width:174px;height:190px;translate:calc(var(--pointer-x)*8px) calc(var(--pointer-y)*6px);transition:translate 1.6s ease;transform-origin:top left}
.corner.tl{top:-12px;left:-19px;background-position:left top;mask-image:linear-gradient(140deg,#000 0%,#000 65%,transparent 95%);animation:branch-breathe 12s ease-in-out infinite}
.corner.tr{top:-16px;right:-25px;background-position:right top;mask-image:linear-gradient(220deg,#000 0%,#000 65%,transparent 95%);translate:calc(var(--pointer-x)*-8px) calc(var(--pointer-y)*6px)}
.corner.bl{left:-30px;bottom:0;background-position:left bottom;width:185px;height:154px;mask-image:linear-gradient(30deg,#000 30%,#000 65%,transparent 98%)}
.corner.br{right:-30px;bottom:0;background-position:right bottom;width:195px;height:175px;mask-image:linear-gradient(-30deg,#000 25%,#000 65%,transparent 98%);translate:calc(var(--pointer-x)*-10px) calc(var(--pointer-y)*-7px)}
.paper-frame{position:absolute;inset:11px 13px 56px;width:calc(100% - 26px);height:calc(100% - 67px);pointer-events:none;z-index:1;fill:none;stroke:var(--gold);stroke-width:.8}
.paper-frame path{vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:0}.active .paper-frame path{animation:gold-bloom 3s cubic-bezier(.2,.5,.3,1) both}.active .paper-frame path+path{animation-delay:.25s}
.scene-content{position:absolute;inset:83px 39px 118px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;z-index:6;gap:0}
.reveal{opacity:0;translate:0 14px;transition:opacity .8s ease,translate 1s cubic-bezier(.2,.7,.2,1)}
.active .reveal{opacity:1;translate:0 0;transition-delay:calc(var(--order,0)*80ms + 250ms)}
.floral-arch{width:min(86%,300px);height:auto;max-height:99px;object-fit:contain;margin:0 0 13px;flex-shrink:0;transform-origin:50% 100%}.active .floral-arch,.active .small-arch{animation:flower-unfold 2.6s cubic-bezier(.2,.7,.2,1) .15s both}
.small-arch{width:190px;height:63px;object-fit:contain;margin-bottom:8px;flex-shrink:0}.eyebrow{font-size:16px;line-height:1.6;margin:0 0 7px;color:var(--sage)}.dedication{font-size:20px;margin:8px 0 6px;line-height:1.65}.names{margin:20px -8px 14px;width:calc(100% + 16px);flex-shrink:0;line-height:1}.names img{width:100%;display:block;height:auto;max-height:100px;object-fit:contain}.active .names img{animation:names-unveil 2.3s cubic-bezier(.2,.7,.2,1) .55s both}
.ornament{width:75%;max-width:290px;height:28px;color:var(--gold);flex-shrink:0;margin:3px 0}
.display-heading{font:700 39px/1.5 Ruqaa,Naskh,serif;margin:0 0 2px}.gold-heading{font:700 43px/1.5 Ruqaa,Naskh,serif;color:var(--gold);margin:0 0 9px}
.hero-date{font-weight:700;font-size:22px;margin:14px 0 1px}.hero-time{font-size:18px;margin:0 0 0}.hero-venue{font-size:22px;font-weight:700;margin:1px 0 20px}.pill{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:10px 22px;border:1px solid var(--sage);border-radius:28px;background:var(--sage);color:var(--white);font-size:17px;line-height:1.4;box-shadow:0 5px 20px rgba(66,92,67,.04);transition:scale .25s,background .25s,box-shadow .25s;flex-shrink:0}.pill:hover{background:var(--green);scale:1.025;box-shadow:0 6px 25px rgba(66,92,67,.1)}.pill:active{scale:.97}.pill .icon{width:19px;height:19px}.pill.transparent{background:rgba(253,250,243,.8);color:var(--green);border-color:var(--line)}.pill.transparent:hover{background:#eee8d9}
.hero-scenery{position:absolute;bottom:62px;height:37%;width:100%;background:url(assets/final-paper.webp) center bottom/100% auto no-repeat;opacity:.55;mask-image:linear-gradient(0deg,transparent 0%,#000 22%,#000 68%,transparent 100%);pointer-events:none;z-index:1}.hero-content{padding-bottom:20px}
.hosts{font-size:21px;font-weight:700;line-height:1.9;margin:5px -3px 13px;white-space:nowrap}.invite-line{font-size:18px;font-weight:700;margin:2px 0}.invitation .names{margin:27px -6px 16px}.blessing{font-size:18px;margin:12px 0 0}
.large-date{font:30px/1.4 Georgia,serif;margin:5px 0 13px;color:var(--green);white-space:nowrap;letter-spacing:.3px}.event-details{display:flex;width:100%;margin:12px 0 17px}.event-details>div{width:50%;display:flex;align-items:center;flex-direction:column;line-height:1.6;gap:2px}.event-details>div+div{border-right:1px solid var(--line)}.event-details .icon{color:var(--gold);width:25px;height:25px;margin-bottom:4px}.event-details span{font-size:16px;color:var(--sage)}.event-details strong{font-size:23px;white-space:nowrap}.countdown-heading{font-size:16px;color:var(--sage);margin:3px 0 11px}.countdown{display:flex;justify-content:center;gap:12px;margin:0 0 24px;width:100%}.countdown>div{background:rgba(253,250,243,.6);border:1px solid rgba(177,152,91,.24);border-radius:18px 18px 5px 5px;display:flex;flex-direction:column;padding:11px 4px 4px;min-width:54px;flex:1;max-width:70px}.countdown b{font:31px/1 Georgia,serif;font-variant-numeric:tabular-nums;min-width:2ch;display:block;font-weight:400}.countdown span{font-size:12px;color:var(--sage);padding-top:6px}.date .pill{font-size:15px;padding-inline:18px}
.venue-photo{position:absolute;inset:0;opacity:1;overflow:hidden}.venue-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 36%}.venue-photo.second{opacity:0;transition:opacity 2s ease}.venue-photo.second img{object-position:45% 50%}.venue.photo-two .venue-photo.second{opacity:1}.active .venue-photo img{animation:venue-glide 14s ease-in-out both}.venue-veil{position:absolute;inset:0;z-index:1;background:linear-gradient(0deg,var(--paper) 0%,rgba(247,242,230,.98) 16%,rgba(247,242,230,.85) 31%,transparent 59%,rgba(247,242,230,.08) 78%,var(--paper) 100%)}.venue .page-botanicals{opacity:.7}.venue .corner.bl,.venue .corner.br{display:none}.venue-content{justify-content:space-between;padding:0 0 0}.gallery-choices{display:flex;gap:10px;margin-top:5px;direction:ltr}.photo-choice{width:53px;height:43px;border:1px solid rgba(253,250,243,.85);border-radius:9px;padding:3px;background:rgba(247,242,230,.4);transition:translate .4s,border-color .4s}.photo-choice img{width:100%;height:100%;object-fit:cover;border-radius:5px}.photo-choice.selected{translate:0 -4px;border-color:var(--gold);background:var(--paper)}.venue-copy{display:flex;flex-direction:column;align-items:center;width:100%;padding-bottom:1px}.venue-copy .display-heading{font-size:42px}.venue-copy .ornament{height:23px;width:62%}.venue-copy .eyebrow{margin:0}.venue-address{font-size:18px;margin:6px 0 18px;font-weight:700}
.wishes-content .display-heading{font-size:29px;white-space:nowrap}.wishes-content .small-arch{width:170px;height:57px;margin-bottom:13px}.wishes-content .eyebrow{font-size:14px}.etiquette{background:var(--sage);color:var(--white);width:100%;padding:12px 16px;border:1px solid var(--line);outline:1px solid rgba(177,152,91,.4);outline-offset:4px;border-radius:28px 5px;margin:16px 0 24px;text-align:right}.etiquette p{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:700;line-height:1.75;margin:10px 0}.etiquette .icon{width:22px;height:22px}.wishes .pill{font-size:15px}.signature{width:65%;margin:24px 0 0}.signature img{display:block;width:100%}
.location-content{top:75px}.mini-monogram{height:46px;width:50px;object-fit:contain;margin-bottom:3px;flex-shrink:0}.location .display-heading{font-size:36px}.location .ornament{height:23px;margin:0 0 9px}.map-window{display:block;width:100%;height:clamp(150px,28svh,252px);border:1px solid rgba(107,125,101,.5);border-radius:24px;overflow:hidden;background:var(--paper);flex-shrink:0;box-shadow:0 7px 25px rgba(66,92,67,.04)}.map-window img{width:100%;height:100%;object-fit:cover}.venue-name{font-size:25px;font-weight:700;margin:13px 0 0;line-height:1.4}.map-address{font-size:17px;font-weight:700;line-height:1.6;margin:4px 0 17px}.directions .icon{animation:pin-breathe 3.4s ease-in-out infinite}.final-actions{display:flex;gap:17px;align-items:center;justify-content:center;margin-top:9px}.quiet-button{display:inline-flex;justify-content:center;align-items:center;gap:7px;padding:9px 1px;min-height:44px;font-size:14px;color:var(--sage)}.quiet-button .icon{width:17px;height:17px}
.playback{position:absolute;left:28px;right:28px;bottom:max(10px,env(safe-area-inset-bottom));z-index:30;padding:3px 0 0;transition:opacity .6s}.playback:before{content:"";position:absolute;inset:-12px -10px -14px;z-index:-1;background:linear-gradient(0deg,rgba(247,242,230,.98) 20%,rgba(247,242,230,.88) 65%,transparent 100%);border-radius:18px}.playback-row{display:flex;align-items:center;justify-content:space-between;height:40px}.pause-button{width:44px;height:44px;padding:12px;border:1px solid var(--line);border-radius:50%;background:rgba(253,250,243,.75)}.pause-button .icon{width:18px;height:18px;margin:auto}.story-status{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--sage);line-height:1.4}.status-dot{width:3px;height:3px;flex-shrink:0;background:var(--gold);border-radius:50%}.page-number{font:12px Georgia,serif;letter-spacing:.5px;color:var(--sage)}.page-number b{font-weight:400;font-size:17px;color:var(--green)}.chapter-petals{display:flex;justify-content:center;gap:3px;margin-top:3px;height:43px;direction:rtl}.chapter{width:37px;height:43px;position:relative;display:flex;align-items:center;justify-content:center;color:#a7ae9a;padding:8px;transition:color .5s,scale .7s}.chapter svg{width:21px;height:21px;fill:transparent;rotate:0deg;transition:rotate 1.2s,fill .6s}.chapter.current{color:var(--gold);scale:1.13}.chapter.current svg{rotate:45deg;fill:rgba(177,152,91,.16)}.chapter-progress{position:absolute;height:1px;width:25px;left:6px;bottom:4px;background:var(--gold);transform:scaleX(var(--progress,0));transform-origin:right;transition:transform .15s linear}.chapter.completed .chapter-progress{transform:scaleX(1);opacity:.45}.gesture-hint{text-align:center;font-size:12px;color:var(--muted);position:absolute;bottom:87px;left:-8px;right:-8px;margin:0;opacity:0;pointer-events:none}.show-gesture .gesture-hint{animation:gesture-hint 8s ease both}
.sound-hint{position:absolute;top:64px;right:20px;left:20px;z-index:35;pointer-events:none;justify-content:center;align-items:center;gap:7px;font-size:12px;line-height:1.4;color:var(--sage);opacity:0;transition:opacity .7s;display:flex}.sound-hint .icon{width:14px;height:14px}[data-music=pending]:not(.intro-playing) .sound-hint{opacity:.85}
.petal-field,.touch-magic{position:absolute;inset:0;pointer-events:none;z-index:19;overflow:hidden}.drifting-petal{position:absolute;left:var(--left);top:-35px;width:var(--size);height:calc(var(--size)*1.6);border-radius:65% 5% 65% 25%;background:radial-gradient(ellipse at 30% 30%,#fffefb 10%,#fbf8ec 55%,#e6dcc0 100%);opacity:0;animation:petal-fall var(--duration) linear var(--delay) infinite;will-change:transform}
.magic-petal{position:absolute;left:var(--x);top:var(--y);width:var(--s);height:calc(var(--s)*1.5);border-radius:65% 5% 65% 25%;background:var(--petal-color);transform-origin:center;animation:touch-bloom 1.8s ease-out both}.magic-ring{position:absolute;left:var(--x);top:var(--y);width:20px;height:20px;border:1px solid rgba(177,152,91,.6);border-radius:50%;animation:touch-ring 1.2s ease-out both}.toast{position:absolute;z-index:50;left:50%;bottom:130px;translate:-50% 10px;background:var(--green);color:var(--white);padding:8px 18px;border-radius:22px;opacity:0;pointer-events:none;font-size:15px;white-space:nowrap;transition:opacity .3s,translate .3s}.toast.visible{opacity:1;translate:-50% 0}
.paused .drifting-petal,.paused .corner,.paused .venue-photo img,.paused .directions .icon{animation-play-state:paused}.scene:not(.active) .corner,.scene:not(.active) .venue-photo img{animation-play-state:paused}
.intro[hidden]{display:none}.intro{position:fixed;inset:0;z-index:100;background:var(--paper);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;transition:opacity 1s ease,scale 1s ease}.intro .corner{--pointer-x:0;--pointer-y:0}.intro:before{content:"";position:absolute;inset:13px;border:1px solid var(--line);pointer-events:none}.intro-greeting{font-size:20px;line-height:1.7;margin:0 0 73px;transition:opacity .6s;z-index:2}.envelope-stage{position:relative;width:min(81vw,390px);aspect-ratio:1.48;perspective:1100px;margin-bottom:30px;z-index:4}.envelope{position:absolute;inset:0;rotate:-3deg;transition:rotate 1.5s cubic-bezier(.2,.7,.2,1);filter:drop-shadow(0 15px 20px rgba(66,92,67,.1))}.envelope-back{position:absolute;inset:0;background:#dcd1b8;border:1px solid var(--gold)}.envelope-pocket{position:absolute;inset:0;z-index:3;background:linear-gradient(30deg,#e7ddc7,#f6eedf 49%,#eee5d3);clip-path:polygon(0 0,50% 53%,100% 0,100% 100%,0 100%);border:1px solid var(--gold)}.envelope-pocket:after{content:"";position:absolute;inset:7px;border:1px solid rgba(177,152,91,.4)}.envelope-flap{position:absolute;inset:0 0 auto;height:64%;clip-path:polygon(0 0,100% 0,50% 100%);background:#f2ead9;transform-origin:50% 0;z-index:5;transition:transform 1.1s cubic-bezier(.5,.1,.2,1)}.letter{position:absolute;inset:5% 6% 3%;z-index:2;background:var(--white);border:1px solid var(--line);box-shadow:0 0 0 5px var(--white),0 0 0 6px var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;transition:transform 1.6s cubic-bezier(.2,.7,.2,1)}.letter-arch{width:53%;height:auto;margin-bottom:12px}.letter-names{width:85%;height:auto}.letter small{font:11px Georgia,serif;letter-spacing:4px;margin-top:17px;color:var(--gold)}.seal{position:absolute;top:42%;left:50%;translate:-50% 0;z-index:6;width:65px;height:65px;background:var(--paper);border:2px solid var(--gold);border-radius:49% 52% 48% 53%;box-shadow:inset 0 0 0 5px var(--paper),inset 0 0 0 6px var(--line);display:grid;place-items:center;transition:opacity .5s,scale .7s}.seal img{width:26px;height:39px;object-fit:contain}.intro-caption{font-size:19px;color:var(--sage);margin:0 0 4px}.intro .quiet-button{color:var(--gold);font-size:15px}.intro.opening .seal{opacity:0;scale:1.25}.intro.opening .envelope-flap{transform:rotateX(180deg);z-index:1}.intro.opening .envelope{rotate:0deg}.intro.opening .intro-greeting{opacity:0}.intro.lifting .letter{transform:translateY(-47%)}.intro.dissolving{opacity:0;scale:1.04;pointer-events:none}.intro-playing .masthead,.intro-playing .playback{opacity:0}.intro-playing .scene.active .reveal{opacity:0;transition:none}.intro-playing .petal-field{opacity:0}
dialog{border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--green);padding:0;width:min(94vw,540px);max-width:94vw;max-height:92svh;box-shadow:0 20px 90px rgba(35,55,36,.2);font-size:18px;overscroll-behavior:contain;touch-action:pan-y}
dialog::backdrop{background:rgba(46,62,44,.4);backdrop-filter:blur(6px)}.dialog-heading{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:8px 14px;background:var(--paper);border-bottom:1px solid var(--line)}.dialog-heading h2{font-size:21px;font-weight:700;margin:0}.close-button{height:44px;width:44px;padding:11px;border-radius:50%}.card-tabs{display:flex;justify-content:center;gap:6px;padding:11px}.card-tabs button{min-height:44px;min-width:92px;border:1px solid var(--line);border-radius:24px;font-size:16px}.card-tabs button.selected{background:var(--sage);color:var(--white)}#original-card{display:block;width:calc(100% - 28px);margin:0 14px;height:auto;border-radius:4px}.dialog-actions{display:flex;align-items:center;justify-content:center;gap:9px;padding:16px;flex-wrap:wrap}.dialog-actions .pill{font-size:15px;padding-inline:16px}.ticket-options{padding:15px;display:flex;gap:12px}.ticket-options label{width:50%;font-size:15px;text-align:right}.ticket-options select{display:block;width:100%;height:46px;margin-top:4px;background:var(--white);border:1px solid var(--line);border-radius:10px;font-size:16px;padding:6px}#ticket-canvas{display:block;margin:0 14px;width:calc(100% - 28px);height:auto;border-radius:12px}.noscript{position:fixed;z-index:80;inset:50% 10% auto;padding:20px;background:var(--paper);border:1px solid var(--gold)}
@keyframes page-open{0%{opacity:0;transform:perspective(1500px) rotateX(-9deg) rotateY(-3deg) translateY(35px) scale(.975);filter:blur(2px)}100%{opacity:1;transform:perspective(1500px) rotateX(0) rotateY(0) translateY(0) scale(1);filter:blur(0)}}
@keyframes page-close{0%{opacity:1;transform:perspective(1500px) rotateY(0) translateX(0)}100%{opacity:0;transform:perspective(1500px) rotateY(13deg) translateX(12%) scale(.98);filter:blur(2px)}}
@keyframes page-return{from{opacity:0;transform:perspective(1500px) rotateY(9deg) translateX(10%) scale(.98)}to{opacity:1;transform:perspective(1500px) rotateY(0) translateX(0) scale(1)}}
@keyframes page-close-back{from{opacity:1;transform:perspective(1500px) rotateY(0) translateX(0)}to{opacity:0;transform:perspective(1500px) rotateY(-8deg) translateX(-10%) scale(.98)}}
@keyframes paper-shimmer{0%{opacity:0;transform:translateX(110%) rotate(-4deg)}20%{opacity:.8}100%{opacity:0;transform:translateX(-110%) rotate(6deg)}}
@keyframes flower-unfold{from{opacity:0;transform:perspective(500px) rotateX(-24deg) scale(.8)}to{opacity:1;transform:perspective(500px) rotateX(0) scale(1)}}
@keyframes names-unveil{from{opacity:0;clip-path:inset(0 0 0 100%);translate:10px 0}to{opacity:1;clip-path:inset(0 0 0 0);translate:0 0}}
@keyframes gold-bloom{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes branch-breathe{50%{rotate:1deg}}
@keyframes venue-glide{from{transform:scale(1.08);translate:1% 0}to{transform:scale(1.015);translate:-1% 0}}
@keyframes petal-fall{0%{opacity:0;transform:translate(0,-40px) rotate(20deg) rotateY(0)}12%{opacity:.5}50%{opacity:.38;transform:translate(var(--sway),55vh) rotate(180deg) rotateY(170deg)}90%{opacity:.45}100%{opacity:0;transform:translate(calc(var(--sway)*-.4),110vh) rotate(340deg) rotateY(300deg)}}
@keyframes touch-bloom{0%{opacity:0;transform:translate(-50%,-50%) scale(.2) rotate(0)}15%{opacity:.9}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(.5) rotate(var(--spin))}}
@keyframes touch-ring{from{opacity:.7;transform:translate(-50%,-50%) scale(.5)}to{opacity:0;transform:translate(-50%,-50%) scale(7)}}
@keyframes pin-breathe{0%,65%,100%{scale:1}80%{scale:1.15}}
@keyframes wave{to{height:2px}}
@keyframes gesture-hint{0%,100%{opacity:0;translate:0 5px}15%,75%{opacity:.8;translate:0 0}}
@media(min-width:700px){body{display:flex;align-items:center;justify-content:center}.storybook{max-width:590px;height:min(960px,calc(100svh - 30px));border:1px solid rgba(177,152,91,.35);border-radius:5px;box-shadow:0 18px 80px rgba(66,92,67,.09);--art-scale:790px}.masthead{inset-inline:32px;top:14px}.scene-content{inset-inline:67px;top:95px;bottom:126px}.corner{width:235px;height:260px}.corner.bl{width:250px;height:215px}.corner.br{width:275px;height:245px}.floral-arch{width:315px;max-height:110px}.dedication{font-size:24px}.names{margin-block:28px 19px}.names img{max-height:112px}.hero-date{font-size:27px}.hero-time{font-size:20px}.hero-venue{font-size:27px}.eyebrow{font-size:19px}.hosts{font-size:25px}.invite-line{font-size:21px}.display-heading{font-size:47px}.gold-heading{font-size:51px}.blessing{font-size:20px}.small-arch{width:230px;height:77px}.large-date{font-size:35px}.event-details strong{font-size:26px}.countdown>div{max-width:82px;min-width:65px;padding-top:14px}.countdown b{font-size:38px}.countdown span{font-size:14px}.countdown-heading{font-size:18px}.date .pill{font-size:17px}.wishes-content .display-heading{font-size:36px}.wishes-content .small-arch{width:210px;height:70px}.wishes-content .eyebrow{font-size:17px}.etiquette p{font-size:18px}.etiquette{padding:17px 23px;margin-block:22px 28px}.signature{width:65%;margin-top:30px}.venue-copy .display-heading{font-size:50px}.venue-address{font-size:22px}.location .display-heading{font-size:44px}.location .map-window{height:clamp(190px,28svh,305px)}.venue-name{font-size:29px}.map-address{font-size:20px}.mini-monogram{height:58px;width:60px}.playback{left:42px;right:42px;bottom:14px}.chapter{width:45px}.chapter-progress{width:31px;left:7px}.story-status{font-size:14px}.chapter-petals{gap:9px}.sound-hint{top:74px}}
@media(max-height:740px){.scene-content{top:76px;bottom:112px}.floral-arch{max-height:75px;width:240px;margin-bottom:7px}.dedication{font-size:18px;margin-top:3px}.eyebrow{font-size:15px}.names{margin-top:16px;margin-bottom:11px}.names img{max-height:84px}.hero-content{padding-bottom:10px}.hero-date{font-size:20px;margin-top:9px}.hero-time{font-size:16px}.hero-venue{font-size:20px;margin-bottom:15px}.hero-scenery{height:34%}.hosts{font-size:19px;margin-bottom:9px}.gold-heading{font-size:37px;margin-bottom:4px}.invite-line{font-size:16px}.invitation .names{margin-top:20px}.blessing{font-size:16px}.display-heading{font-size:35px}.small-arch{width:162px;height:53px;margin-bottom:3px}.large-date{font-size:27px;margin:3px 0 5px}.event-details{margin:8px 0 12px}.event-details strong{font-size:21px}.event-details .icon{width:22px;height:22px}.countdown-heading{font-size:14px;margin:3px 0 8px}.countdown{margin-bottom:17px;gap:9px}.countdown b{font-size:27px}.countdown>div{padding:9px 3px 3px;min-width:44px}.pill{font-size:15px;min-height:44px;padding:9px 18px}.wishes-content .display-heading{font-size:27px}.wishes-content .small-arch{width:145px;height:47px;margin-bottom:7px}.etiquette{padding:8px 13px;margin:12px 0 18px}.etiquette p{font-size:14px;line-height:1.7;margin:9px 0}.signature{margin-top:18px;width:62%}.location-content{top:73px;bottom:113px}.mini-monogram{height:31px;width:35px}.location .display-heading{font-size:31px}.location .ornament{height:19px;margin-bottom:6px}.location .map-window{height:clamp(139px,25svh,190px);border-radius:18px}.venue-name{font-size:23px;margin-top:9px}.map-address{font-size:15px;line-height:1.5;margin-bottom:12px}.final-actions{margin-top:5px}.quiet-button{font-size:13px}.venue-copy .display-heading{font-size:37px}.venue-address{font-size:16px;margin-bottom:13px}.venue-content{top:86px}.playback{bottom:max(7px,env(safe-area-inset-bottom))}.gesture-hint{font-size:11px}.intro-greeting{font-size:18px;margin-bottom:60px}.envelope-stage{width:min(76vw,350px)}}
@media(max-width:360px){:root{--art-scale:500px}.masthead{inset-inline:17px}.scene-content{left:29px;right:29px}.utility{font-size:12px}.hosts{font-size:17px}.dedication{font-size:17px}.hero-date{font-size:19px}.floral-arch{width:218px}.names{margin-inline:-2px;width:calc(100% + 4px)}.event-details strong{font-size:19px}.countdown{gap:7px}.countdown>div{min-width:42px}.wishes-content .display-heading{font-size:24px}.etiquette{padding-inline:10px}.etiquette p{font-size:13px;gap:8px}.etiquette .icon{width:20px;height:20px}.pill{font-size:14px}.date .pill{font-size:13px;padding-inline:14px}.map-address{font-size:14px}.playback{left:20px;right:20px}.chapter-petals{gap:0}.chapter{width:35px}.story-status{font-size:11px}.sound-hint{font-size:10px}.corner.br{width:164px;height:157px}.corner.bl{width:155px;height:137px}.ticket-options{gap:8px;padding:12px}.ticket-options select{font-size:14px}.dialog-actions .pill{font-size:13px}}
@media(max-height:610px){.scene-content{top:73px;bottom:105px}.floral-arch{width:190px;max-height:62px;margin-bottom:3px}.dedication{font-size:16px;margin:0 0 3px}.eyebrow{font-size:13px;margin-bottom:4px}.names{margin:13px 0 9px;width:100%}.hero-date{font-size:18px;margin-top:7px}.hero-time{font-size:15px}.hero-venue{font-size:18px;margin-bottom:11px}.ornament{height:22px}.hosts{font-size:17px;line-height:1.8;margin:0 0 7px}.gold-heading{font-size:33px}.invite-line{font-size:15px}.invitation .names{margin-top:17px}.blessing{font-size:15px;margin-top:6px}.small-arch{width:130px;height:43px}.display-heading{font-size:31px}.large-date{font-size:24px}.event-details{margin:6px 0 9px}.event-details .icon{width:19px;height:19px;margin-bottom:1px}.event-details strong{font-size:18px}.event-details span{font-size:13px}.countdown-heading{font-size:13px}.countdown{margin-bottom:12px}.countdown b{font-size:24px}.countdown>div{padding-top:7px}.countdown span{font-size:11px;padding-top:3px}.date .pill{font-size:13px}.wishes-content .small-arch{width:123px;height:41px;margin-bottom:4px}.wishes-content .display-heading{font-size:23px}.wishes-content .eyebrow{font-size:12px}.etiquette{margin:9px 0 14px;padding:5px 10px}.etiquette p{font-size:12px;margin:8px 0}.signature{margin-top:14px}.wishes .pill{font-size:13px}.location-content{top:73px;bottom:108px}.mini-monogram{height:25px}.location .display-heading{font-size:28px}.location .map-window{height:139px}.venue-name{font-size:20px;margin-top:6px}.map-address{font-size:13px;margin-bottom:9px}.location .ornament{height:17px}.location .pill{min-height:42px;font-size:13px}.final-actions .quiet-button{font-size:12px;gap:4px}.final-actions{gap:14px;margin-top:2px}.quiet-button .icon{width:15px;height:15px}.venue-copy .display-heading{font-size:33px}.venue-address{font-size:15px;margin-bottom:10px}.venue-copy .eyebrow{font-size:13px}.hero-scenery{height:31%;opacity:.4}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.scene.active,.scene.leaving{transform:none;filter:none}.reveal{translate:none}.active .names img{clip-path:none;opacity:1}.petal-field,.touch-magic,.page-sheen{display:none}.intro{display:none!important}.paper-frame path{stroke-dashoffset:0}.corner{translate:none}.venue-photo img{transform:none}}

.location-content .mini-monogram{display:none}
.corner.bl,.corner.br{mask-image:linear-gradient(to top,#000 0%,#000 70%,transparent 100%)}

/* Center the visible initials against the page, independent of the side controls. */
.masthead{height:64px;top:6px}
.home-mark{position:absolute;left:50%;top:50%;translate:-50% -50%;width:60px;height:64px;padding:6px 17px;background:var(--white);border:1px solid rgba(177,152,91,.35);border-radius:50%;box-shadow:0 3px 14px rgba(66,92,67,.035)}
.home-mark img{width:100%;height:100%;object-fit:contain}
.seal img{width:20px;height:43px;object-fit:contain}
.dialog-heading{min-height:66px}
.dialog-heading h2{font-size:19px;line-height:1.4;max-width:calc(50% - 26px)}
.dialog-mark{position:absolute;left:50%;top:50%;translate:-50% -50%;width:20px;height:45px;object-fit:contain;pointer-events:none}
.original-card-link{display:block;touch-action:pan-y pinch-zoom}
.card-zoom-hint{font-size:14px;text-align:center;color:var(--green);margin:10px 16px 0}
dialog{touch-action:pan-y pinch-zoom}
.sound-hint{top:76px;font-size:13px;color:var(--green)}
[data-music=pending]:not(.intro-playing) .sound-hint{opacity:0}
[data-music=pending][data-page="0"]:not(.intro-playing) .sound-hint{opacity:.95}

/* Keep the single venue photograph above a consistently readable caption. */
.venue-content{justify-content:flex-end}
.venue-copy{padding:18px 15px 10px;background:rgba(247,242,230,.96);border:1px solid rgba(177,152,91,.22);border-radius:28px}
.venue-copy .eyebrow{color:var(--green);font-size:17px}
.venue-copy .venue-address{font-size:19px;line-height:1.7;margin:8px 0 16px}
.venue-copy .display-heading{line-height:1.5}
.hosts{white-space:normal;line-height:1.85}
.scene-content p{max-width:100%}
.eyebrow,.blessing,.hero-time,.map-address,.venue-address{color:var(--green)}
.etiquette p{font-size:16px;line-height:1.8}
.wishes-content .eyebrow{font-size:15px}
.wishes-content .display-heading{white-space:normal;line-height:1.55}
.gesture-hint,.story-status{font-size:13px;color:#5f7157}
.chapter{color:#7e8d70}

@media(max-height:740px){
  .scene-content{top:88px}
  .hosts{font-size:20px}
  .eyebrow,.blessing,.hero-time,.map-address{font-size:16px}
  .etiquette p{font-size:15px}
  .wishes-content .small-arch{height:40px;width:122px;margin-bottom:3px}
  .wishes-content .display-heading{font-size:27px}
  .wishes .signature{width:58%;margin-top:14px}
  .venue-copy{padding:15px 12px 10px}
  .venue-copy .eyebrow{font-size:16px}
  .venue-copy .venue-address{font-size:17px}
  .quiet-button,.final-actions .quiet-button{font-size:14px}
}
@media(max-width:360px){
  .hosts{font-size:18px}
  .wishes-content .display-heading{font-size:25px}
  .etiquette{padding-inline:11px}
  .etiquette p{font-size:14px;line-height:1.8;gap:8px}
  .sound-hint{font-size:12px}
  .dialog-heading h2{font-size:17px}
  .story-status{font-size:12px}
  .pill,.date .pill{font-size:14px}
}
@media(max-height:610px){
  .scene-content{top:85px;bottom:107px}
  .hero .floral-arch,.invitation .floral-arch{max-height:52px;width:165px}
  .dedication{font-size:17px}
  .eyebrow,.blessing,.hero-time,.map-address{font-size:15px}
  .hosts{font-size:18px;line-height:1.8;margin-bottom:6px}
  .invitation .names{margin-top:14px}
  .invite-line{font-size:16px}
  .hero-venue{margin-bottom:9px}
  .wishes-content .small-arch{display:none}
  .wishes-content .eyebrow{font-size:14px}
  .wishes-content .display-heading{font-size:26px}
  .etiquette{padding:7px 10px;margin:12px 0}
  .etiquette p{font-size:14px;line-height:1.8;margin:9px 0}
  .wishes .signature{width:55%;margin-top:12px}
  .location .map-window{height:118px}
  .location .map-address{font-size:14px;line-height:1.6}
  .location .pill,.date .pill{font-size:14px;min-height:44px}
  .venue-copy .eyebrow{font-size:15px}
  .venue-copy .venue-address{font-size:16px;line-height:1.65}
  .venue-copy .display-heading{font-size:34px}
  .quiet-button,.final-actions .quiet-button{font-size:13px}
}
@media(max-height:610px){
  .date-content .small-arch{display:none}
  .date .ornament{height:18px;margin:2px 0}
  .date .countdown{margin-bottom:10px}
  .date .countdown b{font-size:26px}
  .date .countdown span{font-size:13px;line-height:1.4}
  .date .countdown-heading{font-size:14px}
}
.intro-brand{position:absolute;top:6px;left:50%;translate:-50% 0;width:60px;height:64px;padding:6px 17px;background:var(--white);border:1px solid rgba(177,152,91,.35);border-radius:50%;z-index:6}
.intro-brand img{width:100%;height:100%;object-fit:contain}
