/* Briskwhale system pages: page-specific styles only, on top of css/rebrand-inner-shared.css.
   1. Hero (Controls/Content/SystemHeroPremium.ascx, scenes from RebrandSystemDesign.HeroScene)
   2b. Bwize intro product picture.  7. Hero scenes of Bops, Bspace, Bfinance, BriskLab.
   Scoped to body.bw-system-page; the shared components (intro text, features, testimonials, FAQ, contact) live in
   css/rebrand-inner-shared.css. */

/* ---------- 1. Hero (Controls/Content/SystemHeroPremium.ascx) ---------- */

/* The homepage hero's deep navy gradient, with a soft light behind the scene */
body.bw-system-page .bw-sys-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 760px;
    padding: 150px 0 100px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(700px 520px at 26% 50%, rgba(65, 120, 190, .3), transparent 65%),
        radial-gradient(70% 90% at 45% 40%, #2b4f74 0%, #22394f 55%, #1c2b41 100%);
}

body.bw-system-page .bw-sys-hero-bg,
body.bw-system-page .bw-sys-hero-bg > * {
    position: absolute;
    pointer-events: none;
}

body.bw-system-page .bw-sys-hero-bg {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Two slow sweeping bands of lines with a light running along them */
body.bw-system-page .bw-sys-hero-lines {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: bwNetDriftA 20s ease-in-out infinite alternate;
}

body.bw-system-page .bw-sys-hero-lines path {
    fill: none;
    stroke: rgba(255, 255, 255, .13);
    stroke-width: 1.2;
}

body.bw-system-page .bw-sys-hero-lines .sh-faint {
    opacity: .55;
}

body.bw-system-page .bw-sys-hero-lines .sh-flow {
    stroke: rgba(214, 235, 252, .85);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 6 100;
    stroke-dashoffset: 8;
    animation: bwStreamPulse 10s cubic-bezier(.45, .05, .55, .95) infinite;
}

body.bw-system-page .bw-sys-hero-lines .sh-d2 {
    animation-delay: 5s;
}

body.bw-system-page .bw-sys-hero-glow {
    border-radius: 50%;
    filter: blur(80px);
    animation: bwDrift 22s ease-in-out infinite alternate;
}

body.bw-system-page .bw-sys-hero-glow--a {
    top: 14%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: rgba(111, 160, 220, .22);
}

body.bw-system-page .bw-sys-hero-glow--b {
    right: 34%;
    bottom: -18%;
    width: 340px;
    height: 340px;
    background: var(--sys-light);
    opacity: .08;
    animation-duration: 28s;
}

body.bw-system-page .bw-sys-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 48px;
}

body.bw-system-page .bw-sys-hero-copy {
    text-align: right;
}

body.bw-system-page .bw-sys-hero-logo {
    margin-bottom: 28px;
    line-height: 1;
    animation: bwRise 1s var(--bw-ease) both;
}

body.bw-system-page .bw-sys-hero-logo img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: 46px;
}

/* Bspace and Bfinance (RebrandInnerPage.HeroLogoInFrame): the light logo of the brand files (coloured B, white
   wordmark; StaticFiles/Projects/rebrand/{system}-logo-light-trim.png) straight on the navy, no plate. The box keeps
   the logo size and the vertical space of the former plate (13px above and below the logo), so the logo and the
   headline stay where they were; the logo lines up with the text edge like the other systems. */
body.bw-system-page .bw-sys-hero-frame {
    display: inline-flex;
    align-items: center;
    padding: 13px 0;
}

body.bw-system-page .bw-sys-hero-frame img {
    height: 40px;
}

/* Bspace has a descender (p): the same B height as Bfinance */
body.bw-system-page.bw-page--bspace .bw-sys-hero-frame img {
    height: 48px;
    margin-bottom: -8px;
}

body.bw-system-page .bw-sys-hero-title {
    margin: 0;
    color: #fff;
    font-family: Assistant, sans-serif;
    font-size: 62px;
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: 0;
    text-wrap: balance;
    animation: bwRise 1s .1s var(--bw-ease) both;
}

/* One accent phrase in the headline: the light blue of the design system (--bw-blue-300), no other effects */
body.bw-system-page .bw-sys-hero-accent {
    color: var(--bw-blue-300);
    white-space: nowrap;
}

/* Desktop: the logo sits centred over the headline block (the headline wraps to two near-equal lines, 7.2em wide).
   Below 992px the whole copy column is already centred. */
