/* Reversible atmosphere study. No document geometry changes. */
.motion-arrival main{animation:velsnow-in .8s ease both}
@keyframes velsnow-in{from{opacity:.45;filter:blur(3px)}to{opacity:1;filter:none}}
.atmosphere-off main{animation:none}
.atmosphere-canvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:5;opacity:.55}
.atmosphere-control{position:fixed;right:20px;bottom:18px;z-index:19;display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid #ccd8d42b;border-radius:2px;background:#172a32c9;backdrop-filter:blur(12px);color:#d1ded6;font:9px var(--sans);letter-spacing:.8px;cursor:pointer}
.atmosphere-control:before{content:'';width:4px;height:4px;border-radius:50%;background:#c9dad2;box-shadow:0 0 7px #d5e9de66}
.atmosphere-control[aria-pressed=false]:before{background:#798d89;box-shadow:none}
.atmosphere-control:focus-visible{outline:2px solid #e7e8df;outline-offset:4px}
.chapter-veil{position:fixed;inset:0;z-index:18;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 78% 60%,#bad2d414,transparent 63%)}
.chapter-veil svg{position:absolute;right:2%;top:15%;height:70%;width:46%;overflow:visible;fill:none;stroke:#d5e3da;stroke-width:.6;opacity:.45}
.chapter-veil path{vector-effect:non-scaling-stroke;stroke-dasharray:1000;stroke-dashoffset:1000}
.chapter-veil.is-crossing{animation:chapter-veil 1.6s ease both}
.chapter-veil.is-crossing path{animation:chapter-line 1.6s cubic-bezier(.2,.65,.3,1) both}
@keyframes chapter-veil{0%,100%{opacity:0}25%,52%{opacity:1}}
@keyframes chapter-line{0%{stroke-dashoffset:1000;opacity:0}25%{opacity:.6}70%{stroke-dashoffset:0;opacity:.5}100%{stroke-dashoffset:-200;opacity:0}}
@media(max-width:760px){.atmosphere-control{bottom:12px;right:12px;padding:9px 11px;font-size:8px}.chapter-veil svg{width:75%;right:-14%}.atmosphere-canvas{opacity:.4}}
@media(prefers-reduced-motion:reduce){.motion-arrival main{animation:none}.atmosphere-canvas,.chapter-veil{display:none}}

/* Independent foreground boughs pivot at their woody attachment, never the photo. */
.branch-field{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;contain:paint;mask-image:linear-gradient(90deg,transparent 34%,#000 71%)}
.living-scene>.intro-grid,.living-scene>.section-index,.living-scene>div:not(.branch-field),.living-scene>form{position:relative;z-index:1}
.branch-frame{position:absolute;right:-5%;top:-8%;width:min(50vw,760px);transform-origin:98% 29%;opacity:.55;filter:brightness(.63) saturate(.48);animation:branch-wind 11.7s ease-in-out infinite;animation-play-state:paused}
.branch-frame img{display:block;width:100%;height:auto;transform-origin:96% 30%;animation:branch-tip 7.3s ease-in-out infinite;animation-play-state:paused}
.branch-frame-1{top:auto;bottom:-27%;right:-13%;width:min(40vw,570px);opacity:.3;filter:brightness(.52) saturate(.45) blur(.8px);animation-name:branch-wind-low;animation-duration:15.3s;animation-delay:-6s}
.branch-frame-1 img{animation-duration:9.1s;animation-delay:-3s}
.letter .branch-frame-0{width:min(38vw,570px);top:-14%;opacity:.38}
.letter .branch-frame-1{bottom:-54%;opacity:.22}
.scene-active .branch-frame,.scene-active .branch-frame img,.scene-active>.scene-light{animation-play-state:running}
@keyframes branch-wind{0%,100%{transform:rotate(-1deg) translateY(0)}25%{transform:rotate(.6deg) translateY(2px)}58%{transform:rotate(1.8deg) translateY(5px)}78%{transform:rotate(.2deg) translateY(1px)}}
@keyframes branch-wind-low{0%,100%{transform:rotate(3deg)}38%{transform:rotate(1.2deg) translateY(3px)}70%{transform:rotate(4deg) translateY(-2px)}}
@keyframes branch-tip{0%,100%{transform:skewY(-.3deg)}45%{transform:skewY(.5deg)}75%{transform:skewY(-.15deg)}}
.scene-light{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden;background:radial-gradient(ellipse at 80% 23%,#b3d2e240,transparent 60%);opacity:.04;animation:window-breath 13s ease-in-out infinite;animation-play-state:paused}
.hearth-card>.scene-light{background:radial-gradient(ellipse at 12% 45%,#e9bb7b40,transparent 65%);animation-duration:9.7s}
.merch>.scene-light{background-position:left center;animation-delay:-4s}
@keyframes window-breath{0%,100%{opacity:.035}46%{opacity:.15}70%{opacity:.075}}
.atmosphere-off .branch-frame,.atmosphere-off .branch-frame img,.atmosphere-off .scene-light{animation-play-state:paused!important}
@media(max-width:760px){.branch-field{mask-image:linear-gradient(90deg,transparent 25%,#000 92%)}.branch-frame{width:85vw;right:-24%;top:-2%;opacity:.42}.branch-frame-1{width:68vw;right:-29%;bottom:-9%;opacity:.22}.letter .branch-frame-0{width:70vw;right:-27%;top:-6%;opacity:.28}.letter .branch-frame-1{bottom:-18%}}
@media(prefers-reduced-motion:reduce){.branch-frame,.branch-frame img,.scene-light{animation:none!important}}
