/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: 0 0 0 var(--sp-xl);
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
}

.hero > .container {
  text-align: left;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__grid {
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-3xl) 0;
  max-width: 50%;
}

.hero__visual {
  position: absolute;
  top: -168px;
  right: -150px;
  bottom: -100px;
  width: 110vw;
  overflow: visible;
  opacity: 0;
  transform: scale(0.96);
  animation: hero-visual-in 2000ms cubic-bezier(0.16, 1, 0.3, 1) 700ms forwards;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 45%, #000 60%, #000 100%);
          mask-image: linear-gradient(to right, transparent 0%, transparent 45%, #000 60%, #000 100%);
  pointer-events: none;
}

@keyframes hero-visual-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero__visual canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 900px) {
  .hero__content { max-width: 100%; padding: var(--sp-2xl) 0 60vh; }
  .hero__visual {
    position: absolute;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 50vh;
  }
}

/* Mobile tier — full-bleed visual, stacked buttons, tighter visual height */
@media (max-width: 720px) {
  .hero {
    padding: 0;
  }
  .hero__content {
    padding: var(--sp-2xl) var(--sp-md) 40vh;
  }
  .hero__visual {
    height: 40vh;
    /* Sphere is centered (not right-shifted) on mobile — drop the L→R fade
       mask that was hiding its left half. */
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero__title {
  margin: 0 0 var(--sp-xl);
  max-width: 820px;
}

.hero__title-line {
  display: flex;
  flex-wrap: wrap;
}

.hero__title-accent {
  font-family: var(--font-sans);
  font-size: inherit;
  color: var(--color-mint);
  font-weight: var(--fw-medium);
  letter-spacing: -0.04em;
}

.hero__lead {
  max-width: 560px;
  margin: 0 0 var(--sp-2xl);
  font-size: var(--fs-body);
  color: var(--color-primary);
}

.hero__actions {
  display: flex;
  gap: var(--sp-md);
  align-items: center;
}
