*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* Scroll reveal — progressive enhancement, hidden by default for JS-only reveal */
.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);
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(254, 252, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

/* Smooth image loading */
img { loading: lazy; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf6e8; }
::-webkit-scrollbar-thumb { background: #e9b8a5; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #e14415; }

/* Selection color */
::selection { background: #f5b8a5; color: #6c180e; }
