/* Round 3: the crane and its wetland on the website (tallyfy/work-queue#5229), placed by r3-scenes.
   Every picture is drawn by the illustrator's module (art/crane.js) through art/scenes.js; scene.js measures the page
   and puts each picture in place. These rules only place the pictures: absolutely, behind, taking no room.
   With scripts off the home hero shows its still land (1024px and wider) or its band (360px to 1023px) on the night
   field. The footer's wetland band is r3-foot's (parts/90-bands.css); no script draws it.
   The process card, its checks and the process wall moved to parts/70-visuals.css (r3-visuals). */

/* ---------- the home page hero: the scene behind everything ---------- */
body.tfx #hero > .tc-hero-scene { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; overflow: hidden; }
body.tfx #hero > .tc-hero-scene > svg { display: block; width: 100%; height: 100%; }
/* while the window's width changes, a picture drawn for the old width is hidden until scene.js has redrawn it (the
   mark is on the picture's own box) */
body.tfx .tc-scene.tc-stale { visibility: hidden; }

/* ---------- depth: the home hero, 1024px and wider, 72px taller at its foot ----------
   Room for the picture's water and near bank under the far bank's ridges (fault 2). The words and the card keep their
   place; the page below moves down 72px. In the flow after the hero's content, so it adds to whatever padding the hero
   has (64px at 1440, 80px at 1920). With scripts off the field is simply 72px deeper. */
@media (min-width: 1024px) {
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero.hero-dark-forced::after { content: ''; display: block; height: 72px; }
}

/* ---------- the still land at first paint: the home hero, 1024px and wider (fault 11) ----------
   The same way the stacked hero paints its band (the block above): until the live picture is in, the hero's foot shows
   the wetland's land, painted by CSS by html[data-tfx-hour] (first.js sets it before the page paints; day without
   it), in two layers on ::before:
   the ground (--tc-ground), the land as six flat bands, a gradient that needs no file, so the foot is never empty, not
     even in the first painted frame;
   the still (--tc-still), art/band/<hour>-desk.svg (art/scenes.js deskStill): the flat band of light, the far bank,
     the water and its sandbars, without the bird, the sun or moon, the ridges or the reeds. It is a file, so it shows
     a frame or more after the first paint.
   art/build-band.mjs writes the stills and works out the grounds, and stops if the grounds here are not its own.
   One horizon (the lead's ruling): the still's water line stands where the live picture's does at every width, so it
   does not move under the fade. The module puts the live horizon under the card's lowest control (the badge, the
   last thing in the hero's content) by its margin (17px), 4px more, and the land along it at its least, 0.852 of the
   glow's height, the glow being 8% of the hero's height between 18 and 64px. The badge's foot stands the hero's
   bottom padding (4rem, the site's lg:pb-16) and the 72px block (above) over the hero's foot. So the water line is
   4rem + 51px - 0.852 * clamp(18px, 8%, 64px) over the foot (61px at 1024 and 1280, 65 at 1440, 78 at 1920), and the
   box, 160px tall with its horizon 65px under its top, stands that less 95px over the foot (clipped below it). The
   landing's horizon check measures still against live at eight widths, with a still moved 5px as its planted case.
   The still is drawn 1440 wide and stretched to the box (viewBox, preserveAspectRatio none), since the live picture's
   land is laid out in shares of the width: its sandbars and glints then stand at the live ones' places. The box
   starts 240px into the hero, at the window's left edge, as the live picture does: from 768px the site's own hero rule
   (.hero-dark-forced in the hero component) gives the section margin-left: -240px (read 2026-11-16 at 1024, 1280, 1440
   and 1920). If that margin changes, the still and the live picture part sideways: the landing's alignment check
   measures it.
   The live picture changes with the width and with where the words and the card are, so the still never equals it:
   scene.js always marks the hero .tc-soft as it puts the live picture in (at opacity 0 here), and .tc-fade in the next
   frame, the one that first paints it. From there the live picture fades in over 0.45 s and then the still fades out
   under it over 0.45 s. Under reduced motion nothing fades: the live picture shows at once and the still goes.
   Home only, by the built page's mark: /workflow/, /ai/ and /mcp-server/ share the hero's markup and get none. */
