@layer blocks {
  .hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 4rem);
    min-height: calc(100dvh - 4rem);
    background: linear-gradient(
      135deg,
      var(--color-bg) 0%,
      hsl(224deg 43% 12%) 25%,
      hsl(198deg 40% 10%) 50%,
      hsl(235deg 35% 12%) 75%,
      var(--color-bg) 100%
    );
    background-size: 400% 400%;
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero {
      animation: gradient-shift 15s ease infinite;
    }
  }

  @keyframes gradient-shift {
    0% {
      background-position: 0% 50%;
    }

    50% {
      background-position: 100% 50%;
    }

    100% {
      background-position: 0% 50%;
    }
  }

  /* Particle canvas — fills hero, behind everything */
  .hero-particles {
    --particle-opacity: 0.6;

    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
  }

  /* Mouse-follow glow — JS sets --mouse-x / --mouse-y in task 2.9 */
  .hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
      600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      var(--color-accent-subtle),
      transparent 60%
    );
    z-index: 0;
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
  }

  .hero:hover .hero-glow {
    opacity: 1;
  }

  /* Content sits above canvas and glow */
  .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
  }

  /* Name — large heading with gradient text */
  .hero-name {
    font-family: var(--font-heading);
    font-size: var(--font-size-h1);
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.5;
    margin-block-end: var(--space-md);
  }

  /* Tagline — monospace, muted, with typing cursor */
  .hero-tagline {
    font-family: var(--font-mono);
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-block-end: var(--space-xl);
  }

  .hero-tagline::after {
    content: '|';
    color: var(--color-accent);
    margin-left: 2px;
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero-tagline::after {
      animation: blink 1s step-end infinite;
    }
  }

  @keyframes blink {
    50% {
      opacity: 0;
    }
  }

  /* CTA — single clickable area wrapping text + arrow */
  .hero-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
  }

  .hero-cta:hover {
    color: var(--color-accent-hover);
  }

  .hero-cta-link {
    font-size: var(--font-size-lg);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-block-end: var(--space-xs);
    border-bottom: 2px solid transparent;
    transition: border-color var(--duration-fast) ease;
  }

  .hero-cta:hover .hero-cta-link {
    border-bottom-color: var(--color-accent-hover);
  }

  /* Scroll arrow indicator */
  .hero-scroll-arrow {
    display: flex;
    filter: drop-shadow(0 0 8px var(--color-glow));
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero-scroll-arrow {
      animation: arrow-bounce 2s ease-in-out infinite;
    }
  }

  @keyframes arrow-bounce {
    0%,
    100% {
      transform: translateY(0);
      opacity: 1;
    }

    50% {
      transform: translateY(8px);
      opacity: 0.6;
    }
  }
}
