# Preset 001 Zayyan Blue Glass

> Preset 001 'Blue Glass' - a full editing skill locked to one captured style: the measured royal-blue glassmorphism portfolio-reel look (soft blue gradients, floating glass UI cards, dotted connectors, the speaker composited into the scene, kinetic mapped text). Same structure and depth as every skill in this pack, with the look, motion and pacing pre-decided from a measured reference. Use when a client wants this exact soft-blue premium reel.

- Skill: `wanfeng1028/preset-001-zayyan-blue-glass` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add wanfeng1028/preset-001-zayyan-blue-glass`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wanfeng1028/preset-001-zayyan-blue-glass/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Wanfeng1028 (https://skillmd.com/u/wanfeng1028)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/wanfeng1028/preset-001-zayyan-blue-glass

---


# Preset 001 - Blue Glass (a full skill, locked to one style)

**A preset is not a separate thing.** It is the same skill as everything else in
this pack - same sections, same depth, same laws - but the look, motion grammar
and pacing are **pre-decided from a captured reference** instead of chosen.

**Provenance.** Captured from "Turning ideas into visuals" (an editor portfolio
reel, 31 s, 16:9) via a frame-level contact sheet (1 s sampling, 32 frames).
Palette = **measured** (sampled from the frames). Motion, audio and exact cut
times = **inferred** from frames. This is a captured style, requested by the user.

**Scope.** Portfolio and personal-brand reels in this captured style: hook,
identity, tools, client questions, proof, close. 20-40 s, 16:9 with a 9:16 cut.

**Asset tier: 2.** The look is graphics-heavy but the piece is a person - it
needs **the speaker's footage** (supplied by the user, not generated). All
generatable assets get prompts in ASSETS-PROMPT.md.

**Parent skill (PRESET -> SKILL LINKAGE).** This preset is the locked look for **`skills/agency-showreel/SKILL.md`**. When a client asks for this exact style, build from this preset; when the AI triggers `agency-showreel` by name, the skill carries the same reference-learned patterns.

> **CAPTURED STYLE.** The palette and surfaces below are the measured
> reference, requested by the user. The Apple
> Standard's type proportions, motion grammar, readability, word-sync and QA
> still apply — only the palette and surfaces are overridden.

**Scope.** Showreels (45–90 s), sector reels (30–60 s), capability films (60–120 s), project case studies (60–180 s), social teasers (15–30 s).

**Asset tier: 2.** The reel is built from the studio's own finished work; nothing can be invented. Tier 1 elements (title cards, transitions, contact end card, kinetic type) are synthesizable. **Ask first.**

## STEP 0 — SOURCE GATE (mandatory, BEFORE the assets prompt)

**You cannot plan assets without the material.** Before writing
`ASSETS-PROMPT.md`, obtain at least ONE of:

1. **the video clip** — the footage to edit, or
2. **the voiceover / audio** — the narration track, or
3. **the transcript / script** — the words.

Ask for it up front. If the build is genuinely from-scratch graphics (no source
exists), say so and record it — the concept you write becomes the script.

**Then analyse the source and save the evidence** as `SOURCE-ANALYSIS.json`:

- **If a clip -> video analytics:** `ffprobe` (codec, size, fps, duration, audio
  channels); scene detection for cut times and ASL
  (`ffmpeg -i in.mp4 -filter:v "select='gt(scene,0.3)',showinfo" -f null -`);
  loudness (integrated LUFS + true peak); palette sample (quantise frames ->
  hex); beat/BPM if there is music.
- **If audio -> word-level transcription:** faster-whisper with
  `word_timestamps=True` -> a JSON of `{word, start, end}` per word, plus
  segments. This drives the Visual Narration Plan, the captions and the word
  sync. Recipe: decode to 16 kHz mono WAV with ffmpeg, pass a numpy array, run
  with `MKL_THREADING_LAYER=GNU OMP_NUM_THREADS=1` and `cpu_threads=1`, model
  `tiny` (base/small for accuracy).
- **If text only ->** the sentence list, mapped to the Sentence Law table.

**Only once the source is in hand and analysed** do you write
`ASSETS-PROMPT.md` — so every prompt reflects what the build actually needs.

## STEP 0.5 — A-ROLL PREP (matting first — mandatory when a person speaks)

If this piece has a **person speaking to camera** (talking-head, voiceover,
avatar, podcast), the **first job is the background**, before the concept.
Decide the path in `a-roll-matting`: **keep it / matte it / key it** — and by
default get the character **off the background** (or onto green). Matte FIRST
unlocks text-behind-subject, screen replacement, graphic backgrounds and floating
UI. Use `tools/matte.py` for the local matte (rembg + ffmpeg). Record the matte
as an asset in the manifest and check it at the QA gate (no holes, no baked-
caption artifacts, stable alpha). If the background is the message, keep it.

## STEP 1 — CONCEPT.md (write the plan before any prompt)

With the source analysed, write **CONCEPT.md** — the single plan the whole build
follows. **Everything is connected: every line here drives a later stage, and
every later stage writes its result back here.** Follow `THINKING-SYSTEM.md` — the
planning stack, the four lenses (EZRA), and (when you have only a script) the
only-a-script path.

- **Premise** — the video in one sentence + its emotional arc.
- **THINKING PASS (mandatory).** Work the stack **top-down** — goal -> audience ->
  angle -> concept -> script -> beats -> shots — and record:
  - the target **emotion** per section (EZRA: Emotion, Story, Rhythm, Action);
  - the **beat map** with the **two-column (said | shown)** filled for every row;
  - the **visual plan** table: beat -> viewer question -> visual evidence ->
    risk to review -> final asset;
  - the **retention check** — where the video is most likely to lose people, and
    the fix.
- **Style** — the named build style (this skill) and how it applies here.
- **STYLE PASS (mandatory).** Pick deliberately and record: the **motion style**
  and the **UI style** from `MOTION-UI-STYLE-LIBRARY.md`, and the **caption
  style** from `CAPTION-STYLES.md`. One primary + at most one garnish; name the
  chosen style's failure mode.
- **Segment plan** — the beat map with timings, taken from the analysis.
- **Sentence table** — one row per narration sentence: sentence -> visual concept
  -> lane (A speaker / B visual) -> the **stressed word** to land on -> timing ->
  element bindings -> **camera** (reason + target + zoom). (The Sentence Law.)
- **Camera-track plan** — the ordered camera entries
  (READ / EMPHASIZE / REVEAL / FOLLOW / BREATHE) with their word bindings.
  (The Camera Law.)
- **FEATURE MAP — the Feature Pass (mandatory).** Walk the **full catalogue** in
  `ADVANCED-FEATURE-USE-CASES.md` — camera & framing, motion & animation, speed &
  time, transitions, text, colour, compositing & VFX, audio, AI, stills & design,
  workflow — and record for **every** feature whether it applies and how:
  `feature -> applies? -> where (scene/timecode/sentence) -> how (implementation)
  -> why (the job it does)`. **Every group is visited; no group is skipped.** The
  concept is not finished until every applicable advanced feature has a row (a
  "yes" with no *how* is not a plan; every "no" is a deliberate choice).
- **Contact-sheet plan** — which sign-off variants will be built (V1 Classic Grid
  / V2 Storyboard Filmstrip / V3 Pro QC Sheet) and why. **The variant the user
  picks is written back here.**
- **Sync map** — the word-level timings that drive text and visuals.
- **Asset manifest** — what the build needs (fed by the feature map); this feeds
  STEP 2.

Then STEP 2 writes `ASSETS-PROMPT.md` from this plan.

### PIPELINE CONNECTIVITY LAW (mandatory)
Everything is connected — no stage is decided in isolation, and no stage is
skipped:

- **SOURCE** -> analysed into `SOURCE-ANALYSIS.json`, which feeds the concept.
- **CONCEPT** -> drives the thinking pass, the style pass, the asset manifest, the
  camera track, the sentence table and the feature map; it is the single source of
  truth for the build.
- **ASSETS-PROMPT** -> written from the concept's manifest; nothing unplanned
  appears in the build.
- **BUILD** -> follows the concept's sentence table, camera track and feature map
  exactly.
- **RENDER GATE** -> the contact-sheet variants visualise the concept's beat map;
  the variant the user picks is written **back into CONCEPT.md**.
- **QA GATE** -> `edit-qa-validator` / `tools/qa_check.py` re-check that every
  feature the map marked "yes" actually made it into the edit.
- **SIGN-OFF -> RENDER** -> the full render happens only after the variant AND
  the cut are finalised.
- **A new contact sheet means a new CONCEPT revision.** If the sheet reveals a
  change, the concept is updated FIRST, then the build follows. The record stays
  connected end to end: source -> concept -> assets -> build -> sheet -> sign-off
  -> render.

## ASSETS-PROMPT.md — MANDATORY (strict rule)

After the concept, produce ONE file — **`ASSETS-PROMPT.md`** — listing every
asset the build needs, **one executable brief per item**, addressed to **an AI
agent that has image generation, audio generation AND coding**. No prompt list,
no build.

1. **Images** — image briefs: subject · composition · style · palette (hex) ·
   lighting · aspect + background · negatives.
2. **Transparent images (PNG/alpha)** — briefs ending "transparent background,
   PNG with alpha, no background".
3. **Logos** — a brief, or "client supplies".
4. **Music** — audio briefs: mood · genre · BPM · length · instrumentation.
5. **Sound effects** — audio briefs: type · character · duration.
6. **Code components** — CODING briefs for what code does best (glass cards,
   animated type, diagrams, count-ups, UI mockups, particles, shaders, 3D):
   exact values (hex, px, easing, durations), the motion, and the
   **nested-zip deliverable**: ONE master zip containing a zip per category and
   a zip per component kit (each kit unzips to `index.html`, `styles.css`,
   `README.md`, `assets/`, palette exposed as CSS variables).

**This file IS the prompt** — write it as a self-contained instruction you
hand straight to the agent, ending with the deliverable tree (one zip) and
acceptance checks. A full worked example: `EXAMPLE-ASSETS-PROMPT.md`.

**EXCLUDED — never in this file:** **voiceover** and **ALL video clips**
(A-roll and B-roll). The user supplies the A-roll — voice, primary footage, or a
transcription JSON — at the start. If the build needs any **B-roll clip**, ask
the user for it **separately**; clips are never listed in this prompt file.
(The agent can only generate images, audio and code — it cannot generate video.)

Full format, the kit shape, and a worked example: `ASSET-REQUEST-GUIDE.md`.

## 1. Intake - ask before you build
1. Who is on camera - name, role, and years of experience (for the bio card)?
2. Which 3-5 tools should the software beat show?
3. Do you have 4-6 short client reviews/testimonials to use (with permission)?
4. What is the CTA - DM, book a call, email? And the handle/wordmark?
Then produce **ASSETS-PROMPT.md** (mandatory, above) and request the speaker's footage.

## Logos
- The client's own wordmark/badge (client supplies SVG). Never reproduce another studio's marks.

## Music - prompts in ASSETS-PROMPT.md
1. Full reel - "calm modern electronic bed, 95 BPM, 31 s, soft synth pad + light piano, steady with a gentle lift at 20 s"

## Sound effects - prompts in ASSETS-PROMPT.md
1. Text / card land - "soft UI tick, single, 0.1 s"
2. Card expand - "clean whoosh, smooth, 0.4 s"
3. Badge pop - "clean UI pop, bright, 0.15 s"

## Recordings (supplied by the user - NOT in ASSETS-PROMPT.md)
- The speaker's talking-head footage (and the voice, if narrated)
## Finished work (MANDATORY) — best exports of each project, highest quality, with the clip in/out ranges
## Rights confirmation (MANDATORY) — client permission/NDA status per project
## Credits — client, role, year
## Music — licensed track (reel must be beat-matched)
## Brand — logo, colours, fonts, contact details/URL
```
Tier 2 elements: STOP and wait for the client's real files. Never fabricate a real person, product, listing, event or testimonial.

