/* ─── Reveal on scroll ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal--blur {
  filter: blur(8px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
}
.reveal--blur.visible { filter: none; }

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }

/* Hero entrance — sequential delays via class */
.hero__line { animation: heroLine 1.1s var(--ease-out) both; }
.hero__line.delay-1 { animation-delay: 0.1s; }
.hero__line.delay-2 { animation-delay: 0.25s; }
.hero__line.delay-3 { animation-delay: 0.4s; }
.hero__line.delay-4 { animation-delay: 0.6s; }
.hero__line.delay-5 { animation-delay: 0.85s; }

@keyframes heroLine {
  from { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Floating */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.floats {
  animation: float 6s ease-in-out infinite;
}

/* Soft glow pulse */
@keyframes glowPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.95; }
}

/* Type cursor blink */
.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: -0.05em;
  animation: blink 1s steps(1) infinite;
  border-radius: 1px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.7rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-3);
  z-index: 1;
}

.scroll-cue__line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--ink-3), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-cue__line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--ink-0) 50%, transparent 100%);
  animation: scrollCue 2.4s var(--ease) infinite;
}

@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Marquee orbit (used in hero ambient) */
@keyframes orbitDrift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  33%      { transform: translate3d(-20px,16px,0) scale(1.02); }
  66%      { transform: translate3d(14px,-22px,0) scale(0.98); }
}
