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): the editor, redrawn live and walked through by the scroll
Etienne Lescotf14b0cd41353
diff --git a/website/scripts/gen-recreation.mjs b/website/scripts/gen-recreation.mjsnew file mode 100644index 000000000..b1e17584e--- /dev/null+++ b/website/scripts/gen-recreation.mjs@@ -0,0 +1,1020 @@+#!/usr/bin/env node+/**+ * Emits the data the scroll-driven editor recreation renders.+ *+ * The recreation draws the app's chrome in live DOM. Every string and every+ * number it shows has to come from the same place the app gets it, or the page+ * becomes a drawing of the product that drifts away from it silently — which is+ * exactly what got the previous mock deleted. So nothing here is typed by hand+ * that can be read or computed instead:+ *+ * - locale strings come from `src/i18n/locales/en/*.json`, through a `t()`+ * that throws on a missing key and on an unresolved `{{interpolation}}`;+ * - timecodes come from `formatSec` / `formatMs`, IMPORTED from+ * `src/lib/ai-edition/timeline/format.ts`. A reimplementation is not a+ * shortcut, it is the bug: a floor/remainder version renders `0:60.0` at+ * 59.96 where the real one renders `1:00.0`, which is the carry defect that+ * file's header documents as fixed. It does not bite a 40.033 s fixture,+ * and that is what makes it dangerous;+ * - zoom pill labels come from `effectiveZoomScale` / `ZOOM_DEPTH_SCALES`,+ * imported from `zoom-scale.ts`. Three parts of the app each invented their+ * own factor for depth 3 and all three were wrong; a hand-typed "1.8×"+ * re-commits that bug in public and permanently;+ * - the transcript flow — silence insertion, kept/removed tagging, trim runs+ * — is produced by the app's own `buildClipSection`, imported from+ * `aggregated-transcript.ts`;+ * - the ruler step, the ruler label format and the waveform bar arithmetic are+ * extracted, as source text, out of `V4Timeline.tsx` and evaluated. That+ * file cannot be imported (it reaches Zustand, Radix and the `@/` alias),+ * so the next best thing is to run its actual expressions rather than a+ * paraphrase of them.+ *+ * Node 22 imports those `.ts` files directly, with no flags and no config+ * (22.18+ strips types by default). The one thing it will not do is resolve the+ * app's extensionless relative specifiers, so a resolve hook adds `.ts` — see+ * `registerHooks` below.+ *+ * USAGE+ * node scripts/gen-recreation.mjs # emit generated.ts from the vendored fixture+ * node scripts/gen-recreation.mjs --check # emit nowhere; fail if the checked-in file differs+ * node scripts/gen-recreation.mjs --vendor # re-read the .openscreen document + decode the+ * # recording's audio, rewriting fixture-slim.json.+ * # Needs the app's Application Support directory and+ * # ffmpeg; run it on a machine that has the project.+ * node scripts/gen-recreation.mjs --media # re-cut static/video/canvas-loop{,-sm}.mp4 and+ * # static/img/walkthrough/canvas-poster.jpg. Needs+ * # ffmpeg and the recording. Same caveat.+ *+ * `--check` is the mode CI runs. It must work from a clean checkout with no+ * ffmpeg and no Application Support directory, which is the whole reason+ * `fixture-slim.json` is vendored at all.+ */++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 { dirname, resolve } from "node:path";+import { fileURLToPath, pathToFileURL } from "node:url";++// ── where everything lives ──────────────────────────────────────────────+const HERE = dirname(fileURLToPath(import.meta.url));+const WEBSITE = resolve(HERE, "..");+const APP = resolve(WEBSITE, "..");+const OUT_DIR = resolve(WEBSITE, "src/components/Recreation");+const FIXTURE = resolve(OUT_DIR, "fixture-slim.json");+const GENERATED = resolve(OUT_DIR, "generated.ts");++const ARGS = new Set(process.argv.slice(2));+const CHECK = ARGS.has("--check");++/** The document this page is a recreation of. Outside the repo on purpose: it is+ * a real project file in the app's own store, and `--vendor` slims it in. */+const DOC_PATH = resolve(+ homedir(),+ "Library/Application Support/Openscreen/projects/proj_97e2ec4f-78a1-4198-9743-05511c204daa.openscreen",+);+/** The recording that document edits. 8 MB; never vendored, only sampled. */+const RECORDING = resolve(+ homedir(),+ "Library/Application Support/openscreen/recordings/recording-1786032000000.mp4",+);+const FFMPEG = process.env.FFMPEG ?? "ffmpeg";++const SCHEMA_VERSION = 7;++// ── importing the app's TypeScript directly ─────────────────────────────+// The app writes `import { trimAppliesToClip } from "./trim-mapping"` —+// extensionless, which the bundler resolves and Node's ESM resolver does not.+// Rather than copy the functions (the thing this generator exists to avoid),+// teach the resolver the same rule the bundler uses.+registerHooks({+ resolve(specifier, context, nextResolve) {+ if (specifier.startsWith(".") && !/\.[cm]?[jt]sx?$/.test(specifier)) {+ const candidate = new URL(`${specifier}.ts`, context.parentURL);+ if (existsSync(fileURLToPath(candidate))) {+ return { url: candidate.href, shortCircuit: true };+ }+ }+ return nextResolve(specifier, context);+ },+});++const appModule = (rel) => import(pathToFileURL(resolve(APP, rel)).href);++const { formatSec, formatMs } = await appModule("src/lib/ai-edition/timeline/format.ts");+const { effectiveZoomScale, ZOOM_DEPTH_SCALES } = await appModule(+ "src/lib/ai-edition/timeline/zoom-scale.ts",+);+const { buildClipSection, isSilenceWord, SILENCE_THRESHOLD_SEC } = await appModule(+ "src/lib/ai-edition/timeline/aggregated-transcript.ts",+);++// ── 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") };++/**+ * `t("settings:transcript.silence", { duration: "2.2" })`.+ *+ * Throws on a missing key and on a `{{placeholder}}` left in the result. A+ * renamed key must break the build here rather than ship "transcript.title" as+ * a heading, and a renamed *placeholder* must break it too — that failure is+ * silent in the app (i18next leaves the token in place) and would be invisible+ * on a marketing page nobody reads with a translator's eye.+ */+function t(path, vars = {}) {+ const [ns, key] = path.split(":");+ let node = LOCALES[ns];+ if (!node) throw new Error(`unknown locale namespace ${ns}`);+ for (const part of key.split(".")) {+ node = node?.[part];+ if (node === undefined) throw new Error(`missing locale key ${path}`);+ }+ if (typeof node !== "string") throw new Error(`locale key ${path} is not a string`);+ const out = node.replace(/\{\{(\w+)\}\}/g, (m, name) => {+ 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)}`);+ return out;+}++// ── expressions lifted out of V4Timeline.tsx ────────────────────────────+// That file is 1,600 lines of Zustand, Radix and `@/` imports, so it cannot be+// 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",+);++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`);+ return m[1];+}++const TICK_STEPS_SEC = JSON.parse(+ `[${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"));+const AI_ENHANCE_PROMPT = JSON.parse(+ lift(/const AI_ENHANCE_PROMPT =\s*\n?\s*("(?:[^"\\]|\\.)*")/, "AI_ENHANCE_PROMPT"),+);++/** The ruler's label formatter, run rather than paraphrased. */+const fmtTick = new Function(+ `${lift(/(function fmtTick\(sec: number, stepSec: number\): string \{[\s\S]*?\n\})/, "fmtTick")+ .replace(/: number/g, "")+ .replace(/\): string/, ")")}; return fmtTick;`,+)();++/** ClipWaveform's three expressions, in its own words. */+const waveBarCount = new Function(+ "sourceStartSec",+ "sourceEndSec",+ `return ${lift(/const barCount = ([^;]+);/, "waveform barCount")};`,+);+const waveBarHeightPct = new Function(+ "h",+ `return ${lift(/height: `\$\{([^}]+)\}%`/, "waveform bar height")};`,+);+const waveBarOpacity = new Function(+ "h",+ `return ${lift(/opacity: ([^,\n]+),\n/, "waveform bar opacity")};`,+);++// ── the fixture ─────────────────────────────────────────────────────────+if (ARGS.has("--vendor")) vendorFixture();++const doc = JSON.parse(readFileSync(FIXTURE, "utf8"));+if (doc.schemaVersion !== SCHEMA_VERSION) {+ throw new Error(`fixture schemaVersion ${doc.schemaVersion}, expected ${SCHEMA_VERSION}`);+}++/**+ * Slim the real project document into the repo.+ *+ * Kept: everything the recreation reads, in its stored shape, so the vendored+ * copy is still a schemaVersion-7 document and the guard's `schemaVersion`+ * assertion means something. Dropped: `transcripts[]` (a byte-for-byte+ * duplicate of `transcript`) and `transcript.segments` (103 single-word+ * segments that restate `transcript.words`; the pane reads `words`, and the+ * schema defaults `segments` to `[]`). That is half the file for nothing.+ *+ * Added: `vendoredWaveform`, which is NOT part of schemaVersion 7 and is+ * namespaced so it reads as an intruder. The waveform is a property of the+ * recording's audio, the recording is 8 MB and lives outside the repo, and the+ * generator has to run in CI without it — so its 320 decoded amplitudes are+ * vendored beside the document for exactly the reason the document itself is.+ */+function vendorFixture() {+ const full = JSON.parse(readFileSync(DOC_PATH, "utf8"));+ if (full.schemaVersion !== SCHEMA_VERSION) {+ throw new Error(`document schemaVersion ${full.schemaVersion}, expected ${SCHEMA_VERSION}`);+ }+ const slim = {+ schemaVersion: full.schemaVersion,+ project: full.project,+ assets: full.assets,+ transcript: {+ assetId: full.transcript.assetId,+ language: full.transcript.language,+ words: full.transcript.words,+ },+ timeline: full.timeline,+ annotations: full.annotations,+ zoomRanges: full.zoomRanges,+ legacyEditor: full.legacyEditor,+ vendoredWaveform: decodePeaks(full.assets[0]),+ };+ writeFileSync(FIXTURE, `${JSON.stringify(slim, null, "\t")}\n`);+ console.log(`vendored ${FIXTURE}`);+}++/**+ * The 320 bar amplitudes the app's clip card draws.+ *+ * `audioPeaksWorker.ts` is a Web Worker whose only entry point is+ * `self.onmessage`, so it cannot be imported the way `format.ts` can. Its block+ * arithmetic is reproduced here — the one piece of app logic this file+ * duplicates rather than runs, and the reason it is written out in full instead+ * of summarised. Everything downstream of it (bar count, bar height, bar+ * opacity) is lifted from V4Timeline.tsx and evaluated, not retyped.+ */+function decodePeaks(asset) {+ const pcm = execFileSync(+ FFMPEG,+ ["-v", "error", "-i", RECORDING, "-vn", "-ac", "2", "-ar", "48000", "-f", "f32le", "-"],+ { maxBuffer: 1 << 30, encoding: "buffer" },+ );+ const interleaved = new Float32Array(+ pcm.buffer.slice(pcm.byteOffset, pcm.byteOffset + pcm.byteLength),+ );+ const frames = interleaved.length / 2;+ const duration = frames / 48000;++ // audioPeaksWorker.ts: N blocks of min/max over the channel-averaged signal.+ const N = Math.min(24000, Math.ceil(duration * 200));+ const blockSize = frames / N;+ const peaks = new Float32Array(N * 2);+ for (let i = 0; i < N; i++) {+ const start = Math.floor(i * blockSize);+ const end = Math.floor((i + 1) * blockSize);+ let minVal = 0;+ let maxVal = 0;+ for (let j = start; j < end; j++) {+ const sample = (interleaved[j * 2] + interleaved[j * 2 + 1]) / 2;+ if (sample < minVal) minVal = sample;+ if (sample > maxVal) maxVal = sample;+ }+ peaks[i * 2] = minVal;+ peaks[i * 2 + 1] = maxVal;+ }++ // V4Timeline.tsx ClipWaveform: reduce the blocks to one amplitude per bar.+ const durationSec = asset.durationSec;+ const barCount = waveBarCount(0, durationSec);+ const blocksPerSec = N / durationSec;+ const endBlock = Math.min(N, Math.ceil(durationSec * blocksPerSec));+ const rangeBlocks = Math.max(1, endBlock);+ const amps = [];+ for (let i = 0; i < barCount; i++) {+ const blockStart = Math.floor((i / barCount) * rangeBlocks);+ const blockEnd = Math.max(blockStart + 1, Math.floor(((i + 1) / barCount) * rangeBlocks));+ let amp = 0;+ for (let b = blockStart; b < blockEnd && b < N; b++) {+ amp = Math.max(amp, Math.abs(peaks[b * 2]), Math.abs(peaks[b * 2 + 1]));+ }+ amps.push(Number(amp.toFixed(4)));+ }+ return {+ note: "NOT schemaVersion 7. Decoded from the asset's audio track by scripts/gen-recreation.mjs --vendor; vendored because the recording is not in this repo.",+ source: asset.originalPath.replace(/^.*\//, ""),+ sampleRateHz: 48000,+ blocks: N,+ barCount,+ amps,+ };+}++// ── the pieces of the document the recreation draws ─────────────────────+const asset = doc.assets[0];+const clip = doc.timeline.clips[0];+const totalSec = asset.durationSec;+const trims = doc.timeline.trimRanges;++const section = buildClipSection(clip, { ...doc.transcript, segments: [] }, asset, trims);++const pct = (sec) => Number(((sec / totalSec) * 100).toFixed(4));++// ── transcript ──────────────────────────────────────────────────────────+// `buildClipSection` has already inserted the silence pseudo-words, tagged every+// word kept/removed against the two agent trims, and grouped the removed ones+// into runs. All that is left is the label each one carries.+const WORDS = section.words.map((cw, i) => {+ const silence = isSilenceWord(cw.word);+ const durationSec = cw.word.endSec - cw.word.startSec;+ return {+ i,+ id: cw.id,+ kind: silence ? "silence" : "word",+ text: silence ? t("settings:transcript.silence", { duration: durationSec.toFixed(1) }) : cw.word.text,+ startSec: cw.word.startSec,+ endSec: cw.word.endSec,+ kept: cw.kept,+ trimId: cw.trimId,+ };+});++const INSPECTOR = {+ title: t("settings:transcript.title"),+ indexBadge: "1",+ filename: asset.label,+ // RightPanes.tsx:958 — `clipLabel` and the source range joined by " · ",+ // the range itself being two `formatMs` calls around an em dash.+ clipRange: `${t("settings:transcript.clipLabel", { index: 1 })} · ${formatMs(+ clip.sourceStartSec * 1000,+ )}—${formatMs(clip.sourceEndSec * 1000)}`,+ wordCount: WORDS.filter((w) => w.kind === "word").length,+ silenceCount: WORDS.filter((w) => w.kind === "silence").length,+ silenceThresholdSec: SILENCE_THRESHOLD_SEC,+};++// ── lanes and pills ─────────────────────────────────────────────────────+// The app's order, top to bottom (V4Timeline.tsx:1521-1531): annotation, speed,+// trim, zoom, cameraFullscreen. A lane shows its shortcut hint if and only if it+// is empty — which is why the hint list is derived from the pill list and never+// written down beside it.+const zoomPills = doc.zoomRanges.map((z) => ({+ lane: "zoom",+ id: z.id,+ label: `${effectiveZoomScale(z).toFixed(2)}×`,+ startSec: z.sourceStartSec,+ endSec: z.sourceEndSec,+ leftPct: pct(z.sourceStartSec),+ widthPct: pct(z.sourceEndSec - z.sourceStartSec),+ depth: z.depth,+ focusMode: z.focusMode,+}));++const trimPills = trims.map((r) => ({+ lane: "trim",+ id: r.id,+ label: formatSec(r.endSec - r.startSec),+ startSec: r.startSec,+ endSec: r.endSec,+ leftPct: pct(r.startSec),+ widthPct: pct(r.endSec - r.startSec),+ origin: r.origin,+}));++const LANE_ORDER = [+ { id: "annotation", hintKey: "timeline:hints.pressAnnotation", pills: [] },+ { id: "speed", hintKey: "timeline:hints.pressSpeed", pills: [] },+ { id: "trim", hintKey: "timeline:hints.pressTrim", pills: trimPills },+ { id: "zoom", hintKey: "timeline:hints.pressZoom", pills: zoomPills },+ { id: "cameraFullscreen", hintKey: "timeline:hints.pressCameraFullscreen", pills: [] },+];++// Cross-check against the document rather than trusting the table above: a lane+// that says it is empty while the document holds regions is the exact failure+// the recreation exists to make impossible.+const DOC_REGION_COUNTS = {+ annotation: doc.annotations.length,+ speed: doc.timeline.speedRanges.length,+ trim: doc.timeline.trimRanges.length,+ zoom: doc.zoomRanges.length,+ cameraFullscreen: doc.legacyEditor.cameraFullscreenRegions.length,+};+for (const lane of LANE_ORDER) {+ if (lane.pills.length !== DOC_REGION_COUNTS[lane.id]) {+ throw new Error(+ `${lane.id} lane emits ${lane.pills.length} pills, document holds ${DOC_REGION_COUNTS[lane.id]}`,+ );+ }+}++const LANES = LANE_ORDER.map((lane) => ({+ id: lane.id,+ hint: lane.pills.length === 0 ? t(lane.hintKey) : null,+ pills: lane.pills,+}));+const PILLS = LANES.flatMap((lane) => lane.pills);++// ── ruler ───────────────────────────────────────────────────────────────+// The step is the first "nice" one whose on-screen gap clears MIN_LABEL_GAP_PX.+// The recreation's timeline canvas is as wide as its world, so pxPerSec is+// world / duration and the step re-derives per breakpoint exactly as the app's+// does per zoom level. At 1920 that lands on 2 s — arithmetically identical to+// the shipped 02-timeline-a.jpg, which is what makes the plate a pixel oracle.+function rulerFor(worldPx) {+ const pxPerSec = worldPx / totalSec;+ const step =+ TICK_STEPS_SEC.find((s) => s * pxPerSec >= MIN_LABEL_GAP_PX) ??+ TICK_STEPS_SEC[TICK_STEPS_SEC.length - 1];+ const minor = step / MINOR_PER_MAJOR;+ const labels = [];+ for (let i = 0; i * step <= totalSec + 1e-6; i++) {+ const sec = i * step;+ labels.push({ sec, leftPct: pct(sec), text: fmtTick(sec, step) });+ }+ return {+ worldPx,+ pxPerSec: Number(pxPerSec.toFixed(4)),+ stepSec: step,+ minorSec: minor,+ minorPct: Number(((minor / totalSec) * 100).toFixed(6)),+ labels,+ };+}++/** 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 RULER = {+ minLabelGapPx: MIN_LABEL_GAP_PX,+ minorPerMajor: MINOR_PER_MAJOR,+ tickStepsSec: TICK_STEPS_SEC,+ wideBreakpointPx: WIDE_BREAKPOINT_PX,+ variants: [rulerFor(1920), rulerFor(3440)],+};++// ── waveform ────────────────────────────────────────────────────────────+// 320 bars are 320 elements for a shape nobody can resolve at 2 px. They become+// five <path>s, one per opacity bucket: the app's own `0.5 + amp*0.5` rounded+// down to the nearest tenth, which is the whole of the declared quantisation.+// Geometry is left in ruler units — one unit per bar slot, 100 units tall — so+// the component can stretch it with `preserveAspectRatio="none"` and keep the+// bars at the app's literal 2 px with `vector-effect: non-scaling-stroke`.+const OPACITY_BUCKETS = [0.5, 0.6, 0.7, 0.8, 0.9];++function buildWaveform() {+ const amps = doc.vendoredWaveform.amps;+ const buckets = OPACITY_BUCKETS.map(() => []);+ for (let i = 0; i < amps.length; i++) {+ const h = amps[i];+ const exact = Number(waveBarOpacity(h));+ const bucket = Math.min(OPACITY_BUCKETS.length - 1, Math.floor((exact - 0.5) / 0.1 + 1e-9));+ const heightPct = waveBarHeightPct(h);+ const y0 = (100 - heightPct) / 2;+ const y1 = y0 + heightPct;+ buckets[bucket].push(`M${i + 0.5} ${trimNum(y0)}V${trimNum(y1)}`);+ }+ return {+ viewBox: `0 0 ${amps.length} 100`,+ barCount: amps.length,+ strokeWidthPx: 2,+ gapPx: 1,+ note: "preserveAspectRatio=none; stroke-width 2 with vector-effect:non-scaling-stroke reproduces .tlWave span {max-width:2px}",+ paths: buckets.map((segments, i) => ({+ opacity: OPACITY_BUCKETS[i],+ bars: segments.length,+ d: segments.join(""),+ })),+ };+}++const trimNum = (n) => String(Number(n.toFixed(1)));+const WAVEFORM = buildWaveform();++// ── chat ────────────────────────────────────────────────────────────────+/**+ * The agent's reply.+ *+ * THE WEAKEST PROVENANCE ON THIS PAGE, and it is labelled as such in+ * PROVENANCE. The conversation is not in the project document and there is no+ * conversations store on disk: its only existence is+ * `static/img/walkthrough/04-agent-a.jpg`, which the page already ships. This+ * is a transcription of the message body visible in that photograph.+ *+ * What is NOT transcribed: every number and every quoted word. The two timecode+ * pairs, the two silence durations, the two quoted words and the cut total are+ * `{{placeholders}}` filled from `timeline.trimRanges` and `transcript.words`,+ * so a re-cut document moves them and a stale transcription cannot outlive the+ * edit it describes.+ *+ * What is transcribed and deliberately left alone: "40.0s → 33.0s" and+ * "1.8×/2.2×". Both are the model's own rounding of values this file computes+ * differently (32.93 s; 1.80×/2.20×). They stay as the model wrote them because+ * the page is quoting a message, not rendering a readout — see PROVENANCE.+ *+ * The photograph's scrollback also shows a fragment above this body+ * (`"think."). Cutting both:Both trims landed. …`) — the tail of the agent's+ * tool-call narration, cut off mid-sentence by the top of the pane. It is not+ * transcribed: half a sentence is not a source.+ */+const AGENT_REPLY_MARKDOWN = `Here's what I found and cut:++**Finding:** The speech itself is nearly gapless — every pause between spoken words is well under a second, so there were no internal silences to remove. The only silences over 1s were at the two ends:++**Cuts applied (both on your single placed clip, which is untouched otherwise):**++- **{{trim1}}** — the {{dur1}}s dead lead-in before "{{firstWord}}" (cut)+- **{{trim2}}** — the ~{{dur2}}s dead tail after "{{lastWord}}" (cut)++The video now runs from "{{firstWord}}" straight through to "{{lastWord}}" — about **{{cutSeconds}} seconds shorter** (40.0s → 33.0s of playable footage).++Your zooms (incl. the manual 1.8×/2.2× punches) stay anchored to the same moments in the narration.++One note: the cut starts the video right at the first word with no lead-in. If you'd rather keep a half-second of breathing room before "{{firstWord}}" say the word and I'll restore a short lead.`;++/** `35.12`, `40.03`, `0` — the agent's own way of writing a source second. */+const sourceSec = (n) => String(Number(n.toFixed(2)));++const spokenWords = WORDS.filter((w) => w.kind === "word");+const cutSec = trims.reduce((sum, r) => sum + (r.endSec - r.startSec), 0);++const agentVars = {+ trim1: `${sourceSec(trims[0].startSec)}–${sourceSec(trims[0].endSec)}s`,+ trim2: `${sourceSec(trims[1].startSec)}–${sourceSec(trims[1].endSec)}s`,+ dur1: (trims[0].endSec - trims[0].startSec).toFixed(1),+ dur2: (trims[1].endSec - trims[1].startSec).toFixed(1),+ firstWord: spokenWords[0].text,+ lastWord: spokenWords[spokenWords.length - 1].text,+ cutSeconds: String(Math.round(cutSec)),+};++const agentReplyText = AGENT_REPLY_MARKDOWN.replace(/\{\{(\w+)\}\}/g, (m, name) => {+ if (!(name in agentVars)) throw new Error(`agent reply: no value for {{${name}}}`);+ return agentVars[name];+});+if (/\{\{/.test(agentReplyText)) throw new Error("agent reply: unresolved interpolation");++/**+ * Minimal block structure so the component does not need a markdown parser for+ * one message. `**bold**` becomes runs; `- ` becomes a list item.+ */+function parseReply(md) {+ return md+ .split("\n")+ .map((line) => line.trim())+ .filter(Boolean)+ .map((line) => {+ const li = line.startsWith("- ");+ const body = li ? line.slice(2) : line;+ const runs = body+ .split(/(\*\*[^*]+\*\*)/g)+ .filter(Boolean)+ .map((piece) =>+ piece.startsWith("**")+ ? { text: piece.slice(2, -2), strong: true }+ : { text: piece, strong: false },+ );+ return { kind: li ? "li" : "p", runs };+ });+}++/**+ * `applied: added 2 trims`.+ *+ * The prefix is a locale string; the rest is the shape the bulk-add tool emits+ * (`electron/ai-edition/agent-tools.ts`: `added ${n} ${noun}${n === 1 ? "" : "s"}`)+ * with n counted off the document — the trims whose `origin` is `agent`.+ */+const agentTrimCount = trims.filter((r) => r.origin === "agent").length;+const CHAT = {+ conversationTitle: `${t("editor:chat.untitledConversation")} 1`,+ emptyState: t("editor:chat.emptyState"),+ authorUser: t("editor:chat.authorUser"),+ authorAssistant: t("editor:chat.authorAssistant"),+ userPrompt: AI_ENHANCE_PROMPT,+ agentReply: parseReply(agentReplyText),+ agentReplyText,+ applied: `${t("editor:chat.appliedPrefix")} added ${agentTrimCount} trim${agentTrimCount === 1 ? "" : "s"}`,+ composerPlaceholder: t("editor:chat.composerPlaceholder"),+ modelChip: "deepseek-v4-flash",+};++// ── stage, transport, toolbar ───────────────────────────────────────────+// The recreation shows the loop that plays inside zoom region 2, so the picture+// on the canvas, the 2.20× pill under it and the playhead's position are three+// renderings of one fact and cannot disagree.+const LOOP_ZOOM = doc.zoomRanges[1];+const LOOP = {+ startSec: LOOP_ZOOM.sourceStartSec,+ /** Where the footage stops. The clip ends 0.2 s later on a held frame — see+ * the encode note at the bottom of this file. */+ contentEndSec: 24.3,+ contentDurationSec: 6.8,+ durationSec: 7,+ dissolveSec: 0.6,+ holdSec: 0.2,+ zoomScale: effectiveZoomScale(LOOP_ZOOM),+ crop: { w: 872, h: 490, x: 524, y: 295 },+ src: "/video/canvas-loop.mp4",+ srcSmall: "/video/canvas-loop-sm.mp4",+ poster: "/img/walkthrough/canvas-poster.jpg",+ width: 836,+ height: 470,+ widthSmall: 640,+ heightSmall: 360,+ /** `t = startSec + Math.min(video.currentTime, contentDurationSec)` — the+ * driver must clamp, or the last 0.2 s reports time the footage never+ * reaches. */+ timeMapping: "startSec + min(currentTime, contentDurationSec)",+};++// 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 contentBox = {+ width: Math.round(FRAME.width * paddingFit),+ height: Math.round(FRAME.height * paddingFit),+};+const screenScale = Math.min(+ contentBox.width / asset.video.width,+ contentBox.height / asset.video.height,+);+const STAGE = {+ aspectRatio: doc.legacyEditor.aspectRatio,+ wallpaper: doc.legacyEditor.wallpaper,+ padding: doc.legacyEditor.padding,+ paddingFit: Number(paddingFit.toFixed(3)),+ borderRadius: doc.legacyEditor.borderRadius,+ frame: FRAME,+ contentBox,+ screen: {+ width: Math.round(asset.video.width * screenScale),+ height: Math.round(asset.video.height * screenScale),+ },+ webcam: null,+ webcamReason:+ "assets[0].cameraTrack.visible is false and legacyEditor.webcamLayoutPreset is \"no-webcam\" — there is no bubble to draw",+};++const TRANSPORT = {+ restCurrent: formatSec(LOOP.startSec),+ endCurrent: formatSec(LOOP.contentEndSec),+ total: formatSec(totalSec),+ restLeftPct: pct(LOOP.startSec),+ endLeftPct: pct(LOOP.contentEndSec),+};++const TOOLBAR = {+ aspectRatio: doc.legacyEditor.aspectRatio,+ panKbd: "Shift+Scroll",+ panLabel: t("timeline:labels.pan"),+ zoomKbd: "Ctrl+Scroll",+ zoomLabel: t("timeline:labels.zoom"),+ clipLabel: asset.label,+};++// ── tokens the recreation renders text on ───────────────────────────────+// Read out of the app's own dark block so the guard's contrast assertions are+// made against the real values, not a copy of them.+const TOKENS_SRC = readFileSync(resolve(APP, "src/styles/design-tokens.css"), "utf8");+const darkBlock = TOKENS_SRC.slice(TOKENS_SRC.indexOf(':root[data-theme="dark"]'));+function token(name) {+ const m = darkBlock.match(new RegExp(`--${name}:\\s*(#[0-9a-fA-F]{3,8});`));+ if (!m) throw new Error(`token --${name} not found in the dark block of design-tokens.css`);+ return m[1];+}+const TOKENS = {+ surface: token("surface"),+ surface1: token("surface-1"),+ surface2: token("surface-2"),+ surface3: token("surface-3"),+ border: token("border"),+ borderHi: token("border-hi"),+ fg: token("fg"),+ fg2: token("fg-2"),+ muted: token("muted"),+ /** The one declared divergence: the app's `--meta` (#5b6470) computes 2.97:1+ * on --surface-1 and fails AA. The lane hints and the ruler labels use+ * `--muted` instead, one step up the app's own neutral ramp, at 5.87:1. */+ meta: token("muted"),+ metaInApp: token("meta"),+ accent: token("accent"),+ danger: token("danger"),+ playhead: "#6c55ff",+};++const CONTRAST_PAIRS = [+ [TOKENS.fg, TOKENS.surface, "transcript word on the inspector"],+ [TOKENS.muted, TOKENS.surface1, "clip range on the inspector"],+ [TOKENS.meta, TOKENS.surface, "lane hint on the floor"],+ [TOKENS.meta, TOKENS.surface, "ruler label on the floor"],+ [TOKENS.accent, TOKENS.surface, "zoom pill label"],+ [TOKENS.danger, TOKENS.surface, "trim pill label and struck silence"],+ [TOKENS.fg, TOKENS.surface2, "chat message body"],+ [TOKENS.muted, TOKENS.surface, "chat author label"],+ [TOKENS.accent, TOKENS.surface, "applied line"],+ [TOKENS.muted, TOKENS.surface1, "composer placeholder"],+];++// ── provenance ──────────────────────────────────────────────────────────+// One entry per string the recreation puts on screen. `shown` is the literal+// text; `source` says where it came from, precisely enough that a reader can go+// and check. "computed:" marks a value derived at build time rather than quoted.+const PROVENANCE = [+ { shown: INSPECTOR.title, source: "src/i18n/locales/en/settings.json → transcript.title" },+ {+ shown: INSPECTOR.clipRange,+ source: `computed: settings.json transcript.clipLabel with index 1, joined to formatMs(${clip.sourceStartSec * 1000}) and formatMs(${clip.sourceEndSec * 1000}) from src/lib/ai-edition/timeline/format.ts`,+ },+ { shown: INSPECTOR.filename, source: "fixture assets[0].label" },+ ...WORDS.filter((w) => w.kind === "silence").map((w) => ({+ shown: w.text,+ source: `computed: settings.json transcript.silence over the ${(w.endSec - w.startSec).toFixed(3)}s gap ${w.startSec}–${w.endSec} that buildClipSection inserted at SILENCE_THRESHOLD_SEC ${SILENCE_THRESHOLD_SEC}; ${w.kept ? "outside any trim" : `inside trimRange ${w.trimId}`}`,+ })),+ {+ // The whole spoken flow, as one string. The fixture stores ONE WORD per+ // entry, so a check that asserts this against the document only resolves+ // 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",+ },+ {+ shown: CHAT.conversationTitle,+ 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",+ },+ {+ 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.",+ },+ {+ shown: CHAT.applied,+ source: `computed: editor.json chat.appliedPrefix + the bulk-add tool's own wording (electron/ai-edition/agent-tools.ts: added \${n} \${noun}s) with n = ${agentTrimCount}, the trimRanges whose origin is "agent"`,+ },+ { shown: CHAT.composerPlaceholder, source: "editor.json chat.composerPlaceholder" },+ {+ shown: CHAT.modelChip,+ source:+ "photograph: static/img/walkthrough/editor-1560.jpg — what was on screen when the plate was shot. NOT in provider-registry.ts; it was typed into an OpenAI-compatible provider config. The one visible string whose referent cannot be verified in the source, kept because the photographs beside it already ship it.",+ },+ ...zoomPills.map((p) => ({+ shown: p.label,+ source: `computed: effectiveZoomScale(zoomRanges depth ${p.depth}).toFixed(2) + "×" from src/lib/ai-edition/timeline/zoom-scale.ts`,+ })),+ ...trimPills.map((p) => ({+ shown: p.label,+ source: `computed: formatSec(${p.endSec} − ${p.startSec}) over trimRange ${p.id}`,+ })),+ ...LANES.filter((l) => l.hint).map((l) => ({+ shown: l.hint,+ source: `timeline.json hints.press${l.id[0].toUpperCase()}${l.id.slice(1)} — rendered because the document holds no ${l.id} regions`,+ })),+ {+ shown: RULER.variants[0].labels.map((l) => l.text).join(" "),+ 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: 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.clipLabel, source: "fixture assets[0].label, as the clip card's own label" },+];++// A string that claims a locale source but is not in the locale files is the+// failure this array exists to catch, so catch it here too rather than only in+// the guard.+const localeCorpus = JSON.stringify(LOCALES);+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`);+ }+}++// ── emit ────────────────────────────────────────────────────────────────+const banner = `/**+ * GENERATED FILE — do not edit. Run \`node scripts/gen-recreation.mjs\` instead.+ *+ * Every value below was read out of, or computed from, one of:+ * · src/components/Recreation/fixture-slim.json (the project document, schemaVersion ${SCHEMA_VERSION})+ * · ../src/i18n/locales/en/{editor,settings,timeline}.json+ * · ../src/lib/ai-edition/timeline/{format,zoom-scale,aggregated-transcript}.ts, imported and run+ * · ../src/components/ai-edition/v4/V4Timeline.tsx, lifted as source text and evaluated+ * · ../src/styles/design-tokens.css+ * · static/img/walkthrough/04-agent-a.jpg and editor-1560.jpg (two strings; see PROVENANCE)+ *+ * PROVENANCE names the source of every string this file puts on screen. Nothing+ * that could not be sourced was invented to fill a gap: the chat's context pill+ * is absent for that reason, and so is the webcam bubble.+ */`;++const lit = (value) => JSON.stringify(value, null, "\t");+/** One row per entry. The word list is 106 objects; pretty-printing it costs ~11 KB+ * of shipped bundle for indentation nobody reads. One line each stays diffable. */+const litRows = (rows) => `[+${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));++const generated = `${banner}++export interface RecreationWord {+ i: number;+ id: string;+ kind: "word" | "silence";+ text: string;+ startSec: number;+ endSec: number;+ kept: boolean;+ trimId: string | null;+}++export interface RecreationPill {+ lane: string;+ id: string;+ label: string;+ startSec: number;+ endSec: number;+ leftPct: number;+ widthPct: number;+ /** zoom lanes only — the stored ordinal the label was derived from. */+ depth?: number;+ /** zoom lanes only. */+ focusMode?: string;+ /** trim lanes only — "agent" for the two the agent placed. */+ origin?: string;+}++export interface RecreationLane {+ id: string;+ hint: string | null;+ pills: RecreationPill[];+}++export interface ProvenanceEntry {+ shown: string;+ source: string;+}++/** Where this data came from, and what it is a recreation of. */+export const META = ${lit({+ schemaVersion: doc.schemaVersion,+ projectId: doc.project.id,+ projectTitle: doc.project.title,+ assetLabel: asset.label,+ assetDurationSec: totalSec,+ assetVideo: asset.video,+ cameraTrackVisible: asset.cameraTrack.visible,+ generator: "website/scripts/gen-recreation.mjs",+})} as const;++/** The transcript pane's header. */+export const INSPECTOR = ${lit(INSPECTOR)} as const;++/**+ * The transcript flow, produced by the app's own \`buildClipSection\`: ${INSPECTOR.wordCount}+ * words and ${INSPECTOR.silenceCount} silence markers, each tagged kept or removed against the+ * document's two agent trims. ${WORDS.filter((w) => !w.kept).length} entries are removed, all of them silences.+ */+export const WORDS: RecreationWord[] = ${litRows(WORDS)};++/** The five lanes in the app's order. A lane carries its shortcut hint if and+ * only if the document holds no regions for it. */+export const LANES: RecreationLane[] = ${litRows(LANES)};++/** Every pill on the floor, flattened. */+export const PILLS: RecreationPill[] = ${litRows(PILLS)};++/** The ruler, re-derived per breakpoint the way the app re-derives it per zoom. */+export const RULER = ${litRuler(RULER)} as const;++/** ${WAVEFORM.barCount} bars in five opacity buckets, five paths. */+export const WAVEFORM = ${lit(WAVEFORM)} as const;++/** The conversation. */+export const CHAT = ${lit(CHAT)} as const;++/** The preview frame's geometry, and the loop that plays inside it. */+export const STAGE = ${lit(STAGE)} as const;+export const LOOP = ${lit(LOOP)} as const;++export const TRANSPORT = ${lit(TRANSPORT)} as const;+export const TOOLBAR = ${lit(TOOLBAR)} as const;++/** The app's dark tokens, read out of design-tokens.css. */+export const TOKENS = ${lit(TOKENS)} as const;++/** One entry per string on screen. */+export const PROVENANCE: ProvenanceEntry[] = ${litRows(PROVENANCE)};++/** What check-recreation.mjs asserts against. */+export const MARKUP = {+ pills: PILLS,+ hints: LANES.filter((lane) => lane.hint !== null).map((lane) => lane.id),+ words: WORDS,+ contrastPairs: ${lit(CONTRAST_PAIRS)} as [string, string, string][],+} as const;+`;++if (CHECK) {+ const current = existsSync(GENERATED) ? readFileSync(GENERATED, "utf8") : "";+ if (current !== generated) {+ console.error(+ "generated.ts is stale — a locale key, a timeline constant, a token or the document moved.\n" ++ "Run `node scripts/gen-recreation.mjs` and commit the result.",+ );+ process.exit(1);+ }+ 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);+ console.log(+ `wrote ${GENERATED}\n ${WORDS.length} transcript entries (${INSPECTOR.wordCount} words, ${INSPECTOR.silenceCount} silences)\n` ++ ` ${PILLS.length} pills, ${LANES.filter((l) => l.hint).length} hints, ${RULER.variants[0].labels.length}/${RULER.variants[1].labels.length} ruler labels\n` ++ ` ${WAVEFORM.barCount} waveform bars in ${WAVEFORM.paths.length} paths, ${PROVENANCE.length} provenance entries`,+ );+}++if (ARGS.has("--media")) cutMedia();++/**+ * Cut the canvas loop.+ *+ * The window is zoom region 2 — ${'`'}zoomRanges[1]${'`'}, 17.5→24.5 s at depth 4 — and the+ * footage is pre-cropped to that region's 2.20× framing, centred on its focus.+ * Choosing that window is what makes the picture, the 2.20× pill under it and+ * the playhead's position three renderings of one fact: the clip never leaves+ * the region, so no frame of the loop can contradict the chrome around it.+ *+ * Seamlessness, since the clip loops forever and is never seeked: the first+ * frame is the frame at 17.5 s exactly (which is also the poster), and the last+ * 0.6 s dissolves back into a held copy of that same first frame, followed by+ * 0.2 s of hold. Measured pre-encode, the last four frames are bit-identical to+ * frame 0; after encoding they differ by 1.88/255 mean luma, which is the+ * quantiser, not the cut. The dissolve lands entirely inside the recording's own+ * static stretch (23.3–24.4 s), so nothing that is moving is faded.+ *+ * -an is not optional: WebKit refuses gesture-free autoplay for media that+ * carries an audio track at all, muted or not, and check-media-budget.mjs fails+ * the build on one.+ */+function cutMedia() {+ const videoDir = resolve(WEBSITE, "static/video");+ const imgDir = resolve(WEBSITE, "static/img/walkthrough");+ const filter = (w, h) =>+ `[0:v]crop=${LOOP.crop.w}:${LOOP.crop.h}:${LOOP.crop.x}:${LOOP.crop.y},scale=${w}:${h}:flags=lanczos,fps=30,format=yuv420p,setpts=PTS-STARTPTS,split=2[a][h];` ++ `[h]trim=start_frame=0:end_frame=1,setpts=PTS-STARTPTS,loop=loop=23:size=1:start=0,setpts=N/30/TB,fps=30[b];` ++ `[a][b]xfade=transition=fade:duration=${LOOP.dissolveSec}:offset=${LOOP.contentDurationSec - LOOP.dissolveSec},format=yuv420p[v]`;+ const encode = (w, h, bitrate, maxrate, bufsize, out) =>+ execFileSync(+ 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",+ // 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",+ resolve(videoDir, out),+ ],+ { stdio: "inherit" },+ );++ mkdirSync(videoDir, { recursive: true });+ mkdirSync(imgDir, { recursive: true });+ encode(LOOP.width, LOOP.height, "138k", "230k", "450k", "canvas-loop.mp4");+ encode(LOOP.widthSmall, LOOP.heightSmall, "62k", "110k", "220k", "canvas-loop-sm.mp4");++ // The poster is the loop's own first frame, at the crop's native size. It is+ // NOT upscaled past that: the 2.20× crop is 872 px wide in the master, so a+ // 1252 px poster would be invented sharpness on the one image the reader+ // looks at longest — it is what shows at rest, under reduced motion, without+ // JavaScript, before the driver attaches, and in print.+ execFileSync(+ 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",+ resolve(imgDir, "canvas-poster.jpg"),+ ],+ { stdio: "inherit" },+ );+ console.log("cut static/video/canvas-loop{,-sm}.mp4 and static/img/walkthrough/canvas-poster.jpg");+}diff --git a/website/src/components/Recreation/driver.ts b/website/src/components/Recreation/driver.tsnew file mode 100644index 000000000..74f911ba6--- /dev/null+++ b/website/src/components/Recreation/driver.ts@@ -0,0 +1,366 @@+/**+ * The recreation's ONE requestAnimationFrame loop.+ *+ * ── THE TWO CLOCKS ────────────────────────────────────────────────────────────+ *+ * 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.+ *+ * 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.+ *+ * 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.+ */++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 ────────────────────────────────────────── */++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. */+ 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;+}++/**+ * 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.+ */+export function attachDriver(refs: DriverRefs, classes: DriverClasses): () => void {+ const { band, video, timeReadout, transport, playhead, scrubFill, cursor, zoomLane, flow } = refs;++ 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}`,+ );+ }++ // 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;+ }++ // 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";+ }+ }++ // 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);+ }++ // 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";+ }+ };++ /** 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;+ }+ 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;+ }+ 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;+ }+ const attempt = video.play();+ if (attempt) attempt.catch(() => {});+ if (!frame) frame = requestAnimationFrame(tick);+ };++ const stop = () => {+ if (frame) {+ cancelAnimationFrame(frame);+ frame = 0;+ }+ video.pause();+ };++ // 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();+ };+ document.addEventListener("visibilitychange", onVisibility);++ return () => {+ io?.disconnect();+ document.removeEventListener("visibilitychange", onVisibility);+ stop();+ video.removeAttribute("src");+ video.load();+ };+}diff --git a/website/src/components/Recreation/fixture-slim.json b/website/src/components/Recreation/fixture-slim.jsonnew file mode 100644index 000000000..a64c749f7--- /dev/null+++ b/website/src/components/Recreation/fixture-slim.json@@ -0,0 +1,1207 @@+{+ "schemaVersion": 7,+ "project": {+ "id": "proj_97e2ec4f-78a1-4198-9743-05511c204daa",+ "title": "Bellrock — docs walkthrough",+ "createdAt": "2026-08-05T12:00:00.000Z",+ "updatedAt": "2026-08-16T08:12:08.607Z",+ "primaryAssetId": "asset_98800b62-9429-4a8a-9c12-fef7af70b160"+ },+ "assets": [+ {+ "id": "asset_98800b62-9429-4a8a-9c12-fef7af70b160",+ "kind": "video",+ "label": "Bellrock — docs walkthrough",+ "originalPath": "/Users/m1/Library/Application Support/openscreen/recordings/recording-1786032000000.mp4",+ "durationSec": 40.033,+ "sizeBytes": 8194081,+ "video": {+ "codec": "unknown",+ "width": 1920,+ "height": 1080,+ "fps": 0+ },+ "cameraTrack": {+ "sourcePath": "/Users/m1/Library/Application Support/openscreen/recordings/recording-1786032000000-webcam.mp4",+ "startMs": 0,+ "offsetMs": 0,+ "visible": false+ }+ }+ ],+ "transcript": {+ "assetId": "asset_98800b62-9429-4a8a-9c12-fef7af70b160",+ "language": "en",+ "words": [+ {+ "id": "word_1",+ "segmentId": "seg_1",+ "startSec": 2.19,+ "endSec": 2.63,+ "text": "Hi,"+ },+ {+ "id": "word_2",+ "segmentId": "seg_2",+ "startSec": 2.63,+ "endSec": 3.02,+ "text": "quick"+ },+ {+ "id": "word_3",+ "segmentId": "seg_3",+ "startSec": 3.02,+ "endSec": 3.08,+ "text": "walk"+ },+ {+ "id": "word_4",+ "segmentId": "seg_4",+ "startSec": 3.08,+ "endSec": 3.29,+ "text": "through"+ },+ {+ "id": "word_5",+ "segmentId": "seg_5",+ "startSec": 3.29,+ "endSec": 3.95,+ "text": "the"+ },+ {+ "id": "word_6",+ "segmentId": "seg_6",+ "startSec": 3.95,+ "endSec": 4.62,+ "text": "documentation"+ },+ {+ "id": "word_7",+ "segmentId": "seg_7",+ "startSec": 4.62,+ "endSec": 4.94,+ "text": "site."+ },+ {+ "id": "word_8",+ "segmentId": "seg_8",+ "startSec": 4.94,+ "endSec": 5.2,+ "text": "The"+ },+ {+ "id": "word_9",+ "segmentId": "seg_9",+ "startSec": 5.2,+ "endSec": 5.5200000000000005,+ "text": "new"+ },+ {+ "id": "word_10",+ "segmentId": "seg_10",+ "startSec": 5.5200000000000005,+ "endSec": 5.62,+ "text": "release"+ },+ {+ "id": "word_11",+ "segmentId": "seg_11",+ "startSec": 5.62,+ "endSec": 5.79,+ "text": "went"+ },+ {+ "id": "word_12",+ "segmentId": "seg_12",+ "startSec": 5.79,+ "endSec": 6.01,+ "text": "out"+ },+ {+ "id": "word_13",+ "segmentId": "seg_13",+ "startSec": 6.01,+ "endSec": 6.47,+ "text": "this"+ },+ {+ "id": "word_14",+ "segmentId": "seg_14",+ "startSec": 6.47,+ "endSec": 6.82,+ "text": "morning."+ },+ {+ "id": "word_15",+ "segmentId": "seg_15",+ "startSec": 6.83,+ "endSec": 7.2,+ "text": "The"+ },+ {+ "id": "word_16",+ "segmentId": "seg_16",+ "startSec": 7.2,+ "endSec": 7.37,+ "text": "hero"+ },+ {+ "id": "word_17",+ "segmentId": "seg_17",+ "startSec": 7.37,+ "endSec": 7.57,+ "text": "does"+ },+ {+ "id": "word_18",+ "segmentId": "seg_18",+ "startSec": 7.57,+ "endSec": 7.88,+ "text": "the"+ },+ {+ "id": "word_19",+ "segmentId": "seg_19",+ "startSec": 7.88,+ "endSec": 8.16,+ "text": "work"+ },+ {+ "id": "word_20",+ "segmentId": "seg_20",+ "startSec": 8.16,+ "endSec": 8.58,+ "text": "now."+ },+ {+ "id": "word_21",+ "segmentId": "seg_21",+ "startSec": 8.58,+ "endSec": 9.06,+ "text": "One"+ },+ {+ "id": "word_22",+ "segmentId": "seg_22",+ "startSec": 9.06,+ "endSec": 9.5,+ "text": "line,"+ },+ {+ "id": "word_23",+ "segmentId": "seg_23",+ "startSec": 9.5,+ "endSec": 10.040000000000001,+ "text": "one"+ },+ {+ "id": "word_24",+ "segmentId": "seg_24",+ "startSec": 10.040000000000001,+ "endSec": 10.41,+ "text": "promise,"+ },+ {+ "id": "word_25",+ "segmentId": "seg_25",+ "startSec": 10.41,+ "endSec": 10.6,+ "text": "and"+ },+ {+ "id": "word_26",+ "segmentId": "seg_26",+ "startSec": 10.6,+ "endSec": 10.950000000000001,+ "text": "the"+ },+ {+ "id": "word_27",+ "segmentId": "seg_27",+ "startSec": 10.950000000000001,+ "endSec": 11.21,+ "text": "install"+ },+ {+ "id": "word_28",+ "segmentId": "seg_28",+ "startSec": 11.21,+ "endSec": 11.61,+ "text": "command"+ },+ {+ "id": "word_29",+ "segmentId": "seg_29",+ "startSec": 11.61,+ "endSec": 11.97,+ "text": "right"+ },+ {+ "id": "word_30",+ "segmentId": "seg_30",+ "startSec": 11.97,+ "endSec": 12.290000000000001,+ "text": "under"+ },+ {+ "id": "word_31",+ "segmentId": "seg_31",+ "startSec": 12.290000000000001,+ "endSec": 12.68,+ "text": "it."+ },+ {+ "id": "word_32",+ "segmentId": "seg_32",+ "startSec": 12.68,+ "endSec": 13.25,+ "text": "Scrolling"+ },+ {+ "id": "word_33",+ "segmentId": "seg_33",+ "startSec": 13.25,+ "endSec": 13.63,+ "text": "down,"+ },+ {+ "id": "word_34",+ "segmentId": "seg_34",+ "startSec": 13.63,+ "endSec": 14.02,+ "text": "those"+ },+ {+ "id": "word_35",+ "segmentId": "seg_35",+ "startSec": 14.02,+ "endSec": 14.4,+ "text": "six"+ },+ {+ "id": "word_36",+ "segmentId": "seg_36",+ "startSec": 14.4,+ "endSec": 14.450000000000001,+ "text": "cards"+ },+ {+ "id": "word_37",+ "segmentId": "seg_37",+ "startSec": 14.450000000000001,+ "endSec": 14.620000000000001,+ "text": "are"+ },+ {+ "id": "word_38",+ "segmentId": "seg_38",+ "startSec": 14.620000000000001,+ "endSec": 14.77,+ "text": "the"+ },+ {+ "id": "word_39",+ "segmentId": "seg_39",+ "startSec": 14.77,+ "endSec": 15.21,+ "text": "whole"+ },+ {+ "id": "word_40",+ "segmentId": "seg_40",+ "startSec": 15.21,+ "endSec": 15.530000000000001,+ "text": "library"+ },+ {+ "id": "word_41",+ "segmentId": "seg_41",+ "startSec": 15.530000000000001,+ "endSec": 15.75,+ "text": "on"+ },+ {+ "id": "word_42",+ "segmentId": "seg_42",+ "startSec": 15.75,+ "endSec": 16.13,+ "text": "one"+ },+ {+ "id": "word_43",+ "segmentId": "seg_43",+ "startSec": 16.13,+ "endSec": 16.62,+ "text": "screen."+ },+ {+ "id": "word_44",+ "segmentId": "seg_44",+ "startSec": 16.82,+ "endSec": 16.93,+ "text": "No"+ },+ {+ "id": "word_45",+ "segmentId": "seg_45",+ "startSec": 16.93,+ "endSec": 17.37,+ "text": "page"+ },+ {+ "id": "word_46",+ "segmentId": "seg_46",+ "startSec": 17.37,+ "endSec": 17.62,+ "text": "gets"+ },+ {+ "id": "word_47",+ "segmentId": "seg_47",+ "startSec": 17.62,+ "endSec": 17.7,+ "text": "more"+ },+ {+ "id": "word_48",+ "segmentId": "seg_48",+ "startSec": 17.7,+ "endSec": 17.96,+ "text": "than"+ },+ {+ "id": "word_49",+ "segmentId": "seg_49",+ "startSec": 17.96,+ "endSec": 18.18,+ "text": "a"+ },+ {+ "id": "word_50",+ "segmentId": "seg_50",+ "startSec": 18.18,+ "endSec": 18.93,+ "text": "sentence."+ },+ {+ "id": "word_51",+ "segmentId": "seg_51",+ "startSec": 18.93,+ "endSec": 19.07,+ "text": "Over"+ },+ {+ "id": "word_52",+ "segmentId": "seg_52",+ "startSec": 19.07,+ "endSec": 19.56,+ "text": "on"+ },+ {+ "id": "word_53",+ "segmentId": "seg_53",+ "startSec": 19.56,+ "endSec": 20.17,+ "text": "status,"+ },+ {+ "id": "word_54",+ "segmentId": "seg_54",+ "startSec": 20.17,+ "endSec": 20.650000000000002,+ "text": "every"+ },+ {+ "id": "word_55",+ "segmentId": "seg_55",+ "startSec": 20.650000000000002,+ "endSec": 21.06,+ "text": "component"+ },+ {+ "id": "word_56",+ "segmentId": "seg_56",+ "startSec": 21.06,+ "endSec": 21.31,+ "text": "with"+ },+ {+ "id": "word_57",+ "segmentId": "seg_57",+ "startSec": 21.31,+ "endSec": 21.490000000000002,+ "text": "30"+ },+ {+ "id": "word_58",+ "segmentId": "seg_58",+ "startSec": 21.490000000000002,+ "endSec": 21.82,+ "text": "days"+ },+ {+ "id": "word_59",+ "segmentId": "seg_59",+ "startSec": 21.82,+ "endSec": 21.91,+ "text": "of"+ },+ {+ "id": "word_60",+ "segmentId": "seg_60",+ "startSec": 21.91,+ "endSec": 22.36,+ "text": "probes"+ },+ {+ "id": "word_61",+ "segmentId": "seg_61",+ "startSec": 22.36,+ "endSec": 22.740000000000002,+ "text": "behind"+ },+ {+ "id": "word_62",+ "segmentId": "seg_62",+ "startSec": 22.740000000000002,+ "endSec": 23.05,+ "text": "it."+ },+ {+ "id": "word_63",+ "segmentId": "seg_63",+ "startSec": 23.19,+ "endSec": 23.45,+ "text": "One"+ },+ {+ "id": "word_64",+ "segmentId": "seg_64",+ "startSec": 23.45,+ "endSec": 23.63,+ "text": "amber"+ },+ {+ "id": "word_65",+ "segmentId": "seg_65",+ "startSec": 23.63,+ "endSec": 23.830000000000002,+ "text": "day"+ },+ {+ "id": "word_66",+ "segmentId": "seg_66",+ "startSec": 23.830000000000002,+ "endSec": 24.060000000000002,+ "text": "on"+ },+ {+ "id": "word_67",+ "segmentId": "seg_67",+ "startSec": 24.060000000000002,+ "endSec": 24.27,+ "text": "the"+ },+ {+ "id": "word_68",+ "segmentId": "seg_68",+ "startSec": 24.27,+ "endSec": 24.94,+ "text": "validator,"+ },+ {+ "id": "word_69",+ "segmentId": "seg_69",+ "startSec": 24.94,+ "endSec": 25.19,+ "text": "and"+ },+ {+ "id": "word_70",+ "segmentId": "seg_70",+ "startSec": 25.19,+ "endSec": 25.560000000000002,+ "text": "it"+ },+ {+ "id": "word_71",+ "segmentId": "seg_71",+ "startSec": 25.560000000000002,+ "endSec": 25.990000000000002,+ "text": "recovered,"+ },+ {+ "id": "word_72",+ "segmentId": "seg_72",+ "startSec": 25.990000000000002,+ "endSec": 26.54,+ "text": "and"+ },+ {+ "id": "word_73",+ "segmentId": "seg_73",+ "startSec": 26.54,+ "endSec": 27.09,+ "text": "releases."+ },+ {+ "id": "word_74",+ "segmentId": "seg_74",+ "startSec": 27.32,+ "endSec": 27.400000000000002,+ "text": "Three"+ },+ {+ "id": "word_75",+ "segmentId": "seg_75",+ "startSec": 27.400000000000002,+ "endSec": 27.45,+ "text": "of"+ },+ {+ "id": "word_76",+ "segmentId": "seg_76",+ "startSec": 27.45,+ "endSec": 28.060000000000002,+ "text": "them,"+ },+ {+ "id": "word_77",+ "segmentId": "seg_77",+ "startSec": 28.060000000000002,+ "endSec": 28.54,+ "text": "newest"+ },+ {+ "id": "word_78",+ "segmentId": "seg_78",+ "startSec": 28.54,+ "endSec": 28.95,+ "text": "first,"+ },+ {+ "id": "word_79",+ "segmentId": "seg_79",+ "startSec": 28.95,+ "endSec": 29.240000000000002,+ "text": "and"+ },+ {+ "id": "word_80",+ "segmentId": "seg_80",+ "startSec": 29.240000000000002,+ "endSec": 29.53,+ "text": "every"+ },+ {+ "id": "word_81",+ "segmentId": "seg_81",+ "startSec": 29.53,+ "endSec": 29.88,+ "text": "line"+ },+ {+ "id": "word_82",+ "segmentId": "seg_82",+ "startSec": 29.88,+ "endSec": 30.09,+ "text": "links"+ },+ {+ "id": "word_83",+ "segmentId": "seg_83",+ "startSec": 30.09,+ "endSec": 30.32,+ "text": "into"+ },+ {+ "id": "word_84",+ "segmentId": "seg_84",+ "startSec": 30.32,+ "endSec": 30.560000000000002,+ "text": "the"+ },+ {+ "id": "word_85",+ "segmentId": "seg_85",+ "startSec": 30.560000000000002,+ "endSec": 30.62,+ "text": "commit"+ },+ {+ "id": "word_86",+ "segmentId": "seg_86",+ "startSec": 30.62,+ "endSec": 30.810000000000002,+ "text": "that"+ },+ {+ "id": "word_87",+ "segmentId": "seg_87",+ "startSec": 30.810000000000002,+ "endSec": 31.1,+ "text": "did"+ },+ {+ "id": "word_88",+ "segmentId": "seg_88",+ "startSec": 31.1,+ "endSec": 31.560000000000002,+ "text": "it."+ },+ {+ "id": "word_89",+ "segmentId": "seg_89",+ "startSec": 31.39,+ "endSec": 31.62,+ "text": "Back"+ },+ {+ "id": "word_90",+ "segmentId": "seg_90",+ "startSec": 31.62,+ "endSec": 31.76,+ "text": "to"+ },+ {+ "id": "word_91",+ "segmentId": "seg_91",+ "startSec": 31.76,+ "endSec": 32.160000000000004,+ "text": "the"+ },+ {+ "id": "word_92",+ "segmentId": "seg_92",+ "startSec": 32.160000000000004,+ "endSec": 32.46,+ "text": "top,"+ },+ {+ "id": "word_93",+ "segmentId": "seg_93",+ "startSec": 32.46,+ "endSec": 32.730000000000004,+ "text": "and"+ },+ {+ "id": "word_94",+ "segmentId": "seg_94",+ "startSec": 32.730000000000004,+ "endSec": 32.86,+ "text": "that"+ },+ {+ "id": "word_95",+ "segmentId": "seg_95",+ "startSec": 32.86,+ "endSec": 32.9,+ "text": "is"+ },+ {+ "id": "word_96",+ "segmentId": "seg_96",+ "startSec": 32.9,+ "endSec": 33.07,+ "text": "the"+ },+ {+ "id": "word_97",+ "segmentId": "seg_97",+ "startSec": 33.07,+ "endSec": 33.55,+ "text": "whole"+ },+ {+ "id": "word_98",+ "segmentId": "seg_98",+ "startSec": 33.55,+ "endSec": 34.03,+ "text": "flow."+ },+ {+ "id": "word_99",+ "segmentId": "seg_99",+ "startSec": 33.99,+ "endSec": 34.19,+ "text": "Tell"+ },+ {+ "id": "word_100",+ "segmentId": "seg_100",+ "startSec": 34.19,+ "endSec": 34.5,+ "text": "me"+ },+ {+ "id": "word_101",+ "segmentId": "seg_101",+ "startSec": 34.5,+ "endSec": 34.53,+ "text": "what"+ },+ {+ "id": "word_102",+ "segmentId": "seg_102",+ "startSec": 34.53,+ "endSec": 35,+ "text": "you"+ },+ {+ "id": "word_103",+ "segmentId": "seg_103",+ "startSec": 35,+ "endSec": 35.12,+ "text": "think."+ }+ ]+ },+ "timeline": {+ "clips": [+ {+ "id": "clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe",+ "assetId": "asset_98800b62-9429-4a8a-9c12-fef7af70b160",+ "sourceStartSec": 0,+ "sourceEndSec": 40.033,+ "timelineStartSec": 0,+ "timelineEndSec": 40.033,+ "wordRefs": [],+ "origin": "user",+ "reason": "Auto-created full-duration clip"+ }+ ],+ "gaps": [],+ "trimRanges": [+ {+ "id": "trim_f52989cf-489c-47f5-a6c7-b95a7d71b399",+ "assetId": "asset_98800b62-9429-4a8a-9c12-fef7af70b160",+ "clipId": "clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe",+ "startSec": 0,+ "endSec": 2.19,+ "reason": "Lead-in silence before 'Hi' (2.19s, >1s)",+ "origin": "agent"+ },+ {+ "id": "trim_3bad6006-721a-4dd4-a218-091fa734a63e",+ "assetId": "asset_98800b62-9429-4a8a-9c12-fef7af70b160",+ "clipId": "clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe",+ "startSec": 35.12,+ "endSec": 40.033,+ "reason": "Trailing dead air after 'think.' (~4.9s, >1s)",+ "origin": "agent"+ }+ ],+ "muteRanges": [],+ "speedRanges": [],+ "captionRanges": []+ },+ "annotations": [],+ "zoomRanges": [+ {+ "id": "zoom_403360f0-0784-4034-994a-a79eb4e5aa55",+ "startMs": 4200,+ "endMs": 12600,+ "clipId": "clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe",+ "sourceStartSec": 4.2,+ "sourceEndSec": 12.6,+ "depth": 3,+ "focus": {+ "cx": 0.5,+ "cy": 0.45+ },+ "focusMode": "auto",+ "source": "auto"+ },+ {+ "id": "zoom_2d7bd6ce-02e1-4f7d-ad63-03ada76859e3",+ "startMs": 17500,+ "endMs": 24500,+ "clipId": "clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe",+ "sourceStartSec": 17.5,+ "sourceEndSec": 24.5,+ "depth": 4,+ "focus": {+ "cx": 0.5,+ "cy": 0.5+ },+ "focusMode": "manual",+ "source": "manual"+ },+ {+ "id": "zoom_11caaa47-6be5-4afa-bf1d-f2e6650f2066",+ "startMs": 33112,+ "endMs": 35156,+ "clipId": "clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe",+ "sourceStartSec": 33.112,+ "sourceEndSec": 35.156,+ "depth": 3,+ "focus": {+ "cx": 0.5,+ "cy": 0.5+ },+ "focusMode": "manual"+ }+ ],+ "legacyEditor": {+ "aspectRatio": "16:9",+ "wallpaper": "/wallpapers/wallpaper5.jpg",+ "padding": 55,+ "borderRadius": 40,+ "shadowIntensity": 0.35,+ "showBlur": true,+ "motionBlurAmount": 0.3,+ "cursorTheme": "default",+ "cursorSize": 4.5,+ "cursorSmoothing": 0.35,+ "cursorMotionBlur": 0.25,+ "autoFocusAll": true,+ "webcamLayoutPreset": "no-webcam",+ "cameraFullscreenRegions": [],+ "captions": {+ "enabled": false,+ "language": null,+ "fontSize": 92,+ "fontFamily": "Inter",+ "fontWeight": "bold",+ "color": "#ffffff",+ "backgroundEnabled": true,+ "backgroundColor": "#000000",+ "backgroundOpacity": 0.55,+ "verticalPosition": "bottom",+ "textAlign": "center",+ "offsetY": 0,+ "width": 80,+ "minWordsPerLine": 2,+ "maxWordsPerLine": 7+ }+ },+ "vendoredWaveform": {+ "note": "NOT schemaVersion 7. Decoded from the asset's audio track by scripts/gen-recreation.mjs --vendor; vendored because the recording is not in this repo.",+ "source": "recording-1786032000000.mp4",+ "sampleRateHz": 48000,+ "blocks": 7996,+ "barCount": 320,+ "amps": [+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0.3359,+ 0.4772,+ 0.3846,+ 0.0352,+ 0.0002,+ 0.3183,+ 0.3104,+ 0.4636,+ 0.3432,+ 0.3675,+ 0.3943,+ 0.4602,+ 0.4691,+ 0.3334,+ 0.3633,+ 0.3568,+ 0.4292,+ 0.3232,+ 0.3248,+ 0.3064,+ 0.4396,+ 0.2607,+ 0.0121,+ 0.0046,+ 0.3881,+ 0.3022,+ 0.363,+ 0.3382,+ 0.2618,+ 0.3437,+ 0.4135,+ 0.4093,+ 0.3779,+ 0.2869,+ 0.4464,+ 0.3854,+ 0.2956,+ 0.0535,+ 0.0002,+ 0.3364,+ 0.334,+ 0.378,+ 0.3637,+ 0.4191,+ 0.293,+ 0.3317,+ 0.3736,+ 0.322,+ 0.4531,+ 0.4049,+ 0.1985,+ 0.0002,+ 0.4395,+ 0.4077,+ 0.3881,+ 0.3956,+ 0.3776,+ 0.153,+ 0.0002,+ 0.2659,+ 0.444,+ 0.277,+ 0.4435,+ 0.3974,+ 0.3658,+ 0.1242,+ 0.012,+ 0.3088,+ 0.3603,+ 0.3318,+ 0.3428,+ 0.3203,+ 0.4435,+ 0.3733,+ 0.3258,+ 0.3444,+ 0.2858,+ 0.4398,+ 0.3514,+ 0.3963,+ 0.4068,+ 0.4094,+ 0.0359,+ 0.0002,+ 0.1393,+ 0.3036,+ 0.3957,+ 0.3233,+ 0.3509,+ 0.3922,+ 0.3092,+ 0.1093,+ 0.0002,+ 0.3638,+ 0.3151,+ 0.3183,+ 0.1957,+ 0.2973,+ 0.4466,+ 0.332,+ 0.4787,+ 0.377,+ 0.4199,+ 0.4155,+ 0.4372,+ 0.3765,+ 0.4151,+ 0.3954,+ 0.3995,+ 0.3614,+ 0.403,+ 0.3006,+ 0.3348,+ 0.4034,+ 0.3151,+ 0.1194,+ 0.0002,+ 0.3269,+ 0.3424,+ 0.3465,+ 0.335,+ 0.1969,+ 0.3703,+ 0.2767,+ 0.4121,+ 0.361,+ 0.3819,+ 0.3489,+ 0.3791,+ 0.3165,+ 0.3318,+ 0.1726,+ 0.0777,+ 0.0002,+ 0.4443,+ 0.4218,+ 0.4262,+ 0.3944,+ 0.2476,+ 0.3558,+ 0.3466,+ 0.2852,+ 0.1,+ 0.001,+ 0.3855,+ 0.3402,+ 0.316,+ 0.3213,+ 0.2141,+ 0.3775,+ 0.3565,+ 0.3483,+ 0.3604,+ 0.4128,+ 0.4153,+ 0.3147,+ 0.4081,+ 0.3227,+ 0.3721,+ 0.3959,+ 0.4224,+ 0.1345,+ 0.3506,+ 0.4227,+ 0.3481,+ 0.3703,+ 0.0094,+ 0.0002,+ 0.3997,+ 0.3777,+ 0.3575,+ 0.3516,+ 0.3641,+ 0.4105,+ 0.4037,+ 0.3991,+ 0.4018,+ 0.3985,+ 0.3655,+ 0.4257,+ 0.4349,+ 0.3224,+ 0.0179,+ 0.3201,+ 0.3565,+ 0.3255,+ 0.3662,+ 0.4131,+ 0.4463,+ 0.3778,+ 0.039,+ 0.0002,+ 0.3357,+ 0.361,+ 0.3435,+ 0.3279,+ 0.3159,+ 0.2934,+ 0.0813,+ 0.0002,+ 0.0471,+ 0.3638,+ 0.3751,+ 0.2922,+ 0.3542,+ 0.1252,+ 0.0002,+ 0.3232,+ 0.3486,+ 0.3382,+ 0.0384,+ 0.3779,+ 0.3611,+ 0.1513,+ 0.0127,+ 0.0037,+ 0.3684,+ 0.3736,+ 0.344,+ 0.4182,+ 0.3928,+ 0.2852,+ 0.3441,+ 0.1907,+ 0.3761,+ 0.3167,+ 0.3671,+ 0.3164,+ 0.3555,+ 0.3766,+ 0.3326,+ 0.3536,+ 0.3717,+ 0.0134,+ 0.0002,+ 0.3501,+ 0.3589,+ 0.3274,+ 0.3518,+ 0.2186,+ 0.4487,+ 0.391,+ 0.0034,+ 0.0013,+ 0.359,+ 0.3848,+ 0.3331,+ 0.3536,+ 0.38,+ 0.4243,+ 0.2919,+ 0.4025,+ 0.4279,+ 0.3104,+ 0.0197,+ 0.0002,+ 0.3919,+ 0.425,+ 0.335,+ 0.4427,+ 0.3229,+ 0.3462,+ 0.3811,+ 0.3775,+ 0.1691,+ 0.0062,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0+ ]+ }+}diff --git a/website/src/components/Recreation/generated.ts b/website/src/components/Recreation/generated.tsnew file mode 100644index 000000000..da27100d4--- /dev/null+++ b/website/src/components/Recreation/generated.ts@@ -0,0 +1,639 @@+/**+ * GENERATED FILE — do not edit. Run `node scripts/gen-recreation.mjs` instead.+ *+ * Every value below was read out of, or computed from, one of:+ * · src/components/Recreation/fixture-slim.json (the project document, schemaVersion 7)+ * · ../src/i18n/locales/en/{editor,settings,timeline}.json+ * · ../src/lib/ai-edition/timeline/{format,zoom-scale,aggregated-transcript}.ts, imported and run+ * · ../src/components/ai-edition/v4/V4Timeline.tsx, lifted as source text and evaluated+ * · ../src/styles/design-tokens.css+ * · static/img/walkthrough/04-agent-a.jpg and editor-1560.jpg (two strings; see PROVENANCE)+ *+ * PROVENANCE names the source of every string this file puts on screen. Nothing+ * that could not be sourced was invented to fill a gap: the chat's context pill+ * is absent for that reason, and so is the webcam bubble.+ */++export interface RecreationWord {+ i: number;+ id: string;+ kind: "word" | "silence";+ text: string;+ startSec: number;+ endSec: number;+ kept: boolean;+ trimId: string | null;+}++export interface RecreationPill {+ lane: string;+ id: string;+ label: string;+ startSec: number;+ endSec: number;+ leftPct: number;+ widthPct: number;+ /** zoom lanes only — the stored ordinal the label was derived from. */+ depth?: number;+ /** zoom lanes only. */+ focusMode?: string;+ /** trim lanes only — "agent" for the two the agent placed. */+ origin?: string;+}++export interface RecreationLane {+ id: string;+ hint: string | null;+ pills: RecreationPill[];+}++export interface ProvenanceEntry {+ shown: string;+ source: string;+}++/** Where this data came from, and what it is a recreation of. */+export const META = {+ "schemaVersion": 7,+ "projectId": "proj_97e2ec4f-78a1-4198-9743-05511c204daa",+ "projectTitle": "Bellrock — docs walkthrough",+ "assetLabel": "Bellrock — docs walkthrough",+ "assetDurationSec": 40.033,+ "assetVideo": {+ "codec": "unknown",+ "width": 1920,+ "height": 1080,+ "fps": 0+ },+ "cameraTrackVisible": false,+ "generator": "website/scripts/gen-recreation.mjs"+} as const;++/** The transcript pane's header. */+export const INSPECTOR = {+ "title": "Current transcription",+ "indexBadge": "1",+ "filename": "Bellrock — docs walkthrough",+ "clipRange": "Clip 1 · 0:00.0—0:40.0",+ "wordCount": 103,+ "silenceCount": 3,+ "silenceThresholdSec": 0.2+} as const;++/**+ * The transcript flow, produced by the app's own `buildClipSection`: 103+ * words and 3 silence markers, each tagged kept or removed against the+ * document's two agent trims. 2 entries are removed, all of them silences.+ */+export const WORDS: RecreationWord[] = [+ {"i":0,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:silence_1","kind":"silence","text":"[silence 2.2s]","startSec":0,"endSec":2.19,"kept":false,"trimId":"trim_f52989cf-489c-47f5-a6c7-b95a7d71b399"},+ {"i":1,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_1","kind":"word","text":"Hi,","startSec":2.19,"endSec":2.63,"kept":true,"trimId":null},+ {"i":2,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_2","kind":"word","text":"quick","startSec":2.63,"endSec":3.02,"kept":true,"trimId":null},+ {"i":3,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_3","kind":"word","text":"walk","startSec":3.02,"endSec":3.08,"kept":true,"trimId":null},+ {"i":4,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_4","kind":"word","text":"through","startSec":3.08,"endSec":3.29,"kept":true,"trimId":null},+ {"i":5,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_5","kind":"word","text":"the","startSec":3.29,"endSec":3.95,"kept":true,"trimId":null},+ {"i":6,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_6","kind":"word","text":"documentation","startSec":3.95,"endSec":4.62,"kept":true,"trimId":null},+ {"i":7,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_7","kind":"word","text":"site.","startSec":4.62,"endSec":4.94,"kept":true,"trimId":null},+ {"i":8,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_8","kind":"word","text":"The","startSec":4.94,"endSec":5.2,"kept":true,"trimId":null},+ {"i":9,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_9","kind":"word","text":"new","startSec":5.2,"endSec":5.5200000000000005,"kept":true,"trimId":null},+ {"i":10,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_10","kind":"word","text":"release","startSec":5.5200000000000005,"endSec":5.62,"kept":true,"trimId":null},+ {"i":11,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_11","kind":"word","text":"went","startSec":5.62,"endSec":5.79,"kept":true,"trimId":null},+ {"i":12,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_12","kind":"word","text":"out","startSec":5.79,"endSec":6.01,"kept":true,"trimId":null},+ {"i":13,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_13","kind":"word","text":"this","startSec":6.01,"endSec":6.47,"kept":true,"trimId":null},+ {"i":14,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_14","kind":"word","text":"morning.","startSec":6.47,"endSec":6.82,"kept":true,"trimId":null},+ {"i":15,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_15","kind":"word","text":"The","startSec":6.83,"endSec":7.2,"kept":true,"trimId":null},+ {"i":16,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_16","kind":"word","text":"hero","startSec":7.2,"endSec":7.37,"kept":true,"trimId":null},+ {"i":17,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_17","kind":"word","text":"does","startSec":7.37,"endSec":7.57,"kept":true,"trimId":null},+ {"i":18,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_18","kind":"word","text":"the","startSec":7.57,"endSec":7.88,"kept":true,"trimId":null},+ {"i":19,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_19","kind":"word","text":"work","startSec":7.88,"endSec":8.16,"kept":true,"trimId":null},+ {"i":20,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_20","kind":"word","text":"now.","startSec":8.16,"endSec":8.58,"kept":true,"trimId":null},+ {"i":21,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_21","kind":"word","text":"One","startSec":8.58,"endSec":9.06,"kept":true,"trimId":null},+ {"i":22,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_22","kind":"word","text":"line,","startSec":9.06,"endSec":9.5,"kept":true,"trimId":null},+ {"i":23,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_23","kind":"word","text":"one","startSec":9.5,"endSec":10.040000000000001,"kept":true,"trimId":null},+ {"i":24,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_24","kind":"word","text":"promise,","startSec":10.040000000000001,"endSec":10.41,"kept":true,"trimId":null},+ {"i":25,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_25","kind":"word","text":"and","startSec":10.41,"endSec":10.6,"kept":true,"trimId":null},+ {"i":26,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_26","kind":"word","text":"the","startSec":10.6,"endSec":10.950000000000001,"kept":true,"trimId":null},+ {"i":27,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_27","kind":"word","text":"install","startSec":10.950000000000001,"endSec":11.21,"kept":true,"trimId":null},+ {"i":28,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_28","kind":"word","text":"command","startSec":11.21,"endSec":11.61,"kept":true,"trimId":null},+ {"i":29,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_29","kind":"word","text":"right","startSec":11.61,"endSec":11.97,"kept":true,"trimId":null},+ {"i":30,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_30","kind":"word","text":"under","startSec":11.97,"endSec":12.290000000000001,"kept":true,"trimId":null},+ {"i":31,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_31","kind":"word","text":"it.","startSec":12.290000000000001,"endSec":12.68,"kept":true,"trimId":null},+ {"i":32,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_32","kind":"word","text":"Scrolling","startSec":12.68,"endSec":13.25,"kept":true,"trimId":null},+ {"i":33,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_33","kind":"word","text":"down,","startSec":13.25,"endSec":13.63,"kept":true,"trimId":null},+ {"i":34,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_34","kind":"word","text":"those","startSec":13.63,"endSec":14.02,"kept":true,"trimId":null},+ {"i":35,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_35","kind":"word","text":"six","startSec":14.02,"endSec":14.4,"kept":true,"trimId":null},+ {"i":36,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_36","kind":"word","text":"cards","startSec":14.4,"endSec":14.450000000000001,"kept":true,"trimId":null},+ {"i":37,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_37","kind":"word","text":"are","startSec":14.450000000000001,"endSec":14.620000000000001,"kept":true,"trimId":null},+ {"i":38,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_38","kind":"word","text":"the","startSec":14.620000000000001,"endSec":14.77,"kept":true,"trimId":null},+ {"i":39,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_39","kind":"word","text":"whole","startSec":14.77,"endSec":15.21,"kept":true,"trimId":null},+ {"i":40,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_40","kind":"word","text":"library","startSec":15.21,"endSec":15.530000000000001,"kept":true,"trimId":null},+ {"i":41,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_41","kind":"word","text":"on","startSec":15.530000000000001,"endSec":15.75,"kept":true,"trimId":null},+ {"i":42,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_42","kind":"word","text":"one","startSec":15.75,"endSec":16.13,"kept":true,"trimId":null},+ {"i":43,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_43","kind":"word","text":"screen.","startSec":16.13,"endSec":16.62,"kept":true,"trimId":null},+ {"i":44,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_44","kind":"word","text":"No","startSec":16.82,"endSec":16.93,"kept":true,"trimId":null},+ {"i":45,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_45","kind":"word","text":"page","startSec":16.93,"endSec":17.37,"kept":true,"trimId":null},+ {"i":46,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_46","kind":"word","text":"gets","startSec":17.37,"endSec":17.62,"kept":true,"trimId":null},+ {"i":47,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_47","kind":"word","text":"more","startSec":17.62,"endSec":17.7,"kept":true,"trimId":null},+ {"i":48,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_48","kind":"word","text":"than","startSec":17.7,"endSec":17.96,"kept":true,"trimId":null},+ {"i":49,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_49","kind":"word","text":"a","startSec":17.96,"endSec":18.18,"kept":true,"trimId":null},+ {"i":50,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_50","kind":"word","text":"sentence.","startSec":18.18,"endSec":18.93,"kept":true,"trimId":null},+ {"i":51,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_51","kind":"word","text":"Over","startSec":18.93,"endSec":19.07,"kept":true,"trimId":null},+ {"i":52,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_52","kind":"word","text":"on","startSec":19.07,"endSec":19.56,"kept":true,"trimId":null},+ {"i":53,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_53","kind":"word","text":"status,","startSec":19.56,"endSec":20.17,"kept":true,"trimId":null},+ {"i":54,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_54","kind":"word","text":"every","startSec":20.17,"endSec":20.650000000000002,"kept":true,"trimId":null},+ {"i":55,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_55","kind":"word","text":"component","startSec":20.650000000000002,"endSec":21.06,"kept":true,"trimId":null},+ {"i":56,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_56","kind":"word","text":"with","startSec":21.06,"endSec":21.31,"kept":true,"trimId":null},+ {"i":57,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_57","kind":"word","text":"30","startSec":21.31,"endSec":21.490000000000002,"kept":true,"trimId":null},+ {"i":58,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_58","kind":"word","text":"days","startSec":21.490000000000002,"endSec":21.82,"kept":true,"trimId":null},+ {"i":59,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_59","kind":"word","text":"of","startSec":21.82,"endSec":21.91,"kept":true,"trimId":null},+ {"i":60,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_60","kind":"word","text":"probes","startSec":21.91,"endSec":22.36,"kept":true,"trimId":null},+ {"i":61,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_61","kind":"word","text":"behind","startSec":22.36,"endSec":22.740000000000002,"kept":true,"trimId":null},+ {"i":62,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_62","kind":"word","text":"it.","startSec":22.740000000000002,"endSec":23.05,"kept":true,"trimId":null},+ {"i":63,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_63","kind":"word","text":"One","startSec":23.19,"endSec":23.45,"kept":true,"trimId":null},+ {"i":64,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_64","kind":"word","text":"amber","startSec":23.45,"endSec":23.63,"kept":true,"trimId":null},+ {"i":65,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_65","kind":"word","text":"day","startSec":23.63,"endSec":23.830000000000002,"kept":true,"trimId":null},+ {"i":66,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_66","kind":"word","text":"on","startSec":23.830000000000002,"endSec":24.060000000000002,"kept":true,"trimId":null},+ {"i":67,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_67","kind":"word","text":"the","startSec":24.060000000000002,"endSec":24.27,"kept":true,"trimId":null},+ {"i":68,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_68","kind":"word","text":"validator,","startSec":24.27,"endSec":24.94,"kept":true,"trimId":null},+ {"i":69,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_69","kind":"word","text":"and","startSec":24.94,"endSec":25.19,"kept":true,"trimId":null},+ {"i":70,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_70","kind":"word","text":"it","startSec":25.19,"endSec":25.560000000000002,"kept":true,"trimId":null},+ {"i":71,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_71","kind":"word","text":"recovered,","startSec":25.560000000000002,"endSec":25.990000000000002,"kept":true,"trimId":null},+ {"i":72,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_72","kind":"word","text":"and","startSec":25.990000000000002,"endSec":26.54,"kept":true,"trimId":null},+ {"i":73,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_73","kind":"word","text":"releases.","startSec":26.54,"endSec":27.09,"kept":true,"trimId":null},+ {"i":74,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:silence_2","kind":"silence","text":"[silence 0.2s]","startSec":27.09,"endSec":27.32,"kept":true,"trimId":null},+ {"i":75,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_74","kind":"word","text":"Three","startSec":27.32,"endSec":27.400000000000002,"kept":true,"trimId":null},+ {"i":76,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_75","kind":"word","text":"of","startSec":27.400000000000002,"endSec":27.45,"kept":true,"trimId":null},+ {"i":77,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_76","kind":"word","text":"them,","startSec":27.45,"endSec":28.060000000000002,"kept":true,"trimId":null},+ {"i":78,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_77","kind":"word","text":"newest","startSec":28.060000000000002,"endSec":28.54,"kept":true,"trimId":null},+ {"i":79,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_78","kind":"word","text":"first,","startSec":28.54,"endSec":28.95,"kept":true,"trimId":null},+ {"i":80,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_79","kind":"word","text":"and","startSec":28.95,"endSec":29.240000000000002,"kept":true,"trimId":null},+ {"i":81,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_80","kind":"word","text":"every","startSec":29.240000000000002,"endSec":29.53,"kept":true,"trimId":null},+ {"i":82,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_81","kind":"word","text":"line","startSec":29.53,"endSec":29.88,"kept":true,"trimId":null},+ {"i":83,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_82","kind":"word","text":"links","startSec":29.88,"endSec":30.09,"kept":true,"trimId":null},+ {"i":84,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_83","kind":"word","text":"into","startSec":30.09,"endSec":30.32,"kept":true,"trimId":null},+ {"i":85,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_84","kind":"word","text":"the","startSec":30.32,"endSec":30.560000000000002,"kept":true,"trimId":null},+ {"i":86,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_85","kind":"word","text":"commit","startSec":30.560000000000002,"endSec":30.62,"kept":true,"trimId":null},+ {"i":87,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_86","kind":"word","text":"that","startSec":30.62,"endSec":30.810000000000002,"kept":true,"trimId":null},+ {"i":88,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_87","kind":"word","text":"did","startSec":30.810000000000002,"endSec":31.1,"kept":true,"trimId":null},+ {"i":89,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_88","kind":"word","text":"it.","startSec":31.1,"endSec":31.560000000000002,"kept":true,"trimId":null},+ {"i":90,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_89","kind":"word","text":"Back","startSec":31.39,"endSec":31.62,"kept":true,"trimId":null},+ {"i":91,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_90","kind":"word","text":"to","startSec":31.62,"endSec":31.76,"kept":true,"trimId":null},+ {"i":92,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_91","kind":"word","text":"the","startSec":31.76,"endSec":32.160000000000004,"kept":true,"trimId":null},+ {"i":93,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_92","kind":"word","text":"top,","startSec":32.160000000000004,"endSec":32.46,"kept":true,"trimId":null},+ {"i":94,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_93","kind":"word","text":"and","startSec":32.46,"endSec":32.730000000000004,"kept":true,"trimId":null},+ {"i":95,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_94","kind":"word","text":"that","startSec":32.730000000000004,"endSec":32.86,"kept":true,"trimId":null},+ {"i":96,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_95","kind":"word","text":"is","startSec":32.86,"endSec":32.9,"kept":true,"trimId":null},+ {"i":97,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_96","kind":"word","text":"the","startSec":32.9,"endSec":33.07,"kept":true,"trimId":null},+ {"i":98,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_97","kind":"word","text":"whole","startSec":33.07,"endSec":33.55,"kept":true,"trimId":null},+ {"i":99,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_98","kind":"word","text":"flow.","startSec":33.55,"endSec":34.03,"kept":true,"trimId":null},+ {"i":100,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_99","kind":"word","text":"Tell","startSec":33.99,"endSec":34.19,"kept":true,"trimId":null},+ {"i":101,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_100","kind":"word","text":"me","startSec":34.19,"endSec":34.5,"kept":true,"trimId":null},+ {"i":102,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_101","kind":"word","text":"what","startSec":34.5,"endSec":34.53,"kept":true,"trimId":null},+ {"i":103,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_102","kind":"word","text":"you","startSec":34.53,"endSec":35,"kept":true,"trimId":null},+ {"i":104,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:word_103","kind":"word","text":"think.","startSec":35,"endSec":35.12,"kept":true,"trimId":null},+ {"i":105,"id":"clip_3aa049d2-cf6c-406e-99fa-4a9754fea5fe:silence_3","kind":"silence","text":"[silence 4.9s]","startSec":35.12,"endSec":40.033,"kept":false,"trimId":"trim_3bad6006-721a-4dd4-a218-091fa734a63e"},+];++/** The five lanes in the app's order. A lane carries its shortcut hint if and+ * only if the document holds no regions for it. */+export const LANES: RecreationLane[] = [+ {"id":"annotation","hint":"Press A to add annotation","pills":[]},+ {"id":"speed","hint":"Press S to add speed","pills":[]},+ {"id":"trim","hint":null,"pills":[{"lane":"trim","id":"trim_f52989cf-489c-47f5-a6c7-b95a7d71b399","label":"0:02.2","startSec":0,"endSec":2.19,"leftPct":0,"widthPct":5.4705,"origin":"agent"},{"lane":"trim","id":"trim_3bad6006-721a-4dd4-a218-091fa734a63e","label":"0:04.9","startSec":35.12,"endSec":40.033,"leftPct":87.7276,"widthPct":12.2724,"origin":"agent"}]},+ {"id":"zoom","hint":null,"pills":[{"lane":"zoom","id":"zoom_403360f0-0784-4034-994a-a79eb4e5aa55","label":"1.80×","startSec":4.2,"endSec":12.6,"leftPct":10.4913,"widthPct":20.9827,"depth":3,"focusMode":"auto"},{"lane":"zoom","id":"zoom_2d7bd6ce-02e1-4f7d-ad63-03ada76859e3","label":"2.20×","startSec":17.5,"endSec":24.5,"leftPct":43.7139,"widthPct":17.4856,"depth":4,"focusMode":"manual"},{"lane":"zoom","id":"zoom_11caaa47-6be5-4afa-bf1d-f2e6650f2066","label":"1.80×","startSec":33.112,"endSec":35.156,"leftPct":82.7118,"widthPct":5.1058,"depth":3,"focusMode":"manual"}]},+ {"id":"cameraFullscreen","hint":"Press C to add a Full Camera segment","pills":[]},+];++/** Every pill on the floor, flattened. */+export const PILLS: RecreationPill[] = [+ {"lane":"trim","id":"trim_f52989cf-489c-47f5-a6c7-b95a7d71b399","label":"0:02.2","startSec":0,"endSec":2.19,"leftPct":0,"widthPct":5.4705,"origin":"agent"},+ {"lane":"trim","id":"trim_3bad6006-721a-4dd4-a218-091fa734a63e","label":"0:04.9","startSec":35.12,"endSec":40.033,"leftPct":87.7276,"widthPct":12.2724,"origin":"agent"},+ {"lane":"zoom","id":"zoom_403360f0-0784-4034-994a-a79eb4e5aa55","label":"1.80×","startSec":4.2,"endSec":12.6,"leftPct":10.4913,"widthPct":20.9827,"depth":3,"focusMode":"auto"},+ {"lane":"zoom","id":"zoom_2d7bd6ce-02e1-4f7d-ad63-03ada76859e3","label":"2.20×","startSec":17.5,"endSec":24.5,"leftPct":43.7139,"widthPct":17.4856,"depth":4,"focusMode":"manual"},+ {"lane":"zoom","id":"zoom_11caaa47-6be5-4afa-bf1d-f2e6650f2066","label":"1.80×","startSec":33.112,"endSec":35.156,"leftPct":82.7118,"widthPct":5.1058,"depth":3,"focusMode":"manual"},+];++/** The ruler, re-derived per breakpoint the way the app re-derives it per zoom. */+export const RULER = {+ "minLabelGapPx": 76,+ "minorPerMajor": 5,+ "tickStepsSec": [+ 0.05,+ 0.1,+ 0.25,+ 0.5,+ 1,+ 2,+ 5,+ 10,+ 15,+ 30,+ 60,+ 120,+ 300,+ 600,+ 900,+ 1800,+ 3600+ ],+ "wideBreakpointPx": 3043,+ "variants": [+ {+ "worldPx": 1920,+ "pxPerSec": 47.9604,+ "stepSec": 2,+ "minorSec": 0.4,+ "minorPct": 0.999176,+ "labels": [+ {"sec":0,"leftPct":0,"text":"0:00"},+ {"sec":2,"leftPct":4.9959,"text":"0:02"},+ {"sec":4,"leftPct":9.9918,"text":"0:04"},+ {"sec":6,"leftPct":14.9876,"text":"0:06"},+ {"sec":8,"leftPct":19.9835,"text":"0:08"},+ {"sec":10,"leftPct":24.9794,"text":"0:10"},+ {"sec":12,"leftPct":29.9753,"text":"0:12"},+ {"sec":14,"leftPct":34.9711,"text":"0:14"},+ {"sec":16,"leftPct":39.967,"text":"0:16"},+ {"sec":18,"leftPct":44.9629,"text":"0:18"},+ {"sec":20,"leftPct":49.9588,"text":"0:20"},+ {"sec":22,"leftPct":54.9547,"text":"0:22"},+ {"sec":24,"leftPct":59.9505,"text":"0:24"},+ {"sec":26,"leftPct":64.9464,"text":"0:26"},+ {"sec":28,"leftPct":69.9423,"text":"0:28"},+ {"sec":30,"leftPct":74.9382,"text":"0:30"},+ {"sec":32,"leftPct":79.9341,"text":"0:32"},+ {"sec":34,"leftPct":84.9299,"text":"0:34"},+ {"sec":36,"leftPct":89.9258,"text":"0:36"},+ {"sec":38,"leftPct":94.9217,"text":"0:38"},+ {"sec":40,"leftPct":99.9176,"text":"0:40"},+]+ },+ {+ "worldPx": 3440,+ "pxPerSec": 85.9291,+ "stepSec": 1,+ "minorSec": 0.2,+ "minorPct": 0.499588,+ "labels": [+ {"sec":0,"leftPct":0,"text":"0:00"},+ {"sec":1,"leftPct":2.4979,"text":"0:01"},+ {"sec":2,"leftPct":4.9959,"text":"0:02"},+ {"sec":3,"leftPct":7.4938,"text":"0:03"},+ {"sec":4,"leftPct":9.9918,"text":"0:04"},+ {"sec":5,"leftPct":12.4897,"text":"0:05"},+ {"sec":6,"leftPct":14.9876,"text":"0:06"},+ {"sec":7,"leftPct":17.4856,"text":"0:07"},+ {"sec":8,"leftPct":19.9835,"text":"0:08"},+ {"sec":9,"leftPct":22.4815,"text":"0:09"},+ {"sec":10,"leftPct":24.9794,"text":"0:10"},+ {"sec":11,"leftPct":27.4773,"text":"0:11"},+ {"sec":12,"leftPct":29.9753,"text":"0:12"},+ {"sec":13,"leftPct":32.4732,"text":"0:13"},+ {"sec":14,"leftPct":34.9711,"text":"0:14"},+ {"sec":15,"leftPct":37.4691,"text":"0:15"},+ {"sec":16,"leftPct":39.967,"text":"0:16"},+ {"sec":17,"leftPct":42.465,"text":"0:17"},+ {"sec":18,"leftPct":44.9629,"text":"0:18"},+ {"sec":19,"leftPct":47.4608,"text":"0:19"},+ {"sec":20,"leftPct":49.9588,"text":"0:20"},+ {"sec":21,"leftPct":52.4567,"text":"0:21"},+ {"sec":22,"leftPct":54.9547,"text":"0:22"},+ {"sec":23,"leftPct":57.4526,"text":"0:23"},+ {"sec":24,"leftPct":59.9505,"text":"0:24"},+ {"sec":25,"leftPct":62.4485,"text":"0:25"},+ {"sec":26,"leftPct":64.9464,"text":"0:26"},+ {"sec":27,"leftPct":67.4444,"text":"0:27"},+ {"sec":28,"leftPct":69.9423,"text":"0:28"},+ {"sec":29,"leftPct":72.4402,"text":"0:29"},+ {"sec":30,"leftPct":74.9382,"text":"0:30"},+ {"sec":31,"leftPct":77.4361,"text":"0:31"},+ {"sec":32,"leftPct":79.9341,"text":"0:32"},+ {"sec":33,"leftPct":82.432,"text":"0:33"},+ {"sec":34,"leftPct":84.9299,"text":"0:34"},+ {"sec":35,"leftPct":87.4279,"text":"0:35"},+ {"sec":36,"leftPct":89.9258,"text":"0:36"},+ {"sec":37,"leftPct":92.4238,"text":"0:37"},+ {"sec":38,"leftPct":94.9217,"text":"0:38"},+ {"sec":39,"leftPct":97.4196,"text":"0:39"},+ {"sec":40,"leftPct":99.9176,"text":"0:40"},+]+ }+ ]+} as const;++/** 320 bars in five opacity buckets, five paths. */+export const WAVEFORM = {+ "viewBox": "0 0 320 100",+ "barCount": 320,+ "strokeWidthPx": 2,+ "gapPx": 1,+ "note": "preserveAspectRatio=none; stroke-width 2 with vector-effect:non-scaling-stroke reproduces .tlWave span {max-width:2px}",+ "paths": [+ {+ "opacity": 0.5,+ "bars": 100,+ "d": "M0.5 46V54M1.5 46V54M2.5 46V54M3.5 46V54M4.5 46V54M5.5 46V54M6.5 46V54M7.5 46V54M8.5 46V54M9.5 46V54M10.5 46V54M11.5 46V54M12.5 46V54M13.5 46V54M14.5 46V54M15.5 46V54M19.5 46V54M20.5 46V54M38.5 46V54M39.5 46V54M53.5 46V54M54.5 46V54M67.5 46V54M73.5 42.5V57.5M74.5 46V54M81.5 44V56M82.5 46V54M98.5 46V54M99.5 46V54M100.5 43V57M107.5 44.5V55.5M108.5 46V54M131.5 44V56M132.5 46V54M147.5 41.5V58.5M148.5 46V54M149.5 46V54M158.5 45V55M159.5 46V54M177.5 43.5V56.5M182.5 46V54M183.5 46V54M198.5 46V54M206.5 46V54M207.5 46V54M214.5 46V54M215.5 46V54M216.5 46V54M221.5 43.5V56.5M222.5 46V54M226.5 46V54M229.5 42.5V57.5M230.5 46V54M231.5 46V54M249.5 46V54M250.5 46V54M258.5 46V54M259.5 46V54M270.5 46V54M271.5 46V54M280.5 41.5V58.5M281.5 46V54M282.5 46V54M283.5 46V54M284.5 46V54M285.5 46V54M286.5 46V54M287.5 46V54M288.5 46V54M289.5 46V54M290.5 46V54M291.5 46V54M292.5 46V54M293.5 46V54M294.5 46V54M295.5 46V54M296.5 46V54M297.5 46V54M298.5 46V54M299.5 46V54M300.5 46V54M301.5 46V54M302.5 46V54M303.5 46V54M304.5 46V54M305.5 46V54M306.5 46V54M307.5 46V54M308.5 46V54M309.5 46V54M310.5 46V54M311.5 46V54M312.5 46V54M313.5 46V54M314.5 46V54M315.5 46V54M316.5 46V54M317.5 46V54M318.5 46V54M319.5 46V54"+ },+ {+ "opacity": 0.6,+ "bars": 153,+ "d": "M16.5 33V67M18.5 31V69M21.5 34V66M22.5 34.5V65.5M24.5 33V67M25.5 31.5V68.5M29.5 33.5V66.5M30.5 32V68M31.5 32V68M33.5 34V66M34.5 34V66M35.5 34.5V65.5M37.5 37V63M40.5 30.5V69.5M41.5 35V65M42.5 32V68M43.5 33V67M44.5 37V63M45.5 33V67M48.5 31V69M49.5 35.5V64.5M51.5 30.5V69.5M52.5 35V65M55.5 33V67M56.5 33.5V66.5M57.5 31V69M58.5 32V68M60.5 35.5V64.5M61.5 33.5V66.5M62.5 31.5V68.5M63.5 34V66M66.5 40V60M70.5 30.5V69.5M72.5 31V69M75.5 36.5V63.5M77.5 36V64M80.5 31.5V68.5M83.5 34.5V65.5M84.5 32V68M85.5 33.5V66.5M86.5 33V67M87.5 34V66M89.5 31.5V68.5M90.5 33.5V66.5M91.5 33V67M92.5 35.5V64.5M94.5 32.5V67.5M101.5 35V65M103.5 34V66M104.5 32.5V67.5M106.5 34.5V65.5M109.5 32V68M110.5 34V66M111.5 34V66M112.5 40V60M113.5 35V65M115.5 33.5V66.5M117.5 31V69M121.5 31V69M125.5 32V68M127.5 35V65M128.5 33.5V66.5M130.5 34V66M133.5 33.5V66.5M134.5 33V67M135.5 32.5V67.5M136.5 33V67M137.5 40V60M138.5 31.5V68.5M139.5 36V64M141.5 32V68M142.5 31V69M143.5 32.5V67.5M144.5 31V69M145.5 34V66M146.5 33.5V66.5M154.5 37.5V62.5M155.5 32V68M156.5 32.5V67.5M157.5 35.5V64.5M160.5 30.5V69.5M161.5 33V67M162.5 34V66M163.5 34V66M164.5 39.5V60.5M165.5 31V69M166.5 32V68M167.5 32.5V67.5M168.5 32V68M171.5 34.5V65.5M173.5 34V66M174.5 31.5V68.5M178.5 32.5V67.5M180.5 32.5V67.5M181.5 31.5V68.5M185.5 31V69M186.5 32V68M187.5 32.5V67.5M188.5 32V68M194.5 31.5V68.5M197.5 34V66M199.5 34V66M200.5 32V68M201.5 33.5V66.5M202.5 31.5V68.5M205.5 31V69M208.5 33V67M209.5 32V68M210.5 33V67M211.5 33.5V66.5M212.5 34V66M213.5 35.5V64.5M217.5 32V68M218.5 31V69M219.5 35.5V64.5M220.5 32.5V67.5M223.5 34V66M224.5 32.5V67.5M225.5 33V67M227.5 31V69M228.5 32V68M232.5 31.5V68.5M233.5 31.5V68.5M234.5 33V67M237.5 35.5V64.5M238.5 33V67M239.5 40.5V59.5M240.5 31V69M241.5 34V66M242.5 31.5V68.5M243.5 34V66M244.5 32V68M245.5 31V69M246.5 33.5V66.5M247.5 32.5V67.5M248.5 31.5V68.5M251.5 32.5V67.5M252.5 32V68M253.5 33.5V66.5M254.5 32.5V67.5M255.5 39V61M260.5 32V68M261.5 31V69M262.5 33.5V66.5M263.5 32.5V67.5M264.5 31V69M266.5 35.5V64.5M269.5 34.5V65.5M274.5 33V67M276.5 34V66M277.5 32.5V67.5M278.5 31V69M279.5 31V69"+ },+ {+ "opacity": 0.7,+ "bars": 67,+ "d": "M17.5 26V74M23.5 27V73M26.5 30.5V69.5M27.5 27V73M28.5 26.5V73.5M32.5 28.5V71.5M36.5 28V72M46.5 29.5V70.5M47.5 29.5V70.5M50.5 27.5V72.5M59.5 29V71M64.5 27.5V72.5M65.5 30V70M68.5 28V72M69.5 29.5V70.5M71.5 30V70M76.5 28V72M78.5 28V72M79.5 30V70M88.5 28V72M93.5 28V72M95.5 30V70M96.5 29.5V70.5M97.5 29.5V70.5M102.5 30V70M105.5 30.5V69.5M114.5 27.5V72.5M116.5 26V74M118.5 29V71M119.5 29V71M120.5 28V72M122.5 29V71M123.5 30V70M124.5 30V70M126.5 30V70M129.5 30V70M140.5 29.5V70.5M150.5 28V72M151.5 29V71M152.5 28.5V71.5M153.5 30.5V69.5M169.5 29.5V70.5M170.5 29V71M172.5 29.5V70.5M175.5 30V70M176.5 29V71M179.5 29V71M184.5 30V70M189.5 29.5V70.5M190.5 30V70M191.5 30V70M192.5 30V70M193.5 30V70M195.5 28.5V71.5M196.5 28.5V71.5M203.5 29.5V70.5M204.5 27.5V72.5M235.5 29V71M236.5 30.5V69.5M256.5 27.5V72.5M257.5 30.5V69.5M265.5 29V71M267.5 30V70M268.5 28.5V71.5M272.5 30.5V69.5M273.5 28.5V71.5M275.5 28V72"+ },+ {+ "opacity": 0.8,+ "bars": 0,+ "d": ""+ },+ {+ "opacity": 0.9,+ "bars": 0,+ "d": ""+ }+ ]+} as const;++/** The conversation. */+export const CHAT = {+ "conversationTitle": "Conversation 1",+ "emptyState": "No messages yet. Ask the agent to cut silences, tighten pauses, or add captions.",+ "authorUser": "You",+ "authorAssistant": "OpenScreen",+ "userPrompt": "Cut the dead time in this recording: long pauses, silences, and idle stretches where nothing is being said or done. Keep the pacing tight and natural, and do not cut anything a viewer needs. Apply the edits directly to the timeline.",+ "agentReply": [+ {+ "kind": "p",+ "runs": [+ {+ "text": "Here's what I found and cut:",+ "strong": false+ }+ ]+ },+ {+ "kind": "p",+ "runs": [+ {+ "text": "Finding:",+ "strong": true+ },+ {+ "text": " The speech itself is nearly gapless — every pause between spoken words is well under a second, so there were no internal silences to remove. The only silences over 1s were at the two ends:",+ "strong": false+ }+ ]+ },+ {+ "kind": "p",+ "runs": [+ {+ "text": "Cuts applied (both on your single placed clip, which is untouched otherwise):",+ "strong": true+ }+ ]+ },+ {+ "kind": "li",+ "runs": [+ {+ "text": "0–2.19s",+ "strong": true+ },+ {+ "text": " — the 2.2s dead lead-in before \"Hi,\" (cut)",+ "strong": false+ }+ ]+ },+ {+ "kind": "li",+ "runs": [+ {+ "text": "35.12–40.03s",+ "strong": true+ },+ {+ "text": " — the ~4.9s dead tail after \"think.\" (cut)",+ "strong": false+ }+ ]+ },+ {+ "kind": "p",+ "runs": [+ {+ "text": "The video now runs from \"Hi,\" straight through to \"think.\" — about ",+ "strong": false+ },+ {+ "text": "7 seconds shorter",+ "strong": true+ },+ {+ "text": " (40.0s → 33.0s of playable footage).",+ "strong": false+ }+ ]+ },+ {+ "kind": "p",+ "runs": [+ {+ "text": "Your zooms (incl. the manual 1.8×/2.2× punches) stay anchored to the same moments in the narration.",+ "strong": false+ }+ ]+ },+ {+ "kind": "p",+ "runs": [+ {+ "text": "One note: the cut starts the video right at the first word with no lead-in. If you'd rather keep a half-second of breathing room before \"Hi,\" say the word and I'll restore a short lead.",+ "strong": false+ }+ ]+ }+ ],+ "agentReplyText": "Here's what I found and cut:\n\n**Finding:** The speech itself is nearly gapless — every pause between spoken words is well under a second, so there were no internal silences to remove. The only silences over 1s were at the two ends:\n\n**Cuts applied (both on your single placed clip, which is untouched otherwise):**\n\n- **0–2.19s** — the 2.2s dead lead-in before \"Hi,\" (cut)\n- **35.12–40.03s** — the ~4.9s dead tail after \"think.\" (cut)\n\nThe video now runs from \"Hi,\" straight through to \"think.\" — about **7 seconds shorter** (40.0s → 33.0s of playable footage).\n\nYour zooms (incl. the manual 1.8×/2.2× punches) stay anchored to the same moments in the narration.\n\nOne note: the cut starts the video right at the first word with no lead-in. If you'd rather keep a half-second of breathing room before \"Hi,\" say the word and I'll restore a short lead.",+ "applied": "applied: added 2 trims",+ "composerPlaceholder": "Describe the edit you want.",+ "modelChip": "deepseek-v4-flash"+} as const;++/** The preview frame's geometry, and the loop that plays inside it. */+export const STAGE = {+ "aspectRatio": "16:9",+ "wallpaper": "/wallpapers/wallpaper5.jpg",+ "padding": 55,+ "paddingFit": 0.78,+ "borderRadius": 40,+ "frame": {+ "width": 1071,+ "height": 603+ },+ "contentBox": {+ "width": 835,+ "height": 470+ },+ "screen": {+ "width": 835,+ "height": 470+ },+ "webcam": null,+ "webcamReason": "assets[0].cameraTrack.visible is false and legacyEditor.webcamLayoutPreset is \"no-webcam\" — there is no bubble to draw"+} as const;+export const LOOP = {+ "startSec": 17.5,+ "contentEndSec": 24.3,+ "contentDurationSec": 6.8,+ "durationSec": 7,+ "dissolveSec": 0.6,+ "holdSec": 0.2,+ "zoomScale": 2.2,+ "crop": {+ "w": 872,+ "h": 490,+ "x": 524,+ "y": 295+ },+ "src": "/video/canvas-loop.mp4",+ "srcSmall": "/video/canvas-loop-sm.mp4",+ "poster": "/img/walkthrough/canvas-poster.jpg",+ "width": 836,+ "height": 470,+ "widthSmall": 640,+ "heightSmall": 360,+ "timeMapping": "startSec + min(currentTime, contentDurationSec)"+} as const;++export const TRANSPORT = {+ "restCurrent": "0:17.5",+ "endCurrent": "0:24.3",+ "total": "0:40.0",+ "restLeftPct": 43.7139,+ "endLeftPct": 60.6999+} as const;+export const TOOLBAR = {+ "aspectRatio": "16:9",+ "panKbd": "Shift+Scroll",+ "panLabel": "Pan",+ "zoomKbd": "Ctrl+Scroll",+ "zoomLabel": "Zoom",+ "clipLabel": "Bellrock — docs walkthrough"+} as const;++/** The app's dark tokens, read out of design-tokens.css. */+export const TOKENS = {+ "surface": "#14181f",+ "surface1": "#14181f",+ "surface2": "#1c2029",+ "surface3": "#252a35",+ "border": "#252a35",+ "borderHi": "#3a4150",+ "fg": "#e6e9ef",+ "fg2": "#f3f5f8",+ "muted": "#8b95a3",+ "meta": "#8b95a3",+ "metaInApp": "#5b6470",+ "accent": "#10b981",+ "danger": "#f87171",+ "playhead": "#6c55ff"+} as const;++/** One entry per string on screen. */+export const PROVENANCE: ProvenanceEntry[] = [+ {"shown":"Current transcription","source":"src/i18n/locales/en/settings.json → transcript.title"},+ {"shown":"Clip 1 · 0:00.0—0:40.0","source":"computed: settings.json transcript.clipLabel with index 1, joined to formatMs(0) and formatMs(40033) from src/lib/ai-edition/timeline/format.ts"},+ {"shown":"Bellrock — docs walkthrough","source":"fixture assets[0].label"},+ {"shown":"[silence 2.2s]","source":"computed: settings.json transcript.silence over the 2.190s gap 0–2.19 that buildClipSection inserted at SILENCE_THRESHOLD_SEC 0.2; inside trimRange trim_f52989cf-489c-47f5-a6c7-b95a7d71b399"},+ {"shown":"[silence 0.2s]","source":"computed: settings.json transcript.silence over the 0.230s gap 27.09–27.32 that buildClipSection inserted at SILENCE_THRESHOLD_SEC 0.2; outside any trim"},+ {"shown":"[silence 4.9s]","source":"computed: settings.json transcript.silence over the 4.913s gap 35.12–40.033 that buildClipSection inserted at SILENCE_THRESHOLD_SEC 0.2; inside trimRange trim_3bad6006-721a-4dd4-a218-091fa734a63e"},+ {"shown":"Hi, quick walk through the documentation site. The new release went out this morning. The hero does the work now. One line, one promise, and the install command right under it. Scrolling down, those six cards are the whole library on one screen. No page gets more than a sentence. Over on status, every component with 30 days of probes behind it. One amber day on the validator, and it recovered, and releases. Three of them, newest first, and every line links into the commit that did it. Back to the top, and that is the whole flow. Tell me what you think.","source":"fixture transcript.words, rejoined in start order; every entry is rendered as its own span"},+ {"shown":"Conversation 1","source":"computed: editor.json chat.untitledConversation + the session index, as LeftPanel.tsx:1433 renders it"},+ {"shown":"No messages yet. Ask the agent to cut silences, tighten pauses, or add captions.","source":"editor.json chat.emptyState"},+ {"shown":"You","source":"editor.json chat.authorUser"},+ {"shown":"OpenScreen","source":"editor.json chat.authorAssistant"},+ {"shown":"Cut the dead time in this recording: long pauses, silences, and idle stretches where nothing is being said or done. Keep the pacing tight and natural, and do not cut anything a viewer needs. Apply the edits directly to the timeline.","source":"src/components/ai-edition/v4/V4Timeline.tsx AI_ENHANCE_PROMPT, lifted verbatim as source text"},+ {"shown":"Here's what I found and cut:\n\n**Finding:** The speech itself is nearly gapless — every pause between spoken words is well under a second, so there were no internal silences to remove. The only silences over 1s were at the two ends:\n\n**Cuts applied (both on your single placed clip, which is untouched otherwise):**\n\n- **0–2.19s** — the 2.2s dead lead-in before \"Hi,\" (cut)\n- **35.12–40.03s** — the ~4.9s dead tail after \"think.\" (cut)\n\nThe video now runs from \"Hi,\" straight through to \"think.\" — about **7 seconds shorter** (40.0s → 33.0s of playable footage).\n\nYour zooms (incl. the manual 1.8×/2.2× punches) stay anchored to the same moments in the narration.\n\nOne note: the cut starts the video right at the first word with no lead-in. If you'd rather keep a half-second of breathing room before \"Hi,\" say the word and I'll restore a short lead.","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."},+ {"shown":"applied: added 2 trims","source":"computed: editor.json chat.appliedPrefix + the bulk-add tool's own wording (electron/ai-edition/agent-tools.ts: added ${n} ${noun}s) with n = 2, the trimRanges whose origin is \"agent\""},+ {"shown":"Describe the edit you want.","source":"editor.json chat.composerPlaceholder"},+ {"shown":"deepseek-v4-flash","source":"photograph: static/img/walkthrough/editor-1560.jpg — what was on screen when the plate was shot. NOT in provider-registry.ts; it was typed into an OpenAI-compatible provider config. The one visible string whose referent cannot be verified in the source, kept because the photographs beside it already ship it."},+ {"shown":"1.80×","source":"computed: effectiveZoomScale(zoomRanges depth 3).toFixed(2) + \"×\" from src/lib/ai-edition/timeline/zoom-scale.ts"},+ {"shown":"2.20×","source":"computed: effectiveZoomScale(zoomRanges depth 4).toFixed(2) + \"×\" from src/lib/ai-edition/timeline/zoom-scale.ts"},+ {"shown":"1.80×","source":"computed: effectiveZoomScale(zoomRanges depth 3).toFixed(2) + \"×\" from src/lib/ai-edition/timeline/zoom-scale.ts"},+ {"shown":"0:02.2","source":"computed: formatSec(2.19 − 0) over trimRange trim_f52989cf-489c-47f5-a6c7-b95a7d71b399"},+ {"shown":"0:04.9","source":"computed: formatSec(40.033 − 35.12) over trimRange trim_3bad6006-721a-4dd4-a218-091fa734a63e"},+ {"shown":"Press A to add annotation","source":"timeline.json hints.pressAnnotation — rendered because the document holds no annotation regions"},+ {"shown":"Press S to add speed","source":"timeline.json hints.pressSpeed — rendered because the document holds no speed regions"},+ {"shown":"Press C to add a Full Camera segment","source":"timeline.json hints.pressCameraFullscreen — rendered because the document holds no cameraFullscreen regions"},+ {"shown":"0:00 0:02 0:04 0:06 0:08 0:10 0:12 0:14 0:16 0:18 0:20 0:22 0:24 0:26 0:28 0:30 0:32 0:34 0:36 0:38 0:40","source":"computed: fmtTick lifted from V4Timeline.tsx over a 2s step, itself derived as the first TICK_STEPS_SEC entry clearing MIN_LABEL_GAP_PX 76 at 47.9604 px/s"},+ {"shown":"0:40.0","source":"computed: formatSec(assets[0].durationSec = 40.033)"},+ {"shown":"0:17.5","source":"computed: formatSec(zoomRanges[1].sourceStartSec = 17.5) — where the loop starts"},+ {"shown":"16:9","source":"fixture legacyEditor.aspectRatio"},+ {"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"},+];++/** What check-recreation.mjs asserts against. */+export const MARKUP = {+ pills: PILLS,+ hints: LANES.filter((lane) => lane.hint !== null).map((lane) => lane.id),+ words: WORDS,+ contrastPairs: [+ [+ "#e6e9ef",+ "#14181f",+ "transcript word on the inspector"+ ],+ [+ "#8b95a3",+ "#14181f",+ "clip range on the inspector"+ ],+ [+ "#8b95a3",+ "#14181f",+ "lane hint on the floor"+ ],+ [+ "#8b95a3",+ "#14181f",+ "ruler label on the floor"+ ],+ [+ "#10b981",+ "#14181f",+ "zoom pill label"+ ],+ [+ "#f87171",+ "#14181f",+ "trim pill label and struck silence"+ ],+ [+ "#e6e9ef",+ "#1c2029",+ "chat message body"+ ],+ [+ "#8b95a3",+ "#14181f",+ "chat author label"+ ],+ [+ "#10b981",+ "#14181f",+ "applied line"+ ],+ [+ "#8b95a3",+ "#14181f",+ "composer placeholder"+ ]+] as [string, string, string][],+} as const;diff --git a/website/src/components/Recreation/index.tsx b/website/src/components/Recreation/index.tsxnew file mode 100644index 000000000..5f0efd3d5--- /dev/null+++ b/website/src/components/Recreation/index.tsx@@ -0,0 +1,595 @@+/**+ * The OpenScreen editor, recreated — live DOM chrome around real footage of the+ * recording being edited.+ *+ * Every string, number and percentage below 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.+ *+ * ── THE TWO CLOCKS ───────────────────────────────────────────────────────────+ *+ * 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.+ *+ * 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.+ *+ * ── 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>`.+ *+ * 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.+ *+ * 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>`.+ */++import { useEffect, useRef } from "react";++import {+ Captions,+ ChevronRight,+ Clock,+ Copy,+ Crosshair,+ FileText,+ Film,+ Image,+ Maximize2,+ MessageSquare,+ MousePointer2,+ PanelLeftClose,+ PanelTop,+ Pause,+ Pencil,+ Play,+ Scissors,+ SendHorizontal,+ SkipBack,+ SkipForward,+ SlidersHorizontal,+ SplitSquareHorizontal,+ Trash2,+ Wand2,+ ZoomIn,+} from "lucide-react";++import { BANDS } from "../Walkthrough/bands";+import { attachDriver } from "./driver";+import {+ CHAT,+ INSPECTOR,+ LANES,+ LOOP,+ PILLS,+ RULER,+ STAGE,+ TOOLBAR,+ TRANSPORT,+ WAVEFORM,+ WORDS,+ type RecreationPill,+} from "./generated";+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 chat ─────────────────────────────────────────────────────────────── */++type ReplyBlock = (typeof CHAT.agentReply)[number];++/** 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;+}++/** 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))}</>;+}++/* ── pills ────────────────────────────────────────────────────────────────── */++function Pill({ pill }: { pill: RecreationPill }) {+ const trim = pill.lane === "trim";+ return (+ <span+ className={`${styles.pill} ${trim ? styles.pillTrim : ""}`}+ style={{ left: `${pill.leftPct}%`, width: `${pill.widthPct}%` }}+ >+ {/* 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" />+ ) : (+ <ZoomIn className={styles.pillGlyph} size={11} aria-hidden="true" />+ )}+ {pill.label}+ </span>+ );+}++/* ── the component ────────────────────────────────────────────────────────── */++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 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,+ 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,+ });+ }, []);++ return (+ <section className={styles.band} ref={band} data-recreation="">+ <div className={styles.stage}>+ <div className={styles.world}>+ {/* ═══ THE SCENE ═══ */}+ <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} />+ </span>+ <span>+ <Trash2 size={13} />+ </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} />+ </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+ />+ {/* 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}+ </span>+ <span>+ <span className={styles.clipName}>{INSPECTOR.filename}</span>+ <span className={styles.clipRange}>{INSPECTOR.clipRange}</span>+ </span>+ </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. */}+ <p className={styles.flow} ref={flow}>+ {WORDS.map((w) =>+ w.kind === "silence" ? (+ <span+ key={w.id}+ className={`${styles.sil} ${w.kept ? "" : styles.silCut}`}+ >+ {w.text}+ </span>+ ) : (+ <span key={w.id} className={styles.word} data-w={w.i}>+ {w.text}{" "}+ </span>+ ),+ )}+ </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} />+ </span>+ <span className={styles.aspect}>{TOOLBAR.aspectRatio}</span>++ <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>+ <span className={styles.time}>+ <span ref={timeReadout}>{TRANSPORT.restCurrent}</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>+ </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>+ ))}++ <div className={styles.clipRow} aria-hidden="true">+ <div className={styles.clipCard}>+ <span className={styles.clipChip}>+ <span className={styles.clipChipIcon}>+ <Film size={11} />+ </span>+ <span className={styles.clipChipName}>{TOOLBAR.clipLabel}</span>+ </span>+ <svg+ className={styles.wave}+ viewBox={WAVEFORM.viewBox}+ preserveAspectRatio="none"+ aria-hidden="true"+ focusable="false"+ >+ {WAVE_PATHS.map((p) => (+ <path key={p.opacity} d={p.d} opacity={p.opacity} />+ ))}+ </svg>+ </div>+ </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} />+ </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>+ );+}diff --git a/website/src/components/Recreation/styles.module.css b/website/src/components/Recreation/styles.module.cssnew file mode 100644index 000000000..6f7bdddcd--- /dev/null+++ b/website/src/components/Recreation/styles.module.css@@ -0,0 +1,1613 @@+/**+ * The editor, recreated — geometry, tokens, the 3D, and the two clocks' halves.+ *+ * ── THE TWO CLOCKS ───────────────────────────────────────────────────────────+ *+ * 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.+ *+ * ── 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.+ *+ * 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.+ *+ * ── 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.+ *+ * 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.+ */++/* ═══ TOKENS ═══════════════════════════════════════════════════════════════+ The app's dark values, scoped to the recreation and prefixed `--ost-`. They+ deliberately do NOT alias the site's `--os-*` and do NOT follow the site's+ light/dark toggle: of 22 tokens checked, all twelve neutrals differ, and+ `--playhead` has no `--os-*` counterpart at all — which is how an unaudited+ alias sheet ships the playhead in mint. The site's light `--os-accent` is+ #0a7d57, darkened for AA; a light-following recreation would put a different+ green in the pills from the photograph beside them.++ ONE declared divergence from the app: `--ost-meta` is #8b95a3 (the app's+ `--muted`), not the app's `--meta` #5b6470. Against `--surface-1` #14181f+ those measure 2.97:1 and 5.87:1. It affects exactly two classes of text —+ the three empty-lane hints and the ruler labels. SC 1.4.3's Incidental+ exemption covers text inside a JPEG and does not cover real DOM. */++.band {+ --ost-bg: #0a0d12;+ --ost-surface: #14181f;+ --ost-surface-1: #14181f;+ --ost-surface-2: #1c2029;+ --ost-surface-3: #252a35;+ --ost-surface-hi: #2b313b;++ --ost-border: #252a35;+ --ost-border-soft: #1c2029;+ --ost-border-hi: #3a4150;++ --ost-fg: #e6e9ef;+ --ost-fg-2: #f3f5f8;+ --ost-muted: #8b95a3;+ /* The one divergence. See the block above. */+ --ost-meta: #8b95a3;++ --ost-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-danger: #f87171;+ --ost-danger-soft: rgba(248, 113, 113, 0.14);++ --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. */+ --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.++ `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. */++.band {+ display: none;+ position: relative;+ color: var(--ost-fg);+}++@media (min-width: 901px) {+ @supports (position: sticky) {+ .band {+ display: block;+ }+ }+}++/* 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) {+ .band {+ display: none;+ }+}++/* ═══ THE STAGE ════════════════════════════════════════════════════════════ */++.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. */++.scene {+ position: relative;+ width: 1920px;+ height: 1022px;+ margin: 0 auto;+ display: grid;+ grid-template-columns: 392px 1fr;+ background: var(--ost-bg);+}++/* ── chat column ─────────────────────────────────────────────────────────── */++.chat {+ position: relative;+ display: flex;+ flex-direction: column;+ min-width: 0;+ background: var(--ost-surface);+ border-right: 1px solid var(--ost-border);+ overflow: hidden;+}++.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);+}++.chatTitle {+ font-size: 12px;+ font-weight: 600;+ color: var(--ost-fg-2);+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+}++.stripActions {+ margin-left: auto;+ display: inline-flex;+ gap: 2px;+ color: var(--ost-meta);+}++.stripActions > span {+ width: 22px;+ height: 22px;+ display: grid;+ place-items: center;+ border-radius: 4px;+}++.chatScroll {+ position: relative;+ flex: 1;+ min-height: 0;+ padding: 12px 16px;+ display: flex;+ flex-direction: column;+ justify-content: flex-end;+ overflow: hidden;+}++/* 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;+}++.msg {+ margin-bottom: 12px;+}++.msgHead {+ display: flex;+ align-items: center;+ gap: 8px;+ padding: 0 4px;+ margin-bottom: 4px;+}++.msgAuthor {+ font-family: var(--ost-font-mono);+ font-size: 10px;+ letter-spacing: 0.08em;+ color: var(--ost-muted);+ text-transform: uppercase;+}++.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;+}++.msgBubble p,+.msgBubble li {+ margin: 0 0 8px;+}++.msgBubble p:last-child,+.msgBubble li:last-child {+ margin-bottom: 0;+}++.msgBubble ul {+ margin: 0 0 8px;+ padding-left: 18px;+}++.msgBubble strong {+ color: var(--ost-fg-2);+ font-weight: 650;+}++/* 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);+}++.composer {+ flex-shrink: 0;+ padding: 8px 16px 12px;+ border-top: 1px solid var(--ost-border-soft);+ background: var(--ost-bg);+}++/* 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 {+ 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 {+ display: flex;+ align-items: center;+ gap: 8px;+ margin-top: 6px;+}++.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;+}++.sendGlyph {+ margin-left: auto;+ width: 32px;+ height: 32px;+ display: grid;+ place-items: center;+ color: var(--ost-fg);+}++/* ── the stage column: wallpaper, recording, pointer ─────────────────────── */++.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%);+}++/* 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;+}++.clip {+ display: block;+ width: 100%;+ height: 100%;+ object-fit: cover;+}++/* 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 {+ 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);+}++/* ── the floating inspector and its facet rail ───────────────────────────── */++/* `.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;+}++.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);+ border: 1px solid var(--ost-border);+ border-radius: 16px;+ box-shadow: var(--ost-elev-pop);+ overflow: hidden;+}++.inspectorHead {+ display: flex;+ align-items: center;+ gap: 8px;+ padding: 12px 14px;+ flex-shrink: 0;+}++.inspectorTitle {+ margin: 0;+ font-size: 13px;+ font-weight: 600;+ color: var(--ost-fg-2);+}++.inspectorChevron {+ margin-left: auto;+ display: grid;+ place-items: center;+ color: var(--ost-meta);+}++.inspectorBody {+ padding: 0 12px 14px;+ min-height: 0;+ overflow: hidden;+}++.clipHead {+ display: flex;+ align-items: flex-start;+ gap: 10px;+ padding: 0 4px 6px;+ border-bottom: 1px solid var(--ost-border-soft);+ margin-bottom: 8px;+}++.clipBadge {+ width: 22px;+ height: 22px;+ 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;+}++.clipName {+ font-size: 13px;+ font-weight: 600;+ line-height: 1.2;+ color: var(--ost-fg);+ margin: 0;+}++.clipRange {+ display: block;+ font: 400 11px/1.3 var(--ost-font-mono);+ color: var(--ost-muted);+ margin-top: 2px;+}++/* 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;+ color: var(--ost-fg);+ text-wrap: pretty;+}++.word {+ display: inline;+}++/* 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. */+.cue {+ border-bottom: 2px solid var(--ost-accent);+ padding-bottom: 1px;+}++/* 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;+ border: 1px dashed var(--ost-border-hi);+ background: transparent;+ color: var(--ost-muted);+ font: 500 11px/1.5 var(--ost-font-mono);+ white-space: nowrap;+}++/* 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 {+ 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;+}++.facetRail {+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 4px;+ padding: 6px;+ background: rgba(20, 24, 31, 0.94);+ border: 1px solid var(--ost-border);+ border-radius: 14px;+ box-shadow: var(--ost-elev-pop);+}++.facet {+ width: 38px;+ height: 38px;+ display: grid;+ place-items: center;+ border-radius: 10px;+ color: var(--ost-muted);+}++.facetOn {+ color: var(--ost-accent);+ background: var(--ost-accent-soft);+}++/* ═══ 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. */++.floor {+ position: relative;+ width: 100%;+ height: 354px;+ display: flex;+ flex-direction: column;+ background: var(--ost-surface);+ border-top: 1px solid var(--ost-border);+ overflow: hidden;+}++/* ── toolbar + transport ─────────────────────────────────────────────────── */++.toolbar {+ display: flex;+ align-items: center;+ gap: 8px;+ padding: 0 16px;+ height: 40px;+ flex-shrink: 0;+ border-bottom: 1px solid var(--ost-border-soft);+}++.tools {+ display: flex;+ align-items: center;+ gap: 1px;+}++.tool {+ width: 28px;+ height: 28px;+ display: grid;+ place-items: center;+ border-radius: 6px;+ color: var(--ost-muted);+}++.toolOn {+ background: var(--ost-accent-soft);+ color: var(--ost-accent);+}++.toolSep {+ width: 1px;+ height: 18px;+ margin: 0 5px;+ background: var(--ost-border);+}++.aspect {+ 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);+}++.transport {+ display: flex;+ align-items: center;+ gap: 10px;+ flex: 1;+ min-width: 0;+ margin-left: 6px;+}++.playBtn {+ width: 26px;+ height: 26px;+ display: grid;+ place-items: center;+ border-radius: 50%;+ background: var(--ost-fg-2);+ color: #0a0d12;+ flex-shrink: 0;+}++/* 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;+}++.transport[data-playing="true"] .playBtn > :last-child {+ display: block;+}++.skip {+ color: var(--ost-muted);+ display: grid;+ place-items: center;+}++.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-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);+}++/* Width written by the MEDIA clock. The knob rides its right edge, so the two+ are one write, not two. */+.scrubFill {+ position: absolute;+ left: 0;+ top: 0;+ bottom: 0;+ width: 43.714%;+ border-radius: 2px;+ background: var(--ost-surface-hi);+}++.scrubKnob {+ position: absolute;+ right: -5px;+ top: 50%;+ width: 10px;+ height: 10px;+ margin-top: -5px;+ border-radius: 50%;+ background: var(--ost-fg-2);+}++.kbdHints {+ margin-left: auto;+ display: flex;+ align-items: center;+ gap: 10px;+ flex-shrink: 0;+}++.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);+}++.kbd {+ font-family: var(--ost-font-mono);+ font-size: 10.5px;+ font-weight: 600;+ color: var(--ost-fg-2);+}++/* ── ruler, lanes, clip card ─────────────────────────────────────────────── */++.floorBody {+ position: relative;+ flex: 1;+ min-height: 0;+ display: flex;+ flex-direction: column;+}++.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 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;+}++.tickLabel {+ position: absolute;+ top: 12px;+ transform: translateX(-50%);+ font-family: var(--ost-font-mono);+ font-size: 10px;+ 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: "";+ position: absolute;+ left: 50%;+ top: -12px;+ width: 1px;+ height: 9px;+ background: var(--ost-border-hi);+}++.tracks {+ position: relative;+ flex: 1;+ min-height: 0;+ padding: 0 20px 8px;+ overflow: hidden;+}++.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);+}++/* `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;+}++/* A `<span>`, not the app's draggable button. */+.pill {+ position: absolute;+ top: 1px;+ height: 22px;+ min-width: 1px;+ 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;+ font-weight: 600;+ white-space: nowrap;+ overflow: hidden;+ box-sizing: border-box;+}++.pillTrim {+ border-color: var(--ost-danger);+ background: var(--ost-danger-soft);+}++.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);+}++/* 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);+}++.clipChipIcon {+ width: 16px;+ height: 16px;+ display: grid;+ place-items: center;+ border-radius: 5px;+ background: var(--ost-surface);+ color: var(--ost-fg);+ flex-shrink: 0;+}++.clipChipName {+ font-size: 11px;+ font-weight: 500;+ color: #fff;+ white-space: nowrap;+ 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. */+.wave {+ position: absolute;+ inset: 0;+ width: 100%;+ height: 100%;+ padding: 0 2px;+ box-sizing: border-box;+}++.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;+ 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);+}++.playheadHead {+ position: absolute;+ top: 0;+ left: 50%;+ transform: translate(-50%, -100%);+ width: 16px;+ height: 18px;+ box-sizing: border-box;+ 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;+}++.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);+}++.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;+ 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;+ }+}diff --git a/website/src/components/Walkthrough/index.tsx b/website/src/components/Walkthrough/index.tsxindex 181c0e9d5..2cb3078ea 100644--- a/website/src/components/Walkthrough/index.tsx+++ b/website/src/components/Walkthrough/index.tsx@@ -2,6 +2,7 @@ import { useEffect, useRef, useState } from "react";import Head from "@docusaurus/Head";+import Recreation from "../Recreation";import { BANDS, type Band } from "./bands";import { PLATE } from "./plate";import styles from "./styles.module.css";@@ -353,10 +354,17 @@ export default function Walkthrough() {<h2 id="walkthrough-title" className={styles.sectionTitle}>Recorder first. Editor second. AI only if you ask.</h2>+ {/* The line this replaces read "Nothing here is a drawing of the+ interface", which the recreation makes false on a wide screen —+ and a claim that is true at 900px and false at 901px is worse+ than no claim. What survives is the part that is still checkable:+ the photographs are the application, and the drawn panels quote a+ file rather than an art director. */}<p className={styles.deck}>- No sound, no narration. Every frame below is the running application — the same build- you can download — doing exactly what the line beside it says. Nothing here is a- drawing of the interface.+ 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.</p><div className={styles.controls}>@@ -389,8 +397,33 @@ export default function Walkthrough() {{/* Which component renders a band is decided by the data, not by acapability — the server and the client must agree, and the pinned- layout is turned on and off in CSS alone. */}- {BANDS.map((band) =>+ layout is turned on and off in CSS alone.++ The middle three bands and the recreation are the same three claims+ told twice, so exactly one of them is ever visible. Both gates are+ pure CSS and exact mirrors of each other — ≥901px and `position:+ sticky` supported and not forced-colors — so there is no width at+ which a reader gets both or neither, and nothing waits for+ hydration to decide. Record and export are not in the recreation+ (they are separate screens in the app, not part of the editor), so+ they render at every width. */}+ {BANDS.filter((b) => b.index === "01").map((band) => (+ <BandView key={band.id} band={band} ctl={ctl} />+ ))}++ <Recreation />++ <div className={styles.superseded}>+ {BANDS.filter((b) => ["02", "03", "04"].includes(b.index)).map((band) =>+ band.media?.scrub ? (+ <ScrubBand key={band.id} band={band} />+ ) : (+ <BandView key={band.id} band={band} ctl={ctl} />+ ),+ )}+ </div>++ {BANDS.filter((b) => b.index === "05").map((band) =>band.media?.scrub ? (<ScrubBand key={band.id} band={band} />) : (diff --git a/website/src/components/Walkthrough/styles.module.css b/website/src/components/Walkthrough/styles.module.cssindex 84414478a..904c195fd 100644--- a/website/src/components/Walkthrough/styles.module.css+++ b/website/src/components/Walkthrough/styles.module.css@@ -336,6 +336,31 @@ span.replay {/* ---- the plate itself ---- */+/* ---- the three bands the recreation replaces ----+ An exact mirror of the gate in Recreation/styles.module.css, and it has to+ stay one: if the two conditions ever drift apart there is a width at which a+ reader sees the same three claims twice, or neither. Both are pure CSS for+ that reason — a JavaScript gate on one side and a media query on the other+ could not be kept in step, and one of them would decide after hydration. */++.superseded {+ display: contents;+}++@media (min-width: 901px) {+ @supports (position: sticky) {+ .superseded {+ display: none;+ }+ }+}++@media (forced-colors: active) {+ .superseded {+ display: contents;+ }+}+/* ---- the scrubbed bands ----A band with a scroll rendition becomes its own theatre: it grows to a littleover two viewports, and both its halves pin, so scrolling through it walks thediff --git a/website/static/img/walkthrough/canvas-poster.jpg b/website/static/img/walkthrough/canvas-poster.jpgnew file mode 100644index 000000000..4e3a4d68bBinary files /dev/null and b/website/static/img/walkthrough/canvas-poster.jpg differdiff --git a/website/static/video/canvas-loop-sm.mp4 b/website/static/video/canvas-loop-sm.mp4new file mode 100644index 000000000..892d573d2Binary files /dev/null and b/website/static/video/canvas-loop-sm.mp4 differdiff --git a/website/static/video/canvas-loop.mp4 b/website/static/video/canvas-loop.mp4new file mode 100644index 000000000..56478e6f6Binary files /dev/null and b/website/static/video/canvas-loop.mp4 differ