/* ============ Elias Hess – Portfolio ============ */

:root {
  --pad-x: clamp(18px, 3.4vw, 64px);
  --bg: #ffffff;
  --muted: #8a8a8a;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Schriften kommen aus dem Admin (Schriften) – das hier sind nur Ersatzwerte */
  --head: "Arial Black", Arial, sans-serif; --head-s: 1;
  --light: "Helvetica Neue", Helvetica, Arial, sans-serif; --light-s: 1;
  --hero: "Helvetica Neue", Helvetica, Arial, sans-serif; --hero-s: 1;
  --body: Arial, sans-serif; --body-s: 1;
  --bold: Arial, sans-serif; --bold-s: 1;
  --mono: "SF Mono", Menlo, monospace; --mono-s: 1;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: auto; overflow-x: clip; }
html { background: var(--bg); color: #0c0c0c; }
body { background: transparent; color: #0c0c0c; }
body { font-family: var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Überschriften: Kunde fett + Titel leicht */
.t-client { font-family: var(--head); font-weight: 900; }
.t-title { font-family: var(--light); font-weight: 300; }

/* ---------- Header (invertiert sich automatisch über Video/Weiß) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 72px; padding: env(safe-area-inset-top) var(--pad-x) 0;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--head); color: #fff; mix-blend-mode: difference;
  pointer-events: none;
}
body:not(.page-home) .site-header { position: absolute; }
.site-header a { pointer-events: auto; font-size: calc(20px * var(--head-s)); font-weight: 900; line-height: 1; }
.site-header .nav { display: flex; gap: 28px; }
.site-header .nav a { position: relative; }
.site-header .nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-header .nav a:hover::after, .site-header .nav a.is-active::after { transform: scaleX(1); }

/* ============ Startseite: Hero ============ */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; color: #fff; background: #000; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero-vimeo { position: absolute; inset: 0; overflow: hidden; background: #000; }
.hero-vimeo .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
/* Vimeo-Player wie object-fit: cover – immer bildschirmfüllend, ohne Ränder */
.hero-vimeo iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none; max-width: none;
  width: max(100vw, 177.78vh); height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .6s ease;
}
.hero-vimeo.is-vertical iframe { width: max(100vw, 56.25vh); height: max(100vh, 177.78vw); }
.hero-vimeo.is-playing iframe { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0, rgba(0,0,0,0) 18%), linear-gradient(to top, rgba(0,0,0,.42) 0, rgba(0,0,0,0) 42%);
}
.hero-text { position: absolute; left: 0; right: 0; bottom: calc(150px + env(safe-area-inset-bottom)); padding: 0 40px; }
.marquee { width: 100%; overflow: hidden; white-space: nowrap; display: flex; }
.marquee-inner { display: flex; width: max-content; animation: marquee 30s linear infinite; will-change: transform; }
.hero-name {
  font-family: var(--hero); font-weight: 700; font-size: calc(8vw * var(--hero-s));
  line-height: .9; letter-spacing: -1px; text-transform: uppercase; display: inline-block; padding-right: 40px;
}
.hero-roles { font-family: var(--hero); font-size: calc(1rem * var(--hero-s)); letter-spacing: .15em; text-transform: uppercase; margin-top: 8px; opacity: .92; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logos { position: absolute; left: 0; right: 0; bottom: calc(40px + env(safe-area-inset-bottom)); overflow: hidden; display: flex; }
.logos-track { display: flex; align-items: center; gap: 80px; padding-right: 80px; width: max-content; animation: marquee 35s linear infinite; will-change: transform; }
.logos-track img { height: 28px; width: auto; flex-shrink: 0; filter: brightness(0) invert(1); max-width: none; }
.logos-track img.keep-color { filter: none; }

.scroll-hint { position: absolute; right: var(--pad-x); bottom: calc(108px + env(safe-area-inset-bottom)); width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.8); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.sound { position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 70; padding: 15px; line-height: 0; transition: opacity .3s; }
.sound img { height: 20px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.sound[hidden] { display: none; }
.past-hero .sound { opacity: 0; pointer-events: none; }

.loader {
  position: fixed; inset: 0; z-index: 100; background: #fff; color: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 50px;
  transition: opacity .8s cubic-bezier(.4,0,.2,1);
}
.loader.is-hidden { opacity: 0; pointer-events: none; }
html.is-loading, html.is-loading body { overflow: hidden; }
.loader-logo { width: 140px; height: auto; }
.loader-row { display: flex; align-items: center; gap: 15px; font-family: var(--hero); font-size: calc(.9rem * var(--hero-s)); letter-spacing: .15em; text-transform: uppercase; opacity: .8; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.1); border-top-color: #000; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Startseite: Work ============ */
/* Einrasten: beim Loslassen springt die Seite weich auf das Projekt, das am meisten zu sehen ist */
html.snap { scroll-snap-type: y mandatory; }
html.snap .hero { scroll-snap-align: start; }
html.snap .row { scroll-snap-align: center; scroll-snap-stop: normal; }
html.snap .site-footer { scroll-snap-align: end; }
.work { position: relative; padding: 3vh 0; }

.row { display: flex; align-items: center; padding: 3.5vh var(--pad-x); --scale: 1; --shift: 0px; --fade: 1; }
.row-link { width: 100%; display: grid; grid-template-columns: minmax(0, 71fr) minmax(0, 29fr); gap: clamp(20px, 2.2vw, 40px); align-items: center; }
.row.is-flip .row-link { grid-template-columns: minmax(0, 29fr) minmax(0, 71fr); }
.row.is-flip .row-media { order: 2; }
.row.is-flip .row-text { order: 1; text-align: left; }

.row-media { display: flex; gap: 12px; justify-content: center; transform: scale(var(--scale)); transform-origin: center; will-change: transform; }
.row-text { transform: translateY(var(--shift)); opacity: var(--fade); will-change: transform, opacity; }
.row.is-static .row-media, .row.is-static .row-text { transform: none; opacity: 1; }

.clip { position: relative; flex: 1 1 0; aspect-ratio: 16 / 9; max-height: 86vh; overflow: hidden; background: #ececec; }
.is-vertical .clip { aspect-ratio: 9 / 16; max-width: calc(86vh * 9 / 16); }
.clip img, .clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.clip video { opacity: 0; transition: opacity .5s ease; }
.clip video.is-on { opacity: 1; }
.row-link:hover .clip img, .row-link:hover .clip video { transform: scale(1.025); }
.clip img, .clip video { transition: opacity .5s ease, transform 1.2s var(--ease); }

.row-title { font-size: calc(clamp(28px, 3.5vw, 68px) * var(--head-s)); line-height: .93; letter-spacing: -.02em; text-transform: uppercase; }
.row-title span { display: block; }
.row-roles, .project-roles { font-family: var(--bold); font-weight: 700; font-size: calc(11px * var(--bold-s)); letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; color: #0c0c0c; }
.row-roles { margin: 0 0 16px; }
.project-roles { margin: 0 0 10px; }
.row-title .t-title { font-size: calc(1em * var(--light-s) / var(--head-s)); }

/* ============ Projektseite ============ */
.project { padding: 104px var(--pad-x) 40px; }
.project-title { font-size: calc(clamp(38px, 5.4vw, 104px) * var(--head-s)); line-height: .92; letter-spacing: -.025em; text-transform: uppercase; margin-bottom: clamp(18px, 2.2vw, 34px); }
.project-title .t-title { font-size: calc(1em * var(--light-s) / var(--head-s)); }
.project-top { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); gap: clamp(20px, 2.4vw, 44px); align-items: start; }
.project.is-vertical .project-top { grid-template-columns: minmax(0, 64fr) minmax(0, 36fr); }
.project-top.is-photo { grid-template-columns: minmax(0, 66fr) minmax(0, 34fr); }
.project-videos { display: flex; gap: clamp(10px, 1.4vw, 22px); align-items: flex-start; }
/* jedes Video in seinem Originalformat (4:3, 2:3, 16:9, 9:16 …) – nebeneinander gleich hoch, nichts wird gezoomt */
.player { position: relative; flex: var(--arn, 1.7778) 1 0; min-width: 0; aspect-ratio: var(--ar, 16 / 9); background: #000; overflow: hidden; border-radius: 4px; }
.project-videos.is-single .player { flex: none; width: min(100%, calc(80vh * var(--arn, 1.7778))); }
.player iframe, .player video, .player img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; max-width: none; }
.player.is-image img { object-fit: cover; }

/* ---- eigener Player ---- */
.vp iframe { pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.vp.is-ready iframe { opacity: 1; }
.vp .vp-poster { object-fit: cover; transition: opacity .5s ease; }
.vp.is-ready .vp-poster { opacity: 0; }
.vp-hit { position: absolute; inset: 0; width: 100%; height: 100%; background: none; border: 0; padding: 0; cursor: pointer; }
.vp-ui {
  position: absolute; left: 0; right: 0; bottom: 6px; z-index: 2;
  display: flex; align-items: center; gap: 2px; padding: 0 8px 8px;
  transition: opacity .45s ease, transform .45s var(--ease);
}
.vp.is-idle .vp-ui { opacity: 0; transform: translateY(6px); pointer-events: none; }
.vp.is-idle { cursor: none; }
.vp-btn { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; background: none; border: 0; cursor: pointer; color: #fff; }
.player .vp-btn img, .vp-btn svg { position: static; inset: auto; grid-area: 1 / 1; height: 17px; width: auto; max-width: none; object-fit: initial; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); transition: opacity .2s ease, transform .2s ease; }
.vp-btn svg { height: 17px; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linejoin: round; }
.vp-btn:hover img, .vp-btn:hover svg { transform: scale(1.12); }
.vp-play .i-play, .vp.is-paused .vp-play .i-pause, .vp-mute .i-on, .vp.is-unmuted .vp-mute .i-off { opacity: 0; }
.vp.is-paused .vp-play .i-play, .vp.is-unmuted .vp-mute .i-on { opacity: 1; }

/* Zeitleiste: randlos ganz unten, von links nach rechts – Farbe läuft vorne weich ins Weiß aus */
.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 22px; display: flex; align-items: flex-end; cursor: pointer; touch-action: none; outline: none; }
/* im Normalzustand nur die pinke Linie – die zarte Spur erscheint erst beim Drüberfahren / Antippen */
.vp-track { position: relative; width: 100%; height: 6px; background: rgba(255,255,255,0); overflow: hidden; transition: height .25s var(--ease), background-color .3s ease; }
.vp-bar:hover .vp-track, .vp.is-scrub .vp-track, .vp-bar:focus-visible .vp-track { height: 10px; background: rgba(255,255,255,.2); }
@media (hover: none) { .vp:not(.is-idle) .vp-track { background: rgba(255,255,255,.2); } }
.vp-buf { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255,255,255,.14); opacity: 0; transition: width .4s linear, opacity .3s ease; }
.vp-bar:hover .vp-buf, .vp.is-scrub .vp-buf { opacity: 1; }
.vp-fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, var(--accent, #e2449b) 0, var(--accent, #e2449b) calc(100% - 80px), color-mix(in srgb, var(--accent, #e2449b) 45%, #fff) calc(100% - 30px), rgba(250,248,255,0) 100%);
}
.vp:not(.is-scrub) .vp-fill, .hero:not(.is-scrub) .vp-fill { transition: width .25s linear; }
.vp-bar:focus-visible .vp-track { box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.hero-bar { --accent: #e2449b; z-index: 6; height: 6px; pointer-events: none; cursor: default; }

.project-info { font-family: var(--body); font-size: calc(15px * var(--body-s)); line-height: 1.32; }
.project-desc p { margin-bottom: 1em; text-align: justify; hyphens: auto; }
.project-desc a { border-bottom: 1px solid rgba(0,0,0,.35); }
.credits { margin-top: 2.2em; font-size: .92em; line-height: 1.28; columns: 2; column-gap: 28px; }
.credits.is-split { columns: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
.cr { display: flex; flex-wrap: wrap; column-gap: .3em; break-inside: avoid; margin: 0 0 .12em; }
.cr-gap { display: block; height: .9em; break-inside: avoid; }
.cr-role { white-space: nowrap; font-family: var(--bold); font-weight: 700; }

/* Galerie: feste Reihenhöhe, beim Hover wird nur die Breite größer */
.gallery { --gap: 10px; margin-top: clamp(56px, 8vw, 120px); display: flex; flex-direction: column; gap: var(--gap); align-items: flex-start; }
.g-row { width: 100%; display: flex; gap: var(--gap); }
.g-item { flex: var(--r) 1 0; min-width: 0; height: var(--h, 260px); border-radius: 6px; overflow: hidden; background: #eee; transition: flex-grow .7s cubic-bezier(.22, .8, .24, 1); }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; max-width: none; transition: transform .9s cubic-bezier(.22, .8, .24, 1); }
.g-row.has-hover .g-item.is-hover { flex-grow: calc(var(--r) * 1.45); }
.gallery:not(.is-ready) { visibility: hidden; }
/* Fotoprojekt: Kacheln neben dem Text und darunter weiter */
.gallery-top { --gap: 10px; display: flex; flex-direction: column; gap: var(--gap); }
.gallery.is-photo { margin-top: 10px; }
.gallery.is-photo.is-empty { display: none; }
@media (max-width: 900px) {
  .project.is-vertical .vp-ui { padding: 18px 2px 2px; gap: 0; }
  .project.is-vertical .vp-btn { width: 28px; }
  .vp-track { height: 5px; }
  .row-roles { margin-bottom: 7px; }
  .project-roles { margin-bottom: 5px; } .gallery-top { display: none; } .gallery.is-photo { margin-top: 0; } }

.next-project { display: block; margin: clamp(80px, 12vw, 180px) 0 40px; }
.next-label { display: block; font-family: var(--mono); font-size: calc(12px * var(--mono-s)); letter-spacing: .04em; color: #555; margin-bottom: 10px; }
.next-title { display: block; font-size: calc(clamp(30px, 4.4vw, 84px) * var(--head-s)); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; transition: opacity .3s; }
.next-project:hover .next-title { opacity: .55; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

html.lb-open, html.lb-open body { overflow: hidden; }

/* ============ About ============ */
.about { padding: 110px var(--pad-x) 60px; min-height: 100vh; display: flex; justify-content: center; align-items: center; }
.about-wrap { width: min(1400px, 100%); display: flex; gap: 24px; align-items: flex-start; justify-content: center; }
.carousel { position: relative; overflow: hidden; background: #f2f2f2; flex: 0 0 auto; aspect-ratio: 690 / 1120; height: min(1120px, calc(100vh - 200px)); max-width: min(690px, 100%); }
.carousel-track { height: 100%; display: flex; transition: transform .3s ease; }
.slide { min-width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.cbtn { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(120,120,120,.6); background: rgba(120,120,120,.12); color: rgba(120,120,120,.9); font-size: 20px; display: flex; align-items: center; justify-content: center; }
.cbtn.prev { left: 14px; } .cbtn.next { right: 14px; }
.about-text { max-width: 520px; }
.about-title { font-family: var(--head); font-weight: 900; font-size: calc(17px * var(--head-s)); margin: 0 0 12px; }
.about-body { font-family: var(--body); font-size: calc(13px * var(--body-s)); line-height: 1.45; }
.about-body a { border-bottom: 1px solid rgba(0,0,0,.35); }
.about-contact { margin-top: 14px; }

/* ============ Filmkorn (bewegt) ============ */
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-6%, 4%); } 33% { transform: translate(5%, -7%); }
  50% { transform: translate(-3%, 8%); } 67% { transform: translate(7%, 2%); } 83% { transform: translate(-8%, -4%); } 100% { transform: translate(2%, 6%); }
}
/* auf dem Weiß: liegt hinter allen Inhalten, Videos und Bilder bleiben sauber */
body::before {
  content: ""; position: fixed; inset: -50%; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 2.2 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .085; animation: grain .8s steps(6) infinite;
}

/* ============ Footer mit Googly Eyes ============ */
.site-footer {
  --fs: calc(10.5px * var(--mono-s));
  position: relative; overflow: hidden; isolation: isolate;
  background: #0a0a0a; color: #fff;
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; align-items: start; column-gap: 24px;
  row-gap: calc(var(--fs) * 1.1);
  padding: 26px var(--pad-x) calc(26px + env(safe-area-inset-bottom));
  font-family: var(--mono); font-size: var(--fs); line-height: 1.3;
}
.grain {
  position: absolute; inset: -100%; z-index: -1; pointer-events: none; opacity: .17;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 2.2 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .8s steps(6) infinite;
}
.f-col { display: flex; justify-content: center; text-align: center; min-width: 0; }
.f-center { grid-column: 2; grid-row: 1; }
.f-left { grid-column: 1; grid-row: 2; }
.f-right { grid-column: 3; grid-row: 2; }
.eyes-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.eyes { display: flex; gap: 2px; }
.eyes .eye { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; transition: transform .12s ease; }
.eyes.is-blink .eye { transform: scaleY(.1); }
.pupil { width: 46%; height: 46%; border-radius: 50%; background: #0a0a0a; will-change: transform; }
.eyes-label { font-size: var(--fs); letter-spacing: .01em; white-space: nowrap; }
.f-social { display: flex; gap: 13px; }
.f-social a { display: block; width: 14px; height: 14px; color: #fff; transition: opacity .2s; }
.f-social svg { width: 100%; height: 100%; display: block; }
.f-social a:hover { opacity: .6; }
.f-contact { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.f-contact a { text-decoration: none; }
.f-contact a:hover { opacity: .7; }

/* ============ Mobil ============ */
@media (max-width: 900px) {
  .site-footer { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 16px; }
  .f-center, .f-left, .f-right { grid-column: 1; grid-row: auto; }
  .f-left { order: 2; }
  .site-header { height: 60px; }
  .site-header a { font-size: calc(17px * var(--head-s)); }
  .site-header .nav { gap: 20px; }
  .hero-text { padding: 0 20px; bottom: calc(120px + env(safe-area-inset-bottom)); }
  .hero-name { font-size: calc(11vw * var(--hero-s)); }
  .hero-roles { font-size: calc(.66rem * var(--hero-s)); letter-spacing: .08em; }
  .logos { bottom: calc(36px + env(safe-area-inset-bottom)); }
  .logos-track { gap: 40px; padding-right: 40px; }
  .logos-track img { height: 20px; }
  .sound { top: auto; left: auto; transform: none; right: 6px; bottom: calc(62px + env(safe-area-inset-bottom)); }
  .scroll-hint { display: none; }

  html.snap { scroll-snap-type: y proximity; }
  .row { padding: 22px var(--pad-x) 30px; }
  .row-link, .row.is-flip .row-link { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .row.is-flip .row-media, .row.is-flip .row-text { order: 0; }
  .row-media { gap: 6px; }
  .row-title { font-size: calc(clamp(26px, 8vw, 44px) * var(--head-s)); }
  .row-text { transform: none; opacity: 1; }

  .project { padding-top: 84px; }
  .project-top, .project.is-vertical .project-top, .project-top.is-photo { grid-template-columns: minmax(0, 1fr); }
  .project-videos { gap: 6px; }
  .credits { column-gap: 18px; font-size: .86em; }
  .gallery { --gap: 6px; }

  .about { align-items: flex-start; padding-top: 80px; }
  .about-wrap { flex-direction: column; align-items: center; }
  .carousel { width: 100%; height: auto; max-height: 68vh; }
  .about-text { margin-top: 14px; }

}

@media (prefers-reduced-motion: reduce) {
  .grain, body::before { animation: none; }
  .marquee-inner, .logos-track { animation-duration: 120s; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Legal ============ */
.legal { padding: 104px var(--pad-x) 70px; }
.legal-title { font-size: calc(clamp(38px, 5.4vw, 104px) * var(--head-s)); line-height: .92; letter-spacing: -.025em; text-transform: uppercase; }
.legal-sub { font-family: var(--bold); font-weight: 700; font-size: calc(11px * var(--bold-s)); letter-spacing: .08em; text-transform: uppercase; margin: 12px 0 clamp(30px, 4vw, 60px); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: clamp(28px, 4vw, 80px); align-items: start; font-family: var(--body); font-size: calc(14px * var(--body-s)); line-height: 1.45; }
.legal-block h2 { font-family: var(--head); font-size: calc(clamp(22px, 2vw, 34px) * var(--head-s)); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 1em; }
.legal-block h3 { font-family: var(--bold); font-weight: 700; font-size: calc(11px * var(--bold-s)); letter-spacing: .08em; text-transform: uppercase; margin: 1.9em 0 .55em; }
.legal-block h2 + h3 { margin-top: 0; }
.legal-block p { margin-bottom: .8em; max-width: 68ch; hyphens: auto; }
.legal-block a { border-bottom: 1px solid rgba(0,0,0,.35); }
@media (max-width: 900px) {
  .legal { padding-top: 88px; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
}

/* ---- Filter über den Projekten ---- */
/* liegt mittig zwischen Showreel und erstem Projekt */
.work { padding-top: 0; }
.work-filter {
  display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 6px 26px;
  padding: max(62px, 6.5vh) var(--pad-x) 2vh; will-change: transform;
}
.work-filter button {
  position: relative; background: none; border: 0; padding: 4px 0; cursor: pointer; color: #0c0c0c;
  font-family: var(--bold); font-weight: 700; font-size: calc(11px * var(--bold-s)); letter-spacing: .08em; text-transform: uppercase;
  opacity: .28; transition: opacity .3s ease;
}
.work-filter button:hover { opacity: .6; }
.work-filter button.is-on { opacity: 1; }
.work-filter sup {
  position: relative; top: -.65em; margin-left: 3px; vertical-align: baseline;
  font-family: var(--mono); font-weight: 400; font-size: calc(7.5px * var(--mono-s)); letter-spacing: 0;
}
.work-empty { padding: 4vh var(--pad-x) 10vh; font-family: var(--body); font-size: calc(14px * var(--body-s)); opacity: .5; }
/* erster Scroll vom Showreel landet direkt hier: Filter knapp unter dem Namen, darunter nur Weiß + erstes Projekt */
html.snap .work-filter { scroll-snap-align: start; scroll-margin-top: 0; }
html.snap .row.is-first { scroll-snap-align: none; }

/* Wechsel zwischen den Filtern: kurz ausblenden, neu sortieren, wieder einblenden */
.work .row { transition: opacity .26s ease; }
.work.is-switching .row { opacity: 0; }
.row[hidden] { display: none; }
@media (max-width: 900px) {
  .work-filter { gap: 4px 16px; padding: 64px var(--pad-x) 4px; }
  .work-filter button { font-size: calc(10px * var(--bold-s)); }
}
