/* FlowSite scene components: the structure they need (see scenes.js). The look stays with the page. */

/* chapters: both states use the same box, so the first screen does not move when the runtime arrives */
:where([data-mo="chapters"]) { position: relative; overflow-x: clip; }
:where([data-mo="chapters"] [data-mo-title]) { position: absolute; z-index: 20; margin: 0; }
[data-mo="chapters"] [data-mo-title] { pointer-events: none; }
:where([data-mo-slide]) { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden; }
:where([data-mo-slide] [data-mo-media]) { position: absolute; inset: 0; }
[data-mo-slide] [data-mo-media] img, [data-mo-slide] [data-mo-media] video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* a slide's client video: the renderer makes its box a .sys-video-host (position: relative in sys.css, which loads later) and sizes the video
   by its own width and height; here both fill the slide like a photo, so a video slide is never a small box in a dark screen */
[data-mo-slide] [data-mo-media].sys-video-host { position: absolute; inset: 0; }
[data-mo-slide] [data-mo-media] video.sys-video { position: absolute; inset: 0; max-width: none; width: 100%; height: 100%; object-fit: cover; }
:where([data-mo-caption]) { position: relative; z-index: 2; }
.mo-chapters-on { height: 100vh; height: 100svh; overflow: hidden; }
.mo-chapters-on [data-mo-slide] { position: absolute; inset: 0; min-height: 0; }

/* tone: the page ground moves; the runtime marks what follows it */
html.mo-tone-on, html.mo-tone-on body { background-color: var(--mo-ground) !important; }
.mo-clear { background-color: transparent !important; }
.mo-ink { color: var(--mo-ink) !important; }

/* unveil */
[data-mo="unveil"] { overflow: hidden; }

/* depth: planes stay inside their section */
[data-mo="depth"] { overflow: clip; }
:where([data-mo="depth"]) { position: relative; }
[data-mo-layer] { will-change: transform; }
/* depth's tilt look (2026-11-08): the planes keep their depth inside the leaning section (overflow: clip does not flatten 3D) */
.mo-depth-tilt { transform-style: preserve-3d; }

/* wall */
.mo-wall-on { overflow: clip; perspective: 1400px; perspective-origin: 50% 40%; }
.mo-wall-on [data-mo-plane] { transform-style: preserve-3d; transform-origin: 50% 50%; will-change: transform; }

/* index */
.mo-index-on { position: relative; }
.mo-index-stage { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.mo-index-stage [data-mo-pic] { position: absolute; left: 0; top: 0; margin: 0; width: clamp(260px, 34vw, 620px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; visibility: hidden; }
.mo-index-on [data-mo-row]:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* intro: over the page, not fixed: it scrolls away and takes no clicks */
.mo-intro { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; height: 100svh; z-index: 99; display: flex; align-items: center; padding: 0 4vw; overflow: hidden; pointer-events: none; box-sizing: border-box; }
.mo-intro-word { display: block; white-space: nowrap; line-height: .9; font-size: 10vw; }
