  /* Base */
  html {
    scroll-behavior: smooth;
  }

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

  /* Reveal on scroll — progressive enhancement */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(32px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Without reduced-motion, JS adds the revealed class */
  .reveal {
    /* default state: visible for accessibility */
  }

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

  /* Smooth focus outlines */
  :focus-visible {
    outline: 2px solid #c2704e;
    outline-offset: 2px;
  }

  /* Selection color */
  ::selection {
    background: #f3b9a3;
    color: #542e21;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #fdf6eb;
  }
  ::-webkit-scrollbar-thumb {
    background: #e06642;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #c2704e;
  }

  /* Image aspect ratio utilities */
  .aspect-square {
    aspect-ratio: 1 / 1;
  }

  /* Mobile menu animation */
  #mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Floating card animation */
  @media (prefers-reduced-motion: no-preference) {
    .float-gentle {
      animation: floatGentle 4s ease-in-out infinite;
    }
  }

  @keyframes floatGentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
