  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    margin: 0;
    background-color: #141416;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
  }

  ::selection {
    background-color: #E86A5B;
    color: #ffffff;
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #141416;
  }
  ::-webkit-scrollbar-thumb {
    background: #333336;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #E86A5B;
  }

  /* Nav scroll state */
  #site-nav.scrolled {
    background-color: rgba(20, 20, 22, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  #site-nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
  }

  /* Smooth section transitions */
  section {
    position: relative;
  }

  /* Image hover effect */
  .hover\:scale-105 {
    will-change: transform;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    .hover\:scale-105 {
      transition: none;
    }
    .hover\:scale-105:hover {
      transform: none;
    }
  }

  /* Focus styles */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid #E86A5B;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Scroll reveal base (progressive enhancement) */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

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