Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
feat(website): port the design's v4 recreation
Etienne Lescote37c17ab281d
diff --git a/website/src/components/Recreation/driver.ts b/website/src/components/Recreation/driver.tsindex 228abcc54..ca64f3b8b 100644--- a/website/src/components/Recreation/driver.ts+++ b/website/src/components/Recreation/driver.ts@@ -1,68 +1,52 @@/**- * Scroll in, custom properties out.+ * Scroll in, custom properties out — plus one video seek and a handful of class+ * changes. This is the only thing that runs per frame.*- * The component renders once. This is the only thing that runs per frame, and- * it writes nothing but CSS variables, one `data-beat` attribute, three text- * nodes and — when the cue actually moves — two class changes. React is not in- * the frame loop, and neither is layout: every value below lands on a property- * the compositor or the style system already knows how to interpolate.+ * Three rules keep it cheap.*- * Two rules keep it that way.+ * **One write target.** Everything lands on custom properties on `.stage`, so a+ * frame is a few dozen string assignments and no layout. The rail's contents,+ * the pills and the ruler all have static positions; only the rail is+ * translated.*- * Nothing here reads geometry. The one measurement the scene needs — how far- * the band has scrolled — comes from a single `getBoundingClientRect` on the- * band itself, inside the rAF callback, which is the one place a read cannot- * force a synchronous layout on a write that has not happened yet. Everything- * else is a percentage of its own box, so a resize needs no recomputation at- * all.+ * **Geometry is read once per resize, never per frame.** The demonstration+ * pointer aims at real controls — a swatch, a slider's 48% mark, a word in the+ * transcript — so those have to be measured. They are measured on attach and on+ * resize into a cache keyed by `data-t`, and the per-frame code only+ * interpolates between cached numbers. A target that is display:none when the+ * cache is built keeps its last known position, which is exactly right: the+ * pointer is heading for a control the panel is about to show.*- * Counts, not lists. Which pills have been placed is one number per lane; each- * pill compares it against its own index in CSS. Fourteen objects appear over- * the ride and not one of them costs a DOM write.+ * **The video is seeked, never played.** `currentTime` is the footage clock.+ * Seeks are issued latest-wins — one in flight, the newest pending value kept —+ * which is the fastest cadence the decoder can hold without building a queue.*/-import { type Frame, frameAt, WORDS_REMOVABLE } from "./scene";+import { CURSORS } from "./generated";+import { CUT_INDEX, type Frame, frameAt, strikeOf, T_TOTAL } from "./scene";export interface DriverRefs {band: HTMLElement;root: HTMLElement;+ cam: HTMLVideoElement;padValue: HTMLElement;sizeValue: HTMLElement;- zoomValue: HTMLElement;timeValue: HTMLElement;+ cutsValue: HTMLElement;flow: HTMLElement;}export interface DriverClasses {- cue: string;struck: string;+ cue: string;}-/** `formatSec`'s own shape — m:ss.d — for the transport readout. The generated- * strings prove the format; this is the same arithmetic for a moving number. */-function fmtSec(sec: number): string {- const s = Math.max(0, sec);- const m = Math.floor(s / 60);- const rest = s - m * 60;- return `${m}:${Math.floor(rest).toString().padStart(2, "0")}.${Math.floor((rest % 1) * 10)}`;-}--/**- * The three the component re-checks on change. `position: sticky` is not among- * them because support for it does not change while the page is open.- */export const SCENE_QUERIES = ["(min-width: 901px)","(prefers-reduced-motion: reduce)","(forced-colors: active)",] as const;-/**- * The scene is off below 901px, without `position: sticky`, under forced colours- * and under a reduced-motion preference — the same four conditions the- * stylesheet gates on, because a driver that runs while the stylesheet has- * folded the band away would be animating variables nothing reads.- */export function sceneEnabled(): boolean {if (typeof window === "undefined") return false;try {@@ -73,35 +57,95 @@ export function sceneEnabled(): boolean {}}-/** Everything `apply` writes, so a driver that shuts down can hand the element- * back to the stylesheet's resting values rather than leaving it frozen at- * whatever frame it happened to stop on. */+/** Everything `apply` writes, so a driver that shuts down hands the element back+ * to the stylesheet's resting values rather than freezing mid-ride. */const WRITTEN = ["--t",+ "--tf","--tl",- "--doc","--bg","--fit",- "--zoom",- "--zoom-x",- "--zoom-y","--pad-pct",+ "--frame-scale","--size-pct","--cur-size",- "--cur-sel",+ "--size-u",+ "--zoom",+ "--zoom-origin",+ "--zoom-active","--shot-x","--shot-y",+ "--shot-bounce",+ "--shot-cursor",+ "--shot-hx",+ "--shot-hy","--page-y",+ "--ui-x",+ "--ui-y",+ "--ui-bounce",+ "--ui-on",+ "--ui-cursor",+ "--ui-hx",+ "--ui-hy",+ "--zooms-placed",+ "--speed-placed",+ "--panel","--palette","--wand",- "--note-on",- "--panel",- "--zooms-placed",- "--trims-placed",- "--note-placed",+ "--comment","--flow-y",+ "--cam-scale",+ "--cam-tx",+ "--cam-ty",+ "--cam-rot",+ "--trim-0",+ "--trim-1",+ "--trim-2",+ "--trim-3",+ "--trim-4",];+const fmtSec = (sec: number) => {+ const s = Math.max(0, sec);+ const m = Math.floor(s / 60);+ const r = s - m * 60;+ return `${m}:${Math.floor(r).toString().padStart(2, "0")}.${Math.floor((r % 1) * 10)}`;+};++/** Piecewise-linear read of `[[t, ...values]]`, clamped at both ends. */+function kf(t: number, pts: number[][]): number[] {+ if (t <= pts[0][0]) return pts[0].slice(1);+ for (let i = 1; i < pts.length; i++) {+ if (t <= pts[i][0]) {+ const a = pts[i - 1];+ const b = pts[i];+ const k = (t - a[0]) / (b[0] - a[0]);+ return a.slice(1).map((v, j) => v + (b[j + 1] - v) * k);+ }+ }+ return pts[pts.length - 1].slice(1);+}++/** Windows where the pointer is over something clickable, or over text. */+const HOVERS = [+ [1.45, 3.05],+ [3.4, 4.9],+ [5.25, 6.6],+ [7.55, 10.3],+ [11.0, 12.63],+ [12.7, 14.3],+ [15.05, 16.6],+ [17.5, 18.9],+ [19.7, 20.4],+ [20.95, 21.5],+ [22.05, 22.36],+];+const TEXTS = [+ [20.4, 20.95],+ [21.5, 22.0],+];+const inAny = (t: number, w: number[][]) => w.some(([a, b]) => t >= a && t < b);+export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {if (!sceneEnabled()) {for (const name of WRITTEN) refs.root.style.removeProperty(name);@@ -111,72 +155,239 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {};}- const { band, root, padValue, sizeValue, zoomValue, timeValue, flow } = refs;-+ const { band, root, cam, padValue, sizeValue, timeValue, cutsValue, flow } = refs;let raf = 0;- let lastCue = -2;- let lastBeat: string | null | undefined;- let lastPad = "";- let lastSize = "";- let lastZoom = "";- let lastTime = "";- /** Every entry the document can remove, paired with its element. Two of the- * three silences are struck over the ride; resolving them once here is what- * keeps the per-frame work off the transcript's 106 nodes. */- const removable = WORDS_REMOVABLE.map((w) => ({- w,- el: flow.querySelector<HTMLElement>(`[data-w="${w.i}"]`),- })).filter((x) => x.el);++ /* ── the target cache ─────────────────────────────────────────────────── */++ let targets = new Map<string, [number, number]>();+ const measureVisible = () => {+ const box = root.getBoundingClientRect();+ if (box.width <= 0) return;+ for (const el of Array.from(root.querySelectorAll<HTMLElement>("[data-t]"))) {+ // An element inside a hidden pane has no box; keep whatever it last+ // measured, because the pointer is on its way to it.+ if (el.offsetParent === null) continue;+ const r = el.getBoundingClientRect();+ if (r.width <= 0) continue;+ const name = el.dataset.t!;+ // Anchors along a slider track are stored as the track's own geometry,+ // so a percentage along it can be resolved without re-measuring.+ targets.set(name, [+ ((r.left - box.left) / box.width) * 100,+ ((r.top + r.height / 2 - box.top) / box.height) * 100,+ ]);+ targets.set(`${name}:w`, [(r.width / box.width) * 100, (r.height / box.height) * 100]);+ }+ };/**- * Every entry's offset inside the flow, measured once.+ * Measure every target, including those inside a pane that is closed.+ *+ * Three of the four panes are `display: none` at any moment, and a closed+ * pane's children have no box — so a single pass leaves the swatches, the+ * sliders and the transcript's words at their fallback coordinates, and the+ * pointer spends the whole ride a hundred pixels from everything it is+ * meant to be clicking. That was the first defect this build shipped.*- * The cue moves about a hundred times over the ride, and reading `offsetTop`- * each time is a layout read interleaved with the variable writes above —- * the shape that turns a cheap frame into a forced synchronous reflow. The- * flow's own layout never changes (the panel has a fixed width and the text- * is static), so the only thing that can invalidate this is a late webfont,- * which is what the resize listener and the fonts promise below are for.+ * Opening each pane in turn is also the only correct way to do it: the panes+ * share one flow container, so showing them together would measure each one+ * stacked below the others.*/- const entries = Array.from(flow.querySelectorAll<HTMLElement>("[data-w]"));- let offsets = new Map<string, number>();- let mask = 0;const measure = () => {- offsets = new Map(entries.map((el) => [el.dataset.w!, el.offsetTop]));- mask = flow.parentElement?.clientHeight ?? 0;+ const had = root.dataset.beat;+ for (const beat of ["style", "effects", "cursor", "timeline", "transcript"]) {+ root.dataset.beat = beat;+ measureVisible();+ }+ if (had === undefined) delete root.dataset.beat;+ else root.dataset.beat = had;};- measure();- document.fonts?.ready.then(measure).catch(() => {- // A font that never resolves leaves the first measurement standing, which- // is the right answer for every fallback stack anyway.++ const at = (name: string, fx = 20, fy = 45): [number, number] => {+ const p = targets.get(name);+ const w = targets.get(`${name}:w`);+ if (!p) return [fx, fy];+ // Centre by default; `along` handles the two sliders and the two words.+ return [p[0] + (w ? w[0] / 2 : 0), p[1]];+ };+ const along = (name: string, frac: number, fx = 20, fy = 45): [number, number] => {+ const p = targets.get(name);+ const w = targets.get(`${name}:w`);+ if (!p || !w) return [fx, fy];+ return [p[0] + w[0] * frac, p[1]];+ };++ /** v4's pointer score, rebuilt each frame from the cache — the cache is what+ * makes that free, and rebuilding is what lets a target that was hidden at+ * attach time be aimed at correctly once its pane opens. */+ const path = (): number[][] => {+ const pad = (pct: number) => along("padtrk", pct / 100);+ const sz = (pct: number) => along("sztrk", pct / 100);+ const tok = (i: number) => at(`tok-${i}`);+ const tokU = (i: number, ax: number) => along(`tok-${i}`, ax);+ return [+ [0.4, 58, 66],+ [1.45, ...at("th-1")],+ [3.05, ...at("th-1")],+ [3.4, ...at("th-2")],+ [4.9, ...at("th-2")],+ [5.25, ...at("th-3")],+ [6.6, ...at("th-3")],+ [7.55, ...pad(97)],+ [7.95, ...pad(97)],+ [9.0, ...pad(48)],+ [10.3, ...pad(48)],+ [11.0, ...at("cur-2")],+ [11.9, ...at("cur-2")],+ [12.15, ...at("cur-1")],+ [12.63, ...at("cur-1")],+ [12.7, ...sz(50)],+ [13.2, ...sz(79)],+ [14.3, ...sz(79)],+ [15.05, ...at("wand")],+ [16.6, ...at("wand")],+ [17.5, ...at("comment")],+ [18.9, ...at("comment")],+ [19.75, ...tok(12)],+ [20.35, ...tok(12)],+ [20.5, ...tokU(13, 1.02)],+ [20.699, ...tokU(13, 1.02)],+ [20.7, ...tokU(13, 0.02)],+ [20.85, ...tokU(13, 0.02)],+ [21.0, ...tok(30)],+ [21.45, ...tok(30)],+ [21.6, ...tokU(35, 1.02)],+ [21.799, ...tokU(35, 1.02)],+ [21.8, ...tokU(35, 0.02)],+ [21.95, ...tokU(35, 0.02)],+ [22.1, ...tok(39)],+ [22.36, ...tok(39)],+ ];+ };++ /* ── the webcam ───────────────────────────────────────────────────────── */++ let camReady = false;+ let camPending: number | undefined;+ const camSrc = "/video/webcam.mp4";+ const primeCam = () => {+ if (cam.getAttribute("src")) return;+ cam.setAttribute("src", camSrc);+ cam.preload = "auto";+ cam.load();+ };+ cam.addEventListener("loadeddata", () => {+ camReady = true;});+ cam.addEventListener("seeked", () => {+ if (camPending !== undefined) {+ const q = camPending;+ camPending = undefined;+ try {+ cam.currentTime = q;+ } catch {+ // A seek past a not-yet-buffered range throws; the next frame retries.+ }+ }+ });+ const seekCam = (tf: number) => {+ if (!camReady || cam.readyState < 2) return;+ const dur = Number.isFinite(cam.duration) && cam.duration > 0 ? cam.duration : 10;+ const t = ((tf % dur) + dur) % dur;+ if (cam.seeking) camPending = t;+ else if (Math.abs((cam.currentTime || 0) - t) > 0.033) {+ try {+ cam.currentTime = t;+ } catch {+ // ignored — see above+ }+ }+ };++ /* ── the frame ────────────────────────────────────────────────────────── */++ let lastBeat: string | null | undefined;+ let lastPad = "";+ let lastSize = "";+ let lastTime = "";+ let lastCuts = "";+ let lastArt = "";+ let lastTheme = -1;+ const struck = new Set<number>();+ let trimEls: HTMLElement[] = [];- const num = (name: string, value: number, dp = 4) =>- root.style.setProperty(name, value.toFixed(dp));+ const num = (n: string, v: number, dp = 4) => root.style.setProperty(n, v.toFixed(dp));const apply = (f: Frame) => {num("--t", f.t, 3);- num("--tl", f.tl);- num("--doc", f.doc, 3);- num("--bg", f.bg, 3);+ num("--tf", f.tf, 3);+ num("--tl", f.tl, 0);+ if (String(f.bg) !== root.dataset.bg) root.dataset.bg = String(f.bg);num("--fit", f.fit);- num("--zoom", f.zoom, 4);- num("--zoom-x", f.zoomX, 1);- num("--zoom-y", f.zoomY, 1);num("--pad-pct", f.paddingPct, 2);+ num("--frame-scale", f.frameScale, 4);num("--size-pct", f.cursorSizePct, 2);num("--cur-size", f.cursorSize, 2);- num("--cur-sel", f.cursorSel, 0);+ num("--size-u", f.cursorSizeU, 4);+ num("--zoom", f.zoom, 4);+ root.style.setProperty("--zoom-origin", f.zoomOrigin);+ num("--zoom-active", f.zoomActive, 0);num("--shot-x", f.shot[0], 2);num("--shot-y", f.shot[1], 2);+ num("--shot-bounce", f.shotBounce, 4);num("--page-y", f.pageY, 2);- num("--palette", f.paletteIn, 0);- num("--wand", f.wandOn, 0);- num("--note-on", f.noteOn, 0);- num("--panel", f.panelIn, 0);+ num("--ui-bounce", f.uiBounce, 4);num("--zooms-placed", f.zoomsPlaced, 0);- num("--trims-placed", f.trimsPlaced, 0);- num("--note-placed", f.notePlaced, 0);+ num("--speed-placed", f.speedPlaced, 0);+ num("--panel", f.panel, 0);+ num("--palette", f.palette, 0);+ num("--wand", f.wand, 0);+ num("--comment", f.comment, 0);+ // Written onto the elements, not through a variable and a positional+ // selector — see the note in the stylesheet.+ if (!trimEls.length) trimEls = Array.from(root.querySelectorAll<HTMLElement>("[data-trim]"));+ f.trims.forEach((c, i) => {+ const el = trimEls[i];+ if (el) el.style.opacity = c.placed ? "1" : "0";+ });++ // Ken Burns on the webcam, on the footage clock. The minimum scale is a+ // constraint, not a taste: below ~1.12 the generator's watermark enters+ // the frame from the right.+ num("--cam-scale", 1.18 + 0.07 * Math.sin(f.tf * 0.9), 3);+ num("--cam-tx", 3.4 * Math.sin(f.tf * 0.55) + 1.2 * Math.sin(f.tf * 2.1), 2);+ num("--cam-ty", 2.6 * Math.cos(f.tf * 0.7) + 0.9 * Math.sin(f.tf * 1.7), 2);+ num("--cam-rot", 1.3 * Math.sin(f.tf * 0.42), 2);++ // The pointer inside the recording wears the pack the picker selected.+ if (f.cursorTheme !== lastTheme) {+ lastTheme = f.cursorTheme;+ root.dataset.curSel = String(f.cursorTheme);+ const theme = CURSORS.themes[f.cursorTheme];+ root.style.setProperty("--shot-cursor", `url(${theme.src})`);+ num("--shot-hx", theme.hotspotX * 100, 2);+ num("--shot-hy", theme.hotspotY * 100, 2);+ }++ // The reader's pointer: arrow, pointer over a control, caret over text.+ // The hotspot is the app's own, which is why the tip lands on the target+ // rather than near it.+ const art = inAny(f.t, TEXTS) ? "text" : inAny(f.t, HOVERS) ? "pointer" : "arrow";+ if (art !== lastArt) {+ lastArt = art;+ const sprite =+ art === "text" ? CURSORS.text : art === "pointer" ? CURSORS.pointer : CURSORS.themes[0];+ root.style.setProperty("--ui-cursor", `url(${sprite.src})`);+ num("--ui-hx", sprite.hotspotX * 100, 2);+ num("--ui-hy", sprite.hotspotY * 100, 2);+ root.dataset.cur = art;+ }++ const [ux, uy] = kf(Math.min(f.t, 22.36), path());+ num("--ui-x", ux, 2);+ num("--ui-y", uy, 2);+ num("--ui-on", f.t > 1.1 && f.t < 22.36 ? 1 : 0, 0);if (f.beat !== lastBeat) {lastBeat = f.beat;@@ -185,62 +396,43 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {}const pad = `${Math.round(f.padding)}%`;- if (pad !== lastPad) {- lastPad = pad;- padValue.textContent = pad;- }- // One decimal and no suffix — RightPanes.tsx:1755 gives this slider- // `decimals={1}` and no `suffix`, unlike every other slider on the panel.+ if (pad !== lastPad) padValue.textContent = lastPad = pad;+ // One decimal and no suffix: RightPanes gives this one slider `decimals={1}`+ // and no unit, unlike every other slider on the panel.const size = f.cursorSize.toFixed(1);- if (size !== lastSize) {- lastSize = size;- sizeValue.textContent = size;- }- const zoom = f.zoomLabel ?? "";- if (zoom !== lastZoom) {- lastZoom = zoom;- // Emptying it rather than hiding it: the badge's own opacity is- // already driven by --zoom, and a label left behind under a- // transparent badge is a string a screen reader can still reach.- zoomValue.textContent = zoom;- }- const time = fmtSec(f.doc);- if (time !== lastTime) {- lastTime = time;- timeValue.textContent = time;- }+ if (size !== lastSize) sizeValue.textContent = lastSize = size;+ const time = fmtSec(f.tf);+ if (time !== lastTime) timeValue.textContent = lastTime = time;+ const cuts = f.cutCount ? `−${f.cutCount} · −${f.saved.toFixed(1)}s` : "";+ if (cuts !== lastCuts) cutsValue.textContent = lastCuts = cuts;- if (f.cue !== lastCue) {- const prev = lastCue;- lastCue = f.cue;- if (prev >= 0) flow.querySelector(`[data-w="${prev}"]`)?.classList.remove(cls.cue);- if (f.cue >= 0) {- flow.querySelector(`[data-w="${f.cue}"]`)?.classList.add(cls.cue);- // Keep the cue in the panel without scrolling the panel: the flow- // is translated under a fixed mask, so this is a transform, not a- // scroll, and it cannot fight the page's own scrolling.- const top = offsets.get(String(f.cue));- if (top !== undefined) num("--flow-y", -Math.max(0, top - mask * 0.45), 1);- }- for (const { w, el } of removable) {- // `startSec`, matching `trimsPlaced` in the score: the silence is- // struck as the playhead arrives at the dead air, and its trim lands- // on the floor on the same frame.- el!.classList.toggle(cls.struck, f.cue >= 0 && f.doc >= w.startSec);- }+ // Only the five removable entries can ever change, so the other forty+ // nodes in the transcript are never touched.+ for (const i of CUT_INDEX) {+ const on = f.t >= strikeOf(i);+ if (on === struck.has(i)) continue;+ on ? struck.add(i) : struck.delete(i);+ flow.querySelector(`[data-w="${i}"]`)?.classList.toggle(cls.struck, on);}++ seekCam(f.tf);};+ /* ── the scroll ───────────────────────────────────────────────────────── */+const onScroll = () => {if (raf) return;raf = requestAnimationFrame(() => {raf = 0;const rect = band.getBoundingClientRect();- const travel = rect.height - window.innerHeight;- // Off screen in either direction: hold the nearest end rather than- // letting the scene run backwards past its own first frame.- const p = travel > 0 ? -rect.top / travel : 0;- apply(frameAt(p));+ const total = rect.height - window.innerHeight;+ // The ride overflows the sticky on purpose: the last stretch plays while+ // the section is already scrolling away, so the editor is not still+ // sitting pinned and finished for a whole viewport.+ const span = total + window.innerHeight * 1.04;+ const off = Math.min(span, Math.max(0, -rect.top));+ if (off > 0 && off < span) primeCam();+ apply(frameAt(span > 0 ? off / span : 0));});};@@ -248,6 +440,14 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {measure();onScroll();};++ measure();+ // Targets inside a closed pane cannot be measured until it opens, and the+ // panes open on scroll — so re-measure once the fonts have settled, which is+ // also when the transcript's words stop moving.+ document.fonts?.ready.then(measure).catch(() => {+ // A font that never resolves leaves the first measurement standing.+ });window.addEventListener("scroll", onScroll, { passive: true });window.addEventListener("resize", onResize);onScroll();@@ -258,3 +458,5 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {if (raf) cancelAnimationFrame(raf);};}++export { T_TOTAL };diff --git a/website/src/components/Recreation/fixture-slim.json b/website/src/components/Recreation/fixture-slim.jsonindex a64c749f7..bd527a702 100644--- a/website/src/components/Recreation/fixture-slim.json+++ b/website/src/components/Recreation/fixture-slim.json@@ -882,326 +882,31 @@"blocks": 7996,"barCount": 320,"amps": [- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0.3359,- 0.4772,- 0.3846,- 0.0352,- 0.0002,- 0.3183,- 0.3104,- 0.4636,- 0.3432,- 0.3675,- 0.3943,- 0.4602,- 0.4691,- 0.3334,- 0.3633,- 0.3568,- 0.4292,- 0.3232,- 0.3248,- 0.3064,- 0.4396,- 0.2607,- 0.0121,- 0.0046,- 0.3881,- 0.3022,- 0.363,- 0.3382,- 0.2618,- 0.3437,- 0.4135,- 0.4093,- 0.3779,- 0.2869,- 0.4464,- 0.3854,- 0.2956,- 0.0535,- 0.0002,- 0.3364,- 0.334,- 0.378,- 0.3637,- 0.4191,- 0.293,- 0.3317,- 0.3736,- 0.322,- 0.4531,- 0.4049,- 0.1985,- 0.0002,- 0.4395,- 0.4077,- 0.3881,- 0.3956,- 0.3776,- 0.153,- 0.0002,- 0.2659,- 0.444,- 0.277,- 0.4435,- 0.3974,- 0.3658,- 0.1242,- 0.012,- 0.3088,- 0.3603,- 0.3318,- 0.3428,- 0.3203,- 0.4435,- 0.3733,- 0.3258,- 0.3444,- 0.2858,- 0.4398,- 0.3514,- 0.3963,- 0.4068,- 0.4094,- 0.0359,- 0.0002,- 0.1393,- 0.3036,- 0.3957,- 0.3233,- 0.3509,- 0.3922,- 0.3092,- 0.1093,- 0.0002,- 0.3638,- 0.3151,- 0.3183,- 0.1957,- 0.2973,- 0.4466,- 0.332,- 0.4787,- 0.377,- 0.4199,- 0.4155,- 0.4372,- 0.3765,- 0.4151,- 0.3954,- 0.3995,- 0.3614,- 0.403,- 0.3006,- 0.3348,- 0.4034,- 0.3151,- 0.1194,- 0.0002,- 0.3269,- 0.3424,- 0.3465,- 0.335,- 0.1969,- 0.3703,- 0.2767,- 0.4121,- 0.361,- 0.3819,- 0.3489,- 0.3791,- 0.3165,- 0.3318,- 0.1726,- 0.0777,- 0.0002,- 0.4443,- 0.4218,- 0.4262,- 0.3944,- 0.2476,- 0.3558,- 0.3466,- 0.2852,- 0.1,- 0.001,- 0.3855,- 0.3402,- 0.316,- 0.3213,- 0.2141,- 0.3775,- 0.3565,- 0.3483,- 0.3604,- 0.4128,- 0.4153,- 0.3147,- 0.4081,- 0.3227,- 0.3721,- 0.3959,- 0.4224,- 0.1345,- 0.3506,- 0.4227,- 0.3481,- 0.3703,- 0.0094,- 0.0002,- 0.3997,- 0.3777,- 0.3575,- 0.3516,- 0.3641,- 0.4105,- 0.4037,- 0.3991,- 0.4018,- 0.3985,- 0.3655,- 0.4257,- 0.4349,- 0.3224,- 0.0179,- 0.3201,- 0.3565,- 0.3255,- 0.3662,- 0.4131,- 0.4463,- 0.3778,- 0.039,- 0.0002,- 0.3357,- 0.361,- 0.3435,- 0.3279,- 0.3159,- 0.2934,- 0.0813,- 0.0002,- 0.0471,- 0.3638,- 0.3751,- 0.2922,- 0.3542,- 0.1252,- 0.0002,- 0.3232,- 0.3486,- 0.3382,- 0.0384,- 0.3779,- 0.3611,- 0.1513,- 0.0127,- 0.0037,- 0.3684,- 0.3736,- 0.344,- 0.4182,- 0.3928,- 0.2852,- 0.3441,- 0.1907,- 0.3761,- 0.3167,- 0.3671,- 0.3164,- 0.3555,- 0.3766,- 0.3326,- 0.3536,- 0.3717,- 0.0134,- 0.0002,- 0.3501,- 0.3589,- 0.3274,- 0.3518,- 0.2186,- 0.4487,- 0.391,- 0.0034,- 0.0013,- 0.359,- 0.3848,- 0.3331,- 0.3536,- 0.38,- 0.4243,- 0.2919,- 0.4025,- 0.4279,- 0.3104,- 0.0197,- 0.0002,- 0.3919,- 0.425,- 0.335,- 0.4427,- 0.3229,- 0.3462,- 0.3811,- 0.3775,- 0.1691,- 0.0062,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0,- 0+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.3359, 0.4772, 0.3846, 0.0352, 0.0002,+ 0.3183, 0.3104, 0.4636, 0.3432, 0.3675, 0.3943, 0.4602, 0.4691, 0.3334, 0.3633, 0.3568,+ 0.4292, 0.3232, 0.3248, 0.3064, 0.4396, 0.2607, 0.0121, 0.0046, 0.3881, 0.3022, 0.363, 0.3382,+ 0.2618, 0.3437, 0.4135, 0.4093, 0.3779, 0.2869, 0.4464, 0.3854, 0.2956, 0.0535, 0.0002,+ 0.3364, 0.334, 0.378, 0.3637, 0.4191, 0.293, 0.3317, 0.3736, 0.322, 0.4531, 0.4049, 0.1985,+ 0.0002, 0.4395, 0.4077, 0.3881, 0.3956, 0.3776, 0.153, 0.0002, 0.2659, 0.444, 0.277, 0.4435,+ 0.3974, 0.3658, 0.1242, 0.012, 0.3088, 0.3603, 0.3318, 0.3428, 0.3203, 0.4435, 0.3733, 0.3258,+ 0.3444, 0.2858, 0.4398, 0.3514, 0.3963, 0.4068, 0.4094, 0.0359, 0.0002, 0.1393, 0.3036,+ 0.3957, 0.3233, 0.3509, 0.3922, 0.3092, 0.1093, 0.0002, 0.3638, 0.3151, 0.3183, 0.1957,+ 0.2973, 0.4466, 0.332, 0.4787, 0.377, 0.4199, 0.4155, 0.4372, 0.3765, 0.4151, 0.3954, 0.3995,+ 0.3614, 0.403, 0.3006, 0.3348, 0.4034, 0.3151, 0.1194, 0.0002, 0.3269, 0.3424, 0.3465, 0.335,+ 0.1969, 0.3703, 0.2767, 0.4121, 0.361, 0.3819, 0.3489, 0.3791, 0.3165, 0.3318, 0.1726, 0.0777,+ 0.0002, 0.4443, 0.4218, 0.4262, 0.3944, 0.2476, 0.3558, 0.3466, 0.2852, 0.1, 0.001, 0.3855,+ 0.3402, 0.316, 0.3213, 0.2141, 0.3775, 0.3565, 0.3483, 0.3604, 0.4128, 0.4153, 0.3147, 0.4081,+ 0.3227, 0.3721, 0.3959, 0.4224, 0.1345, 0.3506, 0.4227, 0.3481, 0.3703, 0.0094, 0.0002,+ 0.3997, 0.3777, 0.3575, 0.3516, 0.3641, 0.4105, 0.4037, 0.3991, 0.4018, 0.3985, 0.3655,+ 0.4257, 0.4349, 0.3224, 0.0179, 0.3201, 0.3565, 0.3255, 0.3662, 0.4131, 0.4463, 0.3778, 0.039,+ 0.0002, 0.3357, 0.361, 0.3435, 0.3279, 0.3159, 0.2934, 0.0813, 0.0002, 0.0471, 0.3638, 0.3751,+ 0.2922, 0.3542, 0.1252, 0.0002, 0.3232, 0.3486, 0.3382, 0.0384, 0.3779, 0.3611, 0.1513,+ 0.0127, 0.0037, 0.3684, 0.3736, 0.344, 0.4182, 0.3928, 0.2852, 0.3441, 0.1907, 0.3761, 0.3167,+ 0.3671, 0.3164, 0.3555, 0.3766, 0.3326, 0.3536, 0.3717, 0.0134, 0.0002, 0.3501, 0.3589,+ 0.3274, 0.3518, 0.2186, 0.4487, 0.391, 0.0034, 0.0013, 0.359, 0.3848, 0.3331, 0.3536, 0.38,+ 0.4243, 0.2919, 0.4025, 0.4279, 0.3104, 0.0197, 0.0002, 0.3919, 0.425, 0.335, 0.4427, 0.3229,+ 0.3462, 0.3811, 0.3775, 0.1691, 0.0062, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}}diff --git a/website/src/components/Recreation/index.tsx b/website/src/components/Recreation/index.tsxindex 82328731f..73ac0b78f 100644--- a/website/src/components/Recreation/index.tsx+++ b/website/src/components/Recreation/index.tsx@@ -1,161 +1,90 @@/*** The OpenScreen editor, redrawn in live DOM and walked through by the scroll.*- * Six settings in two acts. Act one — background, padding, cursor — needs no- * timeline to make sense, so it does not draw one: the composite gets the whole- * stage and the inspector answers beside it. Act two — auto zoom, annotation,- * transcript — is only meaningful against a timeline, so the timeline slides in- * once, between the acts, and the composite gives up the height it borrowed.+ * Five beats in two acts. Act one — background, effects, cursor — is the+ * composite and one inspector panel, and draws no timeline: those three+ * settings are legible in a still frame and the picture would rather have the+ * room. Act two brings the floor in once and keeps it, for the edits that only+ * mean anything against a timeline.*- * Every string, number and percentage comes from `generated.ts`, which- * `scripts/gen-recreation.mjs` emits by reading the project document- * (`fixture-slim.json`, schemaVersion 7), the app's locale files, and the app's- * own `formatSec` / `effectiveZoomScale` / `buildClipSection`, imported and run.- * The panels are the app's real panels: `PANELS` carries their titles and- * `CONTROLS` carries every slider at this document's own setting, scaled and- * suffixed the way `RightPanes.tsx` scales and suffixes it — cursor size is- * `size * 10` with one decimal and no unit, which a hand-written panel gets- * wrong in a way that looks completely plausible.+ * ── DERIVED, AND STAGED ──────────────────────────────────────────────────────*- * ── ONE CLOCK ────────────────────────────────────────────────────────────────+ * The chrome is the application's. `PANELS` carries the panel titles by locale+ * key, `CONTROLS` every slider at the vendored document's own setting — scaled+ * and suffixed the way `RightPanes.tsx` does it, which is where a hand-written+ * panel goes plausibly wrong — and `CURSORS` the ten packs the picker shows,+ * each with the hotspot the renderer actually uses.*- * The scroll is the only clock. `scene.ts` turns scroll position into a `Frame`;- * `driver.ts` writes that frame to custom properties on one element. There is no- * media element and no second timebase, so nothing can drift out of step with- * anything else: the playhead, the pill under it, the composite's magnification- * and the transcript's cue are four readings of a single number.+ * The session is staged: the transcript, the trims, the zooms and the speed+ * ramp are a composed demonstration, not a recording. The figcaption says so.*- * This file renders once and never again. It holds no state and reads no clock.+ * ── ONE CLOCK, TWO TIMEBASES ─────────────────────────────────────────────────*- * ── ACCESSIBILITY ────────────────────────────────────────────────────────────+ * The scroll is the only input. `scene.ts` turns scroll position into a `Frame`+ * carrying both the scene clock and the footage clock — which differ, because a+ * speed ramp is in the middle of the take. `driver.ts` writes that frame to+ * custom properties on one element and seeks one video. React renders once.*- * No focusable node anywhere. The app's controls are real buttons and sliders;- * recreated as controls they become tab stops that announce actions this page- * will never perform — a lie told exclusively to the readers least able to check- * it. Every swatch, slider and pill here is a `<span>`.+ * ── ACCESSIBILITY ────────────────────────────────────────────────────────────*- * One state, not a mutating one. What is exposed is the closing state and is- * exposed from the first frame: the six claims, the panel titles and control- * labels, the transcript's 103 words and 3 silence markers as real selectable- * text, the five pill labels and the three lane hints. What moves is opacity and- * transform, never the tree. Nothing is announced, nothing flips under a linear- * reader, and there is no live region.+ * No focusable node. The app's controls are real buttons and sliders; recreated+ * as controls they become tab stops announcing actions this page will never+ * perform. Every swatch, slider and pill here is a span.*- * Hidden from the accessibility tree: the wallpaper, the recorded page, both- * pointers, the window chrome, the ruler, the waveform, the playhead and the- * transport — pictures of an application, with nothing to read.+ * What is exposed is the five claims and the transcript's words as real text.+ * The drawn application — wallpaper, window, pointers, ruler, waveform,+ * playhead, webcam — is `aria-hidden`: it is a picture of software, and a+ * screen reader that walked it would recite a hundred nodes of chrome.*/import {- ChevronRight,- CircleHelp,+ Clock,+ Crosshair,MessageSquare,- MousePointer2,- Scissors,+ SplitSquareHorizontal,Wand2,ZoomIn,} from "lucide-react";import { useEffect, useRef } from "react";import { attachDriver, SCENE_QUERIES } from "./driver";+import { CONTROLS, CURSORS, PANELS } from "./generated";import {- CONTROLS,- INSPECTOR,+ BEATS,+ CLIPS,+ CUT_INDEX,+ FLOOR_H,+ K,LANES,- META,- PANELS,- type RecreationPill,- RULER,- TRANSPORT,- WAVEFORM,- WORDS,-} from "./generated";-import { BEATS, NOTE_AT, NOTE_LEN, WALLPAPER_FROM, WALLPAPER_TO } from "./scene";+ PLAYHEAD,+ SPEED,+ TOKENS,+ trims,+ WALLPAPER_COUNT_SHOWN,+ ZOOMS,+} from "./scene";import styles from "./styles.module.css";-/* ── the copy ─────────────────────────────────────────────────────────────- * One caption per beat, in the beats' own order. The `id` is what the driver- * writes to `data-beat`, so the score and the words cannot fall out of order- * without TypeScript noticing.- */--const CAPTIONS: Record<- (typeof BEATS)[number]["id"],- { kicker: string; claim: string; body: string; fact: string }-> = {- background: {- kicker: "Background",- claim: "Swap what sits behind it.",- body: "A recording is a rectangle on a desktop. Put a wallpaper, a colour or a gradient behind it and the composite re-renders as you pick — nothing is baked in until you export.",- fact: `${PANELS.background.wallpaperCount} bundled wallpapers · or any image on disk`,- },- padding: {- kicker: "Padding",- claim: "Give the window room.",- body: "One slider insets the whole composite, corners and shadow included. This document sits at 55%, and the frame you see is that number run through the app's own arithmetic rather than a number that looked about right.",- fact: "padding · roundness · shadow · motion blur",- },- cursor: {- kicker: "Cursor",- claim: "Your pointer, at your size.",- body: "The cursor is not burned into the recording — it is drawn from the captured telemetry, so its style, its size and how hard it smooths are all still yours after the take.",- fact: "recorded as telemetry · restyled after the fact",- },- autozoom: {- kicker: "Auto zoom",- claim: "Zooms, placed for you.",- body: "The wizard reads where the pointer actually went and lays zoom regions on the timeline. Each one carries its own scale, and the picture magnifies exactly while its region is under the playhead.",- fact: "three regions · 1.80× to 2.20× · every one editable",- },- annotation: {- kicker: "Annotation",- claim: "Pin a note to the second.",- body: "Press A and a note lands at the playhead, on its own lane. It travels with the clip: cut something ahead of it and the note moves with the frame it was about.",- fact: "own lane · moves with the cut",- },- transcript: {- kicker: "Transcript",- claim: "Edit the video like text.",- body: "The transcript is the timeline. Delete a word or a silence and the cut lands on the trim lane — this document's two cuts are both dead air the agent found at the ends, and neither one touched the file.",- fact: `${INSPECTOR.wordCount} words · ${INSPECTOR.silenceCount} silences · nothing destructive`,- },-};+/* ── geometry helpers ─────────────────────────────────────────────────────── */-/* ── the timeline's geometry ──────────────────────────────────────────────- * One number: how many pixels a second of the document is worth. Every object- * on the floor is placed with it, and the strip is translated by it, so the- * whole timeline is one transform per frame rather than 400 repositioned nodes.- */-const K = 48;-const DOC = META.assetDurationSec;+/** Rail positions are static; only the rail itself is translated. */const x = (sec: number) => `${(sec * K).toFixed(1)}px`;-const RULER_LABELS = RULER.variants[0].labels;-/** The waveform's five opacity buckets; two of them are empty on this recording- * (it peaks at 0.4787, so the app's own `0.5 + amp*0.5` never reaches 0.8). */-const WAVE_PATHS = WAVEFORM.paths.filter((p) => p.bars > 0);--const WALLPAPERS = Array.from({ length: PANELS.background.wallpaperCount }, (_, i) => i + 1);-/** The ten cursor styles the app's picker offers. Colour is all the recreation- * needs: the glyph is the same arrow at every one of them. */-const CURSOR_STYLES = [- "#ffffff",- "#f9a8d4",- "#475569",- "#a78bfa",- "#fbbf24",- "#f87171",- "#e2e8f0",- "#4ade80",- "#94a3b8",- "#38bdf8",-];+/** The twelve wallpapers the picker shows, in the design's order. */+const WALLPAPERS = [2, 5, 8, 11, 1, 4, 6, 7, 9, 10, 12, 13];+/** The four the background beat steps through, as full-size canvas layers. */+const CANVAS_BG = [1, 2, 3, 4];++/** The ruler's half-second ticks and its labelled seconds. */+const RULER = Array.from({ length: 103 }, (_, i) => (i - 18) / 2).filter((t) => t <= 42);++const fmt = (sec: number) => {+ const s = Math.max(0, sec);+ return `${Math.floor(s / 60)}:${(Math.floor(s) % 60).toString().padStart(2, "0")}`;+};/* ── small pieces ─────────────────────────────────────────────────────────── */-/** A slider at a value that never moves. The two the reader does move —- * Padding and Size — are written out longhand below with a `--pct` the driver- * drives, because only those two need a variable at all. */function Slider({ label, display, pct }: { label: string; display: string; pct: number }) {return (<span className={styles.control}>@@ -171,90 +100,48 @@ function Slider({ label, display, pct }: { label: string; display: string; pct:);}-/**- * The reader's hand, on the control it is operating.- *- * It is a child of that control, so it needs no coordinates: the CSS that puts- * a knob at `left: var(--pad-pct)` puts the hand there too, at every width, and- * a panel that moves takes its pointer with it. Which one is showing is decided- * by `data-beat` on the stage; nothing here knows what beat it is in.- */-function Hand() {- return (- <span className={styles.hand} aria-hidden="true">- <MousePointer2 size={17} fill="#ffffff" strokeWidth={1.6} />- </span>- );-}-function Toggle({ label, on }: { label: string; on: boolean }) {return (<span className={`${styles.control} ${styles.controlRow}`}><span className={styles.controlLabel}>{label}</span>- <span className={`${styles.switch} ${on ? styles.switchOn : ""}`} aria-hidden="true">- <span className={styles.switchKnob} />- </span>+ <span className={`${styles.switch} ${on ? styles.switchOn : ""}`} /></span>);}-/** Where a slider's knob sits, as a percentage of its own track — the app's- * ranges are not all 0–100, and Size starts at 5. */const pctOf = (c: { value: number; min: number; max: number }) =>((c.value - c.min) / (c.max - c.min)) * 100;-function Pill({ pill, index }: { pill: RecreationPill; index: number }) {- const trim = pill.lane === "trim";- return (- <span- className={`${styles.pill} ${trim ? styles.pillTrim : styles.pillZoom}`}- style={{- left: x(pill.startSec),- width: x(pill.endSec - pill.startSec),- // Each pill compares one lane-wide count against its own index, so- // fourteen objects arrive over the ride without a single DOM write.- ["--i" as string]: index,- }}- >- {trim ? (- <Scissors className={styles.pillGlyph} size={10} aria-hidden="true" />- ) : (- <ZoomIn className={styles.pillGlyph} size={10} aria-hidden="true" />- )}- {pill.label}- </span>- );-}-/* ── the component ────────────────────────────────────────────────────────── */export default function Recreation() {const band = useRef<HTMLElement | null>(null);const root = useRef<HTMLDivElement | null>(null);+ const cam = useRef<HTMLVideoElement | null>(null);const padValue = useRef<HTMLSpanElement | null>(null);const sizeValue = useRef<HTMLSpanElement | null>(null);- const zoomValue = useRef<HTMLSpanElement | null>(null);const timeValue = useRef<HTMLSpanElement | null>(null);+ const cutsValue = useRef<HTMLSpanElement | null>(null);const flow = useRef<HTMLParagraphElement | null>(null);useEffect(() => {const refs = {band: band.current,root: root.current,+ cam: cam.current,padValue: padValue.current,sizeValue: sizeValue.current,- zoomValue: zoomValue.current,timeValue: timeValue.current,+ cutsValue: cutsValue.current,flow: flow.current,};if (Object.values(refs).some((el) => el === null)) return;- const classes = { cue: styles.cue, struck: styles.struck };+ const classes = { struck: styles.struck, cue: styles.cue };- // The gate is not a one-time decision. A reader who opens the page in a- // narrow window and then widens it past 901px gets the stage from CSS the- // instant the media query flips; if the driver had checked once at mount- // and given up, they would get it frozen at its resting frame, with the- // scroll doing nothing, and no way back short of a reload.+ // The gate is re-checked, not decided once: a reader who opens the page+ // narrow and widens it past 901px gets the stage from CSS the instant the+ // query flips, and a driver that had given up at mount would leave it+ // frozen at its resting frame with the scroll doing nothing.let detach = attachDriver(refs as Parameters<typeof attachDriver>[0], classes);const queries = SCENE_QUERIES.map((q) => window.matchMedia(q));const recheck = () => {@@ -262,68 +149,52 @@ export default function Recreation() {detach = attachDriver(refs as Parameters<typeof attachDriver>[0], classes);};for (const q of queries) q.addEventListener("change", recheck);-return () => {for (const q of queries) q.removeEventListener("change", recheck);detach();};}, []);+ const placed = trims(0);+return (- // The figcaption is a sibling of the band, not a child of it. Inside, it- // would sit in flow directly after the sticky stage's own 100vh box — that- // is, one viewport into a six-viewport band — and show through the stage- // for the rest of the ride.<><section className={styles.band} ref={band} data-recreation=""><div className={styles.stage} ref={root}>- {/* ═══ THE CAPTION ═══ Real headings, in the beats' order. Where the- scene is off, these are all this section is: a plain list of six- claims in ordinary flow. */}+ {/* ═══ THE CAPTIONS ═══ The section's real copy. Above the gate they+ share one box and take turns; below it they stack. */}<div className={styles.captions}>- {BEATS.map(({ id }) => {- const c = CAPTIONS[id];- return (- <article key={id} className={styles.cap} data-cap={id}>- <p className={styles.capKicker}>{c.kicker}</p>- <h3 className={styles.capClaim}>{c.claim}</h3>- <p className={styles.capBody}>{c.body}</p>- <p className={styles.capFact}>{c.fact}</p>- </article>- );- })}+ {BEATS.map((b) => (+ <article key={b.id} className={styles.cap} data-cap={b.id}>+ <p className={styles.capKicker}>{b.kicker}</p>+ <h3 className={styles.capTitle}>{b.title}</h3>+ <p className={styles.capSub}>{b.sub}</p>+ </article>+ ))}</div>- {/* ═══ THE SCENE ═══ Everything drawn, in one box, so the captions can- be a sibling of it rather than a layer inside it. That is what lets- a reduced-motion reader get both — the claims stacked in ordinary- flow, and the still editor underneath them. */}- <div className={styles.scene}>- {/* ── the inspector ── */}+ <div className={styles.scene} aria-hidden="true">+ {/* ═══ THE INSPECTOR ═══ */}<div className={styles.panel}><header className={styles.panelHead}>- <h4 className={styles.panelTitle} data-pane="background">+ <h4 className={styles.panelTitle} data-pane="style">{PANELS.background.title}</h4>- <h4 className={styles.panelTitle} data-pane="padding">+ <h4 className={styles.panelTitle} data-pane="effects">{PANELS.effects.title}</h4><h4 className={styles.panelTitle} data-pane="cursor">{PANELS.cursor.title}</h4><h4 className={styles.panelTitle} data-pane="transcript">- {INSPECTOR.title}+ Current transcription</h4>- <span className={styles.panelGlyphs} aria-hidden="true">- <CircleHelp size={14} />- <ChevronRight size={14} />- </span></header><div className={styles.panelBody}>{/* ── Background ── */}- <div className={styles.pane} data-pane="background">- <span className={styles.tabs} aria-hidden="true">+ <div className={styles.pane} data-pane="style">+ <span className={styles.tabs}>{PANELS.background.tabs.map((tab, i) => (<span key={tab} className={i === 0 ? styles.tabOn : styles.tab}>{tab}@@ -332,32 +203,28 @@ export default function Recreation() {</span><span className={styles.upload}>{PANELS.background.uploadCustom}</span><span className={styles.swatches}>- {WALLPAPERS.map((n) => (+ {WALLPAPERS.slice(0, WALLPAPER_COUNT_SHOWN).map((n, i) => (<spankey={n}className={styles.swatch}- // The two the pointer moves between light their own ring- // off `--bg`; the other sixteen have no ring at all.- data-sel={- n === WALLPAPER_FROM ? "from" : n === WALLPAPER_TO ? "to" : undefined- }+ data-t={i < 4 ? `th-${i}` : undefined}+ style={{ ["--i" as string]: i }}><imgsrc={`/img/walkthrough/wp-${String(n).padStart(2, "0")}.jpg`}- alt={PANELS.background.swatchLabels[n - 1]}+ alt=""width={240}height={240}loading="lazy"decoding="async"/>- {n === WALLPAPER_TO ? <Hand /> : null}</span>))}</span></div>{/* ── Video Effects ── */}- <div className={styles.pane} data-pane="padding">+ <div className={styles.pane} data-pane="effects"><span className={`${styles.control} ${styles.controlLive}`}><span className={styles.controlHead}><span className={styles.controlLabel}>{CONTROLS.padding.label}</span>@@ -365,11 +232,9 @@ export default function Recreation() {{CONTROLS.padding.display}</span></span>- <span className={styles.track}>+ <span className={styles.track} data-t="padtrk"><span className={`${styles.trackFill} ${styles.trackFillPad}`} />- <span className={`${styles.knob} ${styles.knobPad}`}>- <Hand />- </span>+ <span className={`${styles.knob} ${styles.knobPad}`} /></span></span><Toggle label={CONTROLS.blurBg.label} on={CONTROLS.blurBg.on} />@@ -395,17 +260,15 @@ export default function Recreation() {<Toggle label={CONTROLS.cursorShow.label} on={CONTROLS.cursorShow.on} /><Toggle label={CONTROLS.clipToBounds.label} on={CONTROLS.clipToBounds.on} /><span className={styles.controlLabel}>{CONTROLS.cursorTheme.label}</span>- <span className={styles.cursorStyles} aria-hidden="true">- {CURSOR_STYLES.map((colour, i) => (+ <span className={styles.cursorStyles}>+ {CURSORS.themes.map((theme, i) => (<span- key={colour}+ key={theme.id}className={styles.cursorStyle}- data-sel={i === 0 ? "from" : i === 1 ? "to" : undefined}- style={{ color: colour }}- >- <MousePointer2 size={14} fill="currentColor" />- {i === 1 ? <Hand /> : null}- </span>+ data-t={`cur-${i}`}+ data-i={i}+ style={{ backgroundImage: `url(${theme.src})` }}+ />))}</span><span className={`${styles.control} ${styles.controlLive}`}>@@ -415,11 +278,9 @@ export default function Recreation() {{CONTROLS.cursorSize.display}</span></span>- <span className={styles.track}>+ <span className={styles.track} data-t="sztrk"><span className={`${styles.trackFill} ${styles.trackFillSize}`} />- <span className={`${styles.knob} ${styles.knobSize}`}>- <Hand />- </span>+ <span className={`${styles.knob} ${styles.knobSize}`} /></span></span><Slider@@ -431,33 +292,26 @@ export default function Recreation() {{/* ── Current transcription ── */}<div className={styles.pane} data-pane="transcript">- <span className={styles.clipHead}>- <span className={styles.clipBadge} aria-hidden="true">- {INSPECTOR.indexBadge}- </span>- <span>- <span className={styles.clipName}>{INSPECTOR.filename}</span>- <span className={styles.clipRange}>{INSPECTOR.clipRange}</span>- </span>- </span>- {/* The flow is translated under a fixed mask rather than- scrolled, so keeping the cue in view cannot fight the page's- own scrolling. `data-w` is the index into WORDS: the driver- addresses the cue by integer and never matches it by text. */}<span className={styles.flowMask}><p className={styles.flow} ref={flow}>- {WORDS.map((w) =>- w.kind === "silence" ? (+ {TOKENS.map((tok, i) =>+ tok.silence ? (<span- key={w.id}- className={`${styles.sil} ${w.kept ? "" : styles.silCut}`}- data-w={w.i}+ key={`${tok.text}-${i}`}+ className={styles.sil}+ data-w={i}+ data-t={`tok-${i}`}>- {w.text}+ {tok.text}</span>) : (- <span key={w.id} className={styles.word} data-w={w.i}>- {w.text}{" "}+ <span+ key={`${tok.text}-${i}`}+ className={styles.word}+ data-w={i}+ data-t={CUT_INDEX.includes(i) ? `tok-${i}` : undefined}+ >+ {tok.text}{" "}</span>),)}@@ -467,130 +321,226 @@ export default function Recreation() {</div></div>- {/* ═══ THE TOOL PALETTE ═══ act two's two tools, in the app's own- floating bar. */}- <div className={styles.palette} aria-hidden="true">- <span className={`${styles.tool} ${styles.toolWand}`}>- <Wand2 size={22} />- <Hand />+ {/* ═══ THE TOOL PALETTE ═══ six tools, the app's own bar */}+ <div className={styles.palette}>+ <span className={`${styles.tool} ${styles.toolWand}`} data-t="wand">+ <Wand2 size={30} />+ </span>+ <span className={styles.tool}>+ <SplitSquareHorizontal size={30} />+ </span>+ <span className={styles.tool}>+ <Clock size={30} />+ </span>+ <span className={`${styles.tool} ${styles.toolComment}`} data-t="comment">+ <MessageSquare size={30} /></span>- <span className={`${styles.tool} ${styles.toolNote}`}>- <MessageSquare size={22} />- <Hand />+ <span className={styles.tool}>+ <ZoomIn size={30} />+ </span>+ <span className={styles.tool}>+ <Crosshair size={30} /></span></div>{/* ═══ THE COMPOSITE ═══ */}- <div className={styles.card} aria-hidden="true">+ <div className={styles.card}><div className={styles.cardClip}><div className={styles.zoomer}>- <img className={styles.bg} src="/img/walkthrough/canvas-bg-a.jpg" alt="" />- <img className={styles.bgSwap} src="/img/walkthrough/canvas-bg-b.jpg" alt="" />+ {CANVAS_BG.map((n) => (+ <img+ key={n}+ className={styles.bg}+ data-i={n - 1}+ src={`/img/walkthrough/canvas-bg-${n}.jpg`}+ alt=""+ loading={n === 1 ? undefined : "lazy"}+ decoding="async"+ />+ ))}++ {/* The recorded window. `--frame-scale` is a uniform scale, not an+ inset: the page inside must not reflow while the padding moves. */}<div className={styles.frame}><div className={styles.chrome}><span className={styles.lights}>- <span /> <span /> <span />+ <span />+ <span />+ <span /></span>- <span className={styles.omnibox}>bellrock.dev</span>+ <span className={styles.omnibox}>fern.garden</span></div><div className={styles.viewport}>- <img- className={styles.page}- src="/img/walkthrough/fixture-page.jpg"- alt=""- width={1024}- height={1036}- />+ <div className={styles.page}>+ <div className={styles.pageNav}>+ <span className={styles.pageMark} />+ <span className={styles.pageBrand}>Fern</span>+ <span className={styles.pageLinks}>+ <span>Product</span>+ <span>Pricing</span>+ <span>Journal</span>+ </span>+ <span className={styles.pageSignIn}>Sign in</span>+ </div>+ <div className={styles.pageHero}>+ <h3>Grow smarter, water less.</h3>+ <p>+ Fern watches your plants' soil, light and weather — and waters only+ when they ask for it.+ </p>+ <div className={styles.pageBtns}>+ <span className={styles.pageCta}>Download the app</span>+ <span className={styles.pageGhost} data-shot="see">+ See how it works+ </span>+ </div>+ </div>+ <div className={styles.pageShot}>+ <img+ src="/img/walkthrough/canvas-poster.jpg"+ alt=""+ loading="lazy"+ decoding="async"+ />+ <span className={styles.pageChip}>Live soil data</span>+ </div>+ <div className={styles.pageCards}>+ <span />+ <span />+ <span />+ </div>+ </div>++ {/* The app the recording opens, half-way through the take. */}+ <div className={styles.appWin}>+ <div className={styles.appSetup}>+ <span className={styles.appLine} />+ <span className={styles.appLine} />+ <span className={styles.appBtn}>Pair sensor</span>+ </div>+ <div className={styles.appDone}>+ <span className={styles.appTick} />+ <span className={styles.appOk}>Sensor paired</span>+ </div>+ </div></div></div>- <MousePointer2 className={styles.shotCursor} size={22} fill="currentColor" />++ {/* The pointer inside the recording, from the captured telemetry —+ which is what the Cursor panel restyles. */}+ <span className={styles.shotCursor} /></div></div>+<span className={styles.zoomBadge}>- <ZoomIn size={10} />- <span ref={zoomValue} />+ <span className={styles.zoomBadgeText}>{ZOOMS[1].label}</span>+ </span>++ {/* 16/10.5, not a circle. */}+ <span className={styles.webcam}>+ <video+ ref={cam}+ className={styles.webcamVideo}+ muted+ playsInline+ preload="none"+ tabIndex={-1}+ disableRemotePlayback+ /></span></div>{/* ═══ THE FLOOR ═══ */}- <div className={styles.timeline} aria-hidden="true">- <div className={styles.transport}>- <span className={styles.time}>- <span ref={timeValue}>0:00.0</span>- <span className={styles.timeTotal}> / {TRANSPORT.total}</span>- </span>- </div>-+ <div className={styles.floor}><div className={styles.floorClip}>- {/* The beds and their hints belong to the viewport, not to the- document: an empty lane's shortcut hint stays where the eye- left it while 40 seconds of timeline slide underneath. */}- <div className={styles.beds}>- {LANES.map((lane) => (- <div key={lane.id} className={styles.bed} data-lane={lane.id}>- {lane.hint ? <span className={styles.laneHint}>{lane.hint}</span> : null}- </div>- ))}- </div>-- <div className={styles.strip} style={{ width: x(DOC) }}>+ {/* Static positions, one transform. */}+ <div className={styles.rail}><div className={styles.ruler}>- {RULER_LABELS.map((label) => (- <span key={label.sec} className={styles.tick} style={{ left: x(label.sec) }}>- {label.text}- </span>- ))}- </div>-- {LANES.map((lane) => (- <div key={lane.id} className={styles.lane} data-lane={lane.id}>- {lane.pills.map((pill, i) => (- <Pill key={pill.id} pill={pill} index={i} />- ))}- {/* The note the reader places. The document holds no- annotation regions — which is exactly why this lane- still shows its "Press A" hint — so it is drawn here- rather than read out of `PILLS`. */}- {lane.id === "annotation" ? (+ {RULER.map((t) => {+ const major = Math.round(t * 2) % 4 === 0;+ return (<span- className={`${styles.pill} ${styles.pillNote}`}- style={{ left: x(NOTE_AT), width: x(NOTE_LEN) }}+ key={t}+ className={major ? styles.tickMajor : styles.tick}+ style={{ left: x(t) }}>- <MessageSquare className={styles.pillGlyph} size={10} />- New annotation+ {major && t >= 0 ? fmt(t) : null}</span>- ) : null}+ );+ })}+ </div>++ {CLIPS.map((c) => (+ <div+ key={c.from}+ className={styles.clip}+ style={{ left: x(c.from), width: x(c.to - c.from) }}+ >+ <span className={styles.clipWave} /></div>))}- <div className={styles.clipCard}>- <svg- className={styles.wave}- viewBox={WAVEFORM.viewBox}- preserveAspectRatio="none"- focusable="false"+ {ZOOMS.map((z, i) => (+ <span+ key={z.label + z.from}+ className={styles.pillZoom}+ style={{+ left: x(z.from),+ width: x(z.to - z.from),+ ["--i" as string]: i,+ }}>- {WAVE_PATHS.map((p) => (- <path key={p.opacity} d={p.d} opacity={p.opacity} />- ))}- </svg>- </div>+ {z.label}+ </span>+ ))}++ <span+ className={styles.pillSpeed}+ style={{ left: x(SPEED.from), width: x(SPEED.to - SPEED.from) }}+ >+ {SPEED.label}+ </span>++ {placed.map((c, i) => (+ <span+ key={`${c.label}-${c.from}`}+ className={styles.pillTrim}+ data-trim=""+ style={{+ left: x(c.from),+ width: x(c.to - c.from),+ ["--i" as string]: i,+ }}+ >+ {c.label}+ </span>+ ))}</div></div>- <span className={styles.playhead}>+ <span className={styles.playhead} style={{ left: `${PLAYHEAD * 100}%` }}><span className={styles.playheadHead} /></span>++ <div className={styles.transport}>+ <span className={styles.time} ref={timeValue}>+ 0:00.0+ </span>+ <span className={styles.cuts} ref={cutsValue} />+ </div></div>++ {/* The reader's pointer, over the editor. */}+ <span className={styles.uiCursor} /></div></div></section><p className={styles.figcaption}>- The editor above is redrawn in your browser from the same project file the photographs on- this page were taken from, and from the design tokens the app ships. The picture inside the- window is the page that was recorded; the camera track is off in this project, so there is- no webcam bubble to draw.+ The editor above is drawn live in your browser from the design tokens the application ships:+ the panel titles, every slider's range and units, the wallpapers and the ten cursor+ packs are read out of its source rather than typed here. The session it is editing is a+ staged demonstration, not a recording of one.</p></>);diff --git a/website/src/components/Recreation/scene.ts b/website/src/components/Recreation/scene.tsindex 6f7329b57..f4e292387 100644--- a/website/src/components/Recreation/scene.ts+++ b/website/src/components/Recreation/scene.ts@@ -1,150 +1,289 @@/**- * The score. One pure function of scroll position, and the constants that say- * when each thing happens.+ * The score, ported from the design's v4 cut.** Time here is *scene seconds* — a clock that exists only on this page and runs- * from 0 to `T_TOTAL` as the reader scrolls the band. It is not the document's- * clock. Where the two meet is `docTime()`, and they meet in exactly one place- * on purpose: act one is a settings demonstration where the recording is not- * playing at all, and act two is a ride down the real 40.033 s document.+ * 0 → `T_TOTAL` as the reader scrolls the band. Every constant below is v4's,+ * kept to the number: the beat boundaries, the instants each click lands, where+ * each pill sits, and the two clocks' relationship.*- * Nothing in this file touches the DOM, and nothing in it reads a clock. The- * driver calls `frameAt(t)` and applies the result; that split is what lets the- * whole score be checked by a test that never opens a browser.- */--import { CONTROLS, EFFECTS, META, PILLS, STAGE, WORDS } from "./generated";--/* ── the two acts ─────────────────────────────────────────────────────────+ * Nothing here touches the DOM and nothing reads a clock. The driver calls+ * `frameAt(p)` and applies the result, which is what lets the whole score be+ * checked by a test that never opens a browser.*- * Act one holds three settings that need no timeline to make sense — you can- * see a background swap, a padding change and a cursor resize in a still frame.- * They are the three the composite can answer on its own, so the timeline stays- * off stage and the picture gets the room instead.- *- * Act two holds the three that are only meaningful against a timeline: zooms- * placed on it, a note pinned to it, and cuts that arrive on it when words- * leave the transcript. The timeline slides in once, between the acts, and the- * composite gives up the height it was borrowing.- */--/**- * The beats touch. There is no gap anywhere, and the last one runs to the end.+ * ── WHAT IS DERIVED AND WHAT IS STAGED ───────────────────────────────────────*- * Two earlier cuts got this wrong in the same way. A gap between beats is a- * stretch with no caption, no panel and no palette — so what looks on paper- * like breathing room between two claims is, on screen, the left half of the- * viewport going empty while the composite sits there alone. It is invisible- * when you scroll past it at speed and glaring the moment anyone stops in it,- * which is exactly the kind of defect that survives a demo and fails a reader.+ * The editor's *chrome* is the application's: panel titles, every slider's+ * range, scaling and suffix, the wallpapers, and the cursor packs with their+ * real hotspots all come out of `generated.ts`, which the generator emits by+ * reading the app's locale files and source.*- * Touching beats mean the panel never has to fade out and back in between- * background, padding and cursor: it stays, and its contents swap, which is- * what the app does when you click a different facet. The one place anything- * really leaves is the act change, where the panel gives way to the tool- * palette — and the timeline starts arriving before then (`TL_IN`), so even- * that happens under a caption that is still up.+ * The *session* is staged. The transcript below, the five trims, the three+ * zooms and the speed ramp are the design's scenario, not the vendored+ * project file — they are a demonstration of what the editor does, composed to+ * read in twenty-six seconds. An earlier cut drove this from the project+ * document; the document's own edit is two trims at the two ends of a+ * forty-second take, which is truthful and shows almost nothing. The page says+ * which is which rather than implying the whole thing is a recording.*/++import { CONTROLS, CURSORS, EFFECTS } from "./generated";++export const T_TOTAL = 26.0;++/* ── the five beats ───────────────────────────────────────────────────────── */+export const BEATS = [- // From zero, not from a settling beat. The band's first screen is visible- // under the heading before anyone has scrolled into it, and a beat table that- // starts late renders that screen as an empty stage — the one frame every- // reader is guaranteed to see.- { id: "background", from: 0, to: 4.15 },- { id: "padding", from: 4.15, to: 7.5 },- { id: "cursor", from: 7.5, to: 11.0 },- { id: "autozoom", from: 11.0, to: 15.3 },- { id: "annotation", from: 15.3, to: 18.7 },- { id: "transcript", from: 18.7, to: 26.5 },+ {+ id: "style",+ from: 0.6,+ to: 7.2,+ kicker: "Style",+ title: "Swap the background",+ sub: "Image, color or gradient behind your recording — no re-shoot.",+ },+ {+ id: "effects",+ from: 7.2,+ to: 10.4,+ kicker: "Effects",+ title: "Frame it your way",+ sub: "Padding, motion blur, shadow, roundness — every effect composites live.",+ },+ {+ id: "cursor",+ from: 10.4,+ to: 14.5,+ kicker: "Cursor",+ title: "A cursor worth watching",+ sub: "Size, smoothing, motion blur, click bounce — every move reads on screen.",+ },+ {+ id: "timeline",+ from: 15.0,+ to: 19.5,+ kicker: "Timeline",+ title: "One click, one pill",+ sub: "Zooms, speed ramps, trims, comments — each edit lands as a pill on the timeline.",+ },+ {+ id: "transcript",+ from: 19.6,+ to: 26.0,+ kicker: "Transcript",+ title: "Edit video like text",+ sub: "Delete a word or a silence; the cut lands on the timeline. Nothing destructive.",+ },] as const;export type BeatId = (typeof BEATS)[number]["id"];-export const T_TOTAL = 26.5;+/** The floor arrives here — inside the cursor beat, so the acts change under a+ * caption that is still up rather than across an empty stage. */+const TL_IN = 14.65;+/** The inspector is up for every beat except the two the palette owns. */+const PANEL_OFF = [14.45, 19.6] as const;++/* ── the transcript ───────────────────────────────────────────────────────── */++export type Token = { text: string; silence?: boolean; cut?: number; label?: string };++/** The staged take. Five entries are removable — three silences and two filler+ * words — and each has an explicit strike time in `STRIKE_T`. */+export const TOKENS: Token[] = [+ ...["Hey,", "so", "today", "I", "want", "to", "show", "you", "the", "new", "export", "flow."].map(+ (text) => ({ text }),+ ),+ { text: "0.5s silence", silence: true, cut: 0.5, label: "0.5s" },+ { text: "Um,", cut: 0.4, label: "0.4s" },+ ...["let", "me", "pull", "up", "the", "dashboard", "first."].map((text) => ({ text })),+ ...["You", "just", "hit", "record", "—", "OpenScreen", "does", "the", "rest."].map((text) => ({+ text,+ })),+ { text: "[silence 0.6s]", silence: true, cut: 0.6, label: "0.6s" },+ ...["Trim", "the", "dead", "air,"].map((text) => ({ text })),+ { text: "um,", cut: 0.3, label: "0.3s" },+ ...["tighten", "the", "takes,"].map((text) => ({ text })),+ { text: "[silence 0.5s]", silence: true, cut: 0.5, label: "0.5s" },+ ...["and", "ship", "it", "before", "lunch."].map((text) => ({ text })),+];-/** Where the timeline arrives and the composite makes room. Deliberately inside- * the cursor beat rather than after it: the floor rising is the transition, and- * it should happen while there is still a caption on screen to watch it. */-const TL_IN = 10.2;+/** Indices into `TOKENS` of everything removable, in order. */+export const CUT_INDEX = TOKENS.reduce<number[]>((out, t, i) => {+ if (t.cut !== undefined) out.push(i);+ return out;+}, []);-/** Act two's ride: scene seconds mapped onto the document's own 40.033 s, so- * the playhead, the pills under it and the transcript cue are three renderings- * of one number rather than three animations that happen to agree. */-const RIDE_FROM = 10.9;-const RIDE_TO = T_TOTAL;-const DOC_END = META.assetDurationSec;+/** When each removable entry is struck. Explicit rather than swept: the pointer+ * has to arrive at that word on that frame, and a sweep cannot be aimed. */+const STRIKE_T = [20.05, 20.72, 21.25, 21.8, 22.3];-/* ── sub-beat moments ─────────────────────────────────────────────────────- * The instants inside a beat when a discrete thing happens — a click lands, a- * selection moves. Each is the moment the pointer arrives, so the pointer path- * below and these have to be read together.- */-const T_BG_CLICK = 2.5;-const T_CUR_CLICK = 8.5;-const T_WAND_CLICK = 12.6;-const T_NOTE_CLICK = 16.4;--/** The swatch the document itself is set to, and the one the pointer moves to.- * `STAGE.wallpaper` is the document's — everything else on this page agrees- * with the project file, and the picture the reader starts on has to as well. */-export const WALLPAPER_FROM = wallpaperIndex(STAGE.wallpaper);-export const WALLPAPER_TO = 9;--function wallpaperIndex(path: string): number {- const n = Number(/wallpaper(\d+)\.jpg$/.exec(path)?.[1]);- // A document pointing at a colour or a gradient has no swatch to light up.- // Falling back to the first one keeps the panel honest about that rather- // than lighting up a swatch the document never chose.- return Number.isInteger(n) ? n : 1;+export const strikeOf = (i: number) => {+ const k = CUT_INDEX.indexOf(i);+ return k < 0 ? Number.POSITIVE_INFINITY : (STRIKE_T[k] ?? Number.POSITIVE_INFINITY);+};++/* ── the floor ────────────────────────────────────────────────────────────── */++/** Pixels per second of footage. Every object on the rail is placed with it and+ * the rail is translated by it, so the whole timeline is one transform. */+export const K = 90;+/** The playhead's x, as a fraction of the stage. */+export const PLAYHEAD = 0.38;++/** The lane plan, in px from the top of the rail. */+export const LANES = {+ label: 20,+ tick: 22,+ annotation: 40,+ speed: 66,+ cut: 92,+ zoom: 118,+ laneH: 22,+ hint: 142,+ track: 154,+ trackH: 54,+} as const;++export const FLOOR_H = 210;++/** The two clips on the track. */+export const CLIPS = [+ { from: -9, to: 13.1, selected: true },+ { from: 13.5, to: 42, selected: false },+] as const;++/** Three zooms, each with the scene time the wizard places it. */+export const ZOOMS = [+ { from: 12.6, to: 13.7, label: "1.5×", scale: 1.5, placedAt: 16.15, origin: "52% 58%" },+ { from: 16.25, to: 17.15, label: "1.80×", scale: 1.8, placedAt: 16.35, origin: "52% 58%" },+ { from: 17.6, to: 18.45, label: "2×", scale: 2, placedAt: 16.55, origin: "36% 30%" },+] as const;++/** The speed ramp, and the window over which the footage clock runs 2.2x. */+export const SPEED = { from: 18.6, to: 20.6, placedAt: 18.25, rate: 2.2, label: "2.2×" } as const;++/** Where each trim lands. Close enough to the playhead to be on screen at the+ * moment its own word is struck — a cut that appears off screen is a cut the+ * reader has to take on trust. */+const CUT_POS = [16.4, 17.3, 22.35, 23.15, 23.9];+/** The zoom window trims are pushed clear of, so nothing overlaps. */+const ZOOM_GUARD = { from: 20.9, to: 21.9 };++export type Placed = { label: string; from: number; to: number; placed: boolean };++/** The trim lane, resolved: sorted, spaced, and kept out from under the zoom. */+export function trims(t: number): Placed[] {+ const raw = CUT_INDEX.map((tokenIndex, k) => ({+ label: TOKENS[tokenIndex].label ?? "",+ at: CUT_POS[k] ?? 25.7,+ dur: TOKENS[tokenIndex].cut ?? 0.5,+ placed: t >= strikeOf(tokenIndex),+ })).sort((a, b) => a.at - b.at);++ const out: Placed[] = [];+ let lastEnd = Number.NEGATIVE_INFINITY;+ for (const c of raw) {+ let from = Math.max(c.at, lastEnd + 0.25);+ let to = from + c.dur;+ if (to > ZOOM_GUARD.from - 0.35 && from < ZOOM_GUARD.to + 0.35) {+ from = Math.max(ZOOM_GUARD.to + 0.4, lastEnd + 0.25);+ to = from + c.dur;+ }+ lastEnd = to;+ out.push({ label: c.label, from, to, placed: c.placed });+ }+ return out;}-/* ── the pointers ─────────────────────────────────────────────────────────- *- * There are two, because the app has two, and only one of them is scored here.- *- * The reader's pointer — the one clicking swatches and dragging sliders — has- * no coordinates at all. It is a child of the control it is operating, so the- * same CSS that places a knob places the hand on it, at every viewport width,- * with nothing to keep in sync. An earlier cut animated it along a path in- * percentages of the stage and had to be re-tuned every time a panel moved,- * which is a whole class of "nearly on the control" bug that simply cannot- * happen now. All the score decides is *which* control has the hand, and that- * is the beat.+/* ── the footage ──────────────────────────────────────────────────────────── */++/**+ * The footage clock.*- * The recorded pointer — the one inside the recording, drawn from the captured- * telemetry, which is what the Cursor panel is actually restyling — does have a- * path, because there is nothing in the DOM for it to be attached to.+ * It is not the scene clock. While the playhead crosses the speed region the+ * recording runs at 2.2x, and after it the footage is permanently 2.4s ahead —+ * which is exactly what a speed ramp does to everything downstream of it, and+ * the reason the transport's remaining time is not the scene time.+ */+export const footageTime = (t: number) =>+ t < SPEED.from+ ? t+ : t < SPEED.to+ ? SPEED.from + (t - SPEED.from) * SPEED.rate+ : t + (SPEED.to - SPEED.from) * (SPEED.rate - 1);++/** Clicks in the recording, for the recorded pointer's bounce. */+const FOOTAGE_CLICKS = [8.2, 11.6, 15.1, 16.5, 17.9, 21.9, 23.8];+/** Clicks the reader makes on the editor, for the demonstration pointer's. */+const UI_CLICKS = [2.0, 3.95, 5.8, 7.95, 11.45, 12.55, 12.7, 16.08, 18.25, 20.05, 21.25, 22.3];++/**+ * Click bounce, at parity with the renderer's own `cursor.rs`: the press is a+ * half-sine down to 50% over the first 38% of the window, and the release a+ * sine back up through 132%. Without it a pointer that never flinches reads as+ * a sprite being dragged rather than something clicking.*/+function bounce(t: number, win: number, clicks: number[]): number {+ let last = -1;+ for (const c of clicks) {+ if (c <= t) last = c;+ else break;+ }+ if (last < 0) return 1;+ const e = (t - last) / win;+ if (e >= 1) return 1;+ return e < 0.38+ ? 1 - Math.sin((e / 0.38) * Math.PI) * 0.5+ : 1 + Math.sin(((e - 0.38) / 0.62) * Math.PI) * 0.32;+}-/** The recorded pointer, over the page being recorded. Percent of the screen- * inside the frame. */+/** The recorded pointer's path and the recorded page's scroll, both on the+ * footage clock. Percentages of the frame, so neither has a pixel baked in. */const SHOT_PATH: number[][] = [- [0, 34, 58],- [3, 46, 40],- [5.5, 45, 45],- [8, 58, 50],- [10.5, 60, 52],- [15.2, 60, 52],- [18, 52, 68],- [22, 44, 60],- [26.5, 40, 44],+ [0.8, 38, 60],+ [3.5, 52, 55],+ [6.4, 46, 50],+ [7.4, 34.5, 49],+ [8.9, 34.5, 49],+ [10.5, 52, 58],+ [11.2, 46, 64],+ [12.3, 46, 64],+ [13.8, 50, 60],+ [14.6, 44, 62],+ [15.5, 44, 62],+ [15.9, 50, 61.5],+ [16.9, 50, 61.5],+ [17.4, 34.8, 27.6],+ [18.3, 34.8, 27.6],+ [19.2, 35, 68],+ [20.2, 58, 58],+ [21.3, 34.5, 49],+ [22.1, 34.5, 49],+ [23.0, 52, 44],+ [23.6, 20, 49],+ [24.1, 20, 49],+ [25.2, 46, 54],+ [26.8, 56, 48],+ [28.4, 48, 56],];-/** How far the recorded page has been scrolled, as a percentage of its own- * height. The image is the whole page; this is the window onto it. */const PAGE_PATH: number[][] = [[0, 0],[5.5, 0],- [9.5, -18],- [13.8, -18],- [17, -34],- [21, -34],- [26.5, -46],+ [6.6, -6],+ [8.4, -6],+ [9.6, -26],+ [12.8, -26],+ [13.6, -40],+ [18.8, -40],+ [20.3, -62],+ [21.3, -62],+ [22.6, -30],+ [24.6, -8],];/* ── interpolation ────────────────────────────────────────────────────────── */-/** Piecewise-linear read of `[[t, ...values]]` at `t`, clamped at both ends. */function kf(t: number, points: readonly number[][]): number[] {if (t <= points[0][0]) return points[0].slice(1);for (let i = 1; i < points.length; i++) {@@ -160,175 +299,143 @@ function kf(t: number, points: readonly number[][]): number[] {const clamp01 = (v: number) => (v < 0 ? 0 : v > 1 ? 1 : v);-/** Smoothstep. Used only where a value is *held* at both ends — a ramp that- * starts and stops is the one place linear reads as mechanical. */-const ease = (v: number) => {- const k = clamp01(v);- return k * k * (3 - 2 * k);-};+/* ── sub-beat moments ─────────────────────────────────────────────────────── */++/** The three background picks, and the two cursor picks. */+const BG_PICKS = [2.0, 3.95, 5.8];+const CURSOR_PICKS = [11.45, 12.55];+/** Which pack each pick selects, as an index into `CURSORS.themes`. */+const CURSOR_CHOICE = [0, 2, 1];++export const WALLPAPER_COUNT_SHOWN = 12;/* ── the frame ────────────────────────────────────────────────────────────── */export interface Frame {- /** Scene seconds. */t: number;- /** Which beat's caption and panel are up, or null between beats. */beat: BeatId | null;- /** 0 in act one, 1 once the timeline has taken its place. */+ /** 0 before the floor arrives, 1 after. */tl: number;- /** Document seconds under the playhead. 0 for the whole of act one. */- doc: number;- /** Wallpaper cross-fade, 0 = the document's own, 1 = the one just picked. */+ /** The footage clock, which the speed ramp pushes ahead of `t`. */+ tf: number;+ /** Which wallpaper is selected, 0-3. */bg: number;- /** `paddingFit`, by the app's formula. Multiplies the whole content block. */+ /** `paddingFit`, by the app's formula, and what the slider reads. */fit: number;- /** What the Padding slider reads, and where its knob sits on its own track.- * The two differ for Size and not for Padding, which is exactly the trap:- * Size runs 5–100, so value and track percentage are never the same number. */padding: number;paddingPct: number;- /** Cursor size, as the Cursor panel's own number — `cursor.size * 10`. */+ /** Uniform scale on the recorded window — v4 scales the frame rather than+ * insetting it, so the page's internal layout never reflows. */+ frameScale: number;cursorSize: number;cursorSizePct: number;- /** 1 once the pointer has picked the second cursor style. */- cursorSel: number;- /** Composite magnification, and where it magnifies from. */+ /** The size drag as 0-1, which is what the recorded cursor scales on. */+ cursorSizeU: number;+ /** Index into `CURSORS.themes` of the selected pack. */+ cursorTheme: number;zoom: number;- zoomX: number;- zoomY: number;- /** The zoom pill currently under the playhead, if any — the badge quotes it. */- zoomLabel: string | null;- /** The recorded pointer, in percent of the screen inside the frame. */+ zoomOrigin: string;+ zoomLabel: string;+ zoomActive: number;shot: [number, number];+ shotBounce: number;+ uiBounce: number;pageY: number;- /** Index into `WORDS` of the cue — the entry under the playhead. -1 before- * the transcript opens. */- cue: number;- /** How many of the document's pills have been placed, by lane. */+ /** How many of the three zooms the wizard has placed, and whether the speed+ * region is down. */zoomsPlaced: number;- trimsPlaced: number;- notePlaced: number;- /** Tool-palette state. */- paletteIn: number;- wandOn: number;- noteOn: number;- /** Panel presence. */- panelIn: number;+ speedPlaced: number;+ trims: Placed[];+ /** Index of the entry the pointer is striking, or -1. */+ strikeIndex: number;+ panel: number;+ palette: number;+ wand: number;+ comment: number;+ /** Transport readouts. */+ cutCount: number;+ saved: number;}-/** Where act two's annotation lands. Not in the document — the project holds no- * annotation regions, which is why its lane still shows the "Press A" hint —- * so it is placed at the playhead, which is what pressing A does. */-export const NOTE_AT = 19.6;-export const NOTE_LEN = 2.4;--const ZOOMS = PILLS.filter((p) => p.lane === "zoom");-const TRIMS = PILLS.filter((p) => p.lane === "trim");--/** The entries the document's own trims remove — two of its three silences.- * The driver resolves these to elements once, so striking them costs nothing- * per frame and the other 104 nodes are never touched. */-export const WORDS_REMOVABLE = WORDS.filter((w) => !w.kept);--/** The scene at scroll position `p` (0–1 through the band). */export function frameAt(p: number): Frame {const t = clamp01(p) * T_TOTAL;+ const tf = footageTime(t);const beat = BEATS.find((b) => t >= b.from && t < b.to)?.id ?? null;- const q = (id: BeatId) => {- const b = BEATS.find((x) => x.id === id)!;- return clamp01((t - b.from) / (b.to - b.from));- };-- const tl = ease((t - TL_IN) / 0.9);- const doc = clamp01((t - RIDE_FROM) / (RIDE_TO - RIDE_FROM)) * DOC_END;+ const tl = t >= TL_IN ? 1 : 0;- /* Background — the swatch lights up and the picture behind the window- changes on the same frame, because in the app they are one event. */- const bg = t >= T_BG_CLICK ? 1 : 0;+ const bg = BG_PICKS.reduce((n, at) => (t >= at ? n + 1 : n), 0);- /* Padding — a drag, so it rises and comes back rather than landing on a- number. The composite follows PreviewCanvas's own arithmetic. */- const dragged = clamp01((q("padding") - 0.32) / 0.48);- const triangle = beat === "padding" ? (dragged < 0.5 ? dragged * 2 : (1 - dragged) * 2) : 0;- const padding = STAGE.padding + triangle * 40;+ // Padding starts wide — the backgrounds have to be visible for the beat that+ // is about them — and comes down once, slowly, during the Effects beat.+ const padU = 1 - clamp01((t - 7.95) / 1.05);+ const padding = Math.round(30 + padU * 55);const fit = Math.min(1,- Math.max(- EFFECTS.paddingFitMin,- 1 - (Math.min(100, Math.max(0, padding)) / 100) * EFFECTS.paddingFitFactor,- ),+ Math.max(EFFECTS.paddingFitMin, 1 - (padding / 100) * EFFECTS.paddingFitFactor),);- /* Cursor — the style is picked, then the size is dragged up and left there,- which is why this one does not come back down. */- const cursorSel = t >= T_CUR_CLICK ? 1 : 0;- const sizeU = t < BEATS[2].from ? 0 : t >= BEATS[2].to ? 1 : ease((q("cursor") - 0.55) / 0.3);- const cursorSize = CONTROLS.cursorSize.value + sizeU * 23;-- /* Zoom — driven by the document, not by the beat. The composite magnifies- while a zoom region is under the playhead and at that region's own scale,- so the picture cannot disagree with the pill that caused it. */- const active = tl > 0.5 ? ZOOMS.find((z) => doc >= z.startSec && doc <= z.endSec) : undefined;- const placedZooms = ZOOMS.filter((_, i) => t >= T_WAND_CLICK + 0.35 + i * 0.28).length;- const live = active && placedZooms > 0 ? active : undefined;- const zoomEdge = live- ? Math.min(ease((doc - live.startSec) / 0.5), ease((live.endSec - doc) / 0.5))- : 0;- const scale = live ? Number(live.label.replace("×", "")) : 1;- const zoom = 1 + (scale - 1) * zoomEdge;-- /* Transcript — the cue is the entry the playhead is inside, which is what- the app highlights. Nothing sweeps on its own schedule. */- const transcriptOpen = t >= BEATS[5].from;- const cue = transcriptOpen ? WORDS.findIndex((w) => doc >= w.startSec && doc < w.endSec) : -1;- // A trim lands when the playhead *reaches* the span it removes, which is the- // same test the driver strikes the silence with — the pill and the- // strike-through are one event rather than two that nearly agree.- //- // Reaches, not clears. This document's second trim runs 35.12–40.033, and- // 40.033 is the end of the document: waiting for the playhead to clear it- // puts the whole payoff of the beat — a silence struck, a cut appearing under- // the playhead — on the last frame of the last scroll, where nobody sees it.- const trimsPlaced = transcriptOpen ? TRIMS.filter((x) => doc >= x.startSec).length : 0;-- const [shotX, shotY] = kf(t, SHOT_PATH);- const [pageY] = kf(t, PAGE_PATH);-- const paletteIn = beat === "autozoom" || beat === "annotation" ? 1 : 0;+ const sizeU = clamp01((t - 12.7) / 0.5);+ const cursorSize = 40 + sizeU * 23.2;++ const cursorTheme = CURSOR_CHOICE[CURSOR_PICKS.reduce((n, at) => (t >= at ? n + 1 : n), 0)] ?? 0;++ const live = ZOOMS.slice(1).find((z) => t >= z.from && t <= z.to);+ const zoomsPlaced = ZOOMS.filter((z) => t >= z.placedAt).length;++ const [shotX, shotY] = kf(tf, SHOT_PATH);+ const [pageY] = kf(tf, PAGE_PATH);++ const placedTrims = trims(t);+ const cutCount = placedTrims.filter((c) => c.placed).length;+ const saved = CUT_INDEX.reduce(+ (sum, i) => sum + (t >= strikeOf(i) ? (TOKENS[i].cut ?? 0) : 0),+ 0,+ );++ const strikeIndex = CUT_INDEX.find((i) => t >= strikeOf(i) - 0.5 && t < strikeOf(i) + 0.35) ?? -1;++ const panelOn = t >= 0.35 && !(t >= PANEL_OFF[0] && t < PANEL_OFF[1]);+ const paletteOn = t >= 14.75 && t < 19.45;return {t,beat,tl,- doc,+ tf,bg,fit,padding,paddingPct:((padding - CONTROLS.padding.min) / (CONTROLS.padding.max - CONTROLS.padding.min)) * 100,+ frameScale: 1 - padU * 0.36,cursorSize,+ cursorSizeU: sizeU,cursorSizePct:((cursorSize - CONTROLS.cursorSize.min) /(CONTROLS.cursorSize.max - CONTROLS.cursorSize.min)) *100,- cursorSel,- zoom,- zoomX: 60,- zoomY: 52,- zoomLabel: live && zoomEdge > 0.02 ? live.label : null,+ cursorTheme,+ zoom: live ? live.scale : 1,+ zoomOrigin: live ? live.origin : "52% 58%",+ zoomLabel: live ? live.label : ZOOMS[1].label,+ zoomActive: live ? 1 : 0,shot: [shotX, shotY],+ shotBounce: bounce(tf, 0.32, FOOTAGE_CLICKS),+ uiBounce: bounce(t, 0.42, UI_CLICKS),pageY,- cue,- zoomsPlaced: placedZooms,- trimsPlaced,- notePlaced: t >= T_NOTE_CLICK + 0.3 ? 1 : 0,- paletteIn,- wandOn: beat === "autozoom" && t >= T_WAND_CLICK ? 1 : 0,- noteOn: beat === "annotation" && t >= T_NOTE_CLICK ? 1 : 0,- panelIn:- beat === "background" || beat === "padding" || beat === "cursor" || beat === "transcript"- ? 1- : 0,+ zoomsPlaced,+ speedPlaced: t >= SPEED.placedAt ? 1 : 0,+ trims: placedTrims,+ strikeIndex,+ panel: panelOn ? 1 : 0,+ palette: paletteOn ? 1 : 0,+ wand: t >= 15.0 && t < 17.0 && t >= 15.0 + (17.0 - 15.0) * 0.54 ? 1 : 0,+ comment: t >= 17.3 && t < 19.2 && t >= 17.3 + (19.2 - 17.3) * 0.5 ? 1 : 0,+ cutCount,+ saved,};}++/** The pack the recorded pointer is currently drawn with. */+export const shotCursorSrc = (f: Frame) => CURSORS.themes[f.cursorTheme].src;diff --git a/website/src/components/Recreation/styles.module.css b/website/src/components/Recreation/styles.module.cssindex 3785a339b..ad0b104de 100644--- a/website/src/components/Recreation/styles.module.css+++ b/website/src/components/Recreation/styles.module.css@@ -1,456 +1,273 @@/**- * The editor, recreated — tokens, the two-act staging, and everything the- * driver's variables land on.+ * The editor, recreated — tokens, v4's grid, and everything the driver's+ * variables land on.*- * ── ONE CLOCK ────────────────────────────────────────────────────────────────- *- * There is no scroll-timeline in this file and no `@keyframes` driving state.- * `driver.ts` turns scroll position into about twenty custom properties on- * `.stage`, and every rule below is a plain declaration reading one of them.- * That is the whole animation system. It means a value can be checked by- * reading one number off the element in devtools, and it means the resting- * state — what a reader with no JavaScript gets — is just the fallback in each- * `var()`, spelled out once in `.stage` below.- *- * ── HOW IT DEGRADES ──────────────────────────────────────────────────────────- *- * The variables' fallbacks ARE the closing state: timeline in, transcript open,- * every pill placed, no magnification. So a reader with JavaScript off, or with- * a reduced-motion preference (the driver declines to attach), gets a still,- * complete, correct editor rather than something stranded at opacity 0. The- * usual bug in this pattern cannot be written here, because there is no- * keyframe whose `from` half could leak.+ * ── THE GRID ─────────────────────────────────────────────────────────────────*- * Below 901px the editor is not drawn at all — a three-column editor cannot- * reflow to 320 CSS px without two-dimensional scrolling (SC 1.4.10), and- * scaled instead its 11px mono lands at ~2.9 effective px. The six claims stay:- * they stop being a pinned overlay and become an ordinary stacked list, which- * is why `.captions` is real flow content and not a decorative layer.+ * v4 computes its layout in JavaScript from a measured stage. The same+ * arithmetic is done here in `calc`, which removes the measurement, the resize+ * handler and the re-render that came with it: a nav band, a 336px inspector, a+ * 116px caption block, and the composite contained in what is left, centred in+ * the space between the nav and the floor. The panel's height is locked to the+ * composite's, which is the alignment the design is built on.*- * ── TWO THINGS THAT ARE NOT HERE, ON PURPOSE ─────────────────────────────────+ * Lengths here are `vw`/`vh`/px and never `%`. That is not style: a custom+ * property is substituted as text, so a `%` inside `--video-w` would resolve+ * against the *height* when that variable is used in a height context, and the+ * composite would silently mis-size on one axis only. `vw` overstates the stage+ * by the scrollbar on classic-scrollbar platforms, which is safe because the+ * stage clips — it cannot produce a horizontal scrollbar the way a `100vw`+ * child of the document would.*- * No `100vw`, anywhere. html and body compute `overflow-x: visible` with- * `scrollbar-gutter: auto`, so a `100vw` element tests clean on macOS overlay- * scrollbars and ships a ~15px horizontal scrollbar to every classic-scrollbar- * platform.+ * ── ONE CLOCK ────────────────────────────────────────────────────────────────*- * No `backdrop-filter` on anything inside the stage. It is the one effect- * measured to break the budget on the previous cut — 2.2–3.0x the main-thread- * work of a whole sweep, a 166 ms worst frame. The panel's glass and the- * badge's are flat fills at high alpha. `box-shadow` and blurred decorative- * glows measured free and are kept.+ * No scroll-timeline and no state-driving `@keyframes`. `driver.ts` turns+ * scroll position into custom properties on `.stage` and every rule below reads+ * one. The `var()` fallbacks spelled out on `.stage` ARE the resting state — the+ * closing frame — so a reader with no JavaScript, or a reduced-motion+ * preference, gets a still, complete editor rather than something stranded at+ * opacity 0.*//* ═══ TOKENS ═══════════════════════════════════════════════════════════════- The app's dark values, scoped to the recreation and prefixed `--ost-`. They- deliberately do NOT alias the site's `--os-*` and do NOT follow the site's- light/dark toggle: of 22 tokens checked, all twelve neutrals differ, and- `--playhead` has no `--os-*` counterpart at all — which is how an unaudited- alias sheet ships the playhead in mint. The site's light `--os-accent` is- #0a7d57, darkened for AA; a light-following recreation would put a different- green in the pills from the photograph beside them.-- ONE declared divergence from the app: `--ost-meta` is #8b95a3 (the app's- `--muted`), not the app's `--meta` #5b6470. Against `--surface-1` #14181f- those measure 2.97:1 and 5.87:1. It affects exactly two classes of text —- the three empty-lane hints and the ruler labels. SC 1.4.3's Incidental- exemption covers text inside a JPEG and does not cover real DOM. */+ The app's dark values, prefixed `--ost-`. They deliberately do NOT alias the+ site's `--os-*` and do not follow its light/dark toggle: of 22 tokens+ checked, all twelve neutrals differ and `--playhead` has no `--os-*`+ counterpart at all, which is how an unaudited alias sheet ships the playhead+ in mint.++ ONE declared divergence: `--ost-meta` is #8b95a3 (the app's `--muted`), not+ its `--meta` #5b6470. Against `--surface-1` those measure 5.87:1 and 2.97:1,+ and the ruler's labels are real DOM, which SC 1.4.3's Incidental exemption+ does not cover. */.band {--ost-bg: #0a0d12;--ost-surface: #14181f;- --ost-surface-1: #14181f;--ost-surface-2: #1c2029;- --ost-surface-3: #252a35;- --ost-surface-hi: #2b313b;---ost-border: #252a35;--ost-border-soft: #1c2029;--ost-border-hi: #3a4150;---ost-fg: #e6e9ef;--ost-fg-2: #f3f5f8;--ost-muted: #8b95a3;- /* The one divergence. See the block above. */--ost-meta: #8b95a3;-+ --ost-faint: #6b7480;--ost-accent: #10b981;--ost-accent-soft: rgba(16, 185, 129, 0.14);- --ost-accent-border: rgba(16, 185, 129, 0.26);--ost-accent-ring: rgba(16, 185, 129, 0.32);---ost-danger: #f87171;--ost-danger-soft: rgba(248, 113, 113, 0.14);-- --ost-note: #fbbf24;- --ost-note-soft: rgba(217, 119, 6, 0.16);- --ost-note-border: #d97706;-+ --ost-speed: #fbbf24;+ --ost-speed-soft: rgba(245, 158, 11, 0.13);+ --ost-speed-border: #b45309;--ost-playhead: #6c55ff;--ost-playhead-glow: rgba(108, 85, 255, 0.68);-- --ost-elev-pop: 0 8px 24px -8px rgba(0, 0, 0, 0.6);- --ost-elev-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px -4px rgba(0, 0, 0, 0.5);-- /* The app's own declaration. No `@font-face` ships with this component — the- site has none — so on a machine without Geist Mono the fallback carries- the digits. */+ --ost-elev-pop: 0 24px 70px -28px rgba(0, 0, 0, 0.75);--ost-font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;-- /* Pixels per document second. Every object on the floor is placed with it- and the strip is translated by it, so the whole timeline is one transform- per frame rather than four hundred repositioned nodes. */- --k: 48;-- /* The floor's vertical plan, in one place — the beds overlay and the lanes- inside the scrolling strip have to agree, and they are not siblings. */- --tl-h: 232px;- --lane-h: 18px;--ease: cubic-bezier(0.2, 0, 0, 1);+ /* Pixels per second of footage — the rail's only scale. */+ --k: 90;+ /* v4's grid constants. */+ --nav: 72px;+ --pnl-w: 336px;+ --cap-h: 116px;+ --tl-h: 210px;+position: relative;color: var(--ost-fg);}-/* ═══ THE BAND ═════════════════════════════════════════════════════════════ */--/* One viewport per beat, near enough, plus the one the sticky stage occupies.- Nothing reads this number: the driver divides by whatever the band's measured- travel turns out to be, so changing it re-paces the whole scene and breaks+/* ═══ THE BAND ═════════════════════════════════════════════════════════════+ Nine viewports. The ride is paced against whatever this turns out to be, plus+ one more viewport of overflow, so changing it re-paces the scene and breaksnothing. */.band {- height: 620vh;+ height: 900vh;}.stage {- /* THE RESTING STATE. Every one of these is what the reader sees when no- driver ever runs — reduced motion, no JavaScript, a failed bundle. It is- the closing frame on purpose: the edit finished, not about to start. */- --t: 26.5;+ /* THE RESTING STATE — the closing frame, not a half-built one. */+ --t: 26;+ --tf: 28.4;--tl: 1;- --doc: 0;- --bg: 1;- --fit: 0.78;+ --bg: 3;+ --fit: 0.88;+ --pad-pct: 30;+ --frame-scale: 1;+ --size-pct: 66;+ --cur-size: 63.2;+ --size-u: 1;--zoom: 1;- --zoom-x: 60;- --zoom-y: 52;- --pad-pct: 55;- --size-pct: 42;- --cur-size: 45;- --cur-sel: 1;- --shot-x: 44;- --shot-y: 52;- --page-y: -34;+ --zoom-origin: 52% 58%;+ --zoom-active: 0;+ --shot-x: 48;+ --shot-y: 56;+ --shot-bounce: 1;+ --shot-cursor: url("/img/cursors/01-arrow.png");+ --shot-hx: 4.69;+ --shot-hy: 4.69;+ --page-y: -8;+ --ui-x: 20;+ --ui-y: 45;+ --ui-bounce: 1;+ --ui-on: 0;+ --ui-cursor: url("/img/cursors/00-arrow.png");+ --ui-hx: 11.9;+ --ui-hy: 8.74;+ --zooms-placed: 3;+ --speed-placed: 1;+ --panel: 1;--palette: 0;--wand: 0;- --note-on: 0;- --panel: 1;- --zooms-placed: 3;- --trims-placed: 2;- --note-placed: 1;- --flow-y: 0;+ --comment: 0;+ --cam-scale: 1.2;+ --cam-tx: 0;+ --cam-ty: 0;+ --cam-rot: 0;+ --trim-0: 1;+ --trim-1: 1;+ --trim-2: 1;+ --trim-3: 1;+ --trim-4: 1;++ /* ── the grid, once ── */+ --c2x: calc(4.5vw + var(--pnl-w) + 26px);+ --c2w: calc(96vw - var(--c2x));++ --vw1: min(var(--c2w), (100vh - var(--nav) - 24px - var(--cap-h)) * 1.77778);+ --vh1: calc(var(--vw1) * 0.5625);+ --cap-top1: calc(var(--nav) + (100vh - var(--nav) - 24px - var(--cap-h) - var(--vh1)) / 2);+ --cell-top1: calc(var(--cap-top1) + var(--cap-h));+ --vl1: calc(var(--c2x) + (var(--c2w) - var(--vw1)) / 2);++ --cell-topv: calc(var(--nav) + 12px);+ --avail2: calc(100vh - var(--tl-h) - 12px - var(--cell-topv));+ --vw2: max(280px, min(var(--c2w), var(--avail2) * 1.77778));+ --vh2: calc(var(--vw2) * 0.5625);+ --cell-top2: calc(var(--cell-topv) + var(--cap-h));+ --pnl-h2: calc(var(--avail2) - var(--cap-h));+ --vl2: calc(var(--c2x) + (var(--c2w) - var(--vw2)) / 2);+ --vt2: calc(var(--cell-topv) + (var(--avail2) - var(--vh2)) / 2);++ /* ── the two phases, interpolated on --tl ── */+ --cap-top: calc(var(--cap-top1) + (var(--cell-topv) - var(--cap-top1)) * var(--tl));+ --pnl-top: calc(var(--cell-top1) + (var(--cell-top2) - var(--cell-top1)) * var(--tl));+ --pnl-h: calc(var(--vh1) + (var(--pnl-h2) - var(--vh1)) * var(--tl));+ --v-l: calc(var(--vl1) + (var(--vl2) - var(--vl1)) * var(--tl));+ --v-t: calc(var(--cell-top1) + (var(--vt2) - var(--cell-top1)) * var(--tl));+ --v-w: calc(var(--vw1) + (var(--vw2) - var(--vw1)) * var(--tl));position: sticky;top: 0;height: 100vh;overflow: hidden;font-family: var(--ifm-font-family-base);- /* Its own containing block for every absolutely-placed part below, and its- own stacking context so the site's navbar keeps winning. */isolation: isolate;}-/* Everything drawn, in one box. The captions are its sibling, not a layer- inside it, which is what lets the two be separated in the fallbacks. */.scene {position: absolute;inset: 0;}-/* Below the gate the stage stops being a stage: the captions become an ordinary- stacked list and nothing is drawn. A three-column editor cannot reflow to- 320 CSS px without two-dimensional scrolling, and scaled instead its 11px- mono lands at ~2.9 effective px. */-@media (max-width: 900px) {- /* The band's height exists only to give the sticky stage something to scroll- through. With no stage there is nothing to pace, and 620vh of empty- section is six blank screens. */- .band {- height: auto;- }-- .stage {- position: static;- height: auto;- overflow: visible;- }-- .scene {- display: none;- }-- /* "The editor above is redrawn in your browser…" — there is no editor above- at this width. A caption for a picture that was not drawn is worse than no- caption. */- .figcaption {- display: none;- }-- /* Six claims in a column want to read as a list, not as six sections. The- pinned layout gives each one a whole viewport and can afford a 34px claim;- stacked, that size turns the fallback into a wall. */- .captions {- gap: 26px;- }-- .capClaim {- font-size: 21px;- letter-spacing: -0.015em;- }-- .capBody {- font-size: 13.5px;- }-- .capFact {- font-size: 11px;- }-}--@supports not (position: sticky) {- .band {- height: auto;- }-- .stage {- position: static;- height: auto;- overflow: visible;- }-- .captions {- position: static;- width: auto;- max-width: 60ch;- margin: 0 auto;- display: grid;- gap: 34px;- }-- .cap {- position: static;- opacity: 1;- transform: none;- }-- .scene {- display: none;- }-- .figcaption {- display: none;- }-}--/* Forced colors cannot carry any of the tokens above, and a recreation drawn in- Canvas/CanvasText is a diagram of an editor rather than a picture of one. The- photographs are unfalsifiable; let them show instead. */-@media (forced-colors: active) {- .scene {- display: none;- }-- .figcaption {- display: none;- }-}--/* Reduced motion keeps the picture and gives up the ride.- *- * The driver declines to attach, so every variable stays at the resting values- * declared on `.stage` — which are the closing frame, not a half-built one: the- * timeline in, the transcript open, both cuts made, every pill placed. What- * changes here is only where the words go. Pinned, the six captions share one- * box and take turns; unpinned, nobody is turning them, so they stack above the- * still editor and are all readable at once. Without this the reduced-motion- * reader got a correct picture and not one of the six claims.- */-@media (prefers-reduced-motion: reduce) {- .band {- height: auto;- }-- .stage {- position: static;- height: auto;- overflow: visible;- }-- .captions {- position: static;- width: auto;- max-width: 60ch;- margin: 0 auto 44px;- padding: 0 28px;- display: grid;- gap: 34px;- }-- .cap {- position: static;- opacity: 1;- transform: none;- transition: none;- }-- .scene {- position: relative;- height: 100vh;- }-}--/* ═══ THE CAPTIONS ═════════════════════════════════════════════════════════- Above the gate: six articles stacked in one place, one visible at a time.- Below it: six articles in ordinary flow, all visible, which is the whole- reason they are real headings and paragraphs. */+/* ═══ THE CAPTIONS ═════════════════════════════════════════════════════════ */.captions {position: absolute;- left: 5%;- top: 7vh;- /* A measure, not a fraction: the stage is the whole viewport now, and 38% of- a 2560px screen is a 970px line nobody can read. */- width: min(34%, 46ch);+ left: 4.5vw;+ top: var(--cap-top);+ width: calc(var(--pnl-w) - 8px);z-index: 11;pointer-events: none;+ transition: top 0.75s var(--ease);}-/* The captions all occupy the same box, so the outgoing one has to be gone- before the incoming one arrives — cross-fading two paragraphs on top of each- other at 50% each is unreadable for the whole overlap. Out fast, in on a- delay that clears it. */.cap {position: absolute;left: 0;top: 0;width: 100%;opacity: 0;- transform: translateY(10px);+ transform: translateY(8px);transition:opacity 0.2s var(--ease),transform 0.2s var(--ease);}-/* The one the driver named. `data-beat` and `data-cap` carry the same six- strings, from the same union in `scene.ts`. */-.stage[data-beat="background"] .cap[data-cap="background"],-.stage[data-beat="padding"] .cap[data-cap="padding"],+.stage[data-beat="style"] .cap[data-cap="style"],+.stage[data-beat="effects"] .cap[data-cap="effects"],.stage[data-beat="cursor"] .cap[data-cap="cursor"],-.stage[data-beat="autozoom"] .cap[data-cap="autozoom"],-.stage[data-beat="annotation"] .cap[data-cap="annotation"],+.stage[data-beat="timeline"] .cap[data-cap="timeline"],.stage[data-beat="transcript"] .cap[data-cap="transcript"] {opacity: 1;transform: none;transition:- opacity 0.42s var(--ease) 0.18s,- transform 0.42s var(--ease) 0.18s;+ opacity 0.4s var(--ease) 0.16s,+ transform 0.4s var(--ease) 0.16s;}.capKicker {margin: 0;font-family: var(--ost-font-mono);- font-size: 10.5px;+ font-size: 10px;font-weight: 600;letter-spacing: 0.14em;text-transform: uppercase;color: var(--ost-accent);}-.capClaim {- margin: 8px 0 0;- font-size: clamp(24px, 2.4vw, 34px);- font-weight: 700;- letter-spacing: -0.028em;- line-height: 1.08;+.capTitle {+ margin: 6px 0 0;+ font-size: clamp(19px, 1.6vw, 25px);+ font-weight: 750;+ letter-spacing: -0.025em;+ line-height: 1.1;color: var(--os-fg-emphasis);}-.capBody {- margin: 10px 0 0;- font-size: 14px;- line-height: 1.55;+.capSub {+ margin: 7px 0 0;+ max-width: 440px;+ font-size: 13.5px;+ line-height: 1.5;color: var(--os-fg-2);}-.capFact {- margin: 10px 0 0;- font-family: var(--ost-font-mono);- font-size: 11.5px;- color: var(--os-muted);-}--/* The stacked fallback. */-@media (max-width: 900px) {- .captions {- position: static;- width: auto;- max-width: 60ch;- margin: 0 auto;- padding: 8px 0 0;- display: grid;- gap: 34px;- }-- .cap {- position: static;- opacity: 1;- transform: none;- transition: none;- }-}-/* ═══ THE INSPECTOR ════════════════════════════════════════════════════════ */.panel {position: absolute;- left: 5%;- top: calc(7vh + 218px);- width: 304px;- /* In act one there is no floor, so the panel takes the height the timeline- would have had — which is the difference between showing four of the- eighteen wallpapers and showing most of them. */- max-height: calc(93vh - 218px - var(--tl) * var(--tl-h) - 24px);- z-index: 12;+ left: 4.5vw;+ top: var(--pnl-top);+ width: var(--pnl-w);+ height: var(--pnl-h);overflow: hidden;+ z-index: 12;border: 1px solid var(--ost-border);border-radius: 16px;- background: color-mix(in srgb, var(--ost-surface) 94%, transparent);+ background: color-mix(in srgb, var(--ost-surface) 92%, transparent);box-shadow: var(--ost-elev-pop), inset 0 1px 0 rgba(255, 255, 255, 0.06);- /* The Background pane holds all 18 swatches and is taller than the panel, as- it is in the app, where the pane scrolls. Cut with a hard edge it reads as- a rendering bug; faded, it reads as what it is — more below. */- -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent);- mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent);pointer-events: none;opacity: var(--panel);- transform: translateY(calc((1 - var(--panel)) * 14px));+ transform: translateY(calc((1 - var(--panel)) * 12px));transition:- opacity 0.4s var(--ease),- transform 0.4s var(--ease);+ opacity 0.45s var(--ease),+ transform 0.45s var(--ease),+ top 0.75s var(--ease),+ height 0.75s var(--ease);}.panelHead {- display: flex;+ display: grid;align-items: center;- gap: 8px;- padding: 12px 14px 10px;+ padding: 13px 15px 11px;border-bottom: 1px solid var(--ost-border-soft);}-/* Four titles in one slot: the header does not resize between panes, so the- swap is a cross-fade rather than a reflow. */.panelTitle {- grid-area: t;+ grid-area: 1 / 1;margin: 0;font-size: 14px;font-weight: 600;@@ -460,54 +277,35 @@transition: opacity 0.25s var(--ease);}-.panelHead {- display: grid;- grid-template-areas: "t g";- grid-template-columns: 1fr auto;- align-items: center;-}--.panelGlyphs {- grid-area: g;- display: inline-flex;- gap: 4px;- color: var(--ost-muted);-}--.panelGlyphs svg {- display: block;+.panelBody {+ padding: 13px 15px 15px;}-/* ═══ PANE SWITCHING ═══════════════════════════════════════════════════════- `data-pane` on the body and on the title carry the same beat names. One- selector list keeps the two in step; there is no third place to forget. */-.pane {display: none;- padding: 12px 14px 14px;}-.stage[data-beat="background"] .pane[data-pane="background"],-.stage[data-beat="padding"] .pane[data-pane="padding"],+.stage[data-beat="style"] .pane[data-pane="style"],+.stage[data-beat="effects"] .pane[data-pane="effects"],.stage[data-beat="cursor"] .pane[data-pane="cursor"],-.stage[data-beat="transcript"] .pane[data-pane="transcript"] {+.stage[data-beat="transcript"] .pane[data-pane="transcript"],+.stage:not([data-beat]) .pane[data-pane="transcript"] {display: block;}-.stage[data-beat="background"] .panelTitle[data-pane="background"],-.stage[data-beat="padding"] .panelTitle[data-pane="padding"],+.stage[data-beat="style"] .panelTitle[data-pane="style"],+.stage[data-beat="effects"] .panelTitle[data-pane="effects"],.stage[data-beat="cursor"] .panelTitle[data-pane="cursor"],-.stage[data-beat="transcript"] .panelTitle[data-pane="transcript"] {+.stage[data-beat="transcript"] .panelTitle[data-pane="transcript"],+.stage:not([data-beat]) .panelTitle[data-pane="transcript"] {opacity: 1;}-/* Resting state: no `data-beat` at all means no driver ran, and the panel shows- the transcript — the closing pane. */-.stage:not([data-beat]) .pane[data-pane="transcript"] {+/* The floor's two beats hand the column to the palette, so the panel keeps its+ last pane rather than emptying. */+.stage[data-beat="timeline"] .pane[data-pane="cursor"],+.stage[data-beat="timeline"] .panelTitle[data-pane="cursor"] {display: block;-}--.stage:not([data-beat]) .panelTitle[data-pane="transcript"] {opacity: 1;}@@ -517,7 +315,7 @@display: flex;gap: 4px;padding: 4px;- margin-bottom: 11px;+ margin-bottom: 12px;border-radius: 10px;background: color-mix(in srgb, var(--ost-surface-2) 60%, transparent);}@@ -560,8 +358,10 @@position: relative;aspect-ratio: 1;border-radius: 10px;- overflow: visible;box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);+ transition:+ box-shadow 0.25s var(--ease),+ transform 0.25s var(--ease);}.swatch img {@@ -572,23 +372,25 @@border-radius: 10px;}-/* The two the pointer moves between light their own ring off `--bg`; the other- sixteen have no ring at all and no rule that could give them one. */-.swatch[data-sel]::after {+/* Selection is a `data-bg` on the stage matched against the swatch's own index.+ An arithmetic version — opacity from `--i` against `--bg` — reads better and+ is a trap: postcss-calc cannot fold min()/max() over custom properties and+ drops the whole declaration, in the production build only. */+.swatch::after {content: "";position: absolute;inset: -3px;border-radius: 13px;border: 2px solid var(--ost-accent);- transition: opacity 0.3s var(--ease);-}--.swatch[data-sel="from"]::after {- opacity: calc(1 - var(--bg));+ opacity: 0;+ transition: opacity 0.25s var(--ease);}-.swatch[data-sel="to"]::after {- opacity: var(--bg);+.stage[data-bg="0"] .swatch[data-i="0"]::after,+.stage[data-bg="1"] .swatch[data-i="1"]::after,+.stage[data-bg="2"] .swatch[data-i="2"]::after,+.stage[data-bg="3"] .swatch[data-i="3"]::after {+ opacity: 1;}/* ── shared controls ── */@@ -596,7 +398,7 @@.control {display: block;margin-bottom: 9px;- padding: 10px 12px 13px;+ padding: 10px 13px 14px;border: 1px solid var(--ost-border);border-radius: 11px;background: color-mix(in srgb, var(--ost-surface-2) 40%, transparent);@@ -607,10 +409,9 @@align-items: center;justify-content: space-between;gap: 12px;- padding: 10px 12px;+ padding: 11px 13px;}-/* The two the reader actually moves. */.controlLive {border-color: var(--ost-accent);border-width: 1.5px;@@ -664,8 +465,6 @@box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);}-/* The live pair. Width and left read the same variable, so the fill can never- disagree with the knob. */.trackFillPad {width: calc(var(--pad-pct) * 1%);}@@ -693,11 +492,8 @@background: rgba(255, 255, 255, 0.14);}-.switchOn {- background: var(--ost-accent);-}--.switchKnob {+.switch::after {+ content: "";position: absolute;left: 2px;top: 2px;@@ -707,7 +503,11 @@background: #98a2b3;}-.switchOn .switchKnob {+.switchOn {+ background: var(--ost-accent);+}++.switchOn::after {left: auto;right: 2px;background: #fff;@@ -722,113 +522,58 @@margin: 8px 0 11px;}+/* The real packs, drawn from their own sprites. */.cursorStyle {position: relative;- display: grid;- place-items: center;aspect-ratio: 1;border-radius: 9px;- background: color-mix(in srgb, var(--ost-surface-2) 55%, transparent);+ background-color: color-mix(in srgb, var(--ost-surface-2) 55%, transparent);+ background-repeat: no-repeat;+ background-position: center;+ background-size: auto 56%;box-shadow: inset 0 0 0 1px var(--ost-border-soft);}-.cursorStyle svg {- display: block;- stroke: #0b0e13;- stroke-width: 1.4;-}--.cursorStyle[data-sel]::after {+.cursorStyle::after {content: "";position: absolute;inset: -2.5px;border-radius: 11px;border: 2px solid var(--ost-accent);- transition: opacity 0.3s var(--ease);-}--.cursorStyle[data-sel="from"]::after {- opacity: calc(1 - var(--cur-sel));+ opacity: 0;+ transition: opacity 0.25s var(--ease);}-.cursorStyle[data-sel="to"]::after {- opacity: var(--cur-sel);+.stage[data-cur-sel="0"] .cursorStyle[data-i="0"]::after,+.stage[data-cur-sel="1"] .cursorStyle[data-i="1"]::after,+.stage[data-cur-sel="2"] .cursorStyle[data-i="2"]::after {+ opacity: 1;}/* ── transcript pane ── */-.clipHead {- display: flex;- align-items: center;- gap: 10px;- padding-bottom: 8px;- border-bottom: 1px solid var(--ost-border-soft);-}--.clipBadge {- width: 22px;- height: 22px;- flex-shrink: 0;- display: inline-flex;- align-items: center;- justify-content: center;- border-radius: 6px;- background: var(--ost-accent-soft);- color: var(--ost-accent);- font-family: var(--ost-font-mono);- font-size: 12px;- font-weight: 700;-}--.clipName {- display: block;- font-size: 12.5px;- font-weight: 600;- line-height: 1.2;- color: var(--ost-fg);- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}--.clipRange {- display: block;- margin-top: 2px;- font-family: var(--ost-font-mono);- font-size: 10.5px;- line-height: 1.3;- color: var(--ost-muted);-}--/* A fixed window with the flow translated under it — a transform, which cannot- fight the page's own scrolling the way a scrollTop would. */.flowMask {display: block;position: relative;- height: 190px;- margin-top: 8px;+ max-height: calc(var(--pnl-h) - 120px);overflow: hidden;- -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 84%, transparent);- mask-image: linear-gradient(180deg, transparent, #000 12%, #000 84%, transparent);+ -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent);+ mask-image: linear-gradient(180deg, #000 88%, transparent);}.flow {margin: 0;font-size: 12.5px;- line-height: 1.95;+ line-height: 1.9;color: var(--ost-fg);- transform: translateY(calc(var(--flow-y) * 1px));- transition: transform 0.4s var(--ease);-}--.word {- border-bottom: 2px solid transparent;}-/* The entry under the playhead — the app underlines it, and so does this. */-.cue {- border-bottom-color: var(--ost-accent);- color: var(--os-fg-emphasis);+.word,+.sil {+ transition:+ color 0.2s var(--ease),+ border-color 0.25s var(--ease),+ background-color 0.25s var(--ease);}.sil {@@ -842,171 +587,98 @@font-size: 10.5px;line-height: 1.6;color: var(--ost-muted);- transition:- border-color 0.25s var(--ease),- background-color 0.25s var(--ease),- color 0.25s var(--ease);}-/* Removed by one of the document's two trims — struck when the playhead has- passed it, which is the moment the pill lands on the floor below. */.struck {- border-style: solid;- border-color: var(--ost-danger);- background: var(--ost-danger-soft);color: var(--ost-danger);font-weight: 600;text-decoration: line-through;+ opacity: 0.9;}-/* `silCut` marks the two the document removes — but only paints them struck- when no driver is running. With one, the whole point of the beat is that a- silence is intact until the playhead reaches it and the cut then lands on the- floor; painting both from the first frame gives that away and makes the- trim pills look like they arrive late. */-.stage:not([data-beat]) .silCut {+.sil.struck {border-style: solid;border-color: var(--ost-danger);background: var(--ost-danger-soft);- color: var(--ost-danger);- text-decoration: line-through;}-/* ═══ THE HAND ═════════════════════════════════════════════════════════════- A child of the control it operates, so it needs no coordinates: whatever CSS- places the knob places this. It shows only while its own beat is up, and only- once the pointer has "arrived". */--.hand {- position: absolute;- left: 58%;- top: 62%;- z-index: 14;- display: block;- opacity: 0;- transform: translate(4px, 6px) scale(0.9);- filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));- transition:- opacity 0.3s var(--ease),- transform 0.3s var(--ease);-}--.hand svg {- display: block;- stroke: #0b0e13;-}--.stage[data-beat="background"] .swatch[data-sel="to"] .hand,-.stage[data-beat="padding"] .knobPad .hand,-.stage[data-beat="cursor"] .cursorStyle[data-sel="to"] .hand,-.stage[data-beat="autozoom"] .toolWand .hand,-.stage[data-beat="annotation"] .toolNote .hand {- opacity: 1;- transform: none;-}--/* Once the size drag begins the hand moves from the style swatch to the knob.- Both live inside the Cursor pane, so this is one rule, not a handoff. */-.stage[data-beat="cursor"] .cursorStyle[data-sel="to"] .hand {- opacity: calc(1 - var(--cur-sel));-}--.stage[data-beat="cursor"] .knobSize .hand {- opacity: var(--cur-sel);- transform: none;+.cue {+ color: var(--os-fg-emphasis);}/* ═══ THE TOOL PALETTE ═════════════════════════════════════════════════════- Act two's two tools, in the slot the inspector just left. */+ Centred in the left column, between the caption and the floor. */.palette {position: absolute;- left: 5%;- top: calc(7vh + 218px);+ left: calc(4.5vw + var(--pnl-w) / 2);+ top: calc(50vh + (var(--cell-top2) - var(--tl-h)) / 2 - 22px);z-index: 12;- display: inline-flex;- align-items: center;+ display: grid;+ grid-template-columns: repeat(3, 66px);gap: 8px;padding: 9px;border: 1px solid var(--ost-border);border-radius: 22px;- background: color-mix(in srgb, var(--ost-surface) 94%, transparent);+ background: color-mix(in srgb, var(--ost-surface) 90%, transparent);box-shadow: var(--ost-elev-pop), inset 0 1px 0 rgba(255, 255, 255, 0.06);- pointer-events: none;+ transform: translate(-50%, calc(-50% + (1 - var(--palette)) * -16px));opacity: var(--palette);- transform: translateY(calc((1 - var(--palette)) * -14px));+ pointer-events: none;transition:- opacity 0.4s var(--ease),- transform 0.4s var(--ease);+ opacity 0.45s var(--ease),+ transform 0.45s var(--ease);}.tool {- position: relative;- width: 60px;- height: 60px;+ width: 66px;+ height: 66px;display: grid;place-items: center;- border-radius: 17px;color: var(--ost-muted);- transition:- background-color 0.25s var(--ease),- color 0.25s var(--ease),- box-shadow 0.25s var(--ease);+ border-radius: 17px;+ background: color-mix(in srgb, var(--ost-surface-2) 70%, transparent);+ transition: box-shadow 0.2s var(--ease);}.tool svg {display: block;}-/* Pressed is solid accent on both, resting is the same neutral on both. An- earlier cut gave the wand a soft-accent resting state and the note a- soft-accent pressed state, which made the two indistinguishable in the one- frame where it matters. */.toolWand {- background: color-mix(in srgb, var(--ost-accent) calc(var(--wand) * 100%), var(--ost-surface-2));- color: color-mix(in srgb, #04110b calc(var(--wand) * 100%), var(--ost-muted));box-shadow: 0 0 0 calc(var(--wand) * 3px) var(--ost-accent-ring);+ background: color-mix(in srgb, var(--ost-accent-soft) calc(var(--wand) * 100%), color-mix(in srgb, var(--ost-surface-2) 70%, transparent));}-.toolNote {- background: color-mix(in srgb, var(--ost-accent) calc(var(--note-on) * 100%), var(--ost-surface-2));- color: color-mix(in srgb, #04110b calc(var(--note-on) * 100%), var(--ost-muted));- box-shadow: 0 0 0 calc(var(--note-on) * 3px) var(--ost-accent-ring);+.toolComment {+ box-shadow: 0 0 0 calc(var(--comment) * 3px) var(--ost-accent-ring);+ background: color-mix(in srgb, var(--ost-accent-soft) calc(var(--comment) * 100%), color-mix(in srgb, var(--ost-surface-2) 70%, transparent));}-/* ═══ THE COMPOSITE ════════════════════════════════════════════════════════- Act one gives it the whole stage height; act two takes the timeline's share- back. Both numbers interpolate on `--tl`, so the move between acts is one- continuous change rather than a swap. */+/* ═══ THE COMPOSITE ════════════════════════════════════════════════════════ */.card {position: absolute;- right: 4.5%;- top: calc(50% - var(--tl) * (var(--tl-h) / 2));- /* Whichever runs out first — the width left beside the copy, or the height- left above the timeline. The second term is what keeps act two's composite- from growing under the floor when the window is short. */- width: min(calc(52% - var(--tl) * 5%), calc((100vh - 130px - var(--tl) * 200px) * 1.62));- min-width: 300px;+ left: var(--v-l);+ top: var(--v-t);+ width: var(--v-w);aspect-ratio: 16 / 9;- transform: translateY(-50%);border-radius: 16px;- /* A hairline and a seated shadow, not a halo. The green glow the first cut- had read as a selection state on something that is not selected. */box-shadow:- 0 0 0 1px rgba(255, 255, 255, 0.07),- 0 40px 80px -34px rgba(0, 0, 0, 0.85),- 0 8px 24px -12px rgba(0, 0, 0, 0.6);+ 0 0 0 1px rgba(16, 185, 129, 0.5),+ 0 0 44px -8px rgba(16, 185, 129, 0.3),+ 0 34px 70px -30px rgba(0, 0, 0, 0.65);z-index: 5;transition:- top 0.7s var(--ease),- width 0.7s var(--ease);+ top 0.75s var(--ease),+ left 0.75s var(--ease),+ width 0.75s var(--ease);}.cardClip {position: absolute;inset: 0;- border-radius: 16px;+ border-radius: 18px;overflow: hidden;background: #0d1014;}@@ -1014,56 +686,63 @@.zoomer {position: absolute;inset: 0;+ container-type: size;+ overflow: hidden;transform: scale(var(--zoom));- transform-origin: calc(var(--zoom-x) * 1%) calc(var(--zoom-y) * 1%);+ transform-origin: var(--zoom-origin);+ transition: transform 0.7s var(--ease);}-.bg,-.bgSwap {+/* Four wallpapers, cross-fading on `--bg`. Only the one whose index matches is+ opaque, so the picker's selection and the canvas cannot disagree. */+.bg {position: absolute;inset: 0;width: 100%;height: 100%;object-fit: cover;+ opacity: 0;+ transition: opacity 0.55s var(--ease);}-.bgSwap {- opacity: var(--bg);- transition: opacity 0.55s var(--ease);+/* The first one is the floor of the stack, so something is always painted while+ the others cross-fade over it. */+.bg[data-i="0"] {+ opacity: 1;+}++.stage[data-bg="1"] .bg[data-i="1"],+.stage[data-bg="2"] .bg[data-i="2"],+.stage[data-bg="3"] .bg[data-i="3"] {+ opacity: 1;}-/* The recorded window. `--fit` is `paddingFit` — the app's own- `clamp(1 - (padding/100) * 0.4, 0.4, 1)` — and it multiplies the whole block,- corners included, exactly as PreviewCanvas does. */+/* The recorded window. Scaled, not inset — the page inside must not reflow+ while the padding slider moves. */.frame {position: absolute;- left: 50%;- top: 50%;- width: calc(100% * var(--fit));- aspect-ratio: 16 / 9;- transform: translate(-50%, -50%);+ left: 11%;+ right: 11%;+ top: 8.5%;+ bottom: 8.5%;display: flex;flex-direction: column;overflow: hidden;+ border-radius: 1.1cqw;background: #fbfcfd;- /* `cqw` in here would resolve against the nearest ancestor container, which- is not this element — so the radius is plain px scaled by the same `--fit`- that scales the window, and only the children below use container units. */- border-radius: calc(var(--fit) * 14px);- container-type: size;- box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);- transition:- width 0.35s var(--ease),- border-radius 0.35s var(--ease);+ box-shadow: 0 4cqh 8cqh rgba(0, 0, 0, 0.5);+ transform: scale(var(--frame-scale));+ transform-origin: 50% 50%;+ font-family: var(--ifm-font-family-base);}.chrome {display: flex;align-items: center;- gap: 1.6cqw;+ gap: 1.2cqw;flex-shrink: 0;- height: 7.4cqh;- padding: 0 1.6cqw;+ height: 6.8cqh;+ padding: 0 1.4cqw;background: #f1f3f6;border-bottom: 1px solid #e3e7ec;}@@ -1077,10 +756,6 @@width: 1.1cqw;height: 1.1cqw;border-radius: 50%;- background: #d5dae1;-}--.lights span:first-child {background: #ff5f57;}@@ -1088,7 +763,7 @@background: #febc2e;}-.lights span:last-child {+.lights span:nth-child(3) {background: #28c840;}@@ -1096,9 +771,9 @@margin: 0 auto;display: inline-flex;align-items: center;- height: 4.6cqh;- padding: 0 3cqw;- border-radius: 0.9cqw;+ height: 4.4cqh;+ padding: 0 1.8cqw;+ border-radius: 0.8cqw;background: #fff;border: 1px solid #e3e7ec;color: #5f6b7a;@@ -1114,223 +789,393 @@.page {position: absolute;left: 0;+ right: 0;top: 0;- width: 100%;- height: auto;transform: translateY(calc(var(--page-y) * 1%));- transition: transform 0.35s var(--ease);+ will-change: transform;}-/* The pointer inside the recording, drawn from the captured telemetry — the one- the Cursor panel restyles. Its colour and its size are the two controls the- reader just moved. */-.shotCursor {- position: absolute;- left: calc(var(--shot-x) * 1%);- top: calc(var(--shot-y) * 1%);- z-index: 6;- /* A percentage of the frame, not `cqw`: postcss-calc cannot fold a container- unit multiplied by a custom property and drops the whole declaration on the- floor during minification — which is a bug that exists only in the- production build. Percentages it understands. */- width: calc(var(--cur-size) * 0.055%);- height: auto;- color: color-mix(in srgb, #f9a8d4 calc(var(--cur-sel) * 100%), #ffffff);- stroke: rgba(10, 14, 19, 0.65);- stroke-width: 1.3;- filter: drop-shadow(0 0.4cqh 0.6cqh rgba(0, 0, 0, 0.4));- transition:- left 0.3s var(--ease),- top 0.3s var(--ease),- width 0.35s var(--ease),- color 0.3s var(--ease);+.pageNav {+ display: flex;+ align-items: center;+ gap: 2cqw;+ padding: 2.2cqw 3cqw 1cqw;}-.zoomBadge {- position: absolute;- top: 12px;- right: 14px;- z-index: 7;+.pageMark {+ width: 1.5cqw;+ height: 1.5cqw;+ border-radius: 0.45cqw;+ background: #10b981;+}++.pageBrand {+ font-size: 1.5cqw;+ font-weight: 700;+ color: #101828;+}++.pageLinks {+ display: flex;+ gap: 1.8cqw;+ margin-left: 2cqw;+ font-size: 1.2cqw;+ color: #667085;+}++.pageSignIn {+ margin-left: auto;display: inline-flex;align-items: center;- gap: 5px;- padding: 4px 9px;- border-radius: 8px;- background: rgba(8, 10, 13, 0.72);- border: 1px solid rgba(16, 185, 129, 0.6);- color: #34d399;- font-family: var(--ost-font-mono);- font-size: 10px;+ height: 4.6cqh;+ padding: 0 1.6cqw;+ border-radius: 0.7cqw;+ background: #101828;+ color: #fff;+ font-size: 1.15cqw;font-weight: 600;- /* Present exactly while the picture is magnified, and by the same amount. */- opacity: clamp(0, calc((var(--zoom) - 1) * 6), 1);- transition: opacity 0.3s var(--ease);}-.zoomBadge svg {- display: block;+.pageHero {+ padding: 2.6cqw 3cqw 0;}-/* ═══ THE FLOOR ════════════════════════════════════════════════════════════ */+.pageHero h3 {+ margin: 0;+ font-size: 3.8cqw;+ font-weight: 750;+ letter-spacing: -0.025em;+ line-height: 1.08;+ color: #101828;+ max-width: 52cqw;+}-.timeline {- position: absolute;- left: 0;- right: 0;- bottom: 0;- height: var(--tl-h);- z-index: 8;- background: color-mix(in srgb, var(--ost-surface) 96%, transparent);- border-top: 1px solid var(--ost-border);- transform: translateY(calc((1 - var(--tl)) * (var(--tl-h) + 14px)));- transition: transform 0.7s var(--ease);+.pageHero p {+ margin: 1.4cqw 0 0;+ font-size: 1.5cqw;+ line-height: 1.5;+ color: #667085;+ max-width: 44cqw;}-.transport {+.pageBtns {display: flex;+ gap: 1.4cqw;+ margin-top: 2cqw;+}++.pageCta,+.pageGhost {+ display: inline-flex;align-items: center;- height: 36px;- padding: 0 16px;- border-bottom: 1px solid var(--ost-border-soft);+ height: 5.6cqh;+ padding: 0 2.2cqw;+ border-radius: 0.8cqw;+ font-size: 1.35cqw;}-.time {- font-family: var(--ost-font-mono);- font-size: 11.5px;- font-weight: 600;- color: var(--ost-fg);- font-variant-numeric: tabular-nums;+.pageCta {+ background: #10b981;+ color: #fff;+ font-weight: 650;}-.timeTotal {- color: var(--ost-muted);- font-weight: 500;+.pageGhost {+ border: 1px solid #e3e7ec;+ color: #344054;+ font-weight: 550;+ background: #fff;}-.floorClip {- position: absolute;- left: 0;- right: 0;- top: 36px;- bottom: 0;+.pageShot {+ position: relative;+ margin: 2.6cqw 3cqw 0;+ height: 30cqh;+ border-radius: 1cqw;overflow: hidden;- -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);- mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);+ background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 45%, #6ee7b7 100%);}-/* The beds belong to the viewport. */-.beds {+.pageShot img {position: absolute;- inset: 0;+ left: 10%;+ top: 14%;+ width: 80%;+ border-radius: 0.9cqw 0.9cqw 0 0;+ box-shadow: 0 2cqh 6cqh rgba(4, 60, 40, 0.28);+ border: 1px solid rgba(255, 255, 255, 0.6);}-.bed {+.pageChip {position: absolute;- left: 14px;- right: 14px;- height: var(--lane-h);- border-radius: 5px;- background: var(--ost-surface-2);- box-shadow: inset 0 0 0 1px var(--ost-border-soft);- display: flex;+ left: 13%;+ top: 20%;+ display: inline-flex;align-items: center;- padding: 0 8px;+ padding: 0.5cqw 1.1cqw;+ border-radius: 999px;+ background: #065f46;+ color: #fff;+ font-size: 1.05cqw;+ font-weight: 600;}-.bed[data-lane="annotation"] {- top: 26px;-}-.bed[data-lane="speed"] {- top: 46px;+.pageCards {+ display: flex;+ gap: 2cqw;+ padding: 2.4cqw 3cqw 3cqw;}-.bed[data-lane="trim"] {- top: 66px;++.pageCards span {+ flex: 1;+ height: 14cqh;+ border-radius: 1cqw;+ border: 1px solid #eceff3;+ background: linear-gradient(135deg, #f8fafc, #eef2f7);}-.bed[data-lane="zoom"] {- top: 86px;++/* The app the recording opens, half-way through the take. */+.appWin {+ position: absolute;+ left: 32%;+ top: 24%;+ width: 36%;+ height: 52%;+ z-index: 4;+ border-radius: 1cqw;+ background: #fbfcfd;+ box-shadow: 0 4cqh 10cqh rgba(8, 12, 18, 0.45), 0 0 0 1px rgba(15, 23, 42, 0.08);+ transform-origin: 26% 42%;+ /* Open between footage 15.25 and 17.95 — expressed as a window on --tf so it+ rides the speed ramp with everything else in the recording. */+ --open: clamp(0, (var(--tf) - 15.25) * 8, 1);+ --shut: clamp(0, (17.95 - var(--tf)) * 8, 1);+ --vis: min(var(--open), var(--shut));+ opacity: var(--vis);+ transform: scale(calc(0.82 + var(--vis) * 0.18));+ transition:+ opacity 0.25s var(--ease),+ transform 0.3s var(--ease);}-.bed[data-lane="cameraFullscreen"] {- top: 106px;++.appSetup,+.appDone {+ display: flex;+ flex-direction: column;+ gap: 1.6cqh;+ padding: 2.4cqh 1.8cqw;}-.laneHint {- font-size: 10px;- color: var(--ost-meta);- white-space: nowrap;+.appDone {+ align-items: center;+ justify-content: center;+ opacity: clamp(0, (var(--tf) - 16.55) * 8, 1);}-/* The annotation lane's hint is the app's way of saying the lane is empty. Once- the reader has put a note on it, it is not. */-.bed[data-lane="annotation"] .laneHint {- opacity: calc(1 - var(--note-placed));- transition: opacity 0.3s var(--ease);+.appSetup {+ opacity: clamp(0, (16.55 - var(--tf)) * 8, 1);}-/* The document. One transform carries all of it. */-.strip {+.appDone,+.appSetup {position: absolute;- left: 38%;- top: 0;- bottom: 0;- transform: translateX(calc(var(--doc) * var(--k) * -1px));+ inset: 0;}-.ruler {+.appLine {+ height: 1.6cqh;+ border-radius: 0.4cqw;+ background: #eef2f7;+}++.appLine:nth-child(2) {+ width: 62%;+}++.appBtn {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ height: 5.6cqh;+ border-radius: 0.7cqw;+ background: #10b981;+ color: #fff;+ font-size: 1.3cqw;+ font-weight: 650;+}++.appTick {+ width: 4cqh;+ height: 4cqh;+ border-radius: 50%;+ background: #10b981;+}++.appOk {+ font-size: 1.3cqw;+ font-weight: 600;+ color: #101828;+}++/* The pointer inside the recording, wearing the pack the picker selected, at+ the size the slider set, bouncing on the recording's own clicks. */+.shotCursor {position: absolute;left: 0;- right: 0;top: 0;- height: 22px;+ z-index: 5;+ /* A percentage of the composite, not `cqw`: postcss-calc cannot fold a+ container unit multiplied by a custom property. */+ width: calc(3.4% + var(--size-u) * 6%);+ aspect-ratio: 58 / 73;+ background: var(--shot-cursor) left top / contain no-repeat;+ transform: translate(calc(var(--shot-x) * 1cqw), calc(var(--shot-y) * 1cqh))+ scale(var(--shot-bounce));+ transform-origin: calc(var(--shot-hx) * 1%) calc(var(--shot-hy) * 1%);+ filter: drop-shadow(0 0.3cqh 0.5cqh rgba(0, 0, 0, 0.4));+ will-change: transform;}-.tick {+.zoomBadge {position: absolute;- top: 4px;- padding-left: 5px;- border-left: 1px solid var(--ost-border-hi);+ top: 13px;+ right: 30px;+ z-index: 6;+ display: inline-flex;+ align-items: center;+ gap: 5px;+ padding: 4px 9px;+ border-radius: 8px;+ background: rgba(8, 10, 13, 0.55);+ border: 1px solid rgba(16, 185, 129, 0.75);+ color: #34d399;font-family: var(--ost-font-mono);font-size: 10px;- line-height: 14px;- color: var(--ost-meta);- white-space: nowrap;+ font-weight: 600;+ opacity: var(--zoom-active);+ transform: translateY(calc((1 - var(--zoom-active)) * -6px));+ transition:+ opacity 0.4s var(--ease),+ transform 0.4s var(--ease);+}++/* 16/10.5 with a 13px radius — a rounded rectangle, not a bubble. */+.webcam {+ position: absolute;+ right: 24px;+ bottom: 64px;+ width: 18%;+ min-width: 96px;+ aspect-ratio: 16 / 10.5;+ border-radius: 13px;+ overflow: hidden;+ border: 3px solid rgba(255, 255, 255, 0.35);+ box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);+ z-index: 6;+}++.webcamVideo {+ width: 100%;+ height: 100%;+ object-fit: cover;+ display: block;+ transform: scale(var(--cam-scale)) translate(calc(var(--cam-tx) * 1%), calc(var(--cam-ty) * 1%))+ rotate(calc(var(--cam-rot) * 1deg));+ will-change: transform;}-.lane {+/* ═══ THE FLOOR ════════════════════════════════════════════════════════════ */++.floor {position: absolute;left: 0;right: 0;- height: var(--lane-h);+ bottom: 0;+ height: var(--tl-h);+ z-index: 8;+ background: color-mix(in srgb, var(--ost-surface) 97%, transparent);+ border-top: 1px solid var(--ost-border);+ contain: layout paint;+ transform: translateY(calc((1 - var(--tl)) * (var(--tl-h) + 20px)));+ transition: transform 0.75s var(--ease);+}++.floorClip {+ position: absolute;+ inset: 0;+ overflow: hidden;}-.lane[data-lane="annotation"] {- top: 26px;+/* Static children, one transform. */+.rail {+ position: absolute;+ inset: 0;+ left: 38%;+ transform: translate3d(calc(var(--t) * var(--k) * -1px), 0, 0);+ will-change: transform;}-.lane[data-lane="speed"] {- top: 46px;++.ruler {+ position: absolute;+ inset: 0;}-.lane[data-lane="trim"] {- top: 66px;++.tick,+.tickMajor {+ position: absolute;+ top: 22px;+ width: 1.5px;+ height: 9px;+ background: var(--ost-border);}-.lane[data-lane="zoom"] {- top: 86px;++.tickMajor {+ background: var(--ost-border-hi);+ top: 20px;+ height: 0;+ width: auto;+ transform: translateX(-50%);+ font-family: var(--ost-font-mono);+ font-size: 10.5px;+ color: var(--ost-muted);+ white-space: nowrap;}-.lane[data-lane="cameraFullscreen"] {- top: 106px;++.clip {+ position: absolute;+ top: 154px;+ height: 54px;+ border-radius: 10px;+ background: color-mix(in srgb, var(--ost-surface-2) 72%, transparent);+ border: 1px solid var(--ost-border-hi);+ box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.07);+ box-sizing: border-box;}-.pill {+.clipWave {position: absolute;- top: 0;- height: var(--lane-h);+ left: 13px;+ right: 13px;+ top: 30px;+ height: 9px;+ background: repeating-linear-gradient(90deg, var(--ost-accent) 0 2px, transparent 2px 7px);+ opacity: 0.75;+}++.pillZoom,+.pillSpeed,+.pillTrim {+ position: absolute;+ height: 22px;box-sizing: border-box;display: inline-flex;align-items: center;- gap: 4px;- padding: 0 7px;- border-radius: 5px;+ gap: 5px;+ padding: 0 8px;+ border-radius: 7px;overflow: hidden;font-family: var(--ost-font-mono);- font-size: 10px;+ font-size: 10.5px;font-weight: 600;white-space: nowrap;transition:@@ -1338,79 +1183,48 @@transform 0.35s var(--ease);}-.pillGlyph {- flex-shrink: 0;-}--/* Each pill compares one lane-wide count against its own index. Fourteen- objects arrive over the ride and not one costs a DOM write. */.pillZoom {- --on: clamp(0, calc(var(--zooms-placed) - var(--i)), 1);+ top: 118px;background: var(--ost-accent-soft);border: 1.5px solid var(--ost-accent);color: var(--ost-accent);+ --on: clamp(0, calc(var(--zooms-placed) - var(--i)), 1);opacity: var(--on);- transform: translateY(calc((1 - var(--on)) * -6px));+ transform: translateY(calc((1 - var(--on)) * -8px));+}++.pillSpeed {+ top: 66px;+ background: var(--ost-speed-soft);+ border: 1.5px solid var(--ost-speed-border);+ color: var(--ost-speed);+ opacity: var(--speed-placed);+ transform: translateY(calc((1 - var(--speed-placed)) * -8px));}.pillTrim {- --on: clamp(0, calc(var(--trims-placed) - var(--i)), 1);+ top: 92px;background: var(--ost-danger-soft);border: 1px solid var(--ost-danger);color: var(--ost-danger);- opacity: var(--on);- transform: translateY(calc((1 - var(--on)) * -6px));-}--.pillNote {- background: var(--ost-note-soft);- border: 1.5px solid var(--ost-note-border);- color: var(--ost-note);- font-family: var(--ifm-font-family-base);- font-size: 10px;- opacity: var(--note-placed);- transform: translateY(calc((1 - var(--note-placed)) * -6px));}-.clipCard {- position: absolute;- left: 0;- top: 132px;- right: 0;- height: 52px;- border-radius: 9px;- border: 1.5px solid var(--ost-accent);- background: color-mix(in srgb, var(--ost-surface-2) 62%, transparent);- box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.06);- overflow: hidden;-}--/* The generator emits the bars as vertical strokes (`M0.5 46V54`), not as filled- shapes — `WAVEFORM.note` spells out why: stroke-width 2 with a non-scaling- stroke is what reproduces the app's own `max-width: 2px` bar under a- `preserveAspectRatio="none"` stretch. Filled, they render as nothing at all. */-.wave {- position: absolute;- inset: 0;- width: 100%;- height: 100%;- fill: none;- stroke: var(--ost-accent);- stroke-width: var(--wave-stroke, 2);-}--.wave path {- vector-effect: non-scaling-stroke;+/* Each trim's opacity is written straight onto the element by the driver.+ `:nth-of-type` looked tidier and is wrong: it counts siblings of the same+ *element* — and the rail is full of spans for ticks and other pills — so the+ five rules matched five arbitrary nodes and every trim showed from the first+ frame. */+.pillTrim {+ opacity: 0;}.playhead {position: absolute;- left: 38%;- top: 26px;+ top: 2px;bottom: 0;- width: 2px;+ width: 2.5px;transform: translateX(-50%);- background: linear-gradient(180deg, var(--ost-playhead) 30%, rgba(108, 85, 255, 0.4));+ background: linear-gradient(180deg, var(--ost-playhead) 30%, rgba(108, 85, 255, 0.35));box-shadow: 0 0 12px var(--ost-playhead-glow);z-index: 9;}@@ -1418,25 +1232,179 @@.playheadHead {position: absolute;left: 50%;- top: -12px;+ top: 0;width: 15px;height: 20px;transform: translateX(-50%);background: var(--ost-playhead);border-radius: 4px;clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%);- filter: drop-shadow(0 0 10px var(--ost-playhead-glow));}-/* ═══ THE FIGCAPTION ═══════════════════════════════════════════════════════- What the picture above actually is, in ordinary flow under the band. */+.transport {+ position: absolute;+ left: 16px;+ top: 12px;+ z-index: 10;+ display: flex;+ align-items: center;+ gap: 10px;+ font-family: var(--ost-font-mono);+ font-size: 11px;+ color: var(--ost-fg);+ font-variant-numeric: tabular-nums;+}++.cuts {+ color: var(--ost-danger);+ font-weight: 600;+}++/* ═══ THE READER'S POINTER ═════════════════════════════════════════════════+ Positioned in vw/vh, which the driver's percentages of the stage match. */++.uiCursor {+ position: absolute;+ left: 0;+ top: 0;+ width: 28px;+ height: 36px;+ z-index: 14;+ background: var(--ui-cursor) left top / auto 30px no-repeat;+ transform: translate(calc(var(--ui-x) * 1vw), calc(var(--ui-y) * 1vh)) scale(var(--ui-bounce));+ transform-origin: calc(var(--ui-hx) * 1%) calc(var(--ui-hy) * 1%);+ margin: calc(var(--ui-hy) * -0.3px) 0 0 calc(var(--ui-hx) * -0.28px);+ filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));+ opacity: var(--ui-on);+ will-change: transform;+ transition: opacity 0.3s var(--ease);+}++.stage[data-cur="text"] .uiCursor {+ background-position: center center;+}++/* ═══ FALLBACKS ════════════════════════════════════════════════════════════ */.figcaption {max-width: 78ch;margin: 26px auto 0;- padding: 0 4px;+ padding: 0 24px;font-size: 12.5px;line-height: 1.6;color: var(--os-muted);text-align: center;}++@media (max-width: 900px) {+ .band {+ height: auto;+ }++ .stage {+ position: static;+ height: auto;+ overflow: visible;+ }++ .scene,+ .figcaption {+ display: none;+ }++ .captions {+ position: static;+ width: auto;+ max-width: 60ch;+ margin: 0 auto;+ padding: 0 24px;+ display: grid;+ gap: 26px;+ }++ .cap {+ position: static;+ opacity: 1;+ transform: none;+ transition: none;+ }++ .capTitle {+ font-size: 21px;+ }+}++@supports not (position: sticky) {+ .band {+ height: auto;+ }++ .stage {+ position: static;+ height: auto;+ }++ .scene,+ .figcaption {+ display: none;+ }++ .captions {+ position: static;+ width: auto;+ max-width: 60ch;+ margin: 0 auto;+ display: grid;+ gap: 26px;+ }++ .cap {+ position: static;+ opacity: 1;+ transform: none;+ }+}++@media (forced-colors: active) {+ .scene,+ .figcaption {+ display: none;+ }+}++/* Reduced motion keeps the picture and gives up the ride: the driver declines+ to attach, so every variable stays at the closing values above. The captions+ stack over the still editor, because nobody is turning them. */+@media (prefers-reduced-motion: reduce) {+ .band {+ height: auto;+ }++ .stage {+ position: static;+ height: auto;+ overflow: visible;+ }++ .captions {+ position: static;+ width: auto;+ max-width: 60ch;+ margin: 0 auto 44px;+ padding: 0 24px;+ display: grid;+ gap: 26px;+ }++ .cap {+ position: static;+ opacity: 1;+ transform: none;+ transition: none;+ }++ .scene {+ position: relative;+ height: 100vh;+ }+}