/* ==========================================================================
   AetherSpace — Keyframes & entrance choreography
   ========================================================================== */

@keyframes caret-blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes album-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes notif-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-row--new {
  animation: notif-in 420ms var(--ease-snap);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.panel {
  animation: panel-in 700ms var(--ease-spatial) backwards;
}

.bento [data-panel="overview"] { animation-delay: 40ms; }
.bento [data-panel="code"] { animation-delay: 110ms; }
.bento [data-panel="team"] { animation-delay: 180ms; }
.bento [data-panel="tasks"] { animation-delay: 220ms; }
.bento [data-panel="board"] { animation-delay: 280ms; }
.bento [data-panel="media"] { animation-delay: 340ms; }
.bento [data-panel="calendar"] { animation-delay: 400ms; }
.bento [data-panel="analytics"] { animation-delay: 460ms; }

@keyframes focus-pulse {
  0% { box-shadow: var(--shadow-ambient), 0 0 0 0 rgba(60, 232, 255, 0.5); }
  100% { box-shadow: var(--shadow-ambient), 0 0 0 18px rgba(60, 232, 255, 0); }
}

.panel-tilt.is-pulsing {
  animation: focus-pulse 700ms var(--ease-spatial);
}

@keyframes count-flash {
  0% { text-shadow: 0 0 0 transparent; }
  35% { text-shadow: 0 0 14px currentColor; }
  100% { text-shadow: 0 0 0 transparent; }
}

.is-updated {
  animation: count-flash 900ms ease;
}
