/* Magnetic buttons with a fill from the pointer (see assets/js/fx/magnetic.js) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.btn, .brief--forminator .forminator-button-submit {
		position: relative; overflow: hidden; isolation: isolate;
		transition: transform .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
	}
	.btn::before, .brief--forminator .forminator-button-submit::before {
		content: ""; position: absolute; z-index: -1;
		left: var(--fx, 50%); top: var(--fy, 50%);
		width: 0; height: 0; border-radius: 50%;
		transform: translate(-50%, -50%);
		transition: width .5s var(--ease), height .5s var(--ease);
		background: var(--accent);
	}
	.btn.is-filled::before, .brief--forminator .forminator-button-submit.is-filled::before { width: 260%; height: 0; padding-bottom: 260%; }

	/* filled buttons get a deeper shade, outline buttons fill with the accent */
	.btn--accent::before, .brief--forminator .forminator-button-submit::before { background: #D9442F; }
	.btn--outline.is-filled { color: #fff; border-color: var(--accent); }

	.btn.is-magnetic, .brief--forminator .forminator-button-submit.is-magnetic,
	.btn.is-magnetic:hover, .brief--forminator .forminator-button-submit.is-magnetic:hover {
		transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
		transition: transform .15s ease-out, color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
	}
}
