/* Movimento — estados iniciais só existem com JS ativo (.js) */

/* Intro do hero */
.js .hero .draw {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.6s var(--ease-io) forwards;
}
.js .hero .draw:nth-child(2) { animation-delay: .35s; }
.js .hero .draw:nth-child(3) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.js .hero__name .mask > span {
  transform: translateY(105%);
  animation: rise 1.4s var(--ease-out) forwards;
  animation-delay: .55s;
}
.js .hero__name .mask:nth-child(2) > span { animation-delay: .7s; }
@keyframes rise { to { transform: none; } }

.js .intro {
  opacity: 0; transform: translateY(18px);
  animation: intro 1.2s var(--ease-out) forwards;
  animation-delay: calc(.6s + var(--i, 0) * .14s);
}
.js .hero__scroll.intro { transform: translateY(18px); }
@keyframes intro { to { opacity: 1; transform: none; } }

.js .hero__media img {
  transform: scale(1.08);
  animation: settle 2.6s var(--ease-out) forwards;
}
@keyframes settle { to { transform: scale(1); } }

/* Reveal genérico */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Títulos divididos em linhas (JS envolve palavras) */
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 45ms);
}
.js .split.is-in .w > span { transform: none; }

/* Máscara de imagem */
.js .img-mask {
  clip-path: inset(12% 8% 12% 8%);
  transition: clip-path 1.5s var(--ease-io);
}
.js .img-mask img { transform: scale(1.15); transition: transform 1.8s var(--ease-out); }
.js .img-mask.is-in { clip-path: inset(0 0 0 0); }
.js .img-mask.is-in img { transform: scale(1); }
.js .room:hover .img-mask.is-in img,
.js .exp__more li:hover .img-mask.is-in img { transform: scale(1.04); }

/* Rios do mapa */
.js .map-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-io) .3s; }
.js .destino__map.is-in .map-draw { stroke-dashoffset: 0; }

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .intro { opacity: 1; transform: none; }
  .js .split .w > span, .js .hero__name .mask > span { transform: none; }
  .js .img-mask { clip-path: none; }
  .js .img-mask img, .js .hero__media img { transform: none; }
  .js .hero .draw, .js .map-draw { stroke-dashoffset: 0; }
  .hero__scroll-line::after { transform: none; }
  .map-pulse { display: none; }
  [data-parallax] { transform: none !important; }
}
