/* Practice theme — motion.
 *
 * Everything here runs only when the page says motion is on (html[data-motion], set in <head>
 * from the site's Motion setting) and the visitor has not asked their device to reduce motion.
 * Without either, the page renders exactly as designed, with nothing hidden.
 *
 * Levels: data-motion="subtle" (gentle fades) and data-motion="expressive" (word-by-word
 * headlines, unveiled images, drawn lines, a scroll cue).
 */

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

/* ---------- Scenes, video loops and Lottie: always styled, animated only when playing ---------- */

/* Ready-made scenes: a card on a soft shape, in the site's palette. */
.pc-motion { position: relative; margin-inline: auto; max-width: 460px; }
.pc-motion.alignwide, .pc-motion.alignfull { max-width: none; }
.pc-scene { position: relative; padding: clamp(3rem, 8vw, 4.75rem) clamp(1.1rem, 5vw, 2.5rem) clamp(2rem, 5vw, 3rem); isolation: isolate; font-family: var(--wp--preset--font-family--body); color: var(--wp--preset--color--ink); }
.pc-scene::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: var(--practice-radius-media, 999px 999px 28px 28px);
	background:
		radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--wp--preset--color--surface) 70%, transparent), transparent 55%),
		var(--wp--preset--color--accent-soft);
}
.pcs-card {
	position: relative;
	background: var(--wp--preset--color--surface);
	border-radius: 20px;
	box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .35), 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--line) 70%, transparent);
	padding: 1.25rem;
	font-size: .875rem;
	line-height: 1.4;
}
.pcs-head { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.pcs-head strong { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1.05rem; line-height: 1.25; }
.pcs-head small { margin-left: auto; font-size: .75rem; color: var(--wp--preset--color--muted); white-space: nowrap; }
.pcs-avatar.has-photo { overflow: hidden; padding: 0; box-shadow: 0 0 0 2px var(--wp--preset--color--surface); }
.pcs-avatar.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pcs-avatar { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--primary); font-family: var(--wp--preset--font-family--heading); font-size: .85rem; }
.pcs-label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin-bottom: .45rem; }

/* Booking */
.pcs-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; margin-bottom: 1rem; }
.pcs-days span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; font-size: .78rem; color: var(--wp--preset--color--ink); background: var(--wp--preset--color--tint); font-variant-numeric: tabular-nums; }
.pcs-days span.is-off { background: transparent; color: color-mix(in srgb, var(--wp--preset--color--muted) 55%, transparent); }
.pcs-days span.is-pick { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); font-weight: 600; }
.pcs-slots { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.pcs-slots span { padding: .45rem .8rem; border-radius: 999px; font-size: .78rem; box-shadow: inset 0 0 0 1px var(--wp--preset--color--line); }
.pcs-slots span.is-pick { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); box-shadow: none; font-weight: 600; }
.pcs-done { display: flex; align-items: center; gap: .65rem; padding: .75rem .9rem; border-radius: 14px; background: var(--wp--preset--color--accent-soft); font-weight: 600; font-size: .82rem; }
.pcs-check { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); }
.pcs-check svg { width: .85rem; height: .85rem; }

/* Message */
.pcs-thread { display: grid; gap: .6rem; }
.pcs-bubble { max-width: 84%; padding: .7rem .9rem; border-radius: 16px; font-size: .84rem; }
.pcs-bubble.is-in { justify-self: end; background: var(--wp--preset--color--tint); border-bottom-right-radius: 6px; }
.pcs-bubble.is-out { justify-self: start; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); border-bottom-left-radius: 6px; }
.pcs-typing { justify-self: start; display: none; gap: .25rem; padding: .7rem .85rem; border-radius: 16px; background: var(--wp--preset--color--tint); }
.pcs-typing i { width: .38rem; height: .38rem; border-radius: 50%; background: var(--wp--preset--color--muted); }
.pcs-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.pcs-chips span { padding: .42rem .8rem; border-radius: 999px; font-size: .76rem; font-weight: 600; color: var(--wp--preset--color--primary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--primary) 35%, transparent); }

