@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Share+Tech+Mono&family=Crimson+Pro:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  --black:    #080808;
  --deep:     #0d0d0d;
  --grid:     #131313;
  --border:   #1e1e1e;
  --dim:      #2a2a2a;
  --muted:    #555;
  --text:     #b8b8b8;
  --light:    #e0e0e0;
  --red:      #c0392b;
  --red-glow: rgba(192, 57, 43, 0.15);
  --amber:    #d4a017;
  --scan:     rgba(255,255,255,0.015);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
  cursor: crosshair;
}

/* ── SCANLINES overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    var(--scan) 2px,
    var(--scan) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── NOISE texture ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(192,57,43,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(0,0,0,0) 0%, var(--black) 100%);
}

/* Eye / Camera SVG */
.eye-wrap {
  position: relative;
  margin-bottom: 3rem;
}

.eye-svg {
  width: 120px;
  height: 120px;
  animation: pulse-eye 4s ease-in-out infinite;
}

@keyframes pulse-eye {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(192,57,43,0.4)); }
  50%       { filter: drop-shadow(0 0 28px rgba(192,57,43,0.9)); }
}

.recording-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 8px;
  animation: blink 1.2s step-start infinite;
}

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

.rec-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 14vw, 12rem);
  letter-spacing: 0.04em;
  color: var(--light);
  line-height: 0.9;
  position: relative;
  text-shadow: 0 0 60px rgba(192,57,43,0.2);
}

.hero h1 span {
  color: var(--red);
  display: block;
}

.hero-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--dim);
  text-transform: uppercase;
  animation: fade-up 2s ease-in-out infinite;
}

@keyframes fade-up {
  0%, 100% { opacity: 0; transform: translateX(-50%) translateY(6px); }
  50%       { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

nav a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 1rem 1.6rem;
  border-right: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}

nav a:hover {
  color: var(--red);
  background: var(--red-glow);
}

/* ── MAIN LAYOUT ── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── SECTION ── */
.section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: none;
}

.section-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--red);
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.05em;
  color: var(--light);
  line-height: 1;
  margin-bottom: 2.5rem;
}

p {
  max-width: 680px;
  color: var(--text);
  font-weight: 300;
}

p + p { margin-top: 1.2rem; }

em { color: var(--light); font-style: italic; }
strong { color: var(--amber); font-weight: 400; }

/* ── TWO-COLUMN GRID ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── QUOTE BLOCK ── */
.quote-block {
  border-left: 2px solid var(--red);
  padding: 1.5rem 2rem;
  margin: 3rem 0;
  background: linear-gradient(90deg, var(--red-glow), transparent);
  position: relative;
}

.quote-block::before {
  content: '"';
  font-family: 'Bebas Neue', sans-serif;
  font-size: 6rem;
  color: var(--red);
  opacity: 0.15;
  position: absolute;
  top: -1rem;
  left: 1rem;
  line-height: 1;
}

.quote-block p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--light);
  max-width: 100%;
}

.quote-block cite {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 1rem;
  font-style: normal;
}

/* ── STAT CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.card {
  background: var(--deep);
  padding: 2rem;
  transition: background 0.3s;
}

.card:hover { background: var(--grid); }

.card-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: var(--red);
  line-height: 1;
  display: block;
}

.card-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.5rem;
  display: block;
}

.card p {
  font-size: 0.9rem;
  margin-top: 1rem;
  color: var(--muted);
}

/* ── TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 3rem;
  margin-top: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--red), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 3rem;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0.4rem;
  width: 9px; height: 9px;
  border: 1px solid var(--red);
  background: var(--black);
  transform: rotate(45deg);
}

.tl-year {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.tl-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--light);
  margin-bottom: 0.5rem;
}

/* ── DIAGRAM ── */
.diagram-wrap {
  margin: 3rem 0;
  border: 1px solid var(--border);
  padding: 3rem;
  background: var(--deep);
  display: flex;
  justify-content: center;
}

.diagram-wrap svg {
  max-width: 500px;
  width: 100%;
}

/* ── RESISTANCE BOX ── */
.resistance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.resistance-item {
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s;
}

.resistance-item:hover { border-color: var(--red); }

.resistance-item::after {
  content: attr(data-n);
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--dim);
  line-height: 1;
}

.ri-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.resistance-item p { font-size: 0.9rem; max-width: 100%; }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ── PROGRESS BAR ── */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--red);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--red);
}

/* ── BACK TO TOP ── */
#back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--deep);
  color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, border-color 0.3s, color 0.3s;
}

#back-top.show {
  opacity: 1;
  pointer-events: all;
}

#back-top:hover {
  border-color: var(--red);
  color: var(--red);
}
