{
  "fonts": [
    { "family": "Geist Pixel", "path": "fonts/GeistPixel-Square.woff2" },
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk-Italic.ttf" }
  ],
  "tokens": { "paper": "#f4f1ea", "dull": "#e9e4d8", "ink": "#161412", "ink2": "#4a4640", "pencil": "#c92a26", "mute": "#8a857a" },
  "easings": { "house": "cubic-bezier(0.22, 1, 0.36, 1)" },
  "compositions": [{
    "id": "ad", "description": "A six-second ad built on 0.5: markers, decoration, tokens, a named easing, repeat src, svgVars, a wipe edge and a WOFF2 font",
    "width": 1280, "height": 720, "fps": 30, "duration": "6s", "background": "{{paper}}",
    "markers": { "strike": "1.5s", "turn": "2.4s", "lane": "@turn+0.3s", "cta": "4.4s" },
    "layers": [
      { "id": "scenes", "type": "group", "series": true, "children": [
        { "id": "problem", "type": "group", "duration": "2.7s",
          "transition": { "type": "wipeUp", "duration": "0.5s", "ease": "house", "edge": { "color": "{{ink}}", "width": 10 } },
          "children": [
            { "id": "p-bg", "type": "rect", "fill": "{{dull}}" },
            { "id": "p-head", "type": "text", "text": "This week went to", "font": "Schibsted Grotesk", "italic": true, "fontSize": 50,
              "fill": "{{ink2}}", "align": "left", "anchor": "left", "x": 120, "y": 140, "enter": { "type": "fadeUp", "ease": "house" } },
            { "id": "chore", "type": "text", "text": "${pick(i, ['data entry.', 'follow-ups.', 'reports.'])}", "font": "Schibsted Grotesk",
              "fontWeight": 860, "fontSize": 116, "letterSpacing": -5, "fill": "{{ink}}", "align": "left", "anchor": "left",
              "x": 114, "y": 268, "start": "0.3s",
              "repeat": { "count": 3, "layout": "column", "spacing": 128, "origin": "start", "delay": "0.3s" },
              "enter": { "type": "fadeUp", "ease": "house" }, "opacity": "=1 - 0.65 * house(clamp(since('strike') / 0.4, 0, 1))",
              "decoration": { "type": "strike", "color": "{{pencil}}", "thickness": 8, "extend": 8,
                "progress": { "from": 0, "to": 1, "start": "@strike", "duration": "0.35s", "ease": "house" } } }
          ] },
        { "id": "answer", "type": "group", "duration": "3.8s", "children": [
          { "id": "a-bg", "type": "rect", "fill": "{{paper}}" },
          { "id": "a-head", "type": "text", "text": ["Get the ", { "text": "week", "italic": true, "fontWeight": 400, "fill": "{{pencil}}" }, " back."],
            "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 100, "letterSpacing": -4, "fill": "{{ink}}", "y": 170,
            "stagger": { "by": "word", "each": "80ms", "ease": "house" } },
          { "id": "step", "type": "image", "src": "icons/${pick(i, ['draft', 'review', 'ship'])}.svg", "width": 110,
            "svgVars": { "currentColor": "{{ink}}", "--accent": "{{ink2}}" }, "x": 340, "y": 360, "start": "@lane",
            "repeat": { "count": 3, "layout": "row", "spacing": 300, "origin": "start", "delay": "0.15s" }, "enter": "pop" },
          { "id": "step-name", "type": "text", "text": "${pick(i, ['draft', 'review', 'ship'])}", "font": "Geist Pixel", "fontSize": 22,
            "letterSpacing": 4, "uppercase": true, "fill": "{{mute}}", "x": 340, "y": 450, "start": "@lane",
            "repeat": { "count": 3, "layout": "row", "spacing": 300, "origin": "start", "delay": "0.15s" }, "enter": "fade" },
          { "id": "cta", "type": "text", "text": "Book a 15-minute call  →", "font": "Schibsted Grotesk", "fontWeight": 700,
            "fontSize": 30, "fill": "{{paper}}", "background": "{{ink}}", "padding": [20, 40], "y": 590, "start": "@cta",
            "enter": { "type": "fadeUp", "ease": "house" },
            "decoration": { "type": "underline", "color": "{{pencil}}", "thickness": 3, "offset": 6,
              "progress": { "from": 0, "to": 1, "start": "0.5s", "duration": "0.6s", "ease": "house" } } }
        ] }
      ] }
    ]
  }]
}
