/**
 * OGC NewFinity — Case Studies page only (/case-studies/).
 * Hero + 3D stage + details panel + thumbnails. Reuses .glass-card, .ogc-home-cta, .ogc-btn.
 */

/* ---------- Hero ---------- */
.ogc-cs-hero { max-width: none; }
.ogc-cs-hero__row {
	width: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
}
.ogc-cs-count {
	margin: 0;
	white-space: nowrap;
	flex: none;
	font-family: var(--ogc-font-heading, inherit);
	font-size: 2rem;
	line-height: 1;
	color: #C9C9C9;
}
.ogc-cs-count [data-cs-current] { color: #FFB000; font-size: 2.6rem; }
.ogc-cs-count__of { opacity: 0.8; }

/* ---------- Stage ---------- */
.ogc-cs-stage { margin-top: 0.5rem; }
.ogc-cs-stage__view {
	position: relative;
	width: 100%;
}
.ogc-cs-stage__gl {
	display: none;
	width: 100%;
	aspect-ratio: 2.2;
	background: transparent;
	touch-action: pan-y;
}
.ogc-cs-stage.is-gl .ogc-cs-stage__gl { display: block; }
.ogc-cs-stage.is-gl .ogc-cs-stage__fallback { display: none; }
.ogc-cs-stage__fallback { max-width: 720px; margin: 0 auto; }
.ogc-cs-stage__fallback img {
	display: none;
	width: 100%;
	height: auto;
	border-radius: 12px;
	border: 2px solid #FFB000;
}
.ogc-cs-stage__fallback img.is-active { display: block; }

.ogc-cs-stage__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(255, 176, 0, 0.6);
	background: rgba(11, 11, 12, 0.7);
	color: #FFB000;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s ease, color 0.2s ease;
}
.ogc-cs-stage__nav:hover,
.ogc-cs-stage__nav:focus-visible { background: #FFB000; color: #111; }
.ogc-cs-stage__nav--prev { left: 0.5rem; }
.ogc-cs-stage__nav--next { right: 0.5rem; }
@media (max-width: 599px) {
	.ogc-cs-stage__gl { aspect-ratio: 1.1; }
	.ogc-cs-stage__nav { width: 40px; height: 40px; }
}

/* ---------- Details panel ---------- */
.ogc-cs-panel {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	align-items: center;
	margin-top: 1.25rem;
	padding: 1.5rem 1.75rem;
}
.ogc-cs-panel[hidden] { display: none; }
@media (min-width: 900px) {
	.ogc-cs-panel { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) auto; gap: 2.5rem; }
}
.ogc-cs-panel__meta {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #FFB000;
}
.ogc-cs-panel__title { margin: 0.35rem 0 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.ogc-cs-panel__text { margin: 0 0 1rem; line-height: 1.65; opacity: 0.92; }
.ogc-cs-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.ogc-cs-chips li {
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	font-size: 0.88rem;
	border: 1px solid rgba(255, 176, 0, 0.45);
	background: rgba(255, 176, 0, 0.08);
}
.ogc-cs-panel__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 900px) { .ogc-cs-panel__actions { flex-direction: column; } }
.ogc-cs-panel__actions .ogc-btn { text-align: center; }
.ogc-cs-panel__actions .ogc-btn--ghost {
	background: transparent;
	border: 1px solid rgba(255, 176, 0, 0.6);
	color: inherit;
	box-shadow: none;
}

/* ---------- Thumbnails ---------- */
.ogc-cs-thumbs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.25rem;
}
@media (min-width: 700px) { .ogc-cs-thumbs { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
.ogc-cs-thumb {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.6rem 0.6rem 0.8rem;
	text-align: left;
	color: inherit;
	font: inherit;
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.2s ease, transform 0.25s ease, border-color 0.2s ease;
}
.ogc-cs-thumb:hover,
.ogc-cs-thumb:focus-visible { opacity: 1; transform: translateY(-3px); }
.ogc-cs-thumb.is-active { opacity: 1; border-color: #FFB000; }
.ogc-cs-thumb__shot {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 8px;
	background: #111113;
}
.ogc-cs-thumb__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ogc-cs-thumb__label { font-size: 0.92rem; padding: 0 0.2rem; }
.ogc-cs-thumb.is-active .ogc-cs-thumb__label { color: #FFB000; }

/* Soft blur on a picture (data 'blur' => true); sharp on hover/focus. Touch screens stay sharp. */
@media (hover: hover) {
	.ogc-cs-blur { overflow: hidden; }
	.ogc-cs-blur img {
		filter: blur(4px);
		transform: scale(1.03);
		transition: filter 0.35s ease, transform 0.35s ease;
	}
	.ogc-cs-blur:hover img,
	.ogc-cs-thumb:hover .ogc-cs-blur img,
	.ogc-cs-thumb:focus-visible .ogc-cs-blur img {
		filter: none;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ogc-cs-blur img { transition: none; }
	.ogc-cs-thumb { transition: none; }
	.ogc-cs-thumb:hover, .ogc-cs-thumb:focus-visible { transform: none; }
}
