/* Round 3: the solution pages, where the picture leads ("Three steps"; owner decision 87, tallyfy/work-queue#5229).

   On the 33 solution pages (canonical under /solutions/, the top that holds the fold card) two pictures carry the
   page's argument, work passed along one step after another:
     1. The top ends in the shallows, not in a band. Three cranes cross in a line toward the card: the first with its
        head down, the second looking up, the third tall and about to call.
     2. A river crosses the page above "Start Your Free Trial". The paper is its sky, the trial band its near bank,
        and the same three stand on three stepping stones.
   Both end in the paper shoreline (the shared shoreline module), never in a ruled line.

   Everything here is a still painted by CSS from small cached files (art/flair-solution/, built by build.mjs there from
   the illustrator's module), by the visitor's hour (`data-tfx-hour` on <html>, set by first.js; day when there is no
   hour). With scripts off the page shows these stills. Movement is added by parts/85-flair-solution.js.

   Why nothing can come within 16px of a word or control, on any of the 33 pages at any width:
   - The land lies in bottom padding this sheet adds: its top is 16px under the grid that holds the words and the card.
   - At 1280px and wider the three stand in a corridor that is free on every page: the words column, from 1rem under
     the paragraph's foot down to the top's foot, right of the two buttons. The corridor is the `::after` of the words
     column, a flex item that takes the free room under the buttons (the column's words stay centred because its
     `::before` takes the same room over the heading). The picture is laid from the corridor's right foot and scaled to
     its height, so a page with a long heading gets smaller birds, never a collision. The corridor is kept at least
     13.75rem and 16px tall, and the picture's own top left is empty where the buttons stand at every width and scale that
     leaves (build.mjs states the rule and fails the build if a point breaks it).
   - Under 1280px the three stand inside the foot itself. */

/* ---------- 1. The hour's files and the water's flat inks (far to near), day when there is no hour ---------- */
html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual {
  --fs-land: url('../art/flair-solution/top-land-day.svg');
  --fs-three: url('../art/flair-solution/top-three-day.svg');
  --fs-landfoot: url('../art/flair-solution/top-landfoot-day.svg');
  --fs-threefoot: url('../art/flair-solution/top-threefoot-day.svg');
  --fs-flight: url('../art/flair-solution/top-flight.svg');
  --fs-w1: #a6c6e3; --fs-w2: #7aa2d2; --fs-w3: #5f88bf;
}
html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='dawn'] body.tfx section.hero-dark-forced.hero-has-visual {
  --fs-land: url('../art/flair-solution/top-land-dawn.svg');
  --fs-three: url('../art/flair-solution/top-three-dawn.svg');
  --fs-landfoot: url('../art/flair-solution/top-landfoot-dawn.svg');
  --fs-threefoot: url('../art/flair-solution/top-threefoot-dawn.svg');
  --fs-w1: #e9d0bd; --fs-w2: #a8abc4; --fs-w3: #8a92b0;
}
html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='dusk'] body.tfx section.hero-dark-forced.hero-has-visual {
  --fs-land: url('../art/flair-solution/top-land-dusk.svg');
  --fs-three: url('../art/flair-solution/top-three-dusk.svg');
  --fs-landfoot: url('../art/flair-solution/top-landfoot-dusk.svg');
  --fs-threefoot: url('../art/flair-solution/top-threefoot-dusk.svg');
  --fs-w1: #eba55e; --fs-w2: #9a6179; --fs-w3: #4c4a78;
}
html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='night'] body.tfx section.hero-dark-forced.hero-has-visual {
  --fs-land: url('../art/flair-solution/top-land-night.svg');
  --fs-three: url('../art/flair-solution/top-three-night.svg');
  --fs-landfoot: url('../art/flair-solution/top-landfoot-night.svg');
  --fs-threefoot: url('../art/flair-solution/top-threefoot-night.svg');
  --fs-w1: #1b3940; --fs-w2: #153037; --fs-w3: #11282e;
}

