/**
 * Why Enigma — copy with a wide image, beside a grid of advantage cards.
 */

.enigma-why__container {
	position: relative;
	z-index: 1;
}

.enigma-why__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
	gap: clamp(30px, 4.5vw, 68px);
	align-items: start;
}

.enigma-why__body {
	max-width: 56ch;
	margin: 26px 0 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.78;
	color: var(--e-m2);
	text-wrap: pretty;
}

.enigma-why__figure {
	position: relative;
	margin: 32px 0 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--e-text-solid);
	border-radius: var(--e-r-md);
}

/* 0-2-1 — see about.css. */
.enigma .enigma-why__figure img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.enigma-why__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 10px;
}

.enigma-advantage {
	display: flex;
	flex-direction: column;
	padding: 24px 22px;
	background: var(--e-bg2);
	border: 1px solid var(--e-l2);
	border-radius: var(--e-r-md);
	transition: border-color 240ms ease, transform 240ms ease;
}

.enigma-advantage:hover {
	border-color: var(--e-l3);
	transform: translateY(-3px);
}

.enigma-advantage__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 22px;
	margin-bottom: 22px;
	background: var(--e-chip);
	border-radius: 6px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	color: var(--e-accent);
}

.enigma-advantage__title {
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--e-ink);
}

.enigma-advantage__body {
	margin-top: 10px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.62;
	color: var(--e-m3);
	text-wrap: pretty;
}

/* The highlighted card — one per set in the design. */
.enigma-advantage--highlight {
	background: var(--e-accent);
	border-color: var(--e-accent);
}

.enigma-advantage--highlight .enigma-advantage__num {
	background: rgba(14, 14, 15, .14);
	color: var(--e-on-accent);
}

.enigma-advantage--highlight .enigma-advantage__title {
	color: var(--e-on-accent);
}

.enigma-advantage--highlight .enigma-advantage__body {
	color: rgba(14, 14, 15, .74);
}

.enigma-advantage--highlight:hover {
	border-color: var(--e-accent);
}

@media (prefers-reduced-motion: reduce) {
	.enigma-advantage {
		transition: none;
	}

	.enigma-advantage:hover {
		transform: none;
	}
}

:lang(ar) .enigma-advantage__title {
	letter-spacing: 0;
	text-transform: none;
}
