@amg555/frameforge-mcp 2.7.3 → 2.7.7

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 (565) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/AGENTS.md +33 -0
  3. package/CHANGELOG.md +49 -0
  4. package/CLAUDE.md +17 -6
  5. package/GEMINI.md +63 -0
  6. package/README.md +216 -426
  7. package/START_HERE.md +4 -2
  8. package/package.json +5 -3
  9. package/plugins/ai-video-editor/README.md +32 -0
  10. package/plugins/ai-video-editor/SKILL.md +152 -0
  11. package/plugins/ai-video-editor/assets/fonts/fonts.css +2409 -0
  12. package/plugins/ai-video-editor/assets/fonts/ttf/anton-400.ttf +0 -0
  13. package/plugins/ai-video-editor/assets/fonts/ttf/archivo-800.ttf +0 -0
  14. package/plugins/ai-video-editor/assets/fonts/ttf/cabin-sketch-700.ttf +0 -0
  15. package/plugins/ai-video-editor/assets/fonts/ttf/dm-sans-700.ttf +0 -0
  16. package/plugins/ai-video-editor/assets/fonts/ttf/fraunces-600.ttf +0 -0
  17. package/plugins/ai-video-editor/assets/fonts/ttf/fraunces-700.ttf +0 -0
  18. package/plugins/ai-video-editor/assets/fonts/ttf/fredoka-700.ttf +0 -0
  19. package/plugins/ai-video-editor/assets/fonts/ttf/inter-700.ttf +0 -0
  20. package/plugins/ai-video-editor/assets/fonts/ttf/inter-800.ttf +0 -0
  21. package/plugins/ai-video-editor/assets/fonts/ttf/inter-tight-800.ttf +0 -0
  22. package/plugins/ai-video-editor/assets/fonts/ttf/kalam-700.ttf +0 -0
  23. package/plugins/ai-video-editor/assets/fonts/ttf/noto-sans-devanagari-700.ttf +0 -0
  24. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-400-normal.woff2 +0 -0
  25. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-500-normal.woff2 +0 -0
  26. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-600-normal.woff2 +0 -0
  27. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-700-normal.woff2 +0 -0
  28. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-800-normal.woff2 +0 -0
  29. package/plugins/ai-video-editor/engine/hidpi.js +117 -0
  30. package/plugins/ai-video-editor/engine/page.html +43 -0
  31. package/plugins/ai-video-editor/engine/player.js +145 -0
  32. package/plugins/ai-video-editor/references/example-story-warm-canvas.js +95 -0
  33. package/plugins/ai-video-editor/references/story-guide.md +112 -0
  34. package/plugins/ai-video-editor/requirements.txt +4 -0
  35. package/plugins/ai-video-editor/styles/chalk-talk/base.js +490 -0
  36. package/plugins/ai-video-editor/styles/chalk-talk/style.json +14 -0
  37. package/plugins/ai-video-editor/styles/chalk-talk/style.md +41 -0
  38. package/plugins/ai-video-editor/styles/clean-tech/base.js +447 -0
  39. package/plugins/ai-video-editor/styles/clean-tech/style.json +15 -0
  40. package/plugins/ai-video-editor/styles/clean-tech/style.md +38 -0
  41. package/plugins/ai-video-editor/styles/creator-motion-graphics/base.js +698 -0
  42. package/plugins/ai-video-editor/styles/creator-motion-graphics/style.json +16 -0
  43. package/plugins/ai-video-editor/styles/creator-motion-graphics/style.md +39 -0
  44. package/plugins/ai-video-editor/styles/data-story/base.js +432 -0
  45. package/plugins/ai-video-editor/styles/data-story/style.json +14 -0
  46. package/plugins/ai-video-editor/styles/data-story/style.md +38 -0
  47. package/plugins/ai-video-editor/styles/index.json +103 -0
  48. package/plugins/ai-video-editor/styles/pop-info/base.js +570 -0
  49. package/plugins/ai-video-editor/styles/pop-info/style.json +13 -0
  50. package/plugins/ai-video-editor/styles/pop-info/style.md +37 -0
  51. package/plugins/ai-video-editor/styles/software-walkthrough/base.js +544 -0
  52. package/plugins/ai-video-editor/styles/software-walkthrough/style.json +15 -0
  53. package/plugins/ai-video-editor/styles/software-walkthrough/style.md +38 -0
  54. package/plugins/ai-video-editor/styles/warm-canvas/base.js +610 -0
  55. package/plugins/ai-video-editor/styles/warm-canvas/style.json +14 -0
  56. package/plugins/ai-video-editor/styles/warm-canvas/style.md +37 -0
  57. package/plugins/aiinsight-shorts/CHANGELOG.md +6 -0
  58. package/plugins/aiinsight-shorts/README.md +43 -0
  59. package/plugins/aiinsight-shorts/SKILL.md +138 -0
  60. package/plugins/aiinsight-shorts/styles/deep-dive/STYLE.md +58 -0
  61. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/cues.json +140 -0
  62. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/lines.json +67 -0
  63. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/words.json +614 -0
  64. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/words.txt +102 -0
  65. package/plugins/aiinsight-shorts/styles/deep-dive/example/fonts/Inter-Black.otf +0 -0
  66. package/plugins/aiinsight-shorts/styles/deep-dive/example/fonts/Inter-ExtraBold.otf +0 -0
  67. package/plugins/aiinsight-shorts/styles/deep-dive/example/index.html +17 -0
  68. package/plugins/aiinsight-shorts/styles/deep-dive/example/script.json +27 -0
  69. package/plugins/aiinsight-shorts/styles/deep-dive/example/sheet.html +11 -0
  70. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/board.js +62 -0
  71. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/captions.js +68 -0
  72. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/engine.js +65 -0
  73. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/human.js +128 -0
  74. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/lib.js +44 -0
  75. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/look2d.js +33 -0
  76. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/sdf.js +79 -0
  77. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/sets.js +107 -0
  78. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/timing.js +23 -0
  79. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/main.js +56 -0
  80. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/sheet.js +79 -0
  81. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/shots.js +136 -0
  82. package/plugins/aiinsight-shorts/styles/deep-dive/example/tools/capture.mjs +122 -0
  83. package/plugins/aiinsight-shorts/styles/deep-dive/example/tools/mix.py +172 -0
  84. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/LICENSE-three.txt +21 -0
  85. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  86. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  87. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  88. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  89. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  90. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/Pass.js +95 -0
  91. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  92. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  93. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  94. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/BokehShader.js +145 -0
  95. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/CopyShader.js +45 -0
  96. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  97. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/OutputShader.js +85 -0
  98. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/three.module.js +6 -0
  99. package/plugins/aiinsight-shorts/styles/deep-dive/style-sheet.png +0 -0
  100. package/plugins/aiinsight-shorts/styles/inside-out/STYLE.md +97 -0
  101. package/plugins/aiinsight-shorts/styles/inside-out/example/data/cues.json +178 -0
  102. package/plugins/aiinsight-shorts/styles/inside-out/example/data/lines.json +73 -0
  103. package/plugins/aiinsight-shorts/styles/inside-out/example/data/words.json +662 -0
  104. package/plugins/aiinsight-shorts/styles/inside-out/example/fonts/Inter-Black.otf +0 -0
  105. package/plugins/aiinsight-shorts/styles/inside-out/example/index.html +17 -0
  106. package/plugins/aiinsight-shorts/styles/inside-out/example/script.json +26 -0
  107. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/captions.js +68 -0
  108. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/kit.js +345 -0
  109. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/lib.js +44 -0
  110. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/timing.js +23 -0
  111. package/plugins/aiinsight-shorts/styles/inside-out/example/src/main.js +62 -0
  112. package/plugins/aiinsight-shorts/styles/inside-out/example/src/shots.js +195 -0
  113. package/plugins/aiinsight-shorts/styles/inside-out/example/tools/capture.mjs +122 -0
  114. package/plugins/aiinsight-shorts/styles/inside-out/example/tools/mix.py +172 -0
  115. package/plugins/aiinsight-shorts/styles/inside-out/style-sheet.png +0 -0
  116. package/plugins/aiinsight-shorts/styles/night-file/STYLE.md +36 -0
  117. package/plugins/aiinsight-shorts/styles/night-file/example/data/cues.json +146 -0
  118. package/plugins/aiinsight-shorts/styles/night-file/example/data/lines.json +73 -0
  119. package/plugins/aiinsight-shorts/styles/night-file/example/data/words.json +572 -0
  120. package/plugins/aiinsight-shorts/styles/night-file/example/data/words.txt +95 -0
  121. package/plugins/aiinsight-shorts/styles/night-file/example/fonts/FreeMonoBold.ttf +0 -0
  122. package/plugins/aiinsight-shorts/styles/night-file/example/fonts/Inter-Black.otf +0 -0
  123. package/plugins/aiinsight-shorts/styles/night-file/example/index.html +18 -0
  124. package/plugins/aiinsight-shorts/styles/night-file/example/script.json +26 -0
  125. package/plugins/aiinsight-shorts/styles/night-file/example/sheet.html +13 -0
  126. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/board.js +62 -0
  127. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/captions.js +49 -0
  128. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/engine.js +65 -0
  129. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/human.js +128 -0
  130. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/kit.js +151 -0
  131. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/lib.js +44 -0
  132. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/sdf.js +79 -0
  133. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/sets3d.js +106 -0
  134. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/timing.js +23 -0
  135. package/plugins/aiinsight-shorts/styles/night-file/example/src/main.js +56 -0
  136. package/plugins/aiinsight-shorts/styles/night-file/example/src/sheet.js +86 -0
  137. package/plugins/aiinsight-shorts/styles/night-file/example/src/shots.js +130 -0
  138. package/plugins/aiinsight-shorts/styles/night-file/example/tools/capture.mjs +122 -0
  139. package/plugins/aiinsight-shorts/styles/night-file/example/tools/mix.py +172 -0
  140. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/LICENSE-three.txt +21 -0
  141. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  142. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  143. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  144. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  145. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  146. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/Pass.js +95 -0
  147. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  148. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  149. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  150. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/BokehShader.js +145 -0
  151. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/CopyShader.js +45 -0
  152. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  153. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/OutputShader.js +85 -0
  154. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/three.module.js +6 -0
  155. package/plugins/aiinsight-shorts/styles/night-file/style-sheet.png +0 -0
  156. package/plugins/aiinsight-shorts/styles/paper-atlas/STYLE.md +30 -0
  157. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/cues.json +167 -0
  158. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/lines.json +67 -0
  159. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/words.json +614 -0
  160. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/words.txt +102 -0
  161. package/plugins/aiinsight-shorts/styles/paper-atlas/example/fonts/Caladea-Bold.ttf +0 -0
  162. package/plugins/aiinsight-shorts/styles/paper-atlas/example/fonts/Inter-Black.otf +0 -0
  163. package/plugins/aiinsight-shorts/styles/paper-atlas/example/index.html +15 -0
  164. package/plugins/aiinsight-shorts/styles/paper-atlas/example/script.json +26 -0
  165. package/plugins/aiinsight-shorts/styles/paper-atlas/example/sheet.html +12 -0
  166. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/board.js +62 -0
  167. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/captions.js +47 -0
  168. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/kit.js +152 -0
  169. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/lib.js +44 -0
  170. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/timing.js +23 -0
  171. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/main.js +62 -0
  172. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/sheet.js +61 -0
  173. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/shots.js +139 -0
  174. package/plugins/aiinsight-shorts/styles/paper-atlas/example/tools/capture.mjs +122 -0
  175. package/plugins/aiinsight-shorts/styles/paper-atlas/example/tools/mix.py +172 -0
  176. package/plugins/aiinsight-shorts/styles/paper-atlas/style-sheet.png +0 -0
  177. package/plugins/aiinsight-shorts/styles/stick-story/STYLE.md +32 -0
  178. package/plugins/aiinsight-shorts/styles/stick-story/example/data/cues.json +182 -0
  179. package/plugins/aiinsight-shorts/styles/stick-story/example/data/lines.json +79 -0
  180. package/plugins/aiinsight-shorts/styles/stick-story/example/data/words.json +662 -0
  181. package/plugins/aiinsight-shorts/styles/stick-story/example/data/words.txt +110 -0
  182. package/plugins/aiinsight-shorts/styles/stick-story/example/fonts/Inter-Black.otf +0 -0
  183. package/plugins/aiinsight-shorts/styles/stick-story/example/fonts/Inter-ExtraBold.otf +0 -0
  184. package/plugins/aiinsight-shorts/styles/stick-story/example/index.html +13 -0
  185. package/plugins/aiinsight-shorts/styles/stick-story/example/script.json +27 -0
  186. package/plugins/aiinsight-shorts/styles/stick-story/example/sheet.html +10 -0
  187. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/board.js +62 -0
  188. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/captions.js +47 -0
  189. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/kit.js +166 -0
  190. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/lib.js +44 -0
  191. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/timing.js +23 -0
  192. package/plugins/aiinsight-shorts/styles/stick-story/example/src/main.js +62 -0
  193. package/plugins/aiinsight-shorts/styles/stick-story/example/src/sheet.js +64 -0
  194. package/plugins/aiinsight-shorts/styles/stick-story/example/src/shots.js +148 -0
  195. package/plugins/aiinsight-shorts/styles/stick-story/example/tools/capture.mjs +122 -0
  196. package/plugins/aiinsight-shorts/styles/stick-story/example/tools/mix.py +172 -0
  197. package/plugins/aiinsight-shorts/styles/stick-story/style-sheet.png +0 -0
  198. package/plugins/aiinsight-shorts/styles/tall-tale/STYLE.md +51 -0
  199. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/cues.json +271 -0
  200. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/lines.json +127 -0
  201. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/words.json +908 -0
  202. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/words.txt +151 -0
  203. package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Caladea-Bold.ttf +0 -0
  204. package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Inter-Black.otf +0 -0
  205. package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Inter-ExtraBold.otf +0 -0
  206. package/plugins/aiinsight-shorts/styles/tall-tale/example/index.html +19 -0
  207. package/plugins/aiinsight-shorts/styles/tall-tale/example/script.json +37 -0
  208. package/plugins/aiinsight-shorts/styles/tall-tale/example/sheet.html +13 -0
  209. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/board.js +62 -0
  210. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/captions.js +56 -0
  211. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/engine.js +65 -0
  212. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/lib.js +44 -0
  213. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/props.js +166 -0
  214. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/timing.js +23 -0
  215. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/toon.js +352 -0
  216. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/world.js +340 -0
  217. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/main.js +56 -0
  218. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/sheet.js +99 -0
  219. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/shots.js +377 -0
  220. package/plugins/aiinsight-shorts/styles/tall-tale/example/tools/capture.mjs +122 -0
  221. package/plugins/aiinsight-shorts/styles/tall-tale/example/tools/mix.py +204 -0
  222. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/LICENSE-three.txt +21 -0
  223. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  224. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  225. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  226. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  227. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  228. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/Pass.js +95 -0
  229. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  230. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  231. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  232. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/BokehShader.js +145 -0
  233. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/CopyShader.js +45 -0
  234. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  235. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/OutputShader.js +85 -0
  236. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/three.module.js +6 -0
  237. package/plugins/aiinsight-shorts/styles/tall-tale/style-sheet.png +0 -0
  238. package/plugins/faceless-shorts/README.md +34 -0
  239. package/plugins/faceless-shorts/SKILL.md +124 -0
  240. package/plugins/faceless-shorts/styles/deep-dive/STYLE.md +58 -0
  241. package/plugins/faceless-shorts/styles/deep-dive/example/data/cues.json +140 -0
  242. package/plugins/faceless-shorts/styles/deep-dive/example/data/lines.json +67 -0
  243. package/plugins/faceless-shorts/styles/deep-dive/example/data/words.json +614 -0
  244. package/plugins/faceless-shorts/styles/deep-dive/example/data/words.txt +102 -0
  245. package/plugins/faceless-shorts/styles/deep-dive/example/fonts/Inter-Black.otf +0 -0
  246. package/plugins/faceless-shorts/styles/deep-dive/example/fonts/Inter-ExtraBold.otf +0 -0
  247. package/plugins/faceless-shorts/styles/deep-dive/example/index.html +16 -0
  248. package/plugins/faceless-shorts/styles/deep-dive/example/script.json +27 -0
  249. package/plugins/faceless-shorts/styles/deep-dive/example/sheet.html +10 -0
  250. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/board.js +62 -0
  251. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/captions.js +68 -0
  252. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/engine.js +65 -0
  253. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/human.js +128 -0
  254. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/lib.js +44 -0
  255. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/look2d.js +33 -0
  256. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/sdf.js +79 -0
  257. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/sets.js +107 -0
  258. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/timing.js +23 -0
  259. package/plugins/faceless-shorts/styles/deep-dive/example/src/main.js +56 -0
  260. package/plugins/faceless-shorts/styles/deep-dive/example/src/sheet.js +79 -0
  261. package/plugins/faceless-shorts/styles/deep-dive/example/src/shots.js +136 -0
  262. package/plugins/faceless-shorts/styles/deep-dive/example/tools/capture.mjs +122 -0
  263. package/plugins/faceless-shorts/styles/deep-dive/example/tools/mix.py +172 -0
  264. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/LICENSE-three.txt +21 -0
  265. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  266. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  267. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  268. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  269. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  270. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/Pass.js +95 -0
  271. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  272. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  273. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  274. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/BokehShader.js +145 -0
  275. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/CopyShader.js +45 -0
  276. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  277. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/OutputShader.js +85 -0
  278. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/three.module.js +6 -0
  279. package/plugins/faceless-shorts/styles/deep-dive/style-sheet.png +0 -0
  280. package/plugins/faceless-shorts/styles/inside-out/STYLE.md +97 -0
  281. package/plugins/faceless-shorts/styles/inside-out/example/data/cues.json +178 -0
  282. package/plugins/faceless-shorts/styles/inside-out/example/data/lines.json +73 -0
  283. package/plugins/faceless-shorts/styles/inside-out/example/data/words.json +662 -0
  284. package/plugins/faceless-shorts/styles/inside-out/example/fonts/Inter-Black.otf +0 -0
  285. package/plugins/faceless-shorts/styles/inside-out/example/index.html +16 -0
  286. package/plugins/faceless-shorts/styles/inside-out/example/script.json +26 -0
  287. package/plugins/faceless-shorts/styles/inside-out/example/src/core/captions.js +68 -0
  288. package/plugins/faceless-shorts/styles/inside-out/example/src/core/kit.js +345 -0
  289. package/plugins/faceless-shorts/styles/inside-out/example/src/core/lib.js +44 -0
  290. package/plugins/faceless-shorts/styles/inside-out/example/src/core/timing.js +23 -0
  291. package/plugins/faceless-shorts/styles/inside-out/example/src/main.js +62 -0
  292. package/plugins/faceless-shorts/styles/inside-out/example/src/shots.js +195 -0
  293. package/plugins/faceless-shorts/styles/inside-out/example/tools/capture.mjs +122 -0
  294. package/plugins/faceless-shorts/styles/inside-out/example/tools/mix.py +172 -0
  295. package/plugins/faceless-shorts/styles/inside-out/style-sheet.png +0 -0
  296. package/plugins/faceless-shorts/styles/night-file/STYLE.md +36 -0
  297. package/plugins/faceless-shorts/styles/night-file/example/data/cues.json +146 -0
  298. package/plugins/faceless-shorts/styles/night-file/example/data/lines.json +73 -0
  299. package/plugins/faceless-shorts/styles/night-file/example/data/words.json +572 -0
  300. package/plugins/faceless-shorts/styles/night-file/example/data/words.txt +95 -0
  301. package/plugins/faceless-shorts/styles/night-file/example/fonts/FreeMonoBold.ttf +0 -0
  302. package/plugins/faceless-shorts/styles/night-file/example/fonts/Inter-Black.otf +0 -0
  303. package/plugins/faceless-shorts/styles/night-file/example/index.html +16 -0
  304. package/plugins/faceless-shorts/styles/night-file/example/script.json +26 -0
  305. package/plugins/faceless-shorts/styles/night-file/example/sheet.html +11 -0
  306. package/plugins/faceless-shorts/styles/night-file/example/src/core/board.js +62 -0
  307. package/plugins/faceless-shorts/styles/night-file/example/src/core/captions.js +49 -0
  308. package/plugins/faceless-shorts/styles/night-file/example/src/core/engine.js +65 -0
  309. package/plugins/faceless-shorts/styles/night-file/example/src/core/human.js +128 -0
  310. package/plugins/faceless-shorts/styles/night-file/example/src/core/kit.js +151 -0
  311. package/plugins/faceless-shorts/styles/night-file/example/src/core/lib.js +44 -0
  312. package/plugins/faceless-shorts/styles/night-file/example/src/core/sdf.js +79 -0
  313. package/plugins/faceless-shorts/styles/night-file/example/src/core/sets3d.js +106 -0
  314. package/plugins/faceless-shorts/styles/night-file/example/src/core/timing.js +23 -0
  315. package/plugins/faceless-shorts/styles/night-file/example/src/main.js +56 -0
  316. package/plugins/faceless-shorts/styles/night-file/example/src/sheet.js +86 -0
  317. package/plugins/faceless-shorts/styles/night-file/example/src/shots.js +130 -0
  318. package/plugins/faceless-shorts/styles/night-file/example/tools/capture.mjs +122 -0
  319. package/plugins/faceless-shorts/styles/night-file/example/tools/mix.py +172 -0
  320. package/plugins/faceless-shorts/styles/night-file/example/vendor/LICENSE-three.txt +21 -0
  321. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  322. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  323. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  324. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  325. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  326. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/Pass.js +95 -0
  327. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  328. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  329. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  330. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/BokehShader.js +145 -0
  331. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/CopyShader.js +45 -0
  332. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  333. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/OutputShader.js +85 -0
  334. package/plugins/faceless-shorts/styles/night-file/example/vendor/three.module.js +6 -0
  335. package/plugins/faceless-shorts/styles/night-file/style-sheet.png +0 -0
  336. package/plugins/faceless-shorts/styles/paper-atlas/STYLE.md +30 -0
  337. package/plugins/faceless-shorts/styles/paper-atlas/example/data/cues.json +167 -0
  338. package/plugins/faceless-shorts/styles/paper-atlas/example/data/lines.json +67 -0
  339. package/plugins/faceless-shorts/styles/paper-atlas/example/data/words.json +614 -0
  340. package/plugins/faceless-shorts/styles/paper-atlas/example/data/words.txt +102 -0
  341. package/plugins/faceless-shorts/styles/paper-atlas/example/fonts/Caladea-Bold.ttf +0 -0
  342. package/plugins/faceless-shorts/styles/paper-atlas/example/fonts/Inter-Black.otf +0 -0
  343. package/plugins/faceless-shorts/styles/paper-atlas/example/index.html +13 -0
  344. package/plugins/faceless-shorts/styles/paper-atlas/example/script.json +26 -0
  345. package/plugins/faceless-shorts/styles/paper-atlas/example/sheet.html +10 -0
  346. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/board.js +62 -0
  347. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/captions.js +47 -0
  348. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/kit.js +152 -0
  349. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/lib.js +44 -0
  350. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/timing.js +23 -0
  351. package/plugins/faceless-shorts/styles/paper-atlas/example/src/main.js +62 -0
  352. package/plugins/faceless-shorts/styles/paper-atlas/example/src/sheet.js +61 -0
  353. package/plugins/faceless-shorts/styles/paper-atlas/example/src/shots.js +139 -0
  354. package/plugins/faceless-shorts/styles/paper-atlas/example/tools/capture.mjs +122 -0
  355. package/plugins/faceless-shorts/styles/paper-atlas/example/tools/mix.py +172 -0
  356. package/plugins/faceless-shorts/styles/paper-atlas/style-sheet.png +0 -0
  357. package/plugins/faceless-shorts/styles/stick-story/STYLE.md +32 -0
  358. package/plugins/faceless-shorts/styles/stick-story/example/data/cues.json +182 -0
  359. package/plugins/faceless-shorts/styles/stick-story/example/data/lines.json +79 -0
  360. package/plugins/faceless-shorts/styles/stick-story/example/data/words.json +662 -0
  361. package/plugins/faceless-shorts/styles/stick-story/example/data/words.txt +110 -0
  362. package/plugins/faceless-shorts/styles/stick-story/example/fonts/Inter-Black.otf +0 -0
  363. package/plugins/faceless-shorts/styles/stick-story/example/fonts/Inter-ExtraBold.otf +0 -0
  364. package/plugins/faceless-shorts/styles/stick-story/example/index.html +12 -0
  365. package/plugins/faceless-shorts/styles/stick-story/example/script.json +27 -0
  366. package/plugins/faceless-shorts/styles/stick-story/example/sheet.html +9 -0
  367. package/plugins/faceless-shorts/styles/stick-story/example/src/core/board.js +62 -0
  368. package/plugins/faceless-shorts/styles/stick-story/example/src/core/captions.js +47 -0
  369. package/plugins/faceless-shorts/styles/stick-story/example/src/core/kit.js +166 -0
  370. package/plugins/faceless-shorts/styles/stick-story/example/src/core/lib.js +44 -0
  371. package/plugins/faceless-shorts/styles/stick-story/example/src/core/timing.js +23 -0
  372. package/plugins/faceless-shorts/styles/stick-story/example/src/main.js +62 -0
  373. package/plugins/faceless-shorts/styles/stick-story/example/src/sheet.js +64 -0
  374. package/plugins/faceless-shorts/styles/stick-story/example/src/shots.js +148 -0
  375. package/plugins/faceless-shorts/styles/stick-story/example/tools/capture.mjs +122 -0
  376. package/plugins/faceless-shorts/styles/stick-story/example/tools/mix.py +172 -0
  377. package/plugins/faceless-shorts/styles/stick-story/style-sheet.png +0 -0
  378. package/plugins/faceless-shorts/styles/tall-tale/STYLE.md +51 -0
  379. package/plugins/faceless-shorts/styles/tall-tale/example/data/cues.json +271 -0
  380. package/plugins/faceless-shorts/styles/tall-tale/example/data/lines.json +127 -0
  381. package/plugins/faceless-shorts/styles/tall-tale/example/data/words.json +908 -0
  382. package/plugins/faceless-shorts/styles/tall-tale/example/data/words.txt +151 -0
  383. package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Caladea-Bold.ttf +0 -0
  384. package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Inter-Black.otf +0 -0
  385. package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Inter-ExtraBold.otf +0 -0
  386. package/plugins/faceless-shorts/styles/tall-tale/example/index.html +17 -0
  387. package/plugins/faceless-shorts/styles/tall-tale/example/script.json +37 -0
  388. package/plugins/faceless-shorts/styles/tall-tale/example/sheet.html +11 -0
  389. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/board.js +62 -0
  390. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/captions.js +56 -0
  391. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/engine.js +65 -0
  392. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/lib.js +44 -0
  393. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/props.js +166 -0
  394. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/timing.js +23 -0
  395. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/toon.js +352 -0
  396. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/world.js +340 -0
  397. package/plugins/faceless-shorts/styles/tall-tale/example/src/main.js +56 -0
  398. package/plugins/faceless-shorts/styles/tall-tale/example/src/sheet.js +99 -0
  399. package/plugins/faceless-shorts/styles/tall-tale/example/src/shots.js +377 -0
  400. package/plugins/faceless-shorts/styles/tall-tale/example/tools/capture.mjs +122 -0
  401. package/plugins/faceless-shorts/styles/tall-tale/example/tools/mix.py +204 -0
  402. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/LICENSE-three.txt +21 -0
  403. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  404. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  405. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  406. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  407. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  408. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/Pass.js +95 -0
  409. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  410. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  411. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  412. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/BokehShader.js +145 -0
  413. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/CopyShader.js +45 -0
  414. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  415. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/OutputShader.js +85 -0
  416. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/three.module.js +6 -0
  417. package/plugins/faceless-shorts/styles/tall-tale/style-sheet.png +0 -0
  418. package/plugins/motion-styles/LIBRARY.md +896 -0
  419. package/plugins/motion-styles/README.md +29 -0
  420. package/plugins/motion-styles/SKILL.md +70 -0
  421. package/plugins/motion-styles/catalog.json +2253 -0
  422. package/plugins/motion-styles/prompts/bio-glow.md +149 -0
  423. package/plugins/motion-styles/prompts/blueprint.md +145 -0
  424. package/plugins/motion-styles/prompts/breaking-desk.md +147 -0
  425. package/plugins/motion-styles/prompts/callout-kit.md +147 -0
  426. package/plugins/motion-styles/prompts/chalk-talk.md +153 -0
  427. package/plugins/motion-styles/prompts/chat-story.md +143 -0
  428. package/plugins/motion-styles/prompts/clay-diorama.md +149 -0
  429. package/plugins/motion-styles/prompts/clean-tech.md +147 -0
  430. package/plugins/motion-styles/prompts/comic-panels.md +145 -0
  431. package/plugins/motion-styles/prompts/cosmic-scale.md +147 -0
  432. package/plugins/motion-styles/prompts/creator-motion.md +149 -0
  433. package/plugins/motion-styles/prompts/data-city.md +149 -0
  434. package/plugins/motion-styles/prompts/data-story.md +147 -0
  435. package/plugins/motion-styles/prompts/deep-layers.md +147 -0
  436. package/plugins/motion-styles/prompts/doc-cinema.md +145 -0
  437. package/plugins/motion-styles/prompts/evidence-board.md +145 -0
  438. package/plugins/motion-styles/prompts/exploded-view.md +149 -0
  439. package/plugins/motion-styles/prompts/glass-icons.md +147 -0
  440. package/plugins/motion-styles/prompts/glitch-pack.md +145 -0
  441. package/plugins/motion-styles/prompts/globe-arcs.md +147 -0
  442. package/plugins/motion-styles/prompts/headline-backdrop.md +145 -0
  443. package/plugins/motion-styles/prompts/iso-cutaway.md +147 -0
  444. package/plugins/motion-styles/prompts/isotype.md +145 -0
  445. package/plugins/motion-styles/prompts/karaoke-subs.md +145 -0
  446. package/plugins/motion-styles/prompts/low-poly-atlas.md +149 -0
  447. package/plugins/motion-styles/prompts/lower-thirds.md +147 -0
  448. package/plugins/motion-styles/prompts/marker-board.md +145 -0
  449. package/plugins/motion-styles/prompts/market-tape.md +145 -0
  450. package/plugins/motion-styles/prompts/math-canvas.md +145 -0
  451. package/plugins/motion-styles/prompts/myth-or-fact.md +145 -0
  452. package/plugins/motion-styles/prompts/neon-line.md +145 -0
  453. package/plugins/motion-styles/prompts/paper-craft.md +145 -0
  454. package/plugins/motion-styles/prompts/parchment-map.md +147 -0
  455. package/plugins/motion-styles/prompts/physics-toybox.md +147 -0
  456. package/plugins/motion-styles/prompts/pixel-quest.md +145 -0
  457. package/plugins/motion-styles/prompts/podcast-clip.md +147 -0
  458. package/plugins/motion-styles/prompts/pop-info.md +145 -0
  459. package/plugins/motion-styles/prompts/product-turntable.md +149 -0
  460. package/plugins/motion-styles/prompts/punch-captions.md +145 -0
  461. package/plugins/motion-styles/prompts/quiz-countdown.md +145 -0
  462. package/plugins/motion-styles/prompts/quote-cinema.md +145 -0
  463. package/plugins/motion-styles/prompts/recipe-steps.md +145 -0
  464. package/plugins/motion-styles/prompts/rubber-hose-reel.md +145 -0
  465. package/plugins/motion-styles/prompts/shadow-puppets.md +145 -0
  466. package/plugins/motion-styles/prompts/size-lineup.md +149 -0
  467. package/plugins/motion-styles/prompts/software-walkthrough.md +147 -0
  468. package/plugins/motion-styles/prompts/stack-split.md +145 -0
  469. package/plugins/motion-styles/prompts/sticker-pop.md +145 -0
  470. package/plugins/motion-styles/prompts/storybook.md +145 -0
  471. package/plugins/motion-styles/prompts/swiss-grid.md +145 -0
  472. package/plugins/motion-styles/prompts/synth-grid.md +147 -0
  473. package/plugins/motion-styles/prompts/tactics-board.md +145 -0
  474. package/plugins/motion-styles/prompts/terminal.md +145 -0
  475. package/plugins/motion-styles/prompts/tier-list.md +143 -0
  476. package/plugins/motion-styles/prompts/timeline-rail.md +145 -0
  477. package/plugins/motion-styles/prompts/top-5-countdown.md +145 -0
  478. package/plugins/motion-styles/prompts/versus-split.md +145 -0
  479. package/plugins/motion-styles/prompts/vhs-camcorder.md +145 -0
  480. package/plugins/motion-styles/prompts/visual-novel.md +145 -0
  481. package/plugins/motion-styles/prompts/warm-canvas.md +145 -0
  482. package/plugins/motion-styles/prompts/woodcut-tale.md +145 -0
  483. package/plugins/motion-styles/prompts/zine-collage.md +145 -0
  484. package/plugins/motion-styles/sources/bio-glow.html +639 -0
  485. package/plugins/motion-styles/sources/blueprint.html +617 -0
  486. package/plugins/motion-styles/sources/breaking-desk.html +585 -0
  487. package/plugins/motion-styles/sources/callout-kit.html +586 -0
  488. package/plugins/motion-styles/sources/chalk-talk.html +597 -0
  489. package/plugins/motion-styles/sources/chat-story.html +597 -0
  490. package/plugins/motion-styles/sources/clay-diorama.html +681 -0
  491. package/plugins/motion-styles/sources/clean-tech.html +554 -0
  492. package/plugins/motion-styles/sources/comic-panels.html +608 -0
  493. package/plugins/motion-styles/sources/cosmic-scale.html +628 -0
  494. package/plugins/motion-styles/sources/creator-motion.html +805 -0
  495. package/plugins/motion-styles/sources/data-city.html +613 -0
  496. package/plugins/motion-styles/sources/data-story.html +539 -0
  497. package/plugins/motion-styles/sources/deep-layers.html +624 -0
  498. package/plugins/motion-styles/sources/doc-cinema.html +590 -0
  499. package/plugins/motion-styles/sources/evidence-board.html +610 -0
  500. package/plugins/motion-styles/sources/exploded-view.html +618 -0
  501. package/plugins/motion-styles/sources/glass-icons.html +612 -0
  502. package/plugins/motion-styles/sources/glitch-pack.html +583 -0
  503. package/plugins/motion-styles/sources/globe-arcs.html +621 -0
  504. package/plugins/motion-styles/sources/headline-backdrop.html +584 -0
  505. package/plugins/motion-styles/sources/iso-cutaway.html +621 -0
  506. package/plugins/motion-styles/sources/isotype.html +588 -0
  507. package/plugins/motion-styles/sources/karaoke-subs.html +577 -0
  508. package/plugins/motion-styles/sources/low-poly-atlas.html +621 -0
  509. package/plugins/motion-styles/sources/lower-thirds.html +582 -0
  510. package/plugins/motion-styles/sources/marker-board.html +598 -0
  511. package/plugins/motion-styles/sources/market-tape.html +598 -0
  512. package/plugins/motion-styles/sources/math-canvas.html +592 -0
  513. package/plugins/motion-styles/sources/myth-or-fact.html +587 -0
  514. package/plugins/motion-styles/sources/neon-line.html +597 -0
  515. package/plugins/motion-styles/sources/paper-craft.html +612 -0
  516. package/plugins/motion-styles/sources/parchment-map.html +624 -0
  517. package/plugins/motion-styles/sources/physics-toybox.html +617 -0
  518. package/plugins/motion-styles/sources/pixel-quest.html +609 -0
  519. package/plugins/motion-styles/sources/podcast-clip.html +585 -0
  520. package/plugins/motion-styles/sources/pop-info.html +677 -0
  521. package/plugins/motion-styles/sources/product-turntable.html +611 -0
  522. package/plugins/motion-styles/sources/punch-captions.html +583 -0
  523. package/plugins/motion-styles/sources/quiz-countdown.html +593 -0
  524. package/plugins/motion-styles/sources/quote-cinema.html +581 -0
  525. package/plugins/motion-styles/sources/recipe-steps.html +599 -0
  526. package/plugins/motion-styles/sources/rubber-hose-reel.html +627 -0
  527. package/plugins/motion-styles/sources/shadow-puppets.html +609 -0
  528. package/plugins/motion-styles/sources/size-lineup.html +620 -0
  529. package/plugins/motion-styles/sources/software-walkthrough.html +651 -0
  530. package/plugins/motion-styles/sources/stack-split.html +588 -0
  531. package/plugins/motion-styles/sources/sticker-pop.html +587 -0
  532. package/plugins/motion-styles/sources/storybook.html +600 -0
  533. package/plugins/motion-styles/sources/swiss-grid.html +590 -0
  534. package/plugins/motion-styles/sources/synth-grid.html +614 -0
  535. package/plugins/motion-styles/sources/tactics-board.html +608 -0
  536. package/plugins/motion-styles/sources/terminal.html +593 -0
  537. package/plugins/motion-styles/sources/tier-list.html +600 -0
  538. package/plugins/motion-styles/sources/timeline-rail.html +598 -0
  539. package/plugins/motion-styles/sources/top-5-countdown.html +589 -0
  540. package/plugins/motion-styles/sources/versus-split.html +592 -0
  541. package/plugins/motion-styles/sources/vhs-camcorder.html +587 -0
  542. package/plugins/motion-styles/sources/visual-novel.html +623 -0
  543. package/plugins/motion-styles/sources/warm-canvas.html +742 -0
  544. package/plugins/motion-styles/sources/woodcut-tale.html +598 -0
  545. package/plugins/motion-styles/sources/zine-collage.html +594 -0
  546. package/plugins/video-pipeline/.claude-plugin/plugin.json +2 -2
  547. package/plugins/video-pipeline/skills/.upstream-skills.json +156 -143
  548. package/plugins/video-pipeline/skills/video-pipeline/references/mcp-tools.md +3 -3
  549. package/scripts/deep-validate.js +3 -2
  550. package/src/audio-mixer/mixer.js +69 -0
  551. package/src/cli/make.js +19 -0
  552. package/src/harness/lib/browser.mjs +22 -1
  553. package/src/harness/lib/capture.mjs +33 -11
  554. package/src/harness/lib/jobs.mjs +16 -1
  555. package/src/mcp-server/server.js +726 -10
  556. package/src/pipeline/providers.js +77 -17
  557. package/src/skills/sync-upstream.js +15 -3
  558. package/src/utils/media-downloader.js +7 -0
  559. package/src/utils/tool-installer.js +212 -0
  560. package/src/utils/transcribe.js +9 -1
  561. package/src/video-renderer/renderer.js +68 -38
  562. package/src/video-renderer/scene-animator.js +50 -15
  563. package/src/workflows/assets.js +49 -5
  564. package/src/workflows/render.js +2 -0
  565. package/src/workflows/script.js +14 -3