/* Under 700px the foot's land is a narrower file (720 wide where the foot's is 1560), so a phone fetches less. */
@media (max-width: 699.98px) {
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual { --fs-landfoot: url('../art/flair-solution/top-landphone-day.svg'); }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='dawn'] body.tfx section.hero-dark-forced.hero-has-visual { --fs-landfoot: url('../art/flair-solution/top-landphone-dawn.svg'); }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='dusk'] body.tfx section.hero-dark-forced.hero-has-visual { --fs-landfoot: url('../art/flair-solution/top-landphone-dusk.svg'); }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='night'] body.tfx section.hero-dark-forced.hero-has-visual { --fs-landfoot: url('../art/flair-solution/top-landphone-night.svg'); }
}

/* Where the corridor is the picture's full width (1440 to 1535px, and from 1800px, where the site's 20px root makes
   1440 of the picture's units), the roomier cut of the three: the middle bird stands right of the buttons and is tall. */
@media (min-width: 1440px) and (max-width: 1535.98px), (min-width: 1800px) {
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual { --fs-three: url('../art/flair-solution/top-three-wide-day.svg'); }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='dawn'] body.tfx section.hero-dark-forced.hero-has-visual { --fs-three: url('../art/flair-solution/top-three-wide-dawn.svg'); }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='dusk'] body.tfx section.hero-dark-forced.hero-has-visual { --fs-three: url('../art/flair-solution/top-three-wide-dusk.svg'); }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='night'] body.tfx section.hero-dark-forced.hero-has-visual { --fs-three: url('../art/flair-solution/top-three-wide-night.svg'); }
}

/* ---------- 2. The top's foot at 1280px and wider: 8.25rem of land, 16px under the grid ----------
   In rem, so the picture keeps its size beside the words: 132px at the site's 16px root, 165px from 1536px wide where
   the root is 20px. The gap over it is 16px at every root, as under the ordinary band, so the top is exactly 3rem
   taller than with that band (8.25rem and 16px of bottom padding where it had 5.25rem and 16px). */
html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual {
  --fs-foot: 8.25rem;
  padding-bottom: calc(var(--fs-foot) + 16px);
}
html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual::after {
  /* the whole box is stated here, so this top stands alone when the bands sheet (parts/90-bands.css) leaves solution
     pages out; while that sheet still matches them, these are the same values it gives */
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  pointer-events: none;
  background-color: transparent;
  height: var(--fs-foot);
  /* the land, cut at the shoreline; under its cut the paper with its grain (a strip as tall as the shoreline's reach);
     under those the water's three flat inks, so the water is there with the first paint */
  background-image: var(--fs-land), var(--c1-grain), linear-gradient(var(--c1-paper), var(--c1-paper)),
    linear-gradient(var(--fs-w3), var(--fs-w3)), linear-gradient(var(--fs-w2), var(--fs-w2)), linear-gradient(var(--fs-w1), var(--fs-w1));
  background-repeat: no-repeat, repeat-x, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: auto var(--fs-foot), auto, 100% 1.625rem, 100% 3.1875rem, 100% 5.25rem, 100% 6.25rem;
  background-position: right bottom, left 0 top calc(100% - 1.625rem), left bottom, left bottom, left bottom, left bottom;
}

@media (min-width: 1280px) {
  /* The words column takes the grid row's whole height (it was centred in it; its own `justify-content: center` keeps
     the words where they were), so its two pseudo-elements can share the free room over and under the words. */
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual .hero-visual-text { align-self: stretch; }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual .hero-visual-text::before,
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual .hero-visual-text::after {
    content: '';
    display: block;
    flex: 1 1 0;
    /* at least 1.25rem of free room over and under the words (with the margins that is 13.75rem and 16px, which is
       14.75rem at a 16px root): the corridor is then never lower than the picture is drawn for
       (art/flair-solution/build.mjs, THREE). No page reaches this today: the lowest corridor of the 33, at 1536px
       wide on two pages, is 1px over it. A page with more words gets a taller top. */
    min-height: calc(13.75rem + 16px);
    pointer-events: none;
    background-repeat: no-repeat;
  }
  /* The corridor: from 1rem over the buttons' top (the buttons are 3.25rem tall) to the top's foot (the land's
     8.25rem and 16px under the grid), and 4rem past the column's right edge, which is 1rem short of the card. The two
     margins are 12.5rem and 16px in all; the `::before` carries the same so both take the same share and the words
     stay centred. */
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual .hero-visual-text::after {
    margin: -4.25rem -4rem calc(0px - var(--fs-foot) - 16px) 0;
    background-image: var(--fs-three);
    background-position: right bottom;
    background-size: auto min(100%, 20.0625rem);
  }
  /* The far flight, over the heading: in the room between the top's own top padding (4rem) and the heading, 1rem
     clear of both, at most 4rem tall. */
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual .hero-visual-text::before {
    margin-top: calc(-4.25rem - var(--fs-foot) - 16px);
    background-image: var(--fs-flight);
    background-position: left 2.5rem bottom 1rem;
    background-size: auto min(4rem, calc(100% - 2.25rem - var(--fs-foot) - 16px));
  }
  /* at night the moon stands in the same layer, over the heading's right end, 2rem clear of it (the land along the
     foot has only a low strip of sky, which a moon does not fit) */
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='night'] body.tfx section.hero-dark-forced.hero-has-visual .hero-visual-text::before {
    background-image: var(--fs-flight), url('../art/flair-solution/top-moon.svg');
    background-position: left 2.5rem bottom 1rem, right 2.5rem bottom 2rem;
    background-size: auto min(4rem, calc(100% - 2.25rem - var(--fs-foot) - 16px)), auto 1.875rem;
  }
}