@media (min-width: 992px) {
    body.bw-system-page .bw-sys-hero-title {
        max-width: 7.2em;
    }

    body.bw-system-page .bw-sys-hero-logo {
        width: 446px;
        max-width: 100%;
        /* text-align: center; */
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    body.bw-system-page .bw-sys-hero-logo {
        width: 374px;
    }
}

body.bw-system-page .bw-sys-hero-sub {
    max-width: 600px;
    margin: 26px 0 40px;
    color: rgba(255, 255, 255, .88);
    font-size: 20px;
    line-height: 1.7;
    text-wrap: pretty;
    animation: bwRise 1s .2s var(--bw-ease) both;
}

body.bw-system-page .bw-sys-hero-sub p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: 0;
}

body.bw-system-page .bw-sys-hero-actions {
    display: flex;
    animation: bwRise 1s .3s var(--bw-ease) both;
}

body.bw-system-page .bw-sys-hero-stage {
    position: relative;
    width: 100%;
    max-width: 600px;
    justify-self: end;
    animation: bwSceneIn 1.2s .2s var(--bw-ease) both;
}

/* Scene (RebrandSystemDesign.HeroScene): the system emblem on a large glass panel, linked to floating glass chips */
body.bw-system-page .bw-sys-scene {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

body.bw-system-page .bw-sys-scene .sc-links path {
    fill: none;
    stroke: rgba(255, 255, 255, .34);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-dasharray: 2 6;
    animation: bwFlow 2.8s linear infinite;
}

body.bw-system-page .bw-sys-scene .sc-links .sc-faint {
    opacity: .5;
}

body.bw-system-page .bw-sys-scene .sc-pulses path {
    fill: none;
    stroke: #e6f2fd;
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-dasharray: 6 100;
    stroke-dashoffset: 8;
    animation: bwStreamPulse 5.6s cubic-bezier(.45, .05, .55, .95) infinite;
}

body.bw-system-page .bw-sys-scene .sc-pulses .sc-accent {
    stroke: var(--sys-light);
}

body.bw-system-page .bw-sys-scene .sc-pulses .sc-d2 { animation-delay: 1.4s; }
body.bw-system-page .bw-sys-scene .sc-pulses .sc-d3 { animation-delay: 2.8s; }
body.bw-system-page .bw-sys-scene .sc-pulses .sc-d4 { animation-delay: 4.2s; }

body.bw-system-page .bw-sys-scene .sc-dot {
    fill: rgba(255, 255, 255, .65);
}

body.bw-system-page .bw-sys-scene .sc-tw {
    animation: bwTwinkle 3.6s ease-in-out infinite;
}

body.bw-system-page .bw-sys-scene .sc-tw.sc-d2 { animation-delay: .9s; }
body.bw-system-page .bw-sys-scene .sc-tw.sc-d3 { animation-delay: 1.8s; }
body.bw-system-page .bw-sys-scene .sc-tw.sc-d4 { animation-delay: 2.7s; }

body.bw-system-page .bw-sys-scene .sc-shadow {
    fill: rgba(8, 18, 34, .3);
    transform-box: fill-box;
    transform-origin: center;
    animation: bwSysShadow 7s ease-in-out infinite;
}

body.bw-system-page .bw-sys-scene .sc-panel {
    animation: bwSysFloat 7s ease-in-out infinite;
}

/* Glass, as the chips and the homepage hero tiles: a light veil over the navy, a fine bright edge */
body.bw-system-page .bw-sys-scene .sc-panel-box {
    fill: rgba(255, 255, 255, .1);
    stroke: rgba(255, 255, 255, .34);
    stroke-width: 1.4;
    filter: drop-shadow(0 30px 40px rgba(6, 16, 30, .38));
}

body.bw-system-page .bw-sys-scene .sc-panel .sc-chip-shine {
    stroke: rgba(255, 255, 255, .75);
    stroke-width: 1.6;
}

body.bw-system-page .bw-sys-scene .sc-panel .bw-home-emblem {
    color: #fff;
}

body.bw-system-page .bw-sys-scene .sc-panel .bw-home-emblem .e-soft {
    opacity: .1;
}

body.bw-system-page .bw-sys-scene .sc-panel .bw-home-emblem .e-thin {
    opacity: .55;
}

body.bw-system-page .bw-sys-scene .sc-panel .bw-home-emblem .e-fill {
    fill: var(--sys-light);
}

body.bw-system-page .bw-sys-scene .sc-chip {
    animation: bwBob 6.4s ease-in-out infinite;
}

body.bw-system-page .bw-sys-scene .sc-chip.sc-d2 { animation-delay: -1.6s; }
body.bw-system-page .bw-sys-scene .sc-chip.sc-d3 { animation-delay: -3.2s; }
body.bw-system-page .bw-sys-scene .sc-chip.sc-d4 { animation-delay: -4.8s; }

body.bw-system-page .bw-sys-scene .sc-chip-box {
    fill: rgba(255, 255, 255, .13);
    stroke: rgba(255, 255, 255, .36);
    stroke-width: 1.2;
}

body.bw-system-page .bw-sys-scene .sc-chip-shine {
    fill: none;
    stroke: rgba(255, 255, 255, .7);
    stroke-width: 1.4;
    stroke-linecap: round;
}

body.bw-system-page .bw-sys-scene .sc-g {
    fill: none;
    stroke: #fff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.bw-system-page .bw-sys-scene .sc-g--faint { opacity: .55; }
body.bw-system-page .bw-sys-scene .sc-g--bold { stroke-width: 4; }
body.bw-system-page .bw-sys-scene .sc-g--glass { fill: rgba(156, 202, 240, .24); }

body.bw-system-page .bw-sys-scene .sc-g-fill {
    fill: var(--sys-light);
}

body.bw-system-page .bw-sys-scene .sc-scan {
    animation: bwSysLens 4.6s ease-in-out infinite;
}

body.bw-system-page .bw-sys-scene .sc-track {
    fill: rgba(255, 255, 255, .2);
}

body.bw-system-page .bw-sys-scene .sc-fill {
    fill: var(--sys-light);
    transform-box: fill-box;
    transform-origin: right center;
    animation: bwSysFill 6s var(--bw-ease) infinite;
}

body.bw-system-page .bw-sys-scene .sc-ok {
    fill: var(--sys);
}

body.bw-system-page .bw-sys-scene .sc-tick {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16;
    stroke-dashoffset: 16;
    animation: bwSysTick 6s ease infinite;
}

/* ---------- Hero: responsive ---------- */

@media (max-width: 1199px) {
    body.bw-system-page .bw-sys-hero {
        min-height: 0;
        padding: 140px 0 90px;
    }

    body.bw-system-page .bw-sys-hero-title {
        font-size: 52px;
    }

    body.bw-system-page .bw-sys-hero-sub {
        font-size: 19px;
    }
}

@media (max-width: 991px) {
    body.bw-system-page .bw-sys-hero {
        padding: 120px 0 72px;
    }

    body.bw-system-page .bw-sys-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    body.bw-system-page .bw-sys-hero-copy {
        width: 100%;
        max-width: 680px;
        justify-self: center;
        text-align: center;
    }

    body.bw-system-page .bw-sys-hero-sub {
        margin-right: auto;
        margin-left: auto;
    }

    body.bw-system-page .bw-sys-hero-actions {
        justify-content: center;
    }

    body.bw-system-page .bw-sys-hero-stage {
        max-width: 520px;
        justify-self: center;
    }
}

@media (max-width: 767px) {
    body.bw-system-page .bw-sys-hero {
        padding: 96px 0 56px;
    }

    body.bw-system-page .bw-sys-hero-logo {
        margin-bottom: 20px;
    }

    body.bw-system-page .bw-sys-hero-logo img {
        height: 38px;
    }

    body.bw-system-page .bw-sys-hero-frame {
        padding: 11px 0;
    }

    body.bw-system-page .bw-sys-hero-frame img {
        height: 32px;
    }

    body.bw-system-page.bw-page--bspace .bw-sys-hero-frame img {
        height: 39px;
        margin-bottom: -7px;
    }

    body.bw-system-page .bw-sys-hero-title {
        font-size: 40px;
        line-height: 1.15;
    }

    body.bw-system-page .bw-sys-hero-sub {
        margin: 18px auto 28px;
        font-size: 18px;
        line-height: 1.65;
    }

    body.bw-system-page .bw-sys-hero-stage {
        max-width: 360px;
    }
}

@media (max-width: 420px) {
    body.bw-system-page .bw-sys-hero-title {
        font-size: 35px;
    }
}

/* ---------- 2b. Intro: heading accent, text accents and the product picture ----------
   Heading: the words "ידע ולמידה" in the brand blue (span.bwz-h2-accent from viewProject.aspx.cs), the same colour as
   the heading accents of the homepage Classic Review (.bwr-accent: var(--bw-blue)). The kicker is not shown.
   Text: a light body, one 600-weight key phrase (strong) and the homepage marker highlight (mark.bwz-mark, the same
   look as .bwr-mark in css/home-classic-review.css). The accents themselves are in the texts (projectContent).
   Picture: a layered product composition of three ready images (StaticFiles/rebrand/bwize-intro/, 1x and @2x PNG):
   - the dashboard (dashboard.png): the base, 90% of the stage, on the side of the text;
   - the knowledge base panel (knowledge.png): over the dashboard's top-left corner, a little outside it;
   - the learning panel (learning.png): over the dashboard's lower right part, diagonal to the first one.
   The panels cover only the top bar / KPI row and the bottom tables, so the learning progress chart and the
   department donut stay in view. Positions are % of the stage, so the layout keeps its proportions at
   every width (632:490 stage; dashboard 91% wide, top 16.33%). */
body.bw-system-page .bwz-intro-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
}

/* The stage */
body.bw-system-page .bwz-intro-ui {
    position: relative;
    justify-self: stretch;
    width: auto;
    aspect-ratio: 632 / 490;
    isolation: isolate;
}

/* Soft light behind the picture: brand green and blue, very low */
body.bw-system-page .bwz-intro-ui::before {
    content: "";
    position: absolute;
    inset: -6% -6% -8% -4%;
    z-index: -1;
    background:
        radial-gradient(closest-side at 30% 68%, rgba(79, 174, 91, .11), rgba(79, 174, 91, 0)),
        radial-gradient(closest-side at 62% 40%, rgba(11, 106, 161, .10), rgba(11, 106, 161, 0));
    pointer-events: none;
}

/* Wide screens: the picture also takes up to 72px of the free page margin on its outer (left) side, always keeping
   32px of it (the content box of the container is 1170px wide here) */
@media (min-width: 1200px) {
    body.bw-system-page .bwz-intro-ui {
        margin-left: calc(-1 * clamp(0px, (100vw - 1170px) / 2 - 32px, 72px));
    }
}

/* The dashboard: the base of the composition, no device frame */
body.bw-system-page .bwz-ui-main {
    position: absolute;
    top: 3%;
    right: 0;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(28, 43, 65, .07),
        0 3px 8px rgba(28, 43, 65, .05),
        0 40px 72px -34px rgba(28, 43, 65, .36);
}

body.bw-system-page .bwz-ui-main img {
    display: block;
    width: 100%;
    height: auto;
}

/* Floating panels. The PNG keeps a transparent margin around its card; the image is clipped just inside the card's
   own hairline border (x 5.125%, top 3.33%, bottom 3.44% of the image) with the same rounding family as the dashboard,
   and the wrapper draws a hairline ring and a soft shadow around that clipped shape (drop-shadow follows it). */
body.bw-system-page .bwz-ui-panel {
    position: absolute;
    --bwz-panel-r: 14px;
    filter:
        drop-shadow(0 0 1px rgba(28, 43, 65, .24))
        drop-shadow(0 3px 7px rgba(28, 43, 65, .07))
        drop-shadow(0 22px 30px rgba(28, 43, 65, .15));
}

body.bw-system-page .bwz-ui-panel img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    clip-path: inset(3.33% 5.125% 3.44% 5.125% round var(--bwz-panel-r));
}

