.ehs-hero-slider,
.ehs-hero-slider * {
    box-sizing: border-box;
}

.ehs-hero-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #02060b;
    color: #fff;
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.ehs-hero-slider a {
    text-decoration: none;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, opacity .25s ease, transform .25s ease;
}

.ehs-container {
    width: min(calc(100% - 56px), 1180px);
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    z-index: 4;
}

.ehs-hero-main {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #02060b;
}

.ehs-header-wrap {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9;
    padding: 18px 0 10px;
}

.ehs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.ehs-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 124px;
    color: #fff;
    line-height: 1;
}

.ehs-logo img {
    display: block;
    width: 124px;
    max-width: 100%;
    height: auto;
}

.ehs-logo-line {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ehs-logo-mark {
    width: 16px;
    height: 11px;
    display: inline-block;
    background: #ff7a22;
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
    transform: skewX(-12deg);
}

.ehs-logo-main {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -1px;
}

.ehs-logo-sub {
    display: block;
    margin-top: 1px;
    padding-left: 24px;
    color: #d7dde2;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .8px;
}

.ehs-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 44px;
    flex: 1 1 auto;
}

.ehs-nav a {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: .96;
}

.ehs-nav a:hover,
.ehs-nav a:focus {
    color: #ff8b2e;
}

.ehs-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #ff7a22;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(255, 111, 25, .15);
}

.ehs-header-cta:hover,
.ehs-header-cta:focus {
    color: #fff;
    transform: translateY(-1px);
}

.ehs-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ehs-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-property: opacity, visibility, transform;
    transition-duration: var(--ehs-speed, 750ms);
    transition-timing-function: ease;
}

.ehs-slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ehs-transition-slide .ehs-slide {
    transform: translateX(4%);
}

.ehs-transition-slide .ehs-slide.is-prev {
    transform: translateX(-4%);
}

.ehs-transition-slide .ehs-slide.is-active {
    transform: translateX(0);
}

.ehs-slide-bg {
    position: absolute;
    inset: -1px;
    z-index: 1;
    background-image: var(--ehs-slide-bg);
    background-repeat: no-repeat;
    background-position: var(--ehs-bg-position, right center);
    background-size: var(--ehs-bg-size, cover);
    transform: scale(1.01);
}

.ehs-slide-video {
    position: absolute;
    inset: -1px;
    z-index: 2;
    display: block;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    object-fit: var(--ehs-video-fit, cover);
    object-position: var(--ehs-bg-position, right center);
    transform: scale(1.01);
    background: #02060b;
    pointer-events: none;
}

.ehs-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(90deg, rgba(2, 6, 11, .82) 0%, rgba(2, 6, 11, .72) 38%, rgba(2, 6, 11, .14) 72%, rgba(2, 6, 11, .05) 100%);
    pointer-events: none;
}

.ehs-slide-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 42% 51%, rgba(54, 136, 187, .45) 0%, rgba(31, 92, 132, .28) 19%, rgba(6, 18, 28, 0) 48%),
        radial-gradient(circle at 89% 35%, rgba(255, 123, 30, .18) 0%, rgba(255, 123, 30, 0) 42%),
        linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .08) 32%, rgba(0, 0, 0, .58) 100%);
}

.ehs-slide-overlay::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(2, 6, 11, 0) 0%, rgba(2, 6, 11, .84) 100%);
}

.ehs-slide-inner {
    min-height: inherit;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 106px 0 98px;
}

.ehs-copy {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 520px;
    text-align: left;
    transform: translateY(2px);
}

.ehs-label {
    margin: 0 0 15px;
    color: #78b8d1;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 4.2px;
    text-transform: uppercase;
}

.ehs-heading {
    margin: 0 0 5px;
    color: #fff;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -1.6px;
}

.ehs-sub-heading {
    margin: 0 0 27px;
    color: #fff;
    font-size: 33px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -.8px;
}

.ehs-description {
    max-width: 510px;
    margin: 0 0 32px;
    color: #d9e4ee;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.62;
}

