/* Stable viewport and touch layout, including Safari's changing toolbars. */
.hero-story{height:calc(var(--scene-height,100svh) * 2.1)}
.hero-story .ring-sticky{height:var(--scene-height,100svh)}
.music-toggle{display:flex;align-items:center;justify-content:center;padding:0;line-height:0;right:max(12px,env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));width:44px;height:44px;box-sizing:border-box;transform:translateZ(0)}
.music-toggle svg{display:block;width:17px;height:17px;margin:0;flex:none}
.music-toggle:before{inset:5px}.music-toggle:after{top:7px;right:7px}
.promise-sparkles,.fine-rule>span{display:none!important}
@media(max-width:699px){
 .mini-header{display:none}
 .hero-story .ring-sticky{padding:28px 18px 22px;gap:12px;justify-content:space-between}
 .promise-title .eyebrow{font-size:7px;letter-spacing:.14em}
 .promise-title .names{font-size:clamp(36px,10.5vw,46px);margin:13px 0 8px;line-height:1.08}
 .promise-title .shubh{font-size:22px;margin-top:7px}
 .hero-story .exchange-stage{height:calc(var(--scene-height,100svh) * .43);max-height:360px;min-height:210px;margin:12px auto 0}
 .promise-caption{height:27px;min-height:27px}.promise-caption p{font-size:18px}
 .opening-date .hero-full-date{font-size:27px!important}
 .opening-date .hero-city{font-size:11px!important;margin:6px 0!important}
 .opening-date .hero-venue-time{font-size:14px;line-height:1.35}
 .opening-date .scroll-cue{margin-top:12px;font-size:7px;gap:5px}
 .opening-date .scroll-cue span{font-size:18px}
 .celebrations{padding:60px 20px 45px}
 .section-title h2{font-size:40px;line-height:1.05}
 .celebrations .section-title>.italic{font-size:18px;line-height:1.45}
 .event-stack{margin:36px auto 24px;padding-bottom:36px}
 .celebration-card,.celebration-card:first-child,.celebration-card:nth-child(2),.celebration-card:nth-child(3){position:sticky;top:16px!important;min-height:0;height:auto;padding:8px;transform:rotate(0)!important;margin-top:42px}
 .celebration-card:first-child{margin-top:0}
 .celebration-card:nth-child(2){top:25px!important}
 .celebration-card:nth-child(3){top:34px!important}
 .event-card-inner{min-height:0;padding:25px 18px 20px;gap:0}
 .event-counter{font-size:7px;line-height:1.5}
 .event-illustration{height:115px;width:220px;margin:10px auto 12px}
 .celebration-card h3{font-size:34px;line-height:1.03;margin:0 0 18px}
 .celebration-card h3 i{font-size:38px;line-height:1.1}
 .celebration-card .eyebrow{font-size:7px;letter-spacing:.09em;line-height:1.5}
 .celebration-card p:not(.eyebrow){font-size:17px;line-height:1.35;margin:14px auto 18px;max-width:290px}
 .card-venue{font-size:14px;padding-top:13px;line-height:1.25}
}
@media(max-width:699px){
 .hero-story .ring-sticky{padding:20px 17px 16px;gap:8px}
 .promise-title .names{font-size:36px;margin:10px 0 6px}
 .promise-title .shubh{font-size:19px}
 .hero-story .exchange-stage{height:calc(var(--scene-height,100svh) * .40);min-height:190px;margin-top:6px}
 .opening-date .hero-full-date{font-size:25px!important}
 .opening-date .hero-venue-time{font-size:13px}
 .opening-date .scroll-cue{margin-top:8px}
 .event-illustration{height:95px;margin:8px auto 10px}
 .event-card-inner{padding:23px 17px 18px}
 .celebration-card h3{font-size:31px;margin-bottom:14px}
 .celebration-card h3 i{font-size:35px}
 .celebration-card p:not(.eyebrow){font-size:16px;margin:12px auto 15px}
}
@media(prefers-reduced-motion:reduce){.hero-story{height:auto}.hero-story .ring-sticky{height:auto;min-height:var(--scene-height,100svh)}.celebration-card{position:relative!important;top:auto!important}}
/* Let the couple dominate the opening composition without crowding the date. */
@media(max-width:699px){
 .hero-story .exchange-stage{height:calc(var(--scene-height,100svh) * .46);max-height:390px}
 .hero-story .receiving-jaya{left:-1%}
}
@media(max-width:699px){
 .hero-story .exchange-stage{height:calc(var(--scene-height,100svh) * .46);min-height:210px}
}