/* Knowledge base: top left, card ~51% of the stage wide; its top and left edges a little outside the dashboard,
   its bottom edge just above the department donut and the progress chart */
body.bw-system-page .bwz-ui-panel--knowledge,
body.bw-system-page .bwz-ui-panel--feature {
    top: 51.41%;
    left: -8.9%;
    width: 60.4%;
    z-index: 14;
}

/* Bops, Bspace, Bfinance, BriskLab (RebrandInnerPage.IntroComposition): the same composition with their own images
   (StaticFiles/rebrand/{system}-intro/dashboard@2x.png, feature@2x.png). The panel PNGs have the same card width as
   the Bwize panel but a taller transparent margin, so the clip follows each card's measured edge (+0.22% / +0.33%,
   as for Bwize): Bops and BriskLab 7.33%, Bspace 6.44%, Bfinance 6.22% top / 6.00% bottom. */
body.bw-system-page .bwz-ui-panel--feature img {
    clip-path: inset(7.55% 5.125% 7.66% 5.125% round var(--bwz-panel-r));
}

body.bw-system-page.bw-page--bspace .bwz-ui-panel--feature img {
    clip-path: inset(6.66% 5.125% 6.77% 5.125% round var(--bwz-panel-r));
}

body.bw-system-page.bw-page--bfinance .bwz-ui-panel--feature img {
    clip-path: inset(6.44% 5.125% 6.33% 5.125% round var(--bwz-panel-r));
}

