--- name: breakout-card description: "Style for edit-video: a white grid page with the speaker in a rounded card along the bottom and their head breaking out above it, dark pills and cards that blur in and out, and one-to-two-word Montserrat captions, cut against full-camera beats. Use for talking-head explainers that alternate graphics with personal lines, or when the creator asks for the head pop-out card." --- # Breakout card A style on top of `edit-video`, which owns the cut, sound and review. The speaker sits in a rounded card along the bottom of a white grid page, and their head (and raised hands) break out above the card's top edge. Above them, one dark pill or card at a time explains the line, and one or two words of caption sit between the graphic and the head. Full-camera beats cut in for personal lines. ## The look (tested defaults) | Element | Setting | |---|---| | Page | `#fcfcfd` with a static 54px grid in `#eaeaef` | | Card | x 60–1020, top 1395, 18px radius, bleeding off the bottom; the camera's full width fills it | | Breakout | The card's top edge cuts just above the eyes or glasses, so hair or a cap rise about 150–180px above it | | Graphics | Dark material `#1c1c1f`, white text, one soft shadow, a faint inner rim. Pills 96px tall, cards 34–36px radius, at y 200–1000 | | Type | Montserrat (OFL, bundled in `assets/fonts`). Pills 38px Bold, card text 32–37px SemiBold, headline 112px ExtraBold + 150px Black with grey-gradient ink | | Captions | One or two words, lowercase as spoken, Montserrat Bold 60px. Page: dark ink between the graphic and the head. Camera: white, above the head | | Accent | Navy for tags, lines and badges. Green and red only for a real check or a real strike | Tokens sit in `scripts/breakout.py` (`TOKENS`); component CSS in `assets/breakout-card.css`. ## Layouts and rhythm - **Page** for every informational beat. **Cam** (full frame) for personal lines and the name drop. **Camz** adds a slow push (1.2→1.27) for a re-hook like "here's the catch". - Alternate every 4–10s with hard cuts, placed on the cut's jump cuts where possible so the jump hides inside the layout change. - **Frame 1 is the page with real proof already moving**, such as a tilted capture flying in. - On a camera beat, a big white title can replace the caption for the name drop. ## Captions Write the chunks from the verified transcript with ASR timing: one or two words, about 0.3–0.7s each, breaking on punctuation, lowercase except file names and the CTA keyword. They are baked into the render because the font and word rhythm are the look; the compiler writes `captions.json` so a wording fix is a quick re-render. A chunk crossing a layout change splits and restyles automatically. Check the longest chunk in both layouts against `edit-video`'s safe area. ## Graphics vocabulary | Component | Use | |---|---| | `shot` | Real capture as a 3D-tilted card, optional highlight sweep. `drop=True` for frame 1 | | `counter_pill` | A spoken figure counting up to the real value | | `headline` | Small line, then a huge and a mega word | | `tile_drop` | A file drops into a folder tile | | `checklist` | Card whose items appear and tick on their words | | `pill` | One idea in a capsule; `ok_at` adds a check, `strike_at` a red strike and cross | | `cursor_click` | Hand cursor clicks a pill | | `tree` + `tree_wander` / `tree_straight` | An agent wandering through folders vs. going straight to the right one | | `doc_card`, `chip` | A file that fills as it is described, then shrinks to a chip | | `comment` | CTA: a viewer comment types the keyword, chips pop for what they get | | `title` | Big white name drop over the camera | Everything **blurs into focus** (opacity 0, scale .7–.86, blur 16px → sharp in about .35s) and **blurs away** (.25s). One graphic group at a time; it enters on the noun and acts on the verb. Real captures for facts; mockups stay generic and unmeasured meters say `illustrative`. ## Head breakout plates `scripts/build_plates.py` turns the cut camera plate (1080×1920, silent is fine) into a page plate and a full-camera plate. Needs Python 3.10+, `numpy` and `opencv-python`. 1. `prep ` converts to a constant frame rate and makes the person matte: Apple Vision on macOS (compiled from `person-matte.swift`, needs the Xcode command line tools). Elsewhere, pass `--matte