/* ---------- 3. Under 1280px: the three stand inside a taller foot (12.25rem), after the card and the badge ---------- */
@media (max-width: 1279.98px) {
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual { --fs-foot: 12.25rem; }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual::after {
    background-image: var(--fs-threefoot), var(--fs-landfoot), var(--c1-grain), linear-gradient(var(--c1-paper), var(--c1-paper)),
      linear-gradient(var(--fs-w3), var(--fs-w3)), linear-gradient(var(--fs-w2), var(--fs-w2)), linear-gradient(var(--fs-w1), var(--fs-w1));
    background-repeat: no-repeat, no-repeat, repeat-x, no-repeat, no-repeat, no-repeat, no-repeat;
    background-size: auto 11.875rem, auto var(--fs-foot), auto, 100% 1rem, 100% 3.5rem, 100% 5.8125rem, 100% 6.875rem;
    background-position: center bottom, right bottom, left 0 top calc(100% - 1rem), left bottom, left bottom, left bottom, left bottom;
  }
}

/* ---------- 4. The live copy: parts/85-flair-solution.js puts the three into the page where their still stood ----------
   The script's element is `.fs-live`. At 1280px and wider it is the last flex item of the words column and takes the
   corridor exactly as the `::after` did, which then goes. Under 1280px it lies along the top's foot, and the still's
   layer in the foot's background is left out. Without the script none of this matches anything. */
html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx .fs-live { display: none; pointer-events: none; }
/* (its own layer: a bird that moves is redrawn alone, never the paper and its grain under it) */
html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx .fs-live > svg { position: absolute; display: block; width: auto; overflow: visible; will-change: transform; }
@media (min-width: 1280px) {
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual .hero-visual-text:has(> .fs-live-desk)::after { content: none; }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual .hero-visual-text > .fs-live-desk {
    display: block;
    position: relative;
    flex: 1 1 0;
    min-height: calc(13.75rem + 16px);
    margin: -4.25rem -4rem calc(0px - var(--fs-foot) - 16px) 0;
  }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx .fs-live-desk > svg { right: 0; bottom: 0; height: min(100%, 20.0625rem); }
}
@media (max-width: 1279.98px) {
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual:has(> .fs-live-foot) { --fs-threefoot: none; }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx section.hero-dark-forced.hero-has-visual > .fs-live-foot {
    display: block;
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    height: 11.875rem;
  }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx .fs-live-foot > svg { left: 50%; bottom: 0; height: 100%; transform: translateX(-50%); }
}

/* ---------- 5. Movement: the step passes down the line once, then slow life ----------
   Only where motion is allowed, and only inside the script's element, so the stills never move. Each part turns about
   the pivot build.mjs baked into it: `fs-nh` the neck and head about the neck's base, `head` about its own pivot,
   `fs-up` everything above the legs about the hip, the whole bird about its feet. Every part starts and ends at rest,
   so the act's last frame is the still.

   The act, 2 s: the far bird lifts its head from the water (0.1 to 0.65 s) and holds it up; the middle bird leans to
   the near one and nods (0.5 to 1.25 s); the near bird draws itself up and calls twice toward the card (0.85 to 1.65 s);
   all three ease back by 2 s. One eased movement at a time leads the eye down the line. It is 2 s so that it fits whole
   inside the card's shortest still moment (2.75 s) with half a second to spare on a busy machine. */
