/* =========================================================
   ATLAS HERO
   Reference image: 1440 × 600
   Panel top: 120px on the reference image
   ========================================================= */

.atlas-hero {
    --atlas-orange: #ff7a00;
    --atlas-blue: #123b5d;

    position: relative;
    width: 100%;
    height: max(600px, 41.6667vw);
    margin: 0;
    overflow: hidden;
    background: #e9edf0;
    font-family: "Host Grotesk", "Lato", Arial, sans-serif;
    box-sizing: border-box;
}

.atlas-hero *,
.atlas-hero *::before,
.atlas-hero *::after {
    box-sizing: border-box;
}

.atlas-hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.atlas-hero__panel {
    position: absolute;
    z-index: 2;
    top: 20%;
    right: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: max(375px, 26.0417vw);
    background: rgba(18, 59, 93, 0.8);
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    overflow: visible;
}

.atlas-hero__slides {
    position: relative;
    display: grid;
    place-items: center;
    width: calc(100% - 238px);
    max-width: 1202px;
    height: 100%;
    margin: 0 auto;
}

.atlas-hero__slide {
    grid-area: 1 / 1;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(28px);
    transition:
        opacity 260ms ease,
        transform 260ms ease,
        visibility 260ms ease;
}

.atlas-hero__slide.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.atlas-hero__slide h1,
.atlas-hero__slide h2,
.atlas-hero__slide p {
    margin-right: 0;
    margin-left: 0;
}

.atlas-hero__slide h1 {
    max-width: 1050px;
    margin-top: 0;
    margin-bottom: 0;
    color: var(--atlas-orange);
    font-size: clamp(42px, 4.444vw, 76px);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.atlas-hero__slide h2 {
    margin-top: 8px;
    margin-bottom: 0;
    color: #fff;
    font-size: clamp(26px, 2.5vw, 42px);
    font-weight: 700;
    line-height: 1.2;
}

.atlas-hero__slide p {
    max-width: 1050px;
    margin: 14px auto 0;
    color: #fff;
    font-size: clamp(18px, 1.667vw, 28px);
    font-weight: 400;
    line-height: 1.25;
}

.atlas-hero__quote-button {
    position: absolute;
    z-index: 4;
    bottom: -19px;
    left: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    height: 38px;
    padding: 0 16px;

    color: #fff;
    background: var(--atlas-orange);
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transform: translateX(-50%);
    transition: background-color 160ms ease, transform 160ms ease;
}

.atlas-hero__quote-button:hover,
.atlas-hero__quote-button:focus-visible {
    background: #e96f00;
    transform: translateX(-50%) translateY(-2px);
}

.atlas-hero__quote-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.atlas-hero__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 146px;
    padding: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
    transform: translateY(-50%);
}

.atlas-hero__arrow--previous {
    left: 5px;
}

.atlas-hero__arrow--next {
    right: 5px;
}

.atlas-hero__arrow img {
    display: block;
    width: 52px;
    height: 126px;
    object-fit: contain;
    pointer-events: none;
    transition: transform 160ms ease;
}

.atlas-hero__arrow:hover img,
.atlas-hero__arrow:focus-visible img {
    transform: scale(1.07);
}

.atlas-hero__arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

@media (max-width: 1180px) {
    .atlas-hero__slides {
        width: calc(100% - 190px);
    }

    .atlas-hero__slide h1 {
        font-size: clamp(38px, 5vw, 58px);
    }

    .atlas-hero__slide h2 {
        font-size: clamp(24px, 3vw, 34px);
    }

    .atlas-hero__slide p {
        font-size: clamp(18px, 2vw, 22px);
    }
}

@media (max-width: 900px) {
    .atlas-hero__slides {
        width: calc(100% - 140px);
    }

    .atlas-hero__slide {
        padding: 0 10px;
    }

    .atlas-hero__slide h1 {
        font-size: clamp(32px, 6vw, 46px);
    }

    .atlas-hero__slide h2 {
        margin-top: 10px;
        font-size: clamp(21px, 3.7vw, 30px);
    }

    .atlas-hero__slide p {
        margin-top: 12px;
        font-size: clamp(16px, 2.5vw, 20px);
        line-height: 1.35;
    }

    .atlas-hero__arrow {
        width: 58px;
        height: 110px;
        padding: 8px;
    }

    .atlas-hero__arrow img {
        width: 38px;
        height: 90px;
    }
}

