{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "endCard", "description": "End card: a stack layout with a thank-you, two next-up tiles and a call to action",
    "width": 1280, "height": 720, "fps": 30, "duration": "5s",
    "background": { "type": "radial", "center": [0.5, 0.3], "radius": 1, "stops": ["#f4f1ea", "#e9e4d8"] },
    "layers": [
      { "id": "stack", "type": "group", "layout": { "direction": "column", "gap": 36 }, "exit": "fade",
        "children": [
          { "id": "thanks", "type": "text", "text": "Thanks for watching", "font": "Schibsted Grotesk", "fontWeight": 860,
            "fontSize": 76, "letterSpacing": -3.5, "fill": "#161412", "enter": "fadeUp" },
          { "id": "tiles", "type": "group", "width": 1000, "height": 230, "layout": { "direction": "row", "gap": 32 },
            "children": [
              { "id": "tile", "type": "group", "width": 400, "height": 225, "repeat": { "count": 2, "delay": "0.15s" },
                "start": "0.3s", "enter": { "type": "fadeUp", "distance": 30 },
                "children": [
                  { "id": "card", "type": "rect", "cornerRadius": 4, "fill": "=pick(i, ['#fbf9f4', '#e9e4d8'])",
                    "stroke": "#161412", "strokeWidth": 2 },
                  { "id": "play", "type": "polygon", "sides": 3, "width": 44, "rotation": 90, "y": "42%", "fill": "#161412" },
                  { "id": "next", "type": "text", "text": "${pick(i, ['Up next: captions', 'Up next: recipes'])}",
                    "font": "JetBrains Mono", "fontSize": 15, "letterSpacing": 1.8, "uppercase": true, "fill": "#4a4640", "y": "75%" }
                ] }
            ] },
          { "id": "cta", "type": "text", "text": "Subscribe for more", "font": "Schibsted Grotesk", "fontSize": 26, "fontWeight": 700,
            "fill": "#fbf9f4", "background": "#c92a26", "padding": 18, "cornerRadius": 2, "start": "0.8s", "enter": "pop" }
        ] }
    ]
  }]
}
