/* Fonts (selbst gehostet, vorher @fontsource) */
@font-face {
  font-family: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(../fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Mehmet Aslan — global styles (Entwurf E "Poster") */
:root {
  --paper: #ffffff;
  --ink: #ff2e55;
  --red: #ff2e55;
  --dark: #111111;
  --wine: #5a2a2e;
  --grey: #c9c9c9;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --display: 'Archivo Variable', 'Archivo', Arial, sans-serif;
  --text: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --fs-label: clamp(11px, 0.84vw, 13px);
  --fs-body: clamp(15px, 1.18vw, 19px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.6; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.label { font-family: var(--mono); font-size: var(--fs-label); line-height: 1.3; text-transform: uppercase; letter-spacing: 0.02em; }
.display { font-family: var(--display); font-stretch: 125%; font-weight: 700; text-transform: uppercase; }
.body { font-size: var(--fs-body); line-height: 1.3; }

/* 4-column grid: every edge lines up across the page */
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: 1 / -1; }
.cell { padding-left: 10px; padding-right: 10px; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .s3 { grid-column: span 2; } }
@media (max-width: 640px) {
  .g4 { grid-template-columns: minmax(0, 1fr); }
  .g4.keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s2, .s3 { grid-column: 1 / -1; }
}

/* Symbols are SVG masks, so they take any colour (background: currentColor) */
.sym { display: block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.sym-inline { display: inline-block; height: 0.78em; vertical-align: -0.04em; }

/* Header */
html { scroll-padding-top: var(--hh, 0px); }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
/* Über dem Hero: dunkel statt hell; der Hero reicht bis unter den Header */
.site-header { transition: background-color .3s; }
.site-header.is-over-hero { background: rgba(17, 17, 17, .25); }
.hero { margin-top: calc(-1 * var(--hh, 31px)); padding-top: calc(6px + var(--hh, 31px)); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: var(--paper); } }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; min-height: 30px; color: var(--red); }
.nav a { padding: 8px 0; }
/* Home-Symbol: dreht sich in 3D um die senkrechte Achse */
.nav .nav__home { display: inline-flex; align-items: center; padding: 4px 0; perspective: 120px; }
.nav__sym { height: 20px; animation: ma-spin3d 6s linear infinite; }

/* Player */
.player { min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 30px; padding-left: 0; border-bottom: 1px solid var(--ink); }
.site-header { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.player__marquee { position: relative; flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; overflow: hidden; white-space: nowrap; cursor: pointer; }
.player__bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: rgba(255, 46, 85, .16); pointer-events: none; transition: width .25s linear; }
.player__marquee .marquee-track { position: relative; }
.player__marquee:focus-visible { outline: 1px solid var(--ink); outline-offset: -1px; }
.player__time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.player__btn { width: 44px; height: 30px; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); flex: none; }
.player__btn .i-pause { display: none; }
.player .player__next { margin-left: -12px; background: transparent; color: var(--ink); border-left: 1px solid var(--ink); }
.player .player__next:hover { background: var(--ink); color: var(--paper); }
.player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }
.player iframe { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; left: 0; top: 0; }
@media (max-width: 640px) {
  /* Zwei Zeilen wie bei Postnatural: oben Nav, darunter der Player über die volle Breite */
  .site-header { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 0 14px; flex-wrap: nowrap; }
  /* Mobil: Menü und Player immer dunkel */
  .site-header, .site-header.is-over-hero { background: rgba(17, 17, 17, .88); }
  .player { gap: 10px; border-top: 1px solid rgba(255, 46, 85, .35); }
  .player__btn { width: 36px; }
  .player .player__next { margin-left: -10px; color: var(--red); border-left-color: rgba(255, 46, 85, .35); }
}

