/*
Theme Name: Kinetic Fitness
Author: antinet
Author URI: https://profiles.wordpress.org/antinet/
Description: Kinetic Fitness is a bold, dark and high-energy block theme for gyms, fitness clubs, personal trainers, boxing and martial arts gyms, yoga and pilates studios. Cinematic typography, scroll-driven motion with zero JavaScript, and ready-made sections for classes, schedules, coaches, memberships and free-trial sign-ups. Everything is editable in the Site Editor and built for speed.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kinetic-fitness
Tags: blog, e-commerce, one-column, wide-blocks, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, threaded-comments, translation-ready

Kinetic Fitness WordPress Theme, (C) 2026 antinet.
Kinetic Fitness is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   Global
   Most of the design system lives in theme.json. This file only holds what
   theme.json cannot express: motion, focus states and a few helpers.
   Block-specific styles are in assets/css/blocks/ and load on demand.
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

body {
	/* Rotated/scaled decorative bands must never cause a horizontal scrollbar. */
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

:where(h1, h2, h3, h4, h5, h6) {
	text-wrap: balance;
}

:where(p, li) {
	text-wrap: pretty;
}

:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* Buttons: subtle lift on hover. Colors come from theme.json. */
:where(.wp-element-button, .wp-block-button__link) {
	transition:
		transform var(--wp--custom--motion--base) var(--wp--custom--motion--ease),
		background-color var(--wp--custom--motion--base) var(--wp--custom--motion--ease),
		border-color var(--wp--custom--motion--base) var(--wp--custom--motion--ease),
		color var(--wp--custom--motion--base) var(--wp--custom--motion--ease),
		box-shadow var(--wp--custom--motion--base) var(--wp--custom--motion--ease);
}

:where(.wp-element-button, .wp-block-button__link):hover {
	transform: translateY(-2px);
}

/* ==========================================================================
   Forms
   Dark, rounded fields that also match forms from popular plugins.
   ========================================================================== */

:where(input:is([type="text"], [type="email"], [type="url"], [type="tel"], [type="number"], [type="search"], [type="password"], [type="date"], [type="time"]), select, textarea),
.wp-block-search .wp-block-search__input,
.wp-block-post-comments-form :is(input:not([type="submit"], [type="checkbox"], [type="radio"]), textarea) {
	box-sizing: border-box;
	max-width: 100%;
	padding: 0.85rem 1.1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--field);
	background-color: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: max(16px, 1rem);
	line-height: 1.4;
	transition: border-color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease);
}

:where(input, select, textarea):hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--contrast) 30%, transparent);
}

:where(input, select, textarea):focus,
.wp-block-search .wp-block-search__input:focus {
	border-color: var(--wp--custom--color--accent-text);
	outline: 2px solid color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent);
	outline-offset: 1px;
}

::placeholder {
	color: var(--wp--preset--color--contrast-2);
	opacity: 1;
}

.wp-block-search .wp-block-search__input {
	border-radius: var(--wp--custom--radius--pill);
	padding-inline: 1.35rem;
}

.wp-block-search .wp-block-search__inside-wrapper {
	gap: 0.5rem;
}

:where(input[type="checkbox"], input[type="radio"]) {
	accent-color: var(--wp--preset--color--accent);
}

/* ==========================================================================
   Header
   Add the "kf-sticky" class to the header's outer group to make it sticky.
   ========================================================================== */

.wp-site-blocks > .wp-block-template-part:has(> .kf-sticky) {
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .kf-sticky) {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.kf-header:not(.has-background) {
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 78%, transparent);
	-webkit-backdrop-filter: saturate(140%) blur(16px);
	backdrop-filter: saturate(140%) blur(16px);
}

.kf-header .wp-block-button__link {
	padding: 0.7rem 1.25rem;
	font-size: var(--wp--preset--font-size--small);
	white-space: nowrap;
}

@media (max-width: 599.98px) {

	.kf-header .wp-block-button__link {
		padding: 0.6rem 1rem;
	}
}

/* ==========================================================================
   Decorative helpers (add as "Additional CSS class" in the block settings)
   ========================================================================== */