.ehs-description p {
    margin-top: 0;
    margin-bottom: 0;
}

.ehs-button-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
}

.ehs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.ehs-button:hover,
.ehs-button:focus {
    transform: translateY(-1px);
}

.ehs-button-primary {
    padding: 15px 24px;
    border-radius: 999px;
    background: #ff7a22;
    color: #fff;
    box-shadow: 0 12px 34px rgba(255, 106, 26, .16);
}

.ehs-button-primary:hover,
.ehs-button-primary:focus {
    background: #ff8f35;
    color: #fff;
}

.ehs-button-secondary {
    padding: 15px 24px;
    border-radius: 999px;
    border-color: rgba(255, 255, 255, .45);
    background: rgba(0, 0, 0, .18);
    color: #fff;
}

.ehs-button-secondary:hover,
.ehs-button-secondary:focus {
    border-color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.ehs-dots-layer {
    position: absolute;
    right: 0;
    bottom: 52px;
    left: 0;
    z-index: 8;
    pointer-events: none;
}

.ehs-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: auto;
}

.ehs-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    opacity: .58;
    cursor: pointer;
    transition: opacity .25s ease, background-color .25s ease, transform .25s ease;
}

.ehs-dot.is-active {
    background: #ff7a22;
    opacity: 1;
    transform: scale(1.08);
}

.ehs-dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .8);
    outline-offset: 3px;
}

.ehs-under-dots {
    position: relative;
    z-index: 5;
    overflow: hidden;
    padding: 32px 0 38px;
    background: #02060b;
}

.ehs-under-dots .ehs-container::before {
    content: "";
    position: absolute;
    top: -32px;
    right: 0;
    left: 0;
    height: 1px;
    background: rgba(130, 150, 170, .13);
}

.ehs-bottom-eyebrow {
    margin: 0 0 28px;
    color: #6d7f8d;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 5.4px;
    text-align: center;
    text-transform: uppercase;
}

/* Client logo strip: continuous auto-scrolling marquee at ALL viewport
 * sizes (desktop, tablet, mobile) — not gated to a breakpoint. JS
 * (assets/js/evolve-hero-slider.js) wraps `.ehs-client-logos` in
 * `.ehs-marquee-wrapper`, adds one cloned `.ehs-client-logos.ehs-marquee-
 * track` sibling, and writes the real measured track width onto the
 * wrapper as `--ehs-track-w`. See assets/js for why a JS-measured pixel
 * value is used instead of a CSS percentage (real <img> logos don't
 * shrink, so a track's true content width is unpredictable from CSS
 * alone). Animation *duration* is also set inline per-instance by JS
 * (constant px/sec speed) so scroll speed stays consistent regardless of
 * how many logos are added later — the 18s below is only a static-HTML/
 * no-JS fallback value, never what actually renders once JS runs. */
.ehs-client-logos {
    display: flex;
    align-items: center;
    gap: 42px;
}

/* Static clipping window. This element must NEVER be animated: it owns
 * overflow:hidden and the edge fade mask, so if the transform lived here
 * the visible window would slide away with the content and the strip
 * would drift off to the left and blank out. Only its child moves. */
.ehs-marquee-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

/* The only animated node. width:max-content lets it be as wide as both
 * tracks combined so the tracks never shrink to fit the viewport. Timing
 * is forced linear (and !important) so nothing further up the cascade can
 * ease it — an eased marquee visibly stalls at each loop boundary. */
.ehs-marquee-wrapper {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: ehs-logos-scroll 18s linear infinite;
    animation-name: none;
    -webkit-animation-timing-function: linear !important;
    animation-timing-function: linear !important;
    will-change: transform;
}

/* Animation only turns on once JS has measured a real, non-zero track
 * width and set --ehs-track-w — prevents a 0px-offset stutter on the
 * very first paint, before images have finished loading/measuring. */
.ehs-marquee-wrapper[style*="--ehs-track-w"] {
    animation-name: ehs-logos-scroll;
}

