.hero {
  position: relative;
  padding: 72px 32px 48px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg-base);
}

/* The inventory/crafting-grid motif: a faint grid of square "slots"
   behind everything else in the hero. Pure CSS, two overlaid
   repeating-gradients — no image asset needed. */
.hero__slot-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--slot-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--slot-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 30%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 20% 30%, black 0%, transparent 75%);
  pointer-events: none;
}

/* The one highlighted slot — like an item sitting selected in an
   inventory. Deliberately singular: this is the hero's signature
   moment, everything else stays quiet. */
.hero__slot {
  position: absolute;
  top: 38px;
  left: 372px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent-copper) 55%, transparent);
  background: color-mix(in srgb, var(--accent-copper) 10%, transparent);
  box-shadow: var(--glow-copper);
  animation: slot-pulse 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes slot-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero__slot {
    display: none;
  }
}

.hero__eyebrow {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal-bright);
  margin-bottom: 12px;
}

.hero__stream {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__stream-chip {
  position: absolute;
  opacity: 0.35;
  top: calc(10% + (var(--i) * 9%));
  left: calc(-40px);
  animation: drift 18s linear infinite;
  animation-delay: calc(var(--i) * -2.1s);
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(120vw);
  }
}

.hero__title {
  position: relative;
  font-size: 40px;
  line-height: 1.08;
  max-width: 580px;
  color: var(--text-primary);
}

.hero__subtitle {
  position: relative;
  max-width: 460px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 16px 0 0;
}

@media (max-width: 640px) {
  .hero__title {
    font-size: 28px;
  }
}

.tool-grid-section {
  padding: 8px 32px 48px;
}

.tool-grid__heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin: 28px 0 12px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.tool-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* #26 — saved-project context line on a tool card. Deliberately quieter
   than .card__desc (smaller, muted, mono) since it's secondary metadata,
   not the tool's description. */
.card__project-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin: 6px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero__stream-chip {
    animation: none;
    display: none;
  }
}