/* Learning: lower right, card ~49% of the stage wide, diagonal to the knowledge panel; it covers the lower rows of the
   dashboard (below their titles) and its bottom edge comes out under the dashboard */
body.bw-system-page .bwz-ui-panel--learning {
    display: none;
    right: 48.73%;
    bottom: -2.53%;
    width: 60%;
    z-index: 3;
}

/* Reveal (motion allowed only): the panels follow the dashboard in, one after another */
body.bw-system-page.bw-anim .bwz-intro-ui .bwz-ui-panel {
    transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}

body.bw-system-page.bw-anim .bwz-intro-ui .bwz-ui-panel--knowledge,
body.bw-system-page.bw-anim .bwz-intro-ui .bwz-ui-panel--feature { transition-delay: .3s; }
body.bw-system-page.bw-anim .bwz-intro-ui .bwz-ui-panel--learning { transition-delay: .5s; }

body.bw-system-page.bw-anim .bwz-intro-ui:not(.is-in) .bwz-ui-panel {
    opacity: 0;
    transform: translateY(18px);
}

@media (max-width: 1199px) {
    body.bw-system-page .bwz-intro-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 48px;
    }
}

@media (max-width: 991px) {
    body.bw-system-page .bwz-intro-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 52px;
    }

    body.bw-system-page .bwz-intro-ui {
        justify-self: center;
        width: min(100%, 640px);
    }
}