## 2. Structure & pacing - the captured beat map
| Time | Beat | On screen |
|---|---|---|
| 0-4 s | Hook aimed at the scroll | "Scrolling past" -> "Scrolling past boring" -> cursor -> "Need an editor who understands your vision?" |
| 5-9 s | Identity before credentials | "Meet your editor." -> the person -> name + dotted line -> role -> bio card |
| 10-14 s | Tools as trust | Ae tile expands into After Effects / Premiere Pro / DaVinci Resolve |
| 15-19 s | The client's own questions | phone chat "Reels?" / "Cinematic?" / "What about motion graphics" -> "works?" -> clip collage -> 3D discs |
| 20-24 s | Positioning + proof | "Your idea." -> "Your idea. My craft." -> Client Reviews card expanding to five starred reviews |
| 25-29 s | Brand + close | handle badge -> "Let's make something great." -> "Open for projects." |
| 30-31 s | The ask | "Open for projects. DM me." -> fade |
Average beat ~1 s; no hard cuts; the composition changes by objects entering.
## 3. The look - CAPTURED PALETTE (measured; explicit override)

Palette sampled from the reference frames:

| Role | Hex | Where |
|---|---|---|
| Base (deep) | `#182B74` | lower gradient, card fills |
| Primary | `#144EDF` | the dominant royal-blue field |
| Mid | `#5876E9` | gradient transitions, icon fills |
| Light | `#C7CFDF` | upper gradient, dividers |
| Ink | `#FFFFFF` | all type |
| Accent (card violet) | `#7C5CFF` | bio/quote cards (inferred) |

