{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "vertical", "description": "Vertical 9:16 template: props for the hook and handle, framed clip, captions, progress bar",
    "width": 720, "height": 1280, "fps": 30, "duration": "5s", "background": "#f4f1ea",
    "props": { "hook": "Three things nobody tells you about video", "handle": "@vidmake" },
    "layers": [
      { "id": "hook", "type": "text", "text": "{{hook}}", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 64, "letterSpacing": -2.8,
        "fill": "#161412", "maxWidth": 600, "lineHeight": 0.96, "anchor": "top", "y": 120, "stagger": { "by": "word", "type": "fadeUp", "each": "60ms" } },
      { "id": "frame", "type": "video", "src": "assets/clip.mp4", "width": 600, "height": 600, "fit": "cover", "y": 680,
        "cornerRadius": 6, "muted": true, "saturation": 0.15, "brightness": 0.4, "start": "0.3s", "enter": "fadeUp" },
      { "id": "subs", "type": "captions", "font": "Schibsted Grotesk", "fontSize": 38, "fontWeight": 800, "fill": "#fbf9f4",
        "highlight": "#c92a26", "stroke": "#161412", "strokeWidth": 8, "y": 900, "maxWidth": 440,
        "items": [
          { "text": "Every frame is a function of time.", "start": "0.6s", "end": "2.6s" },
          { "text": "So you can check any of them.", "start": "2.8s", "end": "4.8s" }
        ] },
      { "id": "handle", "type": "text", "text": "{{handle}}", "font": "JetBrains Mono", "fontSize": 22, "letterSpacing": 2, "fill": "#8a857a", "y": 1120 },
      { "id": "progress", "type": "rect", "anchor": "left", "x": 0, "y": 1276, "height": 8, "fill": "#161412",
        "width": { "from": 0, "to": 720, "duration": "5s", "ease": "linear" } }
    ]
  }]
}
