makaron-cli 0.17.1 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/.claude-plugin/plugin.json +2 -2
  2. package/.codex-plugin/plugin.json +5 -4
  3. package/README.md +45 -1
  4. package/bin/makaron.mjs +22 -8
  5. package/craft/manifest.json +2877 -0
  6. package/craft/prompts/agent-coding.md +220 -0
  7. package/craft/prompts/agent.md +86 -0
  8. package/craft/prompts/animate.md +448 -0
  9. package/craft/prompts/audio.md +261 -0
  10. package/craft/prompts/captions.md +220 -0
  11. package/craft/prompts/coding-submission.md +31 -0
  12. package/craft/prompts/coding-workflow.md +26 -0
  13. package/craft/prompts/creative.md +108 -0
  14. package/craft/prompts/cutout.md +81 -0
  15. package/craft/prompts/enhance.md +123 -0
  16. package/craft/prompts/generate_image_tool.md +26 -0
  17. package/craft/prompts/image.md +222 -0
  18. package/craft/prompts/legacy/agent.md +123 -0
  19. package/craft/prompts/legacy/coding-tool.md +31 -0
  20. package/craft/prompts/legacy/video-tool.md +38 -0
  21. package/craft/prompts/legacy/workspace-authoring.md +13 -0
  22. package/craft/prompts/niji.md +117 -0
  23. package/craft/prompts/pony_translate.md +42 -0
  24. package/craft/prompts/remotion-composition.md +405 -0
  25. package/craft/prompts/video-reverse.md +170 -0
  26. package/craft/prompts/video-submission.md +44 -0
  27. package/craft/prompts/video-workflow.md +42 -0
  28. package/craft/prompts/wai_translate.md +28 -0
  29. package/craft/prompts/web-search.md +1 -0
  30. package/craft/prompts/wild.md +119 -0
  31. package/craft/prompts/workspace-authoring.md +13 -0
  32. package/craft/skills/SKILL_README.md +249 -0
  33. package/craft/skills/_shared/aesthetic-lens-contract.md +68 -0
  34. package/craft/skills/_shared/native-audiovisual.md +44 -0
  35. package/craft/skills/_shared/remotion-director-contract.md +133 -0
  36. package/craft/skills/_shared/remotion-video-director/README.md +140 -0
  37. package/craft/skills/_shared/remotion-video-director/SKILL.md +391 -0
  38. package/craft/skills/_shared/remotion-video-director/references/component-library.md +608 -0
  39. package/craft/skills/_shared/remotion-video-director/references/expert-definitions.md +214 -0
  40. package/craft/skills/_shared/remotion-video-director/references/music-and-audio.md +186 -0
  41. package/craft/skills/_shared/remotion-video-director/references/remotion-patterns.md +439 -0
  42. package/craft/skills/_shared/remotion-video-director/references/video-archetypes.md +395 -0
  43. package/craft/skills/_shared/speech-clock.md +63 -0
  44. package/craft/skills/_shared/spoken-caption.md +75 -0
  45. package/craft/skills/_shared/studio-production/audio-direction.md +60 -0
  46. package/craft/skills/_shared/studio-production/production-contract.md +188 -0
  47. package/craft/skills/_shared/studio-production/reference-analysis.md +37 -0
  48. package/craft/skills/_shared/studio-production/review-contract.md +77 -0
  49. package/craft/skills/_shared/studio-production/taste-direction.md +114 -0
  50. package/craft/skills/_shared/visual-asset-bridge/SKILL.md +57 -0
  51. package/craft/skills/_shared/visual-direction/SKILL.md +98 -0
  52. package/craft/skills/_shared/voice-translation.md +55 -0
  53. package/craft/skills/aesthetic-disney-character-motion/SKILL.md +66 -0
  54. package/craft/skills/aesthetic-lottiefiles-motion/SKILL.md +78 -0
  55. package/craft/skills/aesthetic-rampstack-direction/SKILL.md +68 -0
  56. package/craft/skills/ai-video-gen/SKILL.md +48 -0
  57. package/craft/skills/animated-explainer/SKILL.md +53 -0
  58. package/craft/skills/animation/SKILL.md +53 -0
  59. package/craft/skills/avatar-spokesperson/SKILL.md +66 -0
  60. package/craft/skills/canvas-procedural-animation/SKILL.md +48 -0
  61. package/craft/skills/character-animation/SKILL.md +57 -0
  62. package/craft/skills/character-animation-qa/SKILL.md +48 -0
  63. package/craft/skills/character-rigging/SKILL.md +48 -0
  64. package/craft/skills/cinematic/SKILL.md +53 -0
  65. package/craft/skills/cinematic-video/SKILL.md +65 -0
  66. package/craft/skills/clip-factory/SKILL.md +53 -0
  67. package/craft/skills/comfyui/SKILL.md +48 -0
  68. package/craft/skills/content-repurpose/SKILL.md +54 -0
  69. package/craft/skills/create-video/SKILL.md +48 -0
  70. package/craft/skills/documentary-montage/SKILL.md +53 -0
  71. package/craft/skills/doubao-tts/SKILL.md +51 -0
  72. package/craft/skills/explainer-aesthetic-disney/SKILL.md +33 -0
  73. package/craft/skills/explainer-aesthetic-lottiefiles/SKILL.md +33 -0
  74. package/craft/skills/explainer-aesthetic-rampstack/SKILL.md +33 -0
  75. package/craft/skills/explainer-video/SKILL.md +423 -0
  76. package/craft/skills/ffmpeg/SKILL.md +48 -0
  77. package/craft/skills/grok-media/SKILL.md +47 -0
  78. package/craft/skills/hybrid/SKILL.md +53 -0
  79. package/craft/skills/localization-dub/SKILL.md +59 -0
  80. package/craft/skills/long-video-anchor/SKILL.md +111 -0
  81. package/craft/skills/long-video-director/SKILL.md +217 -0
  82. package/craft/skills/long-video-storyboard/SKILL.md +102 -0
  83. package/craft/skills/makaron-mascot/SKILL.md +83 -0
  84. package/craft/skills/makaron-mascot/assets/character-sheet.jpg +0 -0
  85. package/craft/skills/makaron-mascot/assets/makaron-spark-pixel-wizard-concepts.png +0 -0
  86. package/craft/skills/media-use/SKILL.md +47 -0
  87. package/craft/skills/motion-design-video/SKILL.md +64 -0
  88. package/craft/skills/motion-graphics/SKILL.md +48 -0
  89. package/craft/skills/multi-angle-video/SKILL.md +533 -0
  90. package/craft/skills/music/SKILL.md +47 -0
  91. package/craft/skills/music-to-video/SKILL.md +60 -0
  92. package/craft/skills/photo-to-video/SKILL.md +60 -0
  93. package/craft/skills/podcast-repurpose/SKILL.md +53 -0
  94. package/craft/skills/pose-library-design/SKILL.md +48 -0
  95. package/craft/skills/reference-video-studio/SKILL.md +55 -0
  96. package/craft/skills/remotion/SKILL.md +48 -0
  97. package/craft/skills/remotion-best-practices/SKILL.md +48 -0
  98. package/craft/skills/screen-demo/SKILL.md +61 -0
  99. package/craft/skills/seedance-2-0/SKILL.md +48 -0
  100. package/craft/skills/seedance-2-5/SKILL.md +48 -0
  101. package/craft/skills/sound-effects/SKILL.md +47 -0
  102. package/craft/skills/source-video-studio/SKILL.md +68 -0
  103. package/craft/skills/speech-to-text/SKILL.md +47 -0
  104. package/craft/skills/sticker-maker/SKILL.md +178 -0
  105. package/craft/skills/svg-character-animation/SKILL.md +48 -0
  106. package/craft/skills/synthetic-screen-recording/SKILL.md +48 -0
  107. package/craft/skills/talking-head/SKILL.md +106 -0
  108. package/craft/skills/text-to-speech/SKILL.md +50 -0
  109. package/craft/skills/threejs-animation/SKILL.md +48 -0
  110. package/craft/skills/threejs-fundamentals/SKILL.md +48 -0
  111. package/craft/skills/threejs-geometry/SKILL.md +48 -0
  112. package/craft/skills/threejs-lighting/SKILL.md +48 -0
  113. package/craft/skills/threejs-materials/SKILL.md +48 -0
  114. package/craft/skills/threejs-shaders/SKILL.md +48 -0
  115. package/craft/skills/threejs-textures/SKILL.md +48 -0
  116. package/craft/skills/tiktok-video/SKILL.md +188 -0
  117. package/craft/skills/tiktok-video/references/audio-sync.md +58 -0
  118. package/craft/skills/tiktok-video/references/caption-direction.md +36 -0
  119. package/craft/skills/tiktok-video/references/delivery-qa.md +84 -0
  120. package/craft/skills/tiktok-video/references/platform-layout.md +62 -0
  121. package/craft/skills/video-edit/SKILL.md +144 -0
  122. package/craft/skills/video-edit/references/direct-reference-route.md +141 -0
  123. package/craft/skills/video-edit/references/editing-protocol.md +79 -0
  124. package/craft/skills/video-edit/references/frame-location.md +85 -0
  125. package/craft/skills/video-edit/references/replication-protocol.md +67 -0
  126. package/craft/skills/video-edit/references/shot-blueprint.md +116 -0
  127. package/craft/skills/video-edit/references/shot-blueprint.schema.json +143 -0
  128. package/craft/skills/video-edit/references/similarity-qa.md +47 -0
  129. package/craft/skills/video-edit/scripts/extract-shot-blueprint.mjs +313 -0
  130. package/craft/skills/video-ffmpeg-lab/SKILL.md +220 -0
  131. package/craft/skills/video-mature-themes/SKILL.md +175 -0
  132. package/craft/skills/video-segment-edit/SKILL.md +16 -0
  133. package/craft/skills/video-translate/SKILL.md +148 -0
  134. package/craft/skills/video-understand/SKILL.md +48 -0
  135. package/craft/skills/visual-style/SKILL.md +47 -0
  136. package/craft/skills/wan-3-0/SKILL.md +59 -0
  137. package/craft/skills/web-design-guidelines/SKILL.md +47 -0
  138. package/craft/skills/website-to-video/SKILL.md +61 -0
  139. package/craft-source.json +7 -0
  140. package/package.json +12 -5
  141. package/runtime/adapter.mjs +615 -0
  142. package/runtime/configure.mjs +28 -0
  143. package/runtime/tool-catalog.json +807 -0
  144. package/runtime/tool-cli.mjs +98 -0
  145. package/skills/makaron-native/SKILL.md +89 -0
