.satria-intro {
    position: fixed;
    z-index: 9000;
    inset: 0;
    overflow: hidden;
    outline: none;
    cursor: pointer;
}

.satria-intro__backdrop,
.satria-intro__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Matches the light-grey edges of the landscape video, so the fade-out shows no seam. */
.satria-intro__backdrop {
    background: radial-gradient(ellipse 75% 100% at 50% 0%, #efefef, #e9e7e8 55%, #e0dfe0 100%);
}

.satria-intro__video {
    object-fit: cover;
    pointer-events: none;
}

/* Starts invisible over the video's final tile; JS fades it in, then flies it to the login heading. */
.satria-intro__logo {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 24%;
    box-shadow: 0 6px 20px rgb(4 27 53 / 24%);
    opacity: 0;
    transform-origin: 0 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.login-heading__logo[data-intro-hidden] { opacity: 0 !important; }

.satria-intro__hint {
    position: absolute;
    right: 20px;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 20px;
    margin: 0;
    color: #3c506b;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: opacity 150ms ease-out;
    pointer-events: none;
}

.satria-intro[data-state="handoff"] .satria-intro__hint,
.satria-intro[data-state="landing"] .satria-intro__hint { opacity: 0; }

.satria-intro__skip {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    right: max(24px, env(safe-area-inset-right));
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgb(16 44 80 / 12%);
    border-radius: 16px;
    background: rgb(255 255 255 / 88%);
    color: #15396b;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgb(16 44 80 / 6%);
    cursor: pointer;
}

.satria-intro__skip:hover { background: #fff; }
.satria-intro__skip:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }

/* Same query as PORTRAIT_QUERY in login-intro.js, which picks the portrait video. */
@media (max-width: 760px) and (orientation: portrait) {
    .satria-intro__backdrop { background: linear-gradient(#f3f3f3, #edebec 50%, #e6e4e5); }
}

@media (max-width: 480px) {
    .satria-intro__skip { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
}

@media (prefers-reduced-motion: reduce) {
    .satria-intro__logo { will-change: auto; }
}
