/* PIXEL LOCUS — Cinematic hero motion
   Isolated from core styles for easy tuning and complete reduced-motion support.
   The motion is created with CSS and lightweight pointer interpolation; no video or dependencies. */

.hero {
  --hero-camera-x: 0px;
  --hero-camera-y: 0px;
  --hero-orbit-x: 0px;
  --hero-orbit-y: 0px;
}

/* A slow, looping camera move gives the static artwork a cinematic, living quality. */
.hero-image {
  animation: hero-camera-drift 18s cubic-bezier(.45, 0, .55, 1) infinite alternate;
  transform-origin: 67% 52%;
  will-change: transform;
}

.hero-energy {
  position: absolute;
  inset: 0;
  isolation: isolate;
  transform: translate3d(var(--hero-orbit-x), var(--hero-orbit-y), 0);
  will-change: transform;
  pointer-events: none;
}

/* Glow sits just behind the moving portal rings, aligned with the logo in the art. */
.hero-energy-core {
  position: absolute;
  inset: 4% -12% -4% 26%;
  background:
    radial-gradient(ellipse 29% 42% at 71% 52%, rgba(252,46,62,.42), rgba(163,7,33,.13) 49%, transparent 78%),
    linear-gradient(104deg, transparent 53%, rgba(255,57,73,.085) 65%, transparent 76%);
  mix-blend-mode: screen;
  animation: core-pulse 5.8s ease-in-out infinite;
}

/* Semi-transparent rotating arcs add unmistakable motion around the glyph. */
.hero-energy-orbit,
.hero-energy-ripple {
  position: absolute;
  left: 72%;
  top: 44%;
  width: min(38vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.hero-energy-orbit-one {
  border: 1px solid rgba(255, 78, 91, .39);
  border-top-color: rgba(255, 211, 199, .78);
  border-bottom-color: transparent;
  box-shadow: inset 0 0 17px rgba(222, 20, 45, .08), 0 0 35px rgba(202, 9, 42, .10);
  animation: orbit-clockwise 27s linear infinite;
}

.hero-energy-orbit-two {
  width: min(48vw, 680px);
  border: 1px dashed rgba(244, 128, 117, .35);
  border-left-color: transparent;
  border-right-color: rgba(255, 56, 74, .6);
  animation: orbit-counterclockwise 34s linear infinite;
}

.hero-energy-ripple {
  border: 1px solid rgba(255, 63, 80, .58);
  box-shadow: 0 0 32px rgba(236, 14, 53, .22), inset 0 0 25px rgba(244, 32, 46, .09);
  animation: impact-wave 6s cubic-bezier(.15,.46,.3,1) infinite;
}
.hero-energy-ripple-two { animation-delay: -3s; }

/* A red seam sweeps through the ruined emblem at intervals, like a power surge. */
.hero-energy-sweep {
  position: absolute;
  left: 59%;
  top: -25%;
  width: 3px;
  height: 165%;
  opacity: 0;
  transform: rotate(12deg);
  background: linear-gradient(180deg, transparent 12%, #ffadb0 44%, #ff2947 57%, transparent 89%);
  box-shadow: 0 0 12px 3px #ff4b60, 0 0 65px 15px #ef173e83;
  mix-blend-mode: screen;
  animation: energy-scan 9s ease-in-out infinite;
}

/* Foreground debris pieces float at staggered speeds and distances. */
.hero-shard {
  position: absolute;
  display: block;
  width: var(--size, 15px);
  height: var(--size, 15px);
  top: var(--top);
  left: var(--left);
  background: linear-gradient(137deg, #c4a5a2 4%, #5b4848 38%, #160e15 75%, #8e2027 100%);
  border: 1px solid rgba(255, 171, 165, .25);
  clip-path: polygon(28% 0%, 95% 16%, 85% 92%, 14% 100%, 0% 42%);
  box-shadow: 5px 9px 25px #e3183940;
  opacity: .8;
  animation: floating-ruin var(--speed, 6s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.hero-shard-one { --size: 21px; --left: 60%; --top: 30%; --speed: 7s; --delay: -1s; }
.hero-shard-two { --size: 12px; --left: 89%; --top: 24%; --speed: 8.5s; --delay: -3s; }
.hero-shard-three { --size: 27px; --left: 84%; --top: 73%; --speed: 6s; --delay: -4.5s; }
.hero-shard-four { --size: 8px; --left: 54%; --top: 66%; --speed: 5s; --delay: -2s; }
.hero-shard-five { --size: 15px; --left: 94%; --top: 52%; --speed: 9s; --delay: -5.5s; }

@keyframes hero-camera-drift {
  from {
    transform: translate3d(var(--hero-camera-x), calc(var(--parallax, 0px) + var(--hero-camera-y)), 0) scale(1.07);
  }
  to {
    transform: translate3d(calc(var(--hero-camera-x) - 30px), calc(var(--parallax, 0px) + var(--hero-camera-y) - 14px), 0) scale(1.18);
  }
}
@keyframes core-pulse {
  0%, 100% { opacity: .25; filter: brightness(.8); }
  48% { opacity: .83; filter: brightness(1.35); }
  56% { opacity: .65; filter: brightness(1.15); }
  61% { opacity: 1; filter: brightness(1.6); }
}
@keyframes orbit-clockwise {
  from { transform: translate(-50%,-50%) rotate(0); }
  to { transform: translate(-50%,-50%) rotate(360deg); }
}
@keyframes orbit-counterclockwise {
  from { transform: translate(-50%,-50%) rotate(0); }
  to { transform: translate(-50%,-50%) rotate(-360deg); }
}
@keyframes impact-wave {
  0% { transform: translate(-50%,-50%) scale(.72); opacity: 0; }
  12% { opacity: .65; }
  60%, 100% { transform: translate(-50%,-50%) scale(1.55); opacity: 0; }
}
@keyframes energy-scan {
  0%, 21%, 40%, 100% { transform: translateX(0) rotate(12deg); opacity: 0; }
  23% { opacity: .05; }
  26% { opacity: .65; }
  32% { opacity: .48; }
  38% { transform: translateX(22vw) rotate(12deg); opacity: 0; }
}
@keyframes floating-ruin {
  from { transform: translate3d(-12px, 18px, 0) rotate(-21deg) scale(.86); }
  to { transform: translate3d(15px, -28px, 0) rotate(28deg) scale(1.1); }
}

@media (max-width: 900px) {
  .hero-energy-orbit-one { width: 49vw; }
  .hero-energy-orbit-two { width: 64vw; }
  .hero-energy-ripple { width: 49vw; }
  .hero-energy-core { inset: 7% -40% 0 24%; }
}

@media (max-width: 600px) {
  .hero-image { transform-origin: 68% 40%; }
  .hero-energy { opacity: .5; }
  .hero-energy-orbit,
  .hero-energy-ripple { left: 86%; top: 43%; }
  .hero-energy-orbit-one, .hero-energy-ripple { width: 65vw; }
  .hero-energy-orbit-two { width: 86vw; }
  .hero-energy-sweep { left: 61%; }
  .hero-shard-one, .hero-shard-four { display: none; }
}

/* No autoplaying effects or pointer depth when a visitor requests reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .hero-image { animation: none !important; transform: none !important; }
  .hero-energy { transform: none !important; }
  .hero-energy-orbit, .hero-energy-ripple, .hero-energy-sweep,
  .hero-shard { display: none !important; }
  .hero-energy-core { animation: none !important; opacity: .22 !important; }
}
