/* 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.22);
    --bn-overlay-blue: rgba(26, 111, 232, 0.28);
    --bn-overlay-violet: rgba(123, 97, 255, 0.16);
}

/* Film grain + vignette — subtle premium depth */
.bn-cinematic .bn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.22;
    background:
        radial-gradient(ellipse 88% 72% at 50% 42%, transparent 48%, rgba(4, 10, 22, 0.45) 100%);
    mix-blend-mode: soft-light;
}

.bn-cinematic .bn-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse 68% 52% at 16% 32%, rgba(0, 207, 240, 0.14), transparent 58%),
        radial-gradient(ellipse 52% 48% at 86% 18%, rgba(26, 111, 232, 0.16), transparent 55%),
        radial-gradient(ellipse 42% 38% at 64% 90%, rgba(123, 97, 255, 0.1), transparent 52%),
        linear-gradient(180deg, rgba(4, 10, 22, 0.08) 0%, transparent 32%, rgba(4, 10, 22, 0.48) 100%);
    animation: bnv-hero-aurora 28s ease-in-out infinite alternate;
}

@keyframes bnv-hero-aurora {
    0% { opacity: 0.92; transform: translate3d(-0.5%, 0, 0); }
    100% { opacity: 1; transform: translate3d(0.5%, -0.5%, 0); }
}

.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.09), transparent 60%),
        radial-gradient(ellipse 45% 35% at 100% 100%, rgba(26, 111, 232, 0.1), transparent 55%),
        radial-gradient(ellipse 35% 30% at 80% 10%, rgba(123, 97, 255, 0.06), transparent 58%);
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bn-cinematic.bn-cinematic-ready .bn-section::before {
    opacity: 1;
    animation: bnv-section-breathe 24s ease-in-out infinite alternate;
}

@keyframes bnv-section-breathe {
    0% { opacity: 0.85; transform: translate3d(0, 0, 0); }
    100% { opacity: 1; transform: translate3d(0, -0.8%, 0); }
}

.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.42), transparent 65%),
        linear-gradient(120deg, rgba(13, 44, 110, 0.62), rgba(0, 191, 255, 0.42), rgba(123, 97, 255, 0.48));
    opacity: 0.92;
    mix-blend-mode: soft-light;
    transform: translateZ(0);
    backface-visibility: hidden;
    animation: bnv-stats-aurora 18s ease-in-out infinite alternate;
}

@keyframes bnv-stats-aurora {
    0% { transform: translate3d(-2%, 0, 0) scale(0.98); opacity: 0.82; }
    100% { transform: translate3d(2%, -2%, 0) scale(1.05); opacity: 0.96; }
}

.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.2), transparent 42%),
        radial-gradient(circle at 80% 60%, rgba(26, 111, 232, 0.24), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(123, 97, 255, 0.14), transparent 50%);
    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; }

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

@keyframes bnv-stat-card-in {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero-stats__item {
    animation: bnv-stat-card-in 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero-stats__item:nth-child(1) { animation-delay: 0.88s; }
.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero-stats__item:nth-child(2) { animation-delay: 0.97s; }
.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero-stats__item:nth-child(3) { animation-delay: 1.06s; }
.bn-cinematic:not(.bn-cinematic-gsap) .bn-hero-stats__item:nth-child(4) { animation-delay: 1.15s; }

.bn-hero-stats__item:hover .pilot-aev-ic {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.5);
}

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

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

/* GSAP hero only — scroll sections use CSS .bn-reveal + IntersectionObserver */
.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 — refined airline motion ── */
.bn-cinematic .bn-reveal {
    opacity: 0;
    transition:
        opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translate3d(0, 24px, 0);
    filter: blur(4px);
    backface-visibility: hidden;
}

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

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

.bn-cinematic .bn-cinematic-head {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    filter: blur(3px);
    transition:
        opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.bn-cinematic .bn-cinematic-head.is-visible {
    opacity: 1;
    transform: none;
    filter: 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,
    .bn-cinematic .bn-cinematic-head,
    .bn-cinematic .bn-stat-block,
    .bn-cinematic .bn-pill-card,
    .bn-cinematic .bn-crew-card,
    .bn-cinematic .bn-home-news__item,
    .bn-cinematic .bn-hero-stats__item,
    .bn-cinematic .bn-section-head,
    .bn-cinematic .bn-fleet-stage,
    .bn-cinematic .bn-ladder__step,
    .bn-cinematic .bn-cta__inner,
    .bn-cinematic .bn-split__content,
    .bn-cinematic .bn-split__media {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        filter: none !important;
        animation: 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;
    }
}
