  /* ── Base ── */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; -webkit-font-smoothing: antialiased; }

  /* ── Scroll hint animation ── */
  .scroll-hint {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
  }
  @keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: .6; }
    50% { transform: translateY(6px); opacity: 1; }
  }

  /* ── Reveal-on-scroll (progressive enhancement) ── */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  @media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-reveal {
      opacity: 0;
      transform: translateY(28px);
    }
  }

  /* ── Nav scroll state ── */
  #nav.scrolled {
    background: rgba(26, 29, 32, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  }

  /* ── Mobile menu transitions ── */
  #mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* ── Custom scrollbar ── */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #1A1D20; }
  ::-webkit-scrollbar-thumb { background: #3D4147; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #E07A5F; }

  /* ── Selection ── */
  ::selection { background: rgba(224, 122, 95, 0.3); }
