/* =========================================================
   repeat Media – Website
   Gestaltungsbasis: REPEAT_Website_EW10 (1920px Artboard)
   Alle Maße als Design-Pixel × --u (skaliert mit der Viewport-Breite)
   ========================================================= */

/* Schriften lokal eingebunden (DSGVO-konform, kein Google-Server) */
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/montserrat-400.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/montserrat-500.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/montserrat-900.woff") format("woff"); }

:root {
  /* Farben (REPEAT_FARBEN_RZ) */
  --lilac:  #b0a6df;   /* R176 G166 B223 */
  --orange: #e84e34;   /* R232 G78  B52  */
  --cream:  #fff0e1;   /* R255 G240 B225 */
  --ink:    #0b070d;   /* Dunkelton aus dem Seitenverlauf */

  /* Schriften (REPEAT_FONTS_RZ) */
  --font-display: "Montserrat", system-ui, sans-serif;                     /* Montserrat Black */
  /* Proxima Nova Wide: Ersatz durch Montserrat Regular mit etwas mehr Laufweite.
     Sobald Proxima Nova Wide eingebunden ist: --track-text auf 0 setzen. */
  --font-text: "Montserrat", system-ui, sans-serif;
  --track-text: .05em;
  --font-accent: "Playfair Display", Georgia, serif;                        /* Playfair Display Italic */

  /* Skalierung: 1 Design-Pixel bei 1920px Breite */
  --u: clamp(0.62px, calc(100vw / 1920), 1.25px);

  /* Raster */
  --gutter: max(12px, calc(19 * var(--u)));   /* Abstand der Boxen zum Rand */
  --inset:  calc(180 * var(--u));             /* Inhaltskante links/rechts */
  --radius: max(12px, calc(20 * var(--u)));

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--ink); overflow-x: clip; }

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: var(--lilac);
  color: var(--cream);
  font-family: var(--font-text);
  font-weight: 400;
  letter-spacing: var(--track-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  isolation: isolate; /* damit der Foto-Hintergrund über der Grundfarbe liegt */
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > .lower { margin-top: auto; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

/* Hintergrund: Stockfoto, violett eingefärbt, über die gesamte Seite */
.page-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* wie im Layout: Foto in voller Breite, oben angesetzt */
  background: var(--lilac) url("../img/bg-violet.jpg") center top / 100% auto no-repeat;
}
/* feine Filmkorn-Textur, in Bildschirmauflösung über dem Foto */
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/grain.png") 0 0 / 200px 200px repeat;
  mix-blend-mode: soft-light;
  opacity: .5;
  pointer-events: none;
}
@media (max-width: 860px) {
  .page-bg { background-size: cover; }
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  margin: var(--gutter) var(--gutter) 0;
  height: max(520px, min(calc(1106 * var(--u)), calc(100svh - var(--gutter) - 56px)));
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.hero__media,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__video { object-fit: cover; }

/* dezente Abdunklung oben für die Navigation */
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: calc(220 * var(--u));
  min-height: 120px;
  background: linear-gradient(to bottom, rgba(11, 7, 13, .55), rgba(11, 7, 13, 0));
  pointer-events: none;
  z-index: 1;
}

/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */
.nav {
  position: fixed;
  top: var(--gutter);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: calc(72 * var(--u));
  min-height: 56px;
  padding: 0 calc(var(--inset) - var(--gutter));
  font-size: max(12px, calc(15 * var(--u)));
  letter-spacing: var(--track-text);
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background-color .45s var(--ease-out), backdrop-filter .45s var(--ease-out);
}

/* Beim Scrollen: Leiste komplett ausgeblendet (auch das R).
   Hover über den oberen Bereich, Tastatur-Fokus oder leichtes Hochscrollen: komplette Leiste */
