/* Keep each project, its outcome and its evidence in one reading sequence. */
.case-section {
  padding-top: 50px;
  padding-bottom: 38px;
}

.case-section > .section-head {
  padding-bottom: 22px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.case-section .project-story {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.case-section .case-kicker {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: .06em;
  line-height: 1.5;
  margin: 0 0 13px;
}

.case-section .story-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.78fr);
  gap: 34px;
  align-items: start;
}

.case-section .story-copy,
.case-section .story-media,
.case-section .case-figure {
  min-width: 0;
}

.case-section .story-copy h3 {
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.3;
  letter-spacing: -.025em;
  margin: 0 0 12px;
  text-wrap: pretty;
}

.case-section .case-summary {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 14px;
  color: var(--ink);
}

.case-section .role-line {
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
  color: var(--muted);
}

.case-section .role-line b {
  color: var(--ink);
  font-weight: 650;
  margin-right: .4em;
}

.case-section .case-results {
  padding: 12px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 9px;
}

.case-section .case-results li {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.case-section .case-results strong {
  color: var(--accent);
  font-size: 22px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.case-section .case-results span {
  flex: 1 1 130px;
  font-size: 12px;
  line-height: 1.6;
}

.case-section .case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 15px;
  margin-top: 16px;
}

.case-section .case-links a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.case-section .case-links a:hover {
  color: var(--ink);
}

.case-section .story-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 17px 14px;
  align-items: start;
  justify-items: start;
}

.case-section .story-media.proof-pair,
.case-section .story-media.portrait-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-section .story-media.proof-trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-section .case-figure {
  width: 100%;
  max-width: 500px;
  margin: 0;
}

.case-section .case-figure.wide-proof,
.case-section .story-media.wide-proof > .case-figure {
  grid-column: 1 / -1;
}

/* Override the older fixed-height evidence tiles in this section only. */
.case-section .case-figure .evidence {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.case-section .case-figure .evidence img {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  object-position: top center;
  border-radius: 2px;
}

.case-section .case-figure .evidence:hover {
  border-color: #82a39a;
  box-shadow: 0 3px 12px #173a300b;
}

.case-section .case-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.case-section .case-figure figcaption strong,
.case-section .case-figure figcaption b {
  color: var(--ink);
  font-weight: 600;
}

.case-section .text-note {
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.case-section .text-note b {
  color: var(--ink);
}

.case-section .secondary-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.case-section .secondary-stories .project-story {
  padding-top: 26px;
}

.case-section .secondary-stories .story-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 19px;
}

.case-section .secondary-stories .story-copy h3 {
  font-size: 21px;
}

.case-section .secondary-stories .case-summary {
  font-size: 13px;
}

.case-section .secondary-stories .case-figure .evidence img {
  max-height: 255px;
}

@media (max-width: 960px) and (min-width: 761px) {
  .case-section .story-layout {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
    gap: 24px;
  }

  .case-section .story-media.proof-trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-section .story-media.proof-trio > .case-figure:first-child {
    grid-column: 1 / -1;
    max-width: 300px;
  }
}

@media (max-width: 760px) {
  .case-section {
    padding-top: 36px;
    padding-bottom: 14px;
  }

  .case-section > .section-head {
    padding-bottom: 19px;
  }

  .case-section > .section-head p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
  }

  .case-section .project-story {
    padding: 25px 0;
    scroll-margin-top: 78px;
  }

  .case-section .case-kicker {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .case-section .story-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 19px;
  }

  .case-section .story-copy h3 {
    font-size: 23px;
    margin-bottom: 10px;
  }

  .case-section .case-summary {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 11px;
  }

  .case-section .role-line,
  .case-section .case-results span {
    font-size: 12px;
  }

  .case-section .case-results {
    margin-top: 13px;
    padding-top: 11px;
    gap: 8px;
  }

  .case-section .case-results strong {
    font-size: 22px;
  }

  .case-section .case-links {
    margin-top: 13px;
  }

  .case-section .story-media,
  .case-section .story-media.proof-trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 10px;
  }

  .case-section .story-media > .case-figure:only-child {
    grid-column: 1 / -1;
  }

  .case-section .story-media.proof-trio > .case-figure:first-child {
    grid-column: 1 / -1;
    max-width: 360px;
  }

  .case-section .case-figure .evidence {
    padding: 5px;
    border-radius: 6px;
  }

  .case-section .case-figure .evidence img {
    max-height: 280px;
  }

  .case-section .case-figure figcaption {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.55;
  }

  .case-section .secondary-stories {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .case-section .secondary-stories .project-story {
    padding-top: 25px;
  }

  .case-section .secondary-stories .story-copy h3 {
    font-size: 23px;
  }

  .case-section .secondary-stories .case-summary {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-section .case-figure .evidence {
    transition: none;
  }
}

.case-section .case-quote{margin:14px 0;padding:0 0 0 12px;border-left:2px solid var(--accent);font-size:13px;color:var(--muted)}

/* Let the image itself define the frame; do not stretch a white plate around it. */
.case-section .case-figure .evidence{width:fit-content;max-width:100%;border:0;padding:0;background:transparent;border-radius:4px}
@media(max-width:760px){
 .case-section .story-layout{gap:12px}
 .case-section .story-copy{display:contents}
 .case-section .story-copy>h3{order:0;margin:0}
 .case-section .story-copy>.case-summary{order:1;margin:0}
 .case-section .story-copy>.case-quote{order:2;margin:0}
 .case-section .story-media{order:3}
 .case-section .story-copy>.case-results{order:4;margin-top:0}
 .case-section .story-copy>.role-line{order:5}
 .case-section .story-copy>.case-links{order:6;margin-top:0}
 .case-section .story-copy>.text-note{order:7;margin-top:0}
 .case-section .story-media.proof-trio{grid-template-columns:repeat(3,minmax(0,1fr))}
 .case-section .story-media.proof-trio>.case-figure:first-child{grid-column:auto;max-width:100%}
 .case-section .case-figure .evidence{padding:0;border:0}
 .case-section .case-figure figcaption{font-size:10px;line-height:1.5;margin-top:6px}
}
