.project-folder {
  --folder-paper: rgba(241, 242, 248, .92);
  --folder-paper-deep: rgba(224, 227, 238, .9);
  --folder-accent: #7b88ac;
  position: relative;
  width: calc(100% + 12vw);
  max-width: none;
  margin: 0 0 0 -6vw;
}

.folder-tabs {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: end;
  gap: 0;
  min-height: 88px;
  padding: 10px 6vw 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.folder-tabs::-webkit-scrollbar {
  display: none;
}

.folder-tabs button {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  flex: 1 0 178px;
  min-height: 70px;
  padding: 18px 24px 16px;
  border: 1px solid rgba(69, 75, 108, .12);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  color: rgba(43, 49, 78, .45);
  background: rgba(235, 237, 245, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .64);
  text-align: left;
  cursor: pointer;
  transition: min-height .35s var(--ease), color .25s ease, background .25s ease, box-shadow .3s ease;
}

.folder-tabs button + button {
  margin-left: -1px;
}

.folder-tabs button::before {
  position: absolute;
  right: 20px;
  bottom: 8px;
  left: 20px;
  height: 2px;
  content: "";
  background: var(--folder-accent);
  opacity: 0;
  transform: scaleX(.55);
  transition: opacity .25s ease, transform .35s var(--ease);
}

.folder-tabs button img {
  width: 19px;
  height: 19px;
  opacity: .34;
  transition: opacity .25s ease, transform .35s var(--ease);
}

.folder-tabs button b {
  display: block;
  color: inherit;
  font: 400 14px "Noto Sans SC";
  letter-spacing: .02em;
}

.folder-tabs button small {
  display: none;
}

.folder-tabs button:not(.active):hover {
  color: rgba(43, 49, 78, .72);
  background: rgba(243, 244, 249, .82);
}

.folder-tabs button:not(.active):hover img {
  opacity: .56;
}

.folder-tabs button.active {
  z-index: 2;
  min-height: 82px;
  color: #29304d;
  background: rgba(249, 249, 252, .96);
  box-shadow: 0 -12px 28px rgba(68, 72, 104, .07), inset 0 1px rgba(255, 255, 255, .86);
}

.folder-tabs button.active::before {
  opacity: .82;
  transform: scaleX(1);
}

.folder-tabs button.active img {
  opacity: .76;
  transform: translateY(-1px);
}

.folder-tabs button.active::after {
  position: absolute;
  right: -1px;
  bottom: -2px;
  left: -1px;
  height: 4px;
  content: "";
  background: rgba(249, 249, 252, .98);
}

.folder-shell {
  position: relative;
  z-index: 2;
  perspective: 1600px;
}

.folder-shell::before,
.folder-shell::after,
.folder-tab-shape {
  display: none;
}

.folder-page {
  position: relative;
  z-index: 2;
  min-height: 0;
  padding: 42px 6vw 48px;
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(60, 67, 101, .1);
  border-radius: 0;
  color: #2b304b;
  background: rgba(241, 242, 248, .94);
  box-shadow: none;
  transform-origin: 4% 50%;
  transition: opacity .22s ease, transform .42s var(--ease), filter .3s ease;
}

.project-folder[data-tone="rose"],
.folder-page[data-tone="rose"] {
  --folder-paper: rgba(244, 240, 246, .94);
  --folder-paper-deep: rgba(230, 224, 235, .9);
  --folder-accent: #9c7f9e;
}

.project-folder[data-tone="mint"],
.folder-page[data-tone="mint"] {
  --folder-paper: rgba(238, 245, 244, .94);
  --folder-paper-deep: rgba(217, 232, 230, .9);
  --folder-accent: #6d9592;
}

.project-folder[data-tone="aqua"],
.folder-page[data-tone="aqua"] {
  --folder-paper: rgba(237, 244, 247, .94);
  --folder-paper-deep: rgba(214, 228, 234, .9);
  --folder-accent: #648fa0;
}

.project-folder[data-tone="violet"],
.folder-page[data-tone="violet"] {
  --folder-paper: rgba(241, 240, 247, .94);
  --folder-paper-deep: rgba(224, 224, 237, .9);
  --folder-accent: #7f75a1;
}

.project-folder[data-tone="blue"],
.folder-page[data-tone="blue"] {
  --folder-paper: rgba(238, 243, 247, .94);
  --folder-paper-deep: rgba(220, 229, 237, .9);
  --folder-accent: #6f8fa6;
}

.project-folder[data-tone="silver"],
.folder-page[data-tone="silver"] {
  --folder-paper: rgba(243, 242, 247, .94);
  --folder-paper-deep: rgba(227, 228, 236, .9);
  --folder-accent: #7d819a;
}

.folder-page {
  background: var(--folder-paper);
}

.folder-page.is-turning {
  opacity: .58;
  transform: translateY(5px);
}

.folder-page.is-revealing {
  animation: folderReveal .32s var(--ease);
}

.folder-page-header {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 24px 44px !important;
  align-items: start;
  margin: 0 0 24px !important;
  padding: 0 8px 26px;
  border-bottom: 1px solid rgba(62, 68, 101, .13);
}

.folder-page-header > div:last-child {
  display: grid;
  gap: 26px;
  justify-items: end;
  min-width: 120px;
  padding-top: 5px;
}

.folder-page-header h3 {
  margin: 0;
  font: 400 clamp(30px, 3.4vw, 42px)/1.1 var(--serif);
  letter-spacing: -.035em;
}

.folder-page-header p,
.folder-page-header span {
  margin: 0;
  color: rgba(45, 51, 80, .46);
  font: 8px var(--mono);
  letter-spacing: .12em;
}

.folder-page-header > div:first-child p {
  max-width: 520px;
  margin-top: 12px;
  font: 400 11px/1.7 "Noto Sans SC";
  letter-spacing: .02em;
}

.folder-documents {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(57, 64, 97, .12);
  border-radius: 13px;
  background: rgba(255, 255, 255, .17);
}

.project-file {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, .78fr) minmax(260px, 1.28fr) minmax(185px, .72fr) 28px;
  gap: 28px;
  align-items: center;
  width: 100%;
  min-height: 158px;
  margin: 0;
  padding: 11px 22px 11px 11px;
  border: 0;
  border-bottom: 1px solid rgba(57, 64, 97, .1);
  color: #2d324d;
  background: transparent;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  transition: background .28s ease, box-shadow .28s ease;
}

