{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "values", "description": "A repeated group of stat tiles: pick() chooses labels and colors, fmt() and pad() format the counters",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s",
    "background": "#f4f1ea",
    "layers": [
      { "id": "heading", "type": "text", "text": "This week in the render farm", "font": "Schibsted Grotesk", "fontWeight": 860,
        "fontSize": 54, "letterSpacing": -2.5, "fill": "#161412", "y": "17%", "enter": "fadeUp" },
      { "id": "tile", "type": "group", "width": 340, "height": 300, "x": "50%", "y": "56%",
        "repeat": { "count": 3, "layout": "row", "spacing": 370, "delay": "0.12s" }, "enter": "fadeUp",
        "children": [
          { "id": "card", "type": "rect", "cornerRadius": 4, "fill": "#fbf9f4", "stroke": "#161412", "strokeWidth": 1.5 },
          { "id": "bar", "type": "rect", "anchor": "left", "x": 32, "y": 40, "height": 4,
            "width": { "from": 0, "to": 60, "duration": "0.8s", "ease": "easeOutCubic" },
            "fill": "=pick(i, ['#161412', '#1f5fb0', '#c92a26'])" },
          { "id": "label", "type": "text", "text": "${pad(i + 1, 2)} · ${pick(i, ['frames rendered', 'layers inspected', 'warnings left'])}",
            "font": "JetBrains Mono", "fontSize": 13, "letterSpacing": 1.6, "uppercase": true, "fill": "#8a857a",
            "anchor": "left", "x": 32, "y": 76 },
          { "id": "value", "type": "text", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 60, "letterSpacing": -1,
            "anchor": "left", "x": 30, "y": 170,
            "text": "${fmt(round(pick(i, [1250000, 48210, 312]) * easeOutCubic(clamp(t / 2, 0, 1))))}",
            "fill": "=lerp('#8a857a', pick(i, ['#161412', '#1f5fb0', '#c92a26']), clamp(t / 2, 0, 1))" },
          { "id": "delta", "type": "text", "text": "${pick(i, ['+18%', '+4.2%', '−63%'])} this week", "font": "Schibsted Grotesk",
            "fontSize": 18, "fill": "#4a4640", "anchor": "left", "x": 32, "y": 250, "start": "1.6s", "enter": "fade" }
        ] }
    ]
  }]
}