/* Small uppercase label with an accent dot (add "kf-live" to make the dot pulse). */
.kf-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75em;
	width: fit-content;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.kf-eyebrow:not(.has-text-color) {
	color: var(--wp--preset--color--contrast-2);
}

.kf-eyebrow::before,
.kf-pill.kf-live::before {
	content: "";
	flex: none;
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background-color: var(--wp--custom--color--accent-text);
}

.kf-live::before {
	animation: kf-pulse 2s infinite;
}

@keyframes kf-pulse {

	0% {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--accent) 70%, transparent);
	}

	70% {
		box-shadow: 0 0 0 0.7em transparent;
	}

	100% {
		box-shadow: 0 0 0 0 transparent;
	}
}

/* Stats row: hairline-separated cells. */
.wp-block-columns.kf-stats {
	gap: 0 !important;
	border-block: 1px solid var(--wp--preset--color--line);
}

.wp-block-columns.kf-stats > .wp-block-column {
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
}

.wp-block-columns.kf-stats > .wp-block-column + .wp-block-column {
	border-inline-start: 1px solid var(--wp--preset--color--line);
}

/* Phones and tablets: 2 × 2 grid instead of a tall single column. */
@media (max-width: 781px) {

	.wp-block-columns.kf-stats {
		flex-wrap: wrap !important;
	}

	.wp-block-columns.kf-stats > .wp-block-column.wp-block-column {
		flex-basis: 50% !important;
		flex-grow: 0;
	}

	.wp-block-columns.kf-stats > .wp-block-column + .wp-block-column {
		border-inline-start: 0;
	}

	.wp-block-columns.kf-stats > .wp-block-column:nth-child(even) {
		border-inline-start: 1px solid var(--wp--preset--color--line);
	}

	.wp-block-columns.kf-stats > .wp-block-column:nth-child(n + 3) {
		border-block-start: 1px solid var(--wp--preset--color--line);
	}
}

/* Footer: brand and link columns side by side on desktop, stacked below. */
@media (max-width: 1023.98px) {

	.kf-footer-top > * {
		flex-basis: 100% !important;
	}
}

/* Giant outlined wordmark (used with the Site Title block in the footer). */
.kf-wordmark {
	font-size: clamp(3rem, 13.5vw, 13rem) !important;
	line-height: 0.88 !important;
	letter-spacing: -0.04em !important;
}

.kf-wordmark a {
	-webkit-text-fill-color: var(--kf-outline-fill, var(--wp--preset--color--base));
	-webkit-text-stroke: 0.025em color-mix(in srgb, var(--wp--preset--color--contrast) 28%, transparent);
	paint-order: stroke fill;
	transition: -webkit-text-stroke-color var(--wp--custom--motion--slow) var(--wp--custom--motion--ease);
}

.kf-wordmark a:hover {
	-webkit-text-stroke-color: var(--wp--custom--color--accent-text);
}

/* Cards that contain a link lift on hover. */
.is-style-card {
	transition:
		transform var(--wp--custom--motion--base) var(--wp--custom--motion--ease),
		border-color var(--wp--custom--motion--base) var(--wp--custom--motion--ease);
}

.is-style-card:has(a):hover {
	transform: translateY(-6px);
	border-color: var(--wp--preset--color--accent);
}

/* Slight tilt for marquee bands and stickers. */
.kf-tilt {
	transform: rotate(-2deg) scale(1.03);
}

/* Soft accent glow in the corner of a section. */
.kf-glow {
	position: relative;
	isolation: isolate;
}

.kf-glow::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset-block-start: -20%;
	inset-inline-end: -10%;
	width: min(70vw, 760px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent), transparent);
	pointer-events: none;
}

/* ==========================================================================
   Components used by the patterns
   ========================================================================== */

/*
 * Responsive grids without "orphan" cards: 4 → 2 → 1 and 3 → 1 columns.
 * Remove the kf-grid-* class to go back to the editor's grid settings.
 */