.nav__links,
.nav__right,
.nav__logo {
  transition: opacity .35s ease, transform .5s var(--ease-out);
}
.nav.is-compact .nav__links,
.nav.is-compact .nav__right,
.nav.is-compact .nav__logo {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.nav.is-compact:hover,
.nav.is-compact:focus-within,
.nav.is-compact.is-revealed {
  background-color: rgba(11, 7, 13, .86);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
.nav.is-compact:hover :is(.nav__links, .nav__right, .nav__logo),
.nav.is-compact:focus-within :is(.nav__links, .nav__right, .nav__logo),
.nav.is-compact.is-revealed :is(.nav__links, .nav__right, .nav__logo) {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nav__links { display: flex; gap: calc(45 * var(--u)); }

.nav a:not(.nav__logo, .social a) {
  position: relative;
  padding: 6px 0;
}
.nav a:not(.nav__logo, .social a)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav a:not(.nav__logo, .social a):hover::after,
.nav a:not(.nav__logo, .social a):focus-visible::after,
.nav a:not(.nav__logo, .social a)[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__logo img {
  height: max(30px, calc(40 * var(--u)));
  width: auto;
  transition: transform .6s var(--ease-out);
}
.nav__logo:hover img { transform: rotate(-6deg) scale(1.06); }
.nav__logo .logo-white { display: none; }

/* Unterseiten: oranger Balken oben bündig, weißes R (wie im Layout) */
.page-sub .nav {
  transition: background-color .45s var(--ease-out), backdrop-filter .45s var(--ease-out), top .45s var(--ease-out), height .45s var(--ease-out), border-radius .45s var(--ease-out), padding .45s var(--ease-out);
}
/* … auch beim Hover/Hochscrollen bleibt die Leiste rot wie oben */
.page-sub .nav:not(.is-compact),
.page-sub .nav.is-compact:hover,
.page-sub .nav.is-compact:focus-within,
.page-sub .nav.is-compact.is-revealed {
  top: 0;
  height: max(64px, calc(91 * var(--u)));
  background-color: var(--orange);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.page-sub .nav:is(:not(.is-compact), .is-compact:hover, .is-compact:focus-within, .is-compact.is-revealed) .logo-orange { display: none; }
.page-sub .nav:is(:not(.is-compact), .is-compact:hover, .is-compact:focus-within, .is-compact.is-revealed) .logo-white { display: block; }
.page-sub .nav:is(:not(.is-compact), .is-compact:hover, .is-compact:focus-within, .is-compact.is-revealed) a:not(.nav__logo, .social a)::after { background: var(--cream); }

.nav__cta { font-weight: 900; letter-spacing: .03em; }
.nav__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: calc(40 * var(--u));
}

/* Social-Icons (Header, Footer, Mobile-Menü) */
.social { display: flex; align-items: center; gap: max(12px, calc(16 * var(--u))); }
.social a {
  display: block;
  width: max(18px, calc(22 * var(--u)));
  height: max(18px, calc(22 * var(--u)));
  color: var(--cream);
  opacity: .9;
  transition: opacity .3s, transform .4s var(--ease-out);
}
.social a:hover, .social a:focus-visible { opacity: 1; transform: translateY(-2px); }
.social svg { width: 100%; height: 100%; display: block; }
.social--menu { justify-content: center; margin-top: 28px; gap: 24px; }
.social--menu a { width: 28px; height: 28px; }

.nav__toggle {
  display: none;
  justify-self: end;
  background: none;
  border: 0;
  color: var(--cream);
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
}

/* Mobile Menü */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(11, 7, 13, .96);
  backdrop-filter: blur(6px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { text-align: center; }
.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  text-transform: uppercase;
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu__close {
  position: absolute; top: 22px; right: 30px;
  background: none; border: 0; color: var(--cream);
  font: inherit; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; cursor: pointer;
}

/* ---------------------------------------------------------
   TICKER „repeat.“
   --------------------------------------------------------- */
.ticker {
  overflow: hidden;
  margin-top: calc(6 * var(--u));
  padding: calc(4 * var(--u)) 0;
  white-space: nowrap;
  font-size: max(15px, calc(26 * var(--u)));
  letter-spacing: .5em;
  line-height: 1.4;
  color: var(--cream);
  opacity: .5;
  user-select: none;
  /* weiches Ausblenden an den Rändern */
  --edge-fade: max(48px, calc(140 * var(--u)));
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--edge-fade), #000 calc(100% - var(--edge-fade)), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--edge-fade), #000 calc(100% - var(--edge-fade)), transparent 100%);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ticker__group { display: flex; }
.ticker__group span {
  flex: none;
  width: calc(288 * var(--u));
  min-width: 170px;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------------------------------------------------------
   INTRO
   --------------------------------------------------------- */
.intro {
  position: relative;
  padding: calc(270 * var(--u)) var(--inset) 0;
}

.intro__text {
  max-width: calc(900 * var(--u));
  margin: 0 auto;
  text-align: center;
}

.intro__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: max(28px, calc(62 * var(--u)));
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.intro__copy {
  margin-top: calc(52 * var(--u));
  font-size: max(18px, calc(42 * var(--u)));
  line-height: 1.2;
  letter-spacing: .012em;
  /* Verblassen nach unten – --p wird per JS beim Scrollen von 0 auf 1 gezählt.
     Eine weiche Kante wandert Zeile für Zeile von oben nach unten durch den Absatz. */
  --p: 0;
  --edge: calc(-20% + 125% * var(--p));
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--edge), rgba(0,0,0,.03) calc(var(--edge) + 45%));
          mask-image: linear-gradient(to bottom, #000 var(--edge), rgba(0,0,0,.03) calc(var(--edge) + 45%));
}

.intro__more {
  max-width: calc(1150 * var(--u));
  margin: calc(80 * var(--u)) auto 0;
  display: flex;
  justify-content: flex-end;
}

/* Link mit Pinselstrich („über repeat“) */
.brush-link {
  position: relative;
  display: inline-block;
  font-size: max(15px, calc(23 * var(--u)));
  line-height: 1;
  padding: 4px 0;
}
.brush-link span { position: relative; }
.brush-link .brush--uber {
  position: absolute;
  left: -0.7em;
  top: 0.42em;
  width: 8.3em;
  height: auto;
  max-width: none;
  transition: transform .6s var(--ease-out);
  transform-origin: left center;
}
.brush-link:hover .brush--uber { transform: scaleX(1.08); }

/* ---------------------------------------------------------
   UNTERER BEREICH (Kategorien, Logos, Footer)
   inkl. Verlauf ins Dunkle
   --------------------------------------------------------- */
.lower {
  position: relative;
  isolation: isolate;
}
.lower::before {
  content: "";
  pointer-events: none; /* Verlauf darf keine Klicks/Hover abfangen */
  position: absolute;
  inset: calc(600 * var(--u)) 0 0;
  z-index: -1;
  background: linear-gradient(to bottom,
    rgba(11, 7, 13, 0)    0%,
    rgba(11, 7, 13, .22) 14%,
    rgba(11, 7, 13, .45) 32%,
    rgba(11, 7, 13, .68) 50%,
    rgba(11, 7, 13, .88) 64%,
    var(--ink)           74%);
}

/* ---------------------------------------------------------
   KATEGORIEN
   --------------------------------------------------------- */
.work {
  padding: calc(229 * var(--u)) var(--gutter) 0;
  display: grid;
  gap: calc(55 * var(--u));
}

.work-card {
  position: relative;
  display: block;
  padding-top: calc(36 * var(--u));
}

.work-card__title {
  --fs: max(36px, calc(88 * var(--u)));
  position: absolute;
  z-index: 2;
  top: calc(-14 * var(--u));
  left: calc(var(--inset) - var(--gutter));
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--cream);
  pointer-events: none;
}
.work-card__title span { position: relative; }

.work-card__title .brush {
  position: absolute;
  max-width: none;
  height: auto;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease-out) .15s;
}
/* Pinselstrich-Position relativ zur Schrift (aus dem Layout übernommen) */
.work-card--doku       .brush { left: -0.19em;  top: 0.70em; width: 3.21em; }
.work-card--commercial .brush { left: -0.088em; top: 0.62em; width: 6.15em; }
.work-card--foto       .brush { left: -0.133em; top: 0.71em; width: 2.83em; }

.work-card.is-visible .brush { clip-path: inset(0 0 0 0); }

.work-card__media {
  position: relative;
  aspect-ratio: 2880 / 765;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(var(--z, 1) * 1.001));
  transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out);
}
.work-card:hover .work-card__media img,
.work-card:focus-visible .work-card__media img {
  transform: scale(calc(var(--z, 1) * 1.035));
  filter: brightness(1.5);
}

/* sanftes Einblenden beim Scrollen */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   KUNDENLOGOS
   --------------------------------------------------------- */
.clients {
  overflow: hidden;
  /* leichtes Ausblenden an den Rändern, wie beim „repeat.“-Laufband */
  --edge-fade: max(40px, calc(120 * var(--u)));
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--edge-fade), #000 calc(100% - var(--edge-fade)), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--edge-fade), #000 calc(100% - var(--edge-fade)), transparent 100%);
  padding: calc(116 * var(--u)) 0 calc(79 * var(--u)); /* Logos → Fußleiste = 91 px wie zwischen den Bildern */
}
.clients__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.clients:hover .clients__track { animation-play-state: paused; }
.clients__group {
  display: flex;
  align-items: center;
  gap: calc(64 * var(--u));
  padding-right: calc(64 * var(--u));
  height: calc(104 * var(--u));
  min-height: 64px;
}
.logo { width: auto; max-width: none; opacity: .95; }
.logo[style*="--h"] { height: calc(var(--h) * var(--u)); }

