:root {
	--tmx-navy: #071a2e;
	--tmx-navy-soft: #0d2843;
	--tmx-blue: #70c8ee;
	--tmx-white: #ffffff;
	--tmx-muted: #b9c8d8;
}

.tmx-case,
.tmx-case * {
	box-sizing: border-box;
}

.tmx-case {
	position: relative;
	width: 100%;
	padding: clamp(64px, 7vw, 112px) 24px;
	overflow: hidden;
	color: var(--tmx-white);
	background:
		radial-gradient(circle at 85% 12%, rgba(112, 200, 238, .15), transparent 32%),
		var(--tmx-navy);
	font-family: inherit;
}

.tmx-case__inner {
	width: min(1380px, 100%);
	margin: 0 auto;
}

.tmx-case__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
	min-height: 650px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 26px;
	overflow: hidden;
	background: var(--tmx-navy-soft);
	box-shadow: 0 28px 70px rgba(0, 0, 0, .25);
}

.tmx-case__visual {
	position: relative;
	min-height: 560px;
	overflow: hidden;
}

.tmx-case__visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 58%, var(--tmx-navy-soft) 100%);
	pointer-events: none;
}

.tmx-case__visual img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: transform .8s ease;
}

.tmx-case__hero:hover .tmx-case__visual img {
	transform: scale(1.025);
}

.tmx-case__location {
	position: absolute;
	left: 28px;
	bottom: 28px;
	z-index: 1;
	padding: 10px 14px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 999px;
	background: rgba(7, 26, 46, .76);
	backdrop-filter: blur(8px);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
}

.tmx-case__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(40px, 5vw, 76px);
}

.tmx-case__eyebrow {
	margin: 0 0 20px;
	color: var(--tmx-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .17em;
}

.tmx-case h2 {
	max-width: 660px;
	margin: 0;
	color: var(--tmx-white);
	font-size: clamp(38px, 4.2vw, 68px);
	line-height: .98;
	letter-spacing: -.045em;
}

.tmx-case__lead {
	max-width: 650px;
	margin: 26px 0 32px;
	color: var(--tmx-muted);
	font-size: 17px;
	line-height: 1.65;
}

.tmx-case__systems {
	display: grid;
	gap: 0;
	margin: 0 0 34px;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.tmx-case__systems li {
	display: grid;
	grid-template-columns: 42px 1fr;
	gap: 12px;
	align-items: center;
	padding: 13px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.tmx-case__systems span {
	color: var(--tmx-blue);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
}

.tmx-case__systems p {
	margin: 0;
	color: #eef5fb;
	font-size: 14px;
	line-height: 1.45;
}

.tmx-case__cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 24px;
	padding: 15px 22px;
	border-radius: 999px;
	color: #06192c !important;
	background: var(--tmx-blue);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform .2s ease, background .2s ease;
}

.tmx-case__cta:hover {
	transform: translateY(-2px);
	background: #9cddf7;
}

.tmx-case__gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.tmx-case__card {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 20px;
	background: rgba(255, 255, 255, .055);
}

.tmx-case__image-button {
	width: 100%;
	height: 260px;
	padding: 0;
	overflow: hidden;
	border: 0;
	cursor: zoom-in;
	background: #0c2138;
}

.tmx-case__image-button img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform .45s ease;
}

.tmx-case__image-button:hover img {
	transform: scale(1.04);
}

.tmx-case__card-copy {
	padding: 24px;
}

.tmx-case__card h3 {
	margin: 0 0 8px;
	color: var(--tmx-white);
	font-size: 20px;
}

.tmx-case__card p {
	margin: 0;
	color: var(--tmx-muted);
	font-size: 14px;
	line-height: 1.55;
}

.tmx-lightbox[hidden] {
	display: none;
}

.tmx-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 34px;
	background: rgba(2, 10, 18, .94);
}

.tmx-lightbox img {
	max-width: min(1500px, 94vw);
	max-height: 88vh;
	border-radius: 16px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.tmx-lightbox__close {
	position: absolute;
	top: 18px;
	right: 24px;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	color: #fff;
	background: rgba(255, 255, 255, .08);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 1024px) {
	.tmx-case__hero {
		grid-template-columns: 1fr;
	}
	.tmx-case__visual {
		min-height: 480px;
	}
	.tmx-case__visual::after {
		background: linear-gradient(0deg, var(--tmx-navy-soft), transparent 38%);
	}
	.tmx-case__gallery {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 680px) {
	.tmx-case {
		padding: 48px 14px;
	}
	.tmx-case__hero {
		min-height: auto;
		border-radius: 18px;
	}
	.tmx-case__visual {
		min-height: 340px;
	}
	.tmx-case__content {
		padding: 34px 24px 38px;
	}
	.tmx-case h2 {
		font-size: clamp(34px, 12vw, 48px);
	}
	.tmx-case__lead {
		font-size: 15px;
	}
	.tmx-case__gallery {
		grid-template-columns: 1fr;
	}
	.tmx-case__image-button {
		height: 230px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tmx-case *,
	.tmx-case *::before,
	.tmx-case *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

