/* =========================================================
   Marc Gegner – Portfolio
   Look & Feel: Desktop / Dock wie im PDF-Portfolio
   ========================================================= */

@font-face { font-family: "Outfit"; src: url("../fonts/outfit-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-soft: #f2f2f3;
  --ink: #111111;
  --ink-2: #3a3a3c;
  --muted: #7a7a80;
  --line: #1a1a1a;
  --hair: rgba(0, 0, 0, .1);
  --blue-meta: #3b6cff;
  --red: #e2412d;
  --shards: #f5e625;
  --spx: #1f5fff;
  --ivy: #e94a1f;
  --comic: #f7e400;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --dock-h: 86px;
  --menubar-h: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #f2f2f2; scroll-behavior: smooth; scroll-padding-top: calc(var(--menubar-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw + 8px, 20px);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + 24px);
}
img { display: block; max-width: 100%; height: auto; }
main, .footer { overflow-x: clip; } /* schräges Band & Parallax dürfen die Seite am Handy nicht verbreitern */
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
::selection { background: var(--shards); color: #000; }
:focus-visible { outline: 2px solid var(--spx); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; background: #000; color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 44px; }
.container { width: min(1480px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Boot screen ---------- */
.boot {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-content: center; gap: 28px; justify-items: center;
  background: #0b0b0c; color: #fff; transition: opacity .6s var(--ease), visibility .6s;
}
.boot__logo { width: clamp(150px, 18vw, 240px); height: auto; animation: bootPulse 1.4s var(--ease) infinite alternate; }
.boot__bar { width: 180px; height: 5px; border-radius: 9px; background: #333; overflow: hidden; }
.boot__bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; animation: bootLoad 1.1s var(--ease) forwards; }
body:not(.is-booting) .boot { opacity: 0; visibility: hidden; }
.boot__logo--mobile { display: none; }
/* Handy: heller Ladebildschirm. Er ist Teil der Seite (absolute) statt fixiert: Safari (iOS 26)
   verlängert beim Laden die Farbe fixierter Elemente am unteren Rand unter die Adressleiste und
   prüft sie erst beim Scrollen neu – ohne fixiertes Element bleibt die Leiste transparent. */
@media (max-width: 760px) {
  .boot {
    position: absolute; inset: 0 0 auto 0; height: 100vh; height: 100lvh;
    padding-bottom: calc(100lvh - 100svh); /* Logo mittig im sichtbaren Bereich über der Leiste */
    background: #fff; color: #111;
  }
  .boot__bar { background: #e2e2e4; }
  .boot__bar span { background: #111; }
  .boot__logo--desktop { display: none; }
  .boot__logo--mobile { display: block; }
}
@keyframes bootLoad { to { width: 100%; } }
@keyframes bootPulse { from { opacity: .6; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }

/* ---------- Menubar ---------- */
.menubar {
  position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--menubar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(10px, 2vw, 22px);
  font-size: 14px;
  background: rgba(246, 246, 247, .62);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.menubar__left, .menubar__right { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); white-space: nowrap; }
.menubar a { text-decoration: none; opacity: .85; transition: opacity .2s; }
.menubar a:hover { opacity: 1; }
.menubar__brand { display: flex; align-items: center; gap: 8px; }
.menubar__brand svg { width: 13px; height: 13px; fill: #111; }
.menubar__brand strong { font-weight: 700; }
.menubar__clock { font-variant-numeric: tabular-nums; font-weight: 500; }
.menubar__date { white-space: pre; }
@media (max-width: 600px) { .menubar__date { display: none; } }
.menubar { overflow: hidden; }
/* Handy: Das fixierte Element selbst ist transparent, der Glas-Hintergrund liegt auf einer Ebene darunter.
   Safari (iOS 26) übernimmt sonst dessen Farbe für den Bereich hinter der Handy-Uhr (statt Glas-Effekt). */
@media (max-width: 760px) {
  .menubar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; isolation: isolate; }
  .menubar::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(246, 246, 247, .62);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
}
@media (max-width: 860px) { .hide-sm { display: none !important; } }

/* ---------- Desktop / Hero ---------- */
.desktop {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #fbfbfb 0%, #e9e9ea 60%, #d9d9db 100%);
}
.desktop__wallpaper { position: absolute; inset: -3%; will-change: transform; }
.desktop__wallpaper img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.desktop__title { position: absolute; left: 6.3%; top: calc(var(--menubar-h) + 8vh); z-index: 3; }
.desktop__title h1 { font-weight: 700; font-size: clamp(44px, 4.6vw, 110px); letter-spacing: -.035em; }
.desktop__name { display: inline-block; margin-top: .25em; font-size: clamp(20px, 1.9vw, 38px); font-weight: 500; text-decoration: none; position: relative; }
.desktop__name::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform-origin: left; animation: underline 1s .9s var(--ease) both; }
.desktop__name:hover::after { animation: underlineHover .6s var(--ease); }
@keyframes underline { from { transform: scaleX(0); } }
@keyframes underlineHover { 0% { transform: scaleX(1); transform-origin: right; } 49% { transform: scaleX(0); transform-origin: right; } 50% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }
.desktop__tagline { max-width: 15em; margin: 14px 0 0; font-size: clamp(13px, .9vw, 16px); color: var(--ink-2); letter-spacing: .02em; opacity: 0; animation: fadeUp .8s 1.2s var(--ease) forwards; }

.reveal-text { overflow: hidden; padding: 0 .12em .06em 0; margin-right: -.12em; }
.reveal-text span { display: inline-block; transform: translateY(110%); animation: slideUp 1s .45s var(--ease) forwards; }
@keyframes slideUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.desktop__files { position: absolute; inset: 0; z-index: 4; }
.file {
  --s: 1;
  position: absolute; left: var(--mx, var(--x)); top: var(--my, var(--y));
  width: clamp(64px, 7.2vw, 140px);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  touch-action: none; user-select: none; -webkit-user-select: none;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--r)) scale(var(--s));
  transition: transform .35s var(--spring), filter .3s;
  animation: filePop .7s calc(1.1s + var(--d) * 70ms) var(--spring) both;
  cursor: grab;
}
.file img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 10px 24px -8px rgba(0, 0, 0, .35);
  border: 3px solid #fff; background: #fff;
  pointer-events: none;
}
.file--p { width: clamp(46px, 5.2vw, 100px); }
.file--p img { aspect-ratio: 3 / 4; object-position: top; }
.file span {
  font-size: clamp(9px, .68vw, 13px); font-weight: 500; padding: 1px 6px; border-radius: 4px;
  white-space: nowrap; color: #111; background: rgba(255, 255, 255, .0); transition: background .2s, color .2s;
}
.file:hover { --s: 1.08; z-index: 5; }
.file:hover span, .file.is-selected span { background: #2f6bff; color: #fff; }
.file.is-dragging { --s: 1.12; cursor: grabbing; z-index: 10; transition: filter .2s; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .3)); }
.file.is-trashing { transition: transform .5s ease-in, opacity .5s; opacity: 0; }
.file.is-returning { transition: transform .8s var(--spring), opacity .4s; }
@keyframes filePop { from { opacity: 0; transform: translate(0, 30px) rotate(0) scale(.4); } }

.desktop__hint {
  position: absolute; left: 50%; bottom: calc(var(--dock-h) + 30px); transform: translateX(-50%); z-index: 3; margin: 0;
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2);
  padding: 7px 14px 7px 7px; border-radius: 999px; background: rgba(255, 255, 255, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08); white-space: nowrap;
  opacity: 0; animation: fadeUp .8s 2.4s var(--ease) forwards;
}
.desktop__hint-key { background: #111; color: #fff; border-radius: 999px; padding: 2px 9px; font-weight: 600; font-size: 12px; }
.scroll-cue { position: absolute; right: 4%; bottom: calc(var(--dock-h) + 28px); z-index: 3; width: 26px; height: 42px; border: 2px solid #111; border-radius: 20px; display: grid; justify-items: center; padding-top: 7px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: #111; animation: cue 1.6s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 860px) {
  .desktop__wallpaper img { object-position: 52% 20%; }
  .desktop__title { left: var(--gutter); }
  .desktop::before { content: ""; position: absolute; inset: 0 0 auto; height: 42%; z-index: 2; background: linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,0)); }
  .desktop::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; z-index: 2; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.7) 40%); }
  .desktop__title { top: calc(var(--menubar-h) + 5vh); }
  .file { width: 60px; }
  .file--p { width: 44px; }
  .file:nth-child(5n+1) { --mx: 3%; } .file:nth-child(5n+2) { --mx: 23%; } .file:nth-child(5n+3) { --mx: 42%; }
  .file:nth-child(5n+4) { --mx: 61%; } .file:nth-child(5n+5) { --mx: 80%; }
  .file:nth-child(-n+5) { --my: 47%; } .file:nth-child(n+6):nth-child(-n+10) { --my: 59%; } .file:nth-child(n+11) { --my: 71%; }
  .file:nth-child(even) { margin-top: 14px; }
  .file span { font-size: 8.5px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .desktop__hint { font-size: 11.5px; white-space: normal; left: 16px; right: 16px; transform: none; justify-content: center; border-radius: 16px; }
  .scroll-cue { display: none; }
}

