  /* Base styles */
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Selection color */
  ::selection {
    background-color: #047857;
    color: white;
  }

  /* Scrollbar styling */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #fdf9ef;
  }
  ::-webkit-scrollbar-thumb {
    background: #d4d0be;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #b8b19a;
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  }

  /* Mobile menu */
  #mobile-menu.open {
    transform: translateX(0);
  }

  .menu-line {
    transition: all 0.3s ease;
  }

  #menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  #menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
  }
  #menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
    margin-left: 0;
  }

  .mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  #mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
  }

  #mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
  #mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
  #mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
  #mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

  /* Reveal animations — progressive enhancement, respects prefers-reduced-motion */
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
    }
    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
  }

  /* Select styling */
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239c947e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
  }

  /* Focus visible for accessibility */
  :focus-visible {
    outline: 2px solid #047857;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Smooth image loading */
  img {
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  /* Print styles */
  @media print {
    #navbar, #mobile-menu, .reveal { display: none; }
    body { background: white; }
  }
