/* =========================================================
   SEFER ISAKU – Grunge-Portfolio
   Layout: jede Portfolio-Seite ist eine skalierte 1683×1190-Bühne.
   Desktop: Seiten stapeln sich (sticky), die nächste Seite reißt
   mit ihrer Papierkante über die vorherige. Hochformat: Kamerafahrt
   quer über die Seite.
   ========================================================= */
:root {
  /* Farbe – abgeleitet aus dem Original (Tape-Schwarz, Papier, Neon) */
  --ink: #0d0b0e;          /* Grundschwarz, leicht violett */
  --ink-2: #19141a;
  --paper: #e9e4dc;        /* Papierfetzen */
  --paper-ink: #1d1a1c;
  --label: #1f2a3a;        /* Navy der Pin-Etiketten */
  --neon: #e0388f;         /* Magenta aus LOVE / Tote Bag */
  --vhs: #7ff5d4;          /* Türkis aus dem Cover-Wellenfeld */
  --acid: #d7f23a;         /* VINYL-PLATTE-Gelb */
  --muted: #b9b0b4;
  /* Typo */
  --f-wide: "Krona One", "Arial Black", sans-serif;
  --f-cond: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-hand: "Gochi Hand", "Comic Sans MS", cursive;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-vhs: "VT323", "Courier New", monospace;
  color-scheme: dark;
}
html { background: var(--ink); }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 90; background: var(--ink); }
*, *::before, *::after { box-sizing: border-box; }
img { display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px dashed var(--acid); outline-offset: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--acid); color: var(--ink); padding: 8px 12px; font-family: var(--f-vhs); font-size: 20px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Topbar: VHS-OSD ---------- */
.osd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  font-family: var(--f-vhs); font-size: 22px; letter-spacing: .04em; color: #fff;
  mix-blend-mode: difference; pointer-events: none;
}
.osd > * { pointer-events: auto; }
.osd__mark { font-family: var(--f-wide); font-size: 13px; letter-spacing: .14em; text-decoration: none; color: inherit; }
.osd__tc { display: flex; gap: 14px; align-items: baseline; white-space: nowrap; }
.osd__tc .rec { color: #fff; animation: blink 1.2s steps(2) infinite; }
.osd__chap { opacity: .8; }
.osd__btns { display: flex; gap: 8px; }
.osd__btn { font-family: var(--f-vhs); font-size: 20px; padding: 2px 10px; border: 1px solid currentColor; text-transform: uppercase; letter-spacing: .08em; }
.osd__btn[aria-pressed="true"] { background: #fff; color: #000; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 640px) { .osd__chap, .osd__tc .sp { display: none; } .osd { font-size: 18px; } .osd__btn { font-size: 16px; padding: 2px 6px; } }

/* ---------- Seiten ---------- */
main { position: relative; overflow-x: clip; }
.page { position: sticky; top: var(--stick, 0px); height: var(--ph, 70.7vw); }
.stage { position: relative; height: 100%; width: 100%; clip-path: inset(-600px 0 0 0); }
.scene {
  position: absolute; left: 0; top: 0; width: 1683px; height: 1190px;
  transform-origin: 0 0; will-change: transform;
}
.scene__inner { position: absolute; inset: 0; transform-origin: 50% 40%; }
.base { position: absolute; left: 0; top: 0; width: 1683px; height: 1190px; }
.lead { position: absolute; left: 0; width: 1683px; pointer-events: none; transform-origin: 0 100%; filter: drop-shadow(0 -6px 10px rgba(0,0,0,.45)); }
.shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.light {
  position: absolute; left: 0; top: 0; width: 900px; height: 900px; margin: -450px 0 0 -450px;
  background: radial-gradient(closest-side, rgba(255,240,220,.22), rgba(255,240,220,0) 70%);
  mix-blend-mode: soft-light; pointer-events: none; opacity: 0; transition: opacity .6s;
}
.page.is-hot .light { opacity: 1; }

/* Ebenen */
.el { position: absolute; }
.el .par, .el .tilt { position: relative; width: 100%; height: 100%; }
.el .tilt { transform-style: preserve-3d; }
.el img.art { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); }
.el img.glow { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(26px) saturate(1.8) brightness(1.3); opacity: 0; }
.el.work { cursor: none; }
.el.work:focus-visible { outline: none; }
.el.work:focus-visible img.art { outline: 3px dashed var(--acid); outline-offset: 8px; }
.el.label .tilt { transform-origin: 50% 10%; }
.el button.hit { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Hero */
.title-rgb { position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none; opacity: .85; }
.vhs-band {
  position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.08) 40%, rgba(127,245,212,.12) 50%, transparent);
  mix-blend-mode: screen; animation: band 7s linear infinite;
}
@keyframes band { from { transform: translateY(-120px); } to { transform: translateY(1250px); } }
.hint {
  position: absolute; left: 50%; bottom: 210px; transform: translateX(-50%);
  font-family: var(--f-vhs); font-size: 34px; color: #fff; letter-spacing: .1em; text-shadow: 0 0 12px rgba(127,245,212,.8);
  display: flex; gap: 18px; align-items: center; pointer-events: none;
}
.hint i { font-style: normal; animation: blink 1s steps(2) infinite; }

