.hero-landscape {
    z-index: 0;
    isolation: isolate;
}

.hero-landscape [hidden] {
    display: none !important;
}

.hero-logo-model {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Let the actual portfolio scroll behind the metal eye. The hero keeps its normal document height. */
body.home .hero-section.is-portal-ready {
    z-index: 10;
    background: transparent;
}

.hero-section.is-portal-ready .hero-landscape,
.hero-section.is-portal-ready .hero-overlay {
    transform: none !important;
}

.hero-section.is-portal-ready .hero-overlay {
    opacity: var(--portal-copy, 1);
}

body.home .site-main > .hero-section.is-portal-ready + .works-section {
    z-index: auto;
    scroll-margin-top: 0;
}

body.home .hero-section.is-portal-ready + .works-section > .home-work-marquee {
    z-index: 11;
    opacity: var(--portal-rail, 1);
}

.hero-section.is-portal-open .hero-poster,
.hero-section.is-portal-finished {
    visibility: hidden;
    pointer-events: none;
}

.hero-section.is-portal-open .hero-video {
    --bore: radial-gradient(ellipse var(--bore-rx, 1px) var(--bore-ry, 1px) at 50% 50%, transparent 99%, black 100%);
    -webkit-mask-image: var(--bore);
    mask-image: var(--bore);
}
