  /* ─── Base ─── */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  body { margin: 0; }

  /* ─── Nav scroll state ─── */
  #site-header.scrolled {
    background: rgba(250, 245, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(107, 33, 168, 0.08);
  }

  /* ─── Nav links ─── */
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #f59e0b);
    border-radius: 1px;
    transition: width 0.25s ease;
  }
  .nav-link:hover::after { width: 100%; }

  /* ─── Mobile nav ─── */
  .mobile-nav-link {
    position: relative;
  }
  .mobile-nav-link:active {
    color: #a855f7;
  }

  /* ─── Hero blobs animation ─── */
  @keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.97); }
  }
  @keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 25px) scale(1.08); }
  }
  @keyframes float-fast {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -15px); }
  }
  .hero-blob { animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
  .blob-1 { animation: float-slow 12s infinite; }
  .blob-2 { animation: float-medium 16s infinite; }
  .blob-3 { animation: float-fast 8s infinite; }

  /* ─── Reveal animations (progressive enhancement) ─── */
  @media (prefers-reduced-motion: no-preference) {
    .reveal-up {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-up.revealed {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-up:nth-child(2) { transition-delay: 0.1s; }
    .reveal-up:nth-child(3) { transition-delay: 0.2s; }
    .reveal-up:nth-child(4) { transition-delay: 0.3s; }
  }

  /* ─── Ensure content is visible without JS ─── */
  @media not all and (prefers-reduced-motion: no-preference) {
    .reveal-up { opacity: 1; transform: none; }
  }

  /* ─── Card hover tilt ─── */
  .group:hover img {
    transform: scale(1.05);
  }

  /* ─── Custom scrollbar ─── */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #faf5ff; }
  ::-webkit-scrollbar-thumb { background: #d8b4fe; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #a855f7; }

  /* ─── Selection ─── */
  ::selection { background: #e9d5ff; color: #581c87; }
</style>
