/**
 * About section — image with caption, stat cards, copy, core values.
 *
 * The image rules carry the theme body class (0-2-1). Elementor injects
 * `.elementor img { height:auto; max-width:100% }` at 0-1-1, and `height:auto` on an absolutely
 * positioned cover image over-constrains the vertical axis, which makes the browser drop
 * `bottom` — the image then falls back to its intrinsic ratio pinned to the top. That is the
 * "photo overlays from the top" signature.
 */

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

.enigma-about__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: clamp(36px, 5vw, 72px);
	align-items: start;
}

.enigma-about__grid.is-flipped .enigma-about__media {
	order: 2;
}

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

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

.enigma .enigma-about__figure img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.enigma-about__caption {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 26px 24px 22px;
	background: linear-gradient(0deg, rgba(14, 14, 15, .94) 8%, transparent 100%);
	pointer-events: none;
}

.enigma-about__caption-eyebrow {
	display: block;
	margin-bottom: 8px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--e-accent);
}

.enigma-about__caption-text {
	display: block;
	max-width: 34ch;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	color: rgba(230, 231, 232, .85);
}

/* --------------------------------------------------------------- stats */

.enigma-about__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.enigma-stat {
	padding: 20px 18px;
	background: var(--e-card);
	border-radius: var(--e-r-md);
}

.enigma-stat__value {
	font-size: 30px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.03em;
	color: var(--e-accent);
}

.enigma-stat__label {
	margin-top: 8px;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: rgba(64, 64, 65, .6);
}

.enigma-stat--accent {
	background: var(--e-accent);
}

/* A short word like "One roof" is set as a phrase, not a numeral. */
.enigma-stat--accent .enigma-stat__value {
	padding-top: 8px;
	font-size: 19px;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--e-on-accent);
}

.enigma-stat--accent .enigma-stat__label {
	color: rgba(14, 14, 15, .66);
}

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

.enigma-about__lead {
	margin: 28px 0 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.72;
	color: var(--e-text-solid);
	text-wrap: pretty;
}

.enigma-about__body {
	margin: 20px 0 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.78;
	color: rgba(64, 64, 65, .78);
	text-wrap: pretty;
}

/* On a dark surface the copy takes the dark-surface tones instead. */
.enigma-section--base .enigma-about__lead,
.enigma-section--raised .enigma-about__lead {
	color: var(--e-m1);
}

.enigma-section--base .enigma-about__body,
.enigma-section--raised .enigma-about__body {
	color: var(--e-m2);
}

/* --------------------------------------------------------------- values */

.enigma-about__values {
	margin-top: clamp(40px, 5vw, 66px);
	padding-top: clamp(28px, 3.4vw, 42px);
	border-top: 1px solid rgba(64, 64, 65, .16);
}

.enigma-section--base .enigma-about__values,
.enigma-section--raised .enigma-about__values {
	border-top-color: var(--e-l2);
}

.enigma-about__values-label {
	margin-bottom: 18px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: rgba(64, 64, 65, .5);
}

.enigma-section--base .enigma-about__values-label,
.enigma-section--raised .enigma-about__values-label {
	color: var(--e-m4);
}

.enigma-about__values-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
	gap: 12px;
	align-items: stretch;
}

.enigma-value {
	display: flex;
	gap: 18px;
	padding: 24px;
	background: var(--e-card);
	border-inline-start: 3px solid var(--e-accent);
	border-radius: 0 var(--e-r-md) var(--e-r-md) 0;
	transition: transform 260ms ease;
}

.enigma-value:hover {
	transform: translateY(-3px);
}

.enigma-value__num {
	flex: 0 0 auto;
	width: 22px;
	padding-top: 3px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .1em;
	color: var(--e-accent);
}

.enigma-value__title {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--e-ink-solid);
}

.enigma-value__body {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.68;
	color: rgba(64, 64, 65, .76);
	text-wrap: pretty;
}

.enigma-section--base .enigma-value,
.enigma-section--raised .enigma-value {
	background: var(--e-bg2);
}

.enigma-section--base .enigma-value__title,
.enigma-section--raised .enigma-value__title {
	color: var(--e-ink);
}

.enigma-section--base .enigma-value__body,
.enigma-section--raised .enigma-value__body {
	color: var(--e-m2);
}

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

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

:lang(ar) .enigma-value__title,
:lang(ar) .enigma-stat__label,
:lang(ar) .enigma-about__values-label,
:lang(ar) .enigma-about__caption-eyebrow {
	letter-spacing: 0;
	text-transform: none;
}
