/* hero.css — page 1 (js/sections/hero.js). */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/*
 * The streaks sit 150px higher than the field they are drawn in.
 *
 * A transform rather than a top/height offset: the canvas keeps exactly the
 * field's size, so the vanishing point, the perspective growth and the spacing
 * between streaks are untouched — only where they land on the page moves. An
 * offset would resize the canvas and with it re-lay-out the whole effect.
 * The top of the canvas is clipped by .hero's overflow, so the streaks simply
 * leave earlier; the bottom 150px of the page is left clear.
 */
.hero__flow {
  --flow-lift: 50px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateY(calc(-1 * var(--flow-lift)));
}

/* ── layout ──────────────────────────────────────────────────────────────── */

.hero__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 24px;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 120px;
  padding-bottom: 56px;
}

.hero__copy {
  display: grid;
  gap: clamp(40px, 9vh, 120px);
  align-content: center;
  position: relative;
  z-index: 2;
}

.hero__title {
  display: grid;
  gap: 10px;
  font-weight: inherit;
}

.hero__wordmark {
  width: clamp(200px, 19vw, 330px);
  height: auto;
  color: var(--fg);
  overflow: visible;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.75vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.downloads {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.hero__stage {
  position: relative;
  justify-self: center;
  width: min(100%, 78vh, 760px);
  aspect-ratio: 1;
}

.hero__gl,
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  /* vertical swipes still scroll the page on touch screens */
  touch-action: pan-y;
}

.hero__gl.is-dragging {
  cursor: grabbing;
}

.hero__fallback {
  color: var(--fg);
  opacity: 0.85;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 100px;
    gap: 8px;
  }

  .hero__stage {
    order: -1;
    width: min(100%, 52vh);
  }

  .hero__copy {
    gap: 32px;
  }
}
