/* =========================================================
   TWP — Section 02 Corporate Hero
   FINAL RESPONSIVE CSS
   ========================================================= */

/* ---------------------------------------------------------
   1201px+ — approved desktop composition
   --------------------------------------------------------- */
@media (min-width: 1201px) {
    .twp-hero--brand {
        min-height: calc(100vh - 102px);
    }

    .twp-hero--brand .twp-hero__container {
        width: min(1380px, calc(100% - 80px));
        min-height: calc(100vh - 102px);
        padding: 18px 0 24px;
        grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr);
        grid-template-rows: 1fr auto;
        column-gap: 28px;
    }

    .twp-hero--brand .twp-hero__visual {
        min-height: 560px;
    }

    .twp-hero--brand .twp-hero__brand-mark,
    .twp-hero--brand .twp-hero__bird {
        width: min(700px, 112%);
        max-width: 700px;
        transform: translate(4%, 4%);
    }
}

/* ---------------------------------------------------------
   1001px–1200px
   --------------------------------------------------------- */
@media (min-width: 1001px) and (max-width: 1200px) {
    .twp-hero--brand {
        min-height: 700px;
    }

    .twp-hero--brand .twp-hero__container {
        width: calc(100% - 56px);
        max-width: 1120px;
        min-height: 700px;
        padding: 22px 0 28px;
        grid-template-columns: minmax(0, 1fr) minmax(450px, .95fr);
        grid-template-rows: 1fr auto;
        column-gap: 18px;
    }

    .twp-hero--brand .twp-hero__title {
        font-size: clamp(48px, 5.2vw, 68px);
    }

    .twp-hero--brand .twp-hero__description {
        font-size: 17px;
    }

    .twp-hero--brand .twp-hero__visual {
        min-height: 520px;
    }

    .twp-hero--brand .twp-hero__brand-mark,
    .twp-hero--brand .twp-hero__bird {
        width: min(610px, 118%);
        max-width: 610px;
        transform: translate(4%, 4%);
    }

    .twp-hero--brand .twp-hero__stats {
        gap: 14px;
        margin-top: 12px;
    }

    .twp-hero--brand .twp-stat {
        min-height: 96px;
        padding: 17px 16px;
        gap: 12px;
    }

    .twp-hero--brand .twp-stat strong {
        font-size: 23px;
    }

    .twp-hero--brand .twp-stat div > span {
        font-size: 13px;
    }
}

/* ---------------------------------------------------------
   821px–1000px
   --------------------------------------------------------- */
@media (min-width: 821px) and (max-width: 1000px) {
    .twp-hero--brand {
        min-height: auto;
    }

    .twp-hero--brand .twp-hero__container {
        width: calc(100% - 48px);
        max-width: 900px;
        min-height: auto;
        padding: 48px 0 34px;
        grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 24px;
    }

    .twp-hero--brand .twp-hero__eyebrow {
        margin-bottom: 18px;
        font-size: 12px;
        letter-spacing: .09em;
    }

    .twp-hero--brand .twp-hero__eyebrow-line {
        flex-basis: 30px;
        width: 30px !important;
        min-width: 30px;
    }

    .twp-hero--brand .twp-hero__title {
        font-size: clamp(42px, 5.8vw, 58px);
    }

    .twp-hero--brand .twp-hero__description {
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.65;
    }

    .twp-hero--brand .twp-hero__buttons {
        margin-top: 24px;
    }

    .twp-hero--brand .twp-hero__visual {
        min-height: 450px;
        height: 450px;
    }

    .twp-hero--brand .twp-hero__brand-mark,
    .twp-hero--brand .twp-hero__bird {
        width: min(520px, 125%);
        max-width: 520px;
        transform: translate(3%, 3%);
    }

    .twp-hero--brand .twp-hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 0;
    }

    .twp-hero--brand .twp-stat {
        min-height: 90px;
        padding: 16px 18px;
    }
}

/* ---------------------------------------------------------
   521px–820px
   --------------------------------------------------------- */
