/* Selected work, individual project views and professional experience. */
#projekte { overflow: clip; }
#projekte > .head { margin-bottom: clamp(22px, 3vw, 40px); }
.work-stations {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: clamp(28px, 4vw, 52px);
  border-block: 1px solid var(--line-2);
}
.work-stations > a {
  min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 17px;
  padding: 19px clamp(14px, 2vw, 29px); color: var(--ink); background: transparent;
  transition: background .25s var(--ease);
}
.work-stations > a + a { border-left: 1px solid var(--line-2); }
.work-stations > a:hover, .work-stations > a:focus-visible { background: var(--sand); }
.work-station-brand { min-height: 28px; display: flex; align-items: center; font-weight: 600; }
.work-station-brand .brand-mark { width: auto; height: 24px; max-width: min(145px, 95%); object-fit: contain; object-position: left center; }
.work-station-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; line-height: 1.35; color: var(--text); }
.work-station-foot svg, .work-card-link svg, .tl__case svg, .case-next svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.35; flex: none; transition: transform .25s var(--ease); }
.work-stations a:hover svg, .pcard:hover .work-card-link svg, .tl__case:hover svg, .case-next:hover svg { transform: translateX(3px); }
.pcar__track { gap: clamp(16px, 1.65vw, 26px); padding-block: 4px 12px; }
.pcard {
  width: clamp(266px, 25vw, 360px); aspect-ratio: 414 / 623; padding: 0; display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr); align-items: stretch;
  color: white; background: var(--ink); border-radius: 8px; overflow: hidden;
}
.work-frame, .case-visual { position: relative; isolation: isolate; overflow: hidden; background: #b89175; }
.work-frame { grid-area: 1 / 1; width: 100%; height: 100%; }
.work-frame::after {
  position: absolute; inset: 0; content: ""; pointer-events: none;
  background: linear-gradient(to top, rgb(14 16 18 / .89) 0%, rgb(14 16 18 / .77) 18%, rgb(14 16 18 / .53) 36%, rgb(14 16 18 / .10) 58%, transparent 75%);
}
.work-frame .pcard__bg::before, .case-visual .pcard__bg::before { background: transparent; }
.work-frame .pcard__bg::after, .case-visual .pcard__bg::after { opacity: .2; }
.work-cover { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work-print { position: absolute; display: grid; place-items: center; inset: 0; }
.work-print .brand-mark { width: auto; height: 32%; max-width: 62%; max-height: 84px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.pcard:hover .work-cover, .pcard:focus-visible .work-cover { transform: scale(1.04); }
.work-card-copy { grid-area: 1 / 1; position: relative; z-index: 1; align-self: end; min-width: 0;
  display: flex; flex-direction: column; align-items: start; padding: clamp(19px, 1.9vw, 28px);
}
.pcard__org { margin: 0 0 8px; color: #fff; font: 500 13px/1.3 var(--sans); letter-spacing: .01em; }
.pcard__title { color: white; font: 400 clamp(25px, 2.2vw, 34px)/1.07 var(--serif); letter-spacing: -.035em; text-wrap: pretty; }
.work-card-link { display: flex; justify-content: space-between; align-items: center; gap: 15px; width: 100%; color: #fff; padding-top: 13px; margin-top: 15px; border-top: 1px solid rgb(255 255 255 / .35); font-size: 13px; }
.pcard:focus-visible, .work-stations > a:focus-visible, .tl__case:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .pcard.work-entered .work-frame { animation: work-enter .6s var(--ease) both; animation-delay: calc(var(--order) * .055s); }
  @keyframes work-enter { from { opacity: .45; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
}
.dlg { width: min(1010px, calc(100vw - 48px)); max-height: calc(100dvh - 50px); border-radius: 9px; padding: 0; overscroll-behavior: contain; }
.dlg::backdrop { background: rgb(30 25 22 / .55); backdrop-filter: blur(3px); }
.case-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 10px clamp(18px, 3vw, 35px); background: #fff; border-bottom: 1px solid var(--line); }
.case-back { display: inline-flex; align-items: center; min-height: 40px; gap: 11px; color: var(--text); font-size: 14px; }
.case-back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.case-back span { font-size: 20px; }
.case-actions { display: flex; gap: 8px; align-items: center; }
.case-actions > .dlg__close, .case-actions > .dlg__lang { position: static; width: 40px; height: 40px; border-radius: 3px; color: var(--ink); border: 1px solid var(--line-2); background: transparent; }
.case-actions > .dlg__close:hover, .case-actions > .dlg__lang:hover { background: var(--sand); }
.case-actions > .dlg__close svg { stroke: var(--ink); }
.case-intro { display: grid; grid-template-columns: 1.08fr 1fr; background: #f5f3ed; }
.case-heading { padding: clamp(25px, 4vw, 55px); align-self: center; }
.case-kicker { margin: 0 0 17px; color: #675d53; font: 500 .8rem/1.4 var(--mono); }
.case-heading h2 { color: var(--ink); font-size: clamp(34px, 4vw, 60px); line-height: 1.01; letter-spacing: -.04em; overflow-wrap: break-word; }
.case-teaser { margin-top: 17px; font-size: 16px; line-height: 1.55; color: #574e48; }
.case-visual { min-height: 245px; }
.case-visual .work-cover { position: absolute; inset: 0; }
.dlg__meta { display: flex; flex-wrap: wrap; gap: 18px 32px; margin: 0 clamp(24px, 4vw, 55px); padding: 22px 0; align-items: center; border-color: var(--line-2); }
.dlg__meta > div, .dlg__meta > div + div { padding: 0; border: 0; }
.dlg__meta dt { color: #625950; font-size: 12px; }
.dlg__meta dd { margin-top: 5px; font-size: 14px; }
.case-mark dd { display: flex; align-items: center; }
.case-mark .brand-mark { max-width: 100px; width: auto; height: 23px; object-fit: contain; }
.dlg__body { display: grid; gap: 0; padding: 12px clamp(24px, 4vw, 55px) 38px; }
.dlg__body > section { display: grid; grid-template-columns: minmax(120px,.37fr) 1fr; gap: 18px 32px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.dlg__body h3 { margin: 0; font: 500 15px/1.55 var(--sans); color: var(--ink); }
.dlg__body p { font: 400 16px/1.64 var(--sans); color: var(--text); }
.dlg__body .case-figure { margin: 25px 0; }
.dlg__stack { align-items: start; gap: 7px; }
.dlg__stack span { min-height: 32px; background: var(--sand); }
.dlg__foot { padding: 24px 0; align-items: center; }
.case-next { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; padding: 22px 0 0; border-top: 1px solid var(--line-2); }
.case-next span { font-size: 12px; color: var(--text); }
.case-next strong { grid-row: 2; font: 400 clamp(23px, 2.8vw, 33px)/1.1 var(--serif); }
.case-next svg { grid-column: 2; grid-row: 2; align-self: center; }
.tl { margin-block: 0; }
.tl li { grid-template-columns: minmax(100px,.62fr) minmax(180px,1fr) minmax(220px,1.4fr); padding: clamp(24px, 3.3vw, 45px) 0; gap: clamp(20px, 3vw, 44px); align-items: start; }
.tl__identity { display: flex; flex-direction: column; align-items: start; justify-content: center; gap: 11px; }
.tl__brand { display: flex; align-items: center; }
.tl__brand .brand-mark { max-width: 128px; height: 22px; width: auto; object-fit: contain; }
.tl__period { color: var(--text); font-size: 12px; line-height: 1.45; }
.tl__appointment .tl__org { font: 400 clamp(24px, 2.2vw, 32px)/1.09 var(--serif); letter-spacing: -.025em; }
.tl__role { font-size: 14px; color: var(--text); }
.tl__body { font: 400 16px/1.58 var(--sans); color: var(--text); }
.tl__case { display: inline-flex; gap: 10px; align-items: center; margin-top: 12px; min-height: 32px; font-size: 14px; }
@media (max-width: 700px) {
  .work-stations { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .work-stations > a { gap: 8px; padding: 14px; }
  .work-stations > a:nth-child(3) { border-left: none; }
  .work-stations > a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .work-station-brand .brand-mark { height: 20px; }
  .pcard { width: clamp(226px, 73vw, 310px); }
  .dlg { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .case-intro { grid-template-columns: 1fr; }
  .case-visual { min-height: 0; height: clamp(150px, 45vw, 240px); }
  .case-heading { padding: 24px 22px; }
  .case-heading h2 { font-size: clamp(33px, 8vw, 46px); }
  .case-kicker { margin-bottom: 10px; }
  .case-teaser { margin-top: 10px; }
  .dlg__meta { margin-inline: 22px; gap: 16px 24px; }
  .dlg__body { padding-inline: 22px; }
  .dlg__body > section { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .tl li { grid-template-columns: 1fr; gap: 10px; }
  .tl__identity { flex-direction: row; align-items: center; justify-content: start; gap: 22px; }
  .tl__identity:empty { display: none; }
  .tl__brand .brand-mark { height: 18px; }
  .case-actions > .dlg__close, .case-actions > .dlg__lang { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .work-cover, .pcard__bg, .case-next svg, .work-station-foot svg { animation: none; transition: none; }
}
