/* ==========================================================================
   Block: Feature Project (bga/feature-project)

   Round 2 treatment: full-bleed image with a sticky-cloud silhouette in
   the top-right corner. The cloud holds the project title and CTA. Per
   feedback-round-2-mockups/Feature2.jpg.
   ========================================================================== */

.bga-feature-project--overlay {
	position: relative;
	background-color: var(--color-cream);
	padding: 0 !important; /* full-bleed image, no section padding */
}

.bga-feature-project__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}

.bga-feature-project__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bga-feature-project__media:hover .bga-feature-project__image,
.bga-feature-project__media:focus-visible .bga-feature-project__image {
	transform: scale(1.02);
}

.bga-feature-project__media:focus-visible {
	outline: 3px solid var(--color-orange);
	outline-offset: -3px;
}

/* ── Sticky cloud overlay ──────────────────────────────────────────────── */

.bga-feature-project__cloud {
	position: absolute;
	top: 0;
	right: 0;
	width: 38%;
	max-width: 320px;
	min-width: 220px;
	color: var(--color-orange);
	line-height: 0;
	pointer-events: none;
}

.bga-feature-project__cloud-shape {
	display: block;
	width: 100%;
	height: auto;
	transform: scaleX(-1);
	transform-origin: center;
	/* Drop shadow removed per client feedback — cloud sits flat. */
}

.bga-feature-project__cloud-content {
	position: absolute;
	inset: 22% 18% 24% 18%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: var(--color-cream);
	line-height: 1.25;
	pointer-events: none;
}

.bga-feature-project__label {
	font-family: var(--font-heading);
	font-size: clamp(0.95rem, 1.6vw, 1.25rem);
	font-weight: var(--font-weight-regular);
	letter-spacing: -0.01em;
	line-height: 1.15;
	margin-bottom: var(--sp-8);
	max-width: 100%;
}

.bga-feature-project__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-4);
	font-family: var(--font-heading);
	font-size: var(--text-label);
	font-weight: var(--font-weight-regular);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-cream);
}

.bga-feature-project__cta-arrow {
	transition: transform 0.2s ease;
}

.bga-feature-project__media:hover .bga-feature-project__cta-arrow,
.bga-feature-project__media:focus-visible .bga-feature-project__cta-arrow {
	transform: translateX(3px);
}

/* ── Tablet & desktop sizing ───────────────────────────────────────────── */

@media (min-width: 768px) {
	.bga-feature-project__media {
		aspect-ratio: 3 / 2;
	}

	.bga-feature-project__cloud {
		top: var(--sp-32);
		right: 0;
		width: 32%;
		max-width: 360px;
	}
}

@media (min-width: 1024px) {
	.bga-feature-project__cloud {
		top: var(--sp-40);
		right: 0;
		width: 28%;
		max-width: 380px;
	}
}

@media (min-width: 1440px) {
	.bga-feature-project__media {
		aspect-ratio: 16 / 9;
		max-height: 88vh;
	}

	.bga-feature-project__cloud {
		max-width: 420px;
	}
}

/* Wide-screen safety: never let the cloud overrun the image. */
@media (min-width: 1920px) {
	.bga-feature-project__cloud {
		max-width: 460px;
		right: 0;
		top: clamp(var(--sp-40), 4vw, 96px);
	}
}
