@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,544 @@
1
+ // Software Walkthrough (Screen and UI) 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
+ // ---------- shared UI-style helpers (Clean Tech, Software Walkthrough, Data Story) ----------
181
+ const W = 1280, HH = 720;
182
+ const { clamp, lerp, span, rng, noise1, ez } = CM;
183
+ const rr = (c, x, y, w, h, r) => { c.beginPath(); c.roundRect(x, y, w, h, r); };
184
+ // keyframe track: K = [[t, v1, v2, ...], ...], eased in-out between keys
185
+ function track(K, t) {
186
+ if (t <= K[0][0]) return K[0].slice(1);
187
+ 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)); } }
188
+ return K[K.length - 1].slice(1);
189
+ }
190
+ const textW = (c, s, font) => { c.save(); c.font = font; const w = c.measureText(s).width; c.restore(); return w; };
191
+ const pxOf = (font) => parseFloat(/(\d+)px/.exec(font)[1]);
192
+ // a word rises from behind a mask line into place; returns its width
193
+ function rise(c, s, x, y, font, color, t0, t, o = {}) {
194
+ const w = textW(c, s, font); if (t < t0) return w;
195
+ 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)));
196
+ c.save(); c.beginPath(); c.rect(X - 12, y - px * 1.0, w + 24, px * 1.32); c.clip();
197
+ 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';
198
+ c.fillText(s, X, y + (1 - e) * px * 0.9); c.restore(); return w;
199
+ }
200
+ // a line of words, each rising on its own time. words: [[text, t0, color?]]
201
+ function riseLine(c, words, x, y, font, color, t, o = {}) {
202
+ 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);
203
+ let cx = o.align === 'center' ? x - tot / 2 : x; const boxes = [];
204
+ 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; });
205
+ return boxes;
206
+ }
207
+ // pill highlight behind a word box, growing from the left
208
+ function pillBehind(c, box, font, p, color, pad = 16) {
209
+ 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();
210
+ }
211
+ const typed = (full, t, a, b) => full.slice(0, Math.floor(full.length * span(t, a, b)));
212
+ function softCard(c, x, y, w, h, r, o = {}) {
213
+ 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;
214
+ c.fillStyle = o.fill || '#ffffff'; rr(c, x, y, w, h, r); c.fill(); c.restore();
215
+ 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(); }
216
+ }
217
+ function cursorArrow(c, x, y, s = 1.3) {
218
+ c.save(); c.translate(x, y); c.scale(s, s); c.shadowColor = 'rgba(0,0,0,0.3)'; c.shadowBlur = 6; c.shadowOffsetY = 2;
219
+ 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();
220
+ }
221
+ function checkMark(c, x, y, r, p, fill = '#18b46b') {
222
+ 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();
223
+ 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();
224
+ }
225
+ // scenes on transparent layers, with cuts between them
226
+ const LA = CM.layer(W, HH), LB = CM.layer(W, HH);
227
+ 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; }
228
+ function composite(ctx, t, SCENES, CUTS, background) {
229
+ ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.globalAlpha = 1; ctx.globalCompositeOperation = 'source-over'; ctx.filter = 'none';
230
+ background(ctx, t);
231
+ let idx = 0; for (const c of CUTS) if (t >= c.t) idx++;
232
+ const cut = CUTS.find((c) => t >= c.t && t < c.t + c.d);
233
+ if (!cut) { ctx.drawImage(sceneLayer(LA, SCENES[idx], t), 0, 0); return; }
234
+ const u = (t - cut.t) / cut.d, e = ez.inout3(u), A = sceneLayer(LA, SCENES[idx - 1], t), B = sceneLayer(LB, SCENES[idx], t);
235
+ if (cut.type === 'push') {
236
+ const dir = cut.dir || 1, s = 1 - 0.05 * Math.sin(Math.PI * u);
237
+ 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(); }
238
+ } else if (cut.type === 'zoom') {
239
+ 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();
240
+ 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();
241
+ } else if (cut.type === 'up') {
242
+ 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();
243
+ } else { ctx.save(); ctx.globalAlpha = 1 - e; ctx.drawImage(A, 0, 0); ctx.globalAlpha = e; ctx.drawImage(B, 0, 0); ctx.restore(); }
244
+ }
245
+ // a soft synth pad and light percussion on the music bus (for scores)
246
+ function padBed(k, t0, t1, o = {}) {
247
+ const bpm = o.bpm || 90, beat = 60 / bpm, bar = beat * 4, chords = o.chords, g = o.gain == null ? 1 : o.gain;
248
+ let i = 0;
249
+ for (let tb = t0; tb < t1 - 0.1; tb += bar, i++) {
250
+ const ch = chords[i % chords.length], len = Math.min(bar, t1 - tb);
251
+ 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' }); });
252
+ 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' });
253
+ for (let b = 0; b < 8; b++) {
254
+ const ts = tb + b * beat / 2; if (ts >= t1 - 0.05) break;
255
+ 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' });
256
+ 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' });
257
+ }
258
+ }
259
+ }
260
+ // =====================================================================================================
261
+ // STYLE: Software Walkthrough
262
+ // A screen-recording style tutorial built entirely in code: an app window on a soft gradient desktop,
263
+ // a real-feeling cursor with click ripples, a camera that zooms into what matters, spotlight cutouts,
264
+ // numbered step callouts and a calm pad underneath. Demo: "Your first automation" in an invented app, Flowdesk.
265
+ // =====================================================================================================
266
+ const C = { ink: '#14161c', mute: '#6a6f7c', faint: '#a3a8b4', line: '#e8eaef', side: '#f8f9fb', bar: '#f3f4f7', acc: '#5b5bf6', accDeep: '#4646e0', accSoft: '#ecebff', green: '#1fb46e', greenSoft: '#e4f6ec', yellow: '#ffd60a', dark: 'rgba(14,16,26,0.92)' };
267
+ const SANS = (px, w = 500) => `${w} ${px}px "DM Sans", system-ui, sans-serif`, MONO = (px, w = 500) => `${w} ${px}px "DM Mono", ui-monospace, monospace`;
268
+ const WIN = { x: 80, y: 50, w: 1120, h: 620 }, NX = 690;
269
+
270
+ // ---------- the timeline: picture and sound both read these ----------
271
+ var TL = {
272
+ D: 19.5,
273
+ intro: { tag: 0.1, w1: [0.25, 0.4], w2: [0.55], meta: 0.95, out: [1.9, 2.3], win: [2.0, 2.6] },
274
+ steps: [2.5, 5.0, 8.7, 13.0], stepsOut: 17.2,
275
+ clicks: [3.05, 4.45, 5.95, 6.9, 7.5, 8.3, 9.95, 10.6, 11.05, 13.95],
276
+ modal: [4.6, 8.45], list: [6.95, 7.55], editor: 8.6, trig: 8.8, wire: [9.1, 9.4], plus: 9.4, menu: [10.05, 10.7], node: 10.75,
277
+ type: [11.2, 11.8], chips: [12.0, 12.2, 12.4], live: 13.95, toast: [14.15, 15.4], notif: [15.0, 17.0], panel: 15.6, row: 16.15,
278
+ outro: { card: 17.4, w1: 17.55, w2: 18.0 },
279
+ };
280
+ const CAM = [[0, 640, 360, 1], [3.5, 640, 360, 1], [4.1, 770, 450, 1.5], [4.7, 770, 450, 1.5], [5.3, 700, 380, 1.22], [8.3, 700, 380, 1.22], [8.8, 640, 360, 1], [9.3, 640, 360, 1], [9.8, 720, 370, 1.3], [12.6, 720, 370, 1.3], [13.2, 640, 360, 1], [13.45, 640, 360, 1], [13.9, 1000, 210, 1.6], [14.6, 1000, 210, 1.6], [15.2, 640, 360, 1], [15.6, 640, 360, 1], [16.2, 980, 360, 1.3], [17.3, 980, 360, 1.3], [17.9, 640, 380, 0.95], [19.5, 640, 380, 0.93]];
281
+ const CURSOR = [[2.4, 640, 610], [2.95, 200, 222], [3.4, 200, 222], [4.3, 770, 470], [4.6, 770, 470], [5.8, 700, 338], [6.1, 700, 338], [6.8, 700, 482], [7.0, 700, 482], [7.4, 690, 530], [7.6, 690, 530], [8.2, 935, 562], [8.4, 935, 562], [9.8, NX + 6, 326], [10.1, NX + 6, 326], [10.5, 850, 374], [10.7, 850, 374], [11.0, 640, 428], [12.8, 640, 428], [13.8, 1092, 124], [14.3, 1092, 124], [15.0, 1000, 300], [17.3, 1000, 300]];
282
+ const STEP_NAMES = ['Create an automation', 'Pick a trigger', 'Add an action', 'Turn it on'];
283
+ const sel = (t) => (t > TL.clicks[0] ? 1 : 0);
284
+ const pressed = (t) => TL.clicks.some((c) => t > c - 0.02 && t < c + 0.1);
285
+
286
+ // ---------- desktop ----------
287
+ function wallpaper(c, t) {
288
+ const g = c.createLinearGradient(0, 0, W, HH); g.addColorStop(0, '#3b3f8f'); g.addColorStop(0.55, '#2a6f8f'); g.addColorStop(1, '#1c8a7a'); c.fillStyle = g; c.fillRect(-400, -400, W + 800, HH + 800);
289
+ const b = c.createRadialGradient(300 + Math.sin(t * 0.25) * 80, 140, 0, 300, 140, 700); b.addColorStop(0, 'rgba(255,255,255,0.16)'); b.addColorStop(1, 'rgba(255,255,255,0)'); c.fillStyle = b; c.fillRect(-400, -400, W + 800, HH + 800);
290
+ const b2 = c.createRadialGradient(1100, 640 + Math.cos(t * 0.2) * 40, 0, 1100, 640, 600); b2.addColorStop(0, 'rgba(120,255,214,0.14)'); b2.addColorStop(1, 'rgba(120,255,214,0)'); c.fillStyle = b2; c.fillRect(-400, -400, W + 800, HH + 800);
291
+ }
292
+
293
+ // ---------- app pieces ----------
294
+ function sidebar(c, t) {
295
+ const { x, y, h } = WIN; c.fillStyle = C.side; c.fillRect(x, y + 40, 230, h - 40); c.fillStyle = C.line; c.fillRect(x + 230, y + 40, 1, h - 40);
296
+ c.fillStyle = C.acc; rr(c, 104, 112, 30, 30, 8); c.fill(); c.strokeStyle = '#fff'; c.lineWidth = 3; c.lineCap = 'round'; c.lineJoin = 'round'; c.beginPath(); c.moveTo(112, 132); c.lineTo(119, 120); c.lineTo(124, 129); c.lineTo(128, 122); c.stroke();
297
+ c.font = SANS(22, 700); c.fillStyle = C.ink; c.fillText('Flowdesk', 146, 134);
298
+ const s = sel(t), k = span(t, TL.clicks[0], TL.clicks[0] + 0.2);
299
+ ['Home', 'Automations', 'Templates', 'Settings'].forEach((n, i) => {
300
+ const yy = 228 + i * 48 - 48; const on = i === s, a = i === 1 ? k : i === 0 ? 1 - k : 0;
301
+ if (a > 0) { c.save(); c.globalAlpha = a; c.fillStyle = C.accSoft; rr(c, 96, yy - 26, 198, 40, 10); c.fill(); c.restore(); }
302
+ c.fillStyle = on ? C.accDeep : '#4a4f5c'; c.font = SANS(20, on ? 700 : 500); c.fillText(n, 118, yy);
303
+ });
304
+ c.font = MONO(14); c.fillStyle = C.faint; c.fillText('FREE PLAN', 106, 640);
305
+ }
306
+ function header(c, t) {
307
+ const x0 = 340; c.fillStyle = C.line; c.fillRect(311, 150, 889, 1);
308
+ const ed = t > TL.editor, title = t < TL.clicks[0] ? 'Home' : ed ? 'New automation' : 'Automations';
309
+ c.font = SANS(26, 700); c.fillStyle = C.ink; c.fillText(title, x0, 130);
310
+ if (ed) {
311
+ c.save(); c.globalAlpha = span(t, TL.editor, TL.editor + 0.3); const on = span(t, TL.live, TL.live + 0.22), lv = t > TL.live + 0.1;
312
+ c.font = MONO(15); c.fillStyle = lv ? C.green : C.faint; c.textAlign = 'right'; c.letterSpacing = '2px'; c.fillText(lv ? 'LIVE' : 'OFF', 1046, 126); c.letterSpacing = '0px'; c.textAlign = 'left';
313
+ c.fillStyle = '#d9dce3'; rr(c, 1060, 103, 64, 34, 17); c.fill(); if (on > 0) { c.globalAlpha *= on; c.fillStyle = C.green; rr(c, 1060, 103, 64, 34, 17); c.fill(); c.globalAlpha = span(t, TL.editor, TL.editor + 0.3); }
314
+ const kx = lerp(1077, 1107, ez.back(on, 1.4)); c.shadowColor = 'rgba(0,0,0,0.25)'; c.shadowBlur = 4; c.shadowOffsetY = 1; c.fillStyle = '#fff'; c.beginPath(); c.arc(kx, 120, 13, 0, 7); c.fill(); c.restore();
315
+ }
316
+ }
317
+ function homePage(c, a) {
318
+ if (a <= 0) return; c.save(); c.globalAlpha = a;
319
+ c.font = SANS(34, 700); c.fillStyle = C.ink; c.fillText('Good morning', 340, 220); c.font = SANS(20, 400); c.fillStyle = C.mute; c.fillText('Here is what ran overnight.', 340, 252);
320
+ for (let i = 0; i < 3; i++) { const x = 340 + i * 280; c.fillStyle = '#f6f7f9'; rr(c, x, 290, 256, 150, 14); c.fill(); c.fillStyle = '#e7e9ee'; rr(c, x + 24, 320, 120, 14, 7); c.fill(); rr(c, x + 24, 350, 190, 10, 5); c.fill(); rr(c, x + 24, 372, 150, 10, 5); c.fill(); }
321
+ c.restore();
322
+ }
323
+ function emptyState(c, t, a) {
324
+ if (a <= 0) return; c.save(); c.globalAlpha = a; const cx = 755;
325
+ c.fillStyle = C.accSoft; c.beginPath(); c.arc(cx, 290, 48, 0, 7); c.fill(); c.strokeStyle = C.acc; c.lineWidth = 5; c.lineCap = 'round'; c.lineJoin = 'round'; c.beginPath(); c.moveTo(cx - 3, 268); c.lineTo(cx - 15, 294); c.lineTo(cx + 5, 294); c.lineTo(cx - 7, 314); c.stroke();
326
+ c.textAlign = 'center'; c.font = SANS(30, 700); c.fillStyle = C.ink; c.fillText('No automations yet', cx, 378);
327
+ c.font = SANS(20, 400); c.fillStyle = C.mute; c.fillText('Connect your apps and let the busywork run itself.', cx, 410);
328
+ const k = 1 - 0.06 * Math.sin(Math.PI * span(t, TL.clicks[1], TL.clicks[1] + 0.2));
329
+ c.translate(cx, 462); c.scale(k, k); c.fillStyle = C.acc; rr(c, -130, -26, 260, 52, 12); c.fill(); c.font = SANS(20, 700); c.fillStyle = '#fff'; c.fillText('+ New automation', 0, 7);
330
+ c.restore();
331
+ }
332
+ function modal(c, t) {
333
+ const [m0, m1] = TL.modal, open = ez.outExpo(span(t, m0, m0 + 0.4)) * (1 - ez.in3(span(t, m1, m1 + 0.25))); if (open <= 0) return;
334
+ c.save(); c.fillStyle = `rgba(14,16,26,${0.32 * open})`; c.fillRect(WIN.x, WIN.y, WIN.w, WIN.h);
335
+ c.globalAlpha = Math.min(1, open * 1.3); c.translate(755, 380); const s = 0.94 + 0.06 * open; c.scale(s, s); c.translate(-755, -380 + (1 - open) * 20);
336
+ softCard(c, 475, 160, 560, 440, 18, { shadow: 'rgba(10,12,30,0.3)', blur: 50, offY: 20 });
337
+ c.font = SANS(28, 700); c.fillStyle = C.ink; c.fillText('When should it run?', 511, 214); c.font = SANS(18, 400); c.fillStyle = C.mute; c.fillText('Pick a trigger. You can change it later.', 511, 242);
338
+ const pick = span(t, TL.clicks[2], TL.clicks[2] + 0.2);
339
+ [['New email', '@'], ['New form reply', '≡'], ['Every morning at 9', '◷']].forEach(([n, ic], i) => {
340
+ const y = 286 + i * 56, on = i === 1 ? pick : 0;
341
+ c.fillStyle = on > 0 ? `rgba(236,235,255,${on})` : '#fff'; rr(c, 505, y - 30, 500, 50, 12); c.fill();
342
+ c.strokeStyle = on > 0.5 ? C.acc : C.line; c.lineWidth = on > 0.5 ? 2 : 1.5; rr(c, 505, y - 30, 500, 50, 12); c.stroke();
343
+ c.fillStyle = on > 0.5 ? C.acc : '#f0f1f4'; rr(c, 519, y - 20, 30, 30, 8); c.fill(); c.font = SANS(18, 700); c.fillStyle = on > 0.5 ? '#fff' : C.mute; c.textAlign = 'center'; c.fillText(ic, 534, y + 1); c.textAlign = 'left';
344
+ c.font = SANS(20, on > 0.5 ? 700 : 500); c.fillStyle = C.ink; c.fillText(n, 563, y + 2);
345
+ if (i === 1) checkMark(c, 980, y - 5, 12, pick, C.acc);
346
+ });
347
+ // which form
348
+ const fa = span(t, TL.clicks[2] + 0.25, TL.clicks[2] + 0.55);
349
+ if (fa > 0) {
350
+ c.save(); c.globalAlpha *= fa; c.font = SANS(17, 700); c.fillStyle = C.mute; c.fillText('Which form?', 511, 446);
351
+ const chosen = t > TL.clicks[4]; c.strokeStyle = t > TL.clicks[3] && !chosen ? C.acc : C.line; c.lineWidth = 2; rr(c, 505, 458, 500, 44, 10); c.stroke();
352
+ c.font = SANS(19, chosen ? 600 : 400); c.fillStyle = chosen ? C.ink : C.faint; c.fillText(chosen ? 'Contact form' : 'Choose a form', 521, 487);
353
+ c.strokeStyle = C.mute; c.lineWidth = 2; c.beginPath(); c.moveTo(978, 476); c.lineTo(985, 483); c.lineTo(992, 476); c.stroke(); c.restore();
354
+ }
355
+ // continue button
356
+ const ca = span(t, TL.clicks[4] + 0.05, TL.clicks[4] + 0.3), k = 1 - 0.07 * Math.sin(Math.PI * span(t, TL.clicks[5], TL.clicks[5] + 0.2));
357
+ c.save(); c.translate(935, 562); c.scale(k, k); c.fillStyle = ca > 0 ? C.acc : '#e3e5ea'; rr(c, -70, -22, 140, 44, 10); c.fill(); if (ca > 0 && ca < 1) { c.globalAlpha = 1 - ca; c.fillStyle = '#e3e5ea'; rr(c, -70, -22, 140, 44, 10); c.fill(); c.globalAlpha = 1; }
358
+ c.font = SANS(18, 700); c.fillStyle = ca > 0.5 ? '#fff' : C.faint; c.textAlign = 'center'; c.fillText('Continue', 0, 6); c.restore();
359
+ c.font = SANS(18, 500); c.fillStyle = C.mute; c.fillText('Cancel', 790, 568);
360
+ // dropdown list
361
+ const [l0, l1] = TL.list, lo = ez.outExpo(span(t, l0, l0 + 0.25)) * (1 - span(t, l1, l1 + 0.15));
362
+ if (lo > 0) {
363
+ c.save(); c.globalAlpha *= lo; c.translate(0, (1 - lo) * -8); softCard(c, 505, 506, 500, 96, 12, { blur: 30, offY: 10 });
364
+ const hov = t > 7.25; if (hov) { c.fillStyle = C.accSoft; rr(c, 511, 512, 488, 40, 8); c.fill(); }
365
+ c.font = SANS(19, hov ? 700 : 500); c.fillStyle = C.ink; c.fillText('Contact form', 527, 538); c.font = SANS(19, 500); c.fillStyle = C.mute; c.fillText('Newsletter signup', 527, 584); c.restore();
366
+ }
367
+ c.restore();
368
+ }
369
+ function nodeCard(c, x, y, w, h, s, a) { c.save(); c.globalAlpha *= a; c.translate(x + w / 2, y + h / 2); c.scale(s, s); c.translate(-x - w / 2, -y - h / 2); softCard(c, x, y, w, h, 16, { blur: 26, offY: 8, shadow: 'rgba(13,15,40,0.10)' }); c.restore(); }
370
+ function editor(c, t) {
371
+ const ea = span(t, TL.editor, TL.editor + 0.3); if (ea <= 0) return; c.save(); c.globalAlpha = ea;
372
+ // dotted canvas
373
+ c.fillStyle = 'rgba(20,22,28,0.08)'; for (let y = 180; y < 660; y += 24) for (let x = 330; x < 1190; x += 24) { c.beginPath(); c.arc(x, y, 1.2, 0, 7); c.fill(); }
374
+ // trigger node
375
+ const ts = ez.back(span(t, TL.trig, TL.trig + 0.4), 1.8);
376
+ if (ts > 0) {
377
+ nodeCard(c, NX - 190, 172, 380, 86, ts, 1); c.save(); c.globalAlpha *= Math.min(1, ts);
378
+ c.fillStyle = C.accSoft; rr(c, NX - 170, 192, 46, 46, 12); c.fill(); c.font = SANS(24, 700); c.fillStyle = C.acc; c.textAlign = 'center'; c.fillText('≡', NX - 147, 223); c.textAlign = 'left';
379
+ c.font = MONO(13); c.fillStyle = C.faint; c.letterSpacing = '2px'; c.fillText('WHEN', NX - 108, 207); c.letterSpacing = '0px';
380
+ c.font = SANS(20, 700); c.fillStyle = C.ink; c.fillText('New form reply', NX - 108, 232); c.font = SANS(16, 500); c.fillStyle = C.mute; c.fillText('Contact form', NX + 50, 232); c.restore();
381
+ }
382
+ // wire and plus
383
+ const wp = span(t, TL.wire[0], TL.wire[1]), joined = span(t, TL.node - 0.05, TL.node + 0.25);
384
+ if (wp > 0) {
385
+ const yEnd = lerp(258, 300, wp) + 55 * joined; c.strokeStyle = '#c9cdd6'; c.lineWidth = 2.5; c.beginPath(); c.moveTo(NX, 258); c.lineTo(NX, yEnd); c.stroke();
386
+ if (t > TL.live + 0.1) { const u = ((t - TL.live) * 0.9) % 1; c.fillStyle = C.green; c.beginPath(); c.arc(NX, lerp(258, 355, u), 5, 0, 7); c.fill(); }
387
+ }
388
+ const ps = ez.back(span(t, TL.plus, TL.plus + 0.3), 2) * (1 - span(t, TL.menu[1], TL.menu[1] + 0.15));
389
+ if (ps > 0) { const k = 1 - 0.1 * Math.sin(Math.PI * span(t, TL.clicks[6], TL.clicks[6] + 0.2)); c.save(); c.translate(NX, 320); c.scale(ps * k, ps * k); c.fillStyle = t > TL.clicks[6] ? C.acc : '#fff'; c.strokeStyle = C.acc; c.lineWidth = 2.5; c.beginPath(); c.arc(0, 0, 20, 0, 7); c.fill(); c.stroke(); c.strokeStyle = t > TL.clicks[6] ? '#fff' : C.acc; c.lineCap = 'round'; c.beginPath(); c.moveTo(-8, 0); c.lineTo(8, 0); c.moveTo(0, -8); c.lineTo(0, 8); c.stroke(); c.restore(); }
390
+ // action menu
391
+ const mo = ez.outExpo(span(t, TL.menu[0], TL.menu[0] + 0.25)) * (1 - span(t, TL.menu[1], TL.menu[1] + 0.15));
392
+ if (mo > 0) {
393
+ c.save(); c.globalAlpha *= mo; c.translate(-10 * (1 - mo), 0); softCard(c, NX + 36, 296, 300, 140, 14, { blur: 30, offY: 10 });
394
+ c.font = MONO(13); c.fillStyle = C.faint; c.letterSpacing = '2px'; c.fillText('THEN', NX + 54, 322); c.letterSpacing = '0px';
395
+ ['Send a message', 'Add a row to a sheet', 'Create a task'].forEach((n, i) => { const y = 352 + i * 30, hov = i === 1 && t > 10.35; if (hov) { c.fillStyle = C.accSoft; rr(c, NX + 44, y - 20, 284, 28, 7); c.fill(); } c.font = SANS(18, hov ? 700 : 500); c.fillStyle = hov ? C.accDeep : C.ink; c.fillText(n, NX + 56, y); });
396
+ c.restore();
397
+ }
398
+ // action node
399
+ const ns = ez.back(span(t, TL.node, TL.node + 0.4), 1.8);
400
+ if (ns > 0) {
401
+ nodeCard(c, NX - 190, 355, 380, 156, ns, 1); c.save(); c.globalAlpha *= Math.min(1, ns);
402
+ c.fillStyle = C.greenSoft; rr(c, NX - 170, 373, 46, 46, 12); c.fill(); c.strokeStyle = C.green; c.lineWidth = 2.5; rr(c, NX - 159, 384, 24, 24, 3); c.stroke(); c.beginPath(); c.moveTo(NX - 159, 392); c.lineTo(NX - 135, 392); c.moveTo(NX - 147, 384); c.lineTo(NX - 147, 408); c.stroke();
403
+ c.font = MONO(13); c.fillStyle = C.faint; c.letterSpacing = '2px'; c.fillText('THEN', NX - 108, 388); c.letterSpacing = '0px';
404
+ c.font = SANS(20, 700); c.fillStyle = C.ink; c.fillText('Add a row to a sheet', NX - 108, 412);
405
+ const focus = t > TL.clicks[8] && t < TL.chips[2] + 0.3; c.strokeStyle = focus ? C.acc : C.line; c.lineWidth = 2; rr(c, NX - 170, 430, 340, 36, 9); c.stroke();
406
+ const s1 = typed('Leads', t, TL.type[0], TL.type[1]); c.font = SANS(18, 600); c.fillStyle = s1 ? C.ink : C.faint; c.fillText(s1 || 'Sheet name', NX - 156, 454);
407
+ if (focus && t < TL.type[1] + 0.6 && Math.floor(t * 2.4) % 2 === 0) { c.fillStyle = C.acc; c.fillRect(NX - 154 + c.measureText(s1).width, 438, 2, 22); }
408
+ let cx = NX - 170; ['Name', 'Email', 'Message'].forEach((n, i) => { c.font = SANS(15, 700); const w = c.measureText(n).width + 24, s = ez.back(span(t, TL.chips[i], TL.chips[i] + 0.3), 2.4); if (s > 0) { c.save(); c.translate(cx + w / 2, 490); c.scale(s, s); c.fillStyle = C.accSoft; rr(c, -w / 2, -13, w, 26, 13); c.fill(); c.fillStyle = C.accDeep; c.textAlign = 'center'; c.fillText(n, 0, 5); c.restore(); } cx += w + 8; });
409
+ if (t > TL.live + 0.3) { c.globalAlpha *= span(t, TL.live + 0.3, TL.live + 0.6); c.font = MONO(13); c.fillStyle = C.green; c.textAlign = 'right'; c.fillText(t > TL.row ? 'RAN JUST NOW' : 'WAITING', NX + 172, 388); }
410
+ c.restore();
411
+ }
412
+ // live toast
413
+ const [a0, a1] = TL.toast, to = ez.outExpo(span(t, a0, a0 + 0.35)) * (1 - span(t, a1, a1 + 0.25));
414
+ if (to > 0) { c.save(); c.globalAlpha *= to; c.translate(0, (1 - to) * -16); c.fillStyle = C.ink; rr(c, 840, 168, 280, 50, 25); c.fill(); checkMark(c, 868, 193, 13, span(t, a0 + 0.15, a0 + 0.45), C.green); c.font = SANS(18, 700); c.fillStyle = '#fff'; c.fillText('Automation is live', 892, 199); c.restore(); }
415
+ // the sheet it writes to
416
+ const pa = ez.outExpo(span(t, TL.panel, TL.panel + 0.5));
417
+ if (pa > 0) {
418
+ c.save(); c.translate((1 - pa) * 320, 0); c.fillStyle = '#ffffff'; c.shadowColor = 'rgba(13,15,40,0.14)'; c.shadowBlur = 30; c.shadowOffsetX = -8; c.fillRect(905, 151, 295, 519); c.shadowColor = 'transparent';
419
+ c.fillStyle = C.line; c.fillRect(905, 151, 1, 519);
420
+ c.fillStyle = C.greenSoft; rr(c, 925, 172, 34, 34, 9); c.fill(); c.strokeStyle = C.green; c.lineWidth = 2; rr(c, 933, 180, 18, 18, 2); c.stroke(); c.beginPath(); c.moveTo(933, 186); c.lineTo(951, 186); c.moveTo(942, 180); c.lineTo(942, 198); c.stroke();
421
+ c.font = SANS(22, 700); c.fillStyle = C.ink; c.fillText('Leads', 971, 197); c.font = MONO(13); c.fillStyle = C.faint; c.letterSpacing = '2px'; c.fillText('NAME', 925, 246); c.fillText('EMAIL', 1045, 246); c.letterSpacing = '0px'; c.fillStyle = C.line; c.fillRect(925, 258, 255, 1);
422
+ const ins = ez.outExpo(span(t, TL.row, TL.row + 0.45)), rows = [['Maya Chen', 'maya@chen.io', 1], ['Sam Ortiz', 'sam@ortiz.co', 0], ['Priya Nair', 'priya@hey.com', 0]];
423
+ rows.forEach(([n, e, fresh], i) => {
424
+ const y = 296 + (fresh ? 0 : (i - 1 + ins) * 46); if (fresh && ins <= 0) return;
425
+ c.save(); if (fresh) { c.globalAlpha = ins; const hl = 1 - span(t, TL.row + 1.2, TL.row + 2.2); c.fillStyle = `rgba(31,180,110,${0.14 * hl})`; rr(c, 917, y - 28, 271, 42, 8); c.fill(); }
426
+ c.font = SANS(16, fresh ? 700 : 500); c.fillStyle = C.ink; c.fillText(n, 925, y); c.font = SANS(15, 400); c.fillStyle = C.mute; c.fillText(e, 1045, y); c.fillStyle = C.line; c.fillRect(925, y + 18, 255, 1); c.restore();
427
+ });
428
+ c.restore();
429
+ }
430
+ c.restore();
431
+ }
432
+ function appWindow(c, t) {
433
+ const { x, y, w, h } = WIN;
434
+ c.save(); c.shadowColor = 'rgba(0,0,0,0.35)'; c.shadowBlur = 60; c.shadowOffsetY = 24; c.fillStyle = '#ffffff'; rr(c, x, y, w, h, 14); c.fill(); c.restore();
435
+ c.save(); rr(c, x, y, w, h, 14); c.clip();
436
+ c.fillStyle = C.bar; c.fillRect(x, y, w, 40); [0, 1, 2].forEach((i) => { c.fillStyle = '#d5d8de'; c.beginPath(); c.arc(104 + i * 20, 70, 6, 0, 7); c.fill(); });
437
+ c.font = SANS(16, 500); c.fillStyle = C.mute; c.textAlign = 'center'; c.fillText('Flowdesk', 640, 76); c.textAlign = 'left';
438
+ sidebar(c, t); header(c, t);
439
+ const k0 = TL.clicks[0]; homePage(c, 1 - span(t, k0, k0 + 0.15)); emptyState(c, t, span(t, k0 + 0.1, k0 + 0.35) * (1 - span(t, TL.editor - 0.2, TL.editor)));
440
+ editor(c, t); modal(c, t);
441
+ c.restore();
442
+ }
443
+ // spotlight: dims everything but a rounded cutout, with a bright edge
444
+ function spotlight(c, x, y, w, h, a) {
445
+ if (a <= 0) return; c.save(); c.fillStyle = `rgba(10,12,24,${0.42 * a})`; c.beginPath(); c.rect(-600, -600, W + 1200, HH + 1200); c.roundRect(x, y, w, h, 14); c.fill('evenodd');
446
+ c.strokeStyle = `rgba(255,214,10,${a})`; c.lineWidth = 3; rr(c, x, y, w, h, 14); c.stroke(); c.restore();
447
+ }
448
+ function cursor(c, t) {
449
+ if (t < CURSOR[0][0]) return; const [x, y] = track(CURSOR, t), a = span(t, CURSOR[0][0], CURSOR[0][0] + 0.3) * (1 - span(t, 17.3, 17.6)); if (a <= 0) return;
450
+ c.save(); c.globalAlpha = a;
451
+ for (const ct of TL.clicks) { const r = span(t, ct, ct + 0.5); if (r > 0 && r < 1) { c.strokeStyle = `rgba(91,91,246,${0.9 * (1 - r)})`; c.lineWidth = 3; c.beginPath(); c.arc(x, y, 8 + 30 * ez.out3(r), 0, 7); c.stroke(); c.fillStyle = `rgba(91,91,246,${0.18 * (1 - r)})`; c.fill(); } }
452
+ cursorArrow(c, x, y, pressed(t) ? 1.12 : 1.3); c.restore();
453
+ }
454
+
455
+ // ---------- screen-space overlays ----------
456
+ function titleCard(c, t) {
457
+ const I = TL.intro, out = ez.in3(span(t, I.out[0], I.out[1])); if (out >= 1) return;
458
+ c.save(); c.globalAlpha = 1 - out; c.translate(0, -60 * out);
459
+ c.font = MONO(22, 500); c.fillStyle = 'rgba(255,255,255,0.75)'; c.letterSpacing = '5px'; c.textAlign = 'center'; c.globalAlpha *= span(t, I.tag, I.tag + 0.3); c.fillText('FLOWDESK BASICS', 640, 250); c.restore();
460
+ c.save(); c.globalAlpha = 1 - out; c.translate(0, -60 * out); const F = SANS(96, 700);
461
+ riseLine(c, [['Your', I.w1[0]], ['first', I.w1[1]]], 640, 360, F, '#ffffff', t, { align: 'center' });
462
+ riseLine(c, [['automation', I.w2[0]]], 640, 462, F, '#ffffff', t, { align: 'center' });
463
+ const m = ez.outExpo(span(t, I.meta, I.meta + 0.5)); if (m > 0) { c.globalAlpha *= m; c.font = MONO(22, 500); c.letterSpacing = '4px'; const s = '4 STEPS · ABOUT A MINUTE', w = c.measureText(s).width + 48; c.fillStyle = 'rgba(255,255,255,0.14)'; rr(c, 640 - w / 2, 510, w, 46, 23); c.fill(); c.fillStyle = '#fff'; c.textAlign = 'center'; c.fillText(s, 640 + 2, 541); }
464
+ c.restore();
465
+ }
466
+ function stepCallout(c, t) {
467
+ const S = TL.steps; let i = -1; S.forEach((s, j) => { if (t >= s) i = j; }); if (i < 0) return;
468
+ const inn = ez.outExpo(span(t, S[i], S[i] + 0.45)), out = ez.in3(span(t, TL.stepsOut, TL.stepsOut + 0.3)), a = (i === 0 ? inn : 1) * (1 - out); if (a <= 0) return;
469
+ const label = STEP_NAMES[i]; c.save(); c.font = SANS(28, 700); const w = c.measureText(label).width + 150;
470
+ c.globalAlpha = a; c.translate(-50 * (1 - (i === 0 ? inn : 1)) - 60 * out, 0);
471
+ c.fillStyle = C.dark; rr(c, 48, 612, w, 64, 32); c.fill();
472
+ const sw = i > 0 ? inn : 1; c.save(); c.translate(80, 644); c.scale(ez.back(sw, 2), ez.back(sw, 2)); c.fillStyle = C.acc; c.beginPath(); c.arc(0, 0, 20, 0, 7); c.fill(); c.font = MONO(22, 500); c.fillStyle = '#fff'; c.textAlign = 'center'; c.fillText(String(i + 1), 0, 8); c.restore();
473
+ c.save(); c.beginPath(); c.rect(110, 616, w - 60, 56); c.clip(); c.font = SANS(28, 700); c.fillStyle = '#fff'; c.fillText(label, 116, 654 + (1 - sw) * 40);
474
+ const lw = c.measureText(label).width; c.font = MONO(16, 500); c.fillStyle = 'rgba(255,255,255,0.5)'; c.fillText(`${i + 1}/4`, 116 + lw + 16, 652 + (1 - sw) * 40); c.restore();
475
+ c.restore();
476
+ }
477
+ function notification(c, t) {
478
+ const [n0, n1] = TL.notif, a = ez.outExpo(span(t, n0, n0 + 0.45)) * (1 - ez.in3(span(t, n1, n1 + 0.3))); if (a <= 0) return;
479
+ c.save(); c.translate((1 - a) * 380, 0); c.fillStyle = 'rgba(250,250,252,0.97)'; c.shadowColor = 'rgba(0,0,0,0.3)'; c.shadowBlur = 30; c.shadowOffsetY = 10; rr(c, 880, 22, 370, 82, 18); c.fill(); c.shadowColor = 'transparent';
480
+ c.fillStyle = C.acc; rr(c, 898, 40, 46, 46, 12); c.fill(); c.font = SANS(24, 700); c.fillStyle = '#fff'; c.textAlign = 'center'; c.fillText('≡', 921, 71); c.textAlign = 'left';
481
+ c.font = SANS(18, 700); c.fillStyle = C.ink; c.fillText('Contact form', 958, 58); c.font = SANS(17, 400); c.fillStyle = C.mute; c.fillText('New reply from Maya Chen', 958, 84);
482
+ c.font = MONO(13); c.fillStyle = C.faint; c.textAlign = 'right'; c.fillText('NOW', 1232, 58); c.restore();
483
+ }
484
+ function outroCard(c, t) {
485
+ const O = TL.outro, a = ez.outExpo(span(t, O.card, O.card + 0.5)); if (a <= 0) return;
486
+ c.save(); c.globalAlpha = a; c.translate(-60 * (1 - a), 0); c.fillStyle = C.dark; rr(c, 48, 548, 520, 128, 24); c.fill();
487
+ checkMark(c, 102, 612, 26, span(t, O.card + 0.15, O.card + 0.5), C.green);
488
+ rise(c, 'Done in 4 steps.', 146, 610, SANS(40, 700), '#fff', O.w1, t);
489
+ rise(c, 'No code needed.', 148, 648, SANS(24, 500), 'rgba(255,255,255,0.62)', O.w2, t);
490
+ c.restore();
491
+ }
492
+
493
+ function explainer(ctx, t) {
494
+ ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.globalAlpha = 1; ctx.globalCompositeOperation = 'source-over'; ctx.filter = 'none';
495
+ const [cx, cy, z] = track(CAM, t);
496
+ ctx.save(); ctx.translate(640, 360); ctx.scale(z, z); ctx.translate(-cx, -cy);
497
+ wallpaper(ctx, t);
498
+ const I = TL.intro, wa = ez.outExpo(span(t, I.win[0], I.win[1]));
499
+ if (wa > 0) { ctx.save(); ctx.globalAlpha = Math.min(1, wa * 1.4); ctx.translate(640, 360 + 50 * (1 - wa)); const s = 0.9 + 0.1 * wa; ctx.scale(s, s); ctx.translate(-640, -360); appWindow(ctx, t); ctx.restore(); }
500
+ spotlight(ctx, 618, 428, 274, 68, span(t, 3.9, 4.2) * (1 - span(t, 4.6, 4.9)));
501
+ spotlight(ctx, 1000, 94, 136, 52, span(t, 13.55, 13.8) * (1 - span(t, 14.4, 14.7)));
502
+ cursor(ctx, t);
503
+ ctx.restore();
504
+ titleCard(ctx, t); stepCallout(ctx, t); notification(ctx, t); outroCard(ctx, t);
505
+ const v = ctx.createRadialGradient(640, 360, 420, 640, 360, 860); v.addColorStop(0, 'rgba(0,0,0,0)'); v.addColorStop(1, 'rgba(0,0,0,0.18)'); ctx.fillStyle = v; ctx.fillRect(0, 0, W, HH);
506
+ }
507
+
508
+ // =================================== SOUND SCORE ===================================
509
+ // Calm and tactile: a warm, slow pad, crisp mouse clicks, soft keyboard, pops when panels open,
510
+ // a small two-note chime for each new step, a smooth whoosh on every camera move, a ping for the notification.
511
+ function scoreSound(k) {
512
+ { const k0 = k, G = 2.0; k = Object.assign({}, k0, { voice: (t, p) => k0.voice(t, Object.assign({}, p, { gain: (p.gain == null ? 0.3 : p.gain) * G })), hiss: (t, p) => k0.hiss(t, Object.assign({}, p, { gain: (p.gain == null ? 0.3 : p.gain) * G })), play: (n, t, o = {}) => k0.play(n, t, Object.assign({}, o, { gain: (o.gain == null ? 1 : o.gain) * G })) }); }
513
+ const I = TL.intro;
514
+ const rise1 = (t, g = 1) => { k.voice(t, { f: [[0, 700], [0.05, 1050]], dur: 0.07, gain: 0.06 * g, soft: true }); k.hiss(t, { dur: 0.012, filter: 'highpass', ff: 6000, gain: 0.04 * g, soft: true }); };
515
+ const chime = (t, n1 = 'E6', n2 = 'B6', g = 1, pan = 0) => { k.voice(t, { f: n1, dur: 0.5, gain: 0.07 * g, a: 0.003, verb: 0.3, pan }); k.voice(t + 0.08, { f: n2, dur: 0.7, gain: 0.06 * g, a: 0.003, verb: 0.3, pan }); };
516
+ const camMove = (t, dir = 1, g = 1) => k.hiss(t, { color: 'pink', dur: 0.6, filter: 'bandpass', ff: dir > 0 ? [[0, 400], [0.4, 1500]] : [[0, 1500], [0.5, 400]], q: 0.8, gain: 0.07 * g, a: 0.3, soft: true });
517
+ padBed(k, 0.1, TL.D - 0.2, { bpm: 80, gain: 1, cut: 1200, chords: [['D3', 'F#3', 'A3', 'C#4'], ['B2', 'D3', 'F#3', 'A3'], ['G2', 'B2', 'D3', 'F#3'], ['A2', 'C#3', 'E3', 'G#3']], hats: [2.6, 17.4] });
518
+ // title
519
+ k.play('tick', I.tag, { f: 3800, gain: 0.3, soft: true }); I.w1.concat(I.w2).forEach((t) => rise1(t)); k.play('pop', I.meta, { f: 820, gain: 0.4 });
520
+ k.play('whoosh', I.out[0], { dur: 0.6, gain: 0.45, dir: 1, top: 2200 }); k.play('pop', I.win[0] + 0.2, { f: 520, gain: 0.35 });
521
+ // step callouts
522
+ TL.steps.forEach((t, i) => { chime(t + 0.05, ['E6', 'F#6', 'A6', 'B6'][i], ['B6', 'C#7', 'E7', 'F#7'][i], 0.9, -0.5); k.play('whoosh', t, { dur: 0.35, gain: 0.18, dir: 1, top: 1600, soft: true }); });
523
+ // clicks
524
+ TL.clicks.forEach((t) => k.play('click', t, { gain: 0.9 }));
525
+ // camera moves
526
+ for (let i = 1; i < CAM.length; i++) { const [a, , , za] = CAM[i - 1], [b, , , zb] = CAM[i]; if (Math.abs(zb - za) > 0.05 && b - a < 1) camMove(a, zb > za ? 1 : -1); }
527
+ // modal + dropdown + continue
528
+ k.play('pop', TL.modal[0] + 0.05, { f: 640, gain: 0.5 }); k.play('tick', TL.clicks[2] + 0.12, { f: 3400, gain: 0.35, soft: true });
529
+ k.play('pop', TL.list[0] + 0.03, { f: 900, gain: 0.35 }); k.play('whoosh', TL.modal[1], { dur: 0.3, gain: 0.2, dir: -1, top: 1400, soft: true });
530
+ // editor
531
+ k.play('pop', TL.trig + 0.05, { f: 600, gain: 0.5 }); k.play('tick', TL.wire[0], { f: 2600, gain: 0.25, soft: true }); k.play('pop', TL.plus + 0.04, { f: 1100, gain: 0.35 });
532
+ k.play('pop', TL.menu[0] + 0.03, { f: 860, gain: 0.35 }); k.play('pop', TL.node + 0.05, { f: 700, gain: 0.5 });
533
+ k.play('keys', TL.type[0], { dur: TL.type[1] - TL.type[0], gain: 0.75 });
534
+ TL.chips.forEach((t, i) => k.play('pop', t + 0.03, { f: 1000 + i * 160, gain: 0.32 }));
535
+ // go live
536
+ k.hiss(TL.live + 0.02, { dur: 0.16, filter: 'bandpass', ff: [[0, 1800], [0.15, 4200]], q: 1.5, gain: 0.08 });
537
+ chime(TL.toast[0] + 0.05, 'A5', 'E6', 1.1, 0.3); k.voice(TL.toast[0] + 0.2, { f: 'A6', dur: 0.8, gain: 0.04, a: 0.003, verb: 0.4, pan: 0.3 });
538
+ // result
539
+ k.play('ping', TL.notif[0] + 0.1, { gain: 0.6 }); k.play('whoosh', TL.panel, { dur: 0.5, gain: 0.25, dir: -1, top: 1800, soft: true });
540
+ k.play('pop', TL.row + 0.05, { f: 760, gain: 0.45 }); chime(TL.row + 0.2, 'D6', 'A6', 1, 0.5);
541
+ // outro
542
+ k.play('whoosh', TL.outro.card, { dur: 0.5, gain: 0.3, dir: 1, top: 1800 }); rise1(TL.outro.w1); rise1(TL.outro.w2, 0.7);
543
+ ['D4', 'F#4', 'A4', 'C#5'].forEach((n, i) => k.voice(TL.outro.card + 0.2 + i * 0.07, { f: n, dur: 1.8, gain: 0.045, a: 0.01, verb: 0.4, pan: (i - 1.5) * 0.25 }));
544
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "id": "software-walkthrough",
3
+ "title": "Software Walkthrough",
4
+ "family": "Screen and UI",
5
+ "fonts": [
6
+ "700 30px \"DM Sans\"",
7
+ "600 30px \"DM Sans\"",
8
+ "500 30px \"DM Sans\"",
9
+ "400 30px \"DM Sans\"",
10
+ "500 20px \"DM Mono\""
11
+ ],
12
+ "demo_duration": 19.5,
13
+ "demo_still": 10.9,
14
+ "has_aroll": false
15
+ }
@@ -0,0 +1,38 @@
1
+ # Software Walkthrough (Screen and UI)
2
+
3
+ ## Style card
4
+ Name: Software Walkthrough
5
+ Family: Screen and UI
6
+ Look: A polished screen-recording tutorial built entirely in code: an app window on a soft gradient desktop, a real-feeling cursor with click ripples, a camera that zooms into what matters, yellow-edged spotlights, numbered step callouts and a calm pad underneath.
7
+ How it explains: It shows the clicks, not just the idea: a title card, then the cursor moves through the real flow while the camera follows it in and out, modals and menus open, fields get typed, toggles flip, and a dark step pill at the bottom left counts you through. It ends on the result actually happening and a short lower third.
8
+
9
+ ## The look
10
+ - Surface: a desktop with a soft indigo to teal gradient wallpaper and two slow light blooms. On it, one app window (rounded, deep shadow) with a title bar, a sidebar and a main area. The whole UI is drawn in code, crisp and believable, for an invented app with an invented name. Never copy a real product’s UI, name or logo.
11
+ - Type: DM Sans for all UI and titles (700 for headings and selected items, 400 to 500 for body), DM Mono in caps for tiny labels (WHEN, THEN, LIVE). Ink #14161c, muted #6a6f7c, one accent (#5b5bf6) for buttons, selection and the cursor ripple, green #1fb46e for live and success, yellow #ffd60a only for spotlight edges.
12
+ - Cursor: a classic arrow that moves along eased waypoints (CURSOR keys), dips slightly on each click, and leaves an accent ripple. Every click has a visible result within 0.1 s: a pressed button, a selected row, an opened menu.
13
+ - Camera: one continuous screen recording. Zoom in (1.2x to 1.6x) toward the area being used, hold, and ease back out to the full window between steps (CAM keys). The camera leads the cursor slightly.
14
+ - Emphasis: a spotlight dims everything except a rounded cutout with a yellow edge around the one control that matters. Toasts, notifications and a side panel slide in to prove the result.
15
+ - Chrome: a title card first (small mono tag, a big two-line title, a pill with the step count and time), a dark numbered step pill at the bottom left that swaps as each step starts, and a dark lower third with a green check at the end.
16
+ - Flow: real UI behaviour in order: navigate, empty state, modal with choices, dropdown, continue, editor with connected nodes, typed fields, chips, a toggle that turns on, and the outcome happening (a new row, a message, a file).
17
+ - Pace: 3 to 5 seconds per step, never more than one new action at a time, and a 1.5 second hold on the result.
18
+
19
+ ## Rules that keep it in style
20
+ - Change the story, the words and the props; do not change the medium. Draw every subject accurately for my topic and double-check any facts and numbers you show.
21
+ - Every frame is a pure function of t. Use CM.rng(seed) and CM.noise1(seed) for all randomness, never Math.random. Caching static layers is fine.
22
+ - It will be watched on phones: at 1280x720 keep the title card at 90 px or more, step callouts at 28 px, app text at 18 px or more (the camera zooms in on anything smaller), and the lower third at 40 px. Fill the frame.
23
+ - Keep each frame fast, well under 50 ms.
24
+ - Give my topic its own demo content; do not reuse the reference's story ("Your first automation in an invented app called Flowdesk") unless my content asks for it.
25
+
26
+ ## Sound
27
+ - Bed: a warm, slow pad (padBed) with soft hats while the steps run, no kick. It drops away under the title card for a moment.
28
+ - Map events to the kit: every cursor click gets "click"; modals, menus, nodes and chips get "pop" (higher pitch for smaller things); typing gets "keys"; every camera zoom in or out gets a soft pink-noise swell; step pills get a two-note chime that climbs a little with each step; the toggle gets a short bright swish; a toast or the result gets a chime; an incoming notification gets "ping"; panels sliding in get a soft "whoosh".
29
+ - Full mix (no voiceover): keep the warm pad and soft hats, crisp clicks on every click, and a quiet moment before the result appears.
30
+ - Sync is everything: the sound score reads the same TL times as the picture.
31
+
32
+ ## Helpers to reuse (from the original prompt)
33
+ One self-contained HTML file (an artifact if you can), built on the reference file below:
34
+ - Keep the page, the player (play/pause, scrub, time, sound toggle, loop, Load voiceover) and the CM and SFX blocks unchanged.
35
+ - Replace the demo's story: TL, CAM, CURSOR, STEP_NAMES, the app pieces (sidebar, header, homePage, emptyState, modal, editor), the spotlight calls in explainer(), titleCard(), notification(), outroCard() and scoreSound(). Keep and reuse the style's helpers (the ui-kit helpers (rr, track, rise, riseLine, typed, softCard, cursorArrow, checkMark, padBed), wallpaper(), appWindow() as the frame, spotlight(), cursor(), stepCallout() and the camera transform in explainer()).
36
+ - Aim for 15 to 40 seconds unless my content needs more, and set the duration in TL.D.
37
+ - Keep window.seek(t), window.DURATION, window.scoreSound and window.SFX exposed, so the video can be rendered frame by frame.
38
+ - Load the style's fonts before the first draw, as the reference does: DM Sans (400 to 700), DM Mono (400 and 500).