- **Background:** a soft blurred royal-blue -> light gradient on every scene
  (never a flat fill); subtle grain.
- **Type:** clean geometric sans for body/headlines + a **script face for the
  name/role only**; white; negative tracking on the sans; headline ~2x body.
- **Surfaces:** frosted-glass cards - translucent white, thin light stroke, soft
  shadow (glassmorphism); generous padding; rounded.
- **Composition:** centred, generous whitespace, one focal object per beat; the
  speaker composited INTO the scene, never a flat cut-out on a plain plate.

**Apple laws still apply:** the type ramp proportions, the motion grammar
(springs, fade + rise + settle, never linear), readability, word-sync and QA are
unchanged - only the palette and surfaces are overridden, as requested.
## 4. The edit
No hard cuts - a continuous flow; every element rises + fades in, staggered.
Text is kinetic and mapped (word-level), never captioned. Dotted connectors draw
from a label to its subject. Cards expand to reveal more (a review card opening
to five). The speaker alternates with full-frame cards and 3D objects. One idea
per second; 31 s for the full structure, 15 s for the social cut.
## 5. Audio
Calm modern electronic bed, 60-90 BPM, well under any voice. Soft SFX on every
card land and expand. Speech -16 LUFS, true peak <= -1 dBTP. Music prompts and
SFX prompts go in ASSETS-PROMPT.md; the voice is supplied by the user.
## Industry benchmarks (for this style)
- Reel length 20-40 s; the hook lands inside 2 s; average beat ~1 s.
- One idea per beat; no shot held > 3 s without an element entering.
- Type always legible at phone size (>=4% frame height).
- A 15 s vertical cut exists for every reel.
## Worked example
| t | Beat | Edit |
|---|---|---|
| 0.0 | Hook | "Scrolling past" rises in on the blue gradient |
| 1.0 | Hook 2 | "Scrolling past boring" - the second line lands |
| 2.2 | Cursor | hand cursor glides in |
| 3.0 | Question | "Need an editor who understands your vision?" |
| 5.0 | Identity | "Meet your editor." -> the person composites in |
| 6.5 | Name | script name + dotted connector draws to him |
| 8.0 | Bio | glass bio card expands |
| 10.0 | Tools | Ae tile expands to the three-app list |
| 15.0 | Chat | phone chat: "Reels?" / "Cinematic?" / "works?" |
| 18.0 | Collage | 4-clip collage + 3D discs |
| 20.0 | Positioning | "Your idea." -> "Your idea. My craft." |
| 22.0 | Proof | review card expands to five |
| 25.0 | Brand | handle badge -> "Let's make something great." |
| 30.0 | CTA | "Open for projects. DM me." -> fade |
## Common mistakes to avoid
- Flat fills instead of the blurred gradient (the look dies).
- Hard cuts (this style flows; nothing snaps).
- Captions instead of mapped kinetic text.
- A flat cut-out of the speaker on a plain plate (he must sit IN the scene).
- Mixing a second palette or a second type system in.
- Cards that do not share one glass system (inconsistent stroke/shadow).
## Visual narration layer — full spec (mandatory wherever a person speaks)
The market-dominant format: the speaker carries the voice, the **visuals carry the
meaning**. Whoever is speaking — on camera, walking, or voiceover — the video
must SHOW what is being said.

