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): six settings, two acts, one clock
Etienne Lescote2e9c939be7a
diff --git a/website/scripts/gen-recreation.mjs b/website/scripts/gen-recreation.mjsindex b1e17584e..31a29253c 100644--- a/website/scripts/gen-recreation.mjs+++ b/website/scripts/gen-recreation.mjs@@ -52,8 +52,8 @@import { execFileSync } from "node:child_process";import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";-import { homedir } from "node:os";import { registerHooks } from "node:module";+import { homedir } from "node:os";import { dirname, resolve } from "node:path";import { fileURLToPath, pathToFileURL } from "node:url";@@ -113,7 +113,11 @@ const { buildClipSection, isSilenceWord, SILENCE_THRESHOLD_SEC } = await appModu// ── locale access that fails loudly ─────────────────────────────────────const locale = (ns) =>JSON.parse(readFileSync(resolve(APP, `src/i18n/locales/en/${ns}.json`), "utf8"));-const LOCALES = { editor: locale("editor"), settings: locale("settings"), timeline: locale("timeline") };+const LOCALES = {+ editor: locale("editor"),+ settings: locale("settings"),+ timeline: locale("timeline"),+};/*** `t("settings:transcript.silence", { duration: "2.2" })`.@@ -137,7 +141,8 @@ function t(path, vars = {}) {if (!(name in vars)) throw new Error(`${path}: no value for {{${name}}}`);return String(vars[name]);});- if (/\{\{/.test(out)) throw new Error(`${path}: unresolved interpolation in ${JSON.stringify(out)}`);+ if (/\{\{/.test(out))+ throw new Error(`${path}: unresolved interpolation in ${JSON.stringify(out)}`);return out;}@@ -146,19 +151,19 @@ function t(path, vars = {}) {// imported. Its *arithmetic* can be, as text: pull the exact source of the// numbers this page reproduces and evaluate it. A change to any of them lands// here as a changed output, which `--check` turns into a failed build.-const V4_SRC = readFileSync(- resolve(APP, "src/components/ai-edition/v4/V4Timeline.tsx"),- "utf8",-);+const V4_SRC = readFileSync(resolve(APP, "src/components/ai-edition/v4/V4Timeline.tsx"), "utf8");function lift(re, what) {const m = V4_SRC.match(re);- if (!m) throw new Error(`could not lift ${what} out of V4Timeline.tsx — it moved or changed shape`);+ if (!m)+ throw new Error(`could not lift ${what} out of V4Timeline.tsx — it moved or changed shape`);return m[1];}const TICK_STEPS_SEC = JSON.parse(- `[${lift(/const TICK_STEPS_SEC = \[([^\]]+)\]/, "TICK_STEPS_SEC").replace(/\s+/g, "").replace(/,$/, "")}]`,+ `[${lift(/const TICK_STEPS_SEC = \[([^\]]+)\]/, "TICK_STEPS_SEC")+ .replace(/\s+/g, "")+ .replace(/,$/, "")}]`,);const MIN_LABEL_GAP_PX = Number(lift(/const MIN_LABEL_GAP_PX = (\d+)/, "MIN_LABEL_GAP_PX"));const MINOR_PER_MAJOR = Number(lift(/const MINOR_PER_MAJOR = (\d+)/, "MINOR_PER_MAJOR"));@@ -323,7 +328,9 @@ const WORDS = section.words.map((cw, i) => {i,id: cw.id,kind: silence ? "silence" : "word",- text: silence ? t("settings:transcript.silence", { duration: durationSec.toFixed(1) }) : cw.word.text,+ text: silence+ ? t("settings:transcript.silence", { duration: durationSec.toFixed(1) })+ : cw.word.text,startSec: cw.word.startSec,endSec: cw.word.endSec,kept: cw.kept,@@ -435,7 +442,10 @@ function rulerFor(worldPx) {/** Width at which the step drops to the next entry down. Below it the 1920 world* applies; at or above it the world is the viewport and the rule re-steps. */-const WIDE_BREAKPOINT_PX = Math.ceil((MIN_LABEL_GAP_PX * totalSec) / TICK_STEPS_SEC[TICK_STEPS_SEC.indexOf(rulerFor(1920).stepSec) - 1]);+const WIDE_BREAKPOINT_PX = Math.ceil(+ (MIN_LABEL_GAP_PX * totalSec) /+ TICK_STEPS_SEC[TICK_STEPS_SEC.indexOf(rulerFor(1920).stepSec) - 1],+);const RULER = {minLabelGapPx: MIN_LABEL_GAP_PX,@@ -623,7 +633,10 @@ const LOOP = {// PreviewCanvas.tsx:238 — padding shrinks the whole content block, not just the// screen: paddingFit = clamp(1 - (padding/100) * 0.4, 0.4, 1).const FRAME = { width: 1071, height: 603 };-const paddingFit = Math.min(1, Math.max(0.4, 1 - (Math.min(100, Math.max(0, doc.legacyEditor.padding)) / 100) * 0.4));+const paddingFit = Math.min(+ 1,+ Math.max(0.4, 1 - (Math.min(100, Math.max(0, doc.legacyEditor.padding)) / 100) * 0.4),+);const contentBox = {width: Math.round(FRAME.width * paddingFit),height: Math.round(FRAME.height * paddingFit),@@ -646,7 +659,163 @@ const STAGE = {},webcam: null,webcamReason:- "assets[0].cameraTrack.visible is false and legacyEditor.webcamLayoutPreset is \"no-webcam\" — there is no bubble to draw",+ 'assets[0].cameraTrack.visible is false and legacyEditor.webcamLayoutPreset is "no-webcam" — there is no bubble to draw',+};++// ── the inspector's facet panels ────────────────────────────────────────+// FloatingInspector.tsx:59-65 is the rail in its own order; these are three of+// its six facets — the ones the scroll opens before it reaches the transcript.+// Every label is a locale key, so renaming a control in the app breaks this+// build rather than shipping a word the app stopped using.+//+// `wallpaper.ts` is lifted by regex rather than imported: it opens with+// `import { getAssetPath } from "@/lib/assetPath"`, and the resolver hook above+// teaches Node relative extensionless specifiers, not the `@/` alias.+const wallpaperSrc = readFileSync(resolve(APP, "src/lib/wallpaper.ts"), "utf8");+const WALLPAPER_COUNT = Number(/WALLPAPER_COUNT\s*=\s*(\d+)/.exec(wallpaperSrc)?.[1]);+if (!Number.isInteger(WALLPAPER_COUNT) || WALLPAPER_COUNT < 1) {+ throw new Error("could not read WALLPAPER_COUNT out of src/lib/wallpaper.ts");+}++/**+ * PreviewCanvas.tsx:238 as coefficients rather than as one baked number, so the+ * page can evaluate the app's own formula on every frame while the reader drags+ * the padding slider — `clamp(1 - (padding/100) * factor, min, 1)`. The single+ * `STAGE.paddingFit` above is this same formula at the document's own setting.+ */+const EFFECTS = {+ paddingDefault: doc.legacyEditor.padding,+ borderRadiusDefault: doc.legacyEditor.borderRadius,+ paddingFitFactor: 0.4,+ paddingFitMin: 0.4,+};++/**+ * Every slider and toggle on the two panels, at the document's own settings and+ * with the range, suffix and precision RightPanes.tsx gives it.+ *+ * The app stores most of these as fractions and displays them scaled — cursor+ * size is `size * 10` over 5–100 with one decimal and no suffix, smoothing is+ * `smoothing * 100` with a per-cent sign — so a panel that showed the stored+ * number would be wrong in a way that looks entirely plausible. The scaling+ * lives here, next to the value it scales.+ */+const le = doc.legacyEditor;+const defaultsSrc = [+ [+ "src/components/video-editor/types.ts",+ readFileSync(resolve(APP, "src/components/video-editor/types.ts"), "utf8"),+ ],+ [+ "src/lib/ai-edition/store/editorSettings.ts",+ readFileSync(resolve(APP, "src/lib/ai-edition/store/editorSettings.ts"), "utf8"),+ ],+];+/** `DEFAULT_EDITOR_SETTINGS` spells some of its defaults as named constants and+ * others inline, so look for both shapes and fail rather than assume. */+const defaultBool = (name) => {+ for (const [, src] of defaultsSrc) {+ const m = new RegExp(`${name}\\s*[=:]\\s*(true|false)`).exec(src);+ if (m) return m[1] === "true";+ }+ throw new Error(+ `could not read a boolean default for ${name} out of ${defaultsSrc.map(([f]) => f).join(" or ")}`,+ );+};+const asPercent = (v) => `${Math.round(v * 100)}%`;+const slider = (label, value, min, max, suffix, display) => ({+ label,+ value,+ min,+ max,+ suffix,+ display,+});++const CONTROLS = {+ // RightPanes.tsx:1443, :1397, :1412, :1427 — Video Effects, in its order.+ padding: slider(t("settings:effects.padding"), le.padding, 0, 100, "%", `${le.padding}%`),+ blurBg: { label: t("settings:effects.blurBg"), on: le.showBlur },+ motionBlur: slider(+ t("settings:effects.motionBlur"),+ le.motionBlurAmount * 100,+ 0,+ 100,+ "%",+ asPercent(le.motionBlurAmount),+ ),+ shadow: slider(+ t("settings:effects.shadow"),+ le.shadowIntensity * 100,+ 0,+ 100,+ "%",+ asPercent(le.shadowIntensity),+ ),+ roundness: slider(+ t("settings:effects.roundness"),+ le.borderRadius,+ 0,+ 64,+ "px",+ `${le.borderRadius}px`,+ ),+ // RightPanes.tsx:1755, :1771 — Cursor. `show` and `clipToBounds` are not in+ // this document, so they are the app's own defaults rather than a guess.+ cursorShow: { label: t("settings:cursor.show"), on: defaultBool("cursorShow") },+ clipToBounds: {+ label: t("settings:cursor.clipToBounds"),+ on: defaultBool("DEFAULT_CURSOR_CLIP_TO_BOUNDS"),+ },+ cursorTheme: { label: t("settings:cursor.theme"), value: le.cursorTheme },+ cursorSize: slider(+ t("settings:cursor.size"),+ le.cursorSize * 10,+ 5,+ 100,+ "",+ (le.cursorSize * 10).toFixed(1),+ ),+ smoothing: slider(+ t("settings:cursor.smoothing"),+ le.cursorSmoothing * 100,+ 0,+ 100,+ "%",+ asPercent(le.cursorSmoothing),+ ),+};++const PANELS = {+ background: {+ title: t("settings:background.title"),+ tabs: [+ t("settings:background.image"),+ t("settings:background.color"),+ t("settings:background.gradient"),+ ],+ uploadCustom: t("settings:background.uploadCustom"),+ wallpaperCount: WALLPAPER_COUNT,+ swatchLabels: Array.from({ length: WALLPAPER_COUNT }, (_, i) =>+ t("settings:background.imageLabel", { index: i + 1 }),+ ),+ },+ effects: {+ title: t("settings:effects.title"),+ padding: t("settings:effects.padding"),+ blurBg: t("settings:effects.blurBg"),+ motionBlur: t("settings:effects.motionBlur"),+ shadow: t("settings:effects.shadow"),+ roundness: t("settings:effects.roundness"),+ },+ cursor: {+ title: t("settings:cursor.title"),+ show: t("settings:cursor.show"),+ clipToBounds: t("settings:cursor.clipToBounds"),+ theme: t("settings:cursor.theme"),+ size: t("settings:cursor.size"),+ smoothing: t("settings:cursor.smoothing"),+ },};const TRANSPORT = {@@ -730,23 +899,26 @@ const PROVENANCE = [// if it rejoins them in start order — which is the point of quoting it// whole rather than claiming "103 words" and asserting nothing.shown: spokenWords.map((w) => w.text).join(" "),- source: "fixture transcript.words, rejoined in start order; every entry is rendered as its own span",+ source:+ "fixture transcript.words, rejoined in start order; every entry is rendered as its own span",},{shown: CHAT.conversationTitle,- source: "computed: editor.json chat.untitledConversation + the session index, as LeftPanel.tsx:1433 renders it",+ source:+ "computed: editor.json chat.untitledConversation + the session index, as LeftPanel.tsx:1433 renders it",},{ shown: CHAT.emptyState, source: "editor.json chat.emptyState" },{ shown: CHAT.authorUser, source: "editor.json chat.authorUser" },{ shown: CHAT.authorAssistant, source: "editor.json chat.authorAssistant" },{shown: CHAT.userPrompt,- source: "src/components/ai-edition/v4/V4Timeline.tsx AI_ENHANCE_PROMPT, lifted verbatim as source text",+ source:+ "src/components/ai-edition/v4/V4Timeline.tsx AI_ENHANCE_PROMPT, lifted verbatim as source text",},{shown: CHAT.agentReplyText,source:- "photograph: static/img/walkthrough/04-agent-a.jpg — hand-transcribed; the conversation is in no store on disk and this photograph is its only existence. THE WEAKEST PROVENANCE ON THE PAGE. Every timecode, duration, quoted word and cut total in it is regenerated from timeline.trimRanges and transcript.words, not transcribed. Two figures are transcribed as the model wrote them and disagree with this file's arithmetic on purpose: \"33.0s\" (recomputed: 32.93s) and \"1.8×/2.2×\" (the pills read 1.80×/2.20×). The page is quoting a message, not drawing a readout.",+ 'photograph: static/img/walkthrough/04-agent-a.jpg — hand-transcribed; the conversation is in no store on disk and this photograph is its only existence. THE WEAKEST PROVENANCE ON THE PAGE. Every timecode, duration, quoted word and cut total in it is regenerated from timeline.trimRanges and transcript.words, not transcribed. Two figures are transcribed as the model wrote them and disagree with this file\'s arithmetic on purpose: "33.0s" (recomputed: 32.93s) and "1.8×/2.2×" (the pills read 1.80×/2.20×). The page is quoting a message, not drawing a readout.',},{shown: CHAT.applied,@@ -775,11 +947,70 @@ const PROVENANCE = [source: `computed: fmtTick lifted from V4Timeline.tsx over a ${RULER.variants[0].stepSec}s step, itself derived as the first TICK_STEPS_SEC entry clearing MIN_LABEL_GAP_PX ${MIN_LABEL_GAP_PX} at ${RULER.variants[0].pxPerSec} px/s`,},{ shown: TRANSPORT.total, source: `computed: formatSec(assets[0].durationSec = ${totalSec})` },- { shown: TRANSPORT.restCurrent, source: `computed: formatSec(zoomRanges[1].sourceStartSec = ${LOOP.startSec}) — where the loop starts` },+ {+ shown: TRANSPORT.restCurrent,+ source: `computed: formatSec(zoomRanges[1].sourceStartSec = ${LOOP.startSec}) — where the loop starts`,+ },{ shown: TOOLBAR.aspectRatio, source: "fixture legacyEditor.aspectRatio" },- { shown: `${TOOLBAR.panKbd} ${TOOLBAR.panLabel}`, source: "computed: timeline.json labels.pan, with the key hint V4Timeline.tsx:1474 writes beside it" },- { shown: `${TOOLBAR.zoomKbd} ${TOOLBAR.zoomLabel}`, source: "computed: timeline.json labels.zoom, with the key hint V4Timeline.tsx:1477 writes beside it" },+ {+ shown: `${TOOLBAR.panKbd} ${TOOLBAR.panLabel}`,+ source:+ "computed: timeline.json labels.pan, with the key hint V4Timeline.tsx:1474 writes beside it",+ },+ {+ shown: `${TOOLBAR.zoomKbd} ${TOOLBAR.zoomLabel}`,+ source:+ "computed: timeline.json labels.zoom, with the key hint V4Timeline.tsx:1477 writes beside it",+ },{ shown: TOOLBAR.clipLabel, source: "fixture assets[0].label, as the clip card's own label" },+ {+ shown: PANELS.background.title,+ source: "src/i18n/locales/en/settings.json → background.title",+ },+ {+ shown: PANELS.background.tabs[0],+ source: "src/i18n/locales/en/settings.json → background.image",+ },+ {+ shown: PANELS.background.tabs[1],+ source: "src/i18n/locales/en/settings.json → background.color",+ },+ {+ shown: PANELS.background.tabs[2],+ source: "src/i18n/locales/en/settings.json → background.gradient",+ },+ {+ shown: PANELS.background.uploadCustom,+ source: "src/i18n/locales/en/settings.json → background.uploadCustom",+ },+ {+ shown: PANELS.background.swatchLabels[0],+ source: `computed: settings.json background.imageLabel over the ${WALLPAPER_COUNT} wallpapers WALLPAPER_COUNT declares in src/lib/wallpaper.ts`,+ },+ { shown: PANELS.effects.title, source: "src/i18n/locales/en/settings.json → effects.title" },+ { shown: PANELS.effects.padding, source: "src/i18n/locales/en/settings.json → effects.padding" },+ { shown: PANELS.effects.blurBg, source: "src/i18n/locales/en/settings.json → effects.blurBg" },+ {+ shown: PANELS.effects.motionBlur,+ source: "src/i18n/locales/en/settings.json → effects.motionBlur",+ },+ { shown: PANELS.effects.shadow, source: "src/i18n/locales/en/settings.json → effects.shadow" },+ {+ shown: PANELS.effects.roundness,+ source: "src/i18n/locales/en/settings.json → effects.roundness",+ },+ { shown: PANELS.cursor.title, source: "src/i18n/locales/en/settings.json → cursor.title" },+ { shown: PANELS.cursor.show, source: "src/i18n/locales/en/settings.json → cursor.show" },+ {+ shown: PANELS.cursor.clipToBounds,+ source: "src/i18n/locales/en/settings.json → cursor.clipToBounds",+ },+ { shown: PANELS.cursor.theme, source: "src/i18n/locales/en/settings.json → cursor.theme" },+ { shown: PANELS.cursor.size, source: "src/i18n/locales/en/settings.json → cursor.size" },+ {+ shown: PANELS.cursor.smoothing,+ source: "src/i18n/locales/en/settings.json → cursor.smoothing",+ },];// A string that claims a locale source but is not in the locale files is the@@ -790,7 +1021,9 @@ for (const entry of PROVENANCE) {if (!entry.source.includes(".json →") && !/\.json /.test(entry.source)) continue;if (entry.source.startsWith("computed:")) continue;if (!localeCorpus.includes(JSON.stringify(entry.shown).slice(1, -1))) {- throw new Error(`PROVENANCE claims a locale source for ${JSON.stringify(entry.shown)}, which is not in en/*.json`);+ throw new Error(+ `PROVENANCE claims a locale source for ${JSON.stringify(entry.shown)}, which is not in en/*.json`,+ );}}@@ -820,8 +1053,10 @@ ${rows.map((r) => ` ${JSON.stringify(r)},`).join("\n")}/** The ruler, pretty everywhere except its 21 + 41 label rows. */const litRuler = (ruler) =>- lit({ ...ruler, variants: ruler.variants.map((v, i) => ({ ...v, labels: `__LABELS_${i}__` })) })- .replace(/"__LABELS_(\d+)__"/g, (_m, i) => litRows(ruler.variants[Number(i)].labels));+ lit({+ ...ruler,+ variants: ruler.variants.map((v, i) => ({ ...v, labels: `__LABELS_${i}__` })),+ }).replace(/"__LABELS_(\d+)__"/g, (_m, i) => litRows(ruler.variants[Number(i)].labels));const generated = `${banner}@@ -905,6 +1140,18 @@ export const CHAT = ${lit(CHAT)} as const;export const STAGE = ${lit(STAGE)} as const;export const LOOP = ${lit(LOOP)} as const;+/** The three facet panels the scroll opens before the transcript, with every+ * control's label as the app's locale files spell it. */+export const PANELS = ${lit(PANELS)} as const;++/** The padding formula's coefficients, so the slider moves the composite by the+ * app's own arithmetic rather than by a number that looks about right. */+export const EFFECTS = ${lit(EFFECTS)} as const;++/** Every slider and toggle on those panels, at this document's settings, scaled+ * and suffixed the way RightPanes.tsx scales and suffixes it. */+export const CONTROLS = ${lit(CONTROLS)} as const;+export const TRANSPORT = ${lit(TRANSPORT)} as const;export const TOOLBAR = ${lit(TOOLBAR)} as const;@@ -932,7 +1179,9 @@ if (CHECK) {);process.exit(1);}- console.log(`recreation data up to date — ${PROVENANCE.length} strings, ${WORDS.length} words, ${PILLS.length} pills`);+ console.log(+ `recreation data up to date — ${PROVENANCE.length} strings, ${WORDS.length} words, ${PILLS.length} pills`,+ );} else {mkdirSync(OUT_DIR, { recursive: true });writeFileSync(GENERATED, generated);@@ -978,17 +1227,36 @@ function cutMedia() {FFMPEG,[// prettier-ignore- "-y", "-v", "error",- "-ss", String(LOOP.startSec), "-t", String(LOOP.contentDurationSec), "-i", RECORDING,- "-filter_complex", filter(w, h),- "-map", "[v]", "-an",- "-c:v", "h264_videotoolbox",- "-b:v", bitrate, "-maxrate", maxrate, "-bufsize", bufsize,- "-g", "60",+ "-y",+ "-v",+ "error",+ "-ss",+ String(LOOP.startSec),+ "-t",+ String(LOOP.contentDurationSec),+ "-i",+ RECORDING,+ "-filter_complex",+ filter(w, h),+ "-map",+ "[v]",+ "-an",+ "-c:v",+ "h264_videotoolbox",+ "-b:v",+ bitrate,+ "-maxrate",+ maxrate,+ "-bufsize",+ bufsize,+ "-g",+ "60",// An IDR where the hold begins re-quantises the held frame against the// same source as frame 0, which halves the visible step at the wrap.- "-force_key_frames", `0,${LOOP.contentDurationSec}`,- "-movflags", "+faststart",+ "-force_key_frames",+ `0,${LOOP.contentDurationSec}`,+ "-movflags",+ "+faststart",resolve(videoDir, out),],{ stdio: "inherit" },@@ -1008,13 +1276,28 @@ function cutMedia() {FFMPEG,[// prettier-ignore- "-y", "-v", "error",- "-ss", String(LOOP.startSec), "-i", RECORDING, "-frames:v", "1",- "-vf", `crop=${LOOP.crop.w}:${LOOP.crop.h}:${LOOP.crop.x}:${LOOP.crop.y}`,- "-c:v", "mjpeg", "-q:v", "4", "-pix_fmt", "yuvj420p",+ "-y",+ "-v",+ "error",+ "-ss",+ String(LOOP.startSec),+ "-i",+ RECORDING,+ "-frames:v",+ "1",+ "-vf",+ `crop=${LOOP.crop.w}:${LOOP.crop.h}:${LOOP.crop.x}:${LOOP.crop.y}`,+ "-c:v",+ "mjpeg",+ "-q:v",+ "4",+ "-pix_fmt",+ "yuvj420p",resolve(imgDir, "canvas-poster.jpg"),],{ stdio: "inherit" },);- console.log("cut static/video/canvas-loop{,-sm}.mp4 and static/img/walkthrough/canvas-poster.jpg");+ console.log(+ "cut static/video/canvas-loop{,-sm}.mp4 and static/img/walkthrough/canvas-poster.jpg",+ );}diff --git a/website/src/components/Recreation/ART-DIRECTION.md b/website/src/components/Recreation/ART-DIRECTION.mdindex e2a6d4107..1c6ea3611 100644--- a/website/src/components/Recreation/ART-DIRECTION.md+++ b/website/src/components/Recreation/ART-DIRECTION.md@@ -1,223 +1,81 @@-# Art direction brief — the recreated editor--The engineering of this section is finished and correct. Its composition is not.-This brief exists because the specification it was built from was exact about-geometry and silent about art direction, and it shows.--**The one job: make a scroll through this read as one continuous look at a piece-of software, instead of a series of fragments.** Everything below is either the-material you have to work with, a constraint you may not break, or a description-of what is currently wrong.-------## 1. What this section is--The OpenScreen landing page opens with a photograph of the real editor. Below it,-the same editor is **redrawn in live DOM** — real elements, real text, the app's-own design tokens — wrapped around **real video of the recording it is editing**.-The reader scrolls; a camera moves through that scene in 3D perspective; the-interface changes state as it goes.--It is a composite, the same way the application is one: the app draws chrome in-DOM and puts video in a canvas. That is the point. Chrome alone would be a-*drawing* of an interface used to sell an interface — which is exactly what this-page deleted, and the deletion is the section's whole premise.--Live at `http://localhost:3223` (see §7). The code is five files, ~4,200 lines:--| file | lines | what it is |-|---|---:|---|-| `index.tsx` | 595 | the markup. Renders once, holds no state, hands refs to the driver |-| `styles.module.css` | 1,613 | geometry, tokens, the 3D camera keyframes, the gates |-| `driver.ts` | 366 | one rAF loop; the media clock |-| `generated.ts` | 639 | **emitted, never hand-edited** — every string and number on screen |-| `../../../scripts/gen-recreation.mjs` | 1,020 | the generator that emits it |-------## 2. The problem to solve--**Stated as a problem, because the current answer is wrong and a better one may-not look like the current one at all.**--The scene is authored at the app's literal size — 1920 CSS px — so that 11px pill-labels and 13px transcript text render at 1:1 and stay legible. That was the-right instinct: text drawn at native size is the difference between software at-life size and a mockup.--But a 1920px-wide scene in a 1440px viewport **cannot be seen whole**. Every hold-in the current camera therefore frames a fragment: half a transcript panel, a-slice of canvas, a corner of the FAQ. There is no moment in the entire scroll-where a reader sees *an editor*. Authoring at 1:1 and filling the viewport are-in direct tension, and the current build resolves it by silently choosing 1:1 and-letting the composition lose.--Ways out exist and none is obviously right — that is the brief:--- Reframe so each act is a **deliberate detail shot** rather than an accidental- crop, and let the whole-editor view be carried by the photograph above.-- Scale the scene down at the holds and accept softer text, buying a whole view.-- Author a **narrower** scene — a composition of the app's parts rather than a- facsimile of its layout — which is not the app's geometry but may be the better- picture.-- Something else. The constraint is legibility and honesty, not 1920.-------## 3. What is wrong now, specifically--Regenerate the evidence with §7's command; these are the three that matter.--**The camera is inside the scene rather than looking at it.** See above. This is-the structural fault and everything else is downstream of it.--**The copy panels are cards dropped on top.** Each act's headline and paragraph-render as a rounded, shadowed rectangle floating over the scene, overlapping it-at whatever position the transform happens to leave. They read as a separate UI-layer, not as part of a composition. There is no relationship — no alignment, no-consistent side, no negative space reserved for them.--**A third rectangle competes.** The figure's caption (the mono paragraph-explaining what is drawn and what is filmed) is a third floating card. Three-shadowed rectangles fight for the frame at once.--**There is no ground.** The scene bleeds into flat black with hard vertical seams-where the world ends. Nothing situates it; nothing catches its edge.-------## 4. What you may not break--These are not stylistic preferences. Each has a reason and most have a test.--**Every string comes from somewhere.** `generated.ts` is emitted by a generator-that reads the project document, the app's locale files, and the app's own-`formatSec` / `effectiveZoomScale` / `buildClipSection` — imported and executed,-not reimplemented. Each string carries a `PROVENANCE` entry naming its source.-**Do not type a label, a timecode, a percentage or a duration into the markup.**-If a value cannot be sourced, it does not appear: that is why there is no chat-context pill (its value is computed and cannot honestly read 0% beside a rendered-reply) and no webcam bubble (the camera track is off in this project).--You may freely change **layout, size, position, colour, order, transform and-motion**. You may not change **what is said**.--**The two clocks stay separate.** `video.currentTime` owns the transport digits,-the playhead, the cue-word underline and the canvas frame. Scroll owns the camera-and the presence of the edit-history objects. No readout may have two sources,-and no scroll-driven rule may touch a property the media clock owns. It is-greppable on purpose.--**Nothing is seeked.** The canvas video plays and loops. Scroll moves the camera,-never the film. Seeking per animation frame is the most expensive thing this page-could do.--**The gates are mirrors and must stay mirrors.** The recreation shows only at-≥901px with `position: sticky` supported and not in forced-colors. The three-photographic bands it replaces (`.superseded` in `../Walkthrough/styles.module.css`)-carry the exact inverse. Both are pure CSS. If they ever drift apart there is a-width at which a reader sees the same three claims twice, or neither.--**Reduced motion and no-JS fall back to the photographs**, with not one clip byte-requested. Verified: the document is 9,161px with the recreation and 5,971px-without.--**The media budget has 12,744 bytes left**, of 1,600,000 — `npm run check:media`-is the gate and it fails the build. If you need more, the four `-scrub` clips-(865 KB) are now redundant with the DOM camera and can go; nothing else can.--**Accessibility.** Nothing focusable anywhere — the app's silence marker is a real-button, and recreating it as one would announce an action this page will never-perform. No `role="img"` (it would flatten 433 nodes to `presentation`). The-transcript and chat are exposed as real selectable text; the chrome is-`aria-hidden`. The tree is fixed at the closing state so it never mutates under a-linear reader. What moves is opacity, not the tree.--**No `backdrop-filter` inside the transformed world** (measured: 2.2–3.0× the-main-thread work of a whole sweep, a 166ms worst frame). **No `100vw`** — it ships-a horizontal scrollbar on every classic-scrollbar platform. **No CSS custom-property written from JavaScript** — an inherited property invalidates every-descendant; measured at 211ms of style recalc against 8–9ms for direct-`element.style` writes.-------## 5. The material--All paths relative to `website/`. Everything here is already cut, verified and-committed; none of it needs reshooting.--### Photographs of the real application--| file | size | bytes | what it shows |-|---|---|---:|---|-| `static/img/walkthrough/editor-1560.jpg` | 1560×876 | 68,521 | the whole editor at the end of a session — the agent's reply, two silences struck red in the transcript, two trims and three zooms on the timeline |-| `static/img/walkthrough/editor-1040.jpg` | 1040×584 | 57,132 | same frame, smaller |-| `…/editor-1560.avif`, `editor-1040.avif` | — | 53,739 / 30,807 | same, AVIF |-| `…/01-record-a.jpg` | 820×461 | 13,051 | the recorder's five settings rows |-| `…/02-timeline-a.jpg` | 1560×288 | 26,597 | the timeline strip: three zoom pills, two trim pills, lane hints, waveform |-| `…/03-captions-a.jpg` | 960×540 | 36,099 | a caption rendered over the canvas, Captions panel beside it |-| `…/04-agent-a.jpg` | 960×540 | 48,827 | the agent's reply quoting real timecodes, green applied line |-| `…/05-export-a.jpg`, `-b.jpg` | 960×540 | 15,747 / 16,517 | the export dialog, before and mid-render |--Each has a 640-wide `-sm-` companion.--### Footage--| file | size | bytes | what it is |-|---|---|---:|---|-| `static/video/canvas-loop.mp4` | 836×470 | 132,193 | **7.000s seamless loop**, the recording being edited, pre-cropped to zoom region 2's own 2.20× framing so the picture, the `2.20×` pill and the playhead are three renderings of one fact |-| `static/video/canvas-loop-sm.mp4` | 640×360 | 62,819 | same |-| `static/img/walkthrough/canvas-poster.jpg` | 872×490 | 35,889 | its first frame |-| `static/video/05-export.mp4` (+`-sm`) | 960×540 | 22,259 | the export dialog rendering |-| `static/video/*-scrub.mp4` ×4 | — | 865,212 | all-intra clips for the scroll-scrubbed bands — **redundant with this section; reclaimable** |--### Data--`generated.ts` exports, all derived: 106 transcript entries (103 words + 3 silence-markers, each knowing whether a trim covers it), 5 timeline pills with their-positions as percentages, 5 lanes with the app's real shortcut hints, both ruler-variants (2s step ≤3042px, 1s step above), the waveform as 5 SVG paths bucketed by-opacity, the chat's four blocks, the stage geometry, and the app's dark tokens.-------## 6. How this will be judged--In this order:--1. **Does a scroll read as one look at one piece of software?** Today it does not.-2. **Is the text legible where the reader is asked to read it?** The transcript and- the agent's reply carry the section's two strongest claims; if they cannot be- read, the panels have no reason to be drawn rather than photographed.-3. **Does the motion feel motivated?** The camera should move because there is- something to look at, not to demonstrate that it can.-4. **Does it still feel like software rather than a mockup?** This is what native- text size was protecting. If you trade it away, trade it knowingly.-5. **Do the fallbacks still hold, and does the budget still pass?** `npm run- typecheck && npm run check:media && npm run build` must be green.-------## 7. Running it and seeing it--```bash-cd website && npm ci && npm run build && npm run serve -- --port 3223-```--Then `http://localhost:3223`. Hard-reload — this page has bitten three people-with a stale cache.--The in-app browser panes do not deliver `IntersectionObserver` callbacks while-hidden, so drive a real headless Chrome over CDP instead. Working drivers, which-also produce the evidence in §3:--```-scratchpad/rec-shots.mjs six screenshots across the scroll-scratchpad/fallback.mjs the gates at a given width, optionally with reduced motion-scratchpad/overflow.mjs every element crossing the viewport edge at a given width-```--To change what is *said* rather than how it looks, edit the sources the generator-reads and re-run `node scripts/gen-recreation.mjs`. Never edit `generated.ts`.+# The recreation — art direction++Six settings in two acts, told by the scroll. This replaces an earlier build+that drew the whole editor at 1:1 in a 1920px scene and flew a camera over it;+this note records what was wrong with that and what the rules are now, so the+next pass does not rediscover either.++## What the previous cut got wrong++1. **The scene was bigger than the screen.** Authored at 1920px and shown in a+ 1440px viewport, it could never be seen whole, so every camera hold framed a+ fragment of an interface rather than an interface. Nothing else on the list+ mattered as much as this one.+2. **It was boxed into the 1040px measure.** Inside the page's content column,+ a whole editor had to be drawn at a third of its natural size.+3. **Three shadowed rectangles competed** — chat, canvas, floor — with no ground+ under any of them and no clear subject in any frame.+4. **It was generated from a spec and looked at once, at the end.**++## The rules++**Nothing is drawn that the current beat does not need.** Act one is a+composite and one inspector panel; there is no timeline, because a background+swap, a padding change and a cursor resize are all legible in a still frame and+the picture would rather have the room. Act two adds the timeline, because+zooms, a pinned note and cuts arriving from a transcript are only meaningful+against one. The floor slides in once, between the acts.++**Everything is sized to the viewport.** Percentages, `min()` against a measure,+and container units inside the composite. There is no pixel scene and therefore+no framing that can go wrong at a width nobody tested. The band is the one+block on the page that escapes `.inner`.++**One subject per frame.** A caption and a panel on the left, the composite on+the right, the floor at the bottom in act two. The composite gets a hairline and+a seated shadow, not a glow — a halo reads as a selection state on something+that is not selected.++**One clock.** Scroll position becomes scene seconds, scene seconds become+document seconds in act two, and the playhead, the pill under it, the composite's+magnification and the transcript's cue are four readings of that one number. No+media element, no second timebase, nothing that can drift.++**The beats touch.** A gap between beats is a stretch with no caption, no panel+and no palette — which looks like breathing room on paper and like the left half+of the screen going empty on screen. Two separate passes shipped that bug.++**The hand is a child of the control it operates.** No pointer path in+percentages of the stage, because such a path has to be re-tuned every time a+panel moves and is otherwise silently almost-right.++## What is real++- **The panels** are the app's, by locale key: `PANELS` for the titles,+ `CONTROLS` for every slider at this document's own setting, scaled and+ suffixed the way `RightPanes.tsx` does it. Cursor size is `size * 10` over+ 5–100 with one decimal and no unit — a hand-written panel gets that wrong in a+ way that looks entirely plausible.+- **The padding slider** moves the composite through `PreviewCanvas.tsx`'s own+ `clamp(1 - (padding/100) * 0.4, 0.4, 1)`, evaluated per frame.+- **The wallpapers** are the 18 the app ships, and the one selected first is the+ one `STAGE.wallpaper` names.+- **The pills** are the document's five: three zoom regions with the scales+ `effectiveZoomScale` gives them, two trims the agent made. The annotation is+ the one drawn object — the document holds none, which is exactly why that lane+ still shows its "Press A" hint.+- **The transcript** is 103 words and 3 silences from the app's own+ `buildClipSection`, and the two that strike are the two the document removes.+- **The picture in the window** is a render of the page the recording was of.+- **There is no webcam bubble** because `STAGE.webcam` is `null`: the camera+ track is off in this project.++`generated.ts` carries all of it and is emitted by `scripts/gen-recreation.mjs`.+Never edit it by hand; `--check` fails the build when it drifts.++## Verifying++The in-app browser pane returns black frames for this page. Drive headless+Chrome over CDP instead, scroll to a scene time, and look at the result — every+defect in the list at the top of this file was visible in a screenshot and+invisible in the source.diff --git a/website/src/components/Recreation/driver.ts b/website/src/components/Recreation/driver.tsindex 74f911ba6..228abcc54 100644--- a/website/src/components/Recreation/driver.ts+++ b/website/src/components/Recreation/driver.ts@@ -1,366 +1,260 @@/**- * The recreation's ONE requestAnimationFrame loop.+ * Scroll in, custom properties out.*- * ── THE TWO CLOCKS ────────────────────────────────────────────────────────────+ * 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.*- * This page has two clocks and they are never crossed. Grep for `MEDIA CLOCK`- * and `SCROLL CLOCK` — every rule in the component is filed under one of them.+ * Two rules keep it that way.*- * MEDIA CLOCK — `video.currentTime`, mapped into the recording's own timebase.- * It owns, and is the ONLY source of:- * · the transport digits (`0:17.5 / 0:40.0`)- * · the playhead's x and the transport rail's fill- * · the cue-word underline walking the transcript- * · the pointer drawn over the canvas from the recording's telemetry- * · the zoom lane's lift (t is inside zoomRanges[1])- * · the play/pause glyph- * Everything in that list is written by this file, on leaf nodes, by hand.+ * 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.*- * SCROLL CLOCK — the CSS view-timeline `--os-cam`.- * It owns, and is the ONLY source of:- * · the camera (the `.world` transform)- * · the presence of the edit-history objects (the empty chat, the two- * messages, the trim pills, the applied line, the struck silences)- * Every one of those lives in `styles.module.css` as an `animation-timeline:- * --os-cam` declaration. This file contains no scroll read of any kind: no- * `scrollY`, no `getBoundingClientRect()` in the tick, no- * `--scroll-progress`. If you are adding one, you are crossing the clocks.- *- * ── WHY IT WRITES `element.style` AND NEVER A CUSTOM PROPERTY ────────────────- *- * The popular pattern — one rAF writing `--scroll-progress` on a container and- * `calc()` reading it on the descendants — was measured against an identical- * sweep at 211 ms of style recalc at 588 elements (624 ms at 5,210) versus- * 8–9 ms for direct `element.style` writes, because an inherited custom- * property invalidates every descendant. This file writes leaf nodes only, and- * only when the value it would write has actually changed.- *- * ── WHY IT IS NOT A REACT HOOK ───────────────────────────────────────────────- *- * `useScrub.ts` calls `setProgress()` inside its own tick and its component- * re-renders. Dropping 433 server-rendered nodes into that shape turns every- * animation frame into a full reconciliation. Everything here goes through- * refs; React renders the markup once and never again.- *- * ── AND IT NEVER SEEKS ───────────────────────────────────────────────────────- *- * The clip plays and loops. Scroll drives the camera, not the film. A- * scroll-scrubbable rendition of this window measured 758,484 B for nine- * seconds all-intra against 132,193 B for the ordinary-GOP one that ships.+ * 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.*/-import { LOOP, PILLS, TRANSPORT, WORDS } from "./generated";--/* ── the recording's own numbers ─────────────────────────────────────────── */--/** The asset's duration; the denominator of every percentage below. */-const TOTAL_SEC = 40.033;--/** zoomRanges[1] — the region the loop was cut from, and the only one the- * playhead visits. Read from the document rather than typed. */-const ZOOM2 = PILLS.find((p) => p.lane === "zoom" && p.startSec === LOOP.startSec);--/* ── the pointer's telemetry ─────────────────────────────────────────────── */--/**- * `recording-1786032000000.mp4.cursor.json`, samples 17500–24300 ms, remapped- * into the 2.20× crop the clip was cut at (`LOOP.crop`: 872×490 at 524,295 of- * 1920×1080, so the visible window is cx ∈ [0.2729, 0.7271], cy ∈ [0.2732,- * 0.7269]) and stored as per-mille of that window, x then y, clamped to- * [-200, 1200]. 205 samples at a uniform 33.33 ms — the recording's own frame- * pitch, so no resampling was done and none is undone here.- *- * There are no clicks in this window (the recording's three are at 13.87,- * 24.80 and 36.20 s) and no invisible samples, so no click bounce is drawn and- * none is invented. 19 of the 205 fall outside the crop; the pointer is hidden- * for those, which is what the app does with a pointer outside the framing.- *- * This is the page's one demonstration rather than assertion: band 01 claims- * the pointer is recorded as data and restyled afterwards, and this is that- * data, restyled, in DOM, over footage it was never burned into.- */-const CURSOR_XY =- "563,402,561,407,566,408,570,413,569,413,571,413,572,419,577,418,580,423,583,425,589,426,591," +- "434,594,435,599,438,600,442,607,448,610,448,610,454,614,457,618,462,621,461,628,463,632,471," +- "636,474,637,479,645,479,645,484,653,491,660,495,664,497,664,501,669,506,675,509,675,514,679," +- "515,689,517,690,522,694,530,697,533,701,537,704,536,712,545,714,546,717,546,720,552,725,553," +- "728,560,732,562,737,562,737,567,745,570,747,574,750,578,749,577,755,584,756,582,761,585,765," +- "589,767,593,766,596,769,596,771,595,772,597,779,601,779,600,778,606,780,603,783,606,784,609," +- "786,605,781,605,788,609,787,609,786,611,789,609,788,613,788,612,787,608,786,609,782,614,782," +- "613,784,611,783,612,778,616,774,616,773,612,770,613,771,615,766,617,762,616,760,624,758,623," +- "749,622,748,626,743,624,742,630,738,632,734,634,723,636,723,636,713,637,713,639,707,640,700," +- "645,693,649,686,646,683,650,677,652,667,656,661,660,658,658,648,661,641,667,633,669,627,670," +- "625,676,618,678,607,681,602,683,592,684,585,688,578,691,575,696,564,699,559,701,551,699,546," +- "701,540,708,532,712,524,711,521,715,514,719,509,719,500,722,495,721,490,724,483,725,475,729," +- "471,735,465,733,459,736,456,739,453,743,448,740,440,746,438,748,433,747,431,752,421,751,418," +- "755,416,754,413,755,413,757,410,755,401,758,402,758,399,759,399,762,397,763,396,766,396,760," +- "394,766,392,761,388,767,391,764,390,765,389,764,386,753,378,740,370,716,361,692,348,659,331," +- "625,311,585,295,542,278,497,255,451,236,403,216,348,195,299,172,249,148,198,131,146,112,103," +- "88,64,74,22,60,-11,46,-46,36,-73,28,-92,19,-108,18,-113,17,-116,15,-116,8,-123,7,-131,0,-141," +- "-14,-155,-22,-165,-34,-187,-48,-200,-60,-200,-79,-200,-92,-200,-113,-200";--/** Parsed once, at module scope: 205 pairs → one flat Int16Array. */-const CURSOR = (() => {- const parts = CURSOR_XY.split(",");- const out = new Int16Array(parts.length);- for (let i = 0; i < parts.length; i++) out[i] = Number(parts[i]);- return out;-})();--/** 205 samples spanning 0 → 6.8 s of clip time. */-const CURSOR_LAST = CURSOR.length / 2 - 1;-const CURSOR_DT = LOOP.contentDurationSec / CURSOR_LAST;--/* ── formatting ──────────────────────────────────────────────────────────── */--/**- * `splitRoundedTime` + `formatSec`, reproduced from- * `src/lib/ai-edition/timeline/format.ts` because the transport's digits are- * written every tenth of a second in the browser and the app's module cannot be- * imported into a Docusaurus bundle. This is the file's ONE duplication of app- * logic and it is checked below: `formatSec(LOOP.startSec)` must equal- * `TRANSPORT.restCurrent`, which the generator produced by calling the real- * function. If the app's format ever changes, this throws in development- * instead of drifting.- */-function formatSec(sec: number): string {- const safe = Number.isFinite(sec) && sec > 0 ? sec : 0;- let totalMinutes = Math.floor(safe / 60);- let seconds = Math.round((safe % 60) * 10) / 10;- if (seconds >= 60) {- totalMinutes += 1;- seconds = 0;- }- return `${totalMinutes}:${seconds.toFixed(1).padStart(4, "0")}`;-}--/* ── the elements the loop writes ────────────────────────────────────────── */+import { type Frame, frameAt, WORDS_REMOVABLE } from "./scene";export interface DriverRefs {- /** Observed for intersection; nothing is fetched or run until it is near. */band: HTMLElement;- video: HTMLVideoElement;- /** The current-time half of `0:17.5 / 0:40.0`. */- timeReadout: HTMLElement;- /** `data-playing` is flipped on it; CSS shows one of its two glyphs. */- transport: HTMLElement;- /** The violet line down the floor. */- playhead: HTMLElement;- /** The filled part of the transport's rail; its knob rides its right edge. */- scrubFill: HTMLElement;- /** The pointer over the canvas. */- cursor: HTMLElement;- /** The zoom lane, lifted while `t` is inside zoomRanges[1]. */- zoomLane: HTMLElement;- /** The transcript paragraph; its `[data-w]` spans are read once. */+ root: HTMLElement;+ padValue: HTMLElement;+ sizeValue: HTMLElement;+ zoomValue: HTMLElement;+ timeValue: HTMLElement;flow: HTMLElement;}export interface DriverClasses {- /** Applied to the one word whose span contains `t`. */cue: string;- /** Applied to the zoom lane while it owns `t`. */- lift: string;+ struck: 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)}`;}/**- * Attaches the loop. Returns a teardown that removes every listener, cancels- * the frame, pauses the element and drops its `src`.- *- * Nothing is fetched before the band is within a viewport of the screen: the- * `<video>` is server-rendered with `preload="none"` and NO source at all, so a- * reader who never scrolls this far — and a reader with no JavaScript, forever- * — gets the poster and zero video bytes.+ * 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 function attachDriver(refs: DriverRefs, classes: DriverClasses): () => void {- const { band, video, timeReadout, transport, playhead, scrubFill, cursor, zoomLane, flow } = refs;+export const SCENE_QUERIES = [+ "(min-width: 901px)",+ "(prefers-reduced-motion: reduce)",+ "(forced-colors: active)",+] as const;- if (process.env.NODE_ENV !== "production" && formatSec(LOOP.startSec) !== TRANSPORT.restCurrent) {- throw new Error(- `Recreation: formatSec drifted from the app — got ${formatSec(LOOP.startSec)}, generated.ts says ${TRANSPORT.restCurrent}`,- );+/**+ * 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 {+ const [wide, reduced, forced] = SCENE_QUERIES.map((q) => window.matchMedia(q).matches);+ return wide && !reduced && !forced && CSS.supports("position", "sticky");+ } catch {+ return false;}+}- // A reader who has asked for stillness gets the still recreation: the camera- // is already absent (every animation is declared inside- // `prefers-reduced-motion: no-preference`), and the film must not start- // either. The poster stays, and the transport keeps its rest reading.- const quiet =- typeof window !== "undefined" &&- window.matchMedia("(prefers-reduced-motion: reduce)").matches;- if (quiet) return () => {};-- // The word spans, read once. `data-w` is the index into WORDS, so the two- // arrays are addressed by the same integer and nothing is looked up by text.- const spans = Array.from(flow.querySelectorAll<HTMLElement>("[data-w]"));- const wordEl: (HTMLElement | undefined)[] = [];- for (const el of spans) wordEl[Number(el.dataset.w)] = el;-- // ── per-frame state: last value WRITTEN, so nothing is written twice ──- let lastTenth = -1;- let lastPctKey = "";- let lastCue = -1;- let lastCursorKey = "";- let lastPlaying: boolean | null = null;- let lastLift: boolean | null = null;-- let frame = 0;- let near = false;-- /* ── MEDIA CLOCK ──────────────────────────────────────────────────────- One read of `video.currentTime`, then six writes, each guarded by the- value it last wrote. No scroll is read here and none may ever be. */- const tick = () => {- frame = requestAnimationFrame(tick);-- // `LOOP.timeMapping`: the clip is 7.000 s but only its first 6.8 s is- // footage — the tail is a dissolve into, and a hold on, a copy of frame 0- // that makes the wrap invisible. Without the clamp the last 0.2 s reports- // a time (24.3 → 24.5 s) the footage never reaches, and the playhead walks- // past the end of the picture it is supposed to be indexing.- const clipT = Math.min(video.currentTime, LOOP.contentDurationSec);- const t = LOOP.startSec + clipT;-- // 1. the transport digits — only when the tenth changes (~7 writes/second,- // not 60), because `textContent` on a mono readout is a layout.- const tenth = Math.round(t * 10);- if (tenth !== lastTenth) {- lastTenth = tenth;- timeReadout.textContent = formatSec(t);- }-- // 2. the playhead and the transport rail — one percentage, two writes.- const pct = ((t / TOTAL_SEC) * 100).toFixed(3);- if (pct !== lastPctKey) {- lastPctKey = pct;- playhead.style.left = `${pct}%`;- scrubFill.style.width = `${pct}%`;- }-- // 3. the cue underline — moved between spans, roughly 22 times across the- // loop rather than 60 times a second.- const cue = findWord(t, lastCue);- if (cue !== lastCue) {- if (lastCue >= 0) wordEl[lastCue]?.classList.remove(classes.cue);- if (cue >= 0) wordEl[cue]?.classList.add(classes.cue);- lastCue = cue;- }+/** 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. */+const WRITTEN = [+ "--t",+ "--tl",+ "--doc",+ "--bg",+ "--fit",+ "--zoom",+ "--zoom-x",+ "--zoom-y",+ "--pad-pct",+ "--size-pct",+ "--cur-size",+ "--cur-sel",+ "--shot-x",+ "--shot-y",+ "--page-y",+ "--palette",+ "--wand",+ "--note-on",+ "--panel",+ "--zooms-placed",+ "--trims-placed",+ "--note-placed",+ "--flow-y",+];++export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {+ if (!sceneEnabled()) {+ for (const name of WRITTEN) refs.root.style.removeProperty(name);+ delete refs.root.dataset.beat;+ return () => {+ // Nothing was attached, so there is nothing to detach.+ };+ }- // 4. the pointer — one transform on one element, from the telemetry.- const ci = Math.max(0, Math.min(CURSOR_LAST, Math.round(clipT / CURSOR_DT)));- const ux = CURSOR[ci * 2] / 1000;- const uy = CURSOR[ci * 2 + 1] / 1000;- const onScreen = ux >= 0 && ux <= 1 && uy >= 0 && uy <= 1;- const cursorKey = onScreen ? `${ux},${uy}` : "";- if (cursorKey !== lastCursorKey) {- lastCursorKey = cursorKey;- if (onScreen) {- cursor.style.visibility = "visible";- cursor.style.transform = `translate3d(${(ux * LOOP.width).toFixed(1)}px, ${(- uy * LOOP.height- ).toFixed(1)}px, 0)`;- } else {- cursor.style.visibility = "hidden";- }+ const { band, root, padValue, sizeValue, zoomValue, timeValue, 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);++ /**+ * Every entry's offset inside the flow, measured once.+ *+ * 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.+ */+ 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;+ };+ 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 num = (name: string, value: number, dp = 4) =>+ root.style.setProperty(name, value.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("--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("--size-pct", f.cursorSizePct, 2);+ num("--cur-size", f.cursorSize, 2);+ num("--cur-sel", f.cursorSel, 0);+ num("--shot-x", f.shot[0], 2);+ num("--shot-y", f.shot[1], 2);+ 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("--zooms-placed", f.zoomsPlaced, 0);+ num("--trims-placed", f.trimsPlaced, 0);+ num("--note-placed", f.notePlaced, 0);++ if (f.beat !== lastBeat) {+ lastBeat = f.beat;+ if (f.beat) root.dataset.beat = f.beat;+ else delete root.dataset.beat;}- // 5. the zoom lane's lift. It is information, not decoration: the lane is- // raised because it holds the region containing `t`. Before playback- // starts nothing owns `t`, and the lane is not raised.- const lift = !!ZOOM2 && t >= ZOOM2.startSec && t < ZOOM2.endSec;- if (lift !== lastLift) {- lastLift = lift;- zoomLane.classList.toggle(classes.lift, lift);+ const pad = `${Math.round(f.padding)}%`;+ if (pad !== lastPad) {+ lastPad = pad;+ padValue.textContent = pad;}-- // 6. the play/pause glyph, from the element rather than from our intent —- // iOS in Low Power Mode refuses muted inline autoplay and the page- // cannot override it, so a transport that reported our intent would be- // lying on exactly the devices that refused.- const playing = !video.paused && !video.ended;- if (playing !== lastPlaying) {- lastPlaying = playing;- transport.dataset.playing = playing ? "true" : "false";+ // One decimal and no suffix — RightPanes.tsx:1755 gives this slider+ // `decimals={1}` and no `suffix`, unlike every other slider on the panel.+ const size = f.cursorSize.toFixed(1);+ if (size !== lastSize) {+ lastSize = size;+ sizeValue.textContent = size;}- };-- /** The span containing `t`, searched from the last answer — the clock only- * ever moves forward by a frame, or wraps to the start. */- function findWord(t: number, from: number): number {- if (from >= 0) {- const w = WORDS[from];- if (w && t >= w.startSec && t < w.endSec) return from;- const next = WORDS[from + 1];- if (next && t >= next.startSec && t < next.endSec) return from + 1;+ 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;}- let lo = 0;- let hi = WORDS.length - 1;- while (lo <= hi) {- const mid = (lo + hi) >> 1;- if (t < WORDS[mid].startSec) hi = mid - 1;- else if (t >= WORDS[mid].endSec) lo = mid + 1;- else return mid;+ const time = fmtSec(f.doc);+ if (time !== lastTime) {+ lastTime = time;+ timeValue.textContent = time;}- return -1;- }- const start = () => {- if (!video.src) {- // Chosen once, when the file is first wanted. Not reactive: swapping- // `src` mid-loop runs the resource-selection algorithm, which rewinds- // to 0 and pauses without firing `pause`.- video.src = window.matchMedia("(max-width: 1280px)").matches- ? LOOP.srcSmall- : LOOP.src;+ 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);+ }}- const attempt = video.play();- if (attempt) attempt.catch(() => {});- if (!frame) frame = requestAnimationFrame(tick);};- const stop = () => {- if (frame) {- cancelAnimationFrame(frame);- frame = 0;- }- video.pause();+ 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));+ });};- // A viewport of margin on each side, the shape `useScrub.ts` already uses:- // the clip has to be decodable by the time its first frame is wanted.- // This is the file's only use of the observer, and it is not a scroll read —- // it fires on visibility, not on position, and it drives nothing but- // play/pause.- let io: IntersectionObserver | null = null;- if (typeof IntersectionObserver !== "undefined") {- io = new IntersectionObserver(- (entries) => {- near = entries[0].isIntersecting;- if (near) start();- else stop();- },- { rootMargin: "100% 0px" },- );- io.observe(band);- } else {- near = true;- start();- }-- // The document's visibility, not ours: a backgrounded tab throttles rAF to- // once a second while the element keeps decoding, so the readouts would come- // back a second stale and the pointer would jump.- const onVisibility = () => {- if (document.hidden) stop();- else if (near) start();+ const onResize = () => {+ measure();+ onScroll();};- document.addEventListener("visibilitychange", onVisibility);+ window.addEventListener("scroll", onScroll, { passive: true });+ window.addEventListener("resize", onResize);+ onScroll();return () => {- io?.disconnect();- document.removeEventListener("visibilitychange", onVisibility);- stop();- video.removeAttribute("src");- video.load();+ window.removeEventListener("scroll", onScroll);+ window.removeEventListener("resize", onResize);+ if (raf) cancelAnimationFrame(raf);};}diff --git a/website/src/components/Recreation/generated.ts b/website/src/components/Recreation/generated.tsindex da27100d4..6cd800ffc 100644--- a/website/src/components/Recreation/generated.ts+++ b/website/src/components/Recreation/generated.ts@@ -510,6 +510,135 @@ export const LOOP = {"timeMapping": "startSec + min(currentTime, contentDurationSec)"} as const;+/** The three facet panels the scroll opens before the transcript, with every+ * control's label as the app's locale files spell it. */+export const PANELS = {+ "background": {+ "title": "Background",+ "tabs": [+ "Image",+ "Color",+ "Gradient"+ ],+ "uploadCustom": "Upload Custom",+ "wallpaperCount": 18,+ "swatchLabels": [+ "Background 1",+ "Background 2",+ "Background 3",+ "Background 4",+ "Background 5",+ "Background 6",+ "Background 7",+ "Background 8",+ "Background 9",+ "Background 10",+ "Background 11",+ "Background 12",+ "Background 13",+ "Background 14",+ "Background 15",+ "Background 16",+ "Background 17",+ "Background 18"+ ]+ },+ "effects": {+ "title": "Video Effects",+ "padding": "Padding",+ "blurBg": "Blur BG",+ "motionBlur": "Motion Blur",+ "shadow": "Shadow",+ "roundness": "Roundness"+ },+ "cursor": {+ "title": "Cursor",+ "show": "Show Cursor",+ "clipToBounds": "Clip to Canvas",+ "theme": "Cursor Style",+ "size": "Size",+ "smoothing": "Smoothing"+ }+} as const;++/** The padding formula's coefficients, so the slider moves the composite by the+ * app's own arithmetic rather than by a number that looks about right. */+export const EFFECTS = {+ "paddingDefault": 55,+ "borderRadiusDefault": 40,+ "paddingFitFactor": 0.4,+ "paddingFitMin": 0.4+} as const;++/** Every slider and toggle on those panels, at this document's settings, scaled+ * and suffixed the way RightPanes.tsx scales and suffixes it. */+export const CONTROLS = {+ "padding": {+ "label": "Padding",+ "value": 55,+ "min": 0,+ "max": 100,+ "suffix": "%",+ "display": "55%"+ },+ "blurBg": {+ "label": "Blur BG",+ "on": true+ },+ "motionBlur": {+ "label": "Motion Blur",+ "value": 30,+ "min": 0,+ "max": 100,+ "suffix": "%",+ "display": "30%"+ },+ "shadow": {+ "label": "Shadow",+ "value": 35,+ "min": 0,+ "max": 100,+ "suffix": "%",+ "display": "35%"+ },+ "roundness": {+ "label": "Roundness",+ "value": 40,+ "min": 0,+ "max": 64,+ "suffix": "px",+ "display": "40px"+ },+ "cursorShow": {+ "label": "Show Cursor",+ "on": true+ },+ "clipToBounds": {+ "label": "Clip to Canvas",+ "on": false+ },+ "cursorTheme": {+ "label": "Cursor Style",+ "value": "default"+ },+ "cursorSize": {+ "label": "Size",+ "value": 45,+ "min": 5,+ "max": 100,+ "suffix": "",+ "display": "45.0"+ },+ "smoothing": {+ "label": "Smoothing",+ "value": 35,+ "min": 0,+ "max": 100,+ "suffix": "%",+ "display": "35%"+ }+} as const;+export const TRANSPORT = {"restCurrent": "0:17.5","endCurrent": "0:24.3",@@ -577,6 +706,24 @@ export const PROVENANCE: ProvenanceEntry[] = [{"shown":"Shift+Scroll Pan","source":"computed: timeline.json labels.pan, with the key hint V4Timeline.tsx:1474 writes beside it"},{"shown":"Ctrl+Scroll Zoom","source":"computed: timeline.json labels.zoom, with the key hint V4Timeline.tsx:1477 writes beside it"},{"shown":"Bellrock — docs walkthrough","source":"fixture assets[0].label, as the clip card's own label"},+ {"shown":"Background","source":"src/i18n/locales/en/settings.json → background.title"},+ {"shown":"Image","source":"src/i18n/locales/en/settings.json → background.image"},+ {"shown":"Color","source":"src/i18n/locales/en/settings.json → background.color"},+ {"shown":"Gradient","source":"src/i18n/locales/en/settings.json → background.gradient"},+ {"shown":"Upload Custom","source":"src/i18n/locales/en/settings.json → background.uploadCustom"},+ {"shown":"Background 1","source":"computed: settings.json background.imageLabel over the 18 wallpapers WALLPAPER_COUNT declares in src/lib/wallpaper.ts"},+ {"shown":"Video Effects","source":"src/i18n/locales/en/settings.json → effects.title"},+ {"shown":"Padding","source":"src/i18n/locales/en/settings.json → effects.padding"},+ {"shown":"Blur BG","source":"src/i18n/locales/en/settings.json → effects.blurBg"},+ {"shown":"Motion Blur","source":"src/i18n/locales/en/settings.json → effects.motionBlur"},+ {"shown":"Shadow","source":"src/i18n/locales/en/settings.json → effects.shadow"},+ {"shown":"Roundness","source":"src/i18n/locales/en/settings.json → effects.roundness"},+ {"shown":"Cursor","source":"src/i18n/locales/en/settings.json → cursor.title"},+ {"shown":"Show Cursor","source":"src/i18n/locales/en/settings.json → cursor.show"},+ {"shown":"Clip to Canvas","source":"src/i18n/locales/en/settings.json → cursor.clipToBounds"},+ {"shown":"Cursor Style","source":"src/i18n/locales/en/settings.json → cursor.theme"},+ {"shown":"Size","source":"src/i18n/locales/en/settings.json → cursor.size"},+ {"shown":"Smoothing","source":"src/i18n/locales/en/settings.json → cursor.smoothing"},];/** What check-recreation.mjs asserts against. */diff --git a/website/src/components/Recreation/index.tsx b/website/src/components/Recreation/index.tsxindex 5f0efd3d5..82328731f 100644--- a/website/src/components/Recreation/index.tsx+++ b/website/src/components/Recreation/index.tsx@@ -1,187 +1,225 @@/**- * The OpenScreen editor, recreated — live DOM chrome around real footage of the- * recording being edited.+ * The OpenScreen editor, redrawn in live DOM and walked through by the scroll.*- * Every string, number and percentage below comes from `generated.ts`, which+ * 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.+ *+ * 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 own locale files, and the- * app's own `formatSec` / `effectiveZoomScale` / `buildClipSection`, imported- * and run. Nothing here is typed by hand. If the document is re-cut, the- * generator moves the pills, the transcript, the ruler and the agent's- * timecodes together, and `--check` fails the build if they have drifted.+ * (`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.*- * ── THE TWO CLOCKS ───────────────────────────────────────────────────────────+ * ── ONE CLOCK ────────────────────────────────────────────────────────────────*- * MEDIA CLOCK → `driver.ts`. `video.currentTime` owns the transport digits,- * the playhead, the transport rail, the cue underline, the- * pointer, the zoom lane's lift and the play glyph.- * SCROLL CLOCK → `styles.module.css`. The view-timeline `--os-cam` owns the- * camera and the presence of the edit-history objects.+ * 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.*- * This file renders once and never again. It holds no state, sets no state,- * and reads neither clock: it hands eight refs to the driver and gets out of- * the way. React is not in the frame loop.+ * This file renders once and never again. It holds no state and reads no clock.** ── ACCESSIBILITY ────────────────────────────────────────────────────────────*- * No `role="img"`: browsers apply `role="presentation"` to every descendant of- * an element with the img role, which would make 433 nodes semantically- * identical to the JPEG they replace, at ten times the markup and none of the- * compression. There is no middle setting.- *- * No focusable node, anywhere. The app's silence marker is a real `<button>`- * with `title="Trim silence (2.2s)"`; recreated as a control it becomes a tab- * stop that announces an action this page will never perform — a lie told- * exclusively to the readers least able to check it. Every marker, glyph, pill- * and composer here is a `<span>`.+ * 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>`.*- * One state, not a mutating one. The tree is fixed at the CLOSING, post-agent- * state: two trims applied, the reply present, two markers struck. The- * pre-agent elements the animation shows first (`emptyChat`) are `aria-hidden`- * for their whole lifetime; the elements that arrive are exposed from the- * start. What moves is opacity, not the tree. No live region, nothing- * announced, nothing flipping under a linear reader.+ * 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.*- * Exposed: the transcript (103 words + 3 silence markers, real selectable- * text), its heading and clip range, both chat messages with their author- * labels, the applied line, the five pill labels, the three lane hints, and- * all five claims. Hidden: the toolbar, transport, ruler, lane backgrounds,- * clip card, waveform, playhead, nav strip, facet rail, composer, wallpaper,- * pointer and the `<video>`.+ * 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.*/-import { useEffect, useRef } from "react";-import {- Captions,ChevronRight,- Clock,- Copy,- Crosshair,- FileText,- Film,- Image,- Maximize2,+ CircleHelp,MessageSquare,MousePointer2,- PanelLeftClose,- PanelTop,- Pause,- Pencil,- Play,Scissors,- SendHorizontal,- SkipBack,- SkipForward,- SlidersHorizontal,- SplitSquareHorizontal,- Trash2,Wand2,ZoomIn,} from "lucide-react";+import { useEffect, useRef } from "react";-import { BANDS } from "../Walkthrough/bands";-import { attachDriver } from "./driver";+import { attachDriver, SCENE_QUERIES } from "./driver";import {- CHAT,+ CONTROLS,INSPECTOR,LANES,- LOOP,- PILLS,+ META,+ PANELS,+ type RecreationPill,RULER,- STAGE,- TOOLBAR,TRANSPORT,WAVEFORM,WORDS,- type RecreationPill,} from "./generated";+import { BEATS, NOTE_AT, NOTE_LEN, WALLPAPER_FROM, WALLPAPER_TO } from "./scene";import styles from "./styles.module.css";-/* ── the copy, from the one file the section keeps its words in ───────────── */--const BAND = Object.fromEntries(BANDS.map((band) => [band.id, band]));--/** The four acts that quote a band, in the order the camera visits them. */-const ACTS = [- { cls: styles.act1, band: BAND["band-captions"] },- { cls: styles.act2, band: BAND["band-record"] },- { cls: styles.act3, band: BAND["band-agent"] },- { cls: styles.act4, band: BAND["band-timeline"] },-] as const;--/** The one silence the agent left alone, and the two it cut — both read off- * the document rather than typed, so the closing sentence cannot outlive the- * edit it describes. */-const SILENCES = WORDS.filter((w) => w.kind === "silence");-const CUT_SILENCES = SILENCES.filter((w) => !w.kept);-const KEPT_SILENCE = SILENCES.find((w) => w.kept);-const KEPT_SILENCE_SEC = KEPT_SILENCE- ? (KEPT_SILENCE.endSec - KEPT_SILENCE.startSec).toFixed(1)- : "0.0";--const CLOSING = `Same panel, one scroll later. ${- CUT_SILENCES.length === 2 ? "Two" : String(CUT_SILENCES.length)-} spans struck out — and the ${KEPT_SILENCE_SEC}s gap left exactly where it was, because nothing under a second qualified.`;--const FIGCAPTION =- `OpenScreen 1.9 — the editor redrawn in your browser from the project file the photograph above was taken from. ` +- `The picture in the canvas and the pointer's path are the recording; the camera track is off in this project, so there is no webcam bubble to draw.`;--/* ── the ruler ────────────────────────────────────────────────────────────── */--const RULER_NARROW = RULER.variants[0];-const RULER_WIDE = RULER.variants[1];-/** The 20 odd-second labels the 1s step adds at >=3043px. The 21 even ones are- * shared with the 2s step, so only these are conditional. */-const ODD_LABELS = RULER_WIDE.labels.filter((label) => label.sec % 2 === 1);--/* ── the waveform ─────────────────────────────────────────────────────────── */--/** Two of the five buckets are empty — this recording peaks at 0.4787, so the- * app's own `0.5 + amp*0.5` never reaches 0.8. Skipping them costs nothing and- * keeps the bucket table honest about why. */-const WAVE_PATHS = WAVEFORM.paths.filter((p) => p.bars > 0);+/* ── 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`,+ },+};++/* ── 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;+const x = (sec: number) => `${(sec * K).toFixed(1)}px`;-/* ── the chat ─────────────────────────────────────────────────────────────── */+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);-type ReplyBlock = (typeof CHAT.agentReply)[number];+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",+];++/* ── 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}>+ <span className={styles.controlHead}>+ <span className={styles.controlLabel}>{label}</span>+ <span className={styles.controlValue}>{display}</span>+ </span>+ <span className={styles.track}>+ <span className={styles.trackFill} style={{ width: `${pct}%` }} />+ <span className={styles.knob} style={{ left: `${pct}%` }} />+ </span>+ </span>+ );+}-/** Consecutive `li` blocks become one `<ul>`; everything else is a `<p>`. */-function groupReply(blocks: readonly ReplyBlock[]): Array<{ list: boolean; items: ReplyBlock[] }> {- const out: Array<{ list: boolean; items: ReplyBlock[] }> = [];- for (const block of blocks) {- const list = block.kind === "li";- const tail = out[out.length - 1];- if (tail && tail.list === list && list) tail.items.push(block);- else out.push({ list, items: [block] });- }- return out;+/**+ * 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>+ );}-/** A plain run is a text node, not a `<span>`: eight of the reply's thirteen- * runs carry no emphasis, and a wrapper that styles nothing is eight elements- * of load cost for nothing. */-function Runs({ block }: { block: ReplyBlock }) {- return <>{block.runs.map((run, i) => (run.strong ? <strong key={i}>{run.text}</strong> : run.text))}</>;+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>+ );}-/* ── pills ────────────────────────────────────────────────────────────────── */+/** 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 }: { pill: RecreationPill }) {+function Pill({ pill, index }: { pill: RecreationPill; index: number }) {const trim = pill.lane === "trim";return (<span- className={`${styles.pill} ${trim ? styles.pillTrim : ""}`}- style={{ left: `${pill.leftPct}%`, width: `${pill.widthPct}%` }}+ 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,+ }}>- {/* The glyph's own <svg> carries the class — a wrapper span around an- element that is already one node is one node too many, five times- over. */}{trim ? (- <Scissors className={styles.pillGlyph} size={11} aria-hidden="true" />+ <Scissors className={styles.pillGlyph} size={10} aria-hidden="true" />) : (- <ZoomIn className={styles.pillGlyph} size={11} aria-hidden="true" />+ <ZoomIn className={styles.pillGlyph} size={10} aria-hidden="true" />)}{pill.label}</span>@@ -192,196 +230,228 @@ function Pill({ pill }: { pill: RecreationPill }) {export default function Recreation() {const band = useRef<HTMLElement | null>(null);- const video = useRef<HTMLVideoElement | null>(null);- const timeReadout = useRef<HTMLSpanElement | null>(null);- const transport = useRef<HTMLDivElement | null>(null);- const playhead = useRef<HTMLSpanElement | null>(null);- const scrubFill = useRef<HTMLSpanElement | null>(null);- const cursor = useRef<SVGSVGElement | null>(null);- const zoomLane = useRef<HTMLDivElement | null>(null);+ const root = useRef<HTMLDivElement | 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 flow = useRef<HTMLParagraphElement | null>(null);useEffect(() => {const refs = {band: band.current,- video: video.current,- timeReadout: timeReadout.current,- transport: transport.current,- playhead: playhead.current,- scrubFill: scrubFill.current,- cursor: cursor.current as unknown as HTMLElement | null,- zoomLane: zoomLane.current,+ root: root.current,+ padValue: padValue.current,+ sizeValue: sizeValue.current,+ zoomValue: zoomValue.current,+ timeValue: timeValue.current,flow: flow.current,};if (Object.values(refs).some((el) => el === null)) return;- return attachDriver(refs as Parameters<typeof attachDriver>[0], {- cue: styles.cue,- lift: styles.laneLift,- });+ const classes = { cue: styles.cue, struck: styles.struck };++ // 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.+ let detach = attachDriver(refs as Parameters<typeof attachDriver>[0], classes);+ const queries = SCENE_QUERIES.map((q) => window.matchMedia(q));+ const recheck = () => {+ detach();+ 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();+ };}, []);return (- <section className={styles.band} ref={band} data-recreation="">- <div className={styles.stage}>- <div className={styles.world}>- {/* ═══ THE SCENE ═══ */}+ // 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. */}+ <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>+ );+ })}+ </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}>- {/* ── chat column ── */}- <div className={styles.chat}>- <div className={styles.chatStrip} aria-hidden="true">- <span className={styles.chatTitle}>{CHAT.conversationTitle}</span>- <span className={styles.stripActions}>- <span>- <PanelLeftClose size={13} />+ {/* ── the inspector ── */}+ <div className={styles.panel}>+ <header className={styles.panelHead}>+ <h4 className={styles.panelTitle} data-pane="background">+ {PANELS.background.title}+ </h4>+ <h4 className={styles.panelTitle} data-pane="padding">+ {PANELS.effects.title}+ </h4>+ <h4 className={styles.panelTitle} data-pane="cursor">+ {PANELS.cursor.title}+ </h4>+ <h4 className={styles.panelTitle} data-pane="transcript">+ {INSPECTOR.title}+ </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">+ {PANELS.background.tabs.map((tab, i) => (+ <span key={tab} className={i === 0 ? styles.tabOn : styles.tab}>+ {tab}+ </span>+ ))}</span>- <span>- <Trash2 size={13} />+ <span className={styles.upload}>{PANELS.background.uploadCustom}</span>+ <span className={styles.swatches}>+ {WALLPAPERS.map((n) => (+ <span+ key={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+ }+ >+ <img+ src={`/img/walkthrough/wp-${String(n).padStart(2, "0")}.jpg`}+ alt={PANELS.background.swatchLabels[n - 1]}+ width={240}+ height={240}+ loading="lazy"+ decoding="async"+ />+ {n === WALLPAPER_TO ? <Hand /> : null}+ </span>+ ))}</span>- </span>- </div>-- <div className={styles.chatScroll}>- {/* The app's real empty state, and the only pre-agent element- in the scene. `aria-hidden` for its whole lifetime: it is- what the panel looked like before, and a linear reader must- not meet both it and the reply. */}- <p className={styles.emptyChat} aria-hidden="true">- {CHAT.emptyState}- </p>-- <div className={`${styles.msg} ${styles.msgUser}`}>- <div className={styles.msgHead}>- <span className={styles.msgAuthor}>{CHAT.authorUser}</span>- </div>- <div className={styles.msgBubble}>- <p>{CHAT.userPrompt}</p>- </div></div>- <div className={`${styles.msg} ${styles.msgAgent}`}>- <div className={styles.msgHead}>- <span className={styles.msgAuthor}>{CHAT.authorAssistant}</span>- <span className={styles.stripActions} aria-hidden="true">- <span>- <Copy size={12} />+ {/* ── Video Effects ── */}+ <div className={styles.pane} data-pane="padding">+ <span className={`${styles.control} ${styles.controlLive}`}>+ <span className={styles.controlHead}>+ <span className={styles.controlLabel}>{CONTROLS.padding.label}</span>+ <span className={styles.controlValue} ref={padValue}>+ {CONTROLS.padding.display}+ </span>+ </span>+ <span className={styles.track}>+ <span className={`${styles.trackFill} ${styles.trackFillPad}`} />+ <span className={`${styles.knob} ${styles.knobPad}`}>+ <Hand /></span></span>- </div>- <div className={styles.msgBubble}>- {groupReply(CHAT.agentReply).map((group, gi) =>- group.list ? (- <ul key={gi}>- {group.items.map((block, i) => (- <li key={i}>- <Runs block={block} />- </li>- ))}- </ul>- ) : (- <p key={gi}>- <Runs block={group.items[0]} />- </p>- ),- )}- </div>- </div>-- <p className={styles.applied}>{CHAT.applied}</p>- </div>-- <div className={styles.composer} aria-hidden="true">- <span className={styles.composerBox}>{CHAT.composerPlaceholder}</span>- <div className={styles.composerRow}>- <span className={styles.modelChip}>{CHAT.modelChip}</span>- <span className={styles.sendGlyph}>- <SendHorizontal size={16} /></span>- </div>- </div>- </div>-- {/* ── the stage: wallpaper, recording, pointer, inspector ── */}- <div className={styles.stageCol}>- <div className={styles.frame} aria-hidden="true">- <span className={styles.wallpaper} />- <div className={styles.screen}>- {/*- The recording, pre-cropped to zoomRanges[1]'s own 2.20x- framing, so the picture, the 2.20x pill and the playhead- are three renderings of one fact and no frame can- contradict the chrome around it.-- No `src`: the driver sets it, and only once the band is- within a viewport of the screen. With `preload="none"` and- a poster, a reader with no JavaScript — and a phone, where- the band is `display: none` — fetches zero video bytes and- sees a real frame of the recording at t = 17.5 s.- */}- <video- ref={video}- className={styles.clip}- poster={LOOP.poster}- width={LOOP.width}- height={LOOP.height}- muted- loop- playsInline- preload="none"- aria-hidden="true"- tabIndex={-1}- disableRemotePlayback+ <Toggle label={CONTROLS.blurBg.label} on={CONTROLS.blurBg.on} />+ <Slider+ label={CONTROLS.motionBlur.label}+ display={CONTROLS.motionBlur.display}+ pct={pctOf(CONTROLS.motionBlur)}+ />+ <Slider+ label={CONTROLS.shadow.label}+ display={CONTROLS.shadow.display}+ pct={pctOf(CONTROLS.shadow)}+ />+ <Slider+ label={CONTROLS.roundness.label}+ display={CONTROLS.roundness.display}+ pct={pctOf(CONTROLS.roundness)}/>- {/* Positioned by the media clock from the recording's own- cursor telemetry. See driver.ts. */}- <svg- ref={cursor}- className={styles.cursor}- viewBox="0 0 24 24"- width="22"- height="22"- aria-hidden="true"- focusable="false"- >- <path- d="M5.5 3.2 19 12.4l-5.9.7 3 6.3-2.5 1.2-3-6.4-4.1 4.3z"- fill="#f5f7fa"- stroke="#101318"- strokeWidth="1.4"- strokeLinejoin="round"- />- </svg></div>- </div>- <div className={styles.inspectorWrap}>- <div className={styles.inspector}>- <div className={styles.inspectorHead}>- <h3 className={styles.inspectorTitle}>{INSPECTOR.title}</h3>- <span className={styles.inspectorChevron} aria-hidden="true">- <ChevronRight size={14} />- </span>- </div>- <div className={styles.inspectorBody}>- <div className={styles.clipHead}>- <span className={styles.clipBadge} aria-hidden="true">- {INSPECTOR.indexBadge}+ {/* ── Cursor ── */}+ <div className={styles.pane} data-pane="cursor">+ <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+ key={colour}+ 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>- <span>- <span className={styles.clipName}>{INSPECTOR.filename}</span>- <span className={styles.clipRange}>{INSPECTOR.clipRange}</span>+ ))}+ </span>+ <span className={`${styles.control} ${styles.controlLive}`}>+ <span className={styles.controlHead}>+ <span className={styles.controlLabel}>{CONTROLS.cursorSize.label}</span>+ <span className={styles.controlValue} ref={sizeValue}>+ {CONTROLS.cursorSize.display}</span>- </div>+ </span>+ <span className={styles.track}>+ <span className={`${styles.trackFill} ${styles.trackFillSize}`} />+ <span className={`${styles.knob} ${styles.knobSize}`}>+ <Hand />+ </span>+ </span>+ </span>+ <Slider+ label={CONTROLS.smoothing.label}+ display={CONTROLS.smoothing.display}+ pct={pctOf(CONTROLS.smoothing)}+ />+ </div>- {/* 103 words and 3 silence markers, in the order- `buildClipSection` produced them. `data-w` is the index- into WORDS, so the cue is addressed by integer and never- matched by text. */}+ {/* ── 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" ? (<spankey={w.id}className={`${styles.sil} ${w.kept ? "" : styles.silCut}`}+ data-w={w.i}>{w.text}</span>@@ -392,154 +462,112 @@ export default function Recreation() {),)}</p>- </div>- </div>-- {/* `FloatingInspector.tsx`'s six facets, plus the edit-clip- button that sits under them — seven glyphs, which is what- `editor-1560.jpg` shows. */}- <div className={styles.facetRail} aria-hidden="true">- <span className={styles.facet}>- <Image size={17} />- </span>- <span className={styles.facet}>- <SlidersHorizontal size={17} />- </span>- <span className={styles.facet}>- <PanelTop size={17} />- </span>- <span className={styles.facet}>- <MousePointer2 size={17} />- </span>- <span className={styles.facet}>- <Captions size={17} />- </span>- <span className={`${styles.facet} ${styles.facetOn}`}>- <FileText size={17} />- </span>- <span className={styles.facet}>- <Pencil size={17} /></span></div></div></div>- </div>- {/* ═══ THE FLOOR ═══ */}- <div className={styles.floor}>- <div className={styles.toolbar} aria-hidden="true">- <span className={styles.tools}>- <span className={styles.tool}>- <Wand2 size={15} />- </span>- <span className={styles.toolSep} />- <span className={styles.tool}>- <SplitSquareHorizontal size={15} />- </span>- <span className={styles.tool}>- <MessageSquare size={15} />- </span>- <span className={styles.tool}>- <Clock size={15} />- </span>- <span className={styles.tool}>- <ZoomIn size={15} />- </span>- <span className={`${styles.tool} ${styles.toolOn}`}>- <Crosshair size={15} />- </span>- <span className={styles.tool}>- <Maximize2 size={15} />- </span>- <span className={styles.toolSep} />+ {/* ═══ 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 />+ </span>+ <span className={`${styles.tool} ${styles.toolNote}`}>+ <MessageSquare size={22} />+ <Hand /></span>- <span className={styles.aspect}>{TOOLBAR.aspectRatio}</span>+ </div>- <div className={styles.transport} ref={transport} data-playing="false">- <span className={styles.playBtn}>- <Play size={13} fill="currentColor" />- <Pause size={13} fill="currentColor" />- </span>- <span className={styles.skip}>- <SkipBack size={14} />- </span>- <span className={styles.skip}>- <SkipForward size={14} />- </span>+ {/* ═══ THE COMPOSITE ═══ */}+ <div className={styles.card} aria-hidden="true">+ <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="" />+ <div className={styles.frame}>+ <div className={styles.chrome}>+ <span className={styles.lights}>+ <span /> <span /> <span />+ </span>+ <span className={styles.omnibox}>bellrock.dev</span>+ </div>+ <div className={styles.viewport}>+ <img+ className={styles.page}+ src="/img/walkthrough/fixture-page.jpg"+ alt=""+ width={1024}+ height={1036}+ />+ </div>+ </div>+ <MousePointer2 className={styles.shotCursor} size={22} fill="currentColor" />+ </div>+ </div>+ <span className={styles.zoomBadge}>+ <ZoomIn size={10} />+ <span ref={zoomValue} />+ </span>+ </div>++ {/* ═══ THE FLOOR ═══ */}+ <div className={styles.timeline} aria-hidden="true">+ <div className={styles.transport}><span className={styles.time}>- <span ref={timeReadout}>{TRANSPORT.restCurrent}</span>+ <span ref={timeValue}>0:00.0</span><span className={styles.timeTotal}> / {TRANSPORT.total}</span></span>- <span className={styles.scrubRail}>- <span className={styles.scrubFill} ref={scrubFill}>- <span className={styles.scrubKnob} />- </span>- </span></div>- <span className={styles.kbdHints}>- <span className={styles.kbdHint}>- <span className={styles.kbd}>{TOOLBAR.panKbd}</span> {TOOLBAR.panLabel}- </span>- <span className={styles.kbdHint}>- <span className={styles.kbd}>{TOOLBAR.zoomKbd}</span> {TOOLBAR.zoomLabel}- </span>- </span>- </div>-- <div className={styles.floorBody}>- <div className={styles.rulerRow} aria-hidden="true">- {/* The minor ticks are the element's own background gradient.- Only the 21 major labels are nodes. */}- <div className={styles.ruler}>- {RULER_NARROW.labels.map((label) => (- <span- key={label.sec}- className={styles.tickLabel}- style={{ left: `${label.leftPct}%` }}- >- {label.text}- </span>- ))}- {ODD_LABELS.map((label) => (- <span- key={label.sec}- className={`${styles.tickLabel} ${styles.tickOdd}`}- style={{ left: `${label.leftPct}%` }}- >- {label.text}- </span>+ <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>- <div className={styles.tracks}>- {LANES.map((lane) => (- <div- key={lane.id}- className={styles.lane}- ref={lane.id === "zoom" ? zoomLane : undefined}- >- {lane.hint ? <span className={styles.laneHint}>{lane.hint}</span> : null}- {lane.pills.map((pill) => (- <Pill key={pill.id} pill={pill} />+ <div className={styles.strip} style={{ width: x(DOC) }}>+ <div className={styles.ruler}>+ {RULER_LABELS.map((label) => (+ <span key={label.sec} className={styles.tick} style={{ left: x(label.sec) }}>+ {label.text}+ </span>))}</div>- ))}- <div className={styles.clipRow} aria-hidden="true">+ {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" ? (+ <span+ className={`${styles.pill} ${styles.pillNote}`}+ style={{ left: x(NOTE_AT), width: x(NOTE_LEN) }}+ >+ <MessageSquare className={styles.pillGlyph} size={10} />+ New annotation+ </span>+ ) : null}+ </div>+ ))}+<div className={styles.clipCard}>- <span className={styles.clipChip}>- <span className={styles.clipChipIcon}>- <Film size={11} />- </span>- <span className={styles.clipChipName}>{TOOLBAR.clipLabel}</span>- </span><svgclassName={styles.wave}viewBox={WAVEFORM.viewBox}preserveAspectRatio="none"- aria-hidden="true"focusable="false">{WAVE_PATHS.map((p) => (@@ -550,46 +578,20 @@ export default function Recreation() {</div></div>- <div className={styles.playheadLayer} aria-hidden="true">- <span className={styles.playhead} ref={playhead}>- <span className={styles.playheadHead} />- </span>- </div>- </div>-- <div className={styles.nav} aria-hidden="true">- <span className={styles.navTrack} />- <span className={styles.navWindow} />+ <span className={styles.playhead}>+ <span className={styles.playheadHead} />+ </span></div></div></div>- </div>-- {/* ═══ THE COPY ═══- Ordinary flow content that becomes a pinned, cross-fading overlay- only where the scroll clock exists. Nothing below is gated by the- scroll: it is synchronised to it. */}- <div className={styles.script}>- {ACTS.map(({ cls, band: b }) => (- <article key={b.id} className={`${styles.act} ${cls}`}>- <p className={styles.actKicker}>{b.kicker}</p>- <h3 className={styles.actClaim}>{b.claim}</h3>- <p className={styles.actBody}>{b.body}</p>- <p className={styles.actFact}>{b.fact}</p>- </article>- ))}-- <article className={`${styles.act} ${styles.act5}`}>- <p className={styles.actKicker}>the cut</p>- <h3 className={styles.actClaim}>{CLOSING}</h3>- <p className={styles.actFact}>- {STAGE.aspectRatio} · {LOOP.zoomScale.toFixed(2)}× · {PILLS.length} regions ·{" "}- {INSPECTOR.wordCount} words- </p>- </article>-- <p className={styles.figcaption}>{FIGCAPTION}</p>- </div>- </section>+ </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.+ </p>+ </>);}diff --git a/website/src/components/Recreation/scene.ts b/website/src/components/Recreation/scene.tsnew file mode 100644index 000000000..a9f54b491--- /dev/null+++ b/website/src/components/Recreation/scene.ts@@ -0,0 +1,330 @@+/**+ * The score. One pure function of scroll position, and the constants that say+ * when each thing happens.+ *+ * 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.+ *+ * 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 ─────────────────────────────────────────────────────────+ *+ * 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.+ *+ * 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.+ *+ * 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.+ */+export const BEATS = [+ { id: "background", from: 0.6, 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 },+] as const;++export type BeatId = (typeof BEATS)[number]["id"];++export const T_TOTAL = 26.5;++/** 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;++/** 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;++/* ── 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;+}++/* ── 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 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.+ */++/** The recorded pointer, over the page being recorded. Percent of the screen+ * inside the frame. */+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],+];++/** 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],+];++/* ── 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++) {+ if (t <= points[i][0]) {+ const a = points[i - 1];+ const b = points[i];+ const k = (t - a[0]) / (b[0] - a[0]);+ return a.slice(1).map((v, j) => v + (b[j + 1] - v) * k);+ }+ }+ return points[points.length - 1].slice(1);+}++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);+};++/* ── 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. */+ 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. */+ bg: number;+ /** `paddingFit`, by the app's formula. Multiplies the whole content block. */+ 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`. */+ cursorSize: number;+ cursorSizePct: number;+ /** 1 once the pointer has picked the second cursor style. */+ cursorSel: number;+ /** Composite magnification, and where it magnifies from. */+ 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. */+ shot: [number, 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. */+ zoomsPlaced: number;+ trimsPlaced: number;+ notePlaced: number;+ /** Tool-palette state. */+ paletteIn: number;+ wandOn: number;+ noteOn: number;+ /** Panel presence. */+ panelIn: 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 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;++ /* 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;++ /* 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;+ const fit = Math.min(+ 1,+ Math.max(+ EFFECTS.paddingFitMin,+ 1 - (Math.min(100, Math.max(0, 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;++ return {+ t,+ beat,+ tl,+ doc,+ bg,+ fit,+ padding,+ paddingPct:+ ((padding - CONTROLS.padding.min) / (CONTROLS.padding.max - CONTROLS.padding.min)) * 100,+ cursorSize,+ 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,+ shot: [shotX, shotY],+ 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,+ };+}diff --git a/website/src/components/Recreation/styles.module.css b/website/src/components/Recreation/styles.module.cssindex 6f7bdddcd..aa4aea5d6 100644--- a/website/src/components/Recreation/styles.module.css+++ b/website/src/components/Recreation/styles.module.css@@ -1,49 +1,44 @@/**- * The editor, recreated — geometry, tokens, the 3D, and the two clocks' halves.+ * The editor, recreated — tokens, the two-act staging, and everything the+ * driver's variables land on.*- * ── THE TWO CLOCKS ───────────────────────────────────────────────────────────+ * ── ONE CLOCK ────────────────────────────────────────────────────────────────*- * SCROLL CLOCK lives here and ONLY here: every `animation-timeline: --os-cam`- * declaration in this file, and nothing else anywhere. It owns the camera and- * the presence of the edit-history objects — the empty chat, the two messages,- * the two trim pills, the applied line, the two struck silences.- *- * MEDIA CLOCK lives in `driver.ts` and ONLY there. It owns the transport- * digits, the playhead's x, the transport rail's fill, the cue underline, the- * pointer and the zoom lane's lift. This file styles those things; it never- * animates them, and no rule below may take a property off that list.- *- * If a readout ever ends up with two sources, one of those two paragraphs is- * wrong. Grep both files for the two headings before adding a rule.+ * 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 ──────────────────────────────────────────────────────────*- * Every animation, and the 500vh band that carries them, is declared inside- * `@media (prefers-reduced-motion: no-preference) { @supports (animation-timeline:- * view()) { … } }`. The base cascade below IS the resting state — the closing,- * post-agent state that the accessibility tree is fixed at. So the usual bug in- * this pattern (`animation: none` under reduce, leaving content stranded at- * opacity 0) cannot be written here: the pre-agent values exist only as the- * `from` half of a keyframe inside the guard.+ * 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.*- * Firefox (no released version supports scroll-driven animations), a- * reduced-motion reader, and a reader with JavaScript off all land on the same- * page: a still, complete, correct editor with the copy below it, and — because- * the `<video>` is server-rendered with `preload="none"` and no `src` at all —- * not one byte of clip fetched.+ * 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.** ── TWO THINGS THAT ARE NOT HERE, ON PURPOSE ─────────────────────────────────** 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. The world sizes itself with `max(1920px, 100%)` instead.+ * platform.*- * No `backdrop-filter` inside `.world`. It is the one effect measured to break- * the budget — 2.2–3.0x the main-thread work of a whole sweep, a 166 ms worst- * frame, an 89 ms long-animation-frame. The inspector's `blur(18px)` glass and- * the clip chip's `blur(8px)` become flat fills. `box-shadow` and blurred- * decorative glows measured free and are kept exactly.+ * 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.*//* ═══ TOKENS ═══════════════════════════════════════════════════════════════@@ -82,1532 +77,1331 @@--ost-accent: #10b981;--ost-accent-soft: rgba(16, 185, 129, 0.14);--ost-accent-border: rgba(16, 185, 129, 0.26);- --ost-brand-soft: rgba(16, 185, 129, 0.14);+ --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-playhead: #6c55ff;--ost-playhead-glow: rgba(108, 85, 255, 0.68);- --ost-playhead-shadow: rgba(108, 85, 255, 0.35);--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 and the budget has 12,744 B left — so on a machine without- Geist Mono the fallback stack carries the digits. */+ site has none — so on a machine without Geist Mono the fallback carries+ the digits. */--ost-font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;- /* The world's width. `max(1920px, 100%)` and never `100vw`: the percentage- resolves against the stage's content box, which is already inside the- scrollbar. */- --world-w: max(1920px, 100%);-}--/* ═══ THE BAND ═════════════════════════════════════════════════════════════- Below 901px it is not rendered at all, and the section's existing- photographic bands carry the same claims unchanged. That is not a- degradation: 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. With `preload="none"` and no `src`, a phone- fetches zero new bytes.+ /* 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;- `position: sticky` is checked in CSS rather than by a head script, so there- is no gate attribute, no inline script and no hydration to wait for. */+ /* 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);-.band {- display: none;position: relative;color: var(--ost-fg);}-@media (min-width: 901px) {- @supports (position: sticky) {- .band {- display: block;- }+/* ═══ 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+ nothing. */+.band {+ height: 620vh;+}++.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;+ --tl: 1;+ --doc: 0;+ --bg: 1;+ --fit: 0.78;+ --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;+ --palette: 0;+ --wand: 0;+ --note-on: 0;+ --panel: 1;+ --zooms-placed: 3;+ --trims-placed: 2;+ --note-placed: 1;+ --flow-y: 0;++ 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;}}-/* 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 and always satisfied 1.4.10; let them- show. */-@media (forced-colors: active) {+@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;}}-/* ═══ THE STAGE ════════════════════════════════════════════════════════════ */+/* 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;+ }+}-.stage {- position: sticky;- /* The Docusaurus navbar is sticky, 60px, z-index 200. */- top: 60px;- height: calc(100svh - 60px);- overflow: hidden;- /* Constant, not `calc(var(--world-w) * 0.94)`. Perspective is a camera- property, not a layout one: holding it at the 1805px the magnification- arithmetic was computed against keeps that arithmetic true at every- viewport, and it is the reason `will-change` can be omitted. */- perspective: 1805px;- perspective-origin: 50% 44%;- /* The app's own stage gradient, so the world's bleed has somewhere to fall- off to. */- background: radial-gradient(ellipse 68% 54% at 52% 32%, #14181f 0%, #0a0d12 66%);-}--/* ═══ THE WORLD — one animated element, one composited layer ═══════════════- NO `will-change`. The layer is promoted by the animation itself, and a- standing `will-change` pins texture memory for the life of the page. It is- safe to omit ONLY because of the negative-Z rule in the keyframes: with the- scene authored at 1920 CSS px and no compensating scale-down, a bare 11deg- yaw advances the near edge by 960*sin11 = 183px toward a 1805px perspective- and magnifies it 1805/(1805-183) = 1.148 — a re-raster and dropped frames.- Pulling back 120px at exactly that keyframe leaves a net 63px and a- magnification of 1.0363. Every rest stop composes to exactly 1.0000. */--.world {- position: absolute;- left: 50%;- top: 50%;- width: var(--world-w);- height: 1376px;- margin-left: calc(var(--world-w) / -2);- margin-top: -688px;- transform-style: preserve-3d;- /* The resting framing — Act V's, which is Act I's. This is what a Firefox- reader, a reduced-motion reader and a print run all see. */- transform: translate3d(-728px, 177px, 0);-}--/* ═══ THE SCENE ════════════════════════════════════════════════════════════- `NewEditorShell.tsx:113` gives the two columns. The 58px top bar is deleted:- the brand, the project-name slot, the file/language/theme cluster, the Saved- chip, the Export button and the Media|Edit|Rec switch are none of them a- function of either clock, and the establishing plate above the section- already shows every one of them — ~45 nodes of pure maintenance for zero- motion and zero information. */+/* 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;+ }-.scene {- position: relative;- width: 1920px;- height: 1022px;- margin: 0 auto;- display: grid;- grid-template-columns: 392px 1fr;- background: var(--ost-bg);+ .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;+ }}-/* ── chat column ─────────────────────────────────────────────────────────── */+/* ═══ 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. */-.chat {- position: relative;- display: flex;- flex-direction: column;- min-width: 0;- background: var(--ost-surface);- border-right: 1px solid var(--ost-border);- overflow: hidden;+.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);+ z-index: 11;+ pointer-events: none;}-.chatStrip {- display: flex;- align-items: center;- gap: 8px;- height: 38px;- padding: 0 12px 0 16px;- flex-shrink: 0;- border-bottom: 1px solid var(--ost-border-soft);+/* 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);+ 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="cursor"] .cap[data-cap="cursor"],+.stage[data-beat="autozoom"] .cap[data-cap="autozoom"],+.stage[data-beat="annotation"] .cap[data-cap="annotation"],+.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;}-.chatTitle {- font-size: 12px;+.capKicker {+ margin: 0;+ font-family: var(--ost-font-mono);+ font-size: 10.5px;font-weight: 600;- color: var(--ost-fg-2);- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;+ letter-spacing: 0.14em;+ text-transform: uppercase;+ color: var(--ost-accent);}-.stripActions {- margin-left: auto;- display: inline-flex;- gap: 2px;- color: var(--ost-meta);+.capClaim {+ margin: 8px 0 0;+ font-size: clamp(24px, 2.4vw, 34px);+ font-weight: 700;+ letter-spacing: -0.028em;+ line-height: 1.08;+ color: var(--os-fg-emphasis);}-.stripActions > span {- width: 22px;- height: 22px;- display: grid;- place-items: center;- border-radius: 4px;+.capBody {+ margin: 10px 0 0;+ font-size: 14px;+ line-height: 1.55;+ color: var(--os-fg-2);}-.chatScroll {- position: relative;- flex: 1;- min-height: 0;- padding: 12px 16px;- display: flex;- flex-direction: column;- justify-content: flex-end;- overflow: hidden;+.capFact {+ margin: 10px 0 0;+ font-family: var(--ost-font-mono);+ font-size: 11.5px;+ color: var(--os-muted);}-/* The app's real empty state. Absolutely positioned so that fading it out- cannot move the messages that replace it — the two are never both laid out.- `aria-hidden` for its whole lifetime: what moves is opacity, not the tree. */-.emptyChat {- position: absolute;- left: 16px;- right: 16px;- top: 16px;- margin: 0;- font-size: 12px;- line-height: 1.55;- color: var(--ost-meta);- /* Base state = the closing state: the reply is present, so the empty state- is not. The `opacity: 1` half exists only inside the guard below. */- opacity: 0;+/* 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;+ }}-.msg {- margin-bottom: 12px;+/* ═══ 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;+ overflow: hidden;+ border: 1px solid var(--ost-border);+ border-radius: 16px;+ background: color-mix(in srgb, var(--ost-surface) 94%, 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));+ transition:+ opacity 0.4s var(--ease),+ transform 0.4s var(--ease);}-.msgHead {+.panelHead {display: flex;align-items: center;gap: 8px;- padding: 0 4px;- margin-bottom: 4px;+ padding: 12px 14px 10px;+ border-bottom: 1px solid var(--ost-border-soft);}-.msgAuthor {- font-family: var(--ost-font-mono);- font-size: 10px;- letter-spacing: 0.08em;- color: var(--ost-muted);- text-transform: uppercase;+/* 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;+ margin: 0;+ font-size: 14px;+ font-weight: 600;+ letter-spacing: -0.01em;+ color: var(--ost-fg);+ opacity: 0;+ transition: opacity 0.25s var(--ease);}-.msgBubble {- padding: 12px 16px;- border-radius: 8px;- background: var(--ost-bg);- border: 1px solid var(--ost-border);- font-size: 13px;- color: var(--ost-fg-2);- line-height: 1.5;+.panelHead {+ display: grid;+ grid-template-areas: "t g";+ grid-template-columns: 1fr auto;+ align-items: center;}-.msgBubble p,-.msgBubble li {- margin: 0 0 8px;+.panelGlyphs {+ grid-area: g;+ display: inline-flex;+ gap: 4px;+ color: var(--ost-muted);}-.msgBubble p:last-child,-.msgBubble li:last-child {- margin-bottom: 0;+.panelGlyphs svg {+ display: block;}-.msgBubble ul {- margin: 0 0 8px;- padding-left: 18px;-}+/* ═══ 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. */-.msgBubble strong {- color: var(--ost-fg-2);- font-weight: 650;+.pane {+ display: none;+ padding: 12px 14px 14px;}-/* The tool call's own report of the two pills. It arrives AFTER them, because- it is a report of them. */-.applied {- margin: 0 0 10px;- padding: 0 4px;- font-family: var(--ost-font-mono);- font-size: 11px;- color: var(--ost-accent);+.stage[data-beat="background"] .pane[data-pane="background"],+.stage[data-beat="padding"] .pane[data-pane="padding"],+.stage[data-beat="cursor"] .pane[data-pane="cursor"],+.stage[data-beat="transcript"] .pane[data-pane="transcript"] {+ display: block;}-.composer {- flex-shrink: 0;- padding: 8px 16px 12px;- border-top: 1px solid var(--ost-border-soft);- background: var(--ost-bg);+.stage[data-beat="background"] .panelTitle[data-pane="background"],+.stage[data-beat="padding"] .panelTitle[data-pane="padding"],+.stage[data-beat="cursor"] .panelTitle[data-pane="cursor"],+.stage[data-beat="transcript"] .panelTitle[data-pane="transcript"] {+ opacity: 1;}-/* A span, not a textarea, and not a div with a caret. Nothing in the- recreation is focusable: a recreated control is a tab stop that announces an- action the page will never perform — a lie told exclusively to the readers- least able to check it. */-.composerBox {+/* 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"] {display: block;- min-height: 36px;- padding: 9px 12px;- border-radius: 8px;- border: 1px solid var(--ost-accent);- box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);- background: var(--ost-bg);- font-size: 13px;- line-height: 1.4;- color: var(--ost-meta);}-.composerRow {+.stage:not([data-beat]) .panelTitle[data-pane="transcript"] {+ opacity: 1;+}++/* ── background pane ── */++.tabs {display: flex;- align-items: center;- gap: 8px;- margin-top: 6px;+ gap: 4px;+ padding: 4px;+ margin-bottom: 11px;+ border-radius: 10px;+ background: color-mix(in srgb, var(--ost-surface-2) 60%, transparent);}-.modelChip {- display: inline-flex;- align-items: center;- gap: 6px;- padding: 5px 10px;- border-radius: 9999px;- background: var(--ost-surface-2);- font-family: var(--ost-font-mono);- font-size: 11px;- color: var(--ost-fg-2);- letter-spacing: 0.01em;+.tab,+.tabOn {+ flex: 1;+ text-align: center;+ padding: 6px 0;+ border-radius: 7px;+ font-size: 12px;+ font-weight: 500;+ color: var(--ost-muted);}-.sendGlyph {- margin-left: auto;- width: 32px;- height: 32px;- display: grid;- place-items: center;- color: var(--ost-fg);+.tabOn {+ background: var(--ost-accent);+ color: #04110b;+ font-weight: 600;}-/* ── the stage column: wallpaper, recording, pointer ─────────────────────── */+.upload {+ display: inline-flex;+ padding: 8px 14px;+ margin-bottom: 12px;+ border: 1.5px dashed var(--ost-border-hi);+ border-radius: 10px;+ font-size: 12px;+ font-weight: 600;+ color: var(--ost-fg);+}-.stageCol {- position: relative;- min-width: 0;- overflow: hidden;- background: radial-gradient(ellipse 68% 54% at 52% 32%, var(--ost-surface-1) 0%, var(--ost-bg) 66%);+.swatches {+ display: grid;+ grid-template-columns: repeat(4, 1fr);+ gap: 8px;}-/* 1071x603, centred, at the fixture's own `legacyEditor` geometry. The three- shadow layers are the app's, kept exactly — blurred decorative shadow- measured free. */-.frame {- position: absolute;- left: 50%;- top: 50%;- width: 1071px;- height: 603px;- margin-left: -535.5px;- margin-top: -301.5px;- border-radius: 16px;- overflow: hidden;- box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 12px 28px -12px rgba(0, 0, 0, 0.5),- inset 0 0 0 1px rgba(255, 255, 255, 0.09);-}--/* The fixture's own `legacyEditor.wallpaper` is `/wallpapers/wallpaper5.jpg`,- a 6016x6016 / 846,662 B file in the app. It is not shipped: the media budget- has 12,744 B left and this is decoration, not evidence — the recording- covers the middle of the frame and only a 118px band of it is ever visible.- The six stops below were sampled off the cover-crop as it appears in- `editor-1560.jpg` (9x5 area-averaged), so the border reads as the same- picture without costing a request. */-.wallpaper {- position: absolute;- inset: 0;- background:- radial-gradient(120% 110% at 108% 6%, #2a7ab8 0%, rgba(42, 122, 184, 0) 46%),- radial-gradient(90% 80% at 106% 60%, #e6a86f 0%, rgba(230, 168, 111, 0) 40%),- radial-gradient(85% 70% at 102% 98%, #d8214f 0%, rgba(216, 33, 79, 0) 46%),- radial-gradient(120% 130% at -6% -10%, #e03a54 0%, #b31659 34%, rgba(179, 22, 89, 0) 62%),- radial-gradient(100% 110% at -8% 110%, #3a3260 0%, rgba(58, 50, 96, 0) 58%),- linear-gradient(150deg, #9c2a63 0%, #7a3a80 42%, #5c4a86 70%, #3e3562 100%);-}--/* paddingFit = 1 - (55/100)*0.4 = 0.78 → 1071*0.78 = 835. The clip is 836 wide- because h264 requires even dimensions; the CSS box is the fixture's 835. */-.screen {- position: absolute;- left: 50%;- top: 50%;- width: 835px;- height: 470px;- margin-left: -417.5px;- margin-top: -235px;- border-radius: 6px;- overflow: hidden;- background: #ffffff;+.swatch {+ position: relative;+ aspect-ratio: 1;+ border-radius: 10px;+ overflow: visible;+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);}-.clip {+.swatch img {display: block;width: 100%;height: 100%;object-fit: cover;+ border-radius: 10px;}-/* Band 01 claims the pointer is recorded as data rather than burned into the- pixels, and restyled after the fact. This is that data — 205 samples of- `recording-….mp4.cursor.json` — restyled, in DOM, over footage that carries- no pointer at all. The one place the section demonstrates a claim instead of- asserting it. Positioned by the MEDIA clock, in driver.ts. */-.cursor {+/* 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 {+ content: "";position: absolute;- left: 0;- top: 0;- width: 22px;- height: 22px;- margin: -2px 0 0 -2px;- pointer-events: none;- visibility: hidden;- filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));- transform: translate3d(470px, 189px, 0);+ inset: -3px;+ border-radius: 13px;+ border: 2px solid var(--ost-accent);+ transition: opacity 0.3s var(--ease);}-/* ── the floating inspector and its facet rail ───────────────────────────── */+.swatch[data-sel="from"]::after {+ opacity: calc(1 - var(--bg));+}-/* `.inspectorWrap { top: 20px; right: 20px; bottom: 20px }` with the panel- first and the rail second, exactly as `EditorShellV4.module.css` orders- them — which is why the rail is to the RIGHT of the panel here and not to- its left. `editor-1560.jpg` agrees: panel at world x 1538–1838, rail at- 1848–1900. */-.inspectorWrap {- position: absolute;- top: 20px;- right: 20px;- bottom: 20px;- display: flex;- align-items: flex-start;- gap: 10px;- z-index: 20;+.swatch[data-sel="to"]::after {+ opacity: var(--bg);}-.inspector {- width: 300px;- max-height: 100%;- display: flex;- flex-direction: column;- /* Flat, not `backdrop-filter: blur(18px)`. The one declared effect- divergence; see the file header. */- background: rgba(20, 24, 31, 0.94);+/* ── shared controls ── */++.control {+ display: block;+ margin-bottom: 9px;+ padding: 10px 12px 13px;border: 1px solid var(--ost-border);- border-radius: 16px;- box-shadow: var(--ost-elev-pop);- overflow: hidden;+ border-radius: 11px;+ background: color-mix(in srgb, var(--ost-surface-2) 40%, transparent);}-.inspectorHead {+.controlRow {display: flex;align-items: center;- gap: 8px;- padding: 12px 14px;- flex-shrink: 0;+ justify-content: space-between;+ gap: 12px;+ padding: 10px 12px;}-.inspectorTitle {- margin: 0;- font-size: 13px;- font-weight: 600;- color: var(--ost-fg-2);+/* The two the reader actually moves. */+.controlLive {+ border-color: var(--ost-accent);+ border-width: 1.5px;}-.inspectorChevron {- margin-left: auto;- display: grid;- place-items: center;- color: var(--ost-meta);+.controlHead {+ display: flex;+ justify-content: space-between;+ font-size: 12.5px;}-.inspectorBody {- padding: 0 12px 14px;- min-height: 0;- overflow: hidden;-}+.controlLabel {+ font-weight: 500;+ color: var(--ost-fg);+}++.controlValue {+ font-family: var(--ost-font-mono);+ font-weight: 600;+ color: var(--ost-accent);+ font-variant-numeric: tabular-nums;+}++.track {+ position: relative;+ display: block;+ margin-top: 11px;+ height: 5px;+ border-radius: 999px;+ background: rgba(255, 255, 255, 0.12);+}++.trackFill {+ position: absolute;+ left: 0;+ top: 0;+ bottom: 0;+ border-radius: 999px;+ background: var(--ost-accent);+}++.knob {+ position: absolute;+ top: 50%;+ width: 15px;+ height: 15px;+ border-radius: 50%;+ background: #eafff6;+ border: 2.5px solid var(--ost-accent);+ transform: translate(-50%, -50%);+ 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%);+}++.knobPad {+ left: calc(var(--pad-pct) * 1%);+ box-shadow: 0 0 0 4px var(--ost-accent-ring);+}++.trackFillSize {+ width: calc(var(--size-pct) * 1%);+}++.knobSize {+ left: calc(var(--size-pct) * 1%);+ box-shadow: 0 0 0 4px var(--ost-accent-ring);+}++.switch {+ position: relative;+ width: 34px;+ height: 20px;+ flex-shrink: 0;+ border-radius: 999px;+ background: rgba(255, 255, 255, 0.14);+}++.switchOn {+ background: var(--ost-accent);+}++.switchKnob {+ position: absolute;+ left: 2px;+ top: 2px;+ width: 16px;+ height: 16px;+ border-radius: 50%;+ background: #98a2b3;+}++.switchOn .switchKnob {+ left: auto;+ right: 2px;+ background: #fff;+}++/* ── cursor pane ── */++.cursorStyles {+ display: grid;+ grid-template-columns: repeat(5, 1fr);+ gap: 7px;+ margin: 8px 0 11px;+}++.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);+ 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 {+ 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));+}++.cursorStyle[data-sel="to"]::after {+ opacity: var(--cur-sel);+}++/* ── transcript pane ── */.clipHead {display: flex;- align-items: flex-start;+ align-items: center;gap: 10px;- padding: 0 4px 6px;+ padding-bottom: 8px;border-bottom: 1px solid var(--ost-border-soft);- margin-bottom: 8px;}.clipBadge {width: 22px;height: 22px;+ flex-shrink: 0;display: inline-flex;align-items: center;justify-content: center;- background: var(--ost-brand-soft);- color: var(--ost-accent);border-radius: 6px;- font: 700 12px/1 var(--ost-font-mono);- flex-shrink: 0;+ background: var(--ost-accent-soft);+ color: var(--ost-accent);+ font-family: var(--ost-font-mono);+ font-size: 12px;+ font-weight: 700;}.clipName {- font-size: 13px;+ display: block;+ font-size: 12.5px;font-weight: 600;line-height: 1.2;color: var(--ost-fg);- margin: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;}.clipRange {display: block;- font: 400 11px/1.3 var(--ost-font-mono);- color: var(--ost-muted);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;+ 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);}-/* Real, selectable text — 103 words and 3 silence markers. Exposed to the- accessibility tree, at the closing state, and never mutated: the only thing- that moves through it is one class on one span, written by the media clock. */.flow {margin: 0;- padding: 0 4px;- font-size: 14px;- font-weight: 400;- line-height: 1.65;+ font-size: 12.5px;+ line-height: 1.95;color: var(--ost-fg);- text-wrap: pretty;+ transform: translateY(calc(var(--flow-y) * 1px));+ transition: transform 0.4s var(--ease);}.word {- display: inline;+ border-bottom: 2px solid transparent;}-/* The cue. `RightPanes.tsx` draws it as a 2px accent underline with 1px of- padding, and so does this. Written by the MEDIA clock only. */+/* The entry under the playhead — the app underlines it, and so does this. */.cue {- border-bottom: 2px solid var(--ost-accent);- padding-bottom: 1px;+ border-bottom-color: var(--ost-accent);+ color: var(--os-fg-emphasis);}-/* A `<span>`, not the app's `<button>`. See `.composerBox`. */.sil {display: inline-flex;align-items: center;- margin: 0 3px 2px 0;- padding: 1px 6px;- border-radius: 999px;+ margin: 0 4px 2px 0;+ padding: 0 6px;border: 1px dashed var(--ost-border-hi);- background: transparent;+ border-radius: 999px;+ font-family: var(--ost-font-mono);+ font-size: 10.5px;+ line-height: 1.6;color: var(--ost-muted);- font: 500 11px/1.5 var(--ost-font-mono);- white-space: nowrap;+ transition:+ border-color 0.25s var(--ease),+ background-color 0.25s var(--ease),+ color 0.25s var(--ease);}-/* The two markers that fall inside an agent trim. BASE = struck, because the- base cascade is the closing state; the dashed, un-struck half exists only as- the `from` of `os-cut` inside the guard. */-.silCut {+/* 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: line-through;+ text-decoration: line-through;}-.facetRail {- display: flex;- flex-direction: column;+/* `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 {+ 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;+}++/* ═══ THE TOOL PALETTE ═════════════════════════════════════════════════════+ Act two's two tools, in the slot the inspector just left. */++.palette {+ position: absolute;+ left: 5%;+ top: calc(7vh + 218px);+ z-index: 12;+ display: inline-flex;align-items: center;- gap: 4px;- padding: 6px;- background: rgba(20, 24, 31, 0.94);+ gap: 8px;+ padding: 9px;border: 1px solid var(--ost-border);- border-radius: 14px;- box-shadow: var(--ost-elev-pop);+ border-radius: 22px;+ background: color-mix(in srgb, var(--ost-surface) 94%, transparent);+ box-shadow: var(--ost-elev-pop), inset 0 1px 0 rgba(255, 255, 255, 0.06);+ pointer-events: none;+ opacity: var(--palette);+ transform: translateY(calc((1 - var(--palette)) * -14px));+ transition:+ opacity 0.4s var(--ease),+ transform 0.4s var(--ease);}-.facet {- width: 38px;- height: 38px;+.tool {+ position: relative;+ width: 60px;+ height: 60px;display: grid;place-items: center;- border-radius: 10px;+ 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);}-.facetOn {- color: var(--ost-accent);- background: var(--ost-accent-soft);+.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);}-/* ═══ THE FLOOR ════════════════════════════════════════════════════════════- The one element that gains from an ultrawide, and the reason the world is- `max(1920px, 100%)` rather than a flat 1920: the floor is genuinely as wide- as the monitor while the scene stays 1920 and centred. The rule re-steps;- the picture does not. */+.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);+}-.floor {- position: relative;- width: 100%;- height: 354px;- display: flex;- flex-direction: column;- background: var(--ost-surface);- border-top: 1px solid var(--ost-border);+/* ═══ 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. */++.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;+ 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);+ z-index: 5;+ transition:+ top 0.7s var(--ease),+ width 0.7s var(--ease);+}++.cardClip {+ position: absolute;+ inset: 0;+ border-radius: 16px;overflow: hidden;+ background: #0d1014;+}++.zoomer {+ position: absolute;+ inset: 0;+ transform: scale(var(--zoom));+ transform-origin: calc(var(--zoom-x) * 1%) calc(var(--zoom-y) * 1%);+}++.bg,+.bgSwap {+ position: absolute;+ inset: 0;+ width: 100%;+ height: 100%;+ object-fit: cover;}-/* ── toolbar + transport ─────────────────────────────────────────────────── */+.bgSwap {+ opacity: var(--bg);+ transition: opacity 0.55s var(--ease);+}-.toolbar {+/* 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. */+.frame {+ position: absolute;+ left: 50%;+ top: 50%;+ width: calc(100% * var(--fit));+ aspect-ratio: 16 / 9;+ transform: translate(-50%, -50%);+ display: flex;+ flex-direction: column;+ overflow: hidden;+ 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);+}++.chrome {display: flex;align-items: center;- gap: 8px;- padding: 0 16px;- height: 40px;+ gap: 1.6cqw;flex-shrink: 0;- border-bottom: 1px solid var(--ost-border-soft);+ height: 7.4cqh;+ padding: 0 1.6cqw;+ background: #f1f3f6;+ border-bottom: 1px solid #e3e7ec;}-.tools {+.lights {display: flex;- align-items: center;- gap: 1px;+ gap: 0.7cqw;}-.tool {- width: 28px;- height: 28px;- display: grid;- place-items: center;- border-radius: 6px;- color: var(--ost-muted);+.lights span {+ width: 1.1cqw;+ height: 1.1cqw;+ border-radius: 50%;+ background: #d5dae1;}-.toolOn {- background: var(--ost-accent-soft);- color: var(--ost-accent);+.lights span:first-child {+ background: #ff5f57;}-.toolSep {- width: 1px;- height: 18px;- margin: 0 5px;- background: var(--ost-border);+.lights span:nth-child(2) {+ background: #febc2e;}-.aspect {+.lights span:last-child {+ background: #28c840;+}++.omnibox {+ margin: 0 auto;display: inline-flex;align-items: center;- gap: 3px;- padding: 0 6px;- height: 24px;- border-radius: 6px;- font-size: 11.5px;- color: var(--ost-fg-2);+ height: 4.6cqh;+ padding: 0 3cqw;+ border-radius: 0.9cqw;+ background: #fff;+ border: 1px solid #e3e7ec;+ color: #5f6b7a;+ font-size: 1.2cqw;}-.transport {- display: flex;- align-items: center;- gap: 10px;+.viewport {+ position: relative;flex: 1;- min-width: 0;- margin-left: 6px;+ overflow: hidden;}-.playBtn {- width: 26px;- height: 26px;- display: grid;- place-items: center;- border-radius: 50%;- background: var(--ost-fg-2);- color: #0a0d12;- flex-shrink: 0;+.page {+ position: absolute;+ left: 0;+ top: 0;+ width: 100%;+ height: auto;+ transform: translateY(calc(var(--page-y) * 1%));+ transition: transform 0.35s var(--ease);}-/* One of the two glyphs, chosen from the ELEMENT's state — the driver writes- `data-playing` off `video.paused`, not off its own intent, because iOS in- Low Power Mode refuses muted inline autoplay and the page cannot override- it. A transport reporting intent would be lying on exactly those devices. */-.playBtn > :last-child,-.transport[data-playing="true"] .playBtn > :first-child {- display: none;+/* 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);+}++.zoomBadge {+ position: absolute;+ top: 12px;+ right: 14px;+ z-index: 7;+ 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;+ 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);}-.transport[data-playing="true"] .playBtn > :last-child {+.zoomBadge svg {display: block;}-.skip {- color: var(--ost-muted);- display: grid;- place-items: center;+/* ═══ THE FLOOR ════════════════════════════════════════════════════════════ */++.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);+}++.transport {+ display: flex;+ align-items: center;+ height: 36px;+ padding: 0 16px;+ border-bottom: 1px solid var(--ost-border-soft);}.time {font-family: var(--ost-font-mono);font-size: 11.5px;- color: var(--ost-fg-2);- white-space: nowrap;- /* Tabular by construction, so a tenth ticking over cannot reflow the rail- beside it. */+ font-weight: 600;+ color: var(--ost-fg);font-variant-numeric: tabular-nums;}.timeTotal {- color: var(--ost-meta);-}--.scrubRail {- position: relative;- flex: 1;- min-width: 0;- height: 4px;- border-radius: 2px;- background: var(--ost-surface-3);+ color: var(--ost-muted);+ font-weight: 500;}-/* Width written by the MEDIA clock. The knob rides its right edge, so the two- are one write, not two. */-.scrubFill {+.floorClip {position: absolute;left: 0;- top: 0;+ right: 0;+ top: 36px;bottom: 0;- width: 43.714%;- border-radius: 2px;- background: var(--ost-surface-hi);+ 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);}-.scrubKnob {+/* The beds belong to the viewport. */+.beds {position: absolute;- right: -5px;- top: 50%;- width: 10px;- height: 10px;- margin-top: -5px;- border-radius: 50%;- background: var(--ost-fg-2);+ inset: 0;}-.kbdHints {- margin-left: auto;+.bed {+ 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;align-items: center;- gap: 10px;- flex-shrink: 0;+ padding: 0 8px;}-.kbdHint {- display: inline-flex;- align-items: center;- gap: 7px;- height: 26px;- padding: 0 10px;- background: var(--ost-surface-1);- border: 1px solid var(--ost-border);- border-radius: 7px;- font-size: 11px;- font-weight: 500;- color: var(--ost-muted);+.bed[data-lane="annotation"] {+ top: 26px;}--.kbd {- font-family: var(--ost-font-mono);- font-size: 10.5px;- font-weight: 600;- color: var(--ost-fg-2);+.bed[data-lane="speed"] {+ top: 46px;+}+.bed[data-lane="trim"] {+ top: 66px;+}+.bed[data-lane="zoom"] {+ top: 86px;+}+.bed[data-lane="cameraFullscreen"] {+ top: 106px;}-/* ── ruler, lanes, clip card ─────────────────────────────────────────────── */+.laneHint {+ font-size: 10px;+ color: var(--ost-meta);+ white-space: nowrap;+}-.floorBody {- position: relative;- flex: 1;- min-height: 0;- display: flex;- flex-direction: column;+/* 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);}-.rulerRow {- position: relative;- flex-shrink: 0;- /* The playhead's head hangs above the line; this is its clearance, not- decoration. `--playhead-head-h` 18 minus `--playhead-head-overshoot` 4. */- padding: 14px 20px 0;- overflow: hidden;+/* The document. One transform carries all of it. */+.strip {+ position: absolute;+ left: 38%;+ top: 0;+ bottom: 0;+ transform: translateX(calc(var(--doc) * var(--k) * -1px));}-/* The minor ticks are ONE `repeating-linear-gradient`, not 84 elements. At a- 1px tick on a 1px-aligned pitch the two renderings are indistinguishable,- and this is the single largest node saving in the design. `--minor` is the- minor pitch as a percentage of the timeline, re-derived per breakpoint- below, exactly as the app re-derives it per zoom level. */.ruler {- position: relative;- height: 28px;- margin-bottom: 6px;- border-bottom: 1px solid var(--ost-border-soft);- background-image: linear-gradient(to right, var(--ost-border) 0 1px, transparent 1px);- background-repeat: repeat-x;- background-size: var(--minor, 0.999176%) 5px;- background-position: 0 0;+ position: absolute;+ left: 0;+ right: 0;+ top: 0;+ height: 22px;}-.tickLabel {+.tick {position: absolute;- top: 12px;- transform: translateX(-50%);+ top: 4px;+ padding-left: 5px;+ border-left: 1px solid var(--ost-border-hi);font-family: var(--ost-font-mono);font-size: 10px;+ line-height: 14px;color: var(--ost-meta);white-space: nowrap;}-/* The major tick the label hangs from. Drawn on the label so it costs no node- of its own. */-.tickLabel::before {- content: "";+.lane {position: absolute;- left: 50%;- top: -12px;- width: 1px;- height: 9px;- background: var(--ost-border-hi);+ left: 0;+ right: 0;+ height: var(--lane-h);}-.tracks {- position: relative;- flex: 1;- min-height: 0;- padding: 0 20px 8px;- overflow: hidden;+.lane[data-lane="annotation"] {+ top: 26px;}--.lane {- position: relative;- height: 24px;- margin-bottom: 5px;- border-radius: 6px;- background: var(--ost-surface-1);- /* The lift's resting half. Recessed and dimmed is the state of a lane that- does not own `t`; nothing owns `t` until the clip plays. */- opacity: 0.5;- transform: scale(0.985);- transform-origin: 50% 50%;- transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;-}--/* Written by the MEDIA clock: the zoom lane is raised because it holds the- region containing `t`, and for no other reason. `zoomRanges[1]` spans- 17.5–24.5 s, which is the whole loop, so it is lit for the whole loop and- dark before playback starts. The lift is information; it is absent when- nothing owns the clock.-- A 2D lift, not the `translateZ(-44px)` the score describes: giving the lanes- real depth means chaining `transform-style: preserve-3d` from `.world`- through `.floor` and `.tracks`, which defeats their `overflow: hidden` and- adds promoted layers inside the world — against this design's own rule about- what may be promoted in there. */-.laneLift {- opacity: 1;- transform: none;- box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--ost-border);+.lane[data-lane="speed"] {+ top: 46px;}--/* `timeline.json` hints.pressAnnotation / pressSpeed / pressCameraFullscreen.- THREE, not four: the trim lane holds two pills, and the app renders a hint- only on a lane with no regions in it. hints.pressZoom and hints.pressTrim- are therefore both absent, and the generator throws if that ever stops- matching the document. */-.laneHint {- position: absolute;- inset: 0;- display: flex;- align-items: center;- justify-content: center;- font-size: 11px;- font-weight: 500;- color: var(--ost-meta);- user-select: none;+.lane[data-lane="trim"] {+ top: 66px;+}+.lane[data-lane="zoom"] {+ top: 86px;+}+.lane[data-lane="cameraFullscreen"] {+ top: 106px;}-/* A `<span>`, not the app's draggable button. */.pill {position: absolute;- top: 1px;- height: 22px;- min-width: 1px;+ top: 0;+ height: var(--lane-h);+ box-sizing: border-box;display: inline-flex;align-items: center;- gap: 5px;- padding: 0 8px 0 7px;- border-radius: 6px;- border: 1.5px solid var(--ost-accent);- background: var(--ost-accent-soft);- color: var(--ost-fg);- font-size: 11px;+ gap: 4px;+ padding: 0 7px;+ border-radius: 5px;+ overflow: hidden;+ font-family: var(--ost-font-mono);+ font-size: 10px;font-weight: 600;white-space: nowrap;- overflow: hidden;- box-sizing: border-box;-}--.pillTrim {- border-color: var(--ost-danger);- background: var(--ost-danger-soft);+ transition:+ opacity 0.35s var(--ease),+ transform 0.35s var(--ease);}.pillGlyph {flex-shrink: 0;}-.clipRow {- position: relative;- height: 66px;- margin-top: 4px;-}--.clipCard {- position: absolute;- top: 0;- bottom: 0;- left: 0;- width: 100%;- border-radius: 11px;- border: 1.5px solid var(--ost-border);- background: var(--ost-surface-1);- overflow: hidden;- box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.06);+/* 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);+ background: var(--ost-accent-soft);+ border: 1.5px solid var(--ost-accent);+ color: var(--ost-accent);+ opacity: var(--on);+ transform: translateY(calc((1 - var(--on)) * -6px));}-/* Opaque, not `backdrop-filter: blur(8px)`. */-.clipChip {- position: absolute;- left: 10px;- top: 8px;- z-index: 2;- display: inline-flex;- align-items: center;- gap: 8px;- max-width: calc(100% - 50px);- padding: 3px 9px 3px 6px;- border-radius: 8px;- background: #0f1216;- border: 1px solid rgba(255, 255, 255, 0.08);+.pillTrim {+ --on: clamp(0, calc(var(--trims-placed) - var(--i)), 1);+ 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));}-.clipChipIcon {- width: 16px;- height: 16px;- display: grid;- place-items: center;- border-radius: 5px;- background: var(--ost-surface);- color: var(--ost-fg);- flex-shrink: 0;+.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));}-.clipChipName {- font-size: 11px;- font-weight: 500;- color: #fff;- white-space: nowrap;+.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;- text-overflow: ellipsis;}-/* 320 bars as five `<path>`s — one per opacity bucket of the app's own- `0.5 + amp*0.5` — instead of 320 `<span>`s. Only three carry bars: this- recording peaks at 0.4787, so the app's formula never exceeds 0.739 and the- top two buckets are empty. That is a property of the audio, not a bug.- `vector-effect: non-scaling-stroke` with `preserveAspectRatio="none"`- reproduces `.tlWave span { max-width: 2px }` at every floor width. */+/* 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%;- padding: 0 2px;- box-sizing: border-box;+ fill: none;+ stroke: var(--ost-accent);+ stroke-width: var(--wave-stroke, 2);}.wave path {- stroke: var(--ost-accent);- stroke-width: 2;- stroke-linecap: round;vector-effect: non-scaling-stroke;}-/* ── playhead ────────────────────────────────────────────────────────────── */--.playheadLayer {- position: absolute;- top: -4px;- left: 0;- right: 0;- bottom: -40px;- padding: 18px 20px 0;- overflow: hidden;- pointer-events: none;- z-index: 6;-}--/* `left` written by the MEDIA clock. 43.714% at rest = 17.5 / 40.033. */.playhead {position: absolute;- top: 0;+ left: 38%;+ top: 26px;bottom: 0;- left: 43.714%;width: 2px;- background: var(--ost-playhead);- border-radius: 1px;- /* The 18px violet halo, kept exactly — a blurred decorative glow measured- free, and it is what keeps a 2px line findable across dark lanes and pale- clip cards alike. */- box-shadow: 0 0 18px var(--ost-playhead-glow);+ transform: translateX(-50%);+ background: linear-gradient(180deg, var(--ost-playhead) 30%, rgba(108, 85, 255, 0.4));+ box-shadow: 0 0 12px var(--ost-playhead-glow);+ z-index: 9;}.playheadHead {position: absolute;- top: 0;left: 50%;- transform: translate(-50%, -100%);- width: 16px;- height: 18px;- box-sizing: border-box;+ top: -12px;+ width: 15px;+ height: 20px;+ transform: translateX(-50%);background: var(--ost-playhead);border-radius: 4px;- clip-path: polygon(0% 0%, 100% 0%, 100% 67%, 50% 100%, 0% 67%);- filter: drop-shadow(0 1px 3px var(--ost-playhead-shadow));-}--/* ── nav strip ───────────────────────────────────────────────────────────── */--.nav {- position: relative;- height: 20px;- margin: 8px 20px 12px;- flex-shrink: 0;- z-index: 7;-}--.navTrack {- position: absolute;- top: 7px;- left: 0;- right: 0;- height: 6px;- border-radius: 3px;- background: var(--ost-surface-3);-}--.navWindow {- position: absolute;- top: 5px;- left: 0;- right: 0;- height: 10px;- border-radius: 5px;- background: var(--ost-surface-hi);- border: 1px solid var(--ost-border-hi);- box-sizing: border-box;-}--/* ═══ RULER BREAKPOINTS ════════════════════════════════════════════════════- Not art direction: the app's own derivation, re-run at the two widths the- floor can be. `TICK_STEPS_SEC.find(s => s * pxPerSec >= MIN_LABEL_GAP_PX)`- with MIN_LABEL_GAP_PX = 76.-- 901–3042px: world 1920 → pxPerSec 47.96 → 2s step (2*47.96 = 95.9 clears 76;- 1*47.96 = 48.0 does not) → 21 labels. Arithmetically identical to- `02-timeline-a.jpg`, which is what 1:1 authoring buys: the recreation- overlaid at 0.8125 on the photograph is a real pixel-level oracle.-- >=3043px: world = the viewport. At 3440, pxPerSec 85.93 → the step- re-derives to 1s → 41 labels. The 20 odd-second labels below are the only- nodes that differ between the two; the 21 even ones are shared. */--.tickOdd {- display: none;-}--@media (min-width: 3043px) {- .ruler {- --minor: 0.499588%;- }-- .tickOdd {- display: block;- }-}--/* ═══ THE COPY ═════════════════════════════════════════════════════════════- Five claims, each an ordinary heading + paragraph + fact line, reused- verbatim from `bands.ts` so they stay one source of words. The scroll only- synchronises to them; it never gates them.-- The section already imposes a test on itself: the page must hold under- `img, video { display: none }`, because the clips carry no sound and no- narration and take WCAG 1.2.1's media-alternative exemption only as long as- the prose says everything the footage says. That test now extends to- `[data-recreation] { display: none }` — which is why this block is ordinary- flow content by default and becomes an overlay only inside the guard. */--.script {- position: relative;- z-index: 3;- max-width: 640px;- margin: 40px auto 0;- padding: 0 28px 40px;-}--/* The card is dark in EVERY state, pinned or in ordinary flow, and every- colour in it is an --ost-* token. It must not read the site's --os-*: those- follow the light/dark toggle, and a light-theme page would put dark text on- this permanently dark card. */-.act {- padding: 18px 22px;- border-radius: 14px;- background: rgba(10, 13, 18, 0.94);- border: 1px solid var(--ost-border);- box-shadow: var(--ost-elev-pop);-}--.act + .act {- margin-top: 20px;+ clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%);+ filter: drop-shadow(0 0 10px var(--ost-playhead-glow));}-.actKicker {- margin: 0;- font-family: var(--ost-font-mono);- font-size: 11px;- letter-spacing: 0.08em;- text-transform: uppercase;- color: var(--ost-accent);-}--.actClaim {- margin: 8px 0 0;- font-size: 20px;- line-height: 1.3;- color: var(--ost-fg-2);-}--.actBody {- margin: 10px 0 0;- font-size: 14.5px;- line-height: 1.55;- color: var(--ost-muted);-}--.actFact {- margin: 10px 0 0;- font-family: var(--ost-font-mono);- font-size: 11.5px;- color: var(--ost-muted);-}+/* ═══ THE FIGCAPTION ═══════════════════════════════════════════════════════+ What the picture above actually is, in ordinary flow under the band. */.figcaption {- margin: 20px 0 0;- padding: 10px 22px 12px;- border-radius: 12px;- background: rgba(10, 13, 18, 0.94);- border: 1px solid var(--ost-border);- font-family: var(--ost-font-mono);- font-size: 11px;+ max-width: 78ch;+ margin: 26px auto 0;+ padding: 0 4px;+ font-size: 12.5px;line-height: 1.6;- color: var(--ost-muted);-}--/* ═══ THE SCROLL CLOCK ═════════════════════════════════════════════════════- Everything from here to the print block is the scroll clock, and nothing- outside it is. */--@media (prefers-reduced-motion: no-preference) {- @supports (animation-timeline: view()) {- /* Hoisted so an element buried inside the clipping sticky stage can- consume a timeline declared on its non-sticky ancestor. This is the- only recipe measured to work through a sticky, overflow:hidden- ancestor. `scroll(nearest)` is unusable: the stage's own- overflow:hidden makes it a scroll container and the timeline then- reports duration 0% and progress null forever. Bare `view()` is- unusable: the subject never leaves the viewport, so progress- saturates at 1 across the whole band. */- :global(body) {- timeline-scope: --os-cam;- }-- .band {- height: 500vh;- view-timeline: --os-cam block;- }-- .world {- /* The `animation` shorthand MUST come first. Written after- `animation-timeline`, the shorthand silently resets the timeline to- the DocumentTimeline: the animation still plays, on wall-clock, and- looks like "the scroll driver is broken" with nothing in the- console. */- animation: os-cam linear both;- animation-timeline: --os-cam;- /* Not optional. Without it the default `cover` range spends ~14% of- the animation before the stage is pinned and ~14% after. `contain`- walks 0 → 1 exactly over the pinned scroll. */- animation-range: contain 0% contain 100%;- }-- /* The copy becomes the overlay it is in the score: pinned bottom-left,- five blocks in one grid cell, cross-fading act by act. The negative- margin cancels the sticky stage's own flow height so the panel's- sticky range covers the whole band. */- /* The panel is a full-height sticky box laid over the stage with its- content pushed to the bottom (`align-content: end`), rather than a card- pinned at a hand-picked offset. The five acts are different heights;- a fixed offset sized to the tallest overflows the fold on the shortest- viewport, and a `bottom`-sticky box never engages at all because its- flow position is already above the viewport. A bottom-aligned box of- exactly the stage's height cannot do either.-- The negative margin cancels the sticky stage's own flow height, so the- panel's sticky range covers the whole band rather than starting a- viewport in. */- .script {- position: sticky;- top: 60px;- height: calc(100svh - 60px);- box-sizing: border-box;- margin: calc(-100svh + 60px) 0 0 0;- padding: 0 0 36px 32px;- width: 432px;- max-width: none;- display: grid;- grid-template-rows: auto auto;- align-content: end;- /* Decoration only where it overlaps the world: the reader's pointer- belongs to the page, not to a card that is drawn over a picture. */- pointer-events: none;- }-- /* All five in one cell, bottom-aligned so the shortest act does not leave- a hole under itself while the tallest sets the row. */- .act {- grid-row: 1;- grid-column: 1;- align-self: end;- margin: 0;- }-- /* No text on this page sits on video or on a wallpaper: contrast against- a picture cannot be computed, and this picture runs from near-black- chrome to a white page inside the canvas. Hence the opaque card in the- base cascade, which this only repositions. */- .figcaption {- grid-row: 2;- grid-column: 1;- margin: 10px 0 0;- }-- /* Act I is the resting copy and is already visible at progress 0; it only- leaves. Every other act arrives and leaves.-- `animation-fill-mode: both, forwards` is load-bearing: with `both` on- the second animation its backwards fill (opacity 1) would apply from- progress 0 and cancel the arrival it is paired with. */- .act1,- .act2,- .act3,- .act4,- .act5 {- animation-timing-function: linear;- animation-timeline: --os-cam;- }-- .act1 {- animation-name: os-fadeout;- animation-fill-mode: forwards;- animation-range: contain 16% contain 18%;- }-- .act2,- .act3,- .act4 {- animation-fill-mode: both, forwards;- animation-timeline: --os-cam, --os-cam;- }-- .act2 {- animation-name: os-fade, os-fadeout;- animation-range: contain 18% contain 21%, contain 38% contain 40%;- }-- .act3 {- animation-name: os-fade, os-fadeout;- animation-range: contain 40% contain 43%, contain 70% contain 72%;- }-- .act4 {- animation-name: os-fade, os-fadeout;- animation-range: contain 72% contain 75%, contain 88% contain 90%;- }-- .act5 {- animation-name: os-fade;- animation-fill-mode: both;- animation-range: contain 90% contain 93%;- }-- .act2,- .act3,- .act4,- .act5 {- opacity: 0;- }-- /* ── the four state changes, in the tool call's own causal order ──- Same timeline, own ranges, never on the camera. */-- /* (a) 53–55%: the app's real empty state leaves. The base cascade already- has it at opacity 0 — this animation supplies the visible half and- ends exactly where the base state already was. */- .emptyChat {- animation: os-fadeout linear both;- animation-timeline: --os-cam;- animation-range: contain 53% contain 55%;- }-- /* (b) 54–57%: the YOU message arrives, carrying AI_ENHANCE_PROMPT. */- .msgUser {- animation: os-fade linear both;- animation-timeline: --os-cam;- animation-range: contain 54% contain 57%;- }-- /* (c) 57–64%: the reply reveals top-down, because the app streams tokens- and a top-down reveal is what arriving text looks like. */- .msgAgent {- animation: os-reveal linear both;- animation-timeline: --os-cam;- animation-range: contain 57% contain 64%;- }-- /* (d) 65–68%: the two trim pills scale in from their left edges. The- leading one spans 0–2.19 s — world x 0–105, directly below the chat- column and in the same frame as the sentence that ordered it. */- .pillTrim {- animation: os-popin linear both;- animation-timeline: --os-cam;- animation-range: contain 65% contain 68%;- transform-origin: left center;- }-- /* (e) 69–71%: the applied line. It lands AFTER the pills, because it is- the tool call's report OF them. */- .applied {- animation: os-fade linear both;- animation-timeline: --os-cam;- animation-range: contain 69% contain 71%;- }-- /* 93–94%: the two silences inside a trim flip, in one step. The 0.2 s- marker at 27.09–27.32 s does NOT flip: the agent was asked for- silences over a second, and two-tenths is not one. Same panel, one- scroll later, one thing changed.-- `steps(1)` over a 1% range makes it instantaneous rather than smeared:- `font-weight` and `text-decoration` cause layout, and one layout event- is affordable where sixty are not. It is the only non-composited- animated property in the design and it lives on two elements. */- .silCut {- animation: os-cut steps(1) both;- animation-timeline: --os-cam;- animation-range: contain 93% contain 94%;- }- }-}--/* ═══ THE CAMERA ═══════════════════════════════════════════════════════════- Two invariants, and they are why this is cheap:-- 1. translateZ is NEVER positive. The camera pulls back; it never pushes in.- 2. Every rest stop is identity rotation and translateZ 0, so the reader- always reads at exactly 1:1.-- Composed magnification, computed per keyframe against the 1805px- perspective: 8deg/-180 → 0.9749; 11deg/-120 → 1.0363; 8deg pitch/-160 →- 0.9656; 6deg yaw + 5deg pitch/-160 → 0.9680; every rest stop → 1.0000.- Assert it: sample `world.getBoundingClientRect().width / world.offsetWidth`- at 25 points across the sweep and fail if max > 1.05.-- The x values are the world offsets of the four objects the camera visits.- The inspector's is -728, not the -790 the score names: `.inspectorWrap` is- `right: 20px` with the panel FIRST and the rail second, which puts the- 300px panel at world x 1538–1838 (centre 1688, world centre 960). */--@keyframes os-cam {- /* I — arrive, then rest on the inspector */- 0% {- transform: translate3d(-728px, 177px, -180px) rotateY(-8deg) rotateX(4deg);- }- 8%,- 18% {- transform: translate3d(-728px, 177px, 0px);- }- /* II — swing right-to-left onto the preview frame (scene cx 1156) */- 24% {- transform: translate3d(-462px, 177px, -120px) rotateY(11deg);- }- 30%,- 40% {- transform: translate3d(-196px, 178px, 0px);- }- /* III — swing left-to-right onto the chat column (scene cx 196) */- 46% {- transform: translate3d(284px, 177px, -120px) rotateY(-11deg);- }- 52%,- 72% {- transform: translate3d(764px, 177px, 0px);- }- /* IV — drop and pitch onto the floor (world cy 1199) */- 76% {- transform: translate3d(382px, -167px, -160px) rotateY(-5deg) rotateX(8deg);- }- 80%,- 90% {- transform: translate3d(0px, -511px, 0px);- }- /* V — lift back to the framing Act I opened on */- 94% {- transform: translate3d(-364px, -167px, -160px) rotateY(6deg) rotateX(-5deg);- }- 100% {- transform: translate3d(-728px, 177px, 0px);- }-}--@keyframes os-fade {- from {- opacity: 0;- }- to {- opacity: 1;- }-}--@keyframes os-fadeout {- from {- opacity: 1;- }- to {- opacity: 0;- }-}--@keyframes os-reveal {- from {- clip-path: inset(0 0 100% 0);- opacity: 0.6;- }- to {- clip-path: inset(0);- opacity: 1;- }-}--@keyframes os-popin {- from {- opacity: 0;- transform: scaleX(0.06);- }- to {- opacity: 1;- transform: scaleX(1);- }-}--@keyframes os-cut {- 0% {- border-style: dashed;- border-color: var(--ost-border-hi);- background: transparent;- color: var(--ost-muted);- font-weight: 500;- text-decoration-line: none;- }- 100% {- border-style: solid;- border-color: var(--ost-danger);- background: var(--ost-danger-soft);- color: var(--ost-danger);- font-weight: 600;- text-decoration-line: line-through;- }-}--/* ═══ PRINT ════════════════════════════════════════════════════════════════ */--@media print {- .band {- height: auto;- }-- .stage {- position: static;- height: auto;- overflow: visible;- perspective: none;- background: none;- }-- .world {- position: static;- width: 100%;- height: auto;- margin: 0;- transform: none !important;- animation: none !important;- }-- .clip,- .cursor {- display: none;- }-- .script {- position: static;- display: block;- width: auto;- max-width: none;- margin: 24px 0 0;- }-- .act {- opacity: 1 !important;- animation: none !important;- break-inside: avoid;- }-- /* The four state changes resolve to their closing values, which is what the- base cascade already holds. Naming every animated selector at matching- specificity is the point: `@supports` contributes no specificity, so a- block naming only some of them loses silently while looking correct. */- .emptyChat,- .msgUser,- .msgAgent,- .pillTrim,- .applied,- .silCut {- animation: none !important;- clip-path: none !important;- transform: none !important;- }+ color: var(--os-muted);+ text-align: center;}diff --git a/website/src/components/Walkthrough/bands.ts b/website/src/components/Walkthrough/bands.tsindex 7b714eaa3..7dc052a98 100644--- a/website/src/components/Walkthrough/bands.ts+++ b/website/src/components/Walkthrough/bands.ts@@ -142,12 +142,9 @@ export const BANDS: Band[] = [media: {image: `${IMG}/04-agent-a.jpg`,imageSm: `${IMG}/04-agent-sm-a.jpg`,- scrub: {- clip: `${VID}/04-agent-scrub.mp4`,- clipSm: `${VID}/04-agent-sm-scrub.mp4`,- seconds: 2.75,- frames: 56,- },+ // No scrub clip: this band is `display: none` at >=901px, where the+ // recreation tells the same claim, and scrubbing is off below it. The+ // two files could never be fetched by anyone, so they are not shipped.width: 960,height: 540,widthSm: 640,@@ -185,7 +182,8 @@ export const BANDS: Band[] = [heightSm: 360,seconds: 3.2,alt: "The export dialog with MP4 chosen over GIF, 720p at 1280 by 720 chosen from a row offering 1080p and Source as well, 30 chosen from a row offering 24 and 60, and H.264 chosen over H.265.",- resultAlt: "The same dialog a moment into the render: a progress bar part-filled at fourteen per cent, and a line under it counting 134 of 988 frames with an estimate of eighteen seconds left.",+ resultAlt:+ "The same dialog a moment into the render: a progress bar part-filled at fourteen per cent, and a line under it counting 134 of 988 frames with an estimate of eighteen seconds left.",},},];diff --git a/website/src/components/Walkthrough/index.tsx b/website/src/components/Walkthrough/index.tsxindex 2cb3078ea..26ca93da1 100644--- a/website/src/components/Walkthrough/index.tsx+++ b/website/src/components/Walkthrough/index.tsx@@ -1,6 +1,5 @@-import { useEffect, useRef, useState } from "react";-import Head from "@docusaurus/Head";+import { useEffect, useRef, useState } from "react";import Recreation from "../Recreation";import { BANDS, type Band } from "./bands";@@ -72,10 +71,7 @@ function ScrubBand({ band }: { band: Band }) {><Copy band={band} /><figure className={styles.figure}>- <div- className={styles.frame}- style={{ aspectRatio: `${media.width} / ${media.height}` }}- >+ <div className={styles.frame} style={{ aspectRatio: `${media.width} / ${media.height}` }}><picture><source media="(max-width: 780px)" srcSet={media.imageSm} /><img@@ -209,15 +205,8 @@ function BandView({ band, ctl }: { band: Band; ctl: BandPlayback }) {landscape phone is taller than the viewport, so its intersectionratio cannot reach the threshold at all and the clip never startshowever long the reader sits on it. The figure always fits. */}- <figure- className={styles.figure}- ref={ctl.registerBand(band.id)}- data-band-id={band.id}- >- <div- className={styles.frame}- style={{ aspectRatio: `${media.width} / ${media.height}` }}- >+ <figure className={styles.figure} ref={ctl.registerBand(band.id)} data-band-id={band.id}>+ <div className={styles.frame} style={{ aspectRatio: `${media.width} / ${media.height}` }}><picture><source media="(max-width: 780px)" srcSet={stillSm} /><img@@ -304,7 +293,6 @@ function Copy({ band }: { band: Band }) {export default function Walkthrough() {const ctl = useBandPlayback();- const scrubbing = useScrubEnabled();const Tag = upgradedTag(ctl.hydrated);return (@@ -362,9 +350,9 @@ export default function Walkthrough() {file rather than an art director. */}<p className={styles.deck}>No sound, no narration. The photographs are the running application, unretouched. The- editor you scroll through is drawn live from the same design tokens the app ships,- around real footage of the recording it is editing — and every label in it is read out- of the project file rather than typed by hand.+ editor you scroll through is drawn live from the design tokens the app ships, around a+ real capture of the page it was recording — and every label, timecode, slider and pill+ in it is read out of the project file rather than typed by hand.</p><div className={styles.controls}>@@ -384,8 +372,7 @@ export default function Walkthrough() {// Turning it off has to stop the clip that is running and// the one that is 400ms from starting, or the control// reports a state the page has not entered.- onClick: () =>- ctl.autoplay ? ctl.stopAutoplay() : ctl.setAutoplay(true),+ onClick: () => (ctl.autoplay ? ctl.stopAutoplay() : ctl.setAutoplay(true)),}: { "aria-hidden": true })}>@@ -410,9 +397,17 @@ export default function Walkthrough() {{BANDS.filter((b) => b.index === "01").map((band) => (<BandView key={band.id} band={band} ctl={ctl} />))}+ </div>- <Recreation />+ {/* Outside `.inner` on purpose: the recreation is the one block on+ this page that wants the whole viewport. Boxed into the 1040px+ measure it has to draw a whole editor at a third of its natural+ size, which is what made the previous cut read as a diagram of an+ application rather than a picture of one. Everything else on the+ page keeps the measure. */}+ <Recreation />+ <div className={styles.inner}><div className={styles.superseded}>{BANDS.filter((b) => ["02", "03", "04"].includes(b.index)).map((band) =>band.media?.scrub ? (diff --git a/website/src/components/Walkthrough/styles.module.css b/website/src/components/Walkthrough/styles.module.cssindex 904c195fd..56c4451df 100644--- a/website/src/components/Walkthrough/styles.module.css+++ b/website/src/components/Walkthrough/styles.module.css@@ -61,13 +61,19 @@/* ---- section ---- */+/* The gutter lives on `.inner`, not on the section, so the recreation — which+ is a sibling of the two `.inner` blocks rather than a child of one — can use+ the whole viewport width. A stage boxed into the 1040px measure has to draw a+ full editor at a third of its natural size, which is what made the previous+ cut read as a diagram of an application rather than a picture of one. */.walkthrough {- padding: 0 28px 96px;+ padding: 0 0 96px;}.inner {- max-width: 1040px;+ max-width: 1096px;margin: 0 auto;+ padding: 0 28px;}/* Visible only on focus. A marketing page with five media blocks is a long waydiff --git a/website/static/img/walkthrough/canvas-bg-a.jpg b/website/static/img/walkthrough/canvas-bg-a.jpgnew file mode 100644index 000000000..fe2fce2e2Binary files /dev/null and b/website/static/img/walkthrough/canvas-bg-a.jpg differdiff --git a/website/static/img/walkthrough/canvas-bg-b.jpg b/website/static/img/walkthrough/canvas-bg-b.jpgnew file mode 100644index 000000000..afeaff74cBinary files /dev/null and b/website/static/img/walkthrough/canvas-bg-b.jpg differdiff --git a/website/static/img/walkthrough/canvas-poster.jpg b/website/static/img/walkthrough/canvas-poster.jpgdeleted file mode 100644index 4e3a4d68b..000000000Binary files a/website/static/img/walkthrough/canvas-poster.jpg and /dev/null differdiff --git a/website/static/img/walkthrough/fixture-page.jpg b/website/static/img/walkthrough/fixture-page.jpgnew file mode 100644index 000000000..ebdb03087Binary files /dev/null and b/website/static/img/walkthrough/fixture-page.jpg differdiff --git a/website/static/img/walkthrough/wp-01.jpg b/website/static/img/walkthrough/wp-01.jpgnew file mode 100644index 000000000..3b807fdfdBinary files /dev/null and b/website/static/img/walkthrough/wp-01.jpg differdiff --git a/website/static/img/walkthrough/wp-02.jpg b/website/static/img/walkthrough/wp-02.jpgnew file mode 100644index 000000000..371cc69a6Binary files /dev/null and b/website/static/img/walkthrough/wp-02.jpg differdiff --git a/website/static/img/walkthrough/wp-03.jpg b/website/static/img/walkthrough/wp-03.jpgnew file mode 100644index 000000000..49d9191e5Binary files /dev/null and b/website/static/img/walkthrough/wp-03.jpg differdiff --git a/website/static/img/walkthrough/wp-04.jpg b/website/static/img/walkthrough/wp-04.jpgnew file mode 100644index 000000000..169dd84b8Binary files /dev/null and b/website/static/img/walkthrough/wp-04.jpg differdiff --git a/website/static/img/walkthrough/wp-05.jpg b/website/static/img/walkthrough/wp-05.jpgnew file mode 100644index 000000000..bc4e93b4aBinary files /dev/null and b/website/static/img/walkthrough/wp-05.jpg differdiff --git a/website/static/img/walkthrough/wp-06.jpg b/website/static/img/walkthrough/wp-06.jpgnew file mode 100644index 000000000..b11145bf4Binary files /dev/null and b/website/static/img/walkthrough/wp-06.jpg differdiff --git a/website/static/img/walkthrough/wp-07.jpg b/website/static/img/walkthrough/wp-07.jpgnew file mode 100644index 000000000..0fd5b38bfBinary files /dev/null and b/website/static/img/walkthrough/wp-07.jpg differdiff --git a/website/static/img/walkthrough/wp-08.jpg b/website/static/img/walkthrough/wp-08.jpgnew file mode 100644index 000000000..7380ffbb9Binary files /dev/null and b/website/static/img/walkthrough/wp-08.jpg differdiff --git a/website/static/img/walkthrough/wp-09.jpg b/website/static/img/walkthrough/wp-09.jpgnew file mode 100644index 000000000..baa49c974Binary files /dev/null and b/website/static/img/walkthrough/wp-09.jpg differdiff --git a/website/static/img/walkthrough/wp-10.jpg b/website/static/img/walkthrough/wp-10.jpgnew file mode 100644index 000000000..67f011b61Binary files /dev/null and b/website/static/img/walkthrough/wp-10.jpg differdiff --git a/website/static/img/walkthrough/wp-11.jpg b/website/static/img/walkthrough/wp-11.jpgnew file mode 100644index 000000000..3ddae52c0Binary files /dev/null and b/website/static/img/walkthrough/wp-11.jpg differdiff --git a/website/static/img/walkthrough/wp-12.jpg b/website/static/img/walkthrough/wp-12.jpgnew file mode 100644index 000000000..fcb82f393Binary files /dev/null and b/website/static/img/walkthrough/wp-12.jpg differdiff --git a/website/static/img/walkthrough/wp-13.jpg b/website/static/img/walkthrough/wp-13.jpgnew file mode 100644index 000000000..cfeb50f66Binary files /dev/null and b/website/static/img/walkthrough/wp-13.jpg differdiff --git a/website/static/img/walkthrough/wp-14.jpg b/website/static/img/walkthrough/wp-14.jpgnew file mode 100644index 000000000..c4b8e0a6bBinary files /dev/null and b/website/static/img/walkthrough/wp-14.jpg differdiff --git a/website/static/img/walkthrough/wp-15.jpg b/website/static/img/walkthrough/wp-15.jpgnew file mode 100644index 000000000..ea949b1d9Binary files /dev/null and b/website/static/img/walkthrough/wp-15.jpg differdiff --git a/website/static/img/walkthrough/wp-16.jpg b/website/static/img/walkthrough/wp-16.jpgnew file mode 100644index 000000000..7a3182474Binary files /dev/null and b/website/static/img/walkthrough/wp-16.jpg differdiff --git a/website/static/img/walkthrough/wp-17.jpg b/website/static/img/walkthrough/wp-17.jpgnew file mode 100644index 000000000..effce8113Binary files /dev/null and b/website/static/img/walkthrough/wp-17.jpg differdiff --git a/website/static/img/walkthrough/wp-18.jpg b/website/static/img/walkthrough/wp-18.jpgnew file mode 100644index 000000000..5dfc629dbBinary files /dev/null and b/website/static/img/walkthrough/wp-18.jpg differdiff --git a/website/static/video/04-agent-scrub.mp4 b/website/static/video/04-agent-scrub.mp4deleted file mode 100644index 657c955bb..000000000Binary files a/website/static/video/04-agent-scrub.mp4 and /dev/null differdiff --git a/website/static/video/04-agent-sm-scrub.mp4 b/website/static/video/04-agent-sm-scrub.mp4deleted file mode 100644index d4dad856d..000000000Binary files a/website/static/video/04-agent-sm-scrub.mp4 and /dev/null differdiff --git a/website/static/video/canvas-loop-sm.mp4 b/website/static/video/canvas-loop-sm.mp4deleted file mode 100644index 892d573d2..000000000Binary files a/website/static/video/canvas-loop-sm.mp4 and /dev/null differdiff --git a/website/static/video/canvas-loop.mp4 b/website/static/video/canvas-loop.mp4deleted file mode 100644index 56478e6f6..000000000Binary files a/website/static/video/canvas-loop.mp4 and /dev/null differ