  /* ── Custom overrides & progressive-enhancement animations ── */

  html {
    scroll-behavior: smooth;
  }

  /* Smooth navbar background transition */
  #navbar {
    background: transparent;
  }

  #navbar.scrolled {
    background: rgba(255, 250, 248, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.06);
  }

  /* Reveal-on-scroll — progressive enhancement, hidden by default */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                  transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Stagger children */
    .reveal:nth-child(2) { transition-delay: 0.08s; }
    .reveal:nth-child(3) { transition-delay: 0.16s; }
    .reveal:nth-child(4) { transition-delay: 0.24s; }
    .reveal:nth-child(5) { transition-delay: 0.32s; }
    .reveal:nth-child(6) { transition-delay: 0.40s; }
  }

  /* Ensure all content is visible by default (no JS required) */
  .reveal {
    opacity: 1;
    transform: none;
  }

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

  /* Subtle gradient border on cards */
  .reveal {
    will-change: transform, opacity;
  }

  /* Selection color */
  ::selection {
    background: rgba(128, 0, 32, 0.12);
    color: #800020;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #fff5f7;
  }
  ::-webkit-scrollbar-thumb {
    background: #f3a9b4;
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #c94466;
  }
</style>
