/* Home page only. */
.home-hero--editorial {
    --home-pad-x: clamp(14px, 2vw, 28px);
    --home-pad-y: clamp(10px, 1.4vh, 18px);
    --home-stage-gap: clamp(18px, 2.4vw, 40px);
    --home-stage-side: clamp(64px, 8vw, 118px);
    --home-arrow-size: clamp(56px, 6vw, 76px);
    --home-road-position: 50% 50%;
    --home-road-size: cover;
    min-height: 100svh;
    height: 100svh;
    display: grid;
    place-items: stretch center;
    padding: var(--home-pad-y) var(--home-pad-x);
    overflow: clip;
    background-image:
        radial-gradient(circle at top left, rgba(86, 140, 215, 0.14), transparent 24%),
        linear-gradient(rgba(24, 22, 20, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 22, 20, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, #f6fafe 0%, #edf4fb 100%);
    background-position:
        0 0,
        0 0,
        0 0,
        0 0;
    background-repeat:
        no-repeat,
        repeat,
        repeat,
        no-repeat;
    background-size:
        auto,
        120px 120px,
        120px 120px,
        auto;
}

.home-hero__editorial-shell {
    position: relative;
    z-index: 1;
    width: min(1480px, 100%);
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    gap: 0;
    padding-top: clamp(12px, 2vh, 28px);
}

.home-hero__utility {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 4;
    opacity: 0;
    transform: translateY(-24px);
    pointer-events: none;
}

.home-hero__language-switch,
.story__language-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(24, 22, 20, 0.08);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(12px);
}

.home-hero__language-link,
.story__language-link {
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(24, 22, 20, 0.56);
    transition: color 180ms ease, transform 180ms ease;
}

.home-hero__language-link:hover,
.home-hero__language-link.is-active,
.story__language-link:hover,
.story__language-link.is-active {
    color: #111111;
}

.home-hero__heading-block {
    display: grid;
    justify-items: center;
    gap: 0;
    margin-bottom: clamp(-56px, -7vh, -30px);
    opacity: 0;
    transform: translateY(54px);
    pointer-events: none;
}

.home-hero__editorial-title {
    margin: 0;
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(3rem, 7.8vw, 6.8rem);
    font-weight: 800;
    letter-spacing: -0.09em;
    line-height: 0.86;
    text-transform: uppercase;
    color: #111111;
}

.home-hero__editorial-role {
    margin: 2px 0 0;
    font-size: clamp(0.95rem, 1.8vw, 1.5rem);
    color: rgba(24, 22, 20, 0.72);
    text-align: center;
}

.home-hero__editorial-stage {
    position: relative;
    min-height: 0;
    display: grid;
    grid-template-columns: var(--home-stage-side) minmax(0, 1fr) var(--home-arrow-size);
    gap: var(--home-stage-gap);
    align-items: center;
    margin-top: clamp(-16px, -2.2vh, -8px);
}



.home-hero__vertical-nav {
    display: grid;
    gap: clamp(8px, 1.4vh, 18px);
    align-content: center;
    justify-items: start;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateX(54px);
    pointer-events: none;
}

.home-hero__vertical-link {
    font-size: clamp(0.7rem, 0.9vw, 0.92rem);
    color: rgba(24, 22, 20, 0.56);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 180ms ease;
}

.home-hero__vertical-link:hover,
.home-hero__vertical-link.is-active {
    color: #111111;
    transform: none;
}

.home-hero__editorial-media {
    position: relative;
    width: min(100%, 820px);
    height: min(44vh, 420px);
    aspect-ratio: 16 / 9;
    margin: 0;
    justify-self: center;
    z-index: 2;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 24px 70px rgba(18, 14, 10, 0.08);
}

.home-hero__editorial-media img,
.home-hero__editorial-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__editorial-video {
    z-index: 1;
    top: -16%;
    height: 132%;
    filter: brightness(0.96) saturate(0.95);
    clip-path: inset(12% 0 12% 0);
    opacity: 1;
    transition: none;
}

.home-hero__editorial-media.is-ready .home-hero__editorial-video {
    opacity: 1;
}

@media (max-width: 1920px) {
    .home-hero__editorial-media {
        width: min(100%, 760px);
        height: min(40vh, 380px);
    }
}

@media (max-width: 1600px) {
    .home-hero__editorial-media {
        width: min(100%, 700px);
        height: min(37vh, 340px);
    }
}

@media (max-width: 1440px) {
    .home-hero--editorial {
        --home-stage-gap: clamp(16px, 2vw, 30px);
        --home-stage-side: clamp(56px, 6vw, 92px);
        --home-arrow-size: clamp(52px, 5vw, 70px);
    }

    .home-hero__editorial-shell {
        width: min(1320px, 100%);
    }

    .home-hero__editorial-media {
        width: min(100%, 660px);
        height: min(34vh, 300px);
    }
}

@media (max-width: 1280px) {
    .home-hero__editorial-stage {
        grid-template-columns: 72px minmax(0, 1fr) 64px;
    }

    .home-hero__editorial-media {
        width: min(100%, 600px);
        height: min(31vh, 260px);
    }
}

.home-hero__next-link {
    min-height: var(--home-arrow-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    align-self: center;
    position: relative;
    z-index: 3;
    padding: 0;
    margin-top: clamp(18px, 4vh, 42px);
    border: 0;
    background: transparent;
    color: #111111;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
    opacity: 0;
    transform: translateX(-54px);
    pointer-events: none;
}

.home-hero__next-link:hover {
    transform: translateX(4px);
}

.home-hero__next-meta {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.home-hero__next-index,
.home-hero__next-copy {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(24, 22, 20, 0.66);
}

.home-hero__next-index {
    font-size: 0.72rem;
}

.home-hero__next-line {
    width: clamp(42px, 5vw, 76px);
    height: 1px;
    background: rgba(24, 22, 20, 0.34);
    transform-origin: left center;
    transition: transform 180ms ease, background 180ms ease;
}

.home-hero__next-link:hover .home-hero__next-line {
    transform: scaleX(1.18);
    background: rgba(24, 22, 20, 0.52);
}

.home-hero__next-link:hover .home-hero__next-index,
.home-hero__next-link:hover .home-hero__next-copy {
    color: #111111;
}

.home-hero__heading-block.is-visible,
.home-hero__utility.is-visible,
.home-hero__vertical-nav.is-visible,
.home-hero__next-link.is-visible {
    opacity: 1;
    transform: translate(0, 0);
    pointer-events: auto;
}

.home-hero__heading-block.is-visible {
    transform: translateY(clamp(18px, 2.2vh, 34px));
}

.home-hero__heading-block,
.home-hero__utility,
.home-hero__vertical-nav,
.home-hero__next-link {
    transition:
        opacity 580ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 580ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1100px) {
    .home-hero__editorial-stage {
        grid-template-columns: clamp(56px, 8vw, 82px) minmax(0, 1fr) clamp(52px, 7vw, 68px);
        gap: clamp(16px, 2vw, 24px);
    }

    .home-hero__vertical-nav {
        gap: 12px;
    }

    .home-hero__editorial-media {
        width: min(100%, 900px);
        height: min(52vh, 500px);
    }

    .site-header__inner {
        grid-template-columns: auto auto;
    }

    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
        justify-self: end;
    }

    .site-header__meta {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-bottom: 16px;
    }

    .site-nav.is-open {
        display: grid;
        grid-column: 1 / -1;
        justify-content: start;
        gap: 14px;
        padding-bottom: 18px;
    }

    .hero__grid,
    .split-intro,
    .spotlight-card,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-footer__frame {
        gap: 18px;
    }

    .site-footer__links {
        max-width: none;
        padding-top: 0;
    }

    .site-footer__credits {
        justify-items: start;
        text-align: left;
    }

    .feature-grid,
    .video-grid,
    .product-grid,
    .pricing-grid,
    .equipment-grid,
    .category-grid,
    .metrics-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .metric:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 900px) {
    .home-hero--editorial {
        --home-pad-x: 16px;
        --home-pad-y: 16px;
        --home-stage-gap: 14px;
    }

    .home-hero__editorial-shell {
        gap: 14px;
    }

    .home-hero__editorial-stage {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 14px;
    }


    .home-hero__vertical-nav {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        justify-content: center;
        justify-items: center;
        gap: 12px 16px;
    }

    .home-hero__editorial-media {
        width: min(100%, 760px);
        height: min(44vh, 400px);
    }
}
    .home-hero--editorial {
        --home-pad-y: 14px;
        --home-road-position: 50% 82%;
        --home-road-size: 210% auto;
        background-size:
            var(--home-road-size),
            auto,
            82px 82px,
            82px 82px,
            auto;
    }

    .home-hero__editorial-shell {
        gap: 12px;
    }

    .home-hero__utility {
        top: 2px;
        right: 0;
    }

    .home-hero__language-switch {
        padding: 8px 12px;
    }
    .home-hero__editorial-title {
        font-size: clamp(2.6rem, 12vw, 4.4rem);
    }

    .home-hero__editorial-role {
        font-size: clamp(0.92rem, 4vw, 1.04rem);
    }

    .home-hero__vertical-nav {
        grid-template-columns: repeat(3, max-content);
        justify-content: center;
        gap: 10px 14px;
    }


    .home-hero__editorial-media {
        height: min(38vh, 290px);
    }

    .home-hero__next-link {
        min-height: 48px;
    }
@media (max-height: 880px) {
    .home-hero__editorial-media {
        height: min(50vh, 480px);
    }
}
@media (max-height: 760px) {
    .home-hero--editorial {
        --home-pad-y: 12px;
    }

    .home-hero__editorial-shell {
        gap: 10px;
    }

    .home-hero__editorial-title {
        font-size: clamp(2.7rem, 7.2vw, 5.6rem);
    }

    .home-hero__editorial-role {
        font-size: clamp(0.9rem, 1.6vw, 1.14rem);
    }

    .home-hero__vertical-nav {
        gap: 8px;
    }

    .home-hero__vertical-link {
        font-size: 0.72rem;
    }

    .home-hero__editorial-media {
        height: min(46vh, 370px);
    }
}

@media (max-height: 640px) {
    .home-hero__editorial-shell {
        gap: 8px;
    }

    .home-hero__heading-block {
        gap: 4px;
    }

    .home-hero__editorial-title {
        font-size: clamp(2.2rem, 6.4vw, 4.4rem);
    }

    .home-hero__editorial-role {
        font-size: 0.88rem;
    }

    .home-hero__editorial-stage {
        gap: 10px;
    }

    .home-hero__editorial-media {
        height: min(41vh, 300px);
    }

    .home-hero__next-link {
        min-height: 42px;
    }
}

/* Final home mobile centering fix */
@media (max-width: 760px) {
    body.page-home .home-hero--editorial {
        min-height: 100svh;
        height: auto;
        padding: 18px 16px 28px;
        --home-road-position: 50% 86%;
        --home-road-size: 250% auto;
    }

    body.page-home .home-hero__editorial-shell {
        width: 100%;
        max-width: none;
        gap: 16px;
        padding-top: 52px;
        justify-items: center;
    }

    body.page-home .home-hero__utility {
        top: max(16px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
        left: auto;
    }

    body.page-home .home-hero__language-switch {
        gap: 8px;
        padding: 8px 10px;
        max-width: calc(100vw - 32px);
    }

    body.page-home .home-hero__heading-block {
        width: 100%;
        justify-items: center;
        text-align: center;
        margin: 40px 0 10px;
    }

    body.page-home .home-hero__editorial-title {
        width: 100%;
        text-align: center;
        font-size: clamp(2.25rem, 10.8vw, 3.7rem);
    }

    body.page-home .home-hero__editorial-role {
        margin-top: 8px;
        text-align: center;
        font-size: clamp(0.82rem, 3.7vw, 0.98rem);
    }

    body.page-home .home-hero__editorial-stage {
        width: 100%;
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: start;
        gap: 18px;
        margin-top: 0;
    }

    body.page-home .home-hero__vertical-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px 18px;
        width: min(320px, 100%);
        margin: 0 auto;
        grid-auto-flow: row;
        grid-template-columns: none;
    }

    body.page-home .home-hero__vertical-link {
        font-size: 0.68rem;
        transform: none !important;
    }

    body.page-home .home-hero__editorial-media {
        width: min(100%, 360px);
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        justify-self: center;
        margin-inline: auto;
    }

    body.page-home .home-hero__editorial-media img,
    body.page-home .home-hero__editorial-video {
        object-position: center center;
    }

    body.page-home .home-hero__next-link {
        min-height: 48px;
        justify-self: center;
        align-self: start;
        margin-top: 8px;
    }

    body.page-home .home-hero__next-meta {
        justify-items: center;
    }
}

/* Client revision: every page background is plain white, no grid. */
body.page-home,
body.page-home main,
body.page-home .home-hero,
body.page-home .home-hero--editorial {
    background: #ffffff !important;
    background-image: none !important;
}

body.page-home .home-hero::before,
body.page-home .home-hero::after,
body.page-home .home-hero--editorial::before,
body.page-home .home-hero--editorial::after {
    content: none !important;
    background: none !important;
    background-image: none !important;
}

/* Client revision: every page background is plain white, no grid. */
body.page-home,
body.page-home main,
body.page-home .home-hero,
body.page-home .home-hero--editorial {
    background: #ffffff !important;
    background-image: none !important;
}

body.page-home .home-hero::before,
body.page-home .home-hero::after,
body.page-home .home-hero--editorial::before,
body.page-home .home-hero--editorial::after {
    content: none !important;
    background: none !important;
    background-image: none !important;
}

/* Client revision: every page background stays plain white. */
body.page-home,
body.page-home main,
body.page-home .home-hero,
body.page-home .home-hero--editorial {
    background: #ffffff !important;
    background-image: none !important;
}

body.page-home .home-hero--editorial::before,
body.page-home .home-hero--editorial::after {
    content: none !important;
    background: none !important;
    background-image: none !important;
}

@media (max-width: 560px) {
    body.page-home .home-hero--editorial {
        padding: 16px 12px 26px;
        --home-road-position: 50% 89%;
        --home-road-size: 270% auto;
    }

    body.page-home .home-hero__utility {
        top: max(14px, env(safe-area-inset-top));
        right: max(10px, env(safe-area-inset-right));
    }

    body.page-home .home-hero__heading-block {
        margin-top: 48px;
    }

    body.page-home .home-hero__editorial-media {
        width: min(100%, 348px);
    }
}

@media (max-width: 760px) and (max-height: 760px) {
    body.page-home .home-hero--editorial {
        --home-road-position: 50% 82%;
    }

    body.page-home .home-hero__editorial-shell {
        padding-top: 46px;
    }
}

@media (max-width: 760px) and (max-height: 640px) {
    body.page-home .home-hero--editorial {
        --home-road-position: 50% 78%;
        --home-road-size: 220% auto;
    }

    body.page-home .home-hero__heading-block {
        margin-top: 34px;
    }
}

/* Home desktop corrections after CSS split */
.home-hero--editorial {
    position: relative;
    isolation: isolate;
    --home-road-position: 50% 58%;
    --home-road-size: clamp(620px, 48vw, 920px) auto;
    background-image:
        radial-gradient(circle at top left, rgba(86, 140, 215, 0.14), transparent 24%),
        linear-gradient(rgba(24, 22, 20, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 22, 20, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, #f6fafe 0%, #edf4fb 100%);
    background-position:
        0 0,
        0 0,
        0 0,
        0 0;
    background-repeat:
        no-repeat,
        repeat,
        repeat,
        no-repeat;
    background-size:
        auto,
        120px 120px,
        120px 120px,
        auto;
}

.home-hero--editorial::before {
    content: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    background: none;
    opacity: 0.52;
    pointer-events: none;
}

.home-hero__editorial-stage::before {
    content: none;
}

.home-hero__vertical-nav {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: minmax(7.6rem, max-content);
    justify-content: start;
    justify-items: start;
    width: max-content;
}

.home-hero__vertical-link {
    display: block;
    width: 100%;
    text-align: left;
}

@media (max-width: 900px) {
    .home-hero__vertical-nav {
        justify-content: center;
        justify-items: center;
    }
}

@media (max-width: 760px) {
    body.page-home .home-hero--editorial {
        --home-road-position: 50% 86%;
        --home-road-size: 250% auto;
    }

    body.page-home .home-hero__vertical-nav {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: center;
        justify-items: center;
        width: min(220px, 100%);
    }

    body.page-home .home-hero__editorial-stage::before {
        content: none;
    }
}

/* Client revision: remove road and grid background from the home hero. */
body.page-home,
body.page-home .home-hero--editorial {
    background: #ffffff;
}

body.page-home .home-hero--editorial::before {
    content: none;
}

/* Client revision: make the home video fill the full viewport. */
body.page-home {
    background: #000000;
}

body.page-home .home-hero--editorial {
    background: #000000;
    color: #ffffff;
}

body.page-home .home-hero__editorial-shell {
    position: relative;
    z-index: 1;
}

body.page-home .home-hero__heading-block {
    opacity: 1;
    transform: translateY(clamp(18px, 2.2vh, 34px));
    pointer-events: auto;
}

body.page-home .home-hero__editorial-media {
    position: fixed;
    inset: -2px;
    z-index: -1;
    width: calc(100vw + 4px);
    height: calc(100svh + 4px);
    max-width: none;
    aspect-ratio: auto;
    margin: 0;
    overflow: hidden;
    background: #000000;
    box-shadow: none;
}

body.page-home .home-hero__editorial-media img,
body.page-home .home-hero__editorial-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    max-width: none;
}

body.page-home .home-hero__editorial-video {
    top: 0;
    clip-path: none;
    filter: brightness(0.82) saturate(0.95);
}

body.page-home .home-hero__editorial-shell,
body.page-home .home-hero__editorial-stage {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body.page-home .home-hero__editorial-title,
body.page-home .home-hero__editorial-role,
body.page-home .home-hero__vertical-link,
body.page-home .home-hero__next-index,
body.page-home .home-hero__next-copy,
body.page-home .home-hero__language-link {
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

body.page-home .home-hero__editorial-role,
body.page-home .home-hero__vertical-link,
body.page-home .home-hero__next-index,
body.page-home .home-hero__next-copy,
body.page-home .home-hero__language-link {
    color: rgba(255, 255, 255, 0.82);
}

body.page-home .home-hero__vertical-link:hover,
body.page-home .home-hero__vertical-link.is-active,
body.page-home .home-hero__language-link:hover,
body.page-home .home-hero__language-link.is-active,
body.page-home .home-hero__next-link:hover .home-hero__next-index,
body.page-home .home-hero__next-link:hover .home-hero__next-copy {
    color: #ffffff;
}

body.page-home .home-hero__language-switch {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.2);
}

body.page-home .home-hero__next-line {
    background: rgba(255, 255, 255, 0.56);
}

body.page-home .home-hero__next-link:hover .home-hero__next-line {
    background: rgba(255, 255, 255, 0.82);
}

/* Client revision: place the next-page CTA on the right side of the home hero. */
body.page-home .home-hero__next-link {
    position: fixed;
    left: auto;
    top: 50%;
    right: clamp(42px, 10.5vw, 220px);
    z-index: 4;
    justify-self: auto;
    align-self: auto;
    margin-top: 0;
    translate: none;
}

body.page-home .home-hero__vertical-nav {
    position: fixed;
    left: clamp(42px, 10.5vw, 220px);
    top: 50%;
    transform: translateY(-50%);
}

body.page-home .home-hero__vertical-nav.is-visible {
    transform: translateY(-50%);
}

body.page-home .home-hero__vertical-nav,
body.page-home .home-hero__next-link {
    padding: 16px 18px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08));
    backdrop-filter: blur(2px);
}

body.page-home .home-hero__vertical-link,
body.page-home .home-hero__next-index,
body.page-home .home-hero__next-copy {
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.92),
        0 2px 12px rgba(0, 0, 0, 0.86),
        0 8px 28px rgba(0, 0, 0, 0.72);
}

body.page-home .home-hero__next-meta {
    justify-items: start;
}

@media (max-width: 760px) {
    body.page-home .home-hero__vertical-nav {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
    }

    body.page-home .home-hero__vertical-nav.is-visible {
        transform: none;
    }

    body.page-home .home-hero__next-link {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        justify-self: center;
        margin-top: 18px;
        translate: none;
    }

    body.page-home .home-hero__next-meta {
        justify-items: center;
    }
}

/* Client revision: every page background is plain white, no grid. */
body.page-home,
body.page-home main,
body.page-home .home-hero,
body.page-home .home-hero--editorial {
    background: #ffffff !important;
    background-image: none !important;
}

body.page-home .home-hero::before,
body.page-home .home-hero::after,
body.page-home .home-hero--editorial::before,
body.page-home .home-hero--editorial::after {
    content: none !important;
    background: none !important;
    background-image: none !important;
}
