.intro { transition: background-color 720ms ease; }

.intro__signal-frame {
    border: 0 solid transparent;
    border-radius: 0;
    box-shadow: 0 0 0 rgb(0 0 0 / 0%);
    transform: translateZ(0);
    transition:
        inset 920ms cubic-bezier(0.16, 1, 0.3, 1),
        border-radius 920ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 920ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 920ms cubic-bezier(0.16, 1, 0.3, 1);
}

.intro__topline,
.intro__loading,
.intro__controls,
.intro__progress {
    transition: opacity 240ms ease, transform 360ms var(--ease-out);
}

.intro-handoff,
.intro-handoff__grid,
.intro-handoff__scanlines { position: absolute; inset: 0; pointer-events: none; }

.intro-handoff {
    z-index: 5;
    opacity: 0;
    transition: opacity 180ms ease;
}

.intro-handoff__grid {
    background:
        linear-gradient(90deg, transparent 49.8%, rgb(200 255 46 / 32%) 50%, transparent 50.2%),
        linear-gradient(transparent 49.8%, rgb(200 255 46 / 32%) 50%, transparent 50.2%);
    background-size: 5rem 5rem;
    mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 78%);
}

.intro-handoff__scanlines {
    opacity: 0.7;
    background: repeating-linear-gradient(0deg, rgb(255 255 255 / 7%) 0 1px, transparent 1px 4px);
    mix-blend-mode: screen;
}

.intro-handoff__reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: min(26vw, 15rem);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgb(200 255 46 / 72%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 0;
}

.intro-handoff__reticle::before,
.intro-handoff__reticle::after { content: ""; position: absolute; background: rgb(200 255 46 / 72%); }
.intro-handoff__reticle::before { width: 130%; height: 1px; }
.intro-handoff__reticle::after { width: 1px; height: 130%; }
.intro-handoff__reticle span { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 1rem var(--signal); }

.intro-handoff__status {
    position: absolute;
    right: clamp(0.8rem, 3vw, 2rem);
    bottom: clamp(0.8rem, 3vw, 2rem);
    left: clamp(0.8rem, 3vw, 2rem);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--signal);
    font: 700 clamp(0.48rem, 0.8vw, 0.68rem)/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.intro[data-state="handoff"] { background-color: transparent; pointer-events: none; }

.intro[data-state="handoff"] .intro__signal-frame,
.intro[data-state="complete"] .intro__signal-frame {
    inset:
        var(--intro-target-top)
        var(--intro-target-right)
        var(--intro-target-bottom)
        var(--intro-target-left);
    border-radius: clamp(1rem, 2.2vw, 2rem) / clamp(1.3rem, 3vw, 2.7rem);
    box-shadow:
        0 0 0 0.6rem #070907,
        0 0 4rem rgb(200 255 46 / 18%);
    filter: contrast(1.08) saturate(0.78) brightness(0.76);
}

.intro[data-state="handoff"] .intro__topline,
.intro[data-state="handoff"] .intro__loading,
.intro[data-state="handoff"] .intro__controls,
.intro[data-state="handoff"] .intro__progress {
    opacity: 0;
    transform: translateY(-0.75rem);
}

.intro[data-state="handoff"] .intro-handoff { opacity: 1; }
.intro[data-state="handoff"] .intro-handoff__reticle { animation: intro-signal-lock 720ms var(--ease-out) both; }

.intro[data-state="complete"] {
    visibility: hidden;
    background-color: transparent;
    pointer-events: none;
}

@keyframes intro-signal-lock {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
    45% { opacity: 0.9; }
    100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.72); }
}

@media (max-width: 40rem) {
    .intro-handoff__status { align-items: flex-start; flex-direction: column; }
    .intro-handoff__reticle { width: min(46vw, 10rem); }
}

@media (prefers-reduced-motion: reduce) {
    .intro,
    .intro__signal-frame,
    .intro__topline,
    .intro__loading,
    .intro__controls,
    .intro__progress,
    .intro-handoff { transition-duration: 1ms; }
    .intro[data-state="handoff"] .intro-handoff__reticle { animation: none; }
}
