.case-study { padding-bottom: 1.4rem; }
.case-heading { padding-block: clamp(2.4rem, 6vw, 5rem); max-width: 64rem; }
.case-heading h1 { font-size: clamp(3.1rem, 5.5vw, 5rem); max-width: 56rem; text-wrap: balance; }
.case-heading .lede { max-width: 49rem; }
.chapter { border-top: 1px solid var(--line); padding-block: clamp(2rem, 4.3vw, 4rem); display: grid; grid-template-columns: 1fr 1.8fr; gap: 1.3rem 4rem; }
.chapter h2 { font-size: clamp(2.1rem, 3.2vw, 3rem); text-wrap: balance; }
.chapter-body, .source-register { max-width: 52rem; }
.chapter-body > p + p { margin-top: .9rem; }
.chapter-body > .text-link { margin-top: .6rem; }
.example { border-radius: .5rem; background: #e5eddf; padding-inline: clamp(1rem, 3vw, 2.4rem); border: 1px solid var(--line); }
.example-stats { display: flex; flex-wrap: wrap; gap: .75rem 2.3rem; align-items: center; margin-block: 1.15rem; }
.example-stats strong { display: block; color: var(--forest); font: 400 clamp(1.85rem, 3.1vw, 2.65rem)/1.15 var(--display); }
.example-stats span { color: var(--muted); font-size: .85rem; }
.architecture { padding-block: clamp(2rem, 4.4vw, 4.25rem); }
.arch-figure { background: #173c39; color: #f5f8e8; border-radius: .55rem; padding: clamp(1rem, 2vw, 1.7rem); }
.arch-figure figcaption { font-weight: 680; margin-bottom: .85rem; color: #ddf29c; }
.pipeline { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1.05rem; list-style: none; margin: 0; padding: 0; }
.pipeline li { position: relative; background: #234d44; border: 1px solid #69907d; border-radius: .37rem; padding: .75rem; }
.pipeline li + li::before { position: absolute; top: 50%; right: 100%; content: "›"; width: 1.05rem; line-height: 1; font-weight: 700; text-align: center; transform: translateY(-50%); color: #deeca7; }
.pipeline strong, .pipeline span { display: block; }
.pipeline strong { line-height: 1.3; }
.pipeline span { color: #deeadc; font-size: .89rem; margin-top: .55rem; }
.arch-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #68877b; }
.arch-lanes section { padding: .8rem 1rem; border: 1px solid #819287; border-radius: .35rem; background: #23443f; }
.arch-lanes .future { border-style: dashed; }
.arch-lanes h3 { font-size: .99rem; color: #e5f0b6; }
.arch-lanes p { margin-top: .44rem; font-size: .91rem; color: #e3ece1; }
.source-register article { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.source-register article:last-child { margin-bottom: 0; border-bottom: 0; }
.source-register h3 { margin-bottom: .48rem; }
.source-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--forest); font-size: .9rem; font-weight: 640; margin-top: .5rem; }
@media (max-width: 58rem) {
  .pipeline { grid-template-columns: 1fr; gap: .75rem; }
  .pipeline li + li::before { top: -.84rem; right: auto; left: 1rem; transform: rotate(90deg); line-height: .85rem; }
  .pipeline span { margin-top: .24rem; }
}
@media (max-width: 47rem) {
  .chapter, .arch-lanes { grid-template-columns: 1fr; }
  .case-heading { padding-block: 2rem; }
}
