.site-loader {
  position: fixed;
  inset: 0;
  background: #f8fafc;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-scene {
  width: 360px;
  height: 170px;
  position: relative;
  overflow: hidden;
}
.loader-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 10px;
  background: linear-gradient(90deg, #cbd5f5, #94a3b8, #cbd5f5);
  border-radius: 8px;
}
.loader-excavator {
  position: absolute;
  left: 0;
  bottom: 26px;
  width: 92px;
  height: 48px;
  animation: loader-move 4.6s ease-in-out infinite;
}
.exc-body {
  position: absolute;
  left: 16px;
  bottom: 14px;
  width: 64px;
  height: 20px;
  background: #f59e0b;
  border-radius: 6px;
  box-shadow: inset 0 -3px 0 #d97706, inset 0 3px 0 rgba(255, 255, 255, 0.35);
}
.exc-cab {
  position: absolute;
  left: 34px;
  bottom: 30px;
  width: 28px;
  height: 18px;
  background: #fbbf24;
  border-radius: 4px 4px 3px 3px;
  box-shadow: inset 0 -3px 0 #d97706, inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.exc-cab::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 12px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 2px;
  box-shadow: inset 0 -1px 0 #94a3b8;
}
.exc-cab::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  width: 6px;
  height: 6px;
  background: #0f172a;
  border-radius: 50%;
  opacity: 0.35;
}
.exc-arm {
  position: absolute;
  left: 10px;
  bottom: 24px;
  width: 28px;
  height: 8px;
  background: #f59e0b;
  border-radius: 6px;
  transform-origin: right center;
  animation: loader-arm 1.6s ease-in-out infinite;
}
.exc-bucket {
  position: absolute;
  left: -2px;
  bottom: 14px;
  width: 14px;
  height: 10px;
  border: 3px solid #f59e0b;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}
.exc-track {
  position: absolute;
  left: 10px;
  bottom: 2px;
  width: 72px;
  height: 10px;
  background: repeating-linear-gradient(90deg, #0f172a 0 6px, #1f2937 6px 10px);
  border-radius: 8px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}
.exc-wheel {
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: #1f2937;
  border-radius: 50%;
}
.exc-wheel.one { left: 16px; }
.exc-wheel.two { left: 34px; }
.exc-wheel.three { left: 52px; }
.loader-text {
  position: absolute;
  width: 100%;
  bottom: -6px;
  text-align: center;
  color: #475569;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
@media (max-height: 520px) {
  .loader-scene { height: 130px; }
  .loader-text { bottom: -4px; }
}
.loader-crane {
  position: absolute;
  right: 6px;
  bottom: 22px;
  width: 64px;
  height: 120px;
}
.crane-tower {
  position: absolute;
  right: 10px;
  bottom: 0;
  width: 10px;
  height: 100px;
  background: #f59e0b;
  border-radius: 6px;
  box-shadow: inset 0 -3px 0 #d97706, inset 0 3px 0 rgba(255, 255, 255, 0.35);
}
.crane-tower::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: -4px;
  width: 22px;
  height: 6px;
  background: #d97706;
  border-radius: 4px;
}
.crane-arm {
  position: absolute;
  right: 0;
  top: 10px;
  width: 64px;
  height: 8px;
  background: #fbbf24;
  border-radius: 6px;
  box-shadow: inset 0 -3px 0 #d97706, inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.crane-cable {
  position: absolute;
  right: 44px;
  top: 16px;
  width: 2px;
  height: 60px;
  background: #1f2937;
  transform-origin: top;
  animation: crane-cable 2.2s ease-in-out infinite;
}
.crane-hook {
  position: absolute;
  right: 36px;
  top: 70px;
  width: 18px;
  height: 12px;
  border: 2px solid #1f2937;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  animation: crane-hook 2.2s ease-in-out infinite;
}
@keyframes loader-move {
  0% { transform: translateX(0); }
  50% { transform: translateX(180px); }
  100% { transform: translateX(0); }
}
@keyframes loader-arm {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(-8deg); }
}
@keyframes crane-cable {
  0%, 100% { height: 40px; }
  50% { height: 70px; }
}
@keyframes crane-hook {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(26px); }
}
