/* ---------------------------------------------------------
   Homepage Hero — First Fold (background video + CTAs)
   --------------------------------------------------------- */

.livingmachineinstitute-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 480px;
	overflow: hidden;
	background-color: #0a0a0a; /* shows while video/poster loads */
}

/* Vimeo embed — sized/cropped to always fill the section, like object-fit: cover */
.livingmachineinstitute-hero__video-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none; /* the iframe never intercepts clicks; CTAs stay clickable */
}

.livingmachineinstitute-hero__video-wrap iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	border: 0;
	transform: translate(-50%, -50%);
}

/* Desktop video is landscape (16:9 source) */
.livingmachineinstitute-hero__video-wrap.is-landscape iframe {
	width: 100vw;
	height: 56.25vw; /* 16:9 */
	min-height: 100%;
	min-width: 177.78vh; /* 16:9 flipped, guarantees full cover */
}

/* Mobile video is portrait (9:16 source) — sized to always fit fully on
   screen with no cropping, like object-fit: contain. On phones taller/
   narrower than 9:16 this leaves a small letterboxed gap (filled by the
   hero's background color/poster) rather than cutting off the video. */
.livingmachineinstitute-hero__video-wrap.is-portrait iframe {
	width: min(56.25vh, 100vw);
	height: min(100vh, 177.78vw);
}

/* Dark overlay so CTA text/buttons stay legible over any footage */
.livingmachineinstitute-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 100%);
	pointer-events: none;
}

.livingmachineinstitute-hero__content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 16px;
	padding-top: 82px;
	padding-right: 82px;
	flex-wrap: wrap;
	opacity: 0;
	transition: opacity 0.4s ease;
}

/* Added by JS once the background video reaches its cue point (see hero-video.js) */
.livingmachineinstitute-hero__content.is-visible {
	opacity: 1;
}

.livingmachineinstitute-hero__cta {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 999px;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.15s ease;
	white-space: nowrap;
}

.livingmachineinstitute-hero__cta:hover {
	transform: translateY(-2px);
}

/* Download Brochure */
.livingmachineinstitute-hero__cta--primary {
	background-color: transparent;
	color: #ffffff;
	border: 2px solid #ffffff;
}

.livingmachineinstitute-hero__cta--primary:hover {
	background-color: rgba(255, 255, 255, 0.15);
}

/* Book Meeting */
.livingmachineinstitute-hero__cta--secondary {
	background-color: #6a1e29;
	color: #ffffff;
	border: 2px solid #6a1e29;
}

.livingmachineinstitute-hero__cta--secondary:hover {
	background-color: #591824;
}

/* Tablet / mobile breakpoint — matches the JS breakpoint in hero-video.js */
@media (max-width: 768px) {
	.livingmachineinstitute-hero {
		height: 100svh; /* better mobile viewport handling (address bar) */
	}

	.livingmachineinstitute-hero__content {
		align-items: flex-start;
		justify-content: center;
		padding-top: 10px;
		padding-right: 0;
		padding-bottom: 0;
		gap: 12px;
	}

	.livingmachineinstitute-hero__cta {
		padding: 12px 24px;
		font-size: 14px;
	}
}

/* Respect users who've asked for reduced motion: freeze on poster frame */
@media (prefers-reduced-motion: reduce) {
	.livingmachineinstitute-hero__video-wrap {
		display: none;
	}
}
