* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Let JS handle smooth scroll; native smooth-scroll can interfere with parallax */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  /* Custom slim scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* WebKit scrollbar styling */
body::-webkit-scrollbar {
  width: 4px;
}
body::-webkit-scrollbar-track {
  background: transparent;
}
body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

#root {
  width: 100%;
  min-height: 100vh;
}

/* ── Scroll instruction modal ──────────────────────────────────────────── */
.scroll-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.scroll-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-modal-box {
  background: rgba(12, 12, 12, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 2.5rem 3rem 2.5rem;
  max-width: 520px;
  width: 88%;
  position: relative;
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity  0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-modal-overlay.visible .scroll-modal-box {
  transform: translateY(0);
  opacity: 1;
}

.scroll-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.scroll-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.scroll-modal-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin: 0 0 1.1rem 0;
}

.scroll-modal-sig {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.42);
  font-style: italic;
  margin: 0;
  letter-spacing: 0.03em;
}

@media (max-width: 600px) {
  .scroll-modal-box {
    padding: 2rem 1.8rem 2rem;
    max-width: 92%;
  }
  .scroll-modal-text {
    font-size: 0.98rem;
  }
}
/* ─────────────────────────────────────────────────────────────────────── */