.wp-block-group.kf-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.wp-block-group.kf-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 1099.98px) {

	.wp-block-group.kf-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 899.98px) {

	.wp-block-group.kf-grid-3 {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.wp-block-group.kf-plans {
		max-width: 34rem !important;
	}
}

@media (max-width: 599.98px) {

	.wp-block-group.kf-grid-4:not(.kf-grid-phone-2) {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* Pills, chips and badges. */
.kf-pill,
.kf-chip,
.kf-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	width: fit-content;
	margin: 0;
	border-radius: var(--wp--custom--radius--pill);
	line-height: 1.2;
	white-space: nowrap;
}

.kf-pill {
	padding: 0.55em 1em;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent);
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	font-weight: 600;
}

.kf-chip {
	padding: 0.45em 0.9em;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent);
	color: var(--wp--preset--color--contrast-2);
	font-size: 0.75rem;
	font-weight: 500;
}

.kf-chip.kf-chip-accent {
	border-color: transparent;
	background-color: color-mix(in srgb, var(--wp--preset--color--accent) 16%, transparent);
	color: var(--wp--custom--color--accent-text);
	font-weight: 600;
}

.kf-badge {
	align-self: flex-start;
	padding: 0.45em 0.9em;
	background-color: var(--wp--preset--color--on-accent);
	color: var(--wp--preset--color--accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.kf-stars {
	margin: 0;
	color: var(--wp--custom--color--accent-text);
	letter-spacing: 0.15em;
	line-height: 1;
}

/* Hero photo with floating badges. */
.kf-hero-media {
	position: relative;
	isolation: isolate;
}

.kf-hero-media > .wp-block-image {
	margin: 0;
}

.kf-hero-media > .wp-block-image img {
	display: block;
	width: 100%;
}

.kf-hero-media::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	border-radius: var(--wp--custom--radius--media);
	background:
		linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--wp--preset--color--base) 85%, transparent)),
		linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--accent) 22%, transparent), transparent 42%);
	pointer-events: none;
}

@media (max-width: 781px) {

	.kf-hero-media > .wp-block-image img {
		aspect-ratio: 4 / 3 !important;
	}
}

.kf-float-top,
.kf-float-bottom {
	position: absolute;
	z-index: 2;
	margin: 0 !important;
}

.kf-float-top {
	inset-block-start: var(--wp--preset--spacing--30);
	inset-inline-start: var(--wp--preset--spacing--30);
}

.kf-float-bottom {
	inset-block-end: var(--wp--preset--spacing--30);
	inset-inline: var(--wp--preset--spacing--30);
}

.kf-float-bottom .wp-block-button__link {
	padding: 0.6rem 1.1rem;
	font-size: var(--wp--preset--font-size--small);
}

/* Numbered class cards: the title link makes the whole card clickable. */
.kf-class-card {
	position: relative;
	overflow: hidden;
}

.kf-class-card .wp-block-image {
	margin: 0;
	overflow: hidden;
}

.kf-class-card .wp-block-image img {
	display: block;
	width: 100%;
	transition:
		transform var(--wp--custom--motion--slow) var(--wp--custom--motion--ease),
		filter var(--wp--custom--motion--slow) var(--wp--custom--motion--ease);
}

.kf-class-card:hover .wp-block-image img {
	transform: scale(1.06);
	filter: none;
}

.kf-class-card :is(h2, h3, h4) a {
	color: inherit;
	text-decoration: none;
}

.kf-class-card :is(h2, h3, h4) a::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
}

.kf-card-num {
	margin: 0;
	color: var(--wp--custom--color--accent-text);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
}

/* Schedule rows. */
.kf-schedule-row {
	transition: background-color var(--wp--custom--motion--base) var(--wp--custom--motion--ease);
}

.kf-schedule-row:hover {
	background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 3%, transparent);
}

.kf-schedule-time {
	min-width: 6.5rem;
}

.kf-schedule-row .wp-block-button__link {
	padding: 0.6rem 1.25rem;
	font-size: var(--wp--preset--font-size--small);
}

/* Coach portraits: black and white, color on hover. */
.kf-photo-hover {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
}

.kf-photo-hover img {
	display: block;
	width: 100%;
	filter: grayscale(1) contrast(1.05);
	transition:
		filter var(--wp--custom--motion--slow) var(--wp--custom--motion--ease),
		transform var(--wp--custom--motion--slow) var(--wp--custom--motion--ease);
}

.kf-coach:hover .kf-photo-hover img,
.kf-photo-hover:hover img {
	filter: none;
	transform: scale(1.04);
}

