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 the real editor instead of a drawing of it
Etienne Lescota54e70962302
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.ymlindex 554024276..58fefd1e0 100644--- a/.github/workflows/docs.yml+++ b/.github/workflows/docs.yml@@ -53,6 +53,14 @@ jobs:- name: Type-checkworking-directory: websiterun: npm run typecheck+ # The walkthrough's clips and stills are committed to this repo, which has+ # no LFS filter — their size is permanent, so a budget that lives only in a+ # design note drifts on the first re-cut. This also fails any clip encoded+ # with an audio track, which iOS Safari refuses to autoplay without a+ # gesture even when the element is muted.+ - name: Check media budget+ working-directory: website+ run: npm run check:media- name: Buildworking-directory: websiterun: npm run builddiff --git a/website/package.json b/website/package.jsonindex 41f29f241..def242f83 100644--- a/website/package.json+++ b/website/package.json@@ -8,7 +8,8 @@"build": "docusaurus build","serve": "docusaurus serve","clear": "docusaurus clear",- "typecheck": "tsc --noEmit"+ "typecheck": "tsc --noEmit",+ "check:media": "node scripts/check-media-budget.mjs"},"dependencies": {"@docusaurus/core": "^3.9.2",diff --git a/website/scripts/check-media-budget.mjs b/website/scripts/check-media-budget.mjsnew file mode 100644index 000000000..bfe6d3604--- /dev/null+++ b/website/scripts/check-media-budget.mjs@@ -0,0 +1,107 @@+#!/usr/bin/env node+/**+ * Guards the landing page's media budget.+ *+ * The walkthrough's page weight is the whole argument for shipping video at all+ * — a demo that makes the page slow has argued against the product it is+ * demonstrating. Byte budgets that live only in a design document drift on the+ * first re-cut, so they live here and the build fails on them.+ *+ * Everything under website/static/ is committed to git permanently: this repo+ * has no LFS filter, and video neither compresses nor deltas, so a re-cut costs+ * its full size again rather than a diff. The directory ceiling is the real+ * constraint; the per-file ones just localise the failure.+ *+ * The audio check is not a nicety. WebKit grants gesture-free autoplay to media+ * that contains no audio track — the `muted` attribute alone is not enough on+ * iOS — and the masters these clips are cut from carry an AAC stream of digital+ * silence. Encoding without `-an` produces a clip that silently refuses to play+ * for a large share of visitors, and looks perfect on the machine that made it.+ */++import { readdirSync, readFileSync, statSync } from "node:fs";+import { join, relative, resolve } from "node:path";++const ROOT = resolve(import.meta.dirname, "..");++const RULES = [+ { dir: "static/video", ext: ".mp4", max: 200_000 },+ { dir: "static/img/walkthrough", ext: ".jpg", max: 70_000 },+];+const TOTAL_MAX = 1_600_000;++const problems = [];+let total = 0;+let counted = 0;++function walk(dir) {+ let entries;+ try {+ entries = readdirSync(dir, { withFileTypes: true });+ } catch {+ return []; // an absent directory is a section not yet shot, not a failure+ }+ return entries.flatMap((e) =>+ e.isDirectory() ? walk(join(dir, e.name)) : [join(dir, e.name)],+ );+}++/**+ * True if the MP4 declares a sound track. Reads the `hdlr` boxes rather than+ * shelling out to ffprobe, which is not guaranteed on a CI runner and would make+ * this check quietly skippable — which is how the guarantee would be lost.+ */+function hasAudioTrack(file) {+ const buf = readFileSync(file);+ for (let i = 0; i + 4 <= buf.length; i++) {+ if (buf[i] === 0x68 && buf[i + 1] === 0x64 && buf[i + 2] === 0x6c && buf[i + 3] === 0x72) {+ // hdlr: 4 size + 4 type + 4 version/flags + 4 predefined, then handler_type+ const handler = buf.subarray(i + 12, i + 16).toString("latin1");+ if (handler === "soun") return true;+ }+ }+ return false;+}++for (const rule of RULES) {+ const abs = join(ROOT, rule.dir);+ for (const file of walk(abs)) {+ const rel = relative(ROOT, file);+ const bytes = statSync(file).size;+ total += bytes;+ counted += 1;++ if (!file.endsWith(rule.ext)) {+ problems.push(`${rel}: unexpected file type in ${rule.dir} (only ${rule.ext} belongs here)`);+ continue;+ }+ if (bytes > rule.max) {+ problems.push(+ `${rel}: ${bytes.toLocaleString()} B exceeds the ${rule.max.toLocaleString()} B ceiling`,+ );+ }+ if (rule.ext === ".mp4" && hasAudioTrack(file)) {+ problems.push(+ `${rel}: carries an audio track. Re-encode with -an — iOS Safari refuses ` ++ `gesture-free autoplay for media that has one, muted or not.`,+ );+ }+ }+}++if (total > TOTAL_MAX) {+ problems.push(+ `walkthrough media totals ${total.toLocaleString()} B, over the ` ++ `${TOTAL_MAX.toLocaleString()} B ceiling. These bytes are permanent in git history.`,+ );+}++const summary = `${counted} file${counted === 1 ? "" : "s"}, ${total.toLocaleString()} B of ${TOTAL_MAX.toLocaleString()}`;++if (problems.length) {+ console.error(`media budget FAILED — ${summary}`);+ for (const p of problems) console.error(` · ${p}`);+ process.exit(1);+}++console.log(`media budget ok — ${summary}`);diff --git a/website/src/components/Walkthrough/bands.ts b/website/src/components/Walkthrough/bands.tsnew file mode 100644index 000000000..9ad0a7a1a--- /dev/null+++ b/website/src/components/Walkthrough/bands.ts@@ -0,0 +1,149 @@+/**+ * The walkthrough's content, in one file.+ *+ * Every claim on this page is illustrated by a frame of the real application,+ * never by a drawing of it. That is the whole point of the section: the page it+ * replaced was 54 divs imitating an interface, including a made-up timecode and+ * a grey gradient standing in for video.+ *+ * It also has to hold under `video, img { display: none }`. The clips carry no+ * sound and no narration, so they owe no captions and no transcript — they take+ * WCAG 1.2.1's "media alternative for text" exemption, and the exemption is only+ * earned as long as the prose below says everything the footage says. Read the+ * page with the media hidden before changing a word of it.+ */++export type BandMedia = {+ /** Shown before anything plays. The clip's own first frame, where there is a clip. */+ image: string;+ imageSm: string;+ /** The clip's last frame — the outcome. Shown after it plays, and instead of it+ * under reduced motion, so a reader who never sees motion still sees the result. */+ result?: string;+ resultSm?: string;+ clip?: string;+ clipSm?: string;+ /** Intrinsic size of the desktop asset. Both are needed on the <img> or the+ * page reflows when it lands; `aspect-ratio` alone loses Safari 14. */+ width: number;+ height: number;+ widthSm: number;+ heightSm: number;+ seconds?: number;+ alt: string;+ /** Alt text for the outcome frame, when it differs from the opening one. */+ resultAlt?: string;+};++export type Band = {+ id: string;+ index: string;+ kicker: string;+ claim: string;+ body: string;+ fact: string;+ /** plate: 640px, beside the copy. letterbox: full width, copy above — a+ * timeline is a horizontal instrument and cropping one to 640px destroys+ * the thing being claimed. statement: no media yet. */+ shape: "plate" | "letterbox" | "statement";+ /** Puts the plate on the left. Layout only — the copy stays first in the DOM. */+ flip?: boolean;+ media?: BandMedia;+};++const IMG = "/img/walkthrough";+const VID = "/video";++export const BANDS: Band[] = [+ {+ id: "band-record",+ index: "01",+ kicker: "record",+ claim: "It records with the operating system, not around it.",+ body: "Pick a window, a display, or a region. macOS goes through ScreenCaptureKit and Windows through Windows Graphics Capture — the same capture path the system uses itself. The pointer is recorded as data rather than burned into the pixels, so you can restyle it after the fact.",+ fact: "ScreenCaptureKit · Windows Graphics Capture · system audio on its own track",+ shape: "statement",+ },+ {+ id: "band-timeline",+ index: "02",+ kicker: "timeline",+ claim: "A zoom is a region, not a keyframe.",+ body: "Press Z and a block appears on the timeline. Drag its edges to change when it happens, pick a depth, scrub back and watch it. T trims, S changes speed, A annotates, C cuts to full camera. Nothing is baked into the pixels until you export, so every block stays a block.",+ fact: "Z zoom · T trim · S speed · A annotate · C full camera",+ shape: "letterbox",+ media: {+ image: `${IMG}/02-timeline-a.jpg`,+ imageSm: `${IMG}/02-timeline-sm-a.jpg`,+ width: 1560,+ height: 288,+ widthSm: 640,+ heightSm: 118,+ alt: "The OpenScreen timeline: a ruler in minutes and seconds, two green zoom blocks labelled 1.80x and 2.20x sitting on their own lane, prompts reading “Press A to add annotation”, “Press S to add speed” and “Press T to add trim” on the empty lanes below, and one audio clip drawn as a waveform along the bottom.",+ },+ },+ {+ id: "band-captions",+ index: "03",+ kicker: "captions",+ claim: "Transcription runs on your machine.",+ body: "Whisper is bundled. The audio never leaves the laptop, it works with the network off, and what comes back is editable text — set the typeface, the size, the colour, the position. Burn it into the render, or keep it as a track you can hand to someone else.",+ fact: "whisper.cpp · offline · Metal, CUDA or CPU",+ shape: "plate",+ media: {+ image: `${IMG}/03-captions-a.jpg`,+ imageSm: `${IMG}/03-captions-sm-a.jpg`,+ width: 960,+ height: 540,+ widthSm: 640,+ heightSm: 360,+ alt: "The transcription panel, headed “Current transcription”, beside the video canvas. It names the recording and holds the spoken text of it, with the pauses marked inline as “[silence 2.2s]”, “[silence 0.3s]” and “[silence 6.2s]” — the gaps the editor can then cut.",+ },+ },+ {+ id: "band-agent",+ index: "04",+ kicker: "agent",+ claim: "Or describe the edit instead.",+ body: "The agent reads the actual transcript and the actual timeline, so it answers with timecodes you can go and check — which spans it will cut, and how much that saves. It proposes; you accept. Every edit it makes is an ordinary undoable one, and it needs a provider key you supply. Nothing runs until you connect one.",+ fact: "bring your own key · off by default · every edit is undoable",+ shape: "plate",+ flip: true,+ media: {+ image: `${IMG}/04-agent-a.jpg`,+ imageSm: `${IMG}/04-agent-sm-a.jpg`,+ width: 960,+ height: 540,+ widthSm: 640,+ heightSm: 360,+ alt: "The agent's reply in the chat panel, quoting the transcript back with timecodes: silences longer than one second at 0.0–2.24s before “Hi” and at 33.88–40.03s after “think.”, a total cut of about 8.4 seconds taking the video from 40s to roughly 31.6s, and a green line underneath reading “applied: added 2 trims”.",+ },+ },+ {+ id: "band-export",+ index: "05",+ kicker: "export",+ claim: "Then it writes the file.",+ body: "MP4 or GIF, 720p to source, 24 or 30 or 60, H.264 or H.265. The encode runs on your machine and counts frames while it does. No queue, no account, no watermark. The file is on disk when the bar fills.",+ fact: "H.264 / H.265 · 24, 30, 60 fps · no watermark",+ // A plate, not a letterbox: the export dialog is already close to 16:9,+ // and cropping it to a 3.5:1 strip cuts the format row off the top and the+ // render bar off the bottom — the two things the claim rests on.+ shape: "plate",+ media: {+ image: `${IMG}/05-export-a.jpg`,+ imageSm: `${IMG}/05-export-sm-a.jpg`,+ result: `${IMG}/05-export-b.jpg`,+ resultSm: `${IMG}/05-export-sm-b.jpg`,+ clip: `${VID}/05-export.mp4`,+ clipSm: `${VID}/05-export-sm.mp4`,+ width: 960,+ height: 540,+ widthSm: 640,+ heightSm: 360,+ seconds: 3.2,+ alt: "The export dialog: MP4 or GIF, a resolution row offering 720p, 1080p and Source, a frame-rate row offering 24, 30 and 60, and a codec row offering H.264 and H.265.",+ resultAlt: "The same dialog mid-render, with a progress bar part-filled and a counter reading the frame it has reached out of the total, with an estimate of the seconds left.",+ },+ },+];diff --git a/website/src/components/Walkthrough/index.tsx b/website/src/components/Walkthrough/index.tsxnew file mode 100644index 000000000..dbb6294bd--- /dev/null+++ b/website/src/components/Walkthrough/index.tsx@@ -0,0 +1,249 @@+import { useEffect, useRef, useState } from "react";++import Head from "@docusaurus/Head";++import { BANDS, type Band } from "./bands";+import { PLATE } from "./plate";+import styles from "./styles.module.css";+import { type BandPlayback, useBandPlayback } from "./useBandPlayback";++/** Both global controls are server-rendered as inert spans of identical box size+ * and upgraded after hydration, so a reader without JavaScript never meets a+ * control that looks operable and is not. */+function useUpgradedTag(hydrated: boolean) {+ return hydrated ? "button" : "span";+}++function BandView({ band, ctl }: { band: Band; ctl: BandPlayback }) {+ const { media } = band;+ const videoRef = useRef<HTMLVideoElement | null>(null);+ const [ready, setReady] = useState(false);+ const [playing, setPlaying] = useState(false);++ const owns = ctl.activeId === band.id && !!media?.clip;+ const played = ctl.playedIds.has(band.id);+ const refused = ctl.refusedIds.has(band.id);+ // Depending on `ctl` itself would re-run this on every render — it is a fresh+ // object each time — and call play() again on an element already playing.+ const { markRefused } = ctl;++ useEffect(() => {+ if (!owns) {+ setReady(false);+ setPlaying(false);+ return;+ }+ const el = videoRef.current;+ if (!el) return;+ const attempt = el.play();+ if (attempt) {+ // iOS in Low Power Mode refuses muted inline autoplay outright, and the+ // page cannot override it. The poster and the labelled button stay; only+ // the element goes away.+ attempt.catch(() => markRefused(band.id));+ }+ }, [owns, band.id, markRefused]);++ if (!media) {+ return (+ <article+ id={band.id}+ className={`${styles.band} ${styles.statement}`}+ ref={ctl.registerBand(band.id)}+ data-band-id={band.id}+ >+ <Copy band={band} />+ </article>+ );+ }++ // Once a clip has finished, its band keeps showing the last frame rather than+ // snapping back to the first — so scrolling back up shows outcomes, and the+ // reduced-motion reader is shown those outcomes from the start.+ const showResult = (played || ctl.quiet) && !!media.result;+ const still = showResult ? (media.result as string) : media.image;+ const stillSm = showResult ? (media.resultSm as string) : media.imageSm;+ const alt = showResult && media.resultAlt ? media.resultAlt : media.alt;++ const hasClip = !!media.clip;+ const Tag = useUpgradedTag(ctl.hydrated);+ const label = played ? `Replay the ${band.kicker} clip` : `Play the ${band.kicker} clip`;++ return (+ <article+ id={band.id}+ className={`${styles.band} ${band.shape === "letterbox" ? styles.wide : styles.split} ${+ band.flip ? styles.flip : ""+ }`}+ ref={ctl.registerBand(band.id)}+ data-band-id={band.id}+ >+ <Copy band={band} />+ <figure className={styles.figure}>+ <div+ className={styles.frame}+ style={{ aspectRatio: `${media.width} / ${media.height}` }}+ >+ <picture>+ <source media="(max-width: 780px)" srcSet={stillSm} />+ <img+ className={styles.still}+ src={still}+ width={media.width}+ height={media.height}+ loading="lazy"+ decoding="async"+ alt={alt}+ />+ </picture>+ {owns && (+ <video+ ref={videoRef}+ className={`${styles.clip} ${ready ? styles.clipReady : ""}`}+ src={ctl.small ? media.clipSm : media.clip}+ width={media.width}+ height={media.height}+ muted+ playsInline+ preload="auto"+ aria-hidden="true"+ tabIndex={-1}+ disableRemotePlayback+ onLoadedData={() => setReady(true)}+ onPlaying={() => setPlaying(true)}+ onEnded={() => {+ setPlaying(false);+ ctl.markPlayed(band.id);+ }}+ />+ )}+ </div>+ <figcaption className={styles.caption}>+ <span className={styles.captionText}>+ {hasClip+ ? `${media.seconds?.toFixed(1)}s · one take · no sound`+ : "A frame of the running application"}+ </span>+ {hasClip && !refused && (+ <Tag+ className={styles.replay}+ {...(ctl.hydrated+ ? { type: "button" as const, onClick: () => ctl.play(band.id) }+ : { "aria-hidden": true })}+ >+ {label}+ </Tag>+ )}+ </figcaption>+ {hasClip && (+ <span className={styles.rail} aria-hidden="true">+ <span+ className={`${styles.railFill} ${playing ? styles.railRunning : ""} ${+ played && !playing ? styles.railDone : ""+ }`}+ style={{ animationDuration: `${media.seconds ?? 5}s` }}+ />+ </span>+ )}+ </figure>+ </article>+ );+}++function Copy({ band }: { band: Band }) {+ return (+ <div className={styles.copy}>+ <p className={styles.kicker}>+ <span className={styles.index}>{band.index}</span>+ {band.kicker}+ </p>+ <h3 className={styles.claim}>{band.claim}</h3>+ <p className={styles.body}>{band.body}</p>+ <p className={styles.fact}>{band.fact}</p>+ </div>+ );+}++export default function Walkthrough() {+ const ctl = useBandPlayback();+ const Tag = useUpgradedTag(ctl.hydrated);++ return (+ <>+ <Head>+ <link+ rel="preload"+ as="image"+ href={PLATE.src}+ imageSrcSet={PLATE.srcSet}+ imageSizes={PLATE.sizes}+ fetchPriority="high"+ />+ </Head>++ <section className={styles.plateSection}>+ <figure className={styles.plate}>+ <img+ className={styles.plateImage}+ src={PLATE.src}+ srcSet={PLATE.srcSet}+ sizes={PLATE.sizes}+ width={PLATE.width}+ height={PLATE.height}+ fetchPriority="high"+ decoding="async"+ alt={PLATE.alt}+ />+ <figcaption className={styles.plateCaption}>{PLATE.caption}</figcaption>+ </figure>+ </section>++ <section className={styles.walkthrough} aria-labelledby="walkthrough-title">+ <div className={styles.inner}>+ <a className={styles.skip} href="#download-install">+ Skip the walkthrough — go to downloads+ </a>++ <div className={styles.head}>+ <p className={styles.sectionKicker}>What it does</p>+ <h2 id="walkthrough-title" className={styles.sectionTitle}>+ Recorder first. Editor second. AI only if you ask.+ </h2>+ <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.+ </p>++ <div className={styles.controls}>+ <nav className={styles.chapters} aria-label="Walkthrough sections">+ {BANDS.map((band) => (+ <a key={band.id} href={`#${band.id}`}>+ {band.kicker}+ </a>+ ))}+ </nav>+ <Tag+ className={styles.toggle}+ {...(ctl.hydrated+ ? {+ type: "button" as const,+ "aria-pressed": ctl.autoplay,+ onClick: () => ctl.setAutoplay(!ctl.autoplay),+ }+ : { "aria-hidden": true })}+ >+ <span className={styles.toggleDot} aria-hidden="true" />+ Play clips as they scroll into view+ </Tag>+ </div>+ </div>++ {BANDS.map((band) => (+ <BandView key={band.id} band={band} ctl={ctl} />+ ))}+ </div>+ </section>+ </>+ );+}diff --git a/website/src/components/Walkthrough/plate.ts b/website/src/components/Walkthrough/plate.tsnew file mode 100644index 000000000..307017e65--- /dev/null+++ b/website/src/components/Walkthrough/plate.ts@@ -0,0 +1,23 @@+/**+ * The establishing plate — one photograph of the real editor, unretouched.+ *+ * It is the page's LCP element, so it is preloaded and it is a JPEG: `as="video"`+ * is not implemented in any engine, which means a poster is the only thing on a+ * media-led page that can be preloaded at all.+ *+ * Density is deliberately capped at 1.5x. A 2080-wide rendition measures ~95 KB+ * and would push the 2x critical path over the 250 KB the page is held to; the+ * 1560 asset on a 3x display is a far cheaper compromise than the alternative.+ */+export const PLATE = {+ src: "/img/walkthrough/editor-1040.jpg",+ srcSet: "/img/walkthrough/editor-1040.jpg 1040w, /img/walkthrough/editor-1560.jpg 1560w",+ sizes: "(max-width: 1096px) calc(100vw - 56px), 1040px",+ width: 1040,+ height: 584,+ // Not "unretouched": the window's rounded corners were squared against its own+ // chrome colour so the wallpaper behind it does not bleed into the frame. That+ // is matting, but the caption should not claim more than the picture is.+ caption: "OpenScreen 1.8 · one frame of the running editor",+ alt: "The OpenScreen editor: an AI chat panel down the left, the video canvas in the middle showing the page being demonstrated, a live transcript panel on the right with the silences marked in it, and a timeline below holding two zoom regions above one audio waveform.",+} as const;diff --git a/website/src/components/Walkthrough/styles.module.css b/website/src/components/Walkthrough/styles.module.cssnew file mode 100644index 000000000..8f6389098--- /dev/null+++ b/website/src/components/Walkthrough/styles.module.css@@ -0,0 +1,537 @@+/**+ * The walkthrough — one photograph of the editor, then a band per capability.+ *+ * Two rules shape everything here.+ *+ * Nothing sticks. The page's only sticky object stays the navbar. A pinned+ * stage would be at the mercy of --ifm-navbar-height, of the navbar's z-index,+ * of any future theme wrapper that creates a containing block and silently+ * kills `position: sticky`, and of 1.4.10 Reflow at 320 CSS px.+ *+ * No text ever sits on video. Contrast against footage cannot be computed, and+ * this footage runs from a near-black chrome to a white page inside the canvas.+ * Every label lives on a token surface instead.+ */++.plateSection,+.walkthrough {+ /* Explicit: the dark-theme document canvas resolves to Infima's own #1b1b1d,+ and `html, body { height: 100% }` means the body paints only the first+ viewport — so a section without a background sits on the wrong grey. */+ background: var(--os-bg);+ color: var(--os-fg);+}++/* ---- the establishing plate ---- */++.plateSection {+ padding: 48px 28px 96px;+ display: flex;+ justify-content: center;+}++.plate {+ width: 100%;+ max-width: 1040px;+ margin: 0;+ border-radius: 16px;+ border: 1px solid var(--os-border);+ background: var(--os-surface-1);+ box-shadow: var(--os-elev-pop);+ overflow: hidden;+}++.plateImage {+ display: block;+ width: 100%;+ height: auto;+}++/* On --os-surface-1, not --os-surface-2. The tinted surface is 1.4.3-failing in+ the light theme — muted-on-#f1f3f5 measures 4.35:1 at 11px — and the rule above+ already separates the caption from the picture without it. */+.plateCaption {+ padding: 9px 16px;+ border-top: 1px solid var(--os-border-soft);+ background: var(--os-surface-1);+ font-family: var(--ifm-font-family-monospace);+ font-size: 11px;+ color: var(--os-muted);+}++/* ---- section ---- */++.walkthrough {+ padding: 0 28px 96px;+}++.inner {+ max-width: 1040px;+ margin: 0 auto;+}++/* Visible only on focus. A marketing page with five media blocks is a long way+ to tab past when all you wanted was the download. */+.skip {+ position: absolute;+ width: 1px;+ height: 1px;+ margin: -1px;+ padding: 0;+ overflow: hidden;+ clip-path: inset(50%);+ white-space: nowrap;+}++.skip:focus,+.skip:focus-visible {+ position: static;+ width: auto;+ height: auto;+ margin: 0 0 20px;+ clip-path: none;+ display: inline-block;+ padding: 7px 14px;+ border-radius: 9px;+ background: var(--os-surface-2);+ border: 1px solid var(--os-border);+ color: var(--os-fg-2);+ font-size: 12.5px;+ text-decoration: none;+}++.head {+ max-width: 720px;+ margin: 0 auto 72px;+ text-align: center;+}++.sectionKicker {+ margin: 0;+ font-family: var(--ifm-font-family-monospace);+ font-size: 11px;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--os-accent);+}++.sectionTitle {+ margin: 10px 0 0;+ font-size: clamp(26px, 3vw, 32px);+ font-weight: 700;+ letter-spacing: -0.02em;+ line-height: 1.2;+ color: var(--os-fg-emphasis);+}++.deck {+ margin: 16px auto 0;+ max-width: 620px;+ font-size: 14.5px;+ line-height: 1.65;+ color: var(--os-muted);+}++.controls {+ display: flex;+ align-items: center;+ justify-content: center;+ flex-wrap: wrap;+ gap: 10px;+ margin-top: 28px;+}++/* Wraps. Five chapter names in one row measure 334px, which is wider than the+ 320 CSS px that 1.4.10 Reflow requires the page to survive without a+ horizontal scrollbar — and a nav that scrolls sideways off a phone is a nav+ whose last two entries do not exist. */+.chapters {+ display: inline-flex;+ flex-wrap: wrap;+ justify-content: center;+ gap: 2px;+ padding: 3px;+ border-radius: 18px;+ border: 1px solid var(--os-border);+ background: var(--os-surface-1);+}++/* --os-fg-2, not --os-muted: the pill sits on --os-surface-1, which lifts the+ backdrop enough that muted lands at 3.72:1 in the dark theme — a 1.4.3 failure+ on what is a row of navigation links. */+.chapters a {+ padding: 5px 12px;+ border-radius: 999px;+ font-size: 12px;+ color: var(--os-fg-2);+ text-decoration: none;+ transition: background-color 0.15s ease, color 0.15s ease;+}++.chapters a:hover {+ background: var(--os-surface-2);+ color: var(--os-fg-emphasis);+}++/* Rendered as an inert <span> on the server and upgraded to a <button> after+ hydration, so the box never changes size and a no-JS reader is never offered+ a control that does nothing. */+.toggle {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ padding: 6px 14px;+ border-radius: 999px;+ border: 1px solid var(--os-border);+ background: transparent;+ font: inherit;+ font-size: 12px;+ color: var(--os-muted);+ cursor: pointer;+}++span.toggle {+ cursor: default;+}++.toggle[aria-pressed="true"] {+ border-color: var(--os-accent-border);+ background: var(--os-accent-wash);+ color: var(--os-fg-2);+}++.toggleDot {+ width: 7px;+ height: 7px;+ border-radius: 50%;+ background: var(--os-surface-hi);+}++.toggle[aria-pressed="true"] .toggleDot {+ background: var(--os-accent);+ box-shadow: 0 0 0 3px var(--os-accent-soft);+}++/* ---- bands ---- */++.band {+ /* The navbar is 60px and sticky; without this an anchor jump parks the+ band's heading underneath it. */+ scroll-margin-top: 76px;+}++.band + .band {+ margin-top: 88px;+}++.split {+ display: grid;+ grid-template-columns: 360px 1fr;+ gap: 40px;+ align-items: center;+}++/* Assigning columns, not `order`: the tracks are asymmetric (360px + 1fr), and+ reordering auto-placed items moves the plate into the narrow track instead of+ swapping the two sides. The DOM keeps the copy first either way, so the+ reading order never depends on the layout. */+.flip {+ grid-template-columns: 1fr 360px;+}++/* The row is explicit too. With only the column pinned, grid auto-placement+ refuses to go backwards: the copy takes row 1 / column 2, and the figure —+ later in the DOM — cannot fill row 1 / column 1 behind it, so it drops to a+ second row and the band silently becomes two stacked halves. */+.flip .copy {+ grid-column: 2;+ grid-row: 1;+}++.flip .figure {+ grid-column: 1;+ grid-row: 1;+}++.wide .copy {+ max-width: 620px;+ margin-bottom: 28px;+}++/* A band with no footage yet reads as a deliberate statement rather than as a+ hole: bordered card, same radius and elevation as the install panes. */+.statement {+ padding: 34px;+ border-radius: 14px;+ border: 1px solid var(--os-border);+ background: var(--os-surface-1);+ box-shadow: var(--os-elev-card);+}++.statement .copy {+ max-width: 640px;+}++.kicker {+ display: flex;+ align-items: center;+ gap: 9px;+ margin: 0;+ font-family: var(--ifm-font-family-monospace);+ font-size: 11px;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--os-muted);+}++.index {+ color: var(--os-accent);+}++.claim {+ margin: 14px 0 0;+ font-size: 19px;+ font-weight: 600;+ line-height: 1.35;+ letter-spacing: -0.01em;+ color: var(--os-fg-emphasis);+}++.body {+ margin: 12px 0 0;+ font-size: 13.5px;+ line-height: 1.65;+ color: var(--os-fg-2);+}++.fact {+ margin: 16px 0 0;+ font-family: var(--ifm-font-family-monospace);+ font-size: 11px;+ line-height: 1.65;+ color: var(--os-muted);+}++/* ---- the plate itself ---- */++.figure {+ margin: 0;+ min-width: 0;+}++.frame {+ position: relative;+ border-radius: 10px;+ border: 1px solid var(--os-border);+ background: var(--os-surface-2);+ box-shadow: var(--os-elev-card);+ overflow: hidden;+}++.still {+ display: block;+ width: 100%;+ height: auto;+}++/* The poster is the clip's literal first frame, so the crossfade has nothing to+ cross — it exists only to hide the one frame where the element is decoded but+ not yet painted. */+.clip {+ position: absolute;+ inset: 0;+ width: 100%;+ height: 100%;+ object-fit: cover;+ opacity: 0;+ transition: opacity 0.18s ease;+}++.clipReady {+ opacity: 1;+}++.caption {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ margin-top: 10px;+ font-family: var(--ifm-font-family-monospace);+ font-size: 11px;+ color: var(--os-muted);+}++.captionText {+ min-width: 0;+}++.replay {+ flex: none;+ padding: 4px 11px;+ border-radius: 8px;+ border: 1px solid var(--os-border);+ background: var(--os-surface-2);+ color: var(--os-fg-2);+ font: inherit;+ cursor: pointer;+ transition: border-color 0.15s ease, color 0.15s ease;+}++span.replay {+ cursor: default;+}++.replay:hover {+ border-color: var(--os-border-hi);+ color: var(--os-fg-emphasis);+}++/* Progress, without requestVideoFrameCallback — which goes quiet whenever the+ element is not being composited, i.e. exactly when you would want to trust it. */+.rail {+ display: block;+ height: 2px;+ margin-top: 8px;+ border-radius: 2px;+ background: var(--os-border-soft);+ overflow: hidden;+}++.railFill {+ display: block;+ height: 100%;+ background: var(--os-accent);+ transform: scaleX(0);+ transform-origin: left center;+}++.railRunning {+ animation-name: sweep;+ animation-timing-function: linear;+ animation-fill-mode: forwards;+}++.railDone {+ transform: scaleX(1);+}++@keyframes sweep {+ from {+ transform: scaleX(0);+ }+ to {+ transform: scaleX(1);+ }+}++/* ---- entry motion ----+ Fourteen lines, no JavaScript, transform and opacity only — the two+ properties Chromium runs off the main thread.++ The nesting is load-bearing, not defensive. Because the `opacity: 0` start+ state only exists inside `prefers-reduced-motion: no-preference` and inside+ `@supports`, an engine without scroll-driven animations and a reader who has+ asked for stillness never see it at all. The usual bug in this pattern —+ `animation: none` under reduce, leaving the content stranded at opacity 0 —+ is designed out rather than patched. */++@media (prefers-reduced-motion: no-preference) {+ @supports (animation-timeline: view()) {+ .band {+ view-timeline-name: --band;+ }++ .copy,+ .figure {+ animation-name: rise;+ animation-timing-function: linear;+ animation-fill-mode: both;+ animation-timeline: --band;+ }++ .copy {+ animation-range: entry 8% cover 26%;+ }++ .figure {+ animation-range: entry 14% cover 32%;+ }+ }+}++@keyframes rise {+ from {+ opacity: 0;+ transform: translateY(8px);+ }+ to {+ opacity: 1;+ transform: none;+ }+}++/* ---- narrow ---- */++@media (max-width: 900px) {+ .split {+ grid-template-columns: 1fr;+ gap: 24px;+ }++ .flip {+ grid-template-columns: 1fr;+ }++ .flip .copy,+ .flip .figure {+ grid-column: 1;+ grid-row: auto;+ }++ .band + .band {+ margin-top: 64px;+ }++ .head {+ margin-bottom: 48px;+ }+}++@media (max-width: 600px) {+ .plateSection {+ padding: 32px 16px 64px;+ }++ .walkthrough {+ padding: 0 20px 72px;+ }++ .statement {+ padding: 24px;+ }++ .caption {+ flex-wrap: wrap;+ gap: 8px;+ }+}++@media print {+ .toggle,+ .chapters,+ .replay,+ .rail,+ .clip {+ display: none !important;+ }++ .band {+ break-inside: avoid;+ }++ .plate,+ .frame {+ box-shadow: none;+ }+}diff --git a/website/src/components/Walkthrough/useBandPlayback.ts b/website/src/components/Walkthrough/useBandPlayback.tsnew file mode 100644index 000000000..e57c60a84--- /dev/null+++ b/website/src/components/Walkthrough/useBandPlayback.ts@@ -0,0 +1,191 @@+import { useCallback, useEffect, useRef, useState } from "react";++import useIsBrowser from "@docusaurus/useIsBrowser";++/**+ * One video element on the page, ever.+ *+ * Not a stylistic choice: two H.264 elements decoding at once measured+ * 120.9 -> 30.8 fps on Apple Silicon with hardware decode, which is the best+ * case any visitor gets. So instead of mounting a <video> per band and pausing+ * the ones offscreen, exactly one band at a time owns the element, and the+ * others are their own poster. `content-visibility` is not a lever here — a+ * video 8,000px offscreen under `content-visibility: auto` decoded at full+ * speed in testing, the same as the onscreen one.+ *+ * A band that has finished keeps showing its *last* frame rather than reverting+ * to its first, so scrolling back up shows outcomes: captions rendered, the file+ * saved. That is also exactly what a reduced-motion reader is shown from the+ * start, which is why the reduced experience is a designed one rather than a+ * page with the motion subtracted.+ */++const DWELL_MS = 400; // a fast scroll to the footer must not request five clips+const VISIBLE = 0.55;++export type BandPlayback = {+ /** The band that currently owns the single <video>, if any. */+ activeId: string | null;+ /** Bands that have played to the end, and now show their result frame. */+ playedIds: ReadonlySet<string>;+ /** Whether clips start on their own when scrolled to. */+ autoplay: boolean;+ setAutoplay: (on: boolean) => void;+ /** True once the browser has taken over — controls stay inert before that. */+ hydrated: boolean;+ /** True where motion is unwelcome: reduced motion, or a metered connection. */+ quiet: boolean;+ /** Narrow viewport, so the small renditions are the ones to load. */+ small: boolean;+ registerBand: (id: string) => (node: HTMLElement | null) => void;+ play: (id: string) => void;+ markPlayed: (id: string) => void;+ /** Set by a band whose play() was refused, so its control can stop lying. */+ markRefused: (id: string) => void;+ refusedIds: ReadonlySet<string>;+};++export function useBandPlayback(): BandPlayback {+ const hydrated = useIsBrowser();+ const [activeId, setActiveId] = useState<string | null>(null);+ const [playedIds, setPlayedIds] = useState<ReadonlySet<string>>(new Set());+ const [refusedIds, setRefusedIds] = useState<ReadonlySet<string>>(new Set());+ const [autoplay, setAutoplay] = useState(true);+ const [quiet, setQuiet] = useState(false);+ const [small, setSmall] = useState(false);++ const nodes = useRef(new Map<string, HTMLElement>());+ const timers = useRef(new Map<string, ReturnType<typeof setTimeout>>());+ // Read inside the observer callback, which is created once.+ const state = useRef({ autoplay, quiet });+ state.current = { autoplay, quiet };++ useEffect(() => {+ if (!hydrated) return;++ const motion = window.matchMedia("(prefers-reduced-motion: reduce)");+ const narrow = window.matchMedia("(max-width: 780px)");++ // `prefers-reduced-data` has no implementation to speak of and GitHub Pages+ // is static, so it cannot vary a response on the Save-Data header either.+ // This client-side probe is the only signal that exists; where it is absent+ // the default path is already the light one.+ const conn = (+ navigator as Navigator & {+ connection?: { saveData?: boolean; effectiveType?: string };+ }+ ).connection;+ const thin = conn?.saveData === true || /^(slow-)?2g$/.test(conn?.effectiveType ?? "");++ const sync = () => {+ const q = motion.matches || thin;+ setQuiet(q);+ setAutoplay(!q);+ setSmall(narrow.matches);+ };+ sync();++ motion.addEventListener("change", sync);+ narrow.addEventListener("change", sync);+ return () => {+ motion.removeEventListener("change", sync);+ narrow.removeEventListener("change", sync);+ };+ }, [hydrated]);++ useEffect(() => {+ if (!hydrated) return;+ if (typeof IntersectionObserver === "undefined") return;++ const clearTimer = (id: string) => {+ const t = timers.current.get(id);+ if (t) {+ clearTimeout(t);+ timers.current.delete(id);+ }+ };++ const observer = new IntersectionObserver(+ (entries) => {+ for (const entry of entries) {+ const id = (entry.target as HTMLElement).dataset.bandId;+ if (!id) continue;+ if (!entry.isIntersecting) {+ clearTimer(id);+ continue;+ }+ if (!state.current.autoplay || state.current.quiet) continue;+ if (timers.current.has(id)) continue;+ timers.current.set(+ id,+ setTimeout(() => {+ timers.current.delete(id);+ setActiveId((current) => (current === id ? current : id));+ }, DWELL_MS),+ );+ }+ },+ { threshold: VISIBLE },+ );++ for (const node of nodes.current.values()) observer.observe(node);+ const timersAtCleanup = timers.current;+ return () => {+ observer.disconnect();+ for (const t of timersAtCleanup.values()) clearTimeout(t);+ timersAtCleanup.clear();+ };+ }, [hydrated]);++ // One ref callback per band id, cached. Returning a fresh closure each render+ // makes React detach and re-attach every ref on every render, which empties+ // and refills the map the observer was set up from.+ const refCallbacks = useRef(new Map<string, (node: HTMLElement | null) => void>());+ const registerBand = useCallback((id: string) => {+ let cb = refCallbacks.current.get(id);+ if (!cb) {+ cb = (node: HTMLElement | null) => {+ if (node) nodes.current.set(id, node);+ else nodes.current.delete(id);+ };+ refCallbacks.current.set(id, cb);+ }+ return cb;+ }, []);++ const play = useCallback((id: string) => setActiveId(id), []);++ const markPlayed = useCallback((id: string) => {+ setPlayedIds((prev) => {+ if (prev.has(id)) return prev;+ const next = new Set(prev);+ next.add(id);+ return next;+ });+ }, []);++ const markRefused = useCallback((id: string) => {+ setActiveId((current) => (current === id ? null : current));+ setRefusedIds((prev) => {+ if (prev.has(id)) return prev;+ const next = new Set(prev);+ next.add(id);+ return next;+ });+ }, []);++ return {+ activeId,+ playedIds,+ autoplay,+ setAutoplay,+ hydrated,+ quiet,+ small,+ registerBand,+ play,+ markPlayed,+ markRefused,+ refusedIds,+ };+}diff --git a/website/src/css/custom.css b/website/src/css/custom.cssindex 9ef07b8f4..26d0e33b4 100644--- a/website/src/css/custom.css+++ b/website/src/css/custom.css@@ -57,12 +57,17 @@--os-fg: #3a3f47;--os-muted: #6b7280;--os-meta: #98a0aa;- --os-accent: #0d9668;- --os-brand-lo: #0b7f59;- --os-accent-soft: rgba(13, 150, 104, 0.11);- --os-accent-wash: rgba(13, 150, 104, 0.06);- --os-accent-border: rgba(13, 150, 104, 0.25);- --os-accent-ring: rgba(13, 150, 104, 0.28);+ /* Darkened from #0d9668. The design system's light accent measures 3.63:1 on+ --os-bg, and it is used for inline 12.5px text (`xattr`, `sudo` in the+ install panes) and as the fill behind white on both Download buttons —+ both Level AA failures at that ratio. #0a7d57 measures 4.96:1 on the page+ and 5.14:1 under white, at the same hue. */+ --os-accent: #0a7d57;+ --os-brand-lo: #086b4a;+ --os-accent-soft: rgba(10, 125, 87, 0.11);+ --os-accent-wash: rgba(10, 125, 87, 0.06);+ --os-accent-border: rgba(10, 125, 87, 0.25);+ --os-accent-ring: rgba(10, 125, 87, 0.28);--os-danger: #dc2626;--os-danger-soft: rgba(220, 38, 38, 0.11);--os-annotation: #b45309;@@ -143,6 +148,40 @@ body {background: var(--os-bg);}+/* ---- focus and scrolling ----+ The site shipped no authored focus style at all: Infima defines `:focus` only+ for `.close`, so every link, button and in-page anchor fell back to whatever+ the engine draws — which on the dark theme is a thin blue ring nobody can see+ against #080a0d. `:focus` is repeated because `:focus-visible` is Safari 15.4,+ and the two rules are separate so an engine that fails to parse the second+ still applies the first. */++:root {+ /* Nothing compensated for the 60px sticky navbar, so every anchor jump on+ the site parked its target underneath the bar. */+ scroll-padding-top: 76px;+}++@media (prefers-reduced-motion: no-preference) {+ html {+ scroll-behavior: smooth;+ }+}++:focus {+ outline: 2px solid var(--os-accent);+ outline-offset: 2px;+}++:focus:not(:focus-visible) {+ outline: none;+}++:focus-visible {+ outline: 2px solid var(--os-accent);+ outline-offset: 2px;+}+/* ---- navbar ----Matches "OpenScreen Docs Site.dc.html" header 1:1: 60px height,28px side padding, 18px item gap, divider after the brand lockup,diff --git a/website/src/lib/structured-data.ts b/website/src/lib/structured-data.tsindex 61d71aca5..f7a19508b 100644--- a/website/src/lib/structured-data.ts+++ b/website/src/lib/structured-data.ts@@ -34,6 +34,12 @@ const SOFTWARE_APPLICATION_LD = {downloadUrl: `${SITE_URL}/download/`,installUrl: "https://github.com/getopenscreen/openscreen/releases",softwareHelp: `${SITE_URL}/docs/intro/`,+ // The establishing plate on the landing page — one real frame of the running+ // editor. Deliberately no VideoObject alongside it: the walkthrough's clips+ // are silent five-second fragments with no standalone playback page, which is+ // not what that rich result describes, and declaring a video the page never+ // presents as one is a manual-action risk.+ screenshot: `${SITE_URL}/img/walkthrough/editor-1560.jpg`,license: "https://github.com/getopenscreen/openscreen/blob/main/LICENSE",isAccessibleForFree: true,// `offers` at price 0 is what lets a result carry a "Free" annotation;diff --git a/website/src/pages/index.module.css b/website/src/pages/index.module.cssindex 3e767c3be..700e4e5a2 100644--- a/website/src/pages/index.module.css+++ b/website/src/pages/index.module.css@@ -1,7 +1,7 @@-/* Marketing landing page — always dark, styled after the OpenScreen Design System hero. */+/* Marketing landing page. Both themes — every colour here is an --os-* token,+ which swaps under [data-theme="light"]; nothing may be a literal. */.hero,-.visualSection,.features,.quickStart {background: var(--os-bg);@@ -85,15 +85,20 @@transition: transform 0.15s ease, box-shadow 0.15s ease;}+/* The glow is derived from the accent rather than written as a literal: the old+ rgba(16,185,129,.25) was the *dark* accent, and it shipped unchanged into the+ light theme. Foreground is --os-bg, not #fff — white on the light-theme accent+ measures 3.76:1, which is a Level AA failure on the page's main call to+ action. Against --os-bg the same button is above 7:1 in both themes. */.primaryCta {background: var(--os-accent);- color: #fff;- box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);+ color: var(--os-bg);+ box-shadow: 0 8px 24px var(--os-accent-ring);}.primaryCta:hover {transform: translateY(-2px);- color: #fff;+ color: var(--os-bg);}.secondaryCta {@@ -108,362 +113,21 @@color: var(--os-fg-2);}+/* --os-meta is a 3.06:1 grey in dark and 2.55:1 in light; at 12.5px that is a+ 1.4.3 failure, and this paragraph is the one that says the app is not+ production-grade — the last sentence on the page that should be hard to read. */.note {margin: 22px auto 0;max-width: 460px;font-size: 12.5px;- color: var(--os-meta);- line-height: 1.5;-}--.note strong {color: var(--os-muted);-}--/* ---- product visual ---- */--.visualSection {- padding: 48px 28px 100px;- display: flex;- justify-content: center;-}--.visual {- width: 100%;- max-width: 1040px;- border-radius: 16px;- background: var(--os-surface-1);- border: 1px solid var(--os-border);- box-shadow: var(--os-elev-pop);- overflow: hidden;-}--.visualTopbar {- display: flex;- align-items: center;- gap: 0.75rem;- height: 44px;- padding: 0 1rem;- border-bottom: 1px solid var(--os-border-soft);- background: var(--os-surface);-}--.dots {- display: flex;- gap: 6px;-}--.dot {- width: 9px;- height: 9px;- border-radius: 50%;- background: var(--os-surface-3);-}--.divider {- width: 1px;- height: 16px;- background: var(--os-border);-}--.segmented {- display: flex;- gap: 2px;- padding: 2px;- border-radius: 8px;- background: var(--os-surface-2);- font-size: 11px;- color: var(--os-muted);-}--.segmented span {- padding: 3px 10px;- border-radius: 6px;-}--.segmentedActive {- background: var(--os-surface-hi, var(--os-surface-3));- color: var(--os-fg-emphasis);-}--.savedIndicator {- margin-left: auto;- display: inline-flex;- align-items: center;- gap: 6px;- font-family: var(--ifm-font-family-monospace);- font-size: 10.5px;- color: var(--os-muted);-}--.savedDot {- width: 6px;- height: 6px;- border-radius: 50%;- background: var(--os-accent);- box-shadow: 0 0 0 3px var(--os-accent-soft);-}--.visualBody {- display: grid;- grid-template-columns: 260px 1fr;- min-height: 340px;-}--/* Stacked, the mock has to read top-down: the editor is the product and the- agent panel is the sub-plot, so the stage goes first and the panel's right- border becomes the rule between them. Ordered in CSS rather than in the- markup so the desktop grid keeps its natural sidebar-then-stage source order. */-@media (max-width: 780px) {- .visualBody {- grid-template-columns: 1fr;- min-height: 0;- }-- .stage {- order: 1;- }-- .agentPanel {- order: 2;- border-right: none;- border-top: 1px solid var(--os-border);- }-}--.agentPanel {- border-right: 1px solid var(--os-border);- background: var(--os-surface);- padding: 16px 16px 14px;- display: flex;- flex-direction: column;- gap: 14px;-}--.agentHeader {- display: flex;- align-items: center;- gap: 8px;- font-size: 12.5px;- font-weight: 600;- color: var(--os-fg-emphasis);-}--.contextBadge {- font-size: 10.5px;- font-weight: 500;- color: var(--os-muted);- padding: 2px 7px;- border-radius: 999px;- background: var(--os-surface-2);-}--.chatBubbleUser,-.chatBubbleAssistant {- border-radius: 11px;- padding: 9px 11px;- font-size: 12.5px;line-height: 1.5;}-.chatBubbleUser {- background: var(--os-surface-2);- color: var(--os-fg-2);-}--.chatBubbleAssistant {- background: var(--os-accent-wash);- border: 1px solid var(--os-accent-border);- color: var(--os-fg-2);-}--.chatMeta {- font-size: 10px;- color: var(--os-muted);- margin-bottom: 3px;-}--.chipRow {- margin-top: auto;- display: flex;- gap: 6px;- flex-wrap: wrap;-}--.chip {- padding: 5px 10px;- border-radius: 999px;- background: var(--os-surface-2);- border: 1px solid var(--os-border);- font-size: 11.5px;+.note strong {color: var(--os-fg-2);}-.stage {- display: flex;- flex-direction: column;- min-width: 0;-}--.stageFrame {- flex: 1;- position: relative;- background: radial-gradient(ellipse 68% 60% at 50% 38%, var(--os-surface-2) 0%, var(--os-bg) 70%);- display: flex;- align-items: center;- justify-content: center;- padding: 28px;- min-height: 220px;-}--.stagePreview {- position: relative;- width: 100%;- max-width: 420px;- aspect-ratio: 16 / 9;- border-radius: 12px;- background: radial-gradient(ellipse at 50% 34%, #e6e8ea 0%, #b7bbc2 34%, #676d78 68%, #14161c 100%);- box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.7);-}--.timeBadge {- position: absolute;- top: 10px;- left: 10px;- padding: 3px 7px;- border-radius: 7px;- background: rgba(8, 10, 13, 0.5);- color: #fff;- font-family: var(--ifm-font-family-monospace);- font-size: 10px;-}--.transport {- position: absolute;- left: 50%;- bottom: 14px;- transform: translateX(-50%);- display: inline-flex;- align-items: center;- gap: 8px;- padding: 7px 10px;- border-radius: 13px;- background: var(--os-surface-1);- border: 1px solid var(--os-border);- box-shadow: var(--os-elev-card);- color: var(--os-muted);-}--.playButton {- width: 30px;- height: 30px;- display: grid;- place-items: center;- border-radius: 10px;- background: var(--os-accent);- color: #fff;-}--/* nowrap: the transport floats over the preview, and a wrapped timecode- doubles its height into a slab covering half the frame on a phone. */-.transportTime {- font-family: var(--ifm-font-family-monospace);- font-size: 11px;- color: var(--os-fg);- margin-left: 4px;- white-space: nowrap;-}--.meta {- color: var(--os-meta);-}--.muted {- color: var(--os-muted);-}--.timeline {- border-top: 1px solid var(--os-border);- background: var(--os-surface);- padding: 12px 16px 14px;-}--.timelineRuler {- display: flex;- justify-content: space-between;- margin-bottom: 6px;- font-family: var(--ifm-font-family-monospace);- font-size: 9.5px;- color: var(--os-meta);-}--.timelineTrack {- position: relative;- height: 20px;- margin-bottom: 5px;- border-radius: 6px;- background: var(--os-surface-1);-}--.pill {- position: absolute;- top: 1px;- bottom: 1px;- display: flex;- align-items: center;- justify-content: center;- border-radius: 5px;- font-family: var(--ifm-font-family-monospace);- font-size: 9.5px;- font-weight: 600;- white-space: nowrap;- padding: 0 6px;-}--.pillAccent {- background: var(--os-accent-soft);- color: var(--os-accent);- border: 1px solid var(--os-accent-border);-}--.pillAnnotation {- background: var(--os-annotation-wash);- color: var(--os-annotation);- border: 1px solid rgba(251, 191, 36, 0.3);-}--.pillDanger {- background: var(--os-danger-soft);- color: var(--os-danger);- border: 1px solid rgba(248, 113, 113, 0.3);-}--.pillSpeed {- background: var(--os-speed-wash);- color: var(--os-speed);- border: 1px solid rgba(251, 146, 60, 0.3);-}--.clipRow {- display: flex;- gap: 6px;- height: 40px;-}--.clipActive {- flex: 1;- border-radius: 9px;- border: 1.5px solid var(--os-accent);- background: var(--os-surface-1);-}--.clip {- flex: 1;- border-radius: 9px;- border: 1px solid var(--os-border);- background: var(--os-surface-1);-}-/* ---- shared section chrome ---- */.sectionKicker {@@ -487,7 +151,11 @@font-size: clamp(24px, 2.6vw, 28px);}-/* ---- features / bento ---- */+/* ---- coda ----+ Three claims that are not events: a licence, an absence of network traffic, a+ list of platforms. Everything that *is* an event — the editor, the captions,+ the agent — is demonstrated in the walkthrough above with real footage, so it+ is not repeated here as an illustrated card. */.features {padding: 0 28px 96px;@@ -502,11 +170,7 @@.bento {margin-top: 2.5rem;display: grid;- grid-template-columns: repeat(6, 1fr);- grid-template-areas:- "large large large large ai ai"- "large large large large native native"- "free free captions captions captions captions";+ grid-template-columns: repeat(3, 1fr);gap: 0.875rem;text-align: left;}@@ -514,15 +178,13 @@@media (max-width: 900px) {.bento {grid-template-columns: 1fr;- grid-template-areas: none;- }-- .card {- grid-area: auto !important;}}.card {+ display: flex;+ flex-direction: column;+ gap: 12px;border-radius: 14px;border: 1px solid var(--os-border);background: var(--os-surface-1);@@ -545,136 +207,6 @@color: var(--os-fg-2);}-.bentoLarge {- grid-area: large;- display: flex;- flex-direction: column;- gap: 16px;- padding: 26px;-}--.bentoLarge h3 {- font-size: 16px;-}--.bentoLarge p {- font-size: 13.5px;- max-width: 480px;-}--.miniTimeline {- flex: 1;- min-height: 64px;- display: flex;- flex-direction: column;- justify-content: center;- gap: 10px;-}--.miniClipsRow {- display: flex;- gap: 3px;- height: 40px;-}--.miniClip {- position: relative;- min-width: 0;- border-radius: 10px;- border: 1.5px solid var(--os-border);- background: var(--os-surface-1);- overflow: hidden;- box-shadow: inset 0 1px 6px rgba(255, 255, 255, 0.06);-}--.miniWaveform {- position: absolute;- inset: 0;- display: flex;- align-items: center;- justify-content: space-between;- gap: 1.5px;- padding: 0 7px;-}--.miniWaveform span {- flex: 1 1 0;- min-width: 1px;- max-width: 2.5px;- background: var(--os-accent);- opacity: 0.7;- border-radius: 2px;-}--.miniTrack {- position: relative;- height: 22px;- border-radius: 7px;- background: var(--os-surface-2);-}--.miniRegion {- position: absolute;- top: 3px;- bottom: 3px;- border-radius: 4px;-}--.cardHeader {- display: flex;- align-items: center;- gap: 10px;-}--.cardHeader h3 {- margin: 0;-}--.cardPills {- display: flex;- gap: 6px;- margin-top: auto;-}--.pillStatic {- padding: 3px 9px;- border-radius: 999px;- font-size: 11px;- font-weight: 600;-}--.bentoAi {- grid-area: ai;- display: flex;- flex-direction: column;- gap: 12px;-}--.bentoNative {- grid-area: native;- display: flex;- flex-direction: column;- gap: 12px;-}--.bentoFree {- grid-area: free;- display: flex;- flex-direction: column;- gap: 12px;-}--.bentoCaptions {- grid-area: captions;- display: flex;- align-items: center;- gap: 16px;-}--.bentoCaptions h3 {- margin: 0 0 4px;-}-.iconBadge {width: 34px;height: 34px;@@ -700,9 +232,8 @@text-align: center;}-/* Same three-column rhythm as .platformStripInner below, so the two sections- line up. Grid items stretch, which is what keeps the three panes equal- height even though only two of them carry a command. */+/* Grid items stretch, which is what keeps the three panes equal height even+ though only two of them carry a command. */.installGrid {margin-top: 26px;display: grid;@@ -724,7 +255,7 @@border: 1px solid var(--os-border-soft);font-family: var(--ifm-font-family-monospace);font-size: 10.5px;- color: var(--os-meta);+ color: var(--os-muted);}/* Windows has no command to run. Styling the line as prose rather than as@@ -771,8 +302,12 @@white-space: pre-wrap;}-/* Second half of each pane: what the platform actually gives you. Was its own- three-card strip below; folded in here so the page has one row, not two. */+/* Colours the `#` comment lines inside the three install panes. */+.meta {+ color: var(--os-muted);+}++/* Second half of each pane: what the platform actually gives you. */.paneFoot {margin: 0;padding: 0.875rem 1rem;@@ -789,7 +324,7 @@.quickStartNote {margin: 22px 0 0;font-size: 12.5px;- color: var(--os-meta);+ color: var(--os-muted);}.quickStartNote a {@@ -807,19 +342,13 @@}/* ---- phone ----- The 28px section gutter is a third of the width of a small phone; every- inner padding here is scaled to give the mock and the cards room to breathe- rather than to change their design. */+ The 28px section gutter is a third of the width of a small phone. */@media (max-width: 600px) {.hero {padding: 64px 20px 0;}- .visualSection {- padding: 32px 16px 72px;- }-.features {padding: 0 20px 72px;}@@ -827,31 +356,4 @@.quickStart {padding: 0 20px 76px;}-- .agentPanel {- padding: 14px;- gap: 12px;- }-- .stageFrame {- padding: 16px;- min-height: 0;- }-- .transport {- gap: 6px;- bottom: 10px;- padding: 6px 8px;- }-- .timeline {- padding: 10px 12px 12px;- }-- /* The icon is centred against a three-line paragraph on desktop; on a phone- the same text runs to seven lines and leaves the badge stranded mid-card. */- .bentoCaptions {- align-items: flex-start;- }}-diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsxindex e7109c5d9..46e6516ce 100644--- a/website/src/pages/index.tsx+++ b/website/src/pages/index.tsx@@ -2,30 +2,12 @@ import Head from "@docusaurus/Head";import Link from "@docusaurus/Link";import Heading from "@theme/Heading";import Layout from "@theme/Layout";-import {- Apple,- AppWindow,- Captions,- Cpu,- Download,- HeartHandshake,- Monitor,- Pause,- Scissors,- SkipBack,- SkipForward,- TerminalSquare,-} from "lucide-react";+import { Apple, AppWindow, Cpu, Download, HeartHandshake, Monitor, TerminalSquare } from "lucide-react";+import Walkthrough from "../components/Walkthrough";import { jsonLd, softwareApplicationLd } from "../lib/structured-data";import styles from "./index.module.css";-// Static decorative waveform bars for the "multi-track editor" bento card —-// mirrors the real editor's per-clip waveform rendering (thin accent bars-// of varying height inside a rounded, bordered clip block).-const MINI_WAVEFORM_A = [30, 55, 80, 45, 65, 90, 50, 35, 70, 60, 40, 75, 55, 30];-const MINI_WAVEFORM_B = [45, 65, 35, 85, 55, 40, 70, 90, 50, 30, 60, 75, 45, 65, 35, 55];-export default function Home() {return (<Layout@@ -67,209 +49,53 @@ export default function Home() {</div></header>- <section className={styles.visualSection}>- <div className={styles.visual}>- <div className={styles.visualTopbar}>- <span className={styles.dots}>- <span className={styles.dot} />- <span className={styles.dot} />- <span className={styles.dot} />- </span>- <span className={styles.divider} />- <span className={styles.segmented}>- <span>Media</span>- <span className={styles.segmentedActive}>Edit</span>- <span>Rec</span>- </span>- <span className={styles.savedIndicator}>- <span className={styles.savedDot} />- Saved- </span>- </div>-- <div className={styles.visualBody}>- <aside className={styles.agentPanel}>- <div className={styles.agentHeader}>- <span>OpenScreen Agent</span>- <span className={styles.contextBadge}>0% context</span>- </div>- <div className={styles.chatBubbleUser}>- Clean up the intro — there's dead air while I read my notes.- </div>- <div className={styles.chatBubbleAssistant}>- <div className={styles.chatMeta}>OpenScreen · 10:41</div>- On it — scanning track 1 for silences now. I'll flag anything over 600ms.- </div>- <div className={styles.chipRow}>- <span className={styles.chip}>Remove silences</span>- <span className={styles.chip}>Add captions</span>- </div>- </aside>-- <div className={styles.stage}>- <div className={styles.stageFrame}>- <div className={styles.stagePreview}>- <span className={styles.timeBadge}>00:00:12.4</span>- </div>- <div className={styles.transport}>- <SkipBack size={13} />- <span className={styles.playButton}>- <Pause size={13} />- </span>- <SkipForward size={13} />- <span className={styles.transportTime}>- 0:12.4<span className={styles.meta}> / </span>- <span className={styles.muted}>7:03.6</span>- </span>- </div>- </div>- <div className={styles.timeline}>- <div className={styles.timelineRuler}>- <span>0:00</span>- <span>1:00</span>- <span>2:00</span>- </div>- <div className={styles.timelineTrack}>- <span- className={`${styles.pill} ${styles.pillAccent}`}- style={{ left: "12%", width: "9%" }}- >- 1.8×- </span>- <span- className={`${styles.pill} ${styles.pillAnnotation}`}- style={{ left: "55%", width: "10%" }}- >- Note- </span>- </div>- <div className={styles.timelineTrack}>- <span- className={`${styles.pill} ${styles.pillDanger}`}- style={{ left: "30%", width: "14%" }}- >- 0:12.0- </span>- </div>- <div className={styles.clipRow}>- <div className={styles.clipActive} />- <div className={styles.clip} />- </div>- </div>- </div>- </div>- </div>- </section>+ <Walkthrough /><section className={styles.features}><div className={styles.featuresInner}>- <div className={styles.sectionKicker}>Why OpenScreen</div>+ <div className={styles.sectionKicker}>Also true</div><Heading as="h2" className={styles.sectionTitle}>- Recorder-first. AI, if you want it.+ Three things a clip can't show.</Heading><div className={styles.bento}>- <article className={`${styles.card} ${styles.bentoLarge}`}>- <div className={styles.cardHeader}>- <span className={styles.iconBadge}>- <Scissors size={17} />- </span>- <h3>A real multi-track editor</h3>- </div>- <p>- Trim, split, and layer clips on a proper timeline. Captions, cursor smoothing,- zooms, and webcam picture-in-picture.- </p>- <div className={styles.miniTimeline}>- <div className={styles.miniClipsRow}>- <div className={styles.miniClip} style={{ flex: 5 }}>- <div className={styles.miniWaveform}>- {MINI_WAVEFORM_A.map((h, i) => (- <span key={i} style={{ height: `${h}%` }} />- ))}- </div>- </div>- <div className={styles.miniClip} style={{ flex: 6 }}>- <div className={styles.miniWaveform}>- {MINI_WAVEFORM_B.map((h, i) => (- <span key={i} style={{ height: `${h}%` }} />- ))}- </div>- </div>- </div>- <div className={styles.miniTrack}>- <span- className={`${styles.miniRegion} ${styles.pillAccent}`}- style={{ left: "10%", width: "16%" }}- />- <span- className={`${styles.miniRegion} ${styles.pillSpeed}`}- style={{ left: "32%", width: "12%" }}- />- <span- className={`${styles.miniRegion} ${styles.pillAnnotation}`}- style={{ left: "58%", width: "20%" }}- />- </div>- </div>- <div className={styles.cardPills}>- <span className={`${styles.pillStatic} ${styles.pillAccent}`}>Zoom</span>- <span className={`${styles.pillStatic} ${styles.pillSpeed}`}>1.5×</span>- <span className={`${styles.pillStatic} ${styles.pillAnnotation}`}>Caption</span>- </div>- </article>-- <article className={`${styles.card} ${styles.bentoAi}`}>+ <article className={styles.card}><span className={styles.iconBadge}>- <Cpu size={17} />+ <HeartHandshake size={17} /></span>- <h3>AI, opt-in</h3>+ <h3>MIT, free forever</h3><p>- Whisper runs locally for captions — no upload, no cloud. Chat-based editing with- your own LLM key is there if you want it, off unless you connect a provider.+ No paywalls, no premium tier, no usage caps. Every feature ships free for personal+ and commercial use.</p></article>- <article className={`${styles.card} ${styles.bentoNative}`}>+ <article className={styles.card}><span className={styles.iconBadge}>- <Monitor size={17} />+ <Cpu size={17} /></span>- <h3>Native capture</h3>+ <h3>Nothing is uploaded</h3><p>- ScreenCaptureKit on macOS, Windows Graphics Capture on Windows. No Electron- screen-grab hacks.+ Recording, transcription and rendering all happen on your machine. The chat panel is+ the only part that talks to a network, and only with a key you supply.</p></article>- <article className={`${styles.card} ${styles.bentoFree}`}>+ <article className={styles.card}><span className={styles.iconBadge}>- <HeartHandshake size={17} />+ <Monitor size={17} /></span>- <h3>MIT, free forever</h3>+ <h3>Windows, macOS, Linux</h3><p>- No paywalls, no premium tier, no usage caps. Every feature ships free for personal- and commercial use.+ One source tree, native capture on each. A .dmg, an .exe, a .deb, a .rpm, a .pacman,+ an AppImage and a Nix flake.</p></article>-- <article className={`${styles.card} ${styles.bentoCaptions}`}>- <span className={styles.iconBadge}>- <Captions size={17} />- </span>- <div>- <h3>Captions in 13 languages, on-device</h3>- <p>- Automatic transcription with local Whisper — no upload, works offline. Arabic,- English, Spanish, French, Italian, Japanese, Korean, Portuguese, Russian, Turkish,- Vietnamese, and both Chinese scripts.- </p>- </div>- </article></div></div></section>- <section className={styles.quickStart}>+ <section className={styles.quickStart} id="download-install"><div className={styles.quickStartInner}><div className={styles.sectionKicker}>Quick start</div><Heading as="h2" className={styles.sectionTitleSm}>diff --git a/website/static/img/walkthrough/02-timeline-a.jpg b/website/static/img/walkthrough/02-timeline-a.jpgnew file mode 100644index 000000000..384217916Binary files /dev/null and b/website/static/img/walkthrough/02-timeline-a.jpg differdiff --git a/website/static/img/walkthrough/02-timeline-sm-a.jpg b/website/static/img/walkthrough/02-timeline-sm-a.jpgnew file mode 100644index 000000000..a37578392Binary files /dev/null and b/website/static/img/walkthrough/02-timeline-sm-a.jpg differdiff --git a/website/static/img/walkthrough/03-captions-a.jpg b/website/static/img/walkthrough/03-captions-a.jpgnew file mode 100644index 000000000..aeda00310Binary files /dev/null and b/website/static/img/walkthrough/03-captions-a.jpg differdiff --git a/website/static/img/walkthrough/03-captions-sm-a.jpg b/website/static/img/walkthrough/03-captions-sm-a.jpgnew file mode 100644index 000000000..0faac0e8eBinary files /dev/null and b/website/static/img/walkthrough/03-captions-sm-a.jpg differdiff --git a/website/static/img/walkthrough/04-agent-a.jpg b/website/static/img/walkthrough/04-agent-a.jpgnew file mode 100644index 000000000..42ce27a5eBinary files /dev/null and b/website/static/img/walkthrough/04-agent-a.jpg differdiff --git a/website/static/img/walkthrough/04-agent-sm-a.jpg b/website/static/img/walkthrough/04-agent-sm-a.jpgnew file mode 100644index 000000000..bf8c833ecBinary files /dev/null and b/website/static/img/walkthrough/04-agent-sm-a.jpg differdiff --git a/website/static/img/walkthrough/05-export-a.jpg b/website/static/img/walkthrough/05-export-a.jpgnew file mode 100644index 000000000..674f6bdf0Binary files /dev/null and b/website/static/img/walkthrough/05-export-a.jpg differdiff --git a/website/static/img/walkthrough/05-export-b.jpg b/website/static/img/walkthrough/05-export-b.jpgnew file mode 100644index 000000000..4d2d49167Binary files /dev/null and b/website/static/img/walkthrough/05-export-b.jpg differdiff --git a/website/static/img/walkthrough/05-export-sm-a.jpg b/website/static/img/walkthrough/05-export-sm-a.jpgnew file mode 100644index 000000000..4f6a390d0Binary files /dev/null and b/website/static/img/walkthrough/05-export-sm-a.jpg differdiff --git a/website/static/img/walkthrough/05-export-sm-b.jpg b/website/static/img/walkthrough/05-export-sm-b.jpgnew file mode 100644index 000000000..5950e2f72Binary files /dev/null and b/website/static/img/walkthrough/05-export-sm-b.jpg differdiff --git a/website/static/img/walkthrough/editor-1040.jpg b/website/static/img/walkthrough/editor-1040.jpgnew file mode 100644index 000000000..3457735a5Binary files /dev/null and b/website/static/img/walkthrough/editor-1040.jpg differdiff --git a/website/static/img/walkthrough/editor-1560.jpg b/website/static/img/walkthrough/editor-1560.jpgnew file mode 100644index 000000000..abd1a7e5aBinary files /dev/null and b/website/static/img/walkthrough/editor-1560.jpg differdiff --git a/website/static/video/05-export-sm.mp4 b/website/static/video/05-export-sm.mp4new file mode 100644index 000000000..16ce1bab8Binary files /dev/null and b/website/static/video/05-export-sm.mp4 differdiff --git a/website/static/video/05-export.mp4 b/website/static/video/05-export.mp4new file mode 100644index 000000000..1cbf484cdBinary files /dev/null and b/website/static/video/05-export.mp4 differ