/* Premium homepage cinematic — GSAP primary, CSS fallback */

/* ── Atmosphere overlays (pointer-events none — layout untouched) ── */
.bn-cinematic .bn-hero {
    --bn-overlay-cyan: rgba(0, 207, 240, 0.18);
    --bn-overlay-blue: rgba(26, 111, 232, 0.22);
}

.bn-cinematic .bn-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse 70% 55% at 18% 35%, var(--bn-overlay-cyan), transparent 58%),
        radial-gradient(ellipse 55% 50% at 88% 20%, var(--bn-overlay-blue), transparent 55%),
        linear-gradient(180deg, rgba(4, 10, 22, 0.15) 0%, transparent 28%, rgba(4, 10, 22, 0.55) 100%);
}

.bn-cinematic .bn-hero > .container,
.bn-cinematic .bn-hero__scroll {
    position: relative;
    z-index: 2;
}

.bn-cinematic .bn-section {
    position: relative;
    isolation: isolate;
}

.bn-cinematic .bn-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 50% 40% at 0% 0%, rgba(0, 207, 240, 0.07), transparent 60%),
        radial-gradient(ellipse 45% 35% at 100% 100%, rgba(26, 111, 232, 0.08), transparent 55%);
    opacity: 0;
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.bn-cinematic.bn-cinematic-ready .bn-section::before {
    opacity: 1;
}

.bn-cinematic .bn-section > .container {
    position: relative;
    z-index: 1;
}

.bn-cinematic .bn-section--dark::before {
    background:
        radial-gradient(ellipse 60% 45% at 50% 0%, rgba(0, 207, 240, 0.1), transparent 55%),
        radial-gradient(ellipse 40% 40% at 100% 80%, rgba(123, 97, 255, 0.08), transparent 50%);
}

.bn-cinematic .bn-stats-band__glow {
    background:
        radial-gradient(ellipse 80% 70% at 50% 50%, rgba(0, 207, 240, 0.35), transparent 65%),
        linear-gradient(120deg, rgba(13, 44, 110, 0.55), rgba(0, 191, 255, 0.35), rgba(123, 97, 255, 0.4));
    opacity: 0.9;
    mix-blend-mode: soft-light;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.bn-cinematic .bn-cta {
    position: relative;
    overflow: hidden;
}

.bn-cinematic .bn-cta::after {
    content: '';
    position: absolute;
    inset: -20% -10%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 40%, rgba(0, 207, 240, 0.16), transparent 42%),
        radial-gradient(circle at 80% 60%, rgba(26, 111, 232, 0.2), transparent 45%);
    animation: bnv-overlay-drift 18s ease-in-out infinite alternate;
}

@keyframes bnv-overlay-drift {
    from { transform: translate3d(-2%, 0, 0) scale(1); }
    to { transform: translate3d(2%, -3%, 0) scale(1.05); }
}

/* Soft light sweep on news cards (decorative only) */
.bn-cinematic .bn-home-news__item {
    position: relative;
    overflow: hidden;
}

.bn-cinematic .bn-home-news__item::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(125, 211, 252, 0.07) 48%,
        transparent 62%
    );
    background-size: 220% 100%;
    background-position: 120% 0;
    transition: background-position 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.bn-cinematic .bn-home-news__item:hover::after {
    background-position: -20% 0;
}

.bn-cinematic .bn-home-news__item > * {
    position: relative;
    z-index: 2;
}

/* ── Hero 3D stage ── */
.bn-cinematic .bn-hero__grid {
    perspective: 1400px;
}

.bn-cinematic .bn-hero__visual {
    transform-style: preserve-3d;
}

.bn-cinematic .bn-flight-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.bn-cinematic .bn-hero__title {
    perspective: 900px;
}

.bn-cinematic-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.1em;
}

.bn-cinematic-word__inner {
    display: inline-block;
    transform-origin: center bottom;
}

