/* ============ Archiv (Werte aus dem Original) ============ */
body.work { background: #f2f2f2; color: #0f0f15; overflow: hidden; overscroll-behavior: none; }
body.imprint-page { overflow: auto; }

.archive { min-height: 100vh; background: #f2f2f2; color: #0f0f15; touch-action: none; opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.archive.in { opacity: 1; transform: none; }
.archive.mode-board { cursor: grab; }
.archive.mode-board.dragging { cursor: grabbing; }
.archive-canvas { position: fixed; inset: 0; z-index: 0; }
.archive-canvas canvas, .gallery-canvas canvas { display: block; width: 100% !important; height: 100% !important; }

/* header (WorkMenu) */
.work-menu { position: fixed; inset: 0 0 auto 0; z-index: 30; transition: opacity .68s cubic-bezier(.22,1,.22,1), transform .68s cubic-bezier(.22,1,.22,1), filter .68s; }
.work-menu.bg { background: rgba(242,242,242,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.work-menu.hidden { pointer-events: none; transform: translateY(-12px); opacity: 0; transition-delay: 90ms; }
.w-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 40px; padding: 0 16px;
}
.work-menu:not(.bg) .w-head { background: rgba(242,242,242,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.w-nav { font-size: 10px; line-height: 160%; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; justify-self: start; color: #0f0f15; }
.w-nav.right { justify-self: end; }
.w-logo { font-family: var(--font-logo); font-weight: 500; font-size: 13.5px; letter-spacing: .01em; color: #000; }
.filter-wrap { overflow: hidden; height: 67px; transform: translateY(0); transition: height .64s cubic-bezier(.22,1,.36,1), transform .42s cubic-bezier(.22,1,.36,1); }
.filter-wrap.collapsed { height: 0; transform: translateY(-4px); transition: height .5s cubic-bezier(.22,1,.36,1) .18s, transform .42s cubic-bezier(.22,1,.36,1); }
.work-menu:not(.bg) .filter-wrap { background: rgba(242,242,242,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.filter-row { display: flex; overflow-x: auto; white-space: nowrap; padding: 24px 16px; scrollbar-width: none; }
.filter-btn {
  display: grid; grid-template-columns: max-content max-content; align-items: start; column-gap: 6px;
  border: none; background: transparent; padding: 0 16px 0 0; cursor: pointer; text-align: left;
  transform-origin: 50% 0%; opacity: .45;
  transition: opacity .58s cubic-bezier(.16,1,.3,1), transform .58s cubic-bezier(.16,1,.3,1), filter .58s cubic-bezier(.16,1,.3,1), clip-path .58s cubic-bezier(.16,1,.3,1);
  clip-path: inset(0 0 0% 0);
}
.filter-btn:last-child { padding-right: 0; }
.filter-btn:hover { opacity: .75; }
.filter-btn.active { opacity: 1; }
.filter-btn .fl { margin-top: 1px; font-family: var(--font-ui); font-size: 10px; font-weight: 600; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; color: #0f0f15; }
.filter-btn .fc { font-family: var(--font-ui); font-size: 9px; line-height: 1.2; font-weight: 400; letter-spacing: .11em; color: #4f4f5d; }
.filter-wrap.collapsed .filter-btn { opacity: 0; filter: blur(5px); clip-path: inset(0 0 100% 0); transition-duration: .32s; }
.filter-wrap.collapsed .filter-btn:nth-child(odd) { transform: translate(-10px, -14px) rotate(-2.4deg) scale(.96); }
.filter-wrap.collapsed .filter-btn:nth-child(even) { transform: translate(10px, -14px) rotate(2.4deg) scale(.96); }
@media (max-width: 900px) { .archive.mode-y .filter-wrap, .archive.mode-board .filter-wrap { display: none; } }

/* stack label */
.y-label { pointer-events: none; position: fixed; top: 50%; left: 16px; z-index: 20; display: none; width: clamp(340px, calc(50vw - 92px), 802px); transform: translateY(-50%); align-items: center; }
.y-label p { margin: 0; font-family: var(--font-ui); font-size: 12px; line-height: 16px; letter-spacing: .02em; color: #272733; transition: opacity .35s; }
.y-cat { position: relative; z-index: 10; font-weight: 600; }
.y-title { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; font-weight: 400; white-space: nowrap; }
@media (min-width: 1024px) { .archive.mode-y .y-label { display: flex; } }

/* view toggle + zoom */
.magnetic { position: relative; min-width: 0; }
.magnetic > * { will-change: transform; }
.view-toggle { pointer-events: none; position: fixed; inset: auto 0 -24px 0; z-index: 40; display: flex; justify-content: center; transition: all .5s cubic-bezier(.22,1,.36,1); }
.view-toggle > .magnetic { pointer-events: auto; padding: 40px; }
.pill-box { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.8); background: rgba(248,248,248,.82); box-shadow: 0 10px 34px rgba(8,8,14,.16); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.pill-box.col { flex-direction: column; }
.toggle-btn {
  min-width: 56px; cursor: pointer; border: 0; border-radius: 999px; padding: 7px 16px; background: transparent;
  font-family: var(--font-ui); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #555563; text-align: center;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.toggle-btn:hover { background: rgba(255,255,255,.65); }
.toggle-btn.active { background: #111118; color: #f8f8fb; box-shadow: 0 4px 14px rgba(14,14,20,.24); }
.toggle-btn.icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; min-width: 30px; padding: 0; }
.toggle-btn.icon svg { opacity: .68; }
.zoom-ctrl { pointer-events: none; position: fixed; top: 50%; right: 0; z-index: 40; display: flex; justify-content: flex-end; transform: translate(12px, -50%); opacity: 0; filter: blur(1px); transition: all .5s cubic-bezier(.22,1,.36,1); }
.zoom-ctrl > .magnetic { padding: 40px 16px 40px 40px; }
.archive.mode-board .zoom-ctrl { transform: translate(0, -50%); opacity: 1; filter: none; }
.archive.mode-board .zoom-ctrl > .magnetic { pointer-events: auto; }
.archive.gallery-open .view-toggle { pointer-events: none; transform: translateY(12px); opacity: 0; filter: blur(1px); }
.archive.gallery-open .zoom-ctrl { opacity: 0; pointer-events: none; }

/* gallery overlay */
.gallery { position: fixed; inset: 0; z-index: 170; visibility: hidden; overflow: hidden; color: #0f0f15; user-select: none; touch-action: none; }
.gallery.open { visibility: visible; }
.gallery-curtain { position: absolute; inset: 0; background: #f2f2f2; opacity: 0; transition: opacity 360ms cubic-bezier(.22,1,.36,1); }
.gallery.open .gallery-curtain { opacity: 1; }
.gallery.closing .gallery-curtain { opacity: 0; transition-delay: 120ms; }
.gallery-canvas { position: absolute; inset: 0; cursor: ew-resize; }
.g-ui { position: absolute; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; pointer-events: none; }
@media (min-width: 640px) { .g-ui { padding: 20px 24px 8px; } }
.g-ui-item { margin: 0; opacity: 0; transform: translateY(-16px); transition: opacity .4s cubic-bezier(.16,1,.3,1) calc((4 - var(--i)) * 40ms), transform .4s cubic-bezier(.16,1,.3,1) calc((4 - var(--i)) * 40ms); }
.gallery.chrome .g-ui-item { opacity: 1; transform: none; pointer-events: auto; transition: opacity .8s cubic-bezier(.16,1,.3,1) calc(var(--i) * 80ms), transform .8s cubic-bezier(.16,1,.3,1) calc(var(--i) * 80ms); }
.g-count { font-family: var(--font-ui); font-size: 10px; font-weight: 600; letter-spacing: .08em; color: #272733; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.g-head { display: flex; max-width: 50vw; flex-direction: column; align-items: center; gap: 4px; }
.g-name { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-family: var(--font-ui); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #0f0f15; }
.g-label { margin: 0; text-align: center; font-family: var(--font-ui); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #6b6b75; }
@media (min-width: 640px) { .g-name { font-size: 12px; } .g-label { font-size: 10px; } }
.g-close { display: inline-flex; width: 32px; height: 32px; flex-shrink: 0; cursor: pointer; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: #101015; color: #fff; font-size: 17px; line-height: 1; transition: background-color .2s cubic-bezier(.22,1,.36,1), transform .2s cubic-bezier(.22,1,.36,1); }
.g-close:hover { transform: scale(1.1); background: #1b1b24; }
.g-zone { position: absolute; top: 28vh; z-index: 20; display: none; height: 43vh; width: clamp(220px, 24vw, 420px); cursor: pointer; pointer-events: none; }
.g-zone.left { left: 0; } .g-zone.right { right: 0; }
@media (min-width: 1024px) { .g-zone { display: block; } .gallery.chrome .g-zone { pointer-events: auto; } }

/* imprint page header */
body.imprint-page .w-head { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: rgba(242,242,242,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* Projekt-Caption + Substack-Link */
.g-caption-box {
  position: absolute; left: 16px; bottom: 16px; z-index: 45; width: min(340px, calc(100vw - 32px));
  padding: 14px 16px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.8);
  background: rgba(248,248,248,.86); box-shadow: 0 10px 34px rgba(8,8,14,.12);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transform: translateY(16px);
}
.gallery.chrome .g-caption-box { transform: none; }
@media (min-width: 640px) { .g-caption-box { left: 24px; bottom: 24px; } }
.g-cap-text { margin: 0; font-family: var(--font-ui); font-size: 12px; line-height: 1.5; letter-spacing: .01em; color: #272733; }
.g-cap-link {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #0f0f15;
  border-bottom: 1px solid #0f0f15; padding-bottom: 2px;
}
.g-cap-link svg { transition: transform .4s var(--ease); }
.g-cap-link:hover svg { transform: translate(2px, -2px); }
