/**
 * Case Studies Feed — Archive Grid
 *
 * Design system:
 *   - Background: transparent (page provides dark background)
 *   - Cards: Glassmorphism overlay on full-bleed images
 *   - Glassmorphism: rgba(16, 16, 16, 0.28) + blur(16px) + border rgba(255,255,255,0.08)
 *   - Grid: 2 columns desktop, 1 column mobile
 *   - Container: 1220px
 *   - border-radius: 0
 */

/* ------------------------------------------------
   Section
   ------------------------------------------------ */

.stg-cases-feed {
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ------------------------------------------------
   Grid
   ------------------------------------------------ */

.stg-cases-feed__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

/* ------------------------------------------------
   Card
   ------------------------------------------------ */

.stg-cases-feed__card {
	position: relative;
	overflow: hidden;
	background: #111;
	aspect-ratio: 4 / 3;
}

/* Full-card clickable link */
.stg-cases-feed__card-link {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* ------------------------------------------------
   Card image — full bleed
   ------------------------------------------------ */

.stg-cases-feed__card-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.stg-cases-feed__card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stg-cases-feed__card:hover .stg-cases-feed__card-img {
	transform: scale(1.04);
}

.stg-cases-feed__card-bg--empty {
	background: linear-gradient(
		135deg,
		#1a1a2e 0%,
		#16213e 50%,
		#0f3460 100%
	);
}

/* ------------------------------------------------
   Top floating badges — glassmorphism pills
   ------------------------------------------------ */

.stg-cases-feed__card-top {
	position: absolute;
	top: 20px;
	left: 20px;
	right: 20px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 8px;
}

.stg-cases-feed__card-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	background: rgba(16, 16, 16, 0.3);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(14px) saturate(1.2);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	border: 1px solid rgba(255, 255, 255, 0.08);
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.7);
}

.stg-cases-feed__card-cat {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	background: rgba(16, 16, 16, 0.3);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(14px) saturate(1.2);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	border: 1px solid rgba(255, 255, 255, 0.08);
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------
   Glassmorphism info panel — floating at bottom
   ------------------------------------------------ */

.stg-cases-feed__card-glass {
	position: absolute;
	bottom: 20px;
	left: 20px;
	right: 20px;
	z-index: 3;
	padding: 24px;
	background: rgba(16, 16, 16, 0.28);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	backdrop-filter: blur(16px) saturate(1.2);
	-webkit-backdrop-filter: blur(16px) saturate(1.2);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	            backdrop-filter 0.4s ease;
}

.stg-cases-feed__card:hover .stg-cases-feed__card-glass {
	transform: translateY(-4px);
	background: rgba(16, 16, 16, 0.35);
	backdrop-filter: blur(20px) saturate(1.3);
	-webkit-backdrop-filter: blur(20px) saturate(1.3);
}

/* Card title */
.stg-cases-feed__card-title {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: clamp(20px, 2vw, 28px);
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: #FFFFFF;
	margin: 0 0 8px;
}

/* Excerpt */
.stg-cases-feed__card-excerpt {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Meta row: client + services */
.stg-cases-feed__card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.stg-cases-feed__card-client {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-weight: 500;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
}

.stg-cases-feed__card-client::after {
	content: '\00B7';
	margin-left: 8px;
	color: rgba(255, 255, 255, 0.2);
}

.stg-cases-feed__card-services {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.3);
}

/* View action — full-width strip with top separator */
.stg-cases-feed__card-action {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-family: 'Helvetica', sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #FFFFFF;
}

.stg-cases-feed__card-action span {
	margin-left: auto;
	transition: transform 0.3s ease;
}

.stg-cases-feed__card:hover .stg-cases-feed__card-action span {
	transform: translateX(4px);
}

/* ------------------------------------------------
   Responsive — Tablet
   ------------------------------------------------ */

@media (max-width: 1024px) {
	.stg-cases-feed__card-glass {
		padding: 20px;
		bottom: 16px;
		left: 16px;
		right: 16px;
	}

	.stg-cases-feed__card-top {
		top: 16px;
		left: 16px;
		right: 16px;
	}
}

/* ------------------------------------------------
   Responsive — Mobile
   ------------------------------------------------ */

@media (max-width: 767px) {
	.stg-cases-feed {
		padding: 0 20px;
	}

	.stg-cases-feed__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.stg-cases-feed__card-glass {
		padding: 18px;
		bottom: 14px;
		left: 14px;
		right: 14px;
	}

	.stg-cases-feed__card-top {
		top: 14px;
		left: 14px;
		right: 14px;
	}

	.stg-cases-feed__card-title {
		font-size: 20px;
	}

	.stg-cases-feed__card-excerpt {
		display: none;
	}

	.stg-cases-feed__card-action {
		margin-top: 12px;
		padding-top: 12px;
	}
}

/* ------------------------------------------------
   Reduced Motion
   ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.stg-cases-feed__card-img {
		transition: none;
	}

	.stg-cases-feed__card-glass {
		transition: none;
	}

	.stg-cases-feed__card-action span {
		transition: none;
	}
}