@@ -0,0 +1,610 @@
1
+ // Warm Canvas (Talking Head) style engine for the ai-video-editor skill.
2
+ // Unchanged from the Motion Graphics Style Library reference, except: the player is removed (the skill's player.js replaces it)
3
+ // and TL, CUTS, PUNCH, SCENES are declared with var so your story.js can redefine them.
4
+ // Everything after the 'STYLE:' banner that draws the demo story (scene functions, explainer, scoreSound) is a worked example.
5
+ // =====================================================================================================
6
+ // CREATOR MOTION GRAPHICS · core helpers (CM), sound kit (SFX), style, player
7
+ // Every frame is a pure function of t. All randomness is seeded. Times are seconds.
8
+ // =====================================================================================================
9
+ const CM = (() => {
10
+ const clamp = (v, a = 0, b = 1) => (v < a ? a : v > b ? b : v);
11
+ const lerp = (a, b, u) => a + (b - a) * u;
12
+ const span = (t, a, b) => clamp((t - a) / (b - a));
13
+ const rotl = (x, k) => (x << k) | (x >>> (32 - k));
14
+ const hash = (s) => { s = String(s); let h = 0x9e3779b1; for (let i = 0; i < s.length; i++) { h = Math.imul(h ^ s.charCodeAt(i), 0x85ebca6b); h ^= h >>> 13; } return h >>> 0; };
15
+ // xoshiro128** style generator, seeded from a number or string
16
+ const rng = (seed) => {
17
+ const s = typeof seed === 'number' ? seed >>> 0 : hash(seed);
18
+ let a = (s ^ 0xa5a5a5a5) >>> 0, b = (Math.imul(s, 0x27d4eb2d) >>> 0) || 1, c = (0x165667b1 ^ s) >>> 0, d = (rotl(s, 7) >>> 0) || 7;
19
+ const r = () => { const res = Math.imul(rotl(Math.imul(b, 5), 7), 9) >>> 0; const t = b << 9; c ^= a; d ^= b; b ^= c; a ^= d; c ^= t; d = rotl(d, 11); return res / 4294967296; };
20
+ for (let i = 0; i < 8; i++) r();
21
+ r.in = (lo, hi) => lo + r() * (hi - lo);
22
+ r.pick = (arr) => arr[(r() * arr.length) | 0];
23
+ return r;
24
+ };
25
+ // smooth 1D value noise, roughly -1..1
26
+ const noise1 = (seed) => { const r = rng(seed), v = Float32Array.from({ length: 256 }, () => r() * 2 - 1); return (x) => { const i = Math.floor(x), f = x - i, u = f * f * (3 - 2 * f); return lerp(v[i & 255], v[(i + 1) & 255], u); }; };
27
+ const ez = {
28
+ out3: (u) => 1 - Math.pow(1 - u, 3),
29
+ in3: (u) => u * u * u,
30
+ inout3: (u) => (u < 0.5 ? 4 * u * u * u : 1 - Math.pow(-2 * u + 2, 3) / 2),
31
+ outExpo: (u) => (u >= 1 ? 1 : 1 - Math.pow(2, -10 * u)),
32
+ back: (u, s = 1.7) => (u <= 0 ? 0 : u >= 1 ? 1 : 1 + (s + 1) * Math.pow(u - 1, 3) + s * Math.pow(u - 1, 2)),
33
+ spring: (u) => (u <= 0 ? 0 : u >= 1 ? 1 : 1 - Math.exp(-6 * u) * Math.cos(13 * u)),
34
+ };
35
+ const layer = (w, h) => { const c = document.createElement('canvas'); c.width = w; c.height = h; return c; };
36
+ return { clamp, lerp, span, hash, rng, noise1, ez, layer };
37
+ })();
38
+
39
+ // =====================================================================================================
40
+ // SFX: synthesized creator-edit sound kit. Plain Web Audio, no files.
41
+ // voiceover mode keeps the music low under narration and plays sounds marked `soft` at 55%.
42
+ // =====================================================================================================
43
+ const SFX = (() => {
44
+ const SEMI = { C: -9, D: -7, E: -5, F: -4, G: -2, A: 0, B: 2 };
45
+ const hz = (n) => { if (typeof n === 'number') return n; const m = /^([A-G])(#|b)?(-?\d)$/.exec(n); return 440 * Math.pow(2, (SEMI[m[1]] + (m[2] === '#' ? 1 : m[2] === 'b' ? -1 : 0) + (+m[3] - 4) * 12) / 12); };
46
+
47
+ function kit(ac, o = {}) {
48
+ const VO = !!o.voiceover, SR = ac.sampleRate, T0 = o.from || 0, base = ac.currentTime + (o.lead || 0);
49
+ // snap every start a little past the sample grid (avoids level spikes on some browsers)
50
+ const at = (t) => (Math.round((base + (t - T0)) * SR) + 0.3) / SR;
51
+ const skip = (t, dur) => at(t) + dur < ac.currentTime || (t < T0 - 0.005 && dur < 1.2);
52
+
53
+ const comp = ac.createDynamicsCompressor();
54
+ comp.threshold.value = -14; comp.knee.value = 6; comp.ratio.value = 4; comp.attack.value = 0.003; comp.release.value = 0.15;
55
+ const master = ac.createGain(); master.gain.value = o.master == null ? 0.85 : o.master;
56
+ comp.connect(master); master.connect(o.dest || ac.destination);
57
+ const mk = (g) => { const n = ac.createGain(); n.gain.value = g; n.connect(comp); return n; };
58
+ const bus = { fx: mk(VO ? 0.78 : 0.95), music: mk(VO ? 0.3 : 0.62), amb: mk(0.45) };
59
+ const duckIn = ac.createGain(); duckIn.connect(bus.music);
60
+ const DUCKS = [];
61
+
62
+ // generated plate-style reverb
63
+ const verb = ac.createConvolver();
64
+ { const n = Math.floor(1.5 * SR), ir = ac.createBuffer(2, n, SR);
65
+ for (let ch = 0; ch < 2; ch++) { const r = CM.rng('plate' + ch), d = ir.getChannelData(ch); let lp = 0; for (let i = 0; i < n; i++) { const u = i / n; lp += (0.7 - 0.5 * u) * ((r() * 2 - 1) - lp); d[i] = lp * Math.pow(1 - u, 2.6) * 0.9; } }
66
+ verb.buffer = ir; }
67
+ const verbIn = ac.createGain(); verbIn.gain.value = 0.8; verbIn.connect(verb); verb.connect(comp);
68
+
69
+ // seeded noise buffers
70
+ const NB = {};
71
+ { const n = Math.floor(2 * SR);
72
+ for (const kind of ['white', 'pink', 'brown']) {
73
+ const b = ac.createBuffer(1, n, SR), d = b.getChannelData(0), r = CM.rng('nz' + kind); let b0 = 0, b1 = 0, b2 = 0, br = 0;
74
+ for (let i = 0; i < n; i++) { const w = r() * 2 - 1;
75
+ if (kind === 'white') d[i] = w;
76
+ else if (kind === 'pink') { b0 = 0.99765 * b0 + w * 0.099; b1 = 0.963 * b1 + w * 0.2965; b2 = 0.57 * b2 + w * 1.0527; d[i] = (b0 + b1 + b2 + w * 0.1848) * 0.18; }
77
+ else { br = (br + 0.02 * w) / 1.02; d[i] = br * 3.4; } }
78
+ NB[kind] = b; } }
79
+
80
+ const ramp = (param, v, t) => { if (!Array.isArray(v)) { param.setValueAtTime(v, t); return; } param.setValueAtTime(v[0][1], t + v[0][0]); for (let i = 1; i < v.length; i++) param.exponentialRampToValueAtTime(Math.max(1e-3, v[i][1]), t + v[i][0]); };
81
+ const env = (g, t, peak, dur, a = 0.004, hold = 0) => {
82
+ a = Math.min(a, dur * 0.9); hold = Math.min(hold, dur - a);
83
+ g.gain.setValueAtTime(0, t); g.gain.linearRampToValueAtTime(peak, t + a);
84
+ if (hold > 0) g.gain.setValueAtTime(peak, t + a + hold);
85
+ g.gain.exponentialRampToValueAtTime(1e-4, t + dur); g.gain.setValueAtTime(0, t + dur + 0.002);
86
+ };
87
+ const level = (p, d) => (p.gain == null ? d : p.gain) * (VO && p.soft ? 0.55 : 1);
88
+ const route = (node, p, t) => {
89
+ const pan = ac.createStereoPanner();
90
+ if (Array.isArray(p.pan)) { pan.pan.setValueAtTime(p.pan[0], t); pan.pan.linearRampToValueAtTime(p.pan[1], t + (p.dur || 0.2)); } else pan.pan.value = CM.clamp(p.pan || 0, -1, 1);
91
+ node.connect(pan); pan.connect(p.bus === 'music' ? duckIn : bus[p.bus || 'fx']);
92
+ if (p.verb) { const s = ac.createGain(); s.gain.value = p.verb; pan.connect(s); s.connect(verbIn); }
93
+ };
94
+ const filt = (p, t) => { if (!p.filter) return null; const f = ac.createBiquadFilter(); f.type = p.filter; f.Q.value = p.q == null ? 0.9 : p.q; ramp(f.frequency, p.ff == null ? 1200 : p.ff, t); return f; };
95
+
96
+ // primitive: oscillator voice. f may be a value or [[dt, hz], ...]
97
+ function voice(time, p) {
98
+ const dur = p.dur || 0.2; if (skip(time, dur)) return; const t = at(time);
99
+ const osc = ac.createOscillator(); osc.type = p.type || 'sine';
100
+ ramp(osc.frequency, Array.isArray(p.f) ? p.f.map(([d, v]) => [d, hz(v)]) : hz(p.f || 440), t);
101
+ const g = ac.createGain(); env(g, t, level(p, 0.3), dur, p.a, p.hold);
102
+ const f = filt(p, t); if (f) { osc.connect(f); f.connect(g); } else osc.connect(g);
103
+ route(g, p, t); osc.start(t); osc.stop(t + dur + 0.03);
104
+ }
105
+ // primitive: noise voice
106
+ function hiss(time, p) {
107
+ const dur = p.dur || 0.2; if (skip(time, dur)) return; const t = at(time);
108
+ const src = ac.createBufferSource(); src.buffer = NB[p.color || 'white']; src.loop = true; if (p.rate) src.playbackRate.value = p.rate;
109
+ const g = ac.createGain(); env(g, t, level(p, 0.3), dur, p.a, p.hold);
110
+ const f = filt(p, t); if (f) { src.connect(f); f.connect(g); } else src.connect(g);
111
+ route(g, p, t); src.start(t, CM.rng('off' + time)() * 1.5); src.stop(t + dur + 0.03);
112
+ }
113
+ function duck(t, depth = 0.5, hold = 0.25) { DUCKS.push({ t, depth, hold }); }
114
+
115
+ // ---------------- named sounds (creator-edit palette) ----------------
116
+ const S = {
117
+ // text slam: a tight low thump with a short papery crack
118
+ slam: (t, o) => { voice(t, { f: [[0, 150], [0.12, 52]], dur: 0.2, gain: 0.42 * o.g, pan: o.pan, soft: o.soft }); hiss(t, { dur: 0.07, filter: 'lowpass', ff: 2600, gain: 0.22 * o.g, pan: o.pan, soft: o.soft }); hiss(t, { dur: 0.012, filter: 'highpass', ff: 5000, gain: 0.12 * o.g, pan: o.pan, soft: o.soft }); },
119
+ // big drop: sub boom with a dark tail
120
+ boom: (t, o) => { voice(t, { f: [[0, 90], [0.08, 52], [1.6, 34]], dur: 1.7, gain: 0.7 * o.g, a: 0.006, hold: 0.12 }); hiss(t, { color: 'brown', dur: 0.6, filter: 'lowpass', ff: [[0, 600], [0.5, 90]], gain: 0.35 * o.g, verb: 0.3 }); duck(t, 0.7, 0.35); },
121
+ pop: (t, o) => { const f = o.f || 760; voice(t, { f: [[0, f * 1.7], [0.05, f]], dur: 0.08, gain: 0.22 * o.g, pan: o.pan, soft: o.soft }); hiss(t, { dur: 0.01, filter: 'highpass', ff: 4500, gain: 0.08 * o.g, pan: o.pan, soft: o.soft }); },
122
+ tick: (t, o) => hiss(t, { dur: 0.016, filter: 'bandpass', ff: o.f || 3800, q: 3, gain: 0.32 * o.g, pan: o.pan, soft: o.soft }),
123
+ click: (t, o) => { hiss(t, { dur: 0.012, filter: 'bandpass', ff: 3200, q: 2, gain: 0.35 * o.g, pan: o.pan }); hiss(t + 0.045, { dur: 0.01, filter: 'bandpass', ff: 2400, q: 2, gain: 0.22 * o.g, pan: o.pan }); },
124
+ whoosh: (t, o) => { const d = o.dur || 0.35, dir = o.dir || 1; hiss(t, { color: 'pink', dur: d, filter: 'bandpass', ff: [[0, 260], [d * 0.55, o.top || 3200], [d, 520]], q: 0.75, gain: 0.5 * o.g, a: d * 0.55, pan: [-0.7 * dir, 0.7 * dir], verb: 0.12, soft: o.soft }); hiss(t + d * 0.2, { dur: d * 0.6, filter: 'highpass', ff: [[0, 3000], [d * 0.6, 7000]], gain: 0.08 * o.g, a: d * 0.3, pan: [-0.4 * dir, 0.5 * dir], soft: o.soft }); },
125
+ riser: (t, o) => { const d = o.dur || 0.8; hiss(t, { color: 'pink', dur: d, filter: 'bandpass', ff: [[0, 300], [d, 5200]], q: 1.1, gain: 0.32 * o.g, a: d * 0.96, verb: 0.2, soft: o.soft }); voice(t, { type: 'sawtooth', f: [[0, 110], [d, 440]], dur: d, gain: 0.06 * o.g, a: d * 0.95, filter: 'lowpass', ff: [[0, 400], [d, 2400]], soft: o.soft }); },
126
+ glitch: (t, o) => { const r = CM.rng('gl' + t); for (let i = 0; i < 9; i++) voice(t + i * 0.021, { type: 'square', f: 180 + r() * 2200, dur: 0.018, gain: 0.07 * o.g, a: 0.001, hold: 0.012, pan: r() * 1.4 - 0.7 }); hiss(t, { dur: 0.2, filter: 'bandpass', ff: [[0, 4000], [0.2, 900]], q: 0.7, gain: 0.18 * o.g }); hiss(t + 0.1, { dur: 0.05, color: 'brown', gain: 0.25 * o.g }); },
127
+ ping: (t, o) => { voice(t, { f: 'E6', dur: 0.5, gain: 0.16 * o.g, a: 0.003, verb: 0.3, pan: o.pan }); voice(t + 0.11, { f: 'B6', dur: 0.7, gain: 0.14 * o.g, a: 0.003, verb: 0.35, pan: o.pan }); },
128
+ send: (t, o) => { voice(t, { f: [[0, 520], [0.11, 1500]], dur: 0.13, gain: 0.14 * o.g, pan: o.pan }); hiss(t, { dur: 0.1, filter: 'highpass', ff: [[0, 2000], [0.1, 6000]], gain: 0.07 * o.g, pan: o.pan }); },
129
+ keys: (t, o) => { const r = CM.rng('k' + t), end = t + (o.dur || 0.4); for (let x = t; x < end; x += 0.055 + r() * 0.035) { hiss(x, { dur: 0.014, filter: 'bandpass', ff: 3200 + r() * 900, q: 3, gain: 0.2 * o.g, pan: o.pan, soft: true }); voice(x, { f: 1900 + r() * 300, dur: 0.012, gain: 0.025 * o.g, pan: o.pan, soft: true }); } },
130
+ // highlighter / marker swipe: grainy felt drag
131
+ marker: (t, o) => { const d = o.dur || 0.25, r = CM.rng('m' + t); for (let x = 0; x < d; x += 0.022 + r() * 0.012) hiss(t + x, { dur: 0.03, filter: 'bandpass', ff: 1700 + r() * 900, q: 1.4, gain: 0.16 * o.g * (0.6 + r() * 0.5), pan: o.pan, soft: o.soft }); },
132
+ strike: (t, o) => { hiss(t, { dur: 0.15, filter: 'bandpass', ff: [[0, 1200], [0.15, 3200]], q: 1.2, gain: 0.3 * o.g, a: 0.02, pan: o.pan }); },
133
+ tapeStop: (t, o) => { voice(t, { type: 'sawtooth', f: [[0, 196], [0.62, 18]], dur: 0.66, gain: 0.22 * o.g, a: 0.004, hold: 0.3, filter: 'lowpass', ff: [[0, 1800], [0.6, 160]] }); voice(t, { f: [[0, 98], [0.62, 12]], dur: 0.66, gain: 0.3 * o.g, a: 0.004, hold: 0.3 }); hiss(t, { color: 'brown', dur: 0.5, filter: 'lowpass', ff: [[0, 900], [0.5, 120]], gain: 0.18 * o.g }); },
134
+ stamp: (t, o) => { voice(t, { f: [[0, 160], [0.18, 48]], dur: 0.28, gain: 0.6 * o.g }); hiss(t, { dur: 0.06, filter: 'bandpass', ff: 1300, q: 1.1, gain: 0.4 * o.g }); hiss(t + 0.004, { dur: 0.014, filter: 'highpass', ff: 4200, gain: 0.25 * o.g }); },
135
+ shimmer: (t, o) => { ['C6', 'E6', 'G6', 'B6', 'D7', 'E7'].forEach((n, i) => voice(t + i * 0.035, { f: n, dur: 0.75, gain: 0.045 * o.g, a: 0.003, verb: 0.45, pan: (i % 2 ? 0.35 : -0.35) })); },
136
+ sparkle: (t, o) => { const r = CM.rng('sp' + t); for (let i = 0; i < 5; i++) voice(t + i * 0.05, { f: 2400 + r() * 2400, dur: 0.25, gain: 0.03 * o.g, a: 0.002, verb: 0.4, pan: r() * 1.2 - 0.6 }); },
137
+ };
138
+ function play(name, t, opts = {}) { const fn = S[name]; if (!fn) throw new Error('unknown sound ' + name); fn(t, Object.assign({}, opts, { g: opts.gain == null ? 1 : opts.gain })); }
139
+
140
+ // ---------------- music: half-time beat with bass and soft pad ----------------
141
+ function music(t0, t1, p = {}) {
142
+ const bpm = p.bpm || 98, step = 60 / bpm / 4, bar = step * 16, g = p.gain == null ? 1 : p.gain;
143
+ const roots = p.roots || ['A1', 'F1', 'C2', 'G1'];
144
+ const pads = p.pads || [['A3', 'C4', 'E4'], ['F3', 'A3', 'C4'], ['C4', 'E4', 'G4'], ['G3', 'B3', 'D4']];
145
+ let bi = 0;
146
+ for (let tb = t0; tb < t1 - 0.05; tb += bar, bi++) {
147
+ const root = roots[bi % roots.length], pad = pads[bi % pads.length], blen = Math.min(bar, t1 - tb);
148
+ pad.forEach((n, k) => voice(tb, { type: 'triangle', f: n, dur: blen + 0.2, gain: 0.03 * g, a: 0.3, hold: blen - 0.5, filter: 'lowpass', ff: 1100, pan: (k - 1) * 0.35, verb: 0.3, bus: 'music' }));
149
+ for (let s = 0; s < 16; s++) {
150
+ const ts = tb + s * step; if (ts >= t1 - 0.02) break;
151
+ if (s === 0 || s === 10) { voice(ts, { f: [[0, 150], [0.09, 46]], dur: 0.32, gain: 0.5 * g, bus: 'music' }); hiss(ts, { dur: 0.012, filter: 'highpass', ff: 3000, gain: 0.05 * g, bus: 'music' }); }
152
+ if (s === 4 || s === 12) { hiss(ts, { dur: 0.16, filter: 'bandpass', ff: 1700, q: 0.8, gain: 0.26 * g, verb: 0.25, bus: 'music' }); hiss(ts + 0.008, { dur: 0.05, filter: 'highpass', ff: 4500, gain: 0.1 * g, bus: 'music' }); }
153
+ if (s % 2 === 0) hiss(ts, { dur: s % 4 === 2 ? 0.05 : 0.028, filter: 'highpass', ff: 7500, gain: (s % 4 === 2 ? 0.06 : 0.035) * g, bus: 'music' });
154
+ if ([0, 3, 6, 10, 14].includes(s)) voice(ts, { type: 'triangle', f: root, dur: step * 2.6, gain: 0.2 * g, a: 0.006, hold: step, filter: 'lowpass', ff: 380, bus: 'music' });
155
+ }
156
+ }
157
+ }
158
+ function drone(t0, t1, p = {}) { const d = t1 - t0, g = p.gain == null ? 1 : p.gain; voice(t0, { f: p.note || 'A1', dur: d, gain: 0.12 * g, a: d * 0.4, hold: d * 0.4, bus: 'music' }); hiss(t0, { color: 'pink', dur: d, filter: 'bandpass', ff: 900, q: 0.5, gain: 0.03 * g, a: d * 0.5, hold: d * 0.3, bus: 'amb' }); }
159
+ function finish() {
160
+ DUCKS.sort((a, b) => a.t - b.t);
161
+ for (const e of DUCKS) { const s = at(e.t); if (s + e.hold < ac.currentTime) continue; duckIn.gain.setTargetAtTime(1 - e.depth, Math.max(s, ac.currentTime), 0.008); duckIn.gain.setTargetAtTime(1, s + e.hold, 0.14); }
162
+ }
163
+ return { play, voice, hiss, music, drone, duck, finish, hz, vo: VO };
164
+ }
165
+ function live(score, from, opts = {}) {
166
+ const ac = new (window.AudioContext || window.webkitAudioContext)();
167
+ const k = kit(ac, Object.assign({}, opts, { from: from || 0, lead: 0.04 })); score(k); k.finish();
168
+ return () => { try { ac.close(); } catch (e) {} };
169
+ }
170
+ async function render(score, dur, sr = 48000, opts = {}) {
171
+ const len = Math.ceil(dur * sr), ac = new OfflineAudioContext(2, len, sr);
172
+ const k = kit(ac, Object.assign({}, opts, { from: 0 })); score(k); k.finish();
173
+ const buf = await ac.startRendering(), L = buf.getChannelData(0), R = buf.getChannelData(1), inter = new Float32Array(len * 2);
174
+ let peak = 0; for (let i = 0; i < len; i++) { inter[2 * i] = L[i]; inter[2 * i + 1] = R[i]; peak = Math.max(peak, Math.abs(L[i]), Math.abs(R[i])); }
175
+ return { inter, peak, sr, frames: len };
176
+ }
177
+ return { kit, live, render, hz };
178
+ })();
179
+
180
+
181
+ // ---------- shared UI-style helpers (Clean Tech, Software Walkthrough, Data Story) ----------
182
+ const W = 1280, HH = 720;
183
+ const { clamp, lerp, span, rng, noise1, ez } = CM;
184
+ const rr = (c, x, y, w, h, r) => { c.beginPath(); c.roundRect(x, y, w, h, r); };
185
+ // keyframe track: K = [[t, v1, v2, ...], ...], eased in-out between keys
186
+ function track(K, t) {
187
+ if (t <= K[0][0]) return K[0].slice(1);
188
+ for (let i = 0; i < K.length - 1; i++) { const a = K[i], b = K[i + 1]; if (t <= b[0]) { const e = ez.inout3((t - a[0]) / Math.max(1e-6, b[0] - a[0])); return a.slice(1).map((v, j) => lerp(v, b[j + 1], e)); } }
189
+ return K[K.length - 1].slice(1);
190
+ }
191
+ const textW = (c, s, font) => { c.save(); c.font = font; const w = c.measureText(s).width; c.restore(); return w; };
192
+ const pxOf = (font) => parseFloat(/(\d+)px/.exec(font)[1]);
193
+ // a word rises from behind a mask line into place; returns its width
194
+ function rise(c, s, x, y, font, color, t0, t, o = {}) {
195
+ const w = textW(c, s, font); if (t < t0) return w;
196
+ const px = pxOf(font), X = o.align === 'center' ? x - w / 2 : o.align === 'right' ? x - w : x, e = ez.outExpo(span(t, t0, t0 + (o.dur || 0.5)));
197
+ c.save(); c.beginPath(); c.rect(X - 12, y - px * 1.0, w + 24, px * 1.32); c.clip();
198
+ c.globalAlpha *= Math.min(1, e * 1.6) * (o.alpha == null ? 1 : o.alpha); c.font = font; c.fillStyle = color; c.textBaseline = 'alphabetic'; c.textAlign = 'left';
199
+ c.fillText(s, X, y + (1 - e) * px * 0.9); c.restore(); return w;
200
+ }
201
+ // a line of words, each rising on its own time. words: [[text, t0, color?]]
202
+ function riseLine(c, words, x, y, font, color, t, o = {}) {
203
+ const sp = textW(c, ' ', font), ws = words.map(([s]) => textW(c, s, font)), tot = ws.reduce((a, b) => a + b, 0) + sp * (words.length - 1);
204
+ let cx = o.align === 'center' ? x - tot / 2 : x; const boxes = [];
205
+ words.forEach(([s, t0, col], i) => { boxes.push({ x: cx, w: ws[i], y }); rise(c, s, cx, y, font, col || color, t0, t, { alpha: o.alpha }); cx += ws[i] + sp; });
206
+ return boxes;
207
+ }
208
+ // pill highlight behind a word box, growing from the left
209
+ function pillBehind(c, box, font, p, color, pad = 16) {
210
+ if (p <= 0) return; const px = pxOf(font); c.save(); c.fillStyle = color; rr(c, box.x - pad, box.y - px * 0.88, (box.w + pad * 2) * ez.outExpo(p), px * 1.12, px * 0.26); c.fill(); c.restore();
211
+ }
212
+ const typed = (full, t, a, b) => full.slice(0, Math.floor(full.length * span(t, a, b)));
213
+ function softCard(c, x, y, w, h, r, o = {}) {
214
+ c.save(); c.shadowColor = o.shadow || 'rgba(13,15,40,0.13)'; c.shadowBlur = o.blur == null ? 44 : o.blur; c.shadowOffsetY = o.offY == null ? 16 : o.offY;
215
+ c.fillStyle = o.fill || '#ffffff'; rr(c, x, y, w, h, r); c.fill(); c.restore();
216
+ if (o.border !== false) { c.save(); c.strokeStyle = o.border || 'rgba(13,15,20,0.08)'; c.lineWidth = 1.5; rr(c, x, y, w, h, r); c.stroke(); c.restore(); }
217
+ }
218
+ function cursorArrow(c, x, y, s = 1.3) {
219
+ c.save(); c.translate(x, y); c.scale(s, s); c.shadowColor = 'rgba(0,0,0,0.3)'; c.shadowBlur = 6; c.shadowOffsetY = 2;
220
+ c.fillStyle = '#111'; c.strokeStyle = '#fff'; c.lineWidth = 1.6; c.beginPath(); c.moveTo(0, 0); c.lineTo(0, 22); c.lineTo(5.5, 17); c.lineTo(9.5, 26); c.lineTo(13, 24.5); c.lineTo(9, 15.5); c.lineTo(16, 15.5); c.closePath(); c.fill(); c.shadowColor = 'transparent'; c.stroke(); c.restore();
221
+ }
222
+ function checkMark(c, x, y, r, p, fill = '#18b46b') {
223
+ if (p <= 0) return; const s = ez.back(clamp(p), 2.2); c.save(); c.translate(x, y); c.scale(s, s); c.fillStyle = fill; c.beginPath(); c.arc(0, 0, r, 0, 7); c.fill();
224
+ c.strokeStyle = '#fff'; c.lineWidth = r * 0.24; c.lineCap = 'round'; c.lineJoin = 'round'; c.beginPath(); c.moveTo(-r * 0.42, 0.02 * r); c.lineTo(-r * 0.1, r * 0.32); c.lineTo(r * 0.45, -r * 0.3); c.stroke(); c.restore();
225
+ }
226
+ // scenes on transparent layers, with cuts between them
227
+ const LA = CM.layer(W, HH), LB = CM.layer(W, HH);
228
+ function sceneLayer(L, draw, t) { const x = L.getContext('2d'); x.setTransform(1, 0, 0, 1, 0, 0); x.globalAlpha = 1; x.globalCompositeOperation = 'source-over'; x.filter = 'none'; x.clearRect(0, 0, W, HH); draw(x, t); return L; }
229
+ function composite(ctx, t, SCENES, CUTS, background) {
230
+ ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.globalAlpha = 1; ctx.globalCompositeOperation = 'source-over'; ctx.filter = 'none';
231
+ background(ctx, t);
232
+ let idx = 0; for (const c of CUTS) if (t >= c.t) idx++;
233
+ const cut = CUTS.find((c) => t >= c.t && t < c.t + c.d);
234
+ if (!cut) { ctx.drawImage(sceneLayer(LA, SCENES[idx], t), 0, 0); return; }
235
+ const u = (t - cut.t) / cut.d, e = ez.inout3(u), A = sceneLayer(LA, SCENES[idx - 1], t), B = sceneLayer(LB, SCENES[idx], t);
236
+ if (cut.type === 'push') {
237
+ const dir = cut.dir || 1, s = 1 - 0.05 * Math.sin(Math.PI * u);
238
+ for (const [L, off] of [[A, -e * W * dir], [B, (1 - e) * W * dir]]) { ctx.save(); ctx.translate(640 + off, 360); ctx.scale(s, s); ctx.drawImage(L, -640, -360); ctx.restore(); }
239
+ } else if (cut.type === 'zoom') {
240
+ const z = lerp(1, 3.2, ez.in3(clamp(u / 0.65))); ctx.save(); ctx.globalAlpha = 1 - span(u, 0.38, 0.65); ctx.translate(cut.x, cut.y); ctx.scale(z, z); ctx.drawImage(A, -cut.x, -cut.y); ctx.restore();
241
+ const zb = lerp(1.1, 1, ez.out3(span(u, 0.35, 1))); ctx.save(); ctx.globalAlpha = span(u, 0.35, 0.72); ctx.translate(640, 360); ctx.scale(zb, zb); ctx.drawImage(B, -640, -360); ctx.restore();
242
+ } else if (cut.type === 'up') {
243
+ ctx.save(); ctx.globalAlpha = 1 - e; ctx.drawImage(A, 0, -60 * e); ctx.restore(); ctx.save(); ctx.globalAlpha = e; ctx.drawImage(B, 0, 70 * (1 - e)); ctx.restore();
244
+ } else { ctx.save(); ctx.globalAlpha = 1 - e; ctx.drawImage(A, 0, 0); ctx.globalAlpha = e; ctx.drawImage(B, 0, 0); ctx.restore(); }
245
+ }
246
+ // a soft synth pad and light percussion on the music bus (for scores)
247
+ function padBed(k, t0, t1, o = {}) {
248
+ const bpm = o.bpm || 90, beat = 60 / bpm, bar = beat * 4, chords = o.chords, g = o.gain == null ? 1 : o.gain;
249
+ let i = 0;
250
+ for (let tb = t0; tb < t1 - 0.1; tb += bar, i++) {
251
+ const ch = chords[i % chords.length], len = Math.min(bar, t1 - tb);
252
+ ch.forEach((n, j) => { k.voice(tb, { type: 'triangle', f: n, dur: len + 0.4, gain: 0.026 * g, a: 0.5, hold: Math.max(0, len - 0.9), filter: 'lowpass', ff: o.cut || 1300, pan: (j - (ch.length - 1) / 2) * 0.3, verb: 0.3, bus: 'music' }); });
253
+ k.voice(tb, { f: k.hz(ch[0]) / 2, dur: len + 0.2, gain: 0.05 * g, a: 0.3, hold: Math.max(0, len - 0.6), bus: 'music' });
254
+ for (let b = 0; b < 8; b++) {
255
+ const ts = tb + b * beat / 2; if (ts >= t1 - 0.05) break;
256
+ if (o.hats && ts >= o.hats[0] && ts < o.hats[1]) k.hiss(ts, { dur: b % 2 ? 0.03 : 0.045, filter: 'highpass', ff: 8000, gain: (b % 2 ? 0.014 : 0.022) * g, bus: 'music' });
257
+ if (o.kick && ts >= o.kick[0] && ts < o.kick[1] && (b === 0 || b === 4)) k.voice(ts, { f: [[0, 120], [0.09, 46]], dur: 0.26, gain: 0.16 * g, bus: 'music' });
258
+ }
259
+ }
260
+ }
261
+
262
+ // =====================================================================================================
263
+ // STYLE: Warm Canvas (family: Talking-Head Explainer)
264
+ // A calm, editorial creator-edit look built around the speaker's own footage (A-roll).
265
+ // Two modes and nothing else: full-frame A-roll with a few clean overlays, and a warm off-white canvas
266
+ // with a big soft swoosh, where white cards explain the idea while the speaker stays in a picture-in-picture.
267
+ // Soft serif headlines (two tones: ink + sky blue), quiet Inter UI text, pastel tinted chips, gentle fades.
268
+ // Demo topic: "Can AI really plan my week?"
269
+ // =====================================================================================================
270
+ const C = {
271
+ bg: '#f7f5f4', swoosh: '#ebe6e2', ink: '#111111', sub: '#2b2826', mute: '#8f8a87', faint: '#c9c1bb', line: '#ece8e1',
272
+ card: '#ffffff', head: '#f2ede9', labelCol: '#f9f6f5', dashOff: '#ddd4ce', pipRing: '#a7cbf3',
273
+ sky: '#4f9cf0', skyDeep: '#2a78d8', skyTint: '#e4f0fd', skyLine: '#9cc5f3',
274
+ purple: '#7a62c9', purpleSoft: '#b9a3ef', purpleTint: '#f0ebfb', purpleLine: '#c3b5e6',
275
+ teal: '#1690b2', tealTint: '#e0f4fb', tealLine: '#8fd0e6',
276
+ green: '#74ca82', greenDeep: '#379645', greenTint: '#e5f5e7', greenLine: '#97cc9e', greenWave: '#86c991',
277
+ yellowTint: '#fdf3d0', yellowLine: '#efd37f', yellowDeep: '#b58a14',
278
+ blue: '#3869f3', red: '#e5484d', redTint: '#fde4e4',
279
+ };
280
+ const SERIF = (px, w = 560) => `${w} ${px}px "Fraunces", Georgia, serif`;
281
+ const SANS = (px, w = 600) => `${w} ${px}px "Inter", system-ui, sans-serif`;
282
+ const LS = (px) => (-0.02 * px).toFixed(2) + 'px'; // serif tracking: -2%
283
+ const PIP = { x: 986, y: 168, w: 272, h: 384, r: 22 };
284
+ const COLX = 492; // centre of the content column when the PiP is on screen
285
+ const outC = ez.out3, inout = ez.inout3;
286
+ let OVERLAY = false; // overlay export: no A-roll, transparent where footage goes
287
+
288
+ // ---------- the timeline: picture (and later the sound) read these ----------
289
+ var TL = {
290
+ D: 32.6,
291
+ ch1: { title: 0.15, tile: 0.7, dash: 0.95 },
292
+ talk1: { chips: [3.75, 4.25, 4.75], chipsOut: 6.9, cap: [7.55, 7.75, 7.95, 8.35, 8.55, 8.75, 8.95], capOut: 10.25 },
293
+ old: { title: 11.0, cardA: 11.45, footA: 12.05, arrow: 12.6, cardB: 13.0, footB: 13.65, out: 15.7 },
294
+ cmp: { title: 16.2, table: 16.55, rows: [16.85, 17.0, 17.15], cnt: [17.35, 18.6], r2: 19.2, r3: 19.8, out: 21.2 },
295
+ week: { title: 21.7, win: 22.0, clips: 22.35, flag: 23.75, cut: [24.35, 24.85], pills: [25.05, 25.3, 25.55] },
296
+ talk2: { cap: [26.85, 27.05, 27.25, 27.4, 27.75, 27.95, 28.15, 28.35], capOut: 29.3 },
297
+ ch2: { title: 29.95, tile: 30.4, dash: 30.6 },
298
+ };
299
+ // cuts: vertical pushes in and out of chapter cards, hard cuts everywhere else
300
+ var CUTS = [{ t: 3.0, d: 0.45, type: 'vpush' }, { t: 10.6, d: 0, type: 'cut' }, { t: 26.4, d: 0, type: 'cut' }, { t: 29.55, d: 0.45, type: 'vpush' }];
301
+ // jump cuts inside the A-roll: [time, zoom, face x (0..1), face y (0..1)]
302
+ var PUNCH = [[3.0, 1.0, 0.5, 0.36], [7.2, 1.16, 0.5, 0.34], [26.4, 1.08, 0.46, 0.36]];
303
+
304
+ // ---------- primitives ----------
305
+ function tw(c, s, font, ls = '0px') { c.save(); c.font = font; c.letterSpacing = ls; const w = c.measureText(s).width; c.restore(); return w; }
306
+ // a line of mixed-colour serif text: parts = [[text, colour], ...]; returns its width
307
+ function toneText(c, parts, x, y, px, o = {}) {
308
+ const font = SERIF(px, o.w || 560), ls = LS(px), ws = parts.map(([s]) => tw(c, s, font, ls)), tot = ws.reduce((a, b) => a + b, 0);
309
+ let cx = o.align === 'left' ? x : x - tot / 2;
310
+ c.save(); c.font = font; c.letterSpacing = ls; c.textBaseline = 'alphabetic'; c.textAlign = 'left';
311
+ parts.forEach(([s, col], i) => { c.fillStyle = col; c.fillText(s, cx, y); cx += ws[i]; }); c.restore(); return tot;
312
+ }
313
+ function shadowCard(c, x, y, w, h, r, o = {}) {
314
+ c.save(); c.shadowColor = o.shadow || 'rgba(96,64,44,0.11)'; c.shadowBlur = o.blur == null ? 34 : o.blur; c.shadowOffsetY = o.offY == null ? 12 : o.offY;
315
+ c.fillStyle = o.fill || C.card; rr(c, x, y, w, h, r); c.fill(); c.restore();
316
+ }
317
+ function tag(c, x, y, text, bg, fg = '#fff', px = 19) {
318
+ const f = SANS(px, 600), w = tw(c, text, f) + 24, h = px + 16;
319
+ c.save(); c.fillStyle = bg; rr(c, x, y, w, h, 8); c.fill(); c.font = f; c.fillStyle = fg; c.textBaseline = 'middle'; c.fillText(text, x + 13, y + h / 2 + 1); c.restore(); return w;
320
+ }
321
+ // entrance: fade + small rise. returns eased progress
322
+ function enter(c, t, t0, dur = 0.35, dy = 18) { const e = outC(span(t, t0, t0 + dur)); c.globalAlpha *= e; c.translate(0, (1 - e) * dy); return e; }
323
+ const fadeOut = (t, t0, d = 0.22) => 1 - span(t, t0, t0 + d);
324
+
325
+ // ---------- icons (generic, drawn in code) ----------
326
+ function iconSpark(c, x, y, s, col) { c.save(); c.translate(x, y); c.fillStyle = col; c.beginPath(); for (let i = 0; i < 8; i++) { const a = i * Math.PI / 4 - Math.PI / 2, r = i % 2 ? s * 0.28 : s; c.lineTo(Math.cos(a) * r, Math.sin(a) * r); } c.closePath(); c.fill(); c.restore(); }
327
+ function iconCheck(c, x, y, r, col = C.greenDeep) { c.save(); c.fillStyle = col; c.beginPath(); c.arc(x, y, r, 0, 7); c.fill(); c.strokeStyle = '#fff'; c.lineWidth = r * 0.26; c.lineCap = 'round'; c.lineJoin = 'round'; c.beginPath(); c.moveTo(x - r * 0.42, y + r * 0.02); c.lineTo(x - r * 0.1, y + r * 0.32); c.lineTo(x + r * 0.44, y - r * 0.3); c.stroke(); c.restore(); }
328
+ function iconX(c, x, y, r, col = C.red) { c.save(); c.fillStyle = col; c.beginPath(); c.arc(x, y, r, 0, 7); c.fill(); c.strokeStyle = '#fff'; c.lineWidth = r * 0.24; c.lineCap = 'round'; const k = r * 0.36; c.beginPath(); c.moveTo(x - k, y - k); c.lineTo(x + k, y + k); c.moveTo(x + k, y - k); c.lineTo(x - k, y + k); c.stroke(); c.restore(); }
329
+ function iconMinus(c, x, y, r, col) { c.save(); c.strokeStyle = col; c.lineWidth = 2; c.beginPath(); c.arc(x, y, r, 0, 7); c.stroke(); c.lineCap = 'round'; c.beginPath(); c.moveTo(x - r * 0.45, y); c.lineTo(x + r * 0.45, y); c.stroke(); c.restore(); }
330
+ function iconOk(c, x, y, r, col) { c.save(); c.strokeStyle = col; c.lineWidth = 2; c.beginPath(); c.arc(x, y, r, 0, 7); c.stroke(); c.lineCap = 'round'; c.lineJoin = 'round'; c.beginPath(); c.moveTo(x - r * 0.42, y); c.lineTo(x - r * 0.1, y + r * 0.32); c.lineTo(x + r * 0.42, y - r * 0.3); c.stroke(); c.restore(); }
331
+ function iconBook(c, x, y, s, col) { c.save(); c.strokeStyle = col; c.lineWidth = 2; c.lineJoin = 'round'; rr(c, x - s, y - s * 0.75, s * 2, s * 1.5, 3); c.stroke(); c.beginPath(); c.moveTo(x, y - s * 0.75); c.lineTo(x, y + s * 0.75); c.stroke(); c.restore(); }
332
+ function iconNotes(c, x, y, s) { c.save(); c.fillStyle = '#fff4cf'; rr(c, x - s, y - s, s * 2, s * 2, s * 0.3); c.fill(); c.strokeStyle = '#d9b44a'; c.lineWidth = 2.4; c.lineCap = 'round'; for (let i = 0; i < 3; i++) { c.beginPath(); c.moveTo(x - s * 0.55, y - s * 0.4 + i * s * 0.42); c.lineTo(x + s * (i === 2 ? 0.15 : 0.55), y - s * 0.4 + i * s * 0.42); c.stroke(); } c.restore(); }
333
+ function iconCal(c, x, y, s) { c.save(); c.fillStyle = '#fff'; c.strokeStyle = '#d9d2cc'; c.lineWidth = 1.5; rr(c, x - s, y - s, s * 2, s * 2, s * 0.32); c.fill(); c.stroke(); c.fillStyle = C.red; c.beginPath(); c.roundRect(x - s, y - s, s * 2, s * 0.62, [s * 0.32, s * 0.32, 0, 0]); c.fill(); c.fillStyle = C.ink; c.font = SERIF(s * 1.05, 600); c.textAlign = 'center'; c.fillText('7', x, y + s * 0.78); c.restore(); }
334
+ function avatar(c, x, y, s, tint, col) { c.save(); c.fillStyle = tint; rr(c, x, y, s, s, s * 0.22); c.fill(); c.beginPath(); rr(c, x, y, s, s, s * 0.22); c.clip(); c.fillStyle = col; c.beginPath(); c.arc(x + s / 2, y + s * 0.42, s * 0.19, 0, 7); c.fill(); c.beginPath(); c.ellipse(x + s / 2, y + s * 1.02, s * 0.36, s * 0.32, 0, 0, 7); c.fill(); c.restore(); }
335
+
336
+ // ---------- surfaces ----------
337
+ // the warm canvas: off-white with one big soft swoosh (static, it never moves)
338
+ function canvasBG(c) {
339
+ c.fillStyle = C.bg; c.fillRect(0, 0, W, HH);
340
+ c.fillStyle = C.swoosh; c.beginPath(); c.moveTo(372, HH); c.bezierCurveTo(640, 600, 760, 170, 1280, 102); c.lineTo(1280, 418); c.bezierCurveTo(1150, 500, 1040, 640, 948, HH); c.closePath(); c.fill();
341
+ }
342
+ // A-roll stand-in: a defocused talking-head frame, rendered once. Load real footage with "Load A-roll".
343
+ const PH = CM.layer(W, HH);
344
+ (function makePlaceholder() {
345
+ const x = PH.getContext('2d'), b = CM.layer(W, HH), bc = b.getContext('2d');
346
+ let g = bc.createLinearGradient(0, 0, W, 0); g.addColorStop(0, '#59605d'); g.addColorStop(0.45, '#8d918b'); g.addColorStop(0.7, '#d7d2c9'); g.addColorStop(1, '#e4ded4'); bc.fillStyle = g; bc.fillRect(0, 0, W, HH);
347
+ bc.fillStyle = '#9fb0ab'; bc.fillRect(90, 140, 330, 210); bc.fillStyle = '#b8c6c1'; bc.fillRect(110, 160, 140, 170); bc.fillRect(270, 160, 130, 170);
348
+ bc.fillStyle = 'rgba(255,255,250,0.85)'; [[150, 175], [220, 172], [330, 178], [380, 210]].forEach(([a, d]) => { bc.beginPath(); bc.arc(a, d, 9, 0, 7); bc.fill(); });
349
+ bc.fillStyle = '#efc1b4'; for (let i = 0; i < 28; i++) { const r = CM.rng('note' + i); bc.fillRect(900 + (i % 7) * 34 + r() * 6, 120 + Math.floor(i / 7) * 34 + r() * 6, 26, 26); }
350
+ bc.fillStyle = '#c69a6a'; bc.fillRect(1170, 200, 110, 14); bc.fillStyle = '#5c8a5a'; bc.beginPath(); bc.ellipse(1150, 640, 140, 120, -0.4, 0, 7); bc.fill();
351
+ bc.fillStyle = '#6b6f6c'; bc.fillRect(0, 600, 380, 120);
352
+ x.filter = 'blur(16px)'; x.drawImage(b, 0, 0);
353
+ // a soft, featureless figure: it only marks where the speaker sits in frame
354
+ const f = CM.layer(W, HH), fc = f.getContext('2d');
355
+ fc.fillStyle = '#d3d4d1'; fc.beginPath(); fc.moveTo(420, HH); fc.bezierCurveTo(430, 470, 520, 392, 640, 388); fc.bezierCurveTo(760, 392, 850, 470, 860, HH); fc.closePath(); fc.fill();
356
+ fc.fillStyle = '#9c7660'; fc.fillRect(606, 300, 68, 100);
357
+ fc.fillStyle = '#ad8670'; fc.beginPath(); fc.ellipse(640, 232, 82, 104, 0, 0, 7); fc.fill();
358
+ fc.fillStyle = '#2e2724'; fc.beginPath(); fc.ellipse(640, 160, 90, 62, 0, Math.PI, 0); fc.fill();
359
+ x.filter = 'blur(9px)'; x.drawImage(f, 0, 0);
360
+ x.filter = 'blur(10px)'; x.fillStyle = 'rgba(70,120,70,0.75)'; x.beginPath(); x.ellipse(1190, 600, 120, 70, -0.7, 0, 7); x.fill(); x.filter = 'none';
361
+ x.font = '600 15px "Inter", system-ui, sans-serif'; x.fillStyle = 'rgba(255,255,255,0.55)'; x.fillText('A-ROLL STAND-IN', 24, 700);
362
+ })();
363
+ let AR = null; // loaded A-roll video { el }
364
+ // draw the A-roll into a rect, cover-fit, zoomed around the face point
365
+ function arollFeed(c, t, x, y, w, h, z = 1, fx = 0.5, fy = 0.36) {
366
+ if (OVERLAY) return;
367
+ const src = AR ? AR.el : PH, sw = AR ? AR.el.videoWidth : W, sh = AR ? AR.el.videoHeight : HH; if (!sw) return;
368
+ const s = Math.max(w / sw, h / sh) * z, dw = sw * s, dh = sh * s;
369
+ let dx = x + w / 2 - fx * dw, dy = y + h * 0.42 - fy * dh;
370
+ dx = clamp(dx, x + w - dw, x); dy = clamp(dy, y + h - dh, y);
371
+ c.save(); c.beginPath(); c.rect(x, y, w, h); c.clip(); c.drawImage(src, dx, dy, dw, dh); c.restore();
372
+ }
373
+ function punchAt(t) { let p = PUNCH[0]; for (const q of PUNCH) if (t >= q[0]) p = q; return p; }
374
+ function fullARoll(c, t) { if (OVERLAY) return; c.fillStyle = '#000'; c.fillRect(0, 0, W, HH); const [, z, fx, fy] = punchAt(t); arollFeed(c, t, 0, 0, W, HH, z, fx, fy); }
375
+ // picture-in-picture: portrait crop of the same A-roll, soft lavender ring
376
+ function pip(c, t) {
377
+ const { x, y, w, h, r } = PIP;
378
+ c.save(); c.shadowColor = 'rgba(80,90,170,0.18)'; c.shadowBlur = 22; c.shadowOffsetY = 6; c.fillStyle = '#d9dce6'; rr(c, x, y, w, h, r); c.fill(); c.restore();
379
+ if (OVERLAY) { c.save(); c.globalCompositeOperation = 'destination-out'; rr(c, x, y, w, h, r); c.fill(); c.restore(); }
380
+ else { c.save(); rr(c, x, y, w, h, r); c.clip(); arollFeed(c, t, x, y, w, h, 1.0, 0.5, 0.33); c.restore(); }
381
+ c.save(); c.strokeStyle = C.pipRing; c.lineWidth = 2.5; rr(c, x + 1, y + 1, w - 2, h - 2, r - 1); c.stroke(); c.restore();
382
+ }
383
+
384
+ // ---------- components ----------
385
+ // title chip: white pill with a two-tone serif line, sits above the content
386
+ function titleChip(c, parts, t, t0, out, cx = COLX, y = 112) {
387
+ const a = span(t, t0, t0 + 0.3) * fadeOut(t, out); if (a <= 0) return;
388
+ const px = 38, w = tw(c, parts.map((p) => p[0]).join(''), SERIF(px), LS(px)) + 56, h = 70;
389
+ c.save(); c.globalAlpha *= outC(a); c.translate(0, (1 - outC(span(t, t0, t0 + 0.3))) * -8);
390
+ shadowCard(c, cx - w / 2, y, w, h, 18, { shadow: 'rgba(96,64,44,0.06)', blur: 26, offY: 6 });
391
+ toneText(c, parts, cx, y + 48, px); c.restore();
392
+ }
393
+ // chapter card: number tile, two-tone title, chapter dashes
394
+ function chapterCard(c, t, n, parts, T0, total = 11) {
395
+ canvasBG(c);
396
+ const te = outC(span(t, T0.title, T0.title + 0.55));
397
+ c.save(); c.globalAlpha = te; toneText(c, parts, 640, 425 + (1 - te) * 46, 78); c.restore();
398
+ const p = span(t, T0.tile, T0.tile + 0.32);
399
+ if (p > 0) { const s = 0.7 + 0.3 * ez.back(p, 1.6); c.save(); c.globalAlpha = Math.min(1, p * 1.6); c.translate(640, 254); c.scale(s, s);
400
+ c.shadowColor = 'rgba(79,156,240,0.35)'; c.shadowBlur = 22; c.shadowOffsetY = 8; c.fillStyle = C.sky; rr(c, -58, -58, 116, 116, 26); c.fill(); c.shadowColor = 'transparent';
401
+ c.font = SERIF(66, 600); c.fillStyle = '#fff'; c.textAlign = 'center'; c.fillText(String(n), 0, 24); c.restore(); }
402
+ const dw = 40, gap = 8, x0 = 640 - (total * dw + (total - 1) * gap) / 2, da = te;
403
+ for (let i = 0; i < total; i++) { const x = x0 + i * (dw + gap); c.save(); c.globalAlpha = da; c.fillStyle = C.dashOff; rr(c, x, 489, dw, 6, 3); c.fill();
404
+ if (i === n - 1) { c.fillStyle = C.sky; rr(c, x, 489, dw * outC(span(t, T0.dash, T0.dash + 0.35)), 6, 3); c.fill(); } c.restore(); }
405
+ }
406
+ // overlay chip on the A-roll (left stack): icon tile, small overline, serif label
407
+ function sideChip(c, t, t0, out, y, icon, over, label) {
408
+ const e = outC(span(t, t0, t0 + 0.32)), a = e * fadeOut(t, out, 0.2); if (a <= 0) return;
409
+ const x = 40 - (1 - e) * 36, w = 374, h = 108;
410
+ c.save(); c.globalAlpha = a; shadowCard(c, x, y, w, h, 16, { shadow: 'rgba(0,0,0,0.16)', blur: 24, offY: 6 });
411
+ c.fillStyle = '#fff'; c.strokeStyle = '#ece8e4'; c.lineWidth = 1.5; rr(c, x + 18, y + 22, 64, 64, 15); c.fill(); c.stroke(); icon(c, x + 50, y + 54);
412
+ c.font = SANS(16, 500); c.fillStyle = '#5f5b58'; c.fillText(over, x + 100, y + 44); c.font = SERIF(31, 600); c.letterSpacing = LS(31); c.fillStyle = C.ink; c.fillText(label, x + 98, y + 80); c.restore();
413
+ }
414
+ // caption words are pre-rendered once (text + soft shadow) so captions stay fast
415
+ const SPRITES = new Map();
416
+ function wordSprite(s, font, ls, col, px) {
417
+ const key = s + '|' + font + '|' + col; let L = SPRITES.get(key); if (L) return L;
418
+ const w = Math.ceil(tw(ctxProbe, s, font, ls)) + 80, h = Math.ceil(px * 1.5) + 80; L = CM.layer(w, h); const x = L.getContext('2d');
419
+ x.font = font; x.letterSpacing = ls; x.fillStyle = col; x.shadowColor = 'rgba(0,0,0,0.30)'; x.shadowBlur = 18; x.shadowOffsetY = 2; x.fillText(s, 40, 40 + px * 1.1);
420
+ if (document.fonts.status === 'loaded') SPRITES.set(key, L); return L;
421
+ }
422
+ const ctxProbe = CM.layer(4, 4).getContext('2d');
423
+ // caption on the A-roll: centred, white serif, key words in sky blue, each word fades up as it is spoken
424
+ function caption(c, t, lines, out) {
425
+ const fa = fadeOut(t, out, 0.16); if (fa <= 0 || t < lines[0][0][1] - 0.01) return;
426
+ const px = 104, font = SERIF(px), ls = LS(px), gap = 114, y0 = 650 - (lines.length - 1) * gap, sp = tw(c, ' ', font, ls);
427
+ lines.forEach((ln, li) => {
428
+ const ws = ln.map(([s]) => tw(c, s, font, ls)), tot = ws.reduce((a, b) => a + b, 0) + sp * (ln.length - 1); let x = 640 - tot / 2;
429
+ ln.forEach(([s, t0, col], i) => {
430
+ const e = outC(span(t, t0, t0 + 0.3));
431
+ if (e > 0) { const sp0 = wordSprite(s, font, ls, col || '#fff', px); c.save(); c.globalAlpha = e * fa; if (e < 1) c.filter = `blur(${((1 - e) * 5).toFixed(2)}px)`;
432
+ c.drawImage(sp0, x - 40, y0 + li * gap + (1 - e) * 12 - px * 1.1 - 40); c.restore(); }
433
+ x += ws[i] + sp;
434
+ });
435
+ });
436
+ }
437
+ // dashed arrow "- ->" drawn left to right
438
+ function dashArrow(c, x, y, len, p) {
439
+ if (p <= 0) return; c.save(); c.strokeStyle = C.ink; c.lineWidth = 4.5; c.lineCap = 'round'; c.lineJoin = 'round'; const end = x + len * outC(p);
440
+ for (let s = x; s < end - 10; s += 22) { c.beginPath(); c.moveTo(s, y); c.lineTo(Math.min(s + 10, end - 10), y); c.stroke(); }
441
+ if (p > 0.5) { const a = outC(span(p, 0.5, 1)); c.globalAlpha = a; c.beginPath(); c.moveTo(end - 18, y - 9); c.lineTo(end - 8, y); c.lineTo(end - 18, y + 9); c.moveTo(end - 22, y); c.lineTo(end - 8, y); c.stroke(); }
442
+ c.restore();
443
+ }
444
+ // mini week grid used as a "thumbnail" inside cards
445
+ function weekThumb(c, x, y, w, h, blur) {
446
+ c.save(); c.beginPath(); rr(c, x, y, w, h, 12); c.clip(); c.fillStyle = '#f4efe9'; c.fillRect(x, y, w, h);
447
+ if (blur) c.filter = 'blur(5px)';
448
+ const cw = (w - 24) / 5; for (let i = 0; i < 5; i++) { c.fillStyle = '#ffffff'; rr(c, x + 12 + i * cw + 2, y + 12, cw - 4, h - 24, 6); c.fill();
449
+ const r = CM.rng('wk' + i); let yy = y + 20; while (yy < y + h - 34) { const bh = 14 + r() * 24; c.fillStyle = r.pick([C.purpleTint, C.skyTint, C.greenTint, C.tealTint, C.yellowTint]); rr(c, x + 12 + i * cw + 6, yy, cw - 12, bh, 4); c.fill(); yy += bh + 6; } }
450
+ c.restore();
451
+ }
452
+ function personCard(c, x, y, o) {
453
+ const w = 346, h = 436; shadowCard(c, x, y, w, h, 22);
454
+ tag(c, x + 26, y + 26, o.tag, o.tagBg);
455
+ if (o.ai) { c.save(); c.fillStyle = '#fff'; c.strokeStyle = '#efe9e4'; c.lineWidth = 1.5; rr(c, x + 26, y + 86, 76, 76, 18); c.fill(); c.stroke(); iconSpark(c, x + 64, y + 124, 24, C.purple); c.restore(); }
456
+ else avatar(c, x + 26, y + 86, 76, C.skyTint, C.sky);
457
+ c.font = SERIF(32, 600); c.letterSpacing = LS(32); c.fillStyle = C.ink; c.fillText(o.name, x + 122, y + 120); c.letterSpacing = '0px';
458
+ c.font = SANS(19, 500); c.fillStyle = C.sub; c.fillText(o.sub, x + 122, y + 148);
459
+ weekThumb(c, x + 26, y + 190, w - 52, 166, o.ai);
460
+ if (o.ai) { c.save(); c.fillStyle = '#fff'; c.beginPath(); c.arc(x + w / 2, y + 273, 30, 0, 7); c.fill(); c.font = SERIF(40, 700); c.fillStyle = C.purple; c.textAlign = 'center'; c.fillText('?', x + w / 2, y + 287); c.restore(); }
461
+ }
462
+ function cardFooter(c, x, y, w, ok, text, p) {
463
+ if (p <= 0) return; c.save(); c.globalAlpha *= outC(p); const f = SERIF(25, 600), tw0 = tw(c, text, f, LS(25)) + 36, sx = x + w / 2 - tw0 / 2;
464
+ (ok ? iconCheck : iconX)(c, sx + 12, y - 8, 13); c.font = f; c.letterSpacing = LS(25); c.fillStyle = C.ink; c.fillText(text, sx + 36, y); c.restore();
465
+ }
466
+ // segmented meter (white segments on a tinted column)
467
+ function segBar(c, x, y, w, v, segs = 22) { const g = 2.6, sw = (w - g * (segs - 1)) / segs; for (let i = 0; i < segs; i++) { const f = clamp(v * segs - i); c.fillStyle = `rgba(255,255,255,${0.45 + 0.55 * f})`; rr(c, x + i * (sw + g), y, sw, 11, 3); c.fill(); } }
468
+ function rowPill(c, xr, y, text, bg, fg) { const f = SERIF(26), w = tw(c, text, f, LS(26)) + 34; c.save(); c.fillStyle = bg; rr(c, xr - w, y - 21, w, 42, 11); c.fill(); c.font = f; c.letterSpacing = LS(26); c.fillStyle = fg; c.textBaseline = 'middle'; c.fillText(text, xr - w + 17, y + 1); c.restore(); }
469
+ const WV = CM.noise1('wv');
470
+ // a clip on the week timeline
471
+ function clip(c, x, y, w, h, kind, label, o = {}) {
472
+ if (w < 2) return; const K = { deep: [C.purpleTint, C.purpleLine], meet: [C.skyTint, C.skyLine], call: [C.greenTint, C.greenLine], gym: [C.tealTint, C.tealLine], admin: [C.yellowTint, C.yellowLine], bad: [C.redTint, C.red] }[kind];
473
+ c.save(); c.fillStyle = K[0]; rr(c, x, y, w, h, 8); c.fill(); c.strokeStyle = K[1]; c.lineWidth = o.flag ? 2.2 : 1.5; rr(c, x, y, w, h, 8); c.stroke();
474
+ c.beginPath(); rr(c, x, y, w, h, 8); c.clip();
475
+ if (kind === 'meet' || kind === 'bad') { c.strokeStyle = K[1]; c.globalAlpha = 0.45; c.lineWidth = 1; for (let s = x + 40; s < x + w - 4; s += 40) { c.beginPath(); c.moveTo(s, y); c.lineTo(s, y + h); c.stroke(); } c.globalAlpha = 1; }
476
+ if (kind === 'call') { c.strokeStyle = C.greenWave; c.lineWidth = 2; const r = CM.rng('wave' + Math.round(x)); for (let s = x + 7; s < x + w - 6; s += 4.5) { const a = (0.2 + 0.8 * Math.abs(WV(s * 0.07)) * (0.6 + r() * 0.6)) * h * 0.36; c.beginPath(); c.moveTo(s, y + h / 2 - a); c.lineTo(s, y + h / 2 + a); c.stroke(); } }
477
+ if (label) { c.font = SANS(13.5, 600); c.fillStyle = kind === 'bad' ? C.red : kind === 'admin' ? C.yellowDeep : kind === 'gym' ? C.teal : kind === 'deep' ? C.purple : C.skyDeep; c.textBaseline = 'middle';
478
+ if (kind === 'deep') { c.save(); c.fillStyle = '#fff'; rr(c, x + 8, y + 9, 30, h - 18, 4); c.fill(); c.fillStyle = C.purpleLine; c.fillRect(x + 12, y + 14, 22, 3); c.fillRect(x + 12, y + 20, 15, 3); c.restore(); c.fillText(label, x + 46, y + h / 2 + 1); }
479
+ else c.fillText(label, x + (kind === 'admin' ? 0 : 10) + (kind === 'admin' ? (w - c.measureText(label).width) / 2 : 0), y + h / 2 + 1); }
480
+ c.restore();
481
+ }
482
+
483
+ // ---------- scene 0: chapter 1 ----------
484
+ function sceneCh1(c, t) { chapterCard(c, t, 1, [['Can AI ', C.ink], ['Really Plan?', C.sky]], TL.ch1); }
485
+
486
+ // ---------- scene 1: talking head with side chips and a caption ----------
487
+ function sceneTalk1(c, t) {
488
+ const T1 = TL.talk1; fullARoll(c, t);
489
+ sideChip(c, t, T1.chips[0], T1.chipsOut, 174, (c, x, y) => iconNotes(c, x, y, 20), 'Old school', 'Paper planner');
490
+ sideChip(c, t, T1.chips[1], T1.chipsOut, 298, (c, x, y) => iconCal(c, x, y, 20), 'Built in', 'Calendar app');
491
+ sideChip(c, t, T1.chips[2], T1.chipsOut, 422, (c, x, y) => iconSpark(c, x, y, 21, C.sky), 'New', 'AI assistant');
492
+ const k = T1.cap;
493
+ caption(c, t, [[['This', k[0]], ['one', k[1]], ['can', k[2]]], [['now', k[3]], ['plan', k[4], C.sky], ['your', k[5], C.sky], ['week', k[6], C.sky]]], T1.capOut);
494
+ }
495
+
496
+ // ---------- scene 2: the board (canvas + PiP), three beats ----------
497
+ function sceneBoard(c, t) {
498
+ canvasBG(c); pip(c, t);
499
+ const O = TL.old, M = TL.cmp, K = TL.week;
500
+ // beat 1: two cards and a dashed arrow
501
+ titleChip(c, [['The ', C.ink], ['old', C.sky], [' way', C.ink]], t, O.title, O.out);
502
+ if (t < O.out + 0.3) {
503
+ const a = fadeOut(t, O.out);
504
+ if (t > O.cardA) { c.save(); c.globalAlpha = a; enter(c, t, O.cardA); personCard(c, 96, 210, { tag: 'Done by hand', tagBg: C.sky, name: 'Me, on paper', sub: 'Every Sunday, 2 hours' }); cardFooter(c, 96, 210 + 412, 346, true, 'It works', span(t, O.footA, O.footA + 0.3)); c.restore(); }
505
+ c.save(); c.globalAlpha = a; dashArrow(c, 466, 418, 64, span(t, O.arrow, O.arrow + 0.35)); c.restore();
506
+ if (t > O.cardB) { c.save(); c.globalAlpha = a; enter(c, t, O.cardB); personCard(c, 554, 210, { tag: 'With AI', tagBg: C.purpleSoft, name: 'With AI', sub: 'Never tried it', ai: true }); cardFooter(c, 554, 210 + 412, 346, false, 'Not sure yet', span(t, O.footB, O.footB + 0.3)); c.restore(); }
507
+ }
508
+ // beat 2: comparison table with counters
509
+ titleChip(c, [['How close can ', C.ink], ['AI', C.sky], [' get?', C.ink]], t, M.title, M.out);
510
+ if (t > M.table && t < M.out + 0.3) {
511
+ c.save(); c.globalAlpha = fadeOut(t, M.out); enter(c, t, M.table, 0.4, 22);
512
+ const x = 92, y = 210, w = 780, h = 398, c1 = 220, cw = 280;
513
+ shadowCard(c, x, y, w, h, 22); c.save(); c.beginPath(); rr(c, x, y, w, h, 22); c.clip();
514
+ c.fillStyle = C.skyTint; c.fillRect(x + c1, y, cw, h); c.fillStyle = C.purpleTint; c.fillRect(x + c1 + cw, y, cw, h);
515
+ c.fillStyle = C.line; [98, 198, 298].forEach((ry) => c.fillRect(x, y + ry, w, 1.5)); c.restore();
516
+ avatar(c, x + c1 + 28, y + 22, 56, '#fff', C.sky); c.font = SERIF(31, 600); c.letterSpacing = LS(31); c.fillStyle = C.ink; c.fillText('By hand', x + c1 + 100, y + 60);
517
+ c.fillStyle = '#fff'; rr(c, x + c1 + cw + 34, y + 22, 56, 56, 14); c.fill(); iconSpark(c, x + c1 + cw + 62, y + 50, 18, C.purple); c.fillStyle = C.ink; c.fillText('With AI', x + c1 + cw + 106, y + 60); c.letterSpacing = '0px';
518
+ const rows = [['How close', C.skyTint, C.skyDeep], ['Time spent', '#ece6fb', C.purple], ['Tools', C.tealTint, C.teal]];
519
+ rows.forEach(([s, bg, fg], i) => { const p = outC(span(t, M.rows[i], M.rows[i] + 0.3)); if (p <= 0) return; c.save(); c.globalAlpha *= p; rowPill(c, x + c1 - 24, y + 148 + i * 100, s, bg, fg); c.restore(); });
520
+ const u = outC(span(t, M.cnt[0], M.cnt[1])), vals = [100, 82];
521
+ vals.forEach((v, j) => { const cx = x + c1 + j * cw + cw / 2, n = Math.round(v * (j === 0 ? Math.min(1, u * 1.15) : u));
522
+ c.save(); c.globalAlpha *= span(t, M.cnt[0] - 0.2, M.cnt[0]); const f = SERIF(66, 600), nw = tw(c, String(n), f, LS(66)), pw = tw(c, '%', SERIF(30, 600));
523
+ c.font = f; c.letterSpacing = LS(66); c.fillStyle = C.ink; c.fillText(String(n), cx - (nw + pw + 4) / 2, y + 168); c.font = SERIF(30, 600); c.letterSpacing = '0px'; c.fillStyle = j ? C.purple : C.skyDeep; c.fillText('%', cx - (nw + pw + 4) / 2 + nw + 4, y + 168);
524
+ segBar(c, x + c1 + j * cw + 22, y + 182, cw - 44, n / 100); c.restore(); });
525
+ [[M.r2, ['2 hours', '4 minutes']], [M.r3, ['Paper + pen', 'Calendar + AI']]].forEach(([t0, vv], i) => { const p = outC(span(t, t0, t0 + 0.3)); if (p <= 0) return;
526
+ vv.forEach((s, j) => { c.save(); c.globalAlpha *= p; c.font = SANS(22, 500); c.fillStyle = C.sub; c.textAlign = 'center'; c.fillText(s, x + c1 + j * cw + cw / 2, y + 256 + i * 100 + (1 - p) * 8); c.restore(); }); });
527
+ c.restore();
528
+ }
529
+ // beat 3: the week as an editing timeline, with a ripple delete
530
+ titleChip(c, [['What does AI ', C.ink], ['actually change?', C.sky]], t, K.title, 99, COLX, 88);
531
+ if (t > K.win) {
532
+ c.save(); enter(c, t, K.win, 0.4, 22);
533
+ const x = 72, y = 182, w = 840, h = 362, lc = 138, th = 58, ty = 248;
534
+ shadowCard(c, x, y, w, h, 20); c.save(); c.beginPath(); rr(c, x, y, w, h, 20); c.clip();
535
+ c.fillStyle = C.head; c.fillRect(x, y, w, 40); c.fillStyle = C.labelCol; c.fillRect(x, y + 40, lc, h); c.fillStyle = C.line; c.fillRect(x + lc, y + 40, 1.5, h);
536
+ ['#ddd5cf', '#ddd5cf', '#ddd5cf'].forEach((col, i) => { c.fillStyle = col; c.beginPath(); c.arc(x + 20 + i * 16, y + 20, 5, 0, 7); c.fill(); });
537
+ c.fillStyle = '#fff'; rr(c, x + 78, y + 9, 22, 22, 6); c.fill(); iconSpark(c, x + 89, y + 20, 8, C.sky); c.font = SANS(15, 500); c.fillStyle = C.sub; c.fillText('Week planner', x + 108, y + 25);
538
+ c.fillStyle = C.faint; for (let i = 0; i < 11; i++) c.fillRect(x + lc + 12 + i * 67, y + 52, 1.5, 9);
539
+ c.font = SANS(12, 600); c.fillStyle = C.mute; ['MON', 'TUE', 'WED', 'THU', 'FRI'].forEach((d, i) => c.fillText(d, x + lc + 20 + i * 134, y + 60));
540
+ const tracks = [['Deep work', C.purpleSoft, C.purpleTint], ['Meetings', C.sky, C.skyTint], ['Calls', C.green, C.greenTint], ['Gym', '#56b8d6', C.tealTint], ['Admin', '#e8c45a', C.yellowTint]];
541
+ const cutU = inout(span(t, K.cut[0], K.cut[1])), flag = t > K.flag;
542
+ tracks.forEach(([n, dot, tint], i) => { const yy = ty + i * th + th / 2, act = i === 1 && flag && cutU < 1;
543
+ if (act) { c.fillStyle = C.redTint; rr(c, x + 12, yy - 15, lc - 24, 30, 8); c.fill(); }
544
+ c.fillStyle = dot; c.beginPath(); c.arc(x + 26, yy, 4.5, 0, 7); c.fill(); c.font = SANS(16, 600); c.fillStyle = act ? C.red : C.sub; c.fillText(n, x + 38, yy + 6); });
545
+ const X0 = x + lc + 12, cy = (i) => ty + i * th + 9, ch = 40, ap = (k) => outC(span(t, K.clips + k * 0.07, K.clips + k * 0.07 + 0.3));
546
+ const put = (k, fn) => { const p = ap(k); if (p <= 0) return; c.save(); c.globalAlpha *= p; c.translate(0, (1 - p) * 6); fn(); c.restore(); };
547
+ put(0, () => clip(c, X0 + 8, cy(0), 230, ch, 'deep', 'Write script')); put(1, () => clip(c, X0 + 290, cy(0), 200, ch, 'deep', 'Edit video'));
548
+ // meetings row: two "Doomscroll" blocks get flagged, then removed; the rest slides together
549
+ const segs = [[110, 'meet', 'Team sync'], [104, 'bad', 'Doomscroll'], [120, 'meet', 'Client call'], [100, 'bad', 'Doomscroll'], [100, 'meet', 'Review']];
550
+ let mx = X0 + 8; segs.forEach(([sw, kind, lab], k) => { const bad = kind === 'bad', ww = bad ? sw * (1 - cutU) : sw, kk = bad && flag ? 'bad' : bad ? 'meet' : kind, lb = bad && !flag ? 'Scrolling' : lab;
551
+ put(2 + k, () => clip(c, mx, cy(1), Math.max(0, ww - 4), ch, kk, ww > 60 ? lb : '', { flag: bad && flag })); mx += ww; });
552
+ put(7, () => clip(c, X0 + 8, cy(2), 150, ch, 'call', '')); put(8, () => clip(c, X0 + 170, cy(2), 210, ch, 'call', '')); put(9, () => clip(c, X0 + 392, cy(2), 120, ch, 'call', ''));
553
+ put(10, () => clip(c, X0 + 30, cy(3), 90, ch, 'gym', 'Gym')); put(11, () => clip(c, X0 + 300, cy(3), 90, ch, 'gym', 'Gym')); put(12, () => clip(c, X0 + 560, cy(3), 90, ch, 'gym', 'Gym'));
554
+ [60, 240, 420, 600].forEach((ax, i) => put(13 + i, () => clip(c, X0 + ax, cy(4) + 6, 66, 28, 'admin', 'Inbox')));
555
+ // playhead ("now")
556
+ const px = x + 409; c.fillStyle = '#1b1b1b'; c.fillRect(px - 1, y + 48, 2, h - 48); c.beginPath(); c.moveTo(px - 7, y + 44); c.lineTo(px + 7, y + 44); c.lineTo(px, y + 53); c.closePath(); c.fill();
557
+ c.restore(); c.restore();
558
+ // takeaway pills under the window
559
+ const pills = [[iconBook, 'Protect deep work', C.purple], [iconMinus, 'Cut what drains you', C.red], [iconOk, 'Keep what matters', C.greenDeep]];
560
+ const pw = pills.map(([, s]) => tw(c, s, SANS(16, 600)) + 56), tot = pw.reduce((a, b) => a + b, 0) + 14 * 2; let px0 = x + w / 2 - tot / 2;
561
+ pills.forEach(([ic, s, col], i) => { const p = outC(span(t, K.pills[i], K.pills[i] + 0.3)); if (p > 0) { c.save(); c.globalAlpha *= p; c.translate(0, (1 - p) * 10);
562
+ shadowCard(c, px0, 566, pw[i], 40, 12, { shadow: 'rgba(96,64,44,0.08)', blur: 16, offY: 4 }); ic(c, px0 + 22, 586, 8, col); c.font = SANS(16, 600); c.fillStyle = C.sub; c.fillText(s, px0 + 40, 592); c.restore(); } px0 += pw[i] + 14; });
563
+ }
564
+ }
565
+
566
+ // ---------- scene 3: talking head again, one caption ----------
567
+ function sceneTalk2(c, t) {
568
+ fullARoll(c, t); const k = TL.talk2.cap;
569
+ caption(c, t, [[['So', k[0]], ['what', k[1]], ['does', k[2]], ['a', k[3]]], [['good', k[4], C.sky], ['week', k[5], C.sky], ['look', k[6]], ['like?', k[7]]]], TL.talk2.capOut);
570
+ }
571
+ // ---------- scene 4: chapter 2 ----------
572
+ function sceneCh2(c, t) { chapterCard(c, t, 2, [['What Makes A ', C.ink], ['Good Week?', C.sky]], TL.ch2); }
573
+
574
+ var SCENES = [sceneCh1, sceneTalk1, sceneBoard, sceneTalk2, sceneCh2];
575
+ // compositor: hard cuts, and a vertical push (old frame slides up and out, new frame follows from below)
576
+ function explainer(ctx, t) {
577
+ ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.globalAlpha = 1; ctx.globalCompositeOperation = 'source-over'; ctx.filter = 'none';
578
+ ctx.clearRect(0, 0, W, HH); if (!OVERLAY) { ctx.fillStyle = '#000'; ctx.fillRect(0, 0, W, HH); }
579
+ let idx = 0; for (const cu of CUTS) if (t >= cu.t) idx++;
580
+ const cut = CUTS.find((cu) => cu.d > 0 && t >= cu.t && t < cu.t + cu.d);
581
+ if (!cut) { ctx.drawImage(sceneLayer(LA, SCENES[idx], t), 0, 0); return; }
582
+ const e = inout((t - cut.t) / cut.d), A = sceneLayer(LA, SCENES[idx - 1], t), B = sceneLayer(LB, SCENES[idx], t);
583
+ ctx.drawImage(A, 0, -e * HH); ctx.drawImage(B, 0, (1 - e) * HH);
584
+ }
585
+
586
+ // =================================== SOUND SCORE ===================================
587
+ // Quiet and tactile: soft paper slides for cards and chips, low wooden taps for list items,
588
+ // a breathy swell for the vertical pushes, a light keyboard patter and one warm pad under the board.
589
+ // Built to sit under a real voice: no chimes, bells or pings, never more than two sounds at once.
590
+ function scoreSound(k) {
591
+ const O = TL.old, M = TL.cmp, K = TL.week, T1 = TL.talk1;
592
+ const tap = (t, g = 1, pan = 0) => { k.voice(t, { f: [[0, 120], [0.12, 60]], dur: 0.2, gain: 0.16 * g, pan, soft: true }); k.hiss(t, { color: 'brown', dur: 0.06, filter: 'lowpass', ff: 650, gain: 0.06 * g, pan, soft: true }); };
593
+ const slide = (t, g = 1, pan = 0) => k.hiss(t, { color: 'pink', dur: 0.32, filter: 'bandpass', ff: [[0, 380], [0.3, 1100]], q: 0.8, gain: 0.08 * g, a: 0.12, pan, soft: true });
594
+ const swell = (t, g = 1) => k.hiss(t - 0.05, { color: 'pink', dur: 0.6, filter: 'bandpass', ff: [[0, 300], [0.35, 1300], [0.6, 380]], q: 0.7, gain: 0.13 * g, a: 0.32 });
595
+ // chapter card 1, then the vertical push into the A-roll
596
+ slide(TL.ch1.title, 0.8); tap(TL.ch1.tile, 0.8); slide(TL.ch1.dash, 0.5); swell(CUTS[0].t);
597
+ T1.chips.forEach((t, i) => slide(t, 0.9, -0.5 + i * 0.1));
598
+ // the board: one quiet pad from the first title to the last pill
599
+ k.voice(O.title - 0.2, { type: 'triangle', f: 'D3', dur: K.pills[2] - O.title + 1.4, gain: 0.025, a: 1.2, hold: K.pills[2] - O.title - 0.6, filter: 'lowpass', ff: 700, verb: 0.3, bus: 'music' });
600
+ k.voice(O.title - 0.2, { type: 'triangle', f: 'A3', dur: K.pills[2] - O.title + 1.4, gain: 0.018, a: 1.2, hold: K.pills[2] - O.title - 0.6, filter: 'lowpass', ff: 700, verb: 0.3, pan: 0.3, bus: 'music' });
601
+ slide(O.title, 0.7); slide(O.cardA, 0.9, -0.4); tap(O.footA, 0.6, -0.4); slide(O.arrow, 0.5); slide(O.cardB, 0.9, 0.4); tap(O.footB, 0.6, 0.4);
602
+ slide(M.title, 0.7); slide(M.table, 0.9); M.rows.forEach((t, i) => tap(t, 0.5, -0.2 + i * 0.2));
603
+ const r = CM.rng('cnt'); for (let x = M.cnt[0]; x < M.cnt[1]; x += 0.07 + r() * 0.05) k.hiss(x, { dur: 0.014, filter: 'bandpass', ff: 1500 + r() * 500, q: 1.8, gain: 0.05, soft: true });
604
+ tap(M.cnt[1], 0.8); tap(M.r2, 0.6); tap(M.r3, 0.6);
605
+ slide(K.title, 0.7); slide(K.win, 0.9); slide(K.clips, 0.5); tap(K.flag, 0.8, -0.2);
606
+ k.hiss(K.cut[0], { color: 'pink', dur: K.cut[1] - K.cut[0], filter: 'bandpass', ff: [[0, 1200], [K.cut[1] - K.cut[0], 420]], q: 0.9, gain: 0.07, a: 0.1 });
607
+ K.pills.forEach((t, i) => tap(t, 0.55, -0.3 + i * 0.3));
608
+ // chapter card 2
609
+ swell(CUTS[3].t); slide(TL.ch2.title, 0.8); tap(TL.ch2.tile, 0.8); slide(TL.ch2.dash, 0.5);
610
+ }