/* ================================================================
   AMAJED HOME
   ================================================================ */


/* ================================================================
   HERO
   One viewport, no scroll required to see the complete first panel
   ================================================================ */

body[data-page="home"] .hero-slider {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: 100svh;
    height: 100dvh;
    min-height: 0 !important;
    max-height: 100dvh;
    overflow: hidden;
}


/* ---------------------------------------------------------------
   HERO BACKGROUND / SLIDES
   --------------------------------------------------------------- */

body[data-page="home"] .hero-slides {
    position: absolute;
    inset: 0;
}


body[data-page="home"] .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.045);
    transition: opacity 1.15s ease, transform 5.4s linear;
}


    body[data-page="home"] .hero-slide.active {
        opacity: 1;
        transform: scale(1.005);
    }


    body[data-page="home"] .hero-slide img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center center;
        filter: saturate(.86) contrast(1.05) brightness(.91);
    }


    body[data-page="home"] .hero-slide:nth-child(1) img {
        object-position: 50% 52%;
    }


    body[data-page="home"] .hero-slide:nth-child(2) img {
        object-position: 50% 50%;
    }


    body[data-page="home"] .hero-slide:nth-child(3) img {
        object-position: 42% 52%;
    }


    body[data-page="home"] .hero-slide:nth-child(4) img {
        object-position: 50% 50%;
    }


/* ---------------------------------------------------------------
   OVERLAY
   --------------------------------------------------------------- */

body[data-page="home"] .hero-slider::after {
    background: linear-gradient( 90deg, rgba(1, 8, 14, .88) 0%, rgba(1, 8, 14, .62) 38%, rgba(1, 8, 14, .18) 70%, rgba(1, 8, 14, .27) 100% ), linear-gradient( 0deg, rgba(1, 8, 14, .64), transparent 55% );
}


body[dir="rtl"][data-page="home"] .hero-slider::after {
    background: linear-gradient( 270deg, rgba(1, 8, 14, .88) 0%, rgba(1, 8, 14, .62) 38%, rgba(1, 8, 14, .18) 70%, rgba(1, 8, 14, .27) 100% ), linear-gradient( 0deg, rgba(1, 8, 14, .64), transparent 55% );
}


/* ---------------------------------------------------------------
   HERO LAYOUT
   --------------------------------------------------------------- */

body[data-page="home"] .hero-slider .hero-grid {
    position: relative;
    z-index: 3;
    width: var(--container);
    height: 100%;
    min-height: 0 !important;
    margin-inline: auto;
    box-sizing: border-box;
    padding: clamp(92px, 12vh, 128px) 0 clamp(58px, 8vh, 82px) !important;
    display: grid;
    grid-template-columns: minmax(0, 900px) minmax(170px, 1fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: center;
    align-content: center;
}


/* ---------------------------------------------------------------
   HERO COPY
   --------------------------------------------------------------- */

body[data-page="home"] .hero-copy {
    max-width: 800px;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: start;
}


    body[data-page="home"] .hero-copy .eyebrow {
        display: block;
        margin: 0 0 14px;
        font-size: clamp( 10px, min(0.82vw, 1.65vh), 13px );
        line-height: 1.35;
    }


body[data-page="home"] .home-hero-title {
    max-width: 800px;
    margin: 0 0 16px;
    white-space: normal !important;
    font-size: clamp( 42px, min(3.8vw, 6.8vh), 72px ) !important;
    line-height: .98 !important;
    letter-spacing: -.05em;
}


body[dir="rtl"][data-page="home"] .home-hero-title {
    line-height: 1.1 !important;
    letter-spacing: 0;
}


body[data-page="home"] .hero-copy > p {
    max-width: 650px;
    margin: 0;
    font-size: clamp( 13px, min(1vw, 2vh), 17px ) !important;
    line-height: 1.58 !important;
}


body[dir="rtl"][data-page="home"] .hero-copy > p {
    line-height: 1.78 !important;
}


body[data-page="home"] .hero-actions {
    margin-top: 22px;
    gap: 10px;
}


/* ---------------------------------------------------------------
   EXPERIENCE BADGE
   --------------------------------------------------------------- */

body[data-page="home"] .hero-badge {
    width: clamp( 170px, 13vw, 210px );
    padding: clamp( 14px, 1.4vw, 19px );
    align-self: center;
    justify-self: end;
    border-radius: 20px;
}


body[dir="rtl"][data-page="home"] .hero-badge {
    justify-self: start;
}


body[data-page="home"] .hero-badge strong {
    font-size: clamp( 30px, min(2.4vw, 4.5vh), 38px );
}


/* ---------------------------------------------------------------
   CONTROLS
   --------------------------------------------------------------- */

body[data-page="home"] .hero-controls {
    bottom: clamp( 16px, 2.8vh, 28px );
}


body[data-page="home"] .hero-current {
    bottom: clamp( 17px, 2.8vh, 29px );
}


/* ---------------------------------------------------------------
   MEDIUM DESKTOP
   Keep the first panel visually balanced on narrower desktops.
   --------------------------------------------------------------- */

@media (max-width: 1120px) {

    body[data-page="home"] .hero-slider .hero-grid {
        grid-template-columns: 1fr;
    }


    body[data-page="home"] .hero-copy {
        max-width: 760px;
    }


    body[data-page="home"] .hero-badge {
        display: none !important;
    }
}


/* ---------------------------------------------------------------
   SHORT DESKTOP / LAPTOP SCREENS
   --------------------------------------------------------------- */

@media (min-width: 851px) and (max-height: 760px) {

    body[data-page="home"] .hero-slider .hero-grid {
        padding: 82px 0 48px !important;
    }


    body[data-page="home"] .hero-copy .eyebrow {
        font-size: 9.5px;
    }


    body[data-page="home"] .home-hero-title {
        max-width: 820px;
        margin: 7px 0 12px;
        font-size: clamp( 40px, min(3.5vw, 6.3vh), 58px ) !important;
    }


    body[data-page="home"] .hero-copy > p {
        max-width: 630px;
        margin-bottom: 15px;
        font-size: clamp( 12.5px, .92vw, 15px ) !important;
        line-height: 1.48 !important;
    }


    body[data-page="home"] .hero-actions {
        margin-top: 14px;
    }


    body[data-page="home"] .hero-badge {
        width: 175px;
        padding: 13px 15px;
    }


        body[data-page="home"] .hero-badge strong {
            font-size: 29px;
        }
}


/* ---------------------------------------------------------------
   EXTRA-SHORT DESKTOP SCREENS
   --------------------------------------------------------------- */

@media (min-width: 851px) and (max-height: 650px) {

    body[data-page="home"] .hero-slider .hero-grid {
        padding: 74px 0 40px !important;
    }


    body[data-page="home"] .home-hero-title {
        max-width: 760px;
        font-size: clamp( 36px, min(3.2vw, 5.9vh), 50px ) !important;
    }


    body[data-page="home"] .hero-copy > p {
        max-width: 590px;
        font-size: 12px !important;
        line-height: 1.42 !important;
    }


    body[data-page="home"] .hero-actions {
        margin-top: 11px;
    }


    body[data-page="home"] .hero-badge {
        width: 160px;
        padding: 11px 13px;
    }


        body[data-page="home"] .hero-badge small {
            font-size: 9px;
        }


    body[data-page="home"] .hero-controls {
        bottom: 12px;
    }


    body[data-page="home"] .hero-current {
        bottom: 13px;
    }
}


/* ================================================================
   PRODUCT FAMILIES
   COMPACT SYMBOL NAVIGATION
   ================================================================ */

.home-product-families {
    padding-top: 42px;
    padding-bottom: 46px;
    background: var(--surface);
}


.home-products-head {
    margin-bottom: 24px;
}


    .home-products-head .h2 {
        margin-bottom: 0;
    }


/* ---------------------------------------------------------------
   GRID
   --------------------------------------------------------------- */

.home-category-grid {
    display: grid;
    grid-template-columns: repeat( 6, minmax(0, 1fr) );
    gap: 10px;
}


/* ---------------------------------------------------------------
   CARD
   --------------------------------------------------------------- */

.home-category-card {
    position: relative;
    min-width: 0;
    min-height: 124px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 16px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient( 145deg, var(--surface-2), var(--surface) );
    box-shadow: 0 9px 26px rgba(2, 16, 28, .055);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}


    .home-category-card:hover {
        transform: translateY(-3px);
        border-color: color-mix( in srgb, var(--cyan) 45%, var(--line) );
        box-shadow: 0 15px 36px rgba(2, 16, 28, .10);
        background: linear-gradient( 145deg, color-mix( in srgb, var(--surface-2) 94%, var(--cyan) 6% ), var(--surface) );
    }



    /* ---------------------------------------------------------------
   REMOVE LARGE IMAGES
   --------------------------------------------------------------- */

    .home-category-card img,
    .home-category-shade {
        display: none;
    }



/* ---------------------------------------------------------------
   CONTENT
   --------------------------------------------------------------- */

.home-category-content {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 11px;
    color: var(--ink);
}


    .home-category-content > div {
        min-width: 0;
        grid-column: 2;
        grid-row: 1 / span 2;
    }



/* ---------------------------------------------------------------
   SYMBOL
   --------------------------------------------------------------- */

.home-category-number {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid color-mix( in srgb, var(--cyan) 24%, var(--line) );
    background: color-mix( in srgb, var(--surface-2) 91%, var(--cyan) 9% );
    color: transparent;
    font-size: 0;
    line-height: 1;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}


    .home-category-number::before {
        color: var(--cyan-2);
        font-size: 21px;
        line-height: 1;
        font-weight: 700;
    }


/* Refrigeration */

.home-category-card:nth-child(1)
.home-category-number::before {
    content: "❄";
}


/* Stainless */

.home-category-card:nth-child(2)
.home-category-number::before {
    content: "◇";
}


/* Cooking */

.home-category-card:nth-child(3)
.home-category-number::before {
    content: "♨";
}


/* Service */

.home-category-card:nth-child(4)
.home-category-number::before {
    content: "≋";
}


/* Integrated */

.home-category-card:nth-child(5)
.home-category-number::before {
    content: "⊞";
}


/* Cold Stores */

.home-category-card:nth-child(6)
.home-category-number::before {
    content: "▣";
}


.home-category-card:hover
.home-category-number {
    transform: scale(1.06);
    border-color: color-mix( in srgb, var(--cyan) 60%, var(--line) );
    background: color-mix( in srgb, var(--surface-2) 82%, var(--cyan) 18% );
}



/* ---------------------------------------------------------------
   TITLE
   --------------------------------------------------------------- */

.home-category-content h3 {
    margin: 0 0 5px;
    color: var(--ink);
    font-size: clamp( 13px, .93vw, 16px );
    line-height: 1.12;
    font-weight: 850;
    letter-spacing: -.02em;
}



/* ---------------------------------------------------------------
   DESCRIPTION
   --------------------------------------------------------------- */

.home-category-content p {
    margin: 0;
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* ---------------------------------------------------------------
   REMOVE LARGE ARROW
   --------------------------------------------------------------- */

.home-category-arrow {
    display: none;
}



/* ---------------------------------------------------------------
   SUBTLE CYAN ACCENT
   --------------------------------------------------------------- */

.home-category-card::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    border-radius: 4px 4px 0 0;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}


body[dir="rtl"]
.home-category-card::after {
    transform-origin: right;
}


.home-category-card:hover::after {
    transform: scaleX(1);
}



/* ================================================================
   PROJECT ENGINEERING
   ================================================================ */

.home-engineering-section {
    position: relative;
    overflow: hidden;
}


.home-engineering-card {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 26px 80px rgba(0, 0, 0, .08);
}


.home-engineering-media {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #06131c;
}


    .home-engineering-media img {
        width: 100%;
        height: 100%;
        min-height: 620px;
        display: block;
        object-fit: cover;
        object-position: center;
        transition: transform .9s cubic-bezier(.2,.8,.2,1);
    }


.home-engineering-card:hover
.home-engineering-media img {
    transform: scale(1.025);
}


.home-engineering-image-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient( 90deg, transparent 52%, rgba(3, 17, 26, .18) 78%, rgba(3, 17, 26, .46) 100% );
}


