/* Full-screen homepage carousel, transparent homepage header and image mega menus. */

.site-header {
    z-index: 600;
    transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

/* Keep the primary header visually above every dropdown panel. */
.site-header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 601;
    height: 1px;
    background: rgba(12, 54, 93, .12);
    box-shadow: 0 8px 18px rgba(7, 34, 60, .16);
    content: "";
    pointer-events: none;
    transition: opacity .28s ease, box-shadow .28s ease;
}

body.home .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    border-bottom-color: rgba(255, 255, 255, .2);
    background: transparent;
    box-shadow: none;
}

body.home .site-header:not(:hover):not(:focus-within):not(.is-scrolled)::after,
body.hzm-header-over-hero .site-header:not(:hover):not(:focus-within):not(.is-scrolled)::after {
    opacity: 0;
    box-shadow: none;
}

body.home .site-header:hover,
body.home .site-header:focus-within,
body.home .site-header.is-scrolled,
body.home.menu-open .site-header {
    border-bottom-color: rgba(12, 54, 93, .1);
    background: #fff;
    box-shadow: 0 3px 20px rgba(15, 39, 68, .11);
}

body.home .site-header:not(:hover):not(:focus-within):not(.is-scrolled) .site-logo img {
    filter: brightness(0) invert(1);
}

body.home .site-header:not(:hover):not(:focus-within):not(.is-scrolled) .site-navigation .menu > .menu-item > a {
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 24, 46, .35);
}

body.home .site-header:not(:hover):not(:focus-within):not(.is-scrolled) .site-navigation .menu > .menu-item > a:after {
    background: #fff;
}

body.home .site-header:not(:hover):not(:focus-within):not(.is-scrolled) .header-quote {
    border-color: rgba(255, 255, 255, .85);
    color: #fff;
    background: rgba(5, 52, 96, .28);
}

body.home .site-header:not(:hover):not(:focus-within):not(.is-scrolled) .menu-toggle > span:not(.screen-reader-text) {
    background: #fff;
}

/* Desktop mega menus. */
.site-navigation .menu > .menu-item--mega {
    position: static;
}

.site-navigation .menu-item--mega > .sub-menu {
    display: none;
}

.nav-mega-toggle {
    display: none;
}

.nav-mega {
    position: fixed;
    top: 100px;
    right: 0;
    left: 0;
    z-index: 590;
    padding: 28px 0 34px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px);
    border-top: 1px solid #d9e1e7;
    background: #f3f5f7;
    box-shadow: 0 22px 45px rgba(7, 34, 60, .14);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.menu-item--mega:hover > .nav-mega,
.menu-item--mega:focus-within > .nav-mega,
.menu-item--mega.mega-open > .nav-mega {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.nav-mega__inner {
    display: block;
}

.nav-mega__heading {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
}

.nav-mega__heading strong {
    color: var(--ink);
    font-size: 22px;
}

.nav-mega__heading a {
    color: var(--blue-700);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.nav-mega__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-gap: 18px;
}

.nav-mega--solutions .nav-mega__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.nav-mega__card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5ebf0;
    color: var(--ink);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nav-mega__card:hover,
.nav-mega__card:focus {
    border-color: #9bc9e8;
    color: var(--blue-700);
    box-shadow: 0 10px 22px rgba(12, 63, 103, .12);
    transform: translateY(-3px);
}

.nav-mega__card img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform .35s ease;
}

.nav-mega__card:hover img,
.nav-mega__card:focus img {
    transform: scale(1.045);
}

.nav-mega__card > span {
    display: flex;
    min-height: 62px;
    padding: 12px 13px;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

/* Full viewport carousel. */
.home-hero {
    height: 100vh;
    min-height: 720px;
}

.home-hero__slides,
.hero-slide,
.hero-slide__picture,
.hero-slide__shade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.hero-slide {
    z-index: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity .9s ease, visibility .9s;
}

.hero-slide.is-active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
}

.hero-slide__picture {
    overflow: hidden;
}

.hero-slide__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.09);
    will-change: transform;
}

.home-hero.is-motion-ready .hero-slide.is-active .hero-slide__media {
    animation: hzm-hero-zoom 7s ease-out forwards;
}

.home-hero.is-motion-ready .hero-slide--alternate.is-active .hero-slide__media {
    animation-name: hzm-hero-zoom-alternate;
}

.hero-slide__shade {
    background: linear-gradient(90deg, rgba(2, 25, 49, .9) 0%, rgba(3, 37, 70, .68) 47%, rgba(3, 38, 71, .08) 78%);
}

.hero-slide--alternate .hero-slide__shade {
    background: linear-gradient(90deg, rgba(2, 28, 53, .88) 0%, rgba(2, 37, 71, .61) 50%, rgba(3, 38, 71, .05) 80%);
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    min-height: 720px;
    padding-top: 100px;
    padding-bottom: 96px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #fff;
}

.hero-slide__content > * {
    opacity: 0;
    transform: translateY(30px);
}

.home-hero.is-motion-ready .hero-slide.is-active .hero-slide__content > * {
    opacity: 1;
    transform: none;
    transition: opacity .72s ease, transform .72s cubic-bezier(.2, .75, .25, 1);
}

.home-hero.is-motion-ready .hero-slide.is-active .hero-slide__content > :nth-child(1) { transition-delay: .12s; }
.home-hero.is-motion-ready .hero-slide.is-active .hero-slide__content > :nth-child(2) { transition-delay: .25s; }
.home-hero.is-motion-ready .hero-slide.is-active .hero-slide__content > :nth-child(3) { transition-delay: .38s; }
.home-hero.is-motion-ready .hero-slide.is-active .hero-slide__content > :nth-child(4) { transition-delay: .51s; }