@media (max-width: 767px) {
    body.bw-system-page .bwz-intro-grid {
        gap: 40px;
    }

    body.bw-system-page .bwz-intro-ui {
        width: 100%;
    }

    body.bw-system-page .bwz-ui-main {
        border-radius: 12px;
        box-shadow:
            0 0 0 1px rgba(28, 43, 65, .07),
            0 2px 6px rgba(28, 43, 65, .05),
            0 24px 44px -22px rgba(28, 43, 65, .34);
    }

    body.bw-system-page .bwz-ui-panel {
        --bwz-panel-r: 10px;
        filter:
            drop-shadow(0 0 1px rgba(28, 43, 65, .24))
            drop-shadow(0 2px 5px rgba(28, 43, 65, .07))
            drop-shadow(0 14px 20px rgba(28, 43, 65, .15));
    }

    /* Phones: the panel card stays inside the screen (at -8.9% its edge would pass the left screen edge by ~6px) */
    body.bw-system-page .bwz-ui-panel--feature {
        left: -5%;
    }

}

@media (prefers-reduced-motion: reduce) {
    body.bw-system-page .bwz-intro-ui .bwz-ui-panel {
        transition: none !important;
    }
}

/* ---------- 7. Hero scenes of Bops, Bspace, Bfinance, BriskLab (Controls/Content/SystemHeroScene.ascx) ----------
   Same glass language as the Bwize scene (.sc-chip-box, .sc-g, .sc-panel above); each scene has its own idea and motion.
   Accent: the system colour (--sys-light), confirmations in the brand green. Reduced motion: final states, no movement. */