/* optisch ausgeglichene Höhen (Design-Pixel) */
.logo--funk        { height: calc(46 * var(--u)); }
.logo--hyundai     { height: calc(36 * var(--u)); }
.logo--dazn        { height: calc(80 * var(--u)); }
.logo--sportschau  { height: calc(37 * var(--u)); }
.logo--flatex      { height: calc(44 * var(--u)); }
.logo--magentatv   { height: calc(64 * var(--u)); }
.logo--si          { height: calc(66 * var(--u)); }
.logo--spiegel     { height: calc(38 * var(--u)); }

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.footer {
  margin: 0 var(--gutter);
  padding: 0 calc(var(--inset) - var(--gutter));
  min-height: max(48px, calc(60 * var(--u)));
  display: flex;
  align-items: center;
  justify-content: space-between; /* links Socials, rechts bündig mit „Get in touch“ */
  gap: 24px;
  background: var(--orange);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: max(12px, calc(15 * var(--u)));
  letter-spacing: var(--track-text);
  text-transform: uppercase;
}
.footer__links { display: flex; gap: calc(45 * var(--u)); }
.footer a { opacity: .95; transition: opacity .3s; }
.footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------
   UNTERSEITEN (Platzhalter)
   --------------------------------------------------------- */
.page-sub .hero {
  /* Platzhalter unter der festen Navigation */
  height: max(64px, calc(91 * var(--u)));
  margin: 0;
  background: none;
  border-radius: 0;
}
.page-sub .hero::after { display: none; }

.placeholder {
  padding: calc(260 * var(--u)) var(--inset) calc(320 * var(--u));
  min-height: 60vh;
}
.placeholder h1 {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: max(44px, calc(120 * var(--u)));
  line-height: 1;
  text-transform: uppercase;
}
.placeholder h1 span { position: relative; }
.placeholder h1 .brush {
  position: absolute;
  left: -0.15em; top: 0.68em;
  width: calc(100% + 0.3em);
  height: .42em;
  max-width: none;
}
.placeholder p {
  margin-top: calc(48 * var(--u));
  font-size: max(17px, calc(28 * var(--u)));
  opacity: .8;
}
.page-sub .lower::before { display: none; }

/* ---------------------------------------------------------
   UNTERSEITE DOKU (Übersicht)
   --------------------------------------------------------- */
.page-head {
  padding: calc(104 * var(--u)) var(--inset) calc(112 * var(--u));
}
.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: max(56px, calc(150 * var(--u)));
  line-height: .9;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Ausgewählte Projekte: Bild + Text, abwechselnd links/rechts */
.features {
  display: grid;
  gap: var(--gutter);
  padding: 0 var(--gutter);
}
.feature {
  display: grid;
  grid-template-columns: 1085fr 797fr;
  align-items: start;
}
.feature--media-right { grid-template-columns: 797fr 1085fr; }
.feature--media-right .feature__media { order: 2; }