body[dir="rtl"]
.home-engineering-image-glow {
    background: linear-gradient( 270deg, transparent 52%, rgba(3, 17, 26, .18) 78%, rgba(3, 17, 26, .46) 100% );
}


.home-engineering-copy {
    padding: clamp( 36px, 5vw, 76px );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}


    .home-engineering-copy .h2 {
        margin: 13px 0 20px;
        max-width: 560px;
    }


    .home-engineering-copy .lede {
        max-width: 580px;
        margin: 0;
    }


.home-engineering-points {
    width: 100%;
    margin: 34px 0;
    display: grid;
    border-top: 1px solid var(--line);
}


    .home-engineering-points > div {
        min-height: 58px;
        display: grid;
        grid-template-columns: 42px 1fr;
        align-items: center;
        gap: 10px;
        border-bottom: 1px solid var(--line);
    }


    .home-engineering-points span {
        color: var(--cyan);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .08em;
    }


    .home-engineering-points b {
        font-size: 12px;
    }



/* ================================================================
   FINAL CTA
   ================================================================ */

.home-final-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}



/* ================================================================
   MEDIUM DESKTOP
   ================================================================ */

@media (max-width: 1250px) {

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


    .home-category-card {
        min-height: 108px;
    }
}



/* ================================================================
   TABLET
   ================================================================ */

@media (max-width: 850px) {

    /* ------------------------------------------------------------
       HERO
       ------------------------------------------------------------ */

    body[data-page="home"] .hero-slider {
        display: block;
        height: 100svh !important;
        height: 100dvh !important;
        min-height: 0 !important;
        max-height: 100dvh;
        overflow: hidden;
    }


        body[data-page="home"] .hero-slider .hero-grid {
            width: var(--container);
            height: 100%;
            min-height: 0 !important;
            margin-inline: auto;
            box-sizing: border-box;
            padding: clamp(84px, 11vh, 102px) 0 clamp(56px, 8vh, 72px) !important;
            grid-template-columns: 1fr;
            align-items: center;
            align-content: center;
        }


    body[data-page="home"] .hero-copy {
        max-width: min( 650px, 100% );
    }


    body[data-page="home"] .home-hero-title {
        max-width: 650px;
        margin: 8px 0 13px;
        font-size: clamp( 36px, min(7.6vw, 6.5vh), 54px ) !important;
        line-height: 1 !important;
    }


    body[dir="rtl"][data-page="home"] .home-hero-title {
        line-height: 1.12 !important;
    }


    body[data-page="home"] .hero-copy > p {
        max-width: 590px;
        margin-bottom: 16px;
        font-size: clamp( 12.5px, min(1.9vw, 1.9vh), 15px ) !important;
        line-height: 1.55 !important;
    }


    body[data-page="home"] .hero-actions {
        margin-top: 15px;
    }


    body[data-page="home"] .hero-badge {
        width: 168px;
        padding: 12px 14px;
        justify-self: start;
        align-self: center;
    }


        body[data-page="home"] .hero-badge strong {
            font-size: 28px;
        }


    body[data-page="home"] .hero-slide img {
        object-fit: cover;
    }


    body[data-page="home"] .hero-slide:nth-child(1) img {
        object-position: 42% 50%;
    }


    body[data-page="home"] .hero-slide:nth-child(2) img {
        object-position: 40% 50%;
    }


    body[data-page="home"] .hero-slide:nth-child(3) img {
        object-position: 40% 50%;
    }


    body[data-page="home"] .hero-slide:nth-child(4) img {
        object-position: 42% 50%;
    }


    body[data-page="home"] .hero-slider::after,
    body[dir="rtl"][data-page="home"] .hero-slider::after {
        background: linear-gradient( 0deg, rgba(1, 8, 14, .92) 0%, rgba(1, 8, 14, .70) 40%, rgba(1, 8, 14, .25) 71%, rgba(1, 8, 14, .34) 100% );
    }


    /* Product families */

    .home-product-families {
        padding-top: 32px;
        padding-bottom: 36px;
    }


    .home-products-head {
        margin-bottom: 18px;
    }



    /* Engineering */

    .home-engineering-card {
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 22px;
    }


    .home-engineering-media {
        min-height: 440px;
    }


        .home-engineering-media img {
            min-height: 440px;
        }


    .home-engineering-image-glow,
    body[dir="rtl"]
    .home-engineering-image-glow {
        background: linear-gradient( 0deg, rgba(3, 17, 26, .52), transparent 48% );
    }


    .home-engineering-copy {
        padding: 34px 28px 38px;
    }


    .home-final-actions {
        justify-content: flex-start;
    }
}



