/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }

/* ── Selection ── */
::selection { background: rgba(184, 134, 11, 0.3); color: #fff; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #040d1f; }
::-webkit-scrollbar-thumb { background: rgba(184, 134, 11, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(184, 134, 11, 0.5); }

/* ── Reveal Animations (progressive enhancement) ── */
.reveal-init .scroll-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.scroll-reveal:nth-child(2) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.25s; }

/* ── Mobile Menu ── */
#mobile-menu.open {
  max-height: 400px;
}

.menu-line:nth-child(3) {
  width: 1.4rem;
  margin-left: auto;
  margin-right: 0.25rem;
}

/* ── Select styling ── */
select option {
  background: #040d1f;
  color: #fff;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-reveal img {
    transition: none;
  }
  .scroll-reveal img:hover {
    transform: none;
  }
}
