/* The reading journey ends first; contact stays available as a quiet utility.
   Explicit opt-in keeps the homepage, About and archived studies unchanged. */
body.case-study-ending .project-navigation {
  padding-block: 3rem 4rem;
  gap: 2.5rem;
  border: 0;
}
body.case-study-ending .project-navigation a {
  min-height: 4.5rem;
  gap: 1.25rem;
  color: #101216;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.025em;
}
body.case-study-ending .project-navigation-copy { gap: .5rem; }
body.case-study-ending .project-navigation-copy > span {
  font-size: .875rem;
  font-weight: 400;
  color: #606775;
  letter-spacing: 0;
}
body.case-study-ending .project-navigation-copy > strong {
  font-size: inherit;
  font-weight: inherit;
}
body.case-study-ending .project-navigation a > svg {
  box-sizing: border-box;
  width: 3.25rem;
  height: 3.25rem;
  padding: .875rem;
  border-radius: 50%;
  background: #f1f2f2;
  stroke-width: 1.8;
  transition: transform 180ms ease, background-color 180ms ease;
}
body.case-study-ending .project-navigation .project-navigation-preview > svg {
  color: var(--navigation-accent);
  background: color-mix(in srgb, var(--navigation-accent) 8%, #fff);
}
body.case-study-ending .project-navigation a:is(:hover, :focus-visible) {
  color: var(--navigation-accent);
}
body.case-study-ending .project-navigation a:is(:hover, :focus-visible) > svg {
  background: color-mix(in srgb, var(--navigation-accent) 13%, #fff);
}

/* A low-contrast endcap, not another section or illustrated invitation. */
body.case-study-ending .case-study-footer {
  margin: 0;
  border: 0;
  background: #f5f5f3;
}
body.case-study-ending .case-study-footer > .chapter-container {
  min-height: 7.5rem;
  padding-block: 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
body.case-study-ending .case-study-footer .footer-credit {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  font-size: .875rem;
}
body.case-study-ending .case-study-footer .footer-signature {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.02em;
}
body.case-study-ending .case-study-footer .contact-destination {
  justify-self: center;
  min-height: 2.75rem;
  padding: .5rem .25rem;
  gap: .625rem;
  border: 0;
  border-radius: .25rem;
  background: transparent;
  box-shadow: none;
  color: #101216;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  transform: none;
}
body.case-study-ending .case-study-footer .contact-destination .closing-arrow {
  width: 1rem;
  height: 1rem;
}
body.case-study-ending .case-study-footer .contact-destination:hover {
  background: transparent;
  color: #101216;
  text-decoration: underline;
  text-underline-offset: .3rem;
  transform: none;
}
body.case-study-ending .case-study-footer .footer-top {
  grid-column: 3;
  grid-row: 1;
  min-height: 2.75rem;
  gap: .625rem;
  padding: .25rem 0;
  color: #505b6c;
  font-size: .875rem;
  font-weight: 400;
}
body.case-study-ending .case-study-footer .footer-top-icon {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
}
body.case-study-ending .case-study-footer .footer-top:hover .footer-top-icon {
  background: #eaeae7;
}
body.case-study-ending .case-study-footer .analytics-preferences {
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 1rem;
}

@media (max-width: 760px) {
  body.case-study-ending .project-navigation {
    padding-block: 2.25rem 2.75rem;
    gap: 1.5rem;
    align-items: flex-end;
  }
  body.case-study-ending .project-navigation a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 3.75rem;
    gap: .625rem;
    font-size: 1.25rem;
  }
  body.case-study-ending .project-navigation-home { max-width: 11rem; }
  body.case-study-ending .project-navigation-copy > span { font-size: .8125rem; }
  body.case-study-ending .project-navigation a > svg {
    width: 2.5rem;
    height: 2.5rem;
    padding: .625rem;
  }
  body.case-study-ending .case-study-footer > .chapter-container {
    min-height: 0;
    padding-block: 1.25rem;
    grid-template-columns: 1fr auto;
    gap: .625rem 1rem;
  }
  body.case-study-ending .case-study-footer .footer-credit {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
  body.case-study-ending .case-study-footer .contact-destination {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  body.case-study-ending .case-study-footer .footer-top {
    grid-column: 2;
    grid-row: 2;
  }
}
@media (max-width: 400px) {
  body.case-study-ending .project-navigation { gap: 1rem; }
  body.case-study-ending .project-navigation a { font-size: 1.125rem; gap: .5rem; }
  body.case-study-ending .project-navigation a > svg { width: 2.25rem; height: 2.25rem; padding: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.case-study-ending .project-navigation :is(a, svg) { transition: none; }
}
