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

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

  body {
    overflow-x: hidden;
  }

  ::selection {
    background: rgba(196, 80, 48, 0.15);
    color: inherit;
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 6px;
  }
  ::-webkit-scrollbar-track {
    background: #faf5ed;
  }
  ::-webkit-scrollbar-thumb {
    background: #e8b5a0;
    border-radius: 3px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #c45030;
  }

  /* Scroll reveal base — content always visible, animation applied via JS only */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
  }

  /* Mobile menu open state */
  #mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }

  /* Nav active state */
  #nav.scrolled {
    box-shadow: 0 1px 0 rgba(232, 181, 160, 0.3);
  }

  /* Service card hover lift */
  .service-card {
    transition: background-color 0.3s ease;
  }
  .service-card:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease, background-color 0.3s ease;
  }

  /* Input autofill styling */
  input:-webkit-autofill,
  textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #faf5ed inset !important;
    -webkit-text-fill-color: #1c1917 !important;
  }
