html {
  scroll-behavior: auto;
}
.orbitJourney {
  height: 170vh;
  padding: 0;
  --orbitProgress: 0;
  --revealProgress: 0;
}
.orbitPin {
  position: sticky;
  top: 94px;
  height: calc(100svh - 106px);
  min-height: 540px;
}
.nativeOrbit {
  position: absolute;
  inset: 0;
  max-width: 1440px;
  margin: auto;
}
.referenceCenter {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc((min(78vw, 1000px) / 3.52) * (1 - var(--orbitProgress)) + 48% * var(--orbitProgress));
  width: min(78vw, 1000px);
  aspect-ratio: 1.76;
  transform: translate(-50%, -50%) scale(calc(1 - 0.63 * var(--orbitProgress)));
  transform-origin: center;
  padding: 22px;
  border-radius: 16px;
  background: var(--lime);
  display: block;
  color: var(--ink);
  box-shadow: 0 12px 32px #00000008;
}
.referenceCenter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
}
.referenceLabel {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 16px 22px;
  font-size: calc(16px / (1 - 0.63 * var(--orbitProgress)));
  font-weight: 700;
}
.orbitRings {
  position: absolute;
  inset: 9% 13% 15%;
  opacity: var(--revealProgress);
}
.orbitRings i {
  position: absolute;
  border: 1px solid #00000010;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}
.orbitRings i:nth-child(2) {
  width: 74%;
  height: 74%;
}
.orbitRings i:nth-child(3) {
  width: 46%;
  height: 46%;
}
.neighborReference {
  position: absolute;
  z-index: 2;
  left: calc(50% + var(--nodeX) * var(--revealProgress));
  top: calc(48% + var(--nodeY) * var(--revealProgress));
  width: 15%;
  transform: translate(-50%, -50%) scale(calc(0.65 + 0.35 * var(--revealProgress)));
  opacity: var(--revealProgress);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.neighborReference img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  object-position: top;
  border-radius: 7px;
  box-shadow: 0 2px 14px #0000000b;
  transition: transform 180ms ease;
}
.neighborReference:hover img {
  transform: translateY(-5px);
}
.neighborReference span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orbitNarrative {
  position: absolute;
  z-index: 4;
  left: 5%;
  top: 0;
  pointer-events: none;
  opacity: var(--revealProgress);
  transform: translateY(calc(14px * (1 - var(--revealProgress))));
}
.orbitNarrative .mono {
  color: var(--ink-mute);
  font-size: 10px;
}
.orbitNarrative h2 {
  font-size: clamp(26px, 3vw, 46px);
  line-height: 0.98;
  margin: 10px 0 0;
}
.referenceCaption {
  position: absolute;
  left: max(11%, calc((100% - 1000px) / 2));
  top: calc((min(78vw, 1000px) / 3.52) + min(78vw, 1000px) / 3.52 + 64px);
  opacity: calc(1 - var(--orbitProgress));
  pointer-events: none;
}
.referenceCaption .mono {
  color: var(--ink-mute);
  font-size: 10px;
}
.referenceCaption p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.4;
}
.nativeControls {
  position: absolute;
  z-index: 5;
  bottom: 24px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: var(--revealProgress);
  font-size: 13px;
}
.nativeControls button {
  font: inherit;
  cursor: pointer;
}
.shuffleReference {
  background: var(--lime);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
}
.browseReference {
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.orbitStatus {
  position: absolute;
  bottom: 0;
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 12px;
}
#mcp {
  position: relative;
  z-index: 1;
  padding-top: 88px;
  scroll-margin-top: 100px;
}
.copyStatus {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--lime);
}
.nav-cta {
  display: none;
}
@media (max-width: 720px) {
  .orbitJourney {
    height: 165vh;
  }
  .orbitPin {
    top: 96px;
    height: calc(100svh - 106px);
    min-height: 550px;
  }
  .referenceCenter {
    width: 92vw;
    padding: 10px;
    border-radius: 10px;
    top: calc((92vw / 3.52) * (1 - var(--orbitProgress)) + 48% * var(--orbitProgress));
    transform: translate(-50%, -50%) scale(calc(1 - 0.56 * var(--orbitProgress)));
  }
  .referenceLabel {
    padding: 12px 4px;
    font-size: calc(14px / (1 - 0.56 * var(--orbitProgress)));
  }
  .neighborReference {
    top: calc(48% + var(--nodeY) * 0.64 * var(--revealProgress));
    width: 23%;
  }
  .neighborReference span {
    font-size: 9px;
    margin-top: 5px;
  }
  .orbitNarrative {
    left: 20px;
  }
  .orbitNarrative h2 {
    font-size: 30px;
  }
  .orbitRings {
    inset: 22% 2% 22%;
  }
  .referenceCaption {
    left: 20px;
    top: calc(92vw / 1.76 + 50px);
  }
  .nativeControls {
    bottom: 45px;
    flex-wrap: wrap;
    padding: 0 20px;
    gap: 12px 20px;
  }
  .orbitStatus {
    bottom: 15px;
  }
  .nav-links {
    display: flex;
  }
  .nav {
    gap: 20px;
  }
  .cmdrow {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 16px;
  }
  .cmdrow code {
    flex-basis: 100%;
    font-size: 14px;
    white-space: normal;
  }
  .cmdrow .copy {
    margin-left: auto;
  }
  #mcp {
    padding-top: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .orbitJourney {
    height: auto;
    --orbitProgress: 1 !important;
    --revealProgress: 1 !important;
  }
  .orbitPin {
    position: relative;
    top: auto;
  }
  .neighborReference img {
    transition: none;
  }
}

/* The fork has no trailing nav CTA, so both sides need the same breathing room. */
.nav {
  padding-inline: 24px;
}
.hero {
  padding-bottom: 56px;
}
