/* ── Grid Background ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; 
  inset: 0;
  background-image:
    linear-gradient(rgba(57,255,20,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,20,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── CRT Scanlines ───────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; 
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

/* ── Slideshow ───────────────────────────────────────────────── */
.deck {
  position: fixed; 
  inset: 0;
  z-index: 10;
}

.slide {
  position: absolute; 
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  overflow-y: auto;
  max-height: 100vh;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.slide.exit {
  opacity: 0;
  transform: translateX(-60px);
}

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 200;
}

.nav-btn {
  background: none;
  border: 2px solid var(--dim);
  color: var(--dim);
  font-family: var(--font);
  font-size: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  letter-spacing: 1px;
}

.nav-btn:hover { 
  border-color: var(--cyan); 
  color: var(--cyan); 
}

.dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px; 
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.dot.active { 
  background: var(--green); 
  transform: scale(1.4); 
}

.slide-counter {
  position: fixed;
  top: 24px;
  right: 32px;
  font-size: 8px;
  color: var(--dim);
  z-index: 200;
  letter-spacing: 2px;
}

/* ── Progress bar ────────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; 
  left: 0;
  height: 3px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  transition: width 0.4s ease;
  z-index: 300;
}
