/* SCENE - the tall section, the stage that stays and the still state (Jarvis 0176). The method: site-animator/references/scenes.md
   Without JavaScript, with reduced motion or with an error (.scene-off): the still state, whole, at its own height. With the
   script on, the room is reserved from the start, so that nothing jumps when the scene turns on. */
[data-scene] { position: relative; }
/* the stage may be the still state itself (.scene-stage[data-still]): nothing is doubled and what is read is what moves */
[data-scene] > .scene-stage:not([data-still]) { display: none; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-scene]:not(.scene-off) { height: var(--scene-length, 300vh); }
  [data-scene]:not(.scene-off) > [data-still] { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; }
  /* the engine that does not come (a file on the way, a broken script): the reserved room is given back, and the page is the
     still state, whole. boot.js puts .scenes on the root, and this stops */
  html:not(.scenes) [data-scene]:not(.scene-off), html:not(.scenes) [data-scene]:not(.scene-off) > [data-still] { animation: scene-wait 0s 6s forwards; }
}
@keyframes scene-wait { to { height: auto; min-height: 0; margin-top: 0; position: relative; } }
.mov [data-scene].is-live > .scene-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* only the hidden stage is shown here: the stage that is the still state keeps its own display (flex, grid), or it jumps */
.mov [data-scene].is-live > .scene-stage:not([data-still]) { display: block; }
/* the still text stays for who listens and for the search; the stage is aria-hidden */
.mov [data-scene].is-live > [data-still]:not(.scene-stage) { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.scene-stage > * { will-change: transform; }
/* the words of the title of the scene, inside their masks (engine.js, words) */
.sc-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .12em 0 .16em; margin: -.12em 0 -.16em; }
.sc-w > span { display: inline-block; }
/* the button of the sound of a scene (sound.js): always in sight while the scene is */
.scene-sound { position: absolute; right: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 4vh, 2.5rem); z-index: 2; display: inline-flex; align-items: center; gap: .6em; border: 0; border-radius: 999px; padding: .85em 1.25em; background: var(--accent, #e4572e); color: var(--accent-ink, #10161c); font: 600 1rem/1 inherit; cursor: pointer; transition: transform .22s ease; }
.scene-sound:hover { transform: translateY(-2px); } .scene-sound:active { transform: scale(.96); }
.scene-sound[aria-pressed="true"]::before { content: ""; width: .7em; height: .7em; border-radius: 2px; background: currentColor; }