/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 620px) {

    /* ------------------------------------------------------------
       HERO
       ------------------------------------------------------------ */

    body[data-page="home"] .hero-slider {
        display: block;
        height: 100svh !important;
        height: 100dvh !important;
        min-height: 0 !important;
        max-height: 100dvh;
        overflow: hidden;
    }


        body[data-page="home"] .hero-slider .hero-grid {
            width: var(--container);
            height: 100%;
            min-height: 0 !important;
            margin-inline: auto;
            padding: clamp(78px, 10.5vh, 92px) 0 clamp(50px, 7.5vh, 64px) !important;
            align-items: center;
            align-content: center;
        }


    body[data-page="home"] .hero-copy .eyebrow {
        margin-bottom: 6px;
        font-size: 8.5px;
        line-height: 1.35;
    }


    body[data-page="home"] .home-hero-title {
        max-width: 100%;
        white-space: normal !important;
        margin: 6px 0 11px;
        font-size: clamp( 32px, min(9.2vw, 6vh), 43px ) !important;
        line-height: 1.02 !important;
    }


    body[dir="rtl"][data-page="home"] .home-hero-title {
        font-size: clamp( 30px, min(8.7vw, 5.7vh), 40px ) !important;
        line-height: 1.16 !important;
    }


    body[data-page="home"] .hero-copy > p {
        max-width: 100%;
        margin-bottom: 13px;
        font-size: clamp( 11.5px, 3.2vw, 13px ) !important;
        line-height: 1.5 !important;
    }


    body[dir="rtl"][data-page="home"] .hero-copy > p {
        line-height: 1.72 !important;
    }


    body[data-page="home"] .hero-actions {
        margin-top: 12px;
        gap: 7px;
    }


    body[data-page="home"] .hero-badge {
        display: none !important;
    }


    body[data-page="home"] .hero-controls {
        right: 14px;
        bottom: 14px;
    }


    body[dir="rtl"][data-page="home"] .hero-controls {
        right: auto;
        left: 14px;
    }


    body[data-page="home"] .hero-current {
        display: none;
    }


    /* ------------------------------------------------------------
       PRODUCT FAMILY HEADER
       ------------------------------------------------------------ */

    .home-product-families {
        padding-top: 24px;
        padding-bottom: 28px;
    }


    .home-products-head {
        margin-bottom: 15px;
    }


        .home-products-head .lede {
            display: none;
        }



    /* ------------------------------------------------------------
       3 × 2 COMPACT GRID
       ------------------------------------------------------------ */

    .home-category-grid {
        grid-template-columns: repeat( 3, minmax(0, 1fr) );
        gap: 7px;
    }


    .home-category-card {
        min-height: 104px;
        justify-content: center;
        padding: 10px 5px;
        border-radius: 15px;
        text-align: center;
    }


    .home-category-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }


        .home-category-content > div {
            width: 100%;
        }


    .home-category-number {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }


        .home-category-number::before {
            font-size: 18px;
        }


    .home-category-content h3 {
        margin: 0;
        font-size: 10px;
        line-height: 1.12;
        text-align: center;
        white-space: normal;
    }


    body[dir="rtl"]
    .home-category-content h3 {
        font-size: 10.5px;
    }


    .home-category-content p {
        display: none;
    }


    .home-category-card::after {
        left: 10px;
        right: 10px;
    }



    /* ------------------------------------------------------------
       PROJECT ENGINEERING
       ------------------------------------------------------------ */

    .home-engineering-media {
        min-height: 340px;
    }


        .home-engineering-media img {
            min-height: 340px;
        }


    .home-engineering-copy {
        padding: 28px 20px 32px;
    }


    .home-engineering-points {
        margin: 25px 0;
    }



    /* ------------------------------------------------------------
       FINAL CTA
       ------------------------------------------------------------ */

    .home-final-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }


        .home-final-actions .btn {
            width: 100%;
        }
}

/* ================================================================
   SHORT MOBILE HEIGHT GUARD
   ================================================================ */

@media (max-width: 850px) and (max-height: 620px) {

    body[data-page="home"] .hero-slider .hero-grid {
        padding: 68px 0 42px !important;
    }


    body[data-page="home"] .hero-copy .eyebrow {
        font-size: 8px;
    }


    body[data-page="home"] .home-hero-title {
        margin: 4px 0 8px;
        font-size: clamp( 29px, min(7vw, 5.5vh), 36px ) !important;
    }


    body[data-page="home"] .hero-copy > p {
        margin-bottom: 9px;
        font-size: 10.5px !important;
        line-height: 1.42 !important;
    }


    body[data-page="home"] .hero-actions {
        margin-top: 8px;
    }


    body[data-page="home"] .hero-controls {
        bottom: 10px;
    }
}


/* ================================================================
   FACTORY / MANUFACTURING
   Theme-aware Home section:
   - Light mode follows the white / clean Main-page language.
   - Dark mode switches to the industrial dark AMAJED treatment.
   The main media wrapper can later host a muted looping video without
   changing the surrounding layout.
   ================================================================ */

