/* =========================================================
   Sitewide motion (v0.6.76) - pairs with assets/js/site-motion.js
   ========================================================= */

/* Scroll reveal. Class is added by JS only to elements below the fold. */
.cc-rv {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--cc-d, 0ms);
}
.cc-rv.is-in { opacity: 1; transform: none; }

/* Card hover lift (after the reveal has finished). */
.cc-service-card, .cc-operator-card, .cc-why-us__item, .cc-info-card,
.cc-pillar-card, .cc-pillar-card-v2, .cc-related-card, .cc-review-card, .cc-partner-card {
	transition: transform .25s ease, box-shadow .25s ease;
}
.cc-service-card:not(.cc-rv):hover, .cc-operator-card:not(.cc-rv):hover,
.cc-why-us__item:not(.cc-rv):hover, .cc-info-card:not(.cc-rv):hover,
.cc-pillar-card:not(.cc-rv):hover, .cc-pillar-card-v2:not(.cc-rv):hover,
.cc-related-card:not(.cc-rv):hover, .cc-review-card:not(.cc-rv):hover,
.cc-partner-card:not(.cc-rv):hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 0 -2px var(--wp--preset--color--accent, #FFC107);
}
.cc-service-card__arrow { display: inline-block; transition: transform .25s ease; }
.cc-service-card:hover .cc-service-card__arrow { transform: translateX(6px); }

/* Reading progress taxi (single posts). */
.cc-read {
	position: fixed; left: 0; right: 0; top: 0; z-index: 99;
	height: 5px; pointer-events: none;
}
.admin-bar .cc-read { top: 32px; }
@media (max-width: 782px) { .admin-bar .cc-read { top: 46px; } }
.cc-read__bar {
	position: absolute; inset: 0;
	background: repeating-linear-gradient(90deg, #FFC107 0 12px, #111 12px 24px);
	transform-origin: left center; transform: scaleX(0);
}
.cc-read__cab {
	position: absolute; left: 0; top: 3px;
	width: 44px; height: 24px;
	opacity: 0; transition: opacity .3s;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}
.cc-read__cab svg { display: block; }
.cc-read.is-on .cc-read__cab { opacity: 1; }
.cc-read.is-done .cc-read__cab { opacity: 0; }
.cc-read.is-moving .cc-read__cab svg { animation: cc-read-bob .28s ease-in-out infinite alternate; }
@keyframes cc-read-bob { to { transform: translateY(-1.5px); } }

@media (prefers-reduced-motion: reduce) {
	.cc-rv { opacity: 1; transform: none; transition: none; }
	.cc-read__cab { display: none; }
}
@media print { .cc-read { display: none; } }
