/* "Modern Classic" hero for the Hebrew homepage (Controls/Content/HomeHeroClassic.ascx).
   Loaded only for the local ?hero=classic variant; every rule is scoped to body.bw-home-classic-variant,
   so the default homepage (variant A) never sees these styles. Palette and type come from css/home-premium.css. */

/* ---------- Composition (desktop) ----------
   One set of variables drives the whole hero, so the panel, the copy, the device group and the pager always
   agree with each other. It is the geometry of the original .box-custom-2-bg (a big rounded rectangle rotated
   by 12deg, 18.5deg on wide screens), described by what matters on screen:
     --bwc-mid  x of the slanted edge at half the hero height (the panel's width in the middle)
     --bwc-a    rotation of the panel, i.e. the lean of the edge
     --bwc-r    radius of the rounded top corner
     --bwc-t0   how far below the hero top the corner's rounded start sits
   Edge position at height y (straight part): X(y) = --bwc-mid - tan(--bwc-a) * (y - 50% of the hero height).
   The hero is a size container, so cqw / cqh below are the hero's own width and height. */
   body.bw-home-classic-variant .bwc-hero {
    --bwc-head: 81px;
    --bwc-foot: 108px;
    --bwc-slide-time: 6.5s;
    --bwc-a: 12deg;
    --bwc-mid: clamp(520px, 44.5cqw, 900px);
    --bwc-r: clamp(48px, 2.4cqw, 104px);
    --bwc-t0: 14px;
    --bwc-gw: clamp(440px, 56cqw, 1080px);
    --bwc-gap: clamp(16px, 2.1cqw, 40px);
    --bwc-gh: calc(100cqh - var(--bwc-head) - 12px - var(--bwc-foot));
    /* the shape's top right vertex (before the corner is rounded) */
    --bwc-vx: calc(var(--bwc-mid) + tan(var(--bwc-a)) * (50cqh - var(--bwc-t0)) - var(--bwc-r) * sin(var(--bwc-a)) * tan(var(--bwc-a)));
    --bwc-vy: calc(var(--bwc-r) * sin(var(--bwc-a)) + var(--bwc-t0));
    position: relative;
    height: clamp(720px, 92vh, 1000px);
    overflow: hidden;
    container-type: size;
    font-family: Assistant, sans-serif;
    letter-spacing: 0;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fd 62%, #e7f2ff 100%);
}


/* ---------- Video panel with the copy (the original slanted .box-custom-2) ---------- */

body.bw-home-classic-variant .bwc-copy,
body.bw-home-classic-variant .bwc-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

body.bw-home-classic-variant .bwc-copy {
    z-index: 1;
}

/* The panel is a large rectangle with one rounded corner, rotated about its top right vertex like the original;
   everything inside it is rotated back, so the video and the tint stay upright. */
body.bw-home-classic-variant .bwc-shape {
    position: absolute;
    top: var(--bwc-vy);
    right: calc(100cqw - var(--bwc-vx));
    width: 140cqw;
    height: 190cqh;
    overflow: hidden;
    border-top-right-radius: var(--bwc-r);
    transform-origin: 100% 0;
    transform: rotate(var(--bwc-a));
    animation: bwcReveal 1.3s var(--bw-ease) both;
}

body.bw-home-classic-variant .bwc-shape-fill {
    position: absolute;
    top: calc(-1 * var(--bwc-vy));
    right: 0;
    width: var(--bwc-vx);
    height: 100cqh;
    transform-origin: 100% var(--bwc-vy);
    transform: rotate(calc(-1 * var(--bwc-a)));
}