body[data-page="home"] .home-factory-section {
    /* Light theme tokens */
    --factory-section-bg:
        radial-gradient(circle at 10% 0%, rgba(0, 169, 239, .075), transparent 28%),
        radial-gradient(circle at 92% 72%, rgba(0, 169, 239, .045), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
    --factory-heading: var(--ink);
    --factory-copy: var(--muted);
    --factory-grid-line: rgba(6, 35, 52, .028);
    --factory-grid-opacity: .72;
    --factory-media-bg: #eaf0f4;
    --factory-media-border: color-mix(in srgb, var(--line) 88%, transparent);
    --factory-media-shadow: 0 24px 64px rgba(2, 16, 28, .10);
    --factory-media-hover-border: color-mix(in srgb, var(--cyan) 44%, var(--line));
    --factory-panel-bg: rgba(255, 255, 255, .78);
    --factory-panel-border: color-mix(in srgb, var(--line) 90%, transparent);
    --factory-panel-divider: color-mix(in srgb, var(--line) 82%, transparent);
    --factory-panel-shadow: 0 12px 34px rgba(2, 16, 28, .055);
    --factory-panel-heading: var(--ink);
    --factory-panel-copy: var(--muted);
    --factory-panel-hover: color-mix(in srgb, var(--cyan) 5%, #ffffff);
    --factory-index-bg: rgba(3, 12, 20, .50);

    position: relative;
    overflow: hidden;
    padding: clamp(84px, 8vw, 122px) 0;
    color: var(--factory-heading);
    background: var(--factory-section-bg) !important;
    transition: background .35s ease, color .35s ease;
}

html[data-theme="dark"] body[data-page="home"] .home-factory-section {
    /* Dark theme tokens */
    --factory-section-bg:
        radial-gradient(circle at 12% 0%, rgba(0, 169, 239, .17), transparent 31%),
        radial-gradient(circle at 88% 72%, rgba(0, 169, 239, .08), transparent 30%),
        linear-gradient(145deg, #07131e 0%, #06111d 48%, #030a10 100%);
    --factory-heading: #f8fcfe;
    --factory-copy: #9fb2bd;
    --factory-grid-line: rgba(255, 255, 255, .018);
    --factory-grid-opacity: .36;
    --factory-media-bg: #0a1823;
    --factory-media-border: rgba(255, 255, 255, .11);
    --factory-media-shadow: 0 28px 80px rgba(0, 0, 0, .25);
    --factory-media-hover-border: rgba(74, 205, 255, .36);
    --factory-panel-bg: rgba(255, 255, 255, .035);
    --factory-panel-border: rgba(255, 255, 255, .10);
    --factory-panel-divider: rgba(255, 255, 255, .075);
    --factory-panel-shadow: none;
    --factory-panel-heading: #eef7fb;
    --factory-panel-copy: #91a6b2;
    --factory-panel-hover: rgba(0, 169, 239, .075);
    --factory-index-bg: rgba(3, 12, 20, .48);
}

body[data-page="home"] .home-factory-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: var(--factory-grid-opacity);
    background-image:
        linear-gradient(var(--factory-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--factory-grid-line) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
    transition: opacity .35s ease;
}

body[data-page="home"] .home-factory-section > .container {
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------------------
   FACTORY HEADER
   --------------------------------------------------------------- */

.home-factory-head {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, .72fr);
    gap: clamp(34px, 5vw, 84px);
    align-items: end;
    margin-bottom: clamp(28px, 3.5vw, 46px);
}

.home-factory-head .h2 {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--factory-heading);
    transition: color .3s ease;
}

.home-factory-head .lede {
    max-width: 610px;
    margin: 0;
    color: var(--factory-copy);
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.8;
    transition: color .3s ease;
}

body[dir="rtl"] .home-factory-head .lede {
    line-height: 1.95;
}


/* ---------------------------------------------------------------
   MEDIA MOSAIC
   The imagery stays cinematic in both themes; only the surrounding
   page treatment changes between Light and Dark.
   --------------------------------------------------------------- */

.home-factory-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.68fr) minmax(300px, .72fr);
    gap: 16px;
}

.home-factory-main,
.home-factory-tile {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--factory-media-border);
    background: var(--factory-media-bg);
    box-shadow: var(--factory-media-shadow);
    transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.home-factory-main {
    min-height: 650px;
    border-radius: 30px;
}

.home-factory-side {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.home-factory-tile {
    min-height: 317px;
    border-radius: 24px;
}

.home-factory-media,
.home-factory-main-media {
    position: absolute;
    inset: 0;
}

.home-factory-main img,
.home-factory-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 1s var(--ease-fluid), filter .6s ease;
}

.home-factory-main img {
    object-position: 54% center;
    filter: saturate(.88) contrast(1.035) brightness(.88);
}

.home-factory-tile img {
    filter: saturate(.88) contrast(1.06) brightness(.82);
}

.home-factory-main:hover img,
.home-factory-tile:hover img {
    transform: scale(1.026);
}

.home-factory-main:hover,
.home-factory-tile:hover {
    border-color: var(--factory-media-hover-border);
}

.home-factory-main-shade,
.home-factory-tile-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-factory-main-shade {
    background:
        linear-gradient(0deg, rgba(1,8,14,.94) 0%, rgba(1,8,14,.66) 34%, rgba(1,8,14,.08) 72%),
        linear-gradient(90deg, rgba(1,8,14,.48), transparent 58%);
}

body[dir="rtl"] .home-factory-main-shade {
    background:
        linear-gradient(0deg, rgba(1,8,14,.94) 0%, rgba(1,8,14,.66) 34%, rgba(1,8,14,.08) 72%),
        linear-gradient(270deg, rgba(1,8,14,.48), transparent 58%);
}

.home-factory-tile-shade {
    background: linear-gradient(0deg, rgba(1,8,14,.93) 0%, rgba(1,8,14,.48) 43%, transparent 76%);
}


/* ---------------------------------------------------------------
   MAIN FACTORY COPY
   Copy sits on image, so it intentionally remains white in both themes.
   --------------------------------------------------------------- */

.home-factory-main-copy {
    position: absolute;
    z-index: 2;
    left: clamp(24px, 3vw, 48px);
    right: clamp(24px, 3vw, 48px);
    bottom: clamp(24px, 3vw, 44px);
    max-width: 720px;
}

body[dir="rtl"] .home-factory-main-copy {
    max-width: 760px;
}

.home-factory-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #62d8ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.home-factory-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: var(--cyan);
}

body[dir="rtl"] .home-factory-kicker {
    letter-spacing: 0;
}

