/* ========================================================
   VIDEO LANDING BACKGROUND
   ======================================================== */

#videoLayer {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(5,5,5,.18), rgba(5,5,5,.86)),
        url("/static/images/background.jpg") center / cover no-repeat,
        #050505;
    pointer-events: none;
    transition: opacity .6s ease-in-out;
}

body[data-flow-state="hero"] #videoLayer,
body[data-flow-state="capture"] #videoLayer,
body[data-flow-state="generating"] #videoLayer,
body[data-flow-state="results"] #videoLayer {
    opacity: 0;
    visibility: hidden;
}

#bgVideo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .78;
    filter: saturate(.76) contrast(1.05) brightness(.78);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,5,5,.34) 0%, rgba(5,5,5,.18) 42%, rgba(5,5,5,.88) 100%),
        linear-gradient(90deg, rgba(5,5,5,.18), rgba(10,88,112,.2) 50%, rgba(5,5,5,.2));
    pointer-events: none;
    transition: opacity .6s ease-in-out;
}

.video-entry-layer {
    position: fixed;
    inset: 0;
    z-index: 10;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    transition: opacity .4s ease;
}

.video-entry-layer.hide,
body[data-flow-state="hero"] .video-entry-layer,
body[data-flow-state="capture"] .video-entry-layer,
body[data-flow-state="generating"] .video-entry-layer,
body[data-flow-state="results"] .video-entry-layer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-entry-logo {
    position: absolute;
    top: clamp(28px, 4vw, 58px);
    left: clamp(24px, 4vw, 58px);
    width: clamp(158px, 13vw, 260px);
    height: auto;
    pointer-events: none;
}

.video-entry-copy {
    position: absolute;
    left: clamp(24px, 4vw, 78px);
    right: clamp(24px, 4vw, 78px);
    top: 56%;
    display: grid;
    justify-items: center;
    gap: clamp(16px, 2.1vw, 30px);
    width: auto;
    max-width: none;
    text-align: center;
    transform: translateY(-50%);
    pointer-events: none;
}

.video-entry-title {
    width: min(100%, 1180px);
    margin: 0;
    color: #fff;
    font-family: var(--nanno-font-display);
    font-size: clamp(56px, 5.35vw, 104px);
    font-weight: 400;
    line-height: .96;
    letter-spacing: 0;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-shadow: 0 20px 56px rgba(0,0,0,.5);
}

.video-entry-accent {
    color: var(--cyan);
}

.video-entry-subtitle {
    width: min(100%, 900px);
    margin: 0;
    color: rgba(255,255,255,.78);
    font-family: var(--nanno-font-body);
    font-size: clamp(20px, 1.55vw, 30px);
    font-weight: 600;
    line-height: 1.25;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-shadow: 0 14px 36px rgba(0,0,0,.5);
}

.video-entry-actions {
    position: absolute;
    left: clamp(24px, 4vw, 58px);
    right: clamp(24px, 4vw, 58px);
    bottom: clamp(34px, 5vw, 72px);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(14px, 1.4vw, 24px);
    width: auto;
    max-width: 100%;
}

.video-entry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(280px, 20vw, 500px);
    max-width: 100%;
    min-height: clamp(74px, 5.1vw, 116px);
    padding: clamp(18px, 1.5vw, 32px) clamp(36px, 2.9vw, 72px);
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(5,5,5,.74);
    color: #fff;
    font-family: var(--nanno-font-body);
    font-size: clamp(24px, 1.8vw, 38px);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow-wrap: anywhere;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 52px rgba(0,0,0,.36);
    transition: border-color .22s ease, color .22s ease, background .22s ease, transform .22s ease;
}

.video-entry-button-secondary {
    order: 1;
    min-width: clamp(260px, 19vw, 460px);
    border-color: rgba(255,255,255,.18);
    background: rgba(5,5,5,.58);
    color: rgba(255,255,255,.92);
}

.video-entry-button[data-open-console],
.video-entry-button[data-start-experience] {
    order: 2;
}

.video-entry-button:hover,
.video-entry-button:focus-visible {
    border-color: rgba(10,186,181,.78);
    background: rgba(10,186,181,.12);
    color: var(--cyan);
    outline: none;
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    #bgVideo {
        display: none;
    }
}

/* ========================================================
   CLEANROOM CONSOLE HERO
   ======================================================== */

.experience-shell {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 100%;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    padding: clamp(18px, 3.2vw, 48px);
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    isolation: isolate;
    background: rgba(5,5,5,.82);
    transition: opacity 0.6s ease-in-out;
}

body[data-flow-state="capture"] .experience-shell,
body[data-flow-state="generating"] .experience-shell,
body[data-flow-state="results"] .experience-shell,
body[data-flow-state="landing"] .experience-shell {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.experience-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5,5,5,.98) 0 42%, rgba(5,5,5,.88) 64%, rgba(5,5,5,.7) 100%),
        linear-gradient(180deg, rgba(10,186,181,.08), rgba(5,5,5,.96)),
        var(--nanno-modal-bg-url, url("/static/images/modal-lab-bg.jpg")) right center / auto 100% no-repeat;
}

