.nxb-banner {
    --nxb-banner-accent: #e86513;
    --nxb-banner-overlay-colour: #000;
    --nxb-banner-overlay-opacity: .5;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    background: #222;
}

.nxb-banner--width-full-screen {
    width: calc(100% + (2 * var(--content-padding, 30px)));
    max-width: none;
    margin-inline: calc(-1 * var(--content-padding, 30px));
}

.nxb-banner__layout {
    position: relative;
    display: grid;
    min-height: inherit;
}

.nxb-banner__content,
.nxb-banner__media {
    box-sizing: border-box;
    min-width: 0;
}

.nxb-banner__media {
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
}

.nxb-banner__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nxb-banner__content {
    position: relative;
    z-index: 2;
    display: flex;
    padding: clamp(2rem, 5vw, 5rem);
}

.nxb-banner__content::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--nxb-banner-overlay-colour);
    opacity: var(--nxb-banner-overlay-opacity);
    content: "";
}

.nxb-banner__content-inner {
    width: min(100%, 42rem);
}

.nxb-banner__title {
    margin: 0;
    color: inherit;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.05;
}

.nxb-banner__subtitle {
    margin: 1rem 0 0;
    color: inherit;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
}

.nxb-banner__intro {
    margin-top: 1.25rem;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.65;
}

.nxb-banner__intro > :first-child { margin-top: 0; }
.nxb-banner__intro > :last-child { margin-bottom: 0; }

.nxb-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
}

.nxb-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: .75rem 1.5rem;
    border: 2px solid currentColor;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    transition: filter .2s ease, transform .2s ease;
}

.nxb-banner__button--primary {
    border-color: var(--nxb-banner-accent);
    background: var(--nxb-banner-accent);
    color: #fff;
}

