.home-hero-section {
    padding-top: 18px;
    background: var(--color-bg);
}

.home-hero {
    position: relative;
    width: 100%;
    height: clamp(350px, 25vw, 410px);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: #071014;
    isolation: isolate;
}

.home-hero__media {
    position: absolute;
    inset: 0;
    z-index: -3;
    display: block;
    width: 100%;
    height: 100%;
}

.home-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.home-hero__media--light {
    visibility: hidden;
    opacity: 0;
}

html[data-theme="light"] .home-hero__media--dark {
    visibility: hidden;
    opacity: 0;
}

html[data-theme="light"] .home-hero__media--light {
    visibility: visible;
    opacity: 1;
}

.home-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(4, 10, 13, .84) 0%,
            rgba(4, 10, 13, .46) 31%,
            rgba(4, 10, 13, .04) 58%,
            transparent 78%
        );
    pointer-events: none;
}

.home-hero__content {
    display: flex;
    width: 46%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    padding:
        36px
        clamp(48px, 6vw, 94px);
}

.home-hero__eyebrow {
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: clamp(11px, .9vw, 14px);
    font-weight: 750;
    letter-spacing: .025em;
}

.home-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 4.3vw, 69px);
    font-weight: 900;
    line-height: .87;
    letter-spacing: -.05em;
}

.home-hero__title-line {
    display: block;
}

.home-hero__title-accent {
    color: var(--color-primary);
}

.home-hero__button {
    display: inline-flex;
    width: fit-content;
    min-width: 180px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
    padding-inline: 24px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 7px;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.home-hero__button:hover {
    color: #fff;
    filter: brightness(1.05);
}

.home-hero__button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-hero__pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.home-hero__pagination button {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    cursor: pointer;
}

.home-hero__pagination button.is-active {
    color: var(--color-primary);
}

.home-hero__pagination > span {
    display: block;
    width: 18px;
    height: 1px;
    background: rgba(255, 255, 255, .5);
}

.home-hero__arrows {
    position: absolute;
    top: 50%;
    right: 28px;
    display: grid;
    gap: 12px;
    transform: translateY(-50%);
}

.home-hero__arrows button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 50%;
    background: rgba(0, 0, 0, .15);
    color: #fff;
    cursor: pointer;
    place-items: center;
}

.home-hero__arrows button.is-primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.home-hero__arrows svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Light mode */
html[data-theme="light"] .home-hero {
    background: #f2f5f6;
}

html[data-theme="light"] .home-hero__shade {
    background:
        linear-gradient(
            90deg,
            rgba(247, 249, 250, .82) 0%,
            rgba(247, 249, 250, .38) 32%,
            rgba(247, 249, 250, .04) 58%,
            transparent 76%
        );
}

html[data-theme="light"] .home-hero h1 {
    color: #11181c;
}

html[data-theme="light"] .home-hero__title-accent {
    color: var(--color-primary);
}

html[data-theme="light"] .home-hero__pagination button {
    color: rgba(17, 24, 28, .5);
}

html[data-theme="light"] .home-hero__pagination button.is-active {
    color: var(--color-primary);
}

html[data-theme="light"] .home-hero__pagination > span {
    background: rgba(17, 24, 28, .32);
}

html[data-theme="light"] .home-hero__arrows button {
    border-color: rgba(17, 24, 28, .28);
    background: rgba(255, 255, 255, .68);
    color: #11181c;
}

html[data-theme="light"] .home-hero__arrows button.is-primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

/* Tablet */
@media (max-width: 1024px) {
    .home-hero {
        height: 350px;
    }

    .home-hero__content {
        width: 49%;
        padding-inline: 42px;
    }

    .home-hero h1 {
        font-size: 52px;
    }
}

