/* Minimal extras — layout/responsive handled by Tailwind */
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
body.is-locked { overflow: hidden; height: 100dvh; }

/* Scroll progress */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, #22c55e, #1a6dff);
  pointer-events: none;
}

/* Hero background motion */
.hero-hex {
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='50' viewBox='0 0 56 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 1.5l13.5 7.8v15.6L28 32.7 14.5 24.9V9.3L28 1.5z' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  animation: hexDrift 40s linear infinite;
}
@keyframes hexDrift { to { background-position: 56px 50px; } }

.blob {
  animation: blob 12s ease-in-out infinite alternate;
}
.blob-delay { animation-delay: -5s; }
@keyframes blob {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -20px) scale(1.08); }
}

.float-y { animation: floatY 3.2s ease-in-out infinite; }
.float-y-delay { animation-delay: -1.4s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.pulse-dot {
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Marquee */
.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reveal */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-animate].is-in {
  opacity: 1;
  transform: none;
}
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-stagger].is-in > * { opacity: 1; transform: none; }
[data-stagger].is-in > *:nth-child(1) { transition-delay: 0.04s; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: 0.1s; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: 0.16s; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: 0.22s; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: 0.28s; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: 0.34s; }

/* Header logo invert on dark hero */
.site-header.is-hero:not(.is-scrolled) .brand-logo {
  filter: brightness(0) invert(1);
}
.site-header.is-scrolled .brand-logo,
.site-header:not(.is-hero) .brand-logo {
  filter: none;
}

/* Mobile menu link animation */
.nav-mobile.is-open .nav-link {
  animation: menuIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.nav-mobile.is-open .nav-link:nth-child(1) { animation-delay: 0.05s; }
.nav-mobile.is-open .nav-link:nth-child(2) { animation-delay: 0.1s; }
.nav-mobile.is-open .nav-link:nth-child(3) { animation-delay: 0.15s; }
.nav-mobile.is-open .nav-link:nth-child(4) { animation-delay: 0.2s; }
.nav-mobile.is-open .nav-link:nth-child(5) { animation-delay: 0.25s; }
.nav-mobile.is-open .nav-link:nth-child(6) { animation-delay: 0.3s; }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate],
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
