/* ═══════════ SEE IT IN ACTION — THE DESKTOP STATE CHANGE, CALMED (5 Oct 2026) ═════════
   WHY IT SNAPPED (from the code; the frame-by-frame evidence is in the report): the
   three states are three DIFFERENT device arrangements - two upright phones, one large
   phone turned -12deg, two phones crossing at +-6-8deg - and the final-performance pass
   cross-faded them: the leaver at 280ms, the arriver from 120ms over 480ms, so for
   ~160ms both were part-transparent at once. A double exposure of differently posed
   phones is what the eye reads as phones tilting, swinging and stacking. The two
   stages also drifted in OPPOSITE directions (-10px out, +12px in), which made the
   mechanics of the swap visible.

   NOW ONE SHORT EVENT, ~340ms, that does not show its mechanics:
     leaving   opacity only, 120ms from the click on a soft-start curve (13% in the first frame, ~88%
               gone by 80ms; it does not move at all - it goes
     arriving  from 80ms: opacity over 240ms (at most 19% in any one frame) and a 6px rise + .985 -> 1 over 260ms on a
               long, soft ease-out - already close to where it lands, no stop at the end
   By the time the arriver is visibly there the leaver is gone, so no frame holds two
   arrangements at visible strength (measured frame by frame: see the report). No rotation is animated anywhere: each state's
   pose is unchanged and simply appears. The latest click wins (seek-next-fmot.js §6):
   a composition still fading from an EARLIER click is sped up to 90ms from wherever it
   is - never cut, since a cut at half strength would pop - so rapid clicks never leave
   stale compositions under the new one. The timing rules below are desktop and tablet
   only (>= 760px); the phone layout keeps its own motion, and only the 90ms rule
   (rapid taps) applies there too. */
.orb__card[data-orb-live] .stage[data-leave="fast"],
.orb__card[data-orb-live][data-orb-dir="prev"] .stage[data-leave="fast"] {
  transition: opacity 90ms linear;
}
@media (min-width: 760px) {
  /* ═══ LAPTOP / DESKTOP, 6 Oct 2026 (b): STATIC -> FADE OUT -> NEAR-EMPTY -> FADE IN STATIC ═══
     Modelled on the owner's motion reference (Reference 2, 13:38 recording), measured frame by
     frame: its incoming composition rises on an ease-in-out curve (under 12% for its first
     ~160ms, half at ~330ms, whole by ~550ms), which is what reads as a calm, brief, almost
     empty stage before the next layout. Here ONLY opacity animates - every stage, in every
     state and either click direction, sits at its exact final geometry (no translate, no
     scale, no rotation), so a layout is in place before it is readable:
       leaving    1 -> 0, 100ms linear                                    0 -> 100ms
       arriving   0 -> 1, 380ms ease-in-out, from 110ms                 110 -> 490ms
     The arriving delay is longer than the leaving fade, so two different arrangements are
     never on screen together. The latest click wins (seek-next-fmot.js §6, unchanged): what
     is on screen fades out from wherever it is, an older click's leaver is finished within
     60ms, and only the newest layout comes in. The 5 Oct backward-click bug (a selected
     stage parked 6px low at .985) cannot recur: no rule here or below gives any stage a
     translate or scale at this width. */
  .orb__card[data-orb-live] .stage,
  .orb__card[data-orb-live][data-orb-dir] .stage,
  .orb__card[data-orb-live] .stage[data-leave],
  .orb__card[data-orb-live][data-orb-dir] .stage[data-leave] {
    translate: none; scale: none; rotate: none;
  }
  .orb__card[data-orb-live] .stage[data-leave],
  .orb__card[data-orb-live][data-orb-dir] .stage[data-leave] {          /* on its way out */
    transition: opacity 100ms linear;
  }
  .orb__card[data-orb-live] .stage[data-leave="fast"],
  .orb__card[data-orb-live][data-orb-dir] .stage[data-leave="fast"] {   /* an older click's */
    transition: opacity 60ms linear;
  }
  .orb__card[data-orb-live][data-orb-state="1"] .stage--1,
  .orb__card[data-orb-live][data-orb-state="2"] .stage--2,
  .orb__card[data-orb-live][data-orb-state="3"] .stage--3 {
    transition: opacity 380ms cubic-bezier(.42, 0, .58, 1) 110ms;
  }
  /* ═══ THE OPTION ROWS (6 Oct 2026, c): ONE CONTINUOUS CARD, NO SHELL ═══
     WHY THE ROW BACKGROUND SNAPPED (owner's laptop recording + a paused live frame): the FLIP
     script (index.html <script data-flip>, ghost()) takes the CLOSING row's card away for the whole
     650ms (its background held transparent) and draws a stand-in "shell" that shrinks in its place.
     containerFor() puts that shell in #orb, the first ancestor with a position AND a z-index, at
     z-index:-1 - which is BEHIND .orb__card's opaque surface (rgb 28,28,27). So on a laptop the
     closing row had no card at all for 650ms, and when the animation finished the row's own
     background came back, full size, in ONE frame: the snap. Its description also vanished on the
     click frame.
     NOW the row's own box does the work and nothing stands in for it: the description track
     animates 0fr <-> 1fr here, so the row's background, padding and clipping are the row's own
     from the first frame to the last, and the last frame is simply the layout. Because the track
     is still at its old size when the FLIP script reads the rows after the click, it finds no
     change and does nothing (its "no-op" path) - no shell, no veil, no clip, no inline styles.
       row height (both rows, one clock)   320ms cubic-bezier(.22,.61,.36,1), no overshoot
       description in                      240ms from 80ms
       description out                     120ms
       chevron                             320ms, the height's clock
     The phones (above) are untouched. Below 760px nothing here applies. */
  .orb__card[data-orb-live][data-orb-anim] .orb__panel {
    transition: grid-template-rows 320ms cubic-bezier(.22, .61, .36, 1);
  }
  html[data-flip] .orb__card[data-orb-anim] .orb__btn[aria-expanded="true"] + .orb__panel .orb__panelin {
    transition: opacity 240ms var(--e2) 80ms;
  }
  html[data-flip] .orb__card[data-orb-anim] .orb__btn[aria-expanded="false"] + .orb__panel .orb__panelin {
    transition: opacity 120ms cubic-bezier(.4, 0, 1, 1);
  }
  html[data-flip] .orb__card[data-orb-live] .orb__ico {
    transition: transform 320ms cubic-bezier(.22, .61, .36, 1);
  }
}
