/*
 * Shared Stellar luminous text — Home, Mission, Contact, Login.
 * Text-only opacity + text-shadow; organic tier variation; no filter keyframes.
 */

@keyframes aa-stellar-luminous-pulse-hero {
  0%,
  100% {
    opacity: 0.95;
    text-shadow:
      0 0 9px rgba(124, 206, 255, 0.48),
      0 0 20px rgba(96, 178, 255, 0.28);
  }
  42% {
    opacity: 1;
    text-shadow:
      0 0 14px rgba(124, 206, 255, 0.68),
      0 0 30px rgba(96, 178, 255, 0.42);
  }
}

@keyframes aa-stellar-luminous-pulse-support {
  0%,
  100% {
    opacity: 0.88;
    text-shadow:
      0 0 6px rgba(124, 206, 255, 0.26),
      0 0 14px rgba(96, 178, 255, 0.14);
  }
  58% {
    opacity: 0.96;
    text-shadow:
      0 0 10px rgba(124, 206, 255, 0.38),
      0 0 18px rgba(96, 178, 255, 0.22);
  }
}

@keyframes aa-stellar-luminous-pulse-quiet {
  0%,
  100% {
    opacity: 0.74;
    text-shadow: 0 0 5px rgba(124, 206, 255, 0.16);
  }
  36% {
    opacity: 0.84;
    text-shadow: 0 0 9px rgba(124, 206, 255, 0.28);
  }
}

@keyframes aa-stellar-luminous-pulse-link {
  0%,
  100% {
    opacity: 0.76;
    text-shadow: 0 0 6px rgba(124, 206, 255, 0.2);
  }
  64% {
    opacity: 0.86;
    text-shadow: 0 0 10px rgba(124, 206, 255, 0.32);
  }
}

@keyframes aa-stellar-luminous-pulse-contact {
  0%,
  100% {
    opacity: 0.94;
    text-shadow:
      0 0 10px rgba(124, 206, 255, 0.52),
      0 0 22px rgba(96, 178, 255, 0.32);
  }
  42% {
    opacity: 1;
    text-shadow:
      0 0 16px rgba(124, 206, 255, 0.74),
      0 0 34px rgba(96, 178, 255, 0.48);
  }
}

/* ---- Home ---- */

html[data-theme="stellar"] body.ph-home .ph-headline {
  color: #eaf6ff;
  text-shadow:
    0 0 9px rgba(124, 206, 255, 0.48),
    0 0 20px rgba(96, 178, 255, 0.28);
  animation: aa-stellar-luminous-pulse-hero 5.4s ease-in-out infinite;
  animation-delay: 0s;
}

html[data-theme="stellar"] body.ph-home .ph-support {
  color: rgba(214, 236, 255, 0.9);
  text-shadow:
    0 0 6px rgba(124, 206, 255, 0.26),
    0 0 14px rgba(96, 178, 255, 0.14);
  animation: aa-stellar-luminous-pulse-support 6.8s ease-in-out infinite;
  animation-delay: 0.7s;
}

html[data-theme="stellar"] body.ph-home .ph-mission-gateway__link {
  color: rgba(186, 224, 255, 0.82);
  text-shadow: 0 0 7px rgba(124, 206, 255, 0.24);
  animation: aa-stellar-luminous-pulse-link 8.2s ease-in-out infinite;
  animation-delay: 0.4s;
}

html[data-theme="stellar"] body.ph-home .ph-mission-gateway__link--login {
  color: rgba(186, 224, 255, 0.72);
  text-shadow: 0 0 6px rgba(124, 206, 255, 0.18);
  animation: aa-stellar-luminous-pulse-link 9.4s ease-in-out infinite;
  animation-delay: 1.3s;
}

/* ---- Mission ---- */

html[data-theme="stellar"] body.toward-mission .toward-scene h1,
html[data-theme="stellar"] body.toward-mission .toward-scene h2,
html[data-theme="stellar"] body.toward-mission .toward-engine {
  color: #eaf6ff;
  text-shadow:
    0 0 9px rgba(124, 206, 255, 0.48),
    0 0 20px rgba(96, 178, 255, 0.28);
  animation: aa-stellar-luminous-pulse-hero 5.6s ease-in-out infinite;
  animation-delay: 0.2s;
}

