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

  /* ── Floating Animations ── */
  @keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
  }
  @keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
  }
  @keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(1.5deg); }
  }

  .animate-float-slow { animation: float-slow 6s ease-in-out infinite; }
  .animate-float-medium { animation: float-medium 4.5s ease-in-out infinite; }
  .animate-float-fast { animation: float-fast 3.5s ease-in-out infinite; }

  /* ── Scroll Reveal ── */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(30px);
    }
    .reveal.visible {
      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; }
  }

  /* ── Navbar Scroll State ── */
  #navbar.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(180, 170, 160, 0.2);
  }

  #navbar.scrolled .font-serif { color: #1F1B18; }

  /* ── Selection ── */
  ::selection {
    background: #f9c4aa;
    color: #6f2614;
  }

  /* ── Focus ── */
  a:focus-visible, button:focus-visible {
    outline: 2px solid #c9451a;
    outline-offset: 3px;
    border-radius: 4px;
  }

  /* ── Custom scrollbar ── */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #FDF8F0; }
  ::-webkit-scrollbar-thumb { background: #D6D0C4; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #B8B0A0; }
</style>