/* Intake form */
.pcs-field { margin-bottom: .75rem; }
.pcs-input { position: relative; padding: .62rem .8rem; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--wp--preset--color--line); background: var(--wp--preset--color--base); font-size: .84rem; min-height: 2.35rem; }
.pcs-input > span { display: inline-block; white-space: nowrap; }
.pcs-input.is-tall > span { white-space: normal; }
.pcs-button { display: inline-flex; align-items: center; justify-content: center; margin-top: .25rem; padding: .62rem 1.2rem; border-radius: 999px; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); font-weight: 600; font-size: .8rem; }
.pcs-sent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .75rem; padding: 1.5rem; border-radius: inherit; background: color-mix(in srgb, var(--wp--preset--color--surface) 94%, transparent); text-align: center; opacity: 0; visibility: hidden; }
.pcs-sent strong { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1.1rem; max-width: 22ch; }
.pcs-sent .pcs-check { width: 2.6rem; height: 2.6rem; }
.pcs-sent .pcs-check svg { width: 1.2rem; height: 1.2rem; }

/* Care path */
.pcs-card { container: pcs / inline-size; }
.pcs-path { --gap: .75rem; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--gap); padding-top: .5rem; }
.pcs-step { position: relative; display: grid; justify-items: center; align-content: start; gap: .55rem; text-align: center; }
.pcs-step__text { display: grid; gap: .3rem; justify-items: inherit; }
.pcs-step b { position: relative; z-index: 1; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--wp--preset--color--surface); box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); font-size: .78rem; }
.pcs-step:last-child b { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); }
.pcs-step strong { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: .95rem; line-height: 1.2; }
.pcs-step small { font-size: .74rem; color: var(--wp--preset--color--muted); line-height: 1.35; }
/* The line from each step to the next */
.pcs-link { position: absolute; top: calc(.95rem - 1px); left: calc(50% + 1.15rem); width: calc(100% + var(--gap) - 2.3rem); height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent); transform-origin: left center; }
.pcs-path--some, .pcs-path--many { --gap: .5rem; }
.pcs-path--some strong, .pcs-path--many strong { font-size: .86rem; }

/* Details behind a small "i": shown on hover */
.pcs-info { position: relative; display: inline-grid; place-items: center; width: 1rem; height: 1rem; margin-left: .3rem; vertical-align: .1em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--wp--preset--color--primary) 55%, transparent); color: var(--wp--preset--color--primary); font: italic 700 .62rem/1 Georgia, serif; cursor: help; }
.pcs-info::after { content: attr(data-tip); position: absolute; z-index: 3; bottom: calc(100% + .45rem); left: 50%; width: max-content; max-width: 13rem; padding: .45rem .65rem; border-radius: 10px; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--base); font: 400 .74rem/1.4 var(--wp--preset--font-family--body); text-align: center; opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity .2s, transform .2s, visibility .2s; pointer-events: none; }
.pcs-info:hover::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* When the card is too narrow for every step side by side, they stack with the line running down. */
@container pcs (max-width: 360px) {
	.pcs-path--four { grid-template-columns: minmax(0, 1fr); --gap: .85rem; }
	.pcs-path--four .pcs-step { grid-template-columns: 1.9rem minmax(0, 1fr); justify-items: start; align-items: start; column-gap: .8rem; text-align: left; }
	.pcs-path--four .pcs-step__text { padding-top: .3rem; justify-items: start; }
	.pcs-path--four .pcs-link { top: 1.9rem; left: calc(.95rem - 1px); width: 2px; height: calc(100% + var(--gap) - 1.9rem); transform-origin: center top; }
	.pcs-path--four .pcs-info::after { bottom: auto; top: 50%; left: calc(100% + .5rem); text-align: left; transform: translate(4px, -50%); }
	.pcs-path--four .pcs-info:hover::after { transform: translate(0, -50%); }
}
@container pcs (max-width: 560px) {
	.pcs-path--some { grid-template-columns: minmax(0, 1fr); --gap: .85rem; }
	.pcs-path--some .pcs-step { grid-template-columns: 1.9rem minmax(0, 1fr); justify-items: start; align-items: start; column-gap: .8rem; text-align: left; }
	.pcs-path--some .pcs-step__text { padding-top: .3rem; justify-items: start; }
	.pcs-path--some .pcs-link { top: 1.9rem; left: calc(.95rem - 1px); width: 2px; height: calc(100% + var(--gap) - 1.9rem); transform-origin: center top; }
	.pcs-path--some .pcs-info::after { bottom: auto; top: 50%; left: calc(100% + .5rem); text-align: left; transform: translate(4px, -50%); }
	.pcs-path--some .pcs-info:hover::after { transform: translate(0, -50%); }
}
@container pcs (max-width: 760px) {
	.pcs-path--many { grid-template-columns: minmax(0, 1fr); --gap: .85rem; }
	.pcs-path--many .pcs-step { grid-template-columns: 1.9rem minmax(0, 1fr); justify-items: start; align-items: start; column-gap: .8rem; text-align: left; }
	.pcs-path--many .pcs-step__text { padding-top: .3rem; justify-items: start; }
	.pcs-path--many .pcs-link { top: 1.9rem; left: calc(.95rem - 1px); width: 2px; height: calc(100% + var(--gap) - 1.9rem); transform-origin: center top; }
	.pcs-path--many .pcs-info::after { bottom: auto; top: 50%; left: calc(100% + .5rem); text-align: left; transform: translate(4px, -50%); }
	.pcs-path--many .pcs-info:hover::after { transform: translate(0, -50%); }
	.pcs-path--many strong, .pcs-path--some strong { font-size: .95rem; }
}

