/* ==========================================================================
   Reveal — public pages. Every child of a [data-ffb-reveal] group fades and
   rises in (ffb-rise-in, base.css) when it comes into view; children that
   arrive together are staggered. Driven by js/reveal.js.

   Hidden only while html.ffb-reveal is set — by an inline script in head.php,
   so nothing flashes before the first paint, and removed again by that script
   if js/reveal.js never runs. Never hidden under reduced motion; low-motion
   mode is handled in the script (everything shown at once).
   ========================================================================== */

/* A child that is itself a group (Contact's offices, Sign In's side tiles) is
   not a tile: it stays visible and its own children reveal instead. */
@media (prefers-reduced-motion: no-preference) {
  html.ffb-reveal [data-ffb-reveal] > :not(.is-in):not([data-ffb-reveal]) {
    opacity: 0;
  }
}

/* `backwards`, not `both`: the start frame holds through the stagger delay,
   and nothing is held after the end — `both` would pin transform: none and
   cancel a tile's own hover lift. */
[data-ffb-reveal] > .is-in {
  animation: ffb-rise-in 0.7s ease backwards;
  animation-delay: var(--ffb-reveal-delay, 0ms);
}
