/* ── Reveal elements (initial state set by GSAP, CSS fallback) ── */
.gsap-ready [data-reveal] {
  visibility: hidden;
}

.no-js [data-reveal] {
  visibility: visible;
}

/* ── Custom cursor ── */
.cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  display: none;
}

@media (pointer: fine) {
  .cursor {
    display: block;
  }
}

.cursor.hovering {
  width: 48px;
  height: 48px;
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__scroll-line {
    animation: none;
  }

  .cursor {
    display: none;
  }
}

/* ── Audio toggle ── */
.audio-toggle {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  left: max(1.5rem, env(safe-area-inset-left));
  z-index: 900;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0;
  pointer-events: none;
}

.audio-toggle.visible {
  opacity: 1;
  pointer-events: auto;
}

.audio-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200, 255, 0, 0.05);
}

.audio-toggle svg {
  width: 18px;
  height: 18px;
}

.audio-toggle__off {
  display: none;
}

.audio-toggle.muted .audio-toggle__on {
  display: none;
}

.audio-toggle.muted .audio-toggle__off {
  display: block;
}

/* Subtle pulse when playing */
.audio-toggle:not(.muted)::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: audioPulse 2s ease-out infinite;
}

@keyframes audioPulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 768px) {
  .audio-toggle {
    bottom: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
  }

  .audio-toggle svg {
    width: 15px;
    height: 15px;
  }

  .cursor {
    display: none !important;
  }
}

/* ── Smooth scrollbar styling ── */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-hover) transparent;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-hover);
  border-radius: 3px;
}