/* Messages from the practice: the typing dots hold the reply's place, so nothing jumps */
.pcs-say { position: relative; display: grid; justify-items: start; }
.pcs-say .pcs-typing { position: absolute; top: 0; left: 0; }

/* Playing: each piece arrives in order, then the scene rests on its finished state. */
.pc-scene.is-playing .pcs-card { animation: pcsCard .7s var(--pc-ease) both; }
.pc-scene.is-paused * { animation-play-state: paused !important; }
.pc-scene.is-fading .pcs-card { opacity: 0; transform: translateY(6px); transition: opacity .45s var(--pc-ease), transform .45s var(--pc-ease); animation: none; }
.pc-scene.is-playing [data-at] { animation: pcsIn .55s var(--pc-ease) both; animation-delay: var(--at, 0s); }
.pc-scene.is-playing [data-at].pcs-pop { animation-name: pcsPop; }
.pc-scene.is-playing [data-at].pcs-type > span { animation: pcsType var(--len, .9s) steps(var(--steps, 18)) both; animation-delay: var(--at, 0s); }
.pc-scene.is-playing [data-at].pcs-type { animation: none; }
.pc-scene.is-playing [data-press] { animation: pcsPress .5s var(--pc-ease-in-out) both; animation-delay: var(--press, 1s); }
.pc-scene.is-playing .pcs-days span.is-pick { animation: pcsIn .55s var(--pc-ease) both, pcsPick .6s var(--pc-ease) both; animation-delay: var(--at, 0s), var(--press, 1s); }
.pc-scene.is-playing .pcs-slots span.is-pick { animation: pcsPop .55s var(--pc-ease) both, pcsPickPill .6s var(--pc-ease) both; animation-delay: var(--at, 0s), var(--press, 2s); }
.pc-scene.is-playing .pcs-check.is-ring { animation: pcsPop .5s var(--pc-ease) both, pcsRing .9s var(--pc-ease) both; animation-delay: var(--at, 0s), calc(var(--at, 0s) + .4s); }
.pc-scene.is-playing .pcs-typing { display: flex; animation: pcsTyping var(--for, 1s) linear both; animation-delay: var(--at, 0s); }
.pc-scene.is-playing .pcs-typing i { animation: pcsDot 1s ease-in-out infinite; }
.pc-scene.is-playing .pcs-typing i:nth-child(2) { animation-delay: .15s; }
.pc-scene.is-playing .pcs-typing i:nth-child(3) { animation-delay: .3s; }
.pc-scene.is-playing .pcs-sent { animation: pcsSent .6s var(--pc-ease) both; animation-delay: var(--at, 3s); }
.pc-scene.is-playing .pcs-link { animation: pcsGrow var(--for, .7s) var(--pc-ease-in-out) both; animation-delay: var(--at, 0s); }
.pc-scene.is-playing .pcs-path:is(.pcs-path--four, .pcs-path--some, .pcs-path--many) .pcs-link { animation-name: pcsGrowAny; }

