.crt-handoff { display: none; }
.crt-arrival body:is([data-page="resume"], [data-page="me"]) .design > :not([data-name="Navbar"]) { animation: none; }

@media (prefers-reduced-motion: no-preference) {
  .crt-pending :is([data-crt-layer], #viewport > .design > :not([data-name="Navbar"])) {
    visibility: hidden !important;
  }

  .crt-pending #viewport > .design {
    transform: scale(var(--crt-arrival-scale, 1));
  }

  .crt-pending .crt-handoff {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    pointer-events: none;
  }

  .crt-handoff span {
    width: min(54vw, 1120px);
    height: 2px;
    background: #fff;
    box-shadow: 0 0 9px rgba(255,255,255,.78);
  }

  body:is([data-page="about"], [data-page="portfolio"]) .crt-handoff span { box-shadow: none; }
}

.crt-home-shutter {
  position: fixed;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
}

.crt-home-shutter > div {
  position: absolute;
  inset-inline: 0;
  height: calc(50% + 1px);
  background: #000;
}

.crt-home-shutter > :first-child { top: 0; }
.crt-home-shutter > :last-child { bottom: 0; }


/* On tab arrival, the CRT owns the list reveal. Direct visits still stagger. */
.crt-arrival body:is([data-page="about"], [data-page="portfolio"]) .list-label {
  opacity: 1;
  translate: none;
  transition: none;
}