.experience-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(48,55,57,.2) 1px, transparent 1px) 0 0 / 92px 92px,
        linear-gradient(90deg, rgba(48,55,57,.16) 1px, transparent 1px) 0 0 / 92px 92px,
        radial-gradient(circle at 76% 48%, rgba(10,186,181,.14), transparent 34%),
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.07), transparent 24%);
    pointer-events: none;
}

.lab-hero-console,
.lab-hero-final,
.lab-hero-console-shell,
.lab-hero-shell,
.lab-hero-copy,
.lab-hero-visual,
.lab-hero-visual-panel,
.lab-hero-visual-frame,
.lab-hero-picture,
.lab-hero-actions,
.lab-hero-process {
    box-sizing: border-box;
    max-width: 100%;
}

.lab-hero-final {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.lab-hero-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(460px, .86fr) minmax(560px, 1.14fr);
    align-items: center;
    justify-content: space-between;
    gap: clamp(34px, 4.8vw, 76px);
    width: min(100%, 1460px);
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: clamp(20px, 3.2vw, 42px);
    overflow: hidden;
}

.lab-hero-shell::before,
.lab-hero-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.lab-hero-shell::before {
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--cyan), rgba(10,186,181,.24), var(--cyan));
    opacity: .72;
}

.lab-hero-shell::after {
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--cyan), rgba(10,186,181,.24), var(--cyan));
    opacity: .72;
}

.lab-hero-copy {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: start;
    gap: clamp(9px, 1.25dvh, 16px);
    min-width: 0;
}

.lab-hero-brand {
    position: absolute;
    left: clamp(20px, 3.2vw, 42px);
    top: clamp(20px, 3.2vw, 42px);
    z-index: 4;
    display: grid;
    gap: 3px;
    justify-items: start;
    min-width: 0;
}

.lab-hero-logo {
    width: var(--nanno-logo-size-desktop, 210px);
    max-width: min(25vw, 260px);
    height: auto;
}

.lab-hero-brand span {
    display: none;
}

.lab-hero-title {
    width: min(100%, 720px);
    margin: 0;
    color: #fff;
    font-family: var(--nanno-font-display);
    font-size: clamp(64px, 5.7vw, 108px);
    font-weight: 400;
    line-height: .86;
    letter-spacing: 0;
    text-transform: uppercase;
    overflow-wrap: break-word;
    word-break: normal;
}

.lab-hero-title span,
.lab-hero-title strong {
    display: block;
}

.lab-hero-title strong {
    color: var(--cyan);
    font-weight: 400;
}

.lab-hero-summary {
    width: min(100%, 620px);
    margin: 0;
    color: #d5dcdd;
    font-family: var(--nanno-font-body);
    font-size: clamp(15px, 1.16vw, 20px);
    line-height: 1.42;
}

.lab-hero-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 720px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.lab-hero-process li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    min-width: 0;
    min-height: 64px;
    padding: 10px 11px;
    border: 1px solid rgba(48,55,57,.9);
    background:
        linear-gradient(135deg, rgba(10,186,181,.08), transparent 54%),
        rgba(5,5,5,.62);
    color: #fff;
    font-family: var(--nanno-font-body);
    line-height: 1.12;
    text-transform: uppercase;
}