.feature__media {
  display: block;
  aspect-ratio: 1085 / 374;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.feature__media img,
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--z, 1));
  transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out);
}
.feature:hover .feature__media img { transform: scale(calc(var(--z, 1) * 1.035)); filter: brightness(1.2); }

.feature__text { padding: calc(48 * var(--u)) calc(60 * var(--u)) 0 calc(30 * var(--u)); }
.feature--media-right .feature__text { padding-left: calc(var(--inset) - var(--gutter)); }

.feature__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: max(22px, calc(44 * var(--u)));
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
  max-width: 16em;
}
.feature__sub {
  margin-top: calc(40 * var(--u));
  font-size: max(15px, calc(27 * var(--u)));
  line-height: 1.15;
  max-width: 19em;
}
.feature .text-link { margin-top: calc(24 * var(--u)); }

/* Textlink mit roter Linie („Mehr dazu“) */
.text-link {
  position: relative;
  display: inline-block;
  font-size: max(15px, calc(27 * var(--u)));
  line-height: 1.3;
  text-transform: uppercase;
}
.text-link::after,
.tile__title::after {
  content: "";
  position: absolute;
  height: max(4px, .3em);
  background: var(--stroke, url("../img/strokes/line-1.svg")) center / 100% 100% no-repeat;
  transform: rotate(var(--stroke-rot, -.6deg));
  transform-origin: left center;
  transition: transform .5s var(--ease-out);
}
.text-link::after {
  left: var(--stroke-l, -0.2em);
  right: var(--stroke-r, -0.05em);
  bottom: -0.22em;
}
.text-link:hover::after { transform: rotate(var(--stroke-rot, -.6deg)) scaleX(1.1); }

/* Jeder Strich etwas anders: Form, Länge und Neigung variieren */
.stroke-1 { --stroke: url("../img/strokes/line-1.svg"); --stroke-rot: -.8deg; --stroke-l: -.25em; --stroke-r: 0em; }
.stroke-2 { --stroke: url("../img/strokes/line-2.svg"); --stroke-rot: .5deg;  --stroke-l: -.1em;  --stroke-r: -.25em; }
.stroke-3 { --stroke: url("../img/strokes/line-3.svg"); --stroke-rot: -1.4deg; --stroke-l: -.3em; --stroke-r: .15em; }
.stroke-4 { --stroke: url("../img/strokes/line-4.svg"); --stroke-rot: 1deg;   --stroke-l: -.05em; --stroke-r: -.15em; }
.stroke-5 { --stroke: url("../img/strokes/line-5.svg"); --stroke-rot: -.3deg; --stroke-l: -.2em;  --stroke-r: -.3em; }

/* Kachel-Raster */
.page-sub .lower--sub::before {
  display: block;
  inset: calc(-100 * var(--u)) 0 0;
  background: linear-gradient(to bottom,
    rgba(11, 7, 13, 0)    0%,
    rgba(11, 7, 13, .25) 18%,
    rgba(11, 7, 13, .55) 38%,
    rgba(11, 7, 13, .82) 56%,
    var(--ink)           68%);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: calc(30 * var(--u));
  row-gap: calc(21 * var(--u));
  padding: calc(99 * var(--u)) var(--gutter) calc(190 * var(--u));
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 607 / 334;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.tile__info {
  position: absolute;
  inset: 0; /* Schleier über das gesamte Vorschaubild */
  padding: calc(34 * var(--u)) calc(32 * var(--u)) calc(26 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to bottom, rgba(20, 16, 22, .25) 0%, rgba(20, 16, 22, .45) 55%, rgba(20, 16, 22, .7) 100%);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}
.tile__info > * {
  transform: translateY(10px);
  transition: transform .7s var(--ease-out);
}
.tile:hover .tile__info,
.tile:focus-visible .tile__info { opacity: 1; }
.tile:hover .tile__info > *,
.tile:focus-visible .tile__info > * { transform: none; }
/* Unschärfe direkt im Bild – weich eingeblendet, ohne sichtbare Kante */
.tile img { transform: scale(var(--z, 1)); transition: transform 1.2s var(--ease-out), filter .7s var(--ease-out); }
.tile:hover img,
.tile:focus-visible img { transform: scale(calc(var(--z, 1) * 1.08)); filter: brightness(1.2) blur(5.4px); }

.tile__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: max(16px, calc(34 * var(--u)));
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
  padding-bottom: calc(14 * var(--u));
}
.tile__title::after {
  left: -.1em;
  bottom: calc(2 * var(--u));
  width: min(100%, var(--stroke-w, 9em));
  height: max(4px, .22em);
}
.tile__sub {
  margin-top: calc(2 * var(--u));
  font-size: max(13px, calc(24 * var(--u)));
  line-height: 1.2;
}

.more {
  display: flex;
  justify-content: center;
  padding: calc(46 * var(--u)) 0 calc(150 * var(--u));
}
.more .brush-link { font-size: max(15px, calc(27 * var(--u))); text-transform: uppercase; }
.brush-link .brush--mehr {
  position: absolute; max-width: none;
  left: -.55em; top: .38em; width: calc(100% + 1.1em); height: .85em;
  transition: transform .6s var(--ease-out); transform-origin: left center;
}
.brush-link:hover .brush--mehr { transform: scaleX(1.06); }

