{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [
    {
      "id": "main", "description": "One lowerThird composition, used twice with different props",
      "width": 1280, "height": 720, "fps": 30, "duration": "5s",
      "background": { "type": "radial", "center": [0.6, 0.35], "radius": 0.9, "stops": ["#f4f1ea", "#e9e4d8"] },
      "layers": [
        { "id": "ada", "type": "use", "ref": "lowerThird", "anchor": "bottom-left", "x": 60, "y": 660, "start": "0.2s",
          "props": { "name": "Ada Lovelace", "role": "Analyst, Analytical Engine", "color": "#c92a26" } },
        { "id": "grace", "type": "use", "ref": "lowerThird", "anchor": "bottom-left", "x": 60, "y": 660, "start": "2.6s",
          "props": { "name": "Grace Hopper", "role": "Compiler pioneer", "color": "#1f5fb0" } }
      ]
    },
    {
      "id": "lowerThird", "description": "Lower third. Props: name, role, color",
      "width": 640, "height": 140, "fps": 30, "duration": "2.2s",
      "props": { "name": "Name", "role": "Role", "color": "#161412" },
      "layers": [
        { "id": "plate", "type": "rect", "cornerRadius": 2, "fill": "#fbf9f4", "stroke": "#161412", "strokeWidth": 2,
          "enter": { "type": "wipeRight", "duration": "0.5s" }, "exit": { "type": "fadeDown", "duration": "0.4s" } },
        { "id": "accent", "type": "rect", "anchor": "left", "x": 0, "width": 8, "height": "100%", "fill": "{{color}}",
          "enter": "fade", "exit": "fade" },
        { "id": "name", "type": "text", "text": "{{name}}", "anchor": "left", "x": 40, "y": 56, "font": "Schibsted Grotesk",
          "fontSize": 44, "fontWeight": 860, "letterSpacing": -1.8, "fill": "#161412", "start": "0.2s", "enter": "fadeRight", "exit": "fade" },
        { "id": "role", "type": "text", "text": "{{role}}", "anchor": "left", "x": 42, "y": 100, "font": "JetBrains Mono", "fontSize": 17,
          "letterSpacing": 2, "uppercase": true, "fill": "{{color}}", "start": "0.35s", "enter": "fadeRight", "exit": "fade" }
      ]
    }
  ]
}
