/* Featured Project widget — the single standout project at the top of
   the Our Work page: an editorial split with the image on one side and
   the eyebrow, client, Anton title, write-up, tag pills, label/value
   meta strip and corner-bracket button on the other. Shares the type,
   colours and hover behaviour of the Project Showcase widgets. */

.aiol-fp {
	--aiol-fp-media: 56%;
	--aiol-fp-gap: 48px;

	display: flex;
	align-items: center;
	gap: var(--aiol-fp-gap);
	box-sizing: border-box;
}

.aiol-fp *,
.aiol-fp *::before,
.aiol-fp *::after {
	box-sizing: border-box;
}

.aiol-fp--media-right {
	flex-direction: row-reverse;
}

/* ---------- Image ---------- */
.aiol-fp__media {
	position: relative;
	display: block;
	flex: 0 0 var(--aiol-fp-media);
	max-width: var(--aiol-fp-media);
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	overflow: hidden;
	background-color: #EFEFEF;
	text-decoration: none;
}

/* The picture sits on its own layer so the hover zoom scales only the
   image — the frame's corners and the badge never move. */
.aiol-fp__media-bg {
	position: absolute;
	inset: 0;
	display: block;
	background-size: cover;
	background-position: center;
	transform: scale( 1 );
	transition: transform 600ms ease;
	will-change: transform;
}

.aiol-fp__media:hover .aiol-fp__media-bg {
	transform: scale( 1.06 );
}

.aiol-fp__media-overlay {
	position: absolute;
	inset: 0;
	display: block;
	background-color: rgba( 0, 0, 0, 0.12 );
	pointer-events: none;
}

.aiol-fp__badge {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background-color: #ffffff;
	color: #141515;
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	line-height: 1;
}

/* ---------- Content ---------- */
.aiol-fp__content {
	flex: 1 1 auto;
	min-width: 0;
}

.aiol-fp__eyebrow {
	display: inline-flex;
	align-items: center;
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #8a8a8a;
}

/* The small square bullet the theme uses beside its section labels. */
.aiol-fp__eyebrow::before {
	content: "";
	display: block;
	width: 4px;
	height: 4px;
	margin-right: 10px;
	background-color: #141515;
}

.aiol-fp__client-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.aiol-fp__client {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #141515;
}

.aiol-fp__divider {
	color: #8a8a8a;
	font-size: 13px;
}

.aiol-fp__flag {
	font-size: 14px;
	line-height: 1;
}

.aiol-fp__location {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #8a8a8a;
}

.aiol-fp__title {
	margin: 12px 0 0;
	font-family: 'Anton', sans-serif;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.12;
	text-transform: uppercase;
	color: #141515;
}

.aiol-fp__title-link {
	color: inherit;
	text-decoration-line: none;
	text-decoration-color: currentColor;
	text-underline-offset: 6px;
	transition: text-decoration-line 0.2s ease;
}

.aiol-fp__title-link:hover {
	text-decoration-line: underline;
}

.aiol-fp__description {
	margin: 18px 0 0;
	max-width: 56ch;
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	color: #5c5c5c;
}

/* ---------- Tags ---------- */
.aiol-fp__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.aiol-fp__tag {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid #DADADA;
	border-radius: 6px;
	background-color: transparent;
	color: #141515;
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	line-height: 1;
}

/* ---------- Meta strip ---------- */
.aiol-fp__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 44px;
	margin: 28px 0 0;
	padding-top: 24px;
	border-top: 1px solid #E6E6E6;
}

.aiol-fp__meta-item {
	min-width: 0;
}

.aiol-fp__meta-label {
	margin: 0;
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #8a8a8a;
}

.aiol-fp__meta-value {
	margin: 6px 0 0;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #141515;
}

/* ---------- Button — static corner brackets, plus a small solid square
   whose layout space is always reserved (so the button never changes
   width) that repeatedly grows from zero on hover. ---------- */
.aiol-fp__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 30px;
	padding: 14px 24px;
	text-decoration: none;
	color: #141515;
}

.aiol-fp__cta-text {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.aiol-fp__cta-corner {
	position: absolute;
	width: 14px;
	height: 14px;
	border: 0 solid #141515;
	transition: width 0.6s ease, height 0.6s ease;
}

.aiol-fp__cta-corner--tl {
	top: 0;
	left: 0;
	border-top-width: 1px;
	border-left-width: 1px;
}

.aiol-fp__cta-corner--tr {
	top: 0;
	right: 0;
	border-top-width: 1px;
	border-right-width: 1px;
}

.aiol-fp__cta-corner--bl {
	bottom: 0;
	left: 0;
	border-bottom-width: 1px;
	border-left-width: 1px;
}

.aiol-fp__cta-corner--br {
	bottom: 0;
	right: 0;
	border-bottom-width: 1px;
	border-right-width: 1px;
}

.aiol-fp__cta:hover .aiol-fp__cta-corner {
	width: 18px;
	height: 18px;
}

.aiol-fp__cta-icon {
	display: inline-block;
	width: 4px;
	height: 4px;
	flex-shrink: 0;
	background-color: currentColor;
	transform: scale( 0 );
}

.aiol-fp__cta:hover .aiol-fp__cta-icon {
	animation: aiol-fp-cta-grow 2.2s ease-out infinite;
}

@keyframes aiol-fp-cta-grow {
	0% {
		transform: scale( 0 );
	}
	100% {
		transform: scale( 1 );
	}
}

/* ---------- Responsive ---------- */
@media ( max-width: 1024px ) {
	.aiol-fp {
		--aiol-fp-gap: 36px;
	}

	.aiol-fp__title {
		font-size: 32px;
	}

	.aiol-fp__meta {
		gap: 14px 32px;
	}
}

/* The two columns stack, and the image goes on top regardless of the
   side it is set to on desktop. */
@media ( max-width: 900px ) {
	.aiol-fp,
	.aiol-fp--media-right {
		flex-direction: column;
		align-items: stretch;
		--aiol-fp-gap: 28px;
	}

	.aiol-fp__media {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
	}
}

@media ( max-width: 767px ) {
	.aiol-fp__title {
		font-size: 26px;
	}

	.aiol-fp__description {
		font-size: 15px;
	}

	.aiol-fp__badge {
		top: 14px;
		left: 14px;
		padding: 7px 12px;
	}

	.aiol-fp__meta {
		gap: 14px 26px;
		margin-top: 24px;
		padding-top: 20px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.aiol-fp__media-bg,
	.aiol-fp__cta-corner {
		transition: none;
	}

	.aiol-fp__media:hover .aiol-fp__media-bg {
		transform: none;
	}

	.aiol-fp__cta:hover .aiol-fp__cta-icon {
		animation: none;
	}
}
