.case-directory{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(22px,3vw,38px);
  list-style:none;
  padding:0;
  margin:0;
}

.case-directory>li{min-width:0}

.case-card{
  display:grid;
  grid-template-rows:auto 1fr;
  height:100%;
  background:#fffdf8;
  border:1px solid #b7c7b1;
  border-top:3px solid #b49356;
  color:#073343;
  text-decoration:none;
  transition:border-color .18s ease;
}

.case-card:is(:hover,:focus-visible){border-color:#9a804f}
.case-card:focus-visible{outline:2px solid #073343;outline-offset:4px}
.case-card-media{overflow:hidden;background:#e5ece3;aspect-ratio:4/3}
.case-card-media img{display:block;width:100%;height:100%;object-fit:cover}
.case-card[href="project-gangshan-factory.html"] img{object-position:center 55%}

.case-card-body{
  display:grid;
  grid-template-rows:auto auto 1fr auto;
  gap:12px;
  padding:clamp(20px,2.2vw,32px);
}

body[data-layout-v112="projects"] .case-card h2{
  font-size:clamp(24px,2.1vw,30px);
  line-height:1.45;
  letter-spacing:.015em;
  margin:0;
}
.case-card p{color:#4e6c60;line-height:1.7;margin:0}
.case-card-action{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid #c6d3c1;
  margin-top:8px;
  padding-top:12px;
  font-weight:650;
}

.case-card-action span{font-size:20px}
.case-detail .project-facts-v84>div{flex:1}
.case-scope{
  margin-block:clamp(28px,4vw,54px);
  padding:clamp(22px,3.2vw,42px);
  border:1px solid #b7c7b1;
  border-top:3px solid #b49356;
  background:linear-gradient(115deg,#fffdf8,#eaf0e7);
  scroll-margin-top:176px;
}
.project-record-v84 .case-scope h2{margin:0 0 clamp(18px,2.4vw,28px)}
.case-scope-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);
  gap:clamp(18px,3vw,42px);
}
.case-scope-grid>div{border-top:1px solid #aebfa9;padding-top:16px}
.case-scope-grid h3{font-size:clamp(17px,1.5vw,21px);margin:0 0 8px}
.case-scope-grid p{max-width:54ch;margin:0;color:#395b50;line-height:1.85}
.project-record-v84 .case-gallery{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
  gap:clamp(20px,2.3vw,34px);
}
.project-record-v84 .case-gallery-portraits{
  max-width:820px;
  margin-inline:auto;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,206px),1fr));
}
.case-completion{
  margin-block:clamp(28px,3.5vw,54px) clamp(44px,5vw,75px);
  scroll-margin-top:176px;
}
.case-completion h2{margin-bottom:0}
.case-completion .case-gallery:not(.case-gallery-portraits) figure img{object-fit:contain}
.case-completion .case-gallery figure a{background:#e9eee6}
.case-gallery li:first-child{grid-column:auto}
.case-gallery:not(.case-gallery-portraits) figure a{
  aspect-ratio:4/3;
  overflow:hidden;
}
.case-gallery:not(.case-gallery-portraits) figure img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.case-gallery figcaption{padding:12px 16px}
.case-gallery li a>span{font-size:13px}

/* Case previews retain their display-only finish across the shared gallery. */
.case-featured-gallery h2{margin:0 0 clamp(18px,2.5vw,28px)}
.case-featured-gallery .luzhu-photo-link-v124 img{
  filter:brightness(1.04) contrast(1.025);
}
.case-featured-portraits{max-width:790px}

@media(max-width:560px){
  .case-featured-portraits .luzhu-photos-v124{
    max-width:270px;
    margin-inline:auto;
  }
}

@media(max-width:1040px){
  .case-directory{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:680px){
  .case-directory{grid-template-columns:1fr}
  .case-scope-grid{grid-template-columns:1fr}
  .project-record-v84 .case-gallery{grid-template-columns:1fr}
  .case-detail .project-facts-v84{gap:0}
  .case-detail .project-facts-v84>div{flex-basis:100%}
}

@media(prefers-reduced-motion:reduce){
  .case-card{transition:none}
}
