/* ============================================================
   Projektseite Connectivity
   Hauptbild links, Kornuebergang nach rechts in den Hintergrund,
   darunter Text und Credits. Hintergrund: sehr weicher radialer
   Verlauf in ETAS-Blau und -Lila auf dem Grundton der Seite.
   ============================================================ */



/* ---------- Randbeschriftung ---------- */



/* ---------- Kopfbereich ----------
   Bild des Jungen mittig, rechts laeuft es in eine starke
   Unschaerfe aus. Die Textspalte liegt rechts darueber. */
.cx-hero{position:relative;display:grid;overflow:clip}
.cx-hero > *{grid-area:1 / 1}
.cx-img{
  position:relative;align-self:start;justify-self:center;
  width:min(59vw,108vh);aspect-ratio:1613/1800;
  margin:calc(4vh + 450px) auto 0;
  left:-75px;
}
.cx-img > *{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
/* Parallaxe auf den Ebenen, der Rahmen bleibt ruhig */
.cx-img > *{transform:translate3d(0,var(--py,0px),0);will-change:transform}
/* Uebergang scharf -> unscharf: 112px breit, genau auf der Seitenmitte, aus dem
   16mm-Korn der Hauptseite. Scharfe und unscharfe Ebene teilen sich die
   Kornpunkte exakt, sechs Frames laufen mit 24 Bildern pro Sekunde. */
.cx-img .l-sharp,
.cx-img .l-blur{
  /* Kornstreifen (112px) genau auf der Seitenmitte zentriert */
  -webkit-mask-position:0 0,calc(50% + 75px) 0;   mask-position:0 0,calc(50% + 75px) 0;
  -webkit-mask-size:100% 100%,112px 540px; mask-size:100% 100%,112px 540px;
  -webkit-mask-repeat:no-repeat,repeat-y; mask-repeat:no-repeat,repeat-y;
}
.cx-img .l-sharp{
  -webkit-mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s0.png');
          mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s0.png');
  animation:edgeS .25s steps(1) infinite;
}
.cx-img .l-blur{
  /* groesser als das Bild, das Bild selbst bleibt gleich gross:
     so laeuft die Unschaerfe weich aus statt an der Kante abzubrechen */
  /* Rahmen 120px groesser als das Bild, Inhalt exakt deckungsgleich.
     Breite und Hoehe ausdruecklich setzen: bei Bildern greift sonst die
     Originalgroesse der Datei. */
  top:-120px;left:-120px;right:auto;bottom:auto;
  width:calc(100% + 240px);height:calc(100% + 240px);
  padding:120px;box-sizing:border-box;
  filter:blur(4.6px);              /* erste, leichte Stufe direkt an der Kornkante */
  -webkit-mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b0.png');
          mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b0.png');
  animation:edgeB .25s steps(1) infinite;
}
/* Nach rechts nimmt die Unschaerfe weiter zu: zwei weitere Stufen,
   die weich ueber die rechte Bildhaelfte einblenden */
.cx-img .l-blur2,
.cx-img .l-blur3{
  top:-120px;left:-120px;right:auto;bottom:auto;
  width:calc(100% + 240px);height:calc(100% + 240px);
  padding:120px;box-sizing:border-box;
}
.cx-img .l-blur2{
  filter:blur(9.1px);
  -webkit-mask:linear-gradient(to right,transparent calc(50% + 140px),#000 calc(70% + 140px));
          mask:linear-gradient(to right,transparent calc(50% + 140px),#000 calc(70% + 140px));
}
.cx-img .l-blur3{
  filter:blur(14.3px);
  -webkit-mask:linear-gradient(to right,transparent calc(64% + 140px),#000 calc(86% + 140px));
          mask:linear-gradient(to right,transparent calc(64% + 140px),#000 calc(86% + 140px));
}
@keyframes edgeS{
  0%      {-webkit-mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s0.png');mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s0.png')}
  16.666% {-webkit-mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s1.png');mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s1.png')}
  33.333% {-webkit-mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s2.png');mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s2.png')}
  50%     {-webkit-mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s3.png');mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s3.png')}
  66.666% {-webkit-mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s4.png');mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s4.png')}
  83.333% {-webkit-mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s5.png');mask-image:linear-gradient(to right,#000 calc(50% + 19px),transparent calc(50% + 19px)),url('../img/cx/edge/s5.png')}
}
@keyframes edgeB{
  0%      {-webkit-mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b0.png');mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b0.png')}
  16.666% {-webkit-mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b1.png');mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b1.png')}
  33.333% {-webkit-mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b2.png');mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b2.png')}
  50%     {-webkit-mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b3.png');mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b3.png')}
  66.666% {-webkit-mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b4.png');mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b4.png')}
  83.333% {-webkit-mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b5.png');mask-image:linear-gradient(to right,transparent calc(50% + 131px),#000 calc(50% + 131px)),url('../img/cx/edge/b5.png')}
}
@media (prefers-reduced-motion:reduce){ .cx-img .l-sharp,.cx-img .l-blur{animation:none} }

