/* Project archive: an editorial index, not a folder/card metaphor. */
#work .project-folder {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

#work .folder-tabs {
  min-height: 76px;
  align-items: stretch;
  gap: clamp(18px, 3vw, 46px);
  padding: 0;
  border-bottom: 1px solid rgba(55, 81, 128, .18);
}

#work .folder-tabs button,
#work .folder-tabs button.active,
#work .folder-tabs button.is-active,
#work .folder-tabs button:not(.active):hover {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 76px;
  margin: 0;
  padding: 16px 0 14px;
  color: var(--tone-muted);
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

#work .folder-tabs button img { display: none; }

#work .folder-tabs button b {
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

#work .folder-tabs button small {
  display: block;
  color: rgba(77, 96, 133, .5);
  font: 500 12px/1.35 var(--mono);
  letter-spacing: .1em;
}

#work .folder-tabs button::before {
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--tone-blue);
  transform-origin: left center;
}

#work .folder-tabs button::after { display: none; }

#work .folder-tabs button.active,
#work .folder-tabs button.is-active {
  color: var(--tone-ink);
}

#work .folder-tabs button.active::before,
#work .folder-tabs button.is-active::before {
  opacity: 1;
  transform: scaleX(1);
}

#work .folder-page,
#work .folder-page[data-tone] {
  padding: 42px 0 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

#work .folder-page-header {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 20px !important;
  padding: 0 0 30px;
  border-bottom: 1px solid rgba(55, 81, 128, .18);
}

#work .folder-page-header h3 {
  font-size: clamp(32px, 4vw, 48px);
}

#work .folder-page-header > div:first-child p {
  max-width: 600px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
}

#work .folder-page-header p,
#work .folder-page-header span { font-size: 12px; }

#work .folder-documents {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#work .project-file {
  grid-template-columns: minmax(170px, .7fr) minmax(280px, 1.45fr) minmax(180px, .68fr) 28px;
  min-height: 172px;
  padding: 18px 6px;
  border: 0;
  border-bottom: 1px solid rgba(55, 81, 128, .15);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  transition: color .28s ease, background .28s ease;
}

#work .project-file:first-child { border-top: 1px solid rgba(55, 81, 128, .15); }
#work .project-file:last-child { border-bottom: 1px solid rgba(55, 81, 128, .15); }

#work .project-file:hover,
#work .project-file.active {
  background: linear-gradient(90deg, rgba(105, 137, 186, .07), transparent 74%) !important;
  box-shadow: none !important;
}

#work .project-file:focus-visible {
  outline: 2px solid var(--tone-blue);
  outline-offset: 4px;
}

#work .project-file-cover {
  aspect-ratio: 1.75;
  border: 0;
  border-radius: 0;
  background: rgba(217, 226, 238, .38);
}

#work .project-file-cover::after {
  box-shadow: inset 0 0 0 1px rgba(67, 91, 135, .1);
}

#work .project-file:hover .project-file-cover img,
#work .project-file.active .project-file-cover img {
  transform: scale(1.035);
  filter: saturate(.84) contrast(.97);
}

#work .project-file-copy strong {
  font-size: clamp(21px, 2.3vw, 29px);
  font-weight: 400;
}

#work .project-file-description {
  max-width: 560px;
  font-size: 13px;
  line-height: 1.8;
}

#work .project-file-data {
  padding-left: 24px;
  border-left: 1px solid rgba(55, 81, 128, .14);
}

#work .project-file-arrow {
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .25s ease;
}

#work .project-file:hover .project-file-arrow,
#work .project-file:focus-visible .project-file-arrow {
  opacity: 1;
  transform: translateX(5px);
}

#work .folder-detail {
  border-radius: 0;
  background: rgba(248, 249, 247, .96);
}

@media (max-width: 760px) {
  #work .project-folder { width: calc(100% - 32px); }
  #work .folder-tabs {
    gap: 28px;
    min-height: 68px;
    overflow-x: auto;
  }
  #work .folder-tabs button,
  #work .folder-tabs button.active,
  #work .folder-tabs button.is-active {
    flex: 0 0 auto;
    min-height: 68px;
    padding: 12px 0;
  }
  #work .folder-page { padding-top: 30px; }
  #work .folder-page-header {
    grid-template-columns: 1fr;
    gap: 16px !important;
  }
  #work .folder-page-header > div:last-child {
    grid-auto-flow: column;
    justify-content: space-between;
    justify-items: start;
    gap: 18px;
    padding-top: 0;
  }
  #work .project-file {
    grid-template-columns: 112px 1fr 22px;
    gap: 16px;
    min-height: 138px;
    padding: 16px 0;
  }
  #work .project-file-data { display: none; }
  #work .project-file-cover { aspect-ratio: 1.25; }
  #work .project-file-copy strong { font-size: 20px; }
  #work .project-file-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
