/**
 * Story + Photo Collage widget.
 */

.msd-story {
	--msd-story-pad: clamp(80px, 11vw, 140px);
	--msd-story-accent: var(--msd-red, #9d2020);

	padding-top: var(--msd-story-pad);
	padding-bottom: var(--msd-story-pad);
	overflow: hidden;
	background-color: var(--msd-white, #fff);
	color: var(--msd-ink, #1e2a30);
}

.msd-story__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: clamp(48px, 7vw, 104px);
	align-items: center;
}

/* Text column */

.msd-story__copy {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.msd-story__eyebrow {
	color: var(--msd-story-accent);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.msd-story .msd-story__title {
	margin: 0;
	color: var(--msd-ink, #1e2a30);
	font-family: var(--msd-font-heading, "Bricolage Grotesque", system-ui, sans-serif);
	font-size: clamp(2.1rem, 4.4vw, 3.6rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.msd-story__accent {
	color: var(--msd-story-accent);
}

.msd-story .msd-story__lead {
	margin: 0;
	color: var(--msd-ink, #1e2a30);
	font-family: var(--msd-font-heading, "Bricolage Grotesque", system-ui, sans-serif);
	font-size: clamp(19px, 1.8vw, 23px);
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.msd-story .msd-story__text {
	margin: 0;
	color: var(--msd-text-muted, #4c565d);
	font-size: 17px;
	line-height: 1.7;
}

.msd-story__audience {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 4px;
}

.msd-story__chips-title {
	color: var(--msd-text-soft, #59636a);
	font-size: 14px;
	font-weight: 700;
}

.msd-story__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.msd-story__chips li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--msd-line, #e6e0d5);
	border-radius: 999px;
	background-color: var(--msd-cream, #f7f4ee);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.msd-story__chips .msd-icon {
	color: var(--msd-story-accent);
	font-size: 18px;
}

.msd-story__team {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 8px;
	padding-top: 24px;
	border-top: 1px solid var(--msd-line, #e6e0d5);
}

/* Pink on dark: the design's red icon on the dark circle was too faint. */
.msd-story__team-icon {
	display: grid;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: var(--msd-ink, #1e2a30);
	color: var(--msd-pink, #ff9b9b);
	font-size: 28px;
	place-items: center;
}

.msd-story__team-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--msd-text-soft, #59636a);
	font-size: 14.5px;
	line-height: 1.5;
}

.msd-story__team-text strong {
	color: var(--msd-ink, #1e2a30);
	font-family: var(--msd-font-heading, "Bricolage Grotesque", system-ui, sans-serif);
	font-size: 18px;
	line-height: 1.3;
}

.msd-story .msd-story__team-text a {
	color: var(--msd-ink, #1e2a30);
	font-weight: 700;
	text-decoration: none;
}

.msd-story .msd-story__team-text a:hover {
	color: var(--msd-story-accent);
}

/* Photo collage */

.msd-story__collage {
	position: relative;
	justify-self: center;
	width: 100%;
	max-width: 560px;
	padding: 0 0 clamp(48px, 6vw, 80px) clamp(32px, 5vw, 72px);
}

.msd-story__shape {
	position: absolute;
	top: -24px;
	right: -24px;
	width: 62%;
	height: 70%;
	border-radius: 32px;
	background-color: var(--msd-pink-faint, #fbeeee);
}

.msd-story__main {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	background-color: var(--msd-sand, #efe9df);
	box-shadow: 0 40px 80px -40px rgba(30, 42, 48, 0.45);
	aspect-ratio: 4 / 5;
}

.msd-story__small {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 46%;
	overflow: hidden;
	border: 8px solid var(--msd-white, #fff);
	border-radius: 24px;
	background-color: var(--msd-sand, #efe9df);
	box-shadow: 0 30px 60px -30px rgba(30, 42, 48, 0.5);
	aspect-ratio: 1 / 1;
}

/* Two classes: Elementor's ".elementor img" rule would otherwise reset the height. */
.msd-story .msd-story__photo {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.msd-story__badge {
	display: flex;
	position: absolute;
	right: clamp(12px, 2vw, 24px);
	bottom: clamp(64px, 8vw, 104px);
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-radius: 20px;
	background-color: var(--msd-story-accent);
	box-shadow: 0 20px 40px -20px rgba(30, 42, 48, 0.45);
	color: var(--msd-white, #fff);
}

.msd-story__badge .msd-icon {
	font-size: 28px;
}

.msd-story__badge > span {
	display: flex;
	flex-direction: column;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.15;
}

.msd-story__badge strong {
	font-family: var(--msd-font-heading, "Bricolage Grotesque", system-ui, sans-serif);
	font-size: 20px;
}
