/* Home page intro: the blade slides up, stops, pauses, then drops, taking the red
   panel with it to reveal the page.
   Pure CSS, so it also runs with scripting off. intro.js controls whether it repeats.
   Reduced-motion users never see it.

   Timeline (2 s, each 1% = 20 ms):
   0.1 s to 0.8 s   slide up 130 px
   0.8 s to 1.45 s  pause
   1.45 s to 1.67 s panel drops hard with the blade riding on it, so the two fall as one */

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #C1090C; /* the icon's red */
  pointer-events: none;
  animation: intro-panel 2s forwards;
}

.intro-blade {
  width: 132px;
  height: auto;
  animation: intro-crank 2s forwards;
  animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); /* smooth slide, eases in and out */
}

/* Panel holds, then falls like a released blade: fast, accelerating all the way, no slowing at the end.
   The blade sits inside it, so they drop in lockstep. */
@keyframes intro-panel {
  0%, 72.5% { transform: translateY(0); animation-timing-function: cubic-bezier(0.7, 0, 1, 1); }
  83.5%    { transform: translateY(100%); visibility: visible; }
  100%     { transform: translateY(100%); visibility: hidden; }
}

@keyframes intro-crank {
  0%, 5%    { transform: translateY(0); }
  40%, 100% { transform: translateY(-130px); }  /* slide up, then hold; the drop comes from the panel */
}

html.no-intro .intro { display: none; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}
