/* Homepage-only refinement: keep ProLucius's playful purple identity,
   while tightening rhythm, improving focus, and smoothing small interactions. */
@media screen {
  :root {
    --home-ease-out: cubic-bezier(.23, 1, .32, 1);
  }

  html:focus-within {
    scroll-behavior: smooth;
  }

  .header {
    background: color-mix(in srgb, #211c2b 94%, transparent);
    backdrop-filter: blur(16px) saturate(1.15);
  }

  .header nav a,
  .button,
  .text-link,
  .video-play,
  .social-cta {
    transition: color 160ms ease, background-color 160ms ease,
      border-color 160ms ease, transform 180ms var(--home-ease-out),
      box-shadow 180ms var(--home-ease-out);
  }

  .header nav a:focus-visible,
  .button:focus-visible,
  .text-link:focus-visible,
  .video-play:focus-visible,
  .social-cta:focus-visible,
  .footer a:focus-visible {
    outline: 3px solid var(--theme-focus, #c8ffad);
    outline-offset: 4px;
    border-radius: 4px;
  }

  .hero h1 {
    text-wrap: balance;
  }

  .intro,
  .hangout-copy > p {
    font-size: clamp(1rem, .94rem + .18vw, 1.1rem);
    line-height: 1.75;
  }

  .compact-heading {
    align-items: end;
    margin-bottom: 1.75rem;
  }

  .video-grid,
  .latest-grid {
    gap: clamp(1rem, 2vw, 1.5rem);
  }

  .video-card,
  .latest-card {
    transition: transform 200ms var(--home-ease-out),
      border-color 160ms ease, box-shadow 200ms var(--home-ease-out);
  }

  @media (hover: hover) and (pointer: fine) {
    .video-card:hover,
    .latest-card:hover {
      transform: translateY(-3px);
      border-color: var(--theme-link, #d6b4ff);
      box-shadow: 5px 9px 18px #100b1840;
    }
  }

  .button:active,
  .video-play:active {
    transform: translateY(1px) scale(.985);
  }

  @media (max-width: 650px) {
    .compact-heading {
      align-items: start;
      gap: .75rem;
    }

    .compact-heading h2 {
      max-width: 18ch;
      text-wrap: balance;
    }

    .video-grid,
    .latest-grid {
      gap: 1rem;
    }

    .button {
      min-height: 48px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html:focus-within {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
  }
}
