/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .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(255, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ── Mobile menu animations ── */
.menu-line:nth-child(3) {
  transform-origin: center;
}
#mobileMenu.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#mobileMenu.open .menu-line:nth-child(2) {
  opacity: 0;
}
#mobileMenu.open .menu-line:nth-child(3) {
  width: 5rem;
  transform: rotate(-45deg) translate(4px, -4px);
  margin-left: 0;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FFF8EC; }
::-webkit-scrollbar-thumb { background: #E8B860; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C0603A; }

/* ── Selection ── */
::selection { background: #C0603A; color: white; }
</style>
