.apd-intro.is-playing {
    --intro-duration: 2.4s;
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    isolation: isolate;
    display: grid;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
    color: #f9f8ff;
    background:
        radial-gradient(ellipse at 76% 64%, #72309b66, transparent 45%),
        radial-gradient(ellipse at 80% 25%, #214ca768, transparent 49%),
        radial-gradient(ellipse at 20% 95%, #32308255, transparent 50%),
        #080b21;
    font-family: system-ui, sans-serif;
    animation: apd-intro-exit var(--intro-duration) linear both;
}

.apd-intro-stars {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .75;
    background-image:
        radial-gradient(1px 1px at 12px 21px, #fff 95%, transparent),
        radial-gradient(1px 1px at 65px 42px, #aabfff 95%, transparent),
        radial-gradient(1px 1px at 42px 77px, #f4cbff 95%, transparent),
        radial-gradient(1.5px 1.5px at 101px 27px, #fff 90%, transparent);
    background-size: 77px 97px, 103px 127px, 139px 143px, 181px 177px;
    mask-image: linear-gradient(105deg, #0007, #000 75%);
    animation: apd-intro-starlight 1.4s ease alternate infinite;
}

.apd-intro-inner {
    box-sizing: border-box;
    width: min(100%, 1190px);
    padding: 32px clamp(20px, 6vw, 82px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 58px);
}

.apd-intro-copy {
    position: relative;
    z-index: 1;
}

.apd-intro-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    font-size: .8rem;
    font-weight: 650;
    letter-spacing: .035em;
    color: #d4e2ff;
}

.apd-intro-brand img {
    display: block;
    width: 40px;
    height: 40px;
    padding: 4px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 0 24px #7c9fff6b;
}

.apd-intro-title {
    margin: 0;
    font-size: clamp(2rem, 4.95vw, 4.25rem);
    font-weight: 730;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.apd-intro-title strong {
    display: block;
    color: #c4d6ff;
    font-weight: 820;
    text-wrap: balance;
}

.apd-intro-message {
    margin: 16px 0 24px;
    color: #e7e6fb;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.4;
}

.apd-intro-contact {
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 15px;
    padding-top: 12px;
    border-top: 1px solid #b9c5ff58;
    color: #e0e8ff;
    font-size: clamp(.77rem, 1.3vw, .91rem);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.apd-intro-scene {
    position: relative;
    aspect-ratio: 1.1;
}

.apd-intro-orbit {
    position: absolute;
    inset: 13% 2% 15% 3%;
    border: 1px solid #b1b7ff70;
    border-radius: 50%;
    transform: rotate(-24deg) scaleY(.73);
    box-shadow: 0 0 24px #9284ff45;
}

.apd-intro-planet {
    position: absolute;
    inset: 24% 23% 14% 22%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 24% 20%, #a3b6ff 0%, #786bda 22%, #383174 49%, #171d48 71%);
    box-shadow: inset -16px -12px 30px #171136, inset 2px 3px 8px #e1d4ff9a, 0 0 40px #8e78e25c;
}

.apd-intro-planet::after {
    content: '';
    position: absolute;
    inset: 32% -17%;
    border: solid 1px #dee3ff91;
    border-top-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(-22deg);
    box-shadow: 0 5px 7px -7px #e1dfff;
}

.apd-intro-spark {
    position: absolute;
    top: 13%;
    right: 17%;
    width: 18px;
    aspect-ratio: 1;
    background: #fff;
    clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    animation: apd-intro-starlight .9s ease alternate infinite;
}

.apd-intro-rocket {
    position: absolute;
    top: 43%;
    left: 38%;
    width: clamp(52px, 8.8vw, 104px);
    aspect-ratio: 1 / 1.65;
    transform: rotate(38deg);
    transform-origin: 50% 64%;
    filter: drop-shadow(0 0 15px #9bd6ff66);
    animation: apd-intro-launch var(--intro-duration) linear both;
}

.apd-intro-rocket i {
    position: absolute;
    display: block;
}

.apd-intro-fin {
    inset: 44% 0 12%;
    background: linear-gradient(100deg, #6dabff, #4e69dd 65%, #4653ac);
    clip-path: polygon(50% 0, 93% 41%, 100% 100%, 66% 80%, 34% 80%, 0 100%, 7% 41%);
}

.apd-intro-hull {
    inset: 0 19% 16%;
    border-radius: 53% 53% 28% 28% / 57% 57% 21% 21%;
    background: linear-gradient(160deg, #8ec5ff 2%, #726ef0 25%, transparent 26%),
        linear-gradient(105deg, #fff, #f2f8ff 55%, #88a3db);
    box-shadow: inset -3px -7px 13px #4a55b55c;
}

.apd-intro-window {
    inset: 32% 34% auto;
    aspect-ratio: 1;
    box-sizing: border-box;
    border: 3px solid #95b7e8;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 27%, #8ac8ff, #31529e 44%, #121b49 85%);
}

.apd-intro-flame {
    inset: 84% 35% -27%;
    border-radius: 50% 50% 53% 53% / 16% 16% 84% 84%;
    background: linear-gradient(#fff7df 6%, #ffca76 36%, #ff8e72 64%, #c250ff06 98%);
    filter: drop-shadow(0 6px 6px #fa905ecc);
    transform-origin: 50% 0;
    animation: apd-intro-flare var(--intro-duration) linear both;
}

@keyframes apd-intro-exit {
    0%, 81% { opacity: 1; visibility: visible; }
    99% { opacity: 0; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes apd-intro-launch {
    0%, 15% { transform: translate(0, 0) rotate(36deg); }
    19% { transform: translate(-1px, 1px) rotate(34deg); }
    23% { transform: translate(2px, -2px) rotate(38deg); }
    28% { transform: translate(1vmin, -2vmin) rotate(36deg); animation-timing-function: cubic-bezier(.45, .04, .85, .62); }
    74% { transform: translate(21vmin, -30vmin) rotate(36deg) scale(.72); opacity: 1; }
    89%, 100% { transform: translate(49vmin, -67vmin) rotate(32deg) scale(.28); opacity: 0; }
}

@keyframes apd-intro-flare {
    0%, 25% { transform: scale(.65, .32); opacity: .72; }
    44% { transform: scale(.88, 1.13); opacity: 1; }
    53% { transform: scale(.8, .9); }
    68%, 100% { transform: scale(1, 1.34); opacity: 1; }
}

@keyframes apd-intro-starlight {
    from { opacity: .64; }
    to { opacity: 1; }
}

@media (max-width: 640px) {
    .apd-intro-inner {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
        max-width: 450px;
        gap: 8px;
        padding-block: 18px;
    }

    .apd-intro-scene {
        grid-row: 1;
        justify-self: center;
        width: min(72vw, 260px, 35dvh);
    }

    .apd-intro-brand {
        justify-content: center;
        gap: 9px;
        margin-bottom: 12px;
    }

    .apd-intro-brand img { width: 30px; height: 30px; }
    .apd-intro-title { font-size: clamp(1.75rem, 8.5vw, 2.8rem); }
    .apd-intro-message { margin: 10px auto 14px; }
    .apd-intro-contact { margin-inline: auto; justify-content: center; padding-top: 9px; }
}

@media (max-width: 640px) and (max-height: 500px) {
    .apd-intro-scene { width: min(110px, 26dvh); }
    .apd-intro-rocket { width: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    .apd-intro.is-playing { display: none; }
}