@media (min-width: 521px) and (max-width: 820px) {
    .twp-hero--brand {
        min-height: auto;
    }

    .twp-hero--brand .twp-hero__container {
        width: min(calc(100% - 40px), 680px);
        min-height: auto;
        padding: 42px 0 30px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .twp-hero--brand .twp-hero__content {
        width: 100%;
        max-width: none;
    }

    .twp-hero--brand .twp-hero__eyebrow {
        margin-bottom: 18px;
        font-size: 11px;
        letter-spacing: .085em;
    }

    .twp-hero--brand .twp-hero__eyebrow-line {
        flex-basis: 28px;
        width: 28px !important;
        min-width: 28px;
    }

    .twp-hero--brand .twp-hero__title {
        font-size: clamp(43px, 8vw, 58px);
    }

    .twp-hero--brand .twp-hero__description {
        margin-top: 22px;
        font-size: 16px;
    }

    .twp-hero--brand .twp-hero__buttons {
        margin-top: 24px;
    }

    .twp-hero--brand .twp-hero__visual {
        order: 2;
        width: 100%;
        min-height: 430px;
        height: 430px;
        margin: -2px 0 0;
    }

    .twp-hero--brand .twp-hero__brand-mark,
    .twp-hero--brand .twp-hero__bird {
        width: min(570px, 120%);
        max-width: none;
        transform: translate(3%, 2%);
    }

    .twp-hero--brand .twp-hero__stats {
        order: 3;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 8px;
    }

    .twp-hero--brand .twp-stat {
        min-height: 88px;
        padding: 15px 16px;
        gap: 12px;
    }

    .twp-hero--brand .twp-stat strong {
        font-size: 23px;
    }
}

/* ---------------------------------------------------------
   0–520px
   --------------------------------------------------------- */
@media (max-width: 520px) {
    .twp-hero--brand {
        min-height: auto;
        height: auto;
    }

    .twp-hero--brand .twp-hero__container {
        width: calc(100% - 28px);
        min-height: auto;
        padding: 30px 0 24px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .twp-hero--brand .twp-hero__content {
        width: 100%;
        max-width: none;
    }

    .twp-hero--brand .twp-hero__eyebrow {
        width: 100%;
        max-width: 100%;
        margin-bottom: 17px;
        gap: 9px;
        font-size: 10px;
        line-height: 1.3;
        letter-spacing: .06em;
        white-space: normal;
    }

    .twp-hero--brand .twp-hero__eyebrow-line {
        flex: 0 0 25px;
        width: 25px !important;
        min-width: 25px;
    }

    .twp-hero--brand .twp-hero__title {
        width: 100%;
        max-width: none;
        font-size: clamp(38px, 11.3vw, 51px);
        line-height: .98;
        letter-spacing: -.052em;
    }

    .twp-hero--brand .twp-hero__description {
        width: 100%;
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.62;
    }

    .twp-hero--brand .twp-hero__buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 22px;
    }

    .twp-hero--brand .twp-hero__button {
        width: 100%;
        min-height: 53px;
        padding: 0 18px;
    }

    .twp-hero--brand .twp-hero__visual {
        order: 2;
        width: 100%;
        min-height: 325px;
        height: 325px;
        margin: -2px 0 0;
    }

    .twp-hero--brand .twp-hero__brand-mark,
    .twp-hero--brand .twp-hero__bird {
        width: 126%;
        max-width: none;
        transform: translate(2%, 2%);
    }

    .twp-hero--brand .twp-hero__halo--outer {
        width: 400px;
    }

    .twp-hero--brand .twp-hero__halo--middle {
        width: 315px;
    }

    .twp-hero--brand .twp-hero__halo--inner {
        width: 225px;
    }

    .twp-hero--brand .twp-hero__stats {
        order: 3;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 8px;
    }

    .twp-hero--brand .twp-stat {
        min-height: 78px;
        padding: 14px 15px;
        gap: 12px;
        border-radius: 12px;
    }

    .twp-hero--brand .twp-stat__icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .twp-hero--brand .twp-stat strong {
        font-size: 22px;
    }

    .twp-hero--brand .twp-stat div > span {
        margin-top: 5px;
        font-size: 13px;
    }

    .twp-hero--brand .twp-hero__tech-lines {
        display: none;
    }
}

/* ---------------------------------------------------------
   ≤380px
   --------------------------------------------------------- */
@media (max-width: 380px) {
    .twp-hero--brand .twp-hero__container {
        width: calc(100% - 24px);
        padding-top: 26px;
    }

    .twp-hero--brand .twp-hero__title {
        font-size: 37px;
    }

    .twp-hero--brand .twp-hero__description {
        font-size: 14px;
    }

    .twp-hero--brand .twp-hero__visual {
        min-height: 285px;
        height: 285px;
    }

    .twp-hero--brand .twp-hero__brand-mark,
    .twp-hero--brand .twp-hero__bird {
        width: 132%;
        transform: translate(1%, 2%);
    }
}

/* Final conflict protection */
.twp-hero--brand {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.twp-hero--brand .twp-hero__container {
    margin-top: 0 !important;
}

.twp-hero--brand .twp-hero__content > *:first-child {
    margin-top: 0 !important;
}
