.buildline-hero {
    margin-bottom: 0;
    padding-bottom: 25px;
}

.banner.buildline-hero > .container {
    display: block;
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: 20px;
}

.buildline-hero__frame,
.buildline-hero__slider,
.buildline-hero__slide {
    height: 450px;
}

.buildline-hero__frame {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #172033;
    box-shadow: 0 18px 46px rgba(23, 32, 51, .14);
}

.buildline-hero__slider {
    overflow: hidden;
    border-radius: inherit;
}

.banner .buildline-hero__slide {
    display: grid;
    overflow: hidden;
    width: 100%;
    border-radius: 0;
    background: #df1820;
    color: #fff;
    aspect-ratio: auto;
}

.buildline-hero__slider:not(.swiper-initialized) > .swiper-wrapper {
    display: block;
    width: 100%;
    height: 100%;
}

.buildline-hero__slider:not(.swiper-initialized) .buildline-hero__slide:first-child {
    display: grid;
    width: 100%;
}

.buildline-hero__slider:not(.swiper-initialized) .buildline-hero__slide:not(:first-child) {
    display: none;
}

.buildline-hero__slide--intro {
    grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
    gap: 48px;
    align-items: center;
    padding: 36px 70px;
    background:
        linear-gradient(110deg, #df1820 0%, #df1820 64%, #c51219 100%);
}

/* Preserve the existing production home-value banner as the third slide. */
.banner .buildline-hero__slide--legacy {
    display: block;
    margin: 0;
    background: transparent;
}

.buildline-hero__slide--legacy.home-value > .container {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
}

.buildline-hero__slide--legacy.home-value h1 {
    max-width: 760px;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: normal;
}

@media (min-width: 1181px) {
    .buildline-hero__slide--legacy.home-value h1 {
        font-size: 48px;
    }
}

.buildline-hero__eyebrow,
.buildline-hero__variant {
    display: block;
    margin-bottom: 13px;
    color: #ff5258;
    font-family: var(--font-bold);
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.buildline-hero__eyebrow {
    color: rgba(255, 255, 255, .7);
}

.buildline-hero__slide h1,
.buildline-hero__slide h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-bold);
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.buildline-hero__slide h1 {
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.buildline-hero__slide h2 {
    font-size: 36px;
    line-height: 1.24;
    letter-spacing: -.015em;
}

.buildline-hero__intro-copy > p,
.buildline-hero__copy > p {
    max-width: 620px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    line-height: 1.48;
}

.buildline-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 27px;
}

.buildline-hero__button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    width: 300px;
    box-sizing: border-box;
    gap: 18px;
    padding: 12px 28px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-family: var(--font-bold);
    font-size: 18px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.buildline-hero__slide--intro .buildline-hero__button {
    min-width: 0;
    width: 281px;
    gap: 14px;
    padding-inline: 20px;
    font-size: 16px;
}

.buildline-hero__button > span {
    color: inherit !important;
    font-size: 24px;
    font-weight: 400;
    line-height: .7;
}

.buildline-hero__button:hover,
.buildline-hero__button:focus-visible {
    text-decoration: none;
}

.buildline-hero__button--primary {
    background: #fff;
    color: #a7191e;
}

.buildline-hero__button--primary:hover,
.buildline-hero__button--primary:focus-visible {
    background: #f4f2ee;
    color: #741114;
}

.buildline-hero__button--ghost {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(168, 14, 20, .28);
    color: #fff;
}

.buildline-hero__button--ghost:hover,
.buildline-hero__button--ghost:focus-visible {
    border-color: #fff;
    background: #fff;
    color: #172033;
}

.buildline-hero__button--light {
    align-self: flex-start;
    margin-top: 35px;
    background: #fff;
    color: #a7191e;
}

.buildline-hero__button--light:hover,
.buildline-hero__button--light:focus-visible {
    background: #f4f2ee;
    color: #741114;
}

.buildline-hero__proof {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 5px;
    gap: 1px;
    background: rgba(255, 255, 255, .16);
}

.buildline-hero__proof > div {
    display: grid;
    gap: 5px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, .07);
}

.buildline-hero__proof strong,
.buildline-hero__proof span {
    display: block;
    color: #fff;
}

