/* Systical — Tech Stack (platform cards) */

.sys-ts {
	--ts-max: 1240px;
	--ts-cols: 4;
	--ts-gap: 24px;
	--ts-card-bg: #0d0d0d;
	--ts-disc-bg: #1c1c1c;
	--ts-radius: 24px;
	--ts-mark: 40%;
	--ts-desc: 18px;
	display: block;
	padding: 40px 40px 110px;
	background-color: #070707;
}

.sys-ts__inner {
	max-width: var(--ts-max);
	margin: 0 auto;
}

/* ---------- heading ---------- */

/* Heading against the left edge with the paragraph beside it, so the two read
   as one line of introduction rather than a stacked block. Collapses to one
   column once the pair no longer fit side by side. */
.sys-ts__head {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: start;
	gap: 48px;
	margin-bottom: 56px;
}

.sys-ts__title {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: clamp(30px, 3.8vw, 46px);
	font-weight: 800;
	line-height: 1.14;
	letter-spacing: -0.028em;
	color: #fff;
}

.sys-ts__desc {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: var(--ts-desc);
	line-height: 1.6;
	color: #9a9a9a;
}

/* ---------- cards ---------- */

.sys-ts__grid {
	display: grid;
	grid-template-columns: repeat(var(--ts-cols), minmax(0, 1fr));
	gap: var(--ts-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sys-ts__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

/* Square, so the grid keeps its rhythm whatever the logo inside is shaped
   like. The disc is a circle inside that square. */
.sys-ts__disc {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	container-type: inline-size;
	border-radius: var(--ts-radius);
	background-color: var(--ts-card-bg);
	background-image: radial-gradient(
		circle at 50% 50%,
		var(--ts-disc-bg) 0 49.5%,
		transparent 50%
	);
}

/* Two classes deep: Elementor ships `.elementor img { height: auto }` at
   (0,1,1), which would beat a single-class rule. */
.sys-ts .sys-ts__img,
.sys-ts .sys-ts__svg {
	display: block;
	width: var(--ts-mark);
	height: var(--ts-mark);
	object-fit: contain;
}

/* Several of these brands really are a monogram in a rounded square, so this
   is the mark rather than a stand-in for one.

   Sized in `cqw` — a share of the card — because a percentage font-size
   resolves against the *inherited* font size, not the box. `calc(40% * 0.62)`
   looked like it meant "62% of the mark size" and actually produced 4px. The
   px value below it is the fallback for browsers without container queries. */
.sys-ts__mono {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 46px;
	font-size: 25cqw;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: #fff;
}

.sys-ts__label {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: #d6d6d6;
	text-align: center;
}

/* ---------- editor empty state ---------- */

.sys-ts--empty {
	padding: 40px;
	color: #929292;
	font-family: Inter, system-ui, sans-serif;
	text-align: center;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.sys-ts {
		--ts-gap: 18px;
	}

	.sys-ts__head {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		margin-bottom: 40px;
	}
}

@media (max-width: 767px) {
	.sys-ts {
		--ts-gap: 14px;
		--ts-radius: 18px;
		padding: 24px 18px 64px;
	}

	.sys-ts__head {
		margin-bottom: 32px;
	}

	.sys-ts__desc {
		margin-top: 14px;
	}

	.sys-ts__card {
		gap: 12px;
	}

	.sys-ts__label {
		font-size: 13.5px;
	}
}
