/* Laboratory hero (~62vh). Used on about/lab.html. */

.lab-hero-overview-page {
    --lab-hero-min: clamp(420px, 62vh, 72vh);
}

.lab-hero {
    position: relative;
    min-height: var(--lab-hero-min);
    display: grid;
    grid-template-rows: 1fr;
    align-items: stretch;
    justify-items: stretch;
    padding: 0 20px;
    overflow: hidden;
    text-align: center;
    background: #05080c;
}

.lab-hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #05080c;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url("assets/lab-brain-poster.jpg");
}

.lab-hero-overview-page .lab-hero-video-wrap {
    background-image: url("assets/lab-brain-poster.jpg");
}

.lab-hero-brain-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    pointer-events: none;
}

.lab-hero-brain-canvas.is-active {
    display: block;
}

.lab-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lab-hero-video.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .lab-hero-video:not(.is-hidden) {
        display: none;
    }
}

.lab-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at center, rgba(5, 8, 12, 0.32) 0%, rgba(5, 8, 12, 0.78) 100%),
        linear-gradient(to bottom, rgba(5, 8, 12, 0.5) 0%, rgba(5, 8, 12, 0.15) 42%, rgba(5, 8, 12, 0.88) 100%);
}

.lab-hero-center {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: stretch;
    justify-items: center;
    width: 100%;
    max-width: 920px;
    min-height: var(--lab-hero-min);
    margin: 0 auto;
    padding: clamp(6px, 1.4vh, 14px) 6% clamp(18px, 3.5vh, 34px);
    box-sizing: border-box;
    grid-row: 1;
}

.lab-hero-brand {
    margin: 0;
    padding-top: clamp(2px, 0.6vh, 8px);
    text-align: center;
    pointer-events: none;
    align-self: start;
}

.lab-hero-brand-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.15rem, 3.2vw, 1.65rem);
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 0 40px rgba(106, 223, 255, 0.12);
}

.lab-hero-brand-title sup {
    font-size: 0.55em;
    letter-spacing: 0;
    vertical-align: super;
}

.lab-hero-brand-sub {
    margin: 0.45em 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.78rem, 2vw, 0.92rem);
    font-weight: 600;
    letter-spacing: 0.28em;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.lab-hero-message {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(72px, 12vh, 140px);
    margin: 0;
    padding: clamp(8px, 1.5vh, 20px) 0;
    box-sizing: border-box;
    pointer-events: none;
    align-self: center;
}

.lab-hero-message .fade-text {
    margin: 0;
    max-width: 860px;
    color: #ffffff;
    font-size: clamp(1.25rem, 3.2vw, 2.35rem);
    font-weight: 520;
    letter-spacing: -0.022em;
    line-height: 1.32;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.95), 0 0 56px rgba(0, 0, 0, 0.75), 0 0 1px rgba(0, 0, 0, 1);
}

.lab-hero-message .fade-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.lab-hero-foot {
    width: 100%;
    max-width: 640px;
    margin-top: 0;
    padding-bottom: clamp(4px, 1vh, 10px);
    text-align: center;
    pointer-events: auto;
    align-self: end;
}

.lab-hero-foot .eyebrow {
    margin: 0 0 1rem;
    color: #6adfff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lab-hero-foot .explico-ea-cta {
    margin-top: clamp(0.75rem, 2vh, 1.25rem);
}

.lab-hero .seo-statements {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    list-style: none;
}

.lab-hero-overview-page .marketing-main--below-hero {
    max-width: var(--max, 720px);
    margin: 0 auto;
    padding: 24px 24px 64px;
}

@media (max-width: 640px) {
    .lab-hero-overview-page {
        --lab-hero-min: clamp(380px, 58vh, 68vh);
    }

    .lab-hero-message {
        min-height: clamp(80px, 14vh, 128px);
    }

    .lab-hero-message .fade-text {
        font-size: clamp(1.1rem, 4.5vw, 1.65rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lab-hero-message .fade-text {
        transition: none;
        opacity: 1;
        transform: none;
    }
}
