/* ============================================================
   The AI Lab — experience styles (layered on site.css tokens)
   ============================================================ */

body.lab-body { overflow-x: hidden; --acc: var(--teal); }

/* ---------- Scenario carousel ---------- */
.scn { max-width: 800px; margin: 0 auto 44px; padding: 34px 34px 38px; background: linear-gradient(180deg, rgba(120,150,210,0.09), rgba(120,150,210,0.04)); border: 1px solid rgba(255,255,255,0.09); border-radius: 24px; }
.scn-head { text-align: center; margin-bottom: 26px; }
.scn-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin: 0 0 8px; }
.scn-head p { color: var(--text-muted); font-size: 0.98rem; max-width: 52ch; margin: 0 auto; }
.scn-grid { display: flex; flex-direction: column; gap: 18px; }
.scn-card {
  position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 64px -40px rgba(0,0,0,0.85);
  background: #05070f; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.scn-card:hover { transform: translateY(-4px); border-color: rgba(11,234,181,0.5); box-shadow: 0 40px 80px -38px rgba(0,0,0,0.9), 0 0 54px -26px rgba(11,234,181,0.4); }
.scn-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scn-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 22px 18px;
  display: flex; flex-direction: column; gap: 5px; text-align: left;
  background: linear-gradient(0deg, rgba(4,4,20,0.9) 4%, rgba(4,4,20,0.35) 42%, transparent);
}
.scn-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.scn-line { font-size: clamp(0.98rem, 1.3vw, 1.08rem); font-weight: 600; color: #fff; line-height: 1.4; max-width: 46ch; text-shadow: 0 1px 14px rgba(0,0,0,0.75); }
@media (max-width: 640px) { .scn { padding: 22px 16px 26px; } }
@media (max-width: 760px) {
  .scn-grid { grid-template-columns: 1fr; gap: 14px; }
  .scn-card { aspect-ratio: 16 / 9; }
}

/* ---------- Real ClickFlowGrow screen (video + poster) ---------- */
.screen-frame {
  margin: 4px 0 8px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0b0f1e;
  box-shadow: 0 40px 80px -34px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.03);
  max-width: 780px;
}
.screen-frame .sf-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.screen-frame .sf-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.screen-frame .sf-bar i:nth-child(1) { background: #ff5f57; }
.screen-frame .sf-bar i:nth-child(2) { background: #febc2e; }
.screen-frame .sf-bar i:nth-child(3) { background: #28c840; }
.screen-frame .sf-url {
  margin-left: 10px; font-size: 0.78rem; color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06); padding: 3px 12px; border-radius: 20px;
}
.screen-frame .sf-video { display: block; width: 100%; height: auto; background: #fff; }
.screen-frame .sf-cap {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 15px; font-size: 0.84rem; font-weight: 600;
  color: rgba(255,255,255,0.72); background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.screen-frame .sf-live {
  width: 8px; height: 8px; border-radius: 50%; background: #0BEAB5;
  box-shadow: 0 0 0 0 rgba(11,234,181,0.6); animation: sfLive 2.4s ease-in-out infinite;
}
.screen-frame .sf-toggle {
  margin-left: auto; font: inherit; font-size: 0.78rem; font-weight: 700;
  color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 20px;
  padding: 4px 13px; cursor: pointer; transition: background .2s, color .2s;
}
.screen-frame .sf-toggle:hover { background: rgba(11,234,181,0.16); color: #fff; }
@keyframes sfLive { 0%,100% { box-shadow: 0 0 0 0 rgba(11,234,181,0.55); } 70% { box-shadow: 0 0 0 8px rgba(11,234,181,0); } }
@media (max-width: 640px) { .screen-frame { max-width: 100%; } }

/* ---------- per-station identity ---------- */
body.station-receptionist { --acc: #0BEAB5; }
body.station-smart-websites { --acc: #34C6F0; }
body.station-chatbot { --acc: #0FB5C9; }
body.station-quotes { --acc: #15B88A; }
body.station-prospecting  { --acc: #EC8A01; }
body.station-workflows    { --acc: #7C5CFC; }
body.station-business-dna { --acc: #5B9CFF; }
body.station-fanfare      { --acc: #FF6E91; }

#station-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.3s ease;
  pointer-events: none;
}
body.station-lobby #station-backdrop {
  opacity: 1;
  background-image:
    linear-gradient(180deg, rgba(6, 13, 31, 0.55) 0%, rgba(6, 13, 31, 0.78) 55%, var(--bg) 100%),
    url("/assets/img/interior_bg.jpg");
}
body.station-receptionist #station-backdrop {
  opacity: 1;
  background-image:
    radial-gradient(1000px 500px at 50% 0%, rgba(11, 234, 181, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(6, 13, 31, 0.42) 0%, rgba(6, 13, 31, 0.72) 70%, var(--bg) 100%),
    url("/assets/img/table01_surface.jpg");
}
body.station-prospecting #station-backdrop {
  opacity: 1;
  background-image:
    radial-gradient(1000px 500px at 50% 0%, rgba(236, 138, 1, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(6, 13, 31, 0.42) 0%, rgba(6, 13, 31, 0.72) 70%, var(--bg) 100%),
    url("/assets/img/table02_surface.jpg");
}
body.station-workflows #station-backdrop {
  opacity: 1;
  background-image:
    radial-gradient(1000px 500px at 50% 0%, rgba(124, 92, 252, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(6, 13, 31, 0.42) 0%, rgba(6, 13, 31, 0.72) 70%, var(--bg) 100%),
    url("/assets/img/table03_surface.jpg");
}
body.station-business-dna #station-backdrop {
  opacity: 1;
  background-image:
    radial-gradient(1000px 500px at 50% 0%, rgba(91, 156, 255, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(6, 13, 31, 0.42) 0%, rgba(6, 13, 31, 0.72) 70%, var(--bg) 100%),
    url("/assets/img/table04_surface.jpg");
}
body.station-fanfare #station-backdrop {
  opacity: 1;
  background-image:
    radial-gradient(1000px 500px at 50% 0%, rgba(255, 110, 145, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(6, 13, 31, 0.42) 0%, rgba(6, 13, 31, 0.72) 70%, var(--bg) 100%),
    url("/assets/img/table05_surface.jpg");
}
body.station-passport #station-backdrop {
  opacity: 1;
  background-image:
    linear-gradient(180deg, rgba(6, 13, 31, 0.6) 0%, rgba(6, 13, 31, 0.82) 60%, var(--bg) 100%),
    url("/assets/img/interior_bg.jpg");
}

/* ---------- table transition overlay ---------- */
#table-transition {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background:
    radial-gradient(700px 420px at 50% 50%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%),
    rgba(6, 13, 31, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
#table-transition.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease;
}
#table-transition .tt-inner { text-align: center; padding: 0 24px; }
#table-transition .tt-no {
  font-family: var(--font-h);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 12px;
}
#table-transition .tt-name { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; }
#table-transition .tt-sub { color: var(--text-muted); margin-top: 10px; font-size: 0.95rem; }
#table-transition.show .tt-inner { animation: ttIn 0.85s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes ttIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- concierge progressive reveal ---------- */
.choice-group.c-hidden { display: none; }
.choice-group.c-appear { animation: viewIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* passport chip pop */
.passport-chip.pop .pc-count { animation: chipPop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
@keyframes chipPop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* AI Builder (Alex) avatar in capture panel */
.capture-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.capture-head img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid color-mix(in srgb, var(--teal) 55%, transparent);
  flex: none;
}
.capture-head .ch-name { font-family: var(--font-h); font-weight: 700; font-size: 0.86rem; color: var(--text-muted); }

/* ---------- entrance ---------- */
.entrance {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: safe center;
  overflow-y: auto;
  background:
    radial-gradient(900px 500px at 50% 35%, rgba(15, 45, 96, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(6, 13, 31, 0.5), rgba(6, 13, 31, 0.68)),
    url("/assets/img/interior_bg.jpg") center / cover no-repeat,
    var(--bg);
  transition: opacity 1.1s ease 1.5s, visibility 0s linear 2.6s;
}
.entrance.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

/* Public escape route on the pre-entry screen. The Lab remains immersive, but
   visitors can always return to the main site before choosing to enter. */
.entrance-public-nav {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 50%;
  width: min(100%, var(--container));
  min-height: 72px;
  padding: 0 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(6,13,31,0.62), rgba(6,13,31,0.16));
}
.entrance-public-nav .logo { flex: none; }
.entrance-public-links { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.15vw, 30px); flex: 1; }
.entrance-public-links a { color: #C7CEEC; font-family: var(--font-h); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.entrance-public-links a:hover,
.entrance-public-links a[aria-current="page"] { color: #fff; }
.entrance-public-booking { flex: none; white-space: nowrap; }
.entrance-public-menu { display: none; margin-left: auto; position: relative; }
.entrance-public-menu summary { cursor: pointer; list-style: none; color: #fff; border: 1px solid rgba(255,255,255,0.22); border-radius: 8px; padding: 8px 11px; font-family: var(--font-h); font-size: 0.84rem; font-weight: 700; }
.entrance-public-menu summary::-webkit-details-marker { display: none; }
.entrance-public-menu > div { position: absolute; top: calc(100% + 10px); right: 0; z-index: 5; width: min(280px, calc(100vw - 32px)); display: grid; gap: 4px; padding: 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; background: rgba(6,13,31,0.98); box-shadow: 0 18px 42px rgba(0,0,0,0.38); }
.entrance-public-menu > div a { color: #E9EDFF; padding: 10px 11px; border-radius: 7px; font-family: var(--font-h); font-size: 0.92rem; font-weight: 600; }
.entrance-public-menu > div a:hover { background: rgba(255,255,255,0.08); }
.entrance-public-menu > div .btn { justify-content: center; margin-top: 5px; }

.entrance-doors {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: linear-gradient(105deg, rgba(240, 244, 255, 0.055), rgba(240, 244, 255, 0.012) 65%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 2.5s cubic-bezier(0.7, 0, 0.2, 1);
  will-change: transform;
}
.door-left { left: 0; border-right: 1px solid rgba(11, 234, 181, 0.4); box-shadow: 6px 0 40px rgba(0,0,0,0.35); }
.door-right { right: 0; border-left: 1px solid rgba(11, 234, 181, 0.4); box-shadow: -6px 0 40px rgba(0,0,0,0.35); }
.door .door-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 22vh;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(240,244,255,0.12), rgba(240,244,255,0.4), rgba(240,244,255,0.12));
}
.door-left .door-handle { right: 26px; }
.door-right .door-handle { left: 26px; }
.entrance.is-open .door-left { transform: translateX(-104%); }
.entrance.is-open .door-right { transform: translateX(104%); }

.entrance-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  padding: 0 24px;
  transition: opacity 0.6s ease, transform 0.9s ease;
}
.entrance.is-open .entrance-content { opacity: 0; transform: scale(1.12); pointer-events: none; }
.entrance-content .lab-wordmark {
  font-family: var(--font-h);
  font-weight: 900;
  letter-spacing: 0.34em;
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 22px;
}
.entrance-content h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 900; margin-bottom: 18px; }
.entrance-content p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 36px; }
.entrance-hours {
  margin-top: 40px;
  color: var(--text-faint);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-h);
  font-weight: 700;
}

@media (max-width: 860px) {
  .entrance-public-nav { gap: 18px; }
  .entrance-public-links { gap: 14px; }
  .entrance-public-links a { font-size: 0.84rem; }
}
@media (max-width: 768px) {
  .entrance-public-nav { width: 100%; padding: 0 16px; min-height: 64px; }
  .entrance-public-links,
  .entrance-public-booking { display: none; }
  .entrance-public-menu { display: block; }
  .entrance-content { padding-top: 82px; }
}

/* ---------- lab shell ---------- */
.lab-main { padding-top: 72px; min-height: 100vh; }
.lab-view { display: none; animation: viewIn 0.75s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lab-view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* currency switch in nav */
.cur-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.cur-switch button { width: 30px; height: 28px; border: none; background: transparent; color: var(--text-muted); font-weight: 800; font-size: 0.95rem; border-radius: 999px; cursor: pointer; transition: background 0.18s, color 0.18s; font-family: inherit; }
.cur-switch button:hover { color: #fff; }
.cur-switch button.cur-on { background: var(--teal); color: #06140E; }

/* passport chip in nav */
.passport-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(11, 234, 181, 0.45);
  background: rgba(11, 234, 181, 0.07);
  color: var(--teal);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.passport-chip:hover { background: rgba(11, 234, 181, 0.14); box-shadow: 0 0 18px rgba(11,234,181,0.25); }
.passport-chip .pc-count {
  background: var(--teal);
  color: var(--btn-ink);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}

/* ---------- lobby ---------- */
.lobby-hero { text-align: center; padding: 72px 0 44px; }
.lobby-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 900; margin: 22px 0 16px; text-shadow: 0 2px 22px rgba(6, 13, 31, 0.95), 0 1px 4px rgba(6, 13, 31, 0.8); }
.lobby-hero h1 .accent { color: var(--teal); }
.lobby-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }

/* concierge / discovery */
.concierge {
  max-width: 860px;
  margin: 30px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(15, 45, 96, 0.42), rgba(7, 15, 30, 0.85));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  padding: 40px 42px;
  position: relative;
}
.concierge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.7;
}
.concierge .c-label {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.concierge h2 { font-size: 1.5rem; margin-bottom: 8px; }
.concierge .c-sub { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 26px; }
.choice-group { margin-bottom: 26px; }
.choice-group h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-h);
  font-weight: 700;
  margin-bottom: 12px;
}
.choice-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--font-b);
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, color 0.2s;
}
.choice:hover { border-color: rgba(11, 234, 181, 0.5); transform: translateY(-1px); }
.choice.selected {
  border-color: var(--teal);
  background: rgba(11, 234, 181, 0.12);
  color: var(--teal);
  font-weight: 600;
}
.concierge .biz-row { display: flex; gap: 12px; flex-wrap: wrap; }
.lab-input {
  background: rgba(6, 13, 31, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-b);
  font-size: 0.96rem;
  padding: 13px 16px;
  flex: 1;
  min-width: 220px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lab-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 234, 181, 0.15); }
.lab-input::placeholder { color: var(--text-faint); }

/* recommendation */
.reco {
  margin-top: 30px;
  border: 1px solid rgba(11, 234, 181, 0.45);
  background: rgba(11, 234, 181, 0.06);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  display: none;
  animation: viewIn 0.5s ease;
}
.reco.show { display: block; }
.reco .r-label {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.reco h3 { font-size: 1.3rem; margin-bottom: 6px; }
.reco p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 18px; }
.reco .r-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.reco .r-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.reco .r-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* tables grid */
.tables-head { text-align: center; margin: 88px 0 34px; }
.tables-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tables-head p { color: var(--text-muted); margin-top: 8px; }
.tables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 90px;
}
.table-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(8, 16, 31, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 30px 26px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-b);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.table-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--card-acc, var(--teal)), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.table-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--card-acc, var(--teal)) 55%, transparent); background: var(--surface2); box-shadow: 0 18px 44px rgba(0,0,0,0.4); }
.table-card:hover::after { transform: scaleX(1); }
.table-card .t-no {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--card-acc, var(--teal));
  margin-bottom: 14px;
}
.table-card h3 { font-size: 1.28rem; margin-bottom: 6px; }
.table-card .t-tag { color: var(--text); font-family: var(--font-h); font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.table-card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.table-card .t-cta { color: var(--card-acc, var(--teal)); font-family: var(--font-h); font-weight: 700; font-size: 0.9rem; margin-top: 18px; }
.table-card.recommended { border-color: color-mix(in srgb, var(--card-acc, var(--teal)) 60%, transparent); box-shadow: 0 0 34px color-mix(in srgb, var(--card-acc, var(--teal)) 14%, transparent); }
.table-card.recommended .t-no::after {
  content: "RECOMMENDED FOR YOU";
  margin-left: 10px;
  background: var(--card-acc, var(--teal));
  color: var(--btn-ink);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

/* ---------- station shared ---------- */
.station { max-width: 900px; margin: 0 auto; padding: 60px 0 90px; }
.station-hero { text-align: center; margin-bottom: 54px; }
.station-hero .s-eyebrow {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acc);
}
.station-hero .s-supports {
  display: inline-block; margin-left: 10px; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint);
  padding: 3px 11px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.16);
  vertical-align: middle;
}
.station-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 900; margin: 16px 0 12px; text-shadow: 0 2px 22px rgba(6, 13, 31, 0.95), 0 1px 4px rgba(6, 13, 31, 0.8); }
.station-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; text-shadow: 0 1px 12px rgba(6, 13, 31, 0.9); }
.station-back {
  background: none;
  border: none;
  color: var(--text-faint);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 26px;
  transition: color 0.2s;
}
.station-back:hover { color: var(--teal); }

