/* ==========================================
   CANVAS & BACKGROUND OVERLAYS STYLES
   High-DPI Crisp Rendering & GPU Compositing Optimization
   ========================================== */

.canvas-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background-color: #000000;
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: smooth;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
  transform: translate3d(0, 0, 0);
}

/* Film Grain & Cinematic Vignette Overlays */
.texture-overlay {
  display: none;
}

.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.75) 100%);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Smooth Canvas Bottom Fade Overlay (Eliminates Abrupt Image Frame Cutoffs on Scroll) */
.canvas-bottom-fade-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 45vh;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to bottom, 
    rgba(14, 13, 12, 0) 0%, 
    rgba(14, 13, 12, 0.2) 30%, 
    rgba(14, 13, 12, 0.75) 70%, 
    #0E0D0C 100%
  );
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (max-width: 768px) {
  .canvas-container {
    height: 100vh;
    height: 100svh;
  }

  .vignette-overlay {
    height: 100vh;
    height: 100svh;
  }

  .canvas-bottom-fade-overlay {
    height: 65vh;
    background: linear-gradient(to bottom, 
      rgba(0, 0, 0, 0) 0%, 
      rgba(0, 0, 0, 0.15) 20%, 
      rgba(0, 0, 0, 0.65) 55%, 
      rgba(0, 0, 0, 0.95) 85%, 
      #000000 100%
    );
  }
}

/* Content Overlay Layer */
.content-layer {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  pointer-events: auto;
}
