/* Opening: the name rises letter by letter, the words follow, then both windows slide in. */
.home .letters span {
  animation: rise 0.55s calc(0.1s + var(--i) * 70ms) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home .kanji,
.home .tagline {
  animation: rise 0.6s 0.55s ease-out both;
}

.home .lead,
.home .actions {
  animation: rise 0.6s 0.7s ease-out both;
}

.home .window-a {
  animation: enter-left 1s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home .window-b {
  animation: enter-right 1s 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home .stage-hint {
  animation: rise 0.6s 1.5s ease-out both;
}

/* Sections slide in once, as they come into view (site.js adds .is-visible). */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes enter-left {
  from { opacity: 0; translate: -90px 50px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes enter-right {
  from { opacity: 0; translate: 90px 70px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home .letters span,
  .home .kanji,
  .home .tagline,
  .home .lead,
  .home .actions,
  .home .window,
  .home .stage-hint {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
