/* One continuous viewport journey; the unenhanced document stays linear. */
.space-journey { position: relative; background: #03070d; }
.journey-accessible-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.journey-stage { position: relative; }
.journey-scene { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 35px; min-height: 620px; padding: 90px var(--gutter); }
.journey-caption { position: relative; z-index: 3; max-width: 430px; }
.journey-caption .eyebrow { margin-bottom: 23px; font-size: 10px; letter-spacing: 1.4px; }
.journey-caption h3 { margin: 0 0 25px; font-size: clamp(42px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.055em; font-weight: 600; text-wrap: balance; }
.journey-caption > p:last-child { max-width: 350px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.journey-artwork { position: relative; min-width: 0; }
.journey-artwork > img { width: 100%; height: auto; display: block; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(ellipse at center, #000 46%, #000b 64%, transparent 77%); mask-image: radial-gradient(ellipse at center, #000 46%, #000b 64%, transparent 77%); }
.journey-credit { position: absolute; right: 15px; bottom: 10px; z-index: 4; max-width: 80%; }
.journey-credit a { text-decoration: underline; text-underline-offset: 3px; }

.space-journey.journey--active { height: 400svh; }
.journey--active .journey-stage { position: sticky; top: 0; height: 100svh; min-height: 500px; overflow: clip; isolation: isolate; }
.journey--active .journey-stage::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, #03070def 0%, #03070d7a 29%, transparent 58%), linear-gradient(0deg, #03070d 0%, transparent 17%, transparent 84%, #03070d 100%); }
.journey--active .journey-scene { position: absolute; inset: 0; display: block; min-height: 0; padding: 0; pointer-events: none; }
.journey--active .journey-scene.is-current .journey-credit { pointer-events: auto; }
.journey--active .journey-caption { position: absolute; left: max(var(--gutter), calc((100vw - var(--width)) / 2)); top: 47%; width: 38%; transform: translateY(-50%); opacity: var(--journey-caption-opacity, 0); }
.journey--active .journey-artwork { position: absolute; inset: 0; }
.journey--active .journey-artwork > img { position: absolute; top: 50%; right: -6%; width: 84%; max-width: none; transform-origin: center; opacity: var(--journey-image-opacity, 0); transform: translate3d(var(--journey-x, 0px), calc(-50% + var(--journey-y, 0px)), 0) scale(var(--journey-scale, 1)); }
.journey--active .journey-scene--saturn .journey-artwork > img { width: 110%; right: -22%; }
.journey--active .journey-scene--sun .journey-artwork > img { width: 106%; right: -24%; }
.journey-scene--spacecraft .journey-artwork > img { -webkit-mask-image: radial-gradient(ellipse at center, #000 56%, #000b 76%, transparent 98%); mask-image: radial-gradient(ellipse at center, #000 56%, #000b 76%, transparent 98%); }
.journey--active .journey-scene--spacecraft .journey-artwork > img { width: 83%; right: -8%; }
.journey--active .journey-credit { position: absolute; right: var(--gutter); bottom: 35px; max-width: 48%; margin: 0; text-align: right; opacity: var(--journey-caption-opacity, 0); }

@media (max-width: 900px) {
  .journey-caption h3 { font-size: clamp(40px, 5.8vw, 49px); }
  .journey--active .journey-caption { width: 43%; }
  .journey--active .journey-scene--saturn .journey-artwork > img { width: 145%; right: -48%; }
  .journey--active .journey-scene--sun .journey-artwork > img { width: 130%; right: -44%; }
  .journey--active .journey-scene--spacecraft .journey-artwork > img { width: 100%; right: -25%; }
}
@media (max-width: 600px) {
  .space-journey.journey--active { height: 360svh; }
  .journey-scene { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding-block: 65px 35px; }
  .journey-caption h3 { font-size: 43px; margin-bottom: 18px; }
  .journey-caption .eyebrow { margin-bottom: 19px; font-size: 9px; }
  .journey-caption > p:last-child { font-size: 15px; max-width: 330px; }
  .journey-artwork { margin-inline: -15px; }
  .journey-credit { padding-inline: 15px; }
  /* The canvas follows Safari's visible viewport. Artwork scales from its
     height, rather than shrinking to the narrow phone's width. */
  .journey--active .journey-stage { height: 100svh; height: 100dvh; min-height: 0; }
  .journey--active .journey-stage::after { background: linear-gradient(180deg, #03070de8 0%, #03070dcc 28%, #03070d66 43%, transparent 64%, #03070d22 100%); }
  .journey--active .journey-caption { top: calc(var(--home-header-height) + max(22px, env(safe-area-inset-top, 0px))); left: var(--gutter); right: var(--gutter); width: auto; max-width: 380px; transform: none; text-shadow: 0 2px 18px #03070d; }
  .journey--active .journey-caption h3 { margin-bottom: 14px; font-size: clamp(32px, 9.8vw, 40px); }
  .journey--active .journey-caption .eyebrow { margin-bottom: 12px; }
  .journey--active .journey-caption > p:last-child { font-size: 14px; line-height: 1.6; }
  .journey--active .journey-artwork { margin: 0; }
  .journey--active .journey-artwork > img { top: 65%; left: 50%; right: auto; width: auto; height: 155%; -webkit-mask-image: none; mask-image: none; transform: translate3d(calc(-50% + var(--journey-x, 0px)), calc(-50% + var(--journey-y, 0px)), 0) scale(var(--journey-scale, 1)); }
  .journey--active .journey-scene--saturn .journey-artwork > img { top: 60%; width: auto; height: 112%; right: auto; }
  .journey--active .journey-scene--sun .journey-artwork > img { top: 61%; width: auto; height: 116%; right: auto; }
  .journey--active .journey-scene--spacecraft .journey-artwork > img { top: 71%; width: max(170vw, 120svh); width: max(170vw, 120dvh); height: auto; right: auto; }
  .journey--active .journey-credit { right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); max-width: calc(100% - var(--gutter) * 2); padding: 0; text-align: right; font-size: 9px; }
}
/* Short landscape viewports keep the same story without a crowded pinned panel. */
@media (max-height: 599px), (prefers-reduced-motion: reduce) {
  .space-journey.journey--active { height: auto; }
  .journey--active .journey-stage { position: relative; height: auto; min-height: 0; overflow: visible; }
  .journey--active .journey-stage::after { display: none; }
  .journey--active .journey-scene { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; min-height: 0; padding: 65px var(--gutter); gap: 30px; }
  .journey--active .journey-caption { position: relative; inset: auto; width: auto; opacity: 1; transform: none; }
  .journey--active .journey-artwork { position: relative; inset: auto; }
  .journey--active .journey-artwork > img { position: relative; inset: auto; width: 100%; opacity: 1; transform: none; }
  .journey--active .journey-credit { position: absolute; right: 10px; bottom: 8px; max-width: 85%; opacity: 1; text-align: right; }
}

.space-journey:not(.journey--active) .journey-scene { min-height: 100svh; }


/* Canonical native alpha render: preserve dark panels and original shading. */
.journey-scene--spacecraft .journey-artwork > img { mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; }

@media (min-width: 901px) {
  .journey--active .journey-scene--spacecraft .journey-artwork > img { width: 66%; right: -2%; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .journey--active .journey-scene--spacecraft .journey-caption { top: 20%; width: 70%; transform: none; }
  .journey--active .journey-scene--spacecraft .journey-artwork > img { top: 72%; width: 105%; right: -10%; }
}
