/* Artmark Intro With Stats widget — "Who We Are": eyebrow, heading,
   paragraphs and a pair of stat cards on one side, a notched photo on the
   other. Colors/typography are overridable via widget controls. */

.am-intro {
	width: 100%;
	background-color: #ffffff;
}

.am-intro__inner {
	display: flex;
	align-items: stretch;
	gap: 40px;
	width: 100%;
	margin: 0 auto;
}

/* ---------------------------------------------------------------- */
/* Text column                                                       */
/* ---------------------------------------------------------------- */

.am-intro__main {
	flex: 0 0 48%;
	max-width: 48%;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.am-intro__eyebrow {
	display: flex;
	justify-content: flex-start;
}

.am-intro__eyebrow .am-eyebrow {
	margin-bottom: 26px;
}

.am-intro__title {
	margin: 0 0 28px;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: #020713;
}

.am-intro__paras {
	margin-bottom: 36px;
}

.am-intro__para {
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 24px;
	color: #4b5563;
}

.am-intro__para:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------- */
/* Stat cards                                                        */
/* ---------------------------------------------------------------- */

.am-intro__stats {
	--am-intro-statcols: 2;
	display: grid;
	grid-template-columns: repeat(var(--am-intro-statcols), minmax(0, 1fr));
	gap: 16px;
	margin-top: auto;
}

.am-intro__stat {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 208px;
	padding: 28px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background-color: #0d0d0d;
	background-size: cover;
	background-position: center;
	transition: transform 0.25s ease;
}

a.am-intro__stat:hover {
	transform: translateY(-3px);
}

/* The blue variant. Both stops are custom properties so the controls can set
   them without rewriting the whole gradient. */
.am-intro__stat--gradient {
	background-image: linear-gradient(
		var(--am-intro-angle, 135deg),
		var(--am-intro-grad-a, #5cb3f5) 0%,
		var(--am-intro-grad-b, #1e6fd9) 100%
	);
}

.am-intro__stat-value {
	margin: 0;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.28;
	letter-spacing: -0.01em;
	color: #ffffff;
}

.am-intro__stat-foot {
	margin-top: 24px;
}

.am-intro__stat-rule {
	display: block;
	height: 1px;
	margin-bottom: 14px;
	background-color: rgba(255, 255, 255, 0.35);
}

.am-intro__stat-label {
	display: block;
	font-size: 14px;
	line-height: 20px;
	color: #ffffff;
}

/* ---------------------------------------------------------------- */
/* Media                                                             */
/* ---------------------------------------------------------------- */

.am-intro__media {
	--am-intro-notch: 28px;
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
	overflow: hidden;
	background-color: #eef1f4;
	clip-path: polygon(
		0 0,
		calc(100% - var(--am-intro-notch)) 0,
		100% var(--am-intro-notch),
		100% 100%,
		0 100%
	);
}

.am-intro__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	object-fit: cover;
}

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

@media (max-width: 1024px) {
	.am-intro__inner {
		flex-direction: column;
		gap: 32px;
	}

	.am-intro__main,
	.am-intro__media {
		flex: 0 0 auto !important;
		max-width: 100% !important;
		width: 100%;
	}

	.am-intro__title {
		font-size: 32px;
	}

	.am-intro__stats {
		margin-top: 0;
	}

	.am-intro__media img {
		min-height: 340px;
	}
}

@media (max-width: 767px) {
	.am-intro__title {
		font-size: 27px;
	}

	.am-intro__stats {
		--am-intro-statcols: 1;
	}

	.am-intro__stat {
		min-height: 0;
		padding: 22px;
	}

	.am-intro__media {
		--am-intro-notch: 18px;
	}

	.am-intro__media img {
		min-height: 260px;
	}
}
