.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--gutter);
  overflow: hidden;
  isolation: isolate;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 0%, transparent 70%);
  opacity: 0.6;
}

.hero__frame {
  position: absolute;
  inset: clamp(16px, 3vw, 40px);
  border: 1px solid var(--line);
  z-index: -1;
  pointer-events: none;
}
.hero__frame::before,
.hero__frame::after,
.hero__frame .corner {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--amber);
}
.hero__frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero__frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.hero__frame .corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.hero__frame .corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__readout {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: hero-fade-up 0.7s ease 0.1s forwards;
}

.hero__name {
  font-size: var(--step-5);
  line-height: 0.95;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: hero-fade-up 0.8s ease 0.25s forwards;
}

.hero__tagline {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: var(--step-0);
  color: var(--paper-dim);
  max-width: 42ch;
  opacity: 0;
  animation: hero-fade-up 0.8s ease 0.5s forwards;
}

.hero__tagline .amber { color: var(--amber); }

.hero__scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(28px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: hero-fade-up 0.8s ease 0.8s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero__readout, .hero__name, .hero__tagline, .hero__scroll-cue {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero__scroll-cue .bar {
  width: 1px;
  height: 28px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll-cue .bar::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--amber);
  animation: scan-down 1.8s ease-in-out infinite;
}

@keyframes scan-down {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue .bar::after { animation: none; top: 40%; }
}

@media (max-width: 640px) {
  .hero { align-items: flex-start; }
  .hero__tagline { max-width: 32ch; }
}
