/* GeekHub Kitchen 3.4.3 — unified motion system and mobile-specific Hero adaptation. */

:root {
    --gh-motion-ease: cubic-bezier(.2,.72,.25,1);
}

/* Motion only activates when JavaScript adds the root class. */
html.gh-motion-enabled .gh-reveal {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition:
        opacity .78s var(--gh-motion-ease) var(--gh-reveal-delay, 0ms),
        transform .78s var(--gh-motion-ease) var(--gh-reveal-delay, 0ms);
    will-change: opacity, transform;
}

html.gh-motion-enabled .gh-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

html.gh-motion-enabled .gh-editorial-visual.gh-reveal,
html.gh-motion-enabled .gh-product-gallery.gh-reveal {
    transform: translate3d(-30px, 0, 0);
}

html.gh-motion-enabled .gh-editorial-visual.gh-reveal.is-visible,
html.gh-motion-enabled .gh-product-gallery.gh-reveal.is-visible {
    transform: translate3d(0, 0, 0);
}

html.gh-motion-enabled .gh-editorial-copy.gh-reveal,
html.gh-motion-enabled .gh-product-summary.gh-reveal {
    transform: translate3d(30px, 0, 0);
}

html.gh-motion-enabled .gh-editorial-copy.gh-reveal.is-visible,
html.gh-motion-enabled .gh-product-summary.gh-reveal.is-visible {
    transform: translate3d(0, 0, 0);
}

/* Animated page heroes and feature surfaces. */
.gh-page-hero::before,
.gh-inline-cta::before,
.gh-catalog__box::before {
    transform: translate3d(0, var(--gh-parallax-y, 0), 0);
    transition: transform .18s linear;
}

.gh-page-hero h1,
.gh-page-hero p,
.gh-page-hero .gh-kicker {
    animation: gh-page-hero-in .85s var(--gh-motion-ease) both;
}

.gh-page-hero p { animation-delay: .10s; }
.gh-page-hero .gh-button-row { animation: gh-page-hero-in .85s var(--gh-motion-ease) .18s both; }

@keyframes gh-page-hero-in {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Cards and buttons receive restrained B2B motion. */
.gh-product-card,
.gh-solution-grid > article,
.gh-process-grid > article,
.gh-value-grid > article,
.gh-capability-grid > article,
.gh-application-grid > article {
    transition: transform .35s var(--gh-motion-ease), box-shadow .35s ease, border-color .35s ease;
}

.gh-product-card:hover,
.gh-solution-grid > article:hover,
.gh-process-grid > article:hover,
.gh-value-grid > article:hover,
.gh-capability-grid > article:hover,
.gh-application-grid > article:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 58px rgba(7, 20, 33, .13);
}

.gh-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.gh-button::after {
    content: "";
    position: absolute;
    top: -80%;
    bottom: -80%;
    left: -55%;
    width: 38%;
    z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
    transform: skewX(-18deg);
    transition: left .7s var(--gh-motion-ease);
}

.gh-button:hover::after {
    left: 125%;
}

/* All active slider images receive a subtle cinematic motion. */
.gh-media-slider__slide .gh-slider-image {
    transform: scale(1.015);
    transition: transform 6.5s ease, filter .55s ease;
}

.gh-media-slider__slide.is-active .gh-slider-image {
    transform: scale(1.075);
}

.gh-hero-slide__copy > * {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity .7s var(--gh-motion-ease), transform .7s var(--gh-motion-ease);
}

