/**
 * Story section — copy, badged image, Vision / Mission pair.
 */

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

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

.enigma-story__grid.is-flipped .enigma-story__media {
	order: -1;
}

/* --------------------------------------------------------------- copy */

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

.enigma-story__p--lead {
	margin-top: 28px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.72;
	color: var(--e-m1);
}

.enigma-section--inverted .enigma-story__p {
	color: rgba(64, 64, 65, .78);
}

.enigma-section--inverted .enigma-story__p--lead {
	color: var(--e-text-solid);
}

/* --------------------------------------------------------------- image */

.enigma-story__figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--e-text-solid);
	border-radius: var(--e-r-lg);
	box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .6);
}

/* 0-2-1 — must beat Elementor's `.elementor img { height:auto }`. See about.css. */
.enigma .enigma-story__figure img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.enigma-story__badge {
	position: absolute;
	inset-inline-start: 14px;
	top: 14px;
	padding: 8px 15px;
	background: rgba(14, 14, 15, .8);
	border: 1px solid var(--e-l3);
	border-radius: var(--e-r-pill);
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--e-text);
}

/* --------------------------------------------------------------- pillars */

.enigma-story__pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 12px;
	align-items: stretch;
	margin-top: clamp(44px, 5.4vw, 74px);
}

.enigma-pillar {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: clamp(26px, 3vw, 40px);
	background: var(--e-bg2);
	border: 1px solid var(--e-l2);
	border-radius: var(--e-r-lg);
}

.enigma-pillar__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.enigma-pillar__rule {
	display: block;
	width: 30px;
	height: 2px;
	background: var(--e-accent);
}

.enigma-pillar__label {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--e-accent);
}

.enigma-pillar__body {
	margin: 0;
	font-size: clamp(15px, 1.32vw, 17.5px);
	font-weight: 600;
	line-height: 1.68;
	color: var(--e-text);
	text-wrap: pretty;
}

.enigma-pillar--accent {
	background: var(--e-accent);
	border-color: var(--e-accent);
	color: var(--e-on-accent);
}

.enigma-pillar--accent .enigma-pillar__rule {
	background: rgba(14, 14, 15, .55);
}

.enigma-pillar--accent .enigma-pillar__label {
	color: rgba(14, 14, 15, .7);
}

.enigma-pillar--accent .enigma-pillar__body {
	color: var(--e-on-accent);
}

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