/* Homepage opening: a pinned film, followed by customers and the suite. */
.home-page .suite-hero {
    position: relative;
    isolation: isolate;
    min-height: 120svh;
    background: #101113;
    color: #fff;
}

.suite-hero-media {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100svh;
    margin: 0;
    overflow: hidden;
    background: #101113;
}

.suite-hero-media .hero-video {
    object-position: center;
}

.suite-hero-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .14) 45%, rgba(0, 0, 0, .20));
}

.suite-hero-content {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    margin-top: -100svh;
    display: grid;
    align-items: center;
    pointer-events: none;
}

.suite-hero-layout {
    width: min(1100px, calc(100% - 3rem));
    padding: 8rem 0 7rem;
    text-align: center;
}

.suite-hero-mark {
    display: block;
    width: clamp(230px, 24vw, 320px);
    height: auto;
    margin: 0 auto 1.75rem;
}

.suite-hero .hero-title {
    max-width: 22ch;
    margin: 0 auto 1.75rem;
    font-size: clamp(2.65rem, 5.4vw, 5.5rem);
    color: inherit;
    text-wrap: balance;
}

.suite-hero .hero-subtitle {
    max-width: 40rem;
    color: var(--immersive-studio-muted);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    text-wrap: balance;
}

.suite-hero .hero-actions {
    margin-top: 2rem;
    pointer-events: auto;
}

.suite-hero .hero-secondary-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, .65);
    background: rgba(0, 0, 0, .12);
}

.suite-hero .hero-secondary-btn:hover {
    background: rgba(255, 255, 255, .16);
}

.suite-hero-media .media-play-toggle {
    right: clamp(1rem, 3vw, 3rem);
    bottom: 1.5rem;
}

.home-page .suite-customers {
    position: relative;
    padding: clamp(4rem, 6vw, 6rem) 1.5rem;
    background: var(--background);
}

.suite-customers .hero-proof {
    width: min(100%, 62rem);
    margin: 0 auto;
    text-align: center;
}

.suite-customers .hero-proof-label {
    color: var(--immersive-studio-muted);
}

.suite-customers .hero-proof .logo-carousel {
    padding-inline: var(--hero-logo-edge-fade);
}

.suite-customers .hero-proof .logo-list {
    /* Ease into the first 5% once, then loop at a continuous, steady speed. */
    animation: suite-logo-intro 3.8s cubic-bezier(.333333, 0, .666667, .333333) 2s 1 forwards,
        suite-logo-scroll 38s linear 5.8s infinite;
    animation-play-state: paused;
}

.suite-customers .hero-proof .is-playing .logo-list {
    animation-play-state: running;
}

@keyframes suite-logo-intro {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-2.5% - .025rem)); }
}

@keyframes suite-logo-scroll {
    from { transform: translateX(calc(-2.5% - .025rem)); }
    to { transform: translateX(calc(-52.5% - .525rem)); }
}

@media (prefers-reduced-motion: reduce) {
    .suite-customers .hero-proof .logo-carousel {
        overflow-x: auto;
    }

    .suite-customers .hero-proof .logo-list {
        animation: none;
    }

    .suite-customers .logo-list [aria-hidden="true"] {
        display: none;
    }
}

.suite-customers .hero-proof .logo-list li {
    width: clamp(92px, 6vw, 112px);
    height: 48px;
}

.suite-customers .hero-proof .logo-list img {
    max-height: clamp(2rem, 2vw, 2.4rem);
}

.suite-customers .hero-proof .logo-list img[src*="EY_logo_2019"] {
    max-height: clamp(1.75rem, 1.7vw, 2rem);
}

.home-page #suite {
    margin: 0;
    padding-top: 2rem;
    background: var(--background);
}

@media (max-width: 600px) {
    .home-page .suite-hero {
        min-height: 110svh;
    }

    .suite-hero-layout {
        width: calc(100% - 2.5rem);
        padding: 7rem 0 5rem;
    }

    .suite-hero .hero-title {
        font-size: clamp(2.25rem, 9.5vw, 3.5rem);
    }

    .suite-hero .hero-actions {
        gap: .65rem;
    }

    .suite-customers .hero-proof .logo-carousel {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .suite-hero {
        min-height: 100svh;
    }

    .suite-hero-media {
        position: relative;
    }
}

/* Large app showcases share the site's native scroll rail and paddle controls. */
.home-page #suite .suite-app-carousel {
    margin: 0;
    --suite-slide-width: min(1120px, 78vw);
}

.home-page #suite .suite-app-rail {
    --immersive-studio-rail-gutter: calc((100vw - var(--suite-slide-width)) / 2);
    width: 100%;
    max-width: 100%;
    margin: 0;
    grid-auto-flow: column;
    grid-auto-columns: var(--suite-slide-width);
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--immersive-studio-rail-gutter);
    padding: .25rem var(--immersive-studio-rail-gutter) 1rem;
}

.home-page #suite .suite-app-slide {
    width: 100%;
    scroll-snap-align: center;
    border-radius: 30px;
    overflow: hidden;
    background: var(--surface-strong);
    opacity: 1;
    transform: none;
}

.suite-app-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(24px, 3vw, 44px);
    text-decoration: none;
    color: var(--ink);
}

.suite-app-link:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: -5px;
    border-radius: 30px;
}

.suite-app-icon {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.suite-app-copy {
    max-width: 42ch;
    min-height: 3.8em;
    margin: 0 0 1.5rem;
    font-size: clamp(1.2rem, 1.8vw, 1.65rem);
    line-height: 1.25;
    letter-spacing: -.02em;
    font-weight: 600;
    color: var(--immersive-studio-muted);
    text-wrap: pretty;
}

.suite-app-slide--maps { --app-accent: #008c83; }
.suite-app-slide--reviewer { --app-accent: #a254ec; }
.suite-app-slide--training { --app-accent: #d87900; }
.suite-app-slide--interior { --app-accent: #008ee6; }
.suite-app-copy span { color: var(--app-accent); }

.suite-app-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(240px, 30vw, 440px);
    margin: auto 0 0;
}

.suite-app-visual img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
}

.suite-app-visual--device img {
    border-radius: 0;
}

.suite-app-more {
    display: block;
    margin-top: 1.5rem;
    font-size: .95rem;
    color: var(--ink);
}

.home-page #suite .immersive-studio-creation-rail-paddlenav {
    display: flex !important;
    justify-content: center;
}

@media (max-width: 760px) {
    .home-page #suite .suite-app-carousel { --suite-slide-width: 86vw; }
    .home-page #suite .suite-app-rail { gap: 16px; }
    .suite-app-copy { min-height: 6.25em; }
    .suite-app-visual { height: 230px; }
    .suite-app-link { padding: 24px 20px; }
    .home-page #suite .suite-app-slide { border-radius: 24px; }
}

/* The extra section height is the native vertical scroll distance for all four apps. */
.home-page #suite.suite-scroll-enabled {
    height: var(--suite-scroll-height);
    padding: 0;
    overflow: visible;
}

.home-page #suite.suite-scroll-enabled .suite-app-carousel {
    position: sticky;
    top: var(--suite-sticky-top, 64px);
}

.home-page #suite.suite-scroll-enabled .suite-app-rail {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.suite-scroll-enabled .suite-app-visual {
    height: var(--suite-media-height);
}
