  /* Base */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  body { overflow-x: hidden; }

  /* Scroll reveal — progressive enhancement via JS */
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
    .scroll-reveal:not(.revealed) {
      opacity: 0;
      transform: translateY(24px);
    }
  }

  /* Nav scroll state */
  #nav.scrolled {
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #f0eeeb; }
  ::-webkit-scrollbar-thumb { background: #c8c2b8; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #a09888; }

  /* Selection */
  ::selection { background: rgba(232, 99, 74, 0.2); color: #0f1923; }

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

  /* Mobile menu animation */
  #mobileMenu {
    animation: slideDown 0.25s ease;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Form input autofill */
  input:-webkit-autofill,
  textarea:-webkit-autofill,
  select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f8f7f5 inset !important;
    -webkit-text-fill-color: #1a2733 !important;
  }