### Three placements (choose per beat, alternate them)
1. **Full-screen cutaway** — visual takes the frame (icon, diagram, stat count-up,
   keyword card, B-roll). Voice continues (L-cut in, J-cut out). Best for concepts,
   numbers, lists, comparisons.
2. **Front overlay** — motion graphics over the speaker; face stays visible
   (labels, keyword pops, callouts, arrows, lower-thirds). Best for emphasis,
   naming, quick facts.
3. **Behind / around the subject** — speaker keyed/cut-out over graphic background
   or blurred plate, elements animating behind and beside. Best for intros, hero
   segments, brand pieces. Needs a clean cut-out or a clean plate (Tier 1–2 asset).

### Rules
- Every spoken concept gets a visual landing on the exact word (±100 ms).
- One visual event every 6–10 s; no talking frame static > ~8 s.
- Alternate placements; avoid 3 of the same in a row.
- **Captions are additive, never the layer** — remove them and the ideas must still show.
- One idea per visual. Motion: fade + rise + settle, eased, never linear (180–450 ms in, 250–350 ms out).
- Never hide the speaker's face when the face is the message.
- Zero-speech pieces: apply the same layer to on-screen kinetic text.

### The Visual Narration Plan (write BEFORE cutting)
A table with one row per spoken idea:
| Timecode | Spoken phrase (exact word to land on) | Concept | Placement 1/2/3 | Visual | Duration | Sound |
Rules for the plan: ≥ 1 row per 6–10 s; no more than two consecutive rows with the
same placement; every number gets a stat visual; every named thing gets a label
or cutaway; every list gets a build-in with one item per spoken item.

### Beat micro-timings
- Keyword pop lands 0–80 ms **before** the audible word onset (the eye leads the ear).
- Count-ups run 0.6–1.0 s and finish on the spoken number.
- Lower-third: in at first speech, on screen 4–5 s, out ≥ 0.3 s before the next cut.
- Cutaway length = the length of the spoken idea (usually 2–5 s); return to speaker on the sentence boundary.

## Signature techniques for this style
1. **Name-the-behaviour hook** - the first line names what the viewer is doing.
2. **Identity before credentials** - the person before the spec.
3. **Dotted connectors** - labels wired to their subject.
4. **Question-bubble** - the buyer's own words as UI, then answered.
5. **Floating glass UI objects** - badge, bio card, software list, phone chat, review card.
6. **Role-assigning line** - "Your idea. My craft."
7. **Soft CTA** - one clear action, spoken plainly.
## Modern editing toolkit (techniques editors use today + how to do them from the terminal)

### A. The technique catalogue — what top editors actually reach for
**Cutting & structure** — jump cut · J-cut / L-cut · match cut (shape, motion, colour) · smash cut · cutaway/insert · split edit · cut-on-beat montage · invisible cut hidden by a whip, zoom or object wipe · freeze frame · reverse · seamless loop · transcript-based rough cut · silence/filler removal · multicam switching.
**Motion & camera** — eased punch-in/push-in · slow digital push · pan/tilt on stills (Ken Burns) · 2.5D parallax from separated layers · camera shake on impacts · speed ramp / time remap · optical-flow slow-motion · stabilisation · whip pan · simulated dolly-zoom · motion blur on fast moves.
**Transitions** — hard cut is the default; then push/slide, whip, zoom-through, shape/mask reveal, luma wipe, light-leak/flash, glitch/RGB split, crossfade. Every transition has a matching sound. Never repeat the same transition twice in a row.
**Text & captions** — kinetic typography · word-by-word karaoke captions · one-accent-word highlight · animated lower-thirds · text tracked to a moving object · **text behind the subject** (matte) · typewriter/mask reveals · drawn-on callouts and arrows · count-up numbers.
**Compositing & depth** — subject cut-out/matting · background blur/replace · split-screen · picture-in-picture · chroma/luma key · screen replacement (UI on a device) · shadow + reflection under cut-outs · glow/bloom · overlays (grain, dust, light leaks) · blend modes (screen, add, multiply).
**Colour & look** — correct first (exposure, white balance), then log→Rec.709, LUT, contrast curve, secondary tweaks (skin, sky), split-tone/film emulation, halation/bloom, grain, vignette, letterbox (2.39:1), shot matching. Protect skin tones.
**Audio design** — dialogue chain (high-pass → denoise → de-ess → compress → loudnorm) · side-chain ducking · SFX layer (whoosh, impact, riser, tick, sub-drop) · ambience/room tone · music edited to phrases · a 0.2–0.4 s silence before the drop · stem separation for cleanup.
**Graphics & data** — animated charts with a single highlight colour · count-ups · map/route draws · diagrams that draw on the narration · UI demo with eased cursor + click ripple · stat "bento" grids · progress bars · timeline graphics.
**AI-assisted (2026)** — word-level transcription · filler/silence removal · scene detection · auto-chapters · face-tracked auto-reframe · matting/rotoscope · upscaling · frame interpolation · stem separation · beat detection · generative B-roll/imagery (disclose when real footage is implied).

