/* Hazar Merjeni — site-wide motion (see motion.js). Ref: word-by-word headline reveal, blocks rising in sequence. */
:root { --mo-ease: cubic-bezier(.2, .8, .2, 1); }

/* headings: each word comes out of a blur, one after another */
.mo-split { filter: none !important; transform: none !important; }   /* replaces the old whole-heading blur */
.mo-split .mo-w {
  display: inline-block;
  opacity: 0; filter: blur(12px); transform: translateY(.32em);
  transition: opacity .9s var(--mo-ease), filter 1s var(--mo-ease), transform 1.1s var(--mo-ease);
  transition-delay: calc(var(--i) * 75ms);
  will-change: opacity, filter, transform;
}
.mo-split.mo-in .mo-w { opacity: 1; filter: blur(0); transform: none; }

/* inner pages (no page-specific reveal): blocks slide up in turn, cards one after another */
.mo-up {
  opacity: 0; transform: translateY(72px) scale(.985);
  transition: opacity 1s var(--mo-ease), transform 1.4s var(--mo-ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.mo-up.mo-fade { transform: none; }                 /* absolutely placed backgrounds: fade only */
.mo-up.mo-in { opacity: 1; transform: none; }

/* paragraphs: slowly slide up from below and fade in, after the heading has started */
.mo-txt {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1.3s ease, transform 1.7s var(--mo-ease);
  transition-delay: calc(.2s + var(--i, 0) * 140ms);
}
.mo-txt.mo-in { opacity: 1; transform: none; }

/* home / tour keep their own reveal; it slides a little further and softer, to match the inner pages
   (home's section rule has the same values in home.html — here it would also shift the tour hero) */
.js-reveal [data-reveal] { transform: translateY(72px); transition: opacity 1s ease, transform 1.4s var(--mo-ease); }

/* the wordmark in the header rises from below once, when the page opens */
.mo-logo { clip-path: inset(0 0 0 0); }
.mo-logo img, .mo-logo > span { animation: mo-logo 1.1s var(--mo-ease) both; }
@keyframes mo-logo { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .mo-split .mo-w, .mo-up, .mo-txt { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
  .mo-logo img, .mo-logo > span { animation: none; }
}
