  /* ─── Base & Typography ─── */
  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    overflow-x: hidden;
  }

  ::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #0f766e;
  }

  /* ─── Scroll Reveal ─── */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

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

  /* Staggered delays for grid items */
  .reveal:nth-child(1) { transition-delay: 0.05s; }
  .reveal:nth-child(2) { transition-delay: 0.12s; }
  .reveal:nth-child(3) { transition-delay: 0.19s; }
  .reveal:nth-child(4) { transition-delay: 0.26s; }
  .reveal:nth-child(5) { transition-delay: 0.33s; }
  .reveal:nth-child(6) { transition-delay: 0.40s; }

  /* ─── Navbar Scroll State ─── */
  #navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 24px rgba(0, 0, 0, 0.06);
  }

  #navbar.scrolled .font-serif {
    color: #0f172a;
  }

  /* ─── Custom Scrollbar ─── */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f8fafc;
  }
  ::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
  }

  /* ─── Form Focus States ─── */
  input:focus, select:focus, textarea:focus {
    outline: none;
  }

  /* ─── Mobile Menu Transition ─── */
  #mobile-menu {
    animation: slideDown 0.3s ease forwards;
  }

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

  /* ─── Button Ripple Effect ─── */
  a, button {
    -webkit-tap-highlight-color: transparent;
  }

  /* ─── Image Loading ─── */
  img {
    background-color: #f1f5f9;
  }