/* ---------------------------------------------------------
   DOKU-DETAILSEITE (Film-Vorlage)
   --------------------------------------------------------- */
.detail-shade {
  position: absolute;
  inset: 0 0 auto;
  height: calc(1250 * var(--u));
  z-index: -1;
  background: linear-gradient(to bottom, var(--ink) 0%, rgba(11, 7, 13, .7) 35%, rgba(11, 7, 13, 0) 100%);
  pointer-events: none;
}
.detail {
  display: grid;
  grid-template-columns: 1085fr 797fr;
  column-gap: calc(30 * var(--u));
  padding: calc(61 * var(--u)) var(--gutter) 0;
  align-items: start;
}
.detail__media { position: relative; }
.player {
  position: relative;
  aspect-ratio: 1085 / 598;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.player video,
.player img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); transition: filter .8s var(--ease-out); }
.player:hover img { filter: brightness(1.2); }
.player__play {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(190 * var(--u));
  min-width: 64px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .5s var(--ease-out);
}
.player__play svg { width: 100%; height: 100%; display: block; }
.player__play circle { fill: rgba(255, 240, 225, .94); }
.player__play path { fill: var(--ink); }
.player__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.player.is-playing .player__play { opacity: 0; pointer-events: none; }

.detail__text { padding-right: calc(80 * var(--u)); }
.detail__title {
  position: relative;
  display: inline-block; /* Strich passt sich der Titelbreite an */
  font-family: var(--font-display);
  font-weight: 900;
  font-size: max(24px, calc(39 * var(--u)));
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-top: calc(10 * var(--u));
}
.detail__title span { position: relative; }
.detail__title .brush {
  position: absolute;
  left: -.14em;
  bottom: -.24em;          /* sitzt immer unter der letzten Zeile */
  width: calc(100% + .3em);
  height: .78em;
  max-width: none;
}
.detail__body {
  display: grid;
  gap: calc(60 * var(--u));
  margin-top: calc(76 * var(--u));
  font-size: max(16px, calc(24.5 * var(--u)));
  line-height: 1.24;
  hyphens: auto;
}
.todo-note { opacity: .6; font-style: italic; }
.detail__meta {
  display: grid;
  gap: calc(54 * var(--u));
  margin: calc(76 * var(--u)) 0 0;
  font-size: max(16px, calc(24.5 * var(--u)));
  line-height: 1.24;
}
.detail__meta dt { text-transform: uppercase; }
.detail__meta dd { margin: 0; }

/* Scribbles (aus dem ATHLETES-Paket) */
.scribble { position: absolute; max-width: none; pointer-events: none; z-index: 2; }
.scribble--bogen {
  width: calc(170 * var(--u));
  left: calc(615 * var(--u));
  top: calc(100% + 290 * var(--u));
  transform: rotate(148deg);
}