.step-block {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(8, 16, 31, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 36px;
  margin-bottom: 26px;
}
.step-badge {
  display: inline-block;
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent);
  color: var(--acc);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.step-block h2 { font-size: 1.42rem; margin-bottom: 8px; }
.step-block > p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 22px; }

/* ---------- receptionist: call player ---------- */
.call-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(10, 22, 40, 0.9), rgba(6, 13, 31, 0.95));
  overflow: hidden;
}
.call-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.call-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: var(--btn-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  font-size: 1.15rem;
  box-shadow: 0 0 22px rgba(11, 234, 181, 0.35);
  transition: transform 0.2s, box-shadow 0.25s;
}
.call-play:hover { transform: scale(1.06); box-shadow: 0 0 38px rgba(11, 234, 181, 0.55); }
.call-play:disabled { opacity: 0.6; cursor: default; }
.call-meta { flex: 1; min-width: 0; }
.call-meta .cm-title { font-family: var(--font-h); font-weight: 700; font-size: 0.95rem; }
.call-meta .cm-sub { color: var(--text-faint); font-size: 0.8rem; }
.call-wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.call-wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--teal);
  height: 20%;
  opacity: 0.45;
  transition: height 0.18s ease;
}
.call-card.playing .call-wave i { animation: wave 0.9s ease-in-out infinite; opacity: 0.9; }
.call-wave i:nth-child(2n) { animation-delay: 0.15s; }
.call-wave i:nth-child(3n) { animation-delay: 0.3s; }
.call-wave i:nth-child(5n) { animation-delay: 0.45s; }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 95%; } }
.call-timer { font-family: var(--font-h); font-weight: 700; font-size: 0.85rem; color: var(--text-muted); min-width: 44px; text-align: right; }

