/* "Related work" block at the foot of every case study.
   Each case study has its own palette, light or dark, so this block only uses
   inherited text colour and neutral greys that read on either background. */
.related { padding: clamp(3rem, 7vw, 4.5rem) 0; border-top: 1px solid rgba(128,128,128,.22); }
.related-wrap { width: min(1080px, 90vw); margin-inline: auto; }
.related h2.related-k { font-family: "IBM Plex Mono", "DM Mono", ui-monospace, monospace; font-size: .74rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; line-height: 1.4; margin: 0 0 1.4rem; opacity: .75; border: 0; padding: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-card { display: flex; flex-direction: column; gap: .5rem; min-height: 9.5rem; padding: 1.2rem 1.3rem 1.3rem;
  border: 1px solid rgba(128,128,128,.28); border-radius: 10px; background: rgba(128,128,128,.07);
  color: inherit; text-decoration: none; transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.related-card:hover, .related-card:focus-visible { border-color: rgba(128,128,128,.6); background: rgba(128,128,128,.12); transform: translateY(-3px); }
.related-meta { font-family: "IBM Plex Mono", "DM Mono", ui-monospace, monospace; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.related-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.related-go { margin-top: auto; font-size: .82rem; opacity: .75; }
.related-card:hover .related-go { opacity: 1; }
@media (max-width: 820px) { .related-grid { grid-template-columns: 1fr; } .related-card { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .related-card, .related-card:hover { transition: none; transform: none; } }

/* ---------- Site footer, pinned ----------
   Each case study redefines --ink, --mono, --display and friends for its own
   palette, and the shared footer reads those variables, so footers drifted
   (charcoal, near-black, navy, fallback serif). This puts every case-study
   footer back on the site's own colours and type. "body footer" outranks the
   page-level footer rules some case studies carry. */
body footer.site-footer {
  --ink: #17384A; --cream: #F5F3EE; --accent-light: #E1972E; --rule: #DAD5CC;
  --mono: 'DM Mono', monospace; --sans: 'Outfit', sans-serif; --serif: 'Cormorant Garamond', serif;
  background: #17384A; color: #F5F3EE; font-family: 'Outfit', sans-serif; font-weight: 400; line-height: normal;
  padding-block: 4.5rem 3rem; padding-inline: max(var(--gutter, 1.5rem), calc((100% - var(--maxw, 1200px)) / 2));
}
body footer.site-footer .footer-name { font-family: 'Cormorant Garamond', serif; font-weight: 300; color: #F5F3EE;
  font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -0.01em; }
body footer.site-footer .footer-name em { font-style: italic; color: #E1972E; }
body footer.site-footer .footer-contact { font-family: 'DM Mono', monospace; font-size: 0.74rem; letter-spacing: 0.08em; line-height: 2.2; }
body footer.site-footer .footer-contact a { color: #F5F3EE; }
body footer.site-footer .footer-contact a:hover { color: #E1972E; }
body footer.site-footer .footer-base { font-family: 'DM Mono', monospace; font-size: var(--label, 0.68rem); letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 3.5rem; padding-top: 1.5rem; color: rgba(245,243,238,0.68); border-top: 1px solid rgba(255,255,255,0.15); }
body footer.site-footer .privacy-disclosure { font-family: 'Outfit', sans-serif; color: rgba(245,243,238,0.78); }
body footer.site-footer .privacy-disclosure a { color: #E1972E; }
@media (max-width: 900px) { body footer.site-footer { padding-block: 3rem 2rem; } }