a.player { display: block; }
.player-source {
  display: inline-block;
  margin-top: 14px;
  font-size: max(13px, calc(17 * var(--u)));
  letter-spacing: .04em;
  opacity: .8;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity .3s;
}
.player-source:hover { opacity: 1; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__hint {
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center; font-size: 12px; opacity: .75;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Galerie: freie Komposition wie im Layout, Maße in Design-Pixeln */
.lower--detail { padding-top: calc(32 * var(--u)); }
.page-sub .lower--detail::before {
  display: block;
  inset: calc(1500 * var(--u)) 0 0;
  background: linear-gradient(to bottom, rgba(11, 7, 13, 0) 0%, rgba(11, 7, 13, .55) 35%, rgba(11, 7, 13, .9) 60%, var(--ink) 75%);
}
.gallery {
  position: relative;
  margin: 0 var(--gutter) calc(190 * var(--u));
}
.gallery__item {
  position: absolute;
  left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out); }
.gallery__item:hover img { transform: scale(calc(var(--z, 1) * 1.04)); }
/* Galerie mit beliebig vielen Bildern: automatisches Raster */
.gallery--grid {
  height: auto;
  aspect-ratio: auto !important;
  margin: 0 0 calc(190 * var(--u));
  display: grid;
  grid-auto-flow: row dense; /* keine Lücken, egal wie viele Bilder */
  grid-template-columns: repeat(3, 1fr);
  gap: calc(30 * var(--u));
  padding: 0 var(--gutter);
}
.gallery--grid { grid-auto-rows: calc((100vw - 2 * var(--gutter) - 60 * var(--u)) / 3 * .625); }
.gallery--grid .gallery__item { position: static; width: auto; height: auto; }
/* Spannweiten setzt doku.js je nach Bildanzahl, sodass jede Reihe bündig voll ist */
.gallery--grid .g-big  { grid-column: span 2; grid-row: span 2; }
.gallery--grid .g-wide { grid-column: span 2; }
.gallery--grid .g-full { grid-column: 1 / -1; }
.scribble--kreis    { width: calc(250 * var(--u)); left: calc(400 * var(--u)); top: calc(30 * var(--u)); transform: rotate(-8deg); }
.scribble--schlaufe { width: calc(120 * var(--u)); left: calc(170 * var(--u)); top: calc(1010 * var(--u)); transform: rotate(-12deg); }
.scribble--welle    { width: calc(210 * var(--u)); left: calc(880 * var(--u)); top: calc(925 * var(--u)); transform: rotate(-22deg); }
.scribble--lang     { width: calc(170 * var(--u)); left: calc(700 * var(--u)); top: calc(2160 * var(--u)); transform: rotate(196deg); }

/* ---------------------------------------------------------
   TYPOGRAFIE: saubere Umbrüche für alle Texte (auch aus der Redaktion)
   --------------------------------------------------------- */
.intro__title, .page-title, .feature__title, .tile__title, .detail__title, .work-card__title { text-wrap: balance; }
.intro__copy, .feature__sub, .tile__sub, .detail__body p, .detail__meta dd, .placeholder p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.detail__body p, .feature__sub { hyphens: auto; -webkit-hyphens: auto; }

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 860px) {
  :root {
    --inset: 24px;
    --gutter: 10px;
  }
  .nav {
    grid-template-columns: auto 1fr;
    padding: 6px 20px 0;
  }
  .nav__links, .nav__right { display: none; }
  .nav__toggle { display: block; transition: opacity .35s ease; }
  /* Handy: beim Runterscrollen alles weg, beim Hochscrollen Leiste mit Logo + Menü */
  .nav.is-compact:not(.is-revealed) .nav__toggle { opacity: 0; pointer-events: none; }
  body:not(.page-sub) .nav.is-compact.is-revealed {
    background-color: rgba(11, 7, 13, .86);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
  }

  .hero { height: min(78svh, 640px); }

  .intro { padding-top: 120px; }
  .intro__copy { margin-top: 28px; }
  .br-desk { display: none; }
  .intro__more { margin-top: 48px; padding-right: 8px; }

  .work { padding-top: 120px; gap: 70px; }
  .work-card { padding-top: 22px; }

  .page-head { padding: 64px var(--inset) 48px; }
  .features { gap: 44px; }
  .feature,
  .feature--media-right { grid-template-columns: 1fr; }
  .feature--media-right .feature__media { order: 0; }
  .feature__media { aspect-ratio: 16 / 9; }
  .feature__text,
  .feature--media-right .feature__text { padding: 20px 14px 0; }
  .feature__sub { margin-top: 12px; }
  .feature .text-link { margin-top: 14px; }
  .tiles { grid-template-columns: 1fr; row-gap: 14px; padding-top: 72px; }
  .tile__info { opacity: 1; padding: 16px 18px; inset: auto 0 0; background: rgba(20, 16, 22, .6); }
  .tile__info > * { transform: none; }
  .tile:hover img { filter: none; transform: scale(var(--z, 1)); }
  .more { padding: 36px 0 80px; }

  .detail { grid-template-columns: 1fr; padding-top: 24px; row-gap: 32px; }
  .detail__text { padding: 0 14px; }
  .detail__body, .detail__meta { margin-top: 28px; gap: 22px; }
  .scribble--bogen { display: none; }
  .lower--detail { padding-top: 64px; }
  .page-sub .lower--detail::before { inset: 0; }
  .gallery { height: auto; aspect-ratio: auto !important; margin: 0 0 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 var(--gutter); }
  .gallery__item { position: static; width: auto !important; height: auto !important; aspect-ratio: 1; }
  .gallery__item:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 16 / 9; }
  .gallery .scribble { display: none; }
  .gallery--grid { grid-auto-rows: auto; }
  .gallery--grid .gallery__item.g-big, .gallery--grid .gallery__item.g-wide, .gallery--grid .gallery__item.g-full { grid-column: auto; grid-row: auto; }
  .gallery--grid .gallery__item:nth-child(3n+1) { grid-column: span 2; }
  .gallery .gallery__item.m-last { grid-column: span 2; aspect-ratio: 16 / 9; }
  .work-card__title { --fs: clamp(32px, 11vw, 54px); top: -6px; left: 22px; }
  .intro__more { padding-right: 40px; }
  .work-card__media { aspect-ratio: 16 / 10; }
  .work-card--doku .work-card__media img       { object-position: 60% 50%; }
  .work-card--commercial .work-card__media img { object-position: 58% 50%; }
  .work-card--foto .work-card__media img       { object-position: 45% 40%; }

  .clients { padding: 80px 0 90px; }
  .clients__group { gap: 44px; padding-right: 44px; height: 70px; }
  .logo--funk        { height: 28px; }
  .logo--hyundai     { height: 22px; }
  .logo--dazn        { height: 50px; }
  .logo--sportschau  { height: 23px; }
  .logo--flatex      { height: 27px; }
  .logo--magentatv   { height: 40px; }
  .logo--si          { height: 41px; }
  .logo--spiegel     { height: 24px; }
  .logo[style*="--h"] { height: calc(var(--h) * .62px); }

  .footer {
    padding: 18px 20px;
  }
  .footer__links { gap: 24px; }
}

