/* ════════════════════════════════════════════════════════════════════
   PAGE HEADER — drifting glow-dot particles, shared by every page that
   uses the generic `.page-header` (category directories, insight
   articles, ferro alloys / aluminium foil landing pages). Mirrors
   .hero-particles (homepage) / .ph-particles (products page): plain
   spans injected once by page-header-particles.js with randomized CSS
   custom properties, then animated purely by the keyframe below —
   cheap at any particle count, floats bottom-to-top across the header.
   ════════════════════════════════════════════════════════════════════ */
.page-header-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-header-particle {
  position: absolute;
  bottom: -5%;
  left: var(--x, 50%);
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: var(--hue, var(--accent-hot, #FFC24B));
  box-shadow: 0 0 6px 1px var(--hue, rgba(255, 194, 75, .6));
  opacity: 0;
  animation: pageHeaderParticleFloat var(--dur, 16s) ease-in var(--delay, 0s) infinite;
}

@keyframes pageHeaderParticleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: .7; }
  85% { opacity: .35; }
  100% { transform: translateY(-115vh) translateX(var(--drift, 20px)); opacity: 0; }
}

/* .page-header has no existing background wrapper — its real content
   (kicker/h1/p/cta/breadcrumb/etc.) sits as plain static children, so
   without this they'd paint *under* the absolutely-positioned particle
   layer regardless of DOM order. Scoped generically, no markup change
   needed on any individual page. */
.page-header > *:not(.page-header-particles) {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-header-particle {
    animation: none !important;
    display: none;
  }
}