/* About-Text */
.about-copy {
  position: absolute; left: 775px; top: 500px; width: 735px;
  font-family: var(--f-body); font-weight: 500; font-size: 30.5px; line-height: 1.24; color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,.55), 0 0 18px rgba(255,190,190,.25);
}
.about-copy p { margin: 0 0 36px; }
.about-copy .w { display: inline-block; will-change: transform; }

/* Thanks-Neon */
.flicker { animation: flick 6s infinite; }
@keyframes flick { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20% { opacity: .55; } 63% { opacity: .7; } }

/* ---------- Werdegang & Kontakt (neu gestaltet) ---------- */
.cv {
  position: relative; z-index: 20; overflow-x: clip;
  background: var(--ink) url("../assets/img/tex_black.webp") center / cover;
  padding-block: clamp(80px, 10vw, 150px) 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.cv .lead-wrap { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; }
.cv .lead-wrap img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.cv__in { max-width: 1240px; margin: 0 auto; display: grid; gap: clamp(48px, 7vw, 96px); }
.cv__head { display: grid; gap: 18px; }
.eyebrow { font-family: var(--f-vhs); font-size: 24px; color: var(--vhs); letter-spacing: .08em; }
.cv h2 {
  margin: 0; font-family: var(--f-cond); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 13vw, 190px); line-height: .86; letter-spacing: .005em; text-wrap: balance;
}
.cv h2 .tape { display: inline-block; background: var(--paper); color: var(--paper-ink); padding: 0 .12em; transform: rotate(-2deg); box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.quote { max-width: 34ch; font-family: var(--f-hand); font-size: clamp(26px, 3vw, 38px); line-height: 1.2; color: var(--paper); margin: 0; }
.quote span { color: var(--neon); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.tl {
  position: relative; display: grid; grid-template-columns: minmax(130px, 210px) 1fr; gap: 6px 28px; align-items: start;
  padding: 26px 28px 28px; color: var(--paper-ink);
  background: var(--paper) url("../assets/img/tex_paper.webp") center / cover; background-blend-mode: multiply;
  clip-path: polygon(0 3%, 6% 0, 14% 2%, 27% 0, 41% 3%, 55% 0, 70% 2%, 84% 0, 100% 3%, 99% 52%, 100% 97%, 88% 100%, 73% 97%, 58% 100%, 43% 97%, 28% 100%, 12% 98%, 0 100%, 1% 48%);
  transform: rotate(var(--r, 0deg));
}
.tl:nth-child(odd) { --r: -.6deg; margin-right: 6%; }
.tl:nth-child(even) { --r: .7deg; margin-left: 6%; }
.tl__date { font-family: var(--f-vhs); font-size: 28px; line-height: 1; color: #6b1b45; font-variant-numeric: tabular-nums; }
.tl__what { min-width: 0; }
.tl h3 { margin: 0 0 6px; font-family: var(--f-cond); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.tl p { margin: 0; max-width: 62ch; font-size: 16px; line-height: 1.55; }
@media (max-width: 640px) { .tl { grid-template-columns: 1fr; padding: 22px 18px; } .tl:nth-child(n) { margin: 0; } }

.cv__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; }
.block h3 { margin: 0 0 18px; font-family: var(--f-wide); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.chip {
  font-family: var(--f-hand); font-size: 24px; line-height: 1; padding: 12px 16px 10px; color: #fff;
  background: var(--label);
  background-image: repeating-linear-gradient(180deg, transparent 0 22px, rgba(205,150,60,.55) 22px 23px);
  box-shadow: 0 8px 16px rgba(0,0,0,.45); transform: rotate(var(--r, -1.5deg)); transition: transform .3s;
}
.chip:nth-child(3n) { --r: 1.8deg; } .chip:nth-child(4n) { --r: -.6deg; }
.chip:hover { transform: rotate(0) scale(1.08); }
.chip small { font-family: var(--f-vhs); font-size: 18px; color: var(--acid); margin-left: 6px; }

/* Kontakt mit Schnittmarken + Kontrollstreifen */
.contact { position: relative; padding: 44px clamp(20px, 4vw, 56px); border: 1px solid rgba(233,228,220,.25); display: grid; gap: 22px; }
.contact::before, .contact::after { content: ""; position: absolute; width: 28px; height: 28px; border-color: var(--paper); border-style: solid; }
.contact::before { left: -14px; top: -14px; border-width: 1px 0 0 1px; }
.contact::after { right: -14px; bottom: -14px; border-width: 0 1px 1px 0; }
.contact__mail { font-family: var(--f-cond); font-size: clamp(34px, 7vw, 92px); line-height: 1; letter-spacing: .01em; word-break: break-all; user-select: all; color: #fff; text-decoration: none; position: relative; display: inline-block; }
.contact__mail:hover { color: var(--acid); text-shadow: -3px 0 var(--neon), 3px 0 var(--vhs); }
.contact__row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; font-size: 17px; color: var(--muted); }
.copy { font-family: var(--f-vhs); font-size: 22px; padding: 4px 14px; background: var(--acid); color: var(--ink); }
.cmyk { display: flex; height: 18px; max-width: 360px; }
.cmyk i { flex: 1; } .cmyk i:nth-child(1) { background: #00a0e3; } .cmyk i:nth-child(2) { background: #e5007e; } .cmyk i:nth-child(3) { background: #ffed00; } .cmyk i:nth-child(4) { background: #111; border: 1px solid #444; }
.cmyk i:nth-child(5) { background: #808080; } .cmyk i:nth-child(6) { background: #c0c0c0; }
.foot { margin-top: clamp(60px, 8vw, 110px); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: end; border-top: 1px solid rgba(233,228,220,.18); }
.barcode { display: grid; gap: 4px; justify-items: end; font-family: var(--f-vhs); font-size: 18px; color: var(--muted); }
.barcode canvas { width: 220px; height: 44px; background: #fff; }
.foot small { font-family: var(--f-vhs); font-size: 18px; color: var(--muted); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; border-radius: 50%; }
.cursor__ring { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; transform: scale(.32); }
.cursor__ring svg { width: 100%; height: 100%; animation: spin 9s linear infinite; }
.cursor__ring text { font-family: var(--f-vhs); font-size: 15px; letter-spacing: 3px; fill: #fff; opacity: 0; transition: opacity .25s; }
.cursor__ring circle { fill: none; stroke: #fff; stroke-width: 1.5; }
.cursor.is-work .cursor__ring text { opacity: 1; }
.cursor.is-work .cursor__ring circle { stroke-dasharray: 3 6; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } .el.work { cursor: pointer; } }

/* ---------- Grain + Vignette ---------- */
.grain { position: fixed; inset: -100%; z-index: 70; pointer-events: none; background: url("../assets/img/grain.png"); opacity: .09; mix-blend-mode: overlay; animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-7%,4%); } 40% { transform: translate(5%,-6%); } 60% { transform: translate(-3%,8%); } 80% { transform: translate(8%,2%); } 100% { transform: translate(-5%,-4%); } }

/* ---------- Overlays: Index + Lightbox ---------- */
.overlay { position: fixed; inset: 0; z-index: 120; display: grid; }
.overlay[hidden] { display: none !important; }
.overlay__bg { position: absolute; inset: 0; background: rgba(8,6,9,.86); }
.index { place-items: center; }
.index__panel {
  position: relative; width: min(1100px, 100%); max-height: 100%; overflow: auto;
  padding: calc(70px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.index__list { list-style: none; margin: 0; padding: 0; display: grid; }
.index__list button {
  width: 100%; display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: baseline; text-align: left;
  padding: 10px 0 8px; border-bottom: 1px solid rgba(233,228,220,.16);
}
.index__list .n { font-family: var(--f-vhs); font-size: 24px; color: var(--vhs); font-variant-numeric: tabular-nums; }
.index__list .t { font-family: var(--f-cond); font-size: clamp(34px, 6.4vw, 76px); line-height: 1; text-transform: uppercase; transition: transform .35s, color .35s; }
.index__list .k { font-family: var(--f-hand); font-size: 22px; color: var(--muted); }
.index__list button:hover .t, .index__list button:focus-visible .t { color: var(--acid); transform: translateX(18px) skewX(-6deg); }
.index__thumb { position: fixed; left: 0; top: 0; width: 300px; height: auto; pointer-events: none; z-index: 2; opacity: 0; transform: translate(-50%,-50%); box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.close { position: absolute; z-index: 3; top: calc(14px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); font-family: var(--f-vhs); font-size: 24px; padding: 4px 12px; background: var(--paper); color: var(--ink); }

.lb { place-items: center; padding: 16px; }
.lb__panel {
  position: relative; width: min(1180px, 100%); max-height: calc(100% - 20px); overflow: auto;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center;
  padding: clamp(24px, 4vw, 54px); color: var(--paper-ink);
  background: var(--paper) url("../assets/img/tex_paper.webp") center / cover; background-blend-mode: multiply;
  clip-path: polygon(0 2%, 8% 0, 19% 1.5%, 33% 0, 47% 2%, 61% 0, 76% 1.6%, 90% 0, 100% 2%, 99% 50%, 100% 98%, 85% 100%, 70% 98%, 55% 100%, 40% 98.4%, 24% 100%, 9% 98%, 0 100%, 1% 50%);
}
.lb__fig { margin: 0; display: grid; place-items: center; min-width: 0; }
.lb__fig img { max-width: 100%; max-height: 72vh; width: auto; height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.lb__meta { display: grid; gap: 14px; min-width: 0; }
.lb__tag { justify-self: start; font-family: var(--f-hand); font-size: 22px; color: #fff; background: var(--label); padding: 8px 14px 6px; transform: rotate(-2deg); }
.lb__meta h3 { margin: 0; font-family: var(--f-cond); font-weight: 400; font-size: clamp(38px, 5vw, 68px); line-height: .95; text-transform: uppercase; text-wrap: balance; }
.lb__meta p { margin: 0; font-size: 17px; line-height: 1.55; max-width: 48ch; }
.lb__nav { display: flex; gap: 10px; margin-top: 8px; }
.lb__nav button { font-family: var(--f-vhs); font-size: 22px; padding: 4px 12px; border: 1px solid var(--paper-ink); }
.lb .close { position: absolute; }
@media (max-width: 760px) { .lb__panel { grid-template-columns: 1fr; } .lb__fig img { max-height: 46vh; } }

/* ---------- Hochformat: Kamerafahrt ---------- */
.is-narrow .page { position: relative; top: 0; height: var(--ph); }
.is-narrow .stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.is-narrow .hint { bottom: 230px; font-size: 40px; }

/* ---------- Reduzierte Bewegung ---------- */
.reduced .grain, .reduced .vhs-band, .reduced .osd__tc .rec, .reduced .flicker, .reduced .cursor__ring svg { animation: none; }
.reduced.is-narrow .page { height: 100svh; }
.reduced.is-narrow .stage { overflow-x: auto; overflow-y: hidden; clip-path: none; }
