  /* ── Floating card animations ── */
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
  }
  @keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
  }
  .animate-float     { animation: float 4s ease-in-out infinite; }
  .animate-float-delayed { animation: float-delayed 5s ease-in-out infinite 1s; }

  /* ── Scroll reveal (progressive enhancement) ── */
  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                  transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }
  /* When JS is disabled, all scroll-reveal elements remain visible */
  @media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
      opacity: 1;
      transform: none;
    }
  }

  /* ── Navbar scroll state ── */
  #nav.scrolled {
    background: rgba(250, 240, 251, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(109, 38, 114, 0.08);
  }

  /* ── Smooth focus outlines ── */
  :focus-visible {
    outline: 2px solid #c05cc4;
    outline-offset: 2px;
  }

  /* ── Custom scrollbar ── */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #faf0fb; }
  ::-webkit-scrollbar-thumb { background: #d682dc; border-radius: 999px; }
  ::-webkit-scrollbar-thumb:hover { background: #a03fa8; }
</style>
