/* Nógue Art — sistema de movimento, edição isolada da home dev. */
body.dev-home {
  --nm-ease: cubic-bezier(.2,.8,.2,1);
  --nm-duration: 1000ms;
  --nm-distance: 50px;
  --nm-card-duration: 500ms;
}
body.dev-home .nm-mask {
  display:inline-block;
  overflow:hidden;
  vertical-align:baseline;
  padding:.09em .025em;
  margin:-.09em -.025em;
}
body.dev-home .nm-word { display:inline-block; transform-origin:0 100%; }
html.nm-ready body.dev-home .nm-mask:not(.nm-shown) .nm-word {
  opacity:0;
  transform:translate3d(0,108%,0) rotate(5deg);
}
html.nm-ready body.dev-home .nm-mask.nm-shown .nm-word {
  opacity:1;
  transform:translate3d(0,0,0) rotate(0deg);
  transition: transform var(--nm-duration) var(--nm-ease),
              opacity var(--nm-duration) var(--nm-ease);
  transition-delay:var(--nm-word-delay,0ms);
}
html.nm-ready body.dev-home .nm-reveal:not(.nm-shown) {
  opacity:0;
  transform:translate3d(0,var(--nm-distance),0);
}
html.nm-ready body.dev-home .nm-reveal.nm-shown {
  opacity:1;
  transform:translate3d(0,0,0);
  transition:opacity var(--nm-duration) var(--nm-ease),
             transform var(--nm-duration) var(--nm-ease);
  transition-delay:var(--nm-reveal-delay,0ms);
}
/* Abertura existente usa vídeo em tela inteira, sem obra lateral visível. */
@keyframes nm-video-drift {
  0%,100% { transform:scale(1.055) translate3d(0,0,0); }
  50% { transform:scale(1.055) translate3d(0,-10px,0); }
}
body.dev-home .hero-video {
  animation:nm-video-drift 9s ease-in-out infinite;
  transform-origin:center;
}
body.dev-home main .nm-card {
  --nm-tilt:-1.4deg;
  --nm-card-delay:0ms;
  transform-origin:50% 50%;
  transition:transform var(--nm-card-duration) var(--nm-ease),
             opacity var(--nm-duration) var(--nm-ease);
}
body.dev-home main .nm-card:nth-child(even) { --nm-tilt:1.2deg; }
html.nm-ready body.dev-home main .nm-card:not(.nm-shown) {
  opacity:0;
  transform:translate3d(0,66px,0) rotate(var(--nm-tilt));
}
html.nm-ready body.dev-home main .nm-card.nm-shown {
  opacity:1;
  transform:translate3d(0,16px,0) rotate(var(--nm-tilt));
  transition-delay:var(--nm-card-delay,0ms);
}
@media(hover:hover) and (pointer:fine) {
  html.nm-ready body.dev-home main .nm-card.nm-shown:hover,
  html.nm-ready body.dev-home main .nm-card.nm-shown:focus-within {
    transform:translate3d(0,-8px,0) rotate(0deg) scale(1.03);
    transition-delay:0ms;
    position:relative;
    z-index:4;
  }
}
html.nm-ready body.dev-home main .nm-card.nm-shown.nm-touched {
  transform:translate3d(0,-8px,0) rotate(0deg) scale(1.03);
  transition-delay:0ms;
  position:relative;
  z-index:4;
}
/* Botões, com desaceleração e sombra reduzida no hover. */
body.dev-home main .nm-press {
  box-shadow:0 3px 9px rgba(0,0,0,.10);
  transition:transform .5s var(--nm-ease),box-shadow .5s var(--nm-ease),
    background .25s ease,border-color .25s ease;
}
@media(hover:hover) and (pointer:fine) {
  body.dev-home main .nm-press:hover,
  body.dev-home main .nm-press:focus-visible {
    transform:translate3d(0,4px,0) rotate(-1deg);
    box-shadow:0 1px 4px rgba(0,0,0,.07);
  }
}
/* Mantém a ordem da pilha sticky, sombreamento só no bordo existente. */
body.dev-home .home-caderno,
body.dev-home .home-artes,
body.dev-home .home-store,
body.dev-home .practice-section,
body.dev-home .home-social {
  box-shadow:0 12px 22px rgba(0,0,0,.12);
}
@media(max-width:760px) {
  body.dev-home {
    --nm-duration:500ms;
    --nm-distance:25px;
    --nm-card-duration:250ms;
  }
  body.dev-home .hero-video { animation-duration:4.5s; }
  body.dev-home .nm-marquee { padding:9px 0; }
  body.dev-home .nm-marquee-track { animation-duration:12.5s; }
  html.nm-ready body.dev-home main .nm-card:not(.nm-shown) {
    transform:translate3d(0,33px,0) rotate(var(--nm-tilt));
  }
  html.nm-ready body.dev-home main .nm-card.nm-shown {
    transform:translate3d(0,8px,0) rotate(var(--nm-tilt));
  }
}
@media(prefers-reduced-motion:reduce) {
  html:has(body.dev-home) { scroll-behavior:auto!important; }
  body.dev-home,
  body.dev-home * {
    scroll-behavior:auto!important;
  }
  body.dev-home .hero-video,
  body.dev-home .nm-marquee-track,
  body.dev-home .nm-card,
  body.dev-home .nm-reveal,
  body.dev-home .nm-mask .nm-word {
    animation:none!important;
    transition:none!important;
    transform:none!important;
    opacity:1!important;
  }
  body.dev-home .nm-parallax {
    transform:none!important;
    will-change:auto;
  }
  body.dev-home main .nm-press {
    transform:none!important;
    box-shadow:none!important;
  }
}

/* Loja com fundo sólido e botões de sombra editorial discreta. */
body.dev-home main > .shop-practice-stack > .home-store{background:#F5F0E6!important;background-image:none!important;}
body.dev-home main button:not(.artes-gallery-card),
body.dev-home main a.btn,
body.dev-home main .social-actions a,
body.dev-home main .artes-gallery-more a,
body.dev-home main .caderno-read-all a,
body.dev-home main .store-shop-all a{box-shadow:0 3px 9px rgba(0,0,0,.10);}
@media(hover:hover) and (pointer:fine){
 body.dev-home main button:not(.artes-gallery-card):hover,
 body.dev-home main a.btn:hover,
 body.dev-home main .social-actions a:hover,
 body.dev-home main .artes-gallery-more a:hover,
 body.dev-home main .caderno-read-all a:hover,
 body.dev-home main .store-shop-all a:hover{box-shadow:0 1px 4px rgba(0,0,0,.07);}
}
