@auscera/cleoedits 0.0.0-stage → 0.1.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 (230) hide show
  1. package/README.md +62 -2
  2. package/cli.mjs +149 -0
  3. package/lib/dependencies.mjs +384 -0
  4. package/lib/run.mjs +114 -0
  5. package/lib/workspace.mjs +167 -0
  6. package/package.json +240 -3
  7. package/workspace/.agents/skills/cleoedits/SKILL.md +29 -0
  8. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/audiogram.json +41 -0
  9. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/facebook.json +48 -0
  10. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/linkedin.json +48 -0
  11. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/podcast.json +23 -0
  12. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/reels.json +48 -0
  13. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/shorts.json +48 -0
  14. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/tiktok.json +48 -0
  15. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/x.json +48 -0
  16. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/youtube-shorts.json +48 -0
  17. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/youtube.json +48 -0
  18. package/workspace/.agents/skills/cleoedits/assets/reel_effects/assets/LICENSE-SimpleIcons +30 -0
  19. package/workspace/.agents/skills/cleoedits/assets/reel_effects/assets/logos.json +1 -0
  20. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Anton-Regular.ttf +0 -0
  21. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/ArchivoBlack-Regular.ttf +0 -0
  22. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/InstrumentSerif-Italic.ttf +0 -0
  23. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Inter.ttf +0 -0
  24. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/LICENSE-PermanentMarker.txt +202 -0
  25. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Montserrat.ttf +0 -0
  26. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Anton.txt +93 -0
  27. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-ArchivoBlack.txt +93 -0
  28. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-InstrumentSerif.txt +93 -0
  29. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Inter.txt +93 -0
  30. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Montserrat.txt +93 -0
  31. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-PlayfairDisplay.txt +93 -0
  32. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Poppins.txt +93 -0
  33. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-SpaceMono.txt +93 -0
  34. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PermanentMarker-Regular.ttf +0 -0
  35. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PlayfairDisplay-Italic.ttf +0 -0
  36. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PlayfairDisplay.ttf +0 -0
  37. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-Black.ttf +0 -0
  38. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-Bold.ttf +0 -0
  39. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-ExtraBold.ttf +0 -0
  40. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/SpaceMono-Bold.ttf +0 -0
  41. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/LICENSE-MediaPipe +218 -0
  42. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/LICENSE-YuNet +21 -0
  43. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/NOTICE.md +4 -0
  44. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/selfie_segmenter.tflite +0 -0
  45. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/yunet.onnx +0 -0
  46. package/workspace/.agents/skills/cleoedits/assets/video_styles/LICENSE +21 -0
  47. package/workspace/.agents/skills/cleoedits/assets/video_styles/audio-app-ui/STYLE.md +65 -0
  48. package/workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/STYLE.md +53 -0
  49. package/workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/index.html +328 -0
  50. package/workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/studio.js +57 -0
  51. package/workspace/.agents/skills/cleoedits/assets/video_styles/data-story/STYLE.md +65 -0
  52. package/workspace/.agents/skills/cleoedits/assets/video_styles/data-story/index.html +575 -0
  53. package/workspace/.agents/skills/cleoedits/assets/video_styles/design-app-ui/STYLE.md +68 -0
  54. package/workspace/.agents/skills/cleoedits/assets/video_styles/editor-ui/STYLE.md +73 -0
  55. package/workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/STYLE.md +54 -0
  56. package/workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/index.html +189 -0
  57. package/workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/studio.js +57 -0
  58. package/workspace/.agents/skills/cleoedits/assets/video_styles/explainer-diagram/STYLE.md +64 -0
  59. package/workspace/.agents/skills/cleoedits/assets/video_styles/explainer-diagram/index.html +620 -0
  60. package/workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/STYLE.md +55 -0
  61. package/workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/index.html +238 -0
  62. package/workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/studio.js +57 -0
  63. package/workspace/.agents/skills/cleoedits/assets/video_styles/growing-city/STYLE.md +66 -0
  64. package/workspace/.agents/skills/cleoedits/assets/video_styles/growing-city/index.html +602 -0
  65. package/workspace/.agents/skills/cleoedits/assets/video_styles/ink-line/STYLE.md +66 -0
  66. package/workspace/.agents/skills/cleoedits/assets/video_styles/ink-line/index.html +777 -0
  67. package/workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/STYLE.md +56 -0
  68. package/workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/index.html +186 -0
  69. package/workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/studio.js +57 -0
  70. package/workspace/.agents/skills/cleoedits/assets/video_styles/motion-app-ui/STYLE.md +68 -0
  71. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/STYLE.md +56 -0
  72. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/index.html +244 -0
  73. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/studio.js +57 -0
  74. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-world/STYLE.md +67 -0
  75. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-world/index.html +663 -0
  76. package/workspace/.agents/skills/cleoedits/assets/video_styles/particle-field/STYLE.md +59 -0
  77. package/workspace/.agents/skills/cleoedits/assets/video_styles/particle-field/index.html +395 -0
  78. package/workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/STYLE.md +52 -0
  79. package/workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/index.html +194 -0
  80. package/workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/studio.js +57 -0
  81. package/workspace/.agents/skills/cleoedits/assets/video_styles/risograph/STYLE.md +58 -0
  82. package/workspace/.agents/skills/cleoedits/assets/video_styles/risograph/index.html +242 -0
  83. package/workspace/.agents/skills/cleoedits/assets/video_styles/risograph/studio.js +57 -0
  84. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/STYLE.md +53 -0
  85. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/index.html +138 -0
  86. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/studio.js +57 -0
  87. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-kinetic/STYLE.md +63 -0
  88. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-kinetic/index.html +599 -0
  89. package/workspace/.agents/skills/cleoedits/assets/video_styles/time-travel/STYLE.md +65 -0
  90. package/workspace/.agents/skills/cleoedits/assets/video_styles/time-travel/index.html +1297 -0
  91. package/workspace/.agents/skills/cleoedits/assets/video_styles/weather-widget/STYLE.md +69 -0
  92. package/workspace/.agents/skills/cleoedits/assets/video_styles/weather-widget/index.html +674 -0
  93. package/workspace/.agents/skills/cleoedits/references/audio-clearervoice-elevenlabs.md +11 -0
  94. package/workspace/.agents/skills/cleoedits/references/ffmpeg-and-reels.md +15 -0
  95. package/workspace/.agents/skills/cleoedits/references/hyperframes-workflows.md +13 -0
  96. package/workspace/.agents/skills/cleoedits/references/kdenlive-cli-and-mcp.md +12 -0
  97. package/workspace/.agents/skills/cleoedits/references/motion-design-pipeline.md +7 -0
  98. package/workspace/.agents/skills/cleoedits/references/motion-taste-emil.md +5 -0
  99. package/workspace/.agents/skills/cleoedits/references/playwright-demo-capture.md +9 -0
  100. package/workspace/.agents/skills/cleoedits/references/remotion-workflows.md +13 -0
  101. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/LICENSE +21 -0
  102. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_ass_overlay.py +399 -0
  103. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/__init__.py +235 -0
  104. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/alpha.py +560 -0
  105. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/asr.py +1237 -0
  106. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/color.py +540 -0
  107. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/decision.py +2452 -0
  108. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/drawtext.py +290 -0
  109. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/emit.py +1309 -0
  110. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/emoji.py +518 -0
  111. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/fonts.py +875 -0
  112. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/pacing.py +263 -0
  113. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/pacing_edit.py +432 -0
  114. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/probe.py +1613 -0
  115. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/runner.py +3994 -0
  116. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/text.py +73 -0
  117. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/timeline.py +721 -0
  118. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/wrap.py +981 -0
  119. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_contract.py +2454 -0
  120. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_platforms.py +258 -0
  121. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_review.html +754 -0
  122. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_review.py +258 -0
  123. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_smartcut.py +450 -0
  124. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/audio.py +867 -0
  125. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/background.py +136 -0
  126. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/batch.py +1409 -0
  127. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/broll.py +282 -0
  128. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/caption.py +2207 -0
  129. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/check.py +815 -0
  130. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/color.py +695 -0
  131. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/crop.py +91 -0
  132. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/cropdetect.py +214 -0
  133. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/cut.py +2076 -0
  134. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/deinterlace.py +90 -0
  135. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/denoise.py +94 -0
  136. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/export.py +1033 -0
  137. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/fit.py +729 -0
  138. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/freeze.py +197 -0
  139. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/graphics.py +920 -0
  140. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/grid.py +235 -0
  141. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/insert.py +142 -0
  142. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/join.py +1083 -0
  143. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/look.py +475 -0
  144. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/loop.py +395 -0
  145. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/loudness.py +397 -0
  146. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/metadata.py +416 -0
  147. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/multicam.py +414 -0
  148. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/overlay.py +766 -0
  149. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/pad.py +121 -0
  150. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/probe.py +145 -0
  151. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/proxy.py +93 -0
  152. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/redact.py +162 -0
  153. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/render.py +2424 -0
  154. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/report.py +354 -0
  155. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/reverse.py +114 -0
  156. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/scenes.py +439 -0
  157. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/sequence.py +285 -0
  158. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/silence.py +945 -0
  159. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/speedramp.py +193 -0
  160. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/sphere.py +137 -0
  161. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/stabilize.py +141 -0
  162. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/straighten.py +120 -0
  163. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/sync.py +500 -0
  164. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/verify.py +411 -0
  165. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/waveform.py +502 -0
  166. package/workspace/.agents/skills/cleoedits/scripts/kdenlive_builder.py +284 -0
  167. package/workspace/.agents/skills/cleoedits/scripts/motion/LICENSE-claude-motion +21 -0
  168. package/workspace/.agents/skills/cleoedits/scripts/motion/LICENSE-motion-design +21 -0
  169. package/workspace/.agents/skills/cleoedits/scripts/motion/_media.py +43 -0
  170. package/workspace/.agents/skills/cleoedits/scripts/motion/pacing_check.py +90 -0
  171. package/workspace/.agents/skills/cleoedits/scripts/motion/storyboard.py +77 -0
  172. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/LICENSE +26 -0
  173. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/fx.py +2717 -0
  174. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/logos.py +194 -0
  175. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/sfx.py +105 -0
  176. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/trim.py +99 -0
  177. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/words.py +60 -0
  178. package/workspace/.claude/commands/blender-3d.md +12 -0
  179. package/workspace/.claude/commands/business-short-form-reels.md +12 -0
  180. package/workspace/.claude/commands/color-grade.md +12 -0
  181. package/workspace/.claude/commands/cutout-grid-reel.md +12 -0
  182. package/workspace/.claude/commands/depth-ui-reel.md +12 -0
  183. package/workspace/.claude/commands/explainer-panel-reel.md +12 -0
  184. package/workspace/.claude/commands/freeze-frame.md +12 -0
  185. package/workspace/.claude/commands/glass-graph.md +12 -0
  186. package/workspace/.claude/commands/over-the-shoulder.md +12 -0
  187. package/workspace/.claude/commands/personal-short-form-reels.md +12 -0
  188. package/workspace/.claude/commands/ranking-format.md +12 -0
  189. package/workspace/.claude/commands/relight.md +12 -0
  190. package/workspace/.claude/commands/reverse-engineer.md +12 -0
  191. package/workspace/.claude/commands/text-behind.md +12 -0
  192. package/workspace/.claude/commands/tier-list.md +12 -0
  193. package/workspace/.claude-plugin/plugin.json +8 -0
  194. package/workspace/.npmignore +15 -0
  195. package/workspace/AGENTS.md +30 -0
  196. package/workspace/README.md +63 -0
  197. package/workspace/assets/fonts/TikTokSans-OFL.txt +93 -0
  198. package/workspace/assets/fonts/TikTokSans-Variable.ttf +0 -0
  199. package/workspace/assets/luts/clean_warm.cube +4917 -0
  200. package/workspace/assets/luts/golden_hour.cube +4917 -0
  201. package/workspace/assets/luts/moody_dark.cube +4917 -0
  202. package/workspace/assets/luts/teal_orange.cube +4917 -0
  203. package/workspace/assets/sfx/NOTICE.txt +1 -0
  204. package/workspace/assets/sfx/click.wav +0 -0
  205. package/workspace/assets/sfx/pop.wav +0 -0
  206. package/workspace/assets/sfx/riser.wav +0 -0
  207. package/workspace/assets/sfx/whoosh.wav +0 -0
  208. package/workspace/generators/hyperframes/index.html +39 -0
  209. package/workspace/generators/hyperframes/package.json +15 -0
  210. package/workspace/generators/hyperframes/pnpm-lock.yaml +1181 -0
  211. package/workspace/generators/hyperframes/pnpm-workspace.yaml +10 -0
  212. package/workspace/generators/remotion/eslint.config.mjs +3 -0
  213. package/workspace/generators/remotion/package.json +36 -0
  214. package/workspace/generators/remotion/pnpm-lock.yaml +4179 -0
  215. package/workspace/generators/remotion/pnpm-workspace.yaml +10 -0
  216. package/workspace/generators/remotion/remotion.config.ts +13 -0
  217. package/workspace/generators/remotion/src/Root.tsx +52 -0
  218. package/workspace/generators/remotion/src/index.css +1 -0
  219. package/workspace/generators/remotion/src/index.ts +4 -0
  220. package/workspace/generators/remotion/tsconfig.json +15 -0
  221. package/workspace/pipeline/scripts/_codec.py +28 -0
  222. package/workspace/pipeline/scripts/ai_media_api.py +109 -0
  223. package/workspace/pipeline/scripts/blender_render.py +166 -0
  224. package/workspace/pipeline/scripts/composite.py +49 -0
  225. package/workspace/pipeline/scripts/melt.sh +68 -0
  226. package/workspace/pipeline/scripts/normalize_audio.py +39 -0
  227. package/workspace/pipeline/scripts/person_matte.py +216 -0
  228. package/workspace/pipeline/scripts/record_demo.py +69 -0
  229. package/workspace/pipeline/scripts/whisper_cut.py +98 -0
  230. package/workspace-manifest.json +908 -0
