/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 0 100px;
  overflow: hidden;
  /* A darker well than the rest of the page, fading back into it. */
  background: linear-gradient(180deg, #050605 0%, #050605 62%, var(--bg) 100%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.hero__title {
  font-size: clamp(42px, 7.5vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 30px;
}

/* Each line rises out of its own clipped box on load. The padding gives
   descenders room inside the clip box; the negative margin keeps the
   original line rhythm. */
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hero__title .line > span {
  display: block;
  transform: translateY(120%);
  transition: transform 0.95s var(--ease-out);
}

.hero__title .line:nth-child(1) > span { transition-delay: 0.05s; }
.hero__title .line:nth-child(2) > span { transition-delay: 0.13s; }

html:not(.loading) .hero__title .line > span { transform: translateY(0); }

/* The h1 keeps the reveal stagger, but only the lines animate the motion. */
html.loading .hero__title { transform: none; }

.hero__sub {
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 40px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