.lab-hero-process-index {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(10,186,181,.6);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.lab-hero-process-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.lab-hero-process-copy strong {
    color: #fff;
    font-size: clamp(12px, .92vw, 14px);
    font-weight: 800;
    line-height: 1;
}

.lab-hero-process-copy em {
    color: var(--muted);
    font-size: clamp(11px, .82vw, 13px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.25;
    text-transform: none;
}

.lab-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: min(100%, 440px);
}

.lab-hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    width: 100%;
    min-width: 0;
    padding: 0 22px;
    border: 1px solid var(--cyan);
    border-radius: 0;
    font-family: var(--nanno-font-body);
    font-size: clamp(15px, 1.1vw, 18px);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.lab-hero-action-primary {
    background: linear-gradient(135deg, var(--cyan), var(--nanno-accent-dark));
    color: var(--nanno-button-text, #001012);
}

.lab-hero-action-secondary {
    border-color: rgba(135,162,167,.5);
    background: rgba(5,5,5,.66);
    color: #fff;
}

.lab-hero-action:hover,
.lab-hero-action:focus-visible {
    border-color: var(--cyan);
    background: rgba(10,186,181,.11);
    color: var(--cyan);
    box-shadow: 0 0 28px rgba(10,186,181,.14);
    outline: none;
}

.lab-hero-action-primary:hover,
.lab-hero-action-primary:focus-visible {
    background: linear-gradient(135deg, #13d1cc, var(--cyan));
    color: var(--nanno-button-text, #001012);
}

.lab-hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    width: 100%;
    justify-self: end;
}

.lab-hero-visual::before {
    content: "";
    position: absolute;
    right: 3%;
    top: 4%;
    width: min(32vw, 360px);
    aspect-ratio: 1;
    border: 1px solid rgba(10,186,181,.18);
    background-image: radial-gradient(circle, rgba(10,186,181,.72) 0 1px, transparent 1.6px);
    background-size: 18px 18px;
    opacity: .46;
    pointer-events: none;
}

.lab-hero-visual-frame {
    position: relative;
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    align-items: stretch;
    justify-items: stretch;
    width: min(100%, clamp(520px, 44vw, 710px));
    height: min(72svh, 720px);
    min-height: min(540px, 62svh);
    overflow: hidden;
    border: 1px solid rgba(10,186,181,.36);
    background:
        linear-gradient(90deg, rgba(5,5,5,.26), rgba(5,5,5,.08) 44%, rgba(5,5,5,.34)),
        linear-gradient(rgba(10,186,181,.08) 1px, transparent 1px) 0 0 / 58px 58px,
        linear-gradient(90deg, rgba(10,186,181,.07) 1px, transparent 1px) 0 0 / 58px 58px,
        var(--nanno-modal-bg-url, url("/static/images/modal-lab-bg.jpg")) center / cover no-repeat,
        rgba(2,9,12,.82);
    box-shadow: 0 30px 90px rgba(0,0,0,.62), 0 0 34px rgba(10,186,181,.1);
}

.lab-hero-visual-frame::before,
.lab-hero-visual-frame::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.lab-hero-visual-frame::before {
    inset: 14px;
    border-left: 1px solid rgba(10,186,181,.5);
    border-right: 1px solid rgba(10,186,181,.22);
    z-index: 2;
}

.lab-hero-visual-frame::after {
    display: none;
}

.lab-hero-picture {
    display: contents;
}

.lab-hero-subject {
    position: relative;
    z-index: 1;
    grid-area: 1 / 1;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    object-position: center bottom;
    display: block;
    user-select: none;
    filter: saturate(.92) contrast(1.06);
}

.lab-hero-annotation {
    position: absolute;
    z-index: 4;
    display: grid;
    gap: 5px;
    max-width: min(52%, 280px);
    padding: 12px 14px;
    border: 1px solid rgba(10,186,181,.34);
    background: rgba(3,10,12,.68);
    box-shadow: 0 16px 36px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.025);
    color: #fff;
    font-family: var(--nanno-font-body);
    pointer-events: none;
}

.lab-hero-annotation span {
    color: var(--cyan);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1;
    text-transform: uppercase;
}

.lab-hero-annotation strong {
    color: rgba(236,242,243,.86);
    font-size: clamp(12px, .9vw, 14px);
    font-weight: 600;
    line-height: 1.25;
}

.lab-hero-annotation-preview {
    left: clamp(18px, 2.2vw, 30px);
    top: clamp(18px, 2.2vw, 30px);
}

.lab-hero-annotation-secure {
    right: clamp(18px, 2.2vw, 30px);
    bottom: clamp(18px, 2.2vw, 30px);
}

.lab-hero-corner {
    position: absolute;
    z-index: 3;
    width: 42px;
    height: 42px;
    pointer-events: none;
}

.lab-hero-corner-tl {
    left: 0;
    top: 0;
    border-left: 2px solid var(--cyan);
    border-top: 2px solid var(--cyan);
}

.lab-hero-corner-tr {
    right: 0;
    top: 0;
    border-right: 2px solid var(--cyan);
    border-top: 2px solid var(--cyan);
}

.lab-hero-corner-bl {
    left: 0;
    bottom: 0;
    border-left: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
}

.lab-hero-corner-br {
    right: 0;
    bottom: 0;
    border-right: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
}

.lab-hero-phone-hotspot {
    position: absolute;
    z-index: 4;
    right: 6%;
    bottom: 8%;
    width: min(52%, 300px);
    height: 58%;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.lab-hero-phone-hotspot::after {
    content: "";
    position: absolute;
    left: 9%;
    right: 9%;
    top: 14%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(10,186,181,1), rgba(255,255,255,.92), rgba(10,186,181,1), transparent);
    opacity: .88;
    box-shadow: 0 0 8px rgba(10,186,181,.72), 0 0 18px rgba(10,186,181,.42);
    pointer-events: none;
    animation: nannoScan 3s infinite linear;
}

.lab-hero-phone-hotspot:focus-visible {
    outline: 1px solid var(--cyan);
    outline-offset: 3px;
}

@keyframes nannoScan {
    0% { top: 14%; }
    100% { top: 58%; }
}
