/* ====================================
   Hero Section
   ==================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.hero-grid-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 26, 26, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 140px 0 80px;
}

.hero-content {
  max-width: 720px;
}

.hero-overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-overline.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 24px;
  transition: filter 0.3s ease;
}

.hero-title:hover {
  filter: blur(2px);
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotate(3deg);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-title .word.visible {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.hero-title em {
  font-style: italic;
  color: var(--text-secondary);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.hero-sub.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

.hero-actions.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-proof {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
}

.hero-proof.visible {
  opacity: 1;
  transform: translateY(0);
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proof-value {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  color: var(--text-primary);
}

.proof-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  background: var(--border);
  margin: 4px 0;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.6s ease 1s;
}

.hero-scroll.visible {
  opacity: 1;
}

.hero-scroll-text {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s infinite;
}

/* ASCII Intro Overlay */
.ascii-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.ascii-overlay.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ascii-art {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  line-height: 1.15;
  color: var(--text-primary);
  white-space: pre;
  letter-spacing: -0.5px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ascii-art.visible {
  opacity: 1;
}

.ascii-art .ch {
  opacity: 0;
  transition: opacity 0.08s ease;
}

.ascii-art .ch.on {
  opacity: 1;
}

.ascii-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 24px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
}

.ascii-tagline.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .ascii-art {
    font-size: 7px;
  }
}

@media (max-width: 600px) {
  .ascii-art {
    font-size: 5px;
  }

  .hero-inner {
    padding: 100px 0 40px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
