/* A2I: floating golden dust and optical halos, home and inner page banners. */
.hero-animated {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --particle-color: 171, 113, 12;
  --particle-halo: 190, 128, 28;
  --particle-highlight: 146, 91, 5;
}
:root[data-theme="dark"] .hero-animated {
  --particle-color: 255, 196, 77;
  --particle-halo: 228, 133, 32;
  --particle-highlight: 255, 246, 204;
  background: #100f0e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero-animated {
    --particle-color: 255, 196, 77;
    --particle-halo: 228, 133, 32;
    --particle-highlight: 255, 246, 204;
    background: #100f0e;
  }
}
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  pointer-events: none;
}
.hero-animated > .container { position: relative; }
.page-hero.hero-animated { padding-bottom: 60px; }
.particles-toggle {
  position: absolute;
  right: max(14px, calc((100% - 1180px) / 2));
  bottom: 5px;
  background: var(--bg);
  color: var(--muted);
  border: 0;
  padding: 3px 6px;
  font-size: 11px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.particles-toggle:hover { color: var(--accent); }
.particles-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .hero-animated { padding-bottom: 35px; }
  .page-hero.hero-animated { padding-bottom: 48px; }
  .particles-toggle { right: 16px; }
}
.particles-toggle[hidden] { display: none; }
