.featured-cases { margin: clamp(30px, 5vw, 60px) 0 0; }
.featured-cases, .featured-case { scroll-margin-top: 90px; }
.featured-cases > h3 { margin: 0 0 16px; color: #14172b; font-size: clamp(20px, 2.6vw, 31px); }
.featured-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 26px); }
.featured-case a {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d8e0f1;
  border-radius: 16px;
  color: #14172b;
  background: #eef2ff;
}
.featured-case a > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.featured-case a > div { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(18px, 3vw, 36px); }
.featured-case h4 { margin: 0 0 8px; font-size: clamp(23px, 3.1vw, 42px); line-height: 1.16; }
.featured-case p { margin-bottom: 18px; color: #454a60; }
.featured-case-link { display: inline-flex; gap: 12px; margin-top: auto; color: #2834a0; font-weight: 700; }
.featured-case a:hover .featured-case-link { text-decoration: underline; text-underline-offset: 4px; }
.portfolio-module-title { margin: 0 0 16px; color: #14172b; font-size: clamp(20px, 2.6vw, 31px); }
#projectGrid.portfolio-module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#projectGrid.portfolio-module-grid .project-card { grid-column: auto; }
.portfolio-related { padding: 18px 0 clamp(28px, 5vw, 62px); }
.portfolio-related h2 { margin: 0 0 12px; font-size: clamp(20px, 3vw, 30px); }
.portfolio-related ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.portfolio-related a { display: inline-block; padding: 10px 15px; border: 1px solid #d8e0f1; border-radius: 8px; color: #2834a0; background: #f4f6ff; }
.portfolio-related a:hover { text-decoration: underline; }
.module-gallery-more { grid-column: 1 / -1; }
.module-gallery-more > summary { width: fit-content; padding: 10px 16px; border: 1px solid #d8e0f1; border-radius: 8px; color: #2834a0; background: #f4f6ff; cursor: pointer; font-weight: 700; }
.module-gallery-more[open] > .gallery-grid { margin-top: 20px; }

.case-detail { --case-blue: #323eab; --case-line: #dce1ee; --red: var(--case-blue); }
.case-detail .container { max-width: 1140px; }
.case-detail .project-intro-grid { align-items: end; }
.case-detail .project-intro-en { max-width: 37ch; }
.case-hero { margin-block: 0; }
.case-hero img { display: block; width: 100%; height: auto; border-radius: 12px; }
.case-detail figure figcaption { margin-top: 10px; color: #4e5465; font-size: .87rem; }
.case-jump { padding: 23px 0; }
.case-jump ul { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; list-style: none; }
.case-jump a { display: inline-block; padding: 7px 0; color: var(--case-blue); font-weight: 700; }
.case-jump a:hover { text-decoration: underline; text-underline-offset: 4px; }
.case-chapter { padding: clamp(32px, 6vw, 76px) 0; border-top: 1px solid var(--case-line); scroll-margin-top: 90px; }
.case-chapter h2 { margin-bottom: 12px; font-size: clamp(26px, 3.4vw, 44px); font-weight: 760; line-height: 1.18; }
.case-chapter > p { max-width: 62ch; margin: 0 0 24px; color: #3d4252; line-height: 1.8; }
.case-points, .case-evidence {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-points > div { padding: 18px; border: 1px solid var(--case-line); border-radius: 10px; background: #f6f7fc; }
.case-points dt { color: var(--case-blue); font-size: 1.05rem; font-weight: 750; }
.case-points .kashgar-sample-size { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; }
.case-points dd { margin-top: 6px; color: #3d4252; line-height: 1.55; }
.case-evidence { margin-top: 20px; }
.case-evidence figure { margin: 0; min-width: 0; }
.case-evidence a { display: block; padding: 12px; border: 1px solid var(--case-line); border-radius: 10px; background: #f6f7fc; }
.case-evidence a:hover { border-color: var(--case-blue); }
.case-evidence img { display: block; width: 100%; height: clamp(210px, 28vw, 400px); object-fit: contain; }
.case-evidence .kashgar-itinerary-preview a { padding: 0; overflow: hidden; }
.case-evidence .kashgar-itinerary-preview img { height: auto; min-height: clamp(234px, calc(28vw + 24px), 424px); object-fit: cover; }
.kashgar-programme-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kashgar-map, .kashgar-handbook-spread { grid-column: 1 / -1; }
.case-evidence .kashgar-map img { height: auto; }
.kashgar-handbook-image { position: relative; overflow: hidden; border-radius: 10px; background: #fbf1d9; }
.case-evidence .kashgar-handbook-image img { height: auto; }
.case-evidence .kashgar-handbook-image a {
  position: absolute;
  inset-block: 0;
  width: 50%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
}
.kashgar-handbook-image a:first-of-type { left: 0; }
.kashgar-handbook-image a:last-of-type { right: 0; }
.case-evidence .kashgar-handbook-image a:focus-visible { outline-offset: -4px; }
.case-promotion-media { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; margin-top: 26px; }
.case-promotion-media figure { margin: 0; }
.case-promotion-media video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #111527; }
.case-copy { padding: clamp(16px, 3vw, 30px); border: 1px solid var(--case-line); border-radius: 10px; background: #f6f7fc; }
.case-copy h3 { margin: 0 0 12px; font-size: 1.15rem; }
.case-copy dt { margin-top: 12px; color: var(--case-blue); font-weight: 750; }
.case-copy dd { margin: 4px 0 0; color: #3d4252; line-height: 1.65; }
.case-article-link { display: inline-flex; gap: 8px; margin-top: 16px; color: var(--case-blue); text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.case-detail a:focus-visible { outline: 2px solid var(--case-blue); outline-offset: 4px; }
.case-outcome { margin-bottom: clamp(44px, 9vw, 115px); }
.case-outcome .project-back { position: static; display: inline-flex; margin-top: 24px; color: var(--case-blue); }
.case-delivery { max-width: 850px; align-items: center; }
.case-delivery > div { padding: 18px 22px; }
.case-delivery h3 { margin: 0 0 12px; font-size: 1.25rem; }
.case-delivery ul { margin: 0; padding-left: 1.13em; color: #3d4252; line-height: 1.8; }

@media (max-width: 640px) {
  .featured-case-grid { grid-template-columns: 1fr; }
  .case-hero img { border-radius: 8px; }
  .case-jump ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kashgar-programme-evidence { grid-template-columns: 1fr; }
  .case-chapter h2 { text-wrap: pretty; }
  .case-promotion-media { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
  #projectGrid.portfolio-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  #projectGrid.portfolio-module-grid { grid-template-columns: 1fr; }
}
