/*
 * IB Effects — front-end styles. Loaded only on pages that use an effect.
 * Values arrive as sanitised custom properties (--ibfx-<fx>-<param>) from Elementor's post CSS.
 * Rules of this file:
 *  - transform/opacity first; individual transform properties (translate/rotate/scale) so Elementor's own
 *    Transform and Motion Effects on the same element keep working;
 *  - every hidden starting state is behind (prefers-reduced-motion: no-preference) and (scripting: enabled),
 *    never in Elementor's cached CSS, and released by a 3 s fail-safe if the script never runs;
 *  - "off on mobile/tablet" and reduced motion give a calm, fully visible version.
 * Breakpoints follow Elementor's defaults (mobile <= 767px, tablet <= 1024px).
 */

@property --ibfx-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --ibfx-reveal { syntax: '<percentage>'; inherits: true; initial-value: 0%; }

:where(.ibfx--gbg, .ibfx--gborder, .ibfx--shine, .ibfx--tilt, .ibfx--marquee, .ibfx--fan):not(.elementor-absolute):not(.elementor-fixed) {
	position: relative;
}

/* ---------- Animated gradient background ---------- */
.ibfx--gbg { isolation: isolate; }
.ibfx--gbg::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	pointer-events: none;
	background-image: linear-gradient(var(--ibfx-gbg-angle, 135deg), var(--ibfx-gbg-stops), var(--ibfx-gbg-c1));
	background-size: 300% 300%;
	animation: ibfx-gbg var(--ibfx-gbg-speed, 10s) ease-in-out infinite alternate;
}
.ibfx--gbg.ibfx-gbg-radial::after {
	background-image: radial-gradient(circle at 30% 30%, var(--ibfx-gbg-stops));
}
/* 0.4.1: how many colours (2–6; 4 is the 0.1.0 gradient, an empty 4th colour repeating the 1st), and a turning
   gradient instead of a sliding one. */