/* ETAS-Verlauf wie zuvor (Blau oben rechts, Lila unten links), jetzt
   aber nur auf Hoehe des Jungen: ein Band ueber die volle Breite, das
   oben und unten weich ins Schwarz auslaeuft. */
.cx-img::before,
.cx-img::after{
  content:'';position:absolute;top:-34%;bottom:-34%;
  left:calc(50% - 50vw + 75px);width:100vw;      /* volle Fensterbreite */
  /* sehr weicher Auslauf nach oben und unten, in vielen kleinen Stufen */
  -webkit-mask:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.04) 8%,rgba(0,0,0,.14) 16%,rgba(0,0,0,.32) 24%,rgba(0,0,0,.56) 32%,rgba(0,0,0,.80) 40%,#000 47%,#000 53%,rgba(0,0,0,.80) 60%,rgba(0,0,0,.56) 68%,rgba(0,0,0,.32) 76%,rgba(0,0,0,.14) 84%,rgba(0,0,0,.04) 92%,transparent 100%);
          mask:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.04) 8%,rgba(0,0,0,.14) 16%,rgba(0,0,0,.32) 24%,rgba(0,0,0,.56) 32%,rgba(0,0,0,.80) 40%,#000 47%,#000 53%,rgba(0,0,0,.80) 60%,rgba(0,0,0,.56) 68%,rgba(0,0,0,.32) 76%,rgba(0,0,0,.14) 84%,rgba(0,0,0,.04) 92%,transparent 100%);
  transform:translate3d(0,var(--py,0px),0);
  pointer-events:none;
}
.cx-img::before{
  background:
    radial-gradient(60vw 52vw at 82% 30%, rgba(25,55,133,.30) 0%, rgba(25,55,133,0) 70%),
    radial-gradient(54vw 48vw at 12% 72%, rgba(115,28,105,.22) 0%, rgba(115,28,105,0) 72%);
}
/* Dithering: feines Rauschen im Modus Overlay bricht die Stufen im
   dunklen Verlauf auf. Auf dem reinen Schwarz ist es unsichtbar. */
.cx-img::after{
  z-index:0;
  background:url('../img/cx/dither.png') repeat 0 0 / 128px 128px;
  mix-blend-mode:overlay;
}
/* Bildebenen liegen ueber Verlauf und Rauschen */
.cx-img > *{z-index:1}

/* leichter Schein an den Glanzlichtern */
.cx-img .l-glow{mix-blend-mode:screen;opacity:.425;pointer-events:none}

.cx-head{
  position:relative;
  text-align:left;
  margin-bottom:clamp(48px,8vh,110px);
}
.cx-head .w-meta{justify-content:flex-start}
.w-kicker{
  margin-bottom:.6em;line-height:1.4;
  font-family:var(--sans);font-weight:400;
  font-size:var(--fs-h3);letter-spacing:.3em;text-transform:uppercase;
  opacity:.75;
}
.cx-head h1{
  font-family:var(--serif);font-weight:900;
  font-size:clamp(64px,10vw,170px);   /* Humane ist sehr schmal */
  line-height:.9;letter-spacing:.01em;
  text-transform:uppercase;
}
.w-meta{
  display:flex;flex-wrap:wrap;gap:.4em 1.6em;
  margin-top:1.1em;padding-top:.9em;
  border-top:1.225px solid rgba(220,220,220,.28);
  font-family:var(--sans);font-weight:400;
  font-size:var(--fs-h3);letter-spacing:.015em;text-transform:uppercase;
}
.w-meta span{opacity:.78}
.w-meta b{font-weight:400;opacity:.5;margin-right:.5em}
.cx-by{
  margin-top:1.4em;
  font-family:var(--sans);font-weight:600;
  font-size:var(--fs-h2);letter-spacing:.008em;line-height:1.5;
}

/* Textspalte rechts: beginnt einen halben Rasterschritt (5,275vw)
   rechts der Mitte, wie die Spalten der Fussleiste */
.cx-col{
  position:relative;z-index:2;
  margin-left:calc(50% + 5.275vw);
  /* nie breiter als bis zum rechten Seitenrand (gleicher Abstand wie ueberall) */
  width:min(var(--col), calc(50% - 5.275vw - var(--edge-r)));
  padding-top:calc(var(--edge-t) + 22vh - 100px);
}