@@ -0,0 +1,53 @@
1
+ # Swiss Grid
2
+
3
+ id: swiss-grid
4
+ Reference piece: styles/swiss-grid/index.html (9 s, loops)
5
+ Gallery video: gallery/videos/swiss-grid.mp4
6
+ Best for: titles, product facts, launch cards, kinetic type.
7
+ Mood: calm, exact, loud type on white.
8
+
9
+ ## Palette (hex)
10
+ - ground: #FFFFFF
11
+ - ink: #111111
12
+ - grid lines: #E6E6E6
13
+ - accent: #E4002B (one thing per shot, never two)
14
+
15
+ ## Type
16
+ - Display: Inter 900, tracking -0.04em, line height 0.9
17
+ - Labels: Inter 600, 28 to 36 px, tracking -0.01em
18
+ - Size: the hero word fills 40% or more of the frame width
19
+ - Font links:
20
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap">
21
+
22
+ ## Easing (numbers)
23
+ - land: expo.out, 0.6 s (18 frames)
24
+ - leave: power3.in, 0.35 s (10 frames)
25
+ - move: expo.inOut, 0.9 s (27 frames)
26
+ - settle: overshoot no more than 4%
27
+ - stagger: 0.06 s between lines
28
+
29
+ ## Motion rules
30
+ - Text enters by a masked slide up. It never fades in from nothing.
31
+ - One hero move per shot. Everything else waits or drifts.
32
+ - Hold each finished layout at least 0.6 s.
33
+ - Things sit on the grid when they land.
34
+
35
+ ## Signature moves
36
+ - A word swaps inside its row mask like a conveyor: the old word rises out, the new one follows right behind it.
37
+ - One red dot is the full stop. It hops to the end of the new word, squashes on landing and settles.
38
+ - A block of black tiles slides one tile at a time into the gap, on the grid, every second.
39
+ - Type and blocks line up: the cap top of the first line and the last baseline match the block's top and bottom.
40
+
41
+ ## Composition
42
+ 12 columns, 96 px margins, 24 px gutter, 8 px baseline.
43
+
44
+ ## With media
45
+ - Photos and clips sit in hard-edged grid cells (no rounded corners), cropped to the column width.
46
+ - Use them black and white or as they are; the red stays for one small thing only.
47
+ - A photo can be one of the tiles: it slides into the gap like the others.
48
+
49
+ ## Ban list
50
+ - gradients, shadows, glow, blur
51
+ - rounded corners
52
+ - centred everything (hang text off the left margin)
53
+ - a second accent colour
@@ -0,0 +1,138 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=1920, height=1080" />
6
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap" />
7
+ <script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
8
+ <script src="studio.js"></script>
9
+ <style>
10
+ /* style: swiss-grid. Every colour comes from these tokens. */
11
+ :root { --ground: #FFFFFF; --ink: #111111; --grid: #E6E6E6; --accent: #E4002B; }
12
+ * { margin: 0; padding: 0; box-sizing: border-box; }
13
+ html, body { width: 1920px; height: 1080px; overflow: hidden; background: var(--ground); }
14
+ #root { position: relative; width: 1920px; height: 1080px; overflow: hidden; background: var(--ground);
15
+ font-family: 'Inter', sans-serif; color: var(--ink); }
16
+ .abs { position: absolute; }
17
+ .vline { position: absolute; top: 0; width: 1px; height: 1080px; background: var(--grid); }
18
+ .hline { position: absolute; left: 0; height: 1px; width: 1920px; background: var(--grid); }
19
+ .row { position: absolute; left: 96px; width: 1000px; overflow: hidden; font-size: 290px; font-weight: 900;
20
+ letter-spacing: -0.045em; line-height: 1.15; height: 1.15em; white-space: nowrap; }
21
+ .word { position: absolute; left: 0; top: 0; }
22
+ .probe { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
23
+ .tile { position: absolute; width: 218px; height: 218px; background: var(--ink); }
24
+ #dot { position: absolute; width: 62px; height: 62px; border-radius: 50%; background: var(--accent); }
25
+ </style>
26
+ </head>
27
+ <body>
28
+ <div id="root" data-composition-id="main" data-start="0" data-duration="9" data-width="1920" data-height="1080"></div>
29
+ <script>
30
+ const S = STUDIO, root = S.root;
31
+ const add = (cls, css, html) => { const d = document.createElement('div'); d.className = cls;
32
+ Object.assign(d.style, css || {}); if (html != null) d.innerHTML = html; root.appendChild(d); return d; };
33
+
34
+ // the grid: 12 columns, 96 px margins, 24 px gutters
35
+ const COL = 122, GUT = 24, M = 96;
36
+ for (let c = 0; c <= 12; c++) {
37
+ const x = M + c * (COL + GUT) - (c === 12 ? GUT : 0);
38
+ add('vline', { left: x + 'px' });
39
+ if (c > 0 && c < 12) add('vline', { left: (x - GUT) + 'px' });
40
+ }
41
+ [M, 1080 - M].forEach(y => add('hline', { top: y + 'px' }));
42
+
43
+ // the type: three rows, each its own mask. Row 3 swaps its word: move -> loop -> land -> move
44
+ // tiles span columns 8 to 12; the type's cap top and last baseline line up with the tile block
45
+ const T = 218, TG = 24, BX = M + 7 * (COL + GUT), BY = 540 - (3 * T + 2 * TG) / 2, BH = 3 * T + 2 * TG;
46
+ const FS = 290, CAP = 0.727 * FS, PITCH = (BH - CAP) / 2;
47
+ const BASE = [BY + CAP, BY + CAP + PITCH, BY + BH]; // the three baselines
48
+ const rows = [0, 1, 2].map(i => add('row'));
49
+ const fixed = [['Make'], ['it']];
50
+ fixed.forEach((w, i) => { rows[i].innerHTML = `<span class="word">${w[0]}</span>`; });
51
+ const VERBS = ['move', 'loop', 'land'];
52
+ const verbs = VERBS.map(v => { const s = document.createElement('span'); s.className = 'word';
53
+ s.innerHTML = v + '<span class="probe"></span>'; rows[2].appendChild(s); return s; });
54
+ rows[0].firstChild.innerHTML += '<span class="probe"></span>';
55
+ const dot = add('', {}, ''); dot.id = 'dot';
56
+
57
+ // the tiles: 3 x 3 block on the right, one gap that walks a loop of 6 cells
58
+ const cell = (r, c) => [BX + c * (T + TG), BY + r * (T + TG)];
59
+ const RING = [[0, 1], [0, 2], [1, 2], [2, 2], [2, 1], [1, 1]]; // the gap visits these, in order
60
+ const MOVES = [0.5, 2.5, 3.5, 5.5, 6.5, 8.5]; // one tile slides at each time
61
+ const tiles = [];
62
+ for (let r = 0; r < 3; r++) for (let c = 0; c < 3; c++) {
63
+ if (r === 0 && c === 1) continue; // the gap at t = 0
64
+ const e = add('tile'); tiles.push({ e, r, c });
65
+ }
66
+ // precompute each tile's path: at move k the tile in RING[k+1] slides into the gap RING[k]
67
+ const tileAt = new Map(tiles.map(t => [t.r + ',' + t.c, t]));
68
+ const path = [];
69
+ MOVES.forEach((t0, k) => {
70
+ const from = RING[(k + 1) % 6], to = RING[k];
71
+ const tile = tileAt.get(from.join(','));
72
+ path.push({ tile, from, to, t0 });
73
+ tileAt.delete(from.join(',')); tileAt.set(to.join(','), tile);
74
+ });
75
+ // tiles are identical, so after the gap walks the whole ring the block looks exactly like frame 0
76
+
77
+ // the word swaps and the dot hops
78
+ const SWAPS = [1.5, 4.5, 7.5];
79
+
80
+ window.__timelines["main"] = S.play(function render(t) {
81
+ // rows: measure where the baseline sits inside a row box (fonts can load late, so measure every frame)
82
+ const b = rows[0].querySelector('.probe').offsetTop;
83
+ rows[0].style.top = (BASE[0] - b) + 'px';
84
+ rows[1].style.top = (BASE[1] - b) + 'px';
85
+ // row 3 is a tight mask: from just under row 2's baseline to just under its own descenders
86
+ const mTop = BASE[1] + 0.07 * FS, mBot = BASE[2] + 0.27 * FS, MH = mBot - mTop;
87
+ Object.assign(rows[2].style, { top: mTop + 'px', height: MH + 'px' });
88
+ const wordTop = BASE[2] - mTop - b; // puts the word on its baseline
89
+ // tiles
90
+ for (const tl of tiles) { tl.x = cell(tl.r, tl.c)[0]; tl.y = cell(tl.r, tl.c)[1]; }
91
+ const pos = new Map(tiles.map(tl => [tl, cell(tl.r, tl.c)]));
92
+ for (const m of path) {
93
+ const p = S.seg(t, m.t0, 0.45, 'power3.inOut');
94
+ if (t >= m.t0) {
95
+ const a = cell(...m.from), b = cell(...m.to);
96
+ pos.set(m.tile, [S.mix(a[0], b[0], p), S.mix(a[1], b[1], p)]);
97
+ }
98
+ }
99
+ for (const tl of tiles) { const [x, y] = pos.get(tl); tl.e.style.transform = `translate(${x}px, ${y}px)`; }
100
+
101
+ // which verb is showing, and the swap in progress
102
+ let k = 0; SWAPS.forEach((s, i) => { if (t >= s) k = i + 1; });
103
+ const cur = k % 3, prev = (k + 2) % 3, ts = k ? SWAPS[k - 1] : -10;
104
+ verbs.forEach((v, i) => {
105
+ // one conveyor move: the old word rises out of the mask and the new one follows right behind it
106
+ const p = k ? S.seg(t, ts + 0.05, 0.8, 'expo.inOut') : 1;
107
+ let y = MH * 1.4; // parked below the mask
108
+ if (i === cur) y = (1 - p) * MH;
109
+ if (i === prev && k) y = -p * MH;
110
+ v.style.transform = `translateY(${wordTop + y}px)`;
111
+ });
112
+
113
+ // the dot: sits as the full stop, hops to the next word, squashes on landing
114
+ const endX = i => M + verbs[i].offsetWidth + 0.035 * FS;
115
+ const base = BASE[2]; // the text baseline
116
+ const D0 = 62;
117
+ let x = endX(cur), y = base, sx = 1, sy = 1;
118
+ if (k && t < ts + 1.0) {
119
+ const x0 = endX(prev), x1 = endX(cur);
120
+ const dt = t - ts;
121
+ if (dt < 0.12) { // anticipation
122
+ const a = S.seg(t, ts, 0.12, 'power2.out'); x = x0; sx = 1 + 0.18 * a; sy = 1 - 0.22 * a;
123
+ } else if (dt < 0.66) { // the hop
124
+ const p = (dt - 0.12) / 0.54, e = S.ease('power2.inOut')(p);
125
+ x = S.mix(x0, x1, e); y = base - 260 * 4 * p * (1 - p);
126
+ const v = Math.abs(1 - 2 * p); sx = 0.86 + 0.14 * v; sy = 1.18 - 0.18 * v;
127
+ } else { // land, squash, settle
128
+ const d = dt - 0.66, sq = 0.3 * Math.exp(-9 * d) * Math.cos(16 * d);
129
+ x = x1; sx = 1 + sq; sy = 1 - sq;
130
+ }
131
+ }
132
+ dot.style.transform = `translate(${x}px, ${y - D0}px) scale(${sx}, ${sy})`;
133
+ dot.style.transformOrigin = '50% 100%';
134
+ dot.style.left = '0px'; dot.style.top = '0px';
135
+ }, { loop: true });
136
+ </script>
137
+ </body>
138
+ </html>
@@ -0,0 +1,57 @@
1
+ // studio.js: one clock for the whole piece (hack 4).
2
+ // Load it after GSAP and before your scene script.
3
+ // Your scene calls STUDIO.play(render). render(t) must draw the WHOLE frame from t alone.
4
+ // Same t in, same picture out. That makes renders exact, seekable, and loopable.
5
+ (function () {
6
+ // works from <head> or <body>: the root is looked up the first time it is needed
7
+ const R = () => document.querySelector('[data-composition-id]');
8
+ const num = (k) => +R().dataset[k];
9
+ const cache = {};
10
+ const S = {
11
+ get root() { return R(); },
12
+ get D() { return num('duration'); },
13
+ get W() { return num('width'); },
14
+ get H() { return num('height'); },
15
+ get V() { return S.H > S.W; }, // true for 9:16
16
+ get u() { return Math.min(S.W, S.H) / 1080; }, // 1 unit = 1 px at a 1080 short side
17
+ ease(name) { return cache[name] || (cache[name] = name === 'none' ? (p) => p : gsap.parseEase(name)); },
18
+ // eased 0..1 progress of a move that starts at `start` and lasts `dur`
19
+ seg(t, start, dur, ease) {
20
+ const p = Math.min(1, Math.max(0, (t - start) / dur));
21
+ return S.ease(ease || 'power3.out')(p);
22
+ },
23
+ mix(a, b, p) { return a + (b - a) * p; },
24
+ // a wave that always loops: use whole-number cycles
25
+ wave(t, cycles, offset) { return Math.sin(2 * Math.PI * ((cycles || 1) * t / S.D + (offset || 0))); },
26
+ // seeded random numbers (never use Math.random in a render)
27
+ rng(seed) {
28
+ let a = seed >>> 0;
29
+ return function () {
30
+ a = (a + 0x6d2b79f5) | 0;
31
+ let t = Math.imul(a ^ (a >>> 15), 1 | a);
32
+ t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
33
+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
34
+ };
35
+ },
36
+ // one clock drives everything; loop:true wraps t so t = D draws the same frame as t = 0
37
+ play(render, opts) {
38
+ const loop = !opts || opts.loop !== false;
39
+ const D = S.D, root = S.root;
40
+ const clock = { t: 0 };
41
+ const tl = gsap.timeline({ paused: true });
42
+ // loop_check.py sets STUDIO_NO_WRAP so it can prove render(end) really equals render(0)
43
+ const wrap = loop && !window.STUDIO_NO_WRAP;
44
+ const draw = () => render(wrap ? clock.t % D : clock.t);
45
+ tl.to(clock, { t: D, duration: D, ease: 'none', onUpdate: draw }, 0);
46
+ draw();
47
+ // fonts can arrive after the first draw; draw again so text measured from them is right,
48
+ // even on frame 0 (seeking to the time you are already at does not redraw)
49
+ if (document.fonts && document.fonts.ready) document.fonts.ready.then(draw);
50
+ window.addEventListener('load', draw);
51
+ window.__timelines = window.__timelines || {};
52
+ window.__timelines[root.dataset.compositionId] = tl;
53
+ return tl;
54
+ },
55
+ };
56
+ window.STUDIO = S;
57
+ })();
@@ -0,0 +1,63 @@
1
+ # Swiss kinetic type
2
+
3
+ id: swiss-kinetic
4
+ Best for: kinetic type, music promos, title sequences, slogans, event openers, brand stings
5
+ Mood: a printed Swiss poster that dances on the beat, with one red dot that never leaves.
6
+ Reference piece: styles/swiss-kinetic/index.html (14 s, does not loop)
7
+ Gallery video: gallery/videos/swiss-kinetic.mp4
8
+
9
+ ## Palette (hex)
10
+ - ground: #F1EEE6 (warm off-white stock, with grain and fibres)
11
+ - ink: #111111
12
+ - grid hairlines: #111111 at 34% opacity
13
+ - tiles: #1D1C1A to #0C0C0C (soft top-to-bottom ink gradient)
14
+ - panel: #DDD7CD, floor #CBC4B8
15
+ - accent: #E63022 Swiss red (the ONE accent: the dot, the rules, the bars). #B3241A is only its shadow side.
16
+
17
+ ## Type
18
+ - Display: Inter Tight 700, tracking 0, line height 1. Words are sized to fit grid cells exactly (x height = one row, or the word fills the full width)
19
+ - Labels: none. Every word is display size.
20
+ - Font links (paste into <head>; all fonts are free):
21
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@700&display=swap">
22
+
23
+ ## Easing (numbers)
24
+ - land: expo.out, 0.36 s (slams), with motion blur 34 px falling to 0 in 0.24 s
25
+ - leave: power4.in, 0.3 s (bands shear out with 70 px blur)
26
+ - move: power4.inOut, 0.46 s (rotate, slide, grow)
27
+ - settle: elastic.out(1, 0.45), 0.4 s; overshoot 1.5 degrees on the rotate
28
+ - notes: back.out(1.25), 0.3 s (letters stepping rows)
29
+ - stagger: 0.03 s between letters, 0.035 s between grid lines
30
+
31
+ ## Motion rules
32
+ - Every hit lands on the 0.5 s beat (120 BPM). Hold a beat after each big move.
33
+ - Words never fade. They rise out of a mask, slide in, or stamp down.
34
+ - Fast moves get directional motion blur. It clears the moment the move ends.
35
+ - The grid pulses (opacity 1 back to 0.6) on every hit.
36
+ - Cut on motion: the exit of one idea is the entrance of the next.
37
+ - Things that land squash: the dot squashes and springs back, tiles shrink to 98.5% then settle.
38
+
39
+ ## Signature moves
40
+ - The one red dot: big circle, then a full stop, then the dot of an i, then the empty slot of the puzzle, then the big circle again in the same place.
41
+ - The slam and slice: the hero word rises with a red mis-registered ghost, is cut into 3 bands that shear, then snaps back.
42
+ - The melody: letters jump between grid rows like notes on a staff.
43
+ - The sliding puzzle: black tiles slide one cell per beat and the dot swaps places with each tile.
44
+
45
+ ## Composition
46
+ - 6 x 4 modular grid: columns 260 px, gutter 40, rows 152 px, gutter 96, margins 80 left and right, 92 top and bottom.
47
+ - The grid is visible and draws itself in first. Every word, bar and tile snaps to it.
48
+ - Hang text off the left margin. The circle lives top right.
49
+ - The frame is full: one giant word, or a full poster, never a small thing in the middle.
50
+
51
+ ## With media
52
+ - Letters become windows. Use an SVG clipPath built from the word's glyphs, set on the clip's wrapper with CSS clip-path.
53
+ - Grade the clip inside the letters to duotone with an SVG feColorMatrix: background goes to ink, the subject keeps the red.
54
+ - Zoom in about 2x on the subject while it is in the letters.
55
+ - To show the clip clean, open one letter stem into a full grid panel (cols 4 to 6) and crossfade a lightly warmed, ungraded layer in 0.4 s.
56
+ - Red EQ bars on the beat sit beside the panel, never on top of it.
57
+
58
+ ## Ban list
59
+ - a second accent colour
60
+ - fades from nothing, soft dissolves
61
+ - centred layouts, words off the grid
62
+ - rounded corners, glows, gradients on type
63
+ - more than one idea moving at once