/* ===== PAGE ===== */
html, body {
  margin: 0;
  background: #000;
  height: 100%;
}

/* ===== HERO ===== */
.pd3-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* wrapper */
.pd3-wrap {
  position: relative;
  width: min(100vw, 1600px);
}

/* base image */
.pd3-img {
  width: 100%;
  height: auto;
  display: block;
}

/* glitch clone */
.pd3-img.glitch {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

/* scanline (subtle, B/W only) */
.pd3-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.00) 0px,
    rgba(255,255,255,0.00) 5px,
    rgba(255,255,255,0.06) 6px
  );
  opacity: 0.35;
  pointer-events: none;
}

/* ===== GLITCH STATE ===== */
.glitch-wrap.glitch-on .pd3-img.glitch {
  opacity: 1;
  animation: glitch-slices 0.18s steps(2, end);
}

/* ===== SLICE GLITCH (NO COLOR) ===== */
@keyframes glitch-slices {
  0% {
    clip-path: inset(45% 0 45% 0);
    transform: translateX(0);
  }
  25% {
    clip-path: inset(48% 0 40% 0);
    transform: translateX(-14px);
  }
  50% {
    clip-path: inset(42% 0 48% 0);
    transform: translateX(16px);
  }
  75% {
    clip-path: inset(46% 0 44% 0);
    transform: translateX(-10px);
  }
  100% {
    clip-path: inset(45% 0 45% 0);
    transform: translateX(0);
  }
}
