/* QMA Media — Luxury motion layer v2.13
   This stylesheet enhances appearance only. Functional controls, inputs, account
   panels, and checkout are deliberately not part of scroll reveal animations.
   Nothing is hidden unless the animation JS enables the motion-ready class.
*/
:root {
  --qma-luxury-ease: cubic-bezier(.22, 1, .36, 1);
  --qma-luxury-gold: #d4a11e;
}

/* Gentle initial introduction: hero content appears without moving the layout. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes qma-hero-enter {
    from { opacity: 0; transform: translate3d(0, 22px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
  }
  .qma-motion-ready .hero .hero-content > :is(.eyebrow, h1, .subhead, .hero-cta),
  .qma-motion-ready .page-hero .container > :is(.eyebrow, h1, p),
  .qma-motion-ready .qma-app-hero-copy > :is(.eyebrow, h1, p, a) {
    animation: qma-hero-enter .85s var(--qma-luxury-ease) both;
  }
  .qma-motion-ready .hero .hero-content > .eyebrow,
  .qma-motion-ready .page-hero .container > .eyebrow,
  .qma-motion-ready .qma-app-hero-copy > .eyebrow { animation-delay: 60ms; }
  .qma-motion-ready .hero .hero-content > h1,
  .qma-motion-ready .page-hero .container > h1,
  .qma-motion-ready .qma-app-hero-copy > h1 { animation-delay: 165ms; }
  .qma-motion-ready .hero .hero-content > .subhead,
  .qma-motion-ready .page-hero .container > p,
  .qma-motion-ready .qma-app-hero-copy > p { animation-delay: 280ms; }
  .qma-motion-ready .hero .hero-content > .hero-cta,
  .qma-motion-ready .qma-app-hero-copy > a { animation-delay: 390ms; }

  /* Scroll reveal: JS removes elements from their hidden state once per visit. */
  html.qma-motion-ready [data-qma-reveal] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
      opacity .82s cubic-bezier(.25,.1,.25,1),
      transform .94s var(--qma-luxury-ease),
      box-shadow .48s ease,
      border-color .48s ease;
    transition-delay: var(--qma-reveal-delay, 0ms);
    backface-visibility: hidden;
  }
  html.qma-motion-ready [data-qma-reveal].qma-in-view {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  /* Existing card lifts must still work after the reveal animation completes. */
  html.qma-motion-ready :is(.service-tile,.project-card,.price-card,.qma-case-card,.qma-endorsement)[data-qma-reveal].qma-in-view:hover {
    transform: translate3d(0, -4px, 0);
  }
}

/* Subtle interaction details that feel tactile without adding visual noise. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .site-header .navlinks a:not(.button) {
    position: relative;
  }
  .site-header .navlinks a:not(.button)::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .42s var(--qma-luxury-ease);
  }
  .site-header .navlinks a:not(.button):hover::after,
  .site-header .navlinks a.active:not(.button)::after { transform: scaleX(1); }

  .service-tile,.project-card,.price-card,.qma-case-card,.qma-endorsement {
    transition: transform .65s var(--qma-luxury-ease),
      box-shadow .65s var(--qma-luxury-ease),
      border-color .5s ease;
  }
  :is(.service-tile,.project-card,.price-card,.qma-case-card,.qma-endorsement):hover {
    box-shadow: 0 22px 58px rgba(14,36,65,.11);
    border-color: rgba(20,101,238,.18);
  }
  :is(.project-card,.qma-case-card) img,
  .image-frame img,
  .price-img img {
    transition: transform 1.05s var(--qma-luxury-ease);
  }
  :is(.project-card,.qma-case-card):hover img,
  .image-frame:hover img,
  .price-card:hover .price-img img { transform: scale(1.035); }
  .round-link [aria-hidden], .qma-case-link [aria-hidden],
  .button [aria-hidden] { display: inline-block; transition: transform .48s var(--qma-luxury-ease); }
  :is(.round-link,.qma-case-link,.button):hover > [aria-hidden] { transform: translate3d(3px,-2px,0); }
  .button { transition: transform .48s var(--qma-luxury-ease), background .3s ease, border-color .3s ease, box-shadow .48s ease; }
  .button:hover { box-shadow: 0 10px 26px rgba(20,101,238,.16); }
}

/* Keep everything visible when printing or when the user requests less motion. */
@media (prefers-reduced-motion: reduce) {
  html.qma-motion-ready [data-qma-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  html.qma-motion-ready [data-qma-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
