/* =====================================================================
   INNER-PAGE HERO (#ab-hero.abx)
   The shared banner for every inner page (the home page has its own).
   Linked after each page's own CSS; behaviour in assets/js/inner-hero.js.

   Deep navy stage with the page's banner photo faint on the right, two
   drifting colour pools, a fading grid, a slow orbit and a large outlined
   "2001". The copy (kicker, title, one line, breadcrumb) sits on the left,
   with a scroll cue at the bottom.

   Everything is scoped to #ab-hero.abx, and the elements use new abx-*
   class names, so the older #ab-hero rules still sitting in the page
   stylesheets do not match them. inner-hero.js adds .abx-on once the page
   loader clears (entrance). Long titles get .abx-long (smaller, wrapping).
   ===================================================================== */
#ab-hero.abx {
    --abx-navy: #07152e;
    --abx-blue: #2f528a;
    --abx-sky: #a9c0ec;
    --abx-gold: #e4b04e;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: auto;
    min-height: min(680px, 88svh);
    display: flex;
    align-items: center;
    padding: clamp(120px, 15vh, 160px) 0 clamp(110px, 13vh, 140px);
    text-align: left;
    color: #fff;
    border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
    background: radial-gradient(120% 90% at 100% 0%, #2f528a 0%, rgba(23, 56, 109, 0) 55%), linear-gradient(160deg, #2f528a 0%, #2f528a 70%);
}

html #ab-hero.abx::before,
html #ab-hero.abx::after,
html.js #ab-hero.abx::before,
html.js #ab-hero.abx::after {
    content: none;
    display: none;
}

/* ---- backdrop ---- */
#ab-hero.abx .abx-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
    mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
}

#ab-hero.abx .abx-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .22;
    mix-blend-mode: luminosity;
    transform: scale(1.08);
    transition: transform 2.4s cubic-bezier(.16, 1, .3, 1);
}

#ab-hero.abx.abx-on .abx-bg img {
    transform: scale(1);
}

#ab-hero.abx .abx-aura {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    pointer-events: none;
}

#ab-hero.abx .abx-aura.a1 {
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    left: -22vw;
    top: -30vw;
    background: radial-gradient(circle, rgba(59, 123, 255, .32), rgba(59, 123, 255, 0) 62%);
    animation: abxDrift 18s ease-in-out infinite alternate;
}

#ab-hero.abx .abx-aura.a2 {
    width: 55vw;
    height: 55vw;
    max-width: 720px;
    max-height: 720px;
    right: -14vw;
    bottom: -32vw;
    background: radial-gradient(circle, rgba(228, 176, 78, .2), rgba(228, 176, 78, 0) 62%);
    animation: abxDrift 22s ease-in-out -6s infinite alternate-reverse;
}

@keyframes abxDrift {
    to {
        transform: translate3d(6vw, 4vw, 0) scale(1.08);
    }
}

#ab-hero.abx .abx-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(70% 70% at 30% 40%, #000, transparent 75%);
    mask-image: radial-gradient(70% 70% at 30% 40%, #000, transparent 75%);
    animation: abxGrid 30s linear infinite;
}

@keyframes abxGrid {
    to {
        background-position: 64px 64px, 64px 64px;
    }
}

#ab-hero.abx .abx-orbit {
    position: absolute;
    z-index: -1;
    width: clamp(420px, 46vw, 720px);
    aspect-ratio: 1;
    right: clamp(-260px, -12vw, -120px);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 1.6s ease .3s;
}

#ab-hero.abx.abx-on .abx-orbit {
    opacity: 1;
}

#ab-hero.abx .abx-orbit>circle {
    stroke: rgba(169, 192, 236, .22);
    stroke-width: 1;
}

#ab-hero.abx .abx-orbit-dot {
    transform-origin: 300px 300px;
    animation: abxSpin 24s linear infinite;
}

#ab-hero.abx .abx-orbit-dot.d2 {
    animation-duration: 16s;
    animation-direction: reverse;
}

#ab-hero.abx .abx-orbit-dot circle {
    fill: var(--abx-gold);
}

#ab-hero.abx .abx-orbit-dot.d2 circle {
    fill: var(--abx-sky);
}

@keyframes abxSpin {
    to {
        transform: rotate(360deg);
    }
}

/* giant outlined year, bottom-left, behind the copy */
#ab-hero.abx .abx-mark {
    position: absolute;
    z-index: -1;
    left: max(var(--pad), calc((100vw - 1400px) / 2));
    bottom: -0.18em;
    font-family: "Red Hat Display", sans-serif;
    font-weight: 900;
    font-size: clamp(140px, 22vw, 340px);
    line-height: 1;
    letter-spacing: -.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(169, 192, 236, .16);
    pointer-events: none;
    user-select: none;
}

/* ---- layout ---- */
#ab-hero.abx .abx-in {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

#ab-hero.abx .abx-kick {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #dbe5f5;
}

#ab-hero.abx .abx-kick i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--abx-gold);
    box-shadow: 0 0 0 0 rgba(228, 176, 78, .6);
    animation: abxPulse 2.2s infinite;
}