.buildline-hero__proof strong {
    font-family: var(--font-bold);
    font-size: 23px;
    line-height: 1.15;
}

.buildline-hero__proof span {
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
}

.buildline-hero__slide--premium,
.buildline-hero__slide--supply {
    grid-template-columns: 53% 47%;
}

.buildline-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 48px 70px;
    background: #df1820;
    position: relative;
    z-index: 2;
}

.buildline-hero__slide--premium .buildline-hero__copy::after {
    position: absolute;
    top: 0;
    right: -38px;
    bottom: 0;
    width: 39px;
    background: #df1820;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    content: '';
}

.buildline-hero__variant {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.buildline-hero__materials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
    background: #17191d;
}

.buildline-hero__materials figure {
    position: relative;
    overflow: hidden;
    min-width: 0;
    margin: 0;
    border-left: 3px solid #df1820;
}

.buildline-hero__materials picture,
.buildline-hero__materials img,
.buildline-hero__supply-picture,
.buildline-hero__supply-picture img {
    display: block;
    width: 100%;
    height: 100%;
}

.buildline-hero__materials img,
.buildline-hero__supply-picture img {
    object-fit: cover;
}

.buildline-hero__materials figure:nth-child(1) img {
    object-position: 50% 45%;
}

.buildline-hero__materials figure:nth-child(2) img {
    object-position: 50% 45%;
}

.buildline-hero__materials figure:nth-child(3) img {
    object-position: 56% 48%;
}

.buildline-hero__materials figure::after {
    position: absolute;
    inset: 52% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
    content: '';
    pointer-events: none;
}

.buildline-hero__materials figcaption {
    position: absolute;
    right: 13px;
    bottom: 20px;
    left: 24px;
    z-index: 1;
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.2;
}

.buildline-hero__materials figure:first-child figcaption {
    left: 70px;
}

.buildline-hero__supply-picture {
    position: relative;
    overflow: hidden;
}

.buildline-hero__supply-picture::before {
    position: absolute;
    inset: 0 auto 0 -1px;
    z-index: 1;
    width: 62px;
    background: #df1820;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    content: '';
}

.buildline-hero__supply-picture img {
    object-position: center 45%;
}

.buildline-hero__navigation {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    z-index: 5;
    display: flex;
    height: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
    transform: translateY(-50%);
}

.buildline-hero__nav {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 3px 14px rgba(0, 0, 0, .2);
    cursor: pointer;
    pointer-events: auto;
}

.buildline-hero__nav::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #2a2d31;
    border-right: 2px solid #2a2d31;
    content: '';
}

.buildline-hero__prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.buildline-hero__next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.buildline-hero__nav:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.buildline-hero__counter {
    position: absolute;
    right: 18px;
    bottom: 16px;
    z-index: 4;
    min-width: 48px;
    padding: 8px 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 3px 14px rgba(0, 0, 0, .18);
    color: #a7191e;
    font-family: var(--font-bold);
    font-size: 11px;
    line-height: 1;
}