@media (min-width: 1024px) {
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero.hero-dark-forced::before { content: ""; position: absolute; left: 240px; right: 0; bottom: calc(4rem + 51px - 0.852 * clamp(18px, 8%, 64px) - 95px); height: 160px; z-index: 0; pointer-events: none; background: var(--tc-still) 0 0 / 100% 100% no-repeat, var(--tc-ground); --tc-still: url(art/band/day-desk.svg); --tc-ground: linear-gradient(transparent 19.63%, #c5cbbc 19.63%, #c5cbbc 24.94%, #a3b8a5 24.94%, #a3b8a5 29.97%, #55705c 29.97%, #55705c 41.91%, #a6c6e3 41.91%, #a6c6e3 50.69%, #7aa2d2 50.69%, #7aa2d2 70.34%, #5f88bf 70.34%); }
  html[data-tfx-canonical="https://tallyfy.com/"][data-tfx-hour="dawn"] body.tfx #hero.hero-dark-forced::before { --tc-still: url(art/band/dawn-desk.svg); --tc-ground: linear-gradient(transparent 19.63%, #cbaf96 19.63%, #cbaf96 24.94%, #a3a6bb 24.94%, #a3a6bb 29.97%, #5f6680 29.97%, #5f6680 41.91%, #e9d0bd 41.91%, #e9d0bd 50.75%, #a8abc4 50.75%, #a8abc4 70.44%, #8a92b0 70.44%); }
  html[data-tfx-canonical="https://tallyfy.com/"][data-tfx-hour="dusk"] body.tfx #hero.hero-dark-forced::before { --tc-still: url(art/band/dusk-desk.svg); --tc-ground: linear-gradient(transparent 19.63%, #c28b55 19.63%, #c28b55 24.94%, #5c4858 24.94%, #5c4858 29.97%, #2f2f36 29.97%, #2f2f36 41.91%, #eba55e 41.91%, #eba55e 50.66%, #9a6179 50.66%, #9a6179 70.25%, #4c4a78 70.25%); }
  html[data-tfx-canonical="https://tallyfy.com/"][data-tfx-hour="night"] body.tfx #hero.hero-dark-forced::before { --tc-still: url(art/band/night-desk.svg); --tc-ground: linear-gradient(transparent 19.63%, #1a3742 19.63%, #1a3742 24.94%, #17332e 24.94%, #17332e 29.97%, #122b27 29.97%, #122b27 41.91%, #193636 41.91%, #193636 50.69%, #16332f 50.69%, #16332f 70.34%, #14302c 70.34%); }
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero.hero-dark-forced.tc-live::before { visibility: hidden; }
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero.hero-dark-forced.tc-live.tc-soft::before { visibility: visible; }
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero.hero-dark-forced.tc-live.tc-soft.tc-fade::before { visibility: hidden; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  html[data-tfx-canonical="https://tallyfy.com/"]:not([data-tfx-motion="0"]) body.tfx #hero.hero-dark-forced.tc-soft:not(.tc-fade) > .tc-hero-scene { opacity: 0; }
  html[data-tfx-canonical="https://tallyfy.com/"]:not([data-tfx-motion="0"]) body.tfx #hero.hero-dark-forced.tc-soft.tc-fade > .tc-hero-scene { transition: opacity 0.45s ease-out; }
  html[data-tfx-canonical="https://tallyfy.com/"]:not([data-tfx-motion="0"]) body.tfx #hero.hero-dark-forced.tc-live.tc-soft.tc-fade::before { opacity: 0; transition: opacity 0.45s ease-out 0.45s, visibility 0s linear 0.9s; }
}

/* [stacked hero band: begin] (tallyfy/work-queue#5229, tallyfy/website-astro#760)
   ---------- the home hero where it is stacked: one band of the wetland between the buttons and the card ----------
   Under 1024px the home hero's card sits under its words. There the picture is one band between the buttons and the
   card (art/scenes.js `bandPicture`), and nothing is drawn at the hero's foot. These rules make the band's room and
   paint it from the first paint; scene.js then puts the live picture in the same place.
   - Only the home hero. Other pages use the same hero markup (#hero with the card: /workflow/, /ai/, /mcp-server/)
     and have no band, so every rule here asks for the home page by the built page's own mark on <html>,
     data-tfx-canonical (page-marks.mjs). No :has() is used.
   - From 360px to under 1024px (where the card moves beside the words). Under 360px the home hero has no scene at
     all, only the night field (the lead's ruling, 2026-11-16; the last rule of this block): the band is one
     fixed design, so one still serves every width, and its crane stands 70px in from the left; the card's top
     label, at its widest, starts 272px from the right, which leaves the 16px between them only from 359px
     (measured: at 340px the standing crane was too near, at 360px it is 18.5px clear). No mark on <html> or <body> is set, and no script is needed: scene.js draws the band only where
     these rules have made the still's box, so the two cannot disagree.
   - The band is 166px tall on a phone and 208px from 640px (art/scenes.js BAND: one design, 208/166 as large). It
     uses the room the hero already has between the buttons' foot and the card's sheet (the 32px gap and the card's
     label zone, 40px on a phone and 46px from 640px), 6px of tuck under the sheet, and this much more above the card:
     88px on a phone, 124px from 640px.
   - What is painted there before the live picture, by ::before of the card's grid cell, in two layers:
     the ground (--tc-ground), the hour's land as seven flat bands, a gradient that needs no file, so the room is
     never empty, not even in the first painted frame;
     the still (--tc-still), art/band/<hour>.svg on a phone and art/band/<hour>-wide.svg from 640px: the live band
     at rest, crane and all, without the far birds. It is a file, so it shows a frame or more after the first paint.
     Both go by html[data-tfx-hour] (first.js sets it before the page paints; day when it is missing). art/build-band.mjs
     writes the stills and works out the grounds, and stops if the grounds here are not the ones it works out.
   - The cell is not positioned, so the box's left edge and width come from the hero's inner wrapper (which spans
     the screen; from 768px the hero insets it 2.5rem each side, so the box reaches out by that), and its top from
     where the cell starts: up by the gap and the room, which is the buttons' foot.
   - When scene.js has put the live picture in, it marks the hero .tc-live in the same frame and the still is gone
     at once: the two are the same picture, pixel for pixel, so nothing is seen to change. (A fade would change it:
     a fading layer is drawn a fraction of a pixel off.) For the 40 minutes of each change of hour the live picture
     is a blend the still does not show. scene.js then also marks the hero .tc-soft, which holds the still where it
     is, and .tc-fade one frame later, in the frame that first paints the live picture: from there the still fades
     out over 0.45 s. (Started with .tc-live itself, most of the fade was over before a frame showed it: putting the
     picture in takes the browser 150 to 330 ms on a busy machine.) If the still's file was not in yet, the live
     picture's own box fades in over the ground instead (.tc-late). Under reduced motion nothing fades.
   - On a phone the two buttons stand side by side: two tickets of equal width, their labels on one line (12px of side
     padding, since "Try Tallyfy free" is 120px wide and half a 360px screen leaves it 130). The 16px between them is
     the pair's own gap (system.css, section 50b). From 640px the site already sets them side by side. */
@media (min-width: 360px) and (max-width: 1023.98px) {
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero .hero-visual-text + .order-2::before { content: ""; position: absolute; z-index: -1; left: 0; width: 100%; height: 166px; margin-top: -120px; pointer-events: none; --tc-still: url(art/band/day.svg); --tc-ground: linear-gradient(transparent 38.52%, #9dafac 38.52%, #9dafac 44.97%, #c5cbbc 44.97%, #c5cbbc 48.64%, #a3b8a5 48.64%, #a3b8a5 51.2%, #55705c 51.2%, #55705c 57.86%, #a6c6e3 57.86%, #a6c6e3 64.01%, #7aa2d2 64.01%, #7aa2d2 78.37%, #5f88bf 78.37%); background: var(--tc-still) 0 0 / 100% 100% no-repeat, var(--tc-ground); }
  html[data-tfx-canonical="https://tallyfy.com/"][data-tfx-hour="dawn"] body.tfx #hero .hero-visual-text + .order-2::before { --tc-still: url(art/band/dawn.svg); --tc-ground: linear-gradient(transparent 38.52%, #a09398 38.52%, #a09398 44.97%, #cbaf96 44.97%, #cbaf96 48.64%, #a3a6bb 48.64%, #a3a6bb 51.2%, #5f6680 51.2%, #5f6680 57.86%, #e9d0bd 57.86%, #e9d0bd 64.01%, #a8abc4 64.01%, #a8abc4 78.37%, #8a92b0 78.37%); }
  html[data-tfx-canonical="https://tallyfy.com/"][data-tfx-hour="dusk"] body.tfx #hero .hero-visual-text + .order-2::before { --tc-still: url(art/band/dusk.svg); --tc-ground: linear-gradient(transparent 38.52%, #8e605a 38.52%, #8e605a 44.97%, #c28b55 44.97%, #c28b55 48.64%, #5c4858 48.64%, #5c4858 51.2%, #2f2f36 51.2%, #2f2f36 57.86%, #eba55e 57.86%, #eba55e 64.01%, #9a6179 64.01%, #9a6179 78.37%, #4c4a78 78.37%); }
  html[data-tfx-canonical="https://tallyfy.com/"][data-tfx-hour="night"] body.tfx #hero .hero-visual-text + .order-2::before { --tc-still: url(art/band/night.svg); --tc-ground: linear-gradient(transparent 38.52%, #163039 38.52%, #163039 44.97%, #1a3742 44.97%, #1a3742 48.64%, #17332e 48.64%, #17332e 51.2%, #122b27 51.2%, #122b27 57.86%, #193636 57.86%, #193636 64.01%, #16332f 64.01%, #16332f 78.37%, #14302c 78.37%); }
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero.tc-live .hero-visual-text + .order-2::before { visibility: hidden; }
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero.tc-live.tc-soft .hero-visual-text + .order-2::before { visibility: visible; }
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero.tc-live.tc-soft.tc-fade .hero-visual-text + .order-2::before { visibility: hidden; }
}
@media (min-width: 360px) and (max-width: 639.98px) {
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero .hero-visual-text + .order-2 { margin-top: 88px; }
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero .hero-cta-group { flex-direction: row; }
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero .hero-cta-group > a { flex: 1 1 0; width: auto; min-width: 0; padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero .hero-visual-text + .order-2 { margin-top: 124px; }
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero .hero-visual-text + .order-2::before { height: 208px; margin-top: -156px; --tc-still: url(art/band/day-wide.svg); }
  html[data-tfx-canonical="https://tallyfy.com/"][data-tfx-hour="dawn"] body.tfx #hero .hero-visual-text + .order-2::before { --tc-still: url(art/band/dawn-wide.svg); }
  html[data-tfx-canonical="https://tallyfy.com/"][data-tfx-hour="dusk"] body.tfx #hero .hero-visual-text + .order-2::before { --tc-still: url(art/band/dusk-wide.svg); }
  html[data-tfx-canonical="https://tallyfy.com/"][data-tfx-hour="night"] body.tfx #hero .hero-visual-text + .order-2::before { --tc-still: url(art/band/night-wide.svg); }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  html[data-tfx-canonical="https://tallyfy.com/"] body.tfx #hero .hero-visual-text + .order-2::before { left: -2.5rem; width: calc(100% + 5rem); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 360px) and (max-width: 1023.98px) {
  html[data-tfx-canonical="https://tallyfy.com/"]:not([data-tfx-motion="0"]) body.tfx #hero.tc-live.tc-soft.tc-fade .hero-visual-text + .order-2::before { opacity: 0; transition: opacity 0.45s ease-out, visibility 0s linear 0.45s; }
  html:not([data-tfx-motion="0"]) body.tfx #hero > .tc-hero-scene.tc-late { animation: tc-arrive 0.45s ease-out both; }
  html:not([data-tfx-motion="0"]) body.tfx #hero > .tc-hero-scene.tc-late.tc-opening { animation: tc-act 2.9s linear var(--tc-a, 0s) both, tc-arrive 0.45s ease-out both; }
}
@keyframes tc-arrive { from { opacity: 0; } to { opacity: 1; } }
/* under 360px the home hero has no scene (scene.js draws none): a picture left from a wider window is put away */
@media (max-width: 359.98px) {
  body.tfx #hero > .tc-hero-scene { display: none; }
}
/* [stacked hero band: end] */

/* ---------- the hero's movement: a main image ----------
   Transforms and opacity only; nothing under reduced motion; nothing with `?motion=0` (scene.js adds no classes then).
   scene.js sets each moving part's pivot from the drawing's own data-pivot (transform-box: view-box; the picture is
   drawn 1:1, so its units are px), and these classes and clocks on the picture's box:
   .tc-life     the land's slow life, from the first picture on (--tc-l keeps its place in time across redraws)
   .tc-wait     before the opening: the finished frame, with the flight not yet in
   .tc-opening  the opening, 2.9 s from --tc-o (0 s when it starts; less on a redraw during it)
   .tc-call     the crane's call is in (its frames fit); without it the crane looks up instead
   .tc-alive    the slow life of the crane and the flight, from --tc-t (the opening's end)
   .tc-paused   everything holds where it is
   The opening moves `transform` and `opacity`; the slow life moves `translate`, `rotate` and `scale`, so they add up.

   The opening, 2.9 s, once (scene.js's ACT holds the call's times):
   0.00 to 1.80  the flight glides in, already spread out, from a little to the left and below, fading in as it comes;
                 wings beat out of step and die into a glide.
   0.00 to 0.55  the crane stands at rest; 0.55 s is the cue, by which the call's frames must be in.
   0.55 to 2.47  the crane calls (frames from the module, 24 a second, by rules scene.js writes): its neck straightens
                 up (0.7 s), it holds while its bill beats twice (0.7 s), and it comes back (0.55 s).
   2.47 to 2.82  its head dips 2.5 degrees past rest and settles.
   or, where the call does not fit or its frames came late:
   0.55 to 2.45  the crane crouches a hair, stretches as the birds pass and settles back; from 0.90 to 2.35 its head
                 tips up 6 degrees, holds the look, and comes back past rest and home.
   1.80 to 2.85  the light on the water flares strand by strand toward you, and the glints lengthen.
   1.95 to 2.90  a ring spreads out from the legs and fades, and the still ripple comes back.
   2.20 to 2.85  the bustle settles past rest and back; the feather cuts lift and fall from the shoulder to the tail tip.
   Every part starts and ends at rest. */
.tc-hero-scene .tc-cf { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  body.tfx #hero > .tc-hero-scene [data-pivot] { transform-box: view-box; }
  body.tfx #hero > .tc-hero-scene .lightpath path,
  body.tfx #hero > .tc-hero-scene .ripple { transform-box: fill-box; transform-origin: 50% 50%; }
  body.tfx #hero > .tc-hero-scene .fe1,
  body.tfx #hero > .tc-hero-scene .fe2,
  body.tfx #hero > .tc-hero-scene .fe3,
  body.tfx #hero > .tc-hero-scene .fe4,
  body.tfx #hero > .tc-hero-scene .fe5 { transform-box: fill-box; transform-origin: 0% 50%; }

  /* the act's own length, on the box, so scene.js hears when it has ended (pauses included); its clock (--tc-a) is
     set once, when the act begins, so a redraw during the act leaves it alone */
  body.tfx #hero > .tc-hero-scene.tc-opening { animation: tc-act 2.9s linear var(--tc-a, 0s) both; }

  /* waiting: the flight is not in yet */
  body.tfx #hero > .tc-wait .flight .mark { opacity: 0; }

  /* the opening */
  body.tfx #hero > .tc-opening .flight .mark { animation: tc-glide 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) calc(var(--tc-o, 0s) + var(--st, 0s)) both; }
  body.tfx #hero > .tc-opening .flight .mark > g { animation: tc-beat 1.6s ease-in-out calc(var(--tc-o, 0s) + var(--st, 0s) + var(--ph, 0s)) both; }
  body.tfx #hero > .tc-opening .lightpath path { animation: tc-strand 0.65s cubic-bezier(0.37, 0, 0.63, 1) calc(var(--tc-o, 0s) + 1.8s + var(--sd, 0s)) both; }
  /* the ring: the bird's own ripple round its legs where it wades; where it does not wade (a small crane), the ripple
     of its reflection (scene.js marks the box `tc-reflect` when the picture has no .crane-ripples). Nothing is drawn
     on top of either. */
  body.tfx #hero > .tc-opening .crane-ripples .ripple,
  body.tfx #hero > .tc-opening.tc-reflect .crane-reflection .ripple { animation: tc-ring 0.95s linear calc(var(--tc-o, 0s) + 1.95s) both; }
  body.tfx #hero > .tc-opening .crane .bustle { animation: tc-settle 0.65s cubic-bezier(0.37, 0, 0.63, 1) calc(var(--tc-o, 0s) + 2.2s) both; }
  body.tfx #hero > .tc-opening .crane .fe1,
  body.tfx #hero > .tc-opening .crane .fe2,
  body.tfx #hero > .tc-opening .crane .fe3,
  body.tfx #hero > .tc-opening .crane .fe4,
  body.tfx #hero > .tc-opening .crane .fe5 { animation: tc-feather 0.45s cubic-bezier(0.37, 0, 0.63, 1) calc(var(--tc-o, 0s) + 2.2s + var(--fd, 0s)) both; }
  /* the call: the crane itself steps aside while its frames show, then its head dips; the rules are at the end of
     this file */
  /* where the call does not fit, or its frames were not in by the cue (--tc-cue): from the cue, a crouch, a stretch as
     the birds pass, a look up, and back; the crane is at rest until the cue, so the call can still take its place */
  body.tfx #hero > .tc-opening:not(.tc-call) .crane { animation: tc-stretch 1.9s linear calc(var(--tc-o, 0s) + var(--tc-cue, 0.55s)) both; }
  body.tfx #hero > .tc-opening:not(.tc-call) .crane .head { animation: tc-look 1.45s cubic-bezier(0.37, 0, 0.63, 1) calc(var(--tc-o, 0s) + var(--tc-cue, 0.55s) + 0.35s) both; }

  /* the slow life: periods of 6 s or more, 3px or 1.5 degrees at most, in spells with long rests between, so that most
     of the time little or nothing repaints (an SVG part's movement is painted, not composited) */
  body.tfx #hero > .tc-life .glints { animation: tc-drift var(--dp, 8.5s) ease-in-out calc(var(--tc-l, 0s) - var(--dd, 0s)) infinite; }
  body.tfx #hero > .tc-life.tc-opening .glints { animation: tc-glint-in 0.6s cubic-bezier(0.37, 0, 0.63, 1) calc(var(--tc-o, 0s) + 1.9s + var(--gd, 0s)) both, tc-drift var(--dp, 8.5s) ease-in-out calc(var(--tc-l, 0s) - var(--dd, 0s)) infinite; }
  body.tfx #hero > .tc-life .reeds { animation: tc-sway var(--wp, 9s) ease-in-out calc(var(--tc-l, 0s) - var(--wd, 0s)) infinite; }
  body.tfx #hero > .tc-alive .crane { animation: tc-shift 13.7s ease-in-out calc(var(--tc-t, 0s) + 2.5s) infinite; }
  body.tfx #hero > .tc-alive.tc-opening:not(.tc-call) .crane { animation: tc-stretch 1.9s linear calc(var(--tc-o, 0s) + var(--tc-cue, 0.55s)) both, tc-shift 13.7s ease-in-out calc(var(--tc-t, 0s) + 2.5s) infinite; }
  body.tfx #hero > .tc-alive .flight .mark { animation: tc-ride var(--rp, 15s) ease-in-out calc(var(--tc-t, 0s) - var(--rd, 0s)) infinite; }
  body.tfx #hero > .tc-alive.tc-opening .flight .mark { animation: tc-glide 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) calc(var(--tc-o, 0s) + var(--st, 0s)) both, tc-ride var(--rp, 15s) ease-in-out calc(var(--tc-t, 0s) - var(--rd, 0s)) infinite; }
  /* a flight already in (the card let go before the act): a later act leaves it riding as it was */
  body.tfx #hero > .tc-alive.tc-flown.tc-opening .flight .mark { animation: tc-ride var(--rp, 15s) ease-in-out calc(var(--tc-t, 0s) - var(--rd, 0s)) infinite; }
  body.tfx #hero > .tc-flown.tc-opening .flight .mark > g { animation: none; }

  /* small events after the act (fault 4): scene.js puts one at a time on the box (`tc-ev` and `data-tc-ev`), 20 to
     40 s apart, only while the card is still; each is a movement of the opening, played once from rest to rest */
  body.tfx #hero > .tc-ev[data-tc-ev="look"] .crane .head { animation: tc-look 1.45s cubic-bezier(0.37, 0, 0.63, 1) both; }
  body.tfx #hero > .tc-ev[data-tc-ev="ring"] .crane-ripples .ripple,
  body.tfx #hero > .tc-ev.tc-reflect[data-tc-ev="ring"] .crane-reflection .ripple { animation: tc-ring 0.95s linear both; }
  body.tfx #hero > .tc-ev[data-tc-ev="ruffle"] .crane .bustle { animation: tc-settle 0.65s cubic-bezier(0.37, 0, 0.63, 1) both; }
  body.tfx #hero > .tc-ev[data-tc-ev="ruffle"] .crane .fe1,
  body.tfx #hero > .tc-ev[data-tc-ev="ruffle"] .crane .fe2,
  body.tfx #hero > .tc-ev[data-tc-ev="ruffle"] .crane .fe3,
  body.tfx #hero > .tc-ev[data-tc-ev="ruffle"] .crane .fe4,
  body.tfx #hero > .tc-ev[data-tc-ev="ruffle"] .crane .fe5 { animation: tc-feather 0.45s cubic-bezier(0.37, 0, 0.63, 1) var(--fd, 0s) both; }
  body.tfx #hero > .tc-ev[data-tc-ev="wings"] .flight .mark > g { animation: tc-beat 1.6s ease-in-out var(--ph, 0s) both; }

  /* everything that moves in the scene, as named in the rules above and at the end of this file */
  body.tfx #hero > .tc-hero-scene.tc-paused,
  body.tfx #hero > .tc-hero-scene.tc-paused .crane,
  body.tfx #hero > .tc-hero-scene.tc-paused .head,
  body.tfx #hero > .tc-hero-scene.tc-paused .bustle,
  body.tfx #hero > .tc-hero-scene.tc-paused .fe1,
  body.tfx #hero > .tc-hero-scene.tc-paused .fe2,
  body.tfx #hero > .tc-hero-scene.tc-paused .fe3,
  body.tfx #hero > .tc-hero-scene.tc-paused .fe4,
  body.tfx #hero > .tc-hero-scene.tc-paused .fe5,
  body.tfx #hero > .tc-hero-scene.tc-paused .ripple,
  body.tfx #hero > .tc-hero-scene.tc-paused .mark,
  body.tfx #hero > .tc-hero-scene.tc-paused .mark > g,
  body.tfx #hero > .tc-hero-scene.tc-paused .lightpath path,
  body.tfx #hero > .tc-hero-scene.tc-paused .glints,
  body.tfx #hero > .tc-hero-scene.tc-paused .reeds,
  body.tfx #hero > .tc-hero-scene.tc-paused .tc-cf { animation-play-state: paused !important; }
}
/* the flock comes in as one, every bird by the same amount, so it arrives already spread out; each bird fades in over
   its first third, so none is seen at the picture's edge */
@keyframes tc-glide { from { transform: translate(var(--dx, -200px), var(--dy, 0px)); opacity: 0; } 32% { opacity: 1; } to { transform: none; opacity: 1; } }
/* a far bird's wing flaps by a scale across the line of its body through the shoulder; never to 0, since a wing scaled flat vanishes */
@keyframes tc-beat {
  0%, 100% { transform: none; }
  13% { transform: scaleY(0.22); }
  27% { transform: none; }
  42% { transform: scaleY(0.32); }
  57% { transform: none; }
  74% { transform: scaleY(0.68); }
}
/* the light on the water: each strand lengthens and thickens as it catches the light, and settles (brighter than at
   rest it never gets: only larger, so it reads as a flare and not a flash) */
@keyframes tc-strand { 0%, 100% { transform: none; } 45% { transform: scale(1.65, 1.3); } }
@keyframes tc-glint-in { 0%, 100% { transform: none; } 45% { transform: translateX(4px) scaleX(1.45); } }
/* the ring: the ripple at the legs spreads out to more than twice its width as it fades, then the still ripple comes
   back from small; it is never brighter than at rest */
@keyframes tc-ring {
  0% { transform: none; opacity: 1; animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1); }
  62% { transform: scale(2.4, 1.7); opacity: 0; animation-timing-function: step-end; }
  64% { transform: scale(0.6, 0.75); opacity: 0; animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1); }
  100% { transform: none; opacity: 1; }
}
/* (the crane stepping aside while the frames of its call show, tc-cfbase, is written by scene.js from its timeline)
   after the call the head comes back a little past rest, toward what it faces, and settles */
@keyframes tc-over {
  0% { transform: none; animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1); }
  40% { transform: rotate(calc(var(--dir, 1) * 2.5deg)); animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  100% { transform: none; }
}
/* about the feet, so they stay planted: a crouch (0.4 s), the stretch up as the birds pass (to 1.0 s), held a breath,
   then down a hair past rest and home; at 380px tall the head travels about 3px down and 5px up */
@keyframes tc-stretch {
  0% { transform: none; animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  21% { transform: scale(0.993); animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }
  52% { transform: scale(1.013); animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  66% { transform: scale(1.012); animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  86% { transform: scale(0.998); animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  100% { transform: none; }
}
/* the head tips up about its joint with the neck to look at the birds, holds, comes back 1 degree past and home */
@keyframes tc-look {
  0% { transform: none; animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }
  36% { transform: rotate(calc(var(--dir, 1) * -6deg)); animation-timing-function: linear; }
  62% { transform: rotate(calc(var(--dir, 1) * -5.5deg)); animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  86% { transform: rotate(calc(var(--dir, 1) * 1deg)); animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  100% { transform: none; }
}
@keyframes tc-settle { 0%, 100% { transform: none; } 40% { transform: rotate(-1.8deg); } 74% { transform: rotate(0.5deg); } }
@keyframes tc-feather { 0%, 100% { transform: none; } 45% { transform: rotate(4deg); } 76% { transform: rotate(-1.2deg); } }
/* the crane shifts its weight toward the card with a breath (2.1 s), holds it (3.3 s), and settles back (2.1 s);
   then rests for the other 6.2 s of its 13.7 s */
@keyframes tc-shift { 0%, 54.7%, 100% { rotate: 0deg; scale: 1; } 15.3% { rotate: calc(var(--dir, 1) * 0.5deg); scale: 1.005; } 39.4% { rotate: calc(var(--dir, 1) * 0.5deg); scale: 1.002; } }
/* the flock rides the air together for 3.6 s of every 15 s, each bird a little later and by its own amount */
@keyframes tc-ride { 0%, 24%, 100% { translate: 0 0; } 12% { translate: 0 var(--ra, -2.5px); } }
/* a glint lengthens its drift for 3 s of its period and lies still for the rest */
@keyframes tc-drift { 0%, 40%, 100% { translate: 0 0; } 20% { translate: 2.5px 0; } }
/* a gust: each reed cluster leans, swings a little past and settles in about 3 s of its 11 s, then is still */
@keyframes tc-sway { 0%, 30%, 100% { rotate: 0deg; } 11% { rotate: var(--wa, 1deg); } 21% { rotate: calc(var(--wa, 1deg) * -0.25); } }

/* ---------- the 404: the butler's box holds the crane, head down, searching ----------
   The box keeps its size (502 by 377 at 1440, from its own aspect ratio) and exists only at 1024px and up. The
   butler, a drawing in another style, is taken off; the picture lies in the box absolutely, so it takes no room
   (in flow it would stretch the box, whose height comes from aspect-ratio with min-height auto). */
body.tfx.r3-404 main#main-content > .grid > .art { background-image: none !important; position: relative; }
/* a printed plate: the system's thin ink edge, drawn outside the box so its size does not change */
body.tfx.r3-404 main#main-content > .grid > .art > .tc-lost { position: absolute; inset: 0; overflow: hidden; box-shadow: 0 0 0 var(--c1-line) var(--c1-ink); }
body.tfx.r3-404 .tc-lost > svg { display: block; width: 100%; height: 100%; }
/* the act's clock: nothing moves; it only ends when the act does */
@keyframes tc-act { from { opacity: 1; } to { opacity: 1; } }

/* ---------- the crane's call ----------
   Made from scene.js's ACT and STEPS (the times are in the comment at the top): frame i of the call (.tc-cf<i>) shows in
   its slots, and the crane itself steps aside from the cue (0.55 s) to the end of the way down (2.47 s), then its head
   dips. Every delay is the act's own (--tc-o) plus --tc-k (minus the act's time when the frames came in), so frames that
   arrive during the act fall in step with it. A change to ACT or STEPS in scene.js needs the same change here. They sit
   last, where scene.js used to put them as a stylesheet of their own. */
@media (prefers-reduced-motion: no-preference) {
  body.tfx #hero > .tc-call.tc-opening .tc-cf { animation: tc-cf0 2.9s step-end calc(var(--tc-o, 0s) + var(--tc-k, 0s)) both; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf0 { animation-name: tc-cf0; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf1 { animation-name: tc-cf1; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf2 { animation-name: tc-cf2; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf3 { animation-name: tc-cf3; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf4 { animation-name: tc-cf4; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf5 { animation-name: tc-cf5; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf6 { animation-name: tc-cf6; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf7 { animation-name: tc-cf7; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf8 { animation-name: tc-cf8; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf9 { animation-name: tc-cf9; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf10 { animation-name: tc-cf10; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf11 { animation-name: tc-cf11; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf12 { animation-name: tc-cf12; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf13 { animation-name: tc-cf13; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf14 { animation-name: tc-cf14; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf15 { animation-name: tc-cf15; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf16 { animation-name: tc-cf16; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf17 { animation-name: tc-cf17; }
  body.tfx #hero > .tc-call.tc-opening .tc-cf18 { animation-name: tc-cf18; }
  body.tfx #hero > .tc-call.tc-opening .crane { animation: tc-cfbase 2.9s step-end calc(var(--tc-o, 0s) + var(--tc-k, 0s)) both; }
  body.tfx #hero > .tc-alive.tc-opening.tc-call .crane { animation: tc-cfbase 2.9s step-end calc(var(--tc-o, 0s) + var(--tc-k, 0s)) both, tc-shift 13.7s ease-in-out calc(var(--tc-t, 0s) + 2.5s) infinite; }
  body.tfx #hero > .tc-call.tc-opening .crane .head { animation: tc-over 0.35s cubic-bezier(0.37, 0, 0.63, 1) calc(calc(var(--tc-o, 0s) + var(--tc-k, 0s)) + 2.468s) both; }
}
@keyframes tc-cf0 { 0% { opacity: 0; } 18.966% { opacity: 1; } 20.385% { opacity: 0; } 83.976% { opacity: 1; } 85.091% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf1 { 0% { opacity: 0; } 20.385% { opacity: 1; } 21.805% { opacity: 0; } 82.86% { opacity: 1; } 83.976% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf2 { 0% { opacity: 0; } 21.805% { opacity: 1; } 23.225% { opacity: 0; } 81.744% { opacity: 1; } 82.86% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf3 { 0% { opacity: 0; } 23.225% { opacity: 1; } 24.645% { opacity: 0; } 80.629% { opacity: 1; } 81.744% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf4 { 0% { opacity: 0; } 24.645% { opacity: 1; } 26.065% { opacity: 0; } 79.513% { opacity: 1; } 80.629% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf5 { 0% { opacity: 0; } 26.065% { opacity: 1; } 27.485% { opacity: 0; } 78.398% { opacity: 1; } 79.513% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf6 { 0% { opacity: 0; } 27.485% { opacity: 1; } 28.905% { opacity: 0; } 77.282% { opacity: 1; } 78.398% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf7 { 0% { opacity: 0; } 28.905% { opacity: 1; } 30.325% { opacity: 0; } 76.166% { opacity: 1; } 77.282% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf8 { 0% { opacity: 0; } 30.325% { opacity: 1; } 31.744% { opacity: 0; } 75.051% { opacity: 1; } 76.166% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf9 { 0% { opacity: 0; } 31.744% { opacity: 1; } 33.164% { opacity: 0; } 73.935% { opacity: 1; } 75.051% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf10 { 0% { opacity: 0; } 33.164% { opacity: 1; } 34.584% { opacity: 0; } 72.819% { opacity: 1; } 73.935% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf11 { 0% { opacity: 0; } 34.584% { opacity: 1; } 36.004% { opacity: 0; } 71.704% { opacity: 1; } 72.819% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf12 { 0% { opacity: 0; } 36.004% { opacity: 1; } 37.424% { opacity: 0; } 70.588% { opacity: 1; } 71.704% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf13 { 0% { opacity: 0; } 37.424% { opacity: 1; } 38.844% { opacity: 0; } 69.473% { opacity: 1; } 70.588% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf14 { 0% { opacity: 0; } 38.844% { opacity: 1; } 40.264% { opacity: 0; } 68.357% { opacity: 1; } 69.473% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf15 { 0% { opacity: 0; } 40.264% { opacity: 1; } 41.684% { opacity: 0; } 67.241% { opacity: 1; } 68.357% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf16 { 0% { opacity: 0; } 41.684% { opacity: 1; } 43.103% { opacity: 0; } 43.103% { opacity: 1; } 45.785% { opacity: 0; } 53.831% { opacity: 1; } 56.513% { opacity: 0; } 64.559% { opacity: 1; } 67.241% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf17 { 0% { opacity: 0; } 45.785% { opacity: 1; } 48.467% { opacity: 0; } 51.149% { opacity: 1; } 53.831% { opacity: 0; } 56.513% { opacity: 1; } 59.195% { opacity: 0; } 61.877% { opacity: 1; } 64.559% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cf18 { 0% { opacity: 0; } 48.467% { opacity: 1; } 51.149% { opacity: 0; } 59.195% { opacity: 1; } 61.877% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tc-cfbase { 0% { opacity: 1; } 18.966% { opacity: 0; } 85.091% { opacity: 1; } 100% { opacity: 1; } }