@media (max-width: 600px) {
    .atlas-hero {
        height: 680px;
    }

    .atlas-hero__image {
        object-position: 42% center;
    }

    .atlas-hero__panel {
        top: 120px;
        height: auto;
        min-height: 480px;
        padding: 28px 0;
    }

    .atlas-hero__slides {
        width: calc(100% - 82px);
        height: auto;
        min-height: 420px;
    }

    .atlas-hero__slide {
        padding: 0 4px;
    }

    .atlas-hero__slide h1 {
        font-size: clamp(27px, 8vw, 36px);
        line-height: 1.06;
    }

    .atlas-hero__slide h2 {
        margin-top: 10px;
        font-size: clamp(18px, 5.5vw, 24px);
    }

    .atlas-hero__slide p {
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.4;
    }

    .atlas-hero__arrow {
        width: 40px;
        height: 96px;
        padding: 4px;
    }

    .atlas-hero__arrow--previous {
        left: 0;
    }

    .atlas-hero__arrow--next {
        right: 0;
    }

    .atlas-hero__arrow img {
        width: 28px;
        height: 68px;
    }

    .atlas-hero__quote-button {
        bottom: -17px;
        min-width: 130px;
        height: 34px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .atlas-hero__slide h1 {
        font-size: 25px;
    }

    .atlas-hero__slide h2 {
        font-size: 17px;
    }

    .atlas-hero__slide p {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atlas-hero__slide,
    .atlas-hero__arrow img,
    .atlas-hero__quote-button {
        transition: none;
    }
}

/* Keep every slide's content centered in the same panel area. */
.atlas-hero__slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
    text-align: center;
}

.atlas-hero__slide h1 {
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: center;
}

.atlas-hero__slide h2,
.atlas-hero__slide p {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

/* At 1440px, the heading begins about 40px after the left arrow's edge. */
.atlas-hero__slides {
    width: calc(100% - 234px);
    max-width: 1206px;
}

/****************Ticker***********/
/* Anchor the ticker to the full hero background. */
.atlas-hero {
    position: relative;
}

.atlas-hero__ticker {
    position: absolute;
    z-index: 10;
    top: auto;
    left: auto;
    right: 24px;
    bottom: 16px;

    display: flex;
    align-items: center;
    gap: 12px;

    width: max-content;
    margin: 0;
    padding: 12px 18px;

    background: #ff7a00;
    border-radius: 999px;
    transform: none;
}

.atlas-hero__ticker-item {
    display: block;
    flex: 0 0 auto;
    width: 24px;
    height: 12px;
    margin: 0;
    padding: 0;

    background: #fff;
    border: 0;
    border-radius: 999px;
    cursor: pointer;

    transition:
        width 200ms ease,
        background-color 200ms ease;
}

.atlas-hero__ticker-item:hover {
    background: #fff;
}

.atlas-hero__ticker-item.is-active,
.atlas-hero__ticker-item.is-active:hover {
    width: 72px;
    background: #183b59;
}

.atlas-hero__ticker-item:focus-visible {
    outline: 2px solid #183b59;
    outline-offset: 3px;
}

/* Ensure inactive slides are hidden despite display:flex rules. */
.atlas-hero__slide[hidden] {
    display: none;
}

@media (max-width: 600px) {
    .atlas-hero__ticker {
        right: 16px;
        bottom: 16px;
        gap: 8px;
        padding: 10px 14px;
    }

    .atlas-hero__ticker-item {
        width: 20px;
        height: 10px;
    }

    .atlas-hero__ticker-item.is-active {
        width: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atlas-hero__ticker-item {
        transition: none;
    }
}

.atlas-hero__ticker-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.atlas-hero__ticker-item.is-active {
    width: 72px;
    height: 12px;
    border-radius: 999px;
}

@media (max-width: 600px) {
    .atlas-hero__ticker-item {
        width: 10px;
        height: 10px;
    }

    .atlas-hero__ticker-item.is-active {
        width: 56px;
        height: 10px;
    }
}

:root {
    --atlas-header-height: 167px;
}

body {
    margin: 0;
}

.atlas-header {
    height: var(--atlas-header-height);
    box-sizing: border-box;
}

.atlas-hero {
    height: calc(100vh - var(--atlas-header-height));
    height: calc(100dvh - var(--atlas-header-height));
    min-height: 0;
}

/* Keep the panel below the image's matching anchor point. */
.atlas-hero__image {
    object-position: center 20%;
}

.atlas-hero__panel {
    top: 20%;
    bottom: auto;

    /* Leave room below the panel for the quote button and ticker. */
    height: min(375px, calc(80% - 80px));
    max-height: none;
    min-height: 0;
    padding: 16px 0;
    transform: none;
}

.atlas-hero__slides {
    height: 100%;
    min-height: 0;
}

@media (max-width: 900px) {
    :root {
        --atlas-header-height: 98px;
    }

    .atlas-header__inner {
        height: calc(var(--atlas-header-height) - 4px);
    }
}

@media (max-width: 600px) {
    .atlas-hero__image {
        object-position: 42% 20%;
    }

    .atlas-hero__panel {
        top: 20%;
        height: min(375px, calc(80% - 80px));
        min-height: 0;
        transform: none;
    }

    .atlas-hero__slides {
        height: 100%;
        min-height: 0;
    }
}
}

@media (max-width: 600px) {
    .atlas-hero__image {
        object-position: 42% var(--atlas-panel-top);
    }

    .atlas-hero__panel {
        top: var(--atlas-panel-top);
        height: 375px;
        min-height: 0;
        padding: 16px 0;
        transform: none;
    }

    .atlas-hero__slides {
        width: calc(100% - 82px);
        height: 100%;
        min-height: 0;
    }
}

/* Center the background image and slider panel at every screen size. */
.atlas-hero__image {
    object-position: center center;
}

.atlas-hero__panel {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;

    height: min(375px, calc(100% - 140px));
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 16px 0;

    transform: translateY(-50%);
}

.atlas-hero__slides {
    height: 100%;
    min-height: 0;
}

@media (max-width: 600px) {
    .atlas-hero__image {
        object-position: center center;
    }

    .atlas-hero__panel {
        top: 50%;
        bottom: auto;
        height: min(375px, calc(100% - 140px));
        min-height: 0;
        transform: translateY(-50%);
    }

    .atlas-hero__slides {
        width: calc(100% - 82px);
        height: 100%;
        min-height: 0;
    }
}

.atlas-hero .atlas-hero__panel {
    height: min(475px, calc(100% - 40px));
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}
