/* Cenário astral do hero: camada independente da montagem aprovada. */
#inicio.hero-section { isolation: isolate; z-index: 2; overflow: hidden; }
#inicio.hero-section::before,
#inicio.hero-section::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
#inicio.hero-section::before {
  z-index: -2;
  background: url("images/hero-astral-v1.webp") 62% center / cover no-repeat;
  opacity: .76;
}
#inicio.hero-section::after {
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 4, 18, .7), rgba(18, 10, 52, .5) 47%, rgba(33, 0, 93, .1) 78%), linear-gradient(0deg, rgba(18, 10, 52, .62), transparent 30%, transparent 78%, rgba(7, 4, 18, .2));
}
#inicio .hero-grid { position: relative; z-index: 1; }

/* Motes individuais: sem mosaico, sem textura repetida, sem capturar cliques. */
#contato .contact-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, #000 9%, transparent 18%, transparent 43%, #000 58%), radial-gradient(ellipse 14% 33% at 70% 43%, transparent 75%, #000 100%);
  mask-composite: intersect;
}
.contact-mote {
  position: absolute;
  top: var(--mote-y);
  left: var(--mote-x);
  width: var(--mote-size);
  height: calc(var(--mote-size) * .8);
  border-radius: 43% 57% 62% 38%;
  background: radial-gradient(ellipse at 35% 35%, rgba(255, 247, 237, .95), rgba(var(--mote-rgb), .6) 35%, rgba(var(--mote-rgb), .12) 65%, transparent 76%);
  box-shadow: 0 0 calc(var(--mote-size) * 2) rgba(var(--mote-rgb), .22);
  opacity: 0;
  animation: contact-light-drift var(--mote-time) ease-in-out var(--mote-delay) infinite;
}
.contact-mote.is-soft { filter: blur(1.8px); }
.contact-mote.is-crisp { filter: blur(.2px); }
.contact-mote.is-distant { filter: blur(.7px); }
.contact-mote:nth-child(5n)::after {
  content: "";
  position: absolute;
  inset: -30% 30%;
  background: linear-gradient(transparent, rgba(var(--mote-rgb), .6), transparent);
  transform: rotate(-32deg);
  filter: blur(.5px);
}
@keyframes contact-light-drift {
  0%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(var(--mote-turn)) scale(.65); }
  18% { opacity: .18; }
  46% { opacity: .68; }
  79% { opacity: .28; }
  96% { opacity: 0; transform: translate3d(var(--mote-dx), var(--mote-dy), 0) rotate(calc(var(--mote-turn) + 35deg)) scale(1.1); }
}
@media (max-width: 900px) {
  #inicio.hero-section::before { background-position: 76% center; opacity: .58; }
  #inicio.hero-section::after { background: linear-gradient(100deg, rgba(7, 4, 18, .7), rgba(18, 10, 52, .52)), linear-gradient(0deg, rgba(18, 10, 52, .6), transparent 42%); }
  #contato .contact-particles { mask-image: radial-gradient(ellipse 42% 40% at 50% 45%, transparent 70%, #000 100%); mask-composite: add; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-mote { animation: none; opacity: .22; }
}
