
#nfci-intro {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
}

#nfci-text-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    text-align: center;
    perspective: 1200px;
    box-sizing: border-box;
}

#nfci-text {
    opacity: 0;
    visibility: hidden;
    color: #fff;
    width: min(92vw, 1200px);
    font-size: clamp(30px, 5.4vw, 82px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    text-shadow:
        0 0 8px rgba(255,255,255,.35),
        0 0 24px rgba(255,255,255,.15);
}

#nfci-text .nfci-letter {
    display: inline-block;
    will-change: transform, opacity, filter;
}

#nfci-text .nfci-space {
    display: inline-block;
    width: 0.32em;
}

#nfci-text .nfci-word {
    display: inline-block;
    white-space: nowrap;
}

html.nfci-locked,
body.nfci-locked {
    overflow: hidden !important;
}

/* MINI SCENE */
#nfci-mini-scene {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    background:
        radial-gradient(circle at 68% 65%, rgba(15,53,91,.20), transparent 34%),
        #000;
}

#nfci-road {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12vh;
    height: 2px;
    background: rgba(190,220,255,.15);
    box-shadow: 0 0 28px rgba(70,145,255,.12);
}

#nfci-mini {
    position: absolute;
    left: 0;
    bottom: 5vh;
    width: min(1050px, 76vw);
    transform-origin: 52% 78%;
    will-change: transform, filter, opacity;
}

.nfci-countryman-image {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
    filter: contrast(1.05) saturate(1.08);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, rgba(0,0,0,.96) 92%, rgba(0,0,0,.7) 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 82%, rgba(0,0,0,.96) 92%, rgba(0,0,0,.7) 100%);
}

.nfci-car-glow {
    position: absolute;
    z-index: -1;
    left: 6%;
    top: 38%;
    width: 38%;
    height: 22%;
    border-radius: 50%;
    background: rgba(185,225,255,.18);
    filter: blur(42px);
    opacity: 0;
}

#nfci-skid {
    position: absolute;
    bottom: 12vh;
    left: 8vw;
    width: 420px;
    height: 22px;
    opacity: 0;
}

#nfci-skid span {
    position: absolute;
    height: 2px;
    width: 100%;
    left: 0;
    background: rgba(190,210,230,.16);
    filter: blur(.7px);
}

#nfci-skid span:first-child { top: 2px; }
#nfci-skid span:last-child { top: 17px; }


#nfci-character-sequence {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

#nfci-character-sequence img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.035);
    filter: contrast(1.05) saturate(1.05);
    will-change: opacity, transform, filter;
}

#nfci-character-sequence::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 150px rgba(0,0,0,.45);
    pointer-events: none;
}

@media (max-width: 600px) {
    #nfci-text {
        font-size: clamp(24px, 8.5vw, 48px);
        line-height: 1.08;
        letter-spacing: -0.025em;
    }

    #nfci-mini {
        width: min(820px, 112vw);
    }
}


/* v0.1.7 viewport isolation: prevents the cinematic layer from influencing page layout */
html.nfci-locked,
body.nfci-locked {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.nfci-locked {
    position: relative !important;
}

#nfci-intro {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    transform: none !important;
    contain: layout paint size style;
}

#nfci-mini-scene {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    transform: none !important;
}

#nfci-mini {
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

#nfci-motion-haze,
#nfci-light-sweep {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
}

#nfci-motion-haze {
    background:
        radial-gradient(circle at 76% 72%, rgba(84,104,255,.18), transparent 24%),
        radial-gradient(circle at 88% 66%, rgba(255,86,160,.10), transparent 18%);
    filter: blur(12px);
}

#nfci-light-sweep {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(180,220,255,.04) 38%,
        rgba(230,245,255,.22) 48%,
        rgba(180,220,255,.06) 58%,
        transparent 100%
    );
    transform: translateX(-120%);
}
