/* ============================================================
   Page transition — vpt-*
   Loading indicator: white line drawn by the feather while the
   next page actually loads. No artificial delay.
   ============================================================ */

#vpt-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #012255;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    /* Children (feather, track) must never poke outside the screen:
       on some mobile browsers that overflow makes the page pannable. */
    overflow: hidden;
}
#vpt-overlay.vpt-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* ── Track: invisible rail across the middle of the screen ── */
.vpt-track {
    position: absolute;
    top: 50%;
    left: 6%;
    right: 6%;
    height: 2px;
    transform: translateY(-50%);
}

/* ── Fill: the white line, grows like a progress bar.
      Long ease-out toward 92% — the real page swap cuts it off,
      so its visible duration equals the actual load time. ── */
#vpt-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
    transition: width 12s cubic-bezier(0.08, 0.6, 0.15, 1);
}

/* ── Feather rides the tip of the line ── */
#vpt-feather {
    position: absolute;
    right: 0;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translate(50%, -80%) rotate(-30deg);
}
#vpt-feather img,
#vpt-feather svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* white on navy */
}
#vpt-feather.vpt-feather--color img,
#vpt-feather.vpt-feather--color svg { filter: none; }

/* ── Small wordmark near the bottom ── */
#vpt-tagline {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    margin: 0;
}
