/* Welcome intro: an eagle flaps across the screen from one corner to the opposite one and
   the website appears behind it, starting at the corner where the eagle began. */

.eagle-veil {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: var(--eagle-veil, #ffffff);
    pointer-events: none;
    /* Safety net: if the script never runs, the cover fades away by itself. */
    animation: eagle-veil-failsafe 0.01s linear 6s forwards;
}

.eagle-fly {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: clamp(150px, 46vw, 260px);
    aspect-ratio: 460 / 455;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform, opacity;
    transform: translate3d(-140vw, 0, 0);
    animation: eagle-fly-failsafe 0.01s linear 6s forwards;
}

.eagle-rig {
    position: relative;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 16px 16px rgba(15, 23, 42, 0.26));
}

.eagle-part {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    will-change: transform;
}

.eagle-part--wl { transform-origin: 48.9% 47.3%; }
.eagle-part--wr { transform-origin: 66.3% 51.6%; }
.eagle-part--body { transform-origin: 50% 55%; }

@keyframes eagle-veil-failsafe {
    to { opacity: 0; visibility: hidden; }
}

@keyframes eagle-fly-failsafe {
    to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .eagle-veil,
    .eagle-fly {
        display: none;
    }
}
