.wx-niches__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	column-gap: 60px;
	align-items: stretch;
	perspective: 1200px;
}

.wx-niches__stack {
	display: grid;
	gap: 60px;
}

.wx-niches__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 60px;
}

.wx-ncard {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 100%;
	overflow: hidden;
	background: #f7f5f4;
	color: #121212;
	text-decoration: none;
}

.wx-ncard__copy,
.wx-ncard__lead {
	position: relative;
	z-index: 2;
}

.wx-ncard__copy {
	padding: 36px 40px 0;
}

.wx-ncard__name {
	margin: 0 0 19px;
	font-size: clamp(2rem, 2.4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.04em;
}

.wx-ncard__tags {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0 0 22px;
	font-family: var(--wx-mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
	color: #575960;
}

.wx-ncard__tags span { display: block; }

.wx-ncard__lead {
	max-width: 360px;
	margin: 0;
	padding: 0 40px 40px;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.wx-ncard__copy .wx-ncard__lead {
	padding: 0 0 8px;
}

.wx-ncard__lead span { color: #8a8d96; }

.wx-ncard--shop .wx-ncard__art {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	width: 100%;
	height: auto;
	max-height: 62%;
	object-fit: contain;
	object-position: center bottom;
	pointer-events: none;
}

.wx-ncard--local,
.wx-ncard--med,
.wx-ncard--law {
	height: 420px;
	justify-content: space-between;
}

.wx-ncard--local img,
.wx-ncard--med img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wx-ncard--local::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(247, 245, 244, 1) 0%, rgba(247, 245, 244, 0.35) 42%, rgba(247, 245, 244, 0) 78%);
	pointer-events: none;
}

.wx-ncard--med {
	background: #111;
	color: #fff;
}

.wx-ncard--med .wx-ncard__tags,
.wx-ncard--med .wx-ncard__lead span { color: rgba(255, 255, 255, 0.72); }

.wx-ncard--med::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: radial-gradient(circle closest-side, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.72));
	pointer-events: none;
}

.wx-ncard--law { overflow: hidden; }

.wx-ncard--law .wx-ncard__aside {
	position: absolute;
	right: -36px;
	bottom: -24px;
	z-index: 1;
	width: min(46%, 280px);
	height: auto;
	pointer-events: none;
}

@media (min-width: 1600px) {
	.wx-ncard--local,
	.wx-ncard--med,
	.wx-ncard--law { height: 500px; }
}

@media (max-width: 1024px) {
	.wx-niches__grid,
	.wx-niches__row { grid-template-columns: 1fr; }
	.wx-niches__grid,
	.wx-niches__stack,
	.wx-niches__row { gap: 24px; }
	.wx-ncard--shop { min-height: 34rem; }
	.wx-ncard--local,
	.wx-ncard--med,
	.wx-ncard--law { height: auto; min-height: 22rem; }
	.wx-ncard__copy { padding: 28px 24px 0; }
	.wx-ncard__lead { padding: 0 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.wx-ncard { transform: none !important; }
}
