:root{--bi-navy:#02172f;--bi-blue:#075eae;--bi-cyan:#24b7f2;--bi-red:#e31b2f;--bi-text:#10233f;--bi-muted:#61748b;--bi-border:#dbe7f2;--bi-bg:#f4f9fd;--bi-width:1320px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--bi-text);background:#fff;-webkit-font-smoothing:antialiased}img{display:block;max-width:100%}.bi-main{overflow:clip}.bi-wrap{width:min(calc(100% - 64px),var(--bi-width));margin-inline:auto}.bi-section{padding:86px 0;scroll-margin-top:105px}.bi-section--soft{background:var(--bi-bg)}.bi-section--blue{background:linear-gradient(125deg,#edf7ff,#fff)}.bi-eyebrow{display:inline-flex;align-items:center;gap:11px;margin:0 0 17px;color:var(--bi-blue);font-size:.77rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.bi-eyebrow:before{content:"";width:27px;height:3px;background:var(--bi-red)}.bi-title{margin:0 0 22px;color:var(--bi-navy);font-size:clamp(2rem,3.3vw,3.4rem);font-weight:850;letter-spacing:-.045em;line-height:1.12}.bi-lead{max-width:910px;color:var(--bi-muted);font-size:1.07rem;line-height:1.85}.bi-prose{color:var(--bi-muted);line-height:1.85;font-size:1rem}.bi-prose p{margin:0 0 17px}.bi-prose p:last-child{margin-bottom:0}.bi-button{display:inline-flex;align-items:center;justify-content:center;min-height:51px;padding:0 24px;border-radius:7px;background:var(--bi-blue);color:#fff;text-decoration:none;font-size:.89rem;font-weight:750;transition:background .2s,transform .2s}.bi-button:hover{background:#0b83ce;transform:translateY(-2px)}.bi-button--outline{background:transparent;border:1px solid rgba(255,255,255,.65)}.bi-button--outline:hover{background:rgba(255,255,255,.15)}.bi-button:focus-visible{outline:3px solid #24b7f2;outline-offset:3px}

/* =========================================================
   HERO
========================================================= */
.bi-hero{
    position:relative;
    isolation:isolate;
    display:flex;
    align-items:center;
    min-height:550px;
    color:#fff;
    background-color:var(--bi-navy);
    background-image:
        linear-gradient(90deg, rgba(2,18,43,.97) 0%, rgba(2,23,47,.90) 31%, rgba(2,31,70,.54) 55%, rgba(2,31,70,.12) 100%),
        var(--bi-hero-desktop, url('/img/services/analytics/hero.jpg'));
    background-size:cover,cover;
    background-position:center center,center center;
    background-repeat:no-repeat,no-repeat;
}
.bi-hero:after{position:absolute;bottom:0;left:0;right:0;height:5px;content:"";background:linear-gradient(90deg,var(--bi-red) 0 18%,var(--bi-cyan) 18%)}
.bi-hero__inner{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:46px;align-items:center;padding:62px 0}
.bi-hero__content{position:relative;z-index:2;min-width:0}
.bi-breadcrumb{margin-bottom:24px;color:#bed5e8;font-size:.8rem}
.bi-breadcrumb a{color:#fff;text-decoration:none}
.bi-hero .bi-eyebrow{color:#8ddfff}
.bi-hero h1{max-width:780px;margin:0;font-size:clamp(2.35rem,3.7vw,4.1rem);line-height:1.06;letter-spacing:-.045em;text-transform:uppercase}
.bi-hero h1 span{display:block;color:#36c5ff}
.bi-hero__text{max-width:670px;margin:23px 0 0;color:#e3eef8;font-size:1.04rem;line-height:1.8}
.bi-hero__actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}

/* =========================================================
   TOP DIRECTORY
========================================================= */
.bi-directory{
    position:absolute;z-index:5;top:0;left:50%;transform:translateX(-50%);
    display:flex;align-items:center;gap:22px;width:min(calc(100% - 64px),1420px);
    margin:0;padding:12px 0;border:0;border-radius:0;background:transparent;
    box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;
}
.bi-directory__title{flex:0 0 auto;margin:0;padding-left:12px;border-left:1px solid var(--bi-red);color:#8ddfff;font-size:.75rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
.bi-directory nav{display:flex;flex-wrap:wrap;align-items:center;gap:5px 18px;min-width:0}
.bi-directory a{display:inline-flex;align-items:center;gap:8px;min-height:24px;padding:2px 0;border:0;background:transparent;color:#fff;font-size:.73rem;font-weight:700;line-height:1.4;white-space:nowrap;text-decoration:none;transition:color .2s ease}
.bi-directory a:before{content:"";width:9px;height:2px;flex:0 0 9px;border-radius:2px;background:var(--bi-red)}
.bi-directory a:hover,.bi-directory a:focus-visible{color:#8ddfff}
.bi-directory a:focus-visible{outline:2px solid #8ddfff;outline-offset:3px}

/* =========================================================
   SHARED SECTIONS
========================================================= */
.bi-split{display:grid;grid-template-columns:1.06fr .94fr;align-items:center;gap:60px}
.bi-split--reverse{grid-template-columns:.94fr 1.06fr}
.bi-picture{display:block;width:100%;min-width:0}
.bi-picture img{width:100%;height:auto;object-fit:contain;border-radius:15px;box-shadow:0 20px 50px rgba(2,23,47,.12)}
.bi-statement{margin-top:25px;padding:22px 25px;border-left:4px solid var(--bi-red);background:#edf6ff;color:var(--bi-navy);font-size:1.14rem;font-weight:800;line-height:1.55}
.bi-pipeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:30px}
.bi-pipeline div{padding:19px 13px;border:1px solid var(--bi-border);border-top:3px solid var(--bi-blue);border-radius:9px;background:#fff;text-align:center}
.bi-pipeline strong{display:block;color:var(--bi-navy);font-size:.89rem}
.bi-pipeline small{display:block;margin-top:9px;color:var(--bi-muted);font-size:.77rem;line-height:1.5}
.bi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-top:30px}
.bi-card{padding:26px;border:1px solid var(--bi-border);border-top:3px solid var(--bi-blue);border-radius:10px;background:#fff;min-width:0;overflow-wrap:break-word}
.bi-card:nth-child(3n+2){border-top-color:var(--bi-red)}
.bi-card:nth-child(3n){border-top-color:var(--bi-cyan)}
.bi-card h3{margin:0 0 12px;color:var(--bi-navy);font-size:1.12rem}
.bi-card p{margin:0;color:var(--bi-muted);line-height:1.75;font-size:.94rem}
.bi-card ul{padding-left:19px;margin:12px 0 0;color:var(--bi-muted);line-height:1.75;font-size:.92rem}
.bi-card li{margin-bottom:5px}
.bi-category{padding:20px 0 16px;border-bottom:1px solid var(--bi-border)}
.bi-category h2{margin:0 0 13px;color:var(--bi-navy);font-size:clamp(1.8rem,3vw,2.7rem)}
.bi-category p{max-width:920px;color:var(--bi-muted);line-height:1.85}
.bi-capability{padding:35px 0;border-bottom:1px solid var(--bi-border);scroll-margin-top:110px}
.bi-capability:last-child{border-bottom:0}
.bi-number{color:var(--bi-red);font-size:.84rem;font-weight:850;letter-spacing:.12em}
.bi-capability h3{margin:9px 0 12px;color:var(--bi-navy);font-size:clamp(1.35rem,2.2vw,1.9rem)}
.bi-capability p{max-width:1080px;color:var(--bi-muted);line-height:1.85}
.bi-capability ul{padding-left:22px;color:var(--bi-muted);line-height:1.85}
.bi-capability li{margin-bottom:7px}
.bi-note{margin-top:24px;padding:20px 24px;border:1px solid #d5e6f5;border-left:4px solid var(--bi-red);border-radius:0 9px 9px 0;background:#f3f9ff;color:var(--bi-navy);line-height:1.7;font-weight:700}
.bi-tech{display:grid;grid-template-columns:230px 1fr;gap:14px;padding:15px 0;border-bottom:1px solid var(--bi-border)}
.bi-tech strong{color:var(--bi-navy)}
.bi-tech span{color:var(--bi-muted);line-height:1.7}
.bi-wide-picture{display:block;margin:34px 0}
.bi-wide-picture img{width:100%;height:auto;object-fit:contain;border-radius:14px;box-shadow:0 18px 44px rgba(2,23,47,.12)}
.bi-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.bi-cta{padding:85px 0;background:linear-gradient(120deg,#02172f,#06477d);color:#fff}
.bi-cta__inner{display:flex;justify-content:space-between;align-items:center;gap:45px}
.bi-cta h2{margin:0 0 16px;font-size:clamp(2rem,3.2vw,3.5rem);letter-spacing:-.04em}
.bi-cta p{max-width:800px;color:#cbddec;line-height:1.8}
.bi-cta .bi-eyebrow{color:#8ddfff}
.bi-cta__actions{display:flex;gap:12px;flex-wrap:wrap;flex-shrink:0}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media(max-width:1050px){
    .bi-hero__inner{grid-template-columns:1fr;gap:26px}
    .bi-hero h1{font-size:clamp(2.7rem,5.5vw,4.7rem)}
    .bi-directory{width:calc(100% - 36px);gap:10px}
    .bi-directory nav{flex-wrap:nowrap;overflow-x:auto;gap:16px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
    .bi-directory a{flex:0 0 auto}
    .bi-split{gap:35px}
    .bi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .bi-pipeline{grid-template-columns:repeat(3,1fr)}
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media(max-width:750px){
    .bi-wrap{width:calc(100% - 36px)}
    .bi-section{padding:65px 0}

    /* Fixed Mobile Hero to ensure the image shows properly */
    .bi-hero{
        min-height:600px; 
        align-items:flex-end;
        background-image:
            linear-gradient(180deg,
                rgba(2,18,43,.25) 0%,   /* Lighter than .38 */
                rgba(2,18,43,.50) 22%,  /* Lighter than .68 */
                rgba(2,18,43,.70) 48%,  /* Lighter than .82 */
                rgba(2,18,43,.85) 100%  /* Lighter than .92 */
            ),
            var(--bi-hero-mobile, url('/img/services/analytics/hero-mobile.jpg'));
        background-position:center, center top;
        background-size:cover, cover;
        background-repeat:no-repeat;
    }

    .bi-hero__inner{
        display:block;
        min-height:0;
        padding:120px 0 45px;
    }

    /* Light, airy panel behind the text */
    .bi-hero__content {
        position: relative;
        z-index: 2;
        padding: 24px 18px;
        border-radius: 14px;
        background: linear-gradient(
            135deg,
            rgba(2,18,43,.22), 
            rgba(2,23,47,.08)  
        );
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    /* Text shadow for readability */
    .bi-hero h1,
    .bi-hero h1 span,
    .bi-breadcrumb,
    .bi-hero .bi-eyebrow,
    .bi-hero__text {
        text-shadow: 0 2px 8px rgba(0,0,0,.65); 
    }

    .bi-hero h1{font-size:clamp(2.15rem,7.4vw,3.25rem)}

    /* Fixed Mobile Directory so it doesn't blend into the image */
    .bi-directory{
        display:block;
        padding:12px 0;
        background: rgba(2,18,43, 0.45); /* Lightened from 0.7 */
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    .bi-directory__title{margin-bottom:7px}
    .bi-directory nav{flex-wrap:nowrap;overflow-x:auto}

    .bi-split,.bi-split--reverse{grid-template-columns:1fr}
    .bi-pipeline{grid-template-columns:repeat(2,1fr)}
    .bi-cta__inner{flex-direction:column;align-items:flex-start}
    .bi-tech{grid-template-columns:1fr;gap:4px}
}

/* =========================================================
   RESPONSIVE — SMALL MOBILE
========================================================= */
@media(max-width:480px){
    .bi-wrap{width:calc(100% - 28px)}
    .bi-directory{width:calc(100% - 28px)}
    .bi-directory a{font-size:.71rem}
    .bi-grid,.bi-pipeline{grid-template-columns:1fr}
    .bi-hero h1{font-size:clamp(1.9rem,12vw,3rem)}
    .bi-hero__text{margin-top:20px;font-size:.95rem}
    .bi-hero__actions,.bi-cta__actions{width:100%}
    .bi-hero__actions .bi-button,.bi-cta__actions .bi-button{flex:1 1 100%}
}

@media(prefers-reduced-motion:reduce){
    html{scroll-behavior:auto}
    *,*:before,*:after{transition:none!important}
}

/* Deep-link offset for individual cards, pipeline steps and sections. */
.bi-main [id] { scroll-margin-top:110px; }