/* Marquee */
.marquee-track { display: flex; width: max-content; animation: ma-marquee 38s linear infinite; }
.marquee-fast .marquee-track { animation-duration: 22s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > span { padding-right: 3em; }

/* Hero */
.hero { padding: 6px 10px 10px; min-height: min(92vh, 980px); display: flex; flex-direction: column; }
.hero__sym { flex: 1; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 64px) 0; }
.hero__meta { margin: 0 -10px; row-gap: 6px; }
.hero__sym { position: relative; }
.hero--map { background: var(--grey); }
.hero__map { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.hero__quake { position: absolute; left: 0; bottom: 10px; z-index: 1; margin: 0; max-width: min(64ch, 70%); color: var(--red); pointer-events: none; }
.hero__src { opacity: .55; }
.hero--brush { position: relative; background: var(--dark); cursor: crosshair; }
.hero--brush > :not(.hero__brush) { position: relative; z-index: 1; }
.hero__brush { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.hero--brush .hero__mark { color: var(--paper); pointer-events: none; } /* Klicks gehen an den Hintergrund (Glitch) */
.hero--brush .hero__mark::after { background: var(--red); }
.hero--brush .hero__meta { color: var(--paper); }
.hero__mark { position: relative; width: min(100%, 1400px); height: min(66.6vw, 62vh, 667px); color: var(--red); }
.hero__mark::before, .hero__mark::after { content: ''; position: absolute; inset: 0; background: var(--dark); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; opacity: 0; }
.hero__mark::after { background: var(--paper); }
.hero__mark.is-glitch { animation: ma-glitch .42s steps(1) both; }
.hero__mark.is-glitch::before { opacity: 1; animation: ma-glitch-a .42s steps(1) both; }
.hero__mark.is-glitch::after { opacity: 1; animation: ma-glitch-b .42s steps(1) both; }
@media (max-width: 640px) { .hero { min-height: calc(100vh - var(--tk, 32px)); min-height: calc(100svh - var(--tk, 32px)); } .hero__sym { padding: 28px 0 32px; } .hero__mark { height: 72vw; } }

/* Ticker */
.ticker { overflow: hidden; background: var(--ink); color: var(--paper); padding: 8px 0; font-size: clamp(16px, 1.8vw, 30px); line-height: 1; white-space: nowrap; }
.ticker .marquee-track > span { display: inline-flex; align-items: center; gap: 0.6em; padding-right: 0.6em; }

/* Work */
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 8px 10px; }
.chips { display: flex; flex-wrap: wrap; }
.chip { min-height: 30px; padding: 0 12px; margin-left: -1px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .25s, color .25s; }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.work-grid { grid-auto-rows: 1fr; }
@media (min-width: 1101px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Kacheln erscheinen nacheinander: links, Mitte, rechts (Verzögerung --d setzt das JS) */
.work-grid.is-stagger .card { opacity: 0; transform: translateY(48px); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.work-grid.is-stagger .card.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .work-grid.is-stagger .card { opacity: 1; transform: none; } }
.work-head .chips + .chips { margin-left: auto; }
#work[data-view='list'] .work-grid { display: none; }
.work-list { list-style: none; margin: 0; padding: 0 10px; border-bottom: 1px solid var(--ink); }
.work-list[hidden], .work-list li[hidden] { display: none; }
.wrow { position: relative; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 0 12px; padding: 4px 10px 2px; margin: 0 -10px; border-top: 1px solid var(--ink); color: var(--ink); transition: color .25s; }
.wrow::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.wrow > * { position: relative; }
.wrow:hover, .wrow:focus-visible { color: var(--paper); opacity: 1; }
.wrow:hover::before, .wrow:focus-visible::before { transform: scaleY(1); }
.wrow__title { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.wrow:hover .wrow__title, .wrow:focus-visible .wrow__title { transform: translateX(clamp(8px, 1.2vw, 24px)); }
.wrow__n { align-self: start; padding-top: 6px; }
.wrow__title { margin: 0; font-size: clamp(36px, 5.6vw, 104px); line-height: .88; overflow-wrap: anywhere; }
.wrow__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.wrow__tags span { padding: 3px 6px 2px; background: var(--ink); color: var(--paper); white-space: nowrap; }
.wrow__tags span { transition: background-color .25s, color .25s; }
.wrow:hover .wrow__tags span, .wrow:focus-visible .wrow__tags span { background: var(--paper); color: var(--ink); }
/* Cover-Vorschau folgt der Maus (nur Geräte mit Maus) */
.wpreview { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(180px, 20vw, 340px); height: auto; object-fit: cover; pointer-events: none; opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(.9); transition: opacity .2s; display: none; }
@media (hover: hover) and (pointer: fine) { .wpreview { display: block; } }
.wpreview.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(1); }
@media (max-width: 640px) { .wrow { grid-template-columns: 30px 1fr; } .wrow__tags { grid-column: 2; justify-content: flex-start; padding: 6px 0 8px; } .wrow__title { font-size: 9vw; } }
.card { position: relative; display: flex; flex-direction: column; min-height: clamp(420px, 44vw, 720px); background: var(--panel); color: var(--fg, var(--red)); }
.card:hover { opacity: 1; }
.card[hidden] { display: none; }
.card__title { position: relative; z-index: 2; padding: 6px 10px 0; font-size: clamp(22px, 2.2vw, 40px); overflow-wrap: anywhere; line-height: 0.92; transition: color .22s; }
.card__frame { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0; min-height: 0; overflow: hidden; }
.card__frame img { width: 78%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
/* Quadratische Box: hohe Symbole (z. B. Nr. 7) werden per mask contain eingepasst statt die Karte zu strecken */
.card__frame .sym { width: 58%; aspect-ratio: 1 !important; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card__meta { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 12px; padding: 0 10px 10px; transition: color .22s; }
.card__ov { position: absolute; inset: 0; z-index: 1; background: var(--red); opacity: 0; transition: opacity .22s; pointer-events: none; }
.card:hover .card__ov, .card:focus-visible .card__ov { opacity: 1; }
.card:hover .card__title, .card:hover .card__meta, .card:focus-visible .card__title, .card:focus-visible .card__meta { color: #111; }
.card:hover img { transform: scale(1.06); }
.card:hover .card__frame .sym { transform: rotate(180deg) scale(1.12); }
/* Vollflächige Karte: Bild füllt die Karte, Titel und Meta liegen darüber */
.card--full .card__frame { position: absolute; inset: 0; z-index: 0; padding: 0; }
.card--full .card__frame img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.card--full .card__meta { margin-top: auto; padding-top: 10px; }
.card--full .card__meta, .card--full .card__title { text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.card--full:hover .card__meta, .card--full:hover .card__title, .card--full:focus-visible .card__meta, .card--full:focus-visible .card__title { text-shadow: none; }
/* Große Kachel: volle Breite, Bild füllt alles, Titel groß darüber */
.card--feature { grid-column: 1 / -1; min-height: min(92vh, 62vw); --fg: var(--paper); background: var(--dark); }
.card--feature .card__frame { position: absolute; inset: 0; z-index: 0; padding: 0; }
.card--feature .card__frame img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.card--feature .card__title { font-size: clamp(44px, 9vw, 180px); line-height: .86; padding: 4px 10px 0; max-width: 14ch; text-shadow: 0 1px 12px rgba(0, 0, 0, .2); }
.card--feature .card__meta { margin-top: auto; padding-top: 10px; }
.card--feature .card__meta--top { margin-top: 0; padding: 8px 10px 0; }
.card--feature:hover img { transform: scale(1.03); }
.card--feature:hover .card__ov { opacity: .88; }
@media (max-width: 640px) { .card--feature { min-height: 120vw; } }
@media (max-width: 640px) { .card { min-height: 360px; } .card--full { min-height: 125vw; } }

/* Sections */
.section-rule { border-top: 1px solid var(--ink); }
.dates { padding: 8px 10px 40px; }
.dates__row--link { position: relative; margin: 0 -10px; padding: 4px 10px 2px; color: var(--ink); transition: color .25s; }
.dates__row--link::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.dates__row--link > * { position: relative; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.dates__row--link:hover, .dates__row--link:focus-visible { color: var(--paper); opacity: 1; }
.dates__row--link:hover::before, .dates__row--link:focus-visible::before { transform: scaleY(1); }
.dates__row--link:hover > :nth-child(2), .dates__row--link:focus-visible > :nth-child(2) { transform: translateX(clamp(8px, 1.2vw, 24px)); }
.dates__arrow { display: inline-block; font-stretch: 100%; }
.dates__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px clamp(12px, 1.4vw, 24px); font-size: clamp(20px, 3.4vw, 60px); line-height: 0.95; }
/* Symbol-Archiv: Haarlinien-Raster mit Passkreuzen (Huxley-Feinheit) in der Palette der Seite */
.symlab { --hair: rgba(255, 46, 85, .22); --tick: var(--red); margin-top: clamp(64px, 8vw, 140px); background: #f1f1f1; color: var(--red); padding-bottom: clamp(40px, 5vw, 88px); border-top: 1px solid var(--ink); }
.symlab__meta { align-items: baseline; row-gap: 8px; padding: 10px 0 clamp(28px, 3.4vw, 56px); border-bottom: 1px solid var(--hair); }
.symlab__title { margin: 0; padding-top: clamp(28px, 3.4vw, 56px); padding-bottom: clamp(28px, 3.4vw, 56px); font-size: clamp(36px, 5.6vw, 104px); line-height: .88; }
.symlab__grid { position: relative; margin: 0 10px; border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.symlab__cell { position: relative; margin: 0; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.symlab__cell > * { position: relative; }
.symlab__cell::before, .symlab__cell::after { content: ''; position: absolute; z-index: 1; width: 9px; height: 9px; pointer-events: none;
  background: linear-gradient(var(--tick), var(--tick)) center / 9px 1px no-repeat, linear-gradient(var(--tick), var(--tick)) center / 1px 9px no-repeat; }
.symlab__cell::before { left: -5px; top: -5px; }
.symlab__cell::after { right: -5px; bottom: -5px; }
.symlab__fill { position: absolute !important; inset: 0; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.symlab__sym { color: var(--red); transition: color .25s, transform .7s cubic-bezier(.2,.7,.2,1); }
.symlab__n, .symlab__dim { position: absolute !important; color: rgba(255, 46, 85, .6); transition: color .25s; }
.symlab__n { left: 12px; top: 10px; }
.symlab__dim { right: 12px; bottom: 10px; font-variant-numeric: tabular-nums; }
.symlab__cell:hover .symlab__fill { transform: scaleY(1); }
.symlab__cell:hover .symlab__sym { color: var(--paper); transform: scale(1.04); }
.symlab__cell:hover .symlab__n, .symlab__cell:hover .symlab__dim { color: var(--paper); }
.symlab .reveal { animation-range: entry 0% entry 40%; }
.for p { font-weight: 500; font-size: clamp(22px, 2.6vw, 46px); line-height: 1.2; letter-spacing: -0.015em; }
.about-lead { font-size: clamp(20px, 2.4vw, 40px); line-height: 1.02; }
.footer__social { display: flex; flex-wrap: wrap; gap: 0 14px; }
.footer { padding: 8px 0 10px; background: var(--ink); color: var(--paper); }
.footer__line { margin: clamp(32px, 5vw, 88px) 0; max-width: 1100px; font-weight: 500; font-size: clamp(24px, 3vw, 54px); line-height: 1.12; letter-spacing: -0.015em; }

/* Work detail page (opens like an overlay) */
.detail { min-height: 100vh; background: var(--panel, #111); color: var(--red); }
/* not sticky: the site header already sticks */
.detail__bar { align-items: center; min-height: 30px; background: var(--panel, #111); border-bottom: 1px solid currentColor; }
.detail__title { font-size: clamp(36px, 5.6vw, 104px); line-height: 0.88; }
.detail dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4px 10px; }
.detail dt { opacity: 0.7; }
.detail__tracks { list-style: none; padding: 0; border-top: 1px solid currentColor; }
.detail__tracks li { display: flex; gap: 16px; padding: 4px 0; border-bottom: 1px solid currentColor; }
.detail__links { display: flex; flex-wrap: wrap; gap: 8px; }
.detail__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid currentColor; }
.prose p + p { margin-top: 0.9em; }

/* Detailseite vollflächig (Schalter fullbleed): Bild füllt am Desktop die rechte Hälfte randlos,
   volle Höhe unter dem Header, bleibt beim Scrollen stehen; Bild wird dafür beschnitten */
@media (min-width: 1101px) {
  .detail--full .detail__bar { position: sticky; top: 33px; z-index: 5; }
  .detail--full .detail__media { align-self: start; position: sticky; top: 63px; height: calc(100vh - 63px); margin-top: -8px; padding: 0; }
  .detail--full .detail__media > img,
  .detail--full .gallery, .detail--full .gallery__stage, .detail--full .gallery__slide { height: 100%; }
  .detail--full .detail__media img { width: 100%; height: 100% !important; object-fit: cover; }
  .detail--full .gallery { position: relative; }
  .detail--full .gallery__bar { position: absolute; right: 10px; bottom: 8px; z-index: 3; padding: 0; pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
}

/* Galerie (Detailseite): Klick links/rechts blättert; mobil Dots */
.gallery__stage { position: relative; display: grid; }
.gallery__slide { grid-area: 1 / 1; margin: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.gallery__slide.is-active { opacity: 1; visibility: visible; transition: opacity .3s; }
.gallery__slide img { width: 100%; height: auto; }
.gallery__nav { position: absolute; top: 0; bottom: 0; z-index: 2; width: 50%; padding: 0; border: 0; background: transparent; }
.gallery__nav--prev { left: 0; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M20 6 10 16l10 10' fill='none' stroke='%23ff2e55' stroke-width='3'/%3E%3C/svg%3E") 16 16, w-resize; }
.gallery__nav--next { right: 0; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M12 6l10 10-10 10' fill='none' stroke='%23ff2e55' stroke-width='3'/%3E%3C/svg%3E") 16 16, e-resize; }
.gallery__nav:focus-visible { outline-offset: -4px; }
/* Eigener Pfeil-Cursor (Maus): System-Cursor aus, damit nichts durchflackert */
.gallery__cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .gallery.is-ready .gallery__stage, .gallery.is-ready .gallery__nav { cursor: none; }
  .gallery.is-ready .gallery__cursor { display: block; position: absolute; left: 0; top: 0; z-index: 3; width: 32px; height: 32px; margin: -16px 0 0 -16px; pointer-events: none; opacity: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M12 6l10 10-10 10' fill='none' stroke='%23ff2e55' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat; will-change: transform; }
  .gallery.is-ready .gallery__stage.is-hover .gallery__cursor { opacity: 1; }
  .gallery.is-ready .gallery__stage.is-left .gallery__cursor { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M20 6 10 16l10 10' fill='none' stroke='%23ff2e55' stroke-width='3'/%3E%3C/svg%3E"); }
}
.gallery__bar { display: flex; justify-content: flex-end; padding-top: 8px; }
.gallery__count { font-variant-numeric: tabular-nums; }
.gallery__dots { display: none; }
.gallery__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.gallery__dot::after { content: ''; position: absolute; inset: 7px; border: 1px solid currentColor; border-radius: 50%; }
.gallery__dot[aria-current='true']::after { background: currentColor; }
@media (hover: none), (pointer: coarse) {
  .gallery__bar { justify-content: center; }
  .gallery__count { display: none; }
  .gallery__dots { display: flex; gap: 2px; }
}

/* Seitenwechsel (swup) */
.transition-fade { transition: opacity .2s ease; }
html.is-animating .transition-fade { opacity: 0; }

/* Motion */
@keyframes ma-marquee { to { transform: translateX(-50%); } }
@keyframes ma-spin { to { transform: rotate(360deg); } }
@keyframes ma-spin3d { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes ma-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes ma-wobble { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes ma-breathe { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.82); } }
@keyframes ma-glitch {
  0% { clip-path: inset(0 0 62% 0); transform: translateX(-3%); }
  15% { clip-path: inset(40% 0 20% 0); transform: translateX(4%); }
  30% { clip-path: inset(0); transform: translateX(-1%) scaleY(1.04); }
  45% { clip-path: inset(70% 0 0 0); transform: translateX(2%); }
  60% { clip-path: inset(10% 0 55% 0); transform: none; }
  75% { clip-path: inset(0); transform: translateX(-1.5%); }
  100% { clip-path: none; transform: none; }
}
@keyframes ma-glitch-a {
  0% { clip-path: inset(20% 0 60% 0); transform: translateX(5%); }
  25% { clip-path: inset(65% 0 10% 0); transform: translateX(-6%); }
  50% { clip-path: inset(5% 0 85% 0); transform: translateX(3%); }
  75% { clip-path: inset(45% 0 40% 0); transform: translateX(-2%); }
  100% { opacity: 0; }
}
@keyframes ma-glitch-b {
  0% { clip-path: inset(55% 0 30% 0); transform: translateX(-4%); }
  33% { clip-path: inset(12% 0 70% 0); transform: translateX(6%); }
  66% { clip-path: inset(80% 0 5% 0); transform: translateX(-3%); }
  100% { opacity: 0; }
}
@keyframes ma-blink { 50% { opacity: 0; } }
@keyframes ma-rise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
.spin { animation: ma-spin 40s linear infinite; }
.m-pulse { animation: ma-pulse 5s ease-in-out infinite; }
.m-wobble { animation: ma-wobble 7s ease-in-out infinite; }
.m-breathe { animation: ma-breathe 4s ease-in-out infinite; }
.m-blink { animation: ma-blink 1.2s steps(1) infinite; }
@supports (animation-timeline: view()) {
  .reveal { animation: ma-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Impressum / Datenschutz: Label links, Nummer bei 2/3, Inhalt im letzten Drittel (unter dem Player) */
.legal { padding: 8px 0 clamp(64px, 8vw, 140px); }
.legal__group { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 10px; padding: 0 10px; margin-bottom: clamp(56px, 7vw, 120px); }
.legal__label { grid-column: 1 / 3; grid-row: 1 / span 40; align-self: start; margin: 0; padding-top: 2px; }
.legal__intro { grid-column: 5 / 7; margin-bottom: clamp(28px, 3.5vw, 56px); }
.legal__item { grid-column: 3 / 7; }
.legal__item summary { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; align-items: center; padding: 10px 0; cursor: pointer; list-style: none; }
.legal__item summary::-webkit-details-marker { display: none; }
.legal__item summary:hover .legal__h { text-decoration: underline; text-underline-offset: 3px; }
.legal__x { position: absolute; right: 0; top: 50%; margin-top: -6px; width: 12px; height: 12px; transition: transform .25s; }
.legal__x::before, .legal__x::after { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: currentColor; }
.legal__x::after { transform: rotate(90deg); }
.legal__item[open] .legal__x { transform: rotate(45deg); }
.legal__body { margin-left: calc(50% + 5px); padding: 4px 0 clamp(24px, 3vw, 44px); }
.legal__body strong { font-weight: 700; }
.legal__h { padding-right: 24px; }
@media (max-width: 800px) {
  .legal__group { grid-template-columns: minmax(0, 1fr); }
  .legal__label, .legal__intro, .legal__item { grid-column: 1; grid-row: auto; }
  .legal__label { margin-bottom: 16px; }
  .legal__item summary { grid-template-columns: 40px 1fr; }
  .legal__body { margin-left: 50px; }
}
.legal .prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Fotos: Raster in 6 Spalten mit Dateinamen, Hilfslinien im Hintergrund, ASCII-Fragmente aus den Fotos */
.photos { position: relative; padding: 0 0 clamp(48px, 6vw, 96px); overflow: hidden; }
.photos::before { content: ''; position: absolute; inset: 0 10px; pointer-events: none;
  background: linear-gradient(to right, rgba(255, 46, 85, .18) 1px, transparent 1px) 0 0 / 25% 100% repeat-x; }
.photos__meta { position: relative; align-items: baseline; padding: 8px 0 clamp(24px, 3vw, 48px); }
.photos__grid { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 64px) 10px; align-items: start; padding: 0 10px; }
.photos__item { position: relative; z-index: 1; margin: 0; }
.photos__item a { display: block; cursor: zoom-in; }
.photos__item img { display: block; width: 100%; height: auto; background: #eee; transition: filter .3s; }
.photos__item a:hover img { filter: contrast(1.08) saturate(1.15); }
.photos__cap { margin-top: 6px; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .01em; color: var(--red); }
.photos__ascii { position: absolute; z-index: 0; margin: 0; font: 7px/1 var(--mono); letter-spacing: .5px; color: rgba(255, 46, 85, .55); white-space: pre; pointer-events: none; user-select: none; }
@media (max-width: 1100px) { .photos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .photos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .photos__ascii { display: none; } }

.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .97); }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: calc(100vw - 40px); }
.lightbox__fig img { display: block; max-width: calc(100vw - 40px); max-height: calc(100vh - 90px); width: auto; height: auto; }
.lightbox__fig figcaption { color: var(--red); text-transform: none; }
.lightbox__close { position: absolute; z-index: 2; top: 10px; right: 10px; border: 0; background: none; color: var(--red); cursor: pointer; padding: 6px 0; }
.lightbox__nav { position: absolute; z-index: 1; top: 0; bottom: 0; width: 50%; border: 0; background: none; padding: 0; }
.lightbox__nav--prev { left: 0; cursor: w-resize; }
.lightbox__nav--next { right: 0; cursor: e-resize; }
.lightbox__fig { position: relative; z-index: 0; }
html.lb-open { overflow: hidden; }
/* Eigener Cursor im Stil der Seite: „+“ über den Fotos, Pfeile in der Großansicht (wie bei den Works) */
.pcursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .photos.is-cursor .photos__item a, .photos.is-cursor .lightbox__nav { cursor: none; }
  .photos.is-cursor .pcursor { display: block; position: fixed; left: 0; top: 0; z-index: 101; width: 32px; height: 32px; margin: -16px 0 0 -16px; pointer-events: none; opacity: 0; will-change: transform;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 5v22M5 16h22' fill='none' stroke='%23ff2e55' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
  .photos.is-cursor .pcursor.is-on { opacity: 1; }
  .photos.is-cursor .pcursor.is-prev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M20 6 10 16l10 10' fill='none' stroke='%23ff2e55' stroke-width='3'/%3E%3C/svg%3E"); }
  .photos.is-cursor .pcursor.is-next { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M12 6l10 10-10 10' fill='none' stroke='%23ff2e55' stroke-width='3'/%3E%3C/svg%3E"); }
}

/* Links-Seite (/links, Instagram-Bio): Kopf mit Kontakt/Social, darunter Zeilen wie die Work-Liste */
.links { padding: 8px 10px clamp(64px, 8vw, 140px); }
.links__head { display: grid; gap: 10px; padding-bottom: clamp(20px, 3vw, 40px); }
.links__meta { display: flex; justify-content: space-between; }
.links__name { margin: clamp(16px, 3vw, 48px) 0 0; font-size: clamp(44px, 9vw, 168px); line-height: .86; color: var(--ink); }
.links__sub { margin: 0; }
.links__social { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.links__social a { display: inline-block; padding: 7px 10px 6px; border: 1px solid var(--ink); color: var(--ink); transition: background-color .2s, color .2s; }
.links__social a:hover, .links__social a:focus-visible { background: var(--ink); color: var(--paper); }
.links__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink); }
.lrow { position: relative; display: grid; grid-template-columns: 28px 64px minmax(0, 1fr) auto; align-items: center; gap: 0 14px; padding: 8px 10px; margin: 0 -10px; border-top: 1px solid var(--ink); color: var(--ink); transition: color .25s; }
.lrow::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.lrow > * { position: relative; }
.lrow:hover, .lrow:focus-visible { color: var(--paper); opacity: 1; }
.lrow:hover::before, .lrow:focus-visible::before { transform: scaleY(1); }
.lrow__img { width: 64px; height: 64px; background: var(--dark); overflow: hidden; }
.lrow__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lrow__title { font-size: clamp(20px, 2.6vw, 44px); line-height: .95; overflow-wrap: anywhere; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.lrow:hover .lrow__title, .lrow:focus-visible .lrow__title { transform: translateX(clamp(6px, 1vw, 18px)); }
.lrow__host { white-space: nowrap; }
@media (max-width: 640px) {
  .lrow { grid-template-columns: 56px minmax(0, 1fr); gap: 0 12px; }
  .lrow__n { display: none; }
  .lrow__img { width: 56px; height: 56px; grid-row: span 2; }
  .lrow__title { font-size: 19px; align-self: end; }
  .lrow__host { align-self: start; padding-top: 4px; opacity: .75; }
}