html[data-theme="stellar"] body.toward-mission .toward-support:not(.toward-support--secondary) {
  color: rgba(214, 236, 255, 0.9);
  text-shadow:
    0 0 6px rgba(124, 206, 255, 0.26),
    0 0 14px rgba(96, 178, 255, 0.14);
  animation: aa-stellar-luminous-pulse-support 7.1s ease-in-out infinite;
  animation-delay: 0.9s;
}

html[data-theme="stellar"] body.toward-mission .toward-support--secondary {
  color: rgba(198, 222, 246, 0.82);
  text-shadow: 0 0 5px rgba(124, 206, 255, 0.16);
  animation: aa-stellar-luminous-pulse-quiet 8.4s ease-in-out infinite;
  animation-delay: 1.6s;
}

html[data-theme="stellar"] body.toward-mission .mission-x-quote__text,
html[data-theme="stellar"] body.toward-mission .mission-x-quote__emphasis {
  text-shadow: 0 0 6px rgba(124, 206, 255, 0.2);
  animation: aa-stellar-luminous-pulse-support 7.6s ease-in-out infinite;
  animation-delay: 0.5s;
}

html[data-theme="stellar"] body.toward-mission .mission-x-quote__source,
html[data-theme="stellar"] body.toward-mission .mission-x-quote__cta {
  text-shadow: 0 0 4px rgba(124, 206, 255, 0.12);
  animation: aa-stellar-luminous-pulse-quiet 9.2s ease-in-out infinite;
  animation-delay: 2.1s;
}

html[data-theme="stellar"] body.toward-mission .toward-cadence-stack li {
  color: rgba(214, 236, 255, 0.9);
  text-shadow:
    0 0 6px rgba(124, 206, 255, 0.26),
    0 0 14px rgba(96, 178, 255, 0.14);
  animation: aa-stellar-luminous-pulse-support 6.6s ease-in-out infinite;
}

html[data-theme="stellar"] body.toward-mission .toward-cadence-stack li:nth-child(1) {
  animation-delay: 0.35s;
}

html[data-theme="stellar"] body.toward-mission .toward-cadence-stack li:nth-child(2) {
  animation-duration: 7.2s;
  animation-delay: 0.95s;
}

html[data-theme="stellar"] body.toward-mission .toward-cadence-stack li:nth-child(3) {
  animation-duration: 6.9s;
  animation-delay: 1.55s;
}

html[data-theme="stellar"] body.toward-mission .toward-cadence-stack li:nth-child(4) {
  animation-duration: 7.5s;
  animation-delay: 2.15s;
}

html[data-theme="stellar"] body.toward-mission .toward-support--lead,
html[data-theme="stellar"] body.toward-mission .toward-ending-lead {
  color: rgba(226, 242, 255, 0.94);
  text-shadow:
    0 0 7px rgba(124, 206, 255, 0.32),
    0 0 16px rgba(96, 178, 255, 0.18);
  animation: aa-stellar-luminous-pulse-support 6.4s ease-in-out infinite;
  animation-delay: 0.45s;
}

html[data-theme="stellar"] body.toward-mission .toward-home-link {
  color: rgba(186, 224, 255, 0.82);
  text-shadow: 0 0 7px rgba(124, 206, 255, 0.22);
  animation: aa-stellar-luminous-pulse-link 8.2s ease-in-out infinite;
  animation-delay: 1.1s;
}

html[data-theme="stellar"] body.toward-mission .toward-scene p:not([class]),
html[data-theme="stellar"] body.toward-mission .toward-scene li:not([class]) {
  color: rgba(206, 228, 248, 0.88);
  text-shadow: 0 0 5px rgba(124, 206, 255, 0.18);
  animation: aa-stellar-luminous-pulse-quiet 8.6s ease-in-out infinite;
  animation-delay: 1.4s;
}

/* ---- Contact ---- */

html[data-theme="stellar"] body.aa-contact-page .pc-statement__line {
  color: #eaf6ff;
  text-shadow:
    0 0 10px rgba(124, 206, 255, 0.52),
    0 0 22px rgba(96, 178, 255, 0.32);
  animation: aa-stellar-luminous-pulse-contact 5.8s ease-in-out infinite;
}

