/* =====================================================
   Experiences Video Module
   ===================================================== */

.experiences_video_module {
	position: relative;
	background: var(--black);
	overflow: hidden;

	height: 100svh;
  min-height: 500px;
	margin-top: -170px;
}

.evm-inner {
	position: relative;
	width: 100%;
	min-height: 120vh;
}

/* ---- Title ---- */

.evm-title {
	position: absolute;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	margin: 0;


	font-size: clamp(3.5rem, 8.5vw, 10.5rem);
	font-weight: 900;
font-family: var(--black-font);


letter-spacing: clamp(-6px, -0.12vw, -0.5px);

	color: var(--white);
	text-transform: uppercase;
	letter-spacing: 0.01em;
	white-space: nowrap;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

/* ---- Cards — shared ---- */

.evm-card {
	position: absolute;
	overflow: hidden;
	border-radius: 6px;
	will-change: transform;
	background: #222;
}

.evm-card video,
.evm-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---- Card positions & z-index ---- */
/*
 * Top cards sit above the title (z-index 3).
 * Bottom cards sit below the title (z-index 1).
 * Title is z-index 2.
 *
 * Positions and sizes derived from the design screenshot.
 * Cards use percentage positions relative to the section width.
 */

/* Card 1 — top-left, landscape */
.evm-card--one {
	top: 5%;
	left: 8%;
	width: 22%;
	aspect-ratio: 4 / 3;
	z-index: 3;
}

/* Card 2 — top-right, wide landscape */
.evm-card--two {
	top: 5%;
	right: 2%;
	width: 28%;
	aspect-ratio: 16 / 10;
	z-index: 3;
}

/* Card 3 — bottom-left, large landscape */
.evm-card--three {
	top: 50%;
	left: -1%;
	width: 38%;
	aspect-ratio: 16 / 9;
	z-index: 1;
}

/* Card 4 — bottom-centre, landscape */
.evm-card--four {
	top: 52%;
	left: 49%;
	width: 21%;
	aspect-ratio: 4 / 3;
	z-index: 1;
}

/* Card 5 — bottom-right, portrait-ish */
.evm-card--five {
	top: 46%;
	right: 2%;
	width: 25%;
	aspect-ratio: 3 / 4;
	z-index: 1;
}

/* =====================================================
   Responsive — tablet
   ===================================================== */

@media (max-width: 1199px) {
	.evm-title {
		font-size: clamp(2.5rem, 17vw, 6rem);
	}

	.evm-card--one  { width: 25%; }
	.evm-card--two  { width: 32%; }
	.evm-card--three { width: 42%; }
	.evm-card--four  { width: 24%; }
	.evm-card--five  { width: 28%; }
}

/* =====================================================
   Responsive — mobile: stack vertically, disable parallax
   (JS parallax is also disabled below 768px)
   ===================================================== */

@media (max-width: 767px) {
	.experiences_video_module,
	.evm-inner {
		min-height: unset;
		padding: 100px 0px 0px;
	}

	.evm-inner {
		display: flex;
		flex-direction: column;
		gap: 12px;
		padding: 60px 15px;
	}

	.evm-title {
		position: static;
		transform: none;
		white-space: normal;
		text-align: center;
		font-size: clamp(2.5rem, 14vw, 4rem);
		order: -1;
		margin-bottom: 8px;
	}

	.evm-card {
		position: static;
		width: 100%;
		aspect-ratio: 16 / 9;
		will-change: auto;
		transform: none !important; /* override any JS-applied transform */
	}

	/* Restore natural media sizing on mobile */
	.evm-card video,
	.evm-card img {
		position: static;
		width: 100%;
		height: auto;
		object-fit: cover;
	}
}