/* Mobile: wide rectangular banner */
@media (max-width: 767px) {
    .home-hero-section {
        padding-top: 10px;
    }

    .home-hero-section > .container {
        padding-inline: 14px;
    }

    .home-hero {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 1.72 / 1;
        border-radius: 15px;
    }

    .home-hero__media img {
        object-fit: cover;
        object-position: center;
    }

    .home-hero__media--dark img {
        object-position: 58% 68%;
    }

    .home-hero__media--light img {
        object-position: 60% 68%;
    }

    .home-hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(4, 10, 13, .84) 0%,
                rgba(4, 10, 13, .46) 37%,
                rgba(4, 10, 13, .02) 66%,
                transparent 82%
            );
    }

    html[data-theme="light"] .home-hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(247, 249, 250, .76) 0%,
                rgba(247, 249, 250, .34) 38%,
                rgba(247, 249, 250, 0) 67%
            );
    }

    .home-hero__content {
        width: 48%;
        height: 100%;
        padding:
            18px
            0
            16px
            20px;
    }

    .home-hero__eyebrow {
        margin-bottom: 6px;
        font-size: 7px;
        white-space: nowrap;
    }

    .home-hero h1 {
        max-width: 150px;
        font-size: clamp(27px, 8vw, 34px);
        line-height: .89;
    }

    .home-hero__button {
        min-width: 126px;
        min-height: 38px;
        gap: 10px;
        margin-top: 12px;
        padding-inline: 14px;
        font-size: 9px;
    }

    .home-hero__button svg {
        width: 14px;
        height: 14px;
    }

    .home-hero__pagination {
        gap: 7px;
        margin-top: 13px;
    }

    .home-hero__pagination button {
        font-size: 8px;
    }

    .home-hero__pagination > span {
        width: 13px;
    }

    .home-hero__arrows {
        display: none;
    }
}

@media (max-width: 390px) {
    .home-hero {
        aspect-ratio: 1.62 / 1;
    }

    .home-hero__content {
        width: 50%;
        padding-left: 17px;
    }

    .home-hero h1 {
        max-width: 136px;
        font-size: 26px;
    }

    .home-hero__button {
        min-width: 118px;
        min-height: 36px;
    }
}

/* Final mobile hero tuning */
@media (max-width: 767px) {
    .home-hero {
        width: 100%;
        aspect-ratio: 1.72 / 1;
        min-height: 0;
        height: auto;
        border-radius: 15px;
    }

    .home-hero__media {
        inset: 0;
    }

    .home-hero__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .home-hero__media--dark img {
        object-position: center center;
    }

    .home-hero__media--light img {
        object-position: center center;
    }

    .home-hero__content {
        width: 47%;
        height: 100%;
        padding:
            16px
            0
            14px
            18px;
        justify-content: center;
    }

    .home-hero__eyebrow {
        margin-bottom: 5px;
        font-size: 6.5px;
    }

    .home-hero h1 {
        max-width: 140px;
        font-size: clamp(24px, 7.4vw, 31px);
        line-height: .9;
    }

    .home-hero__description {
        display: none;
    }

    .home-hero__button {
        min-width: 116px;
        min-height: 35px;
        gap: 8px;
        margin-top: 10px;
        padding-inline: 12px;
        font-size: 8px;
    }

    .home-hero__pagination {
        gap: 6px;
        margin-top: 10px;
    }

    .home-hero__pagination button {
        font-size: 7px;
    }

    .home-hero__pagination > span {
        width: 11px;
    }
}

@media (max-width: 390px) {
    .home-hero {
        aspect-ratio: 1.65 / 1;
    }

    .home-hero__content {
        width: 49%;
        padding-left: 15px;
    }

    .home-hero h1 {
        max-width: 126px;
        font-size: 23px;
    }
}

.home-hero__description {
    max-width: 390px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.6;
}

html[data-theme="light"] .home-hero__description {
    color: #5f6b71;
}