/* ---------- Fliesstext ---------- */
.cx-body{
  position:relative;z-index:2;
  color:var(--muted);            /* Fliesstext im Grau der Projektliste */
  max-width:var(--col);
  margin:0;
  padding:0 0 clamp(80px,14vh,200px);
  font-family:var(--sans);font-weight:600;
  font-size:var(--fs-h2);letter-spacing:.008em;line-height:1.6;
}
.cx-body .lead{
  color:var(--text);             /* Ueberschrift bleibt weiss */
  font-family:var(--serif);font-weight:900;
  font-size:clamp(26px,2.8vw,48px);
  line-height:1;text-transform:uppercase;letter-spacing:.01em;
  text-align:left;
  white-space:nowrap;            /* eine Zeile */
  margin:100px 0 .45em;          /* 100px tiefer, Absatz dichter dran */
}
.cx-body p + p{margin-top:1em}
.cx-body p.cx-gap{margin-top:clamp(48px,8vh,110px)}
/* Zwischenueberschrift in Schrift und Groesse des Claims */
.cx-body .cx-sub{
  color:var(--text);
  font-family:var(--serif);font-weight:900;
  font-size:clamp(26px,2.8vw,48px);
  line-height:1;text-transform:uppercase;letter-spacing:.01em;
  margin:calc(clamp(48px,8vh,110px) + 100px) 0 0;   /* wie vor dem Claim */
  /* erscheint erst, wenn alle Videos darueber durchgescrollt sind */
  opacity:0;transform:translateY(46px);
  transition:opacity .7s ease,transform .9s cubic-bezier(.22,.9,.24,1);
}
.cx-body .cx-sub.seen,.no-js .cx-body .cx-sub{opacity:1;transform:none}
/* ab dem Behind-the-Scenes-Absatz alles 150px tiefer */
.cx-body p.cx-bts{margin-top:calc(clamp(48px,8vh,110px) + 150px)}
.cx-body blockquote{
  margin:1.4em 0;
  font-family:var(--sans);font-weight:400;font-style:italic;
  opacity:.8;
}

/* Drei Videos bzw. Zeichnungen untereinander in der Textspalte.
   Abstand darueber und darunter wie zwischen den Textbloecken. */
.cx-row{
  margin:clamp(48px,8vh,110px) 0;
  display:grid;grid-template-columns:1fr;
  gap:clamp(8px,1vw,16px);
}
.cx-row video,
.cx-row img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;background:#0d0e10}
.cx-row picture{display:block}
.cx-row img{aspect-ratio:auto;height:auto;object-fit:contain}   /* echtes Seitenverhaeltnis, kein Beschnitt */

/* ---------- Credits wie die Projektliste der Hauptseite ----------
   Funktion klein links, Name gross daneben, gemeinsame Grundlinie.
   Funktionen ab zwei Woertern zweizeilig. */
.cx-credits{margin-top:calc(clamp(48px,8vh,110px) + 100px);color:var(--text)}   /* Credits bleiben wie bisher */
.cr{margin-bottom:.55em;line-height:1.18}
.cr .ro{
  display:inline-block;vertical-align:baseline;
  margin-right:.55em;
  font-family:var(--sans);font-weight:500;
  font-size:calc(var(--fs-h2) * .62);
  letter-spacing:.055em;line-height:1.05;
  text-transform:uppercase;text-align:left;
  opacity:.78;
}
.cr .nm{
  display:inline-block;vertical-align:baseline;
  font-family:var(--serif);font-weight:700;     /* Humane Bold */
  font-size:calc(var(--fs-h2) * 2.4);           /* Humane laeuft sehr schmal */
  line-height:.95;letter-spacing:.01em;
  text-transform:uppercase;
}
.cr-main{margin-bottom:1.6em}
/* uebrige Zeilen: Name zuerst, dann die Funktion */
.cr:not(.cr-main) .ro{margin:0 0 0 .55em}


@media (max-width:900px){
  .cx-img{width:100%;left:0;margin-top:10vh}
  .cx-hero{display:block}
  .cx-col{width:auto;margin:-10vh 0 0;padding:0 var(--edge-r) 0 var(--edge-l)}
}

/* ---------- Glimmen und Cursor-Punkt ---------- */
@media (hover:hover) and (pointer:fine){
  .cr .ro,.cr .nm{cursor:none}
}
.cr .nm{transition:color .5s ease,text-shadow .5s ease,opacity .5s ease}
/* Nur die Namen reagieren; die kleinen Funktionsangaben nicht */
.cr .nm:hover{
  color:var(--hover);text-shadow:var(--glow);opacity:1;
}

/* Videos und Bilder reagieren auf den Zeiger */
.cx-row img{transition:filter .5s ease}
.cx-row img:hover{filter:brightness(1.12)}
@media (hover:hover) and (pointer:fine){ .cx-row img{cursor:none} }



/* ---------- Texte zu den Videos in der linken Spalte ----------
   Beim Ueberfahren eines Videos erscheint links, gespiegelt zur
   Textspalte, ein kurzer Text auf Hoehe des Videos. */
