@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,651 @@
1
+ <meta charset="utf-8">
2
+ <title>Software Walkthrough</title>
3
+ <meta name="claude:viewport-fit-sides" content="cover">
4
+ <link rel="preconnect" href="https://fonts.googleapis.com">
5
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&family=Anton&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;600;700;800&display=block">
7
+ <style>
8
+ /* Layout: an editing-suite player. One dark look by choice: the stage, then the transport bar under it. */
9
+ :root {
10
+ color-scheme: dark;
11
+ --bg: #0b0b0d;
12
+ --panel: #141417;
13
+ --ink: #f2f0ea;
14
+ --dim: #8d8c93;
15
+ --line: #26262c;
16
+ --accent: #ffd60a;
17
+ --display: "Anton", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
18
+ --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
19
+ --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
20
+ }
21
+ html, body { height: 100%; }
22
+ body {
23
+ background: var(--bg); color: var(--ink); font-family: var(--body);
24
+ padding-left: max(16px, env(safe-area-inset-left, 0px));
25
+ padding-right: max(16px, env(safe-area-inset-right, 0px));
26
+ padding-block: 20px 28px;
27
+ }
28
+ .wrap { max-width: 1180px; margin: 0 auto; display: grid; gap: 14px; }
29
+ .top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; }
30
+ .name { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 40px); letter-spacing: 0.02em; text-transform: uppercase; margin: 0; line-height: 1; }
31
+ .name em { font-family: var(--serif); font-style: italic; text-transform: none; color: var(--accent); letter-spacing: 0; font-size: 1.12em; }
32
+ .meta { color: var(--dim); font-size: 14px; margin: 0; }
33
+ .stage { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
34
+ .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
35
+ .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
36
+ .bar button, .bar label.btn {
37
+ font: 600 14px var(--body); color: var(--ink); background: transparent; border: 1px solid var(--line);
38
+ border-radius: 7px; padding: 8px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
39
+ }
40
+ .bar button:hover, .bar label.btn:hover { border-color: var(--dim); }
41
+ .bar button:focus-visible, .bar label.btn:focus-within, #scrub:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
42
+ .bar button[aria-pressed="true"] { background: var(--accent); color: #0b0b0d; border-color: var(--accent); }
43
+ #play { min-width: 82px; justify-content: center; background: var(--ink); color: #0b0b0d; border-color: var(--ink); }
44
+ #scrub { flex: 1 1 220px; min-width: 0; accent-color: var(--accent); }
45
+ #time { font: 600 14px var(--body); font-variant-numeric: tabular-nums; color: var(--dim); min-width: 92px; text-align: right; }
46
+ #vofile { position: absolute; width: 1px; height: 1px; opacity: 0; }
47
+ .note { color: var(--dim); font-size: 13px; margin: 0; max-width: 70ch; }
48
+ </style>
49
+
50
+ <div class="wrap">
51
+ <div class="top">
52
+ <h1 class="name">Software <em>Walkthrough</em></h1>
53
+ <p class="meta">Reference animation · 19.5 s · drawn in code, sound synthesized</p>
54
+ </div>
55
+ <div class="stage"><canvas id="stage" width="1280" height="720" aria-label="Software Walkthrough reference animation"></canvas></div>
56
+ <div class="bar">
57
+ <button id="play" type="button">Play</button>
58
+ <input id="scrub" type="range" min="0" max="19.5" step="0.01" value="0" aria-label="Scrub timeline">
59
+ <span id="time">0.00 / 19.50</span>
60
+ <button id="sound" type="button" aria-pressed="true">Sound on</button>
61
+ <button id="loop" type="button" aria-pressed="true">Loop</button>
62
+ <label class="btn" for="vofile">Load voiceover<input id="vofile" type="file" accept="audio/*"></label>
63
+ </div>
64
+ <p class="note" id="vonote">Load a voiceover to play it in sync. The effects switch to a lighter mix under narration.</p>
65
+ </div>
66
+
67
+ <script>
68
+ // =====================================================================================================
69
+ // CREATOR MOTION GRAPHICS · core helpers (CM), sound kit (SFX), style, player
70
+ // Every frame is a pure function of t. All randomness is seeded. Times are seconds.
71
+ // =====================================================================================================
72
+ const CM = (() => {
73
+ const clamp = (v, a = 0, b = 1) => (v < a ? a : v > b ? b : v);
74
+ const lerp = (a, b, u) => a + (b - a) * u;
75
+ const span = (t, a, b) => clamp((t - a) / (b - a));
76
+ const rotl = (x, k) => (x << k) | (x >>> (32 - k));
77
+ 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; };
78
+ // xoshiro128** style generator, seeded from a number or string
79
+ const rng = (seed) => {
80
+ const s = typeof seed === 'number' ? seed >>> 0 : hash(seed);
81
+ let a = (s ^ 0xa5a5a5a5) >>> 0, b = (Math.imul(s, 0x27d4eb2d) >>> 0) || 1, c = (0x165667b1 ^ s) >>> 0, d = (rotl(s, 7) >>> 0) || 7;
82
+ 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; };
83
+ for (let i = 0; i < 8; i++) r();
84
+ r.in = (lo, hi) => lo + r() * (hi - lo);
85
+ r.pick = (arr) => arr[(r() * arr.length) | 0];
86
+ return r;
87
+ };
88
+ // smooth 1D value noise, roughly -1..1
89
+ 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); }; };
90
+ const ez = {
91
+ out3: (u) => 1 - Math.pow(1 - u, 3),
92
+ in3: (u) => u * u * u,
93
+ inout3: (u) => (u < 0.5 ? 4 * u * u * u : 1 - Math.pow(-2 * u + 2, 3) / 2),
94
+ outExpo: (u) => (u >= 1 ? 1 : 1 - Math.pow(2, -10 * u)),
95
+ 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)),
96
+ spring: (u) => (u <= 0 ? 0 : u >= 1 ? 1 : 1 - Math.exp(-6 * u) * Math.cos(13 * u)),
97
+ };
98
+ const layer = (w, h) => { const c = document.createElement('canvas'); c.width = w; c.height = h; return c; };
99
+ return { clamp, lerp, span, hash, rng, noise1, ez, layer };
100
+ })();
101
+
102
+ // =====================================================================================================
103
+ // SFX: synthesized creator-edit sound kit. Plain Web Audio, no files.
104
+ // voiceover mode keeps the music low under narration and plays sounds marked `soft` at 55%.
105
+ // =====================================================================================================
106
+ const SFX = (() => {
107
+ const SEMI = { C: -9, D: -7, E: -5, F: -4, G: -2, A: 0, B: 2 };
108
+ 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); };
109
+
110
+ function kit(ac, o = {}) {
111
+ const VO = !!o.voiceover, SR = ac.sampleRate, T0 = o.from || 0, base = ac.currentTime + (o.lead || 0);
112
+ // snap every start a little past the sample grid (avoids level spikes on some browsers)
113
+ const at = (t) => (Math.round((base + (t - T0)) * SR) + 0.3) / SR;
114
+ const skip = (t, dur) => at(t) + dur < ac.currentTime || (t < T0 - 0.005 && dur < 1.2);
115
+
116
+ const comp = ac.createDynamicsCompressor();
117
+ comp.threshold.value = -14; comp.knee.value = 6; comp.ratio.value = 4; comp.attack.value = 0.003; comp.release.value = 0.15;
118
+ const master = ac.createGain(); master.gain.value = o.master == null ? 0.85 : o.master;
119
+ comp.connect(master); master.connect(o.dest || ac.destination);
120
+ const mk = (g) => { const n = ac.createGain(); n.gain.value = g; n.connect(comp); return n; };
121
+ const bus = { fx: mk(VO ? 0.78 : 0.95), music: mk(VO ? 0.3 : 0.62), amb: mk(0.45) };
122
+ const duckIn = ac.createGain(); duckIn.connect(bus.music);
123
+ const DUCKS = [];
124
+
125
+ // generated plate-style reverb
126
+ const verb = ac.createConvolver();
127
+ { const n = Math.floor(1.5 * SR), ir = ac.createBuffer(2, n, SR);
128
+ 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; } }
129
+ verb.buffer = ir; }
130
+ const verbIn = ac.createGain(); verbIn.gain.value = 0.8; verbIn.connect(verb); verb.connect(comp);
131
+
132
+ // seeded noise buffers
133
+ const NB = {};
134
+ { const n = Math.floor(2 * SR);
135
+ for (const kind of ['white', 'pink', 'brown']) {
136
+ 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;
137
+ for (let i = 0; i < n; i++) { const w = r() * 2 - 1;
138
+ if (kind === 'white') d[i] = w;
139
+ 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; }
140
+ else { br = (br + 0.02 * w) / 1.02; d[i] = br * 3.4; } }
141
+ NB[kind] = b; } }
142
+
143
+ 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]); };
144
+ const env = (g, t, peak, dur, a = 0.004, hold = 0) => {
145
+ a = Math.min(a, dur * 0.9); hold = Math.min(hold, dur - a);
146
+ g.gain.setValueAtTime(0, t); g.gain.linearRampToValueAtTime(peak, t + a);
147
+ if (hold > 0) g.gain.setValueAtTime(peak, t + a + hold);
148
+ g.gain.exponentialRampToValueAtTime(1e-4, t + dur); g.gain.setValueAtTime(0, t + dur + 0.002);
149
+ };
150
+ const level = (p, d) => (p.gain == null ? d : p.gain) * (VO && p.soft ? 0.55 : 1);
151
+ const route = (node, p, t) => {
152
+ const pan = ac.createStereoPanner();
153
+ 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);
154
+ node.connect(pan); pan.connect(p.bus === 'music' ? duckIn : bus[p.bus || 'fx']);
155
+ if (p.verb) { const s = ac.createGain(); s.gain.value = p.verb; pan.connect(s); s.connect(verbIn); }
156
+ };
157
+ 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; };
158
+
159
+ // primitive: oscillator voice. f may be a value or [[dt, hz], ...]
160
+ function voice(time, p) {
161
+ const dur = p.dur || 0.2; if (skip(time, dur)) return; const t = at(time);
162
+ const osc = ac.createOscillator(); osc.type = p.type || 'sine';
163
+ ramp(osc.frequency, Array.isArray(p.f) ? p.f.map(([d, v]) => [d, hz(v)]) : hz(p.f || 440), t);
164
+ const g = ac.createGain(); env(g, t, level(p, 0.3), dur, p.a, p.hold);
165
+ const f = filt(p, t); if (f) { osc.connect(f); f.connect(g); } else osc.connect(g);
166
+ route(g, p, t); osc.start(t); osc.stop(t + dur + 0.03);
167
+ }
168
+ // primitive: noise voice
169
+ function hiss(time, p) {
170
+ const dur = p.dur || 0.2; if (skip(time, dur)) return; const t = at(time);
171
+ const src = ac.createBufferSource(); src.buffer = NB[p.color || 'white']; src.loop = true; if (p.rate) src.playbackRate.value = p.rate;
172
+ const g = ac.createGain(); env(g, t, level(p, 0.3), dur, p.a, p.hold);
173
+ const f = filt(p, t); if (f) { src.connect(f); f.connect(g); } else src.connect(g);
174
+ route(g, p, t); src.start(t, CM.rng('off' + time)() * 1.5); src.stop(t + dur + 0.03);
175
+ }
176
+ function duck(t, depth = 0.5, hold = 0.25) { DUCKS.push({ t, depth, hold }); }
177
+
178
+ // ---------------- named sounds (creator-edit palette) ----------------
179
+ const S = {
180
+ // text slam: a tight low thump with a short papery crack
181
+ 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 }); },
182
+ // big drop: sub boom with a dark tail
183
+ 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); },
184
+ 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 }); },
185
+ 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 }),
186
+ 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 }); },
187
+ 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 }); },
188
+ 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 }); },
189
+ 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 }); },
190
+ 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 }); },
191
+ 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 }); },
192
+ 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 }); } },
193
+ // highlighter / marker swipe: grainy felt drag
194
+ 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 }); },
195
+ 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 }); },
196
+ 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 }); },
197
+ 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 }); },
198
+ 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) })); },
199
+ 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 }); },
200
+ };
201
+ 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 })); }
202
+
203
+ // ---------------- music: half-time beat with bass and soft pad ----------------
204
+ function music(t0, t1, p = {}) {
205
+ const bpm = p.bpm || 98, step = 60 / bpm / 4, bar = step * 16, g = p.gain == null ? 1 : p.gain;
206
+ const roots = p.roots || ['A1', 'F1', 'C2', 'G1'];
207
+ const pads = p.pads || [['A3', 'C4', 'E4'], ['F3', 'A3', 'C4'], ['C4', 'E4', 'G4'], ['G3', 'B3', 'D4']];
208
+ let bi = 0;
209
+ for (let tb = t0; tb < t1 - 0.05; tb += bar, bi++) {
210
+ const root = roots[bi % roots.length], pad = pads[bi % pads.length], blen = Math.min(bar, t1 - tb);
211
+ 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' }));
212
+ for (let s = 0; s < 16; s++) {
213
+ const ts = tb + s * step; if (ts >= t1 - 0.02) break;
214
+ 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' }); }
215
+ 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' }); }
216
+ 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' });
217
+ 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' });
218
+ }
219
+ }
220
+ }
221
+ 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' }); }
222
+ function finish() {
223
+ DUCKS.sort((a, b) => a.t - b.t);
224
+ 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); }
225
+ }
226
+ return { play, voice, hiss, music, drone, duck, finish, hz, vo: VO };
227
+ }
228
+ function live(score, from, opts = {}) {
229
+ const ac = new (window.AudioContext || window.webkitAudioContext)();
230
+ const k = kit(ac, Object.assign({}, opts, { from: from || 0, lead: 0.04 })); score(k); k.finish();
231
+ return () => { try { ac.close(); } catch (e) {} };
232
+ }
233
+ async function render(score, dur, sr = 48000, opts = {}) {
234
+ const len = Math.ceil(dur * sr), ac = new OfflineAudioContext(2, len, sr);
235
+ const k = kit(ac, Object.assign({}, opts, { from: 0 })); score(k); k.finish();
236
+ const buf = await ac.startRendering(), L = buf.getChannelData(0), R = buf.getChannelData(1), inter = new Float32Array(len * 2);
237
+ 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])); }
238
+ return { inter, peak, sr, frames: len };
239
+ }
240
+ return { kit, live, render, hz };
241
+ })();
242
+
243
+ // ---------- shared UI-style helpers (Clean Tech, Software Walkthrough, Data Story) ----------
244
+ const W = 1280, HH = 720;
245
+ const { clamp, lerp, span, rng, noise1, ez } = CM;
246
+ const rr = (c, x, y, w, h, r) => { c.beginPath(); c.roundRect(x, y, w, h, r); };
247
+ // keyframe track: K = [[t, v1, v2, ...], ...], eased in-out between keys
248
+ function track(K, t) {
249
+ if (t <= K[0][0]) return K[0].slice(1);
250
+ 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)); } }
251
+ return K[K.length - 1].slice(1);
252
+ }
253
+ const textW = (c, s, font) => { c.save(); c.font = font; const w = c.measureText(s).width; c.restore(); return w; };
254
+ const pxOf = (font) => parseFloat(/(\d+)px/.exec(font)[1]);
255
+ // a word rises from behind a mask line into place; returns its width
256
+ function rise(c, s, x, y, font, color, t0, t, o = {}) {
257
+ const w = textW(c, s, font); if (t < t0) return w;
258
+ 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)));
259
+ c.save(); c.beginPath(); c.rect(X - 12, y - px * 1.0, w + 24, px * 1.32); c.clip();
260
+ 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';
261
+ c.fillText(s, X, y + (1 - e) * px * 0.9); c.restore(); return w;
262
+ }
263
+ // a line of words, each rising on its own time. words: [[text, t0, color?]]
264
+ function riseLine(c, words, x, y, font, color, t, o = {}) {
265
+ 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);
266
+ let cx = o.align === 'center' ? x - tot / 2 : x; const boxes = [];
267
+ 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; });
268
+ return boxes;
269
+ }
270
+ // pill highlight behind a word box, growing from the left
271
+ function pillBehind(c, box, font, p, color, pad = 16) {
272
+ 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();
273
+ }
274
+ const typed = (full, t, a, b) => full.slice(0, Math.floor(full.length * span(t, a, b)));
275
+ function softCard(c, x, y, w, h, r, o = {}) {
276
+ 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;
277
+ c.fillStyle = o.fill || '#ffffff'; rr(c, x, y, w, h, r); c.fill(); c.restore();
278
+ 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(); }
279
+ }
280
+ function cursorArrow(c, x, y, s = 1.3) {
281
+ c.save(); c.translate(x, y); c.scale(s, s); c.shadowColor = 'rgba(0,0,0,0.3)'; c.shadowBlur = 6; c.shadowOffsetY = 2;
282
+ 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();
283
+ }
284
+ function checkMark(c, x, y, r, p, fill = '#18b46b') {
285
+ 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();
286
+ 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();
287
+ }
288
+ // scenes on transparent layers, with cuts between them
289
+ const LA = CM.layer(W, HH), LB = CM.layer(W, HH);
290
+ 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; }
291
+ function composite(ctx, t, SCENES, CUTS, background) {
292
+ ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.globalAlpha = 1; ctx.globalCompositeOperation = 'source-over'; ctx.filter = 'none';
293
+ background(ctx, t);
294
+ let idx = 0; for (const c of CUTS) if (t >= c.t) idx++;
295
+ const cut = CUTS.find((c) => t >= c.t && t < c.t + c.d);
296
+ if (!cut) { ctx.drawImage(sceneLayer(LA, SCENES[idx], t), 0, 0); return; }
297
+ const u = (t - cut.t) / cut.d, e = ez.inout3(u), A = sceneLayer(LA, SCENES[idx - 1], t), B = sceneLayer(LB, SCENES[idx], t);
298
+ if (cut.type === 'push') {
299
+ const dir = cut.dir || 1, s = 1 - 0.05 * Math.sin(Math.PI * u);
300
+ 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(); }
301
+ } else if (cut.type === 'zoom') {
302
+ 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();
303
+ 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();
304
+ } else if (cut.type === 'up') {
305
+ 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();
306
+ } else { ctx.save(); ctx.globalAlpha = 1 - e; ctx.drawImage(A, 0, 0); ctx.globalAlpha = e; ctx.drawImage(B, 0, 0); ctx.restore(); }
307
+ }
308
+ // a soft synth pad and light percussion on the music bus (for scores)
309
+ function padBed(k, t0, t1, o = {}) {
310
+ const bpm = o.bpm || 90, beat = 60 / bpm, bar = beat * 4, chords = o.chords, g = o.gain == null ? 1 : o.gain;
311
+ let i = 0;
312
+ for (let tb = t0; tb < t1 - 0.1; tb += bar, i++) {
313
+ const ch = chords[i % chords.length], len = Math.min(bar, t1 - tb);
314
+ 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' }); });
315
+ 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' });
316
+ for (let b = 0; b < 8; b++) {
317
+ const ts = tb + b * beat / 2; if (ts >= t1 - 0.05) break;
318
+ 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' });
319
+ 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' });
320
+ }
321
+ }
322
+ }
323
+ // =====================================================================================================
324
+ // STYLE: Software Walkthrough
325
+ // A screen-recording style tutorial built entirely in code: an app window on a soft gradient desktop,
326
+ // a real-feeling cursor with click ripples, a camera that zooms into what matters, spotlight cutouts,
327
+ // numbered step callouts and a calm pad underneath. Demo: "Your first automation" in an invented app, Flowdesk.
328
+ // =====================================================================================================
329
+ 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)' };
330
+ 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`;
331
+ const WIN = { x: 80, y: 50, w: 1120, h: 620 }, NX = 690;
332
+
333
+ // ---------- the timeline: picture and sound both read these ----------
334
+ const TL = {
335
+ D: 19.5,
336
+ 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] },
337
+ steps: [2.5, 5.0, 8.7, 13.0], stepsOut: 17.2,
338
+ clicks: [3.05, 4.45, 5.95, 6.9, 7.5, 8.3, 9.95, 10.6, 11.05, 13.95],
339
+ 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,
340
+ 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,
341
+ outro: { card: 17.4, w1: 17.55, w2: 18.0 },
342
+ };
343
+ 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]];
344
+ 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]];
345
+ const STEP_NAMES = ['Create an automation', 'Pick a trigger', 'Add an action', 'Turn it on'];
346
+ const sel = (t) => (t > TL.clicks[0] ? 1 : 0);
347
+ const pressed = (t) => TL.clicks.some((c) => t > c - 0.02 && t < c + 0.1);
348
+
349
+ // ---------- desktop ----------
350
+ function wallpaper(c, t) {
351
+ 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);
352
+ 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);
353
+ 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);
354
+ }
355
+
356
+ // ---------- app pieces ----------
357
+ function sidebar(c, t) {
358
+ 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);
359
+ 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();
360
+ c.font = SANS(22, 700); c.fillStyle = C.ink; c.fillText('Flowdesk', 146, 134);
361
+ const s = sel(t), k = span(t, TL.clicks[0], TL.clicks[0] + 0.2);
362
+ ['Home', 'Automations', 'Templates', 'Settings'].forEach((n, i) => {
363
+ const yy = 228 + i * 48 - 48; const on = i === s, a = i === 1 ? k : i === 0 ? 1 - k : 0;
364
+ if (a > 0) { c.save(); c.globalAlpha = a; c.fillStyle = C.accSoft; rr(c, 96, yy - 26, 198, 40, 10); c.fill(); c.restore(); }
365
+ c.fillStyle = on ? C.accDeep : '#4a4f5c'; c.font = SANS(20, on ? 700 : 500); c.fillText(n, 118, yy);
366
+ });
367
+ c.font = MONO(14); c.fillStyle = C.faint; c.fillText('FREE PLAN', 106, 640);
368
+ }
369
+ function header(c, t) {
370
+ const x0 = 340; c.fillStyle = C.line; c.fillRect(311, 150, 889, 1);
371
+ const ed = t > TL.editor, title = t < TL.clicks[0] ? 'Home' : ed ? 'New automation' : 'Automations';
372
+ c.font = SANS(26, 700); c.fillStyle = C.ink; c.fillText(title, x0, 130);
373
+ if (ed) {
374
+ 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;
375
+ 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';
376
+ 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); }
377
+ 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();
378
+ }
379
+ }
380
+ function homePage(c, a) {
381
+ if (a <= 0) return; c.save(); c.globalAlpha = a;
382
+ 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);
383
+ 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(); }
384
+ c.restore();
385
+ }
386
+ function emptyState(c, t, a) {
387
+ if (a <= 0) return; c.save(); c.globalAlpha = a; const cx = 755;
388
+ 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();
389
+ c.textAlign = 'center'; c.font = SANS(30, 700); c.fillStyle = C.ink; c.fillText('No automations yet', cx, 378);
390
+ c.font = SANS(20, 400); c.fillStyle = C.mute; c.fillText('Connect your apps and let the busywork run itself.', cx, 410);
391
+ const k = 1 - 0.06 * Math.sin(Math.PI * span(t, TL.clicks[1], TL.clicks[1] + 0.2));
392
+ 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);
393
+ c.restore();
394
+ }
395
+ function modal(c, t) {
396
+ 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;
397
+ c.save(); c.fillStyle = `rgba(14,16,26,${0.32 * open})`; c.fillRect(WIN.x, WIN.y, WIN.w, WIN.h);
398
+ 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);
399
+ softCard(c, 475, 160, 560, 440, 18, { shadow: 'rgba(10,12,30,0.3)', blur: 50, offY: 20 });
400
+ 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);
401
+ const pick = span(t, TL.clicks[2], TL.clicks[2] + 0.2);
402
+ [['New email', '@'], ['New form reply', '≡'], ['Every morning at 9', '◷']].forEach(([n, ic], i) => {
403
+ const y = 286 + i * 56, on = i === 1 ? pick : 0;
404
+ c.fillStyle = on > 0 ? `rgba(236,235,255,${on})` : '#fff'; rr(c, 505, y - 30, 500, 50, 12); c.fill();
405
+ 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();
406
+ 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';
407
+ c.font = SANS(20, on > 0.5 ? 700 : 500); c.fillStyle = C.ink; c.fillText(n, 563, y + 2);
408
+ if (i === 1) checkMark(c, 980, y - 5, 12, pick, C.acc);
409
+ });
410
+ // which form
411
+ const fa = span(t, TL.clicks[2] + 0.25, TL.clicks[2] + 0.55);
412
+ if (fa > 0) {
413
+ c.save(); c.globalAlpha *= fa; c.font = SANS(17, 700); c.fillStyle = C.mute; c.fillText('Which form?', 511, 446);
414
+ 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();
415
+ c.font = SANS(19, chosen ? 600 : 400); c.fillStyle = chosen ? C.ink : C.faint; c.fillText(chosen ? 'Contact form' : 'Choose a form', 521, 487);
416
+ 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();
417
+ }
418
+ // continue button
419
+ 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));
420
+ 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; }
421
+ c.font = SANS(18, 700); c.fillStyle = ca > 0.5 ? '#fff' : C.faint; c.textAlign = 'center'; c.fillText('Continue', 0, 6); c.restore();
422
+ c.font = SANS(18, 500); c.fillStyle = C.mute; c.fillText('Cancel', 790, 568);
423
+ // dropdown list
424
+ const [l0, l1] = TL.list, lo = ez.outExpo(span(t, l0, l0 + 0.25)) * (1 - span(t, l1, l1 + 0.15));
425
+ if (lo > 0) {
426
+ c.save(); c.globalAlpha *= lo; c.translate(0, (1 - lo) * -8); softCard(c, 505, 506, 500, 96, 12, { blur: 30, offY: 10 });
427
+ const hov = t > 7.25; if (hov) { c.fillStyle = C.accSoft; rr(c, 511, 512, 488, 40, 8); c.fill(); }
428
+ 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();
429
+ }
430
+ c.restore();
431
+ }
432
+ 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(); }
433
+ function editor(c, t) {
434
+ const ea = span(t, TL.editor, TL.editor + 0.3); if (ea <= 0) return; c.save(); c.globalAlpha = ea;
435
+ // dotted canvas
436
+ 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(); }
437
+ // trigger node
438
+ const ts = ez.back(span(t, TL.trig, TL.trig + 0.4), 1.8);
439
+ if (ts > 0) {
440
+ nodeCard(c, NX - 190, 172, 380, 86, ts, 1); c.save(); c.globalAlpha *= Math.min(1, ts);
441
+ 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';
442
+ c.font = MONO(13); c.fillStyle = C.faint; c.letterSpacing = '2px'; c.fillText('WHEN', NX - 108, 207); c.letterSpacing = '0px';
443
+ 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();
444
+ }
445
+ // wire and plus
446
+ const wp = span(t, TL.wire[0], TL.wire[1]), joined = span(t, TL.node - 0.05, TL.node + 0.25);
447
+ if (wp > 0) {
448
+ 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();
449
+ 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(); }
450
+ }
451
+ const ps = ez.back(span(t, TL.plus, TL.plus + 0.3), 2) * (1 - span(t, TL.menu[1], TL.menu[1] + 0.15));
452
+ 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(); }
453
+ // action menu
454
+ 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));
455
+ if (mo > 0) {
456
+ c.save(); c.globalAlpha *= mo; c.translate(-10 * (1 - mo), 0); softCard(c, NX + 36, 296, 300, 140, 14, { blur: 30, offY: 10 });
457
+ c.font = MONO(13); c.fillStyle = C.faint; c.letterSpacing = '2px'; c.fillText('THEN', NX + 54, 322); c.letterSpacing = '0px';
458
+ ['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); });
459
+ c.restore();
460
+ }
461
+ // action node
462
+ const ns = ez.back(span(t, TL.node, TL.node + 0.4), 1.8);
463
+ if (ns > 0) {
464
+ nodeCard(c, NX - 190, 355, 380, 156, ns, 1); c.save(); c.globalAlpha *= Math.min(1, ns);
465
+ 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();
466
+ c.font = MONO(13); c.fillStyle = C.faint; c.letterSpacing = '2px'; c.fillText('THEN', NX - 108, 388); c.letterSpacing = '0px';
467
+ c.font = SANS(20, 700); c.fillStyle = C.ink; c.fillText('Add a row to a sheet', NX - 108, 412);
468
+ 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();
469
+ 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);
470
+ 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); }
471
+ 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; });
472
+ 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); }
473
+ c.restore();
474
+ }
475
+ // live toast
476
+ const [a0, a1] = TL.toast, to = ez.outExpo(span(t, a0, a0 + 0.35)) * (1 - span(t, a1, a1 + 0.25));
477
+ 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(); }
478
+ // the sheet it writes to
479
+ const pa = ez.outExpo(span(t, TL.panel, TL.panel + 0.5));
480
+ if (pa > 0) {
481
+ 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';
482
+ c.fillStyle = C.line; c.fillRect(905, 151, 1, 519);
483
+ 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();
484
+ 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);
485
+ 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]];
486
+ rows.forEach(([n, e, fresh], i) => {
487
+ const y = 296 + (fresh ? 0 : (i - 1 + ins) * 46); if (fresh && ins <= 0) return;
488
+ 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(); }
489
+ 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();
490
+ });
491
+ c.restore();
492
+ }
493
+ c.restore();
494
+ }
495
+ function appWindow(c, t) {
496
+ const { x, y, w, h } = WIN;
497
+ 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();
498
+ c.save(); rr(c, x, y, w, h, 14); c.clip();
499
+ 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(); });
500
+ c.font = SANS(16, 500); c.fillStyle = C.mute; c.textAlign = 'center'; c.fillText('Flowdesk', 640, 76); c.textAlign = 'left';
501
+ sidebar(c, t); header(c, t);
502
+ 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)));
503
+ editor(c, t); modal(c, t);
504
+ c.restore();
505
+ }
506
+ // spotlight: dims everything but a rounded cutout, with a bright edge
507
+ function spotlight(c, x, y, w, h, a) {
508
+ 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');
509
+ c.strokeStyle = `rgba(255,214,10,${a})`; c.lineWidth = 3; rr(c, x, y, w, h, 14); c.stroke(); c.restore();
510
+ }
511
+ function cursor(c, t) {
512
+ 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;
513
+ c.save(); c.globalAlpha = a;
514
+ 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(); } }
515
+ cursorArrow(c, x, y, pressed(t) ? 1.12 : 1.3); c.restore();
516
+ }
517
+
518
+ // ---------- screen-space overlays ----------
519
+ function titleCard(c, t) {
520
+ const I = TL.intro, out = ez.in3(span(t, I.out[0], I.out[1])); if (out >= 1) return;
521
+ c.save(); c.globalAlpha = 1 - out; c.translate(0, -60 * out);
522
+ 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();
523
+ c.save(); c.globalAlpha = 1 - out; c.translate(0, -60 * out); const F = SANS(96, 700);
524
+ riseLine(c, [['Your', I.w1[0]], ['first', I.w1[1]]], 640, 360, F, '#ffffff', t, { align: 'center' });
525
+ riseLine(c, [['automation', I.w2[0]]], 640, 462, F, '#ffffff', t, { align: 'center' });
526
+ 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); }
527
+ c.restore();
528
+ }
529
+ function stepCallout(c, t) {
530
+ const S = TL.steps; let i = -1; S.forEach((s, j) => { if (t >= s) i = j; }); if (i < 0) return;
531
+ 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;
532
+ const label = STEP_NAMES[i]; c.save(); c.font = SANS(28, 700); const w = c.measureText(label).width + 150;
533
+ c.globalAlpha = a; c.translate(-50 * (1 - (i === 0 ? inn : 1)) - 60 * out, 0);
534
+ c.fillStyle = C.dark; rr(c, 48, 612, w, 64, 32); c.fill();
535
+ 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();
536
+ 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);
537
+ 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();
538
+ c.restore();
539
+ }
540
+ function notification(c, t) {
541
+ 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;
542
+ 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';
543
+ 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';
544
+ 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);
545
+ c.font = MONO(13); c.fillStyle = C.faint; c.textAlign = 'right'; c.fillText('NOW', 1232, 58); c.restore();
546
+ }
547
+ function outroCard(c, t) {
548
+ const O = TL.outro, a = ez.outExpo(span(t, O.card, O.card + 0.5)); if (a <= 0) return;
549
+ c.save(); c.globalAlpha = a; c.translate(-60 * (1 - a), 0); c.fillStyle = C.dark; rr(c, 48, 548, 520, 128, 24); c.fill();
550
+ checkMark(c, 102, 612, 26, span(t, O.card + 0.15, O.card + 0.5), C.green);
551
+ rise(c, 'Done in 4 steps.', 146, 610, SANS(40, 700), '#fff', O.w1, t);
552
+ rise(c, 'No code needed.', 148, 648, SANS(24, 500), 'rgba(255,255,255,0.62)', O.w2, t);
553
+ c.restore();
554
+ }
555
+
556
+ function explainer(ctx, t) {
557
+ ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.globalAlpha = 1; ctx.globalCompositeOperation = 'source-over'; ctx.filter = 'none';
558
+ const [cx, cy, z] = track(CAM, t);
559
+ ctx.save(); ctx.translate(640, 360); ctx.scale(z, z); ctx.translate(-cx, -cy);
560
+ wallpaper(ctx, t);
561
+ const I = TL.intro, wa = ez.outExpo(span(t, I.win[0], I.win[1]));
562
+ 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(); }
563
+ spotlight(ctx, 618, 428, 274, 68, span(t, 3.9, 4.2) * (1 - span(t, 4.6, 4.9)));
564
+ spotlight(ctx, 1000, 94, 136, 52, span(t, 13.55, 13.8) * (1 - span(t, 14.4, 14.7)));
565
+ cursor(ctx, t);
566
+ ctx.restore();
567
+ titleCard(ctx, t); stepCallout(ctx, t); notification(ctx, t); outroCard(ctx, t);
568
+ 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);
569
+ }
570
+
571
+ // =================================== SOUND SCORE ===================================
572
+ // Calm and tactile: a warm, slow pad, crisp mouse clicks, soft keyboard, pops when panels open,
573
+ // a small two-note chime for each new step, a smooth whoosh on every camera move, a ping for the notification.
574
+ function scoreSound(k) {
575
+ { 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 })) }); }
576
+ const I = TL.intro;
577
+ 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 }); };
578
+ 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 }); };
579
+ 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 });
580
+ 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] });
581
+ // title
582
+ 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 });
583
+ 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 });
584
+ // step callouts
585
+ 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 }); });
586
+ // clicks
587
+ TL.clicks.forEach((t) => k.play('click', t, { gain: 0.9 }));
588
+ // camera moves
589
+ 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); }
590
+ // modal + dropdown + continue
591
+ 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 });
592
+ 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 });
593
+ // editor
594
+ 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 });
595
+ 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 });
596
+ k.play('keys', TL.type[0], { dur: TL.type[1] - TL.type[0], gain: 0.75 });
597
+ TL.chips.forEach((t, i) => k.play('pop', t + 0.03, { f: 1000 + i * 160, gain: 0.32 }));
598
+ // go live
599
+ k.hiss(TL.live + 0.02, { dur: 0.16, filter: 'bandpass', ff: [[0, 1800], [0.15, 4200]], q: 1.5, gain: 0.08 });
600
+ 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 });
601
+ // result
602
+ 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 });
603
+ k.play('pop', TL.row + 0.05, { f: 760, gain: 0.45 }); chime(TL.row + 0.2, 'D6', 'A6', 1, 0.5);
604
+ // outro
605
+ 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);
606
+ ['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 }));
607
+ }
608
+
609
+ // =================================== PLAYER ===================================
610
+ const cvs = document.getElementById('stage'), ctx = cvs.getContext('2d');
611
+ const DURATION = TL.D;
612
+ window.seek = (t) => explainer(ctx, clamp(t, 0, DURATION));
613
+ window.DURATION = DURATION;
614
+ window.scoreSound = scoreSound;
615
+ window.SFX = SFX;
616
+
617
+ const ui = { play: document.getElementById('play'), scrub: document.getElementById('scrub'), time: document.getElementById('time'), sound: document.getElementById('sound'), loop: document.getElementById('loop'), vo: document.getElementById('vofile'), note: document.getElementById('vonote') };
618
+ let T = 0, playing = false, last = 0, soundOn = true, loopOn = true, stopSound = null, voAudio = null;
619
+ const fmt = (t) => t.toFixed(2) + ' / ' + DURATION.toFixed(2);
620
+ function draw() { window.seek(T); ui.scrub.value = T; ui.time.textContent = fmt(T); }
621
+ function startAudio() {
622
+ stopAudio(); if (!playing) return;
623
+ if (soundOn) stopSound = SFX.live(scoreSound, T, { voiceover: !!voAudio });
624
+ if (voAudio) { try { voAudio.currentTime = T; voAudio.play().catch(() => {}); } catch (e) {} }
625
+ }
626
+ function stopAudio() { if (stopSound) { stopSound(); stopSound = null; } if (voAudio) voAudio.pause(); }
627
+ function setPlaying(p) { playing = p; ui.play.textContent = p ? 'Pause' : 'Play'; last = performance.now(); if (p) startAudio(); else stopAudio(); }
628
+ function tick(now) {
629
+ if (playing) {
630
+ T += (now - last) / 1000; last = now;
631
+ if (T >= DURATION) { if (loopOn) { T = 0; startAudio(); } else { T = DURATION; setPlaying(false); } }
632
+ draw();
633
+ }
634
+ requestAnimationFrame(tick);
635
+ }
636
+ ui.play.addEventListener('click', () => { if (!playing && T >= DURATION) T = 0; setPlaying(!playing); });
637
+ ui.scrub.addEventListener('input', () => { T = parseFloat(ui.scrub.value); draw(); if (playing) startAudio(); });
638
+ ui.sound.addEventListener('click', () => { soundOn = !soundOn; ui.sound.setAttribute('aria-pressed', soundOn); ui.sound.textContent = soundOn ? 'Sound on' : 'Sound off'; if (playing) startAudio(); });
639
+ ui.loop.addEventListener('click', () => { loopOn = !loopOn; ui.loop.setAttribute('aria-pressed', loopOn); });
640
+ ui.vo.addEventListener('change', () => {
641
+ const f = ui.vo.files && ui.vo.files[0]; if (!f) return;
642
+ if (voAudio) { voAudio.pause(); URL.revokeObjectURL(voAudio.src); }
643
+ voAudio = new Audio(URL.createObjectURL(f)); ui.note.textContent = 'Voiceover loaded: ' + f.name + '. Effects use the lighter mix.';
644
+ if (playing) startAudio();
645
+ });
646
+ (async () => {
647
+ try { await Promise.all(['700 30px "DM Sans"', '600 30px "DM Sans"', '500 30px "DM Sans"', '400 30px "DM Sans"', '500 20px "DM Mono"'].map((f) => document.fonts.load(f, 'AaZz09'))); await document.fonts.ready; } catch (e) {}
648
+ T = 10.9; draw(); window.__ready = true;
649
+ requestAnimationFrame((n) => { last = n; tick(n); });
650
+ })();
651
+ </script>