/* Platform page #core-engine — flywheel diagram + Elementor editor */

.ontarioai-platform-core-engine__heading {
	font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.layer-card {
	transition: transform 0.3s, box-shadow 0.3s;
}

.layer-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 50px rgba(107, 70, 255, 0.14);
}

.ontarioai-core-engine-card__pattern-violet {
	position: absolute;
	inset: 0;
	border-radius: 1.5rem;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 28px 28px;
}

.ontarioai-core-engine-card__glow-amber {
	position: absolute;
	inset: 0;
	border-radius: 1.5rem;
	background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(245, 166, 35, 0.08) 0%, transparent 60%);
	pointer-events: none;
}

.ontarioai-platform-core-engine-section .stagger > *:nth-child(1) {
	transition-delay: 0.05s;
}

.ontarioai-platform-core-engine-section .stagger > *:nth-child(2) {
	transition-delay: 0.12s;
}

.ontarioai-platform-core-engine-section .stagger > *:nth-child(3) {
	transition-delay: 0.19s;
}

/* w-64 / h-64 are not in the theme Tailwind build — match mock 256×256 box */
.ontarioai-core-engine-flywheel {
	position: relative;
	width: 16rem;
	height: 16rem;
	flex-shrink: 0;
}

/* Flywheel orbit (ontarioai-platform.html #core-engine inline styles) */
.ontarioai-core-engine-flywheel .orbit {
	animation: ontarioai-core-engine-orbit 12s linear infinite;
	transform-origin: center;
	z-index: 0;
}

.ontarioai-core-engine-flywheel .orbit:nth-child(2) {
	animation-duration: 16s;
	animation-direction: reverse;
}

.ontarioai-core-engine-flywheel .orbit:nth-child(3) {
	animation-duration: 20s;
}

@keyframes ontarioai-core-engine-orbit {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.ontarioai-core-engine-flywheel > .absolute.inset-0.flex {
	z-index: 1;
}

.ontarioai-core-engine-flywheel__center {
	box-shadow: 0 0 30px rgba(107, 70, 255, 0.3);
	flex-shrink: 0;
}

/* Elementor editor + scroll reveal: show content */
.elementor-editor-active .ontarioai-platform-core-engine-section .reveal,
.elementor-editor-preview .ontarioai-platform-core-engine-section .reveal,
.ontarioai-platform-core-engine-section .reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.ontarioai-core-engine-flywheel .orbit {
		animation: none;
	}
}
