/* 888 CAPITAL — COMPACT MOBILE HOME */

@media (max-width: 767.98px) {

    /* Use almost all available phone width */
    #content.app-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hc-home {
        width: 100% !important;
        min-height: calc(100svh - 70px) !important;
    }

    /* Compact city hero */
    .hc-hero {
        min-height: 0 !important;
        padding: 0 0 10px !important;
    }

    .hc-copy {
        width: 100% !important;
        padding: 16px 16px 6px !important;
    }

    .hc-city {
        background-position: 64% top !important;
    }

    .hc-eyebrow {
        margin-bottom: 5px !important;
        font-size: 10px !important;
        letter-spacing: .22em !important;
    }

    .hc-title {
        margin: 0 !important;
        font-size: 46px !important;
        line-height: .92 !important;
        letter-spacing: -.04em !important;
        white-space: nowrap !important;
    }

    .hc-strap {
        margin-top: 8px !important;
        font-size: 9px !important;
        line-height: 1.3 !important;
        letter-spacing: .16em !important;
        white-space: nowrap !important;
    }

    .hc-signal {
        width: 58% !important;
        height: 1px !important;
        margin: 11px 0 10px !important;
    }

    .hc-intro {
        max-width: 92% !important;
        margin: 0 !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    /* Compact quote */
    .hc-quote {
        grid-template-columns: auto 1fr auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 11px 0 0 !important;
        font-size: 12px !important;
        line-height: 1.28 !important;
    }

    .hc-quote-mark {
        font-size: 25px !important;
        line-height: .8 !important;
    }

    .hc-quote cite {
        margin-top: 3px !important;
        font-size: 8px !important;
        letter-spacing: .13em !important;
    }

    /* Three principles on ONE compact row */
    .hc-pillars {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0,1fr)) !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 8px 5px 10px !important;
        gap: 0 !important;
    }

    .hc-pillar {
        min-width: 0 !important;
        padding: 7px 5px !important;
        text-align: center !important;
    }

    .hc-pillar:not(:last-child)::after {
        top: 7px !important;
        right: 0 !important;
        bottom: 7px !important;
        left: auto !important;
        width: 1px !important;
        height: auto !important;
    }

    .hc-pillar h2 {
        margin: 0 0 5px !important;
        font-size: 13px !important;
        letter-spacing: .08em !important;
        white-space: nowrap !important;
    }

    .hc-pillar h2::after {
        width: 72% !important;
        height: 1px !important;
        margin: 4px auto 0 !important;
    }

    .hc-pillar p {
        margin: 0 !important;
        font-size: 9px !important;
        line-height: 1.25 !important;
    }
}

/* 888 HOME MOBILE VERTICAL PILLARS V2 */

@media (max-width: 767.98px) {

    .hc-home {
        display: flex !important;
        flex-direction: column !important;
        min-height: calc(100svh - 70px) !important;
    }

    .hc-hero {
        flex: 0 0 auto !important;
    }

    /* Research → Execution → Control vertically again */
    .hc-pillars {
        flex: 1 1 auto !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: repeat(3, minmax(0,1fr)) !important;
        width: 100% !important;
        padding: 4px 14px 10px !important;
    }

    .hc-pillar {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-height: 0 !important;
        padding: 9px 10px !important;
    }

    /* Horizontal separators like the original mobile design */
    .hc-pillar:not(:last-child)::after {
        top: auto !important;
        left: 12% !important;
        right: 12% !important;
        bottom: 0 !important;
        width: auto !important;
        height: 1px !important;
    }
}


/* 888 HOME MOBILE SPACING V5 */

