/* Vantrex Labs — the 3D lab tour (labs/index.html). js/lab-tour.js drives the camera; these are the page chrome and the room cards. */
body.lx.lt { --bg: #0d0f13; --bg2: #14161b; --card: #14161b; --ink: #f3f1ed; --ink2: #d5d1ca; --mut: #a7a29a; --line: rgba(255, 255, 255, .12); --line2: rgba(255, 255, 255, .07); background: #0d0f13; color: #f3f1ed; min-height: 100vh; overflow-x: hidden; }
.lt .lt-h1, .lt .lt-h2, .lt .lt-name, .lt .lt-lead { color: #f3f1ed; }
.lt a.lt-link { color: #d5d1ca; }
.lt a.lt-link:hover { color: #fff; }
.lt .dot { color: #7b86ff; }
#lt-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
.lt-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 60% 50%, transparent 55%, rgba(5, 6, 9, .55) 100%), linear-gradient(90deg, rgba(8, 9, 12, .62), rgba(8, 9, 12, 0) 46%); }
.lt-track { position: relative; z-index: 0; pointer-events: none; }

/* header */
.lt-head { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 76px; display: flex; align-items: center; gap: 28px; padding: 0 clamp(16px, 3.3vw, 56px); background: linear-gradient(rgba(8, 9, 12, .78), rgba(8, 9, 12, 0)); }
.lt-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #f3f1ed; flex: none; }
.lt-mk { width: 34px; height: 34px; display: grid; place-items: center; background: #f3f1ed; }
.lt-mk svg { width: 62%; height: 62%; }
.lt-mk path { stroke: #0d0f13; } .lt-mk rect { fill: #4650d8; }
.lt-name { display: grid; font: 600 17px/1.05 var(--font-display); letter-spacing: -.01em; }
.lt-name small { font: 500 11.5px/1.3 var(--font-sans); color: #a7a29a; letter-spacing: 0; }
.lt-nav { display: flex; gap: 24px; margin-left: auto; }
.lt-nav a { position: relative; font: 500 14px/1 var(--font-sans); color: #a7a29a; text-decoration: none; padding: 8px 0; transition: color .2s; }
.lt-nav a:hover, .lt-nav a.on { color: #fff; }
.lt-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ac, #7b86ff); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.lt-nav a.on::after { transform: scaleX(1); }
.lt-head-r { display: flex; align-items: center; gap: 18px; }
.lt-link { font: 500 14px/1 var(--font-sans); color: #d5d1ca; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 3px; }
.lt-link:hover { color: #fff; border-color: #fff; }
.lt-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; background: #f3f1ed; color: #0d0f13 !important; font: 600 14.5px/1 var(--font-sans); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.lt-btn:hover { background: var(--ac, #7b86ff); color: #0d0f13 !important; }
.lt-btn .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* loading */
.lt-load { position: fixed; left: clamp(16px, 3.3vw, 56px); bottom: 26px; z-index: 30; display: flex; align-items: center; gap: 12px; font: 500 12.5px/1 var(--font-sans); color: #a7a29a; transition: opacity .6s; }
.lt-load-bar { width: 120px; height: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.lt-load-bar i { display: block; height: 100%; width: 0; background: #f3f1ed; transition: width .3s; }
.lt-load.done { opacity: 0; pointer-events: none; }

/* stops rail */
.lt-rail { position: fixed; right: clamp(14px, 2.4vw, 40px); top: 50%; transform: translateY(-50%); z-index: 20; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lt-rail button { position: relative; display: block; width: 10px; height: 10px; padding: 0; border: 1.5px solid rgba(255, 255, 255, .5); background: transparent; cursor: pointer; transition: background .25s, transform .25s, border-color .25s; }
.lt-rail button span { position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%); font: 500 12.5px/1 var(--font-sans); color: #f3f1ed; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; }
.lt-rail button:hover span, .lt-rail button:focus-visible span, .lt-rail button.on span { opacity: 1; transform: translate(0, -50%); }
.lt-rail button.on { background: #f3f1ed; border-color: #f3f1ed; transform: scale(1.2); }

/* room cards: fixed over the canvas, one at a time */
.lt-cards { position: fixed; z-index: 10; left: clamp(16px, 5vw, 96px); top: 50%; transform: translateY(-46%); width: min(470px, 40vw); margin: 0; pointer-events: none; }
.lt-card { position: absolute; left: 0; top: 50%; transform: translateY(calc(-50% + 26px)); width: 100%; padding: 28px 30px 30px; background: rgba(10, 11, 15, .74); border: 1px solid rgba(255, 255, 255, .09); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); opacity: 0; visibility: hidden; transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s .55s; }
.lt-card.on { opacity: 1; visibility: visible; transform: translateY(-50%); pointer-events: auto; transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s; }
.lt-card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 56px; height: 3px; background: var(--ac, #7b86ff); }
.lt-k { display: block; font: 500 12px/1.45 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: #a7a29a; }
.lt-k b { color: var(--ac, #f3f1ed); font-weight: 600; }
.lt-h1 { margin: 14px 0 0; font: 600 clamp(40px, 4.6vw, 76px)/.95 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; }
.lt-h2 { margin: 12px 0 0; font: 600 clamp(32px, 3.2vw, 52px)/.98 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; }
.lt-lead { margin: 12px 0 0; font: 500 clamp(18px, 1.35vw, 22px)/1.3 var(--font-display); color: #f3f1ed; }
.lt-p { margin: 12px 0 0; font: 400 15.5px/1.6 var(--font-sans); color: #c9c4bb; }
.lt-acts { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lt-intro { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding-left: 0; }
.lt-intro::before { display: none; }
.lt-intro .lt-p { font-size: 17px; max-width: 40ch; color: #d5d1ca; }
.lt-scroll { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--font-sans); color: #a7a29a; }
.lt-scroll .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; animation: lt-bob 1.8s ease-in-out infinite; }
@keyframes lt-bob { 50% { transform: translateY(4px); } }
.lt-all { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lt-all a { font: 500 13.5px/1 var(--font-sans); color: #a7a29a; text-decoration: none; }
.lt-all a:hover { color: #fff; }

@media (max-width: 1180px) { .lt-nav { display: none; } }
@media (max-width: 820px) {
  .lt-head { height: 64px; gap: 12px; }
  .lt-name small, .lt-head-r .lt-link { display: none; }
  .lt-btn { height: 40px; padding: 0 14px; font-size: 13.5px; }
  .lt-cards { left: 12px; right: 12px; width: auto; top: auto; bottom: 14px; transform: none; }
  .lt-card { top: auto; bottom: 0; transform: translateY(26px); padding: 20px 20px 22px; }
  .lt-card.on { transform: none; }
  .lt-intro { bottom: 0; padding: 0 4px 6px; }
  .lt-h1 { font-size: 42px; } .lt-h2 { font-size: 30px; }
  .lt-p { font-size: 14px; line-height: 1.5; } .lt-intro .lt-p { font-size: 15.5px; }
  .lt-card:not(.lt-intro) .lt-p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .lt-rail { right: 8px; gap: 10px; } .lt-rail button span { display: none; }
  .lt-vignette { background: linear-gradient(0deg, rgba(8, 9, 12, .78), rgba(8, 9, 12, 0) 52%); }
  .lt-load { bottom: auto; top: 74px; }
}

/* no WebGL or reduced data: the cards become a plain page */
.lt-nogl #lt-canvas, .lt-nogl .lt-rail, .lt-nogl .lt-track, .lt-nogl .lt-load, .lt-nogl .lt-vignette { display: none; }
.lt-nogl .lt-cards { position: static; transform: none; width: auto; max-width: 760px; margin: 0 auto; padding: 110px 20px 80px; display: grid; gap: 18px; pointer-events: auto; }
.lt-nogl .lt-card { position: relative; top: auto; transform: none; opacity: 1; visibility: visible; }
.lt-nogl .lt-card:not(.lt-intro) .lt-p { display: block; }

/* check-in form and visitor pass */
.lt-checkin .lt-p { margin-bottom: 4px; }
.lt-f { display: grid; gap: 6px; margin-top: 12px; }
.lt-f span { font: 600 11.5px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #a7a29a; }
.lt-f input { height: 48px; padding: 0 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); color: #f3f1ed; font: 500 16px/1 var(--font-sans); outline: none; border-radius: 0; transition: border-color .2s, background .2s; }
.lt-f input:focus { border-color: var(--ac, #7b86ff); background: rgba(255, 255, 255, .09); }
.lt-err { min-height: 20px; margin: 8px 0 0; font: 500 13.5px/1.4 var(--font-sans); color: #ff8a7a; }
.lt-checkin .lt-acts { margin-top: 10px; }
.lt-checkin button.lt-btn { border: 0; cursor: pointer; }
.lt-ghost { height: 44px; padding: 0 4px; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .25); color: #d5d1ca; font: 500 14px/1 var(--font-sans); cursor: pointer; }
.lt-ghost:hover { color: #fff; border-color: #fff; }
#lt-form.busy { opacity: .55; pointer-events: none; }
.lt-pass canvas { display: block; width: 100%; max-width: 380px; height: auto; margin-top: 14px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); animation: lt-print .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes lt-print { from { transform: translateY(-14px) rotateX(18deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lt-mini { position: fixed; left: clamp(16px, 3.3vw, 56px); bottom: 22px; z-index: 31; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: #f3f1ed; color: #151412; border: 0; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7); }
.lt-mini[hidden] { display: none; }
.lt-mini i { width: 30px; height: 30px; background: #4650d8; display: grid; place-items: center; }
.lt-mini i::after { content: ""; width: 12px; height: 8px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.lt-mini span { display: grid; text-align: left; line-height: 1.15; }
.lt-mini b { font: 600 13.5px/1.2 var(--font-display); }
.lt-mini small { font: 500 11px/1.2 var(--font-sans); color: #6b6760; }
.lt-in .lt-load { display: none; }
@media (max-width: 820px) {
  .lt-checkin .lt-p { display: block; -webkit-line-clamp: unset; font-size: 13.5px; }
  .lt-f { margin-top: 8px; } .lt-f input { height: 42px; }
  .lt-pass canvas { max-width: 260px; }
  .lt-mini { bottom: auto; top: 72px; left: 12px; padding: 6px 10px 6px 6px; }
}

/* close-up on a lab's screens: the card keeps only its title and links */
.lt-card .lt-p, .lt-card .lt-lead { transition: opacity .35s, max-height .5s var(--ease); max-height: 400px; overflow: hidden; }
.lt-card.lt-compact .lt-p, .lt-card.lt-compact .lt-lead { opacity: 0; max-height: 0; margin: 0; }
.lt-card.lt-compact { transform: translateY(-50%) scale(.94); transform-origin: left center; }
@media (max-width: 820px) { .lt-card.lt-compact { transform: none; } }
