/* nimrodcore — intro screen (resources/views/partials/intro.blade.php). */

.intro {
    position: relative; isolation: isolate; overflow: hidden;
    height: 100vh; height: 100svh; min-height: 520px;
    display: grid; place-items: center;
}

.intro-bg {
    position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1.4s ease;
}
.intro-bg.on { opacity: 1; }
/* melt the light field into the page background */
.intro::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 32%; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, transparent, var(--bg));
}

.intro-inner { position: relative; z-index: 1; text-align: center; padding: 0 16px; }

/* ---------- decrypt intro (first visit of a session) ---------- */
.intro-asm {
    position: absolute; z-index: 0; left: max(16px, 7vw); bottom: 7vh;
    font: 12.5px/1.65 ui-monospace, "Cascadia Mono", Consolas, monospace;
    color: rgba(182, 163, 251, .5); white-space: pre; text-align: left; pointer-events: none;
    opacity: 0; transition: opacity .7s ease;
}
.intro-asm.on { opacity: 1; }
.intro-asm.out { opacity: 0; }
.intro-asm .a { color: rgba(241, 239, 246, .22); }
.intro-asm .b { color: rgba(241, 239, 246, .3); }
.intro-asm .m { color: rgba(205, 192, 255, .78); }
.intro-asm .s { margin-top: 14px; color: var(--fg); }
.intro-asm .s b { font-weight: 400; color: var(--violet-hi); }

.intro-mark .ch {
    display: inline-block; text-align: center;
    background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nc-boot .intro-mark { animation: none; opacity: 0; }
.nc-boot.nc-run .intro-mark { opacity: 1; }
.nc-boot .intro-line, .nc-boot .intro-btn { animation: none; opacity: 0; }
@media (max-width: 700px) { .intro-asm { bottom: 4vh; font-size: 10.5px; } .intro-asm .b { display: none; } }

.intro-mark, .foot-mark {
    font-family: 'Course', ui-sans-serif, sans-serif; font-weight: 700;
    line-height: .9; letter-spacing: -0.02em;
    /* white with a slight silver falloff (owner's request) */
    background: linear-gradient(180deg, #ffffff 0%, #f4f3f7 45%, #c6c3cf 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro-mark {
    font-size: clamp(44px, 10vw, 184px);
    animation: intro-rise 1.1s cubic-bezier(.19, 1, .22, 1) both;
}
.intro-line {
    margin-top: clamp(16px, 2vw, 26px);
    font-size: 17px; line-height: 1.4; color: var(--muted);
    animation: intro-rise 1.1s .12s cubic-bezier(.19, 1, .22, 1) both;
}
.intro-btn {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 28px; height: 48px; padding: 0 28px; border-radius: 99px;
    font-weight: 600; font-size: 15px;
    background: var(--fg); color: #0b0913;
    transition: background .2s, transform .2s cubic-bezier(.23, 1, .32, 1);
    animation: intro-rise 1.1s .24s cubic-bezier(.19, 1, .22, 1) both;
}
.intro-btn:hover { background: #fff; transform: translateY(-1px); }
.intro-btn svg { transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
.intro-btn:hover svg { transform: translateY(2px); }

@keyframes intro-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .intro-mark, .intro-line, .intro-btn { animation: none; }
    .intro-bg { transition: none; }
}
