/* The Top's first load: L2「幕なし」, chosen by the owner on 2026-11-15 (「L2がいい。文字はもっとゆっくり上がってきていい」),
   after Exo Ape (「最初の読み込みのローディングや、フォントが滑らかに入ってくる感じとか、ヌルッとした感じは高級感あっていいな」).
   - The photograph is there from the first frame (it is the page's largest image, so nothing waits on it); it only
     settles from a slight zoom.
   - The hand-written lines rise out of their own masks with a long ease-out, one after the other, slower than the
     sample; then the description lines; the header and the photographs last.
   - Only on the first load: page.js marks the stage done after the way in, so going back to the home view does not
     replay it. Without a preference for less motion only (Modern Web Guidance: motion, opt in with no-preference).
   Individual transform properties (scale, translate) are used so nothing the layout already sets is overridden. */
@media (prefers-reduced-motion: no-preference) {
  .stage:not([data-intro="done"]) .landscape {
    animation: intro-settle 3s cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  /* the two hand-written lines: each image rises inside its own line box (the shadow is drawn by .mission around
     whatever is visible, so nothing is cut at rest) */
  .stage:not([data-intro="done"]) .mission-line {
    overflow: hidden;
  }
  .stage:not([data-intro="done"]) .mission-line img {
    animation: intro-rise 1.9s cubic-bezier(0.19, 1, 0.22, 1) both;
  }
  .stage:not([data-intro="done"]) .mission-first img {
    animation-delay: 0.15s;
  }
  .stage:not([data-intro="done"]) .mission-second img {
    animation-delay: 0.37s;
  }

  /* the description under the lines on phones: each line rises from the bottom of its line box; the mask relaxes as
     the line arrives so its soft shadow is never cut */
  .stage:not([data-intro="done"]) .home-description > span > span {
    animation: intro-rise-text 1.8s cubic-bezier(0.19, 1, 0.22, 1) both;
  }
  .stage:not([data-intro="done"]) .home-description > span:nth-child(1) > span {
    animation-delay: 0.7s;
  }
  .stage:not([data-intro="done"]) .home-description > span:nth-child(2) > span {
    animation-delay: 0.84s;
  }

  /* the rest settles in last: the header, the caption on wide screens, the photographs */
  .stage:not([data-intro="done"]) :is(.header, .home-caption, .scene-dock, .footer) {
    animation: intro-settle-in 1.6s cubic-bezier(0.19, 1, 0.22, 1) 1.05s both;
  }
}
@keyframes intro-settle {
  from {
    scale: 1.08;
  }
}
@keyframes intro-rise {
  from {
    translate: 0 112%;
  }
}
@keyframes intro-rise-text {
  from {
    translate: 0 115%;
    clip-path: inset(-1.4em -30% 115% -30%);
  }
  to {
    translate: 0 0;
    clip-path: inset(-1.4em -30% -1.4em -30%);
  }
}
@keyframes intro-settle-in {
  from {
    opacity: 0;
    translate: 0 12px;
  }
}
