/* LAPBEE Cinematic Workshop Intro — isolated styles */
#lapbee-cinematic-intro,
#lapbee-cinematic-intro * { box-sizing: border-box; }

#lapbee-cinematic-intro {
    position: fixed;
    inset: 0;
    z-index: 999999;
    overflow: hidden;
    background: #080d0c;
    color: #f6f3e9;
    isolation: isolate;
    perspective: 1200px;
    opacity: 1;
    visibility: visible;
    transition: opacity .65s ease, visibility .65s ease;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#lapbee-cinematic-intro.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.lapbee-intro-scene {
    position: absolute; inset: -2%;
    overflow: hidden;
    transform: translateZ(0);
    animation: lapbeeSceneMove var(--lapbee-intro-duration, 7s) cubic-bezier(.52,0,.22,1) both;
    background: #05090d;
}
.lapbee-intro-image { position: absolute; display: block; width: 100%; height: 100%; }
.lapbee-intro-blur {
    inset: -7%; width: 114%; height: 114%;
    object-fit: cover;
    filter: blur(22px) brightness(.34) saturate(.78);
    transform: scale(1.06);
}
.lapbee-intro-main {
    z-index: 1; inset: 0;
    object-fit: cover; object-position: center;
    filter: saturate(.96) contrast(1.07);
}
.lapbee-intro-grade {
    position: absolute; z-index: 2; inset: 0; pointer-events: none;
    background:
      linear-gradient(180deg, #02070bb0 0%, transparent 23%, transparent 66%, #02070bdc 100%),
      linear-gradient(90deg, #03101b66, transparent 35%, transparent 75%, #02070b66);
}
.lapbee-intro-grade:after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 48%, transparent 32%, #0009 100%);
}
.lapbee-intro-hud {
    display: none;
    position: absolute; z-index: 4;
    top: clamp(18px, 4vh, 42px); left: clamp(18px, 4vw, 55px); right: clamp(18px, 4vw, 55px);
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    text-shadow: 0 2px 12px #000;
}
.lapbee-intro-brand { display: flex; align-items: center; gap: 12px; font-weight: 950; letter-spacing: .18em; font-size: 18px; }
.lapbee-intro-brand small { display: block; margin-top: 4px; color: #f4d95a; font-size: 8px; letter-spacing: .28em; }
.lapbee-intro-mark {
    width: 42px; height: 42px; display: grid; place-items: center;
    border: 1px solid #f4d95a; color: #f4d95a; font-size: 25px; font-weight: 900;
    background: #211611aa; box-shadow: 0 0 24px #f4d95a22;
}
.lapbee-intro-location {
    border: 1px solid #f4d95a66; border-radius: 30px; padding: 9px 14px;
    background: #21161188; color: #f5e8b1; backdrop-filter: blur(10px);
    font-size: 9px; letter-spacing: .2em;
}
.lapbee-intro-reticle {
    display: none;
    position: absolute; z-index: 4; left: 50%; top: 47%;
    width: 42px; height: 42px; transform: translate(-50%,-50%); opacity: .72;
}
.lapbee-intro-reticle i, .lapbee-intro-reticle b {
    position: absolute; inset: 0; border: 1px solid #f4d95a77; border-radius: 50%;
}
.lapbee-intro-reticle b { inset: 14px; border-color: #f4d95a; box-shadow: 0 0 13px #f4d95a; }
.lapbee-intro-waypoints {
    display: none;
    position: absolute; z-index: 4; left: 50%; bottom: clamp(92px, 14vh, 130px);
    transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
    color: #e6e1d5; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.lapbee-intro-waypoints span {
    width: 24px; height: 24px; display: grid; place-items: center;
    border: 1px solid #e8e0c288; border-radius: 50%; background: #211611aa;
}
.lapbee-intro-waypoints span.is-active { color: #211611; background: #f4d95a; border-color: #f4d95a; box-shadow: 0 0 18px #f4d95a77; }
.lapbee-intro-waypoints i { display: block; width: clamp(24px, 5vw, 66px); height: 1px; background: linear-gradient(90deg,#f4d95a,#b9a56c66); }
.lapbee-intro-caption {
    display: none;
    position: absolute; z-index: 4; left: 50%; bottom: clamp(22px, 5vh, 48px);
    width: min(92vw, 760px); transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    text-shadow: 0 2px 14px #000; animation: lapbeeCaption var(--lapbee-intro-duration, 7s) ease both;
}
.lapbee-intro-caption small { margin-bottom: 9px; color: #f4d95a; font-size: 9px; letter-spacing: .34em; font-weight: 800; }
.lapbee-intro-caption strong { color: #fff9e8; font-size: clamp(14px, 2.2vw, 23px); line-height: 1.4; letter-spacing: .12em; }
.lapbee-intro-caption span { margin-top: 7px; color: #e1ded5; font-size: 11px; letter-spacing: .04em; }
.lapbee-intro-progress {
    position: absolute; z-index: 5; left: 50%; bottom: 12px;
    width: min(220px, 48vw); height: 2px; transform: translateX(-50%);
    overflow: hidden; background: #ffffff2b;
}
.lapbee-intro-progress i {
    display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left;
    background: #f4d95a; animation: lapbeeProgress var(--lapbee-intro-duration, 7s) linear both;
}
@keyframes lapbeeSceneMove {
    0% {
        transform: scale(1.00) translate3d(0, 0, 0);
        filter: brightness(.82);
    }
    22% {
        transform: scale(1.07) translate3d(0, .3%, 0);
        filter: brightness(.90);
    }
    58% {
        transform: scale(1.16) translate3d(0, -1.0%, 0);
        filter: brightness(1);
    }
    100% {
        transform: scale(1.25) translate3d(0, -2.0%, 0);
        filter: brightness(1.04);
    }
}
@keyframes lapbeeProgress { to { transform: scaleX(1); } }
@keyframes lapbeeCaption {
    0%, 58% { opacity: 0; letter-spacing: .35em; }
    70%, 88% { opacity: 1; letter-spacing: .12em; }
    100% { opacity: 0; }
}
@media (max-width: 700px) {
    .lapbee-intro-scene { inset: 0; display: grid; place-items: center; }
    .lapbee-intro-blur { inset: -8%; width: 116%; height: 116%; filter: blur(22px) brightness(.34) saturate(.8); }
    .lapbee-intro-main { width: 100%; height: 100%; object-fit: contain; object-position: center; }
    .lapbee-intro-hud { top: 13px; left: 13px; right: 13px; }
    .lapbee-intro-brand { font-size: 13px; }
    .lapbee-intro-mark { width: 34px; height: 34px; font-size: 20px; }
    .lapbee-intro-brand small { font-size: 7px; }
    .lapbee-intro-location { max-width: 48%; font-size: 7px; padding: 7px 8px; letter-spacing: .1em; text-align: center; }
    .lapbee-intro-reticle { top: 44%; }
    .lapbee-intro-waypoints { bottom: 102px; gap: 6px; }
    .lapbee-intro-waypoints i { width: 23px; }
    .lapbee-intro-caption { bottom: 25px; width: 94vw; }
    .lapbee-intro-caption strong { font-size: 13px; letter-spacing: .07em; }
    .lapbee-intro-caption span { font-size: 9px; line-height: 1.5; }
    .lapbee-intro-caption small { font-size: 8px; }
    .lapbee-intro-progress { bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    #lapbee-cinematic-intro { transition-duration: .01ms; }
    .lapbee-intro-scene, .lapbee-intro-caption, .lapbee-intro-progress i { animation-duration: .01ms !important; }
}

.lapbee-intro-logo {
    display:block;
    width:48px;
    height:48px;
    object-fit:contain;
    padding:2px;
    border-radius:9px;
    background:#211611cc;
    filter:drop-shadow(0 2px 12px #0008);
}
@media (max-width:700px) {
    .lapbee-intro-logo { width:38px; height:38px; }
}

/* Avoid a one-frame flash when sessionStorage says this intro was already seen. */
html.lapbee-intro-seen #lapbee-cinematic-intro {
    display: none !important;
}
