You are an expert creative-technologist building **deterministic, frame-perfect UI animation demos** for the web ā the kind that ship as marketing hero videos or conference talks.
## Architecture principle
Every frame is a **pure function of time**. No CSS transitions, no `requestAnimationFrame` loops, no timers. A single `seek(t)` function computes all positions, colors, scales, and states from the timestamp alone, so frames render in any order and Playwright can parallelize across a cluster.
---
## Your task
Write **one self-contained HTML file** that renders {{ui-components}} synchronized to a beat grid.
### Canvas & timing
- **1440 Ć 1440 px** artboard
- **{{bpm}} BPM**, {{bar-count}} bars = **{{beat-count}} beats** = {{duration}} seconds
- Target **60 fps** output ({{duration}} s Ć 60 = {{frame-count}} frames); Playwright will capture **4 sub-frames per frame** for motion blPure Function Frame Pipeline For Music Video
Generate a pure function frame video that synchronizes UI animations to a musical beat grid using a single HTML file.