/* Handy: Marc als stehendes Hintergrundbild, „Portfolio“ am unteren Rand,
   darunter scrollen die Desktop-Dateien als lose verstreute, nicht anklickbare Icons */
@media (max-width: 760px) {
  .desktop { height: auto; min-height: 0; overflow: clip; }
  .desktop::before, .desktop::after { display: none; }
  .desktop__wallpaper { position: sticky; inset: auto; top: 0; height: 100vh; height: 100lvh; margin-bottom: -100vh; margin-bottom: -100lvh; transform: none !important; }
  .desktop__wallpaper img { object-position: 52% 22%; }
  .desktop__title {
    position: relative; top: auto; left: auto; height: 100svh; z-index: 3;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
    padding: 0 var(--gutter) calc(var(--dock-h) + 40px);
  }
  .desktop__title h1 { font-size: clamp(54px, 17vw, 80px); }
  .desktop__files { position: relative; inset: auto; height: calc(var(--mob-h, 0px) + 70px); margin: 0 16px; z-index: 4; }
  .desktop__files .file {
    position: absolute; left: var(--mob-x, 0); top: var(--mob-y, 0); width: var(--mob-w, 30vw); margin: 0 !important;
    pointer-events: none; cursor: default; animation: none;
    opacity: 0; transform: translateY(46px) rotate(var(--mob-r, 0deg)) scale(.86);
    transition: opacity .7s var(--ease), transform .9s var(--spring);
  }
  .desktop__files .file.is-in { opacity: 1; transform: rotate(var(--mob-r, 0deg)); }
  .desktop__files .file span { font-size: 10.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; background: rgba(255, 255, 255, .75); }
  .desktop__hint, .scroll-cue { display: none; }
  .dock__item[data-trash] { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 12vh, 160px) 0; }
