{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk-Italic.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "stagger", "description": "Stagger by char, by word and by line, then a typewriter with an attached cursor",
    "width": 720, "height": 1280, "fps": 30, "duration": "6s",
    "background": { "type": "linear", "angle": 180, "stops": ["#f4f1ea", "#e9e4d8"] },
    "layers": [
      { "id": "big", "type": "text", "text": "Letters", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 168,
        "letterSpacing": -8, "fill": "#161412", "y": "22%",
        "stagger": { "by": "char", "type": "fadeUp", "each": "60ms", "duration": "0.8s", "distance": 120 }, "exit": "fade" },
      { "id": "words", "type": "text", "text": "arrive one word at a time,", "font": "Schibsted Grotesk", "italic": true, "fontSize": 52,
        "letterSpacing": -1, "fill": "#161412", "y": "36%", "start": "0.7s",
        "stagger": { "by": "word", "type": "pop", "each": "120ms" }, "exit": "fade" },
      { "id": "rule", "type": "rect", "width": 120, "height": 3, "fill": "#c92a26", "y": "45%", "start": "1.4s",
        "enter": "wipeRight", "exit": "fade" },
      { "id": "lines", "type": "text", "font": "Schibsted Grotesk", "fontSize": 34, "lineHeight": 1.5, "fill": "#4a4640", "y": "56%",
        "text": "or line by line, when the\nsentence is long enough\nto deserve a little patience.",
        "start": "1.6s", "stagger": { "by": "line", "type": "fadeLeft", "each": "0.25s", "duration": "0.6s" }, "exit": "fade" },
      { "id": "typed", "type": "text", "text": "and some get typed.", "font": "JetBrains Mono", "fontSize": 36,
        "fill": "#161412", "y": "72%", "start": "2.8s", "enter": { "type": "typewriter", "duration": "1.4s", "ease": "linear" },
        "exit": "fade" },
      { "id": "cursor", "type": "rect", "width": 18, "height": 4, "fill": "#c92a26", "attach": "typed", "x": 12, "y": 18,
        "start": "2.8s", "opacity": "=fract(t * 1.6) < 0.5 ? 1 : 0", "exit": "fade", "lint": { "ignore": ["invisible"] } },
      { "id": "foot", "type": "text", "text": "stagger · typewriter · attach", "font": "JetBrains Mono", "fontSize": 18, "letterSpacing": 2,
        "uppercase": true, "fill": "#8a857a", "y": "90%", "start": "0.4s", "enter": "fade", "exit": "fade" }
    ]
  }]
}
