/* Hide the original Elementor pricing panel where the latest post is inserted. */
.elementor-2829 .elementor-element-284278f {
	display: none !important;
}

.col-latest-post-feature {
	--latest-post-fade-bleed: var(--col-home-section-gap, clamp(40px, 4.8vw, 68px));
	position: relative;
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
	width: 100%;
	min-height: clamp(560px, 72svh, 780px);
	margin-block: 0;
	overflow: visible;
	isolation: isolate;
	padding: var(--col-home-section-gap, clamp(40px, 4.8vw, 68px)) clamp(22px, 5vw, 84px);
	background: transparent;
}

/* Let the knight sit opposite the post image, and feather this artwork into adjacent sections. */
.col-latest-post-feature::before,
.col-latest-post-feature::after {
	position: absolute;
	content: "";
	pointer-events: none;
}

.col-latest-post-feature::before {
	top: calc(0px - var(--latest-post-fade-bleed));
	right: 0;
	bottom: calc(0px - var(--latest-post-fade-bleed));
	left: 0;
	z-index: -2;
	background-image:
		linear-gradient(0deg, rgba(3, 3, 7, 0.48), rgba(3, 3, 7, 0.18) 44%, rgba(3, 3, 7, 0.38)),
		linear-gradient(90deg, rgba(5, 4, 9, 0.22), rgba(5, 4, 9, 0.24) 58%, rgba(5, 4, 9, 0.52)),
		url("assets/images/latest-post-knight-right.webp");
	background-position: center, center, right 48%;
	background-size: cover;
	background-repeat: no-repeat;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.4) 48px, #000 var(--latest-post-fade-bleed), #000 calc(100% - var(--latest-post-fade-bleed)), rgba(0, 0, 0, 0.4) calc(100% - 48px), transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.4) 48px, #000 var(--latest-post-fade-bleed), #000 calc(100% - var(--latest-post-fade-bleed)), rgba(0, 0, 0, 0.4) calc(100% - 48px), transparent 100%);
}

/* Keep the organic black-purple wave to the left, with a restrained feathered edge. */
.col-latest-post-feature::after {
	top: calc(0px - var(--latest-post-fade-bleed));
	right: auto;
	bottom: calc(0px - var(--latest-post-fade-bleed));
	left: -13%;
	z-index: -1;
	width: 66%;
	border-radius: 0 55% 47% 0 / 0 47% 53% 0;
	background:
		radial-gradient(ellipse at 15% 70%, rgba(91, 34, 117, 0.14), transparent 60%),
		linear-gradient(105deg, rgba(4, 4, 8, 0.94) 0%, rgba(7, 6, 12, 0.83) 42%, rgba(31, 13, 40, 0.42) 77%, transparent 100%);
	filter: blur(22px);
	-webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.38) 48px, #000 var(--latest-post-fade-bleed), #000 calc(100% - var(--latest-post-fade-bleed)), rgba(0, 0, 0, 0.38) calc(100% - 48px), transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.38) 48px, #000 var(--latest-post-fade-bleed), #000 calc(100% - var(--latest-post-fade-bleed)), rgba(0, 0, 0, 0.38) calc(100% - 48px), transparent 100%);
}

.col-latest-post-feature__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	align-items: stretch;
	gap: clamp(36px, 6vw, 92px);
	width: min(100%, 1360px);
	margin: 0 auto;
}

.col-latest-post-feature__visual {
	width: 100%;
	max-width: 520px;
	margin: 0;
	align-self: center;
}