### B. Terminal toolchain (pick the lightest tool that does the job)
| Tool | Use it for | Notes |
|---|---|---|
| **FFmpeg / ffprobe** | cuts, concat, scale/crop, zoom, xfade transitions, speed ramps, LUT/grade, grain/glow, overlays, captions (ASS), audio chain, loudness, export | The backbone. Chain edits in ONE `filter_complex` pass to avoid generation loss. |
| **auto-editor** | rough cut by removing silence/dead air via loudness/motion analysis | Signal analysis, not generative. |
| **faster-whisper / WhisperX** | transcription with word-level timestamps (captions, beat plans, filler cuts) | Needed for ±100 ms word sync. |
| **PySceneDetect / ffmpeg `select='gt(scene,0.3)'`** | find shot boundaries in source footage | |
| **librosa** (Python) | BPM + beat timestamps for cut-on-beat | |
| **HyperFrames (HeyGen, Apache-2.0)** | motion graphics as HTML/CSS/GSAP/Lottie/Three.js → deterministic MP4; CLI `init`, `preview`, `lint`, `render` | Agent-friendly: `npx hyperframes init my-video` → edit `index.html` → `npx hyperframes render`. |
| **Remotion** (React) | code-defined video compositions, data-driven templates | Check its licence terms for company/commercial use. |
| **MoviePy** (Python) | scripted clip assembly where FFmpeg graphs get unwieldy | Slower than raw FFmpeg. |
| **rembg / Robust Video Matting / SAM-family** | subject cut-out (alpha) for text-behind-subject and layered looks | Check each model's licence (some are non-commercial). Review edges/hair; rembg is per-frame (flicker risk), RVM is temporally consistent. |
| **MediaPipe** | face tracking for auto-reframe to 9:16 | |
| **Demucs** | separate vocals/music for cleanup | |
| **Blender (headless `blender -b -P script.py`)** | 3D titles, product/architecture renders, camera moves | Heavy; use only when 3D is the point. |
| **MLT/melt, GStreamer, OpenTimelineIO** | timeline-style assembly and interchange | Optional; not needed for most jobs. |
| **ImageMagick / Pillow** | stills, masks, cards, contact sheets | |
*Always check what is installed first and fall back to FFmpeg-only:* `for t in ffmpeg ffprobe python3 node npx auto-editor scenedetect melt blender; do command -v $t >/dev/null && echo "have $t" || echo "missing $t"; done`. If the network is off, do not plan on installing anything.