@media (prefers-reduced-motion: no-preference) {
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live.fs-hold .fs-bird,
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live.fs-hold .fs-up,
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live.fs-hold .fs-nh,
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live.fs-hold .head { animation-play-state: paused !important; }

  html:root:not([data-tfx-motion='0']) body.tfx .fs-live.fs-act .fs-b1 .fs-nh { animation: fs-a1-lift 2s cubic-bezier(0.45, 0, 0.25, 1) both; }
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live.fs-act .fs-b1 .head { animation: fs-a1-head 2s cubic-bezier(0.45, 0, 0.25, 1) both; }
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live.fs-act .fs-b2 .fs-nh { animation: fs-a2-lean 2s cubic-bezier(0.45, 0, 0.25, 1) both; }
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live.fs-act .fs-b2 .head { animation: fs-a2-nod 2s cubic-bezier(0.45, 0, 0.25, 1) both; }
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live.fs-act .fs-b3 .fs-up { animation: fs-a3-up 2s cubic-bezier(0.45, 0, 0.25, 1) both; }
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live.fs-act .fs-b3 .fs-nh { animation: fs-a3-neck 2s cubic-bezier(0.45, 0, 0.25, 1) both; }
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live.fs-act .fs-b3 .head { animation: fs-a3-call 2s cubic-bezier(0.45, 0, 0.25, 1) both; }

  /* Slow life, on the wide top only (1280px and wider). Movement that goes on for more than five seconds needs a way
     to pause it, and there the card's own pause button ("Pause animation") stands beside the birds and holds them
     too (`.fs-hold`, above). In the foot under 1280px and on the river there is no such button in the same view, so
     the three make their step once and are then still.
     One small gesture at a time, each ending by itself: the far bird pecks (1.5 s), the near one shifts its weight
     (2.6 s), the middle one looks round (2.4 s), in turn. The script starts one about every 7 s (the classes `fs-g1`
     to `fs-g3`) and takes the class away when it ends. Between gestures no animation exists, so nothing is drawn. */
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live-desk.fs-g1 .fs-b1 .fs-nh { animation: fs-g-peck 1.5s ease-in-out both; }
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live-desk.fs-g2 .fs-b3.fs-bird { animation: fs-g-shift 2.6s ease-in-out both; }
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live-desk.fs-g3 .fs-b2 .head { animation: fs-g-look 2.4s ease-in-out both; }
}
/* the far bird: a small dip first, then the head comes up 38 degrees and the bill a little more */
@keyframes fs-a1-lift { 0%, 3% { transform: rotate(0deg); } 8% { transform: rotate(2.5deg); } 33%, 66% { transform: rotate(-38deg); } 96%, 100% { transform: rotate(0deg); } }
@keyframes fs-a1-head { 0%, 8% { transform: rotate(0deg); } 35%, 64% { transform: rotate(-18deg); } 94%, 100% { transform: rotate(0deg); } }
/* the middle bird: leans toward the near one, nods once */
@keyframes fs-a2-lean { 0%, 24% { transform: rotate(0deg); } 40%, 58% { transform: rotate(5deg); } 72%, 100% { transform: rotate(0deg); } }
@keyframes fs-a2-nod { 0%, 30% { transform: rotate(0deg); } 44% { transform: rotate(13deg); } 54% { transform: rotate(4deg); } 62% { transform: rotate(11deg); } 76%, 100% { transform: rotate(0deg); } }
/* the near bird: draws itself up, throws its head back and calls twice, comes back a little past rest and settles */
@keyframes fs-a3-up { 0%, 40% { transform: rotate(0deg); } 54%, 82% { transform: rotate(-3deg); } 94% { transform: rotate(0.6deg); } 100% { transform: rotate(0deg); } }
@keyframes fs-a3-neck { 0%, 41% { transform: rotate(0deg); } 56%, 82% { transform: rotate(-7deg); } 95% { transform: rotate(1deg); } 100% { transform: rotate(0deg); } }
@keyframes fs-a3-call { 0%, 43% { transform: rotate(0deg); } 58% { transform: rotate(-36deg); } 63% { transform: rotate(-42deg); } 68% { transform: rotate(-36deg); } 74% { transform: rotate(-42deg); } 80% { transform: rotate(-36deg); } 95% { transform: rotate(2deg); } 100% { transform: rotate(0deg); } }
@keyframes fs-g-peck { 0%, 100% { transform: rotate(0deg); } 22% { transform: rotate(-6deg); } 44% { transform: rotate(1deg); } 66% { transform: rotate(-5deg); } }
@keyframes fs-g-look { 0%, 100% { transform: rotate(0deg); } 30%, 68% { transform: rotate(-8deg); } }
/* (the leader shifts its weight back, away from the card, so this gesture can only widen the gap to the card) */
@keyframes fs-g-shift { 0%, 100% { transform: rotate(0deg); } 36%, 64% { transform: rotate(-0.8deg); } }

