/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { margin: 0; }

/* ── Scroll animation (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(.25,.46,.45,.94), transform 0.8s cubic-bezier(.25,.46,.45,.94);
  }
  .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; }
}

/* ── Scroll indicator animation ── */
@keyframes scroll {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ── Nav transition states ── */
nav.scrolled {
  background: rgba(253,249,245,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(192,96,58,0.08);
}

/* ── Mobile menu transitions ── */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Image hover smoothness ── */
img { display: block; max-width: 100%; }

/* ── Selection color ── */
::selection {
  background: rgba(192,96,58,0.15);
  color: inherit;
}

/* ── Smooth focus outlines ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid #C0603A;
  outline-offset: 4px;
  border-radius: 2px;
}
