/* ==========================================================================
   Section: Work / Cases (01 Stabilize, 02 Government, 03 Connect).
   One shared stylesheet for all three case sections + the stat board.
   Ported verbatim from work-styles.css.
   ========================================================================== */

.case-sec { padding: 96px 0; border-top: 1px solid var(--line); }
.case-grid { display: grid; grid-template-columns: 264px 1fr; gap: 56px; align-items: start; }
.case-meta { position: sticky; top: 150px; align-self: start; display: flex; flex-direction: column; }
.case-index {
	font-family: var(--sans); font-weight: 700; font-size: 64px; line-height: 0.9;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case-axis {
	font-family: var(--body-font); font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--cyan); margin: 16px 0 20px;
	display: inline-flex; align-items: center; gap: 9px; width: fit-content;
}
.case-axis::before { content:''; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.case-client {
	font-size: 13.5px; color: var(--muted); line-height: 1.55;
	border-top: 1px solid var(--line); padding-top: 16px;
}
.case-client strong { color: var(--navy); font-weight: 600; display: block; font-family: var(--sans); margin-bottom: 3px; }
.case-client strong a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(24,173,231,0.3); transition: border-color .2s ease; }
.case-client strong a:hover { border-bottom-color: var(--cyan); }
.case-tagchip {
	margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; width: fit-content;
	font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--navy);
	background: var(--grad-soft); padding: 7px 13px; border-radius: 100px;
}

.case-body h2 { font-size: clamp(28px, 3vw, 40px); max-width: 20ch; line-height: 1.1; }
.case-body h2 em { font-style: italic; padding-right: 0.14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-block { margin-top: 30px; }
.case-sub {
	font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 10px;
}
.case-sub::after { content:''; flex: 1; height: 1px; background: var(--line-soft); }
.case-body p.body { font-size: 16.5px; color: var(--body); max-width: 64ch; line-height: 1.68; }
.case-body p.body + p.body { margin-top: 14px; }

/* ---------- Case stat board ---------- */
.case-stats {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 40px;
	background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.case-stats.three { grid-template-columns: repeat(3, 1fr); }
.cs {
	background: #fff; padding: 26px 24px; position: relative; overflow: hidden;
	transition: background .25s ease;
}
.cs::before { content:''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .35s ease; }
.cs:hover { background: var(--bg-alt); }
.cs:hover::before { transform: scaleY(1); }
.cs-n { font-family: var(--sans); font-weight: 700; font-size: 32px; line-height: 1; color: var(--navy); }
.cs-n .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-l { font-size: 12.5px; color: var(--muted); margin-top: 9px; line-height: 1.45; }

@media (max-width: 1080px) {
	.case-grid { grid-template-columns: 1fr; gap: 24px; }
	.case-meta { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
	.case-axis { margin: 0; }
	.case-client { border-top: none; padding-top: 0; }
	.case-tagchip { margin-top: 0; }
	.case-stats { grid-template-columns: repeat(2, 1fr); }
	.case-stats.three { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
	.case-sec { padding: 64px 0; }
}
@media (max-width: 560px) {
	/* All case stat boards: one achievement per row, borderless, with a
	   colored check before the value. Value + label sit on the same line. */
	.case-stats, .case-stats.three {
		display: flex; flex-direction: column;
		gap: 0; margin-top: 26px;
		background: none; border: none; border-radius: 0;
	}
	.cs { display: flex; align-items: stretch; gap: 0; padding: 0; background: none; }
	.cs:hover { background: none; }
	.cs::before {
		content: '\2713'; /* ✓ */
		position: static; width: auto; height: auto;
		background: none; transform: none;
		color: var(--green); font-size: 15px; font-weight: 700;
		flex-shrink: 0; display: flex; align-items: center; padding-right: 10px;
	}
	/* Fixed-width value column → labels align on one vertical line (divider). */
	.cs-n {
		font-size: 15px; flex-shrink: 0; width: 142px; white-space: nowrap;
		display: flex; align-items: center;
		padding: 13px 12px 13px 0; border-right: 1px solid var(--line);
	}
	.cs-l {
		font-size: 13px; margin-top: 0; line-height: 1.4;
		display: flex; align-items: center; padding: 13px 0 13px 14px;
	}
}