body.bw-home-classic-variant .bwc-panel-media,
body.bw-home-classic-variant .bwc-panel-tint {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

body.bw-home-classic-variant .bwc-panel-media {
    overflow: hidden;
    background-color: #2b4f74;
    background-position: 50% 40%;
    background-size: cover;
}

/* The source clip is tinted green and orange; greyscale lets the brand overlay set the colour */
body.bw-home-classic-variant .bwc-panel-media,
body.bw-home-classic-variant .bwc-video {
    filter: grayscale(1) contrast(1.08);
}

body.bw-home-classic-variant .bwc-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

body.bw-home-classic-variant .bwc-hero.bwc-video-on .bwc-video {
    opacity: 1;
}

body.bw-home-classic-variant .bwc-panel-tint {
    background:
        radial-gradient(52% 40% at 46% 54%, rgba(28, 43, 65, .3) 0%, rgba(28, 43, 65, 0) 100%),
        linear-gradient(205deg, rgba(11, 106, 161, .74) 0%, rgba(43, 79, 116, .82) 48%, rgba(28, 43, 65, .9) 100%);
}

/* The copy is centred in the part of the panel below the floating header: its box is as wide as the panel at the
   middle of that area, so the text keeps clear of the slant at every height */
body.bw-home-classic-variant .bwc-copy-inner {
    position: absolute;
    top: var(--bwc-head);
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(var(--bwc-mid) - tan(var(--bwc-a)) * var(--bwc-head) / 2);
    padding: 24px clamp(28px, 3.2vw, 64px) 40px;
    text-align: center;
    pointer-events: auto;
}

body.bw-home-classic-variant .bwc-title {
    margin: 0;
    color: #fff;
    font-family: Assistant, sans-serif;
    font-size: clamp(50px, 4.0vw, 82px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.55px;
    text-shadow: 0 2px 24px rgba(28, 43, 65, .25);
}

body.bw-home-classic-variant .bwc-line {
    display: block;
    animation: bwRise 1s .45s var(--bw-ease) both;
}

body.bw-home-classic-variant .bwc-accent {
    color: var(--bw-blue-300);
    animation-delay: .57s;
}

body.bw-home-classic-variant .bwc-sub {
    max-width: 22em;
    margin: clamp(20px, 1.8vw, 30px) auto clamp(30px, 2.6vw, 44px);
    color: rgba(255, 255, 255, .9);
    font-size: clamp(19px, 1.45vw, 24px);
    line-height: 1.6;
    text-wrap: balance;
    animation: bwRise 1s .69s var(--bw-ease) both;
}

body.bw-home-classic-variant .bwc-actions {
    display: flex;
    justify-content: center;
    animation: bwRise 1s .81s var(--bw-ease) both;
}

/* ---------- Product slider: the original three Hebrew slides ---------- */

/* Right-hand area, below the header: from the slant (at about 80% of the hero height, where the pager sits) to
   the page edge. It positions the pager; the device group is placed against the slant and may run past the
   right edge: the hero clips it, so the page itself never scrolls sideways. */
body.bw-home-classic-variant .bwc-showcase {
    --bwc-sl: calc(var(--bwc-mid) - tan(var(--bwc-a)) * 30cqh + 1.2cqw);
    position: absolute;
    top: var(--bwc-head);
    right: 1.5cqw;
    bottom: 0;
    left: var(--bwc-sl);
    z-index: 2;
    animation: bwSceneIn 1.2s .35s var(--bw-ease) both;
}

body.bw-home-classic-variant .bwc-stage {
    position: absolute;
    top: 12px;
    right: 0;
    bottom: var(--bwc-foot);
    left: 0;
}

body.bw-home-classic-variant .bwc-slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    visibility: hidden;
    transition: visibility 0s .9s;
}

body.bw-home-classic-variant .bwc-slide.is-active {
    visibility: visible;
    transition-delay: 0s;
}

/* Each slide is one composition with the proportions of the original layer layout. Its width follows the hero
   width (not the free space), limited by the stage height; its left side sits a fixed gap from the slant, measured
   8% of its height below its top edge (the top left corner of every group is empty frame margin or a rounded card),
   so the lower left stays close to the slant too. */
body.bw-home-classic-variant .bwc-group {
    --gw: min(var(--bwc-gw) * var(--gs, 1), var(--bwc-gh) * var(--ratio));
    --gl: calc(var(--bwc-mid) - tan(var(--bwc-a)) * (var(--bwc-head) + 12px + var(--bwc-gh) / 2 - 0.42 * var(--gw) / var(--ratio) - 50cqh) + var(--bwc-gap));
    position: absolute;
    top: 50%;
    left: calc(var(--gl) - var(--bwc-sl));
    width: var(--gw);
    aspect-ratio: var(--ratio);
    transform: translateY(-50%);
}

/* The values group is nearly square, so at the same width it would be much taller (and run further off the edge)
   than the device groups: it gets a smaller share of the width, which keeps its labels in view */
body.bw-home-classic-variant .bwc-group--values { --ratio: 1.3289; --gs: .88; }
body.bw-home-classic-variant .bwc-group--lms { --ratio: 1.7393; }
body.bw-home-classic-variant .bwc-group--dev { --ratio: 1.5674; }

/* Layers enter like the original slides (from the side, screens zoom in), but shorter and softer.
   The outgoing slide is gone within .4s and the incoming one starts at .35s, so the two never pile up. */
body.bw-home-classic-variant .bwc-item {
    position: absolute;
    opacity: 0;
    transform: translate3d(var(--fx, 0), var(--fy, 26px), 0) rotate(var(--fr, 0deg)) scale(var(--fs, .97));
    transition: opacity .4s ease, transform .7s var(--bw-ease);
}

body.bw-home-classic-variant .bwc-slide.is-active .bwc-item {
    opacity: 1;
    transform: none;
    transition: opacity .8s ease, transform 1.2s var(--bw-ease);
    transition-delay: calc(var(--d, 0s) + .35s);
}

/* Slide 1: brand values cards (original positions: Passion left, Integrity right, Innovation in front) */
body.bw-home-classic-variant .bwc-value img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 22px 26px rgba(28, 43, 65, .22));
}