@keyframes pcsCard { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pcsIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pcsPop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes pcsType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pcsPress { 0%, 100% { transform: none; } 50% { transform: scale(.92); } }
@keyframes pcsPick { 0% { background: var(--wp--preset--color--tint); color: var(--wp--preset--color--ink); transform: none; } 45% { transform: scale(.86); } 100% { transform: none; } }
@keyframes pcsPickPill { 0% { background: transparent; color: var(--wp--preset--color--ink); box-shadow: inset 0 0 0 1px var(--wp--preset--color--line); transform: none; } 45% { transform: scale(.9); } 100% { transform: none; } }
@keyframes pcsRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--primary) 0%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--primary) 0%, transparent); } }
@keyframes pcsTyping { 0% { opacity: 0; } 10%, 90% { opacity: 1; } 100% { opacity: 0; visibility: hidden; position: absolute; } }
@keyframes pcsGrowAny { from { opacity: 0; clip-path: inset(0 100% 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes pcsDot { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes pcsSent { from { opacity: 0; visibility: visible; transform: scale(.98); } to { opacity: 1; visibility: visible; transform: none; } }
@keyframes pcsGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Without playback (motion off, reduced motion, editor) the finished state shows: the form's thank-you included. */
.pc-scene:not(.is-playing):not(.is-fading) .pcs-sent { opacity: 1; visibility: visible; }
.pc-scene:not(.is-playing) .pcs-typing { display: none; }

/* Video loops: the image stays as the poster until the video is actually playing. */
.has-pc-loop { position: relative; }
.has-pc-loop .pc-loop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	opacity: 0;
	transition: opacity .8s var(--pc-ease);
	pointer-events: none;
}
.wp-block-image.is-style-shaped.has-pc-loop .pc-loop,
.wp-block-image.has-pc-loop[class*="pc-shape-"] .pc-loop { border-radius: var(--pc-shape, var(--practice-radius-media)); }
.has-pc-loop.is-looping .pc-loop { opacity: 1; }
.pc-loop-toggle {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--surface) 88%, transparent);
	color: var(--wp--preset--color--ink);
	box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45);
	backdrop-filter: blur(6px);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, transform .25s var(--pc-ease), background-color .2s;
}
.has-pc-loop.is-looping .pc-loop-toggle,
.has-pc-loop.is-held .pc-loop-toggle { opacity: 1; visibility: visible; }
.pc-loop-toggle:hover { transform: scale(1.06); background: var(--wp--preset--color--surface); }
.pc-loop-toggle::before,
.pc-loop-toggle::after { content: ""; width: 3px; height: .8rem; border-radius: 2px; background: currentColor; grid-area: 1 / 1; }
.pc-loop-toggle::before { transform: translateX(-3px); }
.pc-loop-toggle::after { transform: translateX(3px); }
.pc-loop-toggle[aria-pressed="true"]::before { width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: .45rem 0 .45rem .75rem; border-color: transparent transparent transparent currentColor; transform: translateX(2px); }
.pc-loop-toggle[aria-pressed="true"]::after { display: none; }
.pc-motion--video figure { margin: 0; }
.pc-motion--video img,
.pc-motion--video video { display: block; width: 100%; height: auto; border-radius: var(--practice-radius-card, 20px); }
.pc-motion--video .has-pc-loop:not(:has(img)) .pc-loop { position: static; opacity: 1; }

