/* ============ Case studies ============ */
.cs-hero { padding: 130px 0 70px; overflow: clip; }
.cs-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--muted); margin-bottom: 26px; }
.cs-back .arrow { width: 18px; height: 18px; stroke-width: 3; transform: scaleX(-1); }
.cs-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cs-meta span { padding: 5px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.cs-title { font: 700 clamp(3rem, 7vw, 6.4rem)/1.25 var(--display); margin-bottom: clamp(36px, 5vw, 60px); }
.cs-title .accent { color: var(--ochre); }
.cs-shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: 0 50px 90px -60px rgba(27, 26, 23, .6), 0 0 0 1px var(--line); transform-origin: 50% 0; }
.cs-shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.cs-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.cs-stat { padding: 28px 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.cs-v { display: flex; align-items: center; gap: 4px; font: 700 clamp(3rem, 6vw, 4.6rem)/1.1 var(--display); color: var(--ochre); }
.cs-k { font-weight: 700; margin-top: 6px; }
.cs-d { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.gr { display: grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 14px; color: #fff; font: 700 .8em var(--text); }
.gr-d { background: var(--ochre); } .gr-a { background: #3d8b4f; }
.gr-arrow .ic { width: 40px; height: 40px; stroke: var(--ink); stroke-width: 2.6; margin-inline: 10px; }

.cs-sit { padding: var(--sec) 0; border-top: 1px solid var(--line); }
.sit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 6vw, 90px); align-items: end; }
.cs-quote { margin: 0; }
.cs-quote p { font: 700 clamp(2.2rem, 4.4vw, 3.8rem)/1.45 var(--display); }
.cs-quote cite { display: block; margin-top: 16px; font-style: normal; color: var(--muted); font-weight: 600; }
.cs-sit-t { max-width: 52ch; }

.cs-plug { padding: var(--sec) 0; background: var(--paper-2); border-block: 1px solid var(--line); }
.plug-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.plug-grid .body-lg { margin-top: 18px; }
.plugs { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.plugs-n { font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.plugs-v { font: 700 3rem var(--display); color: var(--ochre); margin-inline-end: 6px; }
.plugs-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.plugs-grid i { aspect-ratio: 1; border-radius: 10px; background: var(--ink); }
.plugs-grid i.gone { background: var(--ochre); }

/* decisions: a horizontal track on desktop */
.cs-dec { background: var(--ink); color: var(--paper); overflow: clip; }
.dec-pin { padding: clamp(80px, 10vw, 120px) 0; }
.dec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(36px, 5vw, 60px); }
.cs-dec .label, .cs-dec .muted { color: rgba(243, 236, 220, .6); }
.dec-count { font: 700 1.4rem var(--display); color: rgba(243, 236, 220, .6); }
.dc-now { display: inline-block; font-size: 2.6rem; color: var(--paper); }
.dec-track { display: flex; gap: 20px; padding-inline: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); width: max-content; }
.dec { flex: none; width: min(520px, 78vw); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: rgba(243, 236, 220, .06); border: 1px solid rgba(243, 236, 220, .14); }
.dec-n { display: block; font: 700 4.4rem/1 var(--display); color: var(--ochre); margin-bottom: 22px; }
.dec h3 { font: 700 clamp(1.7rem, 2.8vw, 2.3rem)/1.4 var(--display); margin-bottom: 12px; }
.dec p { color: rgba(243, 236, 220, .75); font-size: 1.05rem; }

.cs-res { padding: var(--sec) 0; }
.cs-lesson { margin-top: 40px; padding: 30px 34px; border-radius: var(--radius); background: var(--paper-2); font: 700 clamp(1.3rem, 2.2vw, 1.7rem)/1.7 var(--display); }

.cs-del { padding: var(--sec) 0; }
.del-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 6vw, 90px); align-items: start; }
.del-g { margin-top: 36px; }
.del-g h3 { font: 700 1.4rem var(--display); margin-bottom: 12px; }
.del-g .incl { gap: 0; border-top: 1px solid var(--line); }
.del-g .incl li { padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.facts { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.facts-t { font: 700 1.3rem var(--display); margin-bottom: 10px; }
.facts dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .82rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 700; }

/* next project */
.cs-next { padding: 0 0 var(--sec); }
.next { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 240px auto; grid-template-rows: auto auto; column-gap: 30px; align-items: center; padding-block: 40px; border-block: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.next-k { grid-column: 1; color: var(--muted); font-weight: 600; }
.next-t { grid-column: 1; font: 700 clamp(2.2rem, 5vw, 4.2rem)/1.3 var(--display); transition: color .3s; }
.next:hover .next-t { color: var(--ochre); }
.next-img { grid-column: 2; grid-row: 1 / 3; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; }
.next-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.next:hover .next-img img { transform: scale(1.06); }
.next-go { grid-column: 3; grid-row: 1 / 3; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--ink); }
.next-go .ic { width: 28px; height: 28px; stroke: var(--paper); stroke-width: 3; transition: transform .35s; }
.next:hover .next-go .ic { transform: translateX(-6px); }

@media (max-width: 900px) {
	.cs-hero { padding: 110px 0 50px; }
	.cs-stats, .sit-grid, .plug-grid, .del-grid { grid-template-columns: minmax(0, 1fr); }
	.cs-shot img { aspect-ratio: 4 / 3; }
	.dec-track { flex-direction: column; width: auto; padding-inline: var(--gutter); }
	.dec { width: auto; }
	.dec-count { display: none; }
	.next { grid-template-columns: minmax(0, 1fr) auto; row-gap: 14px; }
	.next-img { grid-column: 1 / -1; grid-row: 3; }
	.next-go { grid-column: 2; grid-row: 1 / 3; width: 56px; height: 56px; }
	.gr-arrow .ic { width: 28px; height: 28px; margin-inline: 4px; }
}

.js .cs-title, .js .cs-meta, .js .cs-shot, .js .cs-stat { visibility: hidden; }

/* The decisions track is pinned, so it has to fit one screen. */
@media (min-width: 901px) {
	.dec-pin { min-height: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding: clamp(76px, 12svh, 120px) 0 clamp(24px, 5svh, 120px); }
	.cs-dec .h2 { font-size: clamp(2rem, min(4.8vw, 7svh), 4.2rem); }
	.dec-head { margin-bottom: clamp(20px, 4svh, 60px); }
	.dec { padding: clamp(22px, 3.6svh, 48px); }
	.dec-n { font-size: clamp(2.8rem, 8svh, 4.4rem); margin-bottom: clamp(10px, 2.4svh, 22px); }
	.dec h3 { font-size: clamp(1.4rem, min(2.8vw, 4.2svh), 2.3rem); }
}
.dec-track { justify-self: start; }