/* MOBILE HERO FINAL START */
@media (max-width: 767px) {
    .home-hero-section {
        padding-top: 10px;
    }

    .home-hero-section > .container {
        padding-inline: 14px;
    }

    .home-hero {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-radius: 15px;
    }

    .home-hero__media {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .home-hero__media img,
    .home-hero__media--dark img,
    .home-hero__media--light img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
    }

    .home-hero__content {
        width: 46%;
        height: 100%;
        justify-content: center;
        padding: 16px 0 14px 18px;
    }

    .home-hero h1 {
        max-width: 140px;
        font-size: clamp(25px, 7.6vw, 31px);
        line-height: .9;
        letter-spacing: -.045em;
    }

    .home-hero__button {
        min-width: 118px;
        min-height: 35px;
        gap: 8px;
        margin-top: 11px;
        padding-inline: 12px;
        font-size: 8px;
    }

    .home-hero__button svg {
        width: 13px;
        height: 13px;
    }

    .home-hero__pagination {
        gap: 6px;
        margin-top: 10px;
    }

    .home-hero__pagination button {
        font-size: 7px;
    }

    .home-hero__pagination > span {
        width: 11px;
    }

    .home-hero__arrows {
        display: none;
    }
}

@media (max-width: 390px) {
    .home-hero__content {
        width: 48%;
        padding-left: 15px;
    }

    .home-hero h1 {
        max-width: 126px;
        font-size: 23px;
    }

    .home-hero__button {
        min-width: 112px;
        min-height: 34px;
    }
}
/* MOBILE HERO FINAL END */

/* =========================================================
   Expanded hero headline
========================================================= */

.home-hero__content {
    width: min(46%, 510px);
    max-width: 510px;
}

.home-hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(38px, 4.25vw, 68px);
    line-height: 0.88;
    letter-spacing: -0.055em;
}

.home-hero__title-line {
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .home-hero__content {
        width: min(48%, 430px);
    }

    .home-hero h1 {
        font-size: clamp(35px, 4.15vw, 56px);
    }
}

@media (max-width: 767px) {
    .home-hero__content {
        width: min(78%, 340px);
        max-width: 340px;
    }

    .home-hero h1 {
        font-size: clamp(31px, 9.2vw, 43px);
        line-height: 0.91;
        letter-spacing: -0.045em;
    }
}

@media (max-width: 390px) {
    .home-hero__content {
        width: min(82%, 310px);
    }

    .home-hero h1 {
        font-size: clamp(29px, 8.7vw, 36px);
    }
}

/* =========================================================
   Mobile hero balance fix
========================================================= */

@media (max-width: 767px) {
    .home-hero {
        min-height: 360px;
    }

    .home-hero__content {
        width: 58%;
        max-width: 230px;
        left: 18px;
        top: 22px;
        bottom: auto;
    }

    .home-hero h1 {
        font-size: clamp(24px, 7.2vw, 31px);
        line-height: 0.92;
        letter-spacing: -0.04em;
    }

    .home-hero__title-line {
        white-space: normal;
    }

    .home-hero__button {
        min-height: 36px;
        margin-top: 14px;
        padding: 0 16px;
        font-size: 9px;
    }

    .home-hero__media img,
    .home-hero__media--dark img,
    .home-hero__media--light img {
        object-position: 72% center !important;
    }

    .home-hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.88) 0%,
                rgba(0, 0, 0, 0.68) 42%,
                rgba(0, 0, 0, 0.16) 72%,
                transparent 100%
            ) !important;
    }
}

@media (max-width: 390px) {
    .home-hero {
        min-height: 335px;
    }

    .home-hero__content {
        width: 56%;
        max-width: 205px;
        left: 15px;
        top: 18px;
    }

    .home-hero h1 {
        font-size: clamp(22px, 6.8vw, 27px);
        line-height: 0.93;
    }

    .home-hero__media img,
    .home-hero__media--dark img,
    .home-hero__media--light img {
        object-position: 76% center !important;
    }
}

/* =========================================================
   Real iPhone hero correction
   Must remain at the end of hero.css
========================================================= */

