/* Cinematic layer on top of the editable, fully readable Bandora document. */
.motion-word-mask{display:inline-block;vertical-align:top;overflow:clip;padding:.16em .035em .22em;margin:-.16em -.035em -.22em;line-height:inherit}
.motion-word{display:inline-block;transform-origin:50% 80%}
.motion-enabled .motion-word{translate:0 var(--word-y,0%);rotate:var(--word-r,0deg);scale:var(--word-sx,1) var(--word-sy,1);will-change:translate,rotate,scale}
.motion-enabled .motion-layer{translate:var(--mx,0px) var(--my,0px);rotate:var(--mr,0deg);scale:var(--ms,1);opacity:var(--mo,1)}
body.cinematic{background:var(--film-bg,#2445cf)}
.cinematic #main{position:relative;isolation:isolate}
.cinematic .chapter{height:145svh!important;background:transparent;--p:0!important}
.cinematic .hero-chapter{height:155svh!important}
.cinematic .journey-chapter{height:185svh!important}
.cinematic .start-chapter{height:130svh!important}
.cinematic .chapter .stage{position:fixed;inset:0;width:100%;height:100svh;max-height:none;visibility:hidden;min-height:0;pointer-events:none;contain:layout style;will-change:clip-path}
.cinematic .stage.is-on-stage{visibility:visible}
.cinematic .stage.is-current-stage{pointer-events:auto}
.cinematic .stage:not(.is-on-stage) .bi3-sway,.cinematic .stage:not(.is-on-stage) .sound-wave i{animation-play-state:paused}
.cinematic .stage:not(.is-on-stage) .motion-word{will-change:auto}
.cinematic .site-hud{opacity:var(--hud-reveal,1)}
.cinematic .site-footer{z-index:15}
.cinematic .stage .motion-layer{will-change:translate,rotate,scale,opacity}
.cinematic .chapter-foot{transition:none}
.cinematic .room-wall{transform-origin:50% 70%}
.cinematic .room-floor{transform-origin:50% 100%}
.cinematic .journey-map .path-shadow{transition:none}
.story-orb{position:fixed;z-index:60;left:77%;top:55%;width:15px;height:15px;border-radius:50%;background:#ff7545;pointer-events:none;opacity:0;translate:-50% -50%;box-shadow:0 0 0 1px #ff754508;will-change:left,top,scale}
.scene-wash{position:fixed;inset:0;width:100vw;height:100svh;z-index:110;pointer-events:none;visibility:hidden;overflow:visible}
.scene-changing .story-orb{opacity:0!important}
.scene-changing .site-hud{pointer-events:none}
.scene-changing #main{pointer-events:none}
.index-card{perspective:700px;transform-style:preserve-3d}
.index-card.is-current-card .index-card-num:after{content:'';display:inline-block;width:7px;height:7px;margin-left:9px;border-radius:50%;background:#ed7346;vertical-align:middle}
.motion-menu-note{text-align:center;margin:-38px 20px 35px}
.motion-menu-note button{background:none;font:12px var(--mono);border-bottom:1px solid #29263e66;padding:6px 0;color:#5e4a25}
.motion-enabled .grain{opacity:.045}
.motion-enabled:not(.cinematic) .motion-layer{will-change:auto}
.motion-enabled:not(.cinematic) .chapter{--p:0!important}
.motion-enabled:not(.cinematic) .motion-word{--word-sx:1;--word-sy:1}
body.reduced-motion .motion-layer,body.reduced-motion .motion-word{translate:none!important;rotate:none!important;scale:none!important;opacity:1!important}
body.reduced-motion .motion-word-mask{overflow:visible}
body.reduced-motion .story-orb{display:none}
body.reduced-motion .journey-map .path-shadow{stroke-dashoffset:0!important}
.motion-enabled .bi3-dish circle[fill="#191e3b"]{transform-box:fill-box;transform-origin:center;animation:bi-film-blink 6s linear infinite}
.motion-enabled .bi3-float{animation:bi-film-spark 3.8s ease-in-out infinite}
.cinematic .stage:not(.is-on-stage) .bi3-float,.cinematic .stage:not(.is-on-stage) .bi3-dish circle{animation-play-state:paused}
.path-traveled{fill:none;stroke:#3155e7;stroke-width:5;stroke-linecap:round;opacity:.45;pointer-events:none}
.cinematic .journey-bi.is-following-path{transition:none}
body.reduced-motion .path-traveled{display:none}
body:not(.cinematic) .path-traveled{display:none}
.motion-enabled:not(.cinematic) .journey-map .path-shadow{stroke-dasharray:none!important;stroke-dashoffset:0!important}
@keyframes bi-film-blink{0%,94%,98%,100%{scale:1 1}95%,96%{scale:1 .08}}
@keyframes bi-film-spark{0%,100%{translate:0 0;rotate:-3deg}50%{translate:0 -5px;rotate:5deg}}
@media(max-width:760px){
 .site-hud{background:color-mix(in srgb,var(--hud-surface,#2445cf) 94%,transparent);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
 .motion-enabled .hero-stage .hero-copy{z-index:7}
 .motion-enabled:not(.cinematic) .motion-layer{will-change:auto}
 .motion-menu-note{margin:-20px 20px 30px}
 .motion-word-mask{padding:.14em .03em .2em;margin:-.14em -.03em -.2em}
}
@media(prefers-reduced-motion:reduce){.story-orb{display:none}.motion-word-mask{overflow:visible}}

/* Scene props may overlap the examples as the viewport narrows. */
.room-lamp,
.room-book,
.grammar-pencil,
.word-cloud,
.world-cloud {
  pointer-events: none;
}
