# The water cycle as a pipeline folded into a closed loop: evaporation, condensation,
# precipitation and runoff, with the last step flowing back into the first. Hand-built; the spec
# records structure and timing. The shipped water-cycle.html draws a landscape instead of boxes
# (sun, sea, a cloud over the sea, a rain cloud over a mountain, a river back to the sea) and one
# dashed loop guide through every step. The packet changes type on the way: vapour dots rise,
# a droplet rides the wind and falls as rain, a stream runs down the river into the sea. A small
# legend names the three packet kinds. Plays once: the pass is one full circuit, each step lights
# in turn and stays lit, the water ends back in the sea, and one packet of each kind settles on its
# leg. The resting frame (= end of the pass) shows all four steps and the river lit and one packet
# of each kind on the loop.
name: water-cycle
archetype: pipeline
verb: cycle
traveller: { name: water }
domain: earth science
size: [1680, 600]
control: once
cycle: 10
nodes:
  - { id: evap,    label: Evaporation,           sub: "the sun warms the sea surface" }
  - { id: cond,    label: Condensation,          sub: "vapour cools into cloud, wind carries it inland" }
  - { id: precip,  label: Precipitation,         sub: "rain falls on high ground" }
  - { id: collect, label: Runoff and collection, sub: "rivers carry it back to the sea" }
edges:
  - { from: evap,    to: cond,    label: vapour }
  - { from: cond,    to: precip,  label: droplet }
  - { from: precip,  to: collect, label: droplet }
  - { from: collect, to: evap,    label: water, kind: flow }
phases:
  - { t: 0,    label: evaporate, active: [evap],    flow: ["evap>cond"] }
  - { t: 2.08,  label: condense,  active: [cond],    flow: ["cond>precip"] }
  - { t: 4.32,  label: rain,      active: [precip],  flow: ["precip>collect"] }
  - { t: 5.28,  label: runoff,    active: [collect], flow: ["collect>evap"] }
  - { t: 8.64, label: hold,      active: [collect] }
