{
  "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": "layout", "description": "A column layout re-measured every frame: when the headline wraps to more lines, everything below moves down",
    "width": 1280, "height": 720, "fps": 30, "duration": "6s",
    "background": { "type": "linear", "angle": 120, "stops": ["#f4f1ea", "#e9e4d8"] },
    "layers": [
      { "id": "card", "type": "group", "width": 1000, "height": 600, "anchor": "left", "x": 120, "y": "50%",
        "layout": { "direction": "column", "gap": 26, "align": "start", "justify": "center" },
        "children": [
          { "id": "kicker", "type": "text", "text": "Stack layout", "font": "JetBrains Mono", "fontSize": 15, "letterSpacing": 1.8,
            "uppercase": true, "fill": "#8a857a", "enter": "fadeUp" },
          { "id": "h1", "type": "text", "text": "One line.", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 68,
            "letterSpacing": -3, "align": "left", "fill": "#161412", "duration": "2s", "enter": "fadeUp", "exit": "fade" },
          { "id": "h2", "type": "text", "text": "Now the headline wraps onto a second line.", "font": "Schibsted Grotesk",
            "fontWeight": 860, "fontSize": 68, "letterSpacing": -3, "lineHeight": 0.95, "align": "left", "maxWidth": 800,
            "fill": "#161412", "start": "2s", "duration": "2s", "enter": "fadeUp", "exit": "fade" },
          { "id": "h3", "type": "text", "text": "And three: nothing below it was given a y coordinate.", "font": "Schibsted Grotesk",
            "italic": true, "fontSize": 68, "letterSpacing": -3, "lineHeight": 0.95, "align": "left", "maxWidth": 640,
            "fill": "#161412", "start": "4s", "enter": "fadeUp" },
          { "id": "sub", "type": "text", "text": "Each child is measured every frame.", "font": "Schibsted Grotesk", "fontSize": 24,
            "fill": "#4a4640", "start": "0.2s", "enter": "fadeUp" },
          { "id": "chips", "type": "group", "width": 600, "height": 48, "start": "0.35s", "enter": "fadeUp",
            "layout": { "direction": "row", "gap": 12, "justify": "start" },
            "children": [
              { "id": "chip", "type": "text", "repeat": 3, "text": "${pick(i, ['column', 'row', 'gap: 26'])}",
                "font": "JetBrains Mono", "fontSize": 17, "fill": "#161412", "background": "#fbf9f4",
                "padding": 12, "cornerRadius": 3 }
            ] }
        ] },
      { "id": "rule", "type": "rect", "anchor": "left", "x": 96, "y": "50%", "width": 2, "height": 600, "fill": "#c92a26" }
    ]
  }]
}