@media (max-width: 767.98px) {

    /* Breathing room underneath main header */
    .hc-hero {
        padding-top: 20px !important;
        padding-bottom: 18px !important;
    }

    .hc-copy {
        padding-top: 18px !important;
    }

    /* Quote becomes exactly two balanced lines */
    .hc-quote {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .hc-quote br:first-of-type {
        display: none !important;
    }

    /* More relaxed lower section */
    .hc-pillars {
        gap: 12px !important;
        padding-top: 14px !important;
        padding-bottom: 18px !important;
    }

    .hc-pillar {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    /* Remove the unwanted white divider lines */
    .hc-pillar:not(:last-child)::after {
        display: none !important;
        content: none !important;
    }
}


/* 888 HOME VERTICAL BALANCE V6 */

@media (max-width: 767.98px) {

    /* Let the page follow its content naturally */
    .hc-home {
        min-height: 0 !important;
    }

    /* TOP SECTION — more luxurious breathing room */
    .hc-hero {
        flex: none !important;
        padding-top: 22px !important;
        padding-bottom: 30px !important;
    }

    /* Keep the title group exactly as it is */
    .hc-copy {
        padding-top: 18px !important;
        padding-bottom: 12px !important;
    }

    /* More space after turquoise signal line */
    .hc-signal {
        margin-bottom: 24px !important;
    }

    /* Intro text gets breathing room before quote */
    .hc-intro {
        margin-top: 0 !important;
        margin-bottom: 26px !important;
    }

    /* Quote remains two balanced lines */
    .hc-quote {
        margin-top: 0 !important;
        margin-bottom: 30px !important;
    }

    /* BOTTOM SECTION — compact instead of filling half screen */
    .hc-pillars {
        flex: none !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 8px !important;

        padding:
            22px 14px
            24px !important;
    }

    .hc-pillar {
        min-height: 0 !important;
        padding: 14px 10px !important;
    }

    .hc-pillar h2 {
        margin-top: 0 !important;
        margin-bottom: 7px !important;
    }

    .hc-pillar p {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Absolutely no big divider lines */
    .hc-pillar:not(:last-child)::after {
        display: none !important;
        content: none !important;
    }
}


/* 888 HOME SPACING REDISTRIBUTION V7 */

@media (max-width: 767.98px) {

    /* Leave Welcome / 888 CAPITAL / strap exactly where they are */

    /* More breathing room before descriptive text */
    .hc-signal {
        margin-bottom: 34px !important;
    }

    /* More breathing room between text and quote */
    .hc-intro {
        margin-top: 0 !important;
        margin-bottom: 34px !important;
    }

    /* Less empty space underneath quote */
    .hc-quote {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
    }

    .hc-copy {
        padding-bottom: 0 !important;
    }

    .hc-hero {
        padding-bottom: 10px !important;
    }
}


/* 888 HOME CONTINUOUS BACKGROUND V8 */

/* FULL DESKTOP */
@media (min-width: 768px) {

    /* City now covers the WHOLE Home page, not just the hero */
    .hc-home {
        position: relative !important;
        background:
            linear-gradient(
                90deg,
                rgba(2,7,13,.97) 0%,
                rgba(2,7,13,.78) 35%,
                rgba(2,7,13,.30) 70%,
                rgba(2,7,13,.18) 100%
            ),
            linear-gradient(
                180deg,
                rgba(2,7,13,.06) 0%,
                rgba(2,7,13,.16) 55%,
                rgba(2,7,13,.70) 100%
            ),
            url("../images/home-city.jpg?v=20260805c")
            55% center / cover no-repeat !important;
    }

    /* Old partial-width copy of city no longer needed */
    .hc-city {
        display: none !important;
    }

    /* Remove visible line between hero and pillars */
    .hc-hero {
        border-bottom: 0 !important;
    }

    .hc-pillars {
        background: transparent !important;
        border-top: 0 !important;
    }

    /* Slightly more refined desktop typography */
    .hc-intro {
        font-size: 16px !important;
        line-height: 1.55 !important;
    }

    .hc-quote {
        font-size: 18px !important;
        line-height: 1.45 !important;
    }
}


/* MOBILE + HALF-WIDTH DESKTOP */
@media (max-width: 767.98px) {

    /*
       If the Home content ends before the browser viewport,
       continue the same clean dark surface instead of exposing
       the site's blue grid underneath.
    */
    #content.app-content {
        background: #02070d !important;
    }

    .hc-home {
        background-color: #02070d !important;
    }
}


/* Half-screen laptop layouts should still fill the window */
@media (min-width: 600px) and (max-width: 767.98px) {
    .hc-home {
        min-height: calc(100svh - 70px) !important;
    }
}