.ehs-marquee-viewport:hover .ehs-marquee-wrapper,
.ehs-marquee-viewport:focus-within .ehs-marquee-wrapper,
.ehs-marquee-wrapper:hover,
.ehs-marquee-wrapper:focus-within {
    animation-play-state: paused;
}

.ehs-marquee-wrapper .ehs-client-logos.ehs-marquee-track {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 42px;
}

.ehs-marquee-track .ehs-client-logo {
    flex: 0 0 auto;
}

@keyframes ehs-logos-scroll {
    from {
        transform: translateX(0);
    }

    to {
        /* Exact pixel width of one track (content + its own trailing gap),
         * measured by JS and written onto the wrapper as --ehs-track-w.
         * Falls back to 0 (no visible motion) if JS hasn't measured yet,
         * rather than jumping by a wrong guessed value. */
        transform: translateX(calc(-1 * var(--ehs-track-w, 0px)));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ehs-marquee-wrapper,
    .ehs-marquee-wrapper[style*="--ehs-track-w"] {
        animation-name: none;
        transform: none;
    }
}

.ehs-client-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    color: #d7dee5;
    opacity: .78;
    text-align: center;
}

.ehs-client-logo img {
    display: block;
    max-width: 160px;
    max-height: 34px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.65);
}

.ehs-client-logo-text {
    display: inline-block;
    color: #d7dee5;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.4px;
}

.ehs-bottom-editor,
.ehs-bottom-template {
    color: #d9e4ee;
}

.ehs-bottom-editor p:last-child,
.ehs-bottom-template p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .ehs-container {
        width: min(calc(100% - 48px), 1080px);
    }

    .ehs-nav {
        gap: 26px;
    }

    .ehs-heading {
        font-size: 46px;
    }

    .ehs-sub-heading {
        font-size: 29px;
    }
}

@media (max-width: 1024px) {
    .ehs-hero-main {
        min-height: 600px;
    }

    .ehs-header {
        gap: 22px;
    }

    .ehs-nav {
        display: none;
    }

    .ehs-slide-bg {
        background-position: 64% center;
    }

    .ehs-slide-video {
        object-position: 64% center;
    }

    .ehs-copy {
        max-width: 520px;
    }
}

@media (max-width: 767px) {
    .ehs-container {
        width: min(calc(100% - 34px), 100%);
    }

    .ehs-hero-main {
        min-height: 680px;
    }

    .ehs-header-wrap {
        padding-top: 18px;
    }

    .ehs-header-cta {
        display: none;
    }

    .ehs-logo-main {
        font-size: 20px;
    }

    .ehs-slide-inner {
        align-items: flex-end;
        padding-top: 105px;
        padding-bottom: 120px;
    }

    .ehs-slide-bg {
        background-position: 68% top;
        opacity: .98;
    }

    .ehs-slide-video {
        object-position: 68% top;
        opacity: .98;
    }

    .ehs-slide-overlay {
        background: linear-gradient(180deg, rgba(2, 6, 11, .38) 0%, rgba(2, 6, 11, .75) 34%, rgba(2, 6, 11, .95) 100%);
    }

    .ehs-copy {
        max-width: 100%;
    }

    .ehs-label {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .ehs-heading {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .ehs-sub-heading {
        font-size: 24px;
    }

    .ehs-description {
        font-size: 14px;
    }

    .ehs-button {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .ehs-dots-layer {
        bottom: 44px;
    }

    .ehs-under-dots {
        padding-top: 28px;
        padding-bottom: 30px;
    }

    .ehs-client-logos {
        gap: 26px;
    }

    .ehs-marquee-wrapper .ehs-client-logos.ehs-marquee-track {
        gap: 26px;
    }

    .ehs-client-logo img {
        max-height: 26px;
    }

    .ehs-bottom-eyebrow {
        letter-spacing: 3px;
    }
}

@media (max-width: 420px) {
    .ehs-heading {
        font-size: 32px;
    }

    .ehs-sub-heading {
        font-size: 22px;
    }
}
