/* Cinematic homepage intro and persistent rotating brand globe. */
body.bnn-intro-active {
    overflow: hidden !important;
}

.bnn-cinematic-intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(24, 76, 108, 0.22), transparent 32%),
        radial-gradient(circle at 50% 50%, #08111d 0%, #020306 58%, #000 100%);
    opacity: 1;
    isolation: isolate;
    animation: bnn-intro-lifecycle 5.2s ease both;
    transition: opacity 600ms ease, visibility 600ms ease;
}

.bnn-cinematic-intro.is-leaving {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.intro-space,
.intro-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.intro-stars {
    opacity: 0.62;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(108, 218, 255, 0.8) 0 1px, transparent 1.5px);
    background-position: 0 0, 38px 54px;
    background-size: 83px 83px, 127px 127px;
}

.intro-stars-one {
    animation: bnn-star-drift 8s linear infinite;
}

.intro-stars-two {
    opacity: 0.25;
    transform: scale(1.35);
    animation: bnn-star-drift 13s linear reverse infinite;
}

.intro-name-track {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 8;
    width: 100%;
    transform: translateY(-50%);
    transform-style: preserve-3d;
    pointer-events: none;
}

.intro-name {
    display: block;
    width: max-content;
    color: #fff;
    font-family: var(--font-heading, "Outfit", sans-serif);
    font-size: clamp(38px, 7vw, 112px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.055em;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
    text-shadow:
        0 1px 0 rgba(210, 238, 255, 0.92),
        0 2px 0 rgba(132, 184, 214, 0.82),
        0 4px 0 rgba(58, 97, 126, 0.72),
        0 8px 14px rgba(0, 0, 0, 0.82),
        0 0 30px rgba(157, 224, 255, 0.34);
    white-space: nowrap;
    opacity: 0;
    transform-style: preserve-3d;
    animation: bnn-name-orbit 4.25s cubic-bezier(0.2, 0.76, 0.28, 1) 0.42s both;
}

.intro-globe-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: clamp(230px, 32vw, 510px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    animation: bnn-globe-arrival 5s cubic-bezier(0.18, 0.75, 0.22, 1) both;
}

.intro-globe {
    position: absolute;
    inset: 7%;
    overflow: hidden;
    border: 1px solid rgba(128, 226, 255, 0.64);
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 26%, rgba(165, 235, 255, 0.38), transparent 17%),
        radial-gradient(circle at 66% 68%, rgba(80, 33, 122, 0.58), transparent 38%),
        radial-gradient(circle at 36% 38%, #0b7993 0%, #07334d 45%, #020710 76%);
    box-shadow:
        -24px 0 60px rgba(58, 221, 255, 0.2),
        22px 0 72px rgba(190, 61, 255, 0.18),
        0 0 0 12px rgba(45, 173, 209, 0.025),
        inset -48px -8px 72px rgba(0, 0, 0, 0.86);
    transform-style: preserve-3d;
}

.intro-globe::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.42), transparent 11%, transparent 54%, rgba(0, 0, 0, 0.7) 86%);
    pointer-events: none;
}

.intro-globe img {
    position: absolute;
    top: 13%;
    left: 12%;
    z-index: 3;
    width: 76%;
    height: 76%;
    object-fit: contain;
    opacity: 0.78;
    filter: drop-shadow(0 0 18px rgba(155, 239, 255, 0.5));
    animation: bnn-globe-mark-spin 6s linear infinite;
}

.intro-globe-grid {
    position: absolute;
    inset: -8%;
    z-index: 2;
    border-radius: 50%;
    opacity: 0.44;
    background:
        repeating-radial-gradient(ellipse at center, transparent 0 17px, rgba(109, 226, 255, 0.27) 18px 19px),
        repeating-linear-gradient(90deg, transparent 0 28px, rgba(109, 226, 255, 0.18) 29px 30px);
    animation: bnn-grid-rotate 4.8s linear infinite;
}

.intro-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    width: 118%;
    height: 33%;
    border: 1px solid rgba(138, 230, 255, 0.48);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(86, 211, 255, 0.18);
    transform: translate(-50%, -50%) rotate(-13deg);
}

.intro-orbit-two {
    width: 38%;
    height: 114%;
    opacity: 0.4;
    transform: translate(-50%, -50%) rotate(24deg);
}

