/* ==========================================================================
   WaterGate — Animations (Intellixaa-style motion)
   ========================================================================== */

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes barPulse {
  0%, 100% { opacity: 0.7; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.06); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes floatYSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 80, 0, 0.35), 0 20px 50px rgba(240, 80, 0, 0.35); }
  50% { box-shadow: 0 0 0 16px rgba(240, 80, 0, 0), 0 20px 50px rgba(240, 80, 0, 0.35); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes intelFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}

@keyframes intelGlow {
  0%, 100% { filter: drop-shadow(0 18px 40px rgba(240, 80, 0, 0.2)); }
  50% { filter: drop-shadow(0 22px 52px rgba(255, 106, 26, 0.38)); }
}

@keyframes whyCubeFloat {
  0%, 100% { transform: translateY(0) rotateX(8deg) rotateZ(-8deg); }
  50% { transform: translateY(-10px) rotateX(12deg) rotateZ(-4deg); }
}

/* ---------- Scroll text motion ---------- */
.tw-ready .tw-word,
.tw-ready .tw-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.65em);
  filter: blur(6px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.tw-ready.tw-inview .tw-word,
.tw-ready.tw-inview .tw-char {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.tw-type .tw-char {
  transform: translateY(0.15em) scale(0.96);
}

.tw-type.tw-inview .tw-char {
  transform: translateY(0) scale(1);
}

.tw-type.tw-inview::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 3px;
  background: var(--brand, #F05000);
  vertical-align: -0.05em;
  animation: caretBlink 0.8s steps(1) 3;
}

@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.float-chip.chip-1 { animation: floatY 5s ease-in-out infinite; }
.float-chip.chip-2 { animation: floatYSoft 4.2s ease-in-out infinite 0.4s; }
.float-chip.chip-3 { animation: floatY 6s ease-in-out infinite 0.8s; }

.intel-visual .viz-layer:first-child,
.capability-visual .viz-layer:first-child {
  animation: spinSlow 40s linear infinite;
}
.intel-visual .viz-center,
.capability-visual .viz-center {
  animation: pulseGlow 3.2s ease-in-out infinite;
}

.hero-visual .hero-art {
  animation: fadeInUp 1s var(--ease) both;
}

/* AOS blur enhancement */
[data-aos] {
  transition-property: transform, opacity, filter;
}

body.page-ready main {
  animation: fadeInUp 0.55s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .logo-track,
  .keyword-track,
  .intel-visual-img,
  .why-cube-stack,
  .why-orbit,
  .why-center-img { animation: none !important; }

  .tw-ready .tw-word,
  .tw-ready .tw-char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .tw-type.tw-inview::after { display: none; }
}