.home-hero .hero-slide__title {
    max-width: 980px;
    margin-bottom: 22px;
    color: #fff;
    font-size: 68px;
}

.hero-slide__description {
    max-width: 780px;
    color: #e6f1f8;
    font-size: 20px;
    line-height: 1.6;
}

.hero-slide__eyebrow {
    color: #91e0f2;
}

.home-hero__controls {
    position: absolute;
    right: 0;
    bottom: 38px;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
}

.home-hero__arrow {
    display: inline-flex;
    width: 48px;
    height: 48px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 50%;
    color: #fff;
    background: rgba(3, 35, 65, .25);
    font: inherit;
    font-size: 24px;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.home-hero__arrow:hover,
.home-hero__arrow:focus {
    border-color: #fff;
    color: var(--blue-950);
    background: #fff;
}

.home-hero__dots {
    display: flex;
    margin: 0 18px;
    align-items: center;
}

.home-hero__dot {
    position: relative;
    width: 46px;
    height: 20px;
    margin: 0 5px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.home-hero__dot:before {
    position: absolute;
    top: 9px;
    right: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, .42);
    content: "";
}

.home-hero__dot:after {
    position: absolute;
    top: 9px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    content: "";
}

.home-hero__dot.is-active:after {
    width: 100%;
    transition: width 6.5s linear;
}

.home-hero__count {
    margin-left: 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
}

@keyframes hzm-hero-zoom {
    from { transform: scale(1.09) translate3d(-1.2%, 0, 0); }
    to { transform: scale(1.015) translate3d(0, 0, 0); }
}

@keyframes hzm-hero-zoom-alternate {
    from { transform: scale(1.09) translate3d(1.2%, 0, 0); }
    to { transform: scale(1.015) translate3d(0, 0, 0); }
}

@media (max-width: 1380px) {
    .nav-mega__grid { grid-gap: 12px; }
    .nav-mega__card img { height: 108px; }
    .nav-mega__card > span { min-height: 58px; padding: 10px 8px; font-size: 12px; }
    .home-hero .hero-slide__title { font-size: 58px; }
}

@media (max-width: 1020px) {
    body.home .site-header,
    body.home .site-header:not(:hover):not(:focus-within):not(.is-scrolled) {
        border-bottom-color: rgba(12, 54, 93, .1);
        background: #fff;
        box-shadow: 0 3px 20px rgba(15, 39, 68, .09);
    }

    body.home .site-header:not(:hover):not(:focus-within):not(.is-scrolled) .site-logo img { filter: none; }
    body.home .site-header:not(:hover):not(:focus-within):not(.is-scrolled) .menu-toggle > span:not(.screen-reader-text) { background: var(--ink); }

    .site-navigation .menu > .menu-item--mega { position: relative; }
    .menu-item--mega > a { padding-right: 48px !important; }
    .nav-mega-toggle {
        position: absolute;
        top: 3px;
        right: 0;
        z-index: 2;
        display: block;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        color: var(--blue-700);
        background: transparent;
        font: inherit;
        font-size: 25px;
        cursor: pointer;
    }

    .menu-item--mega.mega-open > .nav-mega-toggle > span[aria-hidden] { display: inline-block; transform: rotate(45deg); }
    .nav-mega {
        position: static;
        display: none;
        padding: 12px 0 20px 16px;
        visibility: visible;
        opacity: 1;
        transform: none;
        border: 0;
        box-shadow: none;
        pointer-events: auto;
        transition: none;
    }

    .menu-item--mega:hover > .nav-mega,
    .menu-item--mega:focus-within > .nav-mega { display: none; }
    .menu-item--mega.mega-open > .nav-mega { display: block; }
    .nav-mega__inner { width: 100%; }
    .nav-mega__heading { margin-bottom: 9px; }
    .nav-mega__heading strong { font-size: 15px; }
    .nav-mega__heading > a { display: none; }
    .nav-mega__grid,
    .nav-mega--solutions .nav-mega__grid { display: block; }
    .nav-mega__card { border: 0; border-bottom: 1px solid #edf1f4; box-shadow: none; }
    .nav-mega__card:hover,
    .nav-mega__card:focus { border-color: #edf1f4; box-shadow: none; transform: none; }
    .nav-mega__card img { display: none; }
    .nav-mega__card > span { min-height: 40px; padding: 7px 0; justify-content: flex-start; font-size: 13px; text-align: left; }

    .home-hero,
    .hero-slide__content { min-height: 640px; }
    .hero-slide__content { padding-top: 76px; }
    .home-hero .hero-slide__title { font-size: 50px; }
}

@media (max-width: 680px) {
    .home-hero,
    .hero-slide__content { min-height: 610px; }
    .hero-slide__shade,
    .hero-slide--alternate .hero-slide__shade { background: rgba(2, 28, 53, .72); }
    .hero-slide__content { padding-top: 86px; padding-bottom: 92px; }
    .home-hero .hero-slide__title { max-width: 540px; font-size: 38px; }
    .hero-slide__description { font-size: 16px; line-height: 1.55; }
    .home-hero__controls { bottom: 24px; }
    .home-hero__arrow { width: 42px; height: 42px; }
    .home-hero__dot { width: 34px; }
    .home-hero__count { display: none; }
}

@media (prefers-reduced-motion: reduce) and (min-width: 99999px) {
    .site-header,
    .hero-slide,
    .hero-slide__content > *,
    .nav-mega,
    .nav-mega__card,
    .nav-mega__card img { transition: none !important; }
    .home-hero.is-motion-ready .hero-slide.is-active .hero-slide__media { animation: none; transform: none; }
    .home-hero__dot.is-active:after { width: 100%; transition: none; }
}