.h-display { font-size: clamp(44px, 5.4vw, 104px); font-weight: 700; letter-spacing: -.035em; margin-bottom: clamp(36px, 6vh, 80px); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Inhalt ---------- */
.inhalt { background:
  linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.92)),
  url("../img/hero-blur.jpg") center 30% / cover no-repeat; }
.toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 8vh, 110px) clamp(32px, 4vw, 64px); max-width: 1180px; }
.toc__item { position: relative; display: block; text-decoration: none; padding-right: 90px; min-height: 150px; }
.toc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 6px; margin-right: -90px; position: relative; }
.toc__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); transform-origin: left; transition: transform .6s var(--ease); }
.toc__head::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent, var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 1; }
.toc__item:nth-child(1) { --accent: #d4c400; } .toc__item:nth-child(2) { --accent: var(--ivy); } .toc__item:nth-child(3) { --accent: var(--spx); } .toc__item:nth-child(4) { --accent: #d4c400; }
.toc__item:hover .toc__head::before { transform: scaleX(1); }
.toc__head strong { font-size: clamp(20px, 1.6vw, 28px); font-weight: 700; }
.toc__head small { font-size: clamp(12px, .85vw, 15px); color: var(--muted); }
.toc ul { list-style: none; margin: 18px 0 0; padding: 0; font-size: clamp(18px, 1.45vw, 26px); line-height: 1.45; }
.toc li { transition: transform .4s var(--ease); }
.toc__item:hover li { transform: translateX(8px); }
.toc__item:hover li:nth-child(2) { transition-delay: .04s; } .toc__item:hover li:nth-child(3) { transition-delay: .08s; }
.toc .toc__icon { z-index: 2; position: absolute; right: 0; top: 52px; width: 72px; height: 72px; transition: transform .5s var(--spring); }
.toc .toc__item:hover .toc__icon { transform: translateY(-20px) rotate(-6deg) scale(1.1); }
@media (max-width: 760px) {
  .toc { grid-template-columns: 1fr; }
  .toc__item { padding-right: 70px; min-height: 0; }
  .toc__head { margin-right: -70px; }
  .toc .toc__icon { width: 56px; height: 56px; top: 50px; }
}

/* ---------- App icons ---------- */
.app-icon {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 22.5%;
  background: #fff center / cover no-repeat; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 6px 14px -6px rgba(0, 0, 0, .35);
  overflow: hidden; position: relative;
}
.app-icon--shards, .app-icon--spx, .app-icon--ivy, .app-icon--comic {
  background-color: transparent; background-size: contain; border-radius: 0; box-shadow: none; overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)) drop-shadow(0 5px 8px rgba(0, 0, 0, .2));
}
.app-icon--shards { background-image: url("../img/icon-shards-v2.png"); }
.app-icon--spx { background-image: url("../img/icon-spx-v2.png"); }
.app-icon--ivy { background-image: url("../img/icon-ivy-v2.png"); }
.app-icon--comic { background-image: url("../img/icon-comic-v2.png"); }
.app-icon--adobe {
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 1em; letter-spacing: -.02em;
  container-type: inline-size;
}
.app-icon--adobe { font-size: calc(var(--icon, 64px) * .5); }
.app-icon--adobe::after { content: ""; position: absolute; inset: 5%; border-radius: 19%; border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); }
.app-icon--figma { background: #1e1e1e; }
.app-icon--figma svg { width: 38%; }
.app-icon--folder, .app-icon--trash { background: transparent; box-shadow: none; overflow: visible; }
.app-icon--folder svg { width: 96%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2)); }
.app-icon--trash svg { width: 74%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }

