.tools-conveyor-wrap {
  background: transparent;
}

.tools-conveyor-scene {
  --belt-top: 30%;
  --belt-height: 84px;
  --gear-size: 72px;
  position: relative;
  height: clamp(270px, 36vw, 340px);
  overflow: hidden;
  background: #ffffff;
}

.tools-conveyor-track {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--belt-top);
  height: var(--belt-height);
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(37 99 235), rgb(14 165 233));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    inset 0 -14px 22px rgba(2, 132, 199, 0.34),
    0 14px 28px rgba(37, 99, 235, 0.18);
  overflow: hidden;
}

.tools-conveyor-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 200%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.16)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.26) 0 22px,
      rgba(147, 197, 253, 0.22) 22px 48px,
      rgba(255, 255, 255, 0.16) 48px 72px
    );
  animation: tools-belt-shift 6s linear infinite;
}

.tools-conveyor-track::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 10px;
  height: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(191, 219, 254, 0.46), rgba(255, 255, 255, 0.22));
  opacity: 0.9;
}

.tools-conveyor-items {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tool-belt-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 246, 255, 0.98));
  color: rgb(29 78 216);
  box-shadow:
    0 14px 26px rgba(14, 165, 233, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: auto;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
}

.tool-belt-item i {
  font-size: 1.6rem;
}

.tool-belt-item:hover,
.tool-belt-item:focus-visible {
  filter: brightness(1.04);
  box-shadow:
    0 18px 30px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  outline: none;
}

.tools-gear-row {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--belt-top) + var(--belt-height));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.tool-gear {
  width: var(--gear-size);
  height: var(--gear-size);
  position: relative;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0 18%, transparent 19%),
    radial-gradient(circle at center, transparent 0 43%, rgba(14, 165, 233, 0.26) 44% 61%, transparent 62%),
    repeating-conic-gradient(from 0deg, rgba(59, 130, 246, 0.95) 0 10deg, rgba(147, 197, 253, 0.18) 10deg 30deg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 12px 24px rgba(37, 99, 235, 0.12);
  animation: tools-gear-spin 6s linear infinite;
  transform-origin: center center;
  margin-top: calc(var(--gear-size) * -0.12);
}

.tool-gear:nth-child(even) {
  animation-direction: reverse;
}

.tool-gear::before {
  content: "";
  position: absolute;
  inset: 19%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.44);
}

.tool-gear::after {
  content: "";
  position: absolute;
  inset: 39%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.92);
}

.tools-grid-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgb(100 116 139);
}

[data-motion="paused"] .tools-conveyor-track::before,
[data-motion="paused"] .tool-gear {
  animation-play-state: paused;
}

[data-reduced-motion="true"] .tools-conveyor-track::before,
[data-reduced-motion="true"] .tool-gear {
  animation: none;
}

@keyframes tools-belt-shift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

@keyframes tools-gear-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1023px) {
  .tools-conveyor-scene {
    height: 320px;
  }
}

@media (max-width: 767px) {
  .tools-conveyor-scene {
    --belt-top: 29%;
    --belt-height: 74px;
    --gear-size: 58px;
    height: 250px;
  }

  .tool-belt-item {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .tool-belt-item i {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-belt-item {
    transition: none;
  }
}

