/* ═══════════════════════════════════════════════════════
   style.css  —  Global base styles (all pages)
   ═══════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Cousine', monospace; overflow-x: hidden; cursor: none; }

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--cursor-color, #ffffff);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  background: var(--cursor-trail-color, #ffffff);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: trailFade 0.6s ease forwards;
}
@keyframes trailFade {
  0%   { opacity: 0.6; width: 10px; height: 10px; }
  100% { opacity: 0;   width: 4px;  height: 4px;  }
}


/* ── SCROLL REVEALS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.15s; }
.reveal[data-delay="2"] { transition-delay: 0.3s; }
.reveal[data-delay="3"] { transition-delay: 0.45s; }
.reveal[data-delay="4"] { transition-delay: 0.6s; }

.arrive {
  opacity: 0;
  transform: translateY(var(--arrive-y, 40px)) scale(var(--arrive-scale, 0.96)) rotate(var(--arrive-rotate, -1deg));
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.arrive.visible { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
.arrive[data-delay="1"] { transition-delay: 0.15s; }
.arrive[data-delay="2"] { transition-delay: 0.3s; }
.arrive[data-delay="3"] { transition-delay: 0.45s; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .arrive { opacity: 1; transform: none; transition: none; }
  .cursor-trail { display: none; }
}

/* ── SKIP TO CONTENT ── */
.skip-to-content {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  background: #1a1a1a;
  color: #ffffff;
  font-family: 'Cousine', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid #E8541A;
  transition: top 0.2s;
}
.skip-to-content:focus { top: 1rem; }

/* ── FOCUS VISIBLE ── */
:focus-visible {
  outline: 3px solid #E8541A;
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid #E8541A;
  outline-offset: 3px;
}

/* ── TOUCH DEVICES ── */
@media (hover: none) {
  body { cursor: auto; }
  .cursor { display: none; }
}
