/* =========================================
   MOBILE HERO — PREMIUM EDITORIAL
   About, Developments, Contact and Careers
   ========================================= */

@media (max-width: 767px) {

    /* Hero container */

    main.ml8 .ml8-hero,
    main .c6-list-hero {
        position: relative;
        isolation: isolate;

        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;

        width: 100%;
        height: 70vh;
        height: 70svh;
        min-height: 420px;

        padding: 0;
        gap: 0;

        background: #08463c;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* Full-width background image */

    main.ml8 .ml8-hero-image,
    main .c6-list-image,
    main .c6-list-hero > img {
        position: absolute;
        inset: 0;
        z-index: 0;

        width: 100%;
        max-width: none;
        height: 100%;

        margin: 0;
        padding: 0;

        aspect-ratio: auto;
        border-radius: 0;
        overflow: hidden;

        object-fit: cover;
        object-position: center;
    }

    /* Image inside wrapper */

    main.ml8 .ml8-hero-image img,
    main .c6-list-image img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;

        border-radius: 0;
    }

    /* Premium dark green gradient */

    main.ml8 .ml8-hero::after,
    main .c6-list-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;

        background: linear-gradient(
            to bottom,
            rgba(8, 70, 60, 0.02) 0%,
            rgba(8, 70, 60, 0.05) 30%,
            rgba(8, 70, 60, 0.35) 50%,
            rgba(5, 49, 40, 0.85) 80%,
            #042d25 100%
        );

        pointer-events: none;
    }

    /* Text content */

    main.ml8 .ml8-hero-copy,
    main .c6-list-hero > div:first-child {
        position: relative;
        z-index: 2;

        flex: none;
        width: 100%;
        max-width: none;
        min-width: 0;

        padding: 32px 24px 48px;
        margin: 0;

        text-align: center;
        color: #fff;
        box-sizing: border-box;
    }

    /* Hero title */

    main.ml8 .ml8-hero h1,
    main .c6-list-hero h1 {
        font-family: "Bitter", serif;
        font-size: clamp(28px, 7.5vw, 36px);
        font-weight: 500;
        line-height: 1.25;

        color: #fff;
        text-align: center;

        margin: 0;

        text-shadow: 0 2px 16px rgba(0, 0, 0, .2);
    }

    /* Hero subtitle */

    main.ml8 .ml8-hero h2,
    main .c6-list-hero h2 {
        font-family: "Titillium Web", sans-serif;
        font-size: 18px;
        font-weight: 400;
        line-height: 1.5;

        color: rgba(255, 255, 255, .95);
        text-align: center;

        margin: 12px 0 0;
    }

    /* Existing animated gold divider */

    main.ml8 .ml8-hero-copy .ml8-line,
    main .c6-list-hero .v5-divider {
        width: min(224px, 100%);
        margin: 18px auto 0;

        transform-origin: left center !important;
    }

    /* Careers: divider between title and subtitle */

    main.ml8 .ml8-hero-copy .ml8-line + h2 {
        margin-top: 16px;
    }
}

/* =========================================
   EXTRA SMALL PHONES
   ========================================= */

@media (max-width: 374px) {

    main.ml8 .ml8-hero,
    main .c6-list-hero {
        min-height: 380px;
    }

    main.ml8 .ml8-hero-copy,
    main .c6-list-hero > div:first-child {
        padding: 24px 20px 36px;
    }

    main.ml8 .ml8-hero h1,
    main .c6-list-hero h1 {
        font-size: 28px;
    }

    main.ml8 .ml8-hero h2,
    main .c6-list-hero h2 {
        font-size: 16px;
    }
}

/* =========================================
   MOBILE HERO — PREMIUM TYPOGRAPHY
   ========================================= */

@media (max-width: 767px) {

    /* Larger hero title */

    main.ml8 .ml8-hero h1,
    main .c6-list-hero h1 {
        font-family: "Bitter", serif;
        font-size: clamp(36px, 10vw, 44px);
        font-weight: 600;
        line-height: 1.2;

        letter-spacing: -0.5px;

        color: #fff;
        text-align: center;
        text-wrap: balance;
    }

    /* Larger hero subtitle */

    main.ml8 .ml8-hero h2,
    main .c6-list-hero h2 {
        font-family: "Titillium Web", sans-serif;
        font-size: 20px;
        font-weight: 400;
        line-height: 1.5;

        color: #fff;
        text-align: center;
        text-wrap: balance;

        margin-top: 14px;
    }

    /* Divider spacing */

    main.ml8 .ml8-hero-copy .ml8-line,
    main .c6-list-hero .v5-divider {
        margin-top: 20px;
    }
}

/* Extra-small phones */

@media (max-width: 374px) {

    main.ml8 .ml8-hero h1,
    main .c6-list-hero h1 {
        font-size: 34px;
    }

    main.ml8 .ml8-hero h2,
    main .c6-list-hero h2 {
        font-size: 18px;
    }
}

/* =========================================
   MOBILE HERO — EQUAL HEADING SIZES
   Except Careers
   ========================================= */

@media (max-width: 767px) {

    /* About, Contact and Developments */

    main.ml8 .ml8-hero h2,
    main .c6-list-hero h2 {
        font-size: clamp(36px, 10vw, 44px);
        font-weight: 400;
        line-height: 1.2;
        letter-spacing: -0.5px;
        margin-top: 8px;
        text-wrap: balance;
    }

    /* Careers — retain smaller subtitle */

    main.ml8 .ml8-hero-copy .ml8-line + h2 {
        font-size: 20px;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: normal;
        margin-top: 16px;
    }
}

/* Extra-small phones */

@media (max-width: 374px) {

    main.ml8 .ml8-hero h2,
    main .c6-list-hero h2 {
        font-size: 34px;
    }

    main.ml8 .ml8-hero-copy .ml8-line + h2 {
        font-size: 18px;
    }
}