#hero-section {
    min-height: 100svh;
    height: 100vh;
}

#hero-bg {
    overflow: hidden;
}

.homepage-hero-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    object-fit: cover;
    opacity: 0.76;
}

.homepage-hero-overlay {
    background: rgba(12, 39, 58, 0.16);
}

.alt-hero-copy {
    background: linear-gradient(145deg, rgba(10, 31, 45, 0.42), rgba(10, 31, 45, 0.18));
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px) saturate(115%);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
}

.hero-side-panel {
    background: linear-gradient(145deg, rgba(10, 31, 45, 0.68), rgba(10, 31, 45, 0.62));
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(14px) saturate(115%);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
}

.hero-side-label {
    color: #fff;
}

.homepage-kpi-strip-copy {
    margin: 0;
}

/* Desktop: let the project video lead, then reveal the two glass panels. */
@media (hover: hover) and (pointer: fine) {
    #hero-section .alt-hero-copy,
    #hero-section .hero-side-panel {
        opacity: 0;
        transform: translateY(14px) scale(0.99);
        pointer-events: none;
        transition:
            opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
            transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    #hero-section .hero-side-panel {
        animation: none;
    }

    #hero-section:hover .alt-hero-copy,
    #hero-section:hover .hero-side-panel,
    #hero-section:focus-within .alt-hero-copy,
    #hero-section:focus-within .hero-side-panel {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    #hero-section:hover .hero-side-panel,
    #hero-section:focus-within .hero-side-panel {
        transition-delay: 70ms;
    }
}

@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
    #hero-section .alt-hero-copy,
    #hero-section .hero-side-panel {
        transform: none;
        transition: none;
    }
}

/* Narrow layouts cannot depend on hover: keep the hero content and links usable. */
@media (max-width: 1023px) {
    #hero-section .alt-hero-copy,
    #hero-section .hero-side-panel {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    #hero-section .alt-hero-copy {
        min-width: 0;
    }

    #hero-h1 {
        font-size: clamp(2.125rem, 5.4vw, 2.875rem);
        line-height: 1.1;
    }

    .homepage-about-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 760px;
        margin-inline: auto;
    }

    .homepage-about-collage {
        display: none;
    }

    .homepage-logo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .logo-tile {
        min-width: 0;
        overflow: hidden;
    }

    .logo-mark {
        display: block;
        max-width: min(150px, 100%);
        width: auto;
        height: auto;
    }
}

@media (max-width: 768px) {
    #hero-section {
        height: auto;
        min-height: 100svh;
        padding: 124px 0 76px;
        overflow: hidden;
    }

    .alt-hero-shell {
        align-items: stretch;
    }

    .homepage-kpi-strip-copy {
        font-size: 1rem;
        line-height: 1.5;
        letter-spacing: .18em;
    }
}

@media (max-width: 767px) {
    .homepage-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 769px) and (max-height: 780px) {
    #hero-section {
        height: auto;
        min-height: 100svh;
        padding: 132px 0 64px;
        align-items: flex-start;
    }
}