/* ---------- 6. The river above the trial band ----------
   The band keeps its own ground and words. The river hangs over its top edge in the band's `::before`: 20rem tall
   (14.375rem under 700px), its last 2rem (1.25rem under 700px) lying over the band, where the picture is cut at the
   shoreline so the band's own paper shows under the edge. The band's top margin makes the room: the river's height,
   less what it overlaps and less a part of the spacer that already stands above the band (the spacer is 150px from
   1024px wide and 80px under it; 94px and 32px of it are used, so 56px and 48px of paper stay over the river's box).
   By dawn, day and dusk the page's paper is the river's sky. At night the river's sky is a night panel: the night
   paper and its grain behind the picture, down to the overlap and no further (clipped to the content box, the overlap
   being bottom padding).

   The river's two files are asked for only when the band comes near, where the browser has view timelines: the two
   names are `none` until a keyframe on the band's own view timeline, reaching 1000px beyond the window, sets them.
   No script is needed for that; where my script runs it takes the switch over (see under the keyframes below). A
   browser without view timelines, and a visitor who asked for reduced motion, get the files with the page. */
html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx main section.signup-cta.signup-cta {
  --fs-rh: 20rem;
  --fs-rov: 2rem;
  --fs-rsky: 0rem;
  --fs-rgap: 32px;
  --fs-river-file: url('../art/flair-solution/river-land-day.svg');
  --fs-river3-file: url('../art/flair-solution/river-three-day.svg');
  --fs-river: var(--fs-river-file);
  --fs-river3: var(--fs-river3-file);
  --fs-river-sky: none;
  --fs-river-grain: none;
  margin-top: calc(var(--fs-rh) + var(--fs-rsky) - var(--fs-rov) - var(--fs-rgap));
  /* (the band's own rules are left to the template's sheets. The rule along its top edge lies under the river's
     water, which overlaps the band by more than the shoreline's reach, so it does not show.) */
}
html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='dawn'] body.tfx main section.signup-cta.signup-cta { --fs-river-file: url('../art/flair-solution/river-land-dawn.svg'); --fs-river3-file: url('../art/flair-solution/river-three-dawn.svg'); }
html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='dusk'] body.tfx main section.signup-cta.signup-cta { --fs-river-file: url('../art/flair-solution/river-land-dusk.svg'); --fs-river3-file: url('../art/flair-solution/river-three-dusk.svg'); }
html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='night'] body.tfx main section.signup-cta.signup-cta {
  --fs-river-file: url('../art/flair-solution/river-land-night.svg'); --fs-river3-file: url('../art/flair-solution/river-three-night.svg');
  --fs-river-sky: linear-gradient(var(--c1-night), var(--c1-night));
  --fs-river-grain: var(--c1-grain-night);
  /* the night panel reaches 1.5rem higher than the picture, so the calling bird's bill has sky over it */
  --fs-rsky: 1.5rem;
}
html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx main section.signup-cta.signup-cta::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - var(--fs-rov));
  box-sizing: border-box;
  height: calc(var(--fs-rh) + var(--fs-rsky));
  padding-bottom: var(--fs-rov);
  pointer-events: none;
  background-image: var(--fs-river3), var(--fs-river), var(--fs-river-grain), var(--fs-river-sky);
  background-repeat: no-repeat, no-repeat, repeat, no-repeat;
  background-position: center bottom, center bottom, 0 0, 0 0;
  background-size: auto var(--fs-rh), auto var(--fs-rh), auto, 100% 100%;
  background-origin: border-box, border-box, content-box, content-box;
  background-clip: border-box, border-box, content-box, content-box;
}
@media (max-width: 699.98px) {
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx main section.signup-cta.signup-cta {
    --fs-rh: 14.375rem;
    --fs-rov: 1.25rem;
    --fs-river-file: url('../art/flair-solution/river-land-phone-day.svg');
    --fs-river3-file: url('../art/flair-solution/river-three-phone-day.svg');
  }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='dawn'] body.tfx main section.signup-cta.signup-cta { --fs-river-file: url('../art/flair-solution/river-land-phone-dawn.svg'); --fs-river3-file: url('../art/flair-solution/river-three-phone-dawn.svg'); }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='dusk'] body.tfx main section.signup-cta.signup-cta { --fs-river-file: url('../art/flair-solution/river-land-phone-dusk.svg'); --fs-river3-file: url('../art/flair-solution/river-three-phone-dusk.svg'); }
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'][data-tfx-hour='night'] body.tfx main section.signup-cta.signup-cta { --fs-river-file: url('../art/flair-solution/river-land-phone-night.svg'); --fs-river3-file: url('../art/flair-solution/river-three-phone-night.svg'); }
}
@media (min-width: 1024px) {
  html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx main section.signup-cta.signup-cta { --fs-rgap: 94px; }
}
@supports (animation-timeline: view()) {
  @media screen and (prefers-reduced-motion: no-preference) {
    html:root[data-tfx-canonical*='tallyfy.com/solutions/']:not([data-tfx-motion='0']) body.tfx main section.signup-cta.signup-cta {
      --fs-river: none;
      --fs-river3: none;
      animation: fs-river-near linear both;
      animation-timeline: view(-1000px);
      animation-range: entry 0% entry 1%;
    }
  }
}
@keyframes fs-river-near { to { --fs-river: var(--fs-river-file); --fs-river3: var(--fs-river3-file); } }
/* A scroll-driven animation has a cost for as long as it exists: the compositor keeps ticking at rest, and the
   element it sits on (here the band, with its grain) is painted again as the page scrolls. So when my script runs it
   takes the switch over at once and the view timeline goes: the script puts a marker of its own into the band
   (`fs-wait`: not yet), and turns it to `fs-near` when the band comes within 1000px. A visitor with scripts carries
   the timeline only until the site's start; without scripts it does the whole job, as above. */
