/* ============ portal — the word between two worlds ============
   The stage is transparent: the dark around the letters is the neural film behind the page.
   The letters (and the cover rect, once the stem fills the screen) are paper. */

.portal {
  position: relative;
  z-index: 1;
}
/* SIGNAL rises over the last of the hero's dissolve: the word comes out of the noise */
.portal--in { margin-top: -50lvh; }
/* NOISE begins under the end of About: the paper of the act slides away off the paper of the
   stem — no screen of blank paper before the zoom (the act sits above, z-index 2) */
.portal--out { margin-top: -55lvh; }
/* …and the Lab rises over NOISE's empty stage once the word has dissolved */
.portal--out + .lab { margin-top: -38vh; }

.portal__stage {
  position: relative;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
}

.portal__word {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #ece8e1;
  overflow: visible;
}
.portal__word path { will-change: auto; }
.portal__cover { visibility: hidden; }
.portal.is-covered .portal__cover { visibility: visible; }

.portal__kicker {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(54% - 7.15vw - 2.8rem);
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--ink-3);
}
.portal__kicker sub { font-size: 0.75em; text-transform: none; }

/* NOISE starts life inside the paper of the act above */
.portal--out .portal__stage { background: transparent; }

/* reduced motion: a still typographic divider, no pin, no zoom */
.portal.is-still .portal__stage { height: 64vh; }
.portal.is-still .portal__kicker { opacity: 1; }

@media (max-width: 799px) {
  .portal__kicker { top: calc(54% - 7.65vw - 2.4rem); font-size: 0.68rem; }
}

/* reduced motion: SIGNAL ends on the paper it would have zoomed into, NOISE begins on it */
.portal--in.is-still::after,
.portal--out.is-still::before {
  content: "";
  display: block;
  height: 18vh;
  background: #ece8e1;
}

