  /* Base styles */
  *, *::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 base — visible by default for progressive enhancement */
  .scroll-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);
  }

  /* Reduced motion: disable all custom animations */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-reveal { transition: none; }
    .group img { transition: none; }
    #navbar { transition: none; }
  }

  /* Mobile menu link styles */
  .mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(30, 58, 95, 0.06);
    transition: color 0.2s ease;
  }
  .mobile-link:last-child { border-bottom: none; }

  /* Navbar scrolled state */
  #navbar.scrolled {
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(30, 58, 95, 0.06);
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #faf8f4; }
  ::-webkit-scrollbar-thumb { background: #1e3a5f20; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #1e3a5f40; }

  /* Selection color */
  ::selection {
    background: rgba(200, 164, 90, 0.2);
    color: #1e3a5f;
  }
