.nqts-products-portfolio {
	--nqts-products-bg: #384551;
	--nqts-products-teal: #00525E;
	--nqts-products-teal-bright: #27B4C1;
	--nqts-products-ink: #101c20;
	--nqts-products-muted: rgba(255, 255, 255, 0.78);
	--nqts-products-shape: polygon(0% 0%, calc(100% - 38px) 0%, 100% 38px, 100% 100%, 38px 100%, 0% calc(100% - 38px));
	box-sizing: border-box;
	margin: 0;
	padding: clamp(4rem, 7vw, 7rem) clamp(1.125rem, 4vw, 3rem);
	background: var(--nqts-products-bg);
	color: #ffffff;
	font-family: inherit;
	overflow: hidden;
}

.nqts-products-portfolio *,
.nqts-products-portfolio *::before,
.nqts-products-portfolio *::after {
	box-sizing: border-box;
}

.nqts-products-portfolio__inner {
	width: min(100%, 1320px);
	max-width: 100%;
	margin: 0 auto;
	min-width: 0;
}

.nqts-products-portfolio__header {
	width: min(100%, 760px);
	max-width: 100%;
	margin: 0 auto clamp(2.75rem, 5vw, 4.875rem);
	text-align: center;
	min-width: 0;
}

.nqts-products-portfolio__title {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	color: #ffffff;
	font-size: clamp(2.25rem, 4.4vw, 4rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0;
}

.nqts-products-portfolio__subtitle {
	width: 100%;
	max-width: 100%;
	margin: 1.25rem auto 0;
	color: var(--nqts-products-muted);
	font-size: clamp(1rem, 1.3vw, 1.125rem);
	font-weight: 400;
	line-height: 1.7;
	min-width: 0;
	white-space: normal;
	overflow-wrap: break-word;
}

.nqts-products-portfolio__subtitle p {
	margin: 0;
	white-space: normal;
	overflow-wrap: break-word;
}

.nqts-products-portfolio__grid {
	display: grid;
	width: 100%;
	max-width: 100%;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.75rem, 3vw, 3rem);
	align-items: stretch;
	min-width: 0;
}

.nqts-products-portfolio__card {
	position: relative;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 100%;
	background: #ffffff;
	color: var(--nqts-products-ink);
	text-decoration: none !important;
	clip-path: var(--nqts-products-shape);
	isolation: isolate;
	transition:
		transform 0.24s ease,
		filter 0.24s ease;
}

.nqts-products-portfolio__card::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid rgba(255, 255, 255, 0.32);
	clip-path: var(--nqts-products-shape);
	pointer-events: none;
	z-index: 2;
}

.nqts-products-portfolio__card::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 42px;
	height: 42px;
	background: linear-gradient(135deg, rgba(0, 82, 94, 0), rgba(0, 82, 94, 0.2));
	pointer-events: none;
	z-index: 1;
}

a.nqts-products-portfolio__card:hover,
a.nqts-products-portfolio__card:focus-visible {
	transform: translateY(-5px);
	filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.18));
	outline: none;
}

a.nqts-products-portfolio__card:focus-visible::before {
	border-color: var(--nqts-products-teal-bright);
	border-width: 2px;
}

.nqts-products-portfolio__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	min-height: 0;
	padding: clamp(1.125rem, 2.4vw, 2rem);
	background:
		linear-gradient(90deg, rgba(0, 82, 94, 0.05) 1px, transparent 1px),
		linear-gradient(0deg, rgba(0, 82, 94, 0.05) 1px, transparent 1px),
		#f8faf9;
	background-size: 32px 32px;
}

.nqts-products-portfolio__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	mix-blend-mode: multiply;
}

.nqts-products-portfolio__card--cover .nqts-products-portfolio__media {
	padding: 0;
	background: #dfe5e4;
}

.nqts-products-portfolio__card--cover .nqts-products-portfolio__image {
	object-fit: cover;
	mix-blend-mode: normal;
}

.nqts-products-portfolio__content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 76px;
	padding: 1rem 1.35rem 1.05rem 1.55rem;
	background: #ffffff;
	border-top: 1px solid rgba(56, 69, 81, 0.14);
}

.nqts-products-portfolio__content::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 42%;
	height: 3px;
	background: var(--nqts-products-teal);
	transition: width 0.24s ease;
}

a.nqts-products-portfolio__card:hover .nqts-products-portfolio__content::before,
a.nqts-products-portfolio__card:focus-visible .nqts-products-portfolio__content::before {
	width: 72%;
	background: var(--nqts-products-teal-bright);
}

.nqts-products-portfolio__product-title {
	margin: 0;
	color: var(--nqts-products-ink);
	font-size: clamp(1rem, 1.35vw, 1.18rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.nqts-products-portfolio__arrow {
	position: relative;
	flex: 0 0 auto;
	width: 28px;
	height: 18px;
	transition:
		opacity 0.24s ease,
		transform 0.24s ease;
}

.nqts-products-portfolio__arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 14px;
	height: 14px;
	border-top: 2px solid var(--nqts-products-teal);
	border-right: 2px solid var(--nqts-products-teal);
	transform: translateY(-50%) rotate(45deg);
}

.nqts-products-portfolio__arrow::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1px;
	width: 25px;
	height: 2px;
	background: var(--nqts-products-teal);
	transform: translateY(-50%);
	transform-origin: right center;
	transition: transform 0.24s ease;
}

a.nqts-products-portfolio__card:hover .nqts-products-portfolio__arrow,
a.nqts-products-portfolio__card:focus-visible .nqts-products-portfolio__arrow {
	opacity: 1;
	transform: translateX(3px);
}

a.nqts-products-portfolio__card:hover .nqts-products-portfolio__arrow::before,
a.nqts-products-portfolio__card:focus-visible .nqts-products-portfolio__arrow::before {
	border-color: var(--nqts-products-teal-bright);
}

a.nqts-products-portfolio__card:hover .nqts-products-portfolio__arrow::after,
a.nqts-products-portfolio__card:focus-visible .nqts-products-portfolio__arrow::after {
	background: var(--nqts-products-teal-bright);
	transform: translateY(-50%) scaleX(1.12);
}

@media (max-width: 1024px) {
	.nqts-products-portfolio__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.nqts-products-portfolio {
		padding: 3.5rem 0.9375rem;
	}

	.nqts-products-portfolio__inner,
	.nqts-products-portfolio__header,
	.nqts-products-portfolio__grid {
		width: 100%;
		max-width: 100%;
	}

	.nqts-products-portfolio__grid {
		margin-inline: 0;
	}

	.nqts-products-portfolio__header {
		margin: 0 0 2.25rem;
		text-align: left;
	}

	.nqts-products-portfolio__title {
		display: block;
		width: 100%;
		max-width: 100%;
		font-size: 2rem;
		line-height: 1.12;
		white-space: normal;
		overflow-wrap: normal;
	}

	.nqts-products-portfolio__grid {
		grid-template-columns: 1fr;
		gap: 1.875rem;
	}

	.nqts-products-portfolio__content {
		min-height: 68px;
		padding: 0.95rem 1.1rem 1rem 1.65rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nqts-products-portfolio__card,
	.nqts-products-portfolio__content::before,
	.nqts-products-portfolio__arrow {
		transition: none;
	}
}