html[data-theme="stellar"] body.aa-contact-page .pc-statement__line:nth-child(2) {
  animation: aa-stellar-luminous-pulse-contact 6.5s ease-in-out infinite;
  animation-delay: 0.8s;
}

html[data-theme="stellar"] body.aa-contact-page .pc-statement__line--closing {
  animation: aa-stellar-luminous-pulse-contact 7.4s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* ---- Login ---- */

html[data-theme="stellar"] body.aa-login-page .pl-greeting {
  color: #eaf6ff;
  text-shadow:
    0 0 9px rgba(124, 206, 255, 0.48),
    0 0 20px rgba(96, 178, 255, 0.28);
  animation: aa-stellar-luminous-pulse-hero 5.5s ease-in-out infinite;
}

html[data-theme="stellar"] body.aa-login-page .pl-quote {
  color: rgba(214, 236, 255, 0.92);
  text-shadow:
    0 0 6px rgba(124, 206, 255, 0.26),
    0 0 14px rgba(96, 178, 255, 0.14);
  animation: aa-stellar-luminous-pulse-support 7.4s ease-in-out infinite;
  animation-delay: 0.6s;
}

html[data-theme="stellar"] body.aa-login-page .pl-attribution-name,
html[data-theme="stellar"] body.aa-login-page .pl-attribution-role,
html[data-theme="stellar"] body.aa-login-page .pl-support {
  text-shadow: 0 0 4px rgba(124, 206, 255, 0.12);
  animation: aa-stellar-luminous-pulse-quiet 8.8s ease-in-out infinite;
  animation-delay: 1.3s;
}

/* ---- Footer restraint (all public-family surfaces) ---- */

html[data-theme="stellar"] body.ph-home .aa-public-footer-canon,
html[data-theme="stellar"] body.ph-home .aa-public-footer-canon__meta,
html[data-theme="stellar"] body.toward-mission .aa-public-footer-canon,
html[data-theme="stellar"] body.toward-mission .aa-public-footer-canon__meta,
html[data-theme="stellar"] body.aa-contact-page .aa-public-footer-canon,
html[data-theme="stellar"] body.aa-contact-page .aa-public-footer-canon__meta,
html[data-theme="stellar"] body.aa-login-page .aa-public-footer-canon,
html[data-theme="stellar"] body.aa-login-page .aa-public-footer-canon__meta {
  text-shadow: 0 0 4px rgba(124, 206, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="stellar"] body.ph-home .ph-headline,
  html[data-theme="stellar"] body.ph-home .ph-support,
  html[data-theme="stellar"] body.ph-home .ph-mission-gateway__link,
  html[data-theme="stellar"] body.ph-home .ph-mission-gateway__link--login,
  html[data-theme="stellar"] body.toward-mission .toward-scene h1,
  html[data-theme="stellar"] body.toward-mission .toward-scene h2,
  html[data-theme="stellar"] body.toward-mission .toward-engine,
  html[data-theme="stellar"] body.toward-mission .toward-support,
  html[data-theme="stellar"] body.toward-mission .toward-cadence-stack li,
  html[data-theme="stellar"] body.toward-mission .toward-support--lead,
  html[data-theme="stellar"] body.toward-mission .toward-ending-lead,
  html[data-theme="stellar"] body.toward-mission .toward-home-link,
  html[data-theme="stellar"] body.toward-mission .toward-scene p:not([class]),
  html[data-theme="stellar"] body.toward-mission .toward-scene li:not([class]),
  html[data-theme="stellar"] body.toward-mission .mission-x-quote__text,
  html[data-theme="stellar"] body.toward-mission .mission-x-quote__emphasis,
  html[data-theme="stellar"] body.toward-mission .mission-x-quote__source,
  html[data-theme="stellar"] body.toward-mission .mission-x-quote__cta,
  html[data-theme="stellar"] body.aa-contact-page .pc-statement__line,
  html[data-theme="stellar"] body.aa-contact-page .pc-statement__line:nth-child(2),
  html[data-theme="stellar"] body.aa-contact-page .pc-statement__line--closing,
  html[data-theme="stellar"] body.aa-login-page .pl-greeting,
  html[data-theme="stellar"] body.aa-login-page .pl-quote,
  html[data-theme="stellar"] body.aa-login-page .pl-attribution-name,
  html[data-theme="stellar"] body.aa-login-page .pl-attribution-role {
    animation: none;
  }
}