body.bw-home-classic-variant .bwc-value--passion {
    top: 0;
    left: 0;
    width: 46.52%;
    --fx: -40px;
    --fy: -30px;
    --fr: -14deg;
    --d: .1s;
}

body.bw-home-classic-variant .bwc-value--innovation {
    top: 23.97%;
    left: 15.8%;
    width: 57.46%;
    --fy: 60px;
    --fr: 8deg;
    --d: .34s;
}

body.bw-home-classic-variant .bwc-value--integrity {
    top: 3.31%;
    left: 53.86%;
    width: 46.14%;
    --fx: 40px;
    --fy: -20px;
    --fr: 14deg;
    --d: .22s;
}

/* Devices: the original frame PNGs. Screens sit where the original slides placed them; the white frames have a
   transparent screen opening and are drawn over the screenshot, the dark-screen frames get the screenshot on top. */
body.bw-home-classic-variant .bwc-device {
    filter: drop-shadow(0 26px 30px rgba(28, 43, 65, .16));
}

body.bw-home-classic-variant .bwc-frame {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

body.bw-home-classic-variant .bwc-screen {
    position: absolute;
    overflow: hidden;
    background: #fff;
}

body.bw-home-classic-variant .bwc-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
    transform: scale(1.08);
    transform-origin: 50% 0;
    transition: transform 1.4s var(--bw-ease);
}

body.bw-home-classic-variant .bwc-slide.is-active .bwc-screen img {
    transform: none;
    transition-delay: calc(var(--d, 0s) + .65s);
}

/* Slide 2 (LMS): mac-frame-1 laptop, iphone-frame-2 phone over its left side */
body.bw-home-classic-variant .bwc-device--laptop-lms {
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1100 / 620;
    --fx: 70px;
    --fy: 0;
    --d: .05s;
}

body.bw-home-classic-variant .bwc-device--laptop-lms .bwc-screen {
    top: 6.13%;
    left: 13.71%;
    width: 72.88%;
    height: 81.61%;
}

body.bw-home-classic-variant .bwc-device--phone-lms {
    top: 13.72%;
    left: 2.37%;
    width: 24.65%;
    aspect-ratio: 238 / 480;
    --fx: 70px;
    --fy: 0;
    --d: .45s;
}

body.bw-home-classic-variant .bwc-device--phone-lms .bwc-screen {
    top: 2.98%;
    left: 6.4%;
    width: 88.4%;
    height: 94.63%;
    border-radius: 9% / 4.4%;
}

/* Slide 3 (software development): MacBook, iPad and iPhone, as in the original */
body.bw-home-classic-variant .bwc-device--laptop-dev {
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1000 / 600;
    --fx: 70px;
    --fy: 0;
    --d: .05s;
}

body.bw-home-classic-variant .bwc-device--laptop-dev .bwc-screen {
    top: 13.67%;
    left: 17.3%;
    width: 65.4%;
    height: 68%;
}

body.bw-home-classic-variant .bwc-device--tablet-dev {
    top: 13.01%;
    left: 6.9%;
    width: 43%;
    aspect-ratio: 430 / 540;
    --fx: 70px;
    --fy: 0;
    --d: .35s;
}