### C. Tested FFmpeg recipe cookbook (verified on FFmpeg 6.1.1; confirm a filter exists with `ffmpeg -filters | grep <name>`)
Set `IN=input.mp4`. All outputs add `-c:v libx264 -pix_fmt yuv420p` (+ audio as needed).
```bash
# 1 Smooth punch-in (6%/s growth, centred). Prefer this over zoompan on VIDEO — zoompan can jitter.
-vf "scale=w='trunc(1920*(1+0.06*t)/2)*2':h='trunc(1080*(1+0.06*t)/2)*2':eval=frame:flags=bicubic,crop=1920:1080"
# 2 Transition + matching audio crossfade (offset = clip1_duration − transition_duration; clips need same size/fps/pixfmt)
-filter_complex "[0:v][1:v]xfade=transition=smoothleft:duration=0.5:offset=3.5[v];[0:a][1:a]acrossfade=d=0.5[a]" -map "[v]" -map "[a]"
#   other xfade names: fade fadeblack fadewhite wipeleft slideleft circleopen circleclose radial pixelize hlslice vuslice dissolve smoothup distance
# 3 Speed ramp (normal → slow-mo → fast) with split + setpts + concat
-filter_complex "[0:v]split=3[a][b][c];[a]trim=0:1,setpts=PTS-STARTPTS[v1];[b]trim=1:2,setpts=(PTS-STARTPTS)*2[v2];[c]trim=2:4,setpts=(PTS-STARTPTS)*0.5[v3];[v1][v2][v3]concat=n=3:v=1:a=0[v]" -map "[v]"
# 4 Premium look: glow/bloom + film grain + vignette
-vf "split[a][b];[b]gblur=sigma=30,eq=brightness=-0.05[g];[a][g]blend=all_mode=screen:all_opacity=0.25,noise=alls=10:allf=t,vignette=PI/5"
# 5 Colour: contrast curve + split-tone + saturation (add lut3d=file.cube first if you have a LUT)
-vf "curves=preset=medium_contrast,colorbalance=rs=-0.05:bs=0.08:rh=0.08:bh=-0.06,eq=saturation=1.08"
# 6 Camera shake for impacts (apply with enable='between(t,a,b)' on a crop wrapper, or to a short segment)
-vf "scale=2016:1134,crop=1920:1080:x='48+12*sin(t*40)':y='27+8*cos(t*47)'"
# 7 Whip-style blur around a cut at t=2.0 + slight push
-vf "boxblur=luma_radius=40:luma_power=1:enable='between(t,1.8,2.0)',scale=iw*1.1:ih*1.1,crop=1920:1080"
# 8 Cinematic 2.39:1 letterbox
-vf "crop=1920:804,pad=1920:1080:0:138:black"
# 9 Vertical 9:16 from 16:9 with blurred-fill background
-filter_complex "[0:v]split[a][b];[a]scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920,gblur=sigma=40[bg];[b]scale=1080:-2[fg];[bg][fg]overlay=(W-w)/2:(H-h)/2"
# 10 Split screen
-filter_complex "[0:v]scale=960:1080,setsar=1[l];[1:v]scale=960:1080,setsar=1[r];[l][r]hstack"
# 11 TEXT BEHIND SUBJECT: text on background, subject (alpha from matte) composited on top
-i bg.mp4 -loop 1 -i subject.png -loop 1 -i matte.png -filter_complex "[0:v]drawtext=text='PREMIUM':fontsize=420:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2:fontfile=FONT.ttf[bg];[1:v][2:v]alphamerge[fg];[bg][fg]overlay=shortest=1"
#    for video: produce a per-frame matte (rembg/RVM) → ProRes 4444/WebM alpha subject clip → overlay it over the text layer.
# 12 Animated drawtext (fade + rise over 0.5 s)
-vf "drawtext=text='HELLO':fontsize=96:fontcolor=white:x=(w-text_w)/2:y='h/2+60*(1-min(t/0.5,1))':alpha='min(t/0.5,1)':fontfile=FONT.ttf"
# 13 Karaoke / word-pop captions: write an .ass file (per-word {\kf} timing from WhisperX, {\t(...)} scale pop) then burn
-vf "subtitles=captions.ass"
# 14 Progress bar
-vf "drawbox=x=0:y=ih-12:w='iw*t/DURATION':h=12:color=0xFFD700@0.9:t=fill"
# 15 Freeze-frame hold of 1 s at the end / reverse / interpolate to 60 fps
-vf "tpad=stop_mode=clone:stop_duration=1"   |   -vf reverse   |   -vf "minterpolate=fps=60:mi_mode=mci"
# 16 Stabilise (2-pass)
ffmpeg -i $IN -vf vidstabdetect=result=t.trf -f null -  &&  ffmpeg -i $IN -vf vidstabtransform=input=t.trf:smoothing=15 out.mp4
# 17 Dialogue chain + loudness (measure first, then apply the measured values for true two-pass)
-af "highpass=f=80,afftdn=nf=-25,acompressor=threshold=-18dB:ratio=3:attack=15:release=200,loudnorm=I=-16:TP=-1:LRA=11"
ffmpeg -i $IN -af loudnorm=I=-14:TP=-1:LRA=11:print_format=json -f null -     # read input_i/input_tp/… then rerun with measured_* values
# 18 Music ducking under voice (voice = input 0 audio, music = input 1)
-filter_complex "[1:a][0:a]sidechaincompress=threshold=0.05:ratio=8:attack=20:release=300[m];[0:a][m]amix=inputs=2:normalize=0[a]" -map 0:v -map "[a]"
# 19 Detect silence / scene changes (feed results into a cut list)
-af silencedetect=n=-35dB:d=0.3 -f null -      |      -vf "select='gt(scene,0.3)',showinfo" -f null -
# 20 Final export (H.264, tagged Rec.709, web-ready)
-c:v libx264 -preset slow -crf 17 -pix_fmt yuv420p -profile:v high -colorspace bt709 -color_primaries bt709 -color_trc bt709 -c:a aac -b:a 256k -ar 48000 -movflags +faststart
# 21 RGB split / chromatic aberration (glitch accent — apply to a 3–6 frame window only)
-filter_complex "split=3[r][g][b];[r]lutrgb=g=0:b=0,pad=iw+8:ih:8:0[r2];[g]lutrgb=r=0:b=0,pad=iw+8:ih:4:0[g2];[b]lutrgb=r=0:g=0,pad=iw+8:ih:0:0[b2];[r2][g2]blend=all_mode=addition[rg];[rg][b2]blend=all_mode=addition,crop=1920:1080:4:0"
```
**Rules that prevent bad renders:** conform every source to the same fps/size/pixel format before xfade/concat · work from proxies (720p) while iterating, render masters once · chain filters in one pass · never mix variable-frame-rate screen recordings (convert with `-vsync cfr -r 30`) · keep a 1.1–1.2× scale margin before any crop-based move to avoid black edges · use `-ss` before `-i` for fast seeking, after `-i` for frame accuracy.

### D. The production loop (every job)
1. **Probe** inputs (`ffprobe -v error -show_entries stream=codec_name,width,height,r_frame_rate,duration -of json`). 2. **Transcribe** with word timestamps. 3. **Plan**: write the cut list + Visual Narration Plan (timecode, phrase, placement, visual, sound) as a table or JSON. 4. **Rough cut** (silence/filler removal, scene boundaries). 5. **Motion graphics** rendered separately (HTML/HyperFrames/Remotion or FFmpeg drawtext/overlay) with alpha where they sit over footage. 6. **Composite + grade + sound design.** 7. **Loudness + export.** 8. **Verify like a viewer**: extract frames at key beats (`ffmpeg -ss T -i out.mp4 -frames:v 1 f_T.png`), make a contact sheet, check safe zones, check captions against the transcript, re-measure loudness. Fix and re-render; never ship unseen.

### E. What makes it feel premium (rules, not effects)
- **One system:** one palette, one type pair, one motion grammar, one transition vocabulary per video. Consistency reads as expensive.
- **Ease everything:** entrances `cubic-bezier(0.16,1,0.3,1)`, transforms `cubic-bezier(0.65,0,0.35,1)`, playful overshoot `cubic-bezier(0.34,1.56,0.64,1)`. Never linear.
- **Depth:** separate foreground / mid / background; add soft shadows, subtle parallax (≤ 3–6% travel), grain 5–12% and a gentle vignette.
- **Hierarchy:** one focal point per frame, ≥ 30% negative space, max ~6 elements.
- **Rhythm:** vary shot length; land graphics and cuts on beats/words; let important moments breathe.
- **Sound sells picture:** a sound for every cut and graphic land; the quiet before the hit.
- **Restraint:** effects serve the idea. If it doesn't clarify or emphasise, delete it.
- **Polish:** no audio pops, no jitter, no black edges, no text outside safe zones, no single-frame flashes.

