/* Living artwork. The image's transform remains available to the scroll camera. */
.chapter{--petal-light:#f5b6ac;--petal-deep:#ac3554}
.chapter-wedding{--petal-light:#ffecbd;--petal-deep:#ce963a}
.chapter-blessing{--petal-light:#f9d8be;--petal-deep:#d48772}
.panorama img{animation:ambient-camera 14s ease-in-out infinite alternate;animation-play-state:paused;transform-origin:50% 65%}
.ambient-atmosphere{position:absolute;inset:0;overflow:hidden;z-index:1;pointer-events:none;contain:paint}
.petals{z-index:1;pointer-events:none}
.ambient-petal{position:absolute;left:var(--petal-x);top:-30px;width:var(--petal-size);height:calc(var(--petal-size) * 1.45);opacity:0;animation:ambient-petal-fall var(--petal-duration) var(--petal-delay) linear infinite;animation-play-state:paused}
.ambient-petal>i{display:block;width:100%;height:100%;border-radius:80% 12% 76% 18%;background:radial-gradient(ellipse at 30% 24%,var(--petal-light),var(--petal-deep));box-shadow:inset 1px 0 1px #fff9,1px 2px 3px #70421e15;animation:ambient-petal-flutter var(--flutter-duration) var(--flutter-delay) ease-in-out infinite alternate;animation-play-state:paused}
.ambient-garland{position:absolute;top:-35px;left:3.5%;width:clamp(58px,6.1vw,104px);height:auto;transform-origin:50% 0;opacity:.9;animation:ambient-garland-sway 5.7s ease-in-out infinite alternate;animation-play-state:paused;filter:drop-shadow(2px 5px 3px #49372119)}
.ambient-garland svg{display:block;width:100%;height:auto;stroke:none;fill:none;overflow:visible}
.ambient-garland-right{left:auto;right:3.5%;animation-name:ambient-garland-sway-right;animation-duration:6.4s;animation-delay:-2.1s}
.ambient-mote{position:absolute;left:var(--mote-x);bottom:var(--mote-y);width:var(--mote-size);height:var(--mote-size);border-radius:50%;background:#fff7ce;box-shadow:0 0 6px 2px #f8c65b80;opacity:0;animation:ambient-mote-rise var(--mote-duration) var(--mote-delay) ease-in-out infinite;animation-play-state:paused}
.ambient-flock{position:absolute;left:10%;top:49%;width:94px;height:38px;opacity:0;animation:ambient-flock-drift 19s -5s linear infinite;animation-play-state:paused}
.ambient-bird{position:absolute;left:calc(var(--bird-i) * 28px);top:calc(var(--bird-i) * 7px);display:flex;width:18px;height:8px;opacity:.66;transform:scale(calc(1 - var(--bird-i) * .15))}
.ambient-bird b{display:block;width:9px;height:5px;border-top:1.5px solid #614936;border-radius:85% 100% 0 0;transform-origin:100% 100%;animation:ambient-wing .85s ease-in-out infinite alternate;animation-delay:calc(var(--bird-i) * -.3s);animation-play-state:paused}
.ambient-bird b+b{transform-origin:0 100%;animation-name:ambient-wing-right}
.ambient-water-glints{position:absolute;inset:0}
.ambient-water-glints i{position:absolute;left:var(--glint-x);bottom:var(--glint-y);width:var(--glint-width);height:2px;border-radius:50%;background:linear-gradient(90deg,transparent,#ffefba,transparent);box-shadow:0 0 5px #f8d79080;opacity:0;animation:ambient-water-glint 3.8s var(--glint-delay) ease-in-out infinite;animation-play-state:paused}
.sunlight{background:radial-gradient(ellipse 29% 28% at 77% 76%,#ffd07f85,transparent 78%),radial-gradient(ellipse 23% 38% at 9% 35%,#fff4b34d,transparent 80%);mix-blend-mode:soft-light;animation:ambient-sunlight 6s ease-in-out infinite alternate;animation-play-state:paused;transform-origin:75% 75%}
.water-light{left:17%;right:16%;bottom:7%;height:15%;background:repeating-linear-gradient(0deg,transparent 0 7px,#fff2c550 8px 9px,transparent 10px 16px);mask-image:radial-gradient(ellipse,#000a,transparent 72%);-webkit-mask-image:radial-gradient(ellipse,#000a,transparent 72%);mix-blend-mode:screen;animation:ambient-water 3.7s ease-in-out infinite alternate;animation-play-state:paused}
.in-view .panorama img,.in-view .ambient-petal,.in-view .ambient-petal>i,.in-view .ambient-garland,.in-view .ambient-mote,.in-view .ambient-flock,.in-view .ambient-bird b,.in-view .ambient-water-glints i,.in-view .sunlight,.in-view .water-light{animation-play-state:running}
body.motion-paused .panorama img,body.scene-suspended .panorama img,body.motion-paused .ambient-atmosphere *,body.scene-suspended .ambient-atmosphere *,body.motion-paused .ambient-petal,body.scene-suspended .ambient-petal,body.motion-paused .ambient-petal>i,body.scene-suspended .ambient-petal>i,body.motion-paused .sunlight,body.scene-suspended .sunlight,body.motion-paused .water-light,body.scene-suspended .water-light{animation-play-state:paused}
@keyframes ambient-camera{from{scale:1;translate:-.45% 0}to{scale:1.042;translate:.45% -.5%}}
@keyframes ambient-petal-fall{0%{opacity:0;transform:translate3d(0,-3vh,0) rotate(0)}8%,86%{opacity:var(--petal-alpha)}100%{opacity:0;transform:translate3d(var(--petal-sway),110vh,0) rotate(var(--petal-turn))}}
@keyframes ambient-petal-flutter{from{transform:rotateY(-58deg) rotateX(15deg)}to{transform:rotateY(62deg) rotateX(-28deg)}}
@keyframes ambient-garland-sway{from{transform:rotate(-4deg)}to{transform:rotate(4.5deg)}}
@keyframes ambient-garland-sway-right{from{transform:scaleX(-1) rotate(3.5deg)}to{transform:scaleX(-1) rotate(-4deg)}}
@keyframes ambient-mote-rise{0%{opacity:0;transform:translate3d(0,15px,0) scale(.5)}25%{opacity:.8}72%{opacity:.6}100%{opacity:0;transform:translate3d(var(--mote-sway),-75px,0) scale(.3)}}
@keyframes ambient-flock-drift{0%{opacity:0;transform:translate3d(-5vw,12px,0)}12%,80%{opacity:.65}100%{opacity:0;transform:translate3d(14vw,-24px,0)}}
@keyframes ambient-wing{from{transform:rotate(6deg) scaleY(.5)}to{transform:rotate(28deg) scaleY(1.3)}}
@keyframes ambient-wing-right{from{transform:rotate(-6deg) scaleY(.5)}to{transform:rotate(-28deg) scaleY(1.3)}}
@keyframes ambient-water-glint{0%,100%{opacity:0;transform:translateX(-10px) scaleX(.5)}50%{opacity:.85;transform:translateX(10px) scaleX(1.3)}}
@keyframes ambient-sunlight{from{opacity:.4;transform:scale(1) translateX(-1%)}to{opacity:1;transform:scale(1.12) translateX(1%)}}
@keyframes ambient-water{from{opacity:.3;transform:translateX(-8px) scaleX(1)}to{opacity:.8;transform:translateX(12px) scaleX(1.05)}}
@media(max-width:899px){.ambient-atmosphere{display:none}.petals{display:block}.ambient-petal{display:none}.ambient-petal:nth-child(-n+6){display:block;--petal-alpha:.42!important;--petal-size:8px!important}.ambient-petal:nth-child(odd){left:5%}.ambient-petal:nth-child(even){left:95%}.ambient-petal:nth-child(odd)>i{background:linear-gradient(135deg,#fff1ce,#d9b26d)}}
@media(prefers-reduced-motion:reduce){.ambient-atmosphere,.petals{display:none}.panorama img{animation:none;scale:1;translate:0}.sunlight,.water-light{animation:none}}
