{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "cards", "description": "A repeated group: every child sees the copy's i and n, so one card definition makes four",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s", "background": "#f4f1ea",
    "layers": [
      { "id": "card", "type": "group", "width": 250, "height": 320, "x": 640, "y": 360,
        "repeat": { "count": 4, "layout": "row", "spacing": 280, "delay": "0.15s" }, "enter": "fadeUp", "exit": "fade",
        "children": [
          { "id": "bg", "type": "rect", "cornerRadius": 4, "fill": "#fbf9f4", "stroke": "#161412", "strokeWidth": 1.5 },
          { "id": "num", "type": "text", "text": "${pad(i + 1, 2)} / ${pad(n, 2)}", "font": "JetBrains Mono", "fontSize": 17,
            "letterSpacing": 2, "fill": "#8a857a", "y": 46 },
          { "id": "dot", "type": "ellipse", "width": 90, "y": 150, "fill": "=pick(i, ['#161412', '#d8d1c1', '#1f5fb0', '#c92a26'])" },
          { "id": "word", "type": "text", "text": "${pick(i, ['Write', 'Validate', 'Look', 'Render'])}", "font": "Schibsted Grotesk",
            "fontWeight": 860, "fontSize": 40, "letterSpacing": -1.6, "fill": "#161412", "y": 262 }
        ] }
    ]
  }]
}
