/* ==========================================================================
   LinedUp v3 — logo + welcome animation
   ========================================================================== */

.logo {
  position: fixed;
  top: var(--gutter);
  left: var(--gutter);
  z-index: 30;
  display: block;
  width: var(--logo-sm);
  line-height: 0;
  transform-origin: 0 0;
}
.logo svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Resting state: only L U . remain */
.logo__drop { opacity: 0; }

/* Hover / keyboard focus: the missing letters fade in, all together.
   Hover only on devices with a real pointer, so a tap on a touchscreen doesn't trigger it.
   Transitions switch on (.logo-live) a couple of frames after the intro ends, so the
   swap from the intro state to the resting state never animates: otherwise Safari
   fades the letters out from full opacity at the small size, a flash of the full logo. */
.logo-live .logo__drop { transition: opacity 260ms ease; }
.logo-live .logo:focus-visible .logo__drop {
  opacity: 1;
  transition: opacity 420ms cubic-bezier(0.33, 1, 0.68, 1);
}
@media (hover: hover) and (pointer: fine) {
  .logo-live .logo:hover .logo__drop {
    opacity: 1;
    transition: opacity 420ms cubic-bezier(0.33, 1, 0.68, 1);
  }
}

/* Intro state (set in <head> before first paint so there's no flash) */
.is-intro .logo { width: var(--logo-lg); will-change: transform; }
.is-intro .logo__drop { opacity: 1; }

/* Everything marked .reveal waits for the intro, then fades up.
   Stagger with style="--i: n". Without JS it's simply visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
.is-ready .reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 900ms var(--ease-out) calc(var(--i, 0) * 90ms + 80ms),
    transform 1100ms var(--ease-out) calc(var(--i, 0) * 90ms + 80ms);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; }
  .is-ready .reveal { transition: opacity 400ms linear; }
}
