/* Animations referenced by Nebula and the directions */

@keyframes nebulaBreath {
  0%, 100% { transform: scale(0.96); opacity: 0.85; }
  50%      { transform: scale(1.06); opacity: 1; }
}

@keyframes nebulaRing {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

@keyframes filamentGlow {
  0%, 100% { opacity: 0.6; transform: scaleX(0.8); }
  50%      { opacity: 1;   transform: scaleX(1); }
}

@keyframes typeRise {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}

@keyframes typeRiseFromInk {
  0%   { opacity: 0; letter-spacing: 0.08em; filter: blur(6px); }
  100% { opacity: 1; letter-spacing: -0.005em; filter: blur(0); }
}

.type-rise { animation: typeRise 720ms var(--ease-soft) both; }
.type-rise-ink { animation: typeRiseFromInk 1100ms var(--ease-soft) both; }

/* Cursor used by the inline streaming glyph and the mobile filament
   value preview. Defined here so cosmos.html does not need cosmos.css.
   The longer step-end variant matches the original v1 cursor cadence. */
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .type-rise, .type-rise-ink { animation: none; opacity: 1; filter: none; transform: none; letter-spacing: normal; }
}
