Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
docs: add a product launch film skill
leepokai4f58acb92fea
diff --git a/.claude/skills/product-launch-film/SKILL.md b/.claude/skills/product-launch-film/SKILL.mdnew file mode 100644index 00000000..6e6c9acc--- /dev/null+++ b/.claude/skills/product-launch-film/SKILL.md@@ -0,0 +1,226 @@+---+name: product-launch-film+description: Make a product launch film (60–90 s, 1080p60) the way the Codync launch film was made — a white-stage, continuously moving film where every piece of product UI is rebuilt as DOM, type arrives word by word out of blur, and every beat sits on a music grid. Use when asked for a launch video, product film, promo, teaser, release video or App Store preview for an app or developer tool. Built on HyperFrames (one index.html, one GSAP timeline).+---++# Product launch film++The method that produced the Codync launch film (https://youtu.be/awhZJPjJaPc). The film itself+is not the point; the point is the method, which works for any product. Read the whole file+before writing anything.++The film is made in four passes, each with its own deliverable and its own sign-off:++1. **Story**: a beat sheet in `BRIEF.md` (no pixels yet)+2. **Look**: three or four stills of the key frames+3. **Motion**: a 30 fps draft of the whole film+4. **Finish**: sound, timing polish, the 60 fps delivery render++Never skip a pass to save time. A film that is wrong at the story level cannot be saved by motion.++---++## 1. Story: one idea per beat, every claim shown++### The arc++The film is a sequence of beats that each say exactly one thing. The arc that works:++| # | Beat | What it does | Length |+|---|---|---|---|+| 1 | **The pain** | Shows the world without the product as an overwhelming *image* (a pile of windows, a flood of notifications), not as a sentence. | 3–4 s |+| 2 | **The pain, named** | One short card that states it. | 2.5 s |+| 3 | **Meet [icon] Name** | The name lands with the icon, on a bar line, ideally where the music opens up. | 2.5 s |+| 4 | **What it is** | A rotating noun: "Your *A.* / *B.* / *C.* / *the actual thing.*" The last noun is in the accent colour. | 5 s |+| 5 | **What it does** | A wheel of concrete jobs next to a fixed label ("Tell them to …"), one job per beat. | 6–7 s |+| 6 | **The hero flow** | One real task end to end, shown on the real UI: trigger → open → the key interaction → the result → a follow-up action. This is the longest beat and the reason the film exists. | 10–12 s |+| 7 | **Breadth** | The same thing working for every variant side by side (a lineup of devices, integrations, platforms), each doing its own small task. | 6–7 s |+| 8+ | **Section card → capability**, repeated | An eyebrow (`GROUP CHATS`) and one line introduce each further capability, then that capability plays as its own micro-story. | 3 s + 5–10 s each |+| n−3 | **Scale** | A wall of many instances, drifting, then dissolved. | 3 s |+| n−2 | **The tagline** | The one sentence you want remembered, the payoff half in the accent colour. | 2.5 s |+| n−1 | **Proof cards** | Short facts that remove objections ("Built in Rust. Native everywhere.", "Open source. Totally free."), each with icons or a sub-line. | 3 s each |+| n | **Lockup** | Icon and name, the URL underneath, on the last strong bar. | 4 s |++### Rules for the story++- **One idea per beat.** If a card needs a comma to hold two ideas, it is two cards.+- **Show, don't claim.** Every capability named on a card must be *seen working* right after it:+ a tap, typed text, an approval, a result arriving. A claim nobody sees happen is cut.+- **Text and UI alternate.** A card gives the viewer a breath and a frame; the UI beat that+ follows fills it. Never two cards in a row except at the very end, and never two long UI beats+ without a card between them.+- **Real content only.** Real product names, plausible commands, real-looking numbers, consistent+ characters (the same four named bots recur across every scene). Lorem ipsum or "Task 1" kills+ credibility instantly.+- **Each micro-story has a payoff**: a check mark, "Shipped v1.4.2", "✓ 5 checks passed". End+ every UI beat on a visible result, not mid-action.+- **Escalate scope**: one thing → several side by side → a room of them → a wall of them. The+ camera pulls back as the scope grows.+- **The reveal move**: show something full-frame, then pull back to show it was inside something+ bigger (the Mac desktop turns out to be on a phone). Use it once; it is the film's "oh".+- Copy is short and plain: sentence case, a period at the end, at most about 6 words per card.++### Deliverable++`BRIEF.md` with the frontmatter (message, length, fps, bpm) and a beat table: start time,+on-screen text, what the UI does. Get it approved before building. Template:+[template/BRIEF.md](template/BRIEF.md).++---++## 2. Look: the visual grammar++These rules are what make the film feel "silky". Apply all of them; dropping one shows.++**Stage**+- White stage (`#fff`), near-black type (`#0b0b0c`), exactly **one accent colour** (the brand+ colour), used only for the payoff words and one highlight per UI scene.+- One grotesk for everything on cards: ~68 px, weight 500, letter-spacing −0.035em, line-height+ 1.16. Eyebrows 19 px, weight 600, tracking 0.16em, accent colour, uppercase.+- Fill or shadow, never a border line on filled shapes.+- Halftone texture on type cards only: dot fields that grow from two opposite corners at ~11 %+ opacity, cross-faded between two variants from card to card, off while UI is on stage.++**Type motion**+- Words enter one by one: from 20 px below, blur 12 → 0, opacity 0 → 1, `power3.out`, 0.7 s,+ 75 ms stagger.+- Words leave upward into blur: −22 px, blur 10, `power2.in`, 0.45 s, 40 ms stagger.+- The next line starts while the previous one is still leaving. Nothing ever waits on an empty+ stage.++**Transitions**+- **No hard cuts.** Scenes change by depth of field: the outgoing scene blurs to ~16 px and fades,+ the incoming one resolves from blur ~14 px and scale 0.9.+- Dense scenes (window piles, walls) leave through a **halftone wipe**: white dots on a 44 px grid+ grow until the stage is clean.+- The icon arrives through a **dot burst**: 16 dots fall into it from a ring, then it scales in+ from 0.3 with a −30° turn.++**Camera**+- The camera is never still. Every UI scene sits inside a `.cam` layer that drifts slowly+ (`sine.inOut` over the whole beat) between the deliberate moves.+- Push in on whatever is about to be touched (`expo.inOut`, ~1.3 s, scale ~2), touch it, then+ pull back to show the consequence. The viewer should never have to search for the action.++**UI is rebuilt, not recorded**+- Every screen is DOM built in script: device frames, chats, cards, notifications, lock screen,+ desktop windows. Screen recordings blur when the camera pushes in, cannot be re-worded and+ drift between takes; DOM stays sharp at 2× and is edited like text.+- Port the product's own design tokens: colours from its theme file, its font, its corner radii,+ its real icons and avatars (port drawing code to a canvas if the app draws them).+- Touches are visible: a translucent finger dot travels in, presses (scale 0.76) and leaves a+ ripple. Desktop actions use a real-looking cursor with a click squeeze.+- Messages pop in (`opacity 0, scale 0.9, y 14` → rest, `power3.out`) while the list scrolls up+ by the new item's measured height.++### Deliverable++Build the first scenes, then `./hf snapshot --no-end --at <t1>,<t2>,<t3>` on the key frames (the+pain image, the Meet card, the hero flow's key interaction, the lockup) and get the look approved+on stills before animating the rest.++---++## 3. Motion: the music grid++**Pick the tempo first, then cut to it.** Every beat of the film starts on the grid.++- Choose a bpm (112 worked: unhurried but moving). One beat = 60 / bpm s (0.5357 s at 112);+ one bar = 4 beats. Size the film in whole bars (40 bars = 85.7 s).+- Put the moments that matter on bar lines: the icon landing, the start of the hero flow, the+ lockup. Pin those as absolute times (`T12 = 38 bars`).+- Everything else is **chained**: each scene's start is computed from the previous scene's end+ (`const T6 = tOut4 + 0.5`), so moving one beat moves everything after it consistently.+- Music opening: low-pass the first 2–3 bars and let it open on the bar where the name lands.+- Rotating lists step on the beat or on a fixed fraction of it (the wheel steps every 0.402 s =+ 0.75 beat).++**Sound design** (all short, quiet, under the music)+- A soft pitched pop on every text switch, cycling through 4 pitches so a fast sequence plays as+ a little melody (`pop-a..d`, volume ~0.1).+- A soft click on every tap or cursor click (~0.28); a whoosh under big camera moves and wipes+ (~0.16); a pop under each arriving message (~0.16); a chime on success and on the lockup (~0.25).+- `<audio>` start times are static numbers in the HTML; when a beat moves, shift every cue after+ it by the same amount. Read the times off the timeline (`window.__marks`) instead of guessing.++### Deliverable++A 30 fps draft render of the whole film (`./hf render --fps 30 -o renders/draft.mp4`), watched+end to end with the user. Collect notes per beat, apply, re-render.++---++## 4. Finish++- Delivery: `./hf render --fps 60 --quality delivery -o renders/<name>.mp4`.+- Before calling it done, check the **rendered file**, not snapshots:+ - Extract frames around every transition (`ffmpeg -ss <t> -i film.mp4 -frames:v 1`) and look.+ - Flicker test: compare neighbouring frames. A large difference between frame k and k+1 but a+ small one between k and k+3 is flicker (different workers laid text out differently), not motion.+ - Every word readable for at least ~1.2 s after it settles; nothing clipped at the stage edge.+ - The final frame holds on the lockup for at least 2 s.+- Upload, then link the video from the README (a thumbnail image that links to the video; GitHub+ cannot embed players) and from the website.++---++## Build: one file, one timeline++Start from [template/](template/): copy it into the project's video folder (keep that folder out+of git; renders are large), then replace the example beats.++```+template/+ index.html stage, helpers (word split, wIn/wOut, cam, tap, pop, halftone, wipe, burst, wheel), example beats+ BRIEF.md the beat sheet to fill in first+ hf runs the HyperFrames CLI: ./hf snapshot | check | render+ hyperframes.json+ assets/fonts Geist + Geist Mono (all measured UI uses these)+ assets/sfx pop-a..d, pop, click-soft, whoosh, chime+ assets/bgm/ create it and put bed.mp3 there (a licensed track at the chosen bpm), then add the <audio id="bgm"> line+```++- **One `index.html`, one paused GSAP timeline** registered as `window.__timelines["main"]`. No+ sub-compositions, no clip elements. Scenes are absolutely positioned `.scene` divs switched with+ `autoAlpha`; every scene that moves has a `.cam` layer inside it.+- All DOM is built in `build()` from small factories (phone, message, card, window), then the+ timeline is written top to bottom in film order, one commented block per beat.+- Positions are **measured**, not hard-coded (`offsetHeight`, `getBoundingClientRect`), so copy+ can change without re-tuning every scroll.+- Expose the chained times (`window.__marks = { T4, tOpen, … }`) for audio cues and snapshots.+- Old cuts go to `versions/index.vN.html.txt` (a second root `.html` with a composition id is a+ lint error).++## Pitfalls that cost hours (all hit for real)++- **Font race = flicker.** Layout is measured in script, so `build()` must wait for every font+ face: `Promise.all([...document.fonts].map(f => f.load()), document.fonts.load("600 16px Geist"), …).then(() => document.fonts.ready).then(build, build)`.+ Otherwise each render worker gets its own line wraps and the film flickers at ~20 Hz with+ clipped bubbles.+- **`system-ui` / `ui-monospace` differ between snapshot and render.** Everything that is measured+ uses the bundled Geist / Geist Mono. For a native terminal look use `local("SFMono-Regular"),+ local("Menlo")` via `@font-face`, never `ui-monospace` (it falls back to a proportional font).+- **`fromTo` renders its from-state at build time.** Anything that must stay invisible until its+ tween (ripples, late elements, later scenes' layers) needs `immediateRender: false`.+- **Snapshots lie about timing-sensitive problems.** Verify from a real render.+- `hf check` reports intentional overlaps (a wheel of items); mark those elements with+ `data-layout-allow-overlap` instead of rearranging them.+- Use `./hf`, never `npx hyperframes` (different version, different renderer).+- Render speed on an M-series Mac: ~50 s for a 30 fps draft, ~1.5 min for 60 fps delivery of an+ 85 s film. Iterate on drafts.++## Working with the user++- Show stills before motion and a draft before the delivery render; ask for notes per beat.+- When the user rejects a look, ask what they liked in the rejected version before replacing it,+ then offer the plainest native version first (in the Codync film, plain macOS Terminal windows+ beat every stylised "IDE" treatment).+- Keep the previous cut in `versions/` so any reverted idea is one copy away.++## Worked example++The Codync film's source is at `videos/codync-silk/` in this repo (git-ignored, so only on the+author's machine). If it is there, read it for the full set of factories this template leaves out: the+pile of Terminal windows, the iPhone with chat, approval card and composer, the notification, the lock+screen with a Live Activity, the Mac app window, the landscape phone showing a remote desktop, the wall,+the platform icons.diff --git a/.claude/skills/product-launch-film/template/BRIEF.md b/.claude/skills/product-launch-film/template/BRIEF.mdnew file mode 100644index 00000000..ba449282--- /dev/null+++ b/.claude/skills/product-launch-film/template/BRIEF.md@@ -0,0 +1,40 @@+---+message: "<the one sentence the film must leave behind>"+aspect: 1920x1080+fps: 60+bpm: 112+length: 85.7s (40 bars)+accent: "#ff6200"+---++## Intent++<Two or three sentences: who watches this, what they should feel, what they should do after.>++## Characters and content++<The recurring named things (bots, projects, users) and the real content they show: commands,+file names, numbers. Keep them consistent across every scene.>++## Beats (seconds)++| t | bar | on screen | UI action / payoff |+| --- | --- | --- | --- |+| 0.0 | 0 | The pain as an image | |+| 3.4 | | "<the pain, named>" | |+| 6.4 | 3 | "Meet ▣ <Name>" | music opens |+| 8.9 | | "Your <A.> / <B.> / <real thing.>" | |+| 14.1 | | "<Label>" + wheel of jobs | |+| 20.9 | | Hero flow | trigger → open → key interaction → result → follow-up |+| | | Breadth lineup | |+| | | Card: "<EYEBROW> — <line>" | |+| | | Capability micro-story | payoff: |+| | | Wall | |+| | | "<tagline>" | |+| | | Proof card(s) | |+| 81.4 | 38 | Lockup: icon + name, URL | chime |++## Sound++Music: <track, bpm, licence>. Cues: pop on text switches, click on taps, whoosh on big moves,+chime on success and lockup.diff --git a/.claude/skills/product-launch-film/template/assets/fonts/geist-mono-sym.woff2 b/.claude/skills/product-launch-film/template/assets/fonts/geist-mono-sym.woff2new file mode 100644index 00000000..29dd20f5Binary files /dev/null and b/.claude/skills/product-launch-film/template/assets/fonts/geist-mono-sym.woff2 differdiff --git a/.claude/skills/product-launch-film/template/assets/fonts/geist-mono.woff2 b/.claude/skills/product-launch-film/template/assets/fonts/geist-mono.woff2new file mode 100644index 00000000..cf24126bBinary files /dev/null and b/.claude/skills/product-launch-film/template/assets/fonts/geist-mono.woff2 differdiff --git a/.claude/skills/product-launch-film/template/assets/fonts/geist.woff2 b/.claude/skills/product-launch-film/template/assets/fonts/geist.woff2new file mode 100644index 00000000..8f01e763Binary files /dev/null and b/.claude/skills/product-launch-film/template/assets/fonts/geist.woff2 differdiff --git a/.claude/skills/product-launch-film/template/assets/sfx/chime.mp3 b/.claude/skills/product-launch-film/template/assets/sfx/chime.mp3new file mode 100644index 00000000..12da953aBinary files /dev/null and b/.claude/skills/product-launch-film/template/assets/sfx/chime.mp3 differdiff --git a/.claude/skills/product-launch-film/template/assets/sfx/click-soft.mp3 b/.claude/skills/product-launch-film/template/assets/sfx/click-soft.mp3new file mode 100644index 00000000..2706b1d2Binary files /dev/null and b/.claude/skills/product-launch-film/template/assets/sfx/click-soft.mp3 differdiff --git a/.claude/skills/product-launch-film/template/assets/sfx/pop-a.mp3 b/.claude/skills/product-launch-film/template/assets/sfx/pop-a.mp3new file mode 100644index 00000000..aa4813b9Binary files /dev/null and b/.claude/skills/product-launch-film/template/assets/sfx/pop-a.mp3 differdiff --git a/.claude/skills/product-launch-film/template/assets/sfx/pop-b.mp3 b/.claude/skills/product-launch-film/template/assets/sfx/pop-b.mp3new file mode 100644index 00000000..b657db4eBinary files /dev/null and b/.claude/skills/product-launch-film/template/assets/sfx/pop-b.mp3 differdiff --git a/.claude/skills/product-launch-film/template/assets/sfx/pop-c.mp3 b/.claude/skills/product-launch-film/template/assets/sfx/pop-c.mp3new file mode 100644index 00000000..6e9c3e08Binary files /dev/null and b/.claude/skills/product-launch-film/template/assets/sfx/pop-c.mp3 differdiff --git a/.claude/skills/product-launch-film/template/assets/sfx/pop-d.mp3 b/.claude/skills/product-launch-film/template/assets/sfx/pop-d.mp3new file mode 100644index 00000000..03438beeBinary files /dev/null and b/.claude/skills/product-launch-film/template/assets/sfx/pop-d.mp3 differdiff --git a/.claude/skills/product-launch-film/template/assets/sfx/pop.mp3 b/.claude/skills/product-launch-film/template/assets/sfx/pop.mp3new file mode 100644index 00000000..e3ed16feBinary files /dev/null and b/.claude/skills/product-launch-film/template/assets/sfx/pop.mp3 differdiff --git a/.claude/skills/product-launch-film/template/assets/sfx/whoosh.mp3 b/.claude/skills/product-launch-film/template/assets/sfx/whoosh.mp3new file mode 100644index 00000000..e23e513dBinary files /dev/null and b/.claude/skills/product-launch-film/template/assets/sfx/whoosh.mp3 differdiff --git a/.claude/skills/product-launch-film/template/hf b/.claude/skills/product-launch-film/template/hfnew file mode 100755index 00000000..d5255550--- /dev/null+++ b/.claude/skills/product-launch-film/template/hf@@ -0,0 +1,4 @@+#!/bin/sh+# Runs the HyperFrames plugin CLI (newest installed version). Never `npx hyperframes`.+d=$(ls -d "$HOME"/.claude/plugins/cache/hyperframes/hyperframes/*/ | sort -V | tail -1)+exec node "${d}skills/hyperframes/scripts/plugin-cli.mjs" "$@"diff --git a/.claude/skills/product-launch-film/template/hyperframes.json b/.claude/skills/product-launch-film/template/hyperframes.jsonnew file mode 100644index 00000000..08fb6813--- /dev/null+++ b/.claude/skills/product-launch-film/template/hyperframes.json@@ -0,0 +1,13 @@+{+ "$schema": "https://hyperframes.heygen.com/schema/hyperframes.json",+ "registry": "https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry",+ "paths": {+ "blocks": "compositions",+ "components": "compositions/components",+ "assets": "assets"+ },+ "media": {+ "autoProxy": true+ },+ "authoringSkill": "general-video"+}diff --git a/.claude/skills/product-launch-film/template/index.html b/.claude/skills/product-launch-film/template/index.htmlnew file mode 100644index 00000000..ef10e158--- /dev/null+++ b/.claude/skills/product-launch-film/template/index.html@@ -0,0 +1,341 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=1920, height=1080" />+ <title>Product — launch film</title>+ <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>+ <style>+ @font-face { font-family: Geist; font-weight: 100 900; src: url("assets/fonts/geist.woff2") format("woff2"); }+ @font-face { font-family: "Geist Mono"; font-weight: 100 900; src: url("assets/fonts/geist-mono.woff2") format("woff2"); }+ :root { --ink: #0b0b0c; --accent: #ff6200; }+ * { margin: 0; padding: 0; box-sizing: border-box; }+ html, body { width: 1920px; height: 1080px; overflow: hidden; background: #fff; }+ #root {+ position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff; color: var(--ink);+ font-family: Geist, sans-serif; -webkit-font-smoothing: antialiased;+ }+ .scene { position: absolute; inset: 0; visibility: hidden; opacity: 0; }+ .cam { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }+ .accent { color: var(--accent); }++ /* cards */+ .line {+ position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;+ font-size: 68px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.16; white-space: nowrap;+ }+ .lt { display: flex; align-items: center; }+ .w { display: inline-block; white-space: pre; opacity: 0; }+ .eyebrow { font-size: 19px; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 18px; opacity: 0; }+ #noun-slot { position: relative; display: block; }+ .noun { position: absolute; left: 0; top: 0; display: block; opacity: 0; }+ .noun.final { position: relative; }++ /* the mark (replace with <img src="assets/icon.png">) */+ .icw { position: relative; display: block; margin: 0 20px 0 4px; }+ .mark { display: block; width: 78px; height: 78px; border-radius: 20px; background: var(--accent); opacity: 0; }+ .mark.big { width: 124px; height: 124px; border-radius: 30px; }+ .clip { display: block; overflow: hidden; padding: 8px 6px 8px 0; }+ .name { display: block; opacity: 0; }+ #lk-name { font-size: 112px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }+ #lk-sub { margin-top: 36px; font-size: 30px; font-weight: 400; letter-spacing: -0.01em; color: #8e8e93; display: flex; }++ /* halftone */+ #ht { position: absolute; inset: 0; opacity: 0; }+ #ht div { position: absolute; inset: 0; background-size: 100% 100%; }+ #ht-b { opacity: 0; }+ .wipe {+ position: absolute; inset: -22px; visibility: hidden; opacity: 0; --r: 0;+ background-image: radial-gradient(circle, #fff calc(var(--r) * 1px), rgba(255, 255, 255, 0) calc(var(--r) * 1px + 1.5px));+ background-size: 44px 44px;+ }+ .burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }+ .burst i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 5px; background: var(--ink); opacity: 0; display: block; }++ /* wheel */+ #wheel-label { position: absolute; right: 1150px; top: 500px; height: 80px; display: flex; align-items: center; font-size: 46px; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }+ #wheel { position: absolute; left: 160px; top: 540px; width: 0; height: 0; }+ .spoke { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }+ .item { position: absolute; left: 640px; top: -40px; height: 80px; display: flex; align-items: center; font-size: 46px; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; opacity: 0; }++ /* phone */+ .phone {+ position: absolute; top: 114px; width: 393px; height: 852px; border-radius: 56px;+ box-shadow: 0 0 0 10px var(--ink), 0 0 0 11.5px #3b3b3e, 0 50px 100px rgba(0, 0, 0, 0.13), 0 16px 32px rgba(0, 0, 0, 0.07);+ }+ .screen { position: absolute; inset: 0; border-radius: 56px; overflow: hidden; background: #fdfdfd; color: #141414; letter-spacing: -0.01em; }+ .island { position: absolute; left: 134.5px; top: 12px; width: 124px; height: 36px; border-radius: 20px; background: #000; }+ .view { position: absolute; left: 0; right: 0; top: 112px; height: 656px; overflow: hidden; }+ .msgs { position: absolute; left: 16px; right: 16px; top: 0; }+ .m { position: absolute; left: 0; right: 0; display: flex; }+ .m.user { justify-content: flex-end; }+ .b { max-width: 296px; padding: 9px 14px; border-radius: 21px; font-size: 16px; line-height: 21px; }+ .user .b { background: #e2e2e2; }+ .agent .b { background: #f0f0f0; }+ .pop { opacity: 0; transform-origin: 0 100%; }+ .user .pop { transform-origin: 100% 100%; }+ .btn { margin-top: 10px; height: 46px; border-radius: 16px; background: #fff; display: flex; align-items: center; padding: 0 14px; font-weight: 600; }+ .touch, .ripple { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 23px; opacity: 0; }+ .touch { background: rgba(20, 20, 20, 0.2); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7) inset, 0 2px 8px rgba(0, 0, 0, 0.12); z-index: 9; }+ .ripple { border: 2px solid rgba(20, 20, 20, 0.35); z-index: 8; }+ </style>+ </head>+ <body>+ <!-- data-duration = whole bars of the chosen bpm -->+ <div id="root" data-composition-id="main" data-start="0" data-duration="25.71" data-width="1920" data-height="1080">+ <div id="ht"><div id="ht-a"></div><div id="ht-b"></div></div>++ <div class="scene" id="s-cards">+ <div class="line" id="c-pain"><div class="lt"><span data-split>Shipping got complicated.</span></div></div>+ <div class="line" id="c-meet">+ <div class="lt">+ <span class="w">Meet </span>+ <span class="icw"><span class="mark" id="meet-mark"></span><span class="burst" id="burst-meet"></span></span>+ <span class="clip"><span class="name" id="meet-name">Product</span></span>+ </div>+ </div>+ <div class="line" id="c-your">+ <div class="lt">+ <span class="w" id="your-w">Your </span>+ <span id="noun-slot">+ <span class="noun">laptop.</span>+ <span class="noun">phone.</span>+ <span class="noun final accent">whole team.</span>+ </span>+ </div>+ </div>+ </div>++ <div class="scene" id="s-wheel">+ <div id="wheel-label"><span data-split>Ask it to</span></div>+ <div id="wheel"></div>+ </div>++ <div class="scene" id="s-hero"><div class="cam" id="cam-hero"></div></div>++ <div class="scene" id="s-end">+ <div class="line" id="c-tag">+ <div class="lt"><span data-split>The one sentence</span></div>+ <div class="lt accent"><span data-split>people remember.</span></div>+ </div>+ <div class="line" id="c-lock">+ <div class="lt">+ <span class="icw"><span class="mark big" id="lk-mark"></span><span class="burst" id="burst-lk"></span></span>+ <span class="clip"><span class="name" id="lk-name">Product</span></span>+ </div>+ <div id="lk-sub"><span data-split>product.dev</span></div>+ </div>+ </div>+ <div class="wipe" id="wipe1"></div>++ <!-- audio: static start times, read them off window.__marks after any timing change.+ Music: add an <audio id="bgm"> for assets/bgm/bed.mp3 (data-start 0, full duration, track 10, volume 0.85). -->+ <audio id="sfx-0" src="assets/sfx/pop-a.mp3" data-start="0.3" data-duration="0.26" data-track-index="20" data-volume="0.1"></audio>+ <audio id="sfx-1" src="assets/sfx/pop-d.mp3" data-start="3.21" data-duration="0.26" data-track-index="21" data-volume="0.16"></audio>+ <audio id="sfx-2" src="assets/sfx/chime.mp3" data-start="23.57" data-duration="2.14" data-track-index="22" data-volume="0.25"></audio>+ </div>++ <script>+ function build() {+ const $ = (s, r = document) => r.querySelector(s);+ const $$ = (s, r = document) => Array.from(r.querySelectorAll(s));++ /* ── music grid ── */+ const BPM = 112, BEAT = 60 / BPM, BAR = BEAT * 4;+ const bar = (n) => n * BAR;++ /* ── DOM ── */+ // halftone corner fields: dots shrink away from two opposite corners+ function htField(heavy, light) {+ const c = document.createElement("canvas");+ c.width = 1920; c.height = 1080;+ const ctx = c.getContext("2d"), step = 44, f = [{ x: heavy[0], y: heavy[1], r: 980 }, { x: light[0], y: light[1], r: 540 }];+ ctx.fillStyle = "rgba(11,11,12,0.11)";+ for (let y = step / 2; y < 1080; y += step) for (let x = step / 2; x < 1920; x += step) {+ const r = step * 0.46 * Math.max(...f.map((k) => 1 - Math.hypot(x - k.x, y - k.y) / k.r));+ if (r > step * 0.07) { ctx.beginPath(); ctx.arc(x, y, r, 0, Math.PI * 2); ctx.fill(); }+ }+ return `url(${c.toDataURL("image/png")})`;+ }+ $("#ht-a").style.backgroundImage = htField([1920, 1080], [0, 0]);+ $("#ht-b").style.backgroundImage = htField([0, 1080], [1920, 0]);+ $$(".burst").forEach((b) => (b.innerHTML = "<i></i>".repeat(16)));++ // split [data-split] text into .w words+ $$("[data-split]").forEach((el) => {+ const words = el.textContent.trim().split(" ");+ el.textContent = "";+ el.style.display = "flex";+ words.forEach((w, i) => {+ const s = document.createElement("span");+ s.className = "w";+ s.textContent = w + (i < words.length - 1 ? " " : "");+ el.appendChild(s);+ });+ });++ // wheel of concrete jobs+ const JOBS = ["fix the failing checks.", "review the pull request.", "write the changelog.", "run the benchmarks.", "ship it."];+ const DEG = 9, wheel = $("#wheel");+ JOBS.forEach((t, i) => {+ const sp = document.createElement("div");+ sp.className = "spoke";+ sp.style.transform = `rotate(${i * DEG}deg)`;+ sp.innerHTML = `<div class="item" data-layout-allow-overlap>${t}</div>`;+ wheel.appendChild(sp);+ });+ const items = $$(".item", wheel);++ // phone factory: rebuild the product's real screens here, with its own tokens+ function phone(x) {+ const el = document.createElement("div");+ el.className = "phone";+ el.style.left = x - 196.5 + "px";+ el.innerHTML = `<div class="screen"><div class="view"><div class="msgs"></div></div><div class="island"></div><div class="ripple"></div><div class="touch"></div></div>`;+ return el;+ }+ function layout(parent, gap) {+ let y = 0;+ Array.from(parent.children).forEach((m) => { m.style.top = y + "px"; m._top = y; m._h = m.offsetHeight; y += m._h + gap; });+ return y - gap;+ }+ const rel = (el, anc) => { const a = el.getBoundingClientRect(), b = anc.getBoundingClientRect(); return { x: a.left - b.left + a.width / 2, y: a.top - b.top + a.height / 2 }; };+ const camHero = $("#cam-hero"), P = phone(960);+ camHero.appendChild(P);+ const ms = $(".msgs", P);+ ms.innerHTML =+ `<div class="m user"><div class="b">Can you fix the failing check?</div></div>` ++ `<div class="m agent"><div class="b">It needs to edit <code>src/week.js</code>.<div class="btn" id="allow">Allow once</div></div></div>` ++ `<div class="m agent"><div class="b pop">Done. All 5 checks pass.</div></div>`;+ const H = layout(ms, 10), msgs = $$(".m", ms), HV = 656;+ const msY = (i) => Math.min(8, HV - 12 - (msgs[i]._top + msgs[i]._h));+ const allow = rel($("#allow"), P);++ /* ── timeline helpers ── */+ const tl = gsap.timeline({ paused: true });+ const blur = (n) => `blur(${n}px)`;+ const show = (el, t) => tl.fromTo(el, { autoAlpha: 0 }, { autoAlpha: 1, duration: 0.01, ease: "none" }, t);+ const hide = (el, t) => tl.to(el, { autoAlpha: 0, duration: 0.01, ease: "none" }, t);+ const words = (sel) => (typeof sel === "string" ? $$(sel + " .w") : sel);+ const wIn = (sel, t, o = {}) => tl.fromTo(words(sel), { y: 20, opacity: 0, filter: blur(12) }, { y: 0, opacity: 1, filter: blur(0), duration: o.d || 0.7, ease: "power3.out", stagger: o.s || 0.075 }, t);+ const wOut = (sel, t, o = {}) => tl.to(words(sel), { y: -22, opacity: 0, filter: blur(10), duration: 0.45, ease: "power2.in", stagger: o.s || 0.04 }, t);+ const cam = (cx, cy, s) => ({ x: 960 - cx * s, y: 540 - cy * s, scale: s });+ const pop = (el, t) => tl.fromTo(el, { opacity: 0, scale: 0.9, y: 14 }, { opacity: 1, scale: 1, y: 0, duration: 0.5, ease: "power3.out" }, t);+ function tap(root, x, y, t, from) {+ const dot = $(".touch", root), rip = $(".ripple", root);+ tl.fromTo(dot, { x: from.x, y: from.y, opacity: 0, scale: 1 }, { x, y, opacity: 1, duration: 0.6, ease: "power2.inOut" }, t - 0.72);+ tl.to(dot, { scale: 0.76, duration: 0.09, ease: "power2.out" }, t - 0.02);+ tl.to(dot, { scale: 1, duration: 0.22, ease: "power2.out" }, t + 0.1);+ tl.to(dot, { opacity: 0, duration: 0.3 }, t + 0.32);+ tl.fromTo(rip, { x, y, scale: 0.8, opacity: 0.55 }, { scale: 2.3, opacity: 0, duration: 0.55, ease: "power2.out", immediateRender: false }, t);+ }+ const htOn = (t) => tl.to("#ht", { opacity: 1, duration: 0.7, ease: "power2.out" }, t);+ const htOff = (t) => tl.to("#ht", { opacity: 0, duration: 0.5, ease: "power2.in" }, t);+ const htSwap = (t, toB) => { tl.to("#ht-a", { opacity: toB ? 0 : 1, duration: 0.9, ease: "sine.inOut" }, t); tl.to("#ht-b", { opacity: toB ? 1 : 0, duration: 0.9, ease: "sine.inOut" }, t); };+ function wipe(id, t) {+ tl.set(id, { autoAlpha: 1 }, t);+ tl.fromTo(id, { "--r": 0 }, { "--r": 32, duration: 0.8, ease: "power2.in", immediateRender: false }, t);+ tl.to(id, { autoAlpha: 0, duration: 0.45, ease: "power1.out" }, t + 0.95);+ }+ function burst(id, t) {+ $$(id + " i").forEach((d, i) => {+ const a = (i / 16) * Math.PI * 2 + 0.3, R = 120 + (i % 3) * 34;+ tl.fromTo(d, { x: Math.cos(a) * R, y: Math.sin(a) * R, scale: 1.5, opacity: 0 }, { x: 0, y: 0, scale: 0.4, opacity: 1, duration: 0.42, ease: "power3.in" }, t + (i % 4) * 0.025);+ tl.set(d, { opacity: 0 }, t + 0.42 + (i % 4) * 0.025);+ });+ }+ const markIn = (mark, name, t) => {+ tl.fromTo(mark, { opacity: 0, scale: 0.3, rotation: -30, filter: blur(8) }, { opacity: 1, scale: 1, rotation: 0, filter: blur(0), duration: 0.8, ease: "power4.out" }, t);+ tl.fromTo(name, { xPercent: -45, opacity: 0, filter: blur(8) }, { xPercent: 0, opacity: 1, filter: blur(0), duration: 0.85, ease: "power3.out" }, t + 0.28);+ };+ tl.fromTo("#ht", { scale: 1 }, { scale: 1.08, duration: 25.71, ease: "none" }, 0);++ /* ══ beats, in film order ═══════════════════════════════ */++ /* the pain, named */+ show("#s-cards", 0);+ htOn(0.1);+ wIn("#c-pain", 0.3);+ wOut("#c-pain", 2.7);++ /* Meet ▣ Product — the mark lands on bar 1.5 */+ const TM = bar(1.5);+ wIn([$("#c-meet .w")], TM - 0.27);+ burst("#burst-meet", TM - 0.36);+ markIn("#meet-mark", "#meet-name", TM);+ tl.to($$("#c-meet .w, #meet-mark, #meet-name"), { y: -22, opacity: 0, filter: blur(10), duration: 0.45, ease: "power2.in", stagger: 0.05 }, TM + 2.0);++ /* Your <rotating noun> */+ const TY = TM + 2.5, nouns = $$(".noun");+ wIn([$("#your-w")], TY);+ nouns.forEach((n, i) => {+ const t = TY + 0.15 + i * BEAT * 1.5;+ tl.fromTo(n, { y: 22, opacity: 0, filter: blur(10) }, { y: 0, opacity: 1, filter: blur(0), duration: 0.55, ease: "power3.out" }, t);+ if (i < nouns.length - 1) tl.to(n, { y: -22, opacity: 0, filter: blur(10), duration: 0.32, ease: "power2.in" }, t + BEAT * 1.5 - 0.2);+ });+ const TYo = TY + 0.15 + nouns.length * BEAT * 1.5 + 0.6;+ tl.to([$("#your-w"), nouns[nouns.length - 1]], { y: -22, opacity: 0, filter: blur(10), duration: 0.45, ease: "power2.in", stagger: 0.05 }, TYo);+ hide("#s-cards", TYo + 0.6);++ /* the wheel: one job per 0.75 beat */+ const TW = TYo + 0.35;+ show("#s-wheel", TW);+ wIn("#wheel-label", TW + 0.1);+ const fo = (d) => (d < 0.5 ? 1 : d < 1.5 ? 0.5 : d < 2.5 ? 0.22 : d < 3.5 ? 0.07 : 0);+ const fb = (d) => (d < 0.5 ? 0 : d < 1.5 ? 0.7 : d < 2.5 ? 1.8 : 3.6);+ function wheelTo(k, t, d, ease) {+ tl.to(wheel, { rotation: -k * DEG, duration: d, ease }, t);+ items.forEach((it, i) => tl.to(it, { opacity: fo(Math.abs(i - k)), filter: blur(fb(Math.abs(i - k))), duration: d, ease }, t));+ }+ tl.set(wheel, { rotation: 4 * DEG }, TW);+ wheelTo(0, TW + 0.35, 0.9, "power3.out");+ let wt = TW + 1.35;+ for (let k = 1; k < JOBS.length; k++) { wheelTo(k, wt, 0.34, "power2.inOut"); wt += BEAT * 0.75; }+ wheelTo(JOBS.length + 3, wt + 0.4, 0.6, "power2.in");+ wOut("#wheel-label", wt + 0.45);+ hide("#s-wheel", wt + 1.15);+ const THo = wt + 0.8;+ htOff(THo - 0.35);++ /* hero flow: open → push in → tap → result → pull back */+ show("#s-hero", THo);+ tl.set(ms, { y: msY(1) }, THo);+ tl.fromTo(P, { autoAlpha: 0, scale: 0.9, y: 40, filter: blur(14) }, { autoAlpha: 1, scale: 1, y: 0, filter: blur(0), duration: 1.0, ease: "expo.out" }, THo);+ tl.fromTo(camHero, cam(960, 540, 1.0), { ...cam(960, 114 + allow.y, 1.9), duration: 1.3, ease: "expo.inOut" }, THo + 0.9);+ const tTap = THo + 2.6;+ tap(P, allow.x - 40, allow.y, tTap, { x: 300, y: 760 });+ tl.to("#allow", { backgroundColor: "#ececec", duration: 0.1 }, tTap);+ tl.to(ms, { y: msY(2), duration: 0.55, ease: "power3.out" }, tTap + 0.6);+ pop($(".pop", msgs[2]), tTap + 0.65);+ tl.to(camHero, { ...cam(960, 540, 0.95), duration: 1.3, ease: "expo.inOut" }, tTap + 1.4);+ const tOut = tTap + 2.9;+ tl.fromTo(camHero, { opacity: 1, filter: blur(0) }, { opacity: 0, filter: blur(16), duration: 0.6, ease: "power2.in", immediateRender: false }, tOut);+ hide("#s-hero", tOut + 0.65);++ /* tagline */+ const TT = tOut + 0.55;+ htSwap(TT - 0.4, true);+ htOn(TT);+ show("#s-end", TT - 0.1);+ wIn("#c-tag", TT, { s: 0.07 });+ wOut("#c-tag", TT + 2.3, { s: 0.03 });++ /* lockup, pinned to its bar */+ const TL = bar(11);+ burst("#burst-lk", TL - 0.36);+ markIn("#lk-mark", "#lk-name", TL);+ wIn("#lk-sub", TL + 0.85, { s: 0.05, d: 0.6 });++ window.__marks = { TM, TY, TW, THo, tTap, tOut, TT, TL };+ window.__timelines["main"] = tl;+ if (window.__hfForceTimelineRebind) window.__hfForceTimelineRebind();+ }+ // Layout is measured in script: build only once every face is in, or each render worker+ // gets its own line wraps and the frames flicker between them.+ Promise.all([+ ...Array.from(document.fonts).map((f) => f.load().catch(() => null)),+ document.fonts.load("500 68px Geist"), document.fonts.load("600 16px Geist"), document.fonts.load('400 14px "Geist Mono"'),+ ]).then(() => document.fonts.ready).then(build, build);+ </script>+ </body>+</html>