/* Motion follows the existing editorial layout and palette. */
@media (prefers-reduced-motion: no-preference) {
  body { overflow-x: clip; }
  .hero-copy > *, .hero-media, .hero-article .wrap > * {
    animation: editorial-entrance 1050ms cubic-bezier(.18,.8,.23,1) both;
  }
  .hero-copy > * { --slide-x: clamp(-120px, -11vw, -44px); }
  .hero-copy > :first-child, .hero-article .wrap > :first-child { --slide-x: 0px; --slide-y: -72px; }
  .hero-copy > :nth-child(2), .hero-article h1 { animation-delay: 95ms; }
  .hero-copy > :nth-child(3), .hero-article p { animation-delay: 190ms; }
  .hero-copy > :nth-child(4) { animation-delay: 270ms; }
  .hero-copy > :nth-child(n+5) { animation-delay: 350ms; --slide-x: 0px; --slide-y: 72px; }
  .hero-media { --slide-x: clamp(52px, 14vw, 165px); animation-delay: 150ms; }
  .hero-article h1 { --slide-x: clamp(-115px, -10vw, -42px); }
  .hero-article p { --slide-y: 62px; }

  .hero-globe { scale: 1.045; translate: var(--hero-x, 0px) var(--hero-y, 0px); transition: translate 460ms cubic-bezier(.2,.7,.2,1); }
  .book-art.motion-entered .book-glow { animation: publication-halo 5s ease-in-out 3; }
  .book-art.motion-entered .book-device img { animation: publication-float 5s ease-in-out 3; }
  .btn, .article-card, .image-story, .publication-cover img, .action-panel a, .form-simple button {
    transition: translate 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
  }

  .reading-progress {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #9d7638, #e3c88c);
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
    pointer-events: none;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.article-card, .image-story):hover { translate: 0 -6px; box-shadow: 0 16px 30px #081c2930; }
  :is(.btn, .action-panel a, .form-simple button):hover { translate: 0 -3px; box-shadow: 0 8px 18px #081c2935; }
  .publication-cover img:hover { translate: 0 -5px; }
}
@keyframes editorial-entrance {
  from { opacity: 0; translate: var(--slide-x, 0px) var(--slide-y, 0px); }
  to { opacity: 1; translate: 0 0; }
}
@keyframes publication-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@keyframes publication-halo {
  0%, 100% { scale: 1; opacity: .75; }
  50% { scale: 1.035; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html:root { scroll-behavior: auto; }
}
