/* CTA Section widget — the closing call to action at the end of the Our
   Work page: a dark rounded panel (optionally over a background image)
   holding a square-bulleted eyebrow, a large Anton heading, supporting
   copy, the corner-bracket button, an optional secondary link and an
   optional footnote. */

.aiol-cta {
	position: relative;
	overflow: hidden;
	padding: 80px 60px;
	border-radius: 24px;
	background-color: #141515;
	background-size: cover;
	background-position: center;
	box-sizing: border-box;
}

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

.aiol-cta__overlay {
	position: absolute;
	inset: 0;
	display: block;
	background-color: rgba( 20, 21, 21, 0.72 );
	pointer-events: none;
}

.aiol-cta__inner {
	position: relative;
	z-index: 2;
	max-width: 720px;
}

.aiol-cta--center .aiol-cta__inner {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.aiol-cta--left .aiol-cta__inner {
	margin-left: 0;
	margin-right: auto;
	text-align: left;
}

/* ---------- Text ---------- */
.aiol-cta__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: rgba( 255, 255, 255, 0.65 );
}

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

.aiol-cta__heading {
	margin: 18px 0 0;
	font-family: 'Anton', sans-serif;
	font-size: 46px;
	font-weight: 400;
	line-height: 1.12;
	text-transform: uppercase;
	color: #ffffff;
}

.aiol-cta__description {
	margin: 18px 0 0;
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	color: rgba( 255, 255, 255, 0.72 );
}

.aiol-cta--center .aiol-cta__description {
	margin-left: auto;
	margin-right: auto;
	max-width: 60ch;
}

.aiol-cta__footnote {
	margin: 22px 0 0;
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: rgba( 255, 255, 255, 0.45 );
}

/* ---------- Actions ---------- */
.aiol-cta__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px 26px;
	margin-top: 32px;
}

.aiol-cta--center .aiol-cta__actions {
	justify-content: center;
}

.aiol-cta--left .aiol-cta__actions {
	justify-content: flex-start;
}

/* ---------- 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-cta__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	text-decoration: none;
	color: #ffffff;
}

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

.aiol-cta__btn-corner {
	position: absolute;
	width: 16px;
	height: 16px;
	border: 0 solid #ffffff;
	transition: width 0.6s ease, height 0.6s ease;
}

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

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

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

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

.aiol-cta__btn:hover .aiol-cta__btn-corner {
	width: 20px;
	height: 20px;
}

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

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

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

/* ---------- Secondary link ---------- */
.aiol-cta__secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: rgba( 255, 255, 255, 0.72 );
	text-decoration: none;
}

.aiol-cta__secondary-text {
	text-decoration-line: none;
	text-underline-offset: 5px;
	transition: text-decoration-line 0.2s ease;
}

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

.aiol-cta__secondary-arrow {
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.aiol-cta__secondary:hover .aiol-cta__secondary-arrow {
	transform: translateX( 4px );
}

/* ---------- Responsive ---------- */
@media ( max-width: 1024px ) {
	.aiol-cta {
		padding: 64px 40px;
	}

	.aiol-cta__heading {
		font-size: 36px;
	}
}

@media ( max-width: 767px ) {
	.aiol-cta {
		padding: 48px 24px;
		border-radius: 18px;
	}

	.aiol-cta__heading {
		font-size: 27px;
	}

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

	/* Stacked and full width so both taps are comfortably sized. */
	.aiol-cta__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.aiol-cta__btn,
	.aiol-cta__secondary {
		justify-content: center;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.aiol-cta__btn-corner,
	.aiol-cta__secondary-arrow {
		transition: none;
	}

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

	.aiol-cta__secondary:hover .aiol-cta__secondary-arrow {
		transform: none;
	}
}
