@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
}

.slide {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 45%, rgba(90, 12, 12, 0.75) 0%, rgba(45, 5, 5, 0.35) 38%, #000 78%),
    #000;
  overflow: hidden;
}

/* scanlines */
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 1;
}

/* film grain */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
  opacity: 0.055;
  pointer-events: none;
  z-index: 1;
}

.frame-eyebrow {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  color: #ef4444;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(10px, 0.95vw, 16px);
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}

.frame-footer-left,
.frame-footer-right {
  position: absolute;
  bottom: 5%;
  color: #ef4444;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(10px, 0.9vw, 15px);
  font-weight: 500;
  letter-spacing: 0.35em;
  z-index: 2;
}

.frame-footer-left { left: 5%; }
.frame-footer-right { right: 5%; }

.content {
  position: absolute;
  top: 14%;
  left: 5%;
  right: 5%;
  bottom: 11%;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1.3vw;
  margin-bottom: 3vh;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(10px, 1vw, 16px);
  letter-spacing: 0.35em;
  color: #a3a3a3;
  text-transform: uppercase;
}

.section-label .num { color: #ef4444; font-weight: 500; }

.section-label .line {
  width: 4vw;
  height: 1px;
  background: linear-gradient(90deg, #ef4444, transparent);
}

.headline {
  font-weight: 800;
  font-size: clamp(36px, 6.2vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: #f5f5f5;
}

.headline .amp {
  color: #ef4444;
  font-weight: 500;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  padding: 0 0.15em;
}

.headline .accent {
  color: #ef4444;
}

.body-text {
  margin-top: 4vh;
  font-size: clamp(14px, 1.45vw, 26px);
  line-height: 1.5;
  max-width: 72%;
  color: #a0a0a0;
  font-weight: 400;
}

.body-text .em { color: #f5f5f5; font-weight: 500; }

/* ANIMATION KEYFRAMES — shared across all slides */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes blurIn {
  from { opacity: 0; filter: blur(20px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes linePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 40px rgba(239,68,68,0.8); }
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 30px rgba(239,68,68,0.3); }
  50% { text-shadow: 0 0 60px rgba(239,68,68,0.6); }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes drawLine {
  from { stroke-dashoffset: var(--dash-len, 3000); }
  to { stroke-dashoffset: 0; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes dotPop {
  0% { opacity: 0; transform: scale(0); }
  70% { opacity: 1; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}

/* reset helper shown in bottom center on all pages */
.reset-hint {
  position: absolute;
  bottom: 2.5%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #555;
  z-index: 10;
  user-select: none;
}

.reset-hint kbd {
  padding: 1px 6px;
  border: 1px solid #333;
  border-radius: 3px;
  background: #111;
  margin-left: 4px;
}
