.floating-cta {
    position: relative;
}

.floating-cta--half-bg-curve {
    padding-top: 50px;
}

.floating-cta--half-bg-curve:after {
    content: "";
    position: absolute;
    width: 100%;
    left: 0;
    height: 528px;
    background: linear-gradient(180deg, #f0f4f8 0%, #e8edf3 100%);
    top: 0;
    z-index: -1;
}

.floating-cta__wrapper {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #011635 0%, #042452 40%, #062d5e 70%, #011635 100%);
    border-radius: 14px;
    margin: 0 16px;
    padding: 230px 20px 36px;
    color: #fff;
}

.floating-cta__wrapper h2 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.floating-cta__wrapper p {
    font-size: 15px;
    line-height: 1.5;
}

.floating-cta__bg {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 14px;
    mix-blend-mode: luminosity;
    z-index: -1;
}

.floating-cta__man {
    position: absolute;
    left: -72px;
    top: -60px;
    width: 380px;
    height: 290px;
    max-width: unset;
}

.floating-cta__text .sub-heading {
    margin: 0 0 8px;
    font-size: 14px;
}

.floating-cta__svg {
    position: absolute;
    top: 502px;
    left: 0;
    width: 100%;
}

@media(min-width: 768px) {
    .floating-cta--half-bg-curve {
        padding-top: 184px;
    }

    .floating-cta__wrapper {
        margin: 0 52px;
        padding: 335px 26px 73px 43px;
    }

    .floating-cta__man {
        left: -60px;
        top: -184px;
        width: 680px;
        height: 517px;
    }

    .floating-cta__since-year {
        position: absolute;
        right: 22px;
        bottom: -3px;
        font-size: 35px;
        font-weight: 700;
        color: #fff;
        opacity: 0.24;
        width: max-content;
        line-height: 1em;
        text-transform: uppercase;
    }

    .floating-cta--half-bg-curve:after {
        height: 492px;
    }

    .floating-cta__svg {
        top: 438px;
    }
}

@media(min-width: 1200px) {
    .floating-cta__wrapper {
        margin: 0 63px;
        padding: 61px 95px 68px 55px;
        /* HAC-012: switch to a two-column grid so the captain illustration
           sits in its own column instead of absolutely overlapping the
           paragraph text (previously clipped "…every job" at this width). */
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
        column-gap: 40px;
        align-items: center;
    }

    .floating-cta__text {
        max-width: none;
        grid-column: 1;
        align-self: center;
    }

    .floating-cta__man {
        /* Drop the absolute positioning so grid can place the image beside
           (never on top of) the text. A small negative top/bottom margin
           preserves the "peeking out" aesthetic from the original design. */
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 540px;
        height: auto;
        max-height: 520px;
        object-fit: contain;
        grid-column: 2;
        justify-self: end;
        align-self: end;
        margin: -40px -40px -68px 0;
    }

    .floating-cta--half-bg-curve {
        padding-top: 50px;
        overflow: hidden;
    }

    .floating-cta--half-bg-curve:after {
        height: 316px;
    }

    .floating-cta__svg {
        top: 275px;
    }

    .floating-cta__since-year {
        font-size: 45px;
        right: 10px;
        bottom: -6px;
    }

    .floating-cta__text .btn {
        margin-top: -10px;
    }
}

@media(min-width: 1367px) {
    .floating-cta__wrapper {
        margin: 0 auto;
        max-width: 1258px;
        width: 90%;
        padding: 61px 95px 69px 95px;
        /* HAC-012: widen the image column a little at larger breakpoints. */
        grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
    }

    .floating-cta__man {
        max-width: 600px;
        max-height: 540px;
    }

    .floating-cta__svg {
        top: 219px;
    }
}

@media(min-width: 1600px) {
    .floating-cta__svg {
        top: 199px;
    }
}