/* Fill the rounded frame horizontally while keeping the whole 16:9 film visible. */
#home.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    padding: clamp(12px, 1.6vw, 24px);
    background:
        radial-gradient(circle at 15% 12%, rgba(168, 211, 193, .38), transparent 38%),
        linear-gradient(135deg, #244b43 0%, #4f7b6c 50%, #1c403a 100%);
    perspective: none;
}

#home .hero-video-wrapper {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    height: auto;
    aspect-ratio: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(229, 246, 236, .82);
    border-radius: clamp(16px, 2vw, 30px);
    background: linear-gradient(90deg, #183931, #102a27 18%, #102a27 82%, #183931);
    box-shadow: 0 0 0 1px rgba(18, 56, 45, .45), 0 18px 50px rgba(7, 31, 25, .34);
    overflow: hidden;
}

#home .hero-video-stage {
    position: relative;
    width: 100%;
    max-width: calc(177.778vh - 240px);
    max-width: calc(177.778svh - 240px);
    min-width: 0;
    aspect-ratio: 16 / 9;
    flex: 0 1 auto;
    background: #10241f url('../img/home/hero-video-poster.jpg') center / contain no-repeat;
    overflow: hidden;
}

#home .hero-video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: inherit;
    pointer-events: none;
}

#home .hero-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    transform: none;
    object-fit: contain;
    object-position: center;
    opacity: 1;
}

body.low-performance #home .hero-video { transform: none !important; }

#home .home-hero-accessible-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#home .hero-video-overlay,
#home .hero-container,
#home .hero-canvas,
#home .hero-ambient,
#home .gradient-mesh,
#home .hero-grid,
#home .hero-visuals,
#home .hero-scroll,
#home .hero-corner,
#home .hero-creative-frame,
#home .holographic-orbs { display: none !important; }

/* Let the lab photograph set the height of its own card. */
#innovation .lab-bento-grid {
    grid-template-rows: auto auto auto auto;
}

#innovation .lab-card-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 1388 / 555;
}

#innovation .lab-image-wrap {
    height: 100%;
}

#innovation .lab-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 600px) {
    #home.hero { padding: 12px; }
    #home .hero-video-wrapper { border-width: 2px; border-radius: 16px; }
}
