{
  "fonts": [
    {"family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf"},
    {"family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk-Italic.ttf"},
    {"family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf"},
    {"family": "Reenie Beanie", "path": "fonts/ReenieBeanie.ttf"}
  ],
  "theme": {
    "color": {
      "paper": "#f4f1ea", "paper2": "#e9e4d8", "rule": "#d8d1c1", "ink": "#161412", "ink2": "#4a4640",
      "mute": "#8a857a", "pencil": "#c92a26",
      "cat": {
        "work": "#161412", "sleep": "#dcd5c6", "upkeep": "#b0a794", "screens": "#4a4640", "people": "#1f5fb0",
        "commute": "#847e72", "coffee": "#c92a26"
      }
    },
    "type": {
      "headline": {"font": "Schibsted Grotesk", "size": 46, "weight": 860, "tracking": -0.045, "fill": "$color.ink"},
      "counter": {"font": "Schibsted Grotesk", "size": 230, "weight": 860, "letterSpacing": -10},
      "body": {"font": "Schibsted Grotesk", "size": 24, "weight": 560, "tracking": -0.01, "fill": "$color.ink"},
      "label": {
        "font": "JetBrains Mono", "size": 12, "weight": 500, "tracking": 0.12, "uppercase": true,
        "fill": "$color.mute"
      },
      "num": {
        "font": "JetBrains Mono", "size": 14, "weight": 600, "tracking": 0.04, "uppercase": true,
        "fill": "$color.ink2"
      },
      "note": {"font": "Reenie Beanie", "size": 38, "fill": "$color.pencil", "blendMode": "multiply"}
    },
    "motion": {"settle": {"spring": 0.3, "duration": "0.8s"}},
    "styles": {"pencilLine": {"stroke": "$color.pencil", "lineCap": "round", "blendMode": "multiply"}}
  },
  "compositions": [
    {
      "id": "data-poem",
      "description": "A data poem: one fictional day as a counter, a clock, bars that become a line, and 1,440 dots that fill up and sort themselves",
      "width": 1280, "height": 720, "fps": 30, "duration": "30s", "background": "$color.paper", "grain": 0.03,
      "markers": {
        "lock": "2.5s", "ring": "4s", "sweep": "4.6s", "ringnote": "8.2s", "rewind": "9.4s", "bars": "10s",
        "grow": "10.6s", "line": "12.2s", "slump": "13.4s", "avg": "14.4s", "matrix": "16s", "fill": "16.9s",
        "good": "20.5s", "sort": "22s", "tally": "23.4s", "coffee": "24.3s", "kicker": "25.5s", "sign": "28s"
      },
      "layers": [
        {
          "id": "music", "type": "audio", "src": "assets/music.mp3", "loop": true, "duration": "30s", "volume": 0.85,
          "fadeIn": "0.2s", "fadeOut": "1.6s"
        },
        {
          "id": "headers", "type": "group", "series": true, "comment": "one header per beat of the story; hard cuts",
          "children": [
            {
              "id": "h-count", "type": "group", "duration": "4s",
              "children": [
                {
                  "id": "h-count-fig", "type": "text", "text": "Fig. 01 — The count", "style": "$type.label",
                  "anchor": "left", "x": 80, "y": 50, "enter": {"from": {"opacity": 0}, "duration": "0.2s"}
                }
              ]
            },
            {
              "id": "h-clock", "type": "group", "duration": "6s",
              "children": [
                {
                  "id": "h-clock-fig", "type": "text", "text": "Fig. 02 — The clock", "style": "$type.label",
                  "anchor": "left", "x": 80, "y": 50, "enter": {"from": {"opacity": 0}, "duration": "0.2s"}
                },
                {
                  "id": "h-clock-head", "type": "text",
                  "text": ["Twenty-four hours, ", {"text": "once around.", "italic": true, "fontWeight": 400}],
                  "style": "$type.headline", "anchor": "left", "x": 78, "y": 96, "enter": "rise",
                  "stagger": {"by": "word", "over": "0.3s"}
                }
              ]
            },
            {
              "id": "h-energy", "type": "group", "duration": "6s",
              "children": [
                {
                  "id": "h-energy-fig", "type": "text", "text": "Fig. 03 — Energy, by the hour",
                  "style": "$type.label", "anchor": "left", "x": 80, "y": 50,
                  "enter": {"from": {"opacity": 0}, "duration": "0.2s"}
                },
                {
                  "id": "h-energy-head", "type": "text",
                  "text": ["Up by seven, ", {"text": "down by three.", "italic": true, "fontWeight": 400}],
                  "style": "$type.headline", "anchor": "left", "x": 78, "y": 96, "enter": "rise",
                  "stagger": {"by": "word", "over": "0.3s"}
                }
              ]
            },
            {
              "id": "h-minutes", "type": "group", "duration": "6s",
              "children": [
                {
                  "id": "h-minutes-fig", "type": "text", "text": "Fig. 04 — The minutes", "style": "$type.label",
                  "anchor": "left", "x": 80, "y": 50, "enter": {"from": {"opacity": 0}, "duration": "0.2s"}
                },
                {
                  "id": "h-minutes-head", "type": "text",
                  "text": ["One dot, ", {"text": "one minute.", "italic": true, "fontWeight": 400}],
                  "style": "$type.headline", "anchor": "left", "x": 78, "y": 96, "enter": "rise",
                  "stagger": {"by": "word", "over": "0.3s"}
                }
              ]
            },
            {
              "id": "h-sorted", "type": "group", "duration": "3.5s",
              "children": [
                {
                  "id": "h-sorted-fig", "type": "text", "text": "Fig. 05 — Sorted", "style": "$type.label",
                  "anchor": "left", "x": 80, "y": 50, "enter": {"from": {"opacity": 0}, "duration": "0.2s"}
                },
                {
                  "id": "h-sorted-head", "type": "text",
                  "text": ["Where the day ", {"text": "went.", "italic": true, "fontWeight": 400}],
                  "style": "$type.headline", "anchor": "left", "x": 78, "y": 96, "enter": "rise",
                  "stagger": {"by": "word", "over": "0.3s"}
                }
              ]
            },
            {
              "id": "h-kicker", "type": "group", "duration": "2.5s",
              "children": [
                {
                  "id": "h-kicker-fig", "type": "text", "text": "Fig. 05a — Sorted, coffee detail", "style": "$type.label",
                  "anchor": "left", "x": 80, "y": 50, "enter": {"from": {"opacity": 0}, "duration": "0.2s"}
                },
                {
                  "id": "h-kicker-head", "type": "text",
                  "text": ["Fourteen minutes, ", {"text": "well spent.", "italic": true, "fontWeight": 400}],
                  "style": "$type.headline", "anchor": "left", "x": 78, "y": 96, "enter": "rise",
                  "stagger": {"by": "word", "over": "0.3s"}
                }
              ]
            }
          ]
        },
        {
          "id": "edge", "type": "group", "comment": "film edge print: rule, playhead, page, timecode",
          "children": [
            {
              "id": "edge-top", "type": "text", "style": "$type.label", "anchor": "right", "x": 1200, "y": 50,
              "text": "A day in 1,440 minutes  ·  ${gt < 4 ? '01 / 05' : gt < 10 ? '02 / 05' : gt < 16 ? '03 / 05' : gt < 22 ? '04 / 05' : gt < 28 ? '05 / 05' : 'to be continued'}"
            },
            {
              "id": "edge-rule", "type": "rect", "anchor": "left", "x": 80, "y": 664, "height": 1,
              "fill": "$color.rule", "width": {"from": 0, "to": 1120, "duration": "0.8s", "ease": "easeOutQuint"}
            },
            {
              "id": "edge-playhead", "type": "rect", "anchor": "center", "y": 664, "width": 2, "height": 11,
              "fill": "$color.pencil", "x": "=80 + 1120 * clamp(gt / 30, 0, 1)"
            },
            {
              "id": "edge-credit", "type": "text", "style": "$type.label", "anchor": "left", "x": 80, "y": 688,
              "text": "Data desk  ·  illustrative numbers, one fictional day"
            },
            {
              "id": "edge-beat", "type": "ellipse", "width": 6, "x": 1036, "y": 688, "fill": "$color.ink",
              "opacity": "=0.15 + 0.85 * beat", "comment": "a metronome led on the music's beat"
            },
            {
              "id": "edge-tc", "type": "text", "style": "$type.label", "anchor": "right", "x": 1200, "y": 688,
              "fill": "$color.ink2",
              "text": "${pad(floor(gt / 60), 2)}:${pad(floor(gt % 60), 2)}:${pad(gf % 30, 2)}  ·  120 bpm"
            }
          ]
        },
        {
          "id": "count-hatch", "type": "group", "end": "@lock+0.3s",
          "comment": "engraved digits: ink hatching seen through the counter",
          "opacity": {"from": 1, "to": 0, "start": "@lock", "duration": "0.3s"},
          "mask": {
            "type": "text",
            "text": "${fmt(round((since('sweep') < 0 ? 1440 * easeOutExpo(clamp((t - 0.2) / 2.25, 0, 1)) : 1440 - (1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))))))}",
            "style": "$type.counter", "x": 640, "y": 320
          },
          "children": [
            {
              "id": "hatch-line", "type": "rect", "width": 1.6, "height": 520, "x": 640, "y": 320, "rotation": 32,
              "fill": "$color.ink", "repeat": {"count": 120, "layout": "row", "spacing": 8}
            }
          ]
        },
        {
          "id": "count", "type": "text",
          "text": "${fmt(round((since('sweep') < 0 ? 1440 * easeOutExpo(clamp((t - 0.2) / 2.25, 0, 1)) : 1440 - (1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))))))}",
          "style": "$type.counter", "end": "@bars", "stroke": "$color.ink", "strokeWidth": 2.5,
          "fill": [["@lock", "#16141200"], ["@lock+0.25s", "$color.ink"]],
          "fontSize": [["@ring", 230], ["@ring+0.45s", 70, "easeInOutQuart"]],
          "letterSpacing": [["@ring", -10], ["@ring+0.45s", -3, "easeInOutQuart"]],
          "x": [["@ring", 640], ["@ring+0.45s", 470, "easeInOutQuart"]],
          "y": [["@ring", 320], ["@ring+0.45s", 393, "easeInOutQuart"]],
          "exit": {"to": {"opacity": 0}, "duration": "0.15s"}
        },
        {
          "id": "s1", "type": "group", "end": "@ring", "comment": "scene 1 dressing",
          "children": [
            {
              "id": "count-sub", "type": "text",
              "text": ["minutes in ", {"text": "one", "italic": true, "fontWeight": 400}, " day."],
              "style": "$type.headline", "fontSize": 54, "y": 476, "start": "0.6s", "enter": "rise", "stagger": "word"
            },
            {
              "id": "count-rule", "type": "path", "anchor": "top-left", "x": 0, "y": 0,
              "d": "M508 420 C600 414 700 423 790 416 C850 412 890 417 918 412", "fill": null,
              "style": "$styles.pencilLine", "strokeWidth": 3.2, "drawMode": "total",
              "drawEnd": {"from": 0, "to": 1, "start": "@lock", "duration": "0.4s", "ease": "easeInOutSine"}
            },
            {
              "id": "count-note", "type": "text", "text": "yes, we counted.", "style": "$type.note", "x": 900,
              "y": 222, "anchor": "left", "rotation": -7, "start": "@lock+0.3s",
              "enter": {"type": "wipeRight", "duration": "0.45s", "feather": 12}, "fontSize": 44
            }
          ]
        },
        {
          "id": "s2", "type": "group", "start": "@ring", "end": "@bars", "comment": "scene 2: 24 h around a dial",
          "children": [
            {
              "id": "ring-track", "type": "arc", "width": 360, "x": 470, "y": 405, "strokeWidth": 40,
              "lineCap": "butt", "stroke": "$color.paper2",
              "endAngle": {"from": 0, "to": 360, "start": "0.3s", "duration": "0.6s", "ease": "easeInOutCubic"}
            },
            {
              "id": "ring-seg", "type": "arc", "width": 360, "x": 470, "y": 405, "strokeWidth": 40, "lineCap": "butt",
              "repeat": 16, "comment": "16 stretches of the day; the hand paints them in",
              "stroke": "=pick(i, ['#dcd5c6', '#4a4640', '#c92a26', '#b0a794', '#847e72', '#161412', '#b0a794', '#161412', '#c92a26', '#161412', '#847e72', '#b0a794', '#1f5fb0', '#c92a26', '#4a4640', '#dcd5c6'])",
              "startAngle": "=pick(i, [0.0, 101.25, 105.0, 106.25, 112.5, 122.0, 187.5, 198.75, 225.0, 226.0, 254.25, 263.75, 285.5, 315.5, 316.75, 348.75])",
              "endAngle": "=max(pick(i, [0.0, 101.25, 105.0, 106.25, 112.5, 122.0, 187.5, 198.75, 225.0, 226.0, 254.25, 263.75, 285.5, 315.5, 316.75, 348.75]), min(pick(i, [101.25, 105.0, 106.25, 112.5, 122.0, 187.5, 198.75, 225.0, 226.0, 254.25, 263.75, 285.5, 315.5, 316.75, 348.75, 360.0]), ((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) / 4)))"
            },
            {
              "id": "ring-hours", "type": "text", "style": "$type.label", "fill": "$color.ink2",
              "text": "${pick(i, ['00', '06', '12', '18'])}",
              "repeat": {"count": 4, "layout": "radial", "radius": 252}, "x": 470, "y": 406, "start": "0.4s",
              "enter": "fade"
            },
            {
              "id": "hand", "type": "group", "width": 2, "height": 424, "x": 470, "y": 405, "start": "@sweep",
              "end": "@rewind+0.5s",
              "rotation": "=((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) / 4)",
              "children": [
                {
                  "id": "hand-arm", "type": "rect", "anchor": "top", "x": 1, "y": 0, "width": 2, "height": 100,
                  "fill": "$color.ink"
                },
                {
                  "id": "hand-tip", "type": "ellipse", "width": 9, "x": 1, "y": 0, "fill": "$color.pencil",
                  "scale": "=1 + 0.5 * beat"
                }
              ]
            },
            {
              "id": "ring-clock", "type": "text", "style": "$type.label", "x": 470, "y": 445, "start": "0.6s",
              "enter": "fade",
              "text": "min left  ·  ${pad(floor((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) / 60), 2)}:${pad(floor((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) % 60), 2)}"
            },
            {
              "id": "legend", "type": "group", "width": 330, "height": 40, "anchor": "left", "x": 850, "y": 214,
              "repeat": {"count": 7, "layout": "column", "spacing": 44, "origin": "start"},
              "opacity": "=clamp(((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - pick(i, [0, 405, 420, 425, 450, 488, 1142])) / 12, 0, 1)",
              "comment": "a row appears when the hand first reaches it; minutes tick up",
              "children": [
                {
                  "id": "leg-sw", "type": "rect", "width": 14, "height": 14, "x": 7, "y": 20, "strokeWidth": 1.3,
                  "fill": "=pick(i, ['#dcd5c6', '#4a4640', '#c92a26', '#b0a794', '#847e72', '#161412', '#1f5fb0'])",
                  "stroke": "=i == 0 ? '#a39b89' : '#a39b8900'"
                },
                {
                  "id": "leg-name", "type": "text", "style": "$type.body", "anchor": "left", "x": 30, "y": 19,
                  "text": "${pick(i, ['Sleep', 'Screens', 'Coffee', 'Upkeep', 'Commute', 'Work', 'People'])}"
                },
                {
                  "id": "leg-min", "type": "text", "style": "$type.num", "anchor": "right", "x": 330, "y": 20,
                  "text": "${floor((i < 1 ? (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 0, 0, 405) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 1395, 0, 45)) : i < 2 ? (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 405, 0, 15) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 1267, 0, 128)) : i < 3 ? (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 420, 0, 5) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 900, 0, 4) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 1262, 0, 5)) : i < 4 ? (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 425, 0, 25) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 750, 0, 45) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 1055, 0, 87)) : i < 5 ? (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 450, 0, 38) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 1017, 0, 38)) : i < 6 ? (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 488, 0, 262) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 795, 0, 105) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 904, 0, 113)) : (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 1142, 0, 120))) / 60)}h ${pad(floor((i < 1 ? (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 0, 0, 405) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 1395, 0, 45)) : i < 2 ? (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 405, 0, 15) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 1267, 0, 128)) : i < 3 ? (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 420, 0, 5) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 900, 0, 4) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 1262, 0, 5)) : i < 4 ? (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 425, 0, 25) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 750, 0, 45) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 1055, 0, 87)) : i < 5 ? (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 450, 0, 38) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 1017, 0, 38)) : i < 6 ? (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 488, 0, 262) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 795, 0, 105) + clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 904, 0, 113)) : (clamp((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1)))) - 1142, 0, 120))) % 60), 2)}"
                },
                {
                  "id": "leg-rule", "type": "rect", "anchor": "left", "x": 0, "y": 41, "width": 330, "height": 1,
                  "fill": "$color.rule"
                }
              ]
            },
            {
              "id": "leg-total", "type": "text", "style": "$type.num", "anchor": "right", "x": 1180, "y": 538,
              "fill": "$color.ink", "start": "@sweep",
              "text": "so far  ${fmt(round((1440 * easeInOutSine(clamp(since('sweep') / 3.4, 0, 1)) * (1 - easeInCubic(clamp(since('rewind') / 0.5, 0, 1))))))} / 1,440 min"
            },
            {
              "id": "ring-arrow", "type": "path", "anchor": "top-left", "x": 0, "y": 0,
              "d": "M704 176 Q655.2 184.8 640 232 M638.1 222.2 L640 232 L647.3 225.1", "fill": null,
              "style": "$styles.pencilLine", "strokeWidth": 2.6, "drawMode": "total",
              "drawEnd": {"from": 0, "to": 1, "start": "@ringnote", "duration": "0.4s", "ease": "easeInOutSine"}
            },
            {
              "id": "ring-note", "type": "text", "text": "felt like four.", "style": "$type.note", "x": 712, "y": 166,
              "anchor": "left", "rotation": -5, "start": "@ringnote+0.25s",
              "enter": {"type": "wipeRight", "duration": "0.45s", "feather": 12}
            }
          ]
        },
        {
          "id": "s3", "type": "group", "start": "@bars", "end": "@matrix",
          "comment": "scene 3: the hours as bars, then a line",
          "children": [
            {
              "id": "axis-grid", "type": "rect", "anchor": "left", "x": 186, "height": 1, "fill": "$color.rule",
              "y": "=600 - 82.5 * (i + 1)", "repeat": {"count": 4, "stagger": {"over": "0.2s"}},
              "width": {"from": 0, "to": 904, "duration": "0.5s", "ease": "easeOutQuint"}
            },
            {
              "id": "axis-val", "type": "text", "style": "$type.label", "anchor": "right", "x": 176,
              "y": "=600 - 82.5 * (i + 1)", "text": "${(i + 1) * 25}",
              "repeat": {"count": 4, "stagger": {"over": "0.2s"}}, "enter": "fade"
            },
            {
              "id": "axis-base", "type": "rect", "anchor": "left", "x": 186, "y": 600, "height": 1.5,
              "fill": "$color.ink", "width": {"from": 0, "to": 904, "duration": "0.5s", "ease": "easeOutQuint"}
            },
            {
              "id": "axis-hour", "type": "text", "style": "$type.label", "x": 203, "y": 622,
              "text": "${pad(i * 3, 2)}",
              "repeat": {"count": 8, "layout": "row", "spacing": 114, "origin": "start", "stagger": {"over": "0.3s"}},
              "enter": "fade"
            },
            {
              "id": "axis-title", "type": "text", "style": "$type.label", "anchor": "left", "x": 186, "y": 232,
              "text": "Energy, % of a good morning", "enter": "fade"
            },
            {
              "id": "area", "type": "path", "anchor": "top-left", "x": 0, "y": 0,
              "d": "M203 571.5 L241 581.4 L279 588.0 L317 588.0 L355 584.7 L393 574.8 L431 551.7 L469 472.5 L507 393.3 L545 340.5 L583 294.3 L621 320.7 L659 366.9 L697 406.5 L735 452.7 L773 512.1 L811 439.5 L849 413.1 L887 426.3 L925 386.7 L963 353.7 L1001 399.9 L1039 479.1 L1077 538.5 L1077 600 L203 600 Z",
              "stroke": null, "fill": "$color.paper2", "start": "@line+0.7s",
              "enter": {"type": "wipeRight", "duration": "0.9s"}, "exit": {"to": {"opacity": 0}, "duration": "0.2s"}
            },
            {
              "id": "trend", "type": "line", "anchor": "top-left", "x": 0, "y": 0,
              "points": [
                [203, 571.5],
                [241, 581.4],
                [279, 588.0],
                [317, 588.0],
                [355, 584.7],
                [393, 574.8],
                [431, 551.7],
                [469, 472.5],
                [507, 393.3],
                [545, 340.5],
                [583, 294.3],
                [621, 320.7],
                [659, 366.9],
                [697, 406.5],
                [735, 452.7],
                [773, 512.1],
                [811, 439.5],
                [849, 413.1],
                [887, 426.3],
                [925, 386.7],
                [963, 353.7],
                [1001, 399.9],
                [1039, 479.1],
                [1077, 538.5]
              ],
              "stroke": "$color.ink", "strokeWidth": 2.5, "start": "@line",
              "drawEnd": {"from": 0, "to": 1, "start": "0.3s", "duration": "1.1s", "ease": "easeInOutCubic"},
              "drawStart": {"from": 0, "to": 1, "start": "@matrix-0.35s", "duration": "0.35s", "ease": "easeInCubic"}
            },
            {
              "id": "avg", "type": "line", "anchor": "top-left", "x": 0, "y": 0,
              "points": [[186, 455.4], [1090, 455.4]], "stroke": "$color.ink2", "strokeWidth": 1.2, "dash": [5, 5],
              "start": "@avg", "drawEnd": {"from": 0, "to": 1, "start": 0, "duration": "0.6s", "ease": "easeOutCubic"}
            },
            {
              "id": "avg-label", "type": "text", "style": "$type.label", "fill": "$color.ink2", "anchor": "left",
              "x": 1098, "y": 455.4, "text": "avg 44", "start": "@avg+0.4s", "enter": "fadeLeft"
            },
            {
              "id": "peak-label", "type": "text", "style": "$type.label", "fill": "$color.ink", "x": 583, "y": 255.8,
              "text": "10:00  ·  second coffee", "start": "@line+0.9s", "enter": "fadeUp"
            },
            {
              "id": "slump-ring", "type": "path", "anchor": "top-left", "x": 0, "y": 0,
              "d": "M743.2 507.5 L745.9 503.4 L748.4 499.6 L750.7 495.4 L754.8 492.3 L759.8 490.6 L764.4 488.4 L769.4 486.5 L774.8 486.6 L779.8 487.7 L785.1 488.1 L790.1 489.6 L793.7 492.8 L796.9 496.1 L800.7 499.3 L802.8 503.4 L802.8 507.9 L803.3 512.3 L803.6 516.9 L801.4 521.2 L798.1 524.9 L795.4 528.9 L791.9 532.6 L786.8 534.5 L781.7 536.1 L776.7 538.1 L771.2 538.7 L766.0 537.4 L760.8 536.3 L755.5 535.2 L751.4 532.3 L748.5 528.5 L745.1 525.0 L742.2 521.1 L741.9 516.5 L742.3 511.9 L742.1 507.3 L743.4 502.7 L746.9 498.8 L750.4 495.2 L753.7 491.2",
              "fill": null, "style": "$styles.pencilLine", "strokeWidth": 2.6, "drawMode": "total",
              "drawEnd": {"from": 0, "to": 1, "start": "@slump", "duration": "0.5s", "ease": "easeInOutSine"}
            },
            {
              "id": "slump-arrow", "type": "path", "anchor": "top-left", "x": 0, "y": 0,
              "d": "M860 556 Q824.0 557.2 806 526 M813.7 530.7 L806 526 L806.2 535.0", "fill": null,
              "style": "$styles.pencilLine", "strokeWidth": 2.6, "drawMode": "total",
              "drawEnd": {"from": 0, "to": 1, "start": "@slump+0.35s", "duration": "0.3s", "ease": "easeInOutSine"}
            },
            {
              "id": "slump-note", "type": "text", "text": "the 3 pm slump", "style": "$type.note", "x": 866, "y": 562,
              "anchor": "left", "rotation": -3, "start": "@slump+0.5s",
              "enter": {"type": "wipeRight", "duration": "0.45s", "feather": 12}
            }
          ]
        },
        {
          "id": "hour", "type": "rect", "start": "@ring", "end": "@sign", "anchor": "bottom", "fill": "$color.ink",
          "repeat": 24, "comment": "one layer, four lives: dial tick, bar, point on a line, row marker",
          "x": "=lerp(lerp(470 + 214 * sin(rad(i * 15)), 203 + 38 * i, easeInOutCubic(clamp((since('bars') - i * 0.02) / 0.55, 0, 1))), 154, easeInOutCubic(clamp((since('matrix') - i * 0.015) / 0.8, 0, 1)))",
          "y": "=lerp(lerp(405 - 214 * cos(rad(i * 15)), 600 - ((pick(i, [10, 7, 5, 5, 6, 9, 16, 40, 64, 80, 94, 86, 72, 60, 46, 28, 50, 58, 54, 66, 76, 62, 38, 20]) * 3.3) - 9) * easeInOutCubic(clamp((since('line') - i * 0.01) / 0.5, 0, 1)), easeInOutCubic(clamp((since('bars') - i * 0.02) / 0.55, 0, 1))), 196 + 15 * i + 3.5, easeInOutCubic(clamp((since('matrix') - i * 0.015) / 0.8, 0, 1)))",
          "rotation": "=lerp(i * 15, i * 15 > 180 ? 360 : 0, easeInOutCubic(clamp((since('bars') - i * 0.02) / 0.55, 0, 1)))",
          "width": "=lerp(lerp(lerp(i % 6 == 0 ? 3 : 2, 20, easeInOutCubic(clamp((since('bars') - i * 0.02) / 0.55, 0, 1))), 9, easeInOutCubic(clamp((since('line') - i * 0.01) / 0.5, 0, 1))), 7, easeInOutCubic(clamp((since('matrix') - i * 0.015) / 0.8, 0, 1)))",
          "height": "=lerp(lerp(lerp((i % 6 == 0 ? 18 : 10) * easeOutBack(clamp((since('ring') - 0.3 - i * 0.018) / 0.35, 0, 1)), max(2, (pick(i, [10, 7, 5, 5, 6, 9, 16, 40, 64, 80, 94, 86, 72, 60, 46, 28, 50, 58, 54, 66, 76, 62, 38, 20]) * 3.3) * easeOutBack(clamp((since('grow') - i * 0.028) / 0.5, 0, 1))), easeInOutCubic(clamp((since('bars') - i * 0.02) / 0.55, 0, 1))), 9, easeInOutCubic(clamp((since('line') - i * 0.01) / 0.5, 0, 1))), 7, easeInOutCubic(clamp((since('matrix') - i * 0.015) / 0.8, 0, 1)))",
          "cornerRadius": "=lerp(0, 4.5, easeInOutCubic(clamp((since('line') - i * 0.01) / 0.5, 0, 1)))",
          "opacity": "=1 - 0.75 * clamp(since('kicker') / 0.5, 0, 1)",
          "lint": {"ignore": ["invisible"]}
        },
        {
          "id": "minute", "type": "ellipse", "start": "@matrix", "end": "@sign", "repeat": 1440,
          "comment": "1,440 dots: row = hour, dot = minute. filled in order, then sorted by what the minute was",
          "x": "=lerp(180 + (i % 60) * 15, 180 + ((i + (i < 405 ? 480 : i < 420 ? 682 : i < 425 ? 1006 : i < 450 ? 505 : i < 488 ? 900 : i < 750 ? -488 : i < 795 ? 205 : i < 900 ? -533 : i < 904 ? 531 : i < 1017 ? -537 : i < 1055 ? 371 : i < 1142 ? -55 : i < 1262 ? 88 : i < 1267 ? 173 : i < 1395 ? -165 : -510)) % 60) * 15, easeInOutCubic(clamp((since('sort') - 0.8 * rand(i)) / 0.9, 0, 1))) + (((i >= 420 && i < 425) || (i >= 900 && i < 904) || (i >= 1262 && i < 1267) ? 1 : 0) * clamp(since('kicker') / 0.4, 0, 1)) * wiggle(11, 1.4, i)",
          "y": "=lerp(196 + floor(i / 60) * 15, 196 + floor((i + (i < 405 ? 480 : i < 420 ? 682 : i < 425 ? 1006 : i < 450 ? 505 : i < 488 ? 900 : i < 750 ? -488 : i < 795 ? 205 : i < 900 ? -533 : i < 904 ? 531 : i < 1017 ? -537 : i < 1055 ? 371 : i < 1142 ? -55 : i < 1262 ? 88 : i < 1267 ? 173 : i < 1395 ? -165 : -510)) / 60) * 15, easeInOutCubic(clamp((since('sort') - 0.8 * rand(i)) / 0.9, 0, 1))) - 14 * sin(easeInOutCubic(clamp((since('sort') - 0.8 * rand(i)) / 0.9, 0, 1)) * pi) + (((i >= 420 && i < 425) || (i >= 900 && i < 904) || (i >= 1262 && i < 1267) ? 1 : 0) * clamp(since('kicker') / 0.4, 0, 1)) * wiggle(13, 1.4, i + 99)",
          "width": "=(3 + 7 * clamp((1470 * easeInOutSine(clamp(since('fill') / 3.4, 0, 1)) - i) / 24, 0, 1)) * clamp((since('matrix') - 0.45 - floor(i / 60) * 0.022 - (i % 60) * 0.004) / 0.25, 0, 1) * (1 + 0.3 * beat * (((i >= 420 && i < 425) || (i >= 900 && i < 904) || (i >= 1262 && i < 1267) ? 1 : 0) * clamp(since('kicker') / 0.4, 0, 1)))",
          "height": "=(3 + 7 * clamp((1470 * easeInOutSine(clamp(since('fill') / 3.4, 0, 1)) - i) / 24, 0, 1)) * clamp((since('matrix') - 0.45 - floor(i / 60) * 0.022 - (i % 60) * 0.004) / 0.25, 0, 1) * (1 + 0.3 * beat * (((i >= 420 && i < 425) || (i >= 900 && i < 904) || (i >= 1262 && i < 1267) ? 1 : 0) * clamp(since('kicker') / 0.4, 0, 1)))",
          "fill": "=lerp('#d8d1c1', (i < 405 ? '#efebe2' : i < 420 ? '#4a4640' : i < 425 ? '#c92a26' : i < 450 ? '#b0a794' : i < 488 ? '#847e72' : i < 750 ? '#161412' : i < 795 ? '#b0a794' : i < 900 ? '#161412' : i < 904 ? '#c92a26' : i < 1017 ? '#161412' : i < 1055 ? '#847e72' : i < 1142 ? '#b0a794' : i < 1262 ? '#1f5fb0' : i < 1267 ? '#c92a26' : i < 1395 ? '#4a4640' : '#efebe2'), clamp((1470 * easeInOutSine(clamp(since('fill') / 3.4, 0, 1)) - i) / 24, 0, 1))",
          "stroke": "=lerp('#a39b8900', '#a39b89', clamp((1470 * easeInOutSine(clamp(since('fill') / 3.4, 0, 1)) - i) / 24, 0, 1) * (i < 405 || i >= 1395 ? 1 : 0))",
          "strokeWidth": 1.3, "lint": {"ignore": ["invisible"]},
          "opacity": "=1 - 0.82 * (1 - ((i >= 420 && i < 425) || (i >= 900 && i < 904) || (i >= 1262 && i < 1267) ? 1 : 0)) * easeInOutSine(clamp((since('kicker') - 0.35 * rand(i + 7)) / 0.45, 0, 1))"
        },
        {
          "id": "s4", "type": "group", "start": "@matrix", "end": "@sort",
          "comment": "scene 4: the day, minute by minute",
          "children": [
            {
              "id": "row-hour", "type": "text", "style": "$type.label", "anchor": "right", "x": 140,
              "y": "=196 + i * 45", "text": "${pad(i * 3, 2)}:00", "repeat": {"count": 8, "stagger": {"over": "0.4s"}},
              "start": "0.7s", "enter": "fade"
            },
            {
              "id": "legend-row", "type": "text", "style": "$type.label", "fill": "$color.ink2", "anchor": "left",
              "x": 175, "y": 600,
              "text": [
                {"text": "● ", "fill": "$color.cat.work"},
                "WORK    ",
                {"text": "○ ", "fill": "$color.ink2"},
                "SLEEP    ",
                {"text": "● ", "fill": "$color.cat.upkeep"},
                "UPKEEP    ",
                {"text": "● ", "fill": "$color.cat.screens"},
                "SCREENS    ",
                {"text": "● ", "fill": "$color.cat.people"},
                "PEOPLE    ",
                {"text": "● ", "fill": "$color.cat.commute"},
                "COMMUTE    ",
                {"text": "● ", "fill": "$color.cat.coffee"},
                "COFFEE"
              ],
              "start": "1s", "enter": "fade"
            },
            {
              "id": "good-bracket", "type": "path", "anchor": "top-left", "x": 0, "y": 0,
              "d": "M1078 475 L1086 477 L1086 515 L1078 517", "fill": null, "style": "$styles.pencilLine",
              "strokeWidth": 2.2, "drawMode": "total",
              "drawEnd": {"from": 0, "to": 1, "start": "@good", "duration": "0.35s", "ease": "easeInOutSine"}
            },
            {
              "id": "good-note", "type": "text", "text": "the good part", "style": "$type.note", "x": 1094, "y": 498.0,
              "anchor": "left", "rotation": -3, "start": "@good+0.25s",
              "enter": {"type": "wipeRight", "duration": "0.45s", "feather": 12}
            }
          ]
        },
        {
          "id": "grid-key", "type": "text", "style": "$type.label", "anchor": "left", "x": 175, "y": 170,
          "start": "@matrix+0.6s", "end": "@sign", "enter": "fade", "text": "1 dot = 1 minute   ·   1 row = 1 hour"
        },
        {
          "id": "s5", "type": "group", "start": "@sort", "end": "@sign", "comment": "scene 5: sorted, largest first",
          "children": [
            {
              "id": "sort-label", "type": "text", "style": "$type.num", "anchor": "left", "x": 1094,
              "y": "=pick(i, [248.5, 364.8, 440.6, 478.1, 511.0, 535.5])", "start": "@tally",
              "text": "${pick(i, ['WORK  8h 00', 'SLEEP  7h 30', 'UPKEEP  2h 37', 'SCREENS  2h 23', 'PEOPLE  2h 00', 'COMMUTE  1h 16'])}",
              "opacity": "=1 - 0.7 * clamp(since('kicker') / 0.5, 0, 1)",
              "repeat": {"count": 6, "stagger": {"over": "0.5s"}},
              "enter": {"from": {"opacity": 0, "x": -10}, "motion": "snap"}
            },
            {
              "id": "coffee-label", "type": "text", "style": "$type.num", "fill": "$color.pencil", "anchor": "left",
              "x": 1094, "y": 561, "text": "COFFEE  0h 14", "start": "@coffee",
              "enter": {"from": {"opacity": 0, "x": -10}, "motion": "snap"}
            },
            {
              "id": "coffee-ring", "type": "path", "anchor": "top-left", "x": 0, "y": 0,
              "d": "M867.1 545.3 L864.8 542.8 L862.4 540.2 L868.2 537.6 L878.5 535.3 L886.5 532.8 L897.1 530.5 L913.6 529.0 L930.4 527.8 L946.7 526.3 L964.9 525.5 L982.8 525.9 L1000.3 526.2 L1018.7 526.4 L1033.8 527.7 L1044.7 529.6 L1057.2 531.3 L1068.6 533.3 L1071.7 535.9 L1071.8 538.6 L1074.5 541.2 L1072.2 543.9 L1061.9 546.4 L1051.8 548.7 L1042.5 551.3 L1027.5 553.2 L1009.5 554.3 L992.6 555.6 L974.5 556.8 L955.7 556.8 L938.1 556.2 L919.7 556.0 L902.2 555.2 L890.1 553.2 L879.2 551.2 L866.5 549.4 L859.7 546.9 L860.2 544.1 L859.3 541.5 L858.8 538.7 L866.9 536.0",
              "fill": null, "style": "$styles.pencilLine", "strokeWidth": 2.6, "drawMode": "total",
              "drawEnd": {"from": 0, "to": 1, "start": "@coffee", "duration": "0.55s", "ease": "easeInOutSine"}
            },
            {
              "id": "coffee-note", "type": "text", "text": "three cups. zero regrets.", "style": "$type.note",
              "x": 830, "y": 600, "anchor": "left", "rotation": -2, "start": "@coffee+0.4s",
              "enter": {"type": "wipeRight", "duration": "0.45s", "feather": 12}, "fontSize": 40
            }
          ]
        },
        {
          "id": "sign", "type": "group", "start": "@sign", "comment": "sign-off: the day resets",
          "children": [
            {
              "id": "sign-fig", "type": "text", "text": "Fig. 06 — Tomorrow", "style": "$type.label",
              "anchor": "left", "x": 80, "y": 50, "enter": {"from": {"opacity": 0}, "duration": "0.2s"}
            },
            {
              "id": "sign-head", "type": "text",
              "text": ["Tomorrow, ", {"text": "another 1,440.", "italic": true, "fontWeight": 400}],
              "style": "$type.headline", "fontSize": 72, "y": 262, "enter": "rise",
              "stagger": {"by": "word", "over": "0.3s"}
            },
            {
              "id": "sign-under", "type": "path", "anchor": "top-left", "x": 0, "y": 0,
              "d": "M872 303 C905 299 940 304 975 300 C1000 298 1018 301 1032 298", "fill": null,
              "style": "$styles.pencilLine", "strokeWidth": 3.2, "drawMode": "total",
              "drawEnd": {"from": 0, "to": 1, "start": "0.45s", "duration": "0.35s", "ease": "easeInOutSine"}
            },
            {
              "id": "sign-note", "type": "text", "text": "we'll count again.", "style": "$type.note", "x": 930,
              "y": 196, "anchor": "left", "rotation": -6, "start": "0.7s",
              "enter": {"type": "wipeRight", "duration": "0.4s", "feather": 12}
            },
            {
              "id": "sign-logo", "type": "image", "src": "assets/logo.svg", "width": 58, "anchor": "right",
              "x": 538, "y": 432, "start": "0.35s",
              "enter": {"from": {"opacity": 0, "scale": 0.6, "rotate": -12}, "motion": "settle"}
            },
            {
              "id": "sign-word", "type": "text", "text": "vidmake", "style": "$type.headline", "fontSize": 60,
              "letterSpacing": -2.5, "anchor": "left", "x": 550, "y": 428, "start": "0.4s",
              "enter": {"from": {"opacity": 0, "y": "0.4em"}, "motion": "snap"},
              "stagger": {"by": "char", "over": "0.3s"},
              "rotateX": {"from": 50, "to": 0, "start": "0s", "duration": "0.6s", "ease": "easeOutCubic"}
            },
            {
              "id": "sign-line", "type": "text", "style": "$type.label", "y": 486, "start": "0.7s", "enter": "fade",
              "text": "Every frame, from data."
            }
          ]
        }
      ]
    }
  ]
}
