  /* Custom styles beyond Tailwind */

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  /* Scroll reveal base — content always visible by default */
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
    }

    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Nav scroll state */
  #siteNav.scrolled {
    background: rgba(250, 245, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(147, 51, 234, 0.08), 0 4px 20px rgba(147, 51, 234, 0.06);
  }

  /* Mobile menu open */
  #mobileMenu.open {
    display: block;
    animation: slideDown 0.25s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Subtle gradient text utility */
  .gradient-text {
    background: linear-gradient(135deg, #9333ea, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Custom select arrow */
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%237e22ce' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
  }

  /* Focus visible for accessibility */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Selection color */
  ::selection {
    background: rgba(147, 51, 234, 0.2);
    color: #581c87;
  }
