A parent-scoped .headline selector styles both a native heading and a motion.h2. The motion component uses scoped:class so Svelte sees the selector as used and keeps the generated CSS.
.headline
motion.h2
scoped:class
scoped CSS