--- name: brand-motion-design description: Make a showreel-grade motion film for any brand or small business (product launch, feature spotlight, promo or offer, brand teaser, social proof, event, before/after, product showcase; Reel, TikTok or launch video) in code with HyperFrames (HTML to video) and Three.js, from a brand book, a codebase, a website URL or a few questions, using the user's own logo, photos, screenshots and recordings. Always fast and dynamic by default - lit 3D scenes with bloom and particles, a camera cut every two beats, giant slammed type, colour flips, a viewfinder HUD, cut to a generated hip-hop or punchy beat - while keeping the brand's own colours, fonts, logo, voice and claims. Use when someone asks for a product video, promo, Reel, launch film, showreel or "motion design video" for their app, SaaS, brand or site. Covers brand/site discovery, a short interview, story on a beat grid, music, review loops and a verified final render with motion blur. --- # Brand motion design A **showreel cut** that stops the scroll, for any brand, made from whatever the user gives you: a brand book, a codebase, a website URL, or nothing but answers to a few questions (each with a "you choose for me" option). It makes launches, feature spotlights, promos, teasers, social proof, events, before/afters and product showcases ([reference/video-types.md](reference/video-types.md)), with the user's own assets when they have them ([reference/assets.md](reference/assets.md)), and it remembers the brand and the owner's choices for the next film. It is always fast and dynamic: lit Three.js scenes with glossy materials, bloom on one highlight and particles; a camera cut every two beats; giant slammed words; a colour flip on every scene; a viewfinder HUD; floods, irises and whips; cut to a beat. Never ask "calm or fast": fast is the default, and a calm explainer is made only when the user explicitly asks for one. It still looks like the product made it: its colours, type, logo, voice and claims. Built as a HyperFrames project (plain HTML, CSS and JS rendered to MP4), editable in HyperFrames Studio. Read [reference/showreel.md](reference/showreel.md) before writing the story: it holds the shape, the 3D recipe and the pacing that make the difference between a flat cut and a showreel. ## Non-negotiables - **Their brand wins on look; the showreel wins on motion.** Colours, fonts, logo files and build, voice, claims and correctness come from the product and never bend. Pace, light, depth, 3D and transitions are the showreel's: the video is a **brand moment**, and a UI brand book's "restraint" is read as a rule for the app, not a ceiling for the film. Write that split in `BRAND.md`; ask only if the brand explicitly forbids motion effects in video. - **Ask little, with AskUserQuestion, and never the pace.** Read the saved profile (`videos/BRAND.md`) first and reuse it. Ask brand questions only when there is no brand book, codebase or site; then ask this film's type, format, message and music, and which assets they have. Every question offers "You choose for me". See [reference/interview.md](reference/interview.md). If the user is away or says "just go", use the profile or the recommended options, say so in one line, and continue. - **Remember.** Every answer, every choice made for the user and every note on a finished film goes into `videos/BRAND.md` (the brand profile, reused next time) or the film's `PROMPT.md`. Notes on one film ("less text") become standing choices. - **Real facts only.** Prices, offers, dates, reviews and results come from the user word for word; never invent one. - **Every frame is a pure function of time.** One clock drives everything: `PF.film` calls `draw(t)` on every seek. No CSS transitions or keyframes, no timers, no `Date.now()`, no unseeded `Math.random()`, no network at render time, no state carried between frames. A component (or an SVG) that runs its own clock gets a frame-driven twin. - **Measure, never guess.** Beats come from the grid (measured or generated), positions from the DOM (`PF.rectOf`, `--debug` stills), colors and loudness from the decoded final files. - **Say the product loop plainly.** Three short statements a first viewer can repeat ("Snap your receipt. It files itself. Taxes done in May." / "Order by 11. Baked at noon. At your door by 1."); no insider references. On-screen content (formulas, code, data) must be recognisable in half a second. See [reference/story.md](reference/story.md). - **Honest claims.** Show only what the product really does. Find its claims rules and approved lines before writing a word. Keep any math, data or code on screen correct. - **Ask first** before committing, pushing or publishing. Every render is kept (`out//v1`, `v2`, ...). ## Workflow 1. **Discovery, from whatever you were given.** First look for a saved profile (`videos/BRAND.md`). A brand folder or codebase: rules files, brand docs, tokens, fonts, the logo (and any animated mark), the brand's graphic pack (stickers, shapes, patterns), the main features. **Only a URL:** `npx hyperframes capture -o videos/_capture --json` gives screenshots, `extracted/tokens.json` (colours, fonts, headings, CTAs), `extracted/design-styles.json`, `extracted/visible-text.txt`, downloaded fonts, SVGs and images; treat `ok: false` or a `BLOCKED.md` as a hard stop and ask for the brand files instead. **Nothing at all:** the brand round of the interview. See [reference/discovery.md](reference/discovery.md). 2. **Interview (AskUserQuestion).** Brand questions only if needed; then the video type ([reference/video-types.md](reference/video-types.md)), where it plays and how long, the one message, the music, the facts the type needs, and the assets they can give ([reference/assets.md](reference/assets.md)). Every question has "You choose for me". Not the pace. See [reference/interview.md](reference/interview.md). 3. **Brand profile → `videos/BRAND.md`.** Fill [templates/BRAND.md](templates/BRAND.md) from discovery and the answers, including "Owner choices" and "Chosen by Claude"; update it if it already exists. Copy their assets into `videos//assets/` and look at each one. 4. **Project.** `node /scripts/setup.mjs videos/ --size 1080x1920 [--katex]`: a HyperFrames project with the kit in `kit/`, vendored GSAP and Three.js (with bloom, environment and post-processing add-ons; `--no-three` to skip), a showreel starter `index.html` (lit 3D stage, HUD, slammed headline, grain) and `cues.js`. Copy the product's fonts into `assets/fonts/`. 5. **Story → `videos//PROMPT.md` and `cues.js`.** Read [reference/showreel.md](reference/showreel.md), [reference/story.md](reference/story.md) and [reference/ingredients.md](reference/ingredients.md), fill [templates/film-prompt.md](templates/film-prompt.md), and write the beat sheet as data in `cues.js`: the chapters of the chosen video type, each with a 3D showpiece (their assets as lit cards where they have them), a wide shot for the words and a close shot for the detail. `node /scripts/beat-sheet.mjs videos/` prints the table the user reads and flags dead bars. 6. **Music.** Skip if silent. Their track: `beats.py` then `audio-edit.py`. No track: `synth.py music --style trap` (young audience) or `--style punchy`, 135 to 150 BPM, with `--hits` on the drops, `--risers` and a half-beat `--gaps` before the drop. Effects: `synth.py sfx`, then `place-audio.mjs` lands each hit on its cue. See [reference/music.md](reference/music.md). 7. **Build.** Read [reference/engine.md](reference/engine.md). `setup()` builds and measures once; `draw(t)` sets every style from `t` and the cues. Checkpoint with the user: the beat sheet and 3 style frames (opening, one feature scene, the strongest moment). 8. **Review loop.** See [reference/review.md](reference/review.md): `stills.mjs` at every handoff (`--debug` to measure), `npx hyperframes check` (catches text crossing text, contrast, overflow), a `--draft` render and a contact sheet. Fix, repeat, show the user frames as you go. 9. **Final render, verify, deliver.** See [reference/render.md](reference/render.md): `render.mjs` (240 fps master, motion blur, H.264 + AAC, poster), then `verify.py`, then send the files. For Reels, TikTok and Shorts read [reference/social.md](reference/social.md) first. 10. **Remember.** Add the film and the owner's reactions to the "Films" list in `videos/BRAND.md`, and turn lasting notes into owner choices. ## Quality floor (always, whatever the ingredients) - **Only the product's own colours, type and surfaces.** Never invent a colour, a card style or a tint outside the palette; depth and glow come from light (fog to the background colour, bloom on the accent), not from new colours. Parse its easing tokens (`PF.ease("cubic-bezier(...)")`) for UI moves; slams and whips use the kit's curves. - **Readable at the delivery size.** Fewer words beat smaller words. On a phone: body 40 px and up at 1080 wide, captions 48 px and up. Cut labels that restate the picture. - **Text is never covered** by a cursor, a chip or a texture. It never crosses other text in a move (fade the other text out first, then move). A line never re-centers while it builds: every word keeps its slot. - **Loading states keep their width.** Use the product's own loading pattern. - **Something happens on every beat.** A bar where nothing moves reads as slow (`beat-sheet.mjs` lists bars with no event). - **Scene boundaries land on bars.** A loop's last frame equals its first. A landing loop and a social cut must read muted. - **Keep inside the safe zone** of the platform (social UI covers the top and bottom of a 9:16 frame). - **Effects are built from the brand.** Slams, floods, shake, particles, bloom, grain and motion blur are the showreel's defaults, but each is made from the brand's own mark, colours, type and subject: the brand's dot flooding the frame, particles converging into its logo. Never a generic lens flare or a colour outside the palette. (Explainer mode, only on request: no effects the product's own UI does not use.) - **Rich, not flat.** At least half the scenes are lit 3D: environment map, glossy or glass materials, bloom on the one highlight only, fog and particles for depth, the camera re-framing every 2 beats. Exact brand swatches (paper, stickers, UI cards) stay unlit so they match. Words sit on clean colour over wide shots, never on top of detailed close-ups. ## Traps that cost real time (each one happened) - **A closing script tag inside any kit or inline script, even in a comment, breaks the film:** HyperFrames inlines scripts, so the rest of the file prints into the frame as text. - **`visibility: visible` on a child beats a hidden parent.** A shown element must be `visibility: inherit` (`PF.show` does this), or it leaks into every other scene. - **Measure only after every font has loaded.** `document.fonts.ready` waits only for fonts already in use; text you render in `setup()` (KaTeX, words) would be measured in a fallback font and every box would be off. `PF.film` loads every declared `@font-face` first. Re-measure after any font or layout change. - **Lint must see a literal `window.__timelines[""] = tl`.** Pass it as `register` to `PF.film`, and register only after the build (a timeline registered early renders blank). - **An invisible element still has a box.** `check` measures boxes, not pixels: end a scene (hide it) when its content has faded, not at the next scene's start, or it reports overlaps that are real on the frames in between. - **No CDN at render time.** Sandboxed and offline renders block `cdn.jsdelivr.net`: `setup.mjs` vendors GSAP, Three.js and KaTeX, and fonts come from local files with an `@font-face` each (lint requires it). - **Every `