--- name: remotion-motion description: Build, check and render the video: a Remotion-API (React) project from the template, drawn by Kinetograph (the studio's GPU render engine, no Chrome). Stills for style frames, animatic and final renders through the studio's render queue. Use whenever you make frames or video. --- # The video (Remotion API, rendered by Kinetograph) The video is a React project in `video/` written with Remotion's API. The studio renders it with **Kinetograph**: a GPU engine that runs the same code with no browser. `remotion` and `@remotion/*` imports resolve to Kinetograph's own implementation of them, so write Remotion as usual. Never run `npx remotion` here: every still and render is `kinetograph`, through the queue. Frames are a pure function of the frame number: no timers, no randomness without a seed (`random('seed')` from remotion), no network at render time. (Kinetograph drives `Math.random`, `Date` and timers from the frame, but don't lean on it: a seed you choose is the same in every render.) ## Set up (first time) ``` node .claude/skills/remotion-motion/setup.mjs # video/ from the template, linked to the studio's shared install ``` A project needs no packages to render: Kinetograph bundles `remotion`, `@remotion/*` and React itself. The template's packages are Remotion's **types** only, for the type check (`npx tsc --noEmit` in `video/`, which the studio runs before the animatic). The studio installs them once and every project links to them. Don't `npm install` inside `video/` while it's linked (that would change the shared copy for every project). Need the types of another package? `rm video/node_modules`, then `npm install` and `npm install ` in `video/`: this project gets its own copy. Setup also copies Kinetograph's own skill to `.claude/skills/kinetograph` (its full authoring reference); where it says something different, this skill wins. Set `src/video.ts` from the brief: size (16:9 → 1920×1080, 9:16 → 1080×1920, 1:1 → 1080×1080), 30 fps, length. Put the look from `design/LOOK.md` in `look`. **Fonts: load every family you use.** Kinetograph reads no system fonts: `system-ui`, `Arial`, `sans-serif` and `monospace` are not there, and text in a family that isn't loaded is drawn in a fallback (and warned about). Use `@remotion/google-fonts/` (`const { fontFamily } = loadFont()` at the top of a file; downloaded once, then cached) or local files in `video/public/` with `@font-face` / `staticFile()`; never a font you can't license. Code and numbers in a mono face: load one (`@remotion/google-fonts/JetBrainsMono`). The fallback covers symbols and emoji (monochrome), not CJK, Arabic or Devanagari: load a font for those. ## Build scenes - One component per beat in `src/scenes/`, placed in `Main.tsx` with `` (``, ``, `` and `@remotion/transitions`' `` work as documented). - Timing in frames comes from the narration's word timings (`voice/timing.json`) or the music's beat grid: put the numbers in `src/timing.ts`, never scattered magic numbers. - Motion: `spring()` and `interpolate(..., { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' })`, `interpolateColors`, `Easing`. Easing per the motion-design skill. - Audio: `