/*
 * 2026-07-23 v1.2
 * - Kept the decorative masked video behind case content
 * - Repeated the corrected video dimensions in the versioned Safari stylesheet
 *
 * 2026-07-23 v1.1
 * - Kept the case grid inside the inherited article width constraints
 *
 * 2026-07-23 v1.0
 * - Added the alternating masked-image layout for Bureau Ro cases
 */

.req-cases .bro-masked-video {
	top: clamp(70px, 5vh, 110px);
	right: clamp(30px, 4.4vw, 90px);
	width: clamp(320px, calc(50vw - 210px), 650px) !important;
	height: auto !important;
	aspect-ratio: 650 / 410;
	z-index: 0;
	pointer-events: none;
}

.req-cases section {
	position: relative;
	z-index: 1;
}

.req-cases section > article {
	max-width: 1400px;
	width: 100%;
}

.req-cases section > article > .bureau-ro-case {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(30px, 6vw, 90px);
	min-width: 0 !important;
	max-width: 1260px !important;
	width: 100%;
	overflow: visible;
}

.req-cases .bureau-ro-case-image {
	display: block;
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	transition: transform 300ms ease;
}

.req-cases .bureau-ro-case-copy {
	display: flex;
	grid-column: 1;
	grid-row: 1;
	flex-direction: column;
	gap: 18px;
	min-width: 0 !important;
	max-width: 560px !important;
}

.req-cases .bureau-ro-case-copy > * {
	margin: 0;
}

.req-cases .bureau-ro-case:nth-child(even) .bureau-ro-case-image {
	grid-column: 1;
	margin: 0;
}

.req-cases .bureau-ro-case:nth-child(even) .bureau-ro-case-copy {
	grid-column: 2;
}

.req-cases .bureau-ro-case:hover .bureau-ro-case-image {
	transform: translateY(-8px) scale(1.015);
}

@media only screen and (max-width: 820px) {
	.req-cases section > article > .bureau-ro-case {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}

	.req-cases .bureau-ro-case-image,
	.req-cases .bureau-ro-case:nth-child(even) .bureau-ro-case-image {
		order: 1;
		width: 100%;
		margin: 0;
	}

	.req-cases .bureau-ro-case-copy,
	.req-cases .bureau-ro-case:nth-child(even) .bureau-ro-case-copy {
		order: 2;
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.req-cases .bureau-ro-case-image {
		transition: none;
	}

	.req-cases .bureau-ro-case:hover .bureau-ro-case-image {
		transform: none;
	}
}