## Hybrid premium style & advanced feature pack

### H1. What "hybrid" means (observed in six premium reference videos)
Text and graphics are treated as **objects inside the scene**, not captions laid on top. Footage, 3D/AI renders, UI cards and kinetic type share one visual system. Devices seen across the references:
1. **Hierarchy inside one line** — a small lead-in word and one huge keyword (e.g. "here's the branding secret" small → "no one tells you" large).
2. **Single accent colour** (red, gold, orange or brand blue) against a controlled base (white, black or one graded footage look) with soft shadows and glow for depth.
3. **Words appear on the spoken beat** with blur-in/rise-in; the key word gets the accent colour and the largest size.
4. **Text integrated with the subject** — text arcs/wraps around the speaker, sits behind them (matte), or tracks an object; accent glow or flash on impact words.
5. **UI-as-graphics** — stat cards (64%, $50k), badges, toggles, a search bar that types "Comment ___", cursor/hand pointer, app-icon orbit, mind-map nodes.
6. **Hero objects** — 3D or AI-generated renders (statue, badge, product, device mock) on clean backgrounds, slow push + soft shadow.
7. **Hidden cuts** — a whip, flash, starburst/ribbon sweep, zoom-through or object wipe covers the edit; the hard cut is invisible.
8. **Before/After or phone-frame framing** — split-screen labelled panels, or a phone-shaped inset over a blurred, enlarged copy of the same footage.
9. **Matched cinematic B-roll** graded to the same look as the talking head; the speaker may be cloned/multiplied for emphasis.
10. **Comment-keyword CTA** ("Comment 'folder'") and a brand end card with a soft focus-pull.
**Pace:** a new visual event every 1–2.5 s (measured cut ASL 2.3–3.2 s, but most changes were in-scene motion, not cuts). **Audio:** speech forward, bass-heavy bed, impact/whoosh hits on the key-word slams; delivered around −14 LUFS.

### H2. How much of it to use ("hybrid dial") — decide per job
**0** = none (clean, regulated, calm) · **1** = light (accent colour, hierarchy lines, subtle push) · **2** = medium (+ UI cards, stat count-ups, hidden-cut transitions) · **3** = full (+ behind-subject text, 3D/AI hero objects, glow/flash, phone-frame, tracked text). Ask the client which dial; default is given in "Hybrid dial for this skill" below. Higher dial = more assets required (see H4) and more render time.

### H3. Editor feature → terminal equivalent (NLE checklist)
| Editor feature | In the terminal |
|---|---|
| Cut / split / trim | `trim` + `setpts`, or `cutlist.py` clips (in/out) |
| **Ripple edit** (close the gap) | delete the clip from the cut list — concat closes the gap |
| **Slip** (change content, keep position/length) | shift `in` and `out` by the same amount |
| **Slide** (move a clip, neighbours keep length) | reorder/shift entries in the cut list |
| **Copy/paste attributes** | reuse the same `vf` string/preset for many clips (store presets in one file) |
| Speed / ramp / slow-mo | `setpts`, split+concat ramp (recipe 3), `minterpolate` |
| Colour correct / LUT / contrast / saturation | `eq`, `curves`, `colorbalance`, `lut3d` (recipe 5) |
| **Sharpen / blur** | `unsharp` (recipe 23), `gblur`, `boxblur` |
| Film grain / vignette / glow | recipe 4 |
| **Light leaks / lens flares** | generated gradient overlay + `blend=screen` (recipes 24–25) |
| Transitions (fade, whip, zoom, glitch, match) | `xfade`, recipes 2, 7, 21, 31 |
| Keyframes: zoom, pan, **opacity, position** | expressions in `scale`/`crop`/`overlay` with `t` (recipes 1, 26) |
| **Object tracking (text follows subject)** | `track_text.py` (OpenCV CSRT → ASS positions) |
| Subtitles / kinetic type | ASS from word timestamps (recipe 13), HTML/GSAP via HyperFrames |
| Lower thirds / callouts | drawtext / PNG overlay with eased entrance (recipes 12, 26) |
| **Emoji / sticker pop** | transparent PNG overlay with scale-pop timing (recipe 26); never rely on system emoji fonts in drawtext |
| Audio: music sync, SFX, denoise, EQ, ducking | recipes 17, 18, librosa beats |
| Jump cuts / silence removal | auto-editor or `silencedetect` (recipe 19) |
| Pattern interrupts / B-roll / loop ending | recipes 1, 3, 15, 27 |
| **Green screen (chroma key)** | `chromakey` + `despill` (recipe 22) |
| **Masking & reveal** | animated `alphamerge` mask (recipe 28) |
| **Depth blur / fake bokeh** | radial-mask blur (recipe 29) |
| Letterbox | recipe 8 |
| **Proxy editing** | recipe 36 |
| Multicam | cut list across several sources + audio-energy/transcript switching |
| Presets/templates | keep a presets folder (LUTs, ASS styles, `vf` strings, HTML templates) |
| Auto subtitles (AI) | faster-whisper / WhisperX → SRT + ASS |

