  /* ── Base & Typography ── */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Outfit', system-ui, sans-serif; }
  h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }

  /* ── Navbar ── */
  #navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
  }
  #navbar.scrolled {
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  }
  .nav-text-white { color: #f8fafc; }
  #navbar.scrolled .nav-text-white { color: #f8fafc; }

  /* ── Mobile Menu ── */
  .mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mobile-nav-link:last-child { border-bottom: none; }

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

  /* Fallback: always visible if JS is disabled or prefers-reduced-motion */
  .reveal { opacity: 1; transform: none; }

  /* ── Custom Scrollbar ── */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #0f172a; }
  ::-webkit-scrollbar-thumb { background: #14b8a6; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #2dd4bf; }

  /* ── Selection ── */
  ::selection { background: rgba(20, 184, 166, 0.3); color: #f8fafc; }
