Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.
TypeScript ai-photo-editorcomfyui-alternativegenerative-fillimage-editingimage-generationinpaintinglinuxlocal-aimacosmcpmcp-servernano-banana-alternativeofflinephoto-editorprivacyqwen-imageqwen-image-2-1stable-diffusion-cppvulkanwindows
video: launch film for 0.10 (new look, Prompt+, Linux)
Gabriele Lozupone3621e15f6a86
diff --git a/marketing/README.md b/marketing/README.mdindex 1ba59ea..c252989 100644--- a/marketing/README.md+++ b/marketing/README.md@@ -16,18 +16,23 @@ the app's store, service API, native bridge and Tauri modules for mocks (`video/each frame's UI comes from a state computed for that frame. Change the app's UI and the videofollows on the next render. Two parts are copies with the same markup and classes, becausetheir state lives inside the component: the paint-area editor (`app/InpaintOverlay.tsx`) and-the before/after slider (`mocks/Compare.tsx`).+the before/after slider (`mocks/Compare.tsx`). The job card's motion (percentage, Prompt+ text,+cocoon, hatching) runs on timers in the app; in the video `mocks/jobMotion.ts` and+`mocks/Cocoon.tsx` drive the same code (`src/components/jobMotion.ts`, `drawCocoon`, `paintHatch`)+from the frame, through `<AppWindow card={…}>`, since Remotion renders frames out of order. CSS+loops follow the frame through `--vt` (`app/theme.css`).```powershellcd marketing/videonpm installnpm run studio # preview and scrub in the browsernpm run render # out/kokon-launch.mp4, 1920×1080, ~85 s, about 5 minutes+npx remotion render KokonLaunch out/kokon-launch-0.10.mp4 # same, to a new file (keep old renders)```-Scenes (`src/scenes`): Intro (the mark assembles) → Hook (wall of before/afters) → Create →-Region (paint, remove, add) → Versions → Montage (six edits, full frame) → Agent (MCP) → Hardware →-Outro. Each scene is also its own composition, so one can be rendered alone, for example+Scenes (`src/scenes`): Intro (the mark assembles) → Hook (wall of before/afters) → Create (a few+words, Prompt+ writes the prompt, the image hatches) → Region (paint, remove, add) → Versions →+Montage (five edits, full frame) → Agent (MCP) → Hardware (Windows, macOS, Linux) → Outro. Each scene is also its own composition, so one can be rendered alone, for example`npx remotion render Montage out/montage.mp4` (the voice and music play only in `KokonLaunch`).`src/app/timeline.ts` is the film's clock: scene lengths, the frame where each voice-over sentence@@ -39,7 +44,8 @@ Sound (`src/app/sound.tsx`, all levels in one table):- **Voice-over**: `public/voice/NN.wav`, one file per line of `audio/voiceover.md`, generatedlocally with [Chatterbox](https://github.com/resemble-ai/chatterbox) (MIT) by`audio/gen_voice.py final`, which also writes `src/app/voice.json` (where each sentence starts- and ends) so sentences can be placed one by one. The music ducks about 8 dB under it.+ and ends) so sentences can be placed one by one. To change single sentences, `gen_voice.py redo`+ and `splice` keep the rest of the approved take (usage at the top of the script). The music ducks about 8 dB under it.- **Music**: `public/music.m4a`, generated locally with [ACE-Step 1.5](https://github.com/ace-step/ACE-Step-1.5)(MIT, output usable commercially) by `audio/gen_music.py`: take `house-4`, 118 BPM, with two barsremoved from its breakdown so the second drop (60.3 s) lands on the Agent scene.@@ -56,8 +62,8 @@ The website uses a lighter copy: `site/assets/kokon.mp4` (CRF 25, ~17 MB; it autthe same for `style.css` in every page that links it). To refresh them after a new render:```powershell-ffmpeg -y -i marketing/video/out/kokon-launch.mp4 -c:v libx264 -preset slow -crf 25 -pix_fmt yuv420p -c:a aac -b:a 128k -movflags +faststart site/assets/kokon.mp4-ffmpeg -y -ss 35.5 -i marketing/video/out/kokon-launch.mp4 -frames:v 1 -q:v 3 site/assets/kokon-poster.jpg+ffmpeg -y -i marketing/video/out/kokon-launch-0.10.mp4 -c:v libx264 -preset slow -crf 25 -pix_fmt yuv420p -c:a aac -b:a 128k -movflags +faststart site/assets/kokon.mp4+ffmpeg -y -ss 38.5 -i marketing/video/out/kokon-launch-0.10.mp4 -frames:v 1 -q:v 3 site/assets/kokon-poster.jpg```## The websitediff --git a/marketing/audio/gen_voice.py b/marketing/audio/gen_voice.pyindex 2fd021e..96672fc 100644--- a/marketing/audio/gen_voice.py+++ b/marketing/audio/gen_voice.py@@ -3,6 +3,15 @@D:/AI/tts/.venv/Scripts/python gen_voice.py [take ...] -> voice/<take>.wavD:/AI/tts/.venv/Scripts/python gen_voice.py --ref me.wav [take ...]D:/AI/tts/.venv/Scripts/python gen_voice.py final -> voice/final/NN.wav (approved take)+ D:/AI/tts/.venv/Scripts/python gen_voice.py redo 3 --keep 0:0,4:2 [--seeds 6]+ -> voice/redo-<stamp>/: takes of line 3's new sentences+ D:/AI/tts/.venv/Scripts/python gen_voice.py splice 3 --keep 0:0,4:2 --pick 1:13,2:22 --from voice/redo-<stamp>+ -> line 3 rebuilt from kept and picked sentences++redo/splice change single sentences of the approved take: `--keep NEW:OLD` reuses old sentence+OLD (cut from voice/final/raw by raw/spans.json) as new sentence NEW; the other sentences of the+line in voiceover.md get takes to audition, and `--pick NEW:SEED` chooses one each (the auditioned file itself). splice backs+voice/final up first and matches the line's loudness to the old file.Each take reads the whole script (voiceover.md, one file per line too, in voice/<take>/NN.wav)so takes can be compared on the same text. Without --ref the model's built-in voice is used;@@ -14,6 +23,7 @@ import jsonimport reimport shutilimport subprocess+import timefrom pathlib import Pathimport numpy as np@@ -166,11 +176,87 @@ def final() -> None:print("copied to video/public/voice, timings in video/src/app/voice.json")+def pairs(arg: str | None) -> dict[int, int]:+ return {int(a): int(b) for a, b in (p.split(":") for p in arg.split(","))} if arg else {}+++def redo(n: int, keep: dict[int, int], seeds: int, take: str, base: int) -> None:+ """Takes of the sentences of line `n` that are not kept, for picking by ear."""+ parts = sentences(script_lines()[n - 1])+ folder = OUT / f"redo-{time.strftime('%Y%m%d-%H%M%S')}"+ folder.mkdir(parents=True)+ for i, text in enumerate(parts):+ if i in keep:+ continue+ for k in range(seeds):+ seed = base + 10 * i + k+ a = say(take, text, None, seed)+ raw = folder / f"{n:02d}-s{i}-seed{seed}.raw.wav"+ sf.write(raw, a, SR)+ master(raw, folder / f"{n:02d}-s{i}-seed{seed}.wav")+ print(f"{n:02d} s{i} seed {seed} {a.size / SR:4.1f} s {text}", flush=True)+ print(f"takes in {folder}")+++def splice(n: int, keep: dict[int, int], pick: dict[int, int], src: Path) -> None:+ """Line `n` rebuilt: kept sentences cut from the approved raw file, picked takes from `src`+ (the raw files redo wrote), 0.4 s between sentences, mastered to the old file's loudness."""+ parts = sentences(script_lines()[n - 1])+ missing = [i for i in range(len(parts)) if i not in keep and i not in pick]+ if missing:+ raise SystemExit(f"no take picked for sentences {missing}")+ folder = OUT / "final"+ spans_file = folder / "raw" / "spans.json"+ spans = json.loads(spans_file.read_text(encoding="utf-8"))+ old_raw, sr = sf.read(folder / "raw" / f"{n:02d}.wav", dtype="float32")+ assert sr == SR+ backup = OUT / f"final-backup-{time.strftime('%Y%m%d-%H%M%S')}"+ shutil.copytree(folder, backup)+ target = lufs(folder / f"{n:02d}.wav")+ chunks, marks, pos = [], [], 0+ for i, text in enumerate(parts):+ if i in keep:+ a, b = spans[str(n)]["sentences"][keep[i]]+ c = old_raw[int(round(a * SR)):int(round(b * SR))]+ else:+ c, sr = sf.read(src / f"{n:02d}-s{i}-seed{pick[i]}.raw.wav", dtype="float32")+ assert sr == SR+ chunks.append(c)+ marks.append([round(pos / SR, 3), round((pos + c.size) / SR, 3)])+ pos += c.size+ if i < len(parts) - 1:+ chunks.append(np.zeros(int(SENTENCE_PAUSE * SR), dtype=np.float32))+ pos += chunks[-1].size+ raw = folder / "raw" / f"{n:02d}.wav"+ sf.write(raw, np.concatenate(chunks), SR)+ spans[str(n)] = {"dur": round(pos / SR, 3), "sentences": marks}+ spans_file.write_text(json.dumps(spans, indent=1) + "\n", encoding="utf-8")+ tmp = folder / f"{n:02d}.tmp.wav"+ master(raw, tmp)+ master(tmp, folder / f"{n:02d}.wav", target - lufs(tmp))+ tmp.unlink()+ shutil.copy(folder / f"{n:02d}.wav", VIDEO / "public" / "voice" / f"{n:02d}.wav")+ vj = VIDEO / "src" / "app" / "voice.json"+ video = json.loads(vj.read_text(encoding="utf-8"))+ video[str(n)] = spans[str(n)]+ vj.write_text(json.dumps(video, indent=1) + "\n", encoding="utf-8")+ print(f"{n:02d} {pos / SR:4.1f} s at {lufs(folder / f'{n:02d}.wav'):.1f} LUFS (was {target:.1f}); backup in {backup}")++if __name__ == "__main__":ap = argparse.ArgumentParser()ap.add_argument("takes", nargs="*", default=list(TAKES))ap.add_argument("--ref", type=Path)ap.add_argument("--seed", type=int, default=11)+ ap.add_argument("--keep", help="redo/splice: NEW:OLD sentence pairs reused from the approved take")+ ap.add_argument("--pick", help="splice: NEW:SEED, the take chosen for each new sentence")+ ap.add_argument("--seeds", type=int, default=6, help="redo: takes per new sentence")+ ap.add_argument("--take", default="expressive")+ ap.add_argument("--from", dest="src", type=Path)a = ap.parse_args()+ if a.takes[:1] == ["redo"]:+ raise SystemExit(redo(int(a.takes[1]), pairs(a.keep), a.seeds, a.take, a.seed))+ if a.takes[:1] == ["splice"]:+ raise SystemExit(splice(int(a.takes[1]), pairs(a.keep), pairs(a.pick), a.src))for t in a.takes:final() if t == "final" else read(t, a.ref, a.seed)diff --git a/marketing/audio/voiceover.md b/marketing/audio/voiceover.mdindex 3d46b63..4bf0ca7 100644--- a/marketing/audio/voiceover.md+++ b/marketing/audio/voiceover.md@@ -1,4 +1,4 @@-# Voiceover script — v2 (approved 2026-10-10)+# Voiceover script — v2 (approved 2026-10-10), 0.10 update (2026-10-20)Tone: direct and plain-spoken, a little cheeky, confident. Short sentences, one idea each: theapp is yours and it stays on your PC. The Hook's "yours" comes back in the Outro. Times are the@@ -8,13 +8,20 @@ scene windows in the current cut; the redesign times the scenes to these lines.|---|---|---|---|| 1 | Intro (the mark) | 0:00–0:03.4 | Introducing Kokon. || 2 | Hook (wall of edits) | 0:03.4–0:07.8 | Another image editor? Nope. This one is yours. |-| 3 | Create | 0:07.8–0:20.2 | Kokon runs on your PC, and everything stays there. Describe an image, and your graphics card makes it. No cloud. No account. No subscription. |-| 4 | Region | 0:20.2–0:38.2 | Want to change just one thing? Paint over it, and say what you want. Remove the scooter. Add a cat. Everything else stays exactly as it was. |-| 5 | Versions | 0:38.2–0:42.6 | Changed your mind? Every version is saved. |-| 6 | Montage | 0:42.6–1:00.7 | Change the season. Fix the sign. Restyle a portrait. Swap the furniture. Expand the frame. Shoot a product ad. One sentence each. |-| 7 | Agent | 1:00.7–1:09.4 | Use an AI agent? Kokon works with it too. Just ask for an image. |-| 8 | Hardware | 1:09.4–1:16.8 | Windows or Mac. NVIDIA, AMD, Intel or Apple silicon. It runs on what you have. |-| 9 | Outro | 1:16.8–1:24.7 | Kokon. Free, open source, and yours. Try it now. Your PC already knows what to do. |+| 3 | Create | 0:07.8–0:23.6 | Kokon runs on your PC, and everything stays there. Not great at writing prompts? No worries, Prompt Plus writes it for you. Your graphics card does the rest. No cloud. No account. No subscription. |+| 4 | Region | 0:23.6–0:39.5 | Want to change just one thing? Paint over it, and say what you want. Remove the scooter. Add a cat. Everything else stays exactly as it was. |+| 5 | Versions | 0:39.5–0:44.6 | Changed your mind? Every version is saved. |+| 6 | Montage | 0:44.0–1:00.9 | Change the season. Fix the sign. Restyle a portrait. Swap the furniture. Expand the frame. Shoot a product ad. One sentence each. |+| 7 | Agent | 1:00.3–1:10.3 | Use an AI agent? Kokon works with it too. Just ask for an image. |+| 8 | Hardware | 1:09.7–1:17.7 | Windows, Mac or Linux. NVIDIA, AMD, Intel or Apple silicon. It runs on what you have. |+| 9 | Outro | 1:17.1–1:25.1 | Kokon. Free, open source, and yours. Try it now. Your PC already knows what to do. |About 130 words. The take is generated with `gen_voice.py final` (voice, seeds and pauses perline are in FINAL there); files land in voice/final/, one per line, mastered to -16 LUFS.++0.10 update (2026-10-20): Prompt+ in Create, Linux in Hardware. Only the changed sentences were+read again, with `gen_voice.py redo` / `splice` (the rest is the approved take, cut from+voice/final/raw): line 3 sentences 1-3 and line 8 sentence 0. Line 6's "Shoot a product ad." is+no longer played (the montage has five edits, so the Agent scene still lands on the drop); the+line keeps its text so the file and its sentence numbers stay as approved. "Prompt Plus" is+spelled out for the voice; on screen it is "Prompt+".diff --git a/marketing/video/loaders/vite-glob.cjs b/marketing/video/loaders/vite-glob.cjsnew file mode 100644index 0000000..0836562--- /dev/null+++ b/marketing/video/loaders/vite-glob.cjs@@ -0,0 +1,5 @@+// Vite's import.meta.glob (the upscaler sample crops in Upscalers.tsx) has no webpack+// equivalent; the video never shows those crops, so the call becomes an empty map.+module.exports = function viteGlob(source) {+ return source.replace(/import\.meta\.glob\([^)]*\)/g, "({})");+};diff --git a/marketing/video/remotion.config.ts b/marketing/video/remotion.config.tsindex 342ce70..3299b1e 100644--- a/marketing/video/remotion.config.ts+++ b/marketing/video/remotion.config.ts@@ -23,6 +23,15 @@ Config.overrideWebpackConfig((c) => {});return {...c,+ module: {+ ...c.module,+ rules: [+ // Vite's "?raw" (the mark's SVG source, inlined by the wordmark) as webpack's asset/source.+ ...(c.module?.rules ?? []).map((r) => (r && typeof r === "object" && r.type === "asset/resource" ? { ...r, resourceQuery: { not: [/raw/] } } : r)),+ { resourceQuery: /raw/, type: "asset/source" },+ { test: /\.tsx?$/, include: app, enforce: "pre" as const, use: path.resolve(root, "loaders/vite-glob.cjs") },+ ],+ },resolve: {...c.resolve,alias: {@@ -46,6 +55,8 @@ Config.overrideWebpackConfig((c) => {swap(/^(\.\.?\/)+(lib\/)?api$/, "api.ts"),swap(/^(\.\.?\/)+(lib\/)?native$/, "native.ts"),swap(/^\.\/Compare$/, "Compare.tsx"),+ swap(/^\.\/Cocoon$/, "Cocoon.tsx"),+ swap(/^\.\/jobMotion$/, "jobMotion.ts"),],};});diff --git a/marketing/video/src/app/AppWindow.tsx b/marketing/video/src/app/AppWindow.tsxindex a93b623..4af6802 100644--- a/marketing/video/src/app/AppWindow.tsx+++ b/marketing/video/src/app/AppWindow.tsx@@ -1,64 +1,50 @@-// The Kokon window: the app's own Sidebar, Stage and Composer, fed the state of this frame.-import { EyeOff, Minus, Redo2, Settings, Square, Undo2, X } from "lucide-react";-import type { ReactNode } from "react";+// The Kokon window: the app's own Sidebar, top bar, Stage and Composer, fed the state of this+// frame. Kokon draws its own title bar (the top bar holds the window's buttons), so the window+// is one surface, as in the app.+import type { CSSProperties, ReactNode } from "react";+import { useCurrentFrame } from "remotion";import { Composer } from "../../../../src/components/Composer";-import { ProjectTitle, Sidebar } from "../../../../src/components/Sidebar";+import { Sidebar } from "../../../../src/components/Sidebar";import { Stage } from "../../../../src/components/Stage";-import { IconButton } from "../../../../src/components/ui";+import { TopBar } from "../../../../src/components/TopBar";import "../../../../src/styles.css";+import { CardMotionContext, type CardMotion } from "../mocks/card";import { CompareSplitContext } from "../mocks/Compare";+import { setWordPace } from "../mocks/jobMotion";import { FrameStateContext, setFrameState, type State } from "../mocks/store";-import { Mark } from "./Mark";+import { FPS } from "./timeline";import "./theme.css";-/** `split` is the before/after slider position for this frame (0–1). */-export function AppWindow({ state, width, height, overlay, hideComposer, busy, split = 0.5 }: { state: State; width: number; height: number; overlay?: ReactNode; hideComposer?: boolean; busy?: boolean; split?: number }) {+// The app's own dark theme tokens (styles.css), so the video never drifts from them.+if (typeof document !== "undefined") document.documentElement.dataset.theme = "dark";++/** `split` is the before/after slider position for this frame (0–1); `card` the clock of the+ * job card in the stage (cocoon, Prompt+ text, hatching). */+export function AppWindow({ state, width, height, overlay, hideComposer, split = 0.5, card }: { state: State; width: number; height: number; overlay?: ReactNode; hideComposer?: boolean; split?: number; card?: CardMotion }) {+ const f = useCurrentFrame();setFrameState(state);- const hasHistory = state.session.length > 1;+ setWordPace(card?.cps ?? 60);+ // CSS loops (the status capsule's silk, shimmer, caret) run on the frame clock; entrances+ // have long finished (app/theme.css).+ const vt = { "--vt": (100 + f / FPS).toFixed(3) } as CSSProperties;return (<FrameStateContext.Provider value={state}><CompareSplitContext.Provider value={split}>- <div className="kokon-window" style={{ width, height }}>- <div className="win-titlebar">- <span className="win-icon">- <Mark size={11} color="#0d0d0d" />- </span>- Kokon- <span className="spacer" />- <span className="ctl"><Minus size={15} /></span>- <span className="ctl"><Square size={12} /></span>- <span className="ctl"><X size={15} /></span>- </div>- <div className="app">- {state.sidebar && <Sidebar />}- <div className="workspace">- <div className="topbar">- <div className="brand">- <ProjectTitle />+ <CardMotionContext.Provider value={card ?? null}>+ <div className="kokon-window" style={{ width, height, ...vt }}>+ <div className="app">+ {state.sidebar && <Sidebar />}+ <div className="workspace">+ <TopBar />+ <div className="main">+ <Stage />+ {overlay}</div>- <div className="toolbar">- {hasHistory && (- <>- <IconButton title="Undo"><Undo2 size={18} /></IconButton>- <IconButton title="Redo" disabled><Redo2 size={18} /></IconButton>- </>- )}- <IconButton title="Private mode"><EyeOff size={18} /></IconButton>- <span className="status">- <span className="dot ready" />- <span>{busy ? "Working" : "Ready"}</span>- </span>- <IconButton title="Settings"><Settings size={18} /></IconButton>- </div>- </div>- <div className="main">- <Stage />- {overlay}+ {!hideComposer && <Composer />}</div>- {!hideComposer && <Composer />}</div></div>- </div>+ </CardMotionContext.Provider></CompareSplitContext.Provider></FrameStateContext.Provider>);diff --git a/marketing/video/src/app/fixtures.ts b/marketing/video/src/app/fixtures.tsindex 8b9404f..e0eaac1 100644--- a/marketing/video/src/app/fixtures.ts+++ b/marketing/video/src/app/fixtures.ts@@ -26,6 +26,10 @@ export const SIZES: Record<string, [number, number]> = {export const PROMPTS = {street:"A sunny cobblestone street in a small Italian coastal town, a pastel yellow café with lemon trees, a red vintage scooter parked in front, warm late-morning light, 35mm",+ /** What the user types with Prompt+ on, and the prompt Prompt+ writes from it (the record keeps both). */+ idea: "sunny italian street, café, red scooter",+ enhanced:+ "A 35mm photograph of a sunny cobblestone street in a small Italian coastal town. On the left, a pastel yellow café with green wooden shutters has small round tables and wicker chairs on the pavement, with lemon trees in terracotta pots beside the door. A red vintage scooter stands parked in front of the café, angled toward the viewer, its chrome catching the light. The narrow street climbs gently into the background between warm stone houses with flower boxes on the windows. Warm late-morning sunlight comes from the upper right, casting soft diagonal shadows across the grey cobblestones and lighting the café's facade, with a strip of clear blue sky above the rooftops.",remove: "the red scooter",add: "a ginger cat sitting on the cobblestones, looking at the camera",winter: "Make it a snowy winter night, warm light glowing from the cabin windows, stars in the sky",@@ -151,8 +155,11 @@ export const PROJECTS: State["projects"] = [export function appState(patch: Partial<State> = {}): State {return {...getState(),- connected: false, // no plan previews (they would need the service)+ connected: true, // the status capsule reads "Ready"; plan previews never resolve (mocks/api.ts)server: { state: "ready", owned: true, error: null },+ // The loaded engine can write prompts: the composer shows Prompt+.+ status: { server: { text_generation: true } } as unknown as State["status"],+ loras: [],session: [],selected: null,projectId: "current",diff --git a/marketing/video/src/app/theme.css b/marketing/video/src/app/theme.cssindex 35df96e..463004d 100644--- a/marketing/video/src/app/theme.css+++ b/marketing/video/src/app/theme.css@@ -1,36 +1,12 @@-/* The app follows the system theme; videos are rendered in its dark theme. */-:root {- --ground: #0a0a0a;- --bg: #151515;- --surface: #1c1c1c;- --surface-2: #252525;- --surface-3: #313131;- --border: rgba(255, 255, 255, 0.07);- --border-2: rgba(255, 255, 255, 0.14);- --text: #f2f2f2;- --text-2: #a8a8a8;- --text-3: #858585;- --invert-bg: #f2f2f2;- --invert-text: #0a0a0a;- --scrim: rgba(10, 10, 10, 0.85);- --lift: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 28px -12px rgba(0, 0, 0, 0.7);- --shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 24px 60px -18px rgba(0, 0, 0, 0.8);- --print: 0 2px 6px rgba(0, 0, 0, 0.5), 0 34px 70px -24px rgba(0, 0, 0, 0.9);- --pick: 0 0 0 1px rgba(255, 255, 255, 0.08);- --glow: rgba(255, 255, 255, 0.045);- --checker: #181818;- --sidebar: transparent;- color-scheme: dark;-}+/* Videos are rendered in the app's dark theme (data-theme="dark", set by AppWindow.tsx). */+:root { --sidebar: transparent; }html, body, #root { height: auto; }body { background: #000; }-/* No CSS animations in rendered frames: they would not follow the frame clock. */-.kokon-window *, .kokon-window *::before, .kokon-window *::after { animation-play-state: paused !important; transition: none !important; }+/* CSS animations follow the frame clock: paused, at --vt seconds (set per frame by AppWindow,+ 100 s + the scene's time), so loops run with the film and one-off entrances have finished.+ Transitions would not follow the clock: off. */+.kokon-window *, .kokon-window *::before, .kokon-window *::after { animation-play-state: paused !important; animation-delay: calc(var(--vt, 100) * -1s) !important; transition: none !important; }.kokon-window { position: relative; overflow: hidden; border-radius: 12px; background: var(--ground); color: var(--text); font-family: var(--font);box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 40px 120px rgba(0,0,0,0.6), 0 12px 40px rgba(0,0,0,0.5); display: flex; flex-direction: column; }-.win-titlebar { height: 34px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 0 0 12px; background: #1b1b1b; color: #cfcfcf; font-size: 12.5px; }-.win-titlebar .win-icon { width: 16px; height: 16px; border-radius: 4px; background: #f7f6f2; display: grid; place-items: center; }-.win-titlebar .spacer { flex: 1; }-.win-titlebar .ctl { width: 46px; height: 34px; display: grid; place-items: center; color: #9a9a9a; }.kokon-window .app { flex: 1; min-height: 0; height: auto; }diff --git a/marketing/video/src/app/timeline.ts b/marketing/video/src/app/timeline.tsindex 87c915e..0f1a6ab 100644--- a/marketing/video/src/app/timeline.ts+++ b/marketing/video/src/app/timeline.ts@@ -11,10 +11,10 @@ export const FADE = 18;export const LENGTH = {intro: 120,hook: 150,- create: 384,+ create: 475,region: 475,versions: 155,- montage: 597,+ montage: 506,agent: 300,hardware: 240,outro: 240,@@ -76,11 +76,15 @@ const cue = (scene: SceneName, line: number, local: number, from = 0, to = from)const all = (scene: SceneName, line: number, local: number): Cue => cue(scene, line, local, 0, LINES[String(line)].sentences.length - 1);// Scene-local frames where things happen that the voice names. Scenes import these too.-export const CREATE = { ask: 100, send: 172, done: 232, flyIn: 236, promises: 252 };+// Create with Prompt+: a few words typed, Prompt+ on, Send on beat 10 and a cut to the card; it+// writes the prompt, fades to the percentage, the result hatches, and the full-frame image+// arrives on beat 22.+export const CREATE = { ask: 100, pill: 150, writes: 158, send: 172, job: 173, write: 180, written: 244, leave: 256, rest: 264, form: 278, done: 294, hatch: 300, full: 355, promises: 360 };// Shot changes (removeCut, removeShot, addCut, addShot) and the scene's end sit on beats.export const REGION = { paint: 46, paint1: 130, removeCut: 138, remove: 150, removeSend: 177, removeShot: 185, addCut: 246, add: 256, addSend: 298, addShot: 307, same: 344 };export const MONTAGE_EDIT = 91.5; // 1.5 bars-export const MONTAGE = { edits: 6, mosaic: 549 };+// Five edits ("Shoot a product ad." made room for Prompt+ in Create, so the drop stays put).+export const MONTAGE = { edits: 5, mosaic: 458 };export const AGENT = { works: 83, ask: 150 };export const OUTRO = { try: 102, knows: 144 };@@ -89,7 +93,9 @@ export const CUES: Cue[] = [all("hook", 2, 15),cue("create", 3, 12, 0),cue("create", 3, CREATE.ask, 1),- cue("create", 3, CREATE.promises, 2, 4),+ cue("create", 3, CREATE.writes, 2),+ cue("create", 3, CREATE.rest, 3),+ cue("create", 3, CREATE.promises, 4, 6),cue("region", 4, 6, 0),cue("region", 4, 58, 1),cue("region", 4, REGION.remove, 2),@@ -97,6 +103,7 @@ export const CUES: Cue[] = [cue("region", 4, REGION.same, 4),all("versions", 5, 10),...Array.from({ length: MONTAGE.edits }, (_, i) => cue("montage", 6, Math.round(i * MONTAGE_EDIT) + 4, i)),+ // Sentence 5 ("Shoot a product ad.") is no longer played.cue("montage", 6, MONTAGE.mosaic + 3, 6),cue("agent", 7, 14, 0),cue("agent", 7, AGENT.works, 1),diff --git a/marketing/video/src/app/voice.json b/marketing/video/src/app/voice.jsonindex 61351c2..e0666e8 100644--- a/marketing/video/src/app/voice.json+++ b/marketing/video/src/app/voice.json@@ -26,7 +26,7 @@]},"3": {- "dur": 9.84,+ "dur": 13.64,"sentences": [[0.0,@@ -34,19 +34,27 @@],[2.92,- 5.72+ 4.52],[- 6.12,- 7.16+ 4.92,+ 7.32+ ],+ [+ 7.72,+ 9.52+ ],+ [+ 9.92,+ 10.96],[- 7.56,- 8.36+ 11.36,+ 12.16],[- 8.76,- 9.84+ 12.56,+ 13.64]]},diff --git a/marketing/video/src/mocks/Cocoon.tsx b/marketing/video/src/mocks/Cocoon.tsxnew file mode 100644index 0000000..6ffbc49--- /dev/null+++ b/marketing/video/src/mocks/Cocoon.tsx@@ -0,0 +1,102 @@+// The app's cocoon and hatching (src/components/Cocoon.tsx) drawn from the frame clock: the same+// drawing (drawCocoon) and hatching step (paintHatch), called once per frame with the card's+// time instead of from requestAnimationFrame. Markup and classes are unchanged.+import { useLayoutEffect, useRef, useState } from "react";+import { clearMask, drawCocoon, FORM_MS, hatchEnd, makeThreads, markLayout, paintHatch, THREADS } from "../../../../src/components/Cocoon";+import { reachedAt, useCard } from "./card";++export { markFresh, reducedMotion, SilkSpin } from "../../../../src/components/Cocoon";++const clamp01 = (v: number) => Math.min(1, Math.max(0, v));+const easeInOut = (v: number) => (v < 0.5 ? 4 * v * v * v : 1 - Math.pow(-2 * v + 2, 3) / 2);+const INK = "#f2f2f2"; // --text of the dark theme (app/theme.css)++export function Cocoon({ src, pct, dim }: { src?: string; pct: number; form?: boolean; dim?: boolean }) {+ const c = useCard();+ const wrap = useRef<HTMLDivElement>(null);+ const canvas = useRef<HTMLCanvasElement>(null);+ const [size, setSize] = useState({ w: 0, h: 0 });+ const formAt = reachedAt(c, 92);+ const formMs = formAt === null ? null : (c.t - formAt) * 1000;++ useLayoutEffect(() => {+ const el = wrap.current;+ const cv = canvas.current;+ if (!el || !cv) return;+ const w = el.clientWidth;+ const h = el.clientHeight;+ if (w !== size.w || h !== size.h) setSize({ w, h });+ if (!w || !h) return;+ const dpr = 2;+ cv.width = Math.round(w * dpr);+ cv.height = Math.round(h * dpr);+ const ctx = cv.getContext("2d");+ if (!ctx) return;+ // Each thread spun in when the percentage reached its birth.+ const threads = makeThreads(THREADS).map((th) => ({ ...th, born: reachedAt(c, th.birth) }));+ drawCocoon(ctx, threads, { w, h, dpr, ink: INK, t: c.t, pct, formMs, still: false });+ });++ const p = clamp01(pct / 100);+ const m = markLayout(size.w || 1, size.h || 1);+ const capsule = `inset(${m.cy - m.h / 2}px ${size.w - m.leftCocoon - m.w}px ${size.h - m.cy - m.h / 2}px ${m.leftCocoon}px round ${m.w / 2}px)`;+ // .cocoon.dim (0.32) eases back to full as the prompt leaves.+ const opacity = dim ? 0.32 + 0.68 * easeInOut(clamp01(c.leave ?? 0)) : 1;+ return (+ <div className="cocoon" ref={wrap} aria-hidden style={{ opacity }}>+ {src && size.w > 0 && formMs === null && (+ <img+ className="cocoon-src"+ src={src}+ alt=""+ draggable={false}+ style={{ clipPath: capsule, filter: `grayscale(1) blur(${(16 - 13 * p).toFixed(1)}px)`, opacity: (0.18 + 0.4 * p) * (1 - easeInOut(clamp01((p - 0.5) / 0.4))) }}+ />+ )}+ <canvas ref={canvas} style={{ width: size.w, height: size.h }} />+ </div>+ );+}++/** The result hatching from the formed logo, at the card's `hatchMs`; a plain frame otherwise. */+export function Hatch({ aspect, children }: { id?: string; aspect: number; children: React.ReactNode }) {+ const c = useCard();+ const ms = c.hatchMs ?? null;+ const running = ms !== null && ms < hatchEnd(FORM_MS);+ const ref = useRef<HTMLDivElement>(null);+ const body = useRef<HTMLDivElement>(null);+ const canvasBox = useRef<HTMLDivElement>(null);+ const ink = useRef<SVGPathElement>(null);+ const veilBox = useRef<HTMLDivElement>(null);+ const veil = useRef<SVGSVGElement>(null);+ const veilPath = useRef<SVGPathElement>(null);++ useLayoutEffect(() => {+ const el = ref.current;+ const b = body.current;+ if (!el || !b) return;+ if (!running) return clearMask(b);+ paintHatch({ el, body: b, canvasBox: canvasBox.current, veilBox: veilBox.current, veil: veil.current, veilPath: veilPath.current, ink: ink.current }, aspect, ms!, FORM_MS);+ });++ return (+ <div className="hatch" ref={ref}>+ {running && <div className="hatch-canvas" ref={canvasBox} />}+ <div className="hatch-body" ref={body}>+ {children}+ </div>+ {running && (+ <div className="hatch-veil" ref={veilBox} aria-hidden>+ <svg ref={veil}>+ <path ref={veilPath} fillRule="evenodd" />+ </svg>+ </div>+ )}+ {running && (+ <svg className="hatch-ink" aria-hidden>+ <path ref={ink} />+ </svg>+ )}+ </div>+ );+}diff --git a/marketing/video/src/mocks/card.ts b/marketing/video/src/mocks/card.tsnew file mode 100644index 0000000..b9e43a4--- /dev/null+++ b/marketing/video/src/mocks/card.ts@@ -0,0 +1,36 @@+// The clock of the job card in the stage (mocks/jobMotion.ts, mocks/Cocoon.tsx), from the+// frame: the app runs it on timers, which a video renders out of order. <AppWindow card={…}>+// provides it; without one a card shows its first moment.+import { createContext, useContext } from "react";++export interface CardMotion {+ /** Seconds since the card appeared. */+ t: number;+ /** The job's percentage at `t` seconds (only ever rising). */+ pctAt: (t: number) => number;+ /** Characters of the enhanced prompt revealed, and how fast they arrive (characters a second). */+ chars?: number;+ cps?: number;+ /** The finished prompt fading out for the percentage, 0..1. */+ leave?: number;+ /** Milliseconds into the result's hatching (null: not hatching). */+ hatchMs?: number | null;+}++export const CardMotionContext = createContext<CardMotion | null>(null);+const STILL: CardMotion = { t: 0, pctAt: () => 0 };+export const useCard = () => useContext(CardMotionContext) ?? STILL;++/** Seconds into the card when the percentage first reached `pct` (null: not yet at `t`). */+export function reachedAt(c: CardMotion, pct: number): number | null {+ if (c.pctAt(c.t) < pct) return null;+ if (c.pctAt(0) >= pct) return 0;+ let lo = 0;+ let hi = c.t;+ for (let i = 0; i < 24; i++) {+ const mid = (lo + hi) / 2;+ if (c.pctAt(mid) >= pct) hi = mid;+ else lo = mid;+ }+ return hi;+}diff --git a/marketing/video/src/mocks/jobMotion.ts b/marketing/video/src/mocks/jobMotion.tsnew file mode 100644index 0000000..5b73b81--- /dev/null+++ b/marketing/video/src/mocks/jobMotion.ts@@ -0,0 +1,43 @@+// The app's job-card timing (src/components/jobMotion.ts) read from the frame clock instead of+// timers: same names, same results, as pure functions of the card's time.+import type { CSSProperties } from "react";+import type { JobClock } from "../../../../src/lib/logic";+import type { GenerationRequest, JobView } from "../../../../src/lib/types";+import { useCard } from "./card";++export const PROMPT_HOLD_MS = 2200;+export const PROMPT_FADE_MS = 700;++export function useJobPercent(_job: JobView, request: GenerationRequest | null | undefined, _learn = false): { pct: number; clock: JobClock } {+ const c = useCard();+ const clock: JobClock = { elapsed: c.t, inPhase: c.t, inRunning: c.t, sinceStep: 0, enhance: !!request?.enhance, loadSeconds: 20, enhancerSecondsPerWord: 0.015 };+ return { pct: c.pctAt(c.t), clock };+}++export function useTypewriter(text: string, _streaming: boolean, _budget: number | null): number {+ const c = useCard();+ return Math.min(text.length, c.chars ?? text.length);+}++/** The fade of `.prompt-stage.leaving`, at the frame's point in it. */+export function usePromptLeave(_writing: boolean, _text: string, _onGone: () => void): { leaving: boolean; style?: CSSProperties } {+ const l = Math.min(1, Math.max(0, useCard().leave ?? 0));+ if (l <= 0) return { leaving: false };+ const e = l * l; // ease-in, as the CSS transition+ return { leaving: false, style: { opacity: 1 - e, transform: `scale(${1 - 0.03 * e})`, filter: `blur(${8 * e}px)` } };+}++/** The word-in keyframes (styles.css) at the word's age: it appeared `(shown - at) / cps` ago. */+export function wordStyle(at: number, shown: number): CSSProperties {+ // Hooks can't run here (called in a loop), so the speed comes from the module's last card.+ const age = Math.max(0, (shown - at) / lastCps);+ const k = Math.min(1, age / 0.9);+ const e = 1 - Math.pow(1 - k, 3);+ return { animation: "none", opacity: Math.min(1, e * 1.4), filter: e < 1 ? `blur(${(6 * (1 - e)).toFixed(2)}px)` : undefined };+}++let lastCps = 60;+/** Set by <AppWindow> for each frame, before its components render. */+export function setWordPace(cps: number) {+ lastCps = cps;+}diff --git a/marketing/video/src/scenes/AppScenes.tsx b/marketing/video/src/scenes/AppScenes.tsxindex a11d0af..3df0eff 100644--- a/marketing/video/src/scenes/AppScenes.tsx+++ b/marketing/video/src/scenes/AppScenes.tsx@@ -10,7 +10,8 @@ import { FullImage } from "../app/FullImage";import { imageBox, InpaintOverlay, strokePoints } from "../app/InpaintOverlay";import { Backdrop, type Cam, Camera, camAt, camSpeed, Caption, DepthOfField, Dissolve, inOut, kf, Pointer, prog, typed, typingDone, Vignette } from "../app/motion";import { Send, Sfx } from "../app/sound";-import { CREATE, LENGTH, REGION, sceneCues, sentenceAt } from "../app/timeline";+import { CREATE, FPS, LENGTH, REGION, sceneCues, sentenceAt } from "../app/timeline";+import type { CardMotion } from "../mocks/card";import type { State } from "../mocks/store";const inpaintReq = (prompt: string, from: string, action: "remove" | "add") => ({@@ -22,7 +23,8 @@ const inpaintReq = (prompt: string, from: string, action: "remove" | "add") => (advanced: {},inpaint_action: action,});-const STREET = gen("street", "generate", PROMPTS.street);+// Made with Prompt+ from a few words: the record keeps the written prompt and the user's own.+const STREET = gen("street", "generate", PROMPTS.enhanced, undefined, { original_prompt: PROMPTS.idea, request: { prompt: PROMPTS.idea, mode: "generate", images: [], quality: "quality", resolution: "auto", advanced: {}, enhance: true } });const REMOVED = gen("street-removed", "inpaint", PROMPTS.remove, "street", { request: inpaintReq(PROMPTS.remove, "street", "remove") });const CAT = gen("street-cat", "inpaint", PROMPTS.add, "street-removed", { request: inpaintReq(PROMPTS.add, "street-removed", "add") });const STREET_PROJECT = { id: "current", title: "Italian street café", updatedAt: Date.now() - 20_000, cover: "gen:street", count: 1 };@@ -70,94 +72,114 @@ function Words({ items, end }: { items: { text: string; at: number }[]; end: numconst Tag = ({ text, start, end }: { text: string; start: number; end: number }) => <Caption title={text} start={start} end={end} y={930} size={48} />;// ----------------------------------------------------------------------------------------// Create: the window arrives, a sentence is typed, the image is made, and the camera flies-// into it. "No cloud. No account. No subscription." over the finished picture.+// Create: the window arrives and a few words are typed; Prompt+ on, Send. Cut to the card:+// Prompt+ writes the full prompt, the percentage takes over the cocoon, the image hatches out+// of the logo, then fills the frame. "No cloud. No account. No subscription." over it.// ---------------------------------------------------------------------------------------export const CREATE_FRAMES = LENGTH.create;+/** The card's shot: the stage, still (a slow push only). */+// Zoomed so the window just fills the width (the camera then holds it edge to edge).+const CARD_CAM: Cam = { x: 720, y: 400, s: 1.34 };+const PILL: [number, number] = [840, 853];++/** The job's percentage at scene frame `f`: the image starts while Prompt+ is still on screen. */+const createPct = (f: number) => kf(f, [[CREATE.write, 0], [CREATE.form, 92], [CREATE.done, 100]]);+export function Create() {const f = useCurrentFrame();const base = appState();const cues = sceneCues("create");- const T0 = CREATE.ask;- const T1 = typingDone(PROMPTS.street, T0, 80);- const SEND_AT = CREATE.send;- const JOB = SEND_AT + 2;- const DONE = CREATE.done;- const FLY = CREATE.flyIn;- const FULL = FLY + 22;+ const C = CREATE;+ const T0 = C.ask + 2;+ const T1 = typingDone(PROMPTS.idea, T0, 32);+ // Prompt+ writes the whole prompt in about two seconds on screen (sped up, like the image).+ const cps = (PROMPTS.enhanced.length * FPS) / (C.written - C.write);+ const card: CardMotion = {+ t: Math.max(0, f - C.job) / FPS,+ pctAt: (t) => createPct(C.job + t * FPS),+ chars: Math.max(0, f - C.write) * (cps / FPS),+ cps,+ leave: prog(f, C.leave, 21, (x) => x),+ hatchMs: f >= C.hatch ? ((f - C.hatch) * 1000) / FPS : null,+ };+ const request = { prompt: PROMPTS.idea, mode: "generate" as const, images: [], quality: "quality" as const, resolution: "auto" as const, advanced: {}, enhance: true };const view = (t: number) => {let state: State;- if (t < JOB) {- state = appState({ composer: { ...base.composer, prompt: typed(PROMPTS.street, t, T0, 80) } });- } else if (t < DONE) {- const j = jobItem("j-street", "generate", PROMPTS.street, "street", undefined, stepAt(t, JOB + 6, 6));- state = appState({ session: [j.item], selected: "j-street", jobs: { "j-street": j.job }, ...proj(1, "gen:street") });+ const composer = { ...base.composer, enhance: t >= C.pill };+ if (t < C.job) {+ state = appState({ composer: { ...composer, prompt: typed(PROMPTS.idea, t, T0, 32) } });+ } else if (t < C.hatch) {+ const pct = createPct(t);+ const j = jobItem("j-street", "generate", PROMPTS.idea, "street", undefined, Math.min(8, Math.floor((pct / 100) * 8)));+ const writing = t < C.write + 40;+ // The prompt is written while the image is being made; it stays on screen until it leaves.+ const job = { ...j.job, status: writing ? ("enhancing_prompt" as const) : j.job.status, step: writing ? null : j.job.step, enhanced_prompt: t < C.leave + 21 ? PROMPTS.enhanced : null };+ state = appState({ session: [{ ...j.item, request }], selected: "j-street", jobs: { "j-street": job }, composer, ...proj(1, "gen:street") });} else {- state = appState({ session: [genItem(STREET)], selected: "street", ...proj(1, "gen:street") });+ state = appState({ session: [genItem(STREET)], selected: "street", composer, ...proj(1, "gen:street") });}- return <AppWindow state={state} width={1440} height={900} busy={t >= JOB && t < DONE} />;+ return <AppWindow state={state} width={1440} height={900} card={card} />;};const enter = prog(f, 0, 34);- const camKeys: [number, Cam][] = [+ const typingCam = camAt(f, [[0, { x: 720, y: 450, s: 1.02 }],[40, { x: 720, y: 450, s: 1.1 }],[92, PROMPT_CAM],- [SEND_AT, { ...PROMPT_CAM, s: 1.86 }],- [SEND_AT + 30, { x: 850, y: 330, s: 1.3 }],- [FLY, { x: 850, y: 325, s: 1.34 }],- [FULL, { x: STAGE_IMG.x, y: STAGE_IMG.y, s: 1920 / STAGE_IMG.w }],- ];- const at = (t: number) => camAt(t, camKeys);- const cam = at(f);- // Sharp on the composer while typing; the whole window once the image is being made.- const dof = prog(f, 70, 20) * (1 - prog(f, SEND_AT + 2, 16));+ [C.send, { ...PROMPT_CAM, s: 1.86 }],+ ]);+ const onCard = f >= C.job;+ const cam = onCard ? { ...CARD_CAM, s: CARD_CAM.s + (f - C.job) * 0.0004 } : typingCam;+ // Sharp on the composer while typing; the whole window on the card.+ const dof = onCard ? 0 : prog(f, 70, 20);const app = (- <Camera cam={cam} tilt={(1 - enter) * 16} lift={(1 - enter) * 260} opacity={enter} free={f > 60 && f < SEND_AT + 30} turn={{ x: ANGLE.x * dof, y: ANGLE.y * dof }} blur={f > FLY ? camSpeed(f, at) * 0.12 : 0}>- <Dissolve frame={f} cuts={[JOB, DONE]} view={view} dur={10} />- <Pointer- path={[- [56, 980, 700],- [88, 640, 812],- [112, 1080, 880],- [SEND_AT - 16, 1120, 880],- [SEND_AT - 2, SEND[0], SEND[1]],- [SEND_AT + 24, 1260, 700],- ]}- clicks={[90, SEND_AT]}- hideBefore={56}- hideAfter={SEND_AT + 26}- />+ <Camera cam={cam} tilt={(1 - enter) * 16} lift={(1 - enter) * 260} opacity={enter} free={f > 60 && !onCard} turn={{ x: ANGLE.x * dof, y: ANGLE.y * dof }}>+ {view(f)}+ {!onCard && (+ <Pointer+ path={[+ [56, 980, 700],+ [88, 640, 812],+ [112, 900, 880],+ [C.pill - 2, PILL[0], PILL[1]],+ [C.send - 12, 1120, 880],+ [C.send - 1, SEND[0], SEND[1]],+ ]}+ clicks={[90, C.pill, C.send]}+ hideBefore={56}+ />+ )}</Camera>);- const full = prog(f, FULL - 6, 8, inOut);- const words = cues.find((c) => c.from === 2)!;+ const full = prog(f, C.full - 6, 8, inOut);+ const words = cues.find((c) => c.from === 4)!;return (<AbsoluteFill><Backdrop />{dof > 0.01 ? <DepthOfField focus={PROMPT_FOCUS} blur={7 * dof}>{app}</DepthOfField> : app}- {f >= FULL - 6 && (+ {f >= C.full - 6 && (<div style={{ position: "absolute", inset: 0, opacity: full }}>- <FullImage before="street" push={1 + prog(f, FULL, LENGTH.create - FULL, (x) => x) * 0.06} dim={0.25 * prog(f, CREATE.promises - 8, 12)} />+ <FullImage before="street" push={1 + prog(f, C.full, LENGTH.create - C.full, (x) => x) * 0.05} dim={0.25 * prog(f, C.promises - 8, 12)} /></div>)}- <Vignette strength={prog(f, JOB, 12) * (1 - full)} />- <Caption title="Made on your own GPU." sub="Qwen-Image 2.1 Turbo · 2752×1536 in 38 s on an RTX 5070 Ti (sped up here)" start={JOB + 8} end={FLY} size={48} />+ <Vignette strength={(onCard ? 0.7 : 0) * (1 - full)} />+ <Tag text="Prompt+ writes the prompt." start={C.write - 2} end={C.leave + 12} />+ <Caption title="Made on your own GPU." sub="Qwen-Image 2.1 Turbo · Prompt+ ~2 s, then 2752×1536 in 38 s on an RTX 5070 Ti (sped up here)" start={C.leave + 14} end={C.full - 4} size={48} /><Wordsitems={[- { text: "No cloud.", at: sentenceAt(words, 2) },- { text: "No account.", at: sentenceAt(words, 3) },- { text: "No subscription.", at: sentenceAt(words, 4) },+ { text: "No cloud.", at: sentenceAt(words, 4) },+ { text: "No account.", at: sentenceAt(words, 5) },+ { text: "No subscription.", at: sentenceAt(words, 6) },]}end={LENGTH.create - 4}/><Sfx name="click" at={90} /><Sfx name="typing" at={T0} dur={T1 - T0} />- <Send at={SEND_AT} />- <Sfx name="reveal" at={DONE} variant={0} />- <Sfx name="whoosh" at={FLY - 4} gain={0.8} />+ <Sfx name="click" at={C.pill} />+ <Send at={C.send} />+ <Sfx name="reveal" at={C.hatch + 6} variant={0} /></AbsoluteFill>);}diff --git a/marketing/video/src/scenes/Closing.tsx b/marketing/video/src/scenes/Closing.tsxindex 8dc2da1..92960d6 100644--- a/marketing/video/src/scenes/Closing.tsx+++ b/marketing/video/src/scenes/Closing.tsx@@ -1,7 +1,8 @@-// Where it runs (Windows: NVIDIA, AMD, Intel; macOS: Apple Silicon), then the end card.+// Where it runs (Windows and Linux: NVIDIA, AMD, Intel; macOS: Apple Silicon), then the end card.+// The facts match the website's requirements (site/index.html).import type { ReactNode } from "react";import { AbsoluteFill, useCurrentFrame } from "remotion";-import { siAmd, siApple, siGithub, siIntel, siNvidia } from "simple-icons";+import { siAmd, siApple, siDebian, siFedora, siGithub, siIntel, siLinux, siNvidia } from "simple-icons";import { Mark } from "../app/Mark";import { Backdrop, inOut, prog } from "../app/motion";import { Sfx } from "../app/sound";@@ -32,11 +33,11 @@ function Row({ icon, title, sub, show }: { icon: ReactNode; title: string; sub:const f = useCurrentFrame();const p = prog(f, show, 18);return (- <div style={{ display: "flex", alignItems: "center", gap: 20, padding: "18px 0", borderTop: "1px solid rgba(255,255,255,0.08)", opacity: p, transform: `translateX(${(1 - p) * 24}px)` }}>+ <div style={{ display: "flex", alignItems: "center", gap: 18, padding: "16px 0", borderTop: "1px solid rgba(255,255,255,0.08)", opacity: p, transform: `translateX(${(1 - p) * 24}px)` }}><div style={{ width: 54, height: 54, borderRadius: 14, background: "rgba(255,255,255,0.06)", display: "grid", placeItems: "center", flex: "none" }}>{icon}</div><div style={{ display: "flex", flexDirection: "column", gap: 4 }}>- <span style={{ fontSize: 28, fontWeight: 600, color: "#f2f2f2", letterSpacing: "-0.02em" }}>{title}</span>- <span style={{ fontSize: 20, color: "rgba(240,240,240,0.55)" }}>{sub}</span>+ <span style={{ fontSize: 25, fontWeight: 600, color: "#f2f2f2", letterSpacing: "-0.02em" }}>{title}</span>+ <span style={{ fontSize: 18, color: "rgba(240,240,240,0.55)" }}>{sub}</span></div></div>);@@ -48,8 +49,8 @@ function Card({ icon, title, show, children }: { icon: ReactNode; title: string;return (<divstyle={{- width: 720,- padding: "34px 40px 22px",+ width: 560,+ padding: "30px 32px 18px",borderRadius: 28,background: "linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025))",boxShadow: "inset 0 0 0 1px rgba(255,255,255,0.09), 0 40px 100px rgba(0,0,0,0.5)",@@ -59,7 +60,7 @@ function Card({ icon, title, show, children }: { icon: ReactNode; title: string;><div style={{ display: "flex", alignItems: "center", gap: 18, marginBottom: 18 }}>{icon}- <span style={{ fontSize: 38, fontWeight: 650, color: PAPER, letterSpacing: "-0.03em" }}>{title}</span>+ <span style={{ fontSize: 34, fontWeight: 650, color: PAPER, letterSpacing: "-0.03em" }}>{title}</span></div>{children}</div>@@ -72,23 +73,28 @@ export function Hardware() {const f = useCurrentFrame();const t = prog(f, 0, 22);const exit = prog(f, HARDWARE_FRAMES - 14, 14, inOut);- const chips = ["35 MB installer", "No Python", "Offline after setup", "Free and open source"];+ const chips = ["Native installer", "No Python", "Offline after setup", "Free and open source"];return (<AbsoluteFill style={{ fontFamily: font, opacity: 1 - exit }}><Backdrop glow={0.9} /><div style={{ position: "absolute", top: 110, left: 0, right: 0, textAlign: "center", fontSize: 76, fontWeight: 660, letterSpacing: "-0.045em", color: "#f4f4f2", opacity: t, transform: `translateY(${(1 - t) * 24}px)`, filter: `blur(${(1 - t) * 8}px)` }}>Runs on the computer you have.</div>- <div style={{ position: "absolute", top: 265, left: 0, right: 0, display: "flex", justifyContent: "center", gap: 48 }}>+ <div style={{ position: "absolute", top: 265, left: 0, right: 0, display: "flex", justifyContent: "center", gap: 36 }}><Card icon={<WindowsLogo />} title="Windows 10 and 11" show={14}>- <Row icon={<Brand path={siNvidia.path} color={`#${siNvidia.hex}`} />} title="NVIDIA · CUDA" sub="12 GB of VRAM or more" show={34} />+ <Row icon={<Brand path={siNvidia.path} color={`#${siNvidia.hex}`} />} title="NVIDIA · CUDA" sub="12 GB of VRAM or more · 8 GB beta" show={34} /><Row icon={<Brand path={siAmd.path} color="#f2f2f2" />} title="AMD · Vulkan" sub="12 GB or more · beta" show={42} /><Row icon={<Brand path={siIntel.path} color="#f2f2f2" />} title="Intel Arc · Vulkan" sub="12 GB or more · beta" show={50} /></Card>- <Card icon={<Brand path={siApple.path} color={PAPER} size={38} />} title="macOS 26" show={24}>- <Row icon={<Brand path={siApple.path} color="#f2f2f2" />} title="Apple Silicon · Metal" sub="M1 or newer · beta" show={44} />- <Row icon={<span style={{ fontSize: 22, fontWeight: 700, color: "#f2f2f2" }}>32</span>} title="32 GB recommended" sub="16 GB works, more slowly" show={52} />- <Row icon={<span style={{ fontSize: 22, color: "#f2f2f2" }}>⌘</span>} title="Same app, same features" sub="One codebase for both systems" show={60} />+ <Card icon={<Brand path={siApple.path} color={PAPER} size={36} />} title="macOS 15 or newer" show={20}>+ <Row icon={<Brand path={siApple.path} color="#f2f2f2" />} title="Apple Silicon · Metal" sub="M1 or newer · beta" show={40} />+ <Row icon={<span style={{ fontSize: 22, fontWeight: 700, color: "#f2f2f2" }}>32</span>} title="32 GB recommended" sub="16 GB works, more slowly" show={48} />+ <Row icon={<span style={{ fontSize: 22, color: "#f2f2f2" }}>⌘</span>} title="Same app, same features" sub="One codebase for every system" show={56} />+ </Card>+ <Card icon={<Brand path={siLinux.path} color={PAPER} size={36} />} title="Linux · beta" show={26}>+ <Row icon={<Brand path={siDebian.path} color="#f2f2f2" />} title=".deb · Ubuntu, Debian, Mint" sub="Ubuntu 22.04, Debian 12, Mint 21 or newer" show={46} />+ <Row icon={<Brand path={siFedora.path} color="#f2f2f2" />} title=".rpm · Fedora" sub="Fedora 40 or newer" show={54} />+ <Row icon={<Brand path={siNvidia.path} color={`#${siNvidia.hex}`} />} title="NVIDIA CUDA · AMD Vulkan" sub="12 GB or more · 8 GB beta · Intel Arc too" show={62} /></Card></div><div style={{ position: "absolute", top: 880, left: 0, right: 0, display: "flex", justifyContent: "center", gap: 16 }}>@@ -122,7 +128,7 @@ export function Outro() {<Mark size={120} color={PAPER} /><span style={{ fontSize: 128, fontWeight: 620, color: PAPER, letterSpacing: "-0.045em", lineHeight: 1 }}>Kokon</span></div>- <div style={{ fontSize: 40, color: "rgba(247,246,242,0.8)", letterSpacing: "-0.02em", opacity: b, transform: `translateY(${(1 - b) * 14}px)` }}>Free and open source. For Windows and macOS.</div>+ <div style={{ fontSize: 40, color: "rgba(247,246,242,0.8)", letterSpacing: "-0.02em", opacity: b, transform: `translateY(${(1 - b) * 14}px)` }}>Free and open source. For Windows, macOS and Linux.</div><div style={{ marginTop: 18, padding: "18px 40px", borderRadius: 999, background: PAPER, color: "#0d0d0d", fontSize: 34, fontWeight: 650, letterSpacing: "-0.02em", opacity: c, transform: `translateY(${(1 - c) * 14}px)` }}>kokon.app</div>diff --git a/marketing/video/src/scenes/Layout.tsx b/marketing/video/src/scenes/Layout.tsxindex 04aca7d..44361c0 100644--- a/marketing/video/src/scenes/Layout.tsx+++ b/marketing/video/src/scenes/Layout.tsx@@ -9,6 +9,7 @@ export function Layout() {const a = gen("street", "generate", PROMPTS.street);const base = appState();const states = [+ appState({ composer: { ...base.composer, prompt: PROMPTS.idea, enhance: true } }),appState({ composer: { ...base.composer, prompt: PROMPTS.street } }),appState({ session: [genItem(a)], selected: "street", composer: { ...base.composer, refs: [ref("street")] } }),appState({ session: [genItem(a)], selected: "street", composer: { ...base.composer, refs: [ref("street")], mask: { inputId: "m", refKey: "ref-street" }, inpaintAction: "remove", prompt: PROMPTS.remove } }),diff --git a/marketing/video/src/scenes/Montage.tsx b/marketing/video/src/scenes/Montage.tsxindex f9dd2ed..ef5d95d 100644--- a/marketing/video/src/scenes/Montage.tsx+++ b/marketing/video/src/scenes/Montage.tsx@@ -1,7 +1,7 @@-// Six edits, full frame, cut on the music: each starts as the voice names it ("Change the+// Five edits, full frame, cut on the music: each starts as the voice names it ("Change the// season."), its one-sentence prompt appears under the picture, and the result wipes in on the-// next beat but one. All images were made by Kokon. It ends on the six results together,-// "One sentence each.", right before the drop the Agent scene lands on.+// next beat but one. All images were made by Kokon. It ends on the results together with the+// street from the demo, "One sentence each.", right before the drop the Agent scene lands on.import { AbsoluteFill, Img, Sequence, staticFile, useCurrentFrame } from "remotion";import { FullImage } from "../app/FullImage";import { PROMPTS } from "../app/fixtures";@@ -23,8 +23,9 @@ const EDITS: Edit[] = [{ label: "Restyle a portrait.", before: "potter", after: "potter-watercolor", prompt: PROMPTS.restyle },{ label: "Swap the furniture.", before: "room", after: "room-sofa", prompt: PROMPTS.replace },{ label: "Expand the frame.", before: "lighthouse", after: "lighthouse-wide", prompt: PROMPTS.expand, expand: 1536 / 2764 },- { label: "Shoot a product ad.", before: "sneaker", after: "sneaker-ad", prompt: PROMPTS.product },];+/** The mosaic: the street with the cat from the demo, then the five edits. */+const TILES = ["street-cat", ...EDITS.map((e) => e.after)];export const MONTAGE_FRAMES = LENGTH.montage;const START = EDITS.map((_, i) => Math.round(i * MONTAGE_EDIT));@@ -65,11 +66,11 @@ function Mosaic() {return (<AbsoluteFill style={{ background: "#050505" }}><div style={{ position: "absolute", left: (1920 - (3 * W + 2 * G)) / 2, top: (1080 - (2 * H + G)) / 2, display: "grid", gridTemplateColumns: `repeat(3, ${W}px)`, gap: G, transform: `scale(${1.02 + f * 0.0012})` }}>- {EDITS.map((e, i) => {+ {TILES.map((id, i) => {const p = prog(f, i * 1.5 - 3, 10); // the first tiles are already there on the cutreturn (- <div key={e.after} style={{ width: W, height: H, borderRadius: 16, overflow: "hidden", opacity: p, transform: `scale(${0.9 + p * 0.1})`, boxShadow: "0 20px 60px rgba(0,0,0,0.5)" }}>- <Img src={staticFile(`img/${e.after}.jpg`)} style={{ width: "100%", height: "100%", objectFit: "cover" }} />+ <div key={id} style={{ width: W, height: H, borderRadius: 16, overflow: "hidden", opacity: p, transform: `scale(${0.9 + p * 0.1})`, boxShadow: "0 20px 60px rgba(0,0,0,0.5)" }}>+ <Img src={staticFile(`img/${id}.jpg`)} style={{ width: "100%", height: "100%", objectFit: "cover" }} /></div>);})}