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

/* Depth (2026-10-12). Fire is the restaurant: the embers already rising from the grill sit on their own plane, so the hearth has real depth. Pointer devices only; off under reduced motion. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  body[data-demo="ember-and-oak"] .eoHero > img {
    translate: calc(var(--dx-px, 0) * -12px) calc(var(--dx-py, 0) * -8px);
    transition: translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  body[data-demo="ember-and-oak"] .eoHero > .eoEmbers {
    translate: calc(var(--dx-px, 0) * -30px) calc(var(--dx-py, 0) * -18px);
    transition: translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

body[data-authored-demo][data-demo="ember-and-oak"] .eoHero { isolation:isolate; }
body[data-authored-demo][data-demo="ember-and-oak"] .dx-flame-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; z-index:-1; opacity:0; mix-blend-mode:screen; mask-image:radial-gradient(ellipse 38% 30% at 84% 13%,black 15%,transparent 100%); }
body[data-authored-demo][data-demo="ember-and-oak"] .dx-fire-toggle { position:absolute; right:1rem; bottom:1rem; z-index:5; padding:.65rem .9rem; border:1px solid #ffffff88; color:white; background:#17100deb; font:inherit; cursor:pointer; }
@media(prefers-reduced-motion:no-preference) { body[data-authored-demo][data-demo="ember-and-oak"] .dx-flame-video.is-active { opacity:.55; } }

/* The fire glow moves with the hero photo (2026-10-13), so the flames stay over the grill on both devices. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  body[data-authored-demo][data-demo="ember-and-oak"] .eoHero > .dx-flame-video {
    translate: calc(var(--dx-px, 0) * -12px) calc(var(--dx-py, 0) * -8px);
    transition:
      translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 0.6s ease;
  }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (hover: none) {
    body[data-authored-demo][data-demo="ember-and-oak"] .eoHero > .dx-flame-video {
      animation: dx-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
  }
}

/* Header reservation (2026-10-13): the same ember gold as the nav, filling on hover. */
@media (min-width: 801px) {
  body[data-authored-demo][data-demo="ember-and-oak"] .authored-cta--desktop {
    color: #edc679;
  }
  body[data-authored-demo][data-demo="ember-and-oak"] .authored-cta--desktop:hover {
    background: #edc679;
    color: #130c08;
  }
}
