/* ============================================
   SippyClips - Intro Overlay Animation
   DGB-inspired branded intro, plays once per session
   ============================================ */

#zc-intro {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: var(--napkin);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  transition: transform 0.7s cubic-bezier(0.65, 0.05, 0, 1);
}

#zc-intro.exit {
  transform: translateY(-100%);
}

/* Each character */
.zc-intro-char {
  display: inline-block;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -3px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(60px) scale(0.8);
  animation: introCharIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Outlined characters for "CLIPS" */
.zc-intro-char.outlined {
  -webkit-text-stroke: 3px var(--purple);
  color: transparent;
}

/* Stagger delays via nth-child */
.zc-intro-char:nth-child(1)  { animation-delay: 0.05s; }
.zc-intro-char:nth-child(2)  { animation-delay: 0.10s; }
.zc-intro-char:nth-child(3)  { animation-delay: 0.15s; }
.zc-intro-char:nth-child(4)  { animation-delay: 0.20s; }
.zc-intro-char:nth-child(5)  { animation-delay: 0.25s; }
.zc-intro-char:nth-child(6)  { animation-delay: 0.35s; }
.zc-intro-char:nth-child(7)  { animation-delay: 0.40s; }
.zc-intro-char:nth-child(8)  { animation-delay: 0.45s; }
.zc-intro-char:nth-child(9)  { animation-delay: 0.50s; }
.zc-intro-char:nth-child(10) { animation-delay: 0.55s; }

@keyframes introCharIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Reduced motion: skip entirely */
@media (prefers-reduced-motion: reduce) {
  #zc-intro {
    display: none !important;
  }
}

/* Mobile: smaller text */
@media (max-width: 640px) {
  .zc-intro-char {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }
}
