/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
  .reveal:nth-child(5) { transition-delay: 0.4s; }
  .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ── Hero Animations ── */
@media (prefers-reduced-motion: no-preference) {
  .hero-line {
    transform: translateY(105%);
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero-line:nth-child(1) { animation-delay: 0.15s; }
  .hero-line:nth-child(2) { animation-delay: 0.3s; }
  .hero-line:nth-child(3) { animation-delay: 0.45s; }

  .hero-tag {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
  }

  @keyframes heroReveal {
    from { transform: translateY(105%); }
    to   { transform: translateY(0); }
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ── Navbar scroll state ── */
#nav.scrolled {
  background: rgba(42, 12, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

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

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #2a0c1c; }
::-webkit-scrollbar-thumb { background: #712050; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8a2b62; }

/* ── Selection ── */
::selection { background: rgba(251, 191, 36, 0.3); color: #fff; }
