/* ==========================================================================
   Nuline Connect — Motion tokens
   Calm, functional motion. Quick fades + small slides. No bounce, no flash.
   The one exception: alarm states may pulse to draw the eye (safety-critical).
   ========================================================================== */

:root {
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);     /* @kind other */ /* enter/exit default */
  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);   /* @kind other */
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);         /* @kind other */

  --dur-instant: 80ms; /* @kind other */
  --dur-fast: 140ms; /* @kind other */
  --dur-base: 220ms; /* @kind other */
  --dur-slow: 360ms; /* @kind other */

  --transition-control: background-color var(--dur-fast) var(--ease-standard),
                        border-color var(--dur-fast) var(--ease-standard),
                        color var(--dur-fast) var(--ease-standard),
                        box-shadow var(--dur-fast) var(--ease-standard);
}

/* Alarm pulse — reserved for breach states only */
@keyframes nl-alarm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(207, 48, 48, 0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(207, 48, 48, 0); }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms; /* @kind other */
    --dur-base: 0ms; /* @kind other */
    --dur-slow: 0ms; /* @kind other */
  }
}
