/* =========================================================
   BALOS — Animation styles
   Kept deliberately light: fade/rise on scroll reveal,
   plus the status-dot pulse (defined in style.css since it's
   tied to a component, not a page effect).
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of a revealed group */
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.12s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.19s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.26s; }

/* Console rows type on slightly after the console appears */
.console-row {
  opacity: 0;
  animation: rowIn 0.5s ease forwards;
}
.console-row:nth-child(1) { animation-delay: 0.15s; }
.console-row:nth-child(2) { animation-delay: 0.3s; }
.console-row:nth-child(3) { animation-delay: 0.45s; }
.console-row:nth-child(4) { animation-delay: 0.6s; }

@keyframes rowIn {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > *, .console-row {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .status-dot { animation: none; }
}
