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): show a live demo in the hero
EtienneLescot981c91483389
diff --git a/website/i18n/code.source.json b/website/i18n/code.source.jsonindex 5d3e9b4fd..fe41750db 100644--- a/website/i18n/code.source.json+++ b/website/i18n/code.source.json@@ -38,14 +38,11 @@"download.preRelease.body": "Release candidates ship between stable versions, alongside older releases, checksums, and full release notes.","download.preRelease.cta": "Browse all releases","home.meta.title": "Free open-source screen recorder & video editor",- "home.meta.description": "OpenScreen is a free, open-source screen recorder and video editor for Windows, macOS, and Linux — native capture, on-device captions, no watermarks.",+ "home.meta.description": "Turn screen recordings into polished demos with automatic zooms, styled backgrounds and an editable cursor. Free and open source for Windows, macOS and Linux. No watermark.","home.hero.badge.new": "NEW","home.hero.badge.text": "1.11 exports faster on macOS and Linux",- "home.hero.titleTagline": "A free, open-source screen recorder and video editor",- "home.hero.tagline": "Screen recording with native capture, local AI and no paywall.",+ "home.hero.tagline": "Automatic zooms, smooth cursor movement, and a frame that looks finished. Record, adjust, share.","home.hero.download": "Download",- "home.hero.readDocs": "Read the docs",- "home.hero.scrollHint": "Scroll down","home.features.kicker": "Also true","home.features.title": "Free, local, cross-platform: three things a screenshot can't show.","home.features.summary": "OpenScreen is a free, open-source screen recorder and video editor for Windows, macOS, and Linux: a raw capture goes in and a finished demo comes out, in the category {screenStudio} defined. It is MIT licensed, with no watermark and no account, and it continues the {originalProject}, which its creator archived after v1.5.0.",@@ -225,5 +222,10 @@"footer.community.license": "License (MIT)","footer.bottom.license": "OpenScreen is released under the MIT license. Built by the community — free, forever.","footer.bottom.lineage": "The official spin-off of the {originalProject} — 39k stars, now archived.",- "footer.bottom.lineage.originalProject": "original OpenScreen project"+ "footer.bottom.lineage.originalProject": "original OpenScreen project",+ "home.hero.title": "Record your screen. Your video already looks polished.",+ "home.hero.reassurance": "Free and open source. No watermark. No account.",+ "recreation.pause": "Pause animation",+ "recreation.play": "Play animation",+ "home.hero.explore": "Scroll to explore the editor"}diff --git a/website/i18n/de/code.json b/website/i18n/de/code.jsonindex b27e742e0..df60fc40e 100644--- a/website/i18n/de/code.json+++ b/website/i18n/de/code.json@@ -122,30 +122,21 @@"message": "Kostenloser Open-Source-Bildschirmrekorder und Videoeditor"},"home.meta.description": {- "message": "OpenScreen: kostenloser Open-Source-Bildschirmrekorder & Videoeditor für Windows, macOS und Linux. Native Aufnahme, lokale Untertitel, kein Wasserzeichen."+ "message": "Machen Sie aus Bildschirmaufnahmen ansprechende Demos mit automatischen Zooms, gestalteten Hintergründen und einem bearbeitbaren Cursor. Kostenlos und Open Source für Windows, macOS und Linux. Ohne Wasserzeichen."},"home.hero.badge.new": {"message": "NEU"},"home.hero.badge.text": {"message": "1.11 exportiert schneller (Mac, Linux)",- "description": "Links to an English-only blog post. Must fit on one line on a 375px phone."- },- "home.hero.titleTagline": {- "message": "Ein kostenloser Open-Source-Bildschirmrekorder und Videoeditor"+ "description": "Links to an English-only blog post."},"home.hero.tagline": {- "message": "Bildschirmaufnahme mit nativer Erfassung, lokaler KI und ohne Bezahlschranke."+ "message": "Automatische Zooms, flüssige Cursorbewegungen und ein ansprechender Rahmen. Aufnehmen, anpassen, teilen."},"home.hero.download": {"message": "Download"},- "home.hero.readDocs": {- "message": "Doku lesen"- },- "home.hero.scrollHint": {- "message": "Nach unten scrollen"- },"home.features.kicker": {"message": "Auch das stimmt"},@@ -1060,5 +1051,20 @@"demoLoop.title.ask-the-agent": {"message": "Den Agenten des Editors um eine Änderung bitten","description": "The name of a short silent video of the app, given to search engines (schema.org VideoObject)."+ },+ "home.hero.title": {+ "message": "Nehmen Sie Ihren Bildschirm auf. Ihr Video ist bereits ansprechend gestaltet."+ },+ "home.hero.reassurance": {+ "message": "Kostenlos und Open Source. Ohne Wasserzeichen. Ohne Konto."+ },+ "home.hero.explore": {+ "message": "Scrollen, um den Editor zu entdecken"+ },+ "recreation.pause": {+ "message": "Animation pausieren"+ },+ "recreation.play": {+ "message": "Animation abspielen"}}diff --git a/website/i18n/es/code.json b/website/i18n/es/code.jsonindex 14b2bbdc4..6d84203ce 100644--- a/website/i18n/es/code.json+++ b/website/i18n/es/code.json@@ -109,30 +109,21 @@"message": "Grabador de pantalla y editor de video gratis y de código abierto"},"home.meta.description": {- "message": "OpenScreen, grabador de pantalla y editor de video gratis y de código abierto (Windows, macOS, Linux): captura nativa, subtítulos locales, sin marca de agua."+ "message": "Convierte tus grabaciones de pantalla en demos cuidadas con zooms automáticos, fondos personalizados y un cursor editable. Gratis y de código abierto para Windows, macOS y Linux. Sin marca de agua."},"home.hero.badge.new": {"message": "NUEVO"},"home.hero.badge.text": {"message": "1.11 exporta más rápido en macOS y Linux",- "description": "Links to an English-only blog post. Must fit on one line on a 375px phone."- },- "home.hero.titleTagline": {- "message": "Un grabador de pantalla y editor de video gratis y de código abierto"+ "description": "Links to an English-only blog post."},"home.hero.tagline": {- "message": "Grabación de pantalla con captura nativa, IA local y sin muro de pago."+ "message": "Zooms automáticos, un cursor fluido y un marco cuidado. Graba, ajusta y comparte."},"home.hero.download": {"message": "Descargar"},- "home.hero.readDocs": {- "message": "Leer la documentación"- },- "home.hero.scrollHint": {- "message": "Desplázate hacia abajo"- },"home.features.kicker": {"message": "Además"},@@ -1060,5 +1051,20 @@"demoLoop.title.ask-the-agent": {"message": "Pedir una edición al agente del editor","description": "The name of a short silent video of the app, given to search engines (schema.org VideoObject)."+ },+ "home.hero.title": {+ "message": "Graba tu pantalla. Tu vídeo ya tiene un acabado cuidado."+ },+ "home.hero.reassurance": {+ "message": "Gratis y de código abierto. Sin marca de agua. Sin cuenta."+ },+ "home.hero.explore": {+ "message": "Desplázate para explorar el editor"+ },+ "recreation.pause": {+ "message": "Pausar la animación"+ },+ "recreation.play": {+ "message": "Reproducir la animación"}}diff --git a/website/i18n/fr/code.json b/website/i18n/fr/code.jsonindex 10edea176..c6072f44e 100644--- a/website/i18n/fr/code.json+++ b/website/i18n/fr/code.json@@ -109,30 +109,21 @@"message": "Enregistreur d'écran gratuit et open source avec éditeur vidéo"},"home.meta.description": {- "message": "OpenScreen, enregistreur d'écran et éditeur vidéo gratuit et open source pour Windows, macOS et Linux : capture native, sous-titres en local, sans filigrane."+ "message": "Transformez vos enregistrements en démos soignées avec des zooms automatiques, des fonds personnalisés et un curseur modifiable. Gratuit et open source pour Windows, macOS et Linux. Sans filigrane."},"home.hero.badge.new": {"message": "NOUVEAU"},"home.hero.badge.text": {"message": "La 1.11 exporte plus vite (Mac, Linux)",- "description": "Links to an English-only blog post. Must fit on one line on a 375px phone."- },- "home.hero.titleTagline": {- "message": "Un enregistreur d'écran et éditeur vidéo gratuit et open source"+ "description": "Links to an English-only blog post."},"home.hero.tagline": {- "message": "Enregistrement d'écran avec capture native et IA locale, sans fonction payante."+ "message": "Des zooms automatiques, un curseur fluide et un cadre soigné. Enregistrez, ajustez, partagez."},"home.hero.download": {"message": "Télécharger"},- "home.hero.readDocs": {- "message": "Lire la documentation"- },- "home.hero.scrollHint": {- "message": "Faites défiler"- },"home.features.kicker": {"message": "Tout aussi vrai"},@@ -1060,5 +1051,20 @@"demoLoop.title.ask-the-agent": {"message": "Demander une modification à l'agent de l'éditeur","description": "The name of a short silent video of the app, given to search engines (schema.org VideoObject)."+ },+ "home.hero.title": {+ "message": "Enregistrez votre écran. Votre vidéo est déjà soignée."+ },+ "home.hero.reassurance": {+ "message": "Gratuit et open source. Sans filigrane. Sans compte."+ },+ "home.hero.explore": {+ "message": "Faites défiler pour découvrir l’éditeur"+ },+ "recreation.pause": {+ "message": "Mettre l’animation en pause"+ },+ "recreation.play": {+ "message": "Lire l’animation"}}diff --git a/website/i18n/ja/code.json b/website/i18n/ja/code.jsonindex 04e120608..27e413835 100644--- a/website/i18n/ja/code.json+++ b/website/i18n/ja/code.json@@ -109,30 +109,21 @@"message": "無料・オープンソースの画面録画・動画編集ソフト"},"home.meta.description": {- "message": "OpenScreen は Windows・macOS・Linux に対応した、無料・オープンソースの画面録画・動画編集ソフトです。OS ネイティブのキャプチャ、端末上で生成する字幕、透かしなし。"+ "message": "画面録画を、見栄えのよいデモ動画に。自動ズーム、背景のカスタマイズ、カーソル編集に対応。Windows、macOS、Linuxで使える無料のオープンソース。透かしなし。"},"home.hero.badge.new": {"message": "NEW"},"home.hero.badge.text": {"message": "1.11:macOS・Linux でエクスポート高速化",- "description": "Links to an English-only blog post. Must fit on one line on a 375px phone."- },- "home.hero.titleTagline": {- "message": "無料・オープンソースの画面録画・動画編集ソフト"+ "description": "Links to an English-only blog post."},"home.hero.tagline": {- "message": "ネイティブキャプチャ、ローカル AI、課金不要の画面録画。"+ "message": "自動ズーム、なめらかなカーソル、見栄えのよいフレーム。録画して、調整して、共有しましょう。"},"home.hero.download": {"message": "ダウンロード"},- "home.hero.readDocs": {- "message": "ドキュメントを読む"- },- "home.hero.scrollHint": {- "message": "下にスクロール"- },"home.features.kicker": {"message": "さらに"},@@ -1060,5 +1051,20 @@"demoLoop.title.ask-the-agent": {"message": "エディターのエージェントに編集を依頼","description": "The name of a short silent video of the app, given to search engines (schema.org VideoObject)."+ },+ "home.hero.title": {+ "message": "画面を録画。動画はすでに洗練された仕上がり。"+ },+ "home.hero.reassurance": {+ "message": "無料でオープンソース。透かしなし。アカウント不要。"+ },+ "home.hero.explore": {+ "message": "スクロールしてエディターを見る"+ },+ "recreation.pause": {+ "message": "アニメーションを一時停止"+ },+ "recreation.play": {+ "message": "アニメーションを再生"}}diff --git a/website/i18n/pt-BR/code.json b/website/i18n/pt-BR/code.jsonindex 794350748..d3f0ded5c 100644--- a/website/i18n/pt-BR/code.json+++ b/website/i18n/pt-BR/code.json@@ -109,30 +109,21 @@"message": "Gravador de tela e editor de vídeo grátis e de código aberto"},"home.meta.description": {- "message": "OpenScreen: gravador de tela e editor de vídeo grátis e de código aberto para Windows, macOS e Linux. Captura nativa, legendas locais, sem marca d'água."+ "message": "Transforme gravações de tela em demos bem-acabadas com zooms automáticos, fundos personalizados e um cursor editável. Grátis e de código aberto para Windows, macOS e Linux. Sem marca-d’água."},"home.hero.badge.new": {"message": "NOVO"},"home.hero.badge.text": {"message": "1.11 exporta mais rápido (macOS, Linux)",- "description": "Links to an English-only blog post. Must fit on one line on a 375px phone."- },- "home.hero.titleTagline": {- "message": "Gravador de tela e editor de vídeo grátis e de código aberto"+ "description": "Links to an English-only blog post."},"home.hero.tagline": {- "message": "Gravação de tela com captura nativa, IA local e sem paywall."+ "message": "Zooms automáticos, um cursor suave e uma moldura bem-acabada. Grave, ajuste e compartilhe."},"home.hero.download": {"message": "Baixar"},- "home.hero.readDocs": {- "message": "Ler a documentação"- },- "home.hero.scrollHint": {- "message": "Role para baixo"- },"home.features.kicker": {"message": "Também é verdade"},@@ -1060,5 +1051,20 @@"demoLoop.title.ask-the-agent": {"message": "Pedir uma edição ao agente do editor","description": "The name of a short silent video of the app, given to search engines (schema.org VideoObject)."+ },+ "home.hero.title": {+ "message": "Grave sua tela. Seu vídeo já tem um acabamento caprichado."+ },+ "home.hero.reassurance": {+ "message": "Grátis e de código aberto. Sem marca-d’água. Sem conta."+ },+ "home.hero.explore": {+ "message": "Role para explorar o editor"+ },+ "recreation.pause": {+ "message": "Pausar animação"+ },+ "recreation.play": {+ "message": "Reproduzir animação"}}diff --git a/website/i18n/zh-CN/code.json b/website/i18n/zh-CN/code.jsonindex c10117b85..e918e72d2 100644--- a/website/i18n/zh-CN/code.json+++ b/website/i18n/zh-CN/code.json@@ -122,30 +122,21 @@"message": "免费开源的录屏与视频剪辑软件"},"home.meta.description": {- "message": "OpenScreen 是一款免费、开源的录屏与视频剪辑软件,支持 Windows、macOS 和 Linux:采用系统原生屏幕采集,字幕在本机生成,导出视频无水印。"+ "message": "把屏幕录制变成精美的演示视频:自动缩放、自定义背景、可编辑光标。适用于 Windows、macOS 和 Linux,免费开源,无水印。"},"home.hero.badge.new": {"message": "新"},"home.hero.badge.text": {"message": "1.11:macOS 和 Linux 导出更快",- "description": "Links to an English-only blog post. Must fit on one line on a 375px phone."- },- "home.hero.titleTagline": {- "message": "免费、开源的录屏与视频剪辑软件"+ "description": "Links to an English-only blog post."},"home.hero.tagline": {- "message": "原生采集、本地 AI、没有付费墙的屏幕录制。"+ "message": "自动缩放、流畅光标和精美边框。录制、调整、分享。"},"home.hero.download": {"message": "下载"},- "home.hero.readDocs": {- "message": "阅读文档"- },- "home.hero.scrollHint": {- "message": "向下滚动"- },"home.features.kicker": {"message": "此外"},@@ -1060,5 +1051,20 @@"demoLoop.title.ask-the-agent": {"message": "请编辑器的代理完成修改","description": "The name of a short silent video of the app, given to search engines (schema.org VideoObject)."+ },+ "home.hero.title": {+ "message": "录制屏幕。视频已呈现精美效果。"+ },+ "home.hero.reassurance": {+ "message": "免费开源。无水印。无需账号。"+ },+ "home.hero.explore": {+ "message": "滚动以探索编辑器"+ },+ "recreation.pause": {+ "message": "暂停动画"+ },+ "recreation.play": {+ "message": "播放动画"}}diff --git a/website/i18n/zh-TW/code.json b/website/i18n/zh-TW/code.jsonindex d5e508073..868514033 100644--- a/website/i18n/zh-TW/code.json+++ b/website/i18n/zh-TW/code.json@@ -122,30 +122,21 @@"message": "免費開源的螢幕錄影與影片剪輯軟體"},"home.meta.description": {- "message": "OpenScreen 是一款免費、開源的螢幕錄影與影片剪輯軟體,適用於 Windows、macOS 與 Linux 電腦:使用系統原生的螢幕擷取,字幕直接在你的裝置上產生,匯出的影片也沒有浮水印。"+ "message": "把螢幕錄製變成精美的展示影片:自動縮放、自訂背景、可編輯游標。適用於 Windows、macOS 和 Linux,免費開源,無浮水印。"},"home.hero.badge.new": {"message": "最新"},"home.hero.badge.text": {"message": "1.11 在 macOS 與 Linux 上匯出更快",- "description": "Links to an English-only blog post. Must fit on one line on a 375px phone."- },- "home.hero.titleTagline": {- "message": "免費開源的螢幕錄影與影片剪輯軟體"+ "description": "Links to an English-only blog post."},"home.hero.tagline": {- "message": "原生擷取、本機 AI、沒有付費牆的螢幕錄影。"+ "message": "自動縮放、流暢游標和精美外框。錄製、調整、分享。"},"home.hero.download": {"message": "下載"},- "home.hero.readDocs": {- "message": "閱讀文件"- },- "home.hero.scrollHint": {- "message": "向下捲動"- },"home.features.kicker": {"message": "此外"},@@ -1060,5 +1051,20 @@"demoLoop.title.ask-the-agent": {"message": "請編輯器的代理完成修改","description": "The name of a short silent video of the app, given to search engines (schema.org VideoObject)."+ },+ "home.hero.title": {+ "message": "錄製螢幕。影片已呈現精緻效果。"+ },+ "home.hero.reassurance": {+ "message": "免費開源。無浮水印。無須帳號。"+ },+ "home.hero.explore": {+ "message": "捲動以探索編輯器"+ },+ "recreation.pause": {+ "message": "暫停動畫"+ },+ "recreation.play": {+ "message": "播放動畫"}}diff --git a/website/src/components/Editor/index.tsx b/website/src/components/Editor/index.tsxindex 516410d7d..19740d6d5 100644--- a/website/src/components/Editor/index.tsx+++ b/website/src/components/Editor/index.tsx@@ -1,5 +1,6 @@/**- * The page's centre of gravity: nine viewports of editor, and nothing above it.+ * The page's centre of gravity: a live preview that docks into nine viewports+ * of editor as the reader scrolls.** It sits immediately under the hero because it is the argument. Everything* after it is either a claim the editor cannot make on its own (the recorder,diff --git a/website/src/components/Editor/styles.module.css b/website/src/components/Editor/styles.module.cssindex 2e4213aec..b2288eb3a 100644--- a/website/src/components/Editor/styles.module.css+++ b/website/src/components/Editor/styles.module.css@@ -11,10 +11,8 @@viewport — so a section without a background sits on the wrong grey. */background: var(--os-bg);color: var(--os-fg);- /* Down from 104px, which was the air a section heading needed. With the- heading gone the hero should hand over to the editor the way the design- has it: the demo begins as the hero leaves. */- padding: 24px 0 8px;+ /* The full-width live preview begins directly beneath the promise. */+ padding: 0 0 8px;}.head {diff --git a/website/src/components/Recreation/ART-DIRECTION.md b/website/src/components/Recreation/ART-DIRECTION.mdindex 18a9b3a1c..409ed1832 100644--- a/website/src/components/Recreation/ART-DIRECTION.md+++ b/website/src/components/Recreation/ART-DIRECTION.md@@ -5,6 +5,15 @@ that drew the whole editor at 1:1 in a 1920px scene and flew a camera over it;this note records what was wrong with that and what the rules are now, so thenext pass does not rediscover either.+The picture now starts as the hero's full-width, real-time loop. As soon as+the reader scrolls, 0.28 viewport of scroll docks it into the editor and+rewinds the displayed scene time to zero. The five beats then run as before.+Scrolling back reverses the same movement and resumes the loop. The pause+button controls the preview; reduced motion gets a still and stacked captions.+The initial response eases out, with a short catch-up for wheel increments.+The picture moves by translation and scale rather than reflowing its DOM at+every intermediate width.+## What the previous cut got wrong1. **The scene was bigger than the screen.** Authored at 1920px and shown in a@@ -36,10 +45,10 @@ the right, the floor at the bottom in act two. The composite gets a hairline anda seated shadow, not a glow — a halo reads as a selection state on somethingthat is not selected.-**One clock.** Scroll position becomes scene seconds, scene seconds become-document seconds in act two, and the playhead, the pill under it, the composite's+**One score.** The preview clock, then scroll position, becomes scene seconds;+scene seconds become document seconds in act two, and the playhead, the pill under it, the composite'smagnification and the transcript's cue are four readings of that one number. No-media element, no second timebase, nothing that can drift.+independent playback clock for the picture or its pointers, nothing that can drift.**The beats touch.** A gap between beats is a stretch with no caption, no paneland no palette — which looks like breathing room on paper and like the left half@@ -100,7 +109,9 @@ exactly what it did for as long as lint-staged was formatting it.## Verifying-The in-app browser pane returns black frames for this page. Drive headless-Chrome over CDP instead, scroll to a scene time, and look at the result — every-defect in the list at the top of this file was visible in a screenshot and+Check the preview, the midpoint of docking, and each of the five beats in a+browser, at desktop and portrait sizes. Stop scrolling during docking: the+picture should stay still. Scroll back: it should widen, undo the rewind and+resume playing. Also check pause, reduced motion and the static no-JavaScript+fallback. Every defect in the list above was visible in a screenshot andinvisible in the source.diff --git a/website/src/components/Recreation/driver.ts b/website/src/components/Recreation/driver.tsindex b356bebd2..7e994bba3 100644--- a/website/src/components/Recreation/driver.ts+++ b/website/src/components/Recreation/driver.ts@@ -1,5 +1,5 @@/**- * Scroll in, custom properties out — plus one video seek and a handful of class+ * Preview clock or scroll in, custom properties out — plus one video seek and a handful of class* changes. This is the only thing that runs per frame.** Three rules keep it cheap.@@ -23,6 +23,7 @@*/import { CURSORS } from "./generated";+import { createPlayback, DOCK_VIEWPORTS, followDock } from "./playback";import {BEATS,CUT_INDEX,@@ -41,6 +42,7 @@ export interface DriverRefs {cam: HTMLVideoElement;padValue: HTMLElement;flow: HTMLElement;+ pause: HTMLButtonElement;}export interface DriverClasses {@@ -99,6 +101,9 @@ const WRITTEN = ["--wand","--comment","--k",+ "--dock",+ "--approach",+ "--card-scale",];/** Piecewise-linear read of `[[t, ...values]]`, clamped at both ends. */@@ -154,6 +159,9 @@ function release(refs: DriverRefs, cls: DriverClasses): void {for (const name of WRITTEN) root.style.removeProperty(name);delete root.dataset.beat;delete root.dataset.cur;+ delete root.dataset.phase;+ delete refs.band.dataset.driven;+ refs.band.style.removeProperty("--hero-offset");root.dataset.bg = String(frameAt(1).bg);for (const el of Array.from(root.querySelectorAll<HTMLElement>("[data-trim]"))) {el.style.removeProperty("opacity");@@ -171,8 +179,20 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {};}- const { band, root, cam, padValue, flow } = refs;+ const { band, root, cam, padValue, flow, pause } = refs;+ const hero = document.querySelector<HTMLElement>("[data-home-hero]");+ const card = root.querySelector<HTMLElement>("[data-composite]")!;let raf = 0;+ const sample = createPlayback(T_TOTAL);+ let paused = false;+ let visible = false;+ let offset = 0;+ let span = 1;+ let dockDistance = window.innerHeight * DOCK_VIEWPORTS;+ let heroTop = 0;+ let previewScale = 1;+ let smoothOffset = 0;+ let lastTick: number | undefined;/* ── the target cache ─────────────────────────────────────────────────── */@@ -185,6 +205,8 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {* a `transform`, a `height` or an `inset`, it belongs here.*/const GEOMETRY = [+ { css: "--dock", of: () => 1 },+ { css: "--card-scale", of: () => 1 },{ css: "--tl", of: (f: Frame) => f.tl },{ css: "--panel", of: (f: Frame) => f.panel },{ css: "--palette", of: (f: Frame) => f.palette },@@ -377,6 +399,12 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {// for every beat, including the three that play in the opening one.const f = frameAt((b.from + b.to) / 2 / T_TOTAL);for (const g of GEOMETRY) root.style.setProperty(g.css, g.of(f).toFixed(3));+ if (b.id === "style") {+ const heroWidth =+ window.innerWidth * (window.innerWidth > 900 ? 0.91 : 1) -+ (window.innerWidth > 900 ? 0 : 36);+ previewScale = heroWidth / card.getBoundingClientRect().width;+ }measureVisible(claimed);}if (had === undefined) delete root.dataset.beat;@@ -480,12 +508,6 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {let camPending: number | undefined;const camSrc = "/video/webcam.mp4";- // Set at attach, not in the markup and not in primeCam: in the markup every- // reader who never reaches the band pays for it, and in primeCam it would- // race the clip it exists to stand in for. Here it has the whole approach to- // the band to arrive — and on a phone, where the scene does run (the gate is- // 360px), it is still only fetched by a reader who scrolls into it.- cam.poster = "/img/walkthrough/webcam-poster.jpg";const primeCam = () => {if (cam.getAttribute("src")) return;cam.setAttribute("src", camSrc);@@ -556,7 +578,14 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {const num = (n: string, v: number, dp = 4) => root.style.setProperty(n, v.toFixed(dp));- const apply = (f: Frame) => {+ const apply = (f: Frame, dock: number, phase: string) => {+ num("--dock", dock);+ num("--card-scale", previewScale + (1 - previewScale) * dock);+ if (hero) {+ hero.style.opacity = String((1 - dock) ** 2);+ hero.inert = dock === 1;+ }+ root.dataset.phase = phase;num("--t", f.t, 3);num("--tf", f.tf, 3);// Three decimals, not zero. This was written at `toFixed(0)` from when --tl@@ -614,7 +643,7 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {const [ux, uy] = kf(Math.min(f.t, 22.36), path(f));num("--ui-x", ux, 2);num("--ui-y", uy, 2);- num("--ui-on", f.t > 1.1 && f.t < 22.36 ? 1 : 0, 0);+ num("--ui-on", phase === "editor" && f.t > 1.1 && f.t < 22.36 ? 1 : 0, 0);if (f.beat !== lastBeat) {lastBeat = f.beat;@@ -641,24 +670,79 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {/* ── the scroll ───────────────────────────────────────────────────────── */+ // Scroll geometry is cached by events. The autonomous preview reads only a+ // clock, so its animation never measures the page per frame.+ const readScroll = () => {+ let rect = band.getBoundingClientRect();+ const top = rect.top + window.scrollY;+ if (top !== heroTop) {+ heroTop = top;+ band.style.setProperty("--hero-offset", `${heroTop}px`);+ rect = band.getBoundingClientRect();+ }+ span = heroTop + rect.height + window.innerHeight * 0.04;+ dockDistance = window.innerHeight * DOCK_VIEWPORTS;+ offset = Math.min(span, Math.max(0, window.scrollY));+ root.style.setProperty("--approach", `${Math.max(0, rect.top)}px`);+ };+ const tick = (now: number) => {+ raf = 0;+ const target = Math.min(offset, dockDistance);+ smoothOffset =+ lastTick === undefined ? target : followDock(smoothOffset, target, now - lastTick);+ lastTick = now;+ const following = smoothOffset !== target;+ const sceneOffset = smoothOffset === dockDistance ? offset : smoothOffset;+ const playing = visible && !paused && !document.hidden;+ const { time, dock, phase } = sample(now, sceneOffset, span, dockDistance, playing);+ const scored = frameAt(time / T_TOTAL);+ // The opening loop shows the picture alone. The first inspector is+ // revealed while the picture rewinds, before the scroll score begins.+ const frame =+ phase === "editor"+ ? scored+ : { ...scored, tl: 0, beat: "style" as const, panel: 1, intro: 1, palette: 0 };+ apply(frame, dock, phase);+ if (visible) {+ primeCam();+ primeStrip();+ }+ if (!document.hidden && (following || (phase === "preview" && playing))) {+ raf = requestAnimationFrame(tick);+ }+ };+ const schedule = () => {+ if (!raf) {+ if (lastTick !== undefined) lastTick = performance.now() - 16;+ raf = requestAnimationFrame(tick);+ }+ };const onScroll = () => {- if (raf) return;- raf = requestAnimationFrame(() => {- raf = 0;- const rect = band.getBoundingClientRect();- const total = rect.height - window.innerHeight;- // The ride overflows the sticky on purpose: the last stretch plays while- // the section is already scrolling away, so the editor is not still- // sitting pinned and finished for a whole viewport.- const span = total + window.innerHeight * 1.04;- const off = Math.min(span, Math.max(0, -rect.top));- if (off > 0 && off < span) {- primeCam();- primeStrip();- }- apply(frameAt(span > 0 ? off / span : 0));- });+ readScroll();+ schedule();+ };+ const onPause = () => {+ paused = !paused;+ pause.dataset.paused = String(paused);+ pause.setAttribute("aria-pressed", String(paused));+ pause.setAttribute("aria-label", (paused ? pause.dataset.play : pause.dataset.pause)!);+ schedule();+ };+ const onVisibility = () => {+ if (raf) cancelAnimationFrame(raf);+ raf = 0;+ // Browsers suspend rAF in background tabs. Record the pause now so+ // returning to this tab resumes instead of jumping ahead by minutes.+ tick(performance.now());};+ const observer = new IntersectionObserver(+ (entries) => {+ visible = entries[0].isIntersecting;+ schedule();+ },+ { threshold: 0 },+ );+ observer.observe(root);// Coalesced into a frame, like the scroll. `measure()` opens all five beats,// reads a rect for every `data-t` node and forces layout to do it; a window@@ -677,6 +761,7 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {let detached = false;+ band.dataset.driven = "";measure();// Targets inside a closed pane cannot be measured until it opens, and the// panes open on scroll — so re-measure once the fonts have settled, which is@@ -688,19 +773,27 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {// for a driver that has since been thrown away.document.fonts?.ready.then(() => {- if (!detached) measure();+ if (!detached) {+ measure();+ onScroll();+ }}).catch(() => {// A font that never resolves leaves the first measurement standing.});window.addEventListener("scroll", onScroll, { passive: true });window.addEventListener("resize", onResize);+ document.addEventListener("visibilitychange", onVisibility);+ pause.addEventListener("click", onPause);onScroll();return () => {detached = true;window.removeEventListener("scroll", onScroll);window.removeEventListener("resize", onResize);+ document.removeEventListener("visibilitychange", onVisibility);+ pause.removeEventListener("click", onPause);+ observer.disconnect();// The video outlives the driver — it is the same element on re-attach —// so listeners left on it accumulate one pair per breakpoint crossing,// each holding a dead driver's closure alive.@@ -708,6 +801,14 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {cam.removeEventListener("seeked", onCamSeeked);if (raf) cancelAnimationFrame(raf);if (resizeRaf) cancelAnimationFrame(resizeRaf);+ pause.dataset.paused = "false";+ pause.setAttribute("aria-pressed", "false");+ pause.setAttribute("aria-label", pause.dataset.pause!);+ if (hero) {+ hero.style.removeProperty("opacity");+ hero.inert = false;+ }+ release(refs, cls);};}diff --git a/website/src/components/Recreation/index.tsx b/website/src/components/Recreation/index.tsxindex 40094a65b..961fb9e81 100644--- a/website/src/components/Recreation/index.tsx+++ b/website/src/components/Recreation/index.tsx@@ -21,14 +21,15 @@** ── ONE CLOCK, TWO TIMEBASES ─────────────────────────────────────────────────*- * The scroll is the only input. `scene.ts` turns scroll position into a `Frame`+ * The preview first plays on a clock, then rewinds into the scroll-driven+ * editor. `scene.ts` turns its progress into a `Frame`* carrying both the scene clock and the footage clock — which differ, because a* speed ramp is in the middle of the take. `driver.ts` writes that frame to* custom properties on one element and seeks one video. React renders once.** ── ACCESSIBILITY ────────────────────────────────────────────────────────────*- * No focusable node. The app's controls are real buttons and sliders; recreated+ * No focusable mock controls. The app's controls are real buttons and sliders; recreated* as controls they become tab stops announcing actions this page will never* perform. Every swatch, slider and pill here is a span.*@@ -39,11 +40,22 @@*/import { translate } from "@docusaurus/Translate";-import { Clock, Crosshair, MessageSquare, Scissors, Wand2, ZoomIn } from "lucide-react";+import {+ ArrowDown,+ Clock,+ Crosshair,+ MessageSquare,+ Pause,+ Play,+ Scissors,+ Wand2,+ ZoomIn,+} from "lucide-react";import { useEffect, useRef } from "react";import { attachDriver, SCENE_QUERIES } from "./driver";import { CONTROLS, CURSORS, INSPECTOR, PANELS, WAVEFORM } from "./generated";+import { DOCK_VIEWPORTS } from "./playback";import {BEATS,type BeatId,@@ -209,6 +221,7 @@ export default function Recreation() {const cam = useRef<HTMLVideoElement | null>(null);const padValue = useRef<HTMLSpanElement | null>(null);const flow = useRef<HTMLParagraphElement | null>(null);+ const pause = useRef<HTMLButtonElement | null>(null);useEffect(() => {const refs = {@@ -217,6 +230,7 @@ export default function Recreation() {cam: cam.current,padValue: padValue.current,flow: flow.current,+ pause: pause.current,};if (Object.values(refs).some((el) => el === null)) return;const classes = { struck: styles.struck };@@ -240,9 +254,17 @@ export default function Recreation() {const placed = trims(0);const copy = beatCopy();+ const pauseLabel = translate({ id: "recreation.pause", message: "Pause animation" });+ const playLabel = translate({ id: "recreation.play", message: "Play animation" });return (- <section className={styles.band} ref={band} data-recreation="">+ <section+ className={styles.band}+ ref={band}+ data-recreation=""+ style={{ "--dock-height": `${DOCK_VIEWPORTS * 100}vh` } as React.CSSProperties}+ >+ <span id="editor" className={styles.editorStart} />{/* Three resting values that cannot live in the stylesheet, all read offthe closing frame rather than typed:@@ -269,6 +291,25 @@ export default function Recreation() {} as React.CSSProperties}>+ <div className={styles.previewControls}>+ <button+ ref={pause}+ type="button"+ className={styles.pause}+ aria-label={pauseLabel}+ aria-pressed="false"+ data-pause={pauseLabel}+ data-play={playLabel}+ data-paused="false"+ >+ <Pause size={16} data-icon="pause" />+ <Play size={16} data-icon="play" />+ </button>+ <a className={styles.scrollCue} href="#editor">+ {translate({ id: "home.hero.explore", message: "Scroll to explore the editor" })}+ <ArrowDown size={14} />+ </a>+ </div>{/* ═══ THE LEFT COLUMN ═══ The caption and the inspector, in one flowso the pair can be balanced against the picture as a unit — nothingcan align two boxes that are positioned absolutely and@@ -491,7 +532,7 @@ export default function Recreation() {<p> so the fiction adds no heading to this page's outline. */}<div className={styles.scene} aria-hidden="true" data-nosnippet="" lang="en">{/* ═══ THE COMPOSITE ═══ */}- <div className={styles.card}>+ <div className={styles.card} data-composite=""><div className={styles.cardClip}><div className={styles.zoomer} data-shot-box>{CANVAS_BG.map((n) => (@@ -688,19 +729,15 @@ export default function Recreation() {{/* 16/10.5, not a circle. */}<span className={styles.webcam}>- {/* No poster attribute: the driver sets one. `preload="none"` and a- src withheld until the reader is inside the band mean this- bordered, shadowed box paints EMPTY until the clip's first frame- decodes — just over a second on a 1.5 Mbps link. A poster in the- markup fixes that and bills 6.9 KB to every reader on every load,- phones included — the scene runs from 360px up — for a bubble- nobody sees before the band. */}+ {/* The preview is now in the hero, so its webcam has a poster+ immediately; the driver still defers the clip until visible. */}<videoref={cam}className={styles.webcamVideo}mutedplaysInlinepreload="none"+ poster="/img/walkthrough/webcam-poster.jpg"tabIndex={-1}disableRemotePlayback/>diff --git a/website/src/components/Recreation/playback.test.ts b/website/src/components/Recreation/playback.test.tsnew file mode 100644index 000000000..15fce39c6--- /dev/null+++ b/website/src/components/Recreation/playback.test.ts@@ -0,0 +1,77 @@+import assert from "node:assert/strict";+import { test } from "node:test";++import { createPlayback, followDock } from "./playback.ts";++test("the preview loops at real time and pauses without catching up", () => {+ const sample = createPlayback(26);+ sample(0, 0, 8000, 600, true);+ assert.equal(sample(5500, 0, 8000, 600, true).time, 5.5);+ assert.equal(sample(27500, 0, 8000, 600, true).time, 1.5);+ assert.equal(sample(28000, 0, 8000, 600, false).time, 1.5);+ assert.equal(sample(50000, 0, 8000, 600, true).time, 1.5);+ assert.equal(sample(51000, 0, 8000, 600, true).time, 2.5);+});++test("docking rewinds from the displayed frame and stays still when scrolling stops", () => {+ const sample = createPlayback(26);+ sample(0, 0, 8000, 600, true);+ sample(10000, 0, 8000, 600, true);+ const middle = sample(10000, 300, 8000, 600, true);+ assert.deepEqual(middle, { time: 1.25, dock: 0.875, phase: "docking" });+ assert.deepEqual(sample(20000, 300, 8000, 600, true), middle);+ assert.deepEqual(sample(21000, 600, 8000, 600, true), {+ time: 0,+ dock: 1,+ phase: "editor",+ });+ assert.equal(sample(22000, 4300, 8000, 600, true).time, 13);+ assert.equal(sample(23000, 9000, 8000, 600, true).time, 26);+});++test("scrolling back undoes docking continuously and resumes the loop", () => {+ const sample = createPlayback(26);+ sample(0, 0, 8000, 600, true);+ sample(12000, 0, 8000, 600, true);+ sample(12000, 4300, 8000, 600, true);+ assert.equal(sample(18000, 300, 8000, 600, true).time, 1.5);+ assert.equal(sample(19000, 0, 8000, 600, true).time, 12);+ assert.equal(sample(20000, 0, 8000, 600, true).time, 13);+});++test("the first scroll pixel already docks and rewinds the preview", () => {+ const sample = createPlayback(26);+ sample(0, 0, 8000, 240, true);+ sample(10000, 0, 8000, 240, true);+ const first = sample(10000, 1, 8000, 240, true);+ assert.equal(first.phase, "docking");+ assert.ok(first.dock > 0.01);+ assert.ok(first.time < 10);+ assert.equal(sample(10000, 240, 8000, 240, true).phase, "editor");+});++test("a wheel jump moves immediately and settles within a quarter second", () => {+ let offset = followDock(0, 240, 16);+ assert.ok(offset > 0 && offset < 240);+ for (let elapsed = 16; elapsed < 240; elapsed += 16) offset = followDock(offset, 240, 16);+ assert.equal(offset, 240);+ assert.ok(followDock(offset, 0, 16) < offset, "scrolling back responds immediately too");+});++test("the smoothing has the same pace on 60 Hz and 120 Hz displays", () => {+ const at = (step: number) => {+ let offset = 0;+ for (let elapsed = 0; elapsed < 96; elapsed += step) offset = followDock(offset, 240, step);+ return offset;+ };+ assert.ok(Math.abs(at(16) - at(8)) < 0.001);+});++test("landing directly in the editor does not play a preview first", () => {+ const sample = createPlayback(26);+ assert.deepEqual(sample(1000, 600, 8000, 600, true), {+ time: 0,+ dock: 1,+ phase: "editor",+ });+});diff --git a/website/src/components/Recreation/playback.ts b/website/src/components/Recreation/playback.tsnew file mode 100644index 000000000..8125bb9f2--- /dev/null+++ b/website/src/components/Recreation/playback.ts@@ -0,0 +1,43 @@+/** The preview plays on a clock; docking freezes that clock and rewinds it.+ * Once docked, the original editor score belongs entirely to the scroll. */+export const DOCK_VIEWPORTS = 0.28;++const clamp = (value: number) => Math.max(0, Math.min(1, value));++/** A short, refresh-rate-independent catch-up for wheel/trackpad increments. */+export function followDock(current: number, target: number, elapsed: number): number {+ if (Math.abs(target - current) < 0.5) return target;+ return current + (target - current) * (1 - Math.exp(-Math.min(elapsed, 64) / 36));+}++export function createPlayback(duration: number) {+ let previewTime = 0;+ let rewindFrom = 0;+ let lastNow: number | undefined;+ let lastOffset = 0;+ let wasPlaying = false;++ return (now: number, offset: number, span: number, dockDistance: number, playing: boolean) => {+ const elapsed = lastNow === undefined || !wasPlaying || !playing ? 0 : (now - lastNow) / 1000;+ if (lastOffset <= 0) previewTime = (previewTime + elapsed) % duration;+ if (offset > 0 && lastOffset <= 0) rewindFrom = previewTime;+ if (offset <= 0 && lastOffset > 0) previewTime = rewindFrom;++ const position = clamp(offset / dockDistance);+ // Respond immediately, then settle gently into the editor.+ const dock = 1 - (1 - position) ** 3;+ const progress = clamp((offset - dockDistance) / Math.max(1, span - dockDistance));+ const phase = offset <= 0 ? "preview" : position < 1 ? "docking" : "editor";+ const time =+ phase === "preview"+ ? previewTime+ : phase === "docking"+ ? rewindFrom * (1 - dock)+ : progress * duration;++ lastNow = now;+ lastOffset = offset;+ wasPlaying = playing;+ return { time, dock, phase };+ };+}diff --git a/website/src/components/Recreation/scene.ts b/website/src/components/Recreation/scene.tsindex 2a799c4f1..df513851f 100644--- a/website/src/components/Recreation/scene.ts+++ b/website/src/components/Recreation/scene.ts@@ -60,12 +60,9 @@ export type BeatId = (typeof BEATS)[number]["id"];/** The floor arrives here — inside the cursor beat, so the acts change under a* caption that is still up rather than across an empty stage. */const TL_IN = 14.65;-/** When the interface arrives over the picture — the inspector and the captions- * together. They used to disagree: the caption turned on with its beat, which- * now opens the scene at 0, while the panel waited for this threshold, so the- * title faded up a fifth of a second of scroll before the panel it belongs to.- * One number, read by both. */-const UI_IN = 0.35;+/** Docking has already revealed the interface before the score starts. Keep+ * both the caption and the inspector present at its very first frame. */+const UI_IN = 0;/*** The inspector is up for every beat except the one the palette owns — thediff --git a/website/src/components/Recreation/styles.module.css b/website/src/components/Recreation/styles.module.cssindex af4f0ea88..3e854796d 100644--- a/website/src/components/Recreation/styles.module.css+++ b/website/src/components/Recreation/styles.module.css@@ -184,14 +184,25 @@}/* ═══ THE BAND ═════════════════════════════════════════════════════════════- Nine viewports. The ride is paced against whatever this turns out to be, plus+ Nine viewports, plus the opening dock. The ride is paced against this, plusone more viewport of overflow, so changing it re-paces the scene and breaksnothing. */.band {- height: 900vh;+ position: relative;+ height: calc(900vh + var(--dock-height) - var(--hero-offset, 0px));+}++.editorStart {+ position: absolute;+ top: calc(var(--dock-height) - var(--hero-offset, 0px) + 78px);+ width: 1px;+ height: 1px;}.stage {+ --dock: 1;+ --card-scale: 1;+ --editor-reveal: clamp(0, (var(--dock) - 0.85) * 6.66667, 1);/* THE RESTING STATE — the closing frame, not a half-built one. */--t: 26;--tf: 28.4;@@ -264,10 +275,15 @@--pane-h: calc(var(--box-h) - var(--cap-h));/* The picture is 16:9, as wide as the box allows, and centred in it. */- --v-w: min(var(--c2w), var(--box-h) * 1.77778);+ --dock-w: min(var(--c2w), var(--box-h) * 1.77778);+ --dock-l: calc(var(--c2x) + (var(--c2w) - var(--dock-w)) / 2);+ --dock-t: calc(var(--box-top) + (var(--box-h) - var(--dock-w) * 0.5625) / 2);+ --hero-w: 91vw;+ --hero-l: 4.5vw;+ --v-w: calc(var(--hero-w) * (1 - var(--dock)) + var(--dock-w) * var(--dock));--v-h: calc(var(--v-w) * 0.5625);- --v-l: calc(var(--c2x) + (var(--c2w) - var(--v-w)) / 2);- --v-t: calc(var(--box-top) + (var(--box-h) - var(--v-h)) / 2);+ --v-l: calc(var(--hero-l) * (1 - var(--dock)) + var(--dock-l) * var(--dock));+ --v-t: calc(var(--dock-t) * var(--dock));position: sticky;top: 0;@@ -275,6 +291,7 @@overflow: hidden;font-family: var(--ifm-font-family-base);isolation: isolate;+ transform: translateY(calc(-1 * var(--approach, 0px) * var(--dock)));}.scene {@@ -282,6 +299,70 @@inset: 0;}+/* These controls operate the real preview, outside the decorative editor. */+.previewControls {+ display: none;+ position: absolute;+ left: calc(var(--v-l) + 16px);+ top: calc(var(--v-t) + 16px);+ z-index: 12;+ align-items: center;+ gap: 10px;+}++.band[data-driven] .stage[data-phase="preview"] .previewControls {+ display: flex;+}++.pause,+.scrollCue {+ background: var(--os-bg);+ color: var(--os-fg-emphasis);+ border: 1px solid var(--os-border-soft);+ box-shadow: var(--os-elev-pop);+}++.pause {+ display: grid;+ place-items: center;+ width: 36px;+ height: 36px;+ padding: 0;+ border-radius: 50%;+ cursor: pointer;+}++.pause:focus-visible,+.scrollCue:focus-visible {+ outline: 2px solid var(--os-accent);+ outline-offset: 3px;+}++.pause [data-icon="play"],+.pause[data-paused="true"] [data-icon="pause"] {+ display: none;+}++.pause[data-paused="true"] [data-icon="play"] {+ display: block;+}++.scrollCue {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ padding: 7px 12px;+ border-radius: 999px;+ font-size: 12px;+ line-height: 20px;+ text-decoration: none;+}++.scrollCue:hover {+ color: var(--os-accent);+ text-decoration: none;+}+/* ═══ THE CAPTIONS ═════════════════════════════════════════════════════════ *//* The left column: the caption and the inspector, balanced against the picture@@ -310,7 +391,7 @@/* Gated with the inspector, on the inspector's own threshold and theinspector's own timing, so the title does not announce a panel that is notthere yet. The per-beat cross-fade inside carries on independently. */- opacity: var(--intro);+ opacity: calc(var(--intro) * var(--editor-reveal));transition: opacity 0.45s var(--ease);}@@ -416,7 +497,7 @@background: color-mix(in srgb, var(--ost-surface) 92%, transparent);box-shadow: var(--ost-elev-pop), inset 0 1px 0 var(--ost-lip);pointer-events: none;- opacity: var(--panel);+ opacity: calc(var(--panel) * var(--editor-reveal));transform: translateY(calc((1 - var(--panel)) * 12px));}@@ -849,7 +930,7 @@max-height: calc(var(--palette) * 220px);overflow: hidden;transform: translateY(calc((1 - var(--palette)) * -16px));- opacity: var(--palette);+ opacity: calc(var(--palette) * var(--editor-reveal));pointer-events: none;transition:opacity 0.45s var(--ease),@@ -886,9 +967,12 @@.card {position: absolute;- left: var(--v-l);- top: var(--v-t);- width: var(--v-w);+ left: 0;+ top: 0;+ width: var(--dock-w);+ transform: translate(var(--v-l), var(--v-t)) scale(var(--card-scale));+ transform-origin: top left;+ will-change: transform;aspect-ratio: 16 / 9;/* 18px, matching .cardClip, which is inset:0 on this same box — so the1px ring below and the clipped content follow one arc. The design has@@ -1806,13 +1890,14 @@tall in a box with 512, the pane was left 114 for a palette of 160 —so it lay over the picture — and the transcript's mask came out at-20px, which is why that panel was empty. */- --v-w: min(+ --dock-w: min(calc(100vw - 2 * var(--gut-h)),calc((var(--box-h) - var(--cap-h) - var(--pane-min)) * 1.77778));- --v-h: calc(var(--v-w) * 0.5625);- --v-l: calc((100vw - var(--v-w)) / 2);- --v-t: calc(var(--box-top) + var(--cap-h));+ --dock-l: calc((100vw - var(--dock-w)) / 2);+ --dock-t: calc(var(--box-top) + var(--cap-h));+ --hero-w: calc(100vw - 2 * var(--gut-h));+ --hero-l: var(--gut-h);}/* The pair is not a pair here — the picture sits between them — so the@@ -2003,3 +2088,66 @@height: 100vh;}}++/* A static, full-width picture and all five captions when the driver cannot+ run (including no JavaScript). The hero still shows the result first. */+.band:not([data-driven]) {+ height: auto;+}++.band:not([data-driven]) .editorStart {+ top: 0;+}++.band:not([data-driven]) .stage {+ display: flex;+ flex-direction: column;+ position: static;+ height: auto;+ overflow: visible;+ transform: none;+}++.band:not([data-driven]) .scene {+ order: -1;+ position: relative;+ height: calc(var(--hero-w) * 0.5625 + var(--tl-h) + 40px);+}++.band:not([data-driven]) .card {+ left: var(--hero-l);+ top: 0;+ width: var(--hero-w);+ transform: none;+ will-change: auto;+}++.band:not([data-driven]) .column {+ display: block;+ position: static;+ width: auto;+ max-width: 60ch;+ margin: 36px auto;+ transform: none;+}++.band:not([data-driven]) .captions {+ display: grid;+ position: static;+ width: auto;+ height: auto;+ padding: 0 24px;+ gap: 26px;+}++.band:not([data-driven]) .cap {+ position: static;+ opacity: 1;+ transform: none;+ transition: none;+}++.band:not([data-driven]) .panel,+.band:not([data-driven]) .palette {+ display: none;+}diff --git a/website/src/pages/index.module.css b/website/src/pages/index.module.cssindex c9cb5ae51..6a4cf8b96 100644--- a/website/src/pages/index.module.css+++ b/website/src/pages/index.module.css@@ -8,106 +8,76 @@color: var(--os-fg);}-/* A full screen, as the design has it: the recreation is meant to begin only- once the hero has been scrolled past. */+/* The promise hands straight over to the live, full-width picture. */.hero {- position: relative;- /* One screen, navbar included. At a flat 100vh the hero is 60px taller than- the viewport it is meant to fill, so its bottom edge — and the scroll hint- pinned to it — sat below the fold, which is the one place an edge marker- must not be. */- min-height: calc(100vh - var(--ifm-navbar-height, 60px));- display: flex;- align-items: center;- justify-content: center;- padding: 88px 28px 56px;- text-align: center;+ padding: 32px 28px 32px;background: radial-gradient(ellipse 60% 40% at 50% 0%, var(--os-accent-wash), transparent 60%), var(--os-bg);}.heroInner {- max-width: 720px;+ max-width: 1080px;margin: 0 auto;}-/* Japanese has no spaces, so the centred hero lines broke mid-word on phones+/* Japanese has no spaces, so the hero lines broke mid-word on phones(動 / 画編集). auto-phrase breaks between phrases instead; browsers without itkeep the old behaviour. */.heroInner:lang(ja) {word-break: auto-phrase;}-.badge {- display: inline-flex;- align-items: center;- padding: 0.3rem 0.85rem;- border-radius: 999px;- background: var(--os-accent-soft);- border: 1px solid var(--os-accent-border);- color: var(--os-accent);- font-size: 0.8rem;- font-weight: 600;- margin-bottom: 22px;-}--/* --os-accent clears 4.5:1 against --os-bg, but the pill is not --os-bg: its own- --os-accent-soft tint composites to rgb(224,237,234) and takes the label down- to 4.28:1 at 12.8px/600, the one place on the page where accent text sits on- an accent-tinted surface. Light only — --os-brand-lo measures 4.45:1 on the- dark pill, so unscoped this would trade the failure rather than fix it. */-:global([data-theme="light"]) .badge {- color: var(--os-brand-lo);+.heroCopy {+ text-align: center;}.title {- margin: 20px 0 0;- font-size: clamp(42px, 6vw, 68px);+ margin: 0 auto;+ max-width: 22ch;+ font-size: clamp(42px, 5vw, 66px);font-weight: 700;letter-spacing: -0.03em;- line-height: 1.05;+ line-height: 1.04;+ text-wrap: balance;color: var(--os-fg-emphasis);}-/* Second line of the h1. Block-level at the tagline's own size so the heading- reads as wordmark-over-descriptor and not as one oversized sentence. */-.titleTagline {- display: block;- margin: 20px auto 0;- max-width: 560px;- font-size: 19px;- font-weight: 400;- letter-spacing: normal;+.tagline {+ margin: 18px auto 0;+ max-width: 620px;+ font-size: 18px;line-height: 1.55;- color: var(--os-fg-2);+ color: var(--os-fg);}-/* Zero top margin: this paragraph now continues the line the h1's descriptor- started, so it has to sit at line-box distance, not block distance. */-.tagline {- font-size: 19px;+.reassurance {+ margin: 12px 0 0;+ font-size: 13px;line-height: 1.55;color: var(--os-fg-2);- margin: 0 auto;- max-width: 560px;}.actions {display: flex;gap: 12px;- justify-content: center;flex-wrap: wrap;- margin: 30px 0 0;+ justify-content: center;+ margin: 22px 0 0;}-.primaryCta,-.secondaryCta {+.platforms {+ margin: 4px 0 0;+ font-size: 12px;+ color: var(--os-muted);+}++.primaryCta {display: inline-flex;align-items: center;gap: 0.5rem;- padding: 0.65rem 1.35rem;+ padding: 0.75rem 1.65rem;border-radius: 9px;font-weight: 600;- font-size: 0.95rem;+ font-size: 1rem;text-decoration: none;transition: transform 0.15s ease, box-shadow 0.15s ease;}@@ -129,18 +99,6 @@color: var(--os-bg);}-.secondaryCta {- background: transparent;- color: var(--os-fg-2);- border: 1px solid var(--os-border);-}--.secondaryCta:hover {- transform: translateY(-2px);- border-color: var(--os-fg-2);- color: var(--os-fg-2);-}-/* ---- shared section chrome ---- */.sectionKicker {@@ -390,7 +348,25 @@@media (max-width: 600px) {.hero {- padding: 64px 20px 0;+ padding: 24px 20px 28px;+ }++ .title {+ font-size: clamp(34px, 9.5vw, 44px);+ }++ .tagline {+ margin-top: 16px;+ font-size: 16px;+ }++ .reassurance {+ margin-top: 12px;+ }++ .actions {+ gap: 8px;+ margin-top: 18px;}.features {@@ -403,14 +379,14 @@}-/* ---- hero, v4 ---- */+/* Release news follows the editor. */.badgeRow {display: flex;align-items: center;justify-content: center;gap: 10px;- margin: 0 0 16px;+ margin: 32px 0 0;}.badgeNew {@@ -444,43 +420,8 @@text-decoration-color: currentColor;}-/* Pinned to the bottom of the first screen, where an edge belongs, rather than- trailing the copy as one more paragraph. No media gate any more: it used to- carry a claim that was only true where the driver runs, and "there is more- below" is true everywhere. */-.scrollHint {- position: absolute;- left: 50%;- /* 81px, the design's own offset. At 34 it clung to the edge with a void- above it; this reads as the bottom of a screen rather than as the bottom- of the window. */- bottom: 81px;- transform: translateX(-50%);- margin: 0;- display: flex;- align-items: center;- gap: 9px;- font-size: 13px;- font-weight: 500;- color: var(--os-fg-2);- animation: os-scroll-nudge 2.4s var(--ifm-transition-timing-default, ease-in-out) infinite;-}--/* The design's nudge: four pixels, slowly, which is enough to read as "keep- going" and little enough not to nag. */-@keyframes os-scroll-nudge {- 0%,- 100% {- transform: translateX(-50%) translateY(0);- }-- 50% {- transform: translateX(-50%) translateY(4px);- }-}-@media (prefers-reduced-motion: reduce) {- .scrollHint {- animation: none;+ .primaryCta {+ transition: none;}}diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsxindex 0e63acb59..e5a677d3f 100644--- a/website/src/pages/index.tsx+++ b/website/src/pages/index.tsx@@ -4,7 +4,7 @@ import Translate, { translate } from "@docusaurus/Translate";import useDocusaurusContext from "@docusaurus/useDocusaurusContext";import Heading from "@theme/Heading";import Layout from "@theme/Layout";-import { Apple, AppWindow, ArrowDown, CircleCheck, Download, TerminalSquare } from "lucide-react";+import { Apple, AppWindow, CircleCheck, Download, TerminalSquare } from "lucide-react";import AppLanguages from "../components/AppLanguages";import Editor from "../components/Editor";@@ -28,7 +28,7 @@ export default function Home() {description={translate({id: "home.meta.description",message:- "OpenScreen is a free, open-source screen recorder and video editor for Windows, macOS, and Linux — native capture, on-device captions, no watermarks.",+ "Turn screen recordings into polished demos with automatic zooms, styled backgrounds and an editable cursor. Free and open source for Windows, macOS and Linux. No watermark.",})}><Head>@@ -38,87 +38,55 @@ export default function Home() {{jsonLd(softwareApplicationLd(undefined, languages))}</script></Head>- <header className={styles.hero}>+ <header className={styles.hero} data-home-hero=""><div className={styles.heroInner}>- {/* A link, and a claim with a baseline. "Export faster" alone said- faster than nothing in particular. Two platforms, not three: the- v1.11.0 notes give the macOS and Linux gains (#583, #559), and the- public benchmark, which measured 1.11.0-rc.1 against 1.10.0, agrees- there but has the two level on one of its Windows machines. No- number: the post carries the caveats a badge has no room for.- Short enough to stay on one line on a 375px phone, where the hero- already runs close to the scroll hint. */}- <p className={styles.badgeRow}>- <span className={styles.badgeNew}>- <Translate id="home.hero.badge.new">NEW</Translate>- </span>- <LocaleLink- className={styles.badgeText}- to="/blog/2026/09/09/an-export-benchmark-hard-to-fake/"- >- <Translate- id="home.hero.badge.text"- description="Links to an English-only blog post. Must fit on one line on a 375px phone."- >- 1.11 exports faster on macOS and Linux+ <div className={styles.heroCopy}>+ <Heading as="h1" className={styles.title}>+ <Translate id="home.hero.title">+ Record your screen. Your video already looks polished.</Translate>- </LocaleLink>- </p>- {/* The product's name, not a claim about it. The design opens on- "Screen Recording / Reimagined", which is the one line on a page- that spends its whole length proving specific things — the editor- runs live, the model is 264 MB, every edit is undoable — that- proves nothing. It also left the strongest on-page signal there is- without the word people search once they have heard of us.- The {" "} is for whatever reads the text rather than the layout:- without it the heading extracts as "OpenScreenA free…". */}- <Heading as="h1" className={styles.title}>- OpenScreen{" "}- <span className={styles.titleTagline}>- <Translate id="home.hero.titleTagline">- A free, open-source screen recorder and video editor+ </Heading>+ <p className={styles.tagline}>+ <Translate id="home.hero.tagline">+ Automatic zooms, smooth cursor movement, and a frame that looks finished. Record,+ adjust, share.</Translate>- </span>- </Heading>- {/* The design's "Screen Recording" line lives here, below the name:- it is also the query people type before they know the product.- Without "reimagined", for the reason the h1 comment gives. */}- <p className={styles.tagline}>- <Translate id="home.hero.tagline">- Screen recording with native capture, local AI and no paywall.- </Translate>- </p>- <div className={styles.actions}>- {/* Not "Download for macOS". This page's own trio says Windows, macOS- and Linux, and /download offers a Store listing, a .dmg, an .exe, a- .deb, an .rpm, a .pacman, an AppImage and a Nix flake. The label is- static, so it was not adapting to the reader either: it told two of the three- platforms that the page's main action was not for them. */}- <Link className={styles.primaryCta} to="/download">- <Download size={16} />- <Translate id="home.hero.download">Download</Translate>- </Link>- <Link className={styles.secondaryCta} to="/docs/intro">- <Translate id="home.hero.readDocs">Read the docs</Translate>- </Link>+ </p>+ <div className={styles.actions}>+ <Link className={styles.primaryCta} to="/download">+ <Download size={16} />+ <Translate id="home.hero.download">Download</Translate>+ </Link>+ </div>+ <p className={styles.reassurance}>+ <Translate id="home.hero.reassurance">+ Free and open source. No watermark. No account.+ </Translate>+ </p>+ <p className={styles.platforms}>+ <Translate id="home.features.platforms.title">Windows, macOS, Linux</Translate>+ </p></div></div>-- {/* An affordance, not a claim. It said "the scrollbar is the timeline",- which is true and is still the wrong job for this line: what a- reader needs at the fold is to know there is more below, and a- sentence is a worse signal for that than an arrow. The design pins- it to the bottom of the screen with a down arrow beside it, which- is also what makes it read as an edge rather than as a caption. */}- <p className={styles.scrollHint}>- <ArrowDown size={15} strokeWidth={2} />- <Translate id="home.hero.scrollHint">Scroll down</Translate>- </p></header>- {/* The argument, immediately after the hero. */}+ {/* The same live picture loops here, then docks into its editor. */}<Editor />+ {/* Release news follows the demonstration. */}+ <p className={styles.badgeRow}>+ <span className={styles.badgeNew}>+ <Translate id="home.hero.badge.new">NEW</Translate>+ </span>+ <LocaleLink+ className={styles.badgeText}+ to="/blog/2026/09/09/an-export-benchmark-hard-to-fake/"+ >+ <Translate id="home.hero.badge.text" description="Links to an English-only blog post.">+ 1.11 exports faster on macOS and Linux+ </Translate>+ </LocaleLink>+ </p>{/* What the editor above does not reach, filmed from the app. */}<Films />@@ -141,11 +109,7 @@ export default function Home() {Free, local, cross-platform: three things a screenshot can't show.</Translate></Heading>- {/* The one paragraph that says what the product is, in a form that- can be lifted out whole. It belongs under the hero's slogan, but- the hero centers its copy against a scroll hint pinned 81px from- its bottom edge, and four more lines run into that hint on a- small phone. So it leads this section instead, at body size. */}+ {/* The product's definition and project history, after the demonstrations. */}<p className={styles.productSummary}><Translateid="home.features.summary"