/* Page-transition cube loader.
   Shown briefly during internal nav clicks. Works in all browsers. */

.pv-loader {
  position: fixed;
  inset: 0;
  background: #001233;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pv-loader.show {
  opacity: 1;
  pointer-events: auto;
}

.pv-loader.fade-out {
  opacity: 0;
  transition: opacity 480ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pv-loader-cube {
  width: 96px;
  height: 96px;
  background: url('/images/cube-transparent.webp') center/contain no-repeat;
  animation: pv-cube-spin 4s linear infinite;
  filter: drop-shadow(0 0 24px rgba(167, 136, 49, 0.25));
}

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

@media (prefers-reduced-motion: reduce) {
  .pv-loader { transition-duration: 80ms !important; }
  .pv-loader-cube { animation: none; }
}