@keyframes abxPulse {
    70% {
        box-shadow: 0 0 0 10px rgba(228, 176, 78, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(228, 176, 78, 0);
    }
}


#ab-hero.abx h1 {
    margin: clamp(18px, 2.4vh, 28px) 0 0;
    padding: 0 0 .08em;
    font-family: "Red Hat Display", sans-serif;
    font-weight: 600;
    font-size: clamp(52px, 7.4vw, 90px);
    line-height: .95;
    letter-spacing: -0.035em;
    white-space: nowrap;
    color: #fff;
}

/* last word in sky-to-gold gradient (not when the title is one word) */
#ab-hero.abx h1 .w:last-of-type:not(:first-of-type) .i {
    background: var(--abx-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#ab-hero.abx .abx-lead {
    max-width: 52ch;
    margin: clamp(16px, 2.2vh, 24px) 0 0;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.6;
    color: rgba(219, 229, 245, .86);
}

#ab-hero.abx .abx-crumb {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: clamp(26px, 3.6vh, 40px);
    font-size: 14px;
    color: rgba(219, 229, 245, .7);
}

#ab-hero.abx .abx-crumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    transition: color .3s;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

#ab-hero.abx .abx-crumb a:hover {
    color: var(--abx-gold);
}

#ab-hero.abx .abx-crumb svg {
    width: 18px;
    height: 18px;
}

#ab-hero.abx .abx-crumb .abx-crumb-sep {
    width: 12px;
    height: 12px;
    opacity: .5;
}

#ab-hero.abx .abx-crumb [aria-current] {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgb(255 255 255 / 16%);
    color: var(--abx-gold);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

/* ---- scroll cue ---- */
#ab-hero.abx .abx-scroll {
    position: absolute;
    left: 50%;
    bottom: clamp(26px, 4vh, 44px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(219, 229, 245, .7);
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity .8s ease 1.4s, color .3s;
}

#ab-hero.abx.abx-on .abx-scroll {
    opacity: 1;
}

#ab-hero.abx .abx-scroll:hover {
    color: #fff;
}

#ab-hero.abx .abx-mouse {
    position: relative;
    width: 24px;
    height: 38px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55);
}

#ab-hero.abx .abx-mouse i {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--abx-gold);
    animation: abxWheel 1.8s cubic-bezier(.6, 0, .4, 1) infinite;
}

@keyframes abxWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    70% {
        transform: translateY(12px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

/* ---- entrance: blocks rise in once the loader has cleared ---- */
html.js #ab-hero.abx .abx-rise {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--d, 0s);
}

html.js #ab-hero.abx.abx-on .abx-rise {
    opacity: 1;
    transform: none;
}

/* ---- tablet / phone ---- */
/* the title's underline bar, recoloured to match this banner */
#ab-hero.abx h1::after {
    background: linear-gradient(90deg, var(--abx-gold), rgba(228, 176, 78, 0));
}

@media (max-width: 1024px) {
    #ab-hero.abx .abx-in {
        grid-template-columns: minmax(0, 1fr);
    }

    #ab-hero.abx .abx-orbit {
        top: 18%;
        opacity: .6;
    }
}

@media (max-width: 760px) {
    #ab-hero.abx {
        min-height: 0;
        padding: 112px 0 104px;
        border-radius: 0 0 28px 28px;
    }

    #ab-hero.abx h1 {
        font-size: clamp(46px, 14vw, 64px);
    }

    #ab-hero.abx .abx-kick {
        font-size: 11px;
        letter-spacing: .1em;
    }

    #ab-hero.abx .abx-mark {
        font-size: 38vw;
    }

    #ab-hero.abx .abx-scroll {
        bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {

    #ab-hero.abx .abx-aura,
    #ab-hero.abx .abx-grid,
    #ab-hero.abx .abx-orbit-dot,
    #ab-hero.abx .abx-kick i,
    #ab-hero.abx .abx-mouse i {
        animation: none;
    }

    html.js #ab-hero.abx .abx-rise,
    #ab-hero.abx .abx-scroll,
    #ab-hero.abx .abx-orbit {
        opacity: 1;
        transform: none;
        transition: none;
    }

    #ab-hero.abx .abx-scroll {
        transform: translateX(-50%);
    }
}

/* ---- long page titles (e.g. "Cloud Infrastructure & Managed Cloud
   Services"): smaller and allowed to wrap onto two or three lines ---- */
#ab-hero.abx.abx-long h1 {
    max-width: 17ch;
    white-space: normal;
    font-size: 52px;
    line-height: 1.02;
    letter-spacing: -.035em;
}

@media (max-width: 760px) {
    #ab-hero.abx.abx-long h1 {
        max-width: none;
        font-size: clamp(32px, 9vw, 44px);
    }
}

/* one-word titles (Careers, Media ...) stay white */
#ab-hero.abx h1 .w:only-of-type .i {
    color: #fff;
}

/* long current-page names (service titles) stay on one line on phones */
@media (max-width: 760px) {
    #ab-hero.abx .abx-crumb [aria-current] {
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

/* breadcrumb level that has no page of its own yet (Services, Products):
   plain text, not a link */
#ab-hero.abx .abx-crumb .abx-crumb-txt {
    color: rgba(255, 255, 255, .78);
    cursor: default;
}
