.chunjo-film {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    transition: opacity .45s ease-out;
}
.chunjo-film.is-ready { opacity: 1; }
/* Equal tracks around the wordmark keep its centre fixed independently of the CTA height. */
#imperivm-portal.home-page.portal-home .portal-home-hero {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-content: stretch;
    justify-items: center;
    padding: 0 16px;
}
#imperivm-portal.home-page.portal-home .portal-home-hero h1 {
    grid-row: 2;
    line-height: 0;
    width: clamp(320px, 40vw, 800px);
    max-width: 100%;
    filter: drop-shadow(0 2px 4px #17110bd6) drop-shadow(0 8px 20px #15110970);
}
#imperivm-portal.home-page.portal-home .portal-home-hero h1 img {
    display: block;
    width: 100%;
    height: auto;
}
#imperivm-portal.home-page.portal-home .portal-hero-actions {
    grid-row: 3;
    align-self: start;
    margin-top: clamp(10px, 1.1vw, 20px);
}
#imperivm-portal.home-page .chunjo-motion-toggle {
    position: absolute;
    right: clamp(8px, 1.6vw, 32px);
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
#imperivm-portal.home-page .chunjo-motion-toggle[hidden] { display: none; }
.chunjo-motion-toggle span {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid #cbb58585;
    border-radius: 50%;
    color: #fff0d3;
    background: #131514ae;
}
.chunjo-motion-toggle:hover span, .chunjo-motion-toggle:focus-visible span { background: #181918; }
.chunjo-motion-toggle span::before {
    content: '';
    width: 8px;
    height: 10px;
    box-sizing: border-box;
    border-inline: 3px solid currentColor;
}
.chunjo-motion-toggle[aria-pressed="false"] span::before {
    width: 0;
    height: 0;
    margin-left: 3px;
    border: solid transparent;
    border-width: 5px 0 5px 8px;
    border-left-color: currentColor;
}
@media (max-width: 760px) {
    #imperivm-portal.home-page.portal-home .portal-home-hero {
        height: auto;
        grid-template-rows: var(--chunjo-height) auto;
        padding: 0 12px 20px;
    }
    #imperivm-portal.home-page.portal-home .portal-home-hero h1 {
        grid-row: 1;
        align-self: center;
        width: min(65vw, 410px);
    }
    #imperivm-portal.home-page.portal-home .portal-hero-actions {
        grid-row: 2;
        margin-top: 9px;
    }
    #imperivm-portal.home-page .chunjo-motion-toggle {
        right: 2px;
        top: calc(var(--chunjo-height) - 44px);
        bottom: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    .chunjo-film { display: none; }
}
