/* Base & Utilities */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Scroll Reveal — progressive enhancement via JS */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
  }
}

.reveal-hero {
  opacity: 1;
  transform: none;
  animation: heroReveal 0.8s ease forwards;
}

.reveal-hero:nth-child(2) { animation-delay: 0.1s; }
.reveal-hero:nth-child(3) { animation-delay: 0.2s; }
.reveal-hero:nth-child(4) { animation-delay: 0.3s; }
.reveal-hero:nth-child(5) { animation-delay: 0.4s; }

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
#site-header.scrolled {
  background: rgba(244, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 61, 92, 0.06);
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

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

/* Gallery hover */
@media (hover: hover) {
  .gallery-img:hover {
    transform: scale(1.05);
  }
}

/* Selection */
::selection {
  background: rgba(125, 211, 192, 0.3);
  color: #0f3d5c;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #7dd3c0;
  outline-offset: 2px;
}

/* Smooth scrollbar */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f4faf8;
  }
  ::-webkit-scrollbar-thumb {
    background: #bce5d8;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #7dd3c0;
  }
}
