body { background: #030303; }

.header {
  position: fixed;
  z-index: 12;
  inset: 0 0 auto;
  height: 66px;
  margin: 0;
  padding: 0 clamp(20px, 4vw, 66px);
  border: 0;
  background: linear-gradient(#030303e8, transparent);
}
.header .brand-symbol { font-size: 36px; }
.header nav { gap: clamp(14px, 3vw, 32px); font: 10px var(--mono); text-transform: uppercase; }
.header nav .directory-link { display: flex; align-items: center; gap: 9px; }
.directory-link span { font-size: 20px; }

.arrival {
  position: relative;
  min-height: max(560px, 100svh);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 47%, #101010 0%, #030303 61%);
}
.arrival-scene { position: absolute; inset: 0; }
.arrival-label, .arrival-coordinate, .arrival-edition, .chapter-label {
  font: 10px var(--mono);
  letter-spacing: .13em;
}
.arrival-label {
  position: absolute;
  z-index: 3;
  top: 13%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
}
.arrival-label span { color: #878787; }
.arrival-coordinate, .arrival-edition {
  position: absolute;
  top: 55%;
  color: #a5a5a5;
  line-height: 1.65;
}
.arrival-coordinate { left: 4%; }
.arrival-edition { right: 4%; text-align: right; }
.arrival h1 {
  position: absolute;
  z-index: 1;
  inset: 22% 0 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font: 400 clamp(72px, min(15vw, 26vh), 245px)/.68 Georgia, serif;
  letter-spacing: -.088em;
  text-transform: uppercase;
  transform: scaleX(.91) scaleY(1.19);
  color: #ededed;
}
.arrival h1 span + span { font-size: .73em; margin-top: .15em; padding-right: .08em; }
.arrival-fabric {
  position: absolute;
  z-index: 2;
  inset: 18% 12% 17%;
  width: 76%;
  height: 65%;
  pointer-events: none;
}
.arrival-enter {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 10px;
  width: 170px;
  height: 98px;
  padding: 12px 10px 18px;
  border: 1px solid #777;
  border-bottom: 0;
  border-radius: 100px 100px 0 0;
  background: #030303a8;
  font: 10px var(--mono);
  text-transform: uppercase;
}
.arrival-enter span { font: 30px Georgia, serif; line-height: 1; }
.arrival-enter:hover { background: #171717; }

.threshold {
  min-height: 84svh;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 24px;
  padding: 84px 20px;
  text-align: center;
  border-top: 1px solid #252525;
  background: radial-gradient(ellipse at center, #161616 0, #030303 72%);
}
.chapter-label { margin: 0; color: #bdbdbd; }
.threshold h2, .map-heading h2 {
  margin: 0;
  font: 400 clamp(70px, 14vw, 176px)/.86 Georgia, serif;
  letter-spacing: -.075em;
}
.threshold h2 em { color: #b7b7b7; }
.threshold > p:not(.chapter-label) { max-width: 340px; margin: 5px 0; color: #d0d0d0; line-height: 1.7; }
.chapter-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #787878;
  font: 10px var(--mono);
  text-transform: uppercase;
}
.chapter-link:hover { border-color: white; }

.world {
  display: block;
  height: auto;
  max-height: none;
  min-height: 0;
  border-top: 1px solid #252525;
  scroll-margin-top: 55px;
}
.map-heading {
  position: relative;
  z-index: 1;
  padding: 64px 5% 0;
  text-align: center;
}
.map-heading h2 { font-size: clamp(60px, 11vw, 122px); margin: 12px 0 20px; }
.map-area { height: clamp(450px, 69vw, 740px); margin-top: -22px; }
.map-stage { inset: 0 2% 28px; }
.map-area::before { inset: 0; }
.map-topline { top: 48px; }
.map-tooltip { left: 50%; transform: translate(-50%, 6px); }
.map-tooltip.visible { transform: translate(-50%, 0); }
.footer { margin-inline: 4%; }

@media (max-width: 760px) {
  .header nav > a:nth-child(2) { display: inline; }
  .arrival h1 { font-size: clamp(64px, 17vw, 127px); transform: scaleY(1.45); }
  .arrival-fabric { inset: 24% 0 21%; width: 100%; height: 55%; }
  .arrival-coordinate, .arrival-edition { top: auto; bottom: 14%; font-size: 7px; }
  .arrival-enter { width: 142px; height: 82px; font-size: 9px; }
  .map-heading { padding-top: 42px; }
  .map-area { height: clamp(395px, 92vw, 560px); margin-top: 0; }
  .map-stage { inset: 0 -3% 44px; }
  .map-topline { top: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .arrival-scene {
      animation: departure linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 95%;
    }
    @keyframes departure {
      from { opacity: 1; transform: scale(1); }
      to { opacity: 0; transform: scale(1.32) translateY(9%); }
    }
  }
}