/* ---------------------------------------------------------
   KONTAKT
   --------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 640fr 1000fr;
  column-gap: calc(100 * var(--u));
  padding: calc(150 * var(--u)) var(--inset) calc(240 * var(--u));
  align-items: start;
}
.contact__intro { position: sticky; top: calc(160 * var(--u)); }
.contact__title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: max(40px, calc(96 * var(--u)));
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.contact__title span { position: relative; }
.contact__title .brush {
  position: absolute; left: -.12em; bottom: -.22em;
  width: calc(100% + .26em); height: .62em; max-width: none;
}
.contact__text, .contact__direct {
  margin-top: calc(76 * var(--u));
  font-size: max(16px, calc(24.5 * var(--u)));
  line-height: 1.3;
  max-width: 30em;
}
.contact__direct { margin-top: calc(70 * var(--u)); }
.contact__label {
  font-size: max(12px, calc(16 * var(--u)));
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: calc(18 * var(--u));
}
.contact__direct ul { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(12 * var(--u)); }
.contact__direct a {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: max(20px, calc(34 * var(--u)));
  letter-spacing: .01em;
  line-height: 1.15;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.contact__direct a:hover { background-size: 100% 2px; }
.contact__who { display: block; margin-top: 4px; font-size: max(14px, calc(18 * var(--u))); opacity: .75; }
.contact__who:empty { display: none; }

.contact__box {
  /* Das Formular wächst ab ca. 1440 px Fensterbreite nicht weiter mit */
  --u: clamp(0.62px, calc(100vw / 1920), 0.75px);
  width: 100%;
  max-width: 820px;
  justify-self: end;
  padding: calc(64 * var(--u));
  border-radius: var(--radius);
  background: rgba(11, 7, 13, .38);
  border: 1px solid rgba(255, 240, 225, .12);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(40 * var(--u)) calc(30 * var(--u));
}
.form__field { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form__field--full { grid-column: 1 / -1; }
.form__field > span, .form__field legend span {
  font-size: max(12px, calc(16 * var(--u)));
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
}
.form__field legend { padding: 0; margin-bottom: 12px; }
.form input:not([type="checkbox"]):not([type="hidden"]), .form textarea {
  width: 100%;
  font: inherit;
  font-size: max(16px, calc(22 * var(--u)));
  letter-spacing: var(--track-text);
  color: var(--cream);
  background: rgba(255, 240, 225, .06);
  border: 1.5px solid rgba(255, 240, 225, .28);
  border-radius: max(10px, calc(14 * var(--u)));
  padding: max(13px, calc(18 * var(--u))) max(14px, calc(22 * var(--u)));
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.form textarea { resize: vertical; min-height: max(150px, calc(220 * var(--u))); line-height: 1.35; }
.form input:not([type="checkbox"]):hover, .form textarea:hover { border-color: rgba(255, 240, 225, .5); }
.form input:not([type="checkbox"]):focus, .form textarea:focus {
  outline: none;
  border-color: var(--cream);
  background: rgba(255, 240, 225, .1);
  box-shadow: 0 0 0 4px rgba(255, 240, 225, .1);
}
.form .is-invalid input:not([type="checkbox"]), .form .is-invalid textarea { border-color: var(--orange); }
.form .form__field.is-invalid > span { color: var(--orange); opacity: 1; }
.form[hidden] { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: max(9px, calc(13 * var(--u))) max(18px, calc(28 * var(--u)));
  border: 1.5px solid rgba(255, 240, 225, .4);
  border-radius: 999px;
  font-size: max(14px, calc(19 * var(--u)));
  transition: background .3s, border-color .3s, color .3s;
}
.chip:hover span { border-color: var(--cream); }
.chip input:checked + span { background: var(--orange); border-color: var(--orange); }
.chip input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 3px; }

.consent {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  cursor: pointer;
  font-size: max(13px, calc(17 * var(--u)));
  line-height: 1.4;
  opacity: .9;
}
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box {
  width: 22px; height: 22px; margin-top: 1px;
  border: 1.5px solid rgba(255, 240, 225, .55);
  border-radius: 6px;
  transition: background .25s, border-color .25s;
}
.consent input:checked + .consent__box {
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff0e1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
  border-color: var(--orange);
}
.consent input:focus-visible + .consent__box { outline: 2px solid var(--cream); outline-offset: 3px; }
.consent.is-invalid .consent__box { border-color: var(--orange); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: calc(10 * var(--u)); }
.form__submit {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: max(14px, calc(19 * var(--u)));
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--orange);
  border: 0;
  border-radius: 999px;
  padding: max(16px, calc(24 * var(--u))) max(32px, calc(52 * var(--u)));
  cursor: pointer;
  transition: transform .5s var(--ease-out), filter .3s;
}
.form__submit:hover { transform: scale(1.04); filter: brightness(1.08); }
.form__submit:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.form__submit:disabled { opacity: .6; cursor: wait; transform: none; }
.form__status { font-size: max(14px, calc(18 * var(--u))); opacity: .85; }
.form__status.is-error { color: var(--cream); opacity: 1; }
.form__status.is-error::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 10px; vertical-align: middle; }
.form__status a { text-decoration: underline; }

.form-done { padding: calc(60 * var(--u)) 0; outline: none; }
.form-done h2 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: max(36px, calc(80 * var(--u))); line-height: 1;
}
.form-done p { margin-top: calc(40 * var(--u)); font-size: max(16px, calc(24.5 * var(--u))); line-height: 1.3; max-width: 26em; }
.form-done:not([hidden]) { animation: doneIn .8s var(--ease-out) both; }
@keyframes doneIn { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; row-gap: 40px; padding: 48px var(--gutter) 80px; }
  .contact__intro { position: static; padding: 0 6px; }
  .contact__text { margin-top: 36px; }
  .contact__box { padding: 22px 18px 26px; }
  .form { grid-template-columns: 1fr; gap: 22px; }
  .form__submit { width: 100%; }
}

/* ---------------------------------------------------------
   FOTO
   --------------------------------------------------------- */
.foto-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: calc(140 * var(--u));
  padding: calc(150 * var(--u)) var(--inset) calc(110 * var(--u));
}
.foto-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: max(64px, calc(210 * var(--u)));
  line-height: .9;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.foto-title span { position: relative; }
