/*
 * Motion layer, trimmed back 2026-11-13: only the hero circle and the heading underlines on the
 * hero and CTA panels move. (The fuller version is saved in builds/de-rebuild/backups/motion-full-2026-11-13/.)
 * Everything here is keyed on html.de-motion, which a tiny head script adds only when the visitor
 * has NOT asked for reduced motion. Without it (reduced motion, no JS, print) the page is the plain,
 * fully visible site. The ring line drawing itself lives in blocks.css.
 */

:root {
	--de-ease-out: cubic-bezier(.22, 1, .36, 1);
	--de-ease-draw: cubic-bezier(.65, 0, .35, 1);
}

/* Heading underline (teal bar + grey bar) draws left to right once the heading is in view. */
.de-motion :where(.de-hero__title, .de-cta__title)::before,
.de-motion :where(.de-hero__title, .de-cta__title)::after {
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .9s var(--de-ease-draw) .15s;
}
.de-motion :where(.de-hero__title, .de-cta__title)::after { transition-duration: 1.1s; transition-delay: .45s; }
.de-motion .is-drawn::before,
.de-motion .is-drawn::after { transform: none; }

/* Hero circle: the photo settles into the ring while the line draws, then the chip pops in. */
@keyframes de-settle { from { transform: scale(.93); } }
@keyframes de-pop { from { opacity: 0; transform: translate(-50%, 14px) scale(.96); } }
.de-motion .de-ring__photo { animation: de-settle 1.4s var(--de-ease-out) both; }
.de-motion .de-ring__chip { animation: de-pop .8s var(--de-ease-out) 1.3s both; }