.ibfx--gbg { --ibfx-gbg-stops: var(--ibfx-gbg-c1), var(--ibfx-gbg-c2), var(--ibfx-gbg-c3), var(--ibfx-gbg-c4); }
.ibfx-gbg-n2 { --ibfx-gbg-stops: var(--ibfx-gbg-c1), var(--ibfx-gbg-c2); }
.ibfx-gbg-n3 { --ibfx-gbg-stops: var(--ibfx-gbg-c1), var(--ibfx-gbg-c2), var(--ibfx-gbg-c3); }
.ibfx-gbg-n5 { --ibfx-gbg-stops: var(--ibfx-gbg-c1), var(--ibfx-gbg-c2), var(--ibfx-gbg-c3), var(--ibfx-gbg-c4), var(--ibfx-gbg-c5); }
.ibfx-gbg-n6 { --ibfx-gbg-stops: var(--ibfx-gbg-c1), var(--ibfx-gbg-c2), var(--ibfx-gbg-c3), var(--ibfx-gbg-c4), var(--ibfx-gbg-c5), var(--ibfx-gbg-c6); }
.ibfx--gbg.ibfx-gbg-rotate::after {
	background-image: linear-gradient(calc(var(--ibfx-gbg-angle, 135deg) + var(--ibfx-angle)), var(--ibfx-gbg-stops), var(--ibfx-gbg-c1));
	background-size: 100% 100%;
	animation: ibfx-spin-angle var(--ibfx-gbg-speed, 10s) linear infinite;
}
.ibfx--gbg.ibfx-gbg-rotate.ibfx-gbg-radial::after { background-image: conic-gradient(from var(--ibfx-angle), var(--ibfx-gbg-stops), var(--ibfx-gbg-c1)); }
@keyframes ibfx-gbg { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- Gradient text ---------- */
.ibfx--gtext :is(.elementor-heading-title, h1, h2, h3, h4, h5, h6, p, li, blockquote) {
	background-image: linear-gradient(var(--ibfx-gtext-angle, 90deg), var(--ibfx-gtext-stops));
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.ibfx--gtext :is(.elementor-heading-title, h1, h2, h3, h4, h5, h6, p, li, blockquote) :is(a, span, strong, em, b, i, mark) {
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.ibfx--gtext.ibfx-gtext-animate :is(.elementor-heading-title, h1, h2, h3, h4, h5, h6, p, li, blockquote) {
	animation: ibfx-gtext var(--ibfx-gtext-speed, 6s) linear infinite alternate;
}
@keyframes ibfx-gtext { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
/* 0.4.1: colour count (3 = the 0.1.0 gradient, an empty 3rd colour repeating the 1st) and a turning gradient. */
.ibfx--gtext { --ibfx-gtext-stops: var(--ibfx-gtext-c1), var(--ibfx-gtext-c2), var(--ibfx-gtext-c3); }
.ibfx-gtext-n2 { --ibfx-gtext-stops: var(--ibfx-gtext-c1), var(--ibfx-gtext-c2); }
.ibfx-gtext-n4 { --ibfx-gtext-stops: var(--ibfx-gtext-c1), var(--ibfx-gtext-c2), var(--ibfx-gtext-c3), var(--ibfx-gtext-c4); }
.ibfx-gtext-n5 { --ibfx-gtext-stops: var(--ibfx-gtext-c1), var(--ibfx-gtext-c2), var(--ibfx-gtext-c3), var(--ibfx-gtext-c4), var(--ibfx-gtext-c5); }
.ibfx-gtext-n6 { --ibfx-gtext-stops: var(--ibfx-gtext-c1), var(--ibfx-gtext-c2), var(--ibfx-gtext-c3), var(--ibfx-gtext-c4), var(--ibfx-gtext-c5), var(--ibfx-gtext-c6); }
.ibfx--gtext.ibfx-gtext-animate.ibfx-gtext-rotate :is(.elementor-heading-title, h1, h2, h3, h4, h5, h6, p, li, blockquote) {
	background-image: linear-gradient(calc(var(--ibfx-gtext-angle, 90deg) + var(--ibfx-angle)), var(--ibfx-gtext-stops));
	background-size: 100% 100%;
	animation: ibfx-spin-angle var(--ibfx-gtext-speed, 6s) linear infinite;
}

/* ---------- Gradient border ---------- */
.ibfx--gborder::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	padding: var(--ibfx-gborder-width, 2px);
	border-radius: inherit;
	pointer-events: none;
	background: conic-gradient(from var(--ibfx-angle), var(--ibfx-gborder-stops), var(--ibfx-gborder-c1));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: ibfx-spin-angle var(--ibfx-gborder-speed, 6s) linear infinite;
}
@keyframes ibfx-spin-angle { to { --ibfx-angle: 360deg; } }
/* 0.4.1: colour count (3 = the 0.1.0 border) and the other direction. */
.ibfx--gborder { --ibfx-gborder-stops: var(--ibfx-gborder-c1), var(--ibfx-gborder-c2), var(--ibfx-gborder-c3); }
.ibfx-gborder-n2 { --ibfx-gborder-stops: var(--ibfx-gborder-c1), var(--ibfx-gborder-c2); }
.ibfx-gborder-n4 { --ibfx-gborder-stops: var(--ibfx-gborder-c1), var(--ibfx-gborder-c2), var(--ibfx-gborder-c3), var(--ibfx-gborder-c4); }
.ibfx-gborder-n5 { --ibfx-gborder-stops: var(--ibfx-gborder-c1), var(--ibfx-gborder-c2), var(--ibfx-gborder-c3), var(--ibfx-gborder-c4), var(--ibfx-gborder-c5); }
.ibfx-gborder-n6 { --ibfx-gborder-stops: var(--ibfx-gborder-c1), var(--ibfx-gborder-c2), var(--ibfx-gborder-c3), var(--ibfx-gborder-c4), var(--ibfx-gborder-c5), var(--ibfx-gborder-c6); }
.ibfx--gborder.ibfx-gborder-reverse::before { animation-direction: reverse; }

/* 0.4.1: the radius the visitor sees. On a widget Elementor puts the border radius on its inner container (or the
   image or button has its own): ibfx-core.js copies it here, so every effect layer (border-radius: inherit) and the
   shine's clipping follow the same corners. */
.has-ibfx-r { border-radius: var(--ibfx-r); }

/* ---------- Shine (layer added by ibfx-core.js) ---------- */
.ibfx.ibfx--shine { overflow: hidden; } /* two classes: Elementor's .e-con { overflow: var(--overflow) } (0.4.1 fix) */
.ibfx-shine {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	overflow: hidden;
	border-radius: inherit;
}
.ibfx-shine::before {
	content: "";
	position: absolute;
	inset-block: -50%;
	inset-inline-start: 0;
	width: var(--ibfx-shine-width, 35%);
	background: linear-gradient(90deg, transparent, var(--ibfx-shine-color), transparent);
	rotate: var(--ibfx-shine-angle, 20deg);
	translate: -150% 0;
}
.ibfx--shine:hover .ibfx-shine:not(.is-loop)::before,
.ibfx--shine:focus-within .ibfx-shine:not(.is-loop)::before {
	transition: translate var(--ibfx-shine-duration, .9s) ease;
	translate: 400% 0;
}
.ibfx-shine.is-loop::before { animation: ibfx-shine calc(var(--ibfx-shine-duration, .9s) * 3) ease-in-out infinite; }
@keyframes ibfx-shine { 0% { translate: -150% 0; } 33%, 100% { translate: 400% 0; } }

/* ---------- Float / spin loop ---------- */
.ibfx--float { animation: ibfx-float var(--ibfx-float-duration, 6s) var(--ibfx-float-easing, ease-in-out) var(--ibfx-float-delay, 0s) infinite; }
.ibfx--float.ibfx-float-reverse { animation-direction: reverse; }
.ibfx--float.ibfx-float-spin { animation-name: ibfx-spin; animation-timing-function: linear; }
@keyframes ibfx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(var(--ibfx-float-distance, 10px) * -1); } }
@keyframes ibfx-spin { to { rotate: 360deg; } }

/* ---------- Background blur (glass) ---------- */
.ibfx--blur {
	-webkit-backdrop-filter: blur(var(--ibfx-blur-amount, 12px)) saturate(var(--ibfx-blur-saturate, 140%));
	backdrop-filter: blur(var(--ibfx-blur-amount, 12px)) saturate(var(--ibfx-blur-saturate, 140%));
	box-shadow: inset 0 0 0 100vmax var(--ibfx-blur-tint, transparent);
}

/* ---------- Scroll box ---------- */
.ibfx--scrollbox:not(:has(> .elementor-widget-container)),
.ibfx--scrollbox > .elementor-widget-container {
	max-height: calc(var(--ibfx-scrollbox-lines, 8) * 1.5em);
	max-height: calc(var(--ibfx-scrollbox-lines, 8) * 1lh);
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	padding-inline-end: var(--ibfx-scrollbox-gap, 6px);
	scrollbar-width: thin;
	scrollbar-color: var(--ibfx-scrollbox-bar-color) transparent;
}
.ibfx--scrollbox ::-webkit-scrollbar, .ibfx--scrollbox::-webkit-scrollbar { width: var(--ibfx-scrollbox-bar-width, 5px); }
.ibfx--scrollbox ::-webkit-scrollbar-track, .ibfx--scrollbox::-webkit-scrollbar-track { background: transparent; }
.ibfx--scrollbox ::-webkit-scrollbar-thumb, .ibfx--scrollbox::-webkit-scrollbar-thumb { background: var(--ibfx-scrollbox-bar-color); border-radius: 20px; }

/* ---------- 3D tilt ---------- */
.ibfx--tilt { transform-style: preserve-3d; will-change: transform; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.ibfx--tilt.is-ibfx-active { transition-duration: .08s; }
.ibfx-glare {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	border-radius: inherit;
	overflow: hidden;
	opacity: 0;
	transition: opacity .3s;
	background: radial-gradient(circle at var(--ibfx-gx, 50%) var(--ibfx-gy, 50%), rgba(255,255,255,var(--ibfx-tilt-glare-opacity, .35)), transparent 60%);
}
.ibfx--tilt.is-ibfx-active .ibfx-glare { opacity: 1; }

/* ---------- Marquee (track built by ibfx-core.js) ---------- */
.ibfx--marquee.is-ibfx-ready, .ibfx--marquee.is-ibfx-ready > .e-con-inner { overflow: hidden; flex-wrap: nowrap; }
.ibfx--marquee.is-ibfx-ready.ibfx-marquee-fade {
	-webkit-mask: linear-gradient(90deg, transparent, #000 var(--ibfx-marquee-fade), #000 calc(100% - var(--ibfx-marquee-fade)), transparent);
	mask: linear-gradient(90deg, transparent, #000 var(--ibfx-marquee-fade), #000 calc(100% - var(--ibfx-marquee-fade)), transparent);
}
.ibfx-marquee__track {
	display: flex;
	flex: none;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--ibfx-marquee-gap, 40px);
	padding-inline-end: var(--ibfx-marquee-gap, 40px);
	width: max-content;
	animation: ibfx-marquee var(--ibfx-marquee-dur, 30s) linear infinite;
}
.ibfx-marquee__track > * { flex: none !important; }
.ibfx--marquee.ibfx-marquee-end .ibfx-marquee__track { animation-direction: reverse; }
.ibfx--marquee.ibfx-marquee-pause:hover .ibfx-marquee__track,
.ibfx--marquee.ibfx-marquee-pause:focus-within .ibfx-marquee__track { animation-play-state: paused; }
@keyframes ibfx-marquee { to { translate: -50% 0; } }
[dir="rtl"] .ibfx-marquee__track { animation-name: ibfx-marquee-rtl; }
@keyframes ibfx-marquee-rtl { to { translate: 50% 0; } }

/* Loops pause off screen (set by ibfx-core.js). */
.is-ibfx-paused, .is-ibfx-paused::before, .is-ibfx-paused::after, .is-ibfx-paused .ibfx-shine::before,
.is-ibfx-paused :is(.ibfx-marquee__track, .elementor-heading-title, h1, h2, h3, h4, h5, h6, p, li, blockquote) { animation-play-state: paused !important; }

/* ---------- Staggered reveal ---------- */
.ibfx--stagger > :not(.e-con-inner, .elementor-container, .elementor-widget-wrap, .ibfx-layer, .elementor-shape, [class*="elementor-background"]),
.ibfx--stagger > :is(.e-con-inner, .elementor-container, .elementor-widget-wrap) > * {
	transition-property: opacity, translate, scale, filter, clip-path;
	transition-duration: var(--ibfx-stagger-duration, 700ms);
	transition-timing-function: var(--ibfx-stagger-easing, ease-out);
	transition-delay: calc(var(--ibfx-i, 0) * var(--ibfx-stagger-step, 120ms));
	clip-path: var(--ibfx-stagger-clip-to, none);
}

/* ---------- Painting reveal ---------- */
.ibfx--paint.is-ibfx-smooth { transition: --ibfx-reveal .25s linear; }

/* ---------- Text on scroll (words split by ibfx-scroll.js) ---------- */
.ibfx-word { display: inline-block; white-space: pre; }
.ibfx--tscroll.ibfx-tscroll-mask .ibfx-word { overflow: clip; overflow-clip-margin: .2em; vertical-align: bottom; }
.ibfx--tscroll.ibfx-tscroll-mask .ibfx-word > span { display: inline-block; }

/* ---------- Pinned horizontal scroll ---------- */
.ibfx--hscroll.is-ibfx-ready { overflow: visible; }
.ibfx--hscroll.is-ibfx-ready > .ibfx-hscroll__view,
.ibfx--hscroll.is-ibfx-ready > .e-con-inner > .ibfx-hscroll__view { position: sticky; top: var(--ibfx-hscroll-offset, 0px); overflow: hidden; }
.ibfx-hscroll__track { display: flex; flex-wrap: nowrap !important; width: max-content !important; max-width: none !important; will-change: transform; }
.ibfx-hscroll__track > * { flex: none !important; }
.ibfx-hscroll__line {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	height: var(--ibfx-hscroll-line-width, 2px);
	background: var(--ibfx-hscroll-line-color, currentColor);
	transform-origin: left center;
	scale: var(--ibfx-p, 0) 1;
	pointer-events: none;
	z-index: 2;
}
[dir="rtl"] .ibfx-hscroll__line { transform-origin: right center; }
.ibfx--hscroll.ibfx-hscroll-activate .ibfx-hscroll__track > * { opacity: .35; transition: opacity .35s; }
.ibfx--hscroll.ibfx-hscroll-activate .ibfx-hscroll__track > .is-ibfx-active { opacity: 1; }
/* Native swipe row (editor, reduced motion, "swipe" on mobile) and vertical stack: class set on the track. */
.ibfx-hscroll__swipe {
	flex-wrap: nowrap !important;
	overflow-x: auto !important; /* Elementor's .e-con { overflow: var(--overflow) } has the same weight */
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
}
.ibfx-hscroll__swipe > * { flex: none !important; scroll-snap-align: start; }
.ibfx-hscroll__stack { flex-direction: column !important; flex-wrap: nowrap !important; }
.ibfx-hscroll__stack > * { width: 100% !important; }

/* ---------- Card fan ---------- */
.ibfx--fan.is-ibfx-ready { touch-action: pan-y; user-select: none; }
.ibfx-fan__stage { position: relative; width: 100%; }
/* Rotated cards must never widen the page; clip (unlike hidden) creates no scroll container. */
.ibfx--fan.is-ibfx-ready { overflow-x: clip; overflow-clip-margin: 0; }
.ibfx-fan__card {
	position: absolute !important;
	inset-inline-start: 50%;
	top: 0;
	margin-inline-start: calc(var(--ibfx-cw, 300px) / -2);
	width: var(--ibfx-cw, 300px);
	transform-origin: 50% var(--ibfx-origin, 900px);
	rotate: var(--ibfx-a, 0deg);
	transition: rotate .5s cubic-bezier(.22,1,.36,1), scale .3s;
	will-change: rotate;
}
.ibfx--fan.is-ibfx-scrubbing .ibfx-fan__card { transition: scale .3s; }
.ibfx-fan__card.is-ibfx-active { z-index: 50; scale: 1.04; }
.ibfx-fan__nav { position: absolute; inset-block-end: 0; inset-inline: 0; display: flex; justify-content: center; gap: 12px; z-index: 60; pointer-events: none; }
.ibfx-fan__nav button {
	pointer-events: auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.ibfx-fan__nav button:focus-visible, .ibfx--fan:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.is-ibfx-row.ibfx-fan__stage, .is-ibfx-row .ibfx-fan__stage {
	display: flex;
	flex-wrap: nowrap !important;
	height: auto !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 16px;
}
.ibfx--fan.is-ibfx-row .ibfx-fan__card { position: relative !important; inset: auto; margin: 0; rotate: none; scroll-snap-align: center; flex: none !important; }

/* ---------- Hidden starting states (only with motion + script) ---------- */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
	body:not(.ibfx-kit-reduce) .ibfx--stagger:not(.is-ibfx-in) > :not(.e-con-inner, .elementor-container, .elementor-widget-wrap, .ibfx-layer, .elementor-shape, [class*="elementor-background"]),
	body:not(.ibfx-kit-reduce) .ibfx--stagger:not(.is-ibfx-in) > :is(.e-con-inner, .elementor-container, .elementor-widget-wrap) > * {
		opacity: var(--ibfx-stagger-o, 0);
		translate: calc(var(--ibfx-stagger-tx, 0px) * var(--ibfx-sign, -1)) var(--ibfx-stagger-ty, 40px);
		scale: var(--ibfx-stagger-s, 1);
		filter: blur(var(--ibfx-stagger-b, 0px));
		clip-path: var(--ibfx-stagger-clip, none);
		transition-delay: 0s;
	}
	body:not(.ibfx-kit-reduce) .ibfx--paint:not(.is-ibfx-off):not(.is-ibfx-done) {
		-webkit-mask-image: var(--ibfx-paint-mask);
		mask-image: var(--ibfx-paint-mask);
		-webkit-mask-size: 100% 100%;
		mask-size: 100% 100%;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		clip-path: var(--ibfx-paint-clip);
	}
	[dir="rtl"] body:not(.ibfx-kit-reduce) .ibfx--paint:not(.is-ibfx-off):not(.is-ibfx-done) {
		-webkit-mask-image: var(--ibfx-paint-mask-rtl, var(--ibfx-paint-mask));
		mask-image: var(--ibfx-paint-mask-rtl, var(--ibfx-paint-mask));
		clip-path: var(--ibfx-paint-clip-rtl, var(--ibfx-paint-clip));
	}
	/* Fail-safe: if the script has not started within 3 s (blocked, failed), show everything. */
	html:not(.ibfx-ready) body:not(.ibfx-kit-reduce) .ibfx--stagger:not(.is-ibfx-in) > :not(.e-con-inner, .elementor-container, .elementor-widget-wrap, .ibfx-layer, .elementor-shape, [class*="elementor-background"]),
	html:not(.ibfx-ready) body:not(.ibfx-kit-reduce) .ibfx--stagger:not(.is-ibfx-in) > :is(.e-con-inner, .elementor-container, .elementor-widget-wrap) > * { animation: ibfx-failsafe .01s 3s forwards; }
	html:not(.ibfx-ready) body:not(.ibfx-kit-reduce) .ibfx--paint:not(.is-ibfx-off) { animation: ibfx-failsafe-reveal .01s 3s forwards; }
}
@keyframes ibfx-failsafe { to { opacity: 1; translate: none; scale: none; filter: none; clip-path: none; } }
@keyframes ibfx-failsafe-reveal { to { --ibfx-reveal: 200%; } }
[dir="rtl"] { --ibfx-sign: 1; }

/* ---------- Off on mobile / tablet (per effect and site-wide) ---------- */
@media (max-width: 1024px) {
	:is(.ibfx--gbg--off-tablet)::after, :is(.ibfx--gborder--off-tablet)::before { display: none; }
	.ibfx--gtext--off-tablet :is(.elementor-heading-title, h1, h2, h3, h4, h5, h6, p, li, blockquote),
	.ibfx--gtext--off-tablet :is(.elementor-heading-title, h1, h2, h3, h4, h5, h6, p, li, blockquote) * { background-image: none; -webkit-text-fill-color: currentColor; color: inherit; }
	.ibfx--float--off-tablet { animation: none; }
	.ibfx--blur--off-tablet { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
	.ibfx--scrollbox--off-tablet:not(:has(> .elementor-widget-container)), .ibfx--scrollbox--off-tablet > .elementor-widget-container { max-height: none; overflow: visible; padding-inline-end: 0; }
}
@media (max-width: 767px) {
	:is(.ibfx--gbg--off-mobile, .ibfx-kit-mobile-off .ibfx--gbg)::after, :is(.ibfx--gborder--off-mobile, .ibfx-kit-mobile-off .ibfx--gborder)::before { display: none; }
	:is(.ibfx--gtext--off-mobile, .ibfx-kit-mobile-off .ibfx--gtext) :is(.elementor-heading-title, h1, h2, h3, h4, h5, h6, p, li, blockquote),
	:is(.ibfx--gtext--off-mobile, .ibfx-kit-mobile-off .ibfx--gtext) :is(.elementor-heading-title, h1, h2, h3, h4, h5, h6, p, li, blockquote) * { background-image: none; -webkit-text-fill-color: currentColor; color: inherit; }
	:is(.ibfx--float--off-mobile, .ibfx-kit-mobile-off .ibfx--float) { animation: none; }
	:is(.ibfx--blur--off-mobile, .ibfx-kit-mobile-off .ibfx--blur) { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
	:is(.ibfx--scrollbox--off-mobile, .ibfx-kit-mobile-off .ibfx--scrollbox):not(:has(> .elementor-widget-container)),
	:is(.ibfx--scrollbox--off-mobile, .ibfx-kit-mobile-off .ibfx--scrollbox) > .elementor-widget-container { max-height: none; overflow: visible; padding-inline-end: 0; }
}

/* ---------- Reduced motion: calm, fully visible versions ---------- */
@media (prefers-reduced-motion: reduce) {
	.ibfx--gbg::after, .ibfx--gborder::before, .ibfx--float, .ibfx-shine::before, .ibfx-marquee__track,
	.ibfx--gtext :is(.elementor-heading-title, h1, h2, h3, h4, h5, h6, p, li, blockquote) { animation: none !important; }
	.ibfx-shine { display: none; }
	.ibfx--tilt { transform: none !important; }
	.ibfx-fan__card, .ibfx--paint.is-ibfx-smooth { transition: none !important; }
}
.ibfx-kit-reduce .ibfx--gbg::after, .ibfx-kit-reduce .ibfx--gborder::before, .ibfx-kit-reduce .ibfx-shine::before,
.ibfx-kit-reduce :is(.ibfx--float, .ibfx-marquee__track),
.ibfx-kit-reduce .ibfx--gtext :is(.elementor-heading-title, h1, h2, h3, h4, h5, h6, p, li, blockquote) { animation: none !important; }
.ibfx-kit-reduce .ibfx-shine { display: none; }
.ibfx-kit-reduce .ibfx--tilt { transform: none !important; }

/* =========================================================================================================
 * 0.2.0 — frame that opens on scroll, scroll progress bar, and CSS scroll-driven animations where they fit.
 * animation-timeline (Chromium, Safari 26+) drives frame, progress, painting (trigger "itself") and fading text out
 * without any script per frame; elsewhere ibfx-scroll.js updates the same custom properties.
 * Note: `animation` resets animation-timeline, so the timeline always comes after it.
 * ========================================================================================================= */
@property --ibfx-fp { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --ibfx-pp { syntax: '<number>'; inherits: true; initial-value: 0; }

/* ---------- Frame that opens on scroll ---------- */
.ibfx--frame:not(.is-ibfx-off) {
	clip-path: inset(calc(var(--ibfx-frame-inset, 12%) * (1 - var(--ibfx-fp))) round max(calc(var(--ibfx-frame-radius, 32px) * (1 - var(--ibfx-fp))), var(--ibfx-r1, 0px)));
}
@keyframes ibfx-frame { from { --ibfx-fp: 0; } to { --ibfx-fp: 1; } }

/* ---------- Scroll progress bar ---------- */
.ibfx--progress { min-height: var(--ibfx-progress-height, 4px); }
.ibfx--progress:not(.elementor-absolute):not(.elementor-fixed):not(.ibfx-progress-top):not(.ibfx-progress-bottom) { position: relative; }
.ibfx--progress::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	height: var(--ibfx-progress-height, 4px);
	background: var(--ibfx-progress-color, currentColor);
	transform-origin: left center;
	scale: var(--ibfx-pp) 1;
	pointer-events: none;
	z-index: 2;
}
[dir="rtl"] .ibfx--progress::before { transform-origin: right center; }
.ibfx--progress.ibfx-progress-top, .ibfx--progress.ibfx-progress-bottom {
	position: fixed !important;
	inset-inline: 0 !important;
	width: 100% !important;
	max-width: none !important;
	height: var(--ibfx-progress-height, 4px) !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	z-index: 9999;
}
.ibfx--progress.ibfx-progress-top { top: 0; }
.ibfx--progress.ibfx-progress-bottom { bottom: 0; }
.admin-bar .ibfx--progress.ibfx-progress-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .ibfx--progress.ibfx-progress-top { top: 46px; } }
@keyframes ibfx-progress { from { --ibfx-pp: 0; } to { --ibfx-pp: 1; } }

@supports (animation-timeline: scroll()) {
	/* Scroll position is information, not decoration: the bar follows the page even with reduced motion. */
	.ibfx--progress::before { animation: ibfx-progress linear both; animation-timeline: scroll(root block); }
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		html body:not(.ibfx-kit-reduce) .ibfx--frame:not(.is-ibfx-off) {
			animation: ibfx-frame linear both;
			animation-timeline: view();
			animation-range: cover var(--ibfx-frame-from, 10vh) cover var(--ibfx-frame-to, 70vh);
		}
		html body:not(.ibfx-kit-reduce) .ibfx--paint.ibfx-paint-self:not(.is-ibfx-off):not(.is-ibfx-done) {
			animation: ibfx-paint linear both;
			animation-timeline: view();
			animation-range: cover var(--ibfx-paint-from, 10vh) cover var(--ibfx-paint-to, 70vh);
		}
		html body:not(.ibfx-kit-reduce) .ibfx--tscroll.ibfx-tscroll-out:not(.is-ibfx-off) {
			animation: ibfx-tout linear both;
			animation-timeline: view();
			animation-range: cover calc(100% - 50vh) cover 100%;
		}
	}
}
@keyframes ibfx-paint { from { --ibfx-reveal: 0%; } to { --ibfx-reveal: var(--ibfx-paint-max, 110%); } }
@keyframes ibfx-tout { to { opacity: 0; translate: 0 -40px; filter: blur(var(--ibfx-tscroll-blur, 0px)); } }

/* Calm and "off" versions of the 0.2.0 effects. */
@media (prefers-reduced-motion: reduce) {
	.ibfx--frame { clip-path: none !important; }
}
.ibfx-kit-reduce .ibfx--frame { clip-path: none !important; }
@media (max-width: 1024px) {
	.ibfx--frame--off-tablet { clip-path: none !important; animation: none !important; }
	.ibfx--progress--off-tablet::before { display: none; }
}
@media (max-width: 767px) {
	:is(.ibfx--frame--off-mobile, .ibfx-kit-mobile-off .ibfx--frame) { clip-path: none !important; animation: none !important; }
	:is(.ibfx--progress--off-mobile, .ibfx-kit-mobile-off .ibfx--progress)::before { display: none; }
}

/* ---------- Atomic text widgets (Elementor 4): the class sits on the text element itself ---------- */
:is(h1, h2, h3, h4, h5, h6, p, li, blockquote).ibfx--gtext {
	background-image: linear-gradient(var(--ibfx-gtext-angle, 90deg), var(--ibfx-gtext-c1), var(--ibfx-gtext-c2), var(--ibfx-gtext-c3));
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
:is(h1, h2, h3, h4, h5, h6, p, li, blockquote).ibfx--gtext :is(a, span, strong, em, b, i, mark) { -webkit-text-fill-color: transparent; color: transparent; }
:is(h1, h2, h3, h4, h5, h6, p, li, blockquote).ibfx--gtext.ibfx-gtext-animate { animation: ibfx-gtext var(--ibfx-gtext-speed, 6s) linear infinite alternate; }
@media (prefers-reduced-motion: reduce) { :is(h1, h2, h3, h4, h5, h6, p, li, blockquote).ibfx--gtext { animation: none !important; } }
.ibfx-kit-reduce :is(h1, h2, h3, h4, h5, h6, p, li, blockquote).ibfx--gtext { animation: none !important; }
@media (max-width: 1024px) { :is(h1, h2, h3, h4, h5, h6, p, li, blockquote).ibfx--gtext--off-tablet { background-image: none; -webkit-text-fill-color: currentColor; color: inherit; } }
@media (max-width: 767px) {
	:is(h1, h2, h3, h4, h5, h6, p, li, blockquote):is(.ibfx--gtext--off-mobile, .ibfx-kit-mobile-off .ibfx--gtext) { background-image: none; -webkit-text-fill-color: currentColor; color: inherit; }
}