html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx .fs-mark { display: none; }
html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx main section.signup-cta.signup-cta:has(> .fs-wait) { animation: none; --fs-river: none; --fs-river3: none; }
html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx main section.signup-cta.signup-cta:has(> .fs-near) { animation: none; --fs-river: var(--fs-river-file); --fs-river3: var(--fs-river3-file); }
/* the river's live copy of the three (the script's element), where their still lay; the still's layer is left out.
   And once the live copy is in, the land is asked for whatever the view timeline says: a browser that did not move
   the timeline on (seen in Chrome 131 on another page when nothing else was animating) still shows the river. */
html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx main section.signup-cta.signup-cta:has(> .fs-live-river) { --fs-river3-file: none; --fs-river: var(--fs-river-file); }
html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx main section.signup-cta > .fs-live-river {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - var(--fs-rov));
  height: var(--fs-rh);
}
html:root[data-tfx-canonical*='tallyfy.com/solutions/'] body.tfx .fs-live-river > svg { left: 50%; bottom: 0; height: 100%; transform: translateX(-50%); }
/* on the stones the near bird stands calling already: in the act it beats its bill twice, and leans a little */
@media (prefers-reduced-motion: no-preference) {
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live-river.fs-act .fs-b3 .head { animation: fs-r3-beat 2s cubic-bezier(0.45, 0, 0.25, 1) both; }
  html:root:not([data-tfx-motion='0']) body.tfx .fs-live-river.fs-act .fs-b3 .fs-nh { animation: none; }
}
@keyframes fs-r3-beat { 0%, 50% { transform: rotate(0deg); } 58% { transform: rotate(-6deg); } 64% { transform: rotate(0deg); } 71% { transform: rotate(-6deg); } 80%, 100% { transform: rotate(0deg); } }
