/* ==========================================================================
   Case studies: the hub (/work/) and the single template.
   Shared pieces (breadcrumb, before/after slider, "done" cards, pull quote)
   live in 00-global.css.
   ========================================================================== */

/* ---------- Hub hero + filter ---------- */
.nsd-cshero { padding: 56px 0 72px; }
.nsd-cshero__pill { margin-bottom: 28px; }
.nsd-cshero__h1 { margin: 0 0 26px; }
.nsd-cshero__lead { margin: 0 0 48px; max-width: 58ch; }
.nsd-cshero__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	border-top: 1px solid var(--hl); padding-top: 24px;
}
.nsd-cshero__pills { display: flex; flex-wrap: wrap; gap: 8px; }
html:not(.js) .nsd-cshero__pills { display: none; }
.nsd-fpill {
	font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--hl); background: transparent; color: var(--hm);
	transition: background .2s, color .2s, border-color .2s;
}
.nsd-fpill:hover { border-color: var(--ht); color: var(--ht); }
.nsd-fpill.is-on { background: var(--ht); color: var(--hb); border-color: var(--ht); }
.nsd-fpill span { font-weight: 400; } /* no opacity: the count must keep 4.5:1 contrast */
.nsd-cshero__count { font-size: 13px; font-weight: 600; color: var(--hm); }

/* ---------- Hub grid ---------- */
.nsd-cases { padding-top: 56px; }
.nsd-cases__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 20px; }
.nsd-span-7 { grid-column: span 7; }
.nsd-span-5 { grid-column: span 5; }
.nsd-span-12 { grid-column: span 12; }
.nsd-empty { font-size: 17px; color: var(--muted); }


/* ---------- Single: header ---------- */
.nsd-cshead { padding: 40px 0 0; }
.nsd-cshead__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.nsd-cshead__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.nsd-cshead__h1 { margin: 0 0 18px; max-width: none; }
.nsd-cshead__full { margin: 0; max-width: 52ch; line-height: 1.6; }
.nsd-cshead__meta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.nsd-cshead__partner { font-size: 14px; line-height: 1.55; color: var(--hm); }

/* The screenshot overlaps the hero band's bottom edge */
.nsd-straddle { position: relative; z-index: 2; margin-bottom: -180px; }
.nsd-straddle__frame {
	position: relative; aspect-ratio: 16 / 8; border-radius: var(--nsd-radius-panel); overflow: hidden;
	background: var(--hc); border: 1px solid var(--hl);
}
.nsd-afterstraddle { padding: 300px 0 0; }

.nsd-statement--case { line-height: 1.24; font-size: 24px; }
@media (min-width: 900px) { .nsd-statement--case { font-size: 34px; } }
.nsd-statement--case { font-size: clamp(24px, 2.8vw, 38px); }

/* ---------- Single: body ---------- */
.nsd-done__h { margin: 0 0 40px; max-width: none; }
.nsd-done__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.nsd-done__grid .nsd-inc { padding: 28px; gap: 14px; min-height: 0; }
.nsd-done__grid .nsd-inc:hover { transform: none; }
.nsd-done__grid .nsd-inc p { font-size: 16.5px; line-height: 1.6; color: var(--text); }

.nsd-ba__hint { font-size: 15px; color: #9A9AA6; margin: 0; }

.nsd-outcome { padding-bottom: 0; }
.nsd-outcome__text {
	font-family: 'Roboto', sans-serif; font-weight: 900; letter-spacing: -0.04em; line-height: 1.02;
	text-wrap: pretty; font-size: 28px;
}
@media (min-width: 900px) { .nsd-outcome__text { font-size: 40px; } }
.nsd-outcome__text { font-size: clamp(28px, 3.6vw, 48px); }

.nsd-stack__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nsd-stack__pills li { font-size: 14.5px; font-weight: 600; border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; }

.nsd-cquote {
	margin: 88px 0 0; background-color: var(--surface); background-image: var(--grain);
	border-radius: var(--nsd-radius-panel); padding: 56px;
	display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px;
}
.nsd-stack__pills + .nsd-cquote,
.nsd-split + .nsd-cquote { margin-top: 88px; }
.nsd-cquote:first-child { margin-top: 0; }
.nsd-cquote__avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--line); position: relative; }
.nsd-quote--case { margin: 0 0 20px; max-width: 32ch; line-height: 1.3; font-size: 22px; }
@media (min-width: 900px) { .nsd-quote--case { font-size: 30px; } }
.nsd-quote--case { font-size: clamp(22px, 2.6vw, 34px); }
.nsd-cquote figcaption { font-size: 15px; color: var(--muted); }
.nsd-cquote figcaption strong { color: var(--text); font-weight: 600; }

.nsd-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 88px; }
.nsd-pn:first-child { margin-top: 0; }
.nsd-pn__a {
	border: 1px solid var(--line); border-radius: var(--nsd-radius-card); padding: 28px;
	display: flex; flex-direction: column; gap: 8px; transition: background .2s;
}
.nsd-pn__a:hover { background: var(--surface); }
.nsd-pn__a--next { text-align: right; }
.nsd-pn__name { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 26px; line-height: 1.15; letter-spacing: -0.025em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.nsd-cases__grid > .nsd-cc { grid-column: 1 / -1; }
	.nsd-cshead__grid { grid-template-columns: 1fr; gap: 32px; }
	.nsd-straddle { margin-bottom: -60px; }
	.nsd-afterstraddle { padding-top: 120px; }
	.nsd-cquote { padding: 48px 24px; }
	.nsd-pn { grid-template-columns: 1fr; }
	.nsd-pn__a--next { text-align: left; }
}
