/* hero.css — Hero section */

/* ─── Section shell ──────────────────────────────── */

#hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  border-top: none;
  background-color: var(--color-bg-hero);
}

/* ─── Canvas ─────────────────────────────────────── */

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--color-canvas-hero);
}

/* Fade the canvas into the page background at the bottom */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  z-index: 1;
  pointer-events: none;
}

/* ─── Content ─────────────────────────────────────── */

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 56px; /* clear fixed nav — section centering handles the rest */
}

/* ─── Descriptor ─────────────────────────────────── */

.hero-descriptor {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--font-regular);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  line-height: 1;
  max-width: none;
  margin-bottom: var(--s-8);
}

/* ─── Headline ───────────────────────────────────── */

.hero-headline {
  font-size: var(--text-4xl);
  font-weight: var(--font-light);
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--color-text-primary);
  max-width: 13ch;
  margin-bottom: var(--s-6);
}

/* ─── Supporting line ────────────────────────────── */

.hero-sub {
  font-size: var(--text-lg);
  font-weight: var(--font-regular);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 50ch;
  margin-bottom: 0;
}

/* ─── Responsive ─────────────────────────────────── */

@media (max-width: 640px) {
  .hero-headline {
    max-width: none;
  }

  .hero-sub {
    font-size: var(--text-base);
    max-width: none;
  }
}
