  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }

  /* Selection color */
  ::selection {
    background-color: #e8a824;
    color: #142739;
  }

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

  /* Nav scroll state */
  nav.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(20, 39, 57, 0.08);
  }
  nav.scrolled .menu-line {
    background: #142739;
  }

  /* Mobile menu animation */
  .menu-line:last-child {
    transition: width 0.3s ease, transform 0.3s ease;
  }
  #mobileMenu.open .menu-line:last-child {
    width: 1.5rem;
  }
  #mobileMenu.open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }
  #mobileMenu.open .menu-line:nth-child(2) {
    opacity: 0;
  }
  #mobileMenu.open .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: translateY(-4px) rotate(-45deg);
  }

  /* Scroll reveal base - progressive enhancement */
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
    }
    .reveal.visible {
      opacity: 1;
      transform: none;
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
  }

  /* Image hover */
  .group img {
    transition: transform 0.6s ease;
  }
  .group:hover img {
    transform: scale(1.03);
  }
