{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "bars", "description": "Bar chart from one repeated layer: heights from a list, staggered spring-in",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s", "background": "#f4f1ea",
    "layers": [
      { "id": "heading", "type": "text", "text": "Renders per week", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 64,
        "letterSpacing": -2.8, "fill": "#161412", "y": 110, "enter": "fadeUp" },
      { "id": "axis", "type": "rect", "x": "50%", "y": 582, "width": 900, "height": 2, "fill": "#161412" },
      { "id": "bar", "type": "rect", "width": 64, "anchor": "bottom", "x": "50%", "y": 580,
        "repeat": { "count": 8, "layout": "row", "spacing": 108, "delay": "0.08s" },
        "height": "=pick(i, [120, 190, 160, 250, 230, 310, 290, 370]) * easeOutBack(clamp(t / 0.7, 0, 1))",
        "fill": "=i == n - 1 ? '#c92a26' : '#4a4640'" },
      { "id": "week", "type": "text", "text": "W${i + 1}", "font": "JetBrains Mono", "fontSize": 16, "letterSpacing": 2, "fill": "#8a857a",
        "x": "50%", "y": 612, "repeat": { "count": 8, "layout": "row", "spacing": 108 } }
    ]
  }]
}
