/* Early, framework-independent brand motion. Fallbacks match the brand tokens. */
.eg-intro {
  --eg-ink: var(--eco-primitive-neutral-black, #101010);
  --eg-white: var(--eco-primitive-neutral-white, #ffffff);
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  background: var(--eg-ink);
  color: var(--eg-white);
  touch-action: manipulation;
  /* The page remains reachable even if the animation script fails. */
  /* Zero duration avoids a rounded 0.999… final progress with steps(1), which
     can otherwise leave the overlay visible after a nominally finished timer. */
  animation: eg-intro-expire 0s linear 2800ms forwards;
}
.eg-intro[hidden] { display: none !important; }
.eg-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 47%, color-mix(in srgb, var(--eco-primitive-brand-sage, #899893) 7%, transparent), transparent 57%);
}
.eg-intro__canvas { display: block; width: 100%; height: 100%; }
.eg-intro__wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  height: auto;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}
.eg-intro--preview {
  position: absolute;
  z-index: 1;
  animation: none;
  border-radius: inherit;
}
@keyframes eg-intro-expire {
  to { visibility: hidden; pointer-events: none; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .eg-intro:not(.eg-intro--preview) { display: none !important; }
}
@media print { .eg-intro { display: none !important; } }

.eg-route-progress { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px; color: var(--eco-semantic-text-primary, #899893); }
.eg-route-progress img { width: 28px; height: 28px; animation: eg-route-reveal 500ms ease-out both; }
@keyframes eg-route-reveal { from { opacity: 0; transform: scale(.78); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .eg-route-progress img { animation: none; } }
[data-eg-reduced-motion="true"] .eg-route-progress img { animation: none; }
[data-eg-reduced-motion="true"] .eg-intro:not(.eg-intro--preview) { display: none !important; }
