.desktop-modality-gateway {
    display: none;
}

@media (min-width: 768px) {
    .desktop-modality-gateway {
        position: relative;
        z-index: 7;
        display: block;
        min-height: 100vh;
        overflow: hidden;
        padding: 128px 28px 92px;
        background:
            radial-gradient(circle at 50% -15%, rgba(255,106,0,.06), transparent 35%),
            #fff;
        color: #06285f;
    }

    html.hero-truck-scrub-active .desktop-modality-gateway {
        margin-top: -120vh;
        box-shadow: 0 -22px 50px rgba(10,31,63,.04);
    }

    .desktop-modality-gateway-inner {
        width: min(1450px, 100%);
        margin: 0 auto;
    }

    .desktop-modality-gateway-head {
        max-width: 820px;
        margin: 0 auto 42px;
        text-align: center;
    }

    .desktop-modality-gateway-head > span {
        display: inline-flex;
        margin-bottom: 8px;
        color: #ff5a00;
        font-size: .78rem;
        font-weight: 900;
        letter-spacing: .09em;
        text-transform: uppercase;
    }

    .desktop-modality-gateway-head h2 {
        margin: 0;
        color: #ff6a00;
        font-family: "Montserrat", sans-serif;
        font-size: clamp(2.35rem, 4vw, 4.4rem);
        font-weight: 900;
        line-height: .92;
        letter-spacing: -.055em;
        text-transform: uppercase;
    }

    .desktop-modality-gateway-head h2 strong {
        display: block;
        color: #06285f;
        font: inherit;
    }

    .desktop-modality-gateway-head p {
        max-width: 680px;
        margin: 18px auto 0;
        color: #64748b;
        font-size: 1rem;
        line-height: 1.55;
    }

    .desktop-modality-gateway-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }

    .desktop-modality-gateway-card {
        position: relative;
        min-width: 0;
        aspect-ratio: 9 / 16;
        height: auto;
        overflow: hidden;
        padding: 0;
        border: 1px solid #dbe4ef;
        border-radius: 28px;
        background: #e9f0f7;
        box-shadow: 0 20px 46px rgba(10,42,90,.11);
        color: #06285f;
        cursor: pointer;
        text-align: left;
        isolation: isolate;
        transition:
            transform .32s ease,
            border-color .32s ease,
            box-shadow .32s ease;
    }

    .desktop-modality-gateway-video {
        position: absolute;
        z-index: 0;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: saturate(.82) brightness(1.08);
        transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .32s ease;
    }

    .desktop-modality-gateway-video-hover {
        z-index: 1;
        opacity: 0;
        transition:
            opacity .45s ease,
            transform .7s cubic-bezier(.2,.7,.2,1),
            filter .32s ease;
    }

    .desktop-modality-gateway-card:nth-child(1) .desktop-modality-gateway-video { object-position: 35% center; }
    .desktop-modality-gateway-card:nth-child(2) .desktop-modality-gateway-video { object-position: 52% center; }
    .desktop-modality-gateway-card:nth-child(3) .desktop-modality-gateway-video { object-position: 70% center; }
    .desktop-modality-gateway-card:nth-child(4) .desktop-modality-gateway-video { object-position: 35% center; }

    .desktop-modality-gateway-shade {
        position: absolute;
        z-index: 2;
        inset: 0;
        background:
            linear-gradient(180deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.18) 27%, rgba(4,31,75,.03) 62%, rgba(4,31,75,.25) 100%);
        pointer-events: none;
    }

    .desktop-modality-gateway-title {
        position: absolute;
        z-index: 2;
        top: 28px;
        left: 28px;
        right: 22px;
        color: #06285f;
        font-family: "Manrope", sans-serif;
        font-size: clamp(1.35rem, 1.75vw, 2rem);
        font-weight: 900;
        line-height: 1.05;
        letter-spacing: -.035em;
    }

    .desktop-modality-gateway-arrow {
        position: absolute;
        z-index: 2;
        bottom: 24px;
        left: 24px;
        display: grid;
        width: 54px;
        height: 54px;
        place-items: center;
        border: 1px solid rgba(255,255,255,.88);
        border-radius: 18px;
        background: rgba(255,255,255,.92);
        color: #06285f;
        font-size: 1.1rem;
        box-shadow: 0 12px 28px rgba(6,40,95,.14);
        backdrop-filter: blur(12px);
        transition: background .25s ease, color .25s ease, transform .25s ease;
    }

    .desktop-modality-gateway-card:hover,
    .desktop-modality-gateway-card:focus-visible {
        border-color: rgba(255,106,0,.68);
        outline: 0;
        box-shadow: 0 28px 60px rgba(10,42,90,.18);
        transform: translateY(-8px);
    }

    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"]:hover,
    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"]:focus-visible {
        transform: none;
    }

    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"]:hover .desktop-modality-gateway-shade,
    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"]:focus-visible .desktop-modality-gateway-shade,
    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"].is-video-hovered .desktop-modality-gateway-shade {
        background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 42%, rgba(4,31,75,.10) 100%);
    }

    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"]:hover .desktop-modality-gateway-title,
    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"]:focus-visible .desktop-modality-gateway-title,
    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"].is-video-hovered .desktop-modality-gateway-title {
        opacity: 0;
        pointer-events: none;
    }

    .desktop-modality-gateway-card[data-gateway-modality="mudanca-completa"] .desktop-modality-gateway-shade {
        background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 45%, rgba(4,31,75,.12) 100%);
    }

    .desktop-modality-gateway-card[data-gateway-modality="mudanca-completa"]:hover,
    .desktop-modality-gateway-card[data-gateway-modality="mudanca-completa"]:focus-visible {
        transform: none;
    }

    .desktop-modality-gateway-card:hover .desktop-modality-gateway-video,
    .desktop-modality-gateway-card:focus-visible .desktop-modality-gateway-video,
    .desktop-modality-gateway-card.is-video-hovered .desktop-modality-gateway-video {
        filter: saturate(.95) brightness(1.03);
        transform: scale(1.055);
    }

    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"]:hover .desktop-modality-gateway-video,
    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"]:focus-visible .desktop-modality-gateway-video,
    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"].is-video-hovered .desktop-modality-gateway-video,
    .desktop-modality-gateway-card[data-gateway-modality="mudanca-completa"]:hover .desktop-modality-gateway-video,
    .desktop-modality-gateway-card[data-gateway-modality="mudanca-completa"]:focus-visible .desktop-modality-gateway-video,
    .desktop-modality-gateway-card[data-gateway-modality="mudanca-completa"].is-video-hovered .desktop-modality-gateway-video {
        transform: none;
    }

    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"]:hover .desktop-modality-gateway-video,
    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"]:focus-visible .desktop-modality-gateway-video,
    .desktop-modality-gateway-card[data-gateway-modality="muda-facil"].is-video-hovered .desktop-modality-gateway-video {
        filter: saturate(1.08) contrast(1.04) brightness(1.01);
    }

    .desktop-modality-gateway-card:hover .desktop-modality-gateway-video-hover,
    .desktop-modality-gateway-card:focus-visible .desktop-modality-gateway-video-hover,
    .desktop-modality-gateway-card.is-video-hovered .desktop-modality-gateway-video-hover {
        opacity: 1;
    }

    .desktop-modality-gateway-card:hover .desktop-modality-gateway-arrow,
    .desktop-modality-gateway-card:focus-visible .desktop-modality-gateway-arrow {
        background: #ff6500;
        color: #fff;
        transform: translate(3px,-3px);
    }

    html.hero-truck-scrub-active .hero:not(.map-mode) .hero-content {
        opacity: var(--hero-exit-opacity, 1);
        transform: translateY(var(--hero-copy-exit-y, 0));
        will-change: transform, opacity;
    }

    html.hero-truck-scrub-active .hero:not(.map-mode) .hero-container > .quote-calculator,
    html.hero-truck-scrub-active .hero:not(.map-mode) .hero-container > .route-map-panel {
        opacity: var(--hero-exit-opacity, 1);
        transform: translateX(var(--hero-form-exit-x, 0));
        will-change: transform, opacity;
    }

    html.hero-truck-scrub-active .hero.is-exiting .hero-content,
    html.hero-truck-scrub-active .hero.is-exiting .hero-container > .quote-calculator,
    html.hero-truck-scrub-active .hero.is-exiting .hero-container > .route-map-panel {
        pointer-events: none;
    }

    html[data-theme="dark"] .desktop-modality-gateway {
        background:
            radial-gradient(circle at 50% -15%, rgba(255,106,0,.13), transparent 37%),
            linear-gradient(180deg, #071426 0%, #0a1930 52%, #071426 100%);
        color: #f2f7ff;
    }

    html[data-theme="dark"].hero-truck-scrub-active .desktop-modality-gateway {
        box-shadow: 0 -24px 54px rgba(0,0,0,.2);
    }

    html[data-theme="dark"] .desktop-modality-gateway-head h2 strong {
        color: #f6f9ff;
    }

    html[data-theme="dark"] .desktop-modality-gateway-head p {
        color: #b7c5d8;
    }

    html[data-theme="dark"] .desktop-modality-gateway-card {
        border-color: rgba(83,112,154,.38);
        background: #0d1d32;
        box-shadow: 0 24px 54px rgba(0,0,0,.3);
        color: #f2f7ff;
    }

    html[data-theme="dark"] .desktop-modality-gateway-card:hover,
    html[data-theme="dark"] .desktop-modality-gateway-card:focus-visible {
        border-color: rgba(255,106,0,.76);
        box-shadow: 0 30px 68px rgba(0,0,0,.36), 0 0 0 1px rgba(255,106,0,.2);
    }

    html[data-theme="dark"] .desktop-modality-gateway-video {
        filter: saturate(.86) contrast(1.04) brightness(.82);
    }

    html[data-theme="dark"] .desktop-modality-gateway-shade {
        background:
            linear-gradient(180deg, rgba(7,20,38,.62) 0%, rgba(7,20,38,.2) 32%, rgba(7,20,38,.14) 61%, rgba(7,20,38,.52) 100%);
    }

    html[data-theme="dark"] .desktop-modality-gateway-title {
        color: #f6f9ff;
        text-shadow: 0 10px 28px rgba(0,0,0,.36);
    }

    html[data-theme="dark"] .desktop-modality-gateway-arrow {
        border-color: rgba(255,255,255,.16);
        background: rgba(13,29,50,.9);
        color: #f2f7ff;
        box-shadow: 0 14px 30px rgba(0,0,0,.28);
    }

    html[data-theme="dark"] .desktop-modality-gateway-card[data-gateway-modality="muda-facil"]:hover .desktop-modality-gateway-shade,
    html[data-theme="dark"] .desktop-modality-gateway-card[data-gateway-modality="muda-facil"]:focus-visible .desktop-modality-gateway-shade,
    html[data-theme="dark"] .desktop-modality-gateway-card[data-gateway-modality="muda-facil"].is-video-hovered .desktop-modality-gateway-shade,
    html[data-theme="dark"] .desktop-modality-gateway-card[data-gateway-modality="mudanca-completa"] .desktop-modality-gateway-shade {
        background: linear-gradient(180deg, rgba(7,20,38,.24) 0%, rgba(7,20,38,.1) 43%, rgba(7,20,38,.36) 100%);
    }
}

@media (min-width: 768px) and (max-width: 1180px) {
    .desktop-modality-gateway {
        padding-inline: 20px;
    }

    .desktop-modality-gateway-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .desktop-modality-gateway-card {
        aspect-ratio: auto;
        height: 480px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .desktop-modality-gateway-card,
    .desktop-modality-gateway-video,
    .desktop-modality-gateway-arrow {
        transition: none;
    }

    html.hero-truck-scrub-active .hero .hero-content,
    html.hero-truck-scrub-active .hero .hero-container > .quote-calculator,
    html.hero-truck-scrub-active .hero .hero-container > .route-map-panel {
        opacity: 1;
        transform: none;
    }
}
