/* Lab visuals + process assembly — bit-agency */

/* ═══════════════════════════════════════════
   Staff: orbital hub (SEO / WEB / ADS)
   ═══════════════════════════════════════════ */
.lab-visual.staff{
  position:relative;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:0;
  padding:20px;
  overflow:hidden;
}
.lab-visual.staff:before{display:none!important}

.staff-orbit{
  position:relative;
  width:min(78%,280px);
  aspect-ratio:1;
  display:grid;
  place-items:center;
}
.staff-orbit::before,
.staff-orbit::after{
  content:"";
  position:absolute;
  inset:18%;
  border:1.5px dashed #1116;
  border-radius:50%;
  pointer-events:none;
}
.staff-orbit::after{
  inset:4%;
  border-style:solid;
  border-color:#1113;
  animation:staff-spin 18s linear infinite;
}
.staff-hub{
  position:relative;
  z-index:2;
  width:72px;
  height:72px;
  border-radius:50%;
  background:#111;
  color:#c8ff4d;
  display:grid;
  place-items:center;
  font-family:SyneExact,Syne,Arial,sans-serif;
  font-size:22px;
  font-weight:700;
  letter-spacing:-.04em;
  box-shadow:0 10px 28px #00000033;
}
.staff-node{
  position:absolute;
  z-index:3;
  min-width:76px;
  padding:12px 14px 10px;
  border:2px solid #111;
  border-radius:16px;
  background:#fff;
  text-align:center;
  box-shadow:6px 6px 0 #111;
  transform:translate(-50%,-50%);
}
.staff-node b{
  display:block;
  margin:0;
  font-size:18px!important;
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1;
  color:#111;
}
.staff-node i{
  display:block!important;
  margin:6px 0 0!important;
  max-width:none!important;
  font-size:10px!important;
  font-style:normal!important;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.55;
}
.staff-node[data-at="seo"]{left:50%;top:8%;background:#fff}
.staff-node[data-at="web"]{left:12%;top:72%;background:#111;color:#fff;box-shadow:6px 6px 0 #fff6}
.staff-node[data-at="web"] b{color:#c8ff4d}
.staff-node[data-at="web"] i{color:#fff;opacity:.65}
.staff-node[data-at="ads"]{left:88%;top:72%;background:#fff}

@keyframes staff-spin{to{transform:rotate(360deg)}}

/* ═══════════════════════════════════════════
   Chat: messenger panel
   ═══════════════════════════════════════════ */
.lab-visual.chat{
  align-items:stretch!important;
  justify-content:stretch!important;
  padding:18px!important;
  gap:0!important;
}
.chat-panel{
  width:100%;
  height:100%;
  min-height:0;
  border:2px solid #111;
  border-radius:24px;
  background:
    linear-gradient(180deg,#2a2140 0%,#1a1528 100%);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  box-shadow:8px 8px 0 #111;
  box-sizing:border-box;
}
.chat-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid #ffffff22;
  background:#ffffff0d;
}
.chat-avatar{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#1548ff;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:11px;
  font-weight:800;
  letter-spacing:-.02em;
  flex:none;
}
.chat-head strong{
  display:block;
  color:#fff;
  font-size:13px;
  font-weight:700;
  letter-spacing:-.01em;
}
.chat-head em{
  display:block;
  margin-top:2px;
  color:#9ad0ff;
  font-size:10px;
  font-style:normal;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.chat-body{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:12px;
  padding:16px 14px 18px;
}
.chat-row{width:100%;display:flex}
.chat-row.in{justify-content:flex-start}
.chat-row.out{justify-content:flex-end}
.chat-row span{
  position:relative;
  max-width:92%;
  width:auto;
  box-sizing:border-box;
  padding:12px 14px;
  border-radius:16px;
  font-size:clamp(14px,1.5vw,17px)!important;
  font-style:normal;
  font-weight:600;
  line-height:1.35;
  letter-spacing:-.01em;
}
.chat-row.in span{
  color:#1a1528;
  background:#f3f0ff;
  border-bottom-left-radius:5px;
}
.chat-row.out span{
  color:#fff!important;
  background:#1548ff!important;
  border-bottom-right-radius:5px;
}
.chat-meta{
  margin-top:4px;
  padding:0 4px;
  color:#ffffff66;
  font-size:9px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}

/* ═══════════════════════════════════════════
   Process: system assembly (not a table)
   ═══════════════════════════════════════════ */
.instrument-stage.flow-stage,
.flow-stage{
  border:0!important;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%,#dfe6ff 0%,transparent 55%),
    linear-gradient(145deg,#f4f5f7 0%,#e8ebf2 100%)!important;
  height:auto!important;
  min-height:520px;
  padding:40px 32px!important;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  position:relative;
}
.flow-stage .stage-grid,
.flow-stage>svg,
.flow-stage>.stage-node,
.flow-stage>small{display:none!important}

.flow-assemble{
  list-style:none;
  margin:0;
  padding:0;
  width:100%;
  max-width:480px;
  display:flex;
  flex-direction:column;
  gap:14px;
  position:relative;
}
.flow-assemble li{
  position:relative;
  display:flex;
  align-items:center;
  gap:18px;
  margin:0;
  padding:22px 24px;
  border:0;
  border-radius:22px;
  background:#fff;
  box-shadow:
    0 1px 0 #ffffffcc inset,
    0 18px 40px #10111314;
  transform-origin:left center;
}
.flow-assemble li:nth-child(1){transform:translateX(0) rotate(-1.2deg)}
.flow-assemble li:nth-child(2){transform:translateX(18px) rotate(.8deg)}
.flow-assemble li:nth-child(3){transform:translateX(6px) rotate(-.6deg)}
.flow-assemble li:nth-child(4){transform:translateX(24px) rotate(1deg)}
.flow-assemble li:nth-child(5){transform:translateX(10px) rotate(-.4deg)}

.flow-assemble li b{
  flex:none;
  width:52px;
  height:52px;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
  color:#111;
  background:#eef1f7;
}
.flow-assemble li:nth-child(1) b{background:#dfe8ff;color:#1548ff}
.flow-assemble li:nth-child(2) b{background:#e8ffb8;color:#2a3d00}
.flow-assemble li:nth-child(3) b{background:#ffe1c4;color:#7a3a00}
.flow-assemble li:nth-child(4) b{background:#ead9ff;color:#4b1f8a}

.flow-assemble .flow-copy{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.flow-assemble li span{
  font-family:SyneExact,Syne,Arial,sans-serif;
  font-size:clamp(24px,2.6vw,34px);
  font-weight:500;
  letter-spacing:-.045em;
  line-height:1;
  color:#101113;
}
.flow-assemble li small{
  opacity:.55;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.flow-assemble li.is-result{
  background:#1548ff;
  color:#fff;
  box-shadow:0 22px 50px #1548ff55;
  transform:translateX(14px) rotate(-.8deg) scale(1.02);
}
.flow-assemble li.is-result b{
  background:#fff;
  color:#1548ff;
}
.flow-assemble li.is-result span{color:#fff}
.flow-assemble li.is-result small{opacity:.85;color:#fff}

.flow-assemble li:not(:last-child)::after{
  content:"↓";
  position:absolute;
  left:42px;
  bottom:-18px;
  z-index:2;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#101113;
  color:#fff;
  font-size:12px;
  font-weight:700;
  display:grid;
  place-items:center;
  line-height:1;
  box-shadow:0 4px 10px #0003;
}

@media (width<=900px){
  .flow-assemble li:nth-child(n){transform:none}
  .flow-assemble li.is-result{transform:scale(1.01)}
  .flow-assemble li:nth-child(2),
  .flow-assemble li:nth-child(4){margin-left:12px}
}
@media (width<=700px){
  .staff-orbit{width:min(88%,240px)}
  .staff-hub{width:60px;height:60px;font-size:18px}
  .staff-node{min-width:66px;padding:10px 10px 8px}
  .staff-node b{font-size:15px!important}
  .flow-stage{min-height:0;padding:24px 14px!important;margin-top:36px}
  .flow-assemble{gap:12px}
  .flow-assemble li{padding:16px 16px;gap:12px;border-radius:18px}
  .flow-assemble li b{width:44px;height:44px;border-radius:12px;font-size:12px}
  .flow-assemble li:not(:last-child)::after{left:34px;bottom:-16px;width:20px;height:20px;font-size:10px}
}
@media (prefers-reduced-motion:reduce){
  .staff-orbit::after{animation:none}
}
