.work-index-intro { max-width: 800px; padding-bottom: 48px; }
.work-index-list { border-top: 1px solid var(--portfolio-border, #243754); }
.work-index-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 4vw, 56px);
  row-gap: 20px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--portfolio-border, #243754);
}
.work-index-image { grid-row: 1 / 3; display: block; overflow: hidden; border-radius: 12px; }
.work-index-image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.work-index-item > div:nth-child(2) { min-width: 0; align-self: end; }
html body .route-main .work-index-item h2 { margin: 0 0 16px; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -.04em; }
.work-index-item h2 a { text-decoration: none; }
.work-index-item p { margin: 0; max-width: 52ch; line-height: 1.6; }
.work-index-item .work-index-scope { margin-top: 16px; font-size: .875rem; }
.work-index-link { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.work-index-more { padding-top: 32px; }
@media (max-width: 767px) {
  .work-index-intro { padding-bottom: 32px; }
  .work-index-item { grid-template-columns: 1fr; grid-template-rows: auto; gap: 20px; padding: 32px 0; }
  .work-index-image { grid-row: auto; }
  .work-index-link { grid-column: 1; }
}
.work-index .toggle-directory-btn[hidden] { display: none !important; }
.work-index .work-network-footer { flex-wrap: wrap; gap: .75rem; }

/* Keep the Work page's dividers and supporting content on one visual grid. */
html body .work-index .work-index-list,
html body .work-index .work-index-item,
html body .work-index .route-contact { border-color: rgba(210, 225, 184, .18); }
html body .work-index .work-index-image { border: 1px solid rgba(210, 225, 184, .20); background: #0a0c09; }
html body .work-index .work-index-scope { color: #aeb8a7; }
html body .work-index .work-index-link { color: #d4ff24; }
html body .work-index .work-index-link:hover { color: #f0ffb2; }
html body .work-index #project-history { padding: 64px 0 16px; max-width: none; }
html body .work-index #project-history .career-more { margin: 24px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
html body .work-index #project-history .career-more summary { margin: 0; padding: 16px 0; border-top: 0; border-bottom: 1px solid rgba(210, 225, 184, .18); color: #d4ff24; }
html body .work-index #project-history .project-history-list article { border-top: 0; padding-top: 24px; }
@media (max-width: 767px) {
  html body .work-index #project-history { padding-top: 40px; }
}

/* Match the restrained project surfaces and lime accent used across the site. */
html body .work-index .work-index-intro h1 { font-size: clamp(3.35rem, 6.2vw, 5rem); line-height: 1.02; }
.work-index-intro h1 span { color: #d4ff24; }
html body .work-index .work-index-list { display: grid; gap: 24px; border: 0; }
html body .work-index .work-index-item {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  background: #0d0f10;
}
html body .work-index .work-index-image { border-color: rgba(255, 255, 255, .14); background: #080a0b; }
.work-index-image img { object-fit: contain; }
html body .work-index .work-index-item > div:nth-child(2) { align-self: end; }
html body .work-index #project-history { margin-top: 64px; border-top: 1px solid rgba(255, 255, 255, .18); }
@media (max-width: 767px) {
  html body .work-index .work-index-list { gap: 16px; }
  html body .work-index .work-index-item { padding: 16px; }
  html body .work-index #project-history { margin-top: 40px; }
}
html body .work-index .cspaceship-result { margin-top: 12px; }
html body .work-index .cspaceship-evidence { margin: 0 0 20px; }
.cspaceship-evidence a { display: block; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; }
.cspaceship-evidence img { display: block; width: 100%; height: auto; }
.cspaceship-evidence figcaption { margin-top: 8px; color: #b6bdb9; font-size: 12px; line-height: 1.5; }
.cspaceship-evidence a:focus-visible { outline: 2px solid #d4ff24; outline-offset: 4px; }
html body .work-index .community-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; background: #080a0b; }
.community-profile { min-width: 0; overflow: hidden; display: block; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; text-decoration: none; background: #0d0f10; }
html body .work-index .community-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 660 / 557; object-fit: contain; }
.community-profile span { display: block; overflow: hidden; padding: 6px; color: #e4e8dd; font-size: 10px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.community-profile:hover { border-color: #d4ff24; }
.community-profile:focus-visible { outline: 2px solid #d4ff24; outline-offset: -2px; }
/* Give each thumbnail its own inset so borders do not collide at the corners. */
html body .work-index .community-gallery { padding: 8px; gap: 8px; border-radius: 12px; }
html body .work-index .community-profile { border-radius: 4px; }
/* Each archived profile borrows a restrained border color from its banner. */
.community-profile:nth-child(1) { --community-border: #ad4145; }
.community-profile:nth-child(2) { --community-border: #356eb8; }
.community-profile:nth-child(3) { --community-border: #53854b; }
.community-profile:nth-child(4) { --community-border: #4964b5; }
.community-profile:nth-child(5) { --community-border: #8a5298; }
.community-profile:nth-child(6) { --community-border: #20836b; }
html body .work-index .community-profile { border-color: var(--community-border); }
html body .work-index .community-profile:hover { border-color: var(--community-border); filter: brightness(1.14); }

/* A single related experience is visible without a redundant disclosure. */
html body .work-index .related-work-header { margin-bottom: 32px; }
html body .work-index .related-work-header h2 { margin: 0 0 12px; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.08; }
html body .work-index .related-work-header p { margin: 0; color: #aeb8b5; }
html body .work-index .related-work-card { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; padding: 32px; background: #0d0f10; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; }
html body .work-index .related-work-title p { margin: 0 0 12px; color: #aeb8b5; font-size: 14px; }
html body .work-index .related-work-title h3 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.035em; }
html body .work-index .related-work-detail p { margin: 0 0 20px; max-width: 50ch; color: #c0c6c4; line-height: 1.6; }
html body .work-index .related-work-detail a { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; color: #d4ff24; text-decoration: none; }
.related-work-detail a:focus-visible { outline: 2px solid #d4ff24; outline-offset: 4px; }
@media (max-width: 767px) { html body .work-index .related-work-card { grid-template-columns: 1fr; gap: 20px; padding: 20px; } html body .work-index .related-work-header { margin-bottom: 24px; } }
.openworld-preview a { display: flex; align-items: center; justify-content: center; min-height: 220px; padding: 24px; }
html body .work-index .openworld-preview img { width: 100%; height: auto; aspect-ratio: auto; }
html body .work-index .openworld-preview a { display: block; min-height: 0; padding: 0; }
html body .work-index .openworld-preview img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* Fill the preview frame with the original artwork, keeping every edge visible. */
.work-index-image img[src$="3e13cac45fc19985.webp"],
.work-index-image img[src$="9019591deba0b628.webp"],
.work-index-image img[src$="bd1d605105a66e19.webp"] { object-fit: fill; }