### H4. Hybrid-style asset request (ASK THE CLIENT — never fabricate)
At dial 2–3, add these to ASSET-REQUEST.md and wait for them (or confirm the AI may generate/synthesize each):
- **Brand kit:** the accent colour, base colours, 1–2 fonts, logo (SVG/PNG with transparency), end-card wording and the comment-keyword CTA.
- **Script/transcript with the key word of each line** marked (the one word that gets the accent).
- **Subject files:** the speaker/product footage; for behind-subject or cut-out looks either a **green-screen shot**, a **clean background plate**, or permission to run a matting model (check its licence).
- **Hero objects:** 3D renders, AI images or product packshots **with transparent background** (PNG/WebM-alpha), or approval to use generated placeholders (disclosed).
- **UI assets:** real screenshots/screen recordings, logo/icon set, names and figures to show on cards (each with source/date).
- **Sound pack:** whoosh, impact, riser, click, pop, sub-drop (licensed) and the music bed.
- **References:** 1–3 videos whose look is wanted (we match the system, never copy the content).
If an asset is missing and cannot be generated honestly, **lower the dial**, say so, and list what unlocks the next level.

### H5. Tested recipes 22–36 (FFmpeg 6.1.1; all executed on synthetic sources)
```bash
# 22 Green screen: key + remove green spill, composite over a background
-i bg.mp4 -i green.mp4 -filter_complex "[1:v]chromakey=0x00ff00:0.12:0.08,despill=type=green[fg];[0:v][fg]overlay=(W-w)/2:(H-h)/2:shortest=1"
# 23 Sharpen (apply last, small amount; avoid on noisy footage)
-vf "unsharp=5:5:0.8:5:5:0.0"
# 24 Moving warm light leak (screen-blend a generated gradient that sweeps across)
-i in.mp4 -f lavfi -i "color=c=black:s=1920x1080:r=30:d=4,geq=r='255*exp(-pow((X-1920*(0.2+0.2*T))/500,2))':g='140*exp(-pow((X-1920*(0.2+0.2*T))/400,2))':b='40*exp(-pow((X-1920*(0.2+0.2*T))/300,2))'" -filter_complex "[0:v][1:v]blend=all_mode=screen:all_opacity=0.7"
# 25 Lens-flare hotspot (static or animate the centre with T)
-f lavfi -i "color=c=black:s=1920x1080:r=30:d=4,geq=r='255*exp(-hypot(X-1400,Y-300)/90)':g='220*exp(-hypot(X-1400,Y-300)/90)':b='160*exp(-hypot(X-1400,Y-300)/90)'"  (then blend=all_mode=screen:all_opacity=0.8 as in 24)
# 26 Pop-in card / sticker / emoji PNG: fade in + rise with ease-out (cubic) between t=0.3 and 0.8 s
-i video.mp4 -loop 1 -i card.png -filter_complex "[1:v]format=rgba,fade=t=in:st=0.3:d=0.4:alpha=1[c];[0:v][c]overlay=x=(W-w)/2:y='H-h-120+80*pow(1-min(max((t-0.3)/0.5,0),1),3)':shortest=1"
# 27 Loop ending: last 0.5 s cross-dissolves into the first 0.5 s (output = duration − 0.5)
-filter_complex "[0:v]split[m][h];[h]trim=0:0.5,setpts=PTS-STARTPTS[head];[m]trim=0.5:DUR,setpts=PTS-STARTPTS[body];[body][head]xfade=transition=fade:duration=0.5:offset=DUR-1.0[v]" -map "[v]"
# 28 Mask reveal (left→right wipe of clip B over A over 1.5 s; swap the geq for circles/shapes)
-i a.mp4 -i b.mp4 -filter_complex "color=c=white:s=1920x1080:r=30:d=4[w];[w]geq=lum='if(lt(X,1920*T/1.5),255,0)',format=gray[m];[1:v][m]alphamerge[fg];[0:v][fg]overlay=shortest=1"
# 29 Fake depth blur: sharp centre, blurred edges (radial mask made once with geq → radial.png)
ffmpeg -f lavfi -i "color=c=black:s=1920x1080,format=gray,geq=lum='clip((hypot(X-960,Y-540)-300)*0.6,0,255)'" -frames:v 1 radial.png
-i in.mp4 -loop 1 -i radial.png -filter_complex "[0:v]split[s][b];[b]gblur=sigma=18[bl];[bl][1:v]alphamerge[blm];[s][blm]overlay=shortest=1"
# 30 Accent glow text (draw text, blur a copy, screen-blend it back)
-vf "drawtext=text='WORD':fontsize=200:fontcolor=0xff2040:x=(w-text_w)/2:y=(h-text_h)/2:fontfile=FONT.ttf,split[a][b];[b]gblur=sigma=25[g];[a][g]blend=all_mode=screen:all_opacity=1"
# 31 Impact flash (brightness pulse at t=2.0) + barrel-distortion punch
-vf "eq=brightness='0.6*exp(-12*abs(t-2))':eval=frame"        |        -vf "lenscorrection=k1=-0.25:k2=-0.1"
# 32 Count-up that lands on the spoken number (here 0→64 % in 1 s)
-vf "drawtext=text='%{eif\:trunc(min(t/1.0\,1)*64)\:d}%':fontsize=300:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2:fontfile=FONT.ttf"
# 33 Phone-frame inset over a blurred, darkened, enlarged copy of the same footage (rounded-corner mask)
-filter_complex "[0:v]split[a][b];[a]scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920,gblur=sigma=40,eq=brightness=-0.15[bg];[b]scale=-2:1500,crop=800:1500,format=yuva420p,geq=lum='lum(X,Y)':cb='cb(X,Y)':cr='cr(X,Y)':a='if(lt(hypot(max(abs(X-400)-340,0),max(abs(Y-750)-690,0)),60),255,0)'[fg];[bg][fg]overlay=(W-w)/2:(H-h)/2"
# 34 Before/After labelled vertical split
-i after.mp4 -i before.mp4 -filter_complex "[0:v]scale=1080

…(truncated)
