// scene-frame.mjs — one scene's sealed frame and its conversation // (scenes and clips spec §3; docs/scenes.md, the contract). // // The frame's document comes from a sealed route (scenes.go): an // origin of its own that matches nothing, no network, nothing of the // page. Once it has loaded it is told init (its state, its size, its // words and data, whether the reader asked for less motion, and the // deck faces it named), then state on every move. It answers ready, // once; until then it is not shown, and the block's still under it is // what the reader sees. It is given up — taken out, the still left — // when it has not said ready 3 seconds after init, when it navigates // (a second load), or when it says error. Messages count only from the // frame's own window. (A reader who asked for less motion is shown the // stills and no frame at all: scene-layer.mjs makes none.) // // createSceneFrame({el, win, scene: {words, data}, state, reducedMotion, // fonts: () => Promise<[{family, src, weight, style}]>, onLive(live), // onFail(why), timers?}) → {state(id, animate), live, failed, destroy()} // el is the