@@ -0,0 +1,439 @@
1
+ # Battle-Tested Remotion Patterns
2
+
3
+ Hard-won lessons from production Remotion projects. Follow every one of these.
4
+
5
+ ---
6
+
7
+ ## Critical Rules
8
+
9
+ ### 1. All animation MUST use `useCurrentFrame()`
10
+
11
+ CSS transitions, CSS animations, and Tailwind `animate-*` classes are **FORBIDDEN** in Remotion. They don't synchronize with frame-based rendering - the video will look correct in the browser but produce garbage when rendered.
12
+
13
+ ```tsx
14
+ // WRONG - will not render correctly
15
+ <div style={{ transition: "opacity 0.5s" }}>
16
+
17
+ // CORRECT - frame-driven
18
+ const frame = useCurrentFrame();
19
+ const opacity = interpolate(frame, [0, 15], [0, 1], {
20
+ extrapolateLeft: "clamp",
21
+ extrapolateRight: "clamp",
22
+ });
23
+ <div style={{ opacity }}>
24
+ ```
25
+
26
+ ### 2. `interpolate()` requires strictly monotonically increasing input ranges
27
+
28
+ **WILL CRASH:**
29
+ ```tsx
30
+ interpolate(frame, [0, 15, 15, 30], [0, 1, 1, 0]); // Duplicate 15!
31
+ interpolate(frame, [400, 420, 750, 750], [0, 1, 1, 0]); // Duplicate 750!
32
+ ```
33
+
34
+ **FIX:** Bump duplicates by 1:
35
+ ```tsx
36
+ interpolate(frame, [0, 15, 16, 30], [0, 1, 1, 0]);
37
+ // Or for fade-in only:
38
+ interpolate(frame, [400, 420], [0, 1], clamp);
39
+ ```
40
+
41
+ ### 3. `useCurrentFrame()` is relative to the nearest `<Sequence>`
42
+
43
+ When using `<Sequence from={300}>`, `useCurrentFrame()` inside that Sequence returns 0 at global frame 300.
44
+
45
+ When using opacity-based phase visibility (not Sequence), `useCurrentFrame()` returns the scene-level frame. Components with `startFrame` must use absolute frame numbers matching when the phase becomes visible.
46
+
47
+ ### 4. Always define the clamp shorthand
48
+
49
+ Put this at the top of every scene file:
50
+ ```tsx
51
+ const clamp = {
52
+ extrapolateLeft: "clamp" as const,
53
+ extrapolateRight: "clamp" as const,
54
+ };
55
+ ```
56
+
57
+ Without clamping, `interpolate()` extrapolates beyond the defined range, producing unexpected negative values or values > 1.
58
+
59
+ ### 5. Unicode escapes in JSX
60
+
61
+ **WILL FAIL TO COMPILE:**
62
+ ```tsx
63
+ <div>❌ Without context</div> // Unicode literal may fail
64
+ ```
65
+
66
+ **FIX:** Use expression syntax:
67
+ ```tsx
68
+ <div>{"\u274C"} Without context</div> // 4-digit escape in expression
69
+ ```
70
+
71
+ ### 6. Overlapping Sequences cause text overlay
72
+
73
+ Two `<Sequence>` components visible at the same time both render simultaneously. This creates visual chaos with text from different scenes overlapping.
74
+
75
+ **FIX:** Use non-overlapping phases via opacity-based transitions:
76
+ ```tsx
77
+ const phase1Opacity = interpolate(frame, [0, 10, 140, 170], [0, 1, 1, 0], clamp);
78
+ const phase2Opacity = interpolate(frame, [170, 185, 370, 400], [0, 1, 1, 0], clamp);
79
+
80
+ <AbsoluteFill style={{ opacity: phase1Opacity }}>...</AbsoluteFill>
81
+ <AbsoluteFill style={{ opacity: phase2Opacity }}>...</AbsoluteFill>
82
+ ```
83
+
84
+ ### 7. Render command needs entry point
85
+
86
+ **WRONG:**
87
+ ```bash
88
+ npx remotion render Video out.mp4
89
+ ```
90
+
91
+ **CORRECT:**
92
+ ```bash
93
+ npx remotion render src/Root.tsx Video out.mp4
94
+ ```
95
+
96
+ `Root.tsx` **must call `registerRoot()`** - the CLI requires it. Exporting a component alone is NOT enough and will error with "this file does not contain registerRoot".
97
+
98
+ ### 8. macOS quarantine kills Remotion binaries (SIGKILL)
99
+
100
+ On macOS, downloaded binaries (Chrome Headless Shell, ffprobe, ffmpeg) get a `com.apple.provenance` quarantine attribute that causes the OS to kill them with SIGKILL (signal 9). Symptoms: "Killed: 9" with no other output, or "Browser process exited with signal SIGKILL", or ffprobe "Command was killed with SIGKILL".
101
+
102
+ **FIX:** Clear quarantine on all Remotion native binaries after install:
103
+ ```bash
104
+ xattr -cr node_modules/.remotion/ 2>/dev/null
105
+ xattr -cr node_modules/.pnpm/@remotion+compositor-darwin-arm64*/node_modules/@remotion/compositor-darwin-arm64/ 2>/dev/null
106
+ ```
107
+
108
+ If `xattr -cr` doesn't work, clear individually:
109
+ ```bash
110
+ xattr -d com.apple.provenance node_modules/.remotion/chrome-headless-shell/mac-arm64/chrome-headless-shell-mac-arm64/chrome-headless-shell
111
+ xattr -d com.apple.provenance node_modules/.pnpm/@remotion+compositor-darwin-arm64@*/node_modules/@remotion/compositor-darwin-arm64/ffprobe
112
+ xattr -d com.apple.provenance node_modules/.pnpm/@remotion+compositor-darwin-arm64@*/node_modules/@remotion/compositor-darwin-arm64/ffmpeg
113
+ xattr -d com.apple.provenance node_modules/.pnpm/@remotion+compositor-darwin-arm64@*/node_modules/@remotion/compositor-darwin-arm64/remotion
114
+ ```
115
+
116
+ ### 9. npx may fail to run Remotion CLI on macOS
117
+
118
+ If `npx remotion` or `pnpm exec remotion` gets killed immediately, run the bin script directly via `sh`:
119
+ ```bash
120
+ sh node_modules/.bin/remotion render src/Root.tsx <CompositionId> out/video.mp4 --codec=h264 --crf=18
121
+ ```
122
+
123
+ ---
124
+
125
+ ## Animation Patterns
126
+
127
+ ### Spring Configs
128
+
129
+ Three battle-tested configs for different feels:
130
+
131
+ ```typescript
132
+ export const SPRING_CONFIGS = {
133
+ BOUNCE: { damping: 12, mass: 0.5, stiffness: 200 }, // Cards, badges - snappy impact
134
+ GENTLE: { damping: 20, mass: 1, stiffness: 100 }, // Text fade-in - smooth, subtle
135
+ SNAPPY: { damping: 15, mass: 0.8, stiffness: 300 }, // Text reveals - rapid response
136
+ };
137
+ ```
138
+
139
+ Usage:
140
+ ```tsx
141
+ const progress = spring({
142
+ frame: frame - delay,
143
+ fps,
144
+ config: SPRING_CONFIGS.BOUNCE,
145
+ });
146
+ ```
147
+
148
+ ### Staggered Reveals
149
+
150
+ For lists, grids, or cascading elements:
151
+ ```tsx
152
+ {items.map((item, i) => {
153
+ const itemDelay = baseDelay + i * 8; // 8 frames between each item
154
+ const opacity = interpolate(frame - itemDelay, [0, 12], [0, 1], clamp);
155
+ return <div key={i} style={{ opacity }}>{item}</div>;
156
+ })}
157
+ ```
158
+
159
+ ### Counter Animation
160
+
161
+ Animated counting with overshoot protection:
162
+ ```tsx
163
+ const counterValue = Math.min(
164
+ targetValue,
165
+ Math.floor(interpolate(frame, [startFrame, startFrame + 120], [0, targetValue], clamp))
166
+ );
167
+ ```
168
+
169
+ ### Typewriter Effect
170
+
171
+ Character-by-character reveal:
172
+ ```tsx
173
+ const elapsed = Math.max(0, frame - startFrame);
174
+ const charsToShow = Math.min(Math.floor(elapsed * speed), text.length);
175
+ const visibleText = text.slice(0, charsToShow);
176
+ ```
177
+
178
+ Speed guide: 1.5-2.5 chars/frame for readable typing. Faster (3+) for commands, slower (1.0) for dramatic text.
179
+
180
+ ### Cross-Dissolve Envelope
181
+
182
+ Wrap each scene in a fade-in/fade-out:
183
+ ```tsx
184
+ const envelopeFrames = 8;
185
+ const opacity = interpolate(
186
+ frame,
187
+ [0, envelopeFrames, durationInFrames - envelopeFrames, durationInFrames],
188
+ [0, 1, 1, 0],
189
+ clamp
190
+ );
191
+ ```
192
+
193
+ ### Pulsing Effect
194
+
195
+ For CTAs or attention-drawing elements:
196
+ ```tsx
197
+ const pulse = Math.sin((frame % 40) / 40 * Math.PI * 2) * 0.1 + 1; // Scale 0.9-1.1
198
+ <div style={{ transform: `scale(${pulse})` }}>
199
+ ```
200
+
201
+ ---
202
+
203
+ ## Timing Rules of Thumb
204
+
205
+ | Element | Recommended Timing |
206
+ |---------|-------------------|
207
+ | TypingText speed | 1.5-2.5 chars/frame |
208
+ | Chat bubble appearance | 12 frames fade-in |
209
+ | FadeIn component | 30 frames (1 second) |
210
+ | File tree expandDelay | 8 frames between items |
211
+ | Code block lineDelay | 8-10 frames between lines |
212
+ | Phase transition gap | 15-30 frames between phases |
213
+ | Counter animation | 90-120 frames (3-4 seconds) |
214
+ | Scene-ending hold | 30-60 frames before next scene |
215
+ | Cross-dissolve | 8-12 frames |
216
+
217
+ ### Frame Budget Pattern
218
+
219
+ Define timing at the top of the main component:
220
+ ```typescript
221
+ const FPS = 30;
222
+ const S = {
223
+ hook: { start: 0, dur: 5 },
224
+ problem: { start: 5, dur: 8 },
225
+ demo: { start: 13, dur: 15 },
226
+ proof: { start: 28, dur: 7 },
227
+ cta: { start: 35, dur: 5 },
228
+ };
229
+ // Total: 40 seconds = 1200 frames
230
+ ```
231
+
232
+ In Sequence wiring:
233
+ ```tsx
234
+ <Sequence from={S.hook.start * FPS} durationInFrames={S.hook.dur * FPS} name="Hook">
235
+ <SceneHook />
236
+ </Sequence>
237
+ ```
238
+
239
+ ---
240
+
241
+ ## Audio Integration
242
+
243
+ See `references/music-and-audio.md` for the full audio guide (sourcing, scene-adaptive volume, voice-over pipeline).
244
+
245
+ **Quick reference volumes**:
246
+ - Cruising: 0.30 (background ambient)
247
+ - Data-heavy scenes: 0.15 (let viewers read)
248
+ - During narration: 0.10-0.12 (music ducking)
249
+ - Fade in/out: 2 seconds (60 frames at 30fps)
250
+
251
+ ```tsx
252
+ const musicVolume = interpolate(
253
+ frame,
254
+ [0, 60, totalFrames - 60, totalFrames],
255
+ [0, 0.30, 0.30, 0],
256
+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" }
257
+ );
258
+
259
+ <Audio src={staticFile("music.mp3")} volume={musicVolume} />
260
+ ```
261
+
262
+ ---
263
+
264
+ ## Premium Styling Patterns
265
+
266
+ These patterns separate "animated slideshow" from "looks expensive". Apply based on the chosen Creative Direction.
267
+
268
+ ### Font Variety
269
+
270
+ Do NOT use Inter for everything. Mix fonts for visual hierarchy:
271
+
272
+ ```typescript
273
+ import { loadFont as loadInter } from "@remotion/google-fonts/Inter";
274
+ import { loadFont as loadJetBrainsMono } from "@remotion/google-fonts/JetBrainsMono";
275
+ import { loadFont as loadPlayfairDisplay } from "@remotion/google-fonts/PlayfairDisplay";
276
+
277
+ const { fontFamily: inter } = loadInter(); // Body text, labels
278
+ const { fontFamily: mono } = loadJetBrainsMono(); // Code, numbers, data
279
+ const { fontFamily: serif } = loadPlayfairDisplay(); // Quotes, emotional text
280
+ ```
281
+
282
+ For Minimal/Jobs style, use Impact (system font) or a bold sans-serif for headlines:
283
+ ```tsx
284
+ fontFamily: "Impact, 'Arial Black', sans-serif"
285
+ ```
286
+
287
+ ### Extreme Size Contrast
288
+
289
+ The #1 trick for premium feel. Headlines should be 3-4x the size of body text:
290
+
291
+ | Element | Standard | Premium |
292
+ |---------|----------|---------|
293
+ | Headline | 48px | 72-96px |
294
+ | Body text | 24px | 20-24px |
295
+ | Labels/captions | 18px | 14-18px |
296
+ | Hero numbers | 64px | 96-120px |
297
+
298
+ ### Negative Space
299
+
300
+ Premium = restraint. More padding, fewer elements, more room to breathe.
301
+
302
+ | Style | Padding | Max elements per frame |
303
+ |-------|---------|----------------------|
304
+ | Standard | 60-80px | 4-6 |
305
+ | Minimal/Jobs | 100-140px | 1-2 |
306
+ | Data-Rich | 40-60px | 5-8 (organized in grid) |
307
+
308
+ ### One Idea Per Frame
309
+
310
+ If you need more than 15 words on a frame, split into two scenes. For Minimal/Jobs, limit to 7 words.
311
+
312
+ **Bad**: Scene with title + subtitle + 3 bullet points + chart
313
+ **Good**: Scene 1: title + subtitle. Scene 2: chart with one label.
314
+
315
+ ### Animation on Entrance
316
+
317
+ Every element must animate in. No element should appear static on a cut. Even a simple 8-frame opacity fade is better than instant appearance.
318
+
319
+ ```tsx
320
+ // Minimum: every element gets at least this
321
+ const opacity = interpolate(frame - delay, [0, 8], [0, 1], clamp);
322
+ ```
323
+
324
+ ### Smooth Transitions
325
+
326
+ Cross-dissolve between EVERY scene. Hard cuts feel cheap (exception: Terminal/Hacker style where hard cuts fit).
327
+
328
+ ```tsx
329
+ // Wrap every scene in CrossDissolve
330
+ <Sequence from={S.hook.start * FPS} durationInFrames={S.hook.dur * FPS}>
331
+ <CrossDissolve envelopeFrames={10}>
332
+ <SceneHook />
333
+ </CrossDissolve>
334
+ </Sequence>
335
+ ```
336
+
337
+ ### Dramatic Pauses (Minimal/Jobs only)
338
+
339
+ After revealing a key statement, hold for 60+ frames (2 seconds) before the next element. Let the idea land.
340
+
341
+ ```tsx
342
+ // Show headline at frame 0, hold until frame 90 before showing next element
343
+ const headlineOpacity = interpolate(frame, [0, 15], [0, 1], clamp);
344
+ const subtitleOpacity = interpolate(frame, [90, 105], [0, 1], clamp);
345
+ ```
346
+
347
+ ---
348
+
349
+ ## Safe Zones and Readability
350
+
351
+ - **Padding**: 80-120px from all edges (more for Minimal/Jobs)
352
+ - **Text placement**: Keep in upper 85% of frame (bottom gets cropped in presentations/embeds)
353
+ - **Center key questions**: Important questions or headlines should be vertically centered (`alignItems: "center"`, `justifyContent: "center"`), not pushed to edges
354
+ - **Minimum font size**: 24px for anything that needs to be readable on Zoom screen shares
355
+ - **Max text per frame**: 15-20 words for body slides, 7 words for headline slides (Minimal/Jobs)
356
+ - **Data simplification**: On data-heavy slides, show ONE hero metric with 2-3 supporting numbers. Not a full dashboard.
357
+ - **Contrast**: Light text on dark backgrounds needs to be #F0F0F0 or brighter (not gray)
358
+
359
+ ---
360
+
361
+ ## Project Setup
362
+
363
+ ### Standard package.json
364
+
365
+ ```json
366
+ {
367
+ "scripts": {
368
+ "start": "npx remotion studio",
369
+ "build": "npx remotion render src/Root.tsx Video out/video.mp4 --codec=h264 --crf=18",
370
+ "preview": "npx remotion preview"
371
+ },
372
+ "dependencies": {
373
+ "@remotion/cli": "4.0.261",
374
+ "@remotion/google-fonts": "4.0.261",
375
+ "react": "^18.3.1",
376
+ "react-dom": "^18.3.1",
377
+ "remotion": "4.0.261"
378
+ },
379
+ "devDependencies": {
380
+ "@types/react": "^18.3.12",
381
+ "typescript": "^5.7.0"
382
+ }
383
+ }
384
+ ```
385
+
386
+ ### Standard Root.tsx
387
+
388
+ ```tsx
389
+ import React from "react";
390
+ import { registerRoot, Composition } from "remotion";
391
+ import { Video } from "./Video";
392
+
393
+ const RemotionRoot: React.FC = () => {
394
+ return (
395
+ <Composition
396
+ id="Video"
397
+ component={Video}
398
+ durationInFrames={2700} // fps * seconds
399
+ fps={30}
400
+ width={1920}
401
+ height={1080}
402
+ />
403
+ );
404
+ };
405
+
406
+ registerRoot(RemotionRoot);
407
+ ```
408
+
409
+ ### Standard tsconfig.json
410
+
411
+ ```json
412
+ {
413
+ "compilerOptions": {
414
+ "target": "ES2022",
415
+ "module": "commonjs",
416
+ "jsx": "react-jsx",
417
+ "strict": true,
418
+ "esModuleInterop": true,
419
+ "skipLibCheck": true,
420
+ "forceConsistentCasingInFileNames": true,
421
+ "resolveJsonModule": true
422
+ },
423
+ "include": ["src"]
424
+ }
425
+ ```
426
+
427
+ ---
428
+
429
+ ## Troubleshooting
430
+
431
+ | Symptom | Cause | Fix |
432
+ |---------|-------|-----|
433
+ | Blank frames / flickering | Overlapping Sequences or missing clamp | Use opacity phases, add clamp to all interpolate() |
434
+ | Text appears all at once | startFrame doesn't match phase visibility | Align startFrame with when the phase opacity > 0 |
435
+ | Cards have uneven heights | Missing alignItems: stretch | Add `alignItems: "stretch"` to flex parent |
436
+ | Counter overshoots | Missing Math.min() | Wrap in `Math.min(targetValue, ...)` |
437
+ | "Entry point not found" | Missing Root.tsx path | Include `src/Root.tsx` in render command |
438
+ | Music too loud | Cruising volume too high | Reduce from 0.35 to 0.20 |
439
+ | Build error: duplicate frame in interpolate | Repeated value in input range | Bump duplicates by 1 (e.g., 15 -> 16) |