.cx-vids{position:relative}
.cx-hovertext{
  position:absolute;
  color:var(--muted);
  right:calc(100% + 10.55vw);          /* rechte Kante 5,275vw links der Mitte */
  width:min(34vw,var(--col));
  margin:0;
  font-family:var(--sans);font-weight:600;
  font-size:var(--fs-h2);letter-spacing:.008em;line-height:1.6;
  text-align:right;
  transition:top .5s cubic-bezier(.22,.9,.24,1);
}
/* Aufbau in Wortgruppen von zwei bis fuenf Woertern */
.cx-hovertext .ch{
  display:inline;
  opacity:0;filter:blur(4px);
  transition:opacity .22s ease,filter .22s ease;
}
.cx-hovertext .ch.in{opacity:1;filter:none}
@media (max-width:900px){ .cx-hovertext{display:none} }

/* Videos und Bilder erscheinen erst, wenn sie beim Scrollen kurz vor
   der Bildschirmmitte sind. Das jeweils aktive Video laeuft mit voller
   Deckkraft, alle anderen ruhen bei 30 %. */
.cx-row > video,.cx-row > picture{
  opacity:0;transform:translateY(46px);
  transition:opacity .7s ease,transform .9s cubic-bezier(.22,.9,.24,1),filter .5s ease;
}
.cx-row > picture.seen,
.cx-row > video.seen{opacity:1;transform:none}
.cx-vids > video.seen{opacity:.3;transform:none}
.cx-vids > video.seen.playing{opacity:1}
@media (prefers-reduced-motion:reduce){
  .cx-row > video,.cx-row > picture{transform:none;transition:opacity .3s ease}
}

/* nur fuer Screenreader sichtbar */
.sr-only{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* Making-of im Hochformat, so breit wie die Bilder */
.cx-row video.portrait{width:100%;aspect-ratio:9/16;object-fit:cover}

/* ============================================================
   Projekt "Die Geschichte Wuerttembergs" (Installation)
   Gleicher Aufbau wie Connectivity, Verlauf in den Farben des
   Landesmuseums Wuerttemberg: #ffb432 oben rechts, #875023 unten links
   ============================================================ */
/* 40 % groesser als der Connectivity-Verlauf und weicher: der
   Auslauf beginnt frueh und laeuft in vielen Stufen bis ganz aussen */
.cx-panel.lw .cx-img::before{
  background:
    radial-gradient(84vw 72.8vw at 82% 30%,
      rgba(255,180,50,.20) 0%, rgba(255,180,50,.15) 18%, rgba(255,180,50,.09) 38%,
      rgba(255,180,50,.045) 58%, rgba(255,180,50,.015) 78%, rgba(255,180,50,0) 100%),
    radial-gradient(75.6vw 67.2vw at 12% 72%,
      rgba(135,80,35,.34) 0%, rgba(135,80,35,.26) 18%, rgba(135,80,35,.16) 38%,
      rgba(135,80,35,.08) 58%, rgba(135,80,35,.025) 78%, rgba(135,80,35,0) 100%);
}
/* Videoformate: Dokumentation 16:9, Fensterfilm hochkant */
.cx-row video.wide{aspect-ratio:16/9}
.cx-row video.tall{aspect-ratio:3/5}
/* Bildreihen mit zwei bzw. drei Spalten fuer Hochformate */
.cx-row.pair{grid-template-columns:1fr 1fr}
.cx-row.trio{grid-template-columns:repeat(3,1fr)}

/* ---------- Installation: Schatten hinter Milchglas statt Foto ----------
   Die Leinwand ist so breit wie das Fenster und reicht vom oberen Rand des
   Projekts bis weit unter das Bild; oben und unten laeuft das helle Glas
   sehr weich ins Schwarz der Seite aus. */
.cx-img.has-shadow::before,.cx-img.has-shadow::after{display:none}
.cx-img.has-shadow{--ft:calc(4vh + 450px);--fb:200vh;--rt:calc(var(--ft) * 2);--rb:140vh}   /* Uebergaenge doppelt so lang, ueberlappen die Figur */
.cx-img.has-shadow > .shadow-gl{
  position:absolute;inset:auto;z-index:auto;
  left:calc(50% - 50vw + 75px);width:100vw;
  top:calc(-1 * var(--ft));height:calc(100% + var(--ft) + var(--fb));
  display:block;pointer-events:none;
  /* Auslauf ins Schwarz rechnet der Shader (unregelmaessig, ohne Banding) */
}
@media (max-width:900px){
  .cx-img.has-shadow{--ft:32vh;--fb:160vh;margin-top:32vh;--rt:64vh;--rb:110vh}   /* Platz fuer einen weichen Auslauf nach oben */
  .cx-img.has-shadow > .shadow-gl{left:calc(50% - 50vw)}
}
