{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk-Italic.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" },
    { "family": "Reenie Beanie", "path": "fonts/ReenieBeanie.ttf" },
    { "family": "Instrument Serif", "path": "fonts/InstrumentSerif-Italic.ttf" },
    { "family": "Geist Pixel", "path": "fonts/GeistPixel-Square.woff2" }
  ],
  "theme": {
    "color": {
      "paper": "#f4f1ea", "sheet": "#fbf9f4", "paper2": "#e9e4d8", "rule": "#d8d1c1",
      "ink": "#161412", "ink2": "#4a4640", "mute": "#8a857a", "red": "#c92a26",
      "tape": "#d9ceb6d8", "shade": "#16141238", "clear": "#16141200"
    },
    "type": {
      "display": { "font": "Schibsted Grotesk", "weight": 880, "tracking": -0.05, "leading": 0.88, "fill": "{color.ink}" },
      "italic": { "font": "Schibsted Grotesk", "italic": true, "weight": 400, "tracking": -0.035, "fill": "{color.ink}" },
      "label": { "font": "JetBrains Mono", "size": 13, "weight": 500, "tracking": 0.14, "uppercase": true, "fill": "{color.ink2}" },
      "hand": { "font": "Reenie Beanie", "size": 50, "fill": "{color.red}" }
    },
    "motion": {
      "slap": { "ease": "steps(2)", "duration": "0.1s" },
      "stamp": { "spring": 0.35, "duration": "0.4s" },
      "flip": { "spring": 0.25, "duration": "0.6s" }
    },
    "styles": {
      "scrap": { "shadow": { "color": "{color.shade}", "blur": 5, "x": 1, "y": 3 } },
      "cutout": { "stroke": "{color.sheet}", "strokeWidth": 18, "shadow": { "color": "{color.shade}", "blur": 6, "x": 2, "y": 4 } },
      "tape": { "width": 128, "height": 34, "fill": "{color.tape}" },
      "pencil": { "fill": null, "stroke": "{color.red}", "strokeWidth": 5, "lineCap": "round" },
      "slapIn": { "enter": { "from": { "scale": 1.25, "rotate": -3 }, "motion": "slap" } }
    },
    "fx": { "boil": "floor(t*12)/12", "gboil": "floor(gt*12)/12" }
  },
  "compositions": [{
    "id": "analog-collage",
    "description": "Analog collage: the clip torn into risograph strips, type cut into windows, a contact sheet blown up to a two-colour print, stamped and signed, stop-motion at 12 fps on a 120 BPM loop.",
    "width": 1280, "height": 720, "fps": 30, "duration": "30s", "background": "#f4f1ea",
    "markers": {
      "paste": "0s", "cut": "2s", "and": "3s",
      "window": "4s", "subline": "5s", "look": "6s", "label": "7s",
      "sheet": "8s", "circle": "9s", "blow": "11s",
      "print": "12s", "ransom": "12.25s", "note": "15s",
      "strip": "16s", "fps": "18s", "proof": "20s", "approved": "21s", "ok": "22s", "notes": "22.5s",
      "montage": "24s", "close": "27s", "sign": "27.5s", "end": "30s"
    },
    "layers": [
      { "id": "music", "type": "audio", "src": "assets/music.mp3", "loop": true, "duration": "30s", "fadeOut": "1.6s" },

      { "id": "scenes", "type": "group", "series": true, "children": [

        { "id": "s1-paste", "type": "group", "duration": "4s", "comment": "torn riso strips slapped on, one per beat; CUT & paste in cut-out type", "children": [
          { "id": "strip", "type": "group", "width": 1200, "height": 180, "style": "$styles.slapIn",
            "repeat": { "count": 3, "delay": "0.5s" },
            "x": "=pick(i, [610, 690, 590])", "y": "=pick(i, [148, 362, 572])",
            "rotation": "=pick(i, [-4, 2.5, -1.5]) + 0.5 * noise($fx.boil * 5, i)",
            "children": [
              { "id": "strip-back", "type": "image", "src": "reels/collage-strip-${i}.svg", "width": 1200, "height": 180, "fit": "fill",
                "svgVars": { "--paper": "#fbf9f4" }, "style": "$styles.scrap" },
              { "id": "strip-print", "type": "use", "ref": "riso", "x": "=600 + pick(i, [0, -180, 140])", "y": "=90 + pick(i, [-210, 40, 230])",
                "mask": { "type": "image", "src": "reels/collage-strip-${pick(i, [1, 2, 0])}.svg", "x": 600, "y": 90, "width": 1168, "height": 152, "fit": "fill" } }
            ] },
          { "id": "cut-word", "type": "text", "text": "CUT", "style": ["$type.display", "$styles.cutout", "$styles.slapIn"], "fontSize": 300,
            "x": 430, "y": 318, "start": "@cut", "rotation": "=-4 + 0.6 * noise($fx.boil * 5, 1)" },
          { "id": "paste-word", "type": "text", "text": [{ "text": "& ", "fill": "$color.red" }, "paste."],
            "style": ["$type.italic", "$styles.cutout", "$styles.slapIn"], "fontSize": 190,
            "x": 845, "y": 548, "start": "@and", "rotation": "=2 + 0.6 * noise($fx.boil * 5, 2)" }
        ] },

        { "id": "s2-window", "type": "group", "duration": "4s", "comment": "text-shaped window into the riso print, tilting on 3 steps a second", "children": [
          { "id": "window-word", "type": "group", "y": 300, "height": 320, "perspective": 1400,
            "rotateY": "=-12 + 1.5 * floor(t * 3)", "rotateX": "=4 * noise($fx.boil * 2, 4)",
            "children": [
              { "id": "ghost", "type": "text", "text": "ANALOG", "style": "$type.display", "fontSize": 240, "fill": "$color.paper2" },
              { "id": "window-cut", "type": "group", "shadow": { "color": "#16141259", "blur": 4, "x": 3, "y": 5 }, "children": [
                { "id": "window-print", "type": "use", "ref": "riso", "props": { "ink": 4.5, "red": 0.85 }, "y": 160,
                  "mask": { "id": "window-mask", "type": "text", "text": "ANALOG", "style": "$type.display", "fontSize": 240, "y": 160,
                            "stagger": { "by": "char", "over": "0.6s" }, "enter": { "from": { "opacity": 0, "y": "0.12em" }, "motion": "slap" } } }
              ] }
            ] },
          { "id": "window-tape", "type": "rect", "style": "$styles.tape", "repeat": { "count": 2, "delay": "0.25s" },
            "x": "=pick(i, [150, 1130])", "y": "=pick(i, [186, 410])", "rotation": "=pick(i, [-34, -30])",
            "start": "0.75s", "enter": { "from": { "scale": 1.3, "opacity": 0 }, "motion": "slap" } },
          { "id": "subline", "type": "text", "text": ["moving pictures, ", { "text": "cut into type.", "italic": false, "fontWeight": 860 }],
            "style": "$type.italic", "fontSize": 62, "y": 515, "start": "@subline",
            "stagger": { "by": "word", "over": "0.45s" }, "enter": { "from": { "opacity": 0, "y": "0.25em" }, "motion": "slap" } },
          { "id": "look-note", "type": "text", "text": "look — it moves", "style": "$type.hand", "x": 1060, "y": 610, "rotation": -5,
            "start": "@look", "enter": { "type": "wipeRight", "duration": "0.4s", "ease": "linear" } },
          { "id": "look-arrow", "type": "path", "style": "$styles.pencil", "strokeWidth": 4, "x": 1112, "y": 500, "start": "@look+0.3s",
            "d": "M0,110 C8,70 26,36 62,6 M62,6 L42,10 M62,6 L60,26", "drawMode": "total",
            "drawEnd": { "from": 0, "to": 1, "duration": "0.35s", "ease": "easeOutCubic" } },
          { "id": "spec-label", "type": "group", "x": 300, "y": 620, "width": 470, "height": 58, "rotation": -2, "start": "@label",
            "style": "$styles.slapIn", "children": [
              { "id": "spec-back", "type": "image", "src": "reels/collage-strip-2.svg", "width": 470, "height": 58, "fit": "fill",
                "svgVars": { "--paper": "#fbf9f4" }, "style": "$styles.scrap" },
              { "id": "spec-text", "type": "text", "text": "mask: text — maskMode: alpha", "style": "$type.label" }
            ] }
        ] },

        { "id": "s3-sheet", "type": "group", "duration": "4s", "comment": "B&W contact sheet, grease pencil picks a frame, it blows up into colour", "children": [
          { "id": "rows", "type": "group", "stagger": { "each": "0.2s" }, "lint": { "ignore": ["offCanvas"] }, "children": [
            { "id": "row-0", "type": "use", "ref": "filmrow", "x": 630, "y": 160, "rotation": -0.8, "style": "$styles.scrap", "props": { "phase": "-6s", "first": 11 },
              "enter": { "from": { "x": "110%" }, "duration": "0.3s", "ease": "steps(4)" } },
            { "id": "row-1", "type": "use", "ref": "filmrow", "y": 360, "style": "$styles.scrap", "props": { "phase": "-4.2s", "first": 16 },
              "enter": { "from": { "x": "-110%" }, "duration": "0.3s", "ease": "steps(4)" } },
            { "id": "row-2", "type": "use", "ref": "filmrow", "x": 654, "y": 562, "rotation": 0.7, "style": "$styles.scrap", "props": { "phase": "-2.4s", "first": 21 },
              "enter": { "from": { "x": "110%" }, "duration": "0.3s", "ease": "steps(4)" } }
          ] },
          { "id": "loop", "type": "path", "style": "$styles.pencil", "x": 868, "y": 362, "start": "@circle",
            "d": "M26,68 L33,57 L42,46 L55,36 L70,28 L87,20 L107,13 L128,11 L150,10 L172,14 L192,17 L211,23 L228,31 L243,39 L257,47 L271,57 L282,67 L290,79 L294,92 L293,105 L290,117 L283,129 L272,140 L258,150 L241,158 L221,163 L202,168 L182,172 L161,174 L140,174 L118,174 L97,171 L75,167 L56,160 L40,151 L27,141 L16,130 L11,117 L8,105 L9,92 L13,81 L19,69 L26,58 L37,47 L50,38 L65,29 L83,20",
            "drawEnd": { "from": 0, "to": 1, "duration": "0.45s", "ease": "easeInOutSine" } },
          { "id": "reject", "type": "path", "style": "$styles.pencil", "drawMode": "total",
            "d": "M0,0 L64,52 M64,0 L2,54", "repeat": { "count": 2, "delay": "0.2s" },
            "x": "=pick(i, [412, 1096])", "y": "=pick(i, [160, 560])", "start": "@circle+0.55s",
            "drawEnd": { "from": 0, "to": 1, "duration": "0.2s", "ease": "linear" } },
          { "id": "pick-note", "type": "group", "x": 1092, "y": 268, "width": 250, "height": 78, "rotation": -7, "start": "@circle+0.9s",
            "style": "$styles.slapIn", "children": [
              { "id": "pick-back", "type": "image", "src": "reels/collage-tile-2.svg", "width": 250, "height": 78, "fit": "fill",
                "svgVars": { "--paper": "#fbf9f4" }, "style": "$styles.scrap" },
              { "id": "pick-text", "type": "text", "text": "this one!", "style": "$type.hand", "fontSize": 58, "y": 38,
                "enter": { "type": "wipeRight", "duration": "0.3s", "ease": "linear" } }
            ] },
          { "id": "blowup", "type": "use", "ref": "riso", "start": "-2s", "comment": "starts at 6 s so its loop lines up with the print scene's",
            "opacity": "=since('blow') >= 0 ? 1 : 0",
            "scale": "=lerp(0.1625, 1, easeInCubic(clamp((floor(since('blow') * 12) / 12 - 0.4) / 0.6, 0, 1)))",
            "x": "=lerp(868, 640, easeInCubic(clamp((floor(since('blow') * 12) / 12 - 0.4) / 0.6, 0, 1)))",
            "y": "=lerp(362, 360, easeInCubic(clamp((floor(since('blow') * 12) / 12 - 0.4) / 0.6, 0, 1)))" }
        ] },

        { "id": "s4-print", "type": "group", "duration": "4.35s", "comment": "full-frame two-colour print, ransom-note letters cut from scraps",
          "transition": { "type": "wipeUp", "duration": "0.35s", "ease": "easeInOutCubic", "edge": { "color": "#161412", "width": 16 } },
          "children": [
          { "id": "print-full", "type": "use", "ref": "riso", "scale": "=1 + 0.006 * floor(t * 4)" },
          { "id": "print-tag", "type": "group", "x": 300, "y": 96, "width": 500, "height": 62, "rotation": -3, "start": "0.5s",
            "style": "$styles.slapIn", "children": [
              { "id": "tag-back", "type": "image", "src": "reels/collage-strip-1.svg", "width": 500, "height": 62, "fit": "fill",
                "svgVars": { "--paper": "#fbf9f4" }, "style": "$styles.scrap" },
              { "id": "tag-text", "type": "text", "text": "print 02 / 15 — two drums: ink + red", "style": "$type.label" }
            ] },
          { "id": "ransom", "type": "group", "width": 120, "height": 140, "x": 640, "y": 372, "start": "@ransom",
            "repeat": { "count": 10, "layout": "grid", "cols": 5, "spacing": [126, 152], "stagger": { "each": "0.25s" } },
            "lint": { "ignore": ["invisible"] },
            "rotation": "=pick(i + floor(max(since('ransom') - 2.5, 0) * 2), [-6, 4, -2, 7, -4, 3, -7, 5, -3, 6]) + 1.2 * noise($fx.boil * 4, i)",
            "enter": { "from": { "scale": 1.5, "opacity": 0, "rotate": 10 }, "motion": "slap" },
            "children": [
              { "id": "scrap", "type": "rect", "style": "$styles.scrap",
                "width": "=pick(i, [106, 96, 112, 100, 104, 114, 98, 108, 96, 110])", "height": "=pick(i, [128, 138, 124, 134, 130, 126, 136, 128, 134, 124])",
                "fill": "=pick(i, [$color.sheet, $color.ink, $color.red, $color.paper2, $color.sheet, $color.red, $color.sheet, $color.ink, $color.paper2, $color.sheet])" },
              { "id": "glyph-grotesk", "type": "text", "text": "${pick(i, ['M', 'I', 'X', 'E', 'D', 'M', 'E', 'D', 'I', 'A'])}",
                "font": "Schibsted Grotesk", "fontWeight": 900, "fontSize": 104, "y": 74, "opacity": "=i % 4 == 0 ? 1 : 0",
                "fill": "=pick(i, [$color.ink, $color.sheet, $color.sheet, $color.ink, $color.red, $color.sheet, $color.ink, $color.sheet, $color.ink, $color.red])" },
              { "id": "glyph-serif", "type": "text", "text": "${pick(i, ['M', 'I', 'X', 'E', 'D', 'M', 'E', 'D', 'I', 'A'])}",
                "font": "Instrument Serif", "italic": true, "fontSize": 132, "y": 74, "opacity": "=i % 4 == 1 ? 1 : 0",
                "fill": "=pick(i, [$color.ink, $color.sheet, $color.sheet, $color.ink, $color.red, $color.sheet, $color.ink, $color.sheet, $color.ink, $color.red])" },
              { "id": "glyph-mono", "type": "text", "text": "${pick(i, ['M', 'I', 'X', 'E', 'D', 'M', 'E', 'D', 'I', 'A'])}",
                "font": "JetBrains Mono", "fontWeight": 700, "fontSize": 100, "y": 72, "opacity": "=i % 4 == 2 ? 1 : 0",
                "fill": "=pick(i, [$color.ink, $color.sheet, $color.sheet, $color.ink, $color.red, $color.sheet, $color.ink, $color.sheet, $color.ink, $color.red])" },
              { "id": "glyph-pixel", "type": "text", "text": "${pick(i, ['M', 'I', 'X', 'E', 'D', 'M', 'E', 'D', 'I', 'A'])}",
                "font": "Geist Pixel", "fontSize": 104, "y": 72, "opacity": "=i % 4 == 3 ? 1 : 0",
                "fill": "=pick(i, [$color.ink, $color.sheet, $color.sheet, $color.ink, $color.red, $color.sheet, $color.ink, $color.sheet, $color.ink, $color.red])" }
            ] },
          { "id": "ink-note", "type": "group", "x": 1050, "y": 618, "width": 320, "height": 96, "rotation": 3, "start": "@note",
            "style": "$styles.slapIn", "children": [
              { "id": "ink-note-back", "type": "image", "src": "reels/collage-tile-1.svg", "width": 320, "height": 96, "fit": "fill",
                "svgVars": { "--paper": "#fbf9f4" }, "style": "$styles.scrap" },
              { "id": "ink-note-text", "type": "text", "text": "two inks, one pass", "style": "$type.hand", "fontSize": 48, "y": 46 }
            ] }
        ] },

        { "id": "s5-strip", "type": "group", "duration": "4s", "comment": "a film strip running at 12 fps on a 30 fps clock, bumped by the beat", "children": [
          { "id": "every-frame", "type": "text", "text": "EVERY\nFRAME", "style": "$type.display", "fontSize": 140, "align": "left",
            "anchor": "top-left", "x": 52, "y": 64, "stagger": { "by": "line", "over": "0.25s" },
            "enter": { "from": { "opacity": 0, "x": -40 }, "motion": "slap" } },
          { "id": "clock-label", "type": "text", "text": "12 fps on a 30 fps clock: floor(t * 12) / 12", "style": "$type.label",
            "anchor": "left", "x": 56, "y": 330, "start": "0.4s", "enter": { "type": "wipeRight", "duration": "0.3s", "ease": "steps(6)" } },
          { "id": "film", "type": "group", "x": 640, "y": "=430 - 10 * beat", "width": 2100, "height": 236, "rotation": -9, "clip": true,
            "rotateX": 16, "perspective": 1600, "style": "$styles.scrap", "lint": { "ignore": ["offCanvas"] },
            "enter": { "from": { "x": "60%" }, "duration": "0.35s", "ease": "steps(5)" },
            "children": [
              { "id": "film-base", "type": "rect", "fill": "$color.ink" },
              { "id": "film-holes", "type": "image", "src": "reels/collage-sprockets.svg", "svgVars": { "--paper": "#f4f1ea" },
                "repeat": { "count": 2 }, "y": "=pick(i, [16, 220])", "x": "=1200 - mod($fx.boil * 240, 24)" },
              { "id": "cell", "type": "group", "width": 268, "height": 152, "y": 118,
                "repeat": { "count": 7, "delay": "0.45s" }, "start": "-3.2s",
                "x": "=mod(i * 300 - $fx.boil * 240, 2100) - 30", "clip": true,
                "children": [
                  { "id": "cell-print", "type": "use", "ref": "riso", "scale": 0.21, "x": 134, "y": 76,
                    "props": { "ink": 5, "red": 1.25 } }
                ] },
              { "id": "edge-no", "type": "text", "text": "▸ ${pad(i + 24, 2)}A", "font": "JetBrains Mono", "fontSize": 11, "letterSpacing": 1.4,
                "fill": "#8f8a7f", "anchor": "left", "y": 34, "repeat": { "count": 7 },
                "x": "=mod(i * 300 - $fx.boil * 240, 2100) - 160" }
            ] },
          { "id": "is-a-print", "type": "text", "text": "is a print.", "style": "$type.italic", "fontSize": 118,
            "anchor": "bottom-right", "x": 1226, "y": 668, "start": "1s", "stagger": { "by": "word", "over": "0.3s" },
            "enter": { "from": { "opacity": 0, "y": "0.2em" }, "motion": "slap" } },
          { "id": "print-line", "type": "path", "style": "$styles.pencil", "strokeWidth": 6, "x": 1004, "y": 668, "start": "2.5s",
            "d": "M0,8 C110,1 260,-2 420,5", "drawMode": "total",
            "drawEnd": { "from": 0, "to": 1, "duration": "0.3s", "ease": "easeOutCubic" } },
          { "id": "fps-stamp", "type": "group", "x": 1070, "y": 140, "width": 200, "height": 200, "rotation": -12, "start": "2s",
            "blendMode": "multiply", "maskMode": "luma",
            "mask": { "type": "image", "src": "reels/collage-grit.svg", "x": 1070, "y": 140, "width": 320, "height": 320, "rotation": 110 },
            "enter": { "from": { "scale": 1.8, "opacity": 0 }, "motion": "stamp" },
            "children": [
              { "id": "fps-ring", "type": "ellipse", "width": 184, "fill": null, "stroke": "$color.red", "strokeWidth": 5 },
              { "id": "fps-ring-2", "type": "ellipse", "width": 156, "fill": null, "stroke": "$color.red", "strokeWidth": 1.5, "dash": [3, 5] },
              { "id": "fps-num", "type": "text", "text": "12", "style": "$type.display", "fontSize": 86, "fill": "$color.red", "y": 104 },
              { "id": "fps-label", "type": "text", "text": "frames / sec", "style": "$type.label", "fontSize": 12, "fill": "$color.red", "y": 50 },
              { "id": "fps-foot", "type": "text", "text": "stop-motion", "style": "$type.label", "fontSize": 12, "fill": "$color.red", "y": 150 }
            ] }
        ] },

        { "id": "s6-proof", "type": "group", "duration": "4s", "comment": "a proof sheet flips up, gets stamped and annotated", "children": [
          { "id": "proof-sheet", "type": "group", "x": 640, "y": 634, "anchor": "bottom", "width": 860, "height": 520, "perspective": 1200,
            "rotateX": { "from": 80, "to": 0, "motion": "flip" }, "opacity": { "from": 0, "to": 1, "duration": "0.1s" },
            "children": [
              { "id": "proof-paper", "type": "rect", "fill": "$color.sheet", "stroke": "$color.ink", "strokeWidth": 1.5, "style": "$styles.scrap" },
              { "id": "proof-label", "type": "text", "text": "proof no. 03 — ink + pencil red — 1280 × 720", "style": "$type.label", "fontSize": 12,
                "anchor": "left", "x": 28, "y": 34 },
              { "id": "proof-rule", "type": "rect", "anchor": "left", "x": 28, "y": 52, "width": 804, "height": 1.5, "fill": "$color.ink" },
              { "id": "proof-tile", "type": "use", "ref": "riso", "scale": 0.27, "x": 201, "y": 172, "props": { "ink": 4, "red": 1.2 } },
              { "id": "proof-photo", "type": "use", "ref": "photo", "scale": 0.27, "x": 201, "y": 386 },
              { "id": "proof-frames", "type": "rect", "fill": null, "stroke": "$color.ink", "strokeWidth": 1.5, "width": 346, "height": 194,
                "x": 201, "y": "=pick(i, [172, 386])", "repeat": { "count": 2 } },
              { "id": "proof-head", "type": "text", "text": "Every frame,", "style": "$type.display", "fontSize": 62, "anchor": "left", "x": 408, "y": 112 },
              { "id": "proof-italic", "type": "text", "text": "from data.", "style": "$type.italic", "fontSize": 62, "anchor": "left", "x": 408, "y": 172 },
              { "id": "proof-body", "type": "text", "text": "120 bpm · 30 fps · 1280×720\none json file, no timeline\nrendered frame by frame",
                "style": "$type.label", "fontSize": 13, "lineHeight": 1.7, "align": "left", "anchor": "top-left", "x": 410, "y": 236 },
              { "id": "proof-folio", "type": "text", "text": "${pad(floor(gt * 30), 4)}", "font": "JetBrains Mono", "fontSize": 12, "fill": "$color.mute",
                "anchor": "bottom-right", "x": 832, "y": 494 }
            ] },
          { "id": "proof-tape", "type": "rect", "style": "$styles.tape", "repeat": { "count": 2, "delay": "0.15s" },
            "x": "=pick(i, [222, 1058])", "y": 120, "rotation": "=pick(i, [-36, 33])", "start": "0.6s",
            "enter": { "from": { "scale": 1.3, "opacity": 0 }, "motion": "slap" } },
          { "id": "approved", "type": "group", "x": 905, "y": 520, "width": 360, "height": 120, "rotation": -11, "start": "@approved",
            "blendMode": "multiply", "maskMode": "luma",
            "mask": { "type": "image", "src": "reels/collage-grit.svg", "x": 905, "y": 520, "width": 420, "height": 420 },
            "enter": { "from": { "scale": 1.9, "opacity": 0 }, "motion": "stamp" },
            "children": [
              { "id": "approved-box", "type": "rect", "width": 350, "height": 104, "fill": null, "stroke": "$color.red", "strokeWidth": 6, "cornerRadius": 4 },
              { "id": "approved-word", "type": "text", "text": "APPROVED", "style": "$type.display", "fontSize": 57, "letterSpacing": -0.5, "fill": "$color.red", "y": 62 }
            ] },
          { "id": "crumbs", "type": "particles", "x": 905, "y": 520, "width": 300, "height": 80, "start": "@approved+0.08s", "duration": "1.4s",
            "emitter": { "rate": 0, "burst": 30, "lifetime": "1.1s", "speed": 420, "speedRandom": 0.6, "angle": 0, "spread": 220, "gravity": 1000,
                         "size": 11, "endSize": 5, "colors": ["#161412", "#c92a26", "#d8d1c1"], "shape": "square", "spin": 540, "seed": 7 } },
          { "id": "ok-stamp", "type": "group", "x": 1086, "y": 196, "width": 190, "height": 190, "rotation": 14, "start": "@ok",
            "blendMode": "multiply", "maskMode": "luma",
            "mask": { "type": "image", "src": "reels/collage-grit.svg", "x": 1086, "y": 196, "width": 300, "height": 300, "rotation": 40 },
            "enter": { "from": { "scale": 1.8, "opacity": 0 }, "motion": "stamp" },
            "children": [
              { "id": "ok-ring", "type": "ellipse", "width": 176, "fill": null, "stroke": "$color.red", "strokeWidth": 5 },
              { "id": "ok-ring-2", "type": "ellipse", "width": 150, "fill": null, "stroke": "$color.red", "strokeWidth": 1.5 },
              { "id": "ok-word", "type": "text", "text": "OK", "style": "$type.display", "fontSize": 70, "fill": "$color.red", "y": 100 },
              { "id": "ok-label", "type": "text", "text": "to print", "style": "$type.label", "fontSize": 12, "fill": "$color.red", "y": 54 },
              { "id": "ok-date", "type": "text", "text": "22 · 11", "style": "$type.label", "fontSize": 12, "fill": "$color.red", "y": 142 }
            ] },
          { "id": "data-loop", "type": "path", "style": "$styles.pencil", "strokeWidth": 4, "x": 760, "y": 286, "scaleX": 1.12, "scaleY": 0.48,
            "start": "@notes",
            "d": "M26,68 L33,57 L42,46 L55,36 L70,28 L87,20 L107,13 L128,11 L150,10 L172,14 L192,17 L211,23 L228,31 L243,39 L257,47 L271,57 L282,67 L290,79 L294,92 L293,105 L290,117 L283,129 L272,140 L258,150 L241,158 L221,163 L202,168 L182,172 L161,174 L140,174 L118,174 L97,171 L75,167 L56,160 L40,151 L27,141 L16,130 L11,117 L8,105 L9,92 L13,81 L19,69 L26,58 L37,47 L50,38 L65,29 L83,20",
            "drawEnd": { "from": 0, "to": 1, "duration": "0.4s", "ease": "easeInOutSine" } },
          { "id": "grain-note", "type": "text", "text": "more grain?", "style": "$type.hand", "fontSize": 46, "x": 112, "y": 470, "rotation": -9,
            "start": "@notes+0.4s", "enter": { "type": "wipeRight", "duration": "0.35s", "ease": "linear" } },
          { "id": "grain-arrow", "type": "path", "style": "$styles.pencil", "strokeWidth": 3.5, "x": 168, "y": 528, "start": "@notes+0.7s",
            "d": "M0,0 C20,18 40,22 66,20 M66,20 L50,10 M66,20 L52,32", "drawMode": "total",
            "drawEnd": { "from": 0, "to": 1, "duration": "0.3s", "ease": "easeOutCubic" } }
        ] },

        { "id": "s7-montage", "type": "group", "duration": "3.5s", "comment": "climax: paper squares flip on every beat over the print, one word per beat", "children": [
          { "id": "montage-print", "type": "use", "ref": "riso", "props": { "ink": 5.5, "red": 1.35 }, "scale": "=1.04 + 0.03 * beat" },
          { "id": "swatch", "type": "group", "width": 176, "height": 160, "x": 640, "y": 360, "style": "$styles.scrap",
            "repeat": { "count": 40, "layout": "grid", "cols": 8, "spacing": [160, 144] },
            "rotation": "=3 * noise(i * 1.7, floor(since('montage') * 2))",
            "scale": "=since('close') > rand(i + 3) * 0.75 ? 1.08 : 1",
            "children": [
              { "id": "swatch-paper", "type": "rect",
                "fill": "=since('close') > rand(i + 3) * 0.75 ? $color.paper : pick(floor(rand(i * 13 + floor(since('montage') * 2) * 7) * 7), [$color.sheet, $color.ink, $color.red, $color.clear, $color.clear, $color.clear, $color.paper2])",
                "mask": { "type": "image", "src": "reels/collage-tile-${i % 4}.svg", "width": 176, "height": 160, "fit": "fill" } }
            ] },
          { "id": "beat-word", "type": "text", "style": "$type.display", "fontSize": 210, "padding": [0, 26],
            "shadow": { "color": "#16141270", "blur": 10, "x": 5, "y": 10 },
            "text": "${pick(floor(since('montage') * 2), ['CUT.', 'TEAR.', 'GLUE.', 'PRINT.', 'CUT.', 'PLAY.', 'STOP.'])}",
            "background": "=pick(floor(since('montage') * 2), [$color.sheet, $color.ink, $color.red, $color.sheet, $color.ink, $color.red, $color.red])",
            "fill": "=pick(floor(since('montage') * 2), [$color.ink, $color.sheet, $color.sheet, $color.ink, $color.sheet, $color.sheet, $color.sheet])",
            "rotation": "=pick(floor(since('montage') * 2), [-4, 3, -2, 5, -5, 2, -3]) + 0.6 * noise($fx.boil * 5, 3)",
            "scale": "=1 + 0.07 * beat", "y": 372 }
        ] },

        { "id": "s8-sign", "type": "group", "duration": "2.5s", "comment": "sign-off, bookending the open: a torn riso strip slaps down, the mark stamps on it, the wordmark is pasted over", "children": [
          { "id": "sign-strip", "type": "group", "width": 1240, "height": 250, "x": 640, "y": 318, "rotation": -2.5, "style": "$styles.slapIn",
            "children": [
              { "id": "sign-strip-back", "type": "image", "src": "reels/collage-strip-0.svg", "width": 1240, "height": 250, "fit": "fill",
                "svgVars": { "--paper": "#fbf9f4" }, "style": "$styles.scrap" },
              { "id": "sign-strip-print", "type": "use", "ref": "riso", "x": 560, "y": 150, "props": { "ink": 5.5, "red": 1.3 },
                "mask": { "type": "image", "src": "reels/collage-strip-1.svg", "x": 620, "y": 125, "width": 1204, "height": 218, "fit": "fill" } }
            ] },
          { "id": "sign-tape", "type": "rect", "style": "$styles.tape", "repeat": { "count": 2, "delay": "0.1s" },
            "x": "=pick(i, [52, 1226])", "y": "=pick(i, [232, 390])", "rotation": "=pick(i, [-58, -62])",
            "start": "0.1s", "enter": { "from": { "scale": 1.3, "opacity": 0 }, "motion": "slap" } },
          { "id": "lockup", "type": "group", "y": 318, "height": 220, "rotation": "=-2.5 + 0.5 * noise($fx.boil * 5, 9)",
            "layout": { "direction": "row", "gap": 34 }, "children": [
            { "id": "mark", "type": "image", "src": "assets/logo.svg", "width": 176, "start": "0.15s", "style": "$styles.scrap",
              "enter": { "from": { "scale": 1.7, "rotate": -14, "opacity": 0 }, "motion": "stamp" } },
            { "id": "wordmark", "type": "text", "text": "vidmake", "style": ["$type.display", "$styles.cutout"], "fontSize": 168, "start": "0.3s",
              "stagger": { "by": "char", "over": "0.3s" }, "enter": { "from": { "opacity": 0, "y": "0.15em", "scale": 1.2 }, "motion": "slap" } }
          ] },
          { "id": "sign-tag", "type": "text", "text": "analog collage — cut, printed & signed in one json file", "style": "$type.label", "fontSize": 15,
            "anchor": "left", "x": 236, "y": 532, "start": "0.8s",
            "enter": { "type": "wipeRight", "duration": "0.3s", "ease": "steps(8)" } },
          { "id": "sign-line", "type": "path", "style": "$styles.pencil", "strokeWidth": 4, "x": 531, "y": 552, "start": "1s",
            "d": "M0,6 C130,1 360,-1 592,4", "drawMode": "total",
            "drawEnd": { "from": 0, "to": 1, "duration": "0.3s", "ease": "easeOutCubic" } },
          { "id": "fin", "type": "text", "text": "fin.", "style": "$type.hand", "fill": "$color.ink2", "fontSize": 64, "x": 1010, "y": 540, "rotation": -6,
            "start": "1.2s", "enter": { "type": "wipeRight", "duration": "0.25s", "ease": "linear" } }
        ] }
      ] },

      { "id": "margins", "type": "group", "end": "@sign", "comment": "edge print: slug, frame counter, figure label, beat ticker", "children": [
        { "id": "slug", "type": "text", "text": "vidmake — analog collage — reel 02", "style": "$type.label", "fontSize": 12,
          "background": "$color.sheet", "padding": [4, 8], "anchor": "left", "x": 32, "y": 30 },
        { "id": "counter", "type": "text", "text": "frame ${pad(gf, 3)} / 900", "style": "$type.label", "fontSize": 12,
          "background": "$color.sheet", "padding": [4, 8], "anchor": "right", "x": 1248, "y": 30 },
        { "id": "fig", "type": "text", "style": "$type.label", "fontSize": 12, "background": "$color.sheet", "padding": [4, 8], "anchor": "left", "x": 32, "y": 690,
          "text": "fig. ${pad(floor(gt / 4) + 1, 2)} — ${pick(floor(gt / 4), ['paste-up', 'window', 'contact sheet', 'two-colour print', 'film strip', 'proof', 'montage'])}" },
        { "id": "ticker", "type": "rect", "width": 14, "height": 14, "x": 1192, "y": 690, "stroke": "$color.ink", "strokeWidth": 1.5,
          "repeat": { "count": 4, "layout": "row", "spacing": 20 },
          "fill": "=floor(gt * 2) % 4 == i ? $color.red : $color.sheet" }
      ] },

      { "id": "paper-tex", "type": "image", "src": "reels/collage-paper.svg", "width": 1320, "height": 760, "blendMode": "multiply", "opacity": 0.75,
        "x": "=640 + 8 * noise($fx.gboil * 3, 1)", "y": "=360 + 8 * noise($fx.gboil * 3, 2)", "comment": "paper fibre boiling at 12 fps over everything" }
    ]
  }, {
    "id": "riso", "description": "Component: assets/clip.mp4 as a two-colour risograph. Each pass is the clip in greyscale, contrast-crushed with a color-burn and inked with screen; the red drum is misregistered at 12 fps.",
    "width": 1280, "height": 720, "duration": "30s", "props": { "ink": 5, "red": 1.3 },
    "layers": [
      { "id": "riso-paper", "type": "rect", "fill": "$color.sheet" },
      { "id": "red-pass", "type": "group", "blendMode": "multiply", "x": "=646 + 5 * noise($fx.boil * 6, 2)", "y": "=363 + 3 * noise($fx.boil * 6, 5)", "children": [
        { "id": "red-src", "type": "video", "src": "assets/clip.mp4", "muted": true, "loop": true, "width": 1472, "height": 828, "saturation": 0, "brightness": "{{red}}" },
        { "id": "red-burn", "type": "rect", "fill": "#808080", "blendMode": "color-burn" },
        { "id": "red-drum", "type": "rect", "fill": "$color.red", "blendMode": "screen" }
      ] },
      { "id": "ink-pass", "type": "group", "blendMode": "multiply", "children": [
        { "id": "ink-src", "type": "video", "src": "assets/clip.mp4", "muted": true, "loop": true, "width": 1472, "height": 828, "saturation": 0, "brightness": "{{ink}}" },
        { "id": "ink-burn", "type": "rect", "fill": "#808080", "blendMode": "color-burn" },
        { "id": "ink-drum", "type": "rect", "fill": "$color.ink", "blendMode": "screen" }
      ] }
    ]
  }, {
    "id": "photo", "description": "Component: assets/photo.jpg as a red duotone under an ink halftone screen.",
    "width": 1280, "height": 720, "duration": "30s",
    "layers": [
      { "id": "photo-paper", "type": "rect", "fill": "$color.sheet" },
      { "id": "photo-duo", "type": "group", "blendMode": "multiply", "children": [
        { "id": "photo-src", "type": "image", "src": "assets/photo.jpg", "anchor": "top-left", "x": 0, "y": 0, "width": 2560, "height": 1440, "saturation": 0, "brightness": 2.2 },
        { "id": "photo-burn", "type": "rect", "fill": "#808080", "blendMode": "color-burn" },
        { "id": "photo-drum", "type": "rect", "fill": "$color.red", "blendMode": "screen" }
      ] },
      { "id": "photo-dots", "type": "image", "src": "reels/collage-halftone.svg", "width": 1280, "height": 720, "blendMode": "multiply", "maskMode": "luma",
        "mask": { "type": "rect", "fill": { "type": "linear", "angle": 120, "stops": ["#000000", "#ffffff"] } } }
    ]
  }, {
    "id": "filmrow", "description": "Component: one strip of a contact sheet, five greyscale frames of the clip at staggered times.",
    "width": 1280, "height": 196, "duration": "30s", "props": { "phase": "-6s", "first": 1 },
    "layers": [
      { "id": "row-base", "type": "rect", "width": 1180, "height": 196, "fill": "$color.ink" },
      { "id": "row-holes", "type": "image", "src": "reels/collage-sprockets.svg", "svgVars": { "--paper": "#f4f1ea" }, "width": 1164, "height": 14, "fit": "cover",
        "repeat": { "count": 2 }, "y": "=pick(i, [12, 183])" },
      { "id": "row-frame", "type": "video", "src": "assets/clip.mp4", "muted": true, "loop": true, "width": 208, "height": 117, "saturation": 0, "brightness": "=pick(i, [1.05, 0.82, 1.3, 0.92, 1.18])",
        "x": 640, "y": 100, "start": "{{phase}}", "repeat": { "count": 5, "layout": "row", "spacing": 228, "delay": "0.36s" } },
      { "id": "row-gate", "type": "rect", "width": 210, "height": 119, "fill": null, "stroke": "#8a857a", "strokeWidth": 1.5,
        "x": 640, "y": 100, "repeat": { "count": 5, "layout": "row", "spacing": 228 } },
      { "id": "row-edge", "type": "text", "text": "▸ ${pad(i + {{first}}, 2)}A", "font": "JetBrains Mono", "fontSize": 10, "letterSpacing": 1.2, "fill": "#8f8a7f",
        "anchor": "left", "x": 536, "y": 31, "repeat": { "count": 5, "layout": "row", "spacing": 228 } }
    ]
  }]
}
