/**
 * ZeltaCode Team — front-end styles.
 *
 * Type stack, as specified:
 *   eyebrow  Space Grotesk 16px
 *   heading  Inter Tight 48px
 *   the rest Inter
 *
 * These are declared here as well as in the widget's typography defaults, so
 * the section still reads correctly if a site strips Elementor's generated CSS
 * or the panel values are reset.
 */

.zctm {
	--zctm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--zctm-font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--zctm-font-label: 'Space Grotesk', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--zctm-lift: -5px;

	background: #000;
	font-family: var( --zctm-font-body );
}

.zctm *,
.zctm *::before,
.zctm *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* Heading block                                                       */
/* ------------------------------------------------------------------ */

.zctm .zctm__eyebrow {
	margin: 0 0 16px;
	font-family: var( --zctm-font-label );
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 1.8px;
	line-height: 1;
	text-transform: uppercase;
	color: #5e9eff;
}

.zctm .zctm__heading {
	margin: 0;
	font-family: var( --zctm-font-display );
	font-size: 48px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -1.4px;
	color: #ededed;
	overflow-wrap: break-word;
}

.zctm .zctm__sub {
	margin: 18px 0 0;
	max-width: 62ch;
	font-family: var( --zctm-font-body );
	font-size: 16px;
	line-height: 1.6;
	color: #8a8a8a;
}

/* ------------------------------------------------------------------ */
/* Grid and card                                                       */
/* ------------------------------------------------------------------ */

.zctm__grid {
	display: grid;
	grid-template-columns: repeat( 5, minmax( 0, 1fr ) );
	gap: 18px;
	margin-top: 44px;
}

.zctm__card {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba( 255, 255, 255, 0.11 );
	border-radius: 0;
	background-color: #0c0c0e;
	transition: border-color 300ms ease, transform 350ms cubic-bezier( 0.22, 0.6, 0.2, 1 ), box-shadow 350ms ease;
}

.zctm__card:hover {
	border-color: rgba( 255, 255, 255, 0.2 );
	transform: translateY( var( --zctm-lift ) );
}

/**
 * Optional whole-card link. It sits above the content but below nothing else,
 * so the card stays one hit target without wrapping the text in an anchor.
 */
.zctm__link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

/* ------------------------------------------------------------------ */
/* Photo                                                               */
/* ------------------------------------------------------------------ */

.zctm__photo {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background-color: #141416;
}

.zctm__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 450ms ease, transform 550ms cubic-bezier( 0.22, 0.6, 0.2, 1 );
}

.zctm-grey-yes .zctm__photo img {
	filter: grayscale( 1 ) contrast( 1.04 ) brightness( 0.92 );
}

.zctm-grey-yes .zctm__card:hover .zctm__photo img {
	filter: grayscale( 0 ) contrast( 1 ) brightness( 1 );
}

.zctm-zoom-yes .zctm__card:hover .zctm__photo img {
	transform: scale( 1.04 );
}

/* A low wash so mismatched originals still sit in one palette. */
.zctm-wash-yes .zctm__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	transition: opacity 450ms ease;
	background: linear-gradient( 180deg, rgba( 124, 92, 255, 0.1 ), transparent 42%, rgba( 12, 12, 15, 0.55 ) );
}

.zctm-wash-yes .zctm__card:hover .zctm__photo::after {
	opacity: 0.4;
}

/* ------------------------------------------------------------------ */
/* Card text                                                           */
/* ------------------------------------------------------------------ */

.zctm__info {
	padding: 16px 16px 18px;
}

.zctm .zctm__name {
	display: block;
	margin: 0;
	font-family: var( --zctm-font-body );
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: #ededed;
}

/**
 * The role is separated from the name by a rule rather than by going dimmer,
 * so every line stays at a readable contrast.
 */
.zctm .zctm__role {
	margin: 7px 0 0;
	padding-top: 9px;
	border-top: 1px solid rgba( 255, 255, 255, 0.11 );
	font-family: var( --zctm-font-body );
	font-size: 9.5px;
	font-weight: 400;
	letter-spacing: 1px;
	line-height: 1.4;
	text-transform: uppercase;
	color: #8a8a8a;
}

.zctm .zctm__line {
	margin: 8px 0 0;
	font-family: var( --zctm-font-body );
	font-size: 12.5px;
	line-height: 1.45;
	color: #8a8a8a;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media ( max-width: 1024px ) {
	.zctm__grid {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	}

	.zctm .zctm__heading {
		font-size: 38px;
	}
}

@media ( max-width: 767px ) {
	.zctm__grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 14px;
	}

	.zctm .zctm__heading {
		font-size: 30px;
		letter-spacing: -1px;
	}

	.zctm .zctm__eyebrow {
		font-size: 14px;
	}
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */

@media ( prefers-reduced-motion: reduce ) {
	.zctm__card,
	.zctm__photo img,
	.zctm__photo::after {
		transition-duration: 1ms;
	}

	.zctm__card:hover {
		transform: none;
	}

	.zctm-zoom-yes .zctm__card:hover .zctm__photo img {
		transform: none;
	}
}