/* Lottie */
.pc-lottie { position: relative; }
.pc-lottie > svg { display: block; width: 100% !important; height: auto !important; }
.pc-lottie img { display: block; width: 100%; height: auto; }
.pc-lottie.is-ready img { display: none; }

/* ---------- Page motion ---------- */

@media (prefers-reduced-motion: no-preference) {
	html[data-motion] {
		--pc-d: .7s;
		--pc-y: 14px;
		--pc-b: 0px;
		--pc-step: 60ms;
	}
	html[data-motion="expressive"] {
		--pc-d: 1s;
		--pc-y: 28px;
		--pc-b: 8px;
		--pc-step: 90ms;
	}

	/* Pieces waiting to slide or zoom in never widen the page. */
	html[data-motion] .practice-section,
	html[data-motion] .wp-block-post-content > .wp-block-group { overflow-x: clip; }
	html[data-motion] .pc-will.pc-v-mask { overflow: hidden; }

	/* Elements below the fold wait, then arrive as they scroll into view. */
	html[data-motion] .pc-will {
		opacity: 0;
		transform: translate3d(var(--pc-x, 0), var(--pc-y), 0) scale(var(--pc-s, 1));
		transition:
			opacity var(--pc-d) var(--pc-ease),
			transform var(--pc-d) var(--pc-ease),
			filter var(--pc-d) var(--pc-ease),
			clip-path calc(var(--pc-d) * 1.3) var(--pc-ease-in-out);
		transition-delay: var(--pc-delay, 0ms);
	}
	html[data-motion] .pc-will.pc-v-blur { filter: blur(var(--pc-b)); }
	html[data-motion] .pc-will.pc-v-left { --pc-x: calc(var(--pc-y) * -1.4); transform: translate3d(var(--pc-x), 0, 0); }
	html[data-motion] .pc-will.pc-v-right { --pc-x: calc(var(--pc-y) * 1.4); transform: translate3d(var(--pc-x), 0, 0); }
	html[data-motion] .pc-will.pc-v-zoom { transform: scale(.94); }
	html[data-motion] .pc-will.is-in { opacity: 1; transform: none; filter: none; }

	/* Images unveil from the centre, the picture settling as it opens. */
	html[data-motion="expressive"] .pc-will.pc-v-mask { opacity: 1; transform: none; clip-path: inset(14% 10% 14% 10% round 28px); }
	html[data-motion="expressive"] .pc-will.pc-v-mask img,
	html[data-motion="expressive"] .pc-will.pc-v-mask .pc-scene { transform: scale(1.12); transition: transform calc(var(--pc-d) * 1.6) var(--pc-ease); transition-delay: var(--pc-delay, 0ms); }
	html[data-motion="expressive"] .pc-will.pc-v-mask.is-in { clip-path: inset(0 0 0 0 round 0); }
	html[data-motion="expressive"] .pc-will.pc-v-mask.is-in img,
	html[data-motion="expressive"] .pc-will.pc-v-mask.is-in .pc-scene { transform: none; }
	html[data-motion="subtle"] .pc-will.pc-v-mask { transform: none; }

	/* Headlines rise word by word. */
	html[data-motion="expressive"] .pc-w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .06em .14em; margin-block: -.06em -.14em; }
	html[data-motion="expressive"] .pc-w > span { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform calc(var(--pc-d) * 1.05) var(--pc-ease); transition-delay: calc(var(--i, 0) * 55ms + var(--pc-delay, 0ms)); }
	html[data-motion="expressive"] .is-in .pc-w > span,
	html[data-motion="expressive"] .pc-w.is-in > span { transform: none; }

	/* Hero: arrives on its own as the page opens (no script needed, nothing flashes). */
	html[data-motion] .hero .wp-block-column:first-child > * { animation: pcRise var(--pc-d) var(--pc-ease) both; }
	html[data-motion] .hero .wp-block-column:first-child > :nth-child(1) { animation-delay: .05s; }
	html[data-motion] .hero .wp-block-column:first-child > :nth-child(2) { animation-delay: .15s; }
	html[data-motion] .hero .wp-block-column:first-child > :nth-child(3) { animation-delay: .35s; }
	html[data-motion] .hero .wp-block-column:first-child > :nth-child(4) { animation-delay: .5s; }
	html[data-motion] .hero .wp-block-column:first-child > :nth-child(5) { animation-delay: .65s; }
	html[data-motion="expressive"] .hero h1 { animation: none !important; }
	html[data-motion="expressive"] .hero h1 .pc-w > span { transform: none; animation: pcWord 1.05s var(--pc-ease) both; animation-delay: calc(var(--i, 0) * 70ms + .2s); }
	html[data-motion] .hero .wp-block-column:last-child > * { animation: pcFade 1.2s var(--pc-ease) .2s both; }
	html[data-motion="expressive"] .hero .wp-block-column:last-child > * { animation: pcUnveil 1.5s var(--pc-ease-in-out) .25s both; }
	html[data-motion="expressive"] .hero .wp-block-column:last-child img { animation: pcSettle 2.2s var(--pc-ease) .25s both; }
	html[data-motion="expressive"] .hero .hero-cue { display: block; }

	/* Page titles arrive the same way, a little quicker. */
	html[data-motion] .page-band .alignwide > * { animation: pcRise var(--pc-d) var(--pc-ease) both; }
	html[data-motion] .page-band .alignwide > :nth-child(2) { animation-delay: .1s; }
	html[data-motion] .page-band .alignwide > :nth-child(3) { animation-delay: .22s; }
	html[data-motion] .page-band .alignwide > .page-band__media { animation: pcFade 1.1s var(--pc-ease) .15s both; }

	/* Lines draw themselves in. */
	html[data-motion="expressive"] .highlights > .wp-block-column.pc-will { border-top-color: transparent; }
	html[data-motion="expressive"] .highlights > .wp-block-column.pc-will::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--wp--preset--color--line); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--pc-ease-in-out); transition-delay: calc(var(--pc-delay, 0ms) + .15s); }
	html[data-motion="expressive"] .highlights > .wp-block-column.pc-will.is-in::before { transform: none; }
	html[data-motion="expressive"] .highlights > .wp-block-column { position: relative; }
	html[data-motion="expressive"] .wp-block-separator.pc-will { opacity: 1; transform: scaleX(0); transform-origin: left; }
	html[data-motion="expressive"] .wp-block-separator.pc-will.is-in { transform: none; }

	/* Small touches on hover. */
	html[data-motion] .wp-block-button__link { transition: transform .3s var(--pc-ease), box-shadow .3s var(--pc-ease), background-color .25s, color .25s, border-color .25s; }
	html[data-motion] .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--wp--preset--color--primary) 80%, transparent); }
	html[data-motion] .wp-block-button.is-style-outline .wp-block-button__link:hover { background: color-mix(in srgb, var(--wp--preset--color--primary) 7%, transparent); }
	html[data-motion] .card-grid .wp-block-post:hover { box-shadow: 0 28px 50px -30px rgba(0, 0, 0, .35); }
	html[data-motion] .card-grid .wp-block-post-featured-image { overflow: hidden; }
	html[data-motion] .card-grid .wp-block-post-featured-image img { transition: transform .9s var(--pc-ease); }
	html[data-motion] .card-grid .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.04); }
	html[data-motion] .practice-portrait img { transition: transform .9s var(--pc-ease); }
	html[data-motion] .wp-block-post:hover .practice-portrait img,
	html[data-motion] .practice-related-team a:hover .practice-portrait img { transform: scale(1.06); }
	html[data-motion] .entry-content p a:not(.wp-block-button__link),
	html[data-motion] .entry-content li a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--pc-ease); }
	html[data-motion] .entry-content p a:not(.wp-block-button__link):hover,
	html[data-motion] .entry-content li a:hover { background-size: 0 1px; background-position: 100% 100%; }
	html[data-motion="expressive"] .site-header__inner { transition: padding .4s var(--pc-ease); }
	html[data-motion="expressive"] .site-header.is-scrolled .site-header__inner { padding-block: .65rem; }

	@keyframes pcRise { from { opacity: 0; transform: translate3d(0, var(--pc-y), 0); } to { opacity: 1; transform: none; } }
	@keyframes pcFade { from { opacity: 0; } to { opacity: 1; } }
	@keyframes pcWord { from { transform: translate3d(0, 108%, 0); } to { transform: none; } }
	@keyframes pcUnveil { from { clip-path: inset(12% 10% 12% 10% round 32px); opacity: .2; } to { clip-path: inset(0 0 0 0 round 0); opacity: 1; } }
	@keyframes pcSettle { from { transform: scale(1.14); } to { transform: none; } }
}