@media (max-width: 767px) {

    html {
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    .home-hero {
        position: relative !important;
        min-height: 350px !important;
        height: auto !important;
        overflow: hidden !important;
    }

    .home-hero__content {
        position: absolute !important;
        z-index: 4 !important;

        top: 50% !important;
        bottom: auto !important;
        left: 18px !important;

        width: 46% !important;
        max-width: 190px !important;

        transform: translateY(-50%) !important;
    }

    .home-hero h1 {
        width: 100% !important;
        max-width: 190px !important;

        margin: 0 !important;

        font-size: clamp(23px, 6.25vw, 28px) !important;
        line-height: .91 !important;
        letter-spacing: -.045em !important;

        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    .home-hero__title-line {
        display: block !important;
        width: max-content !important;
        max-width: 100% !important;
        white-space: nowrap !important;
    }

    .home-hero__button {
        min-width: 112px !important;
        min-height: 37px !important;

        margin-top: 15px !important;
        padding: 0 14px !important;

        font-size: 9px !important;
    }

    .home-hero__media,
    .home-hero__media img,
    .home-hero__media--dark img,
    .home-hero__media--light img {
        width: 100% !important;
        height: 100% !important;
    }

    .home-hero__media img,
    .home-hero__media--dark img,
    .home-hero__media--light img {
        object-fit: cover !important;
        object-position: 73% center !important;
    }

    .home-hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, .92) 0%,
                rgba(0, 0, 0, .72) 34%,
                rgba(0, 0, 0, .22) 62%,
                rgba(0, 0, 0, 0) 82%
            ) !important;
    }

    .home-hero__pagination {
        bottom: 11px !important;
        left: 18px !important;
    }
}

@media (max-width: 390px) {

    .home-hero {
        min-height: 330px !important;
    }

    .home-hero__content {
        left: 15px !important;
        width: 45% !important;
        max-width: 165px !important;
    }

    .home-hero h1 {
        max-width: 165px !important;
        font-size: clamp(21px, 6vw, 25px) !important;
    }

    .home-hero__media img,
    .home-hero__media--dark img,
    .home-hero__media--light img {
        object-position: 76% center !important;
    }
}

/* =========================================================
   Force correct hero image per theme
========================================================= */

.home-hero__media--dark {
    display: block !important;
}

.home-hero__media--light {
    display: none !important;
}

html[data-theme="light"] .home-hero__media--dark {
    display: none !important;
}

html[data-theme="light"] .home-hero__media--light {
    display: block !important;
}

html[data-theme="dark"] .home-hero__media--dark {
    display: block !important;
}

html[data-theme="dark"] .home-hero__media--light {
    display: none !important;
}

/* =========================================================
   Mobile light hero appearance fix
========================================================= */

@media (max-width: 767px) {

    /* Dark mode mobile overlay */
    html[data-theme="dark"] .home-hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, .92) 0%,
                rgba(0, 0, 0, .72) 34%,
                rgba(0, 0, 0, .22) 62%,
                rgba(0, 0, 0, 0) 82%
            ) !important;
    }

    /* Light mode must not inherit the black dark overlay */
    html[data-theme="light"] .home-hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, .94) 0%,
                rgba(255, 255, 255, .72) 34%,
                rgba(255, 255, 255, .18) 61%,
                rgba(255, 255, 255, 0) 82%
            ) !important;
    }

    /* Set each mobile image independently */
    html[data-theme="dark"]
    .home-hero__media--dark img {
        object-position: 73% center !important;
    }

    html[data-theme="light"]
    .home-hero__media--light img {
        object-position: 70% center !important;
    }

    /* Light hero text */
    html[data-theme="light"] .home-hero h1 {
        color: #111315 !important;
        text-shadow: none !important;
    }

    html[data-theme="light"]
    .home-hero__title-accent {
        color: var(--color-primary) !important;
    }

    html[data-theme="light"]
    .home-hero__button {
        background: var(--color-primary) !important;
        color: #fff !important;
    }
}

@media (max-width: 390px) {

    html[data-theme="dark"]
    .home-hero__media--dark img {
        object-position: 76% center !important;
    }

    html[data-theme="light"]
    .home-hero__media--light img {
        object-position: 72% center !important;
    }
}
