{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono-Italic.ttf" }
  ],
  "compositions": [{
    "id": "code", "description": "Rich text for syntax colors, a typewriter, a cursor attached to the last character, then the layer it describes",
    "width": 1280, "height": 720, "fps": 30, "duration": "5.5s",
    "background": { "type": "linear", "angle": 160, "stops": ["#f4f1ea", "#e9e4d8"] },
    "layers": [
      { "id": "window", "type": "rect", "width": 900, "height": 250, "y": 245, "cornerRadius": 4, "fill": "#fbf9f4",
        "stroke": "#161412", "strokeWidth": 1.5, "enter": "fadeUp" },
      { "id": "light", "type": "ellipse", "width": 12, "x": 236, "y": 146, "fill": "=pick(i, ['#161412', '#8a857a', '#d8d1c1'])",
        "repeat": { "count": 3, "layout": "row", "spacing": 22 }, "enter": "fadeUp" },
      { "id": "file", "type": "text", "text": "title.json", "font": "JetBrains Mono", "fontSize": 13, "letterSpacing": 1.6,
        "uppercase": true, "fill": "#8a857a", "y": 146, "enter": "fadeUp" },
      { "id": "code", "type": "text", "font": "JetBrains Mono", "fontSize": 26, "lineHeight": 1.6, "align": "left",
        "whiteSpace": "pre", "anchor": "top-left", "x": 236, "y": 176, "fill": "#8a857a",
        "text": [
          "{ ", { "text": "\"type\"", "fill": "#4a4640" }, ": ", { "text": "\"text\"", "fill": "#161412", "fontWeight": 700 }, ",\n",
          "  ", { "text": "\"text\"", "fill": "#4a4640" }, ": ", { "text": "\"Launch day\"", "fill": "#161412", "fontWeight": 700 }, ",\n",
          "  ", { "text": "\"fontSize\"", "fill": "#4a4640" }, ": ", { "text": "120", "fill": "#161412", "italic": true }, ",\n",
          "  ", { "text": "\"enter\"", "fill": "#4a4640" }, ": ", { "text": "\"pop\"", "fill": "#161412", "fontWeight": 700 }, " }",
          { "text": "  // that's the whole layer", "italic": true }
        ],
        "start": "0.4s", "enter": { "type": "typewriter", "duration": "3s", "ease": "linear" } },
      { "id": "cursor", "type": "rect", "width": 3, "height": 34, "fill": "#c92a26", "attach": "code", "x": 5,
        "start": "0.4s", "opacity": "=fract(t * 1.25) < 0.55 ? 1 : 0.15" },
      { "id": "preview", "type": "text", "text": "Launch day", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 120,
        "letterSpacing": -5, "fill": "#161412", "enter": "pop", "y": 545, "start": "3.5s" }
    ]
  }]
}
