/* ───────────────────────────────────────────────────────────────────────────
   Text Chroma Reveal — "Jet Black → Chrome" variant.
   GSAP + SplitText handle the staggered character reveal (see chroma-reveal.js).
   Here: each letter is jet black with a silver/white chrome highlight that
   sweeps across like reflective metal. Per-char gradient (vertical-ish), so the
   reveal transforms, the sweep and the clip all compose cleanly.
   ─────────────────────────────────────────────────────────────────────────── */

.chroma-live .char {
  display: inline-block;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(
    100deg,
    #6b7177 0%, #2b2e32 10%, #0a0a0b 20%,
    #c3c9d0 30%, #ffffff 40%, #ffffff 46%, #dfe3e8 52%, #9aa0a7 60%,
    #0a0a0b 72%, #2b2e32 86%, #6b7177 100%
  );
  background-size: 220% 100%;
  background-position: 130% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: chrome-sweep 3.6s linear infinite;
  animation-delay: calc(var(--i, 0) * 0.08s);
  transition: transform .28s cubic-bezier(.22,1,.36,1), filter .28s ease;
  will-change: transform, opacity, background-position, filter;
}

/* hover: the letters lift in a little wave and cast a shadow */
.logo:hover .char {
  transform: translateY(-6px);
  filter: drop-shadow(0 7px 6px rgba(0,0,0,0.42));
  transition-delay: calc(var(--i, 0) * 0.025s);
}

/* the chrome highlight glides across the letters */
@keyframes chrome-sweep {
  to { background-position: -130% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .chroma-live .char { animation: none !important; background-position: 46% 0 !important; }
}
