/* Three moments: entrance, blessing, invitation. */
.gate{z-index:3}.entrance-botanicals{z-index:4}.cover-top,.cover-bottom,.cover-dedication{z-index:5}.open-invitation{z-index:6}
.cover-dedication{position:absolute;top:29%;left:50%;transform:translateX(-50%);text-align:center;width:min(580px,88%);text-shadow:0 2px 15px #152511}
.cover-dedication>svg{width:36px;height:36px;margin:0 auto 20px;color:#ddc995}.cover-dedication p{font:500 clamp(35px,4.5vw,57px)/1.2 var(--display);letter-spacing:-1.5px}.cover-dedication p em{font-weight:500}.cover-dedication>span{display:block;font-size:8px;font-weight:600;letter-spacing:2px;margin-top:24px}
.verse-stage{position:absolute;inset:0;z-index:1;visibility:hidden;overflow:hidden;background:#e6d5b8;color:var(--ink);perspective:1400px}.is-opening .verse-stage{visibility:visible}.verse-scenery{position:absolute;inset:0;background:url('assets/verse-alcove.webp') center/auto 100% no-repeat;transform-origin:50% 50%;will-change:transform}.verse-scenery:before,.verse-scenery:after{content:'';position:absolute;top:0;bottom:0;width:max(0px,calc((100vw - 67vh)/2));pointer-events:none}.verse-scenery:before{left:0;background:linear-gradient(90deg,#e6d5b8,transparent)}.verse-scenery:after{right:0;background:linear-gradient(-90deg,#e6d5b8,transparent)}
.curtain{position:absolute;top:-3%;bottom:-3%;width:51%;z-index:2;transform-origin:top;will-change:transform;box-shadow:inset -12px 0 25px #745a3c38,0 12px 30px #65452726;background:repeating-linear-gradient(91deg,#dbc39e 0%,#f5e4c6 5%,#fff2d6 8%,#bda580 13%,#dec7a2 18%,#eee0c4 24%);border-bottom:4px solid #c6aa77}.curtain-left{left:0;border-right:2px solid #d5bb8c}.curtain-right{right:0;background-position:30px 0;border-left:2px solid #d5bb8c}
.verse-stage .verse-panel{top:50%;transform:translate(-50%,-50%);padding:20px 10px;max-width:520px;width:68%;background:none;z-index:3;perspective:1000px}.verse-stage .verse-panel>*{opacity:0}.verse-stage .arabic{font-size:clamp(33px,4vw,47px);color:#34412f;text-shadow:0 2px 0 #fff6;line-height:1.8}.verse-stage .verse-english{font-size:clamp(28px,3.2vw,38px);line-height:1.45;letter-spacing:-.8px;color:#34412f;text-shadow:none;margin:18px 0 25px}.verse-stage .verse-ref{color:#74603a;font-size:9px}.verse-stage .verse-ornament{color:#a88b51;width:42px;height:42px;margin-bottom:27px}
.verse-continue{position:absolute;top:76%;left:50%;transform:translateX(-50%);z-index:4;display:flex;gap:15px;align-items:center;justify-content:center;border:0;border-bottom:1px solid #a58e61;background:#f5ead6c9;padding:12px 17px;color:#405036;font-size:10px;font-weight:600;white-space:nowrap}.verse-continue svg{width:20px;height:20px}
.name-word{display:inline-block;transform-origin:50% 90%;will-change:transform,opacity}.person-name{perspective:900px;overflow:visible}.invitation-hero{min-height:calc(100svh - 78px);padding:55px 25px 35px;align-items:center}.chapter{margin-bottom:18px}.formal-intro{margin:20px 0 23px}.person-name{font-size:clamp(43px,5vw,67px);letter-spacing:-2px}.ampersand{font-size:38px;margin:11px 0 15px}.parent{margin-top:9px}.date-medallion{margin:25px auto 14px}.scroll-cue{margin-top:22px}.hero-botanicals{max-width:1100px}.arch-outline{top:20px;height:calc(100% - 40px)}.arch-inner{top:30px;height:calc(100% - 60px)}
@media(max-width:700px){.cover-dedication{top:30%}.cover-dedication p{font-size:39px}.cover-dedication>span{font-size:7px;letter-spacing:1.5px}.verse-scenery{background-size:100% 100%}.verse-scenery:before,.verse-scenery:after{display:none}.verse-stage .verse-panel{top:49%;width:78%;max-width:360px}.verse-stage .arabic{font-size:33px}.verse-stage .verse-english{font-size:27px;margin:13px 0 24px}.verse-stage .verse-ref{font-size:8px;letter-spacing:1.4px}.verse-stage .verse-ornament{width:34px;height:34px;margin-bottom:24px}.verse-continue{top:77%;font-size:9px;padding:10px 13px}.invitation-hero{min-height:calc(100svh - 65px);padding:40px 22px 28px}.invitation-copy{max-width:350px}.chapter{margin-bottom:15px}.chapter svg{width:29px;height:29px}.invitation-copy>.kicker{font-size:7px;max-width:230px}.formal-intro{font-size:11px;line-height:1.8;margin:18px 0 21px}.person-name{font-size:clamp(34px,10.5vw,46px);letter-spacing:-1.7px}.parent{font-size:10px;margin-top:8px}.ampersand{font-size:31px;margin:9px 0 12px}.date-medallion{margin:21px auto 13px}.hero-date{font-size:19px}.hero-location{font-size:9px;margin-top:5px}.scroll-cue{margin-top:20px;gap:9px}.scroll-cue i{height:33px;width:29px;font-size:18px}.scroll-cue span{font-size:7px}.hero-botanicals{width:133%;left:-16.5%;height:100%}.arch-outer{top:16px;height:calc(100% - 32px)}.arch-inner{top:24px;height:calc(100% - 48px)}}
@media(max-height:680px){.cover-dedication{top:23%}.cover-dedication p{font-size:33px}.cover-dedication>svg{margin-bottom:12px;width:28px;height:28px}.cover-dedication>span{margin-top:18px}.verse-stage .verse-panel{top:48%}.verse-stage .verse-ornament{height:25px;width:25px;margin-bottom:13px}.verse-stage .arabic{font-size:29px}.verse-stage .verse-english{font-size:25px;margin:10px 0 18px}.verse-continue{top:78%}.invitation-hero{padding-top:30px;padding-bottom:25px}.chapter{margin-bottom:10px}.chapter svg{height:23px;width:23px}.formal-intro{margin:11px 0 14px;font-size:10px}.person-name{font-size:clamp(29px,9.5vw,43px)}.parent{font-size:9px;margin-top:5px}.ampersand{font-size:26px;margin:6px 0 8px}.date-medallion{margin:15px auto 9px}.hero-date{font-size:17px}.scroll-cue{margin-top:14px}.invitation-copy>.kicker{font-size:6.5px}}

.gate{pointer-events:none}

.verse-stage:before{content:'';position:absolute;inset:22px;border:1px solid #bca67b55;pointer-events:none;z-index:0}
@media(max-width:700px) and (max-height:680px){.hero-botanicals{mask-image:linear-gradient(90deg,#000 0 20%,transparent 35% 65%,#000 80%)}}