.col-latest-post-feature__image-frame {
	position: relative;
	width: 100%;
	/* Keep the image unframed and softly dissolve all four edges into the backdrop. */
	-webkit-mask-image: radial-gradient(ellipse 75% 74% at center, #000 53%, rgba(0, 0, 0, 0.92) 67%, transparent 100%);
	mask-image: radial-gradient(ellipse 75% 74% at center, #000 53%, rgba(0, 0, 0, 0.92) 67%, transparent 100%);
}

.col-latest-post-feature__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: clamp(320px, 36vw, 500px);
	object-fit: contain;
	object-position: center;
}

.col-latest-post-feature__image-caption {
	display: flex;
	justify-content: flex-start;
	gap: 16px;
	margin: 4px 0 0 4%;
	color: rgba(255, 255, 255, 0.66);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.col-latest-post-feature__copy {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 0;
	color: #fff;
	text-transform: none;
}

.col-latest-post-feature__heading {
	max-width: 780px;
}

.col-latest-post-feature__heading h2 {
	margin: 0;
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
	-webkit-text-stroke: 1.1px rgba(255, 255, 255, 0.98);
	font-size: clamp(28px, 2.9vw, 44px);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.08;
	text-transform: none;
	text-wrap: balance;
	text-shadow: none !important;
}

.col-latest-post-feature__summary-wrap {
	max-width: 680px;
	margin-top: clamp(44px, 4.6vw, 68px);
	padding-left: clamp(16px, 2vw, 28px);
	border-left: 2px solid rgba(190, 92, 228, 0.72);
}

.col-latest-post-feature__summary-label {
	margin: 0 0 10px;
	color: #d79aef;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.col-latest-post-feature__summary {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: clamp(15px, 1.15vw, 18px);
	line-height: 1.75;
	text-transform: none;
}

.col-latest-post-feature__link {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	align-self: flex-end;
	width: fit-content;
	margin-top: auto;
	padding: 12px 18px;
	border: 1px solid rgba(202, 143, 222, 0.36);
	border-radius: 9px;
	background: linear-gradient(115deg, #a957c0 0%, #8c48a4 48%, #714086 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(50, 16, 70, 0.16);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease, color 180ms ease, border-color 180ms ease;
}

.col-latest-post-feature__link span {
	font-size: 19px;
	line-height: 1;
}

.col-latest-post-feature__link:hover,
.col-latest-post-feature__link:focus-visible {
	transform: translateY(-2px);
	border-color: rgba(217, 149, 244, 0.68);
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(217, 149, 244, 0.12), 0 0 16px rgba(166, 45, 214, 0.12);
	color: #edc8ff;
}

@media (max-width: 900px) {
	.col-latest-post-feature {
		min-height: 0;
		--latest-post-fade-bleed: var(--col-home-section-gap, 48px);
		margin-block: 0;
		padding: var(--col-home-section-gap, 48px) 28px;
	}

	.col-latest-post-feature__inner {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: 30px;
	}

	.col-latest-post-feature__heading h2 {
		font-size: clamp(26px, 3.8vw, 38px);
	}
}

@media (max-width: 680px) {
	.col-latest-post-feature {
		--latest-post-fade-bleed: var(--col-home-section-gap, 38px);
		margin-block: 0;
		padding: var(--col-home-section-gap, 38px) 20px;
	}

	.col-latest-post-feature::before {
		top: calc(0px - var(--latest-post-fade-bleed));
		right: 0;
		bottom: auto;
		left: 0;
		height: 70%;
		background-position: center, center, 68% top;
		background-size: cover;
		-webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.4) 24px, #000 var(--latest-post-fade-bleed), #000 calc(100% - 32px), transparent 100%);
		mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.4) 24px, #000 var(--latest-post-fade-bleed), #000 calc(100% - 32px), transparent 100%);
	}

	.col-latest-post-feature::after {
		top: calc(0px - var(--latest-post-fade-bleed));
		right: -25%;
		bottom: calc(0px - var(--latest-post-fade-bleed));
		left: -24%;
		width: 82%;
		border-radius: 0 0 48% 46% / 0 0 18% 16%;
		background:
			radial-gradient(ellipse at 18% 48%, rgba(5, 4, 10, 0.88) 0%, rgba(12, 8, 17, 0.75) 54%, rgba(44, 18, 57, 0.32) 84%, transparent 100%),
			linear-gradient(180deg, rgba(5, 4, 10, 0.12) 0%, rgba(6, 5, 11, 0.8) 42%, rgba(6, 5, 11, 0.94) 100%);
		-webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.38) 24px, #000 var(--latest-post-fade-bleed), #000 calc(100% - var(--latest-post-fade-bleed)), rgba(0, 0, 0, 0.38) calc(100% - 24px), transparent 100%);
		mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.38) 24px, #000 var(--latest-post-fade-bleed), #000 calc(100% - var(--latest-post-fade-bleed)), rgba(0, 0, 0, 0.38) calc(100% - 24px), transparent 100%);
	}

	.col-latest-post-feature__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.col-latest-post-feature__visual {
		max-width: 460px;
		margin: 0 auto;
	}

	.col-latest-post-feature__copy {
		max-width: 600px;
		margin: 0 auto;
	}

	.col-latest-post-feature__heading h2 {
		font-size: clamp(25px, 7.2vw, 36px);
	}

	.col-latest-post-feature__summary-wrap {
		margin-top: 28px;
	}

	.col-latest-post-feature__link {
		margin-top: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.col-latest-post-feature__link {
		transition: none;
	}
}