body.bw-system-page .bw-hs .hs-fill { fill: var(--sys-light); }
body.bw-system-page .bw-hs .hs-fill--green { fill: var(--bw-green); }
body.bw-system-page .bw-hs .hs-ink { fill: none; stroke: #1c2b41; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
body.bw-system-page .bw-hs .hs-done-bg { fill: var(--bw-green); }
body.bw-system-page .bw-hs .hs-done-tick { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
body.bw-system-page .bw-hs .hs-alert { fill: #ffbf5a; transform-box: fill-box; transform-origin: center; animation: bwPulse 2.4s ease-in-out infinite; }
body.bw-system-page .bw-hs .hs-badge { fill: rgba(255, 255, 255, .14); stroke: rgba(255, 255, 255, .42); stroke-width: 1.4; }

/* Bops: the route, the parcel, the stages that confirm as it passes (cycle 9s; arrivals 0, 2.25, 4.5, 6.75s) */
body.bw-system-page .bw-hs--bops .hs-track { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 12; stroke-linecap: round; }
body.bw-system-page .bw-hs--bops .hs-track-flow { fill: none; stroke: var(--sys-light); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2 8; opacity: .8; animation: bwFlow 2.4s linear infinite; }
body.bw-system-page .bw-hs--bops .hs-portal-link { fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 6; animation: bwFlow 2.8s linear infinite; }
body.bw-system-page .bw-hs--bops .hs-portal-link.hs-d2 { animation-delay: -1.4s; }
body.bw-system-page .bw-hs--bops .hs-tick-s { fill: none; stroke: var(--bw-green); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
body.bw-system-page .bw-hs--bops .hs-wave { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2; stroke-linecap: round; animation: bwHsWave 2.6s ease-in-out infinite; }
body.bw-system-page .bw-hs--bops .hs-stage .sc-chip-box { animation: bwHsStage 9s ease infinite; }
body.bw-system-page .bw-hs--bops .hs-done { opacity: 0; transform-box: fill-box; transform-origin: center; animation: bwHsDone 9s var(--bw-ease) infinite; }
body.bw-system-page .bw-hs--bops .hs-s2 .sc-chip-box, body.bw-system-page .bw-hs--bops .hs-s2 .hs-done { animation-delay: 2.25s; }
body.bw-system-page .bw-hs--bops .hs-s3 .sc-chip-box, body.bw-system-page .bw-hs--bops .hs-s3 .hs-done { animation-delay: 4.5s; }
body.bw-system-page .bw-hs--bops .hs-s4 .sc-chip-box, body.bw-system-page .bw-hs--bops .hs-s4 .hs-done { animation-delay: 6.75s; }
body.bw-system-page .bw-hs--bops .hs-parcel-glow { fill: var(--sys-light); opacity: .35; }
body.bw-system-page .bw-hs--bops .hs-parcel-box { fill: #fff; stroke: var(--sys); stroke-width: 2; }
body.bw-system-page .bw-hs--bops .hs-status-box { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .3); stroke-width: 1.2; }
body.bw-system-page .bw-hs--bops .hs-seg { fill: rgba(255, 255, 255, .18); }
body.bw-system-page .bw-hs--bops .hs-seg-on { fill: var(--sys-light); transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
body.bw-system-page .bw-hs--bops .hs-g1 { animation: bwHsSeg1 9s linear infinite; }
body.bw-system-page .bw-hs--bops .hs-g2 { animation: bwHsSeg2 9s linear infinite; }
body.bw-system-page .bw-hs--bops .hs-g3 { animation: bwHsSeg3 9s linear infinite; }
body.bw-system-page .bw-hs--bops .hs-g4 { animation: bwHsSeg4 9s linear infinite; }

/* Bspace: windows light up unit by unit, the occupancy ring fills, a contract is signed, a payment is confirmed */
body.bw-system-page .bw-hs--bspace .hs-ground { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1.6; stroke-linecap: round; }
body.bw-system-page .bw-hs--bspace .hs-bld-box { fill: rgba(255, 255, 255, .09); stroke: rgba(255, 255, 255, .34); stroke-width: 1.4; }
body.bw-system-page .bw-hs--bspace .hs-bld-box--main { fill: rgba(255, 255, 255, .13); filter: drop-shadow(0 30px 40px rgba(6, 16, 30, .35)); }
body.bw-system-page .bw-hs--bspace .hs-win { fill: rgba(255, 255, 255, .14); animation: bwHsWin 7s ease-in-out infinite; }
body.bw-system-page .bw-hs--bspace .hs-w2 { animation-delay: .5s; }
body.bw-system-page .bw-hs--bspace .hs-w3 { animation-delay: 1s; }
body.bw-system-page .bw-hs--bspace .hs-w4 { animation-delay: 1.5s; }
body.bw-system-page .bw-hs--bspace .hs-w5 { animation-delay: 2s; }
body.bw-system-page .bw-hs--bspace .hs-w6 { animation-delay: 2.5s; }
body.bw-system-page .bw-hs--bspace .hs-w7 { animation-delay: 3s; }
body.bw-system-page .bw-hs--bspace .hs-w8 { animation-delay: 3.5s; }
body.bw-system-page .bw-hs--bspace .hs-occ-track { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .2); stroke-width: 7; }
body.bw-system-page .bw-hs--bspace .hs-occ-ring { fill: none; stroke: var(--sys-light); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: bwHsOcc 7s var(--bw-ease) infinite; }
body.bw-system-page .bw-hs--bspace .hs-sign { fill: none; stroke: var(--sys-light); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: bwHsSign 7s ease infinite; }
body.bw-system-page .bw-hs .hs-stamp { transform-box: fill-box; transform-origin: center; animation: bwHsStamp 7s var(--bw-ease) infinite; }
body.bw-system-page .bw-hs--bspace .hs-pay { transform-box: fill-box; transform-origin: center; animation: bwHsPay 3.6s ease-in-out infinite; }
body.bw-system-page .bw-hs--bspace .hs-service { animation: bwBob 5.2s ease-in-out infinite; }

/* Bfinance: bars grow, the trend draws and goes on as a dashed forecast, money flows in and out (cycle 7s) */
body.bw-system-page .bw-hs--bfinance .hs-gridline { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.2; stroke-dasharray: 3 7; }
body.bw-system-page .bw-hs--bfinance .hs-axis { fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 1.6; stroke-linecap: round; }
body.bw-system-page .bw-hs--bfinance .hs-bar { fill: rgba(255, 255, 255, .24); transform-box: fill-box; transform-origin: center bottom; animation: bwHsBar 7s var(--bw-ease) infinite; }
body.bw-system-page .bw-hs--bfinance .hs-bar--accent { fill: var(--sys-light); }
body.bw-system-page .bw-hs--bfinance .hs-bar--ghost { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .4); stroke-width: 1.4; stroke-dasharray: 4 5; animation: bwHsGhost 7s ease infinite; }
body.bw-system-page .bw-hs--bfinance .hs-b2 { animation-delay: .12s; }
body.bw-system-page .bw-hs--bfinance .hs-b3 { animation-delay: .24s; }
body.bw-system-page .bw-hs--bfinance .hs-b4 { animation-delay: .36s; }
body.bw-system-page .bw-hs--bfinance .hs-b5 { animation-delay: .48s; }
body.bw-system-page .bw-hs--bfinance .hs-trend { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: bwHsTrend 7s ease infinite; }
body.bw-system-page .bw-hs--bfinance .hs-forecast { fill: none; stroke: var(--sys-light); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 7; opacity: 0; animation: bwHsForecast 7s ease infinite; }
body.bw-system-page .bw-hs--bfinance .hs-point { fill: var(--sys-light); stroke: #fff; stroke-width: 2.4; }
body.bw-system-page .bw-hs--bfinance .hs-point-ring { fill: none; stroke: var(--sys-light); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: bwRing 2.2s ease-out infinite; }
body.bw-system-page .bw-hs--bfinance .hs-lane { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 9; stroke-linecap: round; }
body.bw-system-page .bw-hs--bfinance .hs-lane-flow { fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 3 17; animation: bwFlow 1.8s linear infinite; }
body.bw-system-page .bw-hs--bfinance .hs-in { stroke: var(--bw-green); }
body.bw-system-page .bw-hs--bfinance .hs-out { stroke: var(--sys-light); }
body.bw-system-page .bw-hs--bfinance .hs-bell { transform-box: fill-box; transform-origin: center top; animation: bwHsBell 3.4s ease-in-out infinite; }
body.bw-system-page .bw-hs--bfinance .hs-up { fill: none; stroke: var(--bw-green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* BriskLab: code typed line by line, the missing module snaps in, data crosses the bridge both ways, an AI spark */
body.bw-system-page .bw-hs--brisklab .hs-dot { fill: rgba(255, 255, 255, .35); }
body.bw-system-page .bw-hs--brisklab .hs-brackets { fill: none; stroke: var(--sys-light); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
body.bw-system-page .bw-hs--brisklab .hs-code { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: bwHsType 8s ease infinite; }
body.bw-system-page .bw-hs--brisklab .hs-code--accent { stroke: var(--sys-light); }
body.bw-system-page .bw-hs--brisklab .hs-c2 { animation-delay: .5s; }
body.bw-system-page .bw-hs--brisklab .hs-c3 { animation-delay: 1s; }
body.bw-system-page .bw-hs--brisklab .hs-c4 { animation-delay: 1.5s; }
body.bw-system-page .bw-hs--brisklab .hs-c5 { animation-delay: 2s; }
body.bw-system-page .bw-hs--brisklab .hs-c6 { animation-delay: 2.5s; }
body.bw-system-page .bw-hs--brisklab .hs-cursor { fill: #fff; animation: bwHsBlink 1s steps(1) infinite; }
body.bw-system-page .bw-hs--brisklab .hs-tile { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .3); stroke-width: 1.2; }
body.bw-system-page .bw-hs--brisklab .hs-slot { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.4; stroke-dasharray: 4 4; }
body.bw-system-page .bw-hs--brisklab .hs-grid { animation: bwBob 6.4s ease-in-out infinite; }
body.bw-system-page .bw-hs--brisklab .hs-piece { animation: bwHsPiece 6s var(--bw-ease) infinite; }
body.bw-system-page .bw-hs--brisklab .hs-piece-box { fill: var(--sys-light); filter: drop-shadow(0 8px 14px rgba(6, 16, 30, .35)); }
body.bw-system-page .bw-hs--brisklab .hs-bridge { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 10; stroke-linecap: round; }
body.bw-system-page .bw-hs--brisklab .hs-bridge-flow { fill: none; stroke: var(--sys-light); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 4 16; animation: bwFlow 2s linear infinite; }
body.bw-system-page .bw-hs--brisklab .hs-bridge-flow.hs-rev { stroke: #fff; opacity: .65; animation-duration: 2.6s; }
body.bw-system-page .bw-hs--brisklab .hs-ai-core { fill: rgba(255, 255, 255, .16); stroke: rgba(255, 255, 255, .45); stroke-width: 1.4; }
body.bw-system-page .bw-hs--brisklab .hs-ai-ring { fill: none; stroke: var(--sys-light); stroke-width: 1.6; stroke-dasharray: 4 6; transform-box: fill-box; transform-origin: center; animation: bwSpin 12s linear infinite; }
body.bw-system-page .bw-hs--brisklab .hs-spark { fill: #fff; transform-box: fill-box; transform-origin: center; animation: bwiSpark 3.2s ease-in-out infinite; }

@keyframes bwHsStage { 0% { fill: rgba(255, 255, 255, .13); stroke: rgba(255, 255, 255, .36); } 4%, 14% { fill: rgba(255, 255, 255, .22); stroke: var(--sys-light); } 26%, 100% { fill: rgba(255, 255, 255, .13); stroke: rgba(255, 255, 255, .36); } }
@keyframes bwHsDone { 0% { opacity: 0; transform: scale(.4); } 4% { opacity: 1; transform: scale(1.12); } 8%, 22% { opacity: 1; transform: scale(1); } 28%, 100% { opacity: 0; transform: scale(.7); } }
@keyframes bwHsSeg1 { 0% { transform: scaleX(0); } 5%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes bwHsSeg2 { 0%, 25% { transform: scaleX(0); } 30%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes bwHsSeg3 { 0%, 50% { transform: scaleX(0); } 55%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes bwHsSeg4 { 0%, 75% { transform: scaleX(0); } 80%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes bwHsWave { 0%, 100% { transform: translateX(0); opacity: .45; } 50% { transform: translateX(-5px); opacity: 1; } }
@keyframes bwHsWin { 0%, 18% { fill: rgba(255, 255, 255, .14); } 28%, 86% { fill: var(--sys-light); } 96%, 100% { fill: rgba(255, 255, 255, .14); } }
@keyframes bwHsOcc { 0% { stroke-dashoffset: 100; } 55%, 88% { stroke-dashoffset: 14; } 100% { stroke-dashoffset: 100; } }
@keyframes bwHsSign { 0%, 10% { stroke-dashoffset: 100; } 42%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes bwHsStamp { 0%, 42% { opacity: 0; transform: scale(.4); } 48% { opacity: 1; transform: scale(1.12); } 54%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.7); } }
@keyframes bwHsPay { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes bwHsBar { 0% { transform: scaleY(.15); } 28%, 86% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }
@keyframes bwHsGhost { 0%, 40% { opacity: 0; } 55%, 86% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bwHsTrend { 0%, 12% { stroke-dashoffset: 100; } 45%, 86% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes bwHsForecast { 0%, 45% { opacity: 0; } 55%, 86% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bwHsBell { 0%, 55%, 100% { transform: rotate(0); } 62% { transform: rotate(14deg); } 70% { transform: rotate(-11deg); } 78% { transform: rotate(7deg); } 86% { transform: rotate(-3deg); } }
@keyframes bwHsType { 0% { stroke-dashoffset: 100; } 10%, 80% { stroke-dashoffset: 0; } 92%, 100% { stroke-dashoffset: 100; } }
@keyframes bwHsBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes bwHsPiece { 0%, 8% { transform: translate(64px, -58px); opacity: 0; } 22% { opacity: 1; } 42% { transform: translate(0, 0); } 46% { transform: translate(0, 2px); } 50%, 86% { transform: translate(0, 0); opacity: 1; } 96%, 100% { transform: translate(0, 0); opacity: 0; } }

/* Phones: lighter scenes (secondary chips hidden) */
@media (max-width: 767px) {
    body.bw-system-page .bw-hs--bops .hs-portal,
    body.bw-system-page .bw-hs--bops .hs-portal-link,
    body.bw-system-page .bw-hs--bfinance .sc-d4,
    body.bw-system-page .bw-hs--bspace .hs-occ {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.bw-system-page .bw-hs--bops .hs-parcel { display: none; }
    body.bw-system-page .bw-hs--bops .hs-seg-on { transform: scaleX(1); }
    body.bw-system-page .bw-hs--bops .hs-done,
    body.bw-system-page .bw-hs .hs-stamp,
    body.bw-system-page .bw-hs--bfinance .hs-forecast,
    body.bw-system-page .bw-hs--bfinance .hs-bar--ghost { opacity: 1; }
    body.bw-system-page .bw-hs--bspace .hs-sign,
    body.bw-system-page .bw-hs--bfinance .hs-trend,
    body.bw-system-page .bw-hs--brisklab .hs-code { stroke-dashoffset: 0; }
    body.bw-system-page .bw-hs--bspace .hs-occ-ring { stroke-dashoffset: 14; }
    body.bw-system-page .bw-hs--bspace .hs-w1,
    body.bw-system-page .bw-hs--bspace .hs-w3,
    body.bw-system-page .bw-hs--bspace .hs-w5,
    body.bw-system-page .bw-hs--bspace .hs-w6,
    body.bw-system-page .bw-hs--bspace .hs-w8 { fill: var(--sys-light); }
}

/* Bfinance: the longer headline keeps two balanced lines on desktop */
@media (min-width: 992px) {
    body.bw-system-page.bw-page--bfinance .bw-sys-hero-title {
        max-width: 9.6em;
    }

    /* Bwize (QA 17.11): "הדרך החדשה לניהול / ידע ותהליכי למידה" keeps two lines (the first one is 7.95em wide) */
    body.bw-system-page.bw-page--bwize .bw-sys-hero-title {
        max-width: 8.3em;
    }
}