@media (max-width: 980px) {
    .buildline-hero__slide h1 {
        font-size: 38px;
    }

    .buildline-hero__slide h2 {
        font-size: 34px;
    }

    .buildline-hero__slide--intro {
        grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr);
        gap: 28px;
        padding: 32px;
    }

    .buildline-hero__copy {
        padding: 38px;
    }

    .buildline-hero__button {
        min-width: 250px;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .banner.buildline-hero {
        padding-inline: 0;
    }

    .banner.buildline-hero > .container {
        width: calc(100% - 32px);
        padding-inline: 0;
    }

    .buildline-hero__frame,
    .buildline-hero__slider,
    .buildline-hero__slide {
        height: min(613px, calc((100vw - 32px) * 1.635));
        min-height: 540px;
    }

    .buildline-hero__slide--intro {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 22px;
        align-content: center;
        padding: 30px 27px;
    }

    .buildline-hero__slide--legacy.home-value {
        margin: 0;
    }

    .buildline-hero__slide--legacy.home-value > .container {
        width: 100%;
        height: 100%;
        grid-template-columns: 1fr;
        align-content: center;
        gap: 22px;
        padding: 30px 27px;
    }

    .buildline-hero__slide--legacy.home-value h1 {
        font-size: clamp(31px, 9.3vw, 40px);
    }

    .buildline-hero__slide--legacy .home-value__lead {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.42;
    }

    .buildline-hero__slide--legacy .home-value__actions {
        display: flex;
        margin-top: 21px;
    }

    .buildline-hero__slide--legacy .home-value__button {
        width: auto;
        min-height: 44px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .buildline-hero__slide--legacy .home-value__button--secondary {
        display: none;
    }

    .buildline-hero__slide--legacy .home-value__proof {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .buildline-hero__slide--legacy .home-value__proof-item {
        align-content: start;
        padding: 14px 10px;
    }

    .buildline-hero__slide--legacy .home-value__proof-item strong {
        font-size: 16px;
    }

    .buildline-hero__slide--legacy .home-value__proof-item span {
        font-size: 11px;
    }

    .buildline-hero__slide h1 {
        font-size: clamp(31px, 9.3vw, 40px);
    }

    .buildline-hero__slide h2 {
        font-size: clamp(29px, 8.2vw, 36px);
    }

    .buildline-hero__intro-copy > p,
    .buildline-hero__copy > p {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.42;
    }

    .buildline-hero__slide--intro .buildline-hero__intro-copy > p {
        padding-inline: 30px;
    }

    .buildline-hero__actions {
        margin-top: 21px;
    }

    .buildline-hero__button {
        width: 100%;
        min-height: 44px;
        min-width: 0;
        padding: 10px 16px;
        font-size: 14px;
    }

    .buildline-hero__slide--intro .buildline-hero__button {
        width: 100%;
        gap: 12px;
        padding-inline: 16px;
        font-size: 14px;
    }

    .buildline-hero__button--ghost {
        display: none;
    }

    .buildline-hero__proof {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .buildline-hero__proof > div {
        align-content: start;
        padding: 14px 10px;
    }

    .buildline-hero__proof strong {
        font-size: 16px;
    }

    .buildline-hero__proof span {
        font-size: 11px;
    }

    .buildline-hero__slide--premium,
    .buildline-hero__slide--supply {
        grid-template-columns: 1fr;
        grid-template-rows: 43% 57%;
        grid-template-areas: "visual" "copy";
    }

    .buildline-hero__copy {
        grid-area: copy;
        justify-content: flex-start;
        padding: 27px 27px 32px;
    }

    .buildline-hero__materials,
    .buildline-hero__supply-picture {
        grid-area: visual;
    }

    .buildline-hero__materials figure {
        border-top: 0;
        border-left-width: 2px;
    }

    .buildline-hero__materials figure:first-child {
        border-left: 0;
    }

    .buildline-hero__materials figcaption {
        right: 8px;
        bottom: 11px;
        left: 8px;
        font-size: 11px;
    }

    .buildline-hero__materials figure:first-child figcaption {
        left: 8px;
    }

    .buildline-hero__button--light {
        width: auto;
        margin-top: 20px;
        padding-inline: 18px;
    }

    .buildline-hero__slide--premium .buildline-hero__copy::after {
        display: none;
    }

    .buildline-hero__supply-picture::before {
        inset: auto 0 -1px;
        width: auto;
        height: 42px;
        clip-path: polygon(0 52%, 100% 0, 100% 100%, 0 100%);
    }

    .buildline-hero__navigation {
        padding: 0 8px;
    }

    .buildline-hero__frame[data-active-layout="visual"] .buildline-hero__navigation {
        top: 21.5%;
    }

    .buildline-hero__nav {
        width: 36px;
        height: 36px;
    }

    .buildline-hero__counter {
        right: 12px;
        bottom: 11px;
    }
}

@media (max-width: 370px) {
    .buildline-hero__frame,
    .buildline-hero__slider,
    .buildline-hero__slide {
        min-height: 620px;
    }

    .buildline-hero__slide--premium,
    .buildline-hero__slide--supply {
        grid-template-rows: 38% 62%;
    }

    .buildline-hero__slide h1 {
        font-size: 29px;
    }

    .buildline-hero__slide h2 {
        font-size: 27px;
    }

    .buildline-hero__intro-copy > p,
    .buildline-hero__copy > p {
        font-size: 14px;
    }

    .buildline-hero__copy {
        padding: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .buildline-hero__button,
    .buildline-hero__nav {
        transition: none;
    }
}
