/* ═══════════════════════════════════════════════════════════════════════════
   كراده 52 — motion (see effects.js). HAND-MAINTAINED.
   No colour, font or shape of its own: the theme stays tokens.css's.
   ═══════════════════════════════════════════════════════════════════════════ */

/* The signal field sits behind the app; the app's own ground is made clear so
   it shows through the gaps. The body carries the same colour underneath. */
.fx-field {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  display: none;
}
html.fx-field-on .fx-field,
html.fx-gate .fx-field { display: block; }

/* The sign-in screen: its own ground cleared so the field and the mark show
   behind the form (the body underneath is the same colour). The form arrives
   the way SignalIQ's callouts do. */
html.fx-gate #gate { background: transparent !important; }
html.fx-gate #gate > * { animation: fx-callout .5s cubic-bezier(.2, .7, .2, 1) .15s both; }
@keyframes fx-callout {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: none; }
}
html.fx-field-on #app { position: relative; z-index: 1; }
html.fx-field-on #app > div { background: transparent !important; }

/* Cards rise into place. */
.fx-rise {
  animation: fx-rise .52s cubic-bezier(.2, .7, .2, 1) var(--fx-delay, 0ms) both;
}
@keyframes fx-rise {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-field { display: none; }
  .fx-rise, html.fx-gate #gate > * { animation: none; }
}
