@sundownreel/mcp 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/README.md +65 -2
  2. package/brand.json +29 -0
  3. package/chunks/chunk-ONI7QK5B.mjs +63 -0
  4. package/chunks/chunk-YUE6XWVB.mjs +2 -0
  5. package/dsl/index.mjs +2 -0
  6. package/dsl/semantic.mjs +5 -0
  7. package/dsl/types.ts +240 -0
  8. package/engine/fonts/ArchivoBlack.ttf +0 -0
  9. package/engine/fonts/Caveat-Bold.ttf +0 -0
  10. package/engine-geo/data-manifest.json +460 -0
  11. package/engine-remotion/public/music/README.md +6 -0
  12. package/engine-remotion/public/music/bed-curious.mp3 +0 -0
  13. package/engine-remotion/public/music/bed-explainer.mp3 +0 -0
  14. package/engine-remotion/public/music/bed-reflective.mp3 +0 -0
  15. package/engine-remotion/public/music/bed-tense.mp3 +0 -0
  16. package/engine-remotion/public/music/bed-upbeat.mp3 +0 -0
  17. package/engine-remotion/public/music/music-index.json +52 -0
  18. package/engine-remotion/public/sfx/README.md +6 -0
  19. package/engine-remotion/public/sfx/alarm-buzz.mp3 +0 -0
  20. package/engine-remotion/public/sfx/beep-happy.mp3 +0 -0
  21. package/engine-remotion/public/sfx/boing-small.mp3 +0 -0
  22. package/engine-remotion/public/sfx/cash-register.mp3 +0 -0
  23. package/engine-remotion/public/sfx/chart-draw.mp3 +0 -0
  24. package/engine-remotion/public/sfx/click-key.mp3 +0 -0
  25. package/engine-remotion/public/sfx/click-sharp.mp3 +0 -0
  26. package/engine-remotion/public/sfx/click-switch.mp3 +0 -0
  27. package/engine-remotion/public/sfx/cloth-swish.mp3 +0 -0
  28. package/engine-remotion/public/sfx/counter-tick.mp3 +0 -0
  29. package/engine-remotion/public/sfx/ding.mp3 +0 -0
  30. package/engine-remotion/public/sfx/error-beep.mp3 +0 -0
  31. package/engine-remotion/public/sfx/glass-ping.mp3 +0 -0
  32. package/engine-remotion/public/sfx/glass-tick.mp3 +0 -0
  33. package/engine-remotion/public/sfx/impact-light.mp3 +0 -0
  34. package/engine-remotion/public/sfx/impact-punch.mp3 +0 -0
  35. package/engine-remotion/public/sfx/impact-soft.mp3 +0 -0
  36. package/engine-remotion/public/sfx/impact-thud.mp3 +0 -0
  37. package/engine-remotion/public/sfx/impact-tin.mp3 +0 -0
  38. package/engine-remotion/public/sfx/impact-wood.mp3 +0 -0
  39. package/engine-remotion/public/sfx/office-ambience-1.mp3 +0 -0
  40. package/engine-remotion/public/sfx/paper-feed.mp3 +0 -0
  41. package/engine-remotion/public/sfx/paper-rustle.mp3 +0 -0
  42. package/engine-remotion/public/sfx/paper-slide.mp3 +0 -0
  43. package/engine-remotion/public/sfx/paper-tear.mp3 +0 -0
  44. package/engine-remotion/public/sfx/pencil-scratch.mp3 +0 -0
  45. package/engine-remotion/public/sfx/pop-drop.mp3 +0 -0
  46. package/engine-remotion/public/sfx/pop-pluck.mp3 +0 -0
  47. package/engine-remotion/public/sfx/pop.mp3 +0 -0
  48. package/engine-remotion/public/sfx/printer-chatter.mp3 +0 -0
  49. package/engine-remotion/public/sfx/receipt-tick.mp3 +0 -0
  50. package/engine-remotion/public/sfx/room-tone.mp3 +0 -0
  51. package/engine-remotion/public/sfx/sfx-index.json +322 -0
  52. package/engine-remotion/public/sfx/slide-whoosh.mp3 +0 -0
  53. package/engine-remotion/public/sfx/stamp-thud.mp3 +0 -0
  54. package/engine-remotion/public/sfx/stinger-8bit.mp3 +0 -0
  55. package/engine-remotion/public/sfx/stinger-hit.mp3 +0 -0
  56. package/engine-remotion/public/sfx/stinger-pizzi.mp3 +0 -0
  57. package/engine-remotion/public/sfx/stinger-sax.mp3 +0 -0
  58. package/engine-remotion/public/sfx/stinger-steel.mp3 +0 -0
  59. package/engine-remotion/public/sfx/sweat-drop.mp3 +0 -0
  60. package/engine-remotion/public/sfx/swipe.mp3 +0 -0
  61. package/engine-remotion/public/sfx/tick-crisp.mp3 +0 -0
  62. package/engine-remotion/public/sfx/tick-soft.mp3 +0 -0
  63. package/engine-remotion/public/sfx/type-click.mp3 +0 -0
  64. package/engine-remotion/public/sfx/typewriter-soft.mp3 +0 -0
  65. package/engine-remotion/public/sfx/ui-confirm.mp3 +0 -0
  66. package/engine-remotion/public/sfx/wheel-roll.mp3 +0 -0
  67. package/engine-remotion/public/sfx/whoosh-rise.mp3 +0 -0
  68. package/engine-remotion/public/sfx/whoosh-ui-rise.mp3 +0 -0
  69. package/engine-remotion/public/sfx/whoosh.mp3 +0 -0
  70. package/library/music/bed.wav +0 -0
  71. package/library/sfx/thud.wav +0 -0
  72. package/library/sfx/tick.wav +0 -0
  73. package/library/sfx/whoosh.wav +0 -0
  74. package/package.json +38 -4
  75. package/pipeline/scripts/master_audio.sh +12 -0
  76. package/prompts/engine-engineer.md +26 -0
  77. package/prompts/fact-checker.md +22 -0
  78. package/prompts/idea-scout.md +21 -0
  79. package/prompts/library-artist.md +15 -0
  80. package/prompts/qa.md +20 -0
  81. package/prompts/researcher.md +22 -0
  82. package/prompts/shot-dsl-writer.md +63 -0
  83. package/prompts/style-shot-writer.md +46 -0
  84. package/registry/styles.mjs +89 -0
  85. package/render/fonts/Anton-Regular.ttf +0 -0
  86. package/render/fonts/ArchivoBlack.ttf +0 -0
  87. package/render/fonts/Caveat-Bold.ttf +0 -0
  88. package/render/fonts/Caveat.ttf +0 -0
  89. package/render/fonts/Cinzel-Black.ttf +0 -0
  90. package/render/fonts/Cinzel-SemiBold.ttf +0 -0
  91. package/render/fonts/CormorantGaramond-MediumItalic.ttf +0 -0
  92. package/render/fonts/CourierPrime-Regular.ttf +0 -0
  93. package/render/fonts/IBMPlexMono-SemiBold.ttf +0 -0
  94. package/render/fonts/IBMPlexSerif-SemiBold.ttf +0 -0
  95. package/render/fonts/Kalam-Bold.ttf +0 -0
  96. package/render/fonts/KaushanScript-Regular.ttf +0 -0
  97. package/render/fonts/LibreBaskerville-Bold.ttf +0 -0
  98. package/render/fonts/LibreBaskerville-Italic.ttf +0 -0
  99. package/render/fonts/PlayfairDisplay-Bold.ttf +0 -0
  100. package/render/fonts/PlayfairDisplay-Regular.ttf +0 -0
  101. package/render/fonts/README.md +15 -0
  102. package/render/fonts/ZillaSlab-Bold-Lining.ttf +0 -0
  103. package/render/fonts/licenses/Anton-OFL.txt +93 -0
  104. package/render/fonts/licenses/ArchivoBlack-OFL.txt +93 -0
  105. package/render/fonts/licenses/Caveat-OFL.txt +93 -0
  106. package/render/fonts/licenses/Cinzel-OFL.txt +93 -0
  107. package/render/fonts/licenses/CormorantGaramond-OFL.txt +93 -0
  108. package/render/fonts/licenses/CourierPrime-OFL.txt +93 -0
  109. package/render/fonts/licenses/IBMPlexMono-OFL.txt +93 -0
  110. package/render/fonts/licenses/IBMPlexSerif-OFL.txt +93 -0
  111. package/render/fonts/licenses/Kalam-OFL.txt +93 -0
  112. package/render/fonts/licenses/KaushanScript-OFL.txt +95 -0
  113. package/render/fonts/licenses/LibreBaskerville-OFL.txt +93 -0
  114. package/render/fonts/licenses/PlayfairDisplay-OFL.txt +93 -0
  115. package/render/fonts/licenses/ZillaSlab-OFL.txt +93 -0
  116. package/render/render.mjs +59539 -0
  117. package/render3d/data/footprints/README.md +27 -0
  118. package/render3d/data/footprints/test-district.geojson +1 -0
  119. package/render3d/fonts/ArchivoBlack.ttf +0 -0
  120. package/render3d/fonts/IBMPlexMono-400.ttf +0 -0
  121. package/render3d/fonts/IBMPlexMono-600.ttf +0 -0
  122. package/render3d/fonts/Inter-400.ttf +0 -0
  123. package/render3d/fonts/Inter-600.ttf +0 -0
  124. package/render3d/fonts/Inter-800.ttf +0 -0
  125. package/render3d/fonts/licenses/ArchivoBlack-OFL.txt +93 -0
  126. package/render3d/fonts/licenses/BlockfolkCaps-OFL.txt +96 -0
  127. package/render3d/fonts/licenses/IBMPlexMono-OFL.txt +93 -0
  128. package/render3d/fonts/licenses/Inter-OFL.txt +93 -0
  129. package/render3d/render.mjs +41191 -0
  130. package/render3d/runtime.js +4532 -0
  131. package/rendergeo/fonts/Anton-Regular.ttf +0 -0
  132. package/rendergeo/fonts/ArchivoBlack.ttf +0 -0
  133. package/rendergeo/fonts/BarlowCondensed-Bold.ttf +0 -0
  134. package/rendergeo/fonts/BarlowCondensed-SemiBold.ttf +0 -0
  135. package/rendergeo/fonts/Caveat-Bold.ttf +0 -0
  136. package/rendergeo/fonts/Caveat.ttf +0 -0
  137. package/rendergeo/fonts/Cinzel-Black.ttf +0 -0
  138. package/rendergeo/fonts/Cinzel-SemiBold.ttf +0 -0
  139. package/rendergeo/fonts/CormorantGaramond-Medium.ttf +0 -0
  140. package/rendergeo/fonts/CormorantGaramond-MediumItalic.ttf +0 -0
  141. package/rendergeo/fonts/CormorantGaramond-SemiBold.ttf +0 -0
  142. package/rendergeo/fonts/CourierPrime-Regular.ttf +0 -0
  143. package/rendergeo/fonts/IBMPlexMono-Medium.ttf +0 -0
  144. package/rendergeo/fonts/IBMPlexMono-Regular.ttf +0 -0
  145. package/rendergeo/fonts/IBMPlexMono-SemiBold.ttf +0 -0
  146. package/rendergeo/fonts/IBMPlexSansCondensed-Medium.ttf +0 -0
  147. package/rendergeo/fonts/IBMPlexSansCondensed-SemiBold.ttf +0 -0
  148. package/rendergeo/fonts/IBMPlexSerif-SemiBold.ttf +0 -0
  149. package/rendergeo/fonts/Kalam-Bold.ttf +0 -0
  150. package/rendergeo/fonts/KaushanScript-Regular.ttf +0 -0
  151. package/rendergeo/fonts/LibreBaskerville-Bold.ttf +0 -0
  152. package/rendergeo/fonts/LibreBaskerville-Italic.ttf +0 -0
  153. package/rendergeo/fonts/OldStandard-Bold.ttf +0 -0
  154. package/rendergeo/fonts/OldStandard-Italic.ttf +0 -0
  155. package/rendergeo/fonts/OldStandard-Regular.ttf +0 -0
  156. package/rendergeo/fonts/PlayfairDisplay-Bold.ttf +0 -0
  157. package/rendergeo/fonts/PlayfairDisplay-Regular.ttf +0 -0
  158. package/rendergeo/fonts/ZillaSlab-Bold-Lining.ttf +0 -0
  159. package/rendergeo/render-geo.mjs +45063 -0
  160. package/server.js +293 -0
  161. package/studio-cli/bin/sundownreel-gate.mjs +205 -0
  162. package/studio-cli/src/gate.mjs +704 -0
  163. package/styles/README.md +32 -0
  164. package/styles/broadsheet/STYLE.md +5 -0
  165. package/styles/broadsheet/style.json +11 -0
  166. package/styles/cartoon/STYLE.md +37 -0
  167. package/styles/cartoon/style.json +12 -0
  168. package/styles/chalkline/STYLE.md +30 -0
  169. package/styles/chalkline/style.json +11 -0
  170. package/thumbnails/dist/make.mjs +62995 -0
  171. package/vendor/gsap.min.js +11 -0
