/* Elsewhere: desktop-only two-state launch interaction; mobile stays simple. */

html.has-elsewhere-launch {
  scroll-snap-type: none !important;
}

/* Desktop hero locking is handled in JavaScript so programmatic transitions remain scrollable. */
html.elsewhere-desktop-hero-lock,
html.elsewhere-desktop-hero-lock body {
  overscroll-behavior: none;
}

html.elsewhere-desktop .page__content .intro-screen--elsewhere {
  min-height: calc(100vh - 90px) !important;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

.page__content .intro-screen--elsewhere .intro-screen__inner {
  max-width: 960px;
  padding: 1rem 0 1.4rem;
}

.page__content .elsewhere-launch {
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.page__content .elsewhere-launch:focus {
  outline: none;
}

.page__content .elsewhere-launch:focus-visible {
  outline: 1px solid #b7bdc5;
  outline-offset: 9px;
}

.page__content .elsewhere-launch .intro-screen__illustration--elsewhere {
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.page__content .elsewhere-launch .intro-screen__illustration--elsewhere img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 58vh;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: transform 0.46s cubic-bezier(.22,.72,.28,1), opacity 0.46s ease;
  will-change: transform, opacity;
}

.page__content .intro-screen__elsewhere-credit {
  width: min(920px, 100%);
  margin: 0.35rem auto 0 !important;
  transition: opacity 0.38s ease;
}

html.elsewhere-desktop .page__content .intro-screen--elsewhere.is-hovering .elsewhere-launch img {
  transform: translateY(-3px) scale(1.002);
}

html.elsewhere-desktop .page__content .intro-screen--elsewhere.is-launching .elsewhere-launch img {
  animation: elsewhere-banner-launch 1.24s cubic-bezier(.22,.72,.28,1) both;
}

html.elsewhere-desktop .page__content .intro-screen--elsewhere.is-launching .intro-screen__elsewhere-credit {
  animation: elsewhere-credit-launch 1.24s ease both;
}

@keyframes elsewhere-banner-launch {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  42% { transform: translateY(-7px) scale(0.997); opacity: 0.84; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes elsewhere-credit-launch {
  0%, 100% { opacity: 1; }
  42% { opacity: 0.58; }
}

.elsewhere-plane {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10010;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  color: #111;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 50%;
  transition: opacity 0.2s ease;
  will-change: transform, opacity;
}

.elsewhere-plane.is-visible {
  opacity: 0.9;
}

.elsewhere-plane.is-docked {
  opacity: 0.84;
}

.elsewhere-plane svg {
  display: block;
  width: 30px;
  height: 30px;
  transform-origin: 50% 50%;
}

/* While the content page is being browsed, the parked plane remains alive. */
.elsewhere-plane.is-docked svg {
  animation: elsewhere-plane-float 2.45s ease-in-out infinite;
}

@keyframes elsewhere-plane-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  35% { transform: translateY(-7px) rotate(-3deg); }
  68% { transform: translateY(3px) rotate(1deg); }
}

.elsewhere-plane__trail {
  display: none !important;
}

.page__content .intro-detail--elsewhere,
html.has-intro-transition .page__content .intro-detail--elsewhere,
html.has-elsewhere-launch .page__content .intro-detail--elsewhere {
  padding-top: 1.5rem;
  scroll-margin-top: 96px;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  html.has-elsewhere-launch-fix .page__content .elsewhere-launch {
    cursor: none;
  }
}

/* Mobile/tablet: remove the decorative interaction completely. */
@media (max-width: 768px), (hover: none), (pointer: coarse) {
  html.elsewhere-mobile-simple,
  html.elsewhere-mobile-simple body {
    overflow: visible !important;
    overscroll-behavior: auto;
  }

  html.elsewhere-mobile-simple .page__content .intro-screen--elsewhere {
    min-height: 0 !important;
    display: block !important;
  }

  html.elsewhere-mobile-simple .page__content .intro-screen--elsewhere .intro-screen__inner {
    padding: 0.8rem 0 0.8rem;
  }

  html.elsewhere-mobile-simple .page__content .elsewhere-launch {
    pointer-events: none;
    cursor: default !important;
  }

  html.elsewhere-mobile-simple .page__content .elsewhere-launch .intro-screen__illustration--elsewhere img {
    max-height: none;
    width: 100%;
    transform: none !important;
    animation: none !important;
  }

  html.elsewhere-mobile-simple .elsewhere-plane {
    display: none !important;
  }

  html.elsewhere-mobile-simple .page__content .intro-detail--elsewhere,
  html.elsewhere-mobile-simple.has-intro-transition .page__content .intro-detail--elsewhere,
  html.elsewhere-mobile-simple.has-elsewhere-launch .page__content .intro-detail--elsewhere {
    padding-top: 0.6rem;
    scroll-margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.has-elsewhere-launch-fix .page__content .elsewhere-launch {
    cursor: pointer !important;
  }

  .page__content .elsewhere-launch .intro-screen__illustration--elsewhere img,
  .page__content .intro-screen__elsewhere-credit {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .elsewhere-plane {
    display: none !important;
  }
}