/* Membership plans. */
.kf-plan > .kf-plan-cta {
	margin-top: auto !important;
	padding-top: var(--wp--preset--spacing--20);
}

.kf-plan-name {
	font-family: inherit;
	font-weight: 700;
	letter-spacing: 0.14em;
}

.kf-price-period,
.kf-plan-text {
	opacity: 0.72;
}

.kf-price-period {
	margin-bottom: 0.35em !important;
}

/* Testimonials. */
.kf-review > .kf-review-author {
	margin-top: auto !important;
}

.kf-avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	border-radius: 50%;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* Shop promo cards: photo with a glass caption; the title link covers the card. */
.kf-shop-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
}

.kf-shop-card > .wp-block-image {
	margin: 0;
}

.kf-shop-card > .wp-block-image img {
	display: block;
	width: 100%;
	transition: transform var(--wp--custom--motion--slow) var(--wp--custom--motion--ease);
}

.kf-shop-card:hover > .wp-block-image img {
	transform: scale(1.05);
}

.kf-shop-card :is(h2, h3, h4) a {
	color: inherit;
	text-decoration: none;
}

.kf-shop-card :is(h2, h3, h4) a::after {
	content: "";
	position: absolute;
	z-index: 3;
	inset: 0;
}

/* Two-column grid of large cards (2 → 1). */
.wp-block-group.kf-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 899.98px) {

	.wp-block-group.kf-grid-2 {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* Alternating photo/text rows: every second row is mirrored on desktop. */
@media (min-width: 782px) {

	.wp-block-columns.kf-zigzag-reverse {
		flex-direction: row-reverse;
	}
}

/* Duotone photos that switch to full color on hover. */
.kf-hover-color {
	overflow: hidden;
}

.kf-hover-color img {
	transition:
		filter var(--wp--custom--motion--slow) var(--wp--custom--motion--ease),
		transform var(--wp--custom--motion--slow) var(--wp--custom--motion--ease);
}

.wp-block-image.kf-hover-color:hover img {
	filter: none;
	transform: scale(1.03);
}

/* Coach profile cards: the photo fills the card edge to edge. */
.kf-coach-card {
	overflow: hidden;
}

.kf-coach-card .wp-block-columns {
	height: 100%;
}

.kf-coach-card .wp-block-image,
.kf-coach-card .kf-photo-hover {
	height: 100%;
	margin: 0;
	border-radius: 0;
}

.kf-coach-card .wp-block-image img {
	height: 100%;
	min-height: 100%;
}

@media (max-width: 781px) {

	.kf-coach-card .wp-block-image img {
		aspect-ratio: 4 / 3 !important;
		object-position: center 25%;
	}
}

/* Contact details: label and value rows. */
.kf-details p {
	margin: 0;
}

/* Stylized map drawn with CSS: streets, a park and a pulsing pin. */
.kf-map {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-color: var(--wp--preset--color--base-2);
	background-image:
		radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--wp--preset--color--accent) 16%, transparent) 0, transparent 34%),
		radial-gradient(ellipse 15% 10% at 80% 20%, color-mix(in srgb, var(--wp--preset--color--accent) 6%, transparent) 0 96%, transparent 100%),
		radial-gradient(ellipse 9% 7% at 14% 82%, color-mix(in srgb, var(--wp--preset--color--accent) 5%, transparent) 0 96%, transparent 100%),
		linear-gradient(28deg, transparent calc(50% - 7px), color-mix(in srgb, var(--wp--preset--color--contrast) 13%, transparent) calc(50% - 7px) calc(50% + 7px), transparent calc(50% + 7px)),
		linear-gradient(-62deg, transparent calc(58% - 4px), color-mix(in srgb, var(--wp--preset--color--contrast) 9%, transparent) calc(58% - 4px) calc(58% + 4px), transparent calc(58% + 4px)),
		repeating-linear-gradient(0deg, transparent 0 54px, color-mix(in srgb, var(--wp--preset--color--contrast) 6%, transparent) 54px 57px),
		repeating-linear-gradient(90deg, transparent 0 78px, color-mix(in srgb, var(--wp--preset--color--contrast) 6%, transparent) 78px 81px);
}