.nxb-banner__button:hover { filter: brightness(.92); }
.nxb-banner__button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.nxb-banner--text-light { color: #fff; }
.nxb-banner--text-dark { color: #171717; }

/* Image and content share the same grid cell in overlay mode. */
.nxb-banner--presentation-overlay .nxb-banner__content,
.nxb-banner--presentation-overlay .nxb-banner__media {
    grid-area: 1 / 1;
}

.nxb-banner--presentation-overlay .nxb-banner__content {
    min-height: inherit;
}

.nxb-banner--presentation-overlay .nxb-banner__media::after {
    position: absolute;
    inset: 0;
    background: var(--nxb-banner-overlay-colour);
    opacity: var(--nxb-banner-overlay-opacity);
    content: "";
}

.nxb-banner--presentation-overlay .nxb-banner__content::before { display: none; }

.nxb-banner--position-top-left .nxb-banner__content { align-items: flex-start; justify-content: flex-start; text-align: left; }
.nxb-banner--position-top-centre .nxb-banner__content { align-items: flex-start; justify-content: center; text-align: center; }
.nxb-banner--position-top-right .nxb-banner__content { align-items: flex-start; justify-content: flex-end; text-align: right; }
.nxb-banner--position-centre-left .nxb-banner__content { align-items: center; justify-content: flex-start; text-align: left; }
.nxb-banner--position-centre-centre .nxb-banner__content { align-items: center; justify-content: center; text-align: center; }
.nxb-banner--position-centre-right .nxb-banner__content { align-items: center; justify-content: flex-end; text-align: right; }
.nxb-banner--position-bottom-left .nxb-banner__content { align-items: flex-end; justify-content: flex-start; text-align: left; }
.nxb-banner--position-bottom-centre .nxb-banner__content { align-items: flex-end; justify-content: center; text-align: center; }
.nxb-banner--position-bottom-right .nxb-banner__content { align-items: flex-end; justify-content: flex-end; text-align: right; }

.nxb-banner--position-top-centre .nxb-banner__buttons,
.nxb-banner--position-centre-centre .nxb-banner__buttons,
.nxb-banner--position-bottom-centre .nxb-banner__buttons { justify-content: center; }

.nxb-banner--position-top-right .nxb-banner__buttons,
.nxb-banner--position-centre-right .nxb-banner__buttons,
.nxb-banner--position-bottom-right .nxb-banner__buttons { justify-content: flex-end; }

/* Split mode uses a solid layout with opacity applied only to the text panel. */
.nxb-banner--presentation-split .nxb-banner__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.nxb-banner--presentation-split.nxb-banner--image-right .nxb-banner__content { grid-column: 1; grid-row: 1; }
.nxb-banner--presentation-split.nxb-banner--image-right .nxb-banner__media { grid-column: 2; grid-row: 1; }
.nxb-banner--presentation-split.nxb-banner--image-left .nxb-banner__content { grid-column: 2; grid-row: 1; }
.nxb-banner--presentation-split.nxb-banner--image-left .nxb-banner__media { grid-column: 1; grid-row: 1; }
.nxb-banner--presentation-split .nxb-banner__content { align-items: center; }

.nxb-banner--size-medium-crop { min-height: 32rem; }
.nxb-banner--size-takeover { min-height: calc(100svh - var(--header-min-height, 120px)); }

.nxb-banner--size-original .nxb-banner__image {
    height: auto;
    object-fit: contain;
}

.nxb-banner--presentation-overlay.nxb-banner--size-original .nxb-banner__media {
    align-self: stretch;
}

@media (max-width: 800px) {
    .nxb-banner--size-medium-crop { min-height: 24rem; }
    .nxb-banner--size-takeover { min-height: 70svh; }

    .nxb-banner--presentation-split .nxb-banner__layout {
        grid-template-columns: 1fr;
    }

    .nxb-banner--presentation-split.nxb-banner--image-left .nxb-banner__content,
    .nxb-banner--presentation-split.nxb-banner--image-right .nxb-banner__content {
        grid-column: 1;
        grid-row: 1;
    }

    .nxb-banner--presentation-split.nxb-banner--image-left .nxb-banner__media,
    .nxb-banner--presentation-split.nxb-banner--image-right .nxb-banner__media {
        grid-column: 1;
        grid-row: 2;
        min-height: 18rem;
    }

    .nxb-banner--presentation-split.nxb-banner--size-takeover .nxb-banner__content,
    .nxb-banner--presentation-split.nxb-banner--size-takeover .nxb-banner__media {
        min-height: 35svh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nxb-banner__button { transition: none; }
}

.nxb-banner--showcase { color: var(--ink); background: linear-gradient(120deg,#fff 25%,#f4f7f7); }
.nxb-banner--showcase .nxb-banner__layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.nxb-banner--showcase :is(.nxb-banner__media, .nxb-banner__content) { position: relative; inset: auto; grid-area: auto; }
.nxb-banner--showcase .nxb-banner__content { color: var(--ink); }
.nxb-banner--showcase .nxb-banner__title { font-size: clamp(2.7rem,4.6vw,4.45rem); letter-spacing: -.065em; line-height: 1.06; }
.nxb-banner__eyebrow { font-weight: 700; text-align: var(--nxb-heading-align, inherit); }
.nxb-banner__screens { position: relative; min-height: clamp(20rem,36vw,32rem); isolation: isolate; }
.nxb-banner__screen { position: absolute; width: 61%; margin: 0; overflow: hidden; border: 6px solid white; border-radius: 12px; background: white; box-shadow: 0 18px 32px #1423292e; }
.nxb-banner__screen img { display: block; width: 100%; height: auto; }
.nxb-banner__browser-title { display: flex; align-items: center; gap: .6rem; min-height: 1.45rem; padding-inline: .35rem; color: #48515a; background: #fff; font: 600 .72rem/1.2 Manrope, sans-serif; }
.nxb-banner__browser-title::before { content: ""; width: .3rem; height: .3rem; margin-right: .75rem; background: #e1e4e5; border-radius: 50%; box-shadow: .42rem 0 #e1e4e5, .84rem 0 #e1e4e5; }
.nxb-banner__heading-line { display: block; }
.nxb-banner__heading-line:last-child { color: var(--accent, #dd4c00); }
.nxb-editorial-hero { background: #fff; color: var(--ink); }
.nxb-editorial-hero .nxb-banner__content { text-align: left; justify-content: flex-start; padding: clamp(1.5rem, 3vw, 3.25rem) clamp(1rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3.25rem) 0; }
.nxb-editorial-hero .nxb-banner__content::before { display: none; }
.nxb-editorial-hero .nxb-banner__buttons { justify-content: flex-start; }
.nxb-editorial-hero .nxb-banner__button { border-radius: .45rem; font-size: .95rem; }
.nxb-editorial-hero .nxb-banner__button--primary { background: var(--primary); border-color: var(--primary); }
.nxb-editorial-hero .nxb-banner__button--secondary { border-color: var(--line); }
.nxb-editorial-hero .nxb-banner__eyebrow { display: flex; align-items: center; gap: .65rem; text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; }
.nxb-editorial-hero .nxb-banner__eyebrow::before { content: ""; width: 1.7rem; height: .16rem; background: var(--accent); flex: none; }
.nxb-editorial-hero .nxb-banner__media { background: transparent; }
.nxb-editorial-hero.nxb-banner--showcase { background: linear-gradient(112deg, #fff 38%, #f6f8f8); }
.nxb-editorial-hero .nxb-banner__screens::before,
.nxb-editorial-hero .nxb-banner__screens::after { content: ""; position: absolute; top: 8%; right: 0; width: 71%; aspect-ratio: 1; border-radius: 50%; z-index: -1; }
.nxb-editorial-hero .nxb-banner__screens::before { background: var(--accent); }
.nxb-editorial-hero .nxb-banner__screens::after { border: 1px solid #ff590047; transform: scale(1.16); }
.nxb-editorial-hero .nxb-banner__screens { overflow: hidden; }
@media (max-width: 56rem) {
    .nxb-editorial-hero .nxb-banner__content { padding: 1.5rem 0; }
    .nxb-editorial-hero .nxb-banner__title { font-size: clamp(2.35rem, 8.7vw, 4rem); }
}
.nxb-banner__screen:nth-child(1) { left: 2%; top: 43%; transform: rotate(-10deg); }
.nxb-banner__screen:nth-child(2) { left: 13%; top: 9%; transform: rotate(-6deg); }
.nxb-banner__screen:nth-child(3) { right: 2%; top: 35%; width: 70%; transform: rotate(5deg); }
.nxb-banner__screens[data-count="1"] .nxb-banner__screen { inset: 12% 8% auto; width: 84%; transform: none; }
@media (max-width: 56rem) {
    .nxb-banner--showcase .nxb-banner__layout { grid-template-columns: 1fr; }
    .nxb-banner--showcase .nxb-banner__screens { min-height: clamp(16rem,62vw,28rem); }
}