/* The scroll cue under the hero (shown only in the expressive level, on larger screens). */
.hero-cue { display: none; position: absolute; left: 50%; bottom: 1.75rem; width: 1px; height: 3.25rem; overflow: hidden; background: color-mix(in srgb, var(--wp--preset--color--ink) 14%, transparent); pointer-events: none; }
.hero-cue span { position: absolute; left: 0; width: 1px; height: 40%; background: var(--wp--preset--color--primary); animation: pcCue 2.4s var(--pc-ease-in-out) 1.6s infinite both; }
@keyframes pcCue { 0% { top: -40%; } 70%, 100% { top: 100%; } }
@media (max-width: 781px) { .hero .hero-cue { display: none !important; } }

/* Device asked for less motion: everything stays still, videos and scenes included. */
@media (prefers-reduced-motion: reduce) {
	.hero-cue { display: none !important; }
	.pc-loop, .pc-loop-toggle { display: none !important; }
}

/* Hero over a photo: words rise in turn, the picture settles. */
@media (prefers-reduced-motion: no-preference) {
	html[data-motion] .hero-full__body > * { animation: pcRise var(--pc-d) var(--pc-ease) both; }
	html[data-motion] .hero-full__body > :nth-child(1) { animation-delay: .1s; }
	html[data-motion] .hero-full__body > :nth-child(2) { animation-delay: .2s; }
	html[data-motion] .hero-full__body > :nth-child(3) { animation-delay: .4s; }
	html[data-motion] .hero-full__body > :nth-child(4) { animation-delay: .55s; }
	html[data-motion] .hero-full__body > :nth-child(5) { animation-delay: .7s; }
	html[data-motion] .hero-full__body > :nth-child(6) { animation-delay: .8s; }
	html[data-motion="expressive"] .hero-full__body h1 { animation: none !important; }
	html[data-motion="expressive"] .hero-full__body h1 .pc-w > span { transform: none; animation: pcWord 1.05s var(--pc-ease) both; animation-delay: calc(var(--i, 0) * 70ms + .2s); }
	html[data-motion="expressive"] .hero--full .hero-full__media img { animation: pcSettle 2.6s var(--pc-ease) both; }
}

/* Steps arrive one at a time: each number writes itself in, the line to the next step draws down. */
@media (prefers-reduced-motion: no-preference) {
	html[data-motion] .pc-steps > :is(.wp-block-column, .timeline__step) { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--pc-ease), transform .8s var(--pc-ease); }
	html[data-motion] .pc-steps > .is-on { opacity: 1; transform: none; }
	html[data-motion] .pc-steps.is-style-steps > .wp-block-column::before { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--pc-ease) .15s; }
	html[data-motion] .pc-steps.is-style-steps > .wp-block-column.is-on::before { clip-path: inset(0 0 0 0); }
	html[data-motion] .pc-steps .timeline__step::before { transform: scale(.55); transition: transform .6s var(--pc-ease) .05s, background-color .4s, color .4s; }
	html[data-motion] .pc-steps .timeline__step.is-on::before { transform: none; }
	html[data-motion] .pc-steps .timeline__step::after { transform: scaleY(0); transform-origin: top; transition: transform 1s var(--pc-ease) .4s; }
	html[data-motion] .pc-steps .timeline__step.is-on::after { transform: none; }
}
