.site-page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(8, 9, 12, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.site-page-loader__ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(56, 202, 221, 0.18);
  border-top-color: #38cadd;
  border-right-color: rgba(100, 175, 255, 0.75);
  animation: siteLoaderSpin 0.85s linear infinite;
  box-shadow: 0 0 24px rgba(56, 202, 221, 0.25);
}

.site-page-loader__label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa8cf;
}

html.site-is-loading .site-page-loader {
  opacity: 1;
  visibility: visible;
}

html:not(.site-is-loading) .site-page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.site-is-loading .site-shell__page-content {
  visibility: hidden;
}

html:not(.site-is-loading) .site-shell__page-content {
  visibility: visible;
}

.site-shell__page-content.is-section-loading {
  position: relative;
  min-height: 120px;
}

.site-shell__page-content.is-section-loading::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  border-radius: 0;
  background: rgba(8, 9, 12, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  animation: siteSectionLoaderFadeIn 0.18s ease forwards;
}

.site-shell__page-content.is-section-loading::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 3px solid rgba(56, 202, 221, 0.18);
  border-top-color: #38cadd;
  animation: siteLoaderSpin 0.85s linear infinite, siteSectionLoaderFadeIn 0.18s ease forwards;
  pointer-events: none;
  opacity: 0;
}

@keyframes siteSectionLoaderFadeIn {
  to { opacity: 1; }
}

@keyframes siteLoaderSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .site-page-loader__ring {
    animation-duration: 1.4s;
  }
  .site-shell__page-content.is-section-loading::before {
    animation-duration: 1.4s;
  }
}
