/* ═══════════════════════════════════════════════════════════════
   ARCANA — Interactive Effects Styles
   OriginKit-inspired effects for vanilla HTML/CSS/JS
   ═══════════════════════════════════════════════════════════════ */

/* === Hero Section: darker vignette for ritual feel === */
.hero-section {
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, transparent 40%, rgba(0,0,0,.8) 100%);
  pointer-events: none;
  z-index: 0;
}



/* === Film Grain Overlay === */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: grainShift 0.5s steps(4) infinite;
  will-change: transform;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, 2px); }
}


/* === Cinematic Frame (vignette + chromatic hint) === */
.cinematic-frame {
  position: relative;
}
.cinematic-frame::before,
.cinematic-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}
.cinematic-frame::before {
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.cinematic-frame::after {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
}
.cinematic-frame video,
.cinematic-frame img {
  position: relative;
  z-index: 1;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  .grain-overlay { animation: none; opacity: 0.04; }
}


