/* ClickTraces Ã¢â‚¬â€œ Team Cards (ct-team-cards)
 * Everything is a CSS variable on .ct-tc, so Elementor controls override it.
 * Grid columns come from the "Cards per Row" control (4 / 2 / 1 by default).
 * Animations use transform/opacity only; the reveal is armed by JS for cards below the fold. */

.ct-tc {
	--tc-cols: 4;
	--tc-gap-x: 15px;
	--tc-gap-y: 40px;
	--tc-ratio: 114.8;
	--tc-radius: 6px;
	--tc-c1: #ffffff;
	--tc-c2: #5d32ff;
	--tc-angle: 180deg;
	--tc-img-h: 96.4%;
	--tc-img-y: 0px;
	--tc-pos: 50% 25%;
	--tc-zoom: 1.03;
	--tc-stagger: 110ms;
	--tc-name: #0a0a0a;
	--tc-name-h: var(--tc-name);
	--tc-name-space: 17.6px;
	--tc-icon: 23px;
	--tc-icon-c: #0b66c2;
	--tc-icon-h: var(--tc-icon-c);
	--tc-icon-gap: 10.6px;
	--tc-icon-y: 0.8px;
	--tc-role: #0a0a0a;
	--tc-role-space: 2px;
	display: grid;
	grid-template-columns: repeat(var(--tc-cols), minmax(0, 1fr));
	column-gap: var(--tc-gap-x);
	row-gap: var(--tc-gap-y);
	width: 100%;
}

.elementor-widget-ct-team-cards {
	width: 100%;
}

.ct-tc .ct-tc__card {
	position: relative;
	justify-self: center;
	width: 100%;
	min-width: 0;
	max-width: var(--tc-card-max, none);
	margin: 0;
	padding: 0;
}

/* ---------- Photo box ---------- */

.ct-tc .ct-tc__media {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	aspect-ratio: 100 / var(--tc-ratio);
	border-radius: var(--tc-radius);
	background-color: transparent;
	background-image: linear-gradient(var(--tc-angle), var(--tc-c1), var(--tc-c2));
}

/* Soft (eased) gradient of the design, built from the two editable colours. */
@supports (color: color-mix(in srgb, red, blue)) {
	.ct-tc--bg-eased .ct-tc__media {
		background-image: linear-gradient(var(--tc-angle), var(--tc-c1) 0%, color-mix(in srgb, var(--tc-c2) 5.1%, var(--tc-c1)) 20%, color-mix(in srgb, var(--tc-c2) 18.3%, var(--tc-c1)) 40%, color-mix(in srgb, var(--tc-c2) 38.9%, var(--tc-c1)) 60%, color-mix(in srgb, var(--tc-c2) 66.2%, var(--tc-c1)) 80%, var(--tc-c2) 100%);
	}
}

.ct-tc--bg-solid .ct-tc__media {
	background-image: none;
	background-color: var(--tc-c2);
}

.ct-tc--bg-none .ct-tc__media {
	background-image: none;
}

.ct-tc .ct-tc__img {
	position: absolute;
	left: 50%;
	bottom: 0;
	display: block;
	width: auto;
	height: var(--tc-img-h);
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
	transform: translate(-50%, var(--tc-img-y)) scale(1);
	transform-origin: 50% 100%;
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.ct-tc--cover .ct-tc__img {
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--tc-pos);
	transform: translate(0, var(--tc-img-y)) scale(1);
	transform-origin: 50% 50%;
}

@media (hover: hover) {
	.ct-tc .ct-tc__card:hover .ct-tc__img {
		transform: translate(-50%, var(--tc-img-y)) scale(var(--tc-zoom));
	}

	.ct-tc--cover .ct-tc__card:hover .ct-tc__img {
		transform: translate(0, var(--tc-img-y)) scale(var(--tc-zoom));
	}
}

/* ---------- Name, icons, role ---------- */

.ct-tc .ct-tc__body {
	padding-top: var(--tc-name-space);
}

.ct-tc .ct-tc__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--tc-justify, flex-start);
	column-gap: var(--tc-icon-gap);
	row-gap: 4px;
}

.ct-tc .ct-tc__name {
	margin: 0;
	padding: 0;
	font-size: 26.9px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tc-name);
	transition: color 0.3s ease;
}

.ct-tc .ct-tc__name a {
	color: inherit;
	text-decoration: none;
}

.ct-tc .ct-tc__card:hover .ct-tc__name {
	color: var(--tc-name-h);
}

.ct-tc .ct-tc__icons {
	position: relative;
	top: var(--tc-icon-y);
	display: inline-flex;
	align-items: center;
	gap: calc(var(--tc-icon-gap) * 0.6);
}

.ct-tc .ct-tc__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--tc-icon);
	height: var(--tc-icon);
	font-size: var(--tc-icon);
	line-height: 1;
	color: var(--tc-icon-c);
	text-decoration: none;
	transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-tc .ct-tc__social svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ct-tc .ct-tc__social i {
	font-size: 1em;
	line-height: 1;
}

.ct-tc a.ct-tc__social:hover,
.ct-tc a.ct-tc__social:focus-visible {
	color: var(--tc-icon-h);
	transform: translateY(-2px);
}

.ct-tc .ct-tc__role {
	margin: var(--tc-role-space) 0 0;
	padding: 0;
	font-size: 16.2px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--tc-role);
}

/* ---------- Scroll reveal (cards below the fold only; armed by JS) ---------- */

.ct-tc .ct-tc__card.is-armed {
	transition: opacity 0.7s ease calc(var(--tc-d, 0) * var(--tc-stagger)), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--tc-d, 0) * var(--tc-stagger));
}

.ct-tc .ct-tc__card.is-armed:not(.is-in) {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
}

.ct-tc.is-instant .ct-tc__card {
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.ct-tc .ct-tc__card,
	.ct-tc .ct-tc__img,
	.ct-tc .ct-tc__social {
		transition: none !important;
	}
}