.gh-hero-slide.is-active .gh-hero-slide__copy > * {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.gh-hero-slide.is-active .gh-hero-slide__copy > *:nth-child(2) { transition-delay: .08s; }
.gh-hero-slide.is-active .gh-hero-slide__copy > *:nth-child(3) { transition-delay: .16s; }
.gh-hero-slide.is-active .gh-hero-slide__copy > *:nth-child(4) { transition-delay: .24s; }
.gh-hero-slide.is-active .gh-hero-slide__copy > *:nth-child(5) { transition-delay: .32s; }

/* Desktop image comes from CSS variable; mobile can use its own uploaded crop. */
body.geekhub-custom-surface .gh-hero-slide__media {
    background-image: var(--gh-hero-desktop-image) !important;
}

/* Mobile Hero: portrait media support, safe text area, touch-first controls. */
@media (max-width: 767px) {
    body.geekhub-custom-surface .gh-home > .gh-hero-slider,
    body.geekhub-custom-surface .gh-hero-slider,
    body.geekhub-custom-surface .gh-hero-slider__viewport,
    body.geekhub-custom-surface .gh-hero-slider__track,
    body.geekhub-custom-surface .gh-hero-slide {
        min-height: var(--gh-hero-mobile-height, 760px) !important;
        height: var(--gh-hero-mobile-height, 760px) !important;
    }

    body.geekhub-custom-surface .gh-hero-slide__media {
        background-image: var(--gh-hero-mobile-image, var(--gh-hero-desktop-image)) !important;
        background-position: var(--gh-hero-mobile-focus, center) center !important;
        background-size: cover !important;
        transform: scale(1.01);
    }

    body.geekhub-custom-surface .gh-hero-slide.is-active .gh-hero-slide__media {
        transform: scale(1.055);
    }

    body.geekhub-custom-surface .gh-hero-slider--transparent .gh-hero-slide__overlay {
        background:
            linear-gradient(0deg, rgba(3,10,18,.72) 0%, rgba(3,10,18,.34) 34%, rgba(3,10,18,.08) 63%, transparent 84%),
            linear-gradient(90deg, rgba(3,10,18,.08), transparent 74%);
    }

    body.geekhub-custom-surface .gh-hero-slide {
        align-items: flex-end;
    }

    body.geekhub-custom-surface .gh-hero-slide__content {
        align-self: flex-end;
        width: min(calc(100% - 32px), var(--gh-container)) !important;
        padding-top: 220px !important;
        padding-bottom: 154px !important;
    }

    body.geekhub-custom-surface .gh-hero-slide__copy {
        max-width: 100%;
    }

    body.geekhub-custom-surface .gh-hero-slide__content h1 {
        margin: 14px 0 14px;
        font-size: clamp(2.25rem, 10.2vw, 3.45rem);
        line-height: 1.02;
        letter-spacing: -.035em;
    }

    body.geekhub-custom-surface .gh-hero-slide__copy > p {
        display: -webkit-box;
        overflow: hidden;
        margin-bottom: 15px;
        font-size: .98rem;
        line-height: 1.55;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    body.geekhub-custom-surface .gh-hero-slide__note {
        max-width: 100%;
        margin-bottom: 16px;
        padding: 8px 12px;
        border-radius: 12px;
        font-size: .76rem;
        line-height: 1.4;
    }

    body.geekhub-custom-surface .gh-hero-slide__content .gh-button-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    body.geekhub-custom-surface .gh-hero-slide__content .gh-button {
        min-height: 48px;
        width: 100%;
        padding: 12px 14px;
        font-size: .82rem;
    }

    body.geekhub-custom-surface .gh-hero-slider__navigation {
        bottom: 98px;
        width: min(calc(100% - 32px), var(--gh-container));
    }

    body.geekhub-custom-surface .gh-hero-slider__proof-grid > div:first-child {
        min-height: 72px;
        padding: 12px 0;
    }

    body.geekhub-custom-surface .gh-hero-slider__proof-grid strong {
        font-size: .88rem;
    }

    body.geekhub-custom-surface .gh-hero-slider__proof-grid span {
        font-size: .72rem;
    }

    .gh-media-slider__slide.is-active .gh-slider-image {
        transform: scale(1.045);
    }

    html.gh-motion-enabled .gh-reveal {
        transform: translate3d(0, 22px, 0);
    }
}

@media (max-width: 420px) {
    body.geekhub-custom-surface .gh-hero-slide__content {
        padding-bottom: 148px !important;
    }

    body.geekhub-custom-surface .gh-hero-slide__content .gh-button-row {
        grid-template-columns: 1fr;
    }

    body.geekhub-custom-surface .gh-hero-slide__content h1 {
        font-size: clamp(2.05rem, 10vw, 2.8rem);
    }

    body.geekhub-custom-surface .gh-hero-slide__copy > p {
        -webkit-line-clamp: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.gh-motion-enabled .gh-reveal,
    .gh-page-hero h1,
    .gh-page-hero p,
    .gh-page-hero .gh-kicker,
    .gh-page-hero .gh-button-row,
    .gh-media-slider__slide .gh-slider-image,
    .gh-hero-slide__copy > *,
    .gh-product-card,
    .gh-solution-grid > article,
    .gh-process-grid > article,
    .gh-value-grid > article,
    .gh-capability-grid > article,
    .gh-application-grid > article {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
