/* Barba + Anime motion system */
.site-shell {
  position: relative;
  min-height: 100vh;
}

.page-view {
  position: relative;
  min-height: 100vh;
}

.page-transition-layer {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: clip;
}

.page-transition-layer[hidden] {
  display: none;
}

.page-transition-layer.is-active {
  opacity: 1;
  visibility: visible;
}

.page-transition-panel,
.page-transition-glow,
.page-transition-grid {
  position: absolute;
  inset: 0;
}

.page-transition-panel {
  background:
    linear-gradient(180deg, rgba(247, 127, 60, 0.16) 0%, rgba(247, 127, 60, 0.04) 24%, rgba(10, 12, 16, 0.96) 62%, rgba(10, 12, 16, 0.99) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 28%);
  transform: translate3d(0, 100%, 0);
}

.page-transition-glow {
  background:
    radial-gradient(circle at 50% 18%, rgba(247, 127, 60, 0.22), transparent 30%),
    radial-gradient(circle at 50% 0%, rgba(255, 248, 240, 0.14), transparent 22%);
  mix-blend-mode: screen;
  opacity: 0;
}

.page-transition-grid {
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.045) 50%, transparent 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.028),
      rgba(255, 255, 255, 0.028) 1px,
      transparent 1px,
      transparent 86px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.022),
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 86px
    );
  opacity: 0;
}

body.is-transitioning .site-shell {
  pointer-events: none;
}

body.is-transitioning .site-header,
body.is-transitioning .nav-overlay,
body.is-transitioning .mobile-drawer {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-transition-layer,
  .page-transition-panel,
  .page-transition-glow,
  .page-transition-grid {
    transition: none !important;
    transform: none !important;
  }
}