.transcript {
  padding: 24px 22px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.transcript .t-empty { color: var(--text-faint); font-size: 0.9rem; text-align: center; padding: 30px 0; }
.bubble {
  max-width: 78%;
  border-radius: 14px;
  padding: 11px 15px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: viewIn 0.4s ease;
}
.bubble .b-who {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
  opacity: 0.75;
}
.bubble-caller { align-self: flex-start; background: var(--surface2); border: 1px solid var(--border); color: var(--text); }
.bubble-caller .b-who { color: var(--amber); }
.bubble-aria { align-self: flex-end; background: rgba(11, 234, 181, 0.1); border: 1px solid rgba(11, 234, 181, 0.35); color: var(--text); }
.bubble-aria .b-who { color: var(--teal); }
.call-note { padding: 14px 22px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.8rem; }

/* greeting builder */
.greet-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.greet-result {
  display: none;
  border: 1px solid rgba(11, 234, 181, 0.4);
  background: rgba(11, 234, 181, 0.06);
  border-radius: var(--r);
  padding: 22px 24px;
}
.greet-result.show { display: block; animation: viewIn 0.45s ease; }
.greet-result .g-label {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 10px;
}
.greet-result blockquote { font-family: var(--font-h); font-weight: 700; font-size: 1.18rem; line-height: 1.5; margin-bottom: 16px; }
.greet-result .g-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.greet-result .g-voice-note { color: var(--text-faint); font-size: 0.78rem; }

/* training notes */
.training-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.training-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(6, 13, 31, 0.5);
  padding: 15px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.training-item .ti-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: none; margin-top: 7px; }

