/* One continuous archive: curved tabs, quiet sheets, and open compositions. */
.project-folders {
  position: relative;
  isolation: isolate;
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding-bottom: 24px;
  overflow: clip;
}
.project-folder {
  --folder-sheet: #343b32;
  --folder-sticker: #4b5645;
  --text: #ecf0e3;
  --muted: #abb6a1;
  --accent: #bdd48c;
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  background: none;
  color: var(--text);
  scroll-margin-top: 102px;
}
.project-folder:nth-child(2) { --folder-sheet: #3a4237; --folder-sticker: #535f4b; }
.project-folder:nth-child(3) { --folder-sheet: #30392f; --folder-sticker: #4a5744; }
.project-folder:nth-child(4) { --folder-sheet: #3e473b; --folder-sticker: #58634f; }
.project-folder + .project-folder { margin-top: -14px; }
.project-folder::before {
  content: '';
  position: absolute;
  inset: 88px 0 -88px;
  z-index: -1;
  pointer-events: none;
  background: var(--folder-sheet);
  box-shadow: 0 -1px 0 #a3b28e26, 0 -8px 20px #18201516;
  transition: background-color .35s ease;
}
.project-folder:last-child::before { bottom: 0; }
.project-folder[hidden] { display: none !important; }
.project-folder[open] {
  --folder-sheet: #e8ebdf;
  --folder-sticker: #d6ddca;
  --text: #293327;
  --muted: #69745f;
  --accent: #6d7d58;
  color-scheme: light;
}
.folder-summary {
  position: relative;
  display: block;
  list-style: none;
  height: 124px;
  margin: 0;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.folder-summary::-webkit-details-marker { display: none; }
.folder-summary::marker { content: ''; }
.folder-summary:focus { outline: none; }
.folder-summary:focus-visible .folder-tab-label { outline: 2px solid var(--accent); outline-offset: 6px; }
.folder-handle {
  position: absolute;
  top: 0;
  left: clamp(3%, var(--folder-tab, 6%), calc(97% - 390px));
  width: 390px;
  height: 88px;
  color: var(--folder-sheet);
  pointer-events: none;
  filter: drop-shadow(0 -1px 0 #b0bea12b);
  transition: color .35s ease;
}
.folder-handle .file-tab-shape { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; overflow: visible; }
.folder-tab-label {
  position: absolute;
  left: 78px;
  right: 78px;
  top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 11px 20px;
  border: 1px solid #bbc7ac1c;
  border-radius: 6px;
  background: var(--folder-sticker);
  color: var(--text);
  white-space: nowrap;
  font-family: Manrope, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  transition: background-color .25s ease, color .25s ease;
}
.folder-tab-label > span {
  flex: none;
  padding-right: 18px;
  border-right: 1px solid currentColor;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  opacity: .85;
}
.folder-tab-label > strong { min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; }
.folder-kind { position: absolute; right: calc(7% + 40px); bottom: 19px; font-size: 10px; line-height: 1.8; letter-spacing: .02em; color: var(--muted); }
.folder-state-icon { position: absolute; right: 7%; bottom: 11px; display: grid; place-items: center; width: 26px; height: 32px; font-size: 25px; line-height: 1; font-weight: 300; color: var(--text); }
.folder-content { position: relative; overflow: hidden; color: var(--text); }
.folder-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 6%;
  width: 78%;
  max-width: 1120px;
  min-height: 408px;
  margin-inline: auto;
  padding: 0 0 28px;
}
.folder-copy { position: relative; z-index: 2; min-width: 0; }
.folder-category { margin: 0 0 16px; font-size: 11px; line-height: 1.7; letter-spacing: .035em; color: var(--muted); }
.folder-title { max-width: 420px; margin: 0; font-family: Manrope, 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: clamp(36px, 3.4vw, 48px); font-weight: 500; line-height: 1.42; letter-spacing: -.015em; text-wrap: balance; color: var(--text); }
.folder-description { max-width: 370px; margin: 18px 0 0; font-size: 14px; line-height: 1.95; color: var(--muted); }
.folder-case-link { display: inline-flex; align-items: center; gap: 38px; margin-top: 24px; padding-bottom: 10px; border-bottom: 1px solid #77866580; font-size: 13px; line-height: 1.6; color: var(--text); transition: color .2s ease, gap .3s ease; }
.folder-case-link > span:last-child { font-size: 23px; line-height: 1; }
.folder-art { position: relative; display: grid; place-items: center; width: 100%; max-width: 490px; min-width: 0; min-height: 320px; margin-inline: auto; color: inherit; }
.folder-art:focus-visible { outline: 2px solid var(--accent); outline-offset: 12px; }
.folder-art img { display: block; max-width: 100%; margin: 0; user-select: none; }
.folder-art .teaser-concept { width: 100%; max-height: 380px; object-fit: contain; }
.folder-art .teaser-ui { width: 100%; height: auto; max-height: 355px; object-fit: cover; object-position: top; clip-path: inset(1.2% round 6px); filter: saturate(.45); transition: filter .5s ease, transform .65s cubic-bezier(.22,1,.36,1); }
.folder-art-clinical .teaser-ui { aspect-ratio: 1.22; }
.folder-art-visual { height: 330px; }
.folder-art-visual .teaser-poster-main { position: absolute; left: 13%; top: 2%; width: 39%; height: 94%; object-fit: contain; transform: rotate(-6deg); filter: saturate(.78); }
.folder-art-visual .teaser-poster-alt { position: absolute; left: 53%; top: 9%; width: 33%; height: 84%; object-fit: contain; transform: rotate(6deg); filter: saturate(.78); }
@media (hover: hover) {
  .folder-summary:hover .folder-tab-label { background: #626e55; }
  .project-folder[open] .folder-summary:hover .folder-tab-label { background: #cad4bd; }
  .folder-case-link:hover { color: var(--accent); gap: 45px; }
  .folder-art:hover .teaser-ui { filter: saturate(.9); transform: translateY(-4px); }
}
@media (min-width: 1800px) {
  .folder-inner { max-width: 1220px; min-height: 450px; padding-block: 12px 36px; }
  .folder-art { max-width: 520px; }
}
@media (max-width: 1100px) {
  .folder-handle { width: 350px; left: clamp(3%, var(--folder-tab, 6%), calc(97% - 350px)); }
  .folder-tab-label { left: 58px; right: 58px; }
  .folder-inner { width: 80%; min-height: 370px; gap: 6%; padding-bottom: 24px; }
  .folder-title { font-size: 36px; }
  .folder-description { font-size: 13px; }
  .folder-art { min-height: 300px; }
  .folder-art .teaser-concept { max-height: 330px; }
}
@media (max-width: 899px) {
  .folder-inner { grid-template-columns: 1fr; width: 80%; max-width: 680px; min-height: 0; gap: 24px; padding: 12px 0 44px; }
  .folder-copy { order: 0; }
  .folder-art { order: 1; max-width: 410px; min-height: 280px; }
  .folder-title { max-width: 100%; font-size: 34px; }
  .folder-title br { display: none; }
  .folder-description { max-width: 440px; }
}
@media (max-width: 767px) {
  .project-folders { padding-bottom: 12px; }
  .project-folder { scroll-margin-top: 86px; }
  .project-folder + .project-folder { margin-top: -12px; }
  .project-folder::before { top: 78px; bottom: -78px; }
  .project-folder:last-child::before { bottom: 0; }
  .folder-summary { height: 110px; }
  .folder-handle { width: 280px; height: 78px; left: clamp(12px, var(--folder-tab, 6%), calc(100% - 292px)); }
  .folder-tab-label { left: 42px; right: 42px; top: 12px; min-height: 46px; padding: 10px 14px; gap: 18px; }
  .folder-tab-label > span { padding-right: 12px; font-size: 12px; }
  .folder-tab-label > strong { font-size: 13px; }
  .folder-kind { right: calc(7% + 33px); bottom: 17px; max-width: 66%; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .folder-state-icon { right: 7%; bottom: 9px; width: 23px; height: 29px; font-size: 23px; }
  .folder-inner { width: calc(100% - 64px); padding: 10px 0 40px; gap: 22px; }
  .folder-category { margin-bottom: 14px; font-size: 10px; }
  .folder-title { font-size: clamp(28px, 7.7vw, 34px); line-height: 1.45; letter-spacing: 0; }
  .folder-description { margin-top: 18px; font-size: 13px; line-height: 1.95; }
  .folder-case-link { margin-top: 22px; gap: 38px; font-size: 12px; }
  .folder-art { max-width: 350px; min-height: 250px; }
  .folder-art .teaser-concept { max-height: 280px; }
  .folder-art .teaser-ui { max-height: 295px; }
  .folder-art-visual { height: 280px; }
}
@media (max-width: 360px) {
  .folder-handle { width: 270px; left: clamp(8px, var(--folder-tab, 6%), calc(100% - 278px)); }
  .folder-tab-label { left: 37px; right: 37px; }
  .folder-inner { width: calc(100% - 56px); }
}
@media (prefers-reduced-motion: reduce) {
  .project-folder::before, .folder-handle, .folder-tab-label, .folder-case-link, .folder-art .teaser-ui { transition: none; }
  .folder-content { scroll-behavior: auto; }
}
