{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "markers", "description": "Markers name the beats once; layers start at @title, draw on at @underline and read since('underline')",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s", "background": "#f4f1ea",
    "markers": { "title": "0.3s", "underline": "@title+0.7s", "sub": "@underline+0.6s", "out": "3.4s" },
    "layers": [
      { "id": "title", "type": "text", "text": "Name the beats", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 116,
        "letterSpacing": -5, "fill": "#161412", "y": 250, "start": "@title", "end": "@out", "enter": "fadeUp", "exit": "fade",
        "decoration": { "type": "underline", "color": "#c92a26", "thickness": 6, "offset": 10,
          "progress": { "from": 0, "to": 1, "start": "@underline", "duration": "0.5s", "ease": "easeOutCubic" } } },
      { "id": "sub", "type": "text", "text": "then point at them from any layer", "font": "Schibsted Grotesk", "fontSize": 40, "fill": "#4a4640",
        "y": 380, "start": "@sub", "end": "@out", "enter": "fadeUp", "exit": "fade" },
      { "id": "clock", "type": "text", "text": "since('underline') = ${since('underline'):2}s", "font": "JetBrains Mono", "fontSize": 22,
        "fill": "#161412", "y": 470 },
      { "id": "rail", "type": "rect", "anchor": "left", "x": 100, "y": 600, "width": 1080, "height": 2, "fill": "#d8d1c1" },
      { "id": "tick", "type": "rect", "width": 2, "height": 26, "y": 600, "fill": "#161412",
        "x": "=100 + 1080 * pick(i, [marker('title'), marker('underline'), marker('sub'), marker('out')]) / 4",
        "repeat": 4 },
      { "id": "tick-name", "type": "text", "text": "@${pick(i, ['title', 'underline', 'sub', 'out'])}", "font": "JetBrains Mono", "fontSize": 16,
        "fill": "#8a857a", "y": 640, "x": "=100 + 1080 * pick(i, [marker('title'), marker('underline'), marker('sub'), marker('out')]) / 4",
        "repeat": 4 },
      { "id": "playhead", "type": "rect", "width": 3, "height": 46, "y": 600, "fill": "#c92a26", "x": "=100 + 1080 * gt / 4" }
    ]
  }]
}
