/* Shared motion for the middle of scene.html (Wave A, 2026-11-23). Only
   scene.html loads it, and its link is marked data-page, so the copies of the
   first screen on the photographed sheet never see it.

   Every motion on the sheet is print, ink, paper or light (dream/MOTION.md).
   These are the only easings, durations and staggers the middle uses; motion.js
   mirrors them as Motion.EASE, Motion.DUR and Motion.STAGGER. On a phone the
   durations run at 0.8 (Motion.ms() applies it; CSS below does the same). */
:root {
  --ease-paper:cubic-bezier(.19,1,.22,1);    /* paper settling, masks: heavy, calm, no bounce */
  --ease-ink:cubic-bezier(.32,.04,.2,1);     /* the nib touches down, the stroke lifts crisply */
  --ease-marker:cubic-bezier(.25,.8,.25,1);  /* the chisel tip across the fibre */
  --ease-mech:cubic-bezier(.2,.75,.2,1);     /* odometer drums, word slots, the sheet counter */
  --dur-micro:200ms; --dur-ink:260ms; --dur-sweep:340ms; --dur-reveal:540ms; --dur-sheet:640ms;
  --stagger-tight:55ms; --stagger-row:70ms; --stagger-word:90ms;
}
@media (max-width:820px) {
  :root {--dur-micro:160ms;--dur-ink:208ms;--dur-sweep:272ms;--dur-reveal:432ms;--dur-sheet:512ms}
}

/* Print: a display heading waiting to arrive (motion.js arms it only while it
   is below the window, with motion allowed). It is cut into its lines for the
   arrival and put back as it was when it has landed. */
.ty-wait {visibility:hidden}
.ty-line {display:block;white-space:nowrap;clip-path:inset(-.3em -.6em -.34em -.6em)}
.ty-in {display:inline-block}

/* Print: the running head. The sheet's number turns like a counter; its name
   is a slot the old name leaves upward through. */
.blatt .roll-d i {transition-duration:var(--dur-sheet);transition-timing-function:var(--ease-mech)}
/* The turning digit is cut at its own ink, so its neighbours above and below never show. */
.blatt .roll-d {clip-path:inset(.16em -.08em .12em)}
/* The name's slot keeps the width of the longest name (Selbsteinschätzung since Wave H), so "Blatt 03 / 06 ·" never moves sideways. */
.blatt .blatt-name.swap {vertical-align:baseline;min-width:18ch;text-align:left}
/* (Wave J, the owner: the "g" of "Fragen" cut by its little window) The slot was one 12 px line tall and cut the
   letters at it. It keeps the room of the whole glyph: .45 em above and below, .3 em at the sides (padding with an
   equal negative margin: nothing moves). The words turn by more than their own height (motion.js slot()), so the
   leaving word is out of the larger room by the time it could stand beside the new one. */
.blatt .blatt-name.swap {padding:.45em .3em;margin:-.45em -.3em;clip-path:inset(0)}

/* Ink (Wave C, Motion.pen and Motion.write): the nib riding a stroke, and a
   line written left to right behind a feathered front. */
.m-nib {fill:var(--blue);stroke:none;opacity:0;pointer-events:none}
/* (Wave J) A line being written keeps the room of its whole letters: the mask (which cuts at the element's box) is
   given .45 em above and below and .35 em at the sides by padding with an equal negative margin, so the hand's long
   descenders, tall ascenders and side overhang are never cut while the line is written. */
.m-writing {padding:.45em .35em;margin:-.45em -.35em}
.m-writing {-webkit-mask:linear-gradient(90deg,#000 calc(100% - 14px),#0000) 0 0/calc(100% + 16px) 100% no-repeat;mask:linear-gradient(90deg,#000 calc(100% - 14px),#0000) 0 0/calc(100% + 16px) 100% no-repeat}
i.m-dot {position:absolute;left:0;top:0;width:3px;height:3px;margin:-1.5px 0 0 -1.5px;border-radius:50%;background:var(--blue);opacity:0;pointer-events:none}

/* Reduced motion: every end state, still. */
@media (prefers-reduced-motion:reduce) {
  .roll-d i {transition:none!important}
  /* (Wave D) The masthead comes and goes at once too (scene.css and hill.css slide it). */
  .mast {transition:none!important}
  .ty-wait {visibility:visible}
}