/* ---------- prospecting ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(6, 13, 31, 0.5);
  padding: 20px 22px;
}
.plan-card h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 12px;
}
.plan-card ul { list-style: none; display: grid; gap: 9px; }
.plan-card li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 18px;
  position: relative;
}
.plan-card li::before { content: "→"; position: absolute; left: 0; color: var(--acc); font-size: 0.8rem; }
.scan-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-family: var(--font-h);
  font-weight: 600;
  margin-bottom: 18px;
}
.scan-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: pulse 1.6s infinite; }

/* ---------- workflows ---------- */
.flow-rail { display: grid; gap: 10px; }
.flow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(6, 13, 31, 0.5);
  padding: 15px 18px;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s;
}
.flow-step.fired { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--acc) 38%, transparent); }
.flow-step .f-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--surface2);
  font-size: 1.15rem;
  flex: none;
}
.flow-step .f-body h4 { font-size: 0.96rem; margin-bottom: 2px; }
.flow-step .f-body p { color: var(--text-faint); font-size: 0.83rem; }
.flow-step .f-check { margin-left: auto; color: var(--acc); font-weight: 800; opacity: 0; transition: opacity 0.3s 0.25s; }
.flow-step.fired .f-check { opacity: 1; }

/* ---------- DNA station ---------- */
.rule-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(6, 13, 31, 0.5);
  padding: 20px 22px;
  margin-bottom: 12px;
}
.rule-card .r-rule { font-family: var(--font-h); font-weight: 700; font-size: 0.98rem; margin-bottom: 10px; }
.rule-card .r-action {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.74rem;
  font-family: var(--font-h);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(236, 138, 1, 0.14);
  border: 1px solid rgba(236, 138, 1, 0.45);
  color: #ffc46b;
  margin-bottom: 10px;
}
.rule-card .r-example { color: var(--text-muted); font-size: 0.9rem; font-style: italic; }

