.masthead--homepage {
    position: relative;
    background: var(--dark-blue);
}

.masthead--homepage::after {
    content: '';
    position: absolute;
    right: 0px;
    bottom: 0px;
    height: 202px;
    width: 100%;
    background: var(--white)
}

.masthead__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 202px);
}

.video-container {
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-vid {
    height: 100%;
    width: 100%;
    object-fit: cover;
    -o-object-fit: cover;
    font-family: 'object-fit: cover;';
    position: relative;
}

.video-container::after {
    content: '';
    height: 100%;
    width: 100%;
    position: absolute;
    right: 0px;
    top: 0px;
    opacity: 0.45;
    background: linear-gradient(124deg, #002848 12.85%, #00172A 82.1%);
}

.masthead__wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 60px 0 0;
    color: var(--white);
}

.masthead__text {
    text-align: center;
    max-width: 303px;
    margin: 0 auto 60px;
}

.masthead__text .sub-heading {
    margin: 0 0 8px;
    background: linear-gradient(107deg, #EDFAFF 4.02%, #D7F1FA 107.33%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.masthead__text h1 {
    color: var(--white);
    /* font-size: 40px; */
    font-weight: 600;
    line-height: 1.25em;
    margin-bottom: 20px;
    text-transform: none;
}

.masthead__text p {
    color: var(--white);
    font-size: 16px;
    line-height: 1.25em;
    margin-bottom: 35px;
}

@media (max-width: 1199px) {
    .masthead__text .btn-group {
        display: flex;
        flex-direction: column;
    }
}

.masthead__text .btn-primary {
    -webkit-text-fill-color: #0071CE;
    background: linear-gradient(90deg, #fff 0%, #fff 100%);
}

.masthead__text .btn-secondary {
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(25px);
    -webkit-text-fill-color: #fff;

    &:after {
        background: none;
        -webkit-text-fill-color: #fff;
    }
}

@media (min-width: 1200px) {
    .masthead__text .btn-secondary:hover {
        border: 1px solid rgba(255, 255, 255, .4);
        background: rgba(255, 255, 255, 1);
        backdrop-filter: blur(25px);
        -webkit-text-fill-color: var(--bright-blue);

        &:before {
            background-image: var(--bright-blue-linear);
        }

        &:after {
            -webkit-text-fill-color: var(--bright-blue);
        }
    }
}

.masthead__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.masthead__stats__left,
.masthead__stats__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.masthead__stats_col {
    padding: 15px;
    text-align: center;
    width: 162px;
    height: 131px;
    border-radius: 6px;
    border: 2px solid #EDFAFF;
    background: linear-gradient(107deg, #71BFFF 4.02%, #0071CE 107.33%);
    box-shadow: 0 4px 50px 4px rgba(0, 61, 112, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.masthead__stats__left .masthead__stats_col:nth-child(even),
.masthead__stats__right .masthead__stats_col:nth-child(odd) {
    border: 2px solid #71BFFF;
    background: linear-gradient(90deg, #0071CE 0%, #004883 100%);
}

.stat-number {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.10em;
    margin-bottom: 8px;
    text-transform: none;
    background: linear-gradient(107deg, #FFF 4.02%, #EDFAFF 107.33%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.masthead__stats_col p {
    color: var(--white);
    font-size: 16px;
    line-height: 1.25em;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .masthead--homepage::after {
        height: 62px;
    }

    .masthead__image {
        height: calc(100% - 62px);
    }

    .masthead__wrapper {
        padding: 88px 0 0;
    }

    .masthead__text {
        max-width: 663px;
    }

  

    .masthead__stats {
        flex-direction: row;
        gap: 15px;
    }

    .masthead__stats__left,
    .masthead__stats__right {
        gap: 15px;
    }

    .masthead__stats__right {
        flex-direction: row-reverse;
    }

    .masthead__stats_col {
        padding: 5px 20px;
        width: 154px;
        height: 131px;
    }
}

@media (min-width: 1200px) {
    .masthead--homepage::after {
        display: none;
    }

    .masthead__image {
        height: 100%;
        z-index: 2;
    }

    .masthead__image img {
        object-position: top;
    }

    .masthead__wrapper {
        padding: 238px 0 100px;
    }

    .masthead__content {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .masthead__text {
        max-width: 100%;
        width: calc(100% - 475px);
        padding-right: 40px;
        margin: 0;
        text-align: left;
    }

    .masthead__text h1 {
        /* font-size: 75px; */
        margin-bottom: 30px;
    }

    .masthead__text p {
        font-size: 18px;
        line-height: 1.5em;
    }

    .masthead__text .btn-group {
        margin-top: 110px;
    }

    .masthead__stats {
        flex-direction: row;
        gap: 22px 20px;
        width: 475px;
        align-items: flex-start;
    }

    .masthead__stats__left,
    .masthead__stats__right {
        gap: 22px 0;
        flex-direction: column;
    }

    .masthead__stats__right {
        flex-direction: column;
        margin-top: 47px;
    }

    .masthead__stats_col {
        padding: 5px 20px;
        width: 227px;
        height: 159px;
    }

    .stat-number {
        font-size: 65px;
        margin-bottom: 0;
    }

    .masthead__stats_col p {
        font-size: 18px;
    }

    .masthead__text .btn-primary:not(:hover):before {
        background: var(--middle-linear);
    }

    .masthead__text .btn-primary:hover {
        -webkit-text-fill-color: #fff;
        background: linear-gradient(90deg, #0071CE 0%, #0071CE 100%);
    }
}

@media (max-width: 1199px) {
    .masthead--homepage::after {
        display: none;
    }
}

.masthead__graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    svg {
        width: 122px;
        height: auto;
        position: absolute;
        bottom: 0;
        left: 0;
        opacity: 0;
    }
}

#js-masthead-graphics-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.masthead__wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    svg {
        width: 1000px;
        height: auto;
    }
}