/*
 * Software-rendering performance guardrails.
 * Keeps the visual language while avoiding full-viewport blur and repaint loops.
 */
html {
  scroll-behavior: auto !important;
}

body {
  background-attachment: scroll !important;
}

body::before,
body::after,
#r-scroll-progress,
#bg-layer,
.r-aurora,
.r-grain,
.mesh-bg,
.texture-overlay,
.ambient-orb,
.page-hero-glow {
  display: none !important;
  animation: none !important;
  filter: none !important;
}

.blob,
[class*="decorative-orb"],
[class*="gradient-orb"] {
  animation: none !important;
  filter: none !important;
  opacity: 0.08 !important;
}

.glass,
.glass-card,
.hd-header,
#site-header,
.site-header,
.header,
.hd-dropdown-menu,
.dropdown-menu,
.retrix-ai-panel,
.retrix-admin-modal,
.modal-content {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.retrix-ai-panel {
  background: rgba(18, 12, 29, 0.98) !important;
  box-shadow: 0 12px 36px rgba(20, 10, 35, 0.28) !important;
}

[data-motion],
[data-r],
[data-magnetic],
.reveal,
.reveal-up,
.reveal-left,
.reveal-right {
  will-change: auto !important;
}

main > section:not(:first-child),
body > section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

@media (prefers-reduced-motion: reduce), (update: slow) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
