  /* ── Base & Utilities ── */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

  /* ── Scroll Reveal (progressive enhancement — only via JS) ── */
  @media (prefers-reduced-motion: no-preference) {
    .reveal-up, .reveal-left, .reveal-right {
      opacity: 1;
      transform: none;
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
  }

  /* When JS runs, add hidden class first, then animate in */
  .reveal-up { transform: translateY(30px); }
  .reveal-left { transform: translateX(-30px); }
  .reveal-right { transform: translateX(30px); }

  .reveal-up.is-visible,
  .reveal-left.is-visible,
  .reveal-right.is-visible {
    opacity: 1;
    transform: none;
  }

  /* ── Navbar ── */
  #navbar {
    background: transparent;
  }
  #navbar.scrolled {
    background: rgba(10, 18, 28, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(82, 190, 151, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  /* ── Mobile menu ── */
  #mobile-menu {
    animation: slideDown 0.3s ease;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── Smooth focus outlines ── */
  :focus-visible {
    outline: 2px solid rgba(82, 190, 151, 0.6);
    outline-offset: 2px;
  }

  /* ── Selection ── */
  ::selection {
    background: rgba(82, 190, 151, 0.3);
    color: #f0f4f8;
  }

  /* ── Custom scrollbar ── */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #0a121c; }
  ::-webkit-scrollbar-thumb { background: #2f4f73; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #3d6591; }