body.bw-home-classic-variant .bwc-device--tablet-dev .bwc-screen {
    top: 16.48%;
    left: 16.28%;
    width: 67.21%;
    height: 68.89%;
}

body.bw-home-classic-variant .bwc-device--phone-dev {
    top: 29.47%;
    left: .6%;
    width: 26%;
    aspect-ratio: 260 / 450;
    --fx: 70px;
    --fy: 0;
    --d: .55s;
}

body.bw-home-classic-variant .bwc-device--phone-dev .bwc-screen {
    top: 18.22%;
    left: 17.31%;
    width: 65.38%;
    height: 63.78%;
}

/* ---------- Caption (the original slide titles) and pager: fixed spot, centred under the slider ---------- */

body.bw-home-classic-variant .bwc-showcase-foot {
    position: absolute;
    right: 0;
    bottom: 22px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

body.bw-home-classic-variant .bwc-caption {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--bw-ink);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    transition: opacity .35s ease, transform .35s ease;
}

body.bw-home-classic-variant .bwc-caption::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bw-green);
    box-shadow: 0 0 0 4px rgba(88, 200, 126, .18);
}

body.bw-home-classic-variant .bwc-caption.is-changing {
    opacity: 0;
    transform: translateY(6px);
}

body.bw-home-classic-variant .bwc-pager {
    display: flex;
    align-items: center;
    gap: 2px;
}

body.bw-home-classic-variant .bwc-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 36px;
    padding: 0 6px;
    background: none;
    border: 0;
    cursor: pointer;
}

body.bw-home-classic-variant .bwc-dot-bar {
    position: relative;
    display: block;
    width: 28px;
    height: 4px;
    overflow: hidden;
    background: rgba(28, 43, 65, .14);
    border-radius: 4px;
    transition: width .45s var(--bw-ease), background-color .3s ease;
}

body.bw-home-classic-variant .bwc-dot:hover .bwc-dot-bar {
    background: rgba(11, 106, 161, .32);
}

body.bw-home-classic-variant .bwc-dot.is-active .bwc-dot-bar {
    width: 56px;
    background: rgba(11, 106, 161, .2);
}

body.bw-home-classic-variant .bwc-dot-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--bw-blue);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: 100% 50%;
}

body.bw-home-classic-variant .bwc-dot.is-active .bwc-dot-bar::after {
    transform: scaleX(1);
}

body.bw-home-classic-variant .bwc-showcase.is-auto .bwc-dot.is-active .bwc-dot-bar::after {
    animation: bwcProgress var(--bwc-slide-time) linear both;
}

body.bw-home-classic-variant .bwc-showcase.is-paused .bwc-dot.is-active .bwc-dot-bar::after {
    animation-play-state: paused;
}

body.bw-home-classic-variant .bwc-dot:focus-visible {
    outline: 3px solid var(--bw-green);
    outline-offset: -2px;
    border-radius: 8px;
}

/* ---------- Header: see-through over the hero, logo on the panel, menu over the light side ---------- */