.home-factory-main-copy h3 {
    max-width: 690px;
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(30px, 3.3vw, 54px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

body[dir="rtl"] .home-factory-main-copy h3 {
    line-height: 1.22;
    letter-spacing: 0;
}

.home-factory-main-copy p {
    max-width: 620px;
    margin: 0 0 20px;
    color: #c5d4dc;
    font-size: clamp(12px, 1vw, 15px);
    line-height: 1.72;
}

body[dir="rtl"] .home-factory-main-copy p {
    line-height: 1.9;
}

.home-factory-main-copy .btn {
    min-height: 45px;
    padding: 11px 17px;
    font-size: 12px;
}


/* ---------------------------------------------------------------
   SIDE TILES
   --------------------------------------------------------------- */

.home-factory-index {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    min-width: 42px;
    height: 34px;
    padding: 0 10px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    background: var(--factory-index-bg);
    backdrop-filter: blur(12px);
    color: #62d8ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

body[dir="rtl"] .home-factory-index {
    left: auto;
    right: 18px;
}

.home-factory-tile-copy {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 21px;
}

.home-factory-tile-copy small {
    display: block;
    margin-bottom: 5px;
    color: #5cd6ff;
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body[dir="rtl"] .home-factory-tile-copy small {
    letter-spacing: 0;
}

.home-factory-tile-copy h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(19px, 1.65vw, 27px);
    line-height: 1.12;
    letter-spacing: -.025em;
}

body[dir="rtl"] .home-factory-tile-copy h3 {
    line-height: 1.35;
    letter-spacing: 0;
}


/* ---------------------------------------------------------------
   PROCESS
   --------------------------------------------------------------- */

.home-factory-process {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--factory-panel-border);
    border-radius: 22px;
    background: var(--factory-panel-bg);
    box-shadow: var(--factory-panel-shadow);
    backdrop-filter: blur(18px);
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.home-factory-process-head {
    min-height: 68px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--factory-panel-divider);
}

.home-factory-process-head span {
    color: var(--cyan-2);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

html[data-theme="dark"] .home-factory-process-head span {
    color: #62d8ff;
}

body[dir="rtl"] .home-factory-process-head span {
    letter-spacing: 0;
}

.home-factory-process-head strong {
    color: var(--factory-panel-copy);
    font-size: 12px;
    font-weight: 700;
    transition: color .3s ease;
}

.home-factory-process-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.home-factory-step {
    position: relative;
    min-height: 92px;
    padding: 18px 17px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-inline-end: 1px solid var(--factory-panel-divider);
    transition: background .25s ease;
}

.home-factory-step:last-child {
    border-inline-end: 0;
}

.home-factory-step:hover {
    background: var(--factory-panel-hover);
}

.home-factory-step span {
    color: var(--cyan-2);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
}

html[data-theme="dark"] .home-factory-step span {
    color: #4ccfff;
}

.home-factory-step b {
    color: var(--factory-panel-heading);
    font-size: 12px;
    line-height: 1.25;
    transition: color .3s ease;
}


/* ---------------------------------------------------------------
   FACTORY PROOF / NUMBERS
   --------------------------------------------------------------- */

.home-factory-stats {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.home-factory-stat {
    min-width: 0;
    padding: 24px 20px;
    border: 1px solid var(--factory-panel-border);
    border-radius: 18px;
    background: var(--factory-panel-bg);
    box-shadow: var(--factory-panel-shadow);
    transition: transform .3s var(--ease-fluid), border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.home-factory-stat:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--cyan) 36%, var(--factory-panel-border));
    background: var(--factory-panel-hover);
}

.home-factory-stat i {
    display: block;
    width: 24px;
    height: 2px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--cyan);
}

.home-factory-stat strong {
    display: block;
    color: var(--factory-panel-heading);
    font-size: clamp(27px, 2.55vw, 40px);
    line-height: 1;
    letter-spacing: -.035em;
    transition: color .3s ease;
}

body[dir="rtl"] .home-factory-stat strong {
    letter-spacing: 0;
}

.home-factory-stat span {
    display: block;
    margin-top: 8px;
    color: var(--factory-panel-copy);
    font-size: 10.5px;
    line-height: 1.5;
    transition: color .3s ease;
}


/* ---------------------------------------------------------------
   FACTORY RESPONSIVE
   --------------------------------------------------------------- */

@media (max-width: 1080px) {

    .home-factory-head {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-factory-head .lede {
        max-width: 760px;
    }

    .home-factory-showcase {
        grid-template-columns: 1fr;
    }

    .home-factory-main {
        min-height: 560px;
    }

    .home-factory-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .home-factory-tile {
        min-height: 300px;
    }

    .home-factory-process-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-factory-step:nth-child(3) {
        border-inline-end: 0;
    }

    .home-factory-step:nth-child(-n+3) {
        border-bottom: 1px solid var(--factory-panel-divider);
    }
}


@media (max-width: 700px) {

    body[data-page="home"] .home-factory-section {
        padding: 70px 0;
    }

    .home-factory-head {
        margin-bottom: 22px;
    }

    .home-factory-head .h2 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .home-factory-main {
        min-height: 500px;
        border-radius: 22px;
    }

    .home-factory-main img {
        object-position: 58% center;
    }

    .home-factory-main-copy {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }

    .home-factory-main-copy h3 {
        font-size: clamp(27px, 8vw, 36px);
    }

    .home-factory-main-copy p {
        font-size: 11.5px;
    }

    .home-factory-side {
        grid-template-columns: 1fr;
    }

    .home-factory-tile {
        min-height: 250px;
        border-radius: 19px;
    }

    .home-factory-process-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .home-factory-process-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-factory-step,
    .home-factory-step:nth-child(3) {
        border-inline-end: 1px solid var(--factory-panel-divider);
        border-bottom: 1px solid var(--factory-panel-divider);
    }

    .home-factory-step:nth-child(even) {
        border-inline-end: 0;
    }

    .home-factory-step:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .home-factory-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-factory-stat {
        padding: 19px 15px;
    }

    .home-factory-stat strong {
        font-size: clamp(24px, 7.4vw, 32px);
    }
}


@media (max-width: 430px) {

    .home-factory-main {
        min-height: 470px;
    }

    .home-factory-main-copy .btn {
        width: 100%;
        justify-content: center;
    }

    .home-factory-stat span {
        font-size: 9.5px;
    }
}


@media (prefers-reduced-motion: reduce) {

    .home-factory-main img,
    .home-factory-tile img,
    .home-factory-stat {
        transition: none;
    }

    .home-factory-main:hover img,
    .home-factory-tile:hover img,
    .home-factory-stat:hover {
        transform: none;
    }
}
/* ================================================================
   HOME HERO EXPERIENCE BADGE — DESKTOP MIRRORED POSITION
   RTL  -> upper-left
   LTR  -> upper-right
   Mobile/tablet behavior remains unchanged.
   ================================================================ */

@media (min-width: 1121px) {

    body[data-page="home"] .hero-slider .hero-grid {
        position: relative;
    }

    body[data-page="home"] .hero-badge {
        position: absolute;

        top: clamp(150px, 18vh, 190px);
        inset-inline-end: 0;

        margin: 0;

        align-self: auto;
        justify-self: auto;

        z-index: 4;
    }
}

/* ================================================================
   HOME — COLD ROOM SECTION FINAL REFINEMENT
   2026-09-08
   One focused project video + balanced bilingual typography
   ================================================================ */

.cold-film .cold-film-grid {
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(360px, .72fr);
    gap: clamp(46px, 6vw, 92px);
    align-items: center;
}

.cold-film .cold-copy {
    min-width: 0;
}

.cold-film .cold-film-title {
    max-width: 720px;
    margin: 12px 0 18px;
    color: var(--text);
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.035em;
    text-wrap: balance;
}

body[dir="rtl"] .cold-film .cold-film-title {
    max-width: 680px;
    font-size: clamp(30px, 2.7vw, 42px);
    line-height: 1.36;
    letter-spacing: 0;
}

.cold-film .cold-copy > .lede {
    max-width: 700px;
    margin-top: 0;
    font-size: 16px;
    line-height: 1.85;
}

body[dir="rtl"] .cold-film .cold-copy > .lede {
    line-height: 2;
}

.cold-film .video-frame-dual {
    width: 100%;
    max-width: 470px;
    justify-self: center;
}

.cold-film .cold-video-cards--single {
    display: block;
    width: 100%;
}

.cold-film .cold-video-card--single {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 26px;
    background: #06111d;
    box-shadow: 0 28px 68px rgba(3, 19, 31, .16);
}

.cold-film .cold-video-card--single video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
}

.cold-film .cold-video-card__label {
    position: absolute;
    inset-inline: 14px;
    bottom: 14px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px 10px 16px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 14px;
    background: rgba(8, 22, 33, .88);
    backdrop-filter: blur(14px);
    color: #fff;
}

body[dir="rtl"] .cold-film .cold-video-card__label {
    padding: 10px 16px 10px 12px;
}

.cold-film .cold-video-card__label span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cyan);
    color: #06111d;
    font-size: 10px;
    font-weight: 900;
}