/* A quieter bridge between the invitation and evening programme. */
.invitation-section .unfold-envelope{display:none}
.invitation-section{padding-bottom:30px}
.invitation-section .section-footnote{max-width:390px;margin:30px auto 0;font-size:20px;line-height:1.45;padding:0 16px}
.invitation-section .ring-arrangement{width:72%;max-width:300px;height:180px;margin:14px auto 0;object-fit:contain}
@media(max-width:699px){
 .invitation-section{padding-bottom:24px}
 .invitation-section .section-footnote{font-size:18px;line-height:1.4;max-width:300px;margin-top:24px;padding:0 10px}
 .invitation-section .ring-arrangement{width:66%;max-width:250px;height:145px;margin:12px auto 0}
 .celebrations{padding-top:38px}
 .closing-flowers{width:64%;max-width:235px;height:140px}
}
/* Keep the invitation-to-programme bridge in one compact flow. */
.invitation-bridge{margin:26px auto 0;text-align:center;max-width:390px}
.invitation-bridge p{font-size:20px;font-style:italic;line-height:1.45;color:#744834;margin:0 0 12px}
.invitation-bridge img{display:block;width:280px;max-width:76%;height:180px;object-fit:contain;margin:0 auto}
@media(max-width:699px){.invitation-bridge{margin:24px auto 0;max-width:305px}.invitation-bridge p{font-size:18px;line-height:1.4;margin-bottom:12px}.invitation-bridge img{width:230px;max-width:80%;height:145px}}
.invitation-section{display:flex;flex-direction:column;align-items:center}
.invitation-section>.invitation-card{width:100%;margin:0 auto}
.invitation-section>.invitation-bridge{width:100%}

/* Both characters close the same horizontal distance to the shared hand anchor. */
.hero-story .half-abhishek{transform:translate(calc(var(--hand-dx,0px) + (1 - var(--meet,0)) * var(--approach-x,20px)),calc(var(--meet,0) * var(--hand-dy,0px)))}

/* More visible buoyancy, with the ring scene moving as one registered group. */
.couple-motion{animation-duration:4.8s;transform-origin:50% 75%}
@keyframes couple-float{0%,100%{transform:translateY(5px)}50%{transform:translateY(-11px)}}
.hero-story .front-jaya img{animation:portrait-drift 5s ease-in-out infinite}
.hero-story .front-abhishek img{animation:portrait-drift 5.6s -2s ease-in-out infinite}
@keyframes portrait-drift{0%,100%{transform:translateY(2px)}50%{transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.couple-motion,.hero-story .front-figure img{animation:none}}

/* The approved groom poses share a full-height sprite canvas and hand anchor. */
.hero-story .half-abhishek{inset:0 -5% 0 auto;width:57%;height:100%;clip-path:none}
@media(max-width:699px){
 .promise-title .eyebrow{font-size:11px;letter-spacing:.09em;line-height:1.45}
 .promise-caption p{font-size:20px}
 .opening-date .hero-venue-time{font-size:16px;line-height:1.4}
 .opening-date .scroll-cue{font-size:10px;letter-spacing:.13em}
 .event-counter,.celebration-card .eyebrow{font-size:10px;letter-spacing:.07em}
 .opening-date .hero-city{font-size:12px!important}
}

/* The character stays solid; only the surrounding canvas is transparent. */
.front-abhishek img,.half-abhishek img,.note-abhishek{filter:url(#solid-character)!important}
