.nqts-hero-video {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 90vh;
	overflow: hidden;
	background: #00525E;
}

.nqts-hero-video__media,
.nqts-hero-video__fallback,
.nqts-hero-video__fallback-image,
.nqts-hero-video__video,
.nqts-hero-video__overlay,
.nqts-hero-video__content {
	position: absolute;
	inset: 0;
}

.nqts-hero-video__fallback-image,
.nqts-hero-video__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.nqts-hero-video__fallback {
	z-index: 1;
}

.nqts-hero-video__video {
	z-index: 2;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.nqts-hero-video.is-video-ready .nqts-hero-video__video {
	opacity: 1;
}

.nqts-hero-video__overlay {
	z-index: 3;
	background:
		linear-gradient(180deg, rgba(0, 82, 94, 0.1), rgba(56, 69, 81, 0.42)),
		rgba(0, 0, 0, 0.1);
}

.nqts-hero-video__intro {
	position: relative;
	z-index: 4;
	width: min(100%, 82rem);
	max-width: 82rem;
	margin: 0 auto clamp(2.75rem, 6vh, 4.5rem);
	color: #fff;
	text-align: left;
	pointer-events: auto;
}

.nqts-hero-video__intro::before {
	content: "";
	display: block;
	width: clamp(3rem, 7vw, 5.75rem);
	height: 2px;
	margin-bottom: 1.25rem;
	background: #27b4c1;
}

.nqts-hero-video__intro .nqts-hero-video__title {
	max-width: 47rem;
	font-size: clamp(2.8rem, 4.4vw, 5rem);
	line-height: 0.94;
}

.nqts-hero-video__intro .nqts-hero-video__subtitle {
	margin-right: 0;
	margin-left: 0;
	max-width: 38rem;
	font-size: clamp(1rem, 0.45vw + 0.92rem, 1.18rem);
	line-height: 1.45;
	text-transform: none;
}

.nqts-hero-video__content {
	z-index: 4;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 2rem 2rem 3.5rem;
}

.nqts-hero-video--has-service-cards {
	display: block;
	min-height: 220vh;
	overflow: visible;
	overflow-x: clip;
}

.nqts-hero-video--has-service-cards .nqts-hero-video__media {
	position: sticky;
	top: 0;
	height: 100vh;
	min-height: 100vh;
}

.nqts-hero-video--has-service-cards .nqts-hero-video__content {
	position: relative;
	inset: auto;
	box-sizing: border-box;
	min-height: 220vh;
	margin-top: -100vh;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: clamp(12rem, 40vh, 28rem) clamp(1.25rem, 3vw, 3rem) 0;
}

.nqts-hero-video__inner {
	width: 100%;
	max-width: 52rem;
	text-align: center;
	color: #fff;
}

.nqts-hero-video__title {
	margin: 0;
	font-size: clamp(3rem, 4.15vw, 4.25rem);
	font-weight: 800;
	line-height: 0.96;
	letter-spacing: 0;
	text-transform: uppercase;
	text-wrap: balance;
	color: #fff;
	opacity: 0;
	transform: translateY(14px);
	animation: nqtsHeroFadeUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.nqts-hero-video__subtitle {
	margin: 1.15rem auto 0;
	max-width: 40rem;
	font-size: clamp(1rem, 1.08vw, 1.25rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.9);
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(14px);
	animation: nqtsHeroFadeUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.nqts-hero-video__button {
	margin-top: 1.5rem;
	opacity: 0;
	transform: translateY(14px);
	animation: nqtsHeroFadeUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}

.nqts-hero-video__service-cards {
	--nqts-service-card-shape: polygon(0% 0%, 82% 0%, 100% 18%, 100% 100%, 18% 100%, 0% 82%);
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(3rem, 5vw, 4.75rem);
	row-gap: clamp(3.25rem, 4.8vw, 4.75rem);
	width: min(100%, 82rem);
	margin: clamp(1.35rem, 3vh, 2.5rem) auto 0;
}

.nqts-hero-video__intro + .nqts-hero-video__service-cards {
	margin-top: 0;
}

.nqts-hero-video__service-card {
	--nqts-service-enter-x: 0;
	--nqts-service-enter-y: clamp(1.8rem, 3vw, 2.6rem);
	--nqts-service-rest-y: 0px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	min-height: 0;
	padding: clamp(1.25rem, 2vw, 1.75rem);
	overflow: hidden;
	isolation: isolate;
	clip-path: var(--nqts-service-card-shape);
	background-color: #384551;
	background-position: center;
	background-size: cover;
	color: #fff;
	text-align: center;
	text-decoration: none !important;
	opacity: 0;
	transform: translate3d(var(--nqts-service-enter-x), calc(var(--nqts-service-rest-y) + var(--nqts-service-enter-y)), 0) scale(0.985);
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
	transition:
		opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.95s cubic-bezier(0.16, 1, 0.24, 1),
		box-shadow 0.3s ease;
	will-change: opacity, transform;
}

.nqts-hero-video__service-card:nth-child(1) {
	grid-column: 1;
	grid-row: 1;
	transition-delay: 0.04s;
}

.nqts-hero-video__service-card:nth-child(2) {
	--nqts-service-rest-y: clamp(4.25rem, 6vw, 5.25rem);
	grid-column: 2;
	grid-row: 1;
	transition-delay: 0.1s;
}

.nqts-hero-video__service-card:nth-child(3) {
	grid-column: 1;
	grid-row: 2;
	transition-delay: 0.16s;
}

.nqts-hero-video__service-card:nth-child(4) {
	--nqts-service-rest-y: clamp(4.25rem, 6vw, 5.25rem);
	grid-column: 2;
	grid-row: 2;
	transition-delay: 0.22s;
}

.nqts-hero-video__service-card.is-visible {
	opacity: 1;
	transform: translate3d(0, var(--nqts-service-rest-y), 0) scale(1);
}

.nqts-hero-video__service-card:hover,
.nqts-hero-video__service-card:focus-visible {
	box-shadow: 0 26px 64px rgba(0, 0, 0, 0.28);
	outline: none;
	transform: translate3d(0, calc(var(--nqts-service-rest-y) - 5px), 0) scale(1.008);
}

.nqts-hero-video__service-overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(0, 82, 94, 0.3), rgba(6, 29, 34, 0.74)),
		rgba(0, 82, 94, 0.28);
	transition: background 0.3s ease;
}

.nqts-hero-video__service-card:hover .nqts-hero-video__service-overlay,
.nqts-hero-video__service-card:focus-visible .nqts-hero-video__service-overlay {
	background:
		linear-gradient(180deg, rgba(0, 82, 94, 0.18), rgba(6, 29, 34, 0.62)),
		rgba(0, 82, 94, 0.18);
}

.nqts-hero-video__service-title {
	display: block;
	max-width: 25rem;
	color: #fff;
	font-size: clamp(1.18rem, 0.8vw + 0.92rem, 1.55rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.18;
	text-transform: uppercase;
	text-wrap: balance;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
	transition: transform 0.3s ease;
}

.nqts-hero-video__service-card:nth-child(1) .nqts-hero-video__service-title {
	max-width: 34rem;
}

.nqts-hero-video__service-card:nth-child(4) .nqts-hero-video__service-title {
	max-width: 31rem;
}

.nqts-hero-video__service-card:hover .nqts-hero-video__service-title,
.nqts-hero-video__service-card:focus-visible .nqts-hero-video__service-title {
	transform: translateY(-4px);
}

@keyframes nqtsHeroFadeUp {
	0% {
		opacity: 0;
		transform: translateY(14px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nqts-hero-video__title,
	.nqts-hero-video__subtitle,
	.nqts-hero-video__button {
		opacity: 1;
		transform: none;
		animation: none;
	}

	.nqts-hero-video__video {
		transition: none;
	}

	.nqts-hero-video__service-card {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

@media (max-width: 1120px) {
	.nqts-hero-video {
		min-height: auto;
		background: #061d22;
		overflow: visible;
	}

	.nqts-hero-video--has-service-cards {
		display: flow-root;
		height: auto;
		min-height: auto;
		overflow: visible;
		overflow-x: clip;
		isolation: isolate;
	}

	.nqts-hero-video--has-service-cards::after {
		content: "";
		position: absolute;
		right: 0;
		bottom: -2px;
		left: 0;
		z-index: 5;
		height: 3px;
		background: #384551;
		pointer-events: none;
	}

	.nqts-hero-video--has-service-cards .nqts-hero-video__media {
		display: block;
		position: relative;
		inset: 0;
		width: 100%;
		height: clamp(22rem, 62svh, 34rem);
		min-height: 0;
		overflow: hidden;
	}

	.nqts-hero-video__content {
		align-items: center;
		box-sizing: border-box;
		padding: 1.5rem 1.25rem;
	}

	.nqts-hero-video--has-service-cards .nqts-hero-video__content {
		display: flex;
		position: relative;
		inset: auto;
		width: 100%;
		height: auto;
		min-height: 0;
		margin-top: 0;
		align-items: center;
		justify-content: flex-start;
		padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem) clamp(4rem, 8vw, 5rem);
		background: #061d22;
	}

	.nqts-hero-video__intro {
		width: 100%;
		max-width: 35rem;
		margin-bottom: clamp(1.8rem, 5vw, 2.5rem);
	}

	.nqts-hero-video__intro::before {
		margin-bottom: 1rem;
	}

	.nqts-hero-video__intro .nqts-hero-video__title {
		font-size: clamp(2.15rem, 6.4vw, 3.6rem);
		line-height: 0.98;
	}

	.nqts-hero-video__intro .nqts-hero-video__subtitle {
		max-width: 31rem;
		font-size: clamp(0.95rem, 1.4vw, 1.08rem);
		line-height: 1.4;
	}

	.nqts-hero-video__title {
		font-size: clamp(2rem, 7.4vw, 2.8rem);
		line-height: 1;
	}

	.nqts-hero-video__subtitle {
		margin-top: 0.9rem;
		font-size: 0.98rem;
		line-height: 1.25;
	}

	.nqts-hero-video__service-cards {
		grid-template-columns: 1fr;
		gap: clamp(1.35rem, 4.8vw, 1.75rem);
		width: 100%;
		max-width: min(30rem, calc(100vw - 2rem));
		margin-top: 0;
		margin-right: auto;
		margin-left: auto;
	}

	.nqts-hero-video__service-card {
		--nqts-service-enter-x: 0;
		--nqts-service-rest-y: 0px;
		aspect-ratio: 16 / 10;
		grid-column: auto !important;
		grid-row: auto !important;
		min-height: 0;
		padding: 1rem;
		clip-path: polygon(0% 0%, 90% 0%, 100% 10%, 100% 100%, 10% 100%, 0% 90%);
		opacity: 1;
		transform: none;
		box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
		transition:
			transform 0.25s ease,
			box-shadow 0.25s ease;
	}

	.nqts-hero-video__service-card + .nqts-hero-video__service-card {
		margin-top: 0;
	}

	@supports not (gap: 1rem) {
		.nqts-hero-video__service-card + .nqts-hero-video__service-card {
			margin-top: clamp(1.35rem, 4.8vw, 1.75rem);
		}
	}

	.nqts-hero-video__service-card:nth-child(2),
	.nqts-hero-video__service-card:nth-child(4) {
		--nqts-service-enter-x: 0;
	}

	.nqts-hero-video__service-card:nth-child(1) {
		background-position: 50% 50%;
	}

	.nqts-hero-video__service-card:nth-child(2) {
		background-position: 58% 50%;
	}

	.nqts-hero-video__service-card:nth-child(3) {
		background-position: 42% 50%;
	}

	.nqts-hero-video__service-card:nth-child(4) {
		background-position: 46% 50%;
	}

	.nqts-hero-video__service-card.is-visible {
		opacity: 1;
		transform: none;
	}

	.nqts-hero-video__service-card:hover,
	.nqts-hero-video__service-card:focus-visible {
		transform: translateY(-3px) scale(1);
	}

	.nqts-hero-video__service-title {
		max-width: 17rem;
		font-size: clamp(0.92rem, 3.8vw, 1.08rem);
		line-height: 1.18;
	}
}

@media (min-width: 769px) and (max-width: 1120px) {
	.nqts-hero-video__service-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		max-width: min(62rem, calc(100vw - 2rem));
		column-gap: clamp(1.5rem, 3vw, 2.5rem);
		row-gap: clamp(2rem, 3.4vw, 3rem);
	}

	.nqts-hero-video__service-card {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.nqts-hero-video__service-card + .nqts-hero-video__service-card {
		margin-top: 0;
	}

	.nqts-hero-video__service-title {
		max-width: 21rem;
		font-size: clamp(1.05rem, 0.85vw + 0.8rem, 1.28rem);
	}

	.nqts-hero-video__service-card:nth-child(1) .nqts-hero-video__service-title {
		max-width: 27rem;
	}

	.nqts-hero-video__service-card:nth-child(4) .nqts-hero-video__service-title {
		max-width: 25rem;
	}

	.nqts-hero-video__service-card:nth-child(1),
	.nqts-hero-video__service-card:nth-child(3) {
		--nqts-service-enter-x: 0;
	}

	.nqts-hero-video__service-card:nth-child(2),
	.nqts-hero-video__service-card:nth-child(4) {
		--nqts-service-enter-x: 0;
		--nqts-service-rest-y: 0px;
	}
}

@media (max-width: 640px) {
	.nqts-hero-video__intro {
		margin-bottom: clamp(1.65rem, 5.5vw, 2rem);
	}

	.nqts-hero-video__intro .nqts-hero-video__title {
		font-size: clamp(2rem, 8.8vw, 2.6rem);
	}

	.nqts-hero-video__intro .nqts-hero-video__subtitle {
		font-size: 0.94rem;
	}

	.nqts-hero-video__service-cards {
		gap: clamp(1.45rem, 5.5vw, 1.9rem);
		max-width: calc(100vw - 2rem);
	}

	@supports not (gap: 1rem) {
		.nqts-hero-video__service-card + .nqts-hero-video__service-card {
			margin-top: clamp(1.45rem, 5.5vw, 1.9rem);
		}
	}

	.nqts-hero-video__service-title {
		font-size: clamp(0.94rem, 4vw, 1.06rem);
	}
}
