/*
 * Intro motion preferences, separate from functional UI motion.
 *
 * The intro keyframes provide the temporary opacity, transform, filter and
 * clip-path values. Removing only their animation restores the authored static
 * state; resetting those properties would also erase RTL image mirroring,
 * hover effects, layout transforms and the Plan Your Trip readability layers.
 *
 * Server flags cover the first paint / no-JS case. The controller marks each
 * item with its nearest group's effective state, so an enabled nested group is
 * never disabled by an ancestor's flag. These selectors also cover later AJAX
 * items, before the controller has prepared them.
 */
html[data-dornavan-motion-general="off"] [data-scroll-animation-item]:not(:where([data-dornavan-motion-group="plan_trip"], [data-dornavan-motion-group="plan_trip"] *, [data-dornavan-motion-group="wellness"], [data-dornavan-motion-group="wellness"] *)):not([data-dornavan-motion-disabled="false"]),
html[data-dornavan-motion-plan-trip="off"] :is([data-dornavan-motion-group="plan_trip"][data-scroll-animation-item], [data-dornavan-motion-group="plan_trip"] [data-scroll-animation-item]):not([data-dornavan-motion-disabled="false"]),
html[data-dornavan-motion-wellness="off"] :is([data-dornavan-motion-group="wellness"][data-scroll-animation-item], [data-dornavan-motion-group="wellness"] [data-scroll-animation-item]):not([data-dornavan-motion-disabled="false"]),
[data-scroll-animation-item][data-dornavan-motion-disabled="true"] {
    animation: none !important;
    will-change: auto !important;
}

/*
 * The decorative Wellness sweep is the only intro whose final opacity is 0.
 * Do not reveal it when its keyframes are removed, including before JS runs.
 * All other Wellness content falls back to its visible, unfiltered base style.
 */
html[data-dornavan-motion-general="off"] [data-scroll-animation-item*="wellness-light-sweep"]:not(:where([data-dornavan-motion-group="plan_trip"], [data-dornavan-motion-group="plan_trip"] *, [data-dornavan-motion-group="wellness"], [data-dornavan-motion-group="wellness"] *)):not([data-dornavan-motion-disabled="false"]),
html[data-dornavan-motion-plan-trip="off"] [data-dornavan-motion-group="plan_trip"] [data-scroll-animation-item*="wellness-light-sweep"]:not([data-dornavan-motion-disabled="false"]),
html[data-dornavan-motion-wellness="off"] [data-dornavan-motion-group="wellness"] [data-scroll-animation-item*="wellness-light-sweep"]:not([data-dornavan-motion-disabled="false"]),
[data-scroll-animation-item*="wellness-light-sweep"][data-dornavan-motion-disabled="true"] {
    opacity: 0 !important;
}
