/* Step 3: shared case navigation. Site typography remains unchanged until step 4. */
.case-ending { margin-block: 64px 40px; padding-top: 30px; border-top: 1px solid currentColor; }
.case-role-line { margin: 0 0 28px; font-size: 15px; line-height: 1.6; font-family: var(--site-font); }
.case-ending-actions { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.case-next-project { display: grid; gap: 12px; min-width: 0; max-width: 75%; color: inherit; }
.case-ending-label { font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.case-ending-title { font-family: var(--site-font); font-size: clamp(26px, 3vw, 44px); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.case-brief { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 12px 22px; border-radius: 30px; white-space: nowrap; font-size: 14px; background: #eef1e9; color: #101b21; }
.case-cross-link a, .section-door a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; gap: 6px; color: inherit; text-decoration: underline; text-underline-offset: 5px; }
.case-cross-context { display: block; font-size: 12px; line-height: 1.6; }
.section-door { margin: 0; }
.work-page .section-door { margin-block: 24px; }
.work-page .case-ending { color: var(--ink); }
.work-page .case-ending-wrap { padding-bottom: 40px; background: var(--paper); }
.work-page .case-brief { background: #2035c5; color: #fff; }
.case-ending a:focus-visible, .case-cross-link a:focus-visible, .section-door a:focus-visible { outline: 2px solid currentColor !important; outline-offset: 4px !important; }
@media (hover:hover) { .case-next-project:hover .case-ending-title, .case-cross-link a:hover, .section-door a:hover { text-decoration: underline !important; text-underline-offset: 6px; } }
@media (max-width:700px) {
 .case-ending { margin-top: 44px; }
 .case-ending-actions { align-items: flex-start; flex-direction: column; gap: 28px; }
 .case-next-project { max-width: 100%; }
 .case-role-line { font-size: 14px; }
 .case-role-line span { display: block; }
 .case-shell .nav { height: auto; min-height: 88px; flex-wrap: wrap; gap: 12px; padding-block: 14px; }
 .case-shell .nav-links { display: flex; justify-content: space-between; width: 100%; gap: 14px; font-size: 11px; }
 .case-shell .nav-links>a:first-child { display: inline-flex; }
}