@media (min-width: 992px) {
    /* Same spacing in both header states, so nothing shifts when the bar turns white */
    body.bw-home-premium.bw-home-classic-variant .rd-navbar.rd-navbar-static .rd-navbar-nav > li + li {
        margin-right: 22px;
    }

    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) {
        background: transparent;
        border-bottom-color: transparent;
        box-shadow: none;
    }

    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static .rd-navbar-nav > .rd-nav-item > .rd-nav-link,
    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static .rd-navbar-nav > .rd-nav-item > .rd-nav-link .fa,
    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static .rd-navbar-nav > .rd-nav-item > .rd-navbar-submenu-toggle {
        transition: color .35s ease, background-color .35s ease, box-shadow .35s ease;
    }

    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item > .rd-nav-link {
        color: var(--bw-ink);
    }

    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item > .rd-nav-link:hover,
    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.focus > .rd-nav-link,
    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.opened > .rd-nav-link {
        color: var(--bw-blue);
    }

    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item > .rd-nav-link .fa,
    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item > .rd-navbar-submenu-toggle {
        color: var(--bw-muted);
    }

    /* Items that end up over the video panel (js/home-classic.js sets the classes) */
    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.bwc-on-panel > .rd-nav-link {
        color: rgba(255, 255, 255, .92);
    }

    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.bwc-on-panel > .rd-nav-link:hover,
    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.bwc-on-panel.focus > .rd-nav-link,
    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.bwc-on-panel.opened > .rd-nav-link {
        color: #fff;
    }

    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.bwc-on-panel > .rd-nav-link .fa,
    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.bwc-on-panel > .rd-navbar-submenu-toggle {
        color: rgba(255, 255, 255, .72);
    }

    /* An item crossing the slanted edge has no backing: the text itself is painted half white, half dark, split along
       the edge (a hard-stop gradient clipped to the glyphs). js/home-classic.js sets, per element, the gradient angle
       (--bwc-ang, the lean of the edge there) and the split (--bwc-p, measured from the element's centre), so a menu
       word, the share icon and a chevron each switch colour exactly where the panel ends. */
    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.bwc-on-split > .rd-nav-link,
    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.bwc-on-split > .rd-navbar-submenu-toggle {
        --bwc-lt: rgba(255, 255, 255, .92);
        --bwc-dk: var(--bw-ink);
        background-image: linear-gradient(var(--bwc-ang, 102deg), var(--bwc-lt) calc(var(--bwc-p, 50%) - 1px), var(--bwc-dk) calc(var(--bwc-p, 50%) + 1px));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.bwc-on-split > .rd-nav-link .fa {
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.bwc-on-split > .rd-navbar-submenu-toggle {
        --bwc-dk: var(--bw-muted);
    }

    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.bwc-on-split > .rd-nav-link:hover,
    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.bwc-on-split.focus > .rd-nav-link,
    body.bw-home-premium.bw-home-classic-variant .rd-navbar-static:not(.rd-navbar--is-stuck):not(.rd-navbar--is-clone) .rd-navbar-nav > .rd-nav-item.bwc-on-split.opened > .rd-nav-link {
        --bwc-lt: #fff;
        --bwc-dk: var(--bw-blue);
    }

    /* Logos cross-fade instead of swapping: white over the panel, the regular logo once the bar is white */
    body.bw-home-premium.bw-home-classic-variant .rd-navbar.rd-navbar-static.rd-navbar-original .brand {
        position: relative;
        display: block;
    }

    body.bw-home-premium.bw-home-classic-variant .rd-navbar.rd-navbar-static.rd-navbar-original .brand .brand-logo-dark,
    body.bw-home-premium.bw-home-classic-variant .rd-navbar.rd-navbar-static.rd-navbar-original .brand .brand-logo-light {
        display: block;
        transition: opacity .35s ease;
    }

    body.bw-home-premium.bw-home-classic-variant .rd-navbar.rd-navbar-static.rd-navbar-original .brand .brand-logo-light {
        position: absolute;
        top: 0;
        left: 0;
    }

    body.bw-home-premium.bw-home-classic-variant .rd-navbar.rd-navbar-static.rd-navbar-original:not(.rd-navbar--is-stuck) .brand .brand-logo-dark,
    body.bw-home-premium.bw-home-classic-variant .rd-navbar.rd-navbar-static.rd-navbar-original.rd-navbar--is-stuck .brand .brand-logo-light {
        opacity: 0;
    }
}

@media (min-width: 992px) and (max-width: 1439px) {
    body.bw-home-premium.bw-home-classic-variant .rd-navbar.rd-navbar-static .rd-navbar-nav > li + li {
        margin-right: 18px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    body.bw-home-premium.bw-home-classic-variant .rd-navbar.rd-navbar-static .rd-navbar-nav > li + li {
        margin-right: 13px;
    }
}

/* ---------- Next section: the logo strip starts with a hairline under the light half of the hero ---------- */

body.bw-home-classic-variant .bw-home-clients-premium {
    border-top: 1px solid #e1ebf6;
}

/* ---------- Keyframes ---------- */

/* The panel is revealed from its left edge to the slant (the original used a clipInRight reveal). The window is in
   the shape's own rotated frame: the visible part of the 140cqw wide shape is its right 55-60%. */
@keyframes bwcReveal {
    from { clip-path: inset(0 60cqw 0 80cqw); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes bwcProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes bwcFade {
    from { opacity: 0; }
}

/* ---------- Responsive ---------- */

/* Narrow desktop / landscape tablet: a little more panel, a slightly smaller group */
@media (min-width: 992px) and (max-width: 1199px) {
    body.bw-home-classic-variant .bwc-hero {
        --bwc-mid: 50cqw;
        --bwc-gw: 54cqw;
        --bwc-foot: 100px;
        height: clamp(680px, 88vh, 760px);
    }

    body.bw-home-classic-variant .bwc-caption {
        font-size: 16px;
    }
}

/* Wide desktop: the original leans the panel further (18.5deg) from 1740px; the group stops growing, so more of
   it stays in view instead of running past the edge */
@media (min-width: 1740px) {
    body.bw-home-classic-variant .bwc-hero {
        --bwc-a: 15deg;
        --bwc-mid: clamp(520px, 47cqw, 920px);
        --bwc-gw: clamp(440px, 52cqw, 1060px);
    }
}

/* Tablets and phones: video panel with the copy on top (slanted bottom edge), slider underneath */
@media (max-width: 991px) {
    body.bw-home-classic-variant .bwc-hero {
        --bwc-cut: 56px;
        height: auto;
        container-type: normal;
    }

    body.bw-home-classic-variant .bwc-copy {
        position: relative;
        padding: 128px 24px calc(var(--bwc-cut) + 64px);
        pointer-events: auto;
    }

    body.bw-home-classic-variant .bwc-shape {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        height: auto;
        border-radius: 0;
        transform: none;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--bwc-cut)), 0 100%);
        animation: bwcFade 1.3s var(--bw-ease) both;
    }

    body.bw-home-classic-variant .bwc-shape-fill {
        top: 0;
        left: 0;
        width: auto;
        height: auto;
        transform: none;
        bottom: 0;
    }

    body.bw-home-classic-variant .bwc-copy-inner {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        display: block;
        width: auto;
        max-width: 640px;
        margin: 0 auto;
        padding: 0;
    }

    body.bw-home-classic-variant .bwc-title {
        font-size: 56px;
    }

    body.bw-home-classic-variant .bwc-sub {
        font-size: 20px;
    }

    body.bw-home-classic-variant .bwc-showcase {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        max-width: 680px;
        margin: -8px auto 0;
        padding: 0 24px 48px;
    }

    body.bw-home-classic-variant .bwc-stage {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        aspect-ratio: 4 / 3;
        container-type: size;
    }

    body.bw-home-classic-variant .bwc-group {
        left: 50%;
        width: min(100cqw, 100cqh * var(--ratio), 980px);
        transform: translate(-50%, -50%);
    }

    body.bw-home-classic-variant .bwc-showcase-foot {
        position: static;
        margin-top: 8px;
    }
}

@media (max-width: 767px) {
    body.bw-home-classic-variant .bwc-hero {
        --bwc-cut: 40px;
    }

    body.bw-home-classic-variant .bwc-copy {
        padding: 104px 20px calc(var(--bwc-cut) + 52px);
    }

    body.bw-home-classic-variant .bwc-title {
        font-size: 44px;
        line-height: 1.1;
    }

    body.bw-home-classic-variant .bwc-sub {
        max-width: 340px;
        margin: 20px auto 30px;
        font-size: 18.5px;
    }

    body.bw-home-classic-variant .bwc-showcase {
        padding: 0 14px 40px;
    }

    body.bw-home-classic-variant .bwc-caption {
        font-size: 16.5px;
        text-align: center;
    }
}

@media (max-width: 420px) {
    body.bw-home-classic-variant .bwc-title {
        font-size: 38px;
    }
}
.bw-home-premium .bw-home-industries-premium {
   
    background: none;
    box-shadow: none;

}
.bw-home-premium .bw-home-systems-premium {
    background: linear-gradient(180deg, var(--bw-sky) 0%, #f3f8ff 100%);
}

.bw-home-premium .bw-home-sys-visual {
    align-items: flex-end;
    height: 180px;
    background: none;
}

.bw-home-premium .bw-home-sys-body{
    text-align: center;

}

.bw-home-sys-logo{
    margin:0 auto;
}

.bw-home-premium .bw-home-sys-cta{
margin-right:auto;
margin-left:auto;
}
.bw-home-premium .bw-home-lead{
    /* max-width: 490px; */
}

.bw-home-premium .bw-home-whybw-icon{
    width: 116px;
    height: 116px;
}
.bw-home-premium .bw-home-whybw-icon svg {
    width: 62px;
    height: 62px;
}