.kf-map::before {
	content: "";
	position: absolute;
	top: 46%;
	left: 50%;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 1;
	width: 1.25rem;
	height: 1.25rem;
	border: 4px solid var(--wp--preset--color--base);
	background-color: var(--wp--custom--color--accent-text);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--accent) 60%, transparent);
	animation: kf-pin 2.4s infinite;
}

@keyframes kf-pin {

	0% {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--accent) 60%, transparent);
	}

	70% {
		box-shadow: 0 0 0 1.75rem transparent;
	}

	100% {
		box-shadow: 0 0 0 0 transparent;
	}
}

.kf-map .kf-map-label {
	position: absolute;
	z-index: 2;
	top: calc(46% + 1.5rem);
	left: 50%;
	margin: 0 !important;
	transform: translateX(-50%);
}

/* Mobile booking bar: fixed at the bottom on phones and small tablets. */
.kf-mobile-cta {
	display: none;
}

@media (max-width: 781px) {

	.kf-mobile-cta {
		display: block;
		position: fixed;
		z-index: 90;
		inset-inline: 0.75rem;
		bottom: max(0.75rem, env(safe-area-inset-bottom));
		max-width: none !important;
		margin: 0 !important;
		padding: 0.5rem;
		border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
		border-radius: var(--wp--custom--radius--pill);
		background-color: color-mix(in srgb, var(--wp--preset--color--base-2) 82%, transparent);
		-webkit-backdrop-filter: blur(16px) saturate(140%);
		backdrop-filter: blur(16px) saturate(140%);
		box-shadow: var(--wp--preset--shadow--soft);
	}

	.kf-mobile-cta .wp-block-buttons {
		gap: 0.5rem;
	}

	.kf-mobile-cta .wp-block-button:first-child {
		flex: 1;
	}

	.kf-mobile-cta .wp-block-button:first-child .wp-block-button__link {
		width: 100%;
	}

	.kf-mobile-cta .wp-block-button__link {
		padding: 0.8rem 1.1rem;
		font-size: var(--wp--preset--font-size--small);
	}

	body:has(.kf-mobile-cta) {
		padding-bottom: 5.5rem;
	}
}

/* In the editor, show the bar in the normal flow so it can be edited. */
.editor-styles-wrapper .kf-mobile-cta {
	display: block;
	position: static;
}

/* Hero entrance: content rises in once on page load. */
.kf-rise {
	animation: kf-rise 0.9s var(--wp--custom--motion--ease) both;
}

.kf-rise.kf-delay-1 {
	animation-delay: 0.12s;
}

.kf-rise.kf-delay-2 {
	animation-delay: 0.24s;
}

.kf-rise.kf-delay-3 {
	animation-delay: 0.36s;
}

@keyframes kf-rise {
	from {
		opacity: 0;
		transform: translateY(1.5rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   Scroll-driven motion (CSS only, no JavaScript)
   Progressive enhancement: browsers without support simply show the content.
   ========================================================================== */

@supports (animation-timeline: view()) {

	@media (prefers-reduced-motion: no-preference) {

		/* Finishes after the first ~180px of an element enter the screen, whatever its height. */
		.kf-reveal {
			animation: kf-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 180px;
		}

		.kf-reveal-scale {
			animation: kf-reveal-scale linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 220px;
		}

		.kf-parallax :is(img, .wp-block-cover__image-background) {
			animation: kf-parallax linear both;
			animation-timeline: view();
			animation-range: cover;
		}
	}
}

@keyframes kf-reveal {
	from {
		opacity: 0;
		transform: translateY(3rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes kf-reveal-scale {
	from {
		opacity: 0;
		transform: scale(0.94);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes kf-parallax {
	from {
		transform: scale(1.15) translateY(-4%);
	}

	to {
		transform: scale(1.15) translateY(4%);
	}
}

/* Keep the editor calm and fully visible while editing. */
.editor-styles-wrapper :is(.kf-reveal, .kf-reveal-scale, .kf-rise),
.editor-styles-wrapper .kf-parallax :is(img, .wp-block-cover__image-background) {
	animation: none;
}

/* ==========================================================================
   Accessibility: respect reduced-motion preferences everywhere.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
