/* This component consumes the shared theme; it does not set a page palette. */
.local-hero:has(> .argon-hero) {
  position: relative;
  isolation: isolate;
}
.local-hero > .local-hero-grid {
  position: relative;
  z-index: 1;
}
.argon-hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background:
    radial-gradient(ellipse at 18% 75%, color-mix(in srgb, var(--color-decorative) 48%, transparent), transparent 65%),
    radial-gradient(ellipse at 40% 50%, color-mix(in srgb, var(--color-primary) 14%, transparent), transparent 60%),
    var(--color-canvas);
  mask-image: linear-gradient(transparent, #000 12%, #000 82%, transparent);
}
.argon-hero > picture,
.argon-hero > picture > img,
.argon-hero > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
/* Preserve white snowflakes in the static fallback as well as the live scene. */
.argon-hero > picture { opacity: 1; }
.argon-hero > canvas { opacity: 0; transition: opacity 1.2s ease; }
.argon-hero[data-state="running"] > canvas,
.argon-hero[data-state="paused"] > canvas { opacity: 1; }
/* One viewport-sized layer, shared by every content page and below its controls. */
body.has-mountain-background { isolation: isolate; }
body > .mountain-background {
  position: fixed;
  z-index: -1;
  max-height: none;
  mask-image: none;
  opacity: .58;
}
@media (max-width: 700px) {
  .argon-hero { max-height: 740px; mask-image: linear-gradient(transparent, #000 8%, #000 65%, transparent); }
  .argon-hero > picture > img { object-position: center top; }
}
@media (prefers-reduced-motion: reduce) {
  .argon-hero > canvas { display: none; transition: none; }
}
@media print {
  .argon-hero { display: none; }
}
