/* Progressive motion styles. No class below hides the ordinary HTML until
   motion.js explicitly attaches an enhancement to that element. */
html.sw-arriving { overflow: hidden; }
.sw-arrival {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #06121c;
  color: #f5f4eb;
  isolation: isolate;
  opacity: 1;
  transition: opacity 220ms ease, visibility 220ms;
}
.sw-arrival.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.sw-arrival__sky,
.sw-arrival__sky::before,
.sw-arrival__sky::after { position: absolute; inset: -10%; pointer-events: none; }
.sw-arrival__sky {
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 55%, #234b5040, transparent 40%),
    radial-gradient(ellipse at 20% 20%, #bc7c8b12, transparent 45%);
}
.sw-arrival__sky::before,
.sw-arrival__sky::after { content: ""; }
.sw-arrival__sky::before {
  background:
    radial-gradient(circle at 12% 18%, #b0ddd8 0 1px, transparent 1.6px),
    radial-gradient(circle at 34% 74%, #f5d7c7 0 1px, transparent 1.6px),
    radial-gradient(circle at 81% 33%, #b0ddd8 0 1px, transparent 1.6px),
    radial-gradient(circle at 67% 85%, #f5f4eb 0 1px, transparent 1.6px);
  background-size: 233px 197px, 307px 253px, 179px 229px, 337px 293px;
  opacity: .5;
  animation: sw-arrival-stars 1400ms ease-out both;
}
.sw-arrival__sky::after {
  background:
    radial-gradient(circle at 61% 24%, #d6f6ef 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 22% 62%, #efc3ca 0 1.5px, transparent 2.2px);
  background-size: 479px 367px, 593px 433px;
  opacity: .62;
  animation: sw-arrival-stars 1500ms ease-out both reverse;
}
.sw-arrival__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  text-align: center;
  animation: sw-arrival-content 650ms cubic-bezier(.2,.7,.2,1) both;
}
.sw-arrival__orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  margin-bottom: 22px;
}
.sw-arrival__orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #a5e6d72e;
  border-top-color: #b6f0dfb3;
  border-bottom-color: #e9b6c380;
  border-radius: 50%;
  transform: rotate(-35deg) scaleY(.7);
  animation: sw-arrival-orbit 1400ms ease-out both;
}
.sw-arrival__orbit img { width: 104px; height: 104px; object-fit: contain; }
.sw-arrival__name {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.65rem, 5vw, 2.65rem);
  font-weight: 500;
  letter-spacing: .15em;
  line-height: 1.2;
}
.sw-arrival__note {
  margin: 14px 0 0;
  color: #adc7cb;
  font-size: .875rem;
  letter-spacing: .12em;
}
.sw-arrival__line {
  display: block;
  position: relative;
  width: 148px;
  height: 1px;
  margin-top: 32px;
  overflow: hidden;
  background: #cde7df26;
}
.sw-arrival__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #91dfcd, #f0c3cc);
  transform-origin: left center;
  animation: sw-arrival-line 1120ms ease-in-out both;
}
.sw-arrival__skip {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 10px 14px;
  display: inline-flex;
  gap: 16px;
  align-items: center;
  border: 1px solid #9db6bb50;
  border-radius: 3px;
  background: #0a1b25;
  color: #e3ede9;
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}
.sw-arrival__skip:hover { border-color: #acded2; background: #152e37; }
.sw-arrival__skip:focus-visible { outline: 2px solid #b5eddf; outline-offset: 5px; }

/* The canvas follows only the emblem, even when data-logo-galaxy is on a
   brand link containing both the emblem and its wordmark. */
[data-logo-galaxy] { position: relative; }
[data-logo-image] {
  opacity: var(--logo-opacity, 1);
  object-fit: contain;
}
[data-logo-canvas] {
  position: absolute;
  display: block;
  opacity: var(--particle-opacity, 0);
  pointer-events: none;
  user-select: none;
  width: 64px;
  height: 64px;
}

/* Individual translate leaves authored card hover transforms alone. */
.sw-reveal {
  opacity: var(--reveal-opacity, 1);
  translate: var(--reveal-x, 0px) var(--reveal-y, 0px);
  filter: blur(var(--reveal-blur, 0px));
  mask-image: var(--reveal-mask, none);
  mask-size: 144px 144px;
  mask-repeat: repeat;
  mask-position: 0 0;
  -webkit-mask-image: var(--reveal-mask, none);
  -webkit-mask-size: 144px 144px;
  -webkit-mask-repeat: repeat;
  -webkit-mask-position: 0 0;
}
.sw-reveal:focus-within {
  opacity: 1 !important;
  translate: none !important;
  filter: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
@keyframes sw-arrival-content {
  from { opacity: 0; transform: translateY(16px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes sw-arrival-stars {
  from { transform: scale(.9); opacity: .15; }
  to { transform: scale(1.04); opacity: .55; }
}
@keyframes sw-arrival-orbit {
  from { opacity: 0; transform: rotate(-65deg) scale(.7,.5); }
  to { opacity: 1; transform: rotate(5deg) scale(1,.7); }
}
@keyframes sw-arrival-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  html.sw-arriving { overflow: auto; }
  .sw-arrival { display: none; transition: none; }
  .sw-arrival *, .sw-arrival *::before, .sw-arrival *::after { animation: none !important; }
  [data-logo-image] { opacity: 1 !important; }
  [data-logo-canvas] { display: none !important; }
  .sw-reveal {
    opacity: 1 !important;
    translate: none !important;
    filter: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
}
@media (forced-colors: active) {
  .sw-arrival { background: Canvas; color: CanvasText; }
  .sw-arrival__note { color: CanvasText; }
  .sw-arrival__skip { color: ButtonText; background: ButtonFace; border-color: ButtonText; }
  .sw-arrival__sky, .sw-arrival__orbit::before, .sw-arrival__line { display: none; }
  [data-logo-image] { opacity: 1 !important; }
  [data-logo-canvas] { display: none; }
  .sw-reveal { filter: none; mask-image: none; -webkit-mask-image: none; }
}
@media print {
  .sw-arrival, [data-logo-canvas] { display: none !important; }
  [data-logo-image] { opacity: 1 !important; }
  .sw-reveal { opacity: 1 !important; translate: none !important; filter: none !important; mask-image: none !important; -webkit-mask-image: none !important; }
}