/* ---------- Dock ---------- */
.dock { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 950; max-width: calc(100vw - 16px); }
.dock__inner {
  --icon: 60px;
  display: flex; align-items: flex-end; gap: 10px; padding: 10px 12px; height: calc(var(--icon) + 24px);
  border-radius: 26px;
  background: rgba(246, 246, 248, .55);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 18px 40px -12px rgba(0, 0, 0, .3);
  animation: dockIn .9s .9s var(--spring) both;
}
@keyframes dockIn { from { transform: translateY(140%); } }
@keyframes dockInMobile { from { opacity: 0; transform: scale(.9); } }
.dock__item {
  --scale: 1;
  position: relative; display: block; width: calc(var(--icon) * var(--scale)); flex: none;
  text-decoration: none; transition: width .18s ease-out, transform .25s;
  margin-bottom: 0;
}
.dock__item .app-icon { width: 100%; font-size: calc(var(--icon) * var(--scale) * .48); }
.dock__item::before { /* label */
  content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 16px); transform: translate(-50%, 6px);
  padding: 5px 11px; border-radius: 8px; font-size: 13px; white-space: nowrap; color: #111;
  background: rgba(240, 240, 242, .92); backdrop-filter: blur(10px); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15), 0 6px 18px rgba(0, 0, 0, .18);
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.dock__item:hover::before, .dock__item:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
.dock__item::after { /* running indicator */
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; border-radius: 50%; background: #333;
  transform: translateX(-50%) scale(0); transition: transform .3s var(--spring);
}
.dock__item.is-running::after, .dock__item.is-open::after { transform: translateX(-50%) scale(1); }
.dock__item.is-bouncing { animation: bounce .9s var(--ease); }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-22px); } 50% { transform: translateY(0); } 70% { transform: translateY(-9px); } }
.dock__sep { width: 1px; align-self: stretch; margin: 4px 2px; background: rgba(0, 0, 0, .18); flex: none; }
.dock__item[data-trash].is-hot .app-icon { transform: scale(1.25); }
.dock__item[data-trash] .app-icon { transition: transform .25s var(--spring); }
.dock__item[data-trash].is-gulp { animation: gulp .6s var(--spring); }
@keyframes gulp { 30% { transform: scale(1.3, .8); } 60% { transform: scale(.9, 1.15); } }
.trash__paper { opacity: 0; transition: opacity .3s; }
.dock__item[data-trash].is-full .trash__paper { opacity: 1; }

@media (max-width: 1100px) { .dock__inner { --icon: 48px; gap: 8px; } }
@media (max-width: 760px) {
  :root { --dock-h: 66px; }
  .dock { bottom: 8px; }
  .dock__inner { --icon: 46px; gap: 10px; padding: 9px 10px; border-radius: 22px; animation-name: dockInMobile; transform-origin: 50% 100%; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); }
  .dock__item::before { display: none; }
  .dock__item[data-tool], .dock__sep ~ .dock__sep { display: none; }
}

/* ---------- SHARDS tape ---------- */
.tape { position: relative; z-index: 2; height: 0; }
.tape__track {
  /* gleiche Höhe wie das bisherige Text-Band: Schriftgröße × 1,5 + 2 × 10px */
  --tape-h: calc(clamp(22px, 2.6vw, 40px) * 1.5 + 20px);
  --tile-w: calc(var(--tape-h) * 3.2237);
  position: absolute; left: -10%; width: 120%; top: -36px; height: var(--tape-h);
  background: #eee412 url("../img/tape-tile.png") 0 0 / auto 100% repeat-x;
  transform: rotate(-3deg); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3);
  animation: marquee calc(18s * 1.15) linear infinite;
}
@keyframes marquee { to { background-position: calc(var(--tile-w) * -1) 0; } }

/* ---------- Project layout ---------- */
.project { background: var(--bg); }
.project + .project { border-top: 1px solid var(--hair); }
.project__grid { display: grid; grid-template-columns: minmax(300px, 33%) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.project__info { position: sticky; top: calc(var(--menubar-h) + 48px); }
.project__brand { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px 22px; margin-bottom: clamp(28px, 5vh, 60px); }
.project__logo { height: clamp(48px, 4.2vw, 70px); width: auto; transition: transform .5s var(--spring); }
.project__logo:hover { transform: rotate(-4deg) scale(1.06); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 4px; }
.tab {
  color: var(--muted); font-size: clamp(16px, 1.25vw, 22px); position: relative; padding: 2px 0;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: transparent;
  transition: color .25s, text-decoration-color .25s;
}
.tab:hover { color: var(--ink); text-decoration-color: currentColor; }
.tab.is-active { color: var(--muted); text-decoration-color: currentColor; }
.tab.is-active:not(.is-static) { color: var(--ink); }
.tab.is-static { cursor: default; }
.project__text h3 { font-size: clamp(18px, 1.3vw, 24px); font-weight: 600; margin: 1.6em 0 .55em; position: relative; }
.project__text h3:first-child { margin-top: 0; }
.project__text p { margin: 0; color: var(--ink); max-width: 34em; }
.dot::before { content: ""; position: absolute; left: -22px; top: .3em; width: 14px; height: 14px; border-radius: 50%; background: var(--red); animation: popIn .5s var(--spring); }
@keyframes popIn { from { transform: scale(0); } }
.tabtext { display: none; }
.tabtext h3:first-child { margin-top: 1.6em; }
.tabtext.is-active { display: block; animation: fadeUp .5s var(--ease); }
.programs { display: flex; gap: 10px; flex-wrap: wrap; --icon: 56px; }
.programs .app-icon { width: var(--icon); font-size: calc(var(--icon) * .48); animation: popIn .45s var(--spring) both; animation-delay: calc(var(--i, 0) * 60ms); transition: transform .3s var(--spring); }
.programs .app-icon:hover { transform: translateY(-5px) rotate(-5deg); }
@media (max-width: 1100px) { .programs { --icon: 52px; } }

.panel { animation: panelIn .6s var(--ease); }
.panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 960px) {
  .project__grid { grid-template-columns: 1fr; }
  .project__info { position: static; }
  .dot::before { left: auto; right: calc(100% + 8px); width: 10px; height: 10px; }
  .project__text h3.dot { padding-left: 18px; }
  .project__text h3.dot::before { left: 0; right: auto; }
}

