/* ── Base Reset & Global ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Hero Animations (above the fold — always visible) ── */
.hero-anim {
  opacity: 1;
  transform: translateY(0);
  animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-anim:nth-child(2) {
  animation-delay: 0.15s;
}

.hero-anim:nth-child(3) {
  animation-delay: 0.3s;
}

.hero-anim:nth-child(4) {
  animation-delay: 0.45s;
}

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

/* ── Scroll Reveal (below the fold — progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback: content is always visible if JS is disabled */
.reveal {
  opacity: 1;
  transform: none;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #faf5fb;
}

::-webkit-scrollbar-thumb {
  background: #d9aedf;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a855b8;
}

/* ── Selection ── */
::selection {
  background: #f5e9f7;
  color: #3a1744;
}
