/* ============================================================
   MAVORA — v68 perceptible motion layer + micro-polish
   4th overlay (after v64/v65/v66). Unlayered => wins.
   Rollback: remove link/script + files.
   Motion = opacity/transform/filter only (zero layout shift).
   ============================================================ */

/* ---------- Hero / page-head entrance (pure CSS — hydration-proof) ---------- */
@keyframes m68rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes m68fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes m68kb {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}
/* home hero copy children stagger */
.home-hero-copy > * {
  animation: m68rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.home-hero-copy > *:nth-child(1) { animation-delay: 0.25s; }
.home-hero-copy > *:nth-child(2) { animation-delay: 0.4s; }
.home-hero-copy > *:nth-child(3) { animation-delay: 0.55s; }
.home-hero-copy > *:nth-child(4) { animation-delay: 0.7s; }
/* generic page-head: eyebrow, H1, intro */
main p:has(+ h1) {
  animation: m68rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
main h1:not(.home-hero-copy h1) {
  animation: m68rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
main h1 + p {
  animation: m68rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
/* hero media: fade in, then one-shot cinematic push-in on the image (9s) */
.home-hero-media {
  animation: m68fade 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
.home-hero-media img {
  animation: m68kb 9s cubic-bezier(0.3, 0.55, 0.3, 1) 0.9s both;
}

/* ---------- Scroll reveal (cards & blocks) ---------- */
.m68c {
  opacity: 0;
  transform: translateY(24px);
}
.m68c-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Hover micro-interactions ---------- */
/* hero primary CTA: lift 2px; secondary: outline → bronze */
.home-hero-copy a[href="/products"]:hover {
  transform: translateY(-2px);
}
.home-hero-copy a[href="/quote"]:hover {
  border-color: var(--muted-bronze);
  color: var(--muted-bronze);
  background: rgba(154, 120, 73, 0.06);
}
/* product/room/journal card image: stronger zoom on hover (overrides 1.03-1.04) */
.group:hover img {
  transform: scale(1.06);
}
/* spec rows: whisper highlight */
main dl > div:hover {
  background: rgba(154, 120, 73, 0.05);
  transition: background 0.2s ease;
}
/* float buttons: gentle grow */
.mavora-wa:hover,
.mavora-lang:hover {
  transform: scale(1.05);
}

/* ---------- Safety ---------- */
@media (prefers-reduced-motion: reduce) {
  .m68c, .home-hero-media, .home-hero-media img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .home-hero-copy > *,
  main p:has(+ h1),
  main h1,
  main h1 + p {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
