.chapter-transition-ready .chapter{--chapter-shift:32px}
.chapter-transition-ready .chapter.chapter-returning{--chapter-shift:-32px}
.chapter-transition-ready .chapter.chapter-arriving{animation:chapter-halo 1550ms ease-out both}
.chapter-transition-ready .chapter.chapter-arriving>:not(script){animation:chapter-content-arrive 1200ms cubic-bezier(.18,.75,.2,1) both}
.chapter-transition-ready .chapter.chapter-arriving>:nth-child(2){animation-delay:100ms}
.chapter-transition-ready .chapter.chapter-arriving>:nth-child(n+3){animation-delay:200ms}
.chapter-transition-ready .chapter.chapter-arriving .chapter-label{position:relative}
.chapter-transition-ready .chapter.chapter-arriving .chapter-label::before{content:'';position:absolute;top:-1px;left:0;width:100%;height:2px;background:linear-gradient(90deg,#dce6b8,#94a77566,transparent);transform-origin:left center;pointer-events:none;animation:chapter-line-arrive 1400ms cubic-bezier(.2,.7,.2,1) both}
.chapter-transition-ready .chapter.chapter-returning .chapter-label::before{transform-origin:right center}
@keyframes chapter-content-arrive{from{transform:translate3d(0,var(--chapter-shift),0)}to{transform:translate3d(0,0,0)}}
@keyframes chapter-line-arrive{from{transform:scaleX(.08)}to{transform:scaleX(1)}}
@keyframes chapter-halo{from{box-shadow:inset 0 90px 100px -70px #c5d59e44}to{box-shadow:inset 0 0 0 0 transparent}}
body:not(.motion-enabled) .chapter,body:not(.motion-enabled) .chapter>*{animation:none!important;transform:none!important}
.effects-paused .chapter,.effects-paused .chapter>*,.effects-paused .chapter-label::before{animation:none!important;transition:none!important;transform:none!important}
@media(prefers-reduced-motion:reduce){.chapter,.chapter>*,.chapter-label::before{animation:none!important;transition:none!important;transform:none!important}}
.motion-enabled .systems-stage{will-change:transform,opacity}
body:not(.motion-enabled) .systems-stage{transform:none!important;opacity:1!important}
.return-storm{position:fixed;inset:0;z-index:90;overflow:hidden;pointer-events:none;isolation:isolate;contain:paint;perspective:900px}
.return-storm__seal{position:absolute;inset:0;background:#29321c;opacity:0}
.return-storm[data-phase=covering] .return-storm__seal{animation:return-leaf-seal var(--return-cover) linear both}
.return-storm[data-phase=covered] .return-storm__seal{opacity:1}
.return-storm[data-phase=revealing] .return-storm__seal{animation:return-leaf-unseal var(--return-reveal) linear both}
.return-storm__leaf{position:absolute;left:var(--x);top:var(--y);width:var(--size);height:var(--size);margin:calc(var(--size)*-.5);transform:rotate(var(--angle));will-change:transform;backface-visibility:visible}
.return-storm__blade{display:block;width:100%;height:100%;background-image:var(--leaf-image);background-position:center;background-size:contain;background-repeat:no-repeat;filter:drop-shadow(3px 9px 5px #10170ec4);transform:rotateY(var(--tilt))}
.return-storm__leaf--near{z-index:1;filter:blur(.65px)}
.return-storm[data-phase=covering] .return-storm__leaf{animation:return-leaf-gather var(--arrive) cubic-bezier(.16,.57,.28,1) var(--delay) both}
.return-storm[data-phase=covered] .return-storm__leaf{transform:translate3d(0,0,0) rotate(var(--angle)) scale(1)}
.return-storm[data-phase=revealing] .return-storm__leaf{animation:return-leaf-scatter var(--exit-duration) cubic-bezier(.52,.02,.71,.48) var(--exit-delay) both}
.return-storm[data-phase=revealing] .return-storm__blade{animation:return-leaf-tumble var(--exit-duration) ease-in var(--exit-delay) both}
@keyframes return-leaf-gather{0%{transform:translate3d(var(--from-x),var(--from-y),0) rotate(var(--start-angle)) rotateY(65deg) scale(.4)}66%{transform:translate3d(calc(var(--from-x)*.035),calc(var(--from-y)*.035),0) rotate(calc(var(--angle) - 12deg)) rotateY(-18deg) scale(1.04)}100%{transform:translate3d(0,0,0) rotate(var(--angle)) rotateY(0) scale(1)}}
@keyframes return-leaf-scatter{0%{transform:translate3d(0,0,0) rotate(var(--angle)) scale(1)}18%{transform:translate3d(-4vw,2vh,0) rotate(calc(var(--angle) - 18deg)) scale(1.03)}100%{transform:translate3d(165vw,var(--exit-y),0) rotate(var(--turn)) scale(.7)}}
@keyframes return-leaf-tumble{0%{transform:rotateY(var(--tilt))}35%{transform:rotateY(-55deg) rotateX(18deg)}70%{transform:rotateY(38deg) rotateX(-32deg)}100%{transform:rotateY(105deg) rotateX(28deg)}}
@keyframes return-leaf-seal{0%,72%{opacity:0}90%,100%{opacity:1}}
@keyframes return-leaf-unseal{0%{opacity:1}30%,100%{opacity:0}}
.effects-paused .return-storm,body:not(.motion-enabled) .return-storm{display:none}
@media(max-width:850px){.return-storm__blade{filter:drop-shadow(2px 5px 3px #10170eaa)}.return-storm__leaf--near{filter:none}}
@media(prefers-reduced-motion:reduce){.return-storm{display:none}.return-storm *{animation:none!important}}
.brief-backdrop{position:relative;min-height:56.25vw;max-height:75vh;background:#100f0d;pointer-events:none}
.brief-backdrop::before{content:'';position:absolute;inset:0;background:var(--brief-art,none) center/contain no-repeat}
.brief-backdrop::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#080d0bb3,transparent 65%),linear-gradient(0deg,#080d0b55,transparent 35%)}
.motion-enabled .brief-backdrop{position:absolute;inset:0;z-index:2;min-height:0;max-height:none;opacity:0}
body:not(.motion-enabled) .brief-backdrop{opacity:1!important}
@media(max-width:850px){.motion-enabled .brief-backdrop::before{background-position:center 35%}.brief-backdrop::after{background:linear-gradient(90deg,#080d0b88,#080d0b22)}}