.foto-title .brush {
  position: absolute; left: -.1em; bottom: -.14em;
  width: calc(100% + .2em); height: .46em; max-width: none;
}
.foto-lead {
  max-width: 34em;
  justify-self: end;
  font-size: max(16px, calc(26 * var(--u)));
  line-height: 1.3;
  padding-bottom: .4em;
}

/* Laufband mit ausgewählten Fotos */
.foto-reel {
  --h: clamp(220px, calc(560 * var(--u)), 720px);
  --g: max(10px, calc(20 * var(--u)));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.foto-reel__track { display: flex; width: max-content; animation: fotoReel var(--dauer, 80s) linear infinite; }
.foto-reel:hover .foto-reel__track, .foto-reel:focus-within .foto-reel__track { animation-play-state: paused; }
.foto-reel__group { display: flex; gap: var(--g); padding-right: var(--g); }
.foto-reel__item {
  height: var(--h);
  aspect-ratio: var(--r);
  padding: 0; border: 0; background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.foto-reel__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.foto-reel__item:hover img { transform: scale(1.04); }
.foto-reel__item:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
@keyframes fotoReel { to { transform: translateX(-50%); } }
.foto-reel.is-static { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
.foto-reel.is-static .foto-reel__track { animation: none; }
.foto-reel.is-static .foto-reel__group[aria-hidden] { display: none; }

/* Archiv: Filter + bündiges Raster */
.foto-archiv { padding: calc(30 * var(--u)) var(--gutter) 0; }
.foto-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 30px;
  padding: 0 calc(var(--inset) - var(--gutter)) calc(56 * var(--u));
}
.foto-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.chip--btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; }
.chip--btn[aria-pressed="true"] span { background: var(--orange); border-color: var(--orange); }
.chip--btn:focus-visible span { outline: 2px solid var(--cream); outline-offset: 3px; }
.foto-count { font-size: max(12px, calc(16 * var(--u))); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }

.foto-grid {
  --gap: max(8px, calc(16 * var(--u)));
  --col: clamp(150px, calc(400 * var(--u)), 460px);
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
  transition: opacity .22s ease;
}
.foto-grid.is-switching { opacity: 0; }
.foto-col { display: grid; gap: var(--gap); }
.foto-item {
  display: block; width: 100%;
  padding: 0; border: 0;
  background: rgba(11, 7, 13, .5);
  border-radius: max(6px, calc(10 * var(--u)));
  overflow: hidden;
  cursor: zoom-in;
}
.foto-item img { width: 100%; height: 100%; object-fit: cover; }
.foto-item:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.foto-credit {
  padding: calc(40 * var(--u)) calc(var(--inset) - var(--gutter)) 0;
  font-size: max(13px, calc(17 * var(--u))); opacity: .75; text-align: right;
}

/* Abschluss */
.foto-cta {
  display: grid; justify-items: center; gap: calc(50 * var(--u));
  padding: calc(220 * var(--u)) var(--inset) calc(230 * var(--u));
  text-align: center;
}
.foto-cta p {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: max(28px, calc(64 * var(--u))); line-height: 1.05;
  max-width: 14em; text-wrap: balance;
}
.brush-link--cta { font-size: max(17px, calc(28 * var(--u))); }
.brush-link--cta .brush--uber { width: 7.4em; }

/* Großansicht */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(11, 7, 13, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; padding: 72px clamp(16px, 7vw, 120px) 84px; }
.lightbox__img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  border-radius: max(8px, calc(12 * var(--u)));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transition: opacity .25s ease, transform .4s var(--ease-out);
}
.lightbox.is-loading .lightbox__img { opacity: .35; transform: scale(.985); }
.lightbox__bar {
  position: absolute; left: 0; right: 0; bottom: 26px;
  display: flex; justify-content: center; gap: 22px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.lightbox__cat { opacity: .75; }
.lightbox__cat:empty { display: none; }
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; padding: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 240, 225, .4);
  background: rgba(11, 7, 13, .35);
  color: var(--cream); cursor: pointer;
  transition: background .3s, border-color .3s;
}
.lightbox__btn svg { width: 100%; height: 100%; display: block; }
.lightbox__btn:hover { background: var(--orange); border-color: var(--orange); }
.lightbox__prev { left: clamp(10px, 2.2vw, 40px); }
.lightbox__next { right: clamp(10px, 2.2vw, 40px); }
.lightbox__close {
  position: absolute; top: 20px; right: clamp(16px, 2.2vw, 40px);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 240, 225, .4);
  background: none; color: var(--cream);
  font: inherit; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: background .3s, border-color .3s;
}
.lightbox__close:hover { background: var(--orange); border-color: var(--orange); }
.lightbox button:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

@media (max-width: 860px) {
  .foto-intro { grid-template-columns: 1fr; row-gap: 34px; padding: 56px var(--gutter) 44px; }
  .foto-intro > * { padding-left: 6px; }
  .foto-title { font-size: min(26vw, 120px); }
  .foto-lead { justify-self: start; }
  .foto-archiv { padding-top: 64px; }
  .foto-bar { padding: 0 6px 22px; }
  .foto-item__cat { display: none; }
  .foto-cta { padding: 100px var(--gutter) 110px; }
  .lightbox__btn { display: none; }
  .lightbox__stage { padding: 64px 10px 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track, .clients__track { animation-duration: 120s; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .work-card__title .brush { clip-path: none; transition: none; }
  .intro__copy { --p: 1 !important; }
}
.foto-bar[hidden] { display: none; }
