{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "tilt", "description": "rotateX and rotateY tilt a flat card in perspective",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s",
    "background": { "type": "radial", "center": [0.5, 0.45], "radius": 0.8, "stops": ["#f4f1ea", "#e9e4d8"] },
    "layers": [
      { "id": "card", "type": "group", "width": 520, "height": 320, "perspective": 900,
        "rotateY": "=28 * sin(t * pi / 2)", "rotateX": "=12 * cos(t * pi / 2)",
        "shadow": { "color": "#16141244", "blur": 30, "y": 24 },
        "children": [
          { "id": "face", "type": "rect", "cornerRadius": 6, "fill": { "type": "linear", "angle": 135, "stops": ["#4a4640", "#161412"] } },
          { "id": "title", "type": "text", "text": "Perspective", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 72,
            "letterSpacing": -3, "fill": "#f4f1ea", "y": "44%" },
          { "id": "sub", "type": "text", "text": "rotateX · rotateY", "font": "JetBrains Mono", "fontSize": 20, "letterSpacing": 2.4,
            "uppercase": true, "fill": "#8a857a", "y": "68%" }
        ] }
    ]
  }]
}
