/* Exegeo hero gallery. All selectors are restricted to the enhanced homepage hero. */
body.home .exegeo-hero figure.exegeo-logo.exegeo-hero-gallery {
    position: relative;
}
/* Keep the original image in flow: its lower wordmark never moves or changes. */
body.home .exegeo-hero figure.exegeo-logo.exegeo-hero-gallery > img {
    clip-path: inset(74% 0 0);
}
body.home .exegeo-hero-gallery__stage {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--exg-art-width);
    height: 74%;
    transform: translateX(-50%);
    pointer-events: none;
    isolation: isolate;
}
body.home .exegeo-hero-gallery__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 1100ms ease-in-out;
    pointer-events: none;
}
body.home .exegeo-hero-gallery__slide.is-active { opacity: 1; }
body.home .exegeo-hero-gallery__stage .exegeo-hero-gallery__image {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    animation: none !important;
    transform: none !important;
}
body.home .exegeo-hero-gallery__slide--logo {
    overflow: hidden;
    filter: drop-shadow(0 7px 6px rgba(23,55,94,.13));
}
/* Crop the alternate wordmark; the shared original stays visible. */
body.home .exegeo-hero-gallery__slide--logos {
    padding-top: 3%;
    transform: scale(.92);
    transform-origin: center bottom;
    filter: drop-shadow(0 8px 7px rgba(23,55,94,.16));
}
body.home .exegeo-hero-gallery__slide--logos .exegeo-hero-gallery__image {
    clip-path: inset(0 0 33.5% 0);
}
/* Fit the complete scribe scene above the shared wordmark, without cropping. */
body.home .exegeo-hero-gallery__slide--scribe {
    transform: translateY(5%) scale(1.08);
    transform-origin: center bottom;
    filter: drop-shadow(0 12px 9px rgba(23,55,94,.25));
}
body.home .exegeo-hero-gallery__slide--scribe .exegeo-hero-gallery__image {
    height: 100% !important;
    object-fit: contain;
}
/* Reserve two separate lanes for the existing letters, outside the images. */
body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter {
    --orbit-x: 12px;
}
body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter:nth-child(1),
body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter:nth-child(2),
body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter:nth-child(5) {
    left: calc(50% - var(--exg-art-width) / 2 - 94px) !important;
    right: auto !important;
}
body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter:nth-child(3),
body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter:nth-child(4) {
    right: calc(50% - var(--exg-art-width) / 2 - 94px) !important;
    left: auto !important;
}
body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter:nth-child(5) {
    --orbit-x: 8px;
    top: 9%;
}
@media (max-width: 781px) {
    body.home .exegeo-hero.exegeo-hero-gallery-host figure.exegeo-logo.exegeo-hero-gallery > img {
        width: min(300px, calc(100vw - 104px)) !important;
    }
    body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter {
        font-size: 36px;
        --orbit-x: 3px;
        --orbit-y: 14px;
    }
    body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter:nth-child(1),
    body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter:nth-child(2),
    body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter:nth-child(5) {
        left: max(8px, calc(50% - var(--exg-art-width) / 2 - 36px)) !important;
    }
    body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter:nth-child(3),
    body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter:nth-child(4) {
        right: max(8px, calc(50% - var(--exg-art-width) / 2 - 36px)) !important;
    }
    body.home .exegeo-hero.exegeo-hero-gallery-host .exegeo-home-motion__letter:nth-child(5) { --orbit-x: 3px; }
}
@media (prefers-reduced-motion: reduce) {
    body.home .exegeo-hero-gallery__slide { transition: none; }
}