.cold-film .cold-video-card__label b {
    flex: 1;
    min-width: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.cold-film .cold-video-shared-caption {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
    padding: 0 4px;
    color: var(--muted);
}

.cold-film .cold-video-shared-caption span {
    flex: 0 0 auto;
    color: var(--cyan);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
}

.cold-film .cold-video-shared-caption small {
    max-width: 270px;
    font-size: 10px;
    line-height: 1.55;
    text-align: end;
}

@media (max-width: 900px) {
    .cold-film .cold-film-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cold-film .cold-film-title,
    body[dir="rtl"] .cold-film .cold-film-title {
        max-width: 760px;
        font-size: clamp(29px, 6vw, 38px);
    }

    .cold-film .video-frame-dual {
        max-width: 520px;
        justify-self: start;
    }

    body[dir="rtl"] .cold-film .video-frame-dual {
        justify-self: end;
    }
}

@media (max-width: 620px) {
    .cold-film .cold-film-grid {
        gap: 26px;
    }

    .cold-film .cold-film-title,
    body[dir="rtl"] .cold-film .cold-film-title {
        margin: 9px 0 13px;
        font-size: clamp(27px, 8vw, 34px);
        line-height: 1.28;
    }

    body[dir="rtl"] .cold-film .cold-film-title {
        line-height: 1.42;
    }

    .cold-film .cold-copy > .lede {
        font-size: 14px;
        line-height: 1.75;
    }

    body[dir="rtl"] .cold-film .cold-copy > .lede {
        line-height: 1.9;
    }

    .cold-film .video-frame-dual {
        max-width: 100%;
        justify-self: stretch !important;
    }

    .cold-film .cold-video-card--single {
        aspect-ratio: 4 / 5;
        border-radius: 20px;
    }

    .cold-film .cold-video-card__label {
        inset-inline: 10px;
        bottom: 10px;
        min-height: 52px;
    }

    .cold-film .cold-video-shared-caption {
        gap: 12px;
    }

    .cold-film .cold-video-shared-caption small {
        max-width: 210px;
    }
}

/* ================================================================
   HOME — PRODUCT FAMILIES COPY REFINEMENT
   2026-09-08
   Balanced layout for the longer bilingual messaging
   ================================================================ */

@media (min-width: 901px) {

    .home-product-families .home-products-head {
        display: grid;
        grid-template-columns:
            minmax(0, 1.18fr)
            minmax(300px, .82fr);
        align-items: end;
        gap: clamp(34px, 5vw, 72px);
    }

    .home-product-families .home-products-head > div {
        min-width: 0;
    }

    .home-product-families .home-products-head .h2 {
        max-width: 760px;

        margin-top: 10px;
        margin-bottom: 0;

        font-size: clamp(34px, 3.15vw, 49px);
        font-weight: 800;
        line-height: 1.16;
        letter-spacing: -.035em;

        text-wrap: balance;
    }

    body[dir="rtl"] .home-product-families .home-products-head .h2 {
        max-width: 720px;

        font-size: clamp(32px, 2.9vw, 45px);
        line-height: 1.34;
        letter-spacing: 0;
    }

    .home-product-families .home-products-head .lede {
        max-width: 470px;

        margin: 0;

        color: var(--muted);
        font-size: 15px;
        line-height: 1.8;
    }

    body[dir="rtl"] .home-product-families .home-products-head .lede {
        line-height: 1.95;
    }
}


/* TABLET */

@media (max-width: 900px) {

    .home-product-families .home-products-head {
        display: block;
    }

    .home-product-families .home-products-head .h2 {
        max-width: 720px;

        margin-top: 8px;
        margin-bottom: 14px;

        font-size: clamp(31px, 5.5vw, 40px);
        line-height: 1.24;
    }

    body[dir="rtl"] .home-product-families .home-products-head .h2 {
        line-height: 1.42;
    }

    .home-product-families .home-products-head .lede {
        max-width: 660px;

        font-size: 14px;
        line-height: 1.8;
    }
}


/* MOBILE */

@media (max-width: 600px) {

    .home-product-families .home-products-head .h2 {
        margin-top: 7px;
        margin-bottom: 0;

        font-size: clamp(27px, 8vw, 34px);
        line-height: 1.28;
    }

    body[dir="rtl"] .home-product-families .home-products-head .h2 {
        line-height: 1.45;
    }
}

/* ================================================================
   HOME — FACTORY MESSAGE REFINEMENT
   2026-09-08
   Balanced typography for the expanded bilingual factory message
   ================================================================ */

.home-factory-section .home-factory-head {
    display: grid;
    grid-template-columns:
        minmax(0, 1.32fr)
        minmax(300px, .68fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: end;
}

.home-factory-section .home-factory-head > div {
    min-width: 0;
}

.home-factory-section .home-factory-head .h2 {
    max-width: 830px;

    margin-top: 10px;
    margin-bottom: 0;

    font-size: clamp(30px, 2.55vw, 41px);
    font-weight: 800;
    line-height: 1.26;
    letter-spacing: -.028em;

    text-wrap: balance;
}

body[dir="rtl"] .home-factory-section .home-factory-head .h2 {
    max-width: 850px;

    font-size: clamp(29px, 2.35vw, 39px);
    line-height: 1.48;
    letter-spacing: 0;
}

.home-factory-section .home-factory-head .lede {
    max-width: 430px;

    margin: 0;

    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

body[dir="rtl"] .home-factory-section .home-factory-head .lede {
    line-height: 2;
}


/* TABLET */

@media (max-width: 900px) {

    .home-factory-section .home-factory-head {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-factory-section .home-factory-head .h2,
    body[dir="rtl"] .home-factory-section .home-factory-head .h2 {
        max-width: 760px;

        font-size: clamp(28px, 5vw, 36px);
    }

    .home-factory-section .home-factory-head .lede {
        max-width: 680px;
    }
}


/* MOBILE */

@media (max-width: 600px) {

    .home-factory-section .home-factory-head {
        gap: 14px;
    }

    .home-factory-section .home-factory-head .h2,
    body[dir="rtl"] .home-factory-section .home-factory-head .h2 {
        margin-top: 7px;

        font-size: clamp(25px, 7.3vw, 31px);
        line-height: 1.38;
    }

    body[dir="rtl"] .home-factory-section .home-factory-head .h2 {
        line-height: 1.55;
    }

    .home-factory-section .home-factory-head .lede {
        font-size: 14px;
        line-height: 1.8;
    }

    body[dir="rtl"] .home-factory-section .home-factory-head .lede {
        line-height: 1.95;
    }
}

/* ================================================================
   HOME — DISPLAY REFRIGERATORS
   Single looping video / Light + Dark theme
   ================================================================ */

body[data-page="home"] .home-display-refrigerators {
    --display-bg:
        radial-gradient(circle at 10% 12%, rgba(0, 169, 239, .08), transparent 26%),
        linear-gradient(145deg, #ffffff 0%, #f4f8fa 100%);
    --display-border: rgba(9, 36, 53, .10);
    --display-heading: var(--ink);
    --display-copy: var(--muted);
    --display-chip-bg: rgba(255, 255, 255, .74);
    --display-chip-border: color-mix(in srgb, var(--line) 84%, var(--cyan) 16%);
    --display-chip-text: color-mix(in srgb, var(--ink) 82%, var(--muted) 18%);
    --display-shadow: 0 28px 76px rgba(3, 22, 35, .09);
    --display-video-frame: #eef3f6;

    position: relative;
    overflow: hidden;
}

html[data-theme="dark"] body[data-page="home"] .home-display-refrigerators {
    --display-bg:
        radial-gradient(circle at 13% 10%, rgba(0, 169, 239, .15), transparent 28%),
        linear-gradient(145deg, #081824 0%, #06111d 58%, #050e17 100%);
    --display-border: rgba(255, 255, 255, .10);
    --display-heading: #f5fbfe;
    --display-copy: #95aab7;
    --display-chip-bg: rgba(255, 255, 255, .035);
    --display-chip-border: rgba(95, 207, 248, .18);
    --display-chip-text: #c7dbe6;
    --display-shadow: 0 32px 84px rgba(0, 0, 0, .22);
    --display-video-frame: #07141e;
}

.home-display-refrigerators-shell {
    min-height: 610px;
    display: grid;
    grid-template-columns:
        minmax(390px, 1fr)
        minmax(380px, .86fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--display-border);
    border-radius: 30px;
    background: var(--display-bg);
    box-shadow: var(--display-shadow);
    transition:
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.home-display-refrigerators-copy {
    min-width: 0;
    padding:
        clamp(44px, 5.2vw, 78px)
        clamp(32px, 4.5vw, 66px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.home-display-refrigerators-copy .eyebrow {
    color: var(--cyan-2);
}

.home-display-refrigerators-copy .h2 {
    max-width: 650px;
    margin: 14px 0 20px;
    color: var(--display-heading);
    transition: color .3s ease;
}

.home-display-refrigerators-copy .lede {
    max-width: 620px;
    margin: 0;
    color: var(--display-copy);
    line-height: 1.82;
    transition: color .3s ease;
}

body[dir="rtl"] .home-display-refrigerators-copy .lede {
    line-height: 2;
}

.home-display-refrigerators-points {
    margin: 30px 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.home-display-refrigerators-points span {
    min-height: 39px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--display-chip-border);
    border-radius: 999px;
    background: var(--display-chip-bg);
    color: var(--display-chip-text);
    font-size: 10.5px;
    font-weight: 800;
    transition:
        background .3s ease,
        border-color .3s ease,
        color .3s ease;
}

.home-display-refrigerators-copy .btn {
    width: fit-content;
}

/* Video card sized to the actual 834 × 1112 source (3:4 portrait). */
.home-display-refrigerators-media {
    min-width: 0;
    min-height: 610px;
    padding: 12px 12px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body[dir="rtl"] .home-display-refrigerators-media {
    padding: 12px 0 12px 12px;
}

.home-display-refrigerators-video-card {
    position: relative;
    width: min(100%, 475px);
    aspect-ratio: 3 / 4;
    max-height: 586px;
    overflow: hidden;
    display: block;
    border: 1px solid var(--display-border);
    border-radius: 24px;
    background: var(--display-video-frame);
    box-shadow: 0 22px 60px rgba(3, 20, 32, .14);
    text-decoration: none;
}

.home-display-refrigerators-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    background: #07141e;
}

.home-display-refrigerators-video-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(2, 10, 16, .02) 46%,
            rgba(2, 10, 16, .78) 100%
        );
}

.home-display-refrigerators-video-label {
    position: absolute;
    z-index: 2;
    inset-inline: 24px;
    bottom: 23px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: start;
}

.home-display-refrigerators-video-label small {
    color: #63d6ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

body[dir="rtl"] .home-display-refrigerators-video-label small {
    letter-spacing: 0;
}

.home-display-refrigerators-video-label strong {
    max-width: 390px;
    color: #fff;
    font-size: clamp(18px, 1.65vw, 25px);
    line-height: 1.18;
    font-weight: 850;
    letter-spacing: -.02em;
}

body[dir="rtl"] .home-display-refrigerators-video-label strong {
    line-height: 1.42;
    letter-spacing: 0;
}

@media (max-width: 1120px) {

    .home-display-refrigerators-shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .home-display-refrigerators-copy {
        padding: 46px 38px 34px;
    }

    .home-display-refrigerators-media,
    body[dir="rtl"] .home-display-refrigerators-media {
        min-height: 0;
        padding: 0 24px 28px;
    }

    .home-display-refrigerators-video-card {
        width: min(100%, 520px);
        max-height: none;
    }
}

@media (max-width: 760px) {

    .home-display-refrigerators-shell {
        border-radius: 22px;
    }

    .home-display-refrigerators-copy {
        padding: 34px 22px 27px;
    }

    .home-display-refrigerators-points {
        margin: 24px 0 26px;
    }

    .home-display-refrigerators-media,
    body[dir="rtl"] .home-display-refrigerators-media {
        padding: 0 12px 12px;
    }

    .home-display-refrigerators-video-card {
        width: min(100%, 430px);
        border-radius: 18px;
    }

    .home-display-refrigerators-video-label {
        inset-inline: 18px;
        bottom: 17px;
    }

    .home-display-refrigerators-video-label strong {
        font-size: 18px;
    }
}

@media (max-width: 430px) {

    .home-display-refrigerators-copy .btn {
        width: 100%;
        justify-content: center;
    }

    .home-display-refrigerators-points span {
        font-size: 9.5px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .home-display-refrigerators-video {
        /* Keep the visual frame stable for users requesting reduced motion. */
    }
}


/* ================================================================
   HOME HERO INTRO COPY — 21/09/2026
   Longer "Since 1979" sales-approved wording.
   ================================================================ */

body[data-page="home"] .hero-copy > p {
    max-width: 720px;
    font-size: clamp(12.5px, min(.94vw, 1.85vh), 16px) !important;
    line-height: 1.62 !important;
    text-wrap: pretty;
}

body[dir="rtl"][data-page="home"] .hero-copy > p {
    max-width: 700px;
    font-size: clamp(13px, min(.96vw, 1.9vh), 16px) !important;
    line-height: 1.82 !important;
}

@media (min-width: 851px) and (max-height: 760px) {
    body[data-page="home"] .hero-copy > p {
        max-width: 680px;
        font-size: clamp(11.5px, .86vw, 14px) !important;
        line-height: 1.5 !important;
    }
}

@media (min-width: 851px) and (max-height: 650px) {
    body[data-page="home"] .hero-copy > p {
        max-width: 640px;
        font-size: 11.5px !important;
        line-height: 1.44 !important;
    }
}

@media (max-width: 850px) {
    body[data-page="home"] .hero-copy > p {
        max-width: 620px;
        font-size: clamp(12px, min(1.8vw, 1.8vh), 14px) !important;
        line-height: 1.55 !important;
    }
}

@media (max-width: 620px) {
    body[data-page="home"] .hero-copy > p {
        max-width: 100%;
        font-size: clamp(11px, 3vw, 12.5px) !important;
        line-height: 1.5 !important;
    }

    body[dir="rtl"][data-page="home"] .hero-copy > p {
        font-size: clamp(11.5px, 3.1vw, 13px) !important;
        line-height: 1.7 !important;
    }
}

/* ================================================================
   HOME CATEGORY HERO CARDS V3 2026-09-21
   Desktop/tablet: category hero images.
   Mobile <= 620px: keep the existing icon design.
   ================================================================ */

@media (min-width: 621px) {

    .home-category-grid {
        gap: clamp(8px, .7vw, 11px);
    }

    .home-category-card.home-category-card--image {
        position: relative;
        min-width: 0;
        min-height: clamp(148px, 10.2vw, 178px);
        padding: 0 !important;
        display: block;
        overflow: hidden;
        isolation: isolate;
        background: #07131d;
        border-radius: 18px;
    }

    .home-category-card.home-category-card--image > img.home-category-hero {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: cover;
        object-position: center;
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1.002);
        filter: saturate(.92) contrast(1.04) brightness(.91);
        transition: transform .45s ease, filter .35s ease;
    }

    .home-category-card.home-category-card--image:hover > img.home-category-hero {
        transform: scale(1.045);
        filter: saturate(1) contrast(1.04) brightness(.98);
    }

    .home-category-card.home-category-card--image .home-category-image-shade {
        position: absolute;
        inset: 0;
        z-index: 1;
        display: block !important;
        pointer-events: none;
        background:
            linear-gradient(
                180deg,
                rgba(3, 12, 19, .02) 8%,
                rgba(3, 12, 19, .28) 52%,
                rgba(3, 12, 19, .92) 100%
            );
    }

    .home-category-card.home-category-card--image .home-category-content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        width: 100%;
        min-height: 72px;
        display: block;
        padding: 13px 13px 12px;
        color: #fff;
    }

    .home-category-card.home-category-card--image .home-category-number {
        display: none !important;
    }

    .home-category-card.home-category-card--image .home-category-content > div {
        width: 100%;
        min-width: 0;
    }

    .home-category-card.home-category-card--image .home-category-content h3 {
        margin: 0 0 4px;
        color: #fff;
        font-size: clamp(12px, .86vw, 15px);
        line-height: 1.12;
        font-weight: 850;
        text-shadow: 0 2px 10px rgba(0, 0, 0, .58);
    }

    .home-category-card.home-category-card--image .home-category-content p {
        margin: 0;
        color: rgba(255,255,255,.84);
        font-size: clamp(8.3px, .57vw, 9.8px);
        line-height: 1.36;
        text-shadow: 0 1px 8px rgba(0,0,0,.55);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (min-width: 851px) {
    .home-category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 621px) and (max-width: 850px) {
    .home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-category-card.home-category-card--image {
        min-height: 150px;
    }
}

@media (max-width: 620px) {

    .home-category-card.home-category-card--image > img.home-category-hero,
    .home-category-card.home-category-card--image .home-category-image-shade {
        display: none !important;
    }

    .home-category-card.home-category-card--image {
        min-height: 104px;
        display: flex;
        justify-content: center;
        padding: 10px 5px !important;
        background: linear-gradient(145deg, var(--surface-2), var(--surface));
    }

    .home-category-card.home-category-card--image .home-category-content {
        position: static;
        width: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0;
        color: var(--ink);
    }

    .home-category-card.home-category-card--image .home-category-number {
        display: grid !important;
    }

    .home-category-card.home-category-card--image .home-category-content h3 {
        margin: 0;
        color: var(--ink);
        font-size: 10px;
        line-height: 1.12;
        text-shadow: none;
    }

    body[dir="rtl"] .home-category-card.home-category-card--image .home-category-content h3 {
        font-size: 10.5px;
    }

    .home-category-card.home-category-card--image .home-category-content p {
        display: none;
    }
}


/* ================================================================
   HOME CATEGORY CARDS MODERN V4 2026-09-21
   Clean light cards inspired by the category pages.
   Desktop/tablet only. Mobile keeps the icon layout.
   ================================================================ */

@media (min-width: 621px) {

    .home-category-grid {
        gap: clamp(9px, .8vw, 12px);
    }

    .home-category-card.home-category-card--image {
        min-height: 150px;
        padding: 14px 12px 12px !important;
        display: grid;
        grid-template-rows: minmax(78px, 1fr) auto;
        align-items: stretch;
        overflow: hidden;
        isolation: isolate;
        border: 1px solid var(--line);
        border-radius: 18px;
        background:
            linear-gradient(
                145deg,
                color-mix(in srgb, var(--surface-2) 96%, var(--cyan) 4%),
                var(--surface)
            );
        box-shadow: 0 10px 28px rgba(2, 16, 28, .055);
    }

    .home-category-card.home-category-card--image:hover {
        transform: translateY(-3px);
        border-color:
            color-mix(in srgb, var(--cyan) 42%, var(--line));
        box-shadow: 0 16px 36px rgba(2, 16, 28, .095);
        background:
            linear-gradient(
                145deg,
                color-mix(in srgb, var(--surface-2) 92%, var(--cyan) 8%),
                var(--surface)
            );
    }

    /* Clean image area: no dark background, no overlay */
    .home-category-card.home-category-card--image
    > img.home-category-hero {
        position: static;
        width: 100% !important;
        height: 82px !important;
        display: block !important;
        object-fit: contain;
        object-position: center;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none;
        filter: none;
        margin: 0 auto 8px;
        transition: transform .3s ease;
        background: transparent !important;
    }

    .home-category-card.home-category-card--image:hover
    > img.home-category-hero {
        transform: translateY(-2px) scale(1.025);
        filter: none;
    }

    .home-category-card.home-category-card--image
    .home-category-image-shade {
        display: none !important;
    }

    .home-category-card.home-category-card--image
    .home-category-content {
        position: static;
        width: 100%;
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr;
        padding: 0;
        color: var(--ink);
        text-align: start;
    }

    .home-category-card.home-category-card--image
    .home-category-content > div {
        width: 100%;
        min-width: 0;
    }

    .home-category-card.home-category-card--image
    .home-category-number {
        display: none !important;
    }

    .home-category-card.home-category-card--image
    .home-category-content h3 {
        margin: 0 0 4px;
        color: var(--ink);
        font-size: clamp(12px, .88vw, 15px);
        line-height: 1.14;
        font-weight: 850;
        letter-spacing: -.018em;
        text-shadow: none;
    }

    .home-category-card.home-category-card--image
    .home-category-content p {
        margin: 0;
        color: var(--muted);
        font-size: clamp(8.5px, .58vw, 9.8px);
        line-height: 1.38;
        text-shadow: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-category-card.home-category-card--image::after {
        left: 12px;
        right: 12px;
        z-index: 3;
    }
}


/* Keep all 6 beside each other on desktop/laptop. */
@media (min-width: 851px) {

    .home-category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }

    .home-category-card.home-category-card--image {
        min-height: 154px;
    }

    .home-category-card.home-category-card--image
    > img.home-category-hero {
        height: 84px !important;
    }
}


/* Tablet stays image based but slightly roomier. */
@media (min-width: 621px) and (max-width: 850px) {

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

    .home-category-card.home-category-card--image {
        min-height: 166px;
    }

    .home-category-card.home-category-card--image
    > img.home-category-hero {
        height: 92px !important;
    }
}


/* Mobile: preserve the current icon layout exactly. */
@media (max-width: 620px) {

    .home-category-card.home-category-card--image
    > img.home-category-hero,
    .home-category-card.home-category-card--image
    .home-category-image-shade {
        display: none !important;
    }

    .home-category-card.home-category-card--image {
        min-height: 104px;
        display: flex;
        justify-content: center;
        padding: 10px 5px !important;
        border: 1px solid var(--line);
        border-radius: 15px;
        background:
            linear-gradient(
                145deg,
                var(--surface-2),
                var(--surface)
            );
        box-shadow: 0 9px 26px rgba(2, 16, 28, .055);
    }

    .home-category-card.home-category-card--image
    .home-category-content {
        position: static;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0;
        text-align: center;
    }

    .home-category-card.home-category-card--image
    .home-category-number {
        display: grid !important;
    }

    .home-category-card.home-category-card--image
    .home-category-content h3 {
        margin: 0;
        color: var(--ink);
        font-size: 10px;
        line-height: 1.12;
        text-align: center;
    }

    body[dir="rtl"]
    .home-category-card.home-category-card--image
    .home-category-content h3 {
        font-size: 10.5px;
    }

    .home-category-card.home-category-card--image
    .home-category-content p {
        display: none;
    }
}


/* ================================================================
   HOME CATEGORY CARDS MODERN V5 MOBILE 3X2 2026-09-21
   Mobile preview: show category Hero Images in a 3 x 2 grid.
   ================================================================ */

@media (max-width: 620px) {

    .home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .home-category-card.home-category-card--image {
        min-height: 122px;
        padding: 8px 7px 8px !important;
        display: grid;
        grid-template-rows: 72px auto;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 14px;
        background:
            linear-gradient(
                145deg,
                color-mix(in srgb, var(--surface-2) 96%, var(--cyan) 4%),
                var(--surface)
            );
        box-shadow: 0 8px 22px rgba(2, 16, 28, .05);
    }

    .home-category-card.home-category-card--image
    > img.home-category-hero {
        position: static;
        width: 100% !important;
        height: 68px !important;
        display: block !important;
        object-fit: contain;
        object-position: center;
        margin: 0 auto 5px;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        filter: none !important;
        background: transparent !important;
    }

    .home-category-card.home-category-card--image
    .home-category-image-shade {
        display: none !important;
    }

    .home-category-card.home-category-card--image
    .home-category-content {
        position: static;
        width: 100%;
        min-height: 0;
        display: block;
        padding: 0;
        text-align: center;
        color: var(--ink);
    }

    .home-category-card.home-category-card--image
    .home-category-number {
        display: none !important;
    }

    .home-category-card.home-category-card--image
    .home-category-content h3 {
        margin: 0;
        color: var(--ink);
        font-size: 9.5px;
        line-height: 1.12;
        font-weight: 850;
        text-align: center;
        text-shadow: none;
    }

    body[dir="rtl"]
    .home-category-card.home-category-card--image
    .home-category-content h3 {
        font-size: 10px;
    }

    .home-category-card.home-category-card--image
    .home-category-content p {
        display: none !important;
    }

    .home-category-card.home-category-card--image::after {
        left: 8px;
        right: 8px;
    }
}


/* Extra-small phones: keep 3 columns, tighten spacing slightly. */
@media (max-width: 390px) {

    .home-category-grid {
        gap: 6px !important;
    }

    .home-category-card.home-category-card--image {
        min-height: 116px;
        padding: 7px 5px 7px !important;
        border-radius: 12px;
        grid-template-rows: 66px auto;
    }

    .home-category-card.home-category-card--image
    > img.home-category-hero {
        height: 62px !important;
    }

    .home-category-card.home-category-card--image
    .home-category-content h3 {
        font-size: 8.8px;
    }

    body[dir="rtl"]
    .home-category-card.home-category-card--image
    .home-category-content h3 {
        font-size: 9.2px;
    }
}