.project-file:last-child {
  border-bottom: 0;
}

.project-file:hover,
.project-file.active {
  z-index: 2;
  background: rgba(255, 255, 255, .48);
  box-shadow: 0 14px 34px rgba(66, 70, 102, .07);
}

.project-file:focus-visible {
  z-index: 3;
  outline: 2px solid color-mix(in srgb, var(--folder-accent) 70%, white);
  outline-offset: -3px;
}

.project-file-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(57, 64, 97, .1);
  background: rgba(221, 225, 239, .52);
}

.project-file-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34);
}

.project-file-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
  filter: saturate(.7) contrast(.95);
  transform: scale(1.01);
  transition: transform .6s var(--ease), filter .45s ease, opacity .45s ease;
}

.project-file-cover i {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 8px;
  color: rgba(255, 255, 255, .88);
  font: italic 20px/1 var(--serif);
  text-shadow: 0 1px 8px rgba(28, 33, 58, .22);
}

.project-file:hover .project-file-cover img,
.project-file.active .project-file-cover img {
  opacity: 1;
  filter: saturate(.88) contrast(.98);
  transform: scale(1.035);
}

.project-file-copy {
  display: block;
  min-width: 0;
}

.project-file-copy strong {
  display: block;
  margin: 0;
  font: 400 clamp(20px, 2vw, 25px)/1.25 var(--serif);
  letter-spacing: -.025em;
}