/* ---------- fanfare ---------- */
.moment-rail { display: grid; gap: 12px; }
.moment {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(6, 13, 31, 0.5);
  padding: 17px 19px;
}
.moment .m-icon { font-size: 1.3rem; flex: none; }
.moment h4 { font-size: 0.98rem; margin-bottom: 3px; }
.moment p { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- station footer / passport CTA ---------- */
.station-next {
  border: 1px solid color-mix(in srgb, var(--acc) 42%, transparent);
  background: linear-gradient(165deg, color-mix(in srgb, var(--acc) 12%, rgba(8, 16, 31, 0.7)), rgba(10, 22, 40, 0.78));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  padding: 32px 34px;
  text-align: center;
}
.station-next h3 { font-size: 1.3rem; margin-bottom: 8px; }
.station-next p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 22px; max-width: 520px; margin-left: auto; margin-right: auto; }
.station-next .sn-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- passport ---------- */
.passport-wrap { max-width: 760px; margin: 0 auto; padding: 60px 0 90px; }
.passport-doc {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(15, 45, 96, 0.45), rgba(7, 15, 30, 0.94));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.passport-head {
  padding: 30px 36px;
  border-bottom: 1px dashed var(--border-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.passport-head .ph-title {
  font-family: var(--font-h);
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
}
.passport-head .ph-biz { font-family: var(--font-h); font-weight: 800; font-size: 1.3rem; }
.passport-head .ph-stamp {
  border: 1.5px solid rgba(11, 234, 181, 0.55);
  color: var(--teal);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}
.passport-body { padding: 32px 36px; display: grid; gap: 24px; }
.pp-row h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
  font-family: var(--font-h);
  font-weight: 800;
}
.pp-row .pp-value { font-size: 1.02rem; }
.pp-row .pp-big { font-family: var(--font-h); font-weight: 800; font-size: 1.35rem; color: var(--teal); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chips span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.pp-list { list-style: none; display: grid; gap: 8px; }
.pp-list li { color: var(--text-muted); font-size: 0.92rem; padding-left: 20px; position: relative; }
.pp-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.passport-foot {
  padding: 26px 36px 32px;
  border-top: 1px dashed var(--border-strong);
  color: var(--text-faint);
  font-size: 0.82rem;
}
.passport-empty {
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: 60px 30px;
  color: var(--text-muted);
}
.passport-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; justify-content: center; }

/* capture form */
.capture {
  margin-top: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(8, 16, 31, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 32px 34px;
}
.capture h3 { font-size: 1.2rem; margin-bottom: 6px; }
.capture > p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; }
.capture .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.capture .form-note { color: var(--text-faint); font-size: 0.8rem; margin-top: 12px; }
.capture .cap-status { margin-top: 14px; font-size: 0.9rem; display: none; }
.capture .cap-status.ok { display: block; color: var(--teal); }
.capture .cap-status.err { display: block; color: #ffc46b; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .entrance, .door, .entrance-content { transition-duration: 0.01s !important; transition-delay: 0s !important; }
  #table-transition { display: none !important; }
  #station-backdrop { transition: none; }
  .passport-chip.pop .pc-count, #table-transition.show .tt-inner, .choice-group.c-appear { animation: none; }
  .lab-view, .bubble, .reco.show, .greet-result.show { animation: none; }
  .call-card.playing .call-wave i { animation: none; height: 60%; }
  .passport-chip .pc-count, .flow-step { transition: none; }
  .flow-step { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tables-grid { grid-template-columns: 1fr; }
  .table-card { min-height: 0; }
  .training-grid, .plan-grid { grid-template-columns: 1fr; }
  .concierge { padding: 28px 22px; }
  .station { padding: 40px 0 70px; }
  .step-block { padding: 26px 20px; }
  .passport-head, .passport-body, .passport-foot { padding-left: 22px; padding-right: 22px; }
  .capture { padding: 24px 20px; }
  .capture .form-grid { grid-template-columns: 1fr; }
  .bubble { max-width: 92%; }
  .leak-calc .lk-grid { grid-template-columns: 1fr !important; }
}
/* leak-calc slider baseline (accent-color drives the fill colour inline) */
.leak-slider { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; }

/* ============================================================
   Lightened Lab rhythm — scoped to .lab-body only (site.css
   tokens stay untouched for the public site)
   ============================================================ */
body.lab-body {
  --bg: #0a1834;               /* softer deep navy, not near-black */
  --surface: rgba(255,255,255,0.065);
  --surface2: rgba(255,255,255,0.10);
  --border: rgba(255,255,255,0.14);
  --border-strong: rgba(255,255,255,0.22);
  --text-muted: rgba(210,222,255,0.82);
  --text-faint: rgba(198,210,245,0.68);
}
/* atmospheric page base behind the fixed backdrop */
body.lab-body { background: linear-gradient(180deg, #0c1c3c 0%, #0a1834 46%, #071129 100%); }

/* translucent slate/glass content cards with clearer separation */
body.lab-body .step-block {
  background: linear-gradient(168deg, rgba(34,52,88,0.52), rgba(18,30,56,0.58));
  border-color: rgba(255,255,255,0.13);
  box-shadow: 0 24px 60px -40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  margin-bottom: 46px;
  padding: 34px 34px 36px;
}
body.lab-body .step-block:last-of-type { margin-bottom: 48px; }
body.lab-body .station { padding: 60px 0 100px; }
body.lab-body .station-hero { margin-bottom: 46px; }

/* media & inner tiles: lift off the card so it isn't dark-on-dark */
body.lab-body .call-card {
  background: linear-gradient(168deg, rgba(22,36,64,0.85), rgba(12,22,44,0.9));
}
body.lab-body .training-item { background: rgba(255,255,255,0.05); }
body.lab-body .flow-step,
body.lab-body .wf-node,
body.lab-body .signal-card { background: rgba(255,255,255,0.045); }
body.lab-body .screen-frame { background: #101a30; }

/* scenario panel: a touch lighter, generous breathing room */
body.lab-body .scn {
  background: linear-gradient(180deg, rgba(120,150,210,0.12), rgba(120,150,210,0.05));
  border-color: rgba(255,255,255,0.11);
  margin-bottom: 40px;
}

/* passport = the final highlighted moment, not another heavy slab */
body.lab-body .station-next {
  background: linear-gradient(160deg, color-mix(in srgb, var(--teal) 16%, rgba(20,34,62,0.7)), rgba(16,28,52,0.72));
  box-shadow: 0 30px 70px -44px rgba(0,0,0,0.6), 0 0 60px -30px rgba(11,234,181,0.35);
}

/* ============================================================
   "Lit exhibit" — the Passport rendered as a light paper keepsake
   (dark showroom, brightly-lit document you take home)
   ============================================================ */
body.lab-body .passport-doc {
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F5FB 100%);
  border-color: rgba(10,7,69,0.10);
  box-shadow: 0 44px 96px -48px rgba(0,0,0,0.72), 0 0 70px -30px rgba(11,234,181,0.34);
  color: #0A0745;
}
body.lab-body .passport-doc .passport-head { border-bottom-color: rgba(10,7,69,0.16); }
body.lab-body .passport-doc .ph-title { color: #0B8F6C; }
body.lab-body .passport-doc .ph-biz { color: #0A0745; }
body.lab-body .passport-doc .ph-stamp { color: #0B8F6C; border-color: rgba(11,143,108,0.5); }
body.lab-body .passport-doc .pp-row h4 { color: #8A91B4; }
body.lab-body .passport-doc .pp-value { color: #0A0745; }
body.lab-body .passport-doc .pp-value span { color: #6B7396 !important; }
body.lab-body .passport-doc .pp-big { color: #0B8F6C; }
body.lab-body .passport-doc .pp-chips span { color: #3E4770; border-color: rgba(10,7,69,0.16); background: rgba(10,7,69,0.035); }
body.lab-body .passport-doc .pp-list li { color: #3E4770; }
body.lab-body .passport-doc .pp-list li::before { color: #0B8F6C; }
body.lab-body .passport-doc .pp-list li strong { color: #0A0745 !important; }
body.lab-body .passport-doc .passport-foot { border-top-color: rgba(10,7,69,0.16); color: #6B7396; }
/* any inline light-grey vars inside the paper doc (e.g. "5F area…") forced to legible ink */
body.lab-body .passport-doc [style*="--text-muted"] { color: #525C82 !important; }
body.lab-body .passport-doc [style*="--text-faint"] { color: #6B7396 !important; }

/* the in-station leak calculator, rendered as a light "lit exhibit" on the dark floor */
body.lab-body .step-block.leak-calc {
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F5FB 100%);
  border-color: rgba(10,7,69,0.10);
  box-shadow: 0 44px 96px -50px rgba(0,0,0,0.7), 0 0 64px -34px rgba(11,234,181,0.3);
}
body.lab-body .leak-calc h2 { color: #0A0745; }
body.lab-body .leak-calc > p { color: #525C82; }
body.lab-body .leak-calc .step-badge {
  color: color-mix(in srgb, var(--acc) 66%, #05121f);
  border-color: color-mix(in srgb, var(--acc) 40%, transparent);
  background: color-mix(in srgb, var(--acc) 12%, #ffffff);
}
body.lab-body .leak-calc .leak-slider { background: rgba(10,7,69,0.12); }
/* Keep the public route out of the Lab on compact screens without crowding the header. */
@media (max-width: 768px) {
  .lab-body .nav-cta .lab-public-booking { display: inline-flex; }
  .lab-body .nav-cta .cur-switch,
  .lab-body .nav-cta .passport-chip { display: none; }
}
@media (max-width: 520px) {
  .lab-body .nav-cta .lab-public-booking { display: inline-flex; }
}
