/* A real paper insert, hidden inside the sealed envelope until the flap opens. */
.keepsake-letter{position:absolute;inset:9px 12px 15px;z-index:4;background:#f5e7d0;border:1px solid #c6a16d;box-shadow:0 1px 7px #77533f25;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;padding:21px 12px 18px;color:#653541;transform:translateY(0);font-family:var(--serif);pointer-events:none}.keepsake-letter:before{content:'';position:absolute;inset:5px;border:1px solid #dbc39e;pointer-events:none}.keepsake-letter>span{position:relative}.letter-rule{color:#ae8850;font-size:19px;line-height:1}.letter-prelude{font-style:italic;font-size:13px;line-height:1.4;margin-top:13px}.letter-names{font-style:italic;font-size:32px;line-height:1.03;text-align:center;margin-top:15px}.letter-names>span{display:block;font-size:17px;color:#b08750;margin:7px 0}.letter-message{font-size:14px;text-align:center;line-height:1.35;margin-top:16px}.letter-date{font-size:16px;margin-top:17px}.letter-time{font-size:14px;margin-top:3px}.letter-signoff{font-style:italic;font-size:12px;margin-top:16px}.opening .keepsake-letter{animation:letter-emerges 2.9s 2s cubic-bezier(.23,.55,.25,1) both}@keyframes letter-emerges{0%{transform:translateY(0)}100%{transform:translateY(-39%)}}.opening .opening-bloom{animation:stationery-bloom 2.1s 3.8s both}.opening .envelope{animation:letter-envelope-reveal 6s cubic-bezier(.3,.4,.25,1) both}@keyframes letter-envelope-reveal{0%{transform:perspective(1100px) translateY(0) rotateY(0deg) rotateZ(0deg) scale(1);opacity:1}14%{transform:perspective(1100px) translateY(9px) rotateY(-9deg) rotateZ(-1.5deg) scale(.98);opacity:1}30%{transform:perspective(1100px) translateY(28px) rotateY(6deg) rotateZ(1deg) scale(.91);opacity:1}55%{transform:perspective(1100px) translateY(60px) rotateY(0deg) rotateZ(0deg) scale(.84);opacity:1}78%{transform:perspective(1100px) translateY(66px) rotateY(0deg) rotateZ(0deg) scale(.87);opacity:1}100%{transform:perspective(1100px) translateY(70px) rotateY(0deg) rotateZ(0deg) scale(.95);opacity:0}}
/* Smaller visible music control, retaining a comfortable touch target. */
.music-toggle{width:44px;height:44px;background:transparent;border:0;box-shadow:none;right:12px;animation:none!important}.music-toggle:before{content:'';position:absolute;inset:6px;border-radius:50%;background:#3b192ce8;border:1px solid #c6a47770;box-shadow:0 2px 7px #22071920}.music-toggle svg{width:15px;height:15px;position:relative;z-index:1}.music-toggle:after{right:7px;top:7px;width:4px;height:4px;z-index:2}.opening-date .hero-venue-time{font-size:17px;line-height:1.4}.venue-stationery .venue-time{font-size:20px}.whatsapp-mark{width:25px;height:25px;display:block;flex-shrink:0}.button:has(.whatsapp-mark){gap:12px}
@media(max-height:700px){.opening-date .hero-venue-time{font-size:15px}.keepsake-letter{padding-top:14px}.letter-prelude{font-size:11px;margin-top:9px}.letter-names{font-size:27px;margin-top:10px}.letter-message{font-size:12px;margin-top:12px}.letter-date{font-size:14px;margin-top:12px}.letter-signoff{font-size:10px}}
@media(prefers-reduced-motion:reduce){.opening .keepsake-letter{animation:none;transform:translateY(-20%)}}
/* Match the venue to the burgundy, blush and gold invitation palette. */
.venue-section{position:relative;isolation:isolate;overflow:hidden;background:#601d39;color:#f5e5d0;padding:70px 24px 65px}.venue-section>.pattern{opacity:.14}.venue-section>:not(.pattern){position:relative;z-index:1}.venue-section .countdown{color:#e4bf8c;gap:12px;margin-bottom:35px}.venue-section .countdown em{color:#efd8c3;font-size:26px}.venue-section .countdown span{font-size:54px}.venue-stationery{max-width:570px;min-height:360px;padding:50px 30px 45px;margin:auto;background:#e6c7b5;color:#5c303b;border:1px solid #cfaa76;border-radius:44% 44% 2px 2px;box-shadow:0 15px 30px #240e2724}.venue-stationery:before{inset:8px;background:none;filter:none;border:1px solid #bd936370;border-radius:inherit}.venue-crest{width:49px;height:49px;color:#a67c4b;margin:0 auto 18px}.venue-stationery .eyebrow{color:#8c603a;font-size:8px}.venue-stationery h2{font-size:38px;margin:16px 0 20px;line-height:1.05}.venue-stationery address{font-size:21px;line-height:1.45}.venue-stationery .venue-time{font-size:20px;margin-top:22px}.stationery-actions{max-width:570px;gap:13px;margin:25px auto 0;align-items:center}.paper-tag{width:min(270px,100%);min-height:54px;padding:13px 22px;background:#ecd4c1;color:#63333e;border:1px solid #c7a06e;font-size:21px;gap:12px;box-shadow:0 4px 12px #230c2315;rotate:0;margin:0!important;align-self:center}.paper-tag:before{display:none}.paper-tag:hover{transform:translateY(-2px);background:#f5e3d1}.paper-tag svg{color:#a4774e;width:23px;height:25px}.venue-section>.map-note{color:#dcbdae;margin-top:16px;font-size:13px}.calendar-tag,.directions-tag{rotate:0}.venue-section .paper-tag .google-maps-icon{width:18px!important;height:24px!important}
@media(min-width:700px){.venue-section{padding:85px 30px 75px}.venue-section .countdown span{font-size:64px}.venue-section .countdown em{font-size:32px}.venue-stationery{min-height:400px;padding:55px 65px 48px}.venue-stationery h2{font-size:46px}.venue-stationery address{font-size:23px}.stationery-actions{flex-direction:row;justify-content:center}.paper-tag{flex:1;max-width:270px}}
@media(max-width:350px){.venue-section{padding-left:19px;padding-right:19px}.venue-stationery{padding:43px 22px 36px;min-height:340px}.venue-stationery h2{font-size:33px}.venue-stationery address{font-size:19px}.venue-stationery .venue-time{font-size:18px}.venue-section .countdown em{font-size:23px}.venue-section .countdown span{font-size:46px}.venue-crest{width:42px;height:42px}}
.venue-section .paper-tag{rotate:0deg}.venue-section .calendar-tag,.venue-section .directions-tag{rotate:0deg}
.closing p.closing-date{font-size:clamp(28px,7.2vw,40px);font-weight:600;line-height:1.2;letter-spacing:.015em;margin:20px 0 8px;color:#60343d;white-space:nowrap}.closing .closing-city{font-size:11px;letter-spacing:.22em;text-transform:uppercase;margin:0 0 20px}
/* Jaya's approved original artwork stays visible through the entire scene. */
.front-couple{opacity:1}.front-jaya{opacity:1;z-index:4;transform:translateX(calc(var(--meet, 0) * 14%))}.front-abhishek{opacity:clamp(0,calc((.34 - var(--exchange)) * 10),1)}.half-jaya{display:none}.note-keepsake{overflow:hidden;background:#edddc3}.note-keepsake img{position:absolute;top:0;height:100%;width:58%;background:none;object-fit:contain}.note-keepsake .note-jaya{left:-2%}.note-keepsake .note-abhishek{right:-2%}
@media(prefers-reduced-motion:reduce){.front-couple{display:block}.front-jaya{transform:translateX(14%)}.front-abhishek{display:none}}
/* Restore the two-pose story, with the new receiving pose based on approved Jaya. */
.front-couple{opacity:clamp(0,calc((.34 - var(--exchange)) * 10),1)}.front-jaya{transform:translateX(calc(var(--turn,0) * 7%))}.receiving-jaya{position:absolute;inset:0 auto 0 -4%;width:57%;height:100%;transform:translate(calc(var(--meet,0) * 7%),5%);z-index:2}.receiving-jaya img{width:100%;height:100%;object-fit:contain}.half-jaya{display:none}
@media(min-width:700px){.receiving-jaya{width:66%}}
@media(prefers-reduced-motion:reduce){.front-couple{display:none}.receiving-jaya{transform:translate(7%,5%)}}

/* Register both poses to one scale and baseline before the brief pose dissolve. */
.hero-story .consistent-couple{transform:none;opacity:var(--pose-blend,0)}
.hero-story .front-couple{opacity:calc(1 - var(--pose-blend,0))}
.hero-story .front-abhishek{opacity:1}
.hero-story .receiving-jaya{left:-4%;width:57%;transform:translateX(calc(var(--meet,0) * 7%));height:100%;top:0}
.hero-story .front-figure img,.hero-story .couple-half img{animation:none}
/* A shorter invitation, keeping both families and the essentials together. */
.invitation-card{max-width:540px;padding:9px}
.invitation-card .card-inner{padding:24px 14px 26px}
.invitation-card .card-flower{width:35px;height:35px;margin-bottom:8px}
.invitation-card .invitation-hosts{margin:4px auto 13px}
.invitation-card .invitation-hosts p{font-size:clamp(20px,5.5vw,27px);line-height:1.2}
.invitation-card .invitation-hosts span{font-size:14px;margin:5px 0}
.invitation-card .host-invitation{font-size:17px;line-height:1.3!important}
.invitation-card .card-inner h2.script{font-size:clamp(44px,12vw,58px);line-height:1.05;margin:18px 0 15px}
.invitation-card .card-inner h2.script span{display:inline;font-size:.55em;margin:0 4px}
.invitation-card .fine-rule{margin:14px auto}
.invitation-card .invitation-date{font-size:21px;margin-top:12px}
.invitation-card .time{margin-top:5px}
.invitation-card .venue-name{margin-top:17px;font-size:28px}
.invitation-card .venue-city{margin-top:4px}
.invitation-card .maps-link{margin-top:18px}
@media(prefers-reduced-motion:reduce){.hero-story .consistent-couple{opacity:1}.hero-story .front-couple{display:none}}

/* Complete the ring exchange within one short, intentional scroll. */
.hero-story{height:210svh;min-height:1200px}
.hero-story .promise-ring{width:21px;height:25px;top:42%;left:50%;z-index:8;opacity:0;transition:opacity .2s,filter .3s;filter:drop-shadow(0 0 5px #f9d99c)}
.hero-story.promise-made .promise-ring{opacity:1}
.hero-story .promise-sparkles{z-index:9;top:42%;left:50%}
.hero-story.promise-made .promise-sparkles{opacity:1}

.hero-story .receiving-jaya{transform:translate(calc(var(--meet,0) * 10%),calc(var(--meet,0) * 5%))}
.hero-story .half-abhishek{transform:translateX(calc(var(--meet,0) * -5%))}

/* Restore the original longer meeting sequence and its desktop registration. */
@media(min-width:700px){.hero-story .receiving-jaya{width:66%}}

/* Bind the band to Jaya's ring finger, independently of viewport proportions. */
.hero-story .half-abhishek{transform:translate(calc(var(--meet,0) * var(--hand-dx,0px)),calc(var(--meet,0) * var(--hand-dy,0px)))}
.hero-story .promise-ring{left:var(--ring-left,50%);top:var(--ring-top,42%);width:var(--ring-size,14px);height:var(--ring-size,14px);transform:translate(-50%,-50%) rotate(-8deg);filter:drop-shadow(0 0 2px #ffdb97);z-index:8}
.hero-story .promise-sparkles{left:var(--ring-left,50%);top:var(--ring-top,42%);width:22px;height:22px;transform:translate(-50%,-50%)}

/* Float the artwork as one scene so fingers and the band stay registered. */
.couple-motion{position:absolute;inset:0;animation:couple-float 5.5s ease-in-out infinite;will-change:transform}
@keyframes couple-float{0%,100%{transform:translateY(3px)}50%{transform:translateY(-5px)}}
@media(prefers-reduced-motion:reduce){.couple-motion{animation:none}}