.project-file-description {
  display: block;
  max-width: 470px;
  margin-top: 9px;
  color: rgba(45, 51, 80, .52);
  font: 400 11px/1.75 "Noto Sans SC";
}

.project-file-copy em {
  display: inline-block;
  margin-top: 11px;
  padding: 5px 10px 4px;
  border-radius: 999px;
  color: rgba(45, 51, 80, .58);
  background: rgba(116, 124, 159, .08);
  font: normal 8px var(--mono);
  letter-spacing: .06em;
}

.project-file-data {
  display: grid;
  gap: 10px;
  min-height: 112px;
  padding: 8px 0 8px 30px;
  align-content: center;
  border-left: 1px solid rgba(57, 64, 97, .12);
  color: rgba(45, 51, 80, .46);
  font: 8px/1.4 var(--mono);
  letter-spacing: .08em;
}

.project-file-data b {
  color: rgba(45, 51, 80, .64);
  font-weight: 500;
}

.project-file-arrow {
  width: 22px;
  height: 22px;
  opacity: .4;
  transition: opacity .25s ease, transform .35s var(--ease);
}

.project-file:hover .project-file-arrow,
.project-file.active .project-file-arrow {
  opacity: .72;
  transform: translateX(4px);
}

.project-file.is-cover-missing .project-file-cover::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  content: "COVER / 2:1";
  color: rgba(45, 51, 80, .36);
  font: 8px var(--mono);
  letter-spacing: .14em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.project-file-empty {
  opacity: .62;
  cursor: default;
}

.project-file-empty:hover {
  background: transparent;
  box-shadow: none;
}

.project-file-cover-empty {
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(231, 233, 241, .54);
}

.project-file-cover-empty img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  object-fit: contain;
  opacity: .22;
  filter: none;
  transform: translate(-50%, -50%);
}

.project-file-cover-empty i {
  color: rgba(45, 51, 80, .28);
  text-shadow: none;
}

.folder-detail {
  display: none;
}

@keyframes folderReveal {
  from {
    opacity: .58;
    transform: translateY(5px);
  }
}

@media (max-width: 900px) {
  .folder-tabs button {
    flex-basis: 160px;
    padding-inline: 18px;
  }

  .folder-page {
    padding: 36px 6vw 40px;
  }

  .project-file {
    grid-template-columns: 180px minmax(0, 1fr) 26px;
    gap: 20px;
  }

  .project-file-data {
    display: none;
  }
}

@media (max-width: 650px) {
  .project-folder {
    width: calc(100% + 10vw);
    margin-left: -5vw;
  }

  .folder-tabs {
    min-height: 78px;
    padding-inline: 5vw;
  }

  .folder-tabs button {
    flex-basis: 142px;
    min-height: 62px;
    padding: 14px;
  }

  .folder-tabs button.active {
    min-height: 70px;
  }

  .folder-page {
    padding: 28px 5vw 30px;
    border-radius: 0;
  }

  .folder-page-header {
    grid-template-columns: 1fr;
    gap: 18px !important;
    padding-inline: 2px;
  }

  .folder-page-header > div:last-child {
    grid-template-columns: auto 1fr;
    gap: 18px;
    justify-items: start;
    padding: 0;
  }

  .folder-documents {
    border-radius: 10px;
  }

  .project-file {
    grid-template-columns: 96px minmax(0, 1fr) 22px;
    gap: 14px;
    min-height: 126px;
    padding: 10px 12px 10px 10px;
  }

  .project-file-cover {
    aspect-ratio: 1 / 1;
  }

  .project-file-copy strong {
    font-size: 18px;
  }

  .project-file-description {
    display: -webkit-box;
    margin-top: 6px;
    overflow: hidden;
    font-size: 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .project-file-copy em {
    margin-top: 7px;
  }

  .project-file-arrow {
    width: 19px;
    height: 19px;
  }

  .project-file-cover-empty img {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .folder-page,
  .folder-tabs button,
  .project-file-cover img,
  .project-file-arrow {
    animation: none !important;
    transition: none !important;
  }
}