/* Clickable media */
[data-ql] { cursor: zoom-in; }
.desktop [data-ql] { cursor: grab; }

/* Phones */
.phones { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 56px); }
.phone { transition: transform .6s var(--ease); }
.phone img { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .12)) drop-shadow(0 28px 36px rgba(0, 0, 0, .2)); }
.phone:nth-child(odd) { animation: float 6s ease-in-out infinite; }
.phone:nth-child(even) { animation: float 6s 1.5s ease-in-out infinite; margin-top: clamp(30px, 8vw, 120px); }
.phone:hover { transform: scale(1.03) rotate(-1.5deg); }
@keyframes float { 50% { translate: 0 -14px; } }
.laptops { display: grid; gap: clamp(30px, 5vw, 80px); margin-top: clamp(40px, 8vw, 120px); }
.laptop { transition: transform .6s var(--ease); }
.laptop img { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .16)); }
.laptop:hover { transform: translateY(-8px); }

/* Masonry tiles */
/* Masonry: Spalten-Layout, jedes Bild behält sein natürliches Seitenverhältnis (nichts wird beschnitten) */
.masonry { columns: 2; column-gap: clamp(16px, 2.6vw, 48px); }
.tile { break-inside: avoid; margin: 0 0 clamp(20px, 2.6vw, 44px); text-align: center; display: inline-block; width: 100%; }
.tile img { width: 100%; border-radius: 12px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.tile:hover img { transform: translateY(-6px) scale(1.015); box-shadow: 0 26px 40px -20px rgba(0, 0, 0, .45); }
.tile figcaption, .poster figcaption { font-size: 14px; margin-top: 12px; line-height: 1.2; }
.tile figcaption small, .poster figcaption small { display: block; font-size: 11px; color: var(--blue-meta); margin-top: 3px; }
.tile:hover figcaption { color: var(--ink); }
.tile--solo { max-width: 520px; margin: clamp(30px, 5vw, 70px) auto 0; display: block; }
@media (max-width: 560px) { .masonry { columns: 1; } }

.billboard { margin-top: clamp(40px, 8vw, 120px); border-radius: 16px; overflow: hidden; }
.billboard img { width: 100%; transition: transform 1.2s var(--ease); }
.billboard:hover img { transform: scale(1.04); }

/* ---------- SPX ---------- */
.posters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 48px) clamp(14px, 2vw, 40px); perspective: 900px; }
.poster { text-align: center; }
.poster__card {
  position: relative; border-radius: 10px; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5);
}
.poster__card img { border-radius: inherit; width: 100%; }
.poster__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .45), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; mix-blend-mode: soft-light; }
.poster:hover .poster__card { box-shadow: 0 28px 50px -18px var(--glow); transition: transform .1s, box-shadow .5s; }
.poster:hover .poster__card::after { opacity: 1; }
@media (max-width: 760px) { .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.wall { margin-top: clamp(60px, 10vw, 140px); overflow: hidden; height: clamp(280px, 52vw, 760px); position: relative; }
.wall__inner { position: absolute; inset: 0 -12% 0 -12%; will-change: transform; }
.wall__inner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- ivy ---------- */
.sign { border-radius: 16px; overflow: hidden; }
.sign img { width: 100%; animation: signSwing 7s ease-in-out infinite; transform-origin: 85% 50%; }
@keyframes signSwing { 50% { transform: rotate(-1.2deg) translateY(-6px); } }

/* ---------- Comic Verse ---------- */
.brochure { position: relative; }
.brochure img { width: 100%; transition: transform .8s var(--ease); }
.brochure:hover img { transform: scale(1.02) rotate(-.5deg); }
.burst {
  position: absolute; width: clamp(90px, 11vw, 170px); aspect-ratio: 1; pointer-events: none;
  filter: drop-shadow(6px 6px 0 #111);
  transform: scale(0) rotate(-20deg); transition: transform .7s var(--spring);
}
.burst > span {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-weight: 800; font-size: clamp(20px, 2.4vw, 38px); letter-spacing: -.04em; color: #111; background: var(--comic);
  clip-path: polygon(50% 0, 61% 18%, 82% 7%, 79% 30%, 100% 34%, 85% 50%, 100% 66%, 79% 70%, 82% 93%, 61% 82%, 50% 100%, 39% 82%, 18% 93%, 21% 70%, 0 66%, 15% 50%, 0 34%, 21% 30%, 18% 7%, 39% 18%);
}
.burst--wow { left: -2%; top: 2%; }
.burst--zap { right: 2%; bottom: 4%; transition-delay: .15s; }
.burst--zap > span { background: #fff; }
.brochure.is-in .burst--wow { transform: scale(1) rotate(-12deg); animation: wobble 3s 1s ease-in-out infinite; }
.brochure.is-in .burst--zap { transform: scale(.85) rotate(10deg); }
@keyframes wobble { 50% { transform: scale(1.08) rotate(-6deg); } }

/* ---------- Window (Kontakt, QL, Legal) ---------- */
.window {
  border-radius: 14px; background: #fff; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 30px 70px -20px rgba(0, 0, 0, .35);
}
.window__bar {
  position: relative; display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 14px;
  background: linear-gradient(#f6f6f6, #ececec); border-bottom: 1px solid rgba(0, 0, 0, .1); font-size: 14px; font-weight: 600; color: #4a4a4a;
}
.traffic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
.traffic i, .traffic button { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); display: block; }
.traffic > :nth-child(2) { background: #febc2e; } .traffic > :nth-child(3) { background: #28c840; }
.traffic button { position: relative; }
.traffic button::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; line-height: 1; color: rgba(0, 0, 0, .55); opacity: 0; }
.traffic:hover button::after { opacity: 1; }

.kontakt { background: var(--bg-soft); }
.kontakt__body { display: grid; grid-template-columns: minmax(240px, 34%) 1fr; }
.kontakt__side { padding: clamp(24px, 3vw, 44px); background: #f7f7f8; border-right: 1px solid var(--hair); }
.kontakt__lead { font-size: clamp(20px, 1.6vw, 28px); line-height: 1.3; margin: 0 0 28px; font-weight: 500; }
.kontakt__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; font-size: 16px; }
.kontakt__list span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.kontakt__list a { text-decoration: underline; text-underline-offset: 4px; word-break: break-all; }
.form { padding: clamp(14px, 2vw, 28px) clamp(20px, 3vw, 44px) clamp(24px, 3vw, 40px); display: grid; }
.field { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--hair); padding: 12px 0; }
.field > span { color: var(--muted); font-size: 15px; min-width: 64px; }
.field input, .field textarea { flex: 1; border: 0; outline: 0; font: inherit; font-size: 17px; background: transparent; color: var(--ink); min-width: 0; }
.field--area { border-bottom: 0; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field:focus-within { border-color: var(--spx); }
.field.is-invalid { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn:disabled { opacity: .6; cursor: wait; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.check input { margin-top: 4px; accent-color: #111; width: 16px; height: 16px; flex: none; }
.check.is-invalid { color: var(--red); }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.form__msg { margin: 0; font-size: 14px; color: var(--ink-2); }
.form__msg.is-error { color: var(--red); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: #111; color: #fff; font-weight: 600;
  transition: transform .3s var(--spring), background .3s; margin-left: auto;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); background: #000; }
.btn:hover svg { transform: translateX(4px); }
.btn.is-sent { background: #28c840; }
@media (max-width: 760px) {
  .ql__stage { padding: 16px; }
  .kontakt__body { grid-template-columns: 1fr; }
  .kontakt__side { border-right: 0; border-bottom: 1px solid var(--hair); }
}

/* ---------- Footer ---------- */
.footer { padding: 34px 0 10px; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 34px); z-index: 960; transform: translate(-50%, 20px);
  max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px; font-size: 15px;
  background: rgba(30, 30, 32, .88); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--spring);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .toast { top: calc(var(--menubar-h) + 12px); bottom: auto; transform: translate(-50%, -16px); width: max-content; text-align: center; }
  .toast.is-visible { transform: translate(-50%, 0); }
}

/* ---------- Quick Look ---------- */
.ql { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: calc(var(--menubar-h) + 12px) 16px 16px; }
.ql[hidden] { display: none; }
.ql__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 22, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .3s; }
.ql__win { position: relative; width: min(1300px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .6); animation: qlIn .45s var(--spring); }
.ql.is-closing .ql__win { animation: qlOut .25s ease-in forwards; }
.ql.is-closing .ql__backdrop { animation: fade .25s reverse forwards; }
.ql__count { position: absolute; right: 16px; font-weight: 500; color: var(--muted); font-size: 13px; }
.ql__stage { position: relative; display: grid; place-items: center; background: #f4f4f5; min-height: 200px; overflow: hidden; padding: clamp(16px, 3vw, 40px) clamp(70px, 6vw, 84px); }
.ql__stage img { max-width: 100%; max-height: calc(100svh - var(--menubar-h) - 100px - 2 * clamp(16px, 3vw, 40px)); object-fit: contain; border-radius: 8px; animation: fade .35s; }
.ql__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); font-size: 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
  transition: transform .25s var(--spring), background .2s;
}
.ql__nav:hover { transform: translateY(-50%) scale(1.1); background: #fff; }
.ql__nav--prev { left: 14px; } .ql__nav--next { right: 14px; }
@keyframes qlIn { from { opacity: 0; transform: scale(.85) translateY(30px); } }
@keyframes qlOut { to { opacity: 0; transform: scale(.92) translateY(20px); } }
@keyframes fade { from { opacity: 0; } }
body.is-locked { overflow: hidden; }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--menubar-h) + clamp(40px, 8vh, 100px)) 0 clamp(60px, 10vh, 120px); background: var(--bg-soft); min-height: 100svh; }
.legal .window { max-width: 900px; margin: 0 auto; }
.legal__body { padding: clamp(24px, 5vw, 64px); font-size: 17px; }
.legal__body h1 { font-size: clamp(36px, 4vw, 60px); letter-spacing: -.03em; margin-bottom: .7em; }
.legal__body h2 { font-size: 22px; margin: 2em 0 .6em; }
.legal__body h3 { font-size: 18px; margin: 1.5em 0 .4em; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body address { font-style: normal; }
.placeholder { background: #fff6b3; padding: 0 4px; border-radius: 4px; }
.notice { border-left: 4px solid var(--shards); background: #fffbe0; padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 15px; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; margin-top: 2em; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .tape__track { animation: none; }
}

/* ---------- Photoshop-Fenster (Desktop-Dateien) ---------- */
.psd-layer { position: fixed; inset: 0; z-index: 940; pointer-events: none; }
/* Ohne offenes Fenster gibt es die Ebene gar nicht: Safari (iOS 26) färbt sonst die Leiste um die
   Adresszeile nach diesem bildschirmfüllenden, transparenten Element – und das ergibt Schwarz. */
.psd-layer:empty { display: none; }
.psw {
  --ps-bg: #1e1e1e; --ps-panel: #2a2a2a; --ps-line: #3a3a3a; --ps-text: #d6d6d6; --ps-muted: #8d8d8d; --ps-blue: #2d8ceb;
  position: absolute; display: flex; flex-direction: column; min-width: 320px; overflow: hidden;
  border-radius: 12px; background: var(--ps-bg); color: var(--ps-text); font-size: 13px; pointer-events: auto;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 40px 90px -20px rgba(0, 0, 0, .65);
  transform-origin: 0 0; will-change: transform;
}
.psw.is-max { left: 8px !important; top: calc(var(--menubar-h) + 8px) !important; width: calc(100vw - 16px) !important; height: calc(100svh - var(--menubar-h) - var(--dock-h) - 34px) !important; }
.psw button { color: inherit; }
.psw__bar { position: relative; flex: none; height: 38px; display: flex; align-items: center; justify-content: center; background: #323232; border-bottom: 1px solid #111; cursor: grab; user-select: none; touch-action: none; }
.psw__bar:active { cursor: grabbing; }
.psw .traffic button { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; display: block; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .3); position: relative; }
.psw .traffic button:nth-child(2) { background: #febc2e; }
.psw .traffic button:nth-child(3) { background: #28c840; }
.psw .traffic button::after { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; line-height: 1; color: rgba(0, 0, 0, .6); opacity: 0; }
.psw .traffic button:nth-child(1)::after { content: "×"; }
.psw .traffic button:nth-child(2)::after { content: "–"; }
.psw .traffic button:nth-child(3)::after { content: "+"; }
.psw .traffic:hover button::after { opacity: 1; }
.psw__title { display: flex; align-items: center; gap: 8px; max-width: calc(100% - 160px); white-space: nowrap; overflow: hidden; font-weight: 500; }
.psw__title > span { overflow: hidden; text-overflow: ellipsis; }
.psw__title em { font-style: normal; color: var(--ps-muted); }
.psw__ps { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #001e36; color: #31a8ff; font-size: 10px; font-weight: 700; flex: none; }
.psw__options { flex: none; height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; background: var(--ps-panel); border-bottom: 1px solid #161616; color: var(--ps-muted); white-space: nowrap; overflow: hidden; }
.psw__options [data-info] { overflow: hidden; text-overflow: ellipsis; }
.psw__loading { display: inline-flex; align-items: center; gap: 8px; color: var(--ps-text); }
.psw__loading i { width: 90px; height: 4px; border-radius: 4px; background: #444; overflow: hidden; position: relative; }
.psw__loading i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--ps-blue); animation: psLoad .5s ease-out forwards; }
@keyframes psLoad { to { width: 100%; } }
.psw.is-loaded .psw__loading { display: none; }

.psw__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 44px 1fr 240px; }
.psw__tools { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; background: var(--ps-panel); border-right: 1px solid #161616; }
.psw__tools button { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; transition: background .15s; }
.psw__tools button:hover { background: #3a3a3a; }
.psw__tools button.is-active { background: #4a4a4a; color: #fff; }
.psw__tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.psw__swatch { position: relative; width: 28px; height: 28px; margin-top: auto; }
.psw__swatch i { position: absolute; width: 18px; height: 18px; border: 1px solid #888; border-radius: 3px; }
.psw__swatch i:first-child { left: 0; top: 0; background: #f5e625; z-index: 1; }
.psw__swatch i:last-child { right: 0; bottom: 0; background: #111; }

.psw__canvas {
  position: relative; overflow: hidden; display: grid; place-items: center; padding: 28px; min-width: 0; min-height: 0;
  background: #262626; cursor: default; touch-action: none;
}
.psw__canvas[data-mode="hand"].is-zoomed { cursor: grab; }
.psw__canvas.is-panning { cursor: grabbing !important; }
.psw__canvas[data-mode="zoom"] { cursor: zoom-in; }
.psw__doc {
  position: relative; max-width: 100%; max-height: 100%; display: grid; background: transparent;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .55)); transform-origin: center; transition: transform .25s var(--ease);
  opacity: 0;
}
.psw__canvas.is-panning .psw__doc { transition: none; }
.psw.is-loaded .psw__doc { animation: psReveal .6s var(--ease) forwards; }
@keyframes psReveal { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.psw__doc img { grid-area: 1 / 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: filter .5s var(--ease), opacity .4s; }
.psw__canvas .psw__doc img { max-height: var(--canvas-h, 60svh); max-width: var(--canvas-w, 100%); }
.psw__vignette { grid-area: 1 / 1; pointer-events: none; border-radius: 14px; background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .65) 100%); opacity: 0; transition: opacity .4s; }
.psw:not(.hide-vignette) .psw__vignette { opacity: 1; }
.psw.hide-grading .psw__doc img { filter: saturate(.35) contrast(.8) brightness(1.08) sepia(.08); }
.psw.hide-image .psw__doc img { opacity: 0; }
.psw.hide-bg .psw__doc, .psw.hide-image .psw__doc {
  background: repeating-conic-gradient(#cfcfcf 0 25%, #fff 0 50%) 0 0 / 16px 16px;
}

.psw__panel { overflow: auto; background: var(--ps-panel); border-left: 1px solid #161616; padding: 12px 14px 16px; }
.psw__panel h4 { margin: 4px 0 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ps-muted); }
.psw__panel h4:not(:first-child) { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--ps-line); }
.psw__panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 12.5px; }
.psw__panel dt { color: var(--ps-muted); }
.psw__panel dd { margin: 0; color: #eee; }
.psw__layers { list-style: none; margin: 0; padding: 0; border: 1px solid #161616; border-radius: 6px; overflow: hidden; }
.psw__layers li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; background: #2f2f2f; border-bottom: 1px solid #222; cursor: pointer; font-size: 12.5px; }
.psw__layers li:last-child { border-bottom: 0; }
.psw__layers li.is-selected { background: #3d4f66; }
.psw__layers li i { font-style: italic; }
.psw__eye { width: 20px; height: 20px; flex: none; border-radius: 4px; display: grid; place-items: center; }
.psw__eye::before { content: ""; width: 14px; height: 9px; border: 1.5px solid currentColor; border-radius: 50% / 60%; opacity: .25; transition: opacity .15s; }
.psw__eye[aria-pressed="true"]::before { opacity: 1; background: radial-gradient(circle, currentColor 0 2px, transparent 2.5px); }
.psw__eye:hover { background: #444; }
.psw__thumb { width: 30px; height: 22px; flex: none; border: 1px solid #555; background: #fff center / cover; }
.psw__thumb--vig { background: radial-gradient(ellipse, #fff 30%, #000 110%); }
.psw__thumb--adj { background: linear-gradient(135deg, #ff4d4d, #f5e625, #2d8ceb); }
.psw__thumb--bg { background: #fff; }
.psw__lock { width: 13px; height: 13px; margin-left: auto; fill: none; stroke: var(--ps-muted); stroke-width: 2; }
.psw__tip { margin: 12px 0 0; font-size: 12px; color: var(--ps-muted); line-height: 1.4; }

.psw__status { flex: none; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; background: var(--ps-panel); border-top: 1px solid #161616; color: var(--ps-muted); font-size: 12px; white-space: nowrap; }
.psw__status button { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 5px; background: #383838; color: #ddd; transition: background .15s; }
.psw__status button:hover { background: #4a4a4a; }
.psw__status [data-zl2] { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; color: #ddd; }
.psw__dims { margin-left: 6px; }
.psw__goto { margin-left: auto; padding: 5px 12px; border-radius: 999px; background: var(--ps-blue); color: #fff; text-decoration: none; font-weight: 600; transition: background .2s, transform .25s var(--spring); }
.psw__goto:hover { background: #1f7ad6; transform: translateX(3px); }

@media (max-width: 960px) { .psw__body { grid-template-columns: 44px 1fr 200px; } }
@media (max-width: 760px) {
  .psw { left: 6px !important; right: 6px; top: calc(var(--menubar-h) + 6px) !important; bottom: calc(var(--dock-h) + 14px); width: auto !important; height: auto !important; min-width: 0; }
  .psw .traffic button:nth-child(3) { display: none; }
  .psw__title em { display: none; }
  .psw__body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .psw__tools, .psw__panel dl, .psw__panel h4, .psw__tip, .psw__dims, .psw__options { display: none; }
  .psw__panel { border-left: 0; border-top: 1px solid #161616; padding: 8px; }
  .psw__layers { display: grid; grid-template-columns: 1fr 1fr; }
  .psw__layers li { font-size: 11.5px; padding: 6px; }
  .psw__thumb, .psw__lock { display: none; }
  .psw__canvas { padding: 14px; }
}
