/* aurelia-med-spa: editorial and interaction layer (2026-10-12), loaded after the shared demo bundle. */

/* Depth (2026-10-12). Calm, tactile luxury: the roller floats slightly against the silk, with a soft lilac glow that follows the pointer. Pointer devices only; off under reduced motion. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  body[data-demo="aurelia-med-spa"] .auHero > img {
    translate: calc(var(--dx-px, 0) * -10px) calc(var(--dx-py, 0) * -10px);
    transition: translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  body[data-demo="aurelia-med-spa"] .auHero .dx-light {
    z-index: 0;
    mix-blend-mode: screen;
    background: radial-gradient(30% 30% at calc(70% + var(--dx-px, 0) * 20%) calc(45% + var(--dx-py, 0) * 20%), #b48cff40, transparent 70%);
  }
  body[data-demo="aurelia-med-spa"] .auHero.is-lit .dx-light {
    opacity: 1;
  }
}

/* Registered foreground layers: original source pixels, segmented alpha (2026-10-13). */
body[data-authored-demo][data-demo="aurelia-med-spa"] .auHero { isolation: isolate; }
body[data-authored-demo][data-demo="aurelia-med-spa"] .auHero > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; pointer-events:none; scale:1.08; z-index:-5; }
body[data-authored-demo][data-demo="aurelia-med-spa"] .auHero > .dx-foreground { z-index:-3; }
body[data-authored-demo][data-demo="aurelia-med-spa"] .auHero > .auVeil { z-index:-1; }
body[data-authored-demo][data-demo="aurelia-med-spa"] .auHero > .dx-light { z-index:-2; }
body[data-authored-demo][data-demo="aurelia-med-spa"] .auHero > .dx-contact-shadow { z-index:-4; translate:0 8px; }
@media(prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine) { body[data-authored-demo][data-demo="aurelia-med-spa"] .auHero > .dx-foreground { translate:calc(var(--dx-px,0) * -20px) calc(var(--dx-py,0) * -20px); } body[data-authored-demo][data-demo="aurelia-med-spa"] .auHero > .dx-contact-shadow { translate:0 8px; opacity:calc(.75 + var(--dx-py,0) * .2); } }
@media(prefers-reduced-motion:reduce) { body[data-authored-demo][data-demo="aurelia-med-spa"] .auHero > img { animation:none!important; translate:none!important; transition:none!important; } }
@media(max-width:800px) { body[data-authored-demo][data-demo="aurelia-med-spa"] .auHero > img { object-position:75% center; } }
body[data-authored-demo][data-demo="aurelia-med-spa"] .auHero > .dx-contact-shadow { animation:none!important; }

/* Touch screens (2026-10-13): the roller and silk drift on scroll, so the contact shadow drifts with them; held
   still, it would be left behind under an empty patch of silk. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (hover: none) {
    body[data-authored-demo][data-demo="aurelia-med-spa"] .auHero > .dx-contact-shadow {
      animation: dx-drift linear both !important;
      animation-timeline: scroll(root) !important;
      animation-range: 0 100vh !important;
    }
  }
}
