/*
 * Core copy must remain readable when animation or WebGL initialization fails.
 * Motion scripts may still add their state classes, but visibility is never JS-dependent.
 */
.reveal,
.reveal.is-in {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/*
 * The mobile landing animation has a more-specific selector than the
 * resilience rule above and can otherwise keep a failed-WebGL page blurred.
 * Hard-stop both the animation and its initial letter/mascot states when
 * there is no renderer, so the copy and CTAs are immediately usable.
 */
html.no-gl .reveal,
html.no-gl .reveal.is-in,
html.no-gl .hero__letters span,
html.no-gl .hero__letters span.is-in,
html.no-gl .hero__mascot,
html.no-gl .hero__mascot.is-in {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-in,
  .hero__letters span,
  .hero__letters span.is-in,
  .hero__mascot,
  .hero__mascot.is-in {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Launch announcement: static markup keeps it visible even while page scripts initialize. */
.plasma-launch[open] {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: rgba(2, 5, 12, .76);
  backdrop-filter: blur(12px);
  color: #f2f8ff;
}
.plasma-launch::backdrop { background: transparent; }
.plasma-launch__card {
  position: relative;
  width: min(100%, 470px);
  overflow: hidden;
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid rgba(91, 244, 255, .45);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(184, 92, 255, .23), transparent 36%),
    linear-gradient(145deg, rgba(16, 27, 55, .98), rgba(6, 13, 28, .98));
  box-shadow: 0 24px 90px rgba(0, 0, 0, .58), 0 0 46px rgba(73, 224, 255, .12);
}
.plasma-launch__card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #52efff, #bd6bff, #52efff);
  content: "";
}
.plasma-launch__eyebrow {
  margin: 0 0 14px;
  color: #62efff;
  font: 700 11px/1.2 "JetBrains Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.plasma-launch__title {
  max-width: 9ch;
  margin: 0;
  color: #fff;
  font: 800 clamp(30px, 7vw, 48px)/.98 "Unbounded", sans-serif;
  letter-spacing: -.045em;
}
.plasma-launch__copy {
  margin: 20px 0 0;
  color: rgba(231, 242, 255, .78);
  font: 400 16px/1.55 "Manrope", sans-serif;
}
.plasma-launch__copy strong { color: #fff; }
.plasma-launch__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.plasma-launch__link,
.plasma-launch__dismiss {
  min-height: 44px;
  padding: 12px 17px;
  border-radius: 999px;
  font: 700 13px/1 "Manrope", sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.plasma-launch__link {
  border: 1px solid #65efff;
  background: #65efff;
  color: #06101c;
}
.plasma-launch__link:hover { background: #b7f8ff; }
.plasma-launch__dismiss {
  border: 1px solid rgba(213, 231, 255, .3);
  background: transparent;
  color: rgba(231, 242, 255, .8);
}
.plasma-launch__dismiss:hover {
  border-color: rgba(213, 231, 255, .7);
  color: #fff;
}
.plasma-launch__note {
  margin: 18px 0 0;
  color: rgba(231, 242, 255, .48);
  font: 400 11px/1.45 "Manrope", sans-serif;
}
.plasma-launch__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(213, 231, 255, .2);
  border-radius: 50%;
  background: rgba(4, 10, 22, .45);
  color: rgba(231, 242, 255, .75);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.plasma-launch__close:hover { color: #fff; }
.plasma-launch[open] { animation: plasma-launch-in .22s ease-out both; }
/* The site-wide custom cursor sits below the announcement overlay. Keep a
   native, unmistakable pointer while the user is choosing an action. */
body:has(.plasma-launch[open]),
body.plasma-launch-open {
  cursor: auto !important;
}
body:has(.plasma-launch[open]) .cursor,
body.plasma-launch-open .cursor {
  display: none !important;
}
@keyframes plasma-launch-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 520px) {
  .plasma-launch[open] { padding: 14px; }
  .plasma-launch__card { padding: 34px 24px 25px; border-radius: 20px; }
  .plasma-launch__actions > * { flex: 1 1 100%; text-align: center; }
}