.bn-cinematic .bn-hero__photo img {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.bn-cinematic .bn-hero__photo,
.bn-cinematic .bn-split__img,
.bn-cinematic .bn-fleet-stage__plane {
    overflow: hidden;
    transform: translateZ(0);
}

.bn-cinematic .bn-hero__copy,
.bn-cinematic .bn-hero__visual,
.bn-cinematic .bn-hero__orb,
.bn-cinematic .bn-split__img img,
.bn-cinematic .bn-marquee__track {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ── CSS fallback hero (no GSAP) ── */
@keyframes bnv-hero-in {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes bnv-nav-drop {
    from { opacity: 0; transform: translate3d(0, -100%, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes bnv-card-3d {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes bnv-gradient-rise {
    from { transform: translate3d(0, 24px, 0); }
    to { transform: none; }
}

.bn-cinematic:not(.bn-cinematic-gsap) .bn-nav {
    animation: bnv-nav-drop 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero__title {
    animation: bnv-hero-in 1.1s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero__title .bn-gradient-text {
    animation: bnv-gradient-rise 0.95s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Gradient subtitle — never hide via clip-path/opacity (breaks background-clip:text) */
.bn-cinematic .bn-hero__title .bn-gradient-text {
    display: inline-block;
    opacity: 1 !important;
    clip-path: none !important;
    background: linear-gradient(120deg, #7DD3FC 0%, #00CFF0 42%, #1A6FE8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .bn-cinematic .bn-hero__title .bn-gradient-text {
        color: #00CFF0;
        -webkit-text-fill-color: #00CFF0;
    }
}

.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero__visual {
    animation: bnv-card-3d 1.15s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero__lead,
.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero__actions,
.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero .bn-pill {
    animation: bnv-hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero .bn-pill { animation-delay: 0.05s; }
.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero__lead { animation-delay: 0.45s; }
.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero__actions { animation-delay: 0.58s; }

/* GSAP owns all motion — neutralize leftover bn-reveal in markup */
.bn-cinematic.bn-cinematic-gsap .bn-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
}

.bn-cinematic.bn-cinematic-gsap .bn-nav,
.bn-cinematic.bn-cinematic-gsap .bn-hero__title,
.bn-cinematic.bn-cinematic-gsap .bn-hero__title .bn-gradient-text,
.bn-cinematic.bn-cinematic-gsap .bn-hero__visual,
.bn-cinematic.bn-cinematic-gsap .bn-hero__lead,
.bn-cinematic.bn-cinematic-gsap .bn-hero__actions,
.bn-cinematic.bn-cinematic-gsap .bn-hero .bn-pill,
.bn-cinematic.bn-cinematic-gsap .bn-hero__sims,
.bn-cinematic.bn-cinematic-gsap .bn-hero__scroll,
.bn-cinematic.bn-cinematic-gsap .bn-hero__photo img,
.bn-cinematic.bn-cinematic-gsap .bn-hero-stats__item {
    animation: none !important;
}

/* ── Fallback scroll reveals — Y-only (alignment safe) ── */
.bn-cinematic .bn-reveal {
    opacity: 0;
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translate3d(0, 32px, 0);
    backface-visibility: hidden;
}

.bn-cinematic .bn-reveal[data-cinematic-variant] {
    clip-path: none;
    transform: translate3d(0, 32px, 0);
}

.bn-cinematic .bn-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.bn-cinematic .bn-cinematic-head {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.bn-cinematic .bn-cinematic-head.is-visible {
    opacity: 1;
    transform: none;
}

.bn-cinematic .bn-marquee__track {
    transform: translateZ(0);
}

.bn-cinematic .bn-split__media {
    transform-style: preserve-3d;
}

.bn-cinematic .bn-split__img {
    overflow: hidden;
}

.bn-cinematic .bn-split__img img {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.bn-cinematic .bn-bento__item {
    transform: translateZ(0);
    backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .bn-cinematic .bn-cta::after {
        animation: none;
    }
    .bn-cinematic .bn-reveal:not(.is-visible) {
        opacity: 0;
    }
    .bn-cinematic .bn-reveal.is-visible,
    .bn-cinematic .bn-cinematic-head.is-visible {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Mobile ranks: never hide ladder steps / insignia */
@media (max-width: 768px) {
    .bn-cinematic .bn-ladder__step,
    .bn-cinematic .bn-ladder__step.bn-reveal,
    .bn-cinematic .bn-ladder__node,
    .bn-cinematic .bn-ladder__node .pilot-rank-insignia,
    .bn-cinematic .bn-ladder__node .pilot-rank-insignia__img {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        filter: none;
    }

    .bn-cinematic .bn-ladder__node .pilot-rank-insignia__img {
        filter: brightness(1.2) contrast(1.12) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45)) !important;
    }
}
