.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 2rem 3rem;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) var(--space-container-inline) 1rem;
  max-width: 1200px;
  margin-inline: auto;
}

.hero__content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero__subtitle {
  margin: 0.5rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--text-muted);
}

.hero__typewriter {
  min-height: 2.75em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero__typewriter-text {
  vertical-align: baseline;
}

.hero__typewriter-cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 500;
  color: var(--green);
  animation: hero-cursor-blink 1.05s step-end infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero__typewriter-cursor {
    animation: none;
  }
}

@keyframes hero-cursor-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero__tagline {
  margin: 1.25rem 0 0;
  max-width: 32ch;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__visual {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__scroll {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--green-muted);
  color: var(--green);
  font-size: 1rem;
  transition: color var(--transition), border-color var(--transition),
    background var(--transition), transform var(--transition);
  animation: hero-scroll-bounce 2.25s ease-in-out infinite;
}

.hero__scroll:hover {
  color: var(--text);
  border-color: var(--green);
  background: var(--bg-elevated);
  animation-play-state: paused;
  transform: translateY(2px);
}

.hero__scroll:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

.hero__frame {
  position: relative;
  max-width: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hero), 0 0 0 1px var(--green-muted);
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--hero-inset);
}

.hero__frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    text-align: center;
    padding-top: calc(var(--header-h) + 1.75rem);
    padding-bottom: 1.25rem;
  }

  .hero__visual {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__content {
    grid-column: 1;
    grid-row: 2;
  }

  .hero__scroll {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0.15rem;
  }

  .hero__tagline {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__frame {
    max-width: 260px;
  }
}
