/* Techno Webplus — Tiny Construction Robot Intro (experiment)
   Overlay only: no flow, no CLS, pointer-events none.
   Anchor: left 60px / top 20px. Behind .tw-header, above hero. */

#twp-robot-intro {
  position: fixed;
  top: 20px;
  left: 60px;
  z-index: 90;
  margin: 0;
  padding: 0;
  width: 72px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
  contain: layout style;
  transform: translateX(-50%);
  will-change: auto;
}

#twp-robot-intro svg {
  display: block;
  width: 72px;
  height: 100%;
  margin: 0;
  overflow: visible;
  pointer-events: none;
}

#twp-robot-intro .twp-ri-cable {
  stroke: rgba(55, 58, 64, 0.4);
  stroke-width: 1.75;
  stroke-linecap: round;
  fill: none;
  vector-effect: non-scaling-stroke;
}

#twp-robot-intro .twp-ri-joint {
  fill: #2c2e33;
}

#twp-robot-intro .twp-ri-limb {
  stroke: #3a3d44;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

#twp-robot-intro .twp-ri-led {
  fill: #60a5fa;
}

#twp-robot-intro .twp-ri-led-core {
  fill: #dbeafe;
}

#twp-robot-intro .twp-ri-accent {
  fill: #bfdbfe;
  opacity: 0.7;
}

#twp-robot-intro .twp-ri-shadow {
  fill: rgba(15, 23, 42, 0.22);
}

/* ── Inspection overlay (beam + HUD) ── */
#twp-ri-inspect {
  position: fixed;
  inset: 0;
  z-index: 91;
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: hidden;
  contain: layout style;
}

#twp-ri-inspect .twp-ri-beam-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  transform-origin: 0 0;
  background: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 4px 0.5px rgba(37, 99, 235, 0.22);
  opacity: 0;
  will-change: transform, opacity;
}

#twp-ri-inspect .twp-ri-beam-tip {
  position: absolute;
  width: 1.5px;
  height: 0;
  margin: 0;
  border-radius: 1px;
  background: rgba(37, 99, 235, 0.32);
  box-shadow: 0 0 6px 1px rgba(59, 130, 246, 0.2);
  opacity: 0;
  will-change: transform, opacity, height;
}

#twp-ri-inspect .twp-ri-hud {
  position: absolute;
  min-width: 128px;
  padding: 8px 10px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.45;
  color: #334155;
  letter-spacing: 0.01em;
  opacity: 0;
  will-change: opacity;
}

#twp-ri-inspect .twp-ri-hud__label {
  margin: 0 0 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2563eb;
}

#twp-ri-inspect .twp-ri-hud__label.is-ready {
  color: #16a34a;
}

#twp-ri-inspect .twp-ri-hud__row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 1px 0;
  color: #475569;
  font-weight: 500;
  opacity: 0;
  will-change: opacity, transform;
}

#twp-ri-inspect .twp-ri-hud__ok {
  color: #2563eb;
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}

/* Mobile status line — hidden on desktop */
.twp-ri-status {
  display: none;
}

@media (max-width: 767px) {
  #twp-robot-intro {
    left: 36px;
    top: 16px;
    width: 52px;
  }

  #twp-robot-intro svg {
    width: 52px;
  }

  #twp-ri-inspect {
    display: none !important;
  }

  .twp-ri-status {
    display: block;
    position: fixed;
    z-index: 91;
    left: 62px;
    top: 100px;
    margin: 0;
    padding: 0;
    pointer-events: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2563eb;
    opacity: 0;
    white-space: nowrap;
    will-change: opacity;
  }

  .twp-ri-status.is-ready {
    color: #16a34a;
  }
}

@media (prefers-reduced-motion: reduce) {
  #twp-robot-intro {
    display: none !important;
  }

  #twp-ri-inspect {
    display: none !important;
  }

  .twp-ri-status {
    display: none !important;
  }
}