@@ -0,0 +1,46 @@
1
+ # STYLE SHOT WRITER (any style; Stage 9)
2
+
3
+ Every input and output goes through a tool, so this works in Claude Desktop (no file access) and Claude Code.
4
+ Never ask for, read or write file paths. For the private cartoon (`cutout` / `ledger-cartoon`) use `shot-dsl-writer`.
5
+
6
+ ```text
7
+ ROLE: You direct one episode in its chosen style by writing Shot DSL v1 JSON. The style's renderer draws exactly what
8
+ you write; nothing is generated by image or video models. You learn a style from its guide, never from another
9
+ channel's frames, characters, layouts or scripts.
10
+
11
+ INPUTS (one tool call each, before writing):
12
+ - next_step {episodeId} → confirms this is the shots stage and which style the episode uses
13
+ - get_style_guide {styleId} → the style's prompt guide (pacing, cut rules, do/don't), the KINDS MENU with a complete
14
+ valid example shot per kind, the `look` JSON Schema, the library summary (how WHO /
15
+ WHERE / ICONS look in this style) and the shared beat vocabulary
16
+ - shots_context {episodeId} → VO text (locked at Gate 2), facts with onScreenAllowed, the plan from plan_shots
17
+ - shots_types {episodeId} → the exact Shot DSL v1 types
18
+ - facts_get {episodeId} → a fact's claim/source when you need it
19
+
20
+ HOW A SHOT IS BUILT:
21
+ - Timing is fixed by the plan: keep every id, startAbs and dur. Split only shots ≥ 3.0 s into a/b (S041a/S041b);
22
+ never change the total duration.
23
+ - Say WHAT the shot means in `beat` (kind, head, who, where, icons, number/factIds, mood, accent) using only the shared
24
+ vocabulary; say HOW this style draws it in `look` (look.kind = one id from the kinds menu, the rest per the look
25
+ schema). Copy the example shot's structure for that kind and change the content.
26
+ - Every number, price, percentage or date anywhere on screen (beat.number, any string in look, titles, labels) needs
27
+ factIds of facts with onScreenAllowed: true, and the text must contain the fact's on_screen string exactly. Never
28
+ invent a number. Real people are never drawn: silhouette or quote card.
29
+ - plan_shots saved a skeleton already at the style's pacing (median shot length, ~15 % non-cut transitions, soft SFX
30
+ cues): it is a starting point, not the written shots. next_step keeps you in this stage until shots_patch has
31
+ rewritten it chapter by chapter. After shots_compile, any stat outside the style's QA bands comes back from next_step
32
+ as a shots_patch step with the numbers: fix those before rendering.
33
+ - Follow the guide's pacing band and transition list; vary kinds (no more than 2 identical kinds in a row unless the
34
+ guide says so); one clear idea per shot.
35
+
36
+ WORKING METHOD (per chapter, never the whole film in one call):
37
+ a) Read the chapter's VO lines and facts; pick the 2–4 kinds that carry the chapter.
38
+ b) shots_patch {episodeId, upsert: [that chapter's shots]} (the first call may pass `header`). Each call is validated
39
+ as a whole; if it fails nothing is written and you get one line per issue. Fix every error (max 3 loops per
40
+ chapter, then show the user the remaining lines). shots_validate {episodeId, shots} checks a draft unsaved.
41
+ c) shots_compile {episodeId} and compare the timing stats with the guide's pacing.
42
+ d) review_shots {episodeId, range: "S010..S020"} returns a contact sheet image: LOOK at it. Check readability,
43
+ overlaps, empty frames, text that is too long, the same layout repeated, and that each frame says its line.
44
+ Fix with shots_patch and review again. Then tell the user, per chapter, 2–4 lines on the visual plan and list
45
+ the shots you are unsure about. Then call next_step.
46
+ ```
@@ -0,0 +1,89 @@
1
+ import {createRequire as __sdrCreateRequire} from 'node:module'; const require = __sdrCreateRequire(import.meta.url);
2
+ import{h as Ae}from"../chunks/chunk-YUE6XWVB.mjs";import{a as x,h as ee,j as te,k as ae,l as S,m as $,n as Se,o as A}from"../chunks/chunk-ONI7QK5B.mjs";var tt=x(A(),1);var D=x(A(),1);var d=(e,t)=>[Math.round(e*255),Math.round(t*255)],K={cutout:{q2:{mean:[1.9,2.8],median:[2.2,2.7],segPerMin:[23,30],longest:6},q8:{saturation:d(.15,.45),value:d(.4,.82)}},gridpaper:{q2:{mean:[3,7],median:[3,7],segPerMin:[8,20],longest:10},q8:{saturation:d(.17,.26),value:d(.72,.82)}},shadowbox:{q2:{mean:[3,6],median:[3,6],segPerMin:[10,20],longest:8},q8:{saturation:d(.3,.42),value:d(.68,.8)}},"evidence-lamp":{q2:{mean:[3,6],median:[3,6],segPerMin:[10,20],longest:8},q8:{saturation:d(.05,.12),value:d(.62,.75)}},"kraft-dossier":{q2:{mean:[2,4.5],median:[2,4.5],segPerMin:[13,30],longest:6},q8:{saturation:d(.25,.45),value:d(.55,.72)}},stickfolk:{q2:{mean:[1.5,2.6],median:[1.6,2.4],segPerMin:[24,40],longest:4},q8:{saturation:d(.35,.65),value:d(.35,.6)}},"gilded-noir":{q2:{mean:[2.5,5],median:[2.5,5],segPerMin:[12,24],longest:6},q8:{saturation:d(.5,.65),value:d(.45,.6)}},"static-rules":{q2:{mean:[1.8,3.2],median:[1.8,3],segPerMin:[18,32],longest:5},q8:{saturation:[0,26],value:d(.14,.24)}},"glyph-story":{q2:{mean:[3,6],median:[3,6],segPerMin:[8,20],longest:8,transitions:[0,0]},q8:{saturation:[6,41],value:[195,242]}},"desk-chronicle":{q2:{mean:[2.6,4.5],median:[2.8,4.5],segPerMin:[13,24],longest:6},q8:{saturation:d(.3,.6),value:d(.42,.62)}},"block-print":{q2:{mean:[1,3.5],median:[.8,3.5],segPerMin:[18,45],longest:5,transitions:[0,0]},q8:{saturation:d(.25,.38),value:d(.22,.45)}},"brush-scroll":{q2:{mean:[3,5.5],median:[3,5],segPerMin:[10,20],longest:8,transitions:[.6,1]},q8:{saturation:d(.09,.15),value:d(.86,.92)}},"period-canvas":{q2:{mean:[3.5,7.5],median:[3.5,7.5],segPerMin:[8,17],longest:9,transitions:[.5,1]},q8:{saturation:d(.22,.42),value:d(.13,.38)}},"diecut-saga":{q2:{mean:[1.8,3.2],median:[2,3],segPerMin:[18,36],longest:4.5,transitions:[0,0]},q8:{saturation:d(.15,.6),value:d(.4,.72)}},"docket-3d":{q2:{mean:[1.1,2.6],median:[1,3],segPerMin:[22,58],longest:9},q8:{saturation:[55,120],value:[60,95]}},"plinth-city":{q2:{mean:[2,4],median:[2,4.5],segPerMin:[15,32],longest:6,transitions:[0,0]},q8:{saturation:[35,95],value:[42,100]}},"exploded-view":{q2:{mean:[3,6.5],median:[3,6],segPerMin:[9,20],longest:12},q8:{saturation:[60,110],value:[12,40]}},"stagelit-stick":{q2:{mean:[2,3.2],median:[2.2,3.5],segPerMin:[18,32],longest:6,transitions:[0,0]},q8:{saturation:[110,170],value:[115,175]}},"terra-relief":{q2:{mean:[6,18],median:[6,18],segPerMin:[3,10],longest:20,transitions:[.5,1]},q8:{saturation:d(.25,.35),value:d(.35,.65)}},frontline:{q2:{mean:[5,12],median:[5,12],segPerMin:[5,12],longest:14,transitions:[0,0]},q8:{saturation:d(.38,.48),value:d(.3,.42)}},"orbit-survey":{q2:{mean:[4,8],median:[4,8],segPerMin:[7,15],longest:10},q8:{saturation:d(.07,.16),value:d(.3,.4)}},fieldbook:{q2:{mean:[4,8],median:[4,8],segPerMin:[7,15],longest:10},q8:{saturation:d(.1,.2),value:d(.84,.92)}},blockfolk:{q2:{mean:[1.2,2],median:[1.2,1.9],segPerMin:[30,50],longest:5.5},q8:{saturation:[115,165],value:[80,150]}}};var Pe="lib-v0.1",it=/\d/,st=2.6,p=D.z.object({kind:D.z.string().optional(),factIds:D.z.array(D.z.string()).min(1).optional()}),X=(e,t)=>t.style??e.style??ee,qe=e=>e.trim().split(/\s+/).filter(Boolean);function Ee(e,t=48){let a=e.replace(/\s+/g," ").replace(/^[\s"'“]+|[\s"'”]+$/g,"").trim();if(a.length<=t)return a.replace(/[.,;:]$/,"");let r=a.split(/(?<=[.!?])\s+/)[0];if(r.length<=t)return r.replace(/[.,;:]$/,"");let i="";for(let s of qe(a)){if((i+" "+s).trim().length>t-1)break;i=(i+" "+s).trim()}return i.replace(/[.,;:]$/,"")+"\u2026"}function Oe(e,t,a){let r=e.toLowerCase();return t===0?"hook":t===a-1?"outro":/\b(rule|never|always|must|don't|do not)\b/.test(r)?"reveal":/\b(map|across|border|coast|country|countries|ocean)\b/.test(r)?"map":/["“].+["”]/.test(e)?"quote":/\b(in \d{4}|years? later|by \d{4}|then|after)\b/.test(r)&&t<a/2?"establish":["character","reveal","establish"][t%3]}function Be(e,t){let a=0;return e.map(r=>{let i=r.t0??a,s=r.t1??i+Math.max(1.2,qe(r.text).length/st);return a=s,{t0:i,t1:s}})}var nt=["pop-drop","swipe","paper-rustle","cloth-swish","slide-whoosh","receipt-tick","type-click","counter-tick"],lt=["pop-pluck","receipt-tick","type-click","counter-tick"],dt=.42,ct=1.15,ht=new Set(["shadowbox","gilded-noir","block-print","evidence-lamp","period-canvas","diecut-saga","static-rules","desk-chronicle","brush-scroll","kraft-dossier","glyph-story","cutout","blockfolk","docket-3d","plinth-city","exploded-view","stagelit-stick"]),pt=e=>e.family==="map"||!!e.planSharpFills||ht.has(e.id),ut=.3,mt=.45,Ie=.15,pe=.45,ue=.65,bt=new Set(["dissolve","dip","crossfade","fade"]),gt="impact-soft",ft=.9;function kt(e,t=[],a={}){if(e.length<2)return[];let r=Array.from({length:e.length-1},(k,F)=>F+1),i=a.continuousWorld?r.filter(k=>!bt.has(e[k-1].transitionOut??"")):r,s=i.length?i:r,l=s.length,u=Math.min(Math.max(1,Math.round(l*ut)),Math.max(1,Math.floor(l*mt))),b=k=>{let F=e[k-1];return F.transitionOut&&Fe.has(F.transitionOut)?!0:(t[k]??[]).some(y=>y.at<=Ie)||(t[k-1]??[]).some(y=>F.dur-y.at<=Ie)},P=s.filter(b).length,H=s.filter(k=>!b(k)),W=H.filter(k=>!e[k-1].transitionOut||e[k-1].transitionOut==="cut"),L=W.length>=u-P?W:H,q=Math.min(L.length,Math.max(0,u-P));return Array.from({length:q},(k,F)=>L[Math.floor((F+.5)*L.length/q)])}var wt=[.1,.2],yt=[2,3.2],Fe=new Set(["whip","flash","zoomThrough","wipe"]);function vt(e){let t=(e.qaBands??K[e.id]??{}).q2??{},{minShot:a,maxShot:r,median:i}=e.pacing,s=Math.max(a,t.median?.[0]??0,t.mean?.[0]??0),l=t.segPerMin?.[0]?60/t.segPerMin[0]:1/0,u=Math.min(r,t.median?.[1]??1/0,t.mean?.[1]??1/0,t.longest??1/0,l);return s>u&&(s=a,u=r),{target:Math.min(u,Math.max(s,i)),lo:s,hi:u}}function Te(e,t,a,r={}){let i=r.fps??30,s=Be(t,a),l=n=>Math.round(n*i)/i,{target:u,lo:b,hi:P}=vt(e),H=e.pacing.minShot,W=[],L=0;t.forEach((n,c)=>{let w=l(Math.max(s[c].t1,L+H));W.push({i:c,t0:L,t1:w}),L=w});let q=[],k=n=>n.t1-n.t0,F=n=>{for(let c=1;c<=Math.ceil(n/Math.max(b,.001));c++)if(n/c<=P+1e-9&&n/c>=b-1e-9)return!0;return!1};for(let n of W){let c=q[q.length-1];c&&(k(c)<Math.max(b,u*.75)&&k(c)+k(n)<=Math.max(P,u*1.25)||!F(k(c)))?(c.is.push(n.i),c.t1=n.t1):q.push({is:[n.i],t0:n.t0,t1:n.t1})}if(q.length>1){let n=q[q.length-1];if(n.t1-n.t0<Math.max(b,u*.5)||!F(k(n))){let c=q[q.length-2];c.is.push(...n.is),c.t1=n.t1,q.pop()}}let y=[],fe=0;for(let n of q){let c=n.t1-n.t0,w=Math.max(1,Math.round(c/u));for(w=Math.max(w,Math.ceil(c/P-1e-9));w>1&&c/w<Math.max(H,b)-1e-9;)w--;let C=t[n.is[0]],j=C.beat??{},he=j.kind??Oe(C.text,n.is[0],t.length),Y=[...new Set(n.is.flatMap(g=>t[g].beat?.factIds??t[g].factIds??[]))],V=Y.length?Y:void 0,M=n.is.map(g=>t[g].text).join(" "),v=j.head??(it.test(C.text)&&!V?.length?void 0:Ee(C.text));for(let g=0;g<w;g++){let T=l(n.t0+c*g/w),z=g===w-1?n.t1:l(n.t0+c*(g+1)/w);fe++;let B={...j,kind:g===0?he:"reveal",...g===0&&v?{head:v}:{},...V?.length?{factIds:V}:{}};g>0&&delete B.head,["list","rule","timeline","compare"].includes(B.kind)&&!B.items?.length&&(B.kind="reveal"),B.kind==="number"&&!B.number&&(B.kind="reveal"),y.push({id:`S${String(fe).padStart(3,"0")}`,startAbs:+T.toFixed(4),dur:+(z-T).toFixed(4),vo:M,kind:"beat",beat:B})}}let ke=e.qaBands??K[e.id]??{},de=ke.q2?.transitions??wt,we=ke.q9?.sfxPerSec??yt,ye=e.pacing.transitions.filter(n=>n!=="cut"),ve=ye.length?ye:["dissolve"],_=y.length;if(_>1){let n=de[1]<=0?0:Math.min(_-1,Math.max(1,Math.round(_*(de[0]+de[1])/2)));for(let c=0;c<n;c++){let w=Math.min(_-2,Math.floor((c+.5)*(_-1)/n));y[w].transitionOut=ve[c%ve.length]}}let ce=L;if(ce>0){let n=y.map(v=>e.compile?.autoSfx?.(v)??[]),c=0;y.forEach((v,g)=>{v.transitionOut&&Fe.has(v.transitionOut)&&c++,c+=n[g].length});let w=kt(y,n,{continuousWorld:e.family==="map"});for(let v of w)(y[v].sfx??=[]).push({id:gt,at:0,vol:ft});let C=pt(e),j=C?lt:nt,he=C?dt:.3,Y=Math.max(0,Math.round(ce*(we[0]+we[1])/2*(C?ct:1))-c-w.length),V=y.slice(1).map(v=>v.startAbs),M=0;for(let v=0;v<Y;v++){let g=(v+.5)*ce/Y;for(;M<_-1&&y[M].startAbs+y[M].dur<=g;)M++;let T=y[M],z=V.find(xe=>g>xe-ue&&g<xe+pe);z!==void 0&&(g=z<=T.startAbs+1e-6?z+pe:z-ue);let B=Math.min(M>0?pe:0,T.dur/2),rt=Math.max(B,Math.min(T.dur-2/i,T.dur-ue)),ot=+Math.min(Math.max(B,g-T.startAbs),M<_-1?rt:Math.max(0,T.dur-2/i)).toFixed(3);(T.sfx??=[]).push({id:j[v%j.length],at:ot,vol:he})}}return{dslVersion:1,videoId:r.videoId??"_plan",fps:30,width:1920,height:1080,libraryVersion:Pe,...r.hypothetical?{hypothetical:!0}:{},style:e.id,shots:y}}function Ne(e,t,a){let r=[],i=new Set(["auto",...e.kinds.map(s=>s.id)]);for(let s of t.shots){if(X(t,s)!==e.id)continue;let l=(u,b,P="error")=>r.push({shot:s.id,path:u,msg:b,level:P});if(s.look){let u=Ae.safeParse(s.look);u.success||l("look",u.error.issues.map(P=>P.message).join("; "));let b=e.lookSchema.safeParse(s.look);if(!b.success)for(let P of b.error.issues)l(["look",...P.path.map(String)].join("."),`${e.id}: ${P.message}`);s.look.kind&&!i.has(s.look.kind)&&l("look.kind",`${e.id} has no layout "${s.look.kind}" (has: ${[...i].join(", ")})`)}if(s.kind==="beat"||s.beat){let{minShot:u,maxShot:b}=e.pacing;s.dur<u-1e-6&&l("dur",`${e.id} shots read best \u2265 ${u} s (this one is ${s.dur} s)`,"warn"),s.dur>b+1e-6&&l("dur",`${e.id} shots read best \u2264 ${b} s (this one is ${s.dur} s): split the line`,"warn")}s.transitionOut&&s.transitionOut!=="cut"&&!e.pacing.transitions.includes(s.transitionOut)&&l("transitionOut",`${e.id} does not use "${s.transitionOut}" (uses: ${e.pacing.transitions.join(", ")})`,"warn"),a?.(s,l)}return r}var me=`## How shots work in every style
3
+ - Write ONE episode: \`style\` at the top, one shot per narration line (split lines longer than the style's max shot).
4
+ - Use \`kind: "beat"\` with a style-neutral \`beat\` \u2014 {kind, head, sub, items, who, where, icons, number, factIds, mood, accent} \u2014
5
+ so the same plan renders in any style. Add \`look\` only for this style's own layouts/details (its kinds menu).
6
+ - beat kinds: ${te.join(", ")}. who: ${ae.join(", ")}. where: ${S.join(", ")}, map:<region>.
7
+ icons: ${$.join(", ")}.
8
+ - R14: every number on screen (head, sub, items, number, any look string) needs factIds whose value/on_screen contains it.
9
+ beat.number.value must equal a cited fact number. No free numbers next to a cited one.
10
+ - Real people: never faces or caricatures; use archetypes (leader, worker\u2026) and silhouettes only.
11
+ - Shots are contiguous (startAbs = previous startAbs + dur). Durations in seconds, 0.15\u20138.
12
+ `;function h(e){let{rules:t,...a}=e,r={...a,planDefaults:e.planDefaults??((i,s,l)=>Te(r,i,s,l)),validate:e.validate??(i=>Ne(r,i,t))};return r}function xt(e){return h({version:"0.0.0",status:"planned",aspects:["16:9"],tier:"max",palette:{},lookSchema:D.z.object({}).loose(),kinds:[],library:{who:"tbd",where:"tbd",icons:"tbd"},promptGuide:`${e.name}: not available yet (renderer ${e.renderer} adapter pending).`,pacing:{minShot:1,maxShot:6,median:3,transitions:["cut"]},licensing:{requires:[],attributions:[],fonts:[]},validate:t=>t.shots.filter(a=>X(t,a)===e.id).slice(0,1).map(a=>({shot:a.id,path:"style",msg:`style ${e.id} is planned (renderer ${e.renderer} adapter not registered yet)`,level:"error"})),...e})}var o=(e,t,a={})=>({id:"S001",startAbs:0,dur:3.5,kind:"beat",beat:e,...t?{look:t}:{},...a});function N(e){let{layouts:t,...a}=e;return h({version:"1.0.0",status:"ready",aspects:["16:9"],tier:"max",lookSchema:p.extend({kind:D.z.enum(["auto",...t.map(r=>r.id)]).optional()}).loose(),kinds:t.map(r=>{let i=r.beats[0],s=i==="number"?{kind:i,head:"The year it peaked",number:{value:1923},factIds:["F1"]}:["list","rule","timeline","compare"].includes(i)?{kind:i,head:"Germany, 1923",items:["Prices rose","Savings vanished"],factIds:["F1"]}:{kind:i,head:"Germany, 1923",factIds:["F1"]};return{...r,example:o(s,{kind:r.id})}}),library:{who:"archetypes drawn by the backend (see the spec)",where:"backend sets / map data (see the spec)",icons:"backend icon set"},promptGuide:`- Rendered by ${e.renderer} (${e.render?.cli??""}). Write beat shots; the backend maps beat kinds to its layouts. Read docs/styles/${e.id}.md for the measured grammar.
13
+ - Keep to the pacing band; numbers only with factIds (geodata-derived scale bars / measured distances are computed facts with source "geodata").`,licensing:{requires:e.renderer==="engine-geo"?["geodata"]:[],attributions:e.renderer==="engine-geo"?["Made with Natural Earth"]:[],fonts:["Archivo Black (OFL)","Caveat (OFL)"]},...a})}var f=x(A(),1);var Me=h({id:"cutout",name:"Ledger Cartoon",version:"1.0.0",family:"puppet",renderer:"resvg-2d",status:"ready",aliases:["ledger-cartoon","paper-cutout","puppet-explainer"],aspects:["16:9"],tier:"standard",pitch:"Round-headed paper puppets acting in code-drawn 2.5D sets, with a real camera, charts and type-on cards.",palette:{paper:"#efe6d2",ink:"#141414",navy:"#1c2f52",red:"#d4302b",mustard:"#e0a43a",teal:"#2d789d"},lookSchema:p.extend({kind:f.z.enum(["auto"]).optional(),title:f.z.enum(["center","thumb"]).optional(),punch:f.z.object({t:f.z.number(),amount:f.z.number().optional()}).strict().optional(),rack:f.z.object({t:f.z.number(),focus:f.z.number()}).strict().optional(),gradeKeys:f.z.array(f.z.object({t:f.z.number(),grade:f.z.string()}).strict()).optional(),chip:f.z.object({text:f.z.string(),at:f.z.enum(["bl","tl"]),t0:f.z.number().optional(),factIds:f.z.array(f.z.string()).optional()}).strict().optional()}).strict(),kinds:[{id:"auto",describe:"beat shot: hook/outro \u2192 title card, number \u2192 counter chart, list/rule \u2192 type-on card, others \u2192 cast on a paper set",beats:["hook","number","list","rule","character","outro"],example:{id:"S001",startAbs:0,dur:3,kind:"beat",vo:"What if your pay lost half its value by Friday?",beat:{kind:"hook",head:"Half your pay, gone by Friday",who:["worker"],mood:"tense"}}},{id:"world",describe:"native DSL world shot: cast acting in a set with camera presets/frame/keys (full DSL v1)",beats:["character","establish","reveal"],example:{id:"S001",startAbs:0,dur:3,kind:"world",set:{ref:"set/office@1"},camera:{preset:"wide"},actors:[{id:"denise",cast:"denise",at:{mark:"desk"},pose:"rest",cycle:{kind:"talk"}}]}},{id:"card",describe:"native DSL type-on text card",beats:["quote","rule"],example:{id:"S001",startAbs:0,dur:3,kind:"card",card:{text:"Then the bill arrived."}}}],library:{who:"denise (narrator), ceo, investor, unclesam (leader), bolt (robot), extra:* crowd presets \u2014 rigged puppets with poses and acting cycles",where:"set/office@1, set/ceoOffice@1, set/newsDesk@1, set/tradingFloor@1, set/void@1 (paper void, any colour)",icons:"library props (prop/coin@1, sign:, stamp:, screen:, ticker:, receipt:) and charts (line, bar, bigNumber, counter, pie, barRace)",extras:["Cloner crowds","PathMover","grades golden/night/cold/alarm","transitions whip/flash/zoomThrough/dip/wipe"]},promptGuide:`- Native shots use the full DSL v1 (see the shot-DSL writer prompt): world shots most of the time, a card every ~10 s,
14
+ gfx charts for numbers, title at the start/end. Cut on every line; 1.5\u20134 s shots; whip/flash on beat changes.
15
+ - beat shots are the portable fallback (another style can re-render the plan); prefer native world shots for the channel.
16
+ - Mouths move only on the speaking actor's own words (speaks.fromAbs/toAbs). One saturated accent per frame.`,pacing:{minShot:.6,maxShot:4.5,median:2.45,transitions:["cut","whip","flash","zoomThrough","dip","wipe","whipV","burst","iris","panelWipe"]},licensing:{requires:[],attributions:[],fonts:["Archivo Black (OFL)","Caveat (OFL)"]}});var m=x(A(),1);var St=["auto","ladder","ladderAdvance","gap","tally","iconBoard","plot"],Le=h({id:"gridpaper",aliases:["chalk-board"],name:"Gridpaper",version:"1.0.0",family:"diagram",renderer:"resvg-2d",status:"ready",aspects:["16:9"],tier:"standard",pitch:"Hand-labelled graph-paper ladder: a small figure climbs pen-drawn steps while insignia patches, red stamps and exact blue labels pop in.",palette:{paper:"#ddd3b6",stain:"#cbbf9c",grid:"#b8ae90",step:"#c9c2a2",pen:"#2f3320",bar:"#3a4328",barText:"#e9bd45",inkBlue:"#3550a8",inkRed:"#a83a36",navy:"#283456",gold:"#d4a63a",grey:"#8e8c8b"},lookSchema:p.extend({kind:m.z.enum(St).optional(),steps:m.z.array(m.z.object({title:m.z.string().min(1).max(40),code:m.z.string().min(1).max(28).optional()}).strict()).min(1).max(16).optional(),current:m.z.number().int().min(1).max(99).optional(),of:m.z.number().int().min(1).max(99).optional(),advance:m.z.enum(["pan","cut"]).optional(),pops:m.z.array(m.z.object({icon:m.z.string().min(1).max(24),at:m.z.number().min(0).max(8).optional(),near:m.z.enum(["left","right","above","below"]).optional(),label:m.z.string().min(1).max(24).optional()}).strict()).max(4).optional(),stamp:m.z.object({text:m.z.string().min(1).max(18),at:m.z.number().min(0).max(8).optional()}).strict().optional(),date:m.z.object({month:m.z.string().min(1).max(12),day:m.z.string().min(1).max(2).optional(),year:m.z.string().min(1).max(6),at:m.z.number().min(0).max(8).optional()}).strict().optional(),mapSeed:m.z.number().int().min(0).max(99999).optional()}).strict(),kinds:[{id:"ladder",describe:"the signature shot: the pictogram hops up onto the current khaki step (the view re-centres one step), head + sub are handwritten on the step face, beat.where is sketched in blue pen on the lower floor, insignia patches pop, beat.accent lands as a red rubber stamp",beats:["hook","establish","character","reveal","outro"],example:o({kind:"establish",head:"Germany, 1923",sub:"A whole country running on paper money",where:"city",icons:["factory","bank"],factIds:["F1"]},{kind:"ladder",date:{month:"Nov",year:"1923"},factIds:["F4"]},{dur:3.8})},{id:"ladderAdvance",describe:"items become a whole staircase; the figure climbs it step by step and each step label is written as it lands (timelines, ranks, stages, 3+ way comparisons)",beats:["timeline","compare","list"],example:o({kind:"timeline",head:"How it unravelled",items:["War debts","Printing presses","Panic buying","Reform"],who:["worker"],mood:"triumph"},{kind:"ladderAdvance"},{dur:4.4})},{id:"gap",describe:"two steps far apart (item 1 low-left, item 2 high-right) with dashed skipped steps and a red break mark; a dashed arrow is drawn and the figure takes one big leap",beats:["compare"],example:o({kind:"compare",head:"One dollar buys",items:["1914: $1 = 4.2 marks","Nov 1923: $1 = 4.2 trillion marks"],icons:["coin"],factIds:["F3","F4"],mood:"dark"},{kind:"gap"},{dur:4.4})},{id:"tally",describe:"a hand-drawn column grows up a ruler (ticks, no axis numbers) carrying the figure; the number rolls in big red handwriting and lands exactly on the fact",beats:["number","reveal"],example:o({kind:"number",head:"Prices doubled every",number:{value:3.7,dp:1,suffix:" days"},icons:["chart-up"],factIds:["F2"],mood:"tense"},{kind:"tally"},{dur:3.8})},{id:"iconBoard",describe:"a ruled index card in a bulldog clip: head stamped in red, items handwritten in blue with pen boxes ticked in red (rule) or bullets (list); quote = big blue handwriting in quotation marks with \u201C\u2014 sub\u201D; the figure points from its own step",beats:["rule","list","quote"],example:o({kind:"rule",head:"New rules for money",items:["Spend it the day you earn it","Never keep cash overnight","Buy things, not paper"],who:["family"],icons:["warning"],mood:"dark"},{kind:"iconBoard"},{dur:4.4})},{id:"plot",describe:"a survey sheet: an invented landmass is drawn on in pen and hatched, a red X marks the target, a dashed route is walked by the tiny figure, items become blue pins; never real borders",beats:["map","establish"],example:o({kind:"map",head:"Across the border",sub:"Money moved faster than people",items:["Old capital","New port"],where:"map:europe",who:["worker"]},{kind:"plot",mapSeed:1923})}],library:{who:"pictogram climbers (~3.5 heads, round head, block torso, stick limbs, mitten hands, dot eyes, 4 px pen outline): narrator = navy uniform + peaked cap, worker = olive overalls + flat cap, leader = tall gold-banded cap + epaulettes, rival = red uniform, merchant = bowler + apron, kid = small with beanie, detective = fedora + long coat, stranger = dark hood, family = adult + kid pair, crowd = grey; extra who become labelled mini-figures beside the hero; unknown ids \u2192 grey pictogram",where:"blue-pen line sketches on the graph paper (drawn on left\u2192right): city skyline, street shopfronts + lamp, desk + lamp + mug, office window + cabinet + clock, village houses + steeple, countryside hills + fence + barn, sea + sailboat, sky clouds + balloon, bank columns, home house + fence, night-road converging road + moon, map \u2192 globe; map beats use the plot layout (invented landmass); unknown ids \u2192 city",icons:"kit icons as insignia patches (navy, stitched gold border), outlined grey/gold pen icons and khaki tiles, popping on 4 frames (0.6 \u2192 1.05 \u2192 1)",extras:["olive header bar: STEP n / N (arabic UI ordinal) + progress pips","red rubber stamps with broken ink (mask)","calendar tile (look.date)","pennant on outro steps","ruler axis (ticks only)","ruled index card + bulldog clip","graph-paper sheet with tea stains, coffee ring, edge letters"]},promptGuide:`- One shot = one step: 3\u20136 s, hard cuts with the SAME framing (the header counter ticks up). Every ladder shot opens with the figure's hop (squash 4 f, air 10 f, land 3 f) and a 12-frame diagonal re-centre pan, so motion lands in the first 0.5 s; then the step face is written, ~1 pop per 1\u20131.5 s (patch, stamp, date tile). Held content runs on twos.
17
+ - The header shows "STEP n / N" (arabic) for the shot's position (or look.current / look.of) plus progress pips, and each step face carries a "STEP n" pill; the style draws these UI ordinals itself (exempt from R14). Never put other numbers \u2014 axis numbers, codes with digits, amounts \u2014 anywhere unless they come from beat text with factIds.
18
+ - ladder (hook / establish / character / reveal / outro): beat.head is the step title (\u2264 40 chars, handwritten), beat.sub the blue code line (\u2264 50 chars). Give beat.where to get the blue sketch; beat.accent becomes the red stamp (one word of head). outro adds a pennant. look.steps (titles for neighbouring steps) + look.current turn it into a real ranked ladder.
19
+ - ladderAdvance (timeline / 3+ compare / long lists): 3\u20135 items \u2264 28 chars; give ~0.8 s per item.
20
+ - gap (compare with exactly 2 items): low vs high; keep each item \u2264 34 chars.
21
+ - tally (number, or reveal with a number): beat.number (+ factIds) rolls ~1.1 s; head is the label; give \u2265 3 s.
22
+ - iconBoard (rule / list / quote): \u2264 5 items, \u2264 36 chars; head becomes the stamp (keep it \u2264 26 chars).
23
+ - plot (map): invented landmass only; \u2264 4 items as pins; reuse look.mapSeed for the same map.
24
+ - Archetypes only; real people are never drawn (names may appear as labels).`,pacing:{minShot:2.5,maxShot:6.5,median:3.8,transitions:["cut"]},compile:{autoSfx:e=>{let t=e.beat;if(!t)return[];let a=[],r=e.look?.kind??(t.number?"tally":["rule","list","quote"].includes(t.kind)?"iconBoard":t.kind==="map"?"plot":"ladder");return r==="ladder"&&a.push({id:"pop",at:.12,vol:.3},{id:"pencil-scratch",at:.6,vol:.3}),r==="tally"&&a.push({id:"counter-tick",at:.3,vol:.35}),(r==="iconBoard"||t.accent)&&a.push({id:"stamp-thud",at:r==="iconBoard"?.2:1.6,vol:.4}),t.icons?.length&&a.push({id:"pop",at:.9,vol:.3}),a}},rules:(e,t)=>{let a=e.beat;a&&(a.head&&a.head.length>44&&!["rule","list"].includes(a.kind)&&t("beat.head","gridpaper writes the head by hand on a step face: keep it \u2264 44 chars","warn"),a.items&&a.items.length>5&&["compare","timeline"].includes(a.kind)&&t("beat.items","gridpaper climbs at most 6 steps; keep compare/timeline items \u2264 5","warn"),a.items?.some(r=>r.length>40)&&t("beat.items","gridpaper step/card labels read best \u2264 40 chars","warn"))},licensing:{requires:[],attributions:[],fonts:["Archivo Black (OFL)","Caveat (OFL)"],notes:"All art is code-drawn: generic pictograms (no real insignia or uniforms reproduced), invented landmasses (no geodata), stamp/label text only from the beat."}});var E=x(A(),1);var At=["auto","diorama","tagReveal","notes","board","mapCard"],Ce=h({id:"shadowbox",aliases:["folded-paper"],name:"Shadowbox",version:"1.0.0",family:"cut-paper",renderer:"resvg-2d",status:"ready",aspects:["16:9"],tier:"standard",pitch:"Soft craft-paper dioramas in a shallow box: felt and card cut-outs with gentle drop shadows, a typed label strip, taped paper tags and page-lift transitions.",palette:{sky:"#97c2df",mint:"#a5d2ba",ochre:"#d3a24e",kraft:"#b98a62",night:"#18233f",grass:"#6aa572",coral:"#e2754f",sun:"#e8be4c",teal:"#3a9a8c",rose:"#e9a6bf",cobalt:"#4767b3",lilac:"#9b80d6",tag:"#f6d65c",white:"#f5f1e6",ink:"#2a2420"},lookSchema:p.extend({kind:E.z.enum(At).optional(),set:E.z.enum([...S,"plain","plain-in"]).optional(),notes:E.z.object({count:E.z.number().int().min(4).max(40).optional(),perSecond:E.z.number().min(4).max(30).optional(),cols:E.z.number().int().min(4).max(10).optional()}).strict().optional(),tags:E.z.array(E.z.object({text:E.z.string().min(1).max(40),at:E.z.number().min(0).max(8).optional()}).strict()).max(3).optional(),mascot:E.z.boolean().optional(),mapSeed:E.z.number().int().min(0).max(99999).optional()}).strict(),kinds:[{id:"diorama",describe:"a card diorama of beat.where (city, street, desk, office, village, countryside, sea, sky, bank, home, night-road) with felt characters popping in, felt props from beat.icons on the ground, the head typing itself onto a white strip and beat.sub on a yellow taped tag under the hero",beats:["hook","establish","character","reveal","outro"],example:o({kind:"character",head:"Paid twice a day",sub:"Spend it before lunch",who:["worker"],where:"street",icons:["coin","bread"],mood:"funny"},{kind:"diorama"},{dur:3.8})},{id:"tagReveal",describe:"one big felt subject (beat.icons[0], else the hero) bobbing on a plain sky card; the key number (rolling, lands on the fact) or line pops onto a large yellow tag below it; quote = the head typed in quotation marks with the attribution on the tag",beats:["reveal","quote","hook"],example:o({kind:"reveal",head:"One loaf of bread",number:{value:200,suffix:" billion marks"},icons:["bread"],factIds:["F5"],mood:"funny"},{kind:"tagReveal"},{dur:3.4})},{id:"notes",describe:"cork board: sticky notes pop into a grid (teal / rose / cobalt / lilac, ~15 per second) while the number rolls on a big yellow tag and lands on the fact; the label types onto the strip; a felt narrator peeks in",beats:["number"],example:o({kind:"number",head:"Prices doubled every",number:{value:3.7,dp:1,suffix:" days"},icons:["chart-up"],factIds:["F2"],mood:"tense"},{kind:"notes",notes:{count:24}},{dur:3.8})},{id:"board",describe:"cork board: rule / list items pop as alternating yellow and white taped tags with felt check badges or bullets; compare = 2\u20133 taped cards with a felt arrow; timeline = tags hanging from a twine line",beats:["rule","list","compare","timeline"],example:o({kind:"rule",head:"New rules for money",items:["Spend it the day you earn it","Never keep cash overnight","Buy things, not paper"],who:["family"],icons:["warning"],mood:"dark"},{kind:"board"},{dur:4.4})},{id:"mapCard",describe:"a pale-blue sea card with an invented felt island (layered greens), coloured pins popping with taped name tags, a paper boat crossing; never real borders",beats:["map"],example:o({kind:"map",head:"Across the border",sub:"Money moved faster than people",items:["Old capital","New port","Mines"],where:"map:europe",who:["worker"]},{kind:"mapCard",mapSeed:1923})}],library:{who:"round friendly felt cut-outs (bean body, round head, dot eyes, small smile, rosy cheeks, mitten arms; blink swaps and mood mouths): narrator = teal cardigan + round glasses, kid = small with pompom beanie + freckles, leader = cobalt + top hat + gold sash, rival = lilac + bowler + moustache, worker = coral + overalls + ochre cap, merchant = apron + moustache, detective = ochre trench + hunting cap, stranger = dark hood with glowing eyes, family = mother with bun + kid, crowd = three pastel felt blobs; unknown ids \u2192 pastel extra",where:"card dioramas: city (layered tower cards with lit windows, felt sun, drifting clouds, grass), street (shopfronts with scalloped awnings, lamp, pavement), desk (mint striped wallpaper, wood desk, mug with curling steam, plant, books, framed picture), office (window, filing cabinet, wall clock with dots, monitor), village (hills, cottages, steeple), countryside (layered hills, barn, fence, sheep), sea (bobbing wave strips, sailboat), sky (clouds, sun, hot-air balloon), bank (columned facade on ochre), home (dotted wallpaper, sofa, lamp), night-road (felt stars, moon, road, glowing lamps), map (sea card + felt island); unknown ids \u2192 city",icons:"kit icons cut from coloured felt with darker cut details and felt texture, soft shadows, toy pop-in (0.3 \u2192 1.08 \u2192 1)",extras:["white typed label strip (Archivo Black)","yellow / white torn tags with translucent tape (Caveat)","sticky-note counter grid","sleeping hedgehog mascot","kraft box lip with inner shadow","page-lift and push-blur transitions"]},promptGuide:`- Gentle and toy-like: 3\u20135 s shots. Every shot pops its pieces in during the first 0.5 s (strip, hero, props) and then holds with small bobs, blinks and drifting clouds on twos.
25
+ - Transitions: use \`transitionOut: "zoomThrough"\` for a PAGE-LIFT (the scene peels up and away, the next one drops in) and \`"whip"\` for a PUSH-BLUR (9-frame slide with motion blur). Use one of them on at least half the scene changes; hard cuts otherwise.
26
+ - diorama (hook / establish / character / reveal / outro): give beat.where (default by kind); head \u2264 40 chars types onto the white strip; sub \u2264 48 chars goes on the yellow tag under the hero; who[0] is the hero (mood drives the reaction: funny bounces, triumph cheers, tense shivers, dark droops); \u2264 3 icons become felt props.
27
+ - tagReveal (reveal with a number, quote): the number tag is the payoff \u2014 beat.number + factIds, \u2265 3 s. For quotes: head = the quote (no quotation marks needed), sub = who said it (archetype or description, never a real person's face).
28
+ - notes (number): the sticky notes are decoration (never a count claim); the number on the tag is the fact.
29
+ - board: rule / list \u2264 6 items \u2264 36 chars; compare 2\u20133 items \u2264 30 chars; timeline 3\u20135 items \u2264 24 chars.
30
+ - mapCard: invented island only; \u2264 4 items as pins.
31
+ - Archetypes only; never real people.`,pacing:{minShot:2.4,maxShot:6,median:3.8,transitions:["cut","zoomThrough","whip"]},compile:{autoSfx:e=>{let t=e.beat;if(!t)return[];let a=[{id:"pop",at:.2,vol:.3}];return t.head&&a.push({id:"type-click",at:.25,vol:.25}),t.number&&a.push({id:"counter-tick",at:.4,vol:.3}),e.transitionOut==="zoomThrough"&&a.push({id:"paper-rustle",at:Math.max(0,e.dur-.55),vol:.35}),e.transitionOut==="whip"&&a.push({id:"whoosh",at:Math.max(0,e.dur-.12),vol:.35}),a}},rules:(e,t)=>{let a=e.beat;a&&(a.head&&a.head.length>44&&t("beat.head","shadowbox types the head onto one label strip: keep it \u2264 44 chars","warn"),a.kind==="compare"&&a.items&&a.items.length>3&&t("beat.items","shadowbox compare shows at most 3 cards (extra items are dropped)","warn"),a.items?.some(r=>r.length>40)&&t("beat.items","shadowbox tags read best \u2264 40 chars","warn"))},licensing:{requires:[],attributions:[],fonts:["Archivo Black (OFL)","Caveat (OFL)"],notes:"All art is code-drawn: our own felt characters and hedgehog mascot, no branded stationery, invented map islands (no geodata). Textures are seeded SVG patterns."}});var Re=x(A(),1);var _e=h({id:"evidence-lamp",name:"Evidence Lamp",version:"1.0.0",family:"graphic-flat",renderer:"resvg-2d",status:"ready",aspects:["16:9"],tier:"max",pitch:"A forensic flat-lay: memo cards, log cards, contact sheets and mono prints on a lamp-lit table; the camera glides between exhibits and a lens enlarges the detail.",palette:{table:"#d3d2ca",tableShade:"#b4b2a8",card:"#e6ddc3",cardKraft:"#d2c29b",index:"#f1eee6",filmBlack:"#1a1918",silver:"#8d8a83",ink:"#2b2a27",rule:"#b8473b",mark:"#cf4b32",markWarm:"#db7a3e",dust:"#55524c"},lookSchema:p.extend({kind:Re.z.enum(["auto","memo","print","ledger","pair","contact","map"]).optional()}).strict(),kinds:[{id:"memo",describe:"typed memo card (hook / outro) or handwritten quote card (quote): head types on, the accent word gets a red marker loop, sub follows; a mono print of who lies beside it and the camera glides to it (annotation B = the archetype); outro stamps a red check",beats:["hook","quote","outro"],example:o({kind:"hook",head:"Half your pay, gone by Friday",accent:"gone",who:["worker"],icons:["coin","clock"],mood:"tense"},{kind:"memo"})},{id:"print",describe:"white-bordered sepia-grey photograph of beat.where with archetype silhouettes; annotation A types the head (case code = the place), the sub is handwritten on an index card, then the lens slides onto the hero in negative and flips to positive",beats:["establish","character","reveal"],example:o({kind:"establish",head:"Germany, 1923",sub:"A whole country running on paper money",where:"city",icons:["factory","bank"],factIds:["F1"]},{kind:"print"})},{id:"ledger",describe:"cream log card: the head is the typed title; number \u2192 the fact rolls and lands between double rules, gets a red highlight and the lens enlarges it; list / rule \u2192 rows a. b. c. type in and get red ticks (rule highlights the last row)",beats:["number","list","rule","reveal"],example:o({kind:"number",head:"Prices doubled every",number:{value:3.7,dp:1,suffix:" days"},icons:["chart-up"],factIds:["F2"],mood:"tense"},{kind:"ledger"})},{id:"pair",describe:"compare: exhibit card A types item 1, the camera glides (fast, motion-blurred) to card B for item 2, a red thread links A\u2192B, then the camera pulls out to show both; head on a taped label strip",beats:["compare"],example:o({kind:"compare",head:"One dollar buys",items:["1914: $1 = 4.2 marks","Nov 1923: $1 = 4.2 trillion marks"],icons:["coin"],factIds:["F3","F4"],mood:"dark"},{kind:"pair"},{dur:4.4})},{id:"contact",describe:"timeline: a contact sheet of eight frames (our own vignettes: place, archetypes, icons); the red selection box hops one frame per item and the annotation types that item; head on a label strip and along the film edge",beats:["timeline","establish"],example:o({kind:"timeline",head:"How the mark fell",items:["1914: $1 = 4.2 marks","Nov 1923: $1 = 4.2 trillion marks"],icons:["coin","bank"],factIds:["F3","F4"]},{kind:"contact"},{dur:4})},{id:"map",describe:"folded paper map (invented coastline, the map:<region> name stencilled on it); red pins drop one by one, a red thread joins them, items become typed tags beside the pins, the lens enlarges the first pin; head on a label strip",beats:["map","establish"],example:o({kind:"map",head:"Where the money went",items:["The mint","The bakery"],where:"map:europe",icons:["bank"]},{kind:"map"})}],library:{who:"no puppets: archetypes appear as dark silhouettes inside sepia-grey prints (our own drawings): narrator = bearded figure with a book, kid = small with a cap, leader = peaked cap + long coat + sash, rival = top hat + cane, worker = flat cap + tool, merchant = bowler + bag, detective = fedora + magnifier, stranger = fedora + long coat + case, family = bonnet + skirt with a kid, crowd = three figures; unknown ids \u2192 a bare-headed citizen",where:"every BEAT_WHERE place is a small photograph vignette (city skyline with windows, street of shopfronts with awnings, desk still life, office with blinds and a wall clock, village with steeple, countryside farm and fence, sea with a sailing ship, sky with a balloon, columned bank, home interior, night road with lamps, map), drawn in greys with an 8 % sepia tint and film grain; map / map:<region> \u2192 the folded paper map exhibit",icons:"kit icons printed in ink on kraft evidence tags (reinforced hole + string) that drop onto the table, as contact-sheet frames, or as a red rubber stamp (outro)",extras:["lamp-lit table plane with grain, dust specks and hair fibres","contact shadows","memo / index cards (red top rule, greeked header lines)","cream log card with typed rows and ticks","mono prints","contact sheet with hopping selection box","folded paper map with pins and red thread","annotation system (letter index + label + case code + leader)","magnifier lens (2\u20132.5\xD7, negative toggle, chromatic fringe)","filler clutter: film strip, ruler, loupe ring, paper clip, envelope, receipt, greeked cards"]},promptGuide:`- Quiet, forensic, archival. One exhibit per narration line: ~3 s shots (2\u20134.5 s), hard cuts between topics; inside a shot the camera glides between exhibits (no extra cuts needed). A whip suits "meanwhile".
32
+ - Text lives ON the documents and comes only from the beat: head (\u2264 48 chars reads best), sub (\u2264 70), items (\u2264 6, \u2264 40 chars). Never ask for decorative numbers \u2014 dates, case numbers and edge codes are not drawn (R14); index tokens are letters.
33
+ - hook / outro \u2192 memo (typed card; set beat.accent to the word that gets the red marker loop; give who so the camera glides to a print). quote \u2192 memo as a handwritten card, sub = attribution.
34
+ - establish / character / reveal \u2192 print: give beat.where (the photograph) and who (silhouettes); head becomes annotation A, sub the handwritten note; the lens lands on the hero after ~40 % of the shot, so give it \u2265 3 s.
35
+ - number (or reveal with a number) \u2192 ledger: value + factIds required; the number rolls ~1.2 s, then the lens enlarges it \u2014 \u2265 3 s. list / rule \u2192 ledger rows (\u2264 5 items; ~0.7 s per row).
36
+ - compare \u2192 pair (exactly 2 items; \u2265 4 s: A types, glide, B types, thread, pull-out). timeline \u2192 contact (3\u20136 short items, ~0.6 s each). map \u2192 map (items \u2264 4 become pin tags; regions are invented).
37
+ - No real logos, letterheads, signatures or photos of real people; all documents are our own illustrative mock-ups.`,pacing:{minShot:2,maxShot:5,median:3.2,transitions:["cut","whip","dip"]},compile:{autoSfx:e=>{let t=e.beat;if(!t)return[];let r=[[...e.id].reduce((i,s)=>i+s.charCodeAt(0),0)%5<2?{id:"impact-soft",at:0,vol:.9}:{id:"paper-slide",at:.05,vol:.3},{id:"type-click",at:.35,vol:.3}];return t.number?r.push({id:"counter-tick",at:.6,vol:.3},{id:"glass-ping",at:Math.min(e.dur-.3,2.1),vol:.35}):t.kind==="compare"?r.push({id:"whoosh",at:Math.max(1.3,e.dur*.4),vol:.35}):t.kind==="map"?r.push({id:"pop",at:.55,vol:.3}):["establish","character","reveal"].includes(t.kind)&&r.push({id:"glass-ping",at:Math.max(1.3,e.dur*.42)+.25,vol:.3}),r}},rules:(e,t)=>{let a=e.beat;a&&(a.head&&a.head.length>56&&t("beat.head","evidence-lamp types the head onto a card: keep beat.head \u2264 56 chars","warn"),a.kind==="compare"&&a.items&&a.items.length!==2&&t("beat.items","evidence-lamp pair shows exactly 2 exhibit cards (extra items are dropped)","warn"),a.items&&a.items.length>6&&t("beat.items","evidence-lamp ledgers / contact sheets hold \u2264 6 items","warn"))},licensing:{requires:[],attributions:[],fonts:["IBM Plex Mono (OFL)","IBM Plex Serif (OFL)","Caveat (OFL)"],notes:"All documents, prints and maps are code-drawn mock-ups of our own (no real logos, letterheads, records or photographs); maps are invented shapes, not geodata."}});var re=x(A(),1);var De=h({id:"kraft-dossier",name:"Kraft Dossier",version:"1.0.0",family:"cut-paper",renderer:"resvg-2d",status:"ready",aspects:["16:9"],tier:"max",pitch:"Stop-motion paper documentary at 12 fps: halftone cut-out puppets on brass split pins, torn red labels, typed slips, clippings and paper maps on coloured sheets.",palette:{sheetCream:"#e3ddcb",sheetRed:"#ad2c22",sheetNavy:"#1f3b5c",sheetOchre:"#c48f3a",newsprint:"#ebe4d2",kraft:"#9c8467",kraftDark:"#6f5c47",landGrey:"#a9a090",ink:"#1e1c18",tape:"#caa877",brass:"#c9a24a"},lookSchema:p.extend({kind:re.z.enum(["auto","portrait","postcard","clipping","counter","slips","map"]).optional(),sheet:re.z.enum(["cream","red","navy","ochre"]).optional(),exit:re.z.enum(["none","tear"]).optional()}).strict(),kinds:[{id:"portrait",describe:'halftone cut-out bust of who[0] on split pins (left third; arm gesture by mood, jaw flaps while it "talks"), the head on a torn red label (quote \u2192 newsprint speech slip with a tail), the sub on a typed slip; extra who = smaller busts; icons = paper cut-outs',beats:["hook","character","quote","outro","reveal"],example:o({kind:"character",head:"Paid twice a day",sub:"Spend it before lunch",who:["worker"],where:"street",icons:["coin","bread"],mood:"funny"},{kind:"portrait"})},{id:"postcard",describe:"halftone postcard of beat.where (deckled border, taped corners) sliding in, head on a torn label, sub on a typed slip; who (optional) as small busts",beats:["establish","reveal"],example:o({kind:"establish",head:"Germany, 1923",sub:"A whole country running on paper money",where:"city",icons:["factory","bank"],factIds:["F1"]},{kind:"postcard",sheet:"navy"})},{id:"clipping",describe:"newspaper clipping with a fictional masthead, the head as a condensed headline, the sub as the deck, greyed columns and a halftone photo of beat.where; with beat.number a torn counter card is pinned beside it and rolls to the fact",beats:["reveal","hook","outro","establish"],example:o({kind:"reveal",head:"One loaf of bread",number:{value:200,suffix:" billion marks"},icons:["bread"],where:"street",factIds:["F5"],mood:"funny"},{kind:"clipping",sheet:"red"})},{id:"counter",describe:"number: the head on a torn label, the fact on a big torn card rolling on 12 fps steps and landing exactly; number.label on a typed slip; who (optional) points from the left",beats:["number"],example:o({kind:"number",head:"Prices doubled every",number:{value:3.7,dp:1,suffix:" days"},icons:["chart-up"],factIds:["F2"],mood:"tense"},{kind:"counter"})},{id:"slips",describe:"list / rule: typed slips slide in one per item (rule slips get a red edge), who as busts on the left \xB7 compare: two torn cards with a red paper arrow between \xB7 timeline: slips taped along a pinned string",beats:["list","rule","compare","timeline"],example:o({kind:"rule",head:"New rules for money",items:["Spend it the day you earn it","Never keep cash overnight","Buy things, not paper"],who:["family"],icons:["warning"],mood:"dark"},{kind:"slips",sheet:"ochre"},{dur:4.4})},{id:"map",describe:"paper map: invented countries cut from kraft / grey / cream papers with white cut edges on a navy sea inside a white margin + keyline; the central piece lifts in red (shadow grows over 3 steps), the head drops on a typed place slip, items drop on other pieces; map:<region> on a torn label",beats:["map","establish"],example:o({kind:"map",head:"The Ruhr",sub:"Factories stood still",items:["Mines","Mills"],where:"map:europe",icons:["factory"]},{kind:"map"})}],library:{who:"halftone cut-out BUSTS (our own drawings, 45\xB0 dot screen in four tones, white cut border, tape strip, brass split pins at shoulder / elbow / jaw): narrator = bald, spectacles, white beard \xB7 kid = newsboy cap, freckles, scarf (small) \xB7 leader = peaked cap with brass badge, epaulettes, red sash, moustache \xB7 rival = top hat, monocle, moustache \xB7 worker = flat cap, scarf \xB7 merchant = bowler, apron, moustache \xB7 detective = fedora, collar up, tie \xB7 stranger = dark fedora, collar up \xB7 family = bonnet with a red bow, shawl (+ kid) \xB7 crowd = three busts; unknown ids \u2192 bare-headed citizen in a tie. Arm acts: point, wave, present, worry, idle; jaw flaps on 12 fps steps while talking",where:"every BEAT_WHERE place as a halftone postcard / clipping photo (city, street, desk, office, village, countryside, sea, sky, bank, home, night road, map); map / map:<region> \u2192 the cut-paper map layout (invented shapes, no geodata)",icons:"kit icons cut from coloured paper (red on cream, cream on red, red on navy, navy on ochre) with a white cut border and a bit of tape",extras:["12 fps step clock with per-hold jitter","coloured sheets with fibre grain, specks and lamp falloff","torn red labels","typed slips (typewriter wobble)","newsprint speech slips","clippings with fictional mastheads","torn counter cards","halftone postcards","paper arrow","pinned string","cut-paper map with lifting piece","sheet slide-over entry and tear-away exit"]},promptGuide:`- Brisk and tactile: 1.2\u20132.5 s per paper action, shots 1.5\u20134 s (median \u2248 2.5 s); one paper object or action per narration clause. Hard cuts \u2014 every new sheet slides over the last one; set look.exit "tear" on the last shot of a topic. A wipe (red bar) also suits.
38
+ - Change sheet colour with the topic (defaults by beat kind; look.sheet overrides). Never more than 3 objects per sheet \u2014 keep it bare.
39
+ - Text is paper: head = torn label / headline (\u2264 36 chars, caps-friendly), sub = typed slip (\u2264 60 chars), items \u2264 5 \xD7 \u2264 36 chars. No dates or issue numbers unless they are cited facts (R14); mastheads are fictional and carry no numbers.
40
+ - hook / character / quote / outro \u2192 portrait: give who (archetypes only; real people never become puppets). Mood picks the arm act (funny/triumph \u2192 wave, tense/dark \u2192 worry/point); quotes "talk" (jaw flaps) inside a speech slip.
41
+ - establish \u2192 postcard of beat.where (or map with where "map:<region>"). reveal \u2192 clipping (headline + deck; with beat.number a counter card rolls beside it). number \u2192 counter (\u2265 2 s; the roll takes \u2248 1.1 s).
42
+ - list / rule \u2192 slips (\u2248 0.6 s per item); compare \u2192 two torn cards + paper arrow (exactly 2 items); timeline \u2192 slips on a string (3\u20135 items).`,pacing:{minShot:1.5,maxShot:4.5,median:2.6,transitions:["cut","wipe","whip"]},compile:{autoSfx:e=>{let t=e.beat;if(!t)return[];let r=[...e.id].reduce((i,s)=>i+s.charCodeAt(0),0)%3===1?[{id:"impact-soft",at:.1,vol:.9}]:[];return t.number&&r.push({id:"counter-tick",at:.4,vol:.3},{id:"stamp-thud",at:1.5,vol:.35}),t.items?.length?t.items.slice(0,5).forEach((i,s)=>r.push({id:"type-click",at:.5+s*.5,vol:.25})):t.sub&&r.push({id:"type-click",at:.7,vol:.25}),t.head&&r.push({id:"paper-tear",at:.25,vol:.25}),e.look&&e.look.exit==="tear"&&r.push({id:"paper-tear",at:Math.max(0,e.dur-.4),vol:.4}),r}},rules:(e,t)=>{let a=e.beat;a&&(a.head&&a.head.length>44&&t("beat.head","kraft-dossier sets the head as condensed caps on a torn label: keep beat.head \u2264 44 chars","warn"),a.items&&a.items.length>5&&t("beat.items","kraft-dossier fits \u2264 5 slips on a sheet","warn"),a.kind==="compare"&&a.items&&a.items.length!==2&&t("beat.items","kraft-dossier compare shows exactly 2 torn cards (extra items are dropped)","warn"))},licensing:{requires:[],attributions:[],fonts:["Anton (OFL)","Courier Prime (OFL)","Playfair Display (OFL)"],notes:"All figures are our own code-drawn halftone archetypes (no photos, no real people); mastheads are fictional; maps are invented cut-paper shapes (no geodata). Optional approved plates are not used."}});var be=x(A(),1);var Ge=h({id:"gilded-noir",aliases:["gilded-deco"],name:"Gilded Noir",version:"1.0.0",family:"cut-paper",renderer:"resvg-2d",status:"ready",aspects:["16:9"],tier:"max",pitch:"Cut-paper period crime: flat silhouettes on one bold colour field, giant condensed type and a gold Art Deco accent.",palette:{vermilion:"#c73b23",ochre:"#d49828",black:"#1f1915",oxblood:"#842d1e",gold:"#d9a647",bone:"#e9dfc8"},lookSchema:p.extend({kind:be.z.enum(["auto","marquee","stage","ledger","dossier"]).optional(),field:be.z.enum(["red","ochre","black"]).optional()}).strict(),kinds:[{id:"marquee",describe:"giant condensed headline in a stepped gold frame over a turning sunburst; silhouettes stroll below",beats:["hook","quote","outro"],example:o({kind:"hook",head:"Half your pay, gone by Friday",accent:"gone",who:["worker"],icons:["coin"]},{kind:"marquee",field:"red"})},{id:"stage",describe:"lateral street stage: Deco skyline layers trucking, silhouettes walking on twos, headline on top, location tag",beats:["establish","character","map","timeline"],example:o({kind:"establish",head:"Germany, 1923",sub:"A whole country running on paper money",where:"city",factIds:["F1"]},{kind:"stage",field:"ochre"})},{id:"ledger",describe:"black field, gold number rolling to the fact inside a stepped frame, label above",beats:["number","reveal"],example:o({kind:"number",head:"Prices doubled every",number:{value:3.7,dp:1,suffix:" days"},factIds:["F2"]},{kind:"ledger"})},{id:"dossier",describe:"split panel: headline + silhouette left, chevron-bulleted items sliding in right",beats:["list","rule","compare","timeline"],example:o({kind:"rule",head:"New rules for money",items:["Spend it the day you earn it","Never keep cash overnight"],who:["family"]},{kind:"dossier",field:"black"})}],library:{who:"flat single-fill silhouettes, no faces: fedora/trench (narrator, detective, stranger), top hat + cane (leader, rival), cap (worker, kid), bowler (merchant, crowd), cloche + dress (family)",where:"stepped Deco skylines with spires in two parallax layers over a gold sun + sunburst; map:<region> shows as a stage with a location tag",icons:"kit icons as flat cut-outs in ink or gold, punched with the field colour",extras:["Sunburst","StepFrame","DotRow","LocTag","condensed DecoType with accent word"]},promptGuide:`- One flat field per shot; alternate fields so consecutive shots smash between vermilion, ochre and black (look.field overrides).
43
+ - The headline IS the shot: keep beat.head \u2264 5 words, caps-friendly; set beat.accent to the one word that should turn gold.
44
+ - 3\u20135 s shots, hard cuts (dip at chapter changes). No whips. Silhouettes only \u2014 never faces, never real people.
45
+ - number/reveal with a number \u2192 ledger; list/rule/compare \u2192 dossier (\u2264 3 items, \u2264 32 chars each); hook/quote/outro \u2192 marquee; the rest \u2192 stage.
46
+ - Give stage shots a beat.where so the location tag shows; who: 1\u20134 archetypes walk the stage.`,pacing:{minShot:2.5,maxShot:6,median:3.8,transitions:["cut","dip","flash"]},compile:{autoSfx:e=>e.beat?.items?.length?e.beat.items.map((t,a)=>({id:"swipe",at:.35+a*.32,vol:.4})):[]},rules:(e,t)=>{e.beat?.head&&e.beat.head.split(/\s+/).length>8&&t("beat.head","gilded-deco headlines read best at \u2264 8 words (giant type)","warn")},licensing:{requires:[],attributions:[],fonts:["Archivo Black (OFL)","Caveat (OFL)"]}});var oe=x(A(),1);var Ue=h({id:"static-rules",aliases:["dread-ink"],name:"Static Rules",version:"1.0.0",family:"found-footage",renderer:"resvg-2d",status:"ready",aspects:["16:9"],tier:"max",pitch:"Rules-horror tape: white pictograms on black, numbered rules, red eyes, a running VHS timecode and glitches.",palette:{black:"#181818",white:"#f1f1f0",grey:"#1d1a1b",red:"#e0202a",yellow:"#c9b24a"},lookSchema:p.extend({kind:oe.z.enum(["auto","subject","rules","counter","file"]).optional(),eyes:oe.z.enum(["dot","red"]).optional(),framing:oe.z.enum(["wide","medium","close"]).optional()}).strict(),kinds:[{id:"file",describe:"typed-on case title with chroma ghosts and a lurking figure; caption bar from sub",beats:["hook","outro","quote"],example:o({kind:"hook",head:"Half your pay, gone by Friday",sub:"Case opened",who:["stranger"],mood:"dark"},{kind:"file"})},{id:"subject",describe:"one to three pictogram figures under a slow push; dotted gaze line to an icon in a focus ring",beats:["establish","character","reveal","map"],example:o({kind:"character",head:"Paid twice a day",sub:"Spend it before lunch",who:["worker"],icons:["coin"]},{kind:"subject"})},{id:"rules",describe:"numbered rules typed on (RULE I, II, III / EXHIBIT A, B for compare); red-eyed watcher at the side",beats:["rule","list","compare","timeline"],example:o({kind:"rule",head:"New rules for money",items:["Spend it the day you earn it","Never keep cash overnight"],who:["family"],mood:"dark"},{kind:"rules",eyes:"red"})},{id:"counter",describe:"big white number rolling to the fact with a red underline; figure and icon left",beats:["number","reveal"],example:o({kind:"number",head:"Prices doubled every",number:{value:3.7,dp:1,suffix:" days",label:"prices doubled every"},factIds:["F2"],mood:"tense"},{kind:"counter"})}],library:{who:"chunky white rounded-rect pictogram people (no outline, dot eyes); hats mark leader/worker/detective; stranger/rival are tall with long arms; mood dark/tense (or look.eyes) = red glowing eyes",where:"black void with a floor shadow; place names appear only in the CASE FILE header",icons:"kit icons in white or dim yellow on black",extras:["VHS overlay: seven-segment tape timecode (shapes, not text), REC dot, scanlines, tracking band, specks, vignette","seeded 2-frame tears","chroma ghost copies"]},promptGuide:`- Metronomic pacing: ~2 s shots, hard cuts only; re-stage between wide and close (cut-in, never zoom).
47
+ - Rule lists are the hero: beat kind "rule" with 2\u20134 short imperative items (\u2264 32 chars). Rule numbers ("RULE 1", "RULE 2" \u2026) are UI ordinals drawn by the style \u2014 never write them into the items yourself.
48
+ - mood "dark"/"tense" turns the watcher's eyes red; use it on the beat where something is wrong, not everywhere.
49
+ - Captions come from beat.sub (white caps bar); keep them one sentence. Numbers only via beat.number with factIds.
50
+ - Never gore, never real people. The timecode is decoration (seven-segment shapes) and carries no facts.`,pacing:{minShot:1.5,maxShot:4.5,median:2.2,transitions:["cut","flash"]},compile:{autoSfx:e=>e.beat?.mood==="dark"?[{id:"impact-soft",at:.1,vol:.5}]:[]},licensing:{requires:[],attributions:[],fonts:["Archivo Black (OFL)"],notes:"Tape timecode digits are drawn as seven-segment shapes, not text, so they never read as factual numbers."}});var je=x(A(),1);var ze=h({id:"glyph-story",aliases:["pictogram"],name:"Glyph Story",version:"1.0.0",family:"graphic-flat",renderer:"resvg-2d",status:"ready",aspects:["16:9"],tier:"standard",pitch:"Whole stories told in flat icon people and objects on clean paper, labels typed on in caps.",palette:{paper:"#eceee9",ink:"#3a2755",teal:"#2f7c7a",crimson:"#b0202a",gold:"#d8a93a",blue:"#2e3a8c",steel:"#9aa3aa"},lookSchema:p.extend({kind:je.z.enum(["auto","title","lineup","tally","scene","board"]).optional()}).strict(),kinds:[{id:"title",describe:"big ink caps typed on beside one or two icon people",beats:["hook","quote","outro"],example:o({kind:"hook",head:"Half your pay, gone by Friday",who:["worker"],icons:["coin"]},{kind:"title"})},{id:"lineup",describe:"a row of icon people (archetypes, or one hero + grey crowd) with typed name labels",beats:["character","compare"],example:o({kind:"character",head:"Paid twice a day",sub:"Spend it before lunch",who:["worker"]},{kind:"lineup"})},{id:"tally",describe:"the number rolls to the fact above an ISOTYPE grid of repeated icons",beats:["number","reveal"],example:o({kind:"reveal",head:"One loaf of bread",number:{value:200,suffix:" billion marks"},icons:["bread"],factIds:["F5"]},{kind:"tally"})},{id:"board",describe:"icon bullets with typed caps labels; an icon person presents",beats:["list","rule","timeline","compare"],example:o({kind:"rule",head:"New rules for money",items:["Spend it the day you earn it","Never keep cash overnight"],who:["family"]},{kind:"board"})},{id:"scene",describe:"flat pictogram place (city blocks, village, sea, desk, globe) with figures and icons",beats:["establish","map","reveal"],example:o({kind:"establish",head:"Germany, 1923",where:"city",factIds:["F1"]},{kind:"scene"})}],library:{who:"ISOTYPE people: circle head, rounded torso, pill limbs; identity by colour + accessory (hard hat worker, sash leader, top hat rival, apron merchant, cap kid, hood stranger, magnifier detective, bun family)",where:"flat building rows (city/street/bank), house+tree rows (village/countryside), sea with ship, desk, sun sky, globe for map:<region>",icons:"kit icons as flat fills (ink/teal/gold/crimson) \u2014 also used as repeated tally units",extras:["IconPerson builder (exported, reused by other flat styles)"]},promptGuide:`- Calm: 2.5\u20135 s shots, hard cuts, one moving element per shot; entrances slide up 12 px and fade, staggered by 3 frames.
51
+ - Labels are CAPS and short (\u2264 3 words per figure, \u2264 34 chars per item); everything types on at ~15\u201330 cps.
52
+ - Numbers \u2192 tally (the icon grid is a visual metaphor, never a count claim; the number itself comes from beat.number + factIds).
53
+ - Use who to cast a lineup (2\u20137 archetypes) or one hero (the rest become a grey crowd). Archetypes only, never real people.`,pacing:{minShot:2.2,maxShot:6,median:3.6,transitions:["cut"]},compile:{autoSfx:e=>[{id:"type-click",at:.3,vol:.3}]},licensing:{requires:[],attributions:[],fonts:["Archivo Black (OFL)"]}});var G=x(A(),1);var It=["idle","talk","walk","wave","panic","celebrate","nod","shake","laugh","point","shrug","cheer","think","cower","facepalm","present"],Pt=["auto","cu","two","wide","crowd","board","map"],qt=e=>Math.max(1,Math.min(3,typeof e.look?.cuts=="number"?Math.round(e.look.cuts):Math.round(e.dur/1.9))),$e=h({id:"stickfolk",aliases:["street-whatif"],name:"Stickfolk",version:"1.0.0",family:"puppet",renderer:"resvg-2d",status:"ready",aspects:["16:9"],tier:"max",pitch:"Dark-faced stick people with a glowing rim in warm film light: scale reveals, crowds and counter chips for big what-ifs.",palette:{face:"#17141c",rim:"#fff3e2",rimGlow:"#ffd9a3",sunKey:"#f3b25e",sunCore:"#fff1c9",ember:"#d4682f",dusk:"#4a1d2b",sand:"#d8b17d",brick:"#9a5a43",stone:"#b8a99a",shadowTeal:"#2b3a44",haze:"#efdcc2",chipBg:"#1f1b22",chipText:"#f2eadf",clockRed:"#ff4a3d"},lookSchema:p.extend({kind:G.z.enum(Pt).optional(),cuts:G.z.number().int().min(1).max(3).optional(),place:G.z.enum(S).optional(),time:G.z.enum(["golden","noon","dusk","night"]).optional(),act:G.z.enum(It).optional(),mapSeed:G.z.number().int().min(0).max(99999).optional()}).strict(),kinds:[{id:"cu",describe:`reaction close-up: the hero's dark disc face fills ~45 % of the frame on a third, set softly blurred behind, slow push; the face swaps to the mood expression at ~0.3 s with an emote (sweat drop, "!", hearts, sparkle) and an icon prop floats beside it. Leads a hook/reveal before the scale reveal`,beats:["hook","reveal","quote"],example:o({kind:"hook",head:"Half your pay, gone by Friday",accent:"gone",who:["kid"],icons:["coin","clock"],mood:"tense"},{kind:"cu"},{dur:3.6})},{id:"two",describe:"medium two-shot (full figures): the hero and a partner act (talk / nod / laugh / shrug) in the place, icons float between them, beat.head + beat.sub ride a white person tag above the hero's head",beats:["character","quote"],example:o({kind:"character",head:"Paid twice a day",sub:"Spend it before lunch",who:["worker","merchant"],where:"street",icons:["coin","bread"],mood:"funny"},{kind:"two"},{dur:3.8})},{id:"wide",describe:"establishing wide with a fast ease-out dolly: painted-depth set (street, plaza, interior counter, village, countryside, harbour, hilltop, night road) in golden light, the hero walks in, passers-by cross, icons sit as rim-lit props; beat.head (+ sub) is a lit sign standing in the set",beats:["establish","reveal","outro"],example:o({kind:"establish",head:"Germany, 1923",sub:"A whole country running on paper money",where:"city",icons:["factory","bank"],factIds:["F1"],mood:"neutral"},{kind:"wide",time:"golden"},{dur:3.8})},{id:"crowd",describe:"the scale reveal: from the hero the camera cranes up and back over a crowd of hundreds (cloned folk in perspective rows, per-clone hair/clothes/phase, placards with short words from the head); the head is a lit sign over the crowd; with beat.number a dark counter chip races to the fact top-left and persists across the internal cuts",beats:["hook","number","outro","reveal"],example:o({kind:"number",head:"Prices doubled every",number:{value:3.7,dp:1,suffix:" days",label:"prices doubled every"},icons:["chart-up"],factIds:["F2"],mood:"tense"},{kind:"crowd"},{dur:3.8})},{id:"board",describe:"list / rule: folk in a row raise cardboard placards one by one (one item each, marker caps; rule placards are warning yellow) under a hanging sign with the head \xB7 timeline: the hero walks along a path past signposts, each entry pops as a tag as he reaches it \xB7 compare: one lone figure (items[0]) vs. a crowd block (items[1]) across a dashed divide",beats:["list","rule","timeline","compare"],example:o({kind:"rule",head:"New rules for money",items:["Spend it the day you earn it","Never keep cash overnight","Buy things, not paper"],who:["family"],icons:["warning"],mood:"dark"},{kind:"board"},{dur:4.4})},{id:"map",describe:"a giant painted floor map on a civic plaza seen from a high crane: an invented landmass split into regions with dashed borders, rim-lit folk drop in as living map pins (who[0] waves on the centre region), items become tags above the pins, the head is a lit sign at the far edge. Maps are invented; the region name only seeds the shape",beats:["map","establish"],example:o({kind:"map",head:"Germany, 1923",sub:"A whole country running on paper money",who:["leader","worker"],where:"map:europe",factIds:["F1"]},{kind:"map",mapSeed:1923},{dur:3.8})}],library:{who:"small dark-faced stick folk on the shared engine rig with knee + elbow pivots (24 fps acting: walk with knee bend, talk, wave, panic, celebrate, nod, shake, laugh, cheer, shrug\u2026), plum-black disc heads with white oval eyes, light brow arcs and tiny pink mouths that swap drawings (round, wide, half-lid, happy arcs, squint, side-glance, hearts, tears), faceted low-poly hair in three tones, a warm cream rim + honey glow. kid = mustard jacket + two-tone curly hair (small), narrator = teal cardigan, bob, glasses, leader = dark long coat, red tie, grey slick hair (archetype only), rival = purple jacket, spiky hair, worker = cap + hi-vis vest, merchant = apron, bald tufts, moustache, detective = sand trench, fedora, scarf, stranger = grey hoodie with the hood up, family = mother (long hair, dress) + child, crowd = three seeded citizens; unknown ids \u2192 a seeded citizen. Crowds: up to ~250 cloned minis with per-clone hair, cloth, scale and phase",where:"painted-depth miniature sets lit like late-afternoon film (golden / noon / dusk / night): street = brick shopping street in one-point perspective with awnings, trees, toy cars and the sun at the far end; city = civic plaza (fountain, columned hall, generic skyline); bank / desk / office = service-counter interiors (tile floor, counter, LED dot-matrix queue board, windows with light shafts, desks); home = warm living room; village = cottages on a lane; countryside = rolling hills, fenced road; sea = harbour pier with sun glitter and boats; sky = hilltop above the clouds; night-road = skyline, street lights, stars; map / map:<region> = the plaza floor map. Unknown places \u2192 street",icons:"kit icon geometry as small toy objects with the cream rim + glow, in their own colours (gold coin/crown/key, red cross, green check\u2026), floating with a gentle bob or sitting on the ground; clock \u2192 an analog red clock chip top-right",extras:["rig v2 stick folk (knees, elbows) on engine/src/rig","faceted hair set (13)","face drawing set (8 eyes, 6 brows, 9 mouths) + emotes","rim-glow filter (feMorphology + blur)","crowd minis in perspective rows","counter chip (rollValue), clock chip, person tags, callouts, quote callout","lit in-set sign","cardboard placards","projected ground planes + receding facades","light kit: sun + bloom, god rays, haze, motes, film grain","invented plaza floor maps"]},promptGuide:`- Stickfolk answers a big what-if with SCALE: one person, then the crowd; one coin, then the city. Fast and warm: the renderer cuts every shot internally into ~1.9 s sub-shots with hard cuts (a 3.8 s shot = reaction close-up \u2192 crane over the crowd; a 5.7 s shot = 3 cuts). So write shots of 2\u20136 s, one per narration line; use look.cuts (1\u20133) only to override.
54
+ - Default layouts by beat kind (look.kind: "auto"): hook \u2192 CU reaction \u2192 crowd reveal with the head as a lit sign; establish \u2192 wide (+ CU); character \u2192 two-shot with the head on a person tag (+ CU); number \u2192 CU \u2192 crowd with the counter chip; compare \u2192 lone figure (items[0]) then the crowd (items[1]); list / rule \u2192 placards (one item per placard, \u2264 6, \u2264 28 chars reads best); timeline \u2192 walk past signposts (3\u20135 short entries); map \u2192 plaza floor map; reveal \u2192 CU \u2192 wide (crowd if it has a number); quote \u2192 speaker CU with a quote callout (head = the quote, sub = who said it; never a real person's name with a face); outro \u2192 crowd + wide.
55
+ - Numbers: put them in beat.number (value + factIds); the dark chip races to the fact (rollValue lands exactly on it) and stays in the top-left corner across the internal cuts. number.label (\u2264 28 chars) is the chip label; if absent the head is used. Give number shots \u2265 3 s. Never put free numbers in head/sub/items without factIds.
56
+ - Head \u2264 40 chars (it is a lit sign, 1\u20132 lines); sub \u2264 44 chars. accent = one word of the head drawn in honey. who[0] is the hero (kid by default): keep the same hero across a story so the viewer follows one person; who[1] is the partner in two-shots. mood drives acting, light and emotes: tense \u2192 panic + sweat at dusk, dark \u2192 cower/shake + tears at dusk, warm \u2192 wave + hearts in golden light, triumph \u2192 celebrate + sparkle, funny \u2192 laugh at noon, neutral \u2192 talk.
57
+ - icons: the first 1\u20133 become rim-lit props (clock \u2192 clock chip). where picks the set; look.place / look.time / look.act override set, light and the hero's acting.
58
+ - Do: short words in heads (crowd placards reuse them), one idea per shot, hard cuts. Don't: real people, real landmarks, long paragraphs, more than one number per shot.`,pacing:{minShot:1.5,maxShot:6,median:3.6,transitions:["cut","flash"]},compile:{autoSfx:e=>{let t=e.beat;if(!t)return[];let a=qt(e),r=[];for(let i=1;i<a;i++)r.push({id:"whoosh",at:+(e.dur*i/a-.05).toFixed(2),vol:.25});return t.number?r.push({id:"counter-tick",at:.25,vol:.35},{id:"pop",at:+Math.min(e.dur-.1,.25+Math.min(1.5,Math.max(.6,e.dur*.42))).toFixed(2),vol:.4}):t.items?.length?t.items.slice(0,6).forEach((i,s)=>r.push({id:"pop",at:+(.3+s*.3).toFixed(2),vol:.3})):r.push({id:"pop",at:.3,vol:.25}),r.filter(i=>i.at>=0&&i.at<e.dur)}},rules:(e,t)=>{let a=e.beat;a&&(a.head&&a.head.length>48&&t("beat.head","stickfolk shows the head as a lit sign / tag: keep beat.head \u2264 48 chars","warn"),(a.kind==="list"||a.kind==="rule")&&a.items&&a.items.some(r=>r.length>34)&&t("beat.items","stickfolk placards read best with items \u2264 34 chars","warn"),a.kind==="compare"&&a.items&&a.items.length!==2&&t("beat.items","stickfolk compare shows exactly 2 sides (items[0] lone figure, items[1] crowd)","warn"),a.number&&e.dur<2.4&&t("dur","stickfolk counter chips need \u2265 2.4 s to race and land","warn"))},licensing:{requires:[],attributions:[],fonts:["Archivo Black (OFL)","Caveat (OFL)"],notes:"All art is code-drawn: invented archetypes (no likenesses), generic skylines (no real landmarks), invented floor maps (no geodata), fictional storefronts."}});var U=x(A(),1);var Et=["talk","nod","shake","panic","celebrate","laugh","idle","point","present","think","cower","wave"],He=h({id:"desk-chronicle",aliases:["toybox-history"],name:"Desk Chronicle",version:"1.0.0",family:"puppet",renderer:"resvg-2d",status:"ready",aspects:["16:9"],tier:"standard",pitch:"Funny history on a desk at night: big-headed toy archetypes, a narrator pencil hand that writes and draws, framed maps that tilt in perspective.",palette:{wallpaper:"#2a1e29",wood:"#6a4227",lamp:"#2f6b4f",glow:"#ffd99a",parchment:"#e7d7a6",plum:"#8c5468",mustard:"#d8a446",sage:"#8fa36a",brass:"#d0a248",pencilRed:"#b8323a"},lookSchema:p.extend({kind:U.z.enum(["auto","desk","stage","map","plaque","ledger"]).optional(),act:U.z.enum(Et).optional(),place:U.z.enum(S).optional(),shot:U.z.enum(["wide","tight"]).optional(),mapSeed:U.z.number().int().min(0).max(99999).optional(),tilt:U.z.number().min(25).max(65).optional()}).strict(),kinds:[{id:"desk",describe:"home set: desk at night under the lamp; the pencil hand writes the head (+ sub) on a ruled card and underlines the accent word; a big-head toy puppet pops up beside it",beats:["hook","quote","outro"],example:o({kind:"hook",head:"Half your pay, gone by Friday",accent:"gone",who:["worker"],icons:["coin","clock"],mood:"tense"},{kind:"desk"})},{id:"stage",describe:"2.5D parallax diorama of beat.where (street, city, village, countryside, sea, sky, bank, office, home, night-road) with acting puppets (talk / nod / panic / celebrate) and a paper name tag popping beside the hero",beats:["establish","character","reveal"],example:o({kind:"character",head:"Paid twice a day",sub:"Spend it before lunch",who:["worker","merchant"],where:"street",icons:["coin","bread"],mood:"funny"},{kind:"stage"})},{id:"map",describe:"framed parchment map (invented coastline, region fills) lying on the desk, pushing in with a perspective tilt; army tokens, a portrait medallion of the hero, the pencil hand draws a route arrow and loops the target; items become paper flags",beats:["map","establish","timeline"],example:o({kind:"establish",head:"Germany, 1923",sub:"A whole country running on paper money",who:["leader","rival"],where:"map:europe",factIds:["F1"]},{kind:"map",mapSeed:1923,tilt:50})},{id:"plaque",describe:"brass plaque on the desk: the counter rolls and lands exactly on the fact, coin stacks grow, then the hand loops the number; the hero reacts when it lands",beats:["number","reveal"],example:o({kind:"number",head:"Prices doubled every",number:{value:3.7,dp:1,suffix:" days",label:"prices doubled every"},who:["stranger"],icons:["chart-up"],factIds:["F2"],mood:"tense"},{kind:"plaque"})},{id:"ledger",describe:"list / rule: spiral notepad, title stamped, checkboxes drawn, items handwritten then ticked \xB7 compare: two pinned cards written in turn with an arrow between \xB7 timeline: a paper strip, the line is ruled while a tiny toy walks along it",beats:["list","rule","compare","timeline"],example:o({kind:"rule",head:"New rules for money",items:["Spend it the day you earn it","Never keep cash overnight","Buy things, not paper"],who:["family"],icons:["warning"],mood:"dark"},{kind:"ledger"},{dur:4.4})}],library:{who:"big-head (1:1.3) caricature ARCHETYPES on the shared puppet rig, invented designs only: leader (bicorne with an invented cockade, sash, gold epaulettes, moustache), rival = general (plumed shako, silver epaulettes, mutton chops), merchant (apron, bow tie, bald tufts), worker (flat cap, braces), stranger = banker (top hat, monocle, gold waistcoat, watch chain), narrator = scholar (spectacles, white beard), detective = inspector (bowler, trench), kid (newsboy cap, freckles, small), family = mother (bonnet, shawl), crowd = three varied extras; unknown ids \u2192 a capped citizen. Faces swap drawings (blink, shock, worried, laugh\u2026); acting = talk (seeded rhythm), nod, shake, panic, celebrate, laugh, walk",where:"home set = desk at night (damask wallpaper, framed wall map, green banker's lamp, warm pool, ink pot + quill, books). Stages: street & bank (shopfronts with awnings, columned bank), city (domes, mansards, chimneys), village (thatched cottages, steeple), countryside (rolling hills, farmhouse, fence), sea (harbour dock, sailing ships), sky (balloon, clouds, hilltop), night-road (moon, lamp posts), office & home interiors, desk; map / map:<region> \u2192 the tabletop map (the region name only seeds the invented coastline)",icons:"kit icons painted on wooden toy blocks that drop in with a bounce (six toy colours)",extras:["PencilHand + hand-script strokes (text written, arrows, loops, underlines, ticks)","NameTag paper slips","invented parchment maps (perspective projector)","army tokens with invented pennants","portrait medallions","brass plaque","coin stacks","big-head archetype rigs"]},promptGuide:`- Funny, warm, a little silly: ~3 s shots (2\u20135 s), hard cuts; a dip at chapter changes, a whip for "meanwhile". Every shot moves in its first 0.5 s (hand enters, puppet pops up / walks in, tokens pop, counter starts).
59
+ - desk = hook / quote / outro: the pencil hand WRITES beat.head (\u2264 40 chars reads best; it is handwritten big) then beat.sub; set beat.accent to the word it underlines in red.
60
+ - stage = establish / character / reveal: give beat.where; beat.head + beat.sub become the paper name tag beside the hero (head \u2264 28 chars: a name/place + a short role line). who[0] is the hero (walks in, then acts by mood: tense \u2192 panic, dark \u2192 cower, funny \u2192 laugh, triumph \u2192 celebrate, warm \u2192 nod, neutral \u2192 talk/present); who[1..] support. 'crowd' = three extras. Consecutive stage shots alternate wide / punch-in medium (look.shot "wide" | "tight" overrides), so back-to-back stage beats always read as a cut.
61
+ - map = map beats (or establish with where "map:<region>"): head/sub tag top-left, who[0] becomes the medallion, who[1] points from the desk; items (\u2264 4, \u2264 24 chars) become paper flags on regions. Maps are INVENTED; never claim real borders. Reuse look.mapSeed to keep the same map across shots.
62
+ - plaque = number / reveal with beat.number (value + factIds required; label \u2264 28 chars). The counter rolls ~1.2 s and lands on the fact, then the hand loops it \u2014 give it \u2265 2.5 s.
63
+ - ledger = list / rule (\u2264 4 items, \u2264 32 chars), compare (exactly 2 items, each \u2264 36 chars), timeline (3\u20135 short entries). Writing takes time: ~0.9 s per item, so 4.4 s fits 3 items.
64
+ - Archetypes only (leader, rival/general, merchant, worker, stranger/banker, narrator/scholar, detective, kid, family, crowd) \u2014 never real people, real faces or real flags. look.act overrides the hero's acting; look.place overrides the stage.`,pacing:{minShot:2,maxShot:5.5,median:3.2,transitions:["cut","dip","whip"]},compile:{autoSfx:e=>{let t=e.beat;return t?t.number?[{id:"counter-tick",at:.35,vol:.35},{id:"pop",at:1.6,vol:.4}]:t.items?.length?[{id:"paper-rustle",at:.3,vol:.35}]:t.kind==="map"||t.where?.startsWith("map")?[{id:"pop",at:.3,vol:.3},{id:"paper-rustle",at:.9,vol:.3}]:t.kind==="hook"||t.kind==="quote"||t.kind==="outro"?[{id:"boing-small",at:.1,vol:.3},{id:"paper-rustle",at:.4,vol:.3}]:[{id:"pop",at:.55,vol:.3}]:[]}},rules:(e,t)=>{let a=e.beat;a&&(a.head&&a.head.length>44&&["hook","quote","outro"].includes(a.kind)&&t("beat.head","toybox-history writes desk headlines by hand: keep beat.head \u2264 44 chars","warn"),a.kind==="compare"&&a.items&&a.items.length!==2&&t("beat.items","toybox-history compare shows exactly 2 cards (extra items are dropped)","warn"),a.items&&a.items.length>5&&t("beat.items","toybox-history ledgers read best with \u2264 5 items","warn"))},licensing:{requires:[],attributions:[],fonts:["Kalam (OFL)","Libre Baskerville (OFL)","Caveat (OFL)"],notes:"All art is code-drawn: invented archetypes (no likenesses), invented maps (no geodata), invented heraldry (no real flags)."}});var J=x(A(),1);var Ot=["auto","tableau","panels","spotlight","corridor","numberCard","broadsheet"];function We(e,t){let a=t?.kind;return a&&a!=="auto"?a:e?e.number&&(e.kind==="number"||e.kind==="reveal")?"numberCard":e.kind==="compare"&&(e.items?.length??0)===2?"panels":e.items?.length&&["list","rule","timeline","compare"].includes(e.kind)?"broadsheet":e.kind==="character"?"panels":e.kind==="quote"?"corridor":e.kind==="reveal"||e.kind==="outro"?"spotlight":e.kind==="hook"?e.who?.length?"tableau":"spotlight":"tableau":"tableau"}var Ye=h({id:"block-print",aliases:["woodblock"],name:"Block Print",version:"1.0.0",family:"print",renderer:"resvg-2d",status:"ready",aspects:["16:9"],tier:"max",pitch:"Black-and-bone relief print with one red accent: carved hatching, light rays, spotlight pools and wireframe rooms.",palette:{black:"#1b1613",grain:"#2c231e",bone:"#e9e0cc",boneDim:"#b9b1a2",red:"#b8392f",redInk:"#8f2a24"},lookSchema:p.extend({kind:J.z.enum(Ot).optional(),accent:J.z.object({on:J.z.enum(["icon","figure","head","number"])}).strict().optional(),plate:J.z.string().regex(/^plate\/block-print\/[a-z0-9-]+@\d+$/).optional()}).strict(),kinds:[{id:"tableau",describe:"a carved scene for beat.where (city skyline under a ray burst, one-point street, desk lamp, bank facade, village, sea\u2026) with 1\u20133 relief figures standing in front; the first figure offers the red prop and, in shots \u2265 2.8 s, the shot punches in on bone hands holding it inside a ray burst",beats:["establish","hook","map"],example:o({kind:"establish",head:"Germany, 1923",sub:"A whole country running on paper money",where:"city",icons:["factory","bank"],factIds:["F1"]},{kind:"tableau"},{dur:3.8})},{id:"panels",describe:"printed two-panel split: a big relief portrait under raking rays on the left, the right panel wipes down from the top (13 frames) onto the place with props tumbling in; compare with two items puts one item in each panel",beats:["character","compare"],example:o({kind:"character",head:"Paid twice a day",sub:"Spend it before lunch",who:["worker"],where:"street",icons:["coin","bread"]},{kind:"panels"},{dur:3.8})},{id:"spotlight",describe:"an empty stage: a cone of rays over a flat bone floor pool; props drop into the light one by one (black on bone, the red one first), an optional figure stands in the pool",beats:["hook","reveal","outro"],example:o({kind:"hook",head:"Half your pay, gone by Friday",accent:"gone",icons:["coin","clock"],mood:"tense"},{kind:"spotlight",accent:{on:"head"}},{dur:3.6})},{id:"corridor",describe:"wireframe one-point corridor pushing slowly toward a glowing screen; a figure stands in front; quote beats print the head on the screen in black caps",beats:["quote","character","reveal"],example:o({kind:"quote",head:"Spend it the day you earn it",sub:"A rule every family learned",who:["stranger"]},{kind:"corridor"},{dur:3.4})},{id:"numberCard",describe:"a carved slab number rolling to the fact inside a black plate with a double cut border, ray burst behind, one red underline gouged in when it lands",beats:["number","reveal"],example:o({kind:"number",head:"Prices doubled every",number:{value:3.7,dp:1,suffix:" days"},icons:["chart-up"],factIds:["F2"]},{kind:"numberCard"},{dur:3.8})},{id:"broadsheet",describe:"list / rule rows carved one by one with diamond marks and gouged rules, a figure pointing from a spotlight on the right; timeline = a carved line with ticks and small ray bursts per entry",beats:["list","rule","timeline","compare"],example:o({kind:"rule",head:"New rules for money",items:["Spend it the day you earn it","Never keep cash overnight","Buy things, not paper"],who:["family"],icons:["warning"]},{kind:"broadsheet"},{dur:4.4})}],library:{who:"stylised relief puppets (~7 heads tall, our designs): black masses with bone cut lines on the lit edge, 3-density gouge hatching in the half-tones, bone face with 6\u20138 black cut marks, bone mitten hands; arms change drawing on twos (stand / offer / point / raise / walk). narrator = bare head, long coat \xB7 kid = small, cap \xB7 leader = tall hat, long coat, medal (archetype only) \xB7 rival = bowler, cane \xB7 worker = flat cap, wrench \xB7 merchant = round build, apron, sack \xB7 detective = brimmed hat, magnifier \xB7 stranger = hood, face in shadow \xB7 family = adult in headscarf + child \xB7 crowd = a row of carved busts \xB7 unknown ids \u2192 narrator build",where:"carved backdrops: city = skyline with window cuts under a sun ray burst \xB7 street = one-point street, bright sky gap, lamp pool \xB7 desk / office = desk-lamp cone onto a bone pool (+ wire room and window grid) \xB7 village = cottages under a horizon sun \xB7 countryside = hatched hills, converging furrows \xB7 sea = gouged wave rows, moon rays, boat \xB7 sky = ray fall from the top over carved clouds \xB7 bank = pediment and hatched columns \xB7 home = wire room with a window throwing rays \xB7 night-road = converging road, travelling lane dashes, moon \xB7 map / map:<region> = perspective grid floor with a carved invented landmass \xB7 unknown \u2192 empty spotlight",icons:"kit icon geometry as relief cuts: bone body + black cuts with shadow-side gouge hatch on the dark ground, black body + bone cuts inside a light pool, and the ONE red accent as flat mottled red; props fall into the light in ~4 frames with a 1-frame squash and debris specks",extras:["RayBurst (redrawn every print step)","SpotPool","WireRoom (one-point, slow push)","PanelSplit (wipe-down)","CarveLines","GougeHatch \xD73 densities","wood-grain pattern","red mottle","\xB12 px registration jitter at 12 fps","OfferHands punch-in"]},promptGuide:`- EXACTLY ONE red thing per shot. Default: the first icon is the red prop (so list it first); with no icons a figure gets a red sash; else the head's accent word (or a red rule under it). Override with look.accent.on.
65
+ - Punchy rhythm: 0.6\u20134.5 s shots, median ~2.2 s, hard cuts only (no whips/dips). Use short 0.6\u20131.5 s punch shots between 3\u20134 s holds; tableau shots \u2265 2.8 s punch in on the offered prop by themselves.
66
+ - Headlines are carved caps on a black plate: beat.head \u2264 6 words (2 lines max), sub \u2264 8 words.
67
+ - hook \u2192 spotlight (or tableau when it has who); establish / map \u2192 tableau (give beat.where); character \u2192 panels; number / reveal-with-number \u2192 numberCard; compare with 2 items \u2192 panels (one item per panel); list / rule / timeline \u2192 broadsheet (\u2264 4 items, \u2264 32 chars); quote \u2192 corridor (head printed on the screen); outro / reveal \u2192 spotlight.
68
+ - Props, not weapons: coins, keys, letters, bread, clocks drop into the light. Never pills offered in a palm, trench-coat mentors, code rain or gun drops (no film restaging).
69
+ - Figures are archetypes only (\u2264 3 per shot; more who \u2192 a row of busts). Real people: quote cards, never faces.
70
+ - look.plate is optional and only for an approved library plate (logged in library/ORIGINS.md); leave it out by default.`,pacing:{minShot:.6,maxShot:4.5,median:2.2,transitions:["cut"]},compile:{autoSfx:e=>{let t=e.beat,a=We(t,e.look),r=[];return a==="panels"&&r.push({id:"swipe",at:.2,vol:.45}),a==="numberCard"&&r.push({id:"counter-tick",at:.25,vol:.4},{id:"stamp-thud",at:1.25,vol:.5}),(a==="spotlight"||a==="tableau")&&(t?.icons??[]).slice(0,4).forEach((i,s)=>r.push({id:"stamp-thud",at:(a==="spotlight"?.51:.61)+s*(a==="spotlight"?.26:.3),vol:.4})),a==="broadsheet"&&(t?.items??[]).slice(0,6).forEach((i,s)=>r.push({id:"swipe",at:.42+s*.3,vol:.3})),r}},rules:(e,t)=>{let a=e.beat;a?.head&&a.head.split(/\s+/).length>9&&t("beat.head","block-print headlines are carved caps on a plate: keep beat.head \u2264 9 words","warn");let r=e.look?.accent?.on;r==="icon"&&!a?.icons?.length&&t("look.accent","accent.on = icon but the beat has no icons (the red falls back to the head)","warn"),r==="number"&&!a?.number&&t("look.accent","accent.on = number but the beat has no number","warn"),r==="figure"&&!a?.who?.length&&t("look.accent","accent.on = figure but the beat has no who","warn"),(a?.items?.length??0)>4&&We(a,e.look)==="broadsheet"&&t("beat.items","broadsheet reads best with \u2264 4 rows","warn")},licensing:{requires:[],attributions:[],fonts:["Zilla Slab (OFL)"],notes:"All art is code-drawn (relief figures, sets, rays, hatching are our own designs). Optional flag 'library-plate': look.plate may name a one-time engraved library plate (Jacob-approved, logged in library/ORIGINS.md, never generated per shot); it is not required and the code-drawn fallback always renders. Captions, cards and numerals use Zilla Slab Bold caps (spec typography; default old-style figures)."}});var R=x(A(),1);var Bt=["auto","glyph","figures","landscape","verses","inkNumber"],Ft=["meander","waves","ring","steps"];function Tt(e,t){let a=t?.kind;return a&&a!=="auto"?a:e?e.number&&(e.kind==="number"||e.kind==="reveal")?"inkNumber":e.items?.length&&["list","rule","timeline","compare"].includes(e.kind)?"verses":e.kind==="hook"||e.kind==="outro"||e.kind==="reveal"||e.kind==="number"?"glyph":e.kind==="character"&&e.who?.length?"figures":"landscape":"landscape"}var Ve=h({id:"brush-scroll",aliases:["ink-wash"],name:"Brush Scroll",version:"1.0.0",family:"brush",renderer:"resvg-2d",status:"ready",aspects:["16:9"],tier:"max",pitch:"Rice paper and wet ink: brush strokes paint themselves on in stroke order, ink blooms open each scene, a red seal of our own design.",palette:{paper:"#ece4cd",paperCloud:"#e2d9bf",paperGlow:"#f3ebd6",ink:"#1d1b17",wash1:"#4a453c",wash2:"#8b8476",wash3:"#b7af9f",seal:"#b2463a",text:"#3a352d"},lookSchema:p.extend({kind:R.z.enum(Bt).optional(),mark:R.z.enum(["enso",...$]).optional(),place:R.z.enum(S).optional(),caption:R.z.object({corner:R.z.enum(["tl","tr"])}).strict().optional(),seal:R.z.enum(Ft).optional(),transition:R.z.enum(["inkBloom","cut"]).optional()}).strict(),kinds:[{id:"glyph",describe:"one huge brush picture (~52 % H, left third) painted stroke by stroke \u2014 an ens\u014D, a coin with a square hole, a roof on posts, a clock\u2026 \u2014 then a long dry-brush sweep shoots out to the right edge and the seal soaks in; a beat.number is written beside it in ink",beats:["hook","reveal","outro","number"],example:o({kind:"hook",head:"Half your pay, gone by Friday",icons:["coin","clock"],mood:"tense"},{kind:"glyph",seal:"meander"},{dur:3.6})},{id:"figures",describe:'a row of tiny ink figures (cloned for the "many" beat, one with a red sash) painted in quick strokes on a dry-brush ground line, the place sketched behind in mist',beats:["character","hook"],example:o({kind:"character",head:"Paid twice a day",sub:"Spend it before lunch",who:["worker"],where:"street",icons:["coin","bread"]},{kind:"figures"},{dur:3.8})},{id:"landscape",describe:"ink-wash scenery for beat.where: mountains entering from the right over bounded washes, mist bands, water lines, pine, bamboo, pavilions, a moon-gate wall, a winding road, a desk still life; icons painted as small brush marks",beats:["establish","map","quote","character"],example:o({kind:"establish",head:"Germany, 1923",sub:"A whole country running on paper money",where:"city",icons:["factory","bank"],factIds:["F1"]},{kind:"landscape",caption:{corner:"tr"}},{dur:3.8})},{id:"verses",describe:"list / rule lines written in ink, each opened by a short brush dash, a brush picture of the first icon beside them; timeline = a long horizontal stroke with ink dots; compare = a vertical stroke dividing two written items",beats:["list","rule","timeline","compare"],example:o({kind:"rule",head:"New rules for money",items:["Spend it the day you earn it","Never keep cash overnight","Buy things, not paper"],who:["family"],icons:["warning"]},{kind:"verses"},{dur:4.4})},{id:"inkNumber",describe:"a thick dry-brush sweep, then the number written large in ink rolling to the fact, the icon's brush mark below, the label as the corner caption",beats:["number","reveal"],example:o({kind:"number",head:"Prices doubled every",number:{value:3.7,dp:1,suffix:" days"},icons:["chart-up"],factIds:["F2"]},{kind:"inkNumber"},{dur:3.8})}],library:{who:"tiny ink figures (~10\u201314 % H in figures rows, smaller in landscapes): a head dot, two robe sweeps and an arm stroke, no faces. narrator = conical hat + staff \xB7 kid = small, topknot \xB7 leader = tall hat, wide robe (archetype only) \xB7 rival = topknot + fan \xB7 worker = conical hat + carrying pole with baskets \xB7 merchant = wide hat + bundle \xB7 detective = wide hat + lantern \xB7 stranger = hooded cloak + staff \xB7 family = adult + child \xB7 crowd = a cloned row; unknown ids \u2192 narrator. One copy in a row wears a red sash",where:"ink-wash landscapes: countryside / unknown = mountains + mist + pine + water \xB7 city = pavilions under mountains \xB7 street = winding road + pavilions \xB7 village = huts + bamboo \xB7 sea = water lines, boat, moon wash \xB7 sky = moon, birds, cloud sweeps \xB7 bank = moon-gate wall under mountains \xB7 home = hut + plum branch + moon \xB7 night-road = road, moon, mist \xB7 desk / office = brush, ink stone and scroll on a table \xB7 map / map:<region> = a scroll map: river stroke, small range, dotted path",icons:"hero brush pictures (our own stroke skeletons, pictorial \u2014 never script) for coin, sun, moon, clock, house, tree, ship, bread, key, door, scale, crown, eye, globe, chart-up, chart-down, warning, check, cross, letter, bank, factory, skull; car, phone and person become an ens\u014D with the kit icon stamped in ink. Small icons are painted with the same strokes",extras:["BrushStroke (variable-width outline along a spine, draw-on in stroke order, wet rim)","dry-brush bristle tails","long sweep","bounded ink washes (\u03C3 \u2265 3)","ink-bloom ring entrance","corner captions with red square bullet","4 seals of our design (meander, waves, ring, steps)","rice-paper drift 40 px/s"]},promptGuide:`- Quiet and slow: 3\u20135 s shots (median ~3.8 s), scenes chain through ink blooms (transitionOut "inkBloom" on most shots; a planned cut is a hard cut, keep those few); look.transition "inkBloom" | "cut" overrides one shot's entrance. No whips.
71
+ - Words are a whisper: beat.head \u2264 8 words, sub \u2264 8 words; they sit in a top corner (alternating) in hand-written ink with a red square bullet. Keep 75\u201390 % of the frame empty paper: \u2264 2 icons, \u2264 4 items.
72
+ - hook / outro / reveal \u2192 glyph (list the icon whose brush picture should fill the frame FIRST; look.mark overrides); establish / map / quote \u2192 landscape (give beat.where or look.place); character with who \u2192 figures (a single archetype is cloned into a row); number \u2192 inkNumber (a reveal with a number may use glyph: the number is written beside the picture); list / rule / timeline / compare \u2192 verses.
73
+ - The seal is ours and abstract (meander, waves, ring, steps); it soaks in after the last stroke, so leave ~1 s after the strokes finish.
74
+ - Figures are archetypes only; no faces, never real people. Brush pictures are pictorial, never characters of any script.`,pacing:{minShot:2.5,maxShot:6,median:3.8,transitions:["cut","inkBloom"]},compile:{autoSfx:e=>{let t=e.beat,a=Tt(t,e.look),i=[...e.id].reduce((s,l)=>s+l.charCodeAt(0),0)%3===1?[{id:"impact-soft",at:.1,vol:.9}]:[];return a==="glyph"&&i.push({id:"swipe",at:.3,vol:.35},{id:"swipe",at:.75,vol:.3}),a==="verses"&&(t?.items??[]).slice(0,5).forEach((s,l)=>i.push({id:"swipe",at:.3+l*.35,vol:.25})),a==="inkNumber"&&i.push({id:"swipe",at:.28,vol:.35},{id:"counter-tick",at:.45,vol:.3}),i.push({id:"stamp-thud",at:Math.max(.6,e.dur-1),vol:.3}),i}},rules:(e,t)=>{let a=e.beat;a?.head&&a.head.split(/\s+/).length>10&&t("beat.head","brush-scroll captions are a whisper: keep beat.head \u2264 10 words","warn"),(a?.icons?.length??0)>3&&t("beat.icons","brush-scroll keeps the paper empty: \u2264 3 icons are drawn","warn"),(a?.items?.length??0)>5&&t("beat.items","verses draw at most 5 lines","warn")},licensing:{requires:[],attributions:[],fonts:["Cormorant Garamond (OFL)","Kaushan Script (OFL)"],notes:"All brush pictures, figures, landforms and seals are our own code-authored stroke skeletons (no font glyphs, no traced characters, no stroke-order datasets). Text uses OFL faces (SIL OFL 1.1, engine/fonts): whisper captions and list text in Cormorant Garamond Medium Italic (the spec face), big numerals and the 9:16 headline in Kaushan Script brush lettering (BRUSH_GLYPH_FONT in engine/src/styles/brush-scroll/brush.tsx). No CJK calligraphy font is used: pictures and marks stay code-drawn strokes. Seals are abstract designs of ours, never a person's or organisation's seal, never readable script."}});var I=x(A(),1);var Nt=["auto","tableau","banner","tablet","ledger","map"];function Mt(e,t){let a=t?.kind;return a&&a!=="auto"?a:e?e.number&&(e.kind==="number"||e.kind==="reveal")?"tablet":e.items?.length&&["list","rule","timeline","compare"].includes(e.kind)?"ledger":e.kind==="map"||e.where?.startsWith("map")?"map":["hook","outro","reveal","quote","number","list","rule","timeline","compare"].includes(e.kind)?"banner":"tableau":"tableau"}var Lt=e=>e.look?.strike===!0||e.look?.strike!==!1&&!!e.beat?.accent&&(e.beat.mood==="tense"||e.beat.mood==="dark")&&e.dur>=2.8,Ke=h({id:"period-canvas",name:"Period Canvas",version:"1.0.0",family:"print",renderer:"resvg-2d",status:"ready",aspects:["16:9","9:16"],tier:"max",pitch:"History as candle-lit silhouette theatre: rim-lit robed figures in slow parallax tableaux, smoke and embers, named by classical callouts, unrolling scrolls, date ribbons and wax seals.",palette:{umbra:"#1a1613",bark:"#362b23",clay:"#5a4738",ochre:"#876a51",parchment:"#c9b38c",linen:"#e2d6ba",flame:"#f3b864",duskGlow:"#9c5130",nightTeal:"#24302f",oxblood:"#6e2420",sealRed:"#8b2b22",gilt:"#b28e44"},lookSchema:p.extend({kind:I.z.enum(Nt).optional(),place:I.z.enum([...S,"hall"]).optional(),region:I.z.string().regex(/^[A-Za-z][A-Za-z '-]{0,30}$/,"region: letters, spaces, hyphens only").optional(),light:I.z.object({side:I.z.enum(["left","right"])}).strict().optional(),move:I.z.object({type:I.z.enum(["push","pushEase","pull","truck","hold"]),dir:I.z.enum(["left","right"]).optional()}).strict().optional(),grade:I.z.enum(["candle","dusk"]).optional(),strike:I.z.boolean().optional(),seal:I.z.string().regex(/^[A-Z]{1,3}$/,"seal: 1-3 capital letters").optional(),tablet:I.z.enum(["stone","parchment"]).optional(),transition:I.z.enum(["dip","cut"]).optional(),plate:I.z.string().regex(/^plate\/period-canvas\/[a-z0-9-]+@\d+$/).optional()}).strict(),kinds:[{id:"tableau",describe:'one slow parallax tableau of beat.where (interior by candle or dusk exterior) with rim-lit period figures for beat.who; character \u2192 a medium shot with a name callout (hollow ring on the head, hairline leader, CAPS head + italic sub); establish \u2192 a wide shot (lateral truck) with a place card ("CITY, YEAR" only from a fact-bearing head)',beats:["establish","character"],example:o({kind:"character",head:"Paid twice a day",sub:"Spend it before lunch",who:["worker"],where:"street",icons:["coin","bread"]},{kind:"tableau",light:{side:"left"}},{dur:4.6})},{id:"banner",describe:"the tableau under a parchment scroll banner that unrolls from the centre (two rollers, ~19 frames): CAPS head + italic gloss; a red brush strike-through on the turn (beat.accent + tense / dark mood, or look.strike); outro presses a wax seal on the banner",beats:["hook","reveal","quote","outro"],example:o({kind:"hook",head:"Half your pay, gone by Friday",accent:"gone",who:["worker"],icons:["coin","clock"],mood:"tense"},{kind:"banner",strike:!0},{dur:4.4})},{id:"tablet",describe:"a carved stone stele (number) or inked parchment card (reveal) in a candle-lit room: the head carved above, the number rolling to the fact in our classical figures (\u2264 1.2 s), the suffix in caps below, the icon as a period prop beside it",beats:["number","reveal"],example:o({kind:"number",head:"Prices doubled every",number:{value:3.7,dp:1,suffix:" days"},icons:["chart-up"],factIds:["F2"]},{kind:"tablet",tablet:"stone"},{dur:4.2})},{id:"ledger",describe:'parchment by a candle: list / rule = an edict with roman ordinals (rule adds a wax seal); compare = two parchment leaves with a balance between and date ribbons from "DATE: text" items; timeline = an unrolled scroll with seal dots and date ribbons',beats:["list","rule","compare","timeline"],example:o({kind:"compare",head:"One dollar buys",items:["1914: $1 = 4.2 marks","Nov 1923: $1 = 4.2 trillion marks"],icons:["coin"],factIds:["F3","F4"]},{kind:"ledger"},{dur:5})},{id:"map",describe:"a period parchment map on a candle-lit table: inked coast, river, mountains, rhumb lines, compass rose, the region in caps (map:<region> or look.region); a figure may stand beside it; head as a place card",beats:["map","establish"],example:o({kind:"map",head:"Germany, 1923",where:"map:germany",factIds:["F1"]},{kind:"map",region:"Germany"},{dur:4.6})}],library:{who:"rim-lit silhouettes 7.5 heads tall (umbra body, curved robe-fold planes, a mantle band, a flame rim on the lit edge, faces in profile and shadow \u2014 never a likeness). narrator = hooded elder with a staff \xB7 kid = small tunic figure \xB7 leader = laurel circlet, oxblood sash, gilt trim, our ring-and-disc standard (wide shots) \xB7 rival = hooded cloak, arms folded \xB7 worker = felt cap, short tunic \xB7 merchant = rounded hat, oxblood sash, coin purse \xB7 crowd = a two-row cluster of hooded / bare-headed silhouettes \xB7 detective = hooded watchman with a lit lantern \xB7 stranger = hooded traveller with a staff \xB7 family = veiled woman with a child; unknown ids \u2192 a plain robed figure. Puppet pivots only (shoulder, elbow), head turns are drawing swaps, 0\u20132 motions per shot; interiors cast the figures' shadows on the back wall",where:"three rigid depth cards per tableau. Interiors (candle grade): bank = colonnade hall + counting table \xB7 home = window with a moonlight shaft, door ajar, oil lamp \xB7 desk = scroll shelves + writing table + candle \xB7 office = arch + shelves \xB7 unknown \u2192 hall with colonnade and a statue on a plinth. Exteriors (dusk grade): city = rooftop terrace, balustrade, brazier, two skyline rows (domes, towers, tiles) with smoke \xB7 street = arch occluder, banners on poles, wall torch \xB7 village = tents, campfire, olive tree \xB7 countryside / night-road = hills, city wall + glowing gate, cypresses, campfire / moonlight \xB7 sea = quay, ship hull, glints \xB7 sky = hilltop tower, birds, wide sky \xB7 map / map:<region> = parchment map tableau. Near card = column / drapery / arch / tree occluder",icons:"period props on the table or ground: coin = coin stacks + purse \xB7 clock = hourglass \xB7 bread = loaf \xB7 crown \xB7 scale = balance \xB7 key \xB7 letter / phone = sealed letter \xB7 globe = armillary sphere \xB7 ship = ship model \xB7 chart-up / chart-down = rising / falling coin stacks \xB7 skull \xB7 check = laurel wreath \xB7 cross = crossed staves \xB7 person = a generic bust \xB7 car = cart wheel \xB7 warning = brazier \xB7 factory = kiln; house, bank, eye, door, moon, sun, tree and unknown ids = an engraved gilt medallion (the emblem also goes on banners)",extras:["PaintedField gradient mesh","seeded BrushOverlay (static per shot)","canvas grain + brush-edge displacement (baked)","DepthTableau 1.0 : 1.2 : 1.8 parallax + DOF","candle flame, glow pool, smoke, embers, dust in light shafts","cast shadows on the back wall","our code-drawn classical capitals (PERIOD_CAPS_FONT slot)","NameCallout, ScrollBanner + BrushStrike, DateRibbon, WaxSeal, PlaceCard","candle / dusk grades","dip from umbra","optional library plate slot (empty)"]},promptGuide:`- Slow and cinematic: ONE tableau per sentence, 3.5\u20137.5 s (median ~5 s). Prefer \`transitionOut: "dissolve"\` between tableaux (or "dip"); a shot that does not dissolve in opens with a short dip from umbra (look.transition "cut" disables it). No whips.
75
+ - Text is quiet and classical: beat.head \u2264 6 words (CAPS), beat.sub \u2264 8 words (italic gloss). One text element per shot.
76
+ - character with who \u2192 tableau (a medium shot; the head becomes a name callout on the first figure); hook / quote / outro \u2192 banner (scroll banner over the tableau; outro presses a wax seal); establish \u2192 wide tableau + place card (put the year in the head only with its factId: "Germany, 1923"); number \u2192 tablet (carved stele; the number rolls to the fact); reveal with a number \u2192 parchment tablet; list / rule / compare / timeline \u2192 ledger (items written "1914: $1 = 4.2 marks" get date ribbons); map or where "map:<region>" \u2192 map.
77
+ - Give beat.where (city, street, bank, home, desk, office, sea, sky, village, countryside, night-road) \u2014 interiors are candle-lit, exteriors dusk. who = archetypes only (generic period figures, never a portrait or likeness of a real person; real people are named only in the callout text). icons become period props / engraved emblems; \u2264 2 per shot.
78
+ - Strike-through: set beat.accent on the word that turns ("gone") with mood tense / dark, or look.strike: true \u2014 the red brush crosses the banner ~1.9 s in.
79
+ - R14: every year / number on ribbons, cards, tablets and banners must come from beat text with factIds. UI ordinals are roman numerals only. Seals take letters only (look.seal).
80
+ - Plates: look.plate / shot.plate are ignored unless a Jacob-approved library plate is registered (none ship); never ask for generated imagery.`,pacing:{minShot:3,maxShot:7.5,median:5,transitions:["dissolve","dip","cut"]},compile:{autoSfx:e=>{let t=e.beat,a=Mt(t,e.look),i=[{id:"room-tone",at:[...e.id].reduce((s,l)=>s+l.charCodeAt(0),0)%3===1?0:.6,vol:.18}];return a==="banner"&&(i.push({id:"paper-rustle",at:.4,vol:.4}),Lt(e)&&i.push({id:"swipe",at:Math.min(e.dur-.6,1.9),vol:.45}),t?.kind==="outro"&&i.push({id:"stamp-thud",at:1.2,vol:.35})),a==="tableau"&&t?.who?.length&&t.kind!=="establish"&&i.push({id:"cloth-swish",at:.85,vol:.25}),a==="tablet"&&i.push({id:"counter-tick",at:.5,vol:.25},{id:"impact-soft",at:1.6,vol:.3}),a==="ledger"&&(i.push({id:"paper-rustle",at:.2,vol:.35}),t?.kind==="rule"&&i.push({id:"stamp-thud",at:Math.min(e.dur-.5,.7+(t.items?.length??0)*.45+.3),vol:.35})),a==="map"&&i.push({id:"paper-rustle",at:.3,vol:.3}),i}},rules:(e,t)=>{let a=e.beat;a?.head&&a.head.split(/\s+/).length>9&&t("beat.head","period-canvas heads are classical captions: keep beat.head \u2264 9 words","warn"),(a?.icons?.length??0)>2&&t("beat.icons","period-canvas draws at most 2 icons as props / emblems","warn"),(a?.items?.length??0)>5&&t("beat.items","period-canvas ledgers draw at most 5 items","warn"),(a?.who?.length??0)>3&&t("beat.who","period-canvas tableaux stage at most 3 figures (crowd counts as one)","warn"),(e.transitionOut==="whip"||e.transitionOut==="zoomThrough")&&t("transitionOut","period-canvas is slow: use dissolve / dip / cut","warn"),(e.look?.plate||e.plate)&&t("plate","period-canvas plates render only when registered in PLATES (empty by default; needs Jacob approval + library/ORIGINS.md)","warn")},licensing:{requires:[],attributions:[],fonts:["Cinzel (OFL)","Cormorant Garamond (OFL)"],notes:`Everything on screen is code: figures, sets, props, FX, grades and our own classical capitals (stroke skeletons authored in engine/src/styles/period-canvas/caps.tsx \u2014 no font data traced). Lettering uses the spec's OFL faces: Cinzel SemiBold for the classical capitals (PERIOD_CAPS_FONT in caps.tsx; null falls back to our code-drawn capitals) and Cormorant Garamond Medium Italic for descriptors and card text (SIL OFL 1.1, engine/fonts). Optional PLATE slot: engine/src/styles/period-canvas/plates.ts PLATES ships EMPTY; a plate (one-time library art split into back / mid / near layers, or a public-domain painting with full provenance) renders only when Jacob approves it AND it is logged in library/ORIGINS.md \u2014 it then adds the "library-plate" licence flag and its credit line. Figures are generic period types; never a likeness.`}});var O=x(A(),1);var Ct=["auto","stage","vista","tally","labels","faceoff"],Rt=["castle-town","market-lane","treasure-vault","hearth-cottage","scribe-study","harbour","cloud-peaks","village","hills","moon-road","world-map","great-hall","snow-ruins","forest"],_t=["knight","witch","sailor","king","peasant","merchant","squire","rogue","scout","wanderer","scribe","villager","family","crowd","dragon","wolf"],Dt=["snow","embers","motes","fog","firelight"],Gt=3.7;function Ut(e,t){let a=t?.kind;return a&&a!=="auto"?a:e?e.number&&(e.kind==="number"||e.kind==="reveal")?"tally":e.kind==="compare"?"faceoff":e.items?.length&&["list","rule","timeline"].includes(e.kind)?"labels":e.kind==="establish"||e.kind==="map"?"vista":e.kind==="number"?"tally":"stage":"stage"}var jt=/\b(witcher|geralt|yennefer|zelda|hyrule|mario|luigi|bowser|pok[eé]mon|pikachu|minecraft|skyrim|dovahkiin|elden ring|dark souls|warcraft|azeroth|diablo|final fantasy|kingdom hearts|genshin|marvel|avengers|batman|superman|naruto|one piece|dragon ball|goku|game of thrones|westeros|targaryen|lannister|hogwarts|harry potter|gandalf|frodo|hobbit|mordor|sauron|lord of the rings|star wars|jedi|disney|pixar|shrek|league of legends|fortnite|overwatch|dota|god of war|kratos|assassin'?s creed)\b/i,Xe=h({id:"diecut-saga",name:"Die-Cut Saga",version:"1.0.0",family:"graphic-flat",renderer:"resvg-2d",status:"ready",aspects:["16:9","9:16"],tier:"max",pitch:"A sticker-book saga: chibi characters of our own with thick white die-cut borders, slapped onto dreamy blurred stages, punched up with flashes, speed lines, firelight, snow and fog, and big bevelled captions.",palette:{stickerWhite:"#f6f3ec",keyline:"#1e191c",shadowInk:"#000000",emberOrange:"#df5a1c",emberDeep:"#7c2f12",sunGold:"#f2c33a",frostMint:"#b6ecc8",duskSlate:"#474c61",mist:"#7d808f",royalBlue:"#2d4296",captionTop:"#c8b4f4",captionBottom:"#7e57cf"},lookSchema:p.extend({kind:O.z.enum(Ct).optional(),stage:O.z.union([O.z.enum(Rt),O.z.enum(S)]).optional(),weather:O.z.array(O.z.enum(Dt)).max(3).optional(),cast:O.z.array(O.z.enum(_t)).min(1).max(2).optional(),creature:O.z.enum(["dragon","wolf"]).optional(),restage:O.z.boolean().optional(),push:O.z.number().min(.9).max(1.5).optional(),open:O.z.enum(["punchIn","none"]).optional()}).strict(),kinds:[{id:"stage",describe:"one or two chibi stickers (beat.who \u2192 our saga cast) slapped onto the blurred stage, icon stickers beside them, the head as a bevelled lower-third caption; an impact swaps the face; long beats cut (flash) to a close-up with a reaction pose and the sub as caption. No who: icon stickers (or the creature) are the heroes",beats:["hook","character","quote","outro","reveal"],example:o({kind:"hook",head:"Half your pay, gone by Friday",accent:"gone",who:["worker"],icons:["coin","clock"],mood:"tense"},{kind:"stage"},{dur:3.6})},{id:"vista",describe:"the painted stage wide (castle town, harbour, world map\u2026) with the head as a stage title, icon stickers slapped on; the second moment brings a character sticker in close (beat.who, else a scout / scribe)",beats:["establish","map"],example:o({kind:"establish",head:"Germany, 1923",sub:"A whole country running on paper money",where:"city",icons:["factory","bank"],factIds:["F1"]},{kind:"vista",weather:["embers","motes"]},{dur:3.8})},{id:"tally",describe:"a huge gold-bevelled number rolls to the fact (\u2264 1.2 s) and lands with a flash, shockwave and shake; the suffix sits under it, the icon sticker beside it, the head as caption; long beats cut to a reaction sticker with the number held",beats:["number","reveal"],example:o({kind:"number",head:"Prices doubled every",number:{value:3.7,dp:1,suffix:" days"},icons:["chart-up"],factIds:["F2"],mood:"tense"},{kind:"tally"},{dur:3.8})},{id:"labels",describe:"list / rule / timeline items as die-cut parchment labels with roman-numeral wax badges, slapped on one by one (timeline: left \u2192 right, alternating); a character sticker and an icon sticker beside them, the head as a top caption",beats:["list","rule","timeline"],example:o({kind:"rule",head:"New rules for money",items:["Spend it the day you earn it","Never keep cash overnight","Buy things, not paper"],who:["family"],icons:["warning"],mood:"dark"},{kind:"labels"},{dur:4.4})},{id:"faceoff",describe:"compare: two stickers facing off (two who, or the first icon vs the second \u2014 a coin faces a coin pile) with a VS burst landing on an impact; each item on a die-cut label under its side; long beats cut to the winner close-up",beats:["compare"],example:o({kind:"compare",head:"One dollar buys",items:["1914: $1 = 4.2 marks","Nov 1923: $1 = 4.2 trillion marks"],icons:["coin"],factIds:["F3","F4"],mood:"dark"},{kind:"faceoff"},{dur:4.4})}],library:{who:"chibi die-cut stickers of OUR OWN original saga archetypes (code-drawn, cel-shaded, dark keyline, white die-cut border, drop shadow; 2.6 heads tall, mitten hands, dot/arc eyes with instant expression swaps; rigid sticker motion only): worker \u2192 peasant with a sack \xB7 merchant \u2192 merchant with a coin pouch \xB7 leader \u2192 crowned king of our design with a sceptre \xB7 kid \u2192 squire with a wooden sword \xB7 rival \u2192 hooded rogue with a dagger \xB7 detective \u2192 lantern scout \xB7 stranger \u2192 hooded wanderer with a staff (face in shadow) \xB7 narrator \u2192 bearded scribe with a book \xB7 family \u2192 villager mother + child \xB7 crowd \u2192 a cluster of small villager stickers \xB7 unknown ids \u2192 knight. look.cast adds knight, witch, sailor, villager and two creatures (our little gold dragon, a grey wolf). Poses: idle, hold, point, wave, cheer, shock, sad; expressions: neutral, happy, shock, angry, sad, smug",where:"soft painted stages pushed far out of focus (\u03C3 \u2248 8.5 px@1080): city \u2192 castle town at dusk \xB7 street \u2192 market lane with awnings and lanterns \xB7 bank \u2192 treasure vault \xB7 home \u2192 hearth cottage \xB7 desk / office \u2192 scribe's study \xB7 sea \u2192 harbour \xB7 sky \u2192 cloud peaks \xB7 village \u2192 thatched village \xB7 countryside \u2192 hills & forest \xB7 night-road \u2192 moonlit road \xB7 map / map:<region> \u2192 a painted parchment world map of invented islands (never real geography) \xB7 unknown \u2192 great hall. Extra stages via look.stage: snow-ruins, forest. Weather per stage/mood (look.weather): firelight wash + swinging lantern silhouettes, rising embers, falling snow, ground fog, motes",icons:"die-cut item stickers of our design for every icon: coin (gold, star emblem), house (cottage), clock (hourglass), ship (sailing ship), car (hay cart), bread, phone (herald's horn), factory (anvil & hammer), bank (treasure chest), key, eye (seer's orb), door (castle door), moon, sun, tree, crown, scale, chart-up / chart-down (parchment ledgers), warning (wooden sign), skull, check, cross, person (villager token), letter (sealed letter), globe (royal orb); unknown ids \u2192 a cut gem. A coin facing off against itself becomes a coin pile",extras:["StickerBody (dilated-silhouette die-cut border + grey rim + drop shadow, data-rf-bake)","ChibiKit (parts kit: 11 hats, 5 hair styles, outfits, 11 props)","BlurStage (14 code-painted stages, feTurbulence mottle)","ImpactKit (flash, speed lines, shockwave disc, shake, scale punch)","Weather (snow, embers, motes, fog, firelight + lanterns)","BevelCaption (stacked-copy bevel, gradient fill, letter-by-letter reveal, gold accent word)","gold bevelled rolling numbers","die-cut item labels with roman-numeral badges","VS burst","slow push 1.2 %/s + opening punch-in"]},promptGuide:`- IP RULE (non-negotiable): ORIGINAL characters only. Refuse any request to tell game / film / TV / anime / comic franchise lore in this style ("do <franchise> lore as stickers"): no franchise characters, costumes, signature weapons, emblems, colour schemes, monsters, place names or title words, and nothing that is "obviously X with the serial numbers filed off". Offer our own saga archetypes, public-domain myth told from old sources, or real history instead. Captions and items never name a franchise.
81
+ - Pacing is brisk: cuts every ~2\u20132.5 s. Write beat shots of 1.4\u20137.4 s; any beat \u2265 3.7 s is automatically re-staged inside the shot (a second sticker moment / closer angle behind a one-frame flash), so on-screen cut-to-cut stays 1.4\u20134.0 s (median ~2.2 s). Prefer 3.4\u20134.4 s narration lines; split anything longer than ~7 s. Use look.restage false to keep a beat as one moment.
82
+ - Every moment carries ONE impact accent (flash + speed lines + shockwave + shake, \u2264 0.8 /s): the hero sticker landing, a number landing, a VS burst. Hard cuts only (no dissolves); the flash does the work.
83
+ - Captions are big bevelled caps: beat.head \u2264 6 words reads best (\u2264 8 max); set beat.accent to the one word to paint gold. beat.sub becomes the caption of the re-staged second moment.
84
+ - hook / character / quote / outro / reveal \u2192 stage (give who; one or two archetypes; icons \u2264 2 become item stickers); establish / map \u2192 vista (give where); number \u2192 tally (beat.number with factIds; it rolls and lands); list / rule / timeline \u2192 labels (\u2264 4 short items, \u2264 32 chars each); compare \u2192 faceoff (2 items; 2 who or 1\u20132 icons).
85
+ - who maps to our saga cast (worker \u2192 peasant, leader \u2192 king, merchant \u2192 merchant, kid \u2192 squire, rival \u2192 rogue, detective \u2192 lantern scout, stranger \u2192 wanderer, narrator \u2192 scribe, family \u2192 villagers, crowd \u2192 a sticker crowd); look.cast picks knight / witch / sailor / dragon / wolf etc. Real people never appear: archetypes only.
86
+ - R14 as everywhere: numbers only from fact-bearing beats; labels use roman numerals, never invented numbers.`,pacing:{minShot:1.4,maxShot:7.4,median:3.6,transitions:["cut"]},compile:{autoSfx:e=>{let t=e.beat,a=Ut(t,e.look),r=e.look?.restage??e.dur>=Gt-1e-6,i=r?Math.round(e.dur*.5*30)/30:-1,l=[...e.id].reduce((u,b)=>u+b.charCodeAt(0),0)%3===1?[]:[{id:"whoosh-rise",at:.2,vol:.3}];return a==="tally"?l.push({id:"pop",at:.2,vol:.3},{id:"counter-tick",at:.3,vol:.3},{id:"impact-soft",at:Math.min(1.25,(r?i:e.dur)-.4),vol:.55}):a==="labels"?(l.push({id:"pop",at:.28,vol:.35},{id:"impact-soft",at:.3,vol:.4}),(t?.items??[]).slice(0,5).forEach((u,b)=>l.push({id:"stamp-thud",at:.5+b*.5,vol:.3}))):a==="faceoff"?l.push({id:"pop",at:.3,vol:.35},{id:"pop",at:Math.min(1,e.dur*.22),vol:.35},{id:"impact-soft",at:Math.min(1.1,e.dur*.25),vol:.55}):l.push({id:"pop",at:.3,vol:.4},{id:"impact-soft",at:a==="vista"?.5:.42,vol:.5},{id:"pop",at:.78,vol:.25}),r&&l.push({id:"whoosh",at:Math.max(0,i-.12),vol:.35},{id:"impact-soft",at:i,vol:.5}),l.filter(u=>u.at>=0&&u.at<e.dur)}},rules:(e,t)=>{let a=e.beat,r=[a?.head,a?.sub,...a?.items??[]].filter(Boolean).join(" ");jt.test(r)&&t("beat","diecut-saga tells ORIGINAL sagas only: captions/items must not name a game, film, anime or comic franchise or its characters","error"),a?.head&&a.head.split(/\s+/).length>8&&t("beat.head","diecut-saga captions are big bevelled caps: keep beat.head \u2264 8 words (\u2264 6 reads best)","warn"),(a?.items?.length??0)>4&&t("beat.items","diecut-saga labels: at most 4 items read well (5 are drawn)","warn"),(a?.who?.length??0)>2&&t("beat.who","diecut-saga stage shots show at most 2 character stickers","warn"),e.dur>4&&e.look?.restage===!1&&t("look.restage","diecut-saga: a single moment longer than 4 s breaks the 1.4\u20134.0 s cut band","warn")},licensing:{requires:[],attributions:[],fonts:["Cinzel (OFL)","Archivo Black (OFL)"],notes:"All characters, creatures, stages, item stickers and FX are our own code-drawn designs (ORIGINAL saga archetypes; no franchise characters, costumes, emblems, monsters, colour schemes or names \u2014 the plugin rules reject franchise words in captions). The reference clips used game-franchise art; nothing of it is reproduced. Big captions use the spec's chiselled display serif, Cinzel Black (SIL OFL 1.1, engine/fonts/Cinzel-Black.ttf; DIECUT_CAPTION_FONT in engine/src/styles/diecut-saga/caption.tsx) with our stacked-copy bevel; item labels, badges and the VS burst use Archivo Black. Optional one-time library sticker plates per hero (spec \xA712) are not used."}});var Q={renderer:"engine-3d",family:"3d-world"},ie={renderer:"engine-geo",family:"map",render:{cli:"reelforge-render-geo",gpu:"none"}},Je=[N({...Q,id:"docket-3d",aliases:["doc3d"],name:"Docket 3D",pitch:"True-story and money documentaries rebuilt in a dark glossy 3D world: mannequins, public-record document cards, data scenes, in-scene screens.",palette:{void:"#0b0d12",floor:"#14171d",key:"#f2c27a",data:"#4ae3f1",card:"#e9e4d8"},pacing:{minShot:1,maxShot:5.5,median:2.2,transitions:["cut","flash"]},render:{cli:"reelforge-render-3d",gpu:"final",note:"GPU needed for 1080p finals (headless Chrome WebGL); CPU is fine for stills and 540p animatics."},layouts:[{id:"gallery",describe:"dark gallery set with lit document/data cards",beats:["establish","reveal"]},{id:"data",describe:"extruded data scene, number on the floor",beats:["number","compare"]}]}),N({...Q,id:"stagelit-stick",aliases:["stickstage"],name:"Stagelit Stick",pitch:"Our SVG puppets as glowing billboards inside warmly lit low-poly 3D sets, with counter tiles and label pills.",palette:{dusk:"#f4a25a",siding:"#6f7a99",brick:"#8a3a24",candle:"#ffd890",glow:"#fff3d6"},pacing:{minShot:1.5,maxShot:4,median:2.8,transitions:["cut"]},render:{cli:"reelforge-render-3d",gpu:"none"},layouts:[{id:"set",describe:"puppet billboards in a lit low-poly set",beats:["character","establish"]},{id:"counter",describe:"counter tile over the set",beats:["number"]}]}),N({...Q,id:"plinth-city",aliases:["plaster"],name:"Plinth City",pitch:"A district as a white model on a dark plinth from open footprint data, recoloured by one data rule per shot.",palette:{plinth:"#1b1d22",model:"#e9e7e1",rule:"#e0663a",label:"#f2f2ef"},pacing:{minShot:2,maxShot:5,median:3,transitions:["cut"]},render:{cli:"reelforge-render-3d",gpu:"none"},layouts:[{id:"overview",describe:"orbit over the white model",beats:["establish","map"]},{id:"rule",describe:"buildings recoloured by one data rule",beats:["number","compare"]}]}),N({...Q,id:"exploded-view",aliases:["exploded"],name:"Exploded View",pitch:"Generic objects (cards, coins, meters) float apart part by part with index, name and spec labels.",palette:{backdrop:"#0b0d0e",clay:"#e4e1d8",pcb:"#2f6b45",accent:"#e0663a",text:"#f2f2ef"},pacing:{minShot:3,maxShot:8,median:4.5,transitions:["cut"]},render:{cli:"reelforge-render-3d",gpu:"none"},layouts:[{id:"explode",describe:"parts separate with staggered labels",beats:["reveal","list"]}]}),N({...ie,id:"terra-relief",name:"Terra Relief",pitch:"History and what-if geography on a living relief map: territories spread, monuments rise, evidence cards between passages.",palette:{land:"#e6dcc0",sea:"#2f5f6a",relief:"#b9a47c",accent:"#b8322a"},pacing:{minShot:4,maxShot:18,median:10,transitions:["cut","dissolve"]},layouts:[{id:"map",describe:"relief map passage: camera flight, territories, labels",beats:["map","establish","timeline"]}]}),N({...ie,id:"frontline",aliases:["night-front"],name:"Front Line",pitch:"Campaigns on a dark map: hatched faction washes, glowing thrust arrows with unit tokens, insignia badges, date chip.",palette:{sea:"#1e2a34",land:"#3a2a21",red:"#894748",blue:"#2c3b4c",glow:"#d6cec8"},pacing:{minShot:4,maxShot:12,median:7,transitions:["cut"]},layouts:[{id:"campaign",describe:"fronts, arrows and unit tokens on the dark map",beats:["map","timeline"]}]}),N({...ie,id:"orbit-survey",name:"Orbit Survey",pitch:"Descend from orbit onto a real site and measure it: graded open imagery, survey marks, a live scale bar and a credit line.",palette:{earth:"#3d4a3a",mark:"#f2c431",line:"#ffffff",panel:"#111418"},pacing:{minShot:4,maxShot:8,median:5.5,transitions:["cut"]},licensing:{requires:["geodata"],attributions:["Made with Natural Earth","Contains modified Copernicus Sentinel data (when imagery is used)"],fonts:["Archivo Black (OFL)"]},layouts:[{id:"survey",describe:"descent onto a site with survey marks and a scale bar",beats:["map","reveal"]}]}),N({...ie,id:"fieldbook",name:"Fieldbook",tier:"max",pitch:"A naturalist's watercolour journal: washed landscapes, growing trees, real country outlines with data zones, one vermilion accent.",palette:{paper:"#ebe6d3",sage:"#9aa58a",ochre:"#c9a25a",vermilion:"#d1643f",ink:"#2b2a26"},pacing:{minShot:4,maxShot:8,median:5.5,transitions:["cut","dip"]},layouts:[{id:"washmap",describe:"watercolour wash map with data zones and a route",beats:["map","number"]},{id:"landscape",describe:"washed landscape strip growing in",beats:["establish"]}]}),N({...Q,id:"blockfolk",name:"Blockfolk",aspects:["9:16"],tier:"max",pitch:"Narrated 9:16 story shorts in an original softly lit voxel world of big-headed block-folk, cut on every phrase, with 1-2-word pixel captions.",palette:{sky:"#3B8CC4",haze:"#B3D7E4",turf:"#4F8B36",timber:"#C47C3C",stone:"#868C90",lantern:"#FFC34F",gild:"#E0B140",capFill:"#FFF7E6",capEdge:"#22160F"},pacing:{minShot:.6,maxShot:5.5,median:1.5,transitions:["cut","blurWhip","dip","flash"]},render:{cli:"reelforge-render-3d",gpu:"final",note:"Headless Chrome WebGL. Measured on an M4 Pro GPU: 540x960 animatic 0.03-0.05 s/frame, 1080x1920 still about 0.3 s. CPU (SwiftShader) is fine for stills and slow for finals."},spec:"docs/styles/blockfolk.md",qaBands:{q2:{mean:[1.2,2],median:[1.2,1.9],segPerMin:[30,50],longest:5.5},q8:{saturation:[115,165],value:[80,150]}},layouts:[{id:"hook-face",describe:"protagonist close/medium shot, push-in or arc; the hook triad opens on it",beats:["hook","character"]},{id:"detail",describe:"tight insert on the odd object (crash zoom)",beats:["hook","reveal"]},{id:"wide-village",describe:"wide or crane over the village, with a voxel numeral or placard when the beat has one",beats:["establish","hook"]},{id:"talk-cu",describe:"one villager talking to camera, expression from mood",beats:["character"]},{id:"interior-talk",describe:"two villagers talking under a warm lamp (arc)",beats:["character","quote"]},{id:"quote-talk",describe:"villager speaking, the exact words on a banner",beats:["quote"]},{id:"crowd-overhead",describe:"instanced crowd of 40-800 in the plaza, seen from 20-50 degrees up",beats:["list","compare"]},{id:"numeral-reveal",describe:"voxel numeral pops in over a chest or coin stack (factIds required)",beats:["number"]},{id:"two-groups",describe:"two groups or piles side by side",beats:["compare"]},{id:"placard",describe:"villager or crowd holding a placard with the beat text",beats:["list","rule"]},{id:"banner",describe:"banner or plaque carrying the beat text",beats:["list","rule"]},{id:"time-plate",describe:"time-jump word slate; the cut into it is a dip to white",beats:["timeline"]},{id:"map-glide",describe:"overhead glide across the village",beats:["map"]},{id:"walk-road",describe:"low POV track along the road",beats:["establish","reveal"]},{id:"reveal-crane",describe:"crane rise past a foreground occluder, one per short",beats:["reveal"]},{id:"payoff",describe:"last-shot payoff image (reaction or sign), about 2 s, no end card",beats:["outro"]}],library:{who:"Block-folk: 1.5-block-tall, big-head rigid-box villagers with mitten hands, sliding-pupil eyes, floating brows and swappable mouths. Named cast: mara, tobin, wren, oskar, pia, bram. Crowd archetypes (instanced up to 2000): villager, guard, farmer, merchant.",where:"Procedural voxel sets from a per-episode seed: village, field, plaza, interior. Seasons summer, autumn, snow. Lights bf-day, bf-golden, bf-dusk, bf-night, bf-interior.",icons:"voxProp: chest, barrel, crate, coinStack, lanternPost, well, cart, sack, bell. Held props: placard, coin, lantern, sack, shovel, scroll, spear.",extras:["voxNumeral (voxel digits; factIds required)","voxSign: plaque, banner, placard, slate","voxWeather: snow, embers, leaves, sparkle","Blockfolk Caps pixel caption track (episode level, from words.json)"]},promptGuide:['- 9:16, 1080x1920 @ 24 fps (Episode.format {aspect: "9:16", width: 1080, height: 1920, fps: 24}). Provide vo.words: captions are generated from words.json, never written into shots.',"- One shot per narration phrase. Body shots 1.2-1.9 s, cut on the first word of the phrase. Open with a hook triad: 3 shots in about 3 s (face, then odd detail, then a wide shot with a number or placard), first cut at 0.9-1.4 s. One reveal per short (up to 5.5 s). End on a payoff shot of about 2 s with no end card.",'- Write beat shots. Use beat.where for the set (village, countryside, city, home, bank, desk, office, street, night-road), beat.mood for the light (dark = night, warm/triumph = golden, tense = dusk), beat.who for cast and crowd. Set look.season "snow" for winter.',"- Optional look keys: kind (menu above), preset (pushIn, crashZoom, arc, craneReveal, overheadGlide, povTrack, lowTiltUp, holdDrift), size (wide, ms, mcu, cu), light, season, weather, set, crowd (count), prop, shot3d (full escape hatch).","- In-world text is beat.head/sub/items on signs, plaques, banners and placards: 1-5 words, exact strings, never truncated. A digit anywhere needs beat.factIds; without facts the text is dropped. A number beat renders as a voxel numeral only with factIds, and its caption word turns gold.","- Transitions: mostly cuts, about one blurWhip per 10 s, and dip (to white) only on time jumps.","- No HUD, no game UI and no reference-game names, characters or blocks. Real people appear only as unnamed villagers."].join(`
87
+ `),licensing:{requires:[],attributions:[],fonts:["Blockfolk Caps (our own bitmap face, SIL OFL 1.1, engine-3d/fonts/licenses/BlockfolkCaps-OFL.txt)","Archivo Black (OFL)"],notes:"Everything is procedural and original: block atlas, palette, folk rig, props and sets. No third-party game textures, models, names, UI or block palette."}})];var Qe=[Me,Le,Ce,_e,De,Ge,Ue,ze,$e,He,Ye,Ve,Ke,Xe,...Je];var Ze={"block-print":["library/golden/styles/block-print-1.png","library/golden/styles/block-print-2.png","library/golden/styles/block-print-3.png","library/golden/styles/block-print-portrait-1.png","library/golden/styles/block-print-portrait-2.png","library/golden/styles/block-print-portrait-3.png"],"brush-scroll":["library/golden/styles/brush-scroll-1.png","library/golden/styles/brush-scroll-2.png","library/golden/styles/brush-scroll-3.png","library/golden/styles/brush-scroll-portrait-1.png","library/golden/styles/brush-scroll-portrait-2.png","library/golden/styles/brush-scroll-portrait-3.png"],cutout:["library/golden/styles/cutout-1.png","library/golden/styles/cutout-2.png","library/golden/styles/cutout-3.png","library/golden/styles/cutout-portrait-1.png","library/golden/styles/cutout-portrait-2.png","library/golden/styles/cutout-portrait-3.png"],"desk-chronicle":["library/golden/styles/desk-chronicle-1.png","library/golden/styles/desk-chronicle-2.png","library/golden/styles/desk-chronicle-3.png","library/golden/styles/desk-chronicle-portrait-1.png","library/golden/styles/desk-chronicle-portrait-2.png","library/golden/styles/desk-chronicle-portrait-3.png"],"diecut-saga":["library/golden/styles/diecut-saga-1.png","library/golden/styles/diecut-saga-2.png","library/golden/styles/diecut-saga-3.png","library/golden/styles/diecut-saga-portrait-1.png","library/golden/styles/diecut-saga-portrait-2.png","library/golden/styles/diecut-saga-portrait-3.png"],"evidence-lamp":["library/golden/styles/evidence-lamp-1.png","library/golden/styles/evidence-lamp-2.png","library/golden/styles/evidence-lamp-3.png","library/golden/styles/evidence-lamp-portrait-1.png","library/golden/styles/evidence-lamp-portrait-2.png","library/golden/styles/evidence-lamp-portrait-3.png"],"gilded-noir":["library/golden/styles/gilded-noir-1.png","library/golden/styles/gilded-noir-2.png","library/golden/styles/gilded-noir-3.png","library/golden/styles/gilded-noir-portrait-1.png","library/golden/styles/gilded-noir-portrait-2.png","library/golden/styles/gilded-noir-portrait-3.png"],"glyph-story":["library/golden/styles/glyph-story-1.png","library/golden/styles/glyph-story-2.png","library/golden/styles/glyph-story-3.png","library/golden/styles/glyph-story-portrait-1.png","library/golden/styles/glyph-story-portrait-2.png","library/golden/styles/glyph-story-portrait-3.png"],gridpaper:["library/golden/styles/gridpaper-1.png","library/golden/styles/gridpaper-2.png","library/golden/styles/gridpaper-3.png","library/golden/styles/gridpaper-portrait-1.png","library/golden/styles/gridpaper-portrait-2.png","library/golden/styles/gridpaper-portrait-3.png"],"kraft-dossier":["library/golden/styles/kraft-dossier-1.png","library/golden/styles/kraft-dossier-2.png","library/golden/styles/kraft-dossier-3.png","library/golden/styles/kraft-dossier-portrait-1.png","library/golden/styles/kraft-dossier-portrait-2.png","library/golden/styles/kraft-dossier-portrait-3.png"],"period-canvas":["library/golden/styles/period-canvas-1.png","library/golden/styles/period-canvas-2.png","library/golden/styles/period-canvas-3.png","library/golden/styles/period-canvas-portrait-1.png","library/golden/styles/period-canvas-portrait-2.png","library/golden/styles/period-canvas-portrait-3.png"],shadowbox:["library/golden/styles/shadowbox-1.png","library/golden/styles/shadowbox-2.png","library/golden/styles/shadowbox-3.png","library/golden/styles/shadowbox-portrait-1.png","library/golden/styles/shadowbox-portrait-2.png","library/golden/styles/shadowbox-portrait-3.png"],"static-rules":["library/golden/styles/static-rules-1.png","library/golden/styles/static-rules-2.png","library/golden/styles/static-rules-3.png","library/golden/styles/static-rules-portrait-1.png","library/golden/styles/static-rules-portrait-2.png","library/golden/styles/static-rules-portrait-3.png"],stickfolk:["library/golden/styles/stickfolk-1.png","library/golden/styles/stickfolk-2.png","library/golden/styles/stickfolk-3.png","library/golden/styles/stickfolk-portrait-1.png","library/golden/styles/stickfolk-portrait-2.png","library/golden/styles/stickfolk-portrait-3.png"],blockfolk:["library/golden/3d/blockfolk-dusk-snow.png","library/golden/3d/blockfolk-hook.png","library/golden/3d/blockfolk-interior.png","library/golden/3d/blockfolk-night-placard.png","library/golden/3d/blockfolk-numeral.png"],"docket-3d":["library/golden/3d/docket-3d-beam.png","library/golden/3d/docket-3d-boardroom.png","library/golden/3d/docket-3d-hall.png","library/golden/3d/docket-3d-kit-barfield.png","library/golden/3d/docket-3d-kit-calendar.png","library/golden/3d/docket-3d-kit-charts.png","library/golden/3d/docket-3d-kit-phone.png","library/golden/3d/docket-3d-kit-plaques.png","library/golden/3d/docket-3d-kit-yeardrum.png","library/golden/3d/docket-3d-vault.png"],"exploded-view":["library/golden/3d/exploded-view-board.png","library/golden/3d/exploded-view-explode.png","library/golden/3d/exploded-view-stack.png"],"plinth-city":["library/golden/3d/plinth-city-heights.png","library/golden/3d/plinth-city-overview.png","library/golden/3d/plinth-city-tower.png"],"stagelit-stick":["library/golden/3d/stagelit-stick-classroom.png","library/golden/3d/stagelit-stick-diner.png","library/golden/3d/stagelit-stick-porch.png","library/golden/3d/stagelit-stick-sky.png"],fieldbook:["library/golden/geo/fieldbook-1.png","library/golden/geo/fieldbook-2.png","library/golden/geo/fieldbook-3.png","library/golden/geo/fieldbook-4.png"],frontline:["library/golden/geo/frontline-1.png","library/golden/geo/frontline-2.png","library/golden/geo/frontline-3.png","library/golden/geo/frontline-4.png","library/golden/geo/frontline-5.png"],"orbit-survey":["library/golden/geo/orbit-survey-1.png","library/golden/geo/orbit-survey-2.png","library/golden/geo/orbit-survey-3.png"],"terra-relief":["library/golden/geo/terra-relief-1.png","library/golden/geo/terra-relief-2.png","library/golden/geo/terra-relief-3.png","library/golden/geo/terra-relief-4.png"]};var zt=["gridpaper","shadowbox","glyph-story","stagelit-stick","plinth-city","exploded-view","frontline"],$t=["evidence-lamp","kraft-dossier","stickfolk","terra-relief","orbit-survey","gilded-noir","static-rules","docket-3d","blockfolk","block-print","period-canvas","brush-scroll","desk-chronicle","fieldbook","diecut-saga"],Ht={cutout:"operator",...Object.fromEntries(zt.map(e=>[e,"standard"])),...Object.fromEntries($t.map(e=>[e,"max"]))},et=Ht;var Z=Qe.map(e=>({...e,tier:et[e.id]??e.tier,qaBands:e.qaBands??K[e.id]??{},samples:e.samples??Ze[e.id]??[],render:e.render??(e.renderer==="resvg-2d"?{cli:"reelforge-render",gpu:"none"}:e.renderer==="engine-3d"?{cli:"reelforge-render-3d",gpu:"final"}:{cli:"reelforge-render-geo",gpu:"none"}),spec:e.spec??`docs/styles/${e.id==="cutout"?"ledger-cartoon":e.id}.md`})),se=new Map;for(let e of Z)for(let t of[e.id,...e.aliases??[]]){if(se.has(t))throw new Error(`@reelforge/styles: duplicate style id/alias "${t}" (${se.get(t).id} and ${e.id})`);se.set(t,e)}var Wt=Z,Yt=ee,ne=e=>se.get(e.replace(/@\d+$/,""));function le(e){let t=ne(e);if(!t)throw new Error(`unknown style "${e}" (known: ${Z.map(a=>a.id).join(", ")})`);return t}var at=e=>le(e).id,ge=e=>({id:e.id,name:e.name,version:e.version,family:e.family,renderer:e.renderer,status:e.status,aspects:e.aspects,tier:e.tier,pitch:e.pitch,palette:e.palette,licensing:e.licensing,aliases:e.aliases??[],kinds:e.kinds.map(t=>({id:t.id,describe:t.describe,beats:t.beats})),qaBands:e.qaBands??{},samples:e.samples??[],render:e.render??{cli:"reelforge-render",gpu:"none"},...e.spec?{spec:e.spec}:{}});function Vt(e={}){return Z.filter(t=>(!e.aspect||t.aspects.includes(e.aspect))&&(!e.renderer||t.renderer===e.renderer)&&(!e.family||t.family===e.family)&&(!e.readyOnly||t.status==="ready")).map(ge)}function Kt(e){let t=le(e),a=null;try{a=tt.z.toJSONSchema(t.lookSchema,{unrepresentable:"any"})}catch{a=null}return{...ge(t),promptGuide:`${me}
88
+ ## ${t.name} (${t.id})
89
+ ${t.promptGuide}`,pacing:t.pacing,lookJsonSchema:a,kinds:t.kinds,library:t.library,vocabulary:{beatKinds:te,who:ae,where:S,icons:$,moods:Se}}}var Xt=(e,t,a=[],r={})=>le(e).planDefaults(t,a,r);function Jt(e,t,a={}){let r=at(t);return{...e,...a.videoId?{videoId:a.videoId}:{},style:r,shots:e.shots.map(i=>{if(a.keepOverrides)return i;let{style:s,look:l,...u}=i,b=l&&l.style===void 0&&(i.style??e.style)===r;return{...u,...b?{look:l}:{}}})}}function Qt(e){let t=[],a=new Set(e.shots.map(r=>X(e,r)));for(let r of a){let i=ne(r);if(!i){t.push({shot:"EPISODE",path:"style",msg:`unknown style "${r}" (known: ${Z.map(s=>s.id).join(", ")})`,level:"error"});continue}i.id!==r&&t.push({shot:"EPISODE",path:"style",msg:`"${r}" is an alias of "${i.id}": write the canonical id`,level:"warn"}),t.push(...i.validate(i.id===r?e:{...e,style:e.style===r?i.id:e.style,shots:e.shots.map(s=>s.style===r?{...s,style:i.id}:s)}))}return t}var Zt=(e,t)=>ne(t)?.compile?.autoSfx?.(e)??[];export{Yt as DEFAULT_STYLE_ID,me as GUIDE_PREAMBLE,Pe as LIBRARY_VERSION,Wt as STYLES,Zt as autoSfx,Te as basePlan,Ne as baseValidate,at as canonicalStyleId,h as defineStyle,o as exampleShot,ne as findStyle,le as getStyle,Oe as guessBeatKind,Ee as headline,Be as lineTimes,Vt as listStyles,p as lookBase,Xt as planShots,xt as plannedStyle,Jt as restyle,X as shotStyle,ge as styleCard,Kt as styleGuide,Qt as validateStyles};
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,15 @@
1
+ # engine-resvg fonts
2
+
3
+ Shipped with the product renderer (no system fonts are ever loaded, so every machine draws the same glyphs).
4
+ Every .ttf here is a byte-identical mirror of the canonical `engine/fonts/` — see `engine/fonts/README.md` for each
5
+ file's family, weight, source URL, how it was made and its licence (all SIL OFL 1.1; licence texts in `licenses/`).
6
+ resvg loads every .ttf in this folder (`src/fonts.ts`); the engine's FONT_FILES must all be present.
7
+
8
+ Files: ArchivoBlack, Caveat (variable source) + Caveat-Bold, Cinzel-SemiBold, Cinzel-Black,
9
+ CormorantGaramond-MediumItalic, IBMPlexMono-SemiBold, IBMPlexSerif-SemiBold, ZillaSlab-Bold-Lining, KaushanScript-Regular,
10
+ Kalam-Bold, LibreBaskerville-Bold, LibreBaskerville-Italic, Anton-Regular, CourierPrime-Regular, PlayfairDisplay-Regular,
11
+ PlayfairDisplay-Bold.
12
+
13
+ Why static instances: resvg-js 2.6.2 ignores `font-weight`, `font-variation-settings` and `font-feature-settings`
14
+ on variable fonts, so the engine's Caveat 700 rendered at 400 (identical pixels for 400/700/bold, checked). With
15
+ Caveat-Bold.ttf loaded beside Caveat.ttf, `font-weight="700"` selects the bold face; the same holds for Cinzel 600/900.