.intro-skip {
    position: absolute;
    right: 24px;
    bottom: 22px;
    z-index: 10;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.intro-skip:hover,
.intro-skip:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.spiral-center-globe {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 500;
    width: clamp(270px, 28vw, 430px);
    aspect-ratio: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0) scale(0.62);
    transform-style: preserve-3d;
    transition:
        opacity 1.1s ease,
        transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spiral-center-globe::before {
    content: "";
    position: absolute;
    inset: 2%;
    z-index: 0;
    overflow: hidden;
    border: 1px solid rgba(112, 224, 255, 0.58);
    border-radius: 50%;
    background:
        radial-gradient(circle at 31% 26%, rgba(194, 247, 255, 0.42), transparent 13%),
        repeating-radial-gradient(ellipse at center, transparent 0 19px, rgba(88, 211, 241, 0.14) 20px 21px),
        repeating-linear-gradient(90deg, transparent 0 34px, rgba(98, 220, 246, 0.12) 35px 36px),
        radial-gradient(circle at 38% 34%, #0b7f99 0%, #07334e 47%, #020711 78%);
    box-shadow:
        0 0 42px rgba(54, 218, 255, 0.28),
        0 0 100px rgba(100, 44, 179, 0.18),
        inset -38px -7px 58px rgba(0, 0, 0, 0.86);
    animation: bnn-center-sphere-spin 14s linear infinite;
}

.spiral-center-globe::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 116%;
    height: 34%;
    border: 1px solid rgba(118, 225, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(67, 211, 255, 0.16);
    transform: translate(-50%, -50%) rotate(-12deg);
}

.spiral-center-globe img {
    position: absolute;
    inset: 17%;
    z-index: 2;
    width: 66%;
    height: 66%;
    object-fit: contain;
    opacity: 0.88;
    filter: drop-shadow(0 0 17px rgba(160, 239, 255, 0.58));
    animation: bnn-center-logo-spin 22s linear infinite;
}

.spiral-viewport > .spiral-scene {
    z-index: 2;
}

body.bnn-intro-complete .spiral-center-globe {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
}

@keyframes bnn-intro-lifecycle {
    0%, 88% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes bnn-name-orbit {
    0% { opacity: 0; transform: translate3d(-115vw, 16px, 120px) rotateY(-18deg) scale(0.78); }
    13% { opacity: 1; }
    56% { opacity: 1; transform: translate3d(calc(50vw - 50%), 0, 120px) rotateY(0) scale(1); }
    78% { opacity: 0.95; }
    100% { opacity: 0; transform: translate3d(112vw, -12px, 120px) rotateY(18deg) scale(0.82); }
}

@keyframes bnn-globe-arrival {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.38) rotate(-12deg); }
    20% { opacity: 1; }
    72% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
    100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.62) rotate(4deg); }
}

@keyframes bnn-globe-mark-spin {
    to { transform: rotate(360deg); }
}

@keyframes bnn-grid-rotate {
    to { transform: rotate(-360deg) scale(1.08); }
}

@keyframes bnn-star-drift {
    to { transform: translate3d(-42px, 26px, 0); }
}

@keyframes bnn-center-sphere-spin {
    to { background-position: 0 0, 36px 0, 72px 0, 0 0; }
}

@keyframes bnn-center-logo-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
    .bnn-cinematic-intro {
        background:
            radial-gradient(circle at 50% 48%, rgba(24, 76, 108, 0.24), transparent 38%),
            radial-gradient(circle at 50% 50%, #08111d 0%, #020306 62%, #000 100%);
    }

    .intro-stars {
        opacity: 0.42;
        background-size: 96px 96px, 146px 146px;
    }

    .intro-name-track {
        top: 50%;
        width: 100vw;
        perspective: 700px;
    }

    .intro-name {
        max-width: calc(100vw - 20px);
        font-size: clamp(21px, 7.2vw, 34px);
        letter-spacing: -0.045em;
        -webkit-text-stroke-width: 0.6px;
        text-shadow:
            0 1px 0 rgba(210, 238, 255, 0.9),
            0 2px 0 rgba(105, 158, 190, 0.78),
            0 4px 9px rgba(0, 0, 0, 0.86),
            0 0 20px rgba(157, 224, 255, 0.3);
        animation-name: bnn-name-orbit-mobile;
    }

    .intro-globe-stage {
        width: min(74vw, 56svh, 330px);
        max-width: calc(100vw - 44px);
        animation-name: bnn-globe-arrival-mobile;
    }

    .intro-orbit {
        width: 112%;
    }

    .intro-orbit-two {
        width: 36%;
        height: 108%;
    }

    .intro-skip {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        min-width: 58px;
        min-height: 44px;
        padding: 10px 15px;
    }

    .spiral-center-globe {
        width: clamp(210px, 60vw, 280px);
    }
}

@media (max-width: 700px) and (max-height: 640px) {
    .intro-globe-stage {
        width: min(66vw, 52svh, 280px);
    }

    .intro-name {
        font-size: clamp(20px, 6.8vw, 29px);
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .intro-globe-stage {
        top: 48%;
        width: min(42vw, 62svh, 270px);
    }

    .intro-name-track {
        top: 48%;
    }

    .intro-name {
        font-size: clamp(20px, 4.25vw, 31px);
    }

    .intro-skip {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        min-height: 40px;
    }
}

@keyframes bnn-name-orbit-mobile {
    0% {
        opacity: 0;
        transform: translate3d(calc(-100% - 20px), 10px, 82px) rotateY(-13deg) scale(0.84);
    }
    13% { opacity: 1; }
    56% {
        opacity: 1;
        transform: translate3d(calc(50vw - 50%), 0, 82px) rotateY(0) scale(1);
    }
    78% { opacity: 0.95; }
    100% {
        opacity: 0;
        transform: translate3d(calc(100vw + 20px), -8px, 82px) rotateY(13deg) scale(0.86);
    }
}

@keyframes bnn-globe-arrival-mobile {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.48) rotate(-9deg);
    }
    20% { opacity: 1; }
    72% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0);
    }
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.68) rotate(3deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bnn-cinematic-intro {
        animation-duration: 260ms;
    }

    .intro-name,
    .intro-globe-stage,
    .intro-stars,
    .intro-globe img,
    .intro-globe-grid {
        animation: none !important;
    }

    .intro-name {
        opacity: 1;
        transform: translate3d(calc(50vw - 50%), 0, 0);
    }

    .spiral-center-globe::before,
    .spiral-center-globe img {
        animation: none;
    }

}
