/* Far Out: the observation deck, dosed. One voyage, ten sights, the view breathes. */

/* ---------- the voyage: one continuous dark that changes legs ---------- */
.voyage { position: relative; overflow: hidden; background-color: #050308;
  transition: background-color 2s ease; }
.voyage[data-leg="depart"] { background-color: #0a0614; }
.voyage[data-leg="drift"] { background-color: #050308; }
.voyage[data-leg="peak"] { background-color: #120618; }
.voyage[data-leg="arrive"] { background-color: #0c0810; }
section[data-leg] { position: relative; background: transparent; }
section[data-leg="depart"] { --la: #c9a6ff; --lg: rgba(201, 166, 255, .16); }
section[data-leg="drift"] { --la: #8fb8ff; --lg: rgba(143, 184, 255, .13); }
section[data-leg="peak"] { --la: #ff9ad5; --lg: rgba(255, 154, 213, .2); }
section[data-leg="arrive"] { --la: #ffd28f; --lg: rgba(255, 210, 143, .18); }

.vy-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }
.vy-starfield { position: absolute; inset: -12%; background-size: 1200px auto;
  animation: stars-drift 240s linear infinite; }
@keyframes stars-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-600px, -240px, 0); } }
.vy-legbg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.lg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 2.4s ease; }
.voyage[data-leg="depart"] .lg-depart { opacity: .42; }
.voyage[data-leg="drift"] .lg-drift { opacity: .4; }
.voyage[data-leg="peak"] .lg-peak { opacity: .5; }
.voyage[data-leg="arrive"] .lg-arrive { opacity: .48; }
.voyage[data-leg="peak"] .vy-starfield { animation-duration: 120s; }

.jelly { position: relative; z-index: 1; transform-origin: 50% 50%; will-change: transform; }

/* ---------- the trip kit ---------- */
.fo-breathe { animation: fo-breathe 9s ease-in-out infinite; }
@keyframes fo-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
section[data-leg="peak"] .fo-breathe { animation-duration: 5.5s; }
.fo-aberrate { position: relative;
  text-shadow: 2px 0 0 rgba(255, 90, 200, .45), -2px 0 0 rgba(90, 220, 255, .45);
  animation: fo-aberrate 7s ease-in-out infinite; }
@keyframes fo-aberrate {
  0%, 100% { text-shadow: 2px 0 0 rgba(255, 90, 200, .45), -2px 0 0 rgba(90, 220, 255, .45); }
  30% { text-shadow: 3px 1px 0 rgba(255, 90, 200, .55), -3px -1px 0 rgba(90, 220, 255, .55); }
  62% { text-shadow: 1px -2px 0 rgba(255, 90, 200, .4), -1px 2px 0 rgba(90, 220, 255, .4); } }
section[data-leg="peak"] .fo-aberrate { animation-duration: 3.4s; }

/* ---------- reveals ---------- */
.voyage .rv { opacity: 0; transform: translateY(30px); filter: blur(7px);
  transition: opacity 1s ease, transform 1s ease, filter 1s ease; }
.voyage .rv.on { opacity: 1; transform: none; filter: none; }

/* ---------- the shutter intro ---------- */
.shutter { position: fixed; inset: 0; z-index: 10000; overflow: hidden;
  background: #030206; display: grid; place-items: center;
  transition: opacity 1.2s ease; }
.shutter.fade { opacity: 0; }
.shutter.gone { display: none; }
.sh-deck { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.sh-deck img { width: 100%; height: 100%; object-fit: cover; }
.shutter.lit .sh-deck { opacity: .5; }
.sh-kaleido { position: absolute; inset: -40%; opacity: 0; transition: opacity 1s ease;
  background: conic-gradient(from 0deg,
    rgba(255, 90, 200, .16), rgba(90, 220, 255, .13), rgba(255, 220, 120, .15),
    rgba(160, 120, 255, .16), rgba(120, 255, 200, .12), rgba(255, 90, 200, .16));
  animation: kaleido-spin 22s linear infinite; }
@keyframes kaleido-spin { to { transform: rotate(360deg); } }
.shutter.open .sh-kaleido { opacity: .8; }
.sh-iris { position: absolute; left: 50%; top: 50%; width: min(74vh, 60vw);
  transform: translate(-50%, -50%); filter: drop-shadow(0 0 60px rgba(0, 0, 0, .8));
  transition: transform 2.1s cubic-bezier(.55,.04,.3,1), opacity 1.6s ease .4s; }
.shutter.open .sh-iris { transform: translate(-50%, -50%) rotate(160deg) scale(3.4); opacity: 0; }
.sh-titles { position: relative; z-index: 3; text-align: center; padding: 40px 56px;
  }
.sh-titles::before { content: ""; position: absolute; inset: -6% -10%; z-index: -1;
  background: radial-gradient(58% 64% at 50% 46%, rgba(4, 2, 8, .78), rgba(4, 2, 8, .4) 62%, transparent 82%); }
.sh-plate { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .4em;
  text-transform: uppercase; color: #c9a6ff; opacity: 0; animation: sh-in .8s ease forwards .6s; }
.sh-title { font-family: "Michroma", sans-serif; font-weight: 400; color: #f2eefc;
  font-size: clamp(44px, 7.4vw, 108px); line-height: 1.04; margin: 16px 0 10px; letter-spacing: .04em; }
.sw { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(8px);
  animation: sw-in 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--sd); }
.sw.glow { color: #c9a6ff; }
@keyframes sw-in { to { opacity: 1; transform: none; filter: none; } }
@keyframes sh-in { to { opacity: 1; } }
.sh-line { font-family: "Jura", sans-serif; color: #9a90b4; font-size: clamp(15px, 1.5vw, 21px); letter-spacing: .12em; }
.sh-invite { font-family: "Jura", sans-serif; color: #ddc4ff; font-size: clamp(14px, 1.3vw, 18px);
  margin-top: 22px; letter-spacing: .1em; opacity: 0; animation: sh-in 1s ease forwards; animation-delay: var(--sd); }
.sh-skip { position: absolute; right: 26px; bottom: 22px; z-index: 4; background: none;
  border: 1px solid rgba(232, 228, 242, .25); color: #9a90b4; font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 9px 14px; cursor: pointer;
  opacity: 0; animation: sh-in .8s ease forwards; animation-delay: var(--sd); }
.sh-skip:hover { color: #f2eefc; border-color: #c9a6ff; }

/* ---------- placeholders ---------- */
.ph { background:
    radial-gradient(42% 34% at 32% 30%, rgba(201, 166, 255, .14), transparent 70%),
    radial-gradient(50% 42% at 70% 66%, rgba(143, 184, 255, .1), transparent 72%),
    linear-gradient(160deg, #0e0a1a, #070410 70%);
  border: 1px solid rgba(232, 228, 242, .09); position: relative; }
.ph::after { content: "the painting is in transit"; position: absolute; inset: auto 0 12px 0;
  text-align: center; font-family: var(--mono, ui-monospace, monospace); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(232, 228, 242, .35); }

/* ---------- the deck hero ---------- */
.deckhero { min-height: 94vh; display: grid; align-content: end; position: relative;
  isolation: isolate; overflow: hidden; }
.dh-art { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; z-index: -1; }
.dh-haze { position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(180deg, rgba(4, 2, 8, .3), transparent 32%, rgba(4, 2, 8, .88) 90%); }
.dh-copy { max-width: 780px; padding: 0 min(7vw, 90px) 96px; position: relative; z-index: 4; }
.dh-copy::before { content: ""; position: absolute; inset: -8% -10%; z-index: -1;
  background: radial-gradient(70% 80% at 40% 60%, rgba(6, 3, 10, .6), transparent 78%); }
.dh-plate { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .32em;
  text-transform: uppercase; color: #c9a6ff; }
.dh-title { font-family: "Michroma", sans-serif; font-weight: 400; color: #f2eefc;
  font-size: clamp(40px, 5.6vw, 84px); line-height: 1.06; margin: 14px 0 14px; letter-spacing: .05em; }
.dh-tag { font-family: "Jura", sans-serif; color: #cfc8e2; max-width: 58ch;
  font-size: clamp(15px, 1.25vw, 18px); line-height: 1.8; }
.dh-ctas { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.dh-cta { display: inline-block; font-family: var(--mono, ui-monospace, monospace); font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; color: #0a0714; background: #c9a6ff;
  padding: 13px 22px; border-radius: 3px; text-decoration: none; }
.dh-cta:hover { background: #ddc4ff; }
.dh-cta-2 { background: transparent; color: #cfc8e2; border: 1px solid rgba(232, 228, 242, .3); }
.dh-cta-2:hover { border-color: #c9a6ff; color: #f2eefc; background: transparent; }
.dh-cue { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 4;
  font-family: "Jura", sans-serif; font-size: 13px; color: #9a90b4; letter-spacing: .1em;
  animation: cue-drift 3.6s ease-in-out infinite; }
@keyframes cue-drift { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- airlocks: the iris opens between legs ---------- */
.airlock { height: 52vh; min-height: 330px; display: grid; place-items: center;
  position: relative; overflow: visible; z-index: 6; }
.al-kaleido { position: absolute; left: 50%; top: 50%; width: 90vh; height: 90vh;
  transform: translate(-50%, -50%); border-radius: 50%; opacity: 0;
  background: conic-gradient(from 0deg,
    rgba(255, 90, 200, .2), rgba(90, 220, 255, .16), rgba(255, 220, 120, .18),
    rgba(160, 120, 255, .2), rgba(120, 255, 200, .15), rgba(255, 90, 200, .2));
  -webkit-mask-image: radial-gradient(circle, transparent 34%, #000 46%, #000 62%, transparent 74%);
  mask-image: radial-gradient(circle, transparent 34%, #000 46%, #000 62%, transparent 74%);
  transition: opacity 1.2s ease; animation: kaleido-spin 18s linear infinite; }
.airlock.open .al-kaleido { opacity: .9; }
.al-iris { position: relative; width: min(58vh, 46vw); z-index: 2;
  filter: drop-shadow(0 18px 44px rgba(2, 1, 6, .8));
  transition: transform 1.9s cubic-bezier(.55,.04,.3,1), opacity 1.4s ease .3s; }
.airlock.open .al-iris { transform: rotate(140deg) scale(3); opacity: 0; }
.al-ribbon { position: absolute; left: -12vw; top: 8%; width: 44vw; z-index: 1; opacity: .6;
  animation: ribbon-weave 26s ease-in-out infinite alternate; }
@keyframes ribbon-weave { from { transform: translateX(0) rotate(-3deg); } to { transform: translateX(56vw) rotate(4deg); } }
.al-tone { position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%);
  font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .5em;
  color: rgba(232, 228, 242, .3); text-transform: uppercase; }

/* ---------- the sights ---------- */
.sight { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px); align-items: center; padding: clamp(56px, 9vh, 120px) min(6vw, 84px);
  min-height: 92vh; isolation: isolate; }
.sight.st-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.sight.st-flip .st-window { order: 2; }
.st-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 44% at 50% 44%, var(--lg, rgba(201, 166, 255, .14)), transparent 72%); }
.st-window { position: relative; filter: drop-shadow(0 26px 54px rgba(2, 1, 6, .7)); }
.st-oval { width: 100%; }
.st-round { width: min(74%, 78vh); margin: 0 auto; }
.st-ring { position: relative; display: block; width: 100%; height: auto; z-index: 2;
  pointer-events: none; }
.st-glass { position: absolute; overflow: hidden; z-index: 1; }
.st-oval .st-glass { left: 3.5%; top: 11.9%; width: 92.9%; height: 58.3%; border-radius: 50% / 50%; }
.st-round .st-glass { left: 18.2%; top: 18.2%; width: 63.6%; height: 63.6%; border-radius: 50%; }
.st-art { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; }
.st-sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, transparent 30%, rgba(255, 255, 255, .1) 44%, transparent 55%);
  animation: sheen-sweep 8s ease-in-out infinite; }
@keyframes sheen-sweep { 0%, 55%, 100% { transform: translateX(-70%); } 25% { transform: translateX(70%); } }
.st-side { max-width: 580px; }
.st-tab { display: inline-flex; align-items: baseline; gap: 14px; padding: 8px 16px;
  background: linear-gradient(174deg, #1c1430, #120c22);
  border: 1px solid rgba(201, 166, 255, .3); border-radius: 3px;
  box-shadow: 0 0 18px rgba(201, 166, 255, .14), inset 0 1px 0 rgba(232, 228, 242, .12); }
.st-no { font-family: "Michroma", sans-serif; font-size: 19px; color: #ddc4ff; }
.st-leg { font-family: var(--mono, ui-monospace, monospace); font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--la, #c9a6ff); }
.st-title { font-family: "Michroma", sans-serif; font-weight: 400; color: #f2eefc;
  font-size: clamp(24px, 2.6vw, 40px); line-height: 1.18; margin: 16px 0 12px; letter-spacing: .03em; }
.st-log { background: rgba(8, 5, 16, .62); border: 1px solid rgba(232, 228, 242, .12);
  border-radius: 4px; padding: 16px 18px; backdrop-filter: blur(4px); }
.sl { font-family: "Jura", sans-serif; color: #d8d2ea; font-size: 15px; line-height: 1.75; margin: 0 0 10px; }
.sl:last-child { margin-bottom: 0; }
.sl b { display: block; font-family: var(--mono, ui-monospace, monospace); font-weight: 500;
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--la, #c9a6ff); margin-bottom: 3px; }
.st-crew { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.st-crew form { display: contents; }
.crew-chip { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: #0a0714; background: #c9a6ff; border: 0; border-radius: 3px;
  padding: 10px 15px; cursor: pointer; text-decoration: none; display: inline-block; }
.crew-chip:hover { background: #ddc4ff; }
.crew-wait { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: #9a90b4; }
.orbit-tag { font-family: var(--mono, ui-monospace, monospace); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: #ffd28f; border: 1px dashed rgba(255, 210, 143, .5);
  padding: 7px 11px; border-radius: 3px; }

/* ---------- the docking bay ---------- */
.dock, .chart { padding: clamp(60px, 10vh, 130px) min(6vw, 84px); position: relative; isolation: isolate; }
.dock-head { max-width: 720px; margin-bottom: 34px; }
.dock-plate { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: #8fb8ff; }
.dock-note { font-family: "Jura", sans-serif; color: #b9b2cc; margin-top: 8px; font-size: 15px; }
.dock-row, .chart-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.hatch { position: relative; display: block; text-decoration: none;
  background: linear-gradient(168deg, #181226, #0e0a18 72%);
  border: 1px solid rgba(232, 228, 242, .13); border-radius: 14px; padding: 12px 12px 14px;
  transition: transform .35s ease, border-color .35s ease; transition-delay: var(--hd); }
.hatch:hover { transform: translateY(-5px); border-color: #c9a6ff; }
.hatch-window { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 9px;
  border: 1px solid rgba(232, 228, 242, .16); }
.hatch-window img { width: 100%; height: 100%; object-fit: cover; }
.hatch-dark { display: block; width: 100%; height: 100%;
  background: radial-gradient(60% 60% at 50% 44%, #14102a, #080512 80%); }
.hatch-light { position: absolute; right: 16px; top: 18px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #e8fff4, #7dffc9 60%, transparent 80%);
  box-shadow: 0 0 14px rgba(125, 255, 201, .8); animation: hatch-blink 2.8s ease-in-out infinite; }
@keyframes hatch-blink { 0%, 100% { opacity: .9; } 50% { opacity: .3; } }
.hatch-plate { display: block; margin-top: 10px; }
.hatch-plate b { display: block; font-family: "Michroma", sans-serif; font-weight: 400;
  color: #f2eefc; font-size: 14px; letter-spacing: .03em; }
.hatch-plate i { font-family: var(--mono, ui-monospace, monospace); font-style: normal; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: #9a90b4; }
.empty { font-family: "Jura", sans-serif; color: #9a90b4; }

/* ---------- the star chart ---------- */
.pin { position: relative; display: block; text-decoration: none; padding: 12px;
  background: #0d0918; border: 1px solid rgba(201, 166, 255, .22); border-radius: 6px;
  box-shadow: 0 10px 26px rgba(2, 1, 6, .5); transition: transform .35s ease; transition-delay: var(--hd); }
.pin::before { content: ""; position: absolute; left: 50%; top: -7px; width: 12px; height: 12px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff, #c9a6ff 60%, transparent 78%);
  box-shadow: 0 0 12px rgba(201, 166, 255, .9); }
.pin:hover { transform: translateY(-5px) rotate(-.4deg); }
.pin img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; }
.pin-title { display: block; margin-top: 9px; font-family: "Jura", sans-serif;
  color: #d8d2ea; font-size: 14px; text-align: center; letter-spacing: .06em; }

/* ---------- arrival ---------- */
.arrival { min-height: 70vh; display: grid; place-items: center; position: relative;
  isolation: isolate; text-align: center; overflow: hidden; }
.ar-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .66;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 100%); }
.arrival::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(56% 48% at 50% 58%, transparent, rgba(6, 3, 10, .82) 84%); }
.ar-copy { padding: 60px 24px; }
.ar-line { font-family: "Michroma", sans-serif; color: #f6ecd8;
  font-size: clamp(19px, 2.2vw, 32px); margin-bottom: 26px; line-height: 1.4; letter-spacing: .04em; }
.ar-hall { display: block; margin-top: 18px; font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #b9b2cc; text-decoration: none; }
.ar-hall:hover { color: #ffd28f; }

/* ---------- whispers, motes, trail, cast ---------- */
.whisper { position: absolute; font-family: "Jura", sans-serif; font-size: 13px;
  color: rgba(216, 210, 234, .4); pointer-events: none; letter-spacing: .08em; }
.fo-wsp { right: 7%; bottom: 26px; transform: rotate(-1deg); }
#starmotes { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
#prismtrail { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.prismdot { position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff5ac8, #ffd23f, #7dffc9, #5adcff, #c9a6ff, #ff5ac8);
  opacity: .8; transform: translate(-50%, -50%);
  animation: prism-fade .9s ease-out forwards; }
@keyframes prism-fade { to { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(140deg); } }
.fo-mg { position: absolute; z-index: 5; pointer-events: none; opacity: 0; }
.fo-mg img { width: 100%; height: auto; animation: fo-mg-bob 4.4s ease-in-out infinite; }
@keyframes fo-mg-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
.fo-mg.mg-run { animation: fo-mg-cross var(--fot, 30s) linear forwards; }
@keyframes fo-mg-cross { 0% { opacity: 0; }
  6% { opacity: .9; } 92% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--fox, 40vw), var(--foy, -6vh)); } }

/* ---------- reduced motion and small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  .shutter { display: none; }
  .voyage .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .fo-breathe, .fo-aberrate, .st-sheen, .vy-starfield, .al-kaleido, .al-ribbon { animation: none; }
  .fo-aberrate { text-shadow: none; }
  .airlock .al-iris { transform: rotate(140deg) scale(3); opacity: 0; transition: none; }
  .fo-mg, #prismtrail { display: none; }
  #starmotes { display: none; }
}
@media (max-width: 900px) {
  .sight, .sight.st-flip { grid-template-columns: 1fr; min-height: 0; }
  .sight.st-flip .st-window { order: 0; }
  .airlock { height: 34vh; min-height: 220px; }
  .st-side { max-width: none; }
  .dh-copy { padding-bottom: 72px; }
}
