/* zenja.ai P10A – die Seite steht, das Werk bewegt sich (gang.js, Prinzip «Kraftfluss»).
   Jeder Halt ist eine Ebene über der ganzen Fläche, nur eine ist sichtbar. Die Schrift fährt nicht:
   sie wird an ihrem Platz auf der linken Achse ausgeleuchtet, von der Achse nach rechts, wie ein
   Streiflicht über eine Gravur, Zeile um Zeile. Beim Weggehen erlischt sie, ohne sich zu bewegen. */

html.gang, html.gang body { height:100%; overflow:hidden; overscroll-behavior:none; scroll-snap-type:none; }
html.gang { scroll-behavior:auto; }
html.gang .blatt { position:fixed; inset:0; z-index:3; }
html.gang .gesicht_platz { display:none; }
html.gang .halt { position:absolute; inset:0; min-height:0; visibility:hidden; touch-action:none; }
html.gang .halt.jetzt { visibility:visible; }
html.gang .halt::before { opacity:0; transition:opacity .5s ease; }
html.gang .halt.jetzt::before { opacity:1; transition-delay:.05s; }

/* Ausleuchten: jede Zeile der Tafel einzeln, von der Achse aus */
html.gang .tafel > *, html.gang .tuer_wort > *, html.gang .wink, html.gang .tore, html.gang footer {
  opacity:0; clip-path:inset(0 100% 0 0); filter:brightness(2.2) blur(1.5px);
  transition:opacity .22s ease, clip-path 0s linear .22s, filter 0s linear .22s; }
html.gang .jetzt .tafel > *, html.gang .jetzt .tuer_wort > *, html.gang .jetzt .wink,
html.gang .jetzt .tore, html.gang .jetzt footer {
  opacity:1; clip-path:inset(0 -2% 0 0); filter:none;
  transition:opacity .5s ease, clip-path .9s cubic-bezier(.2,.7,.2,1), filter 1.1s ease; }
html.gang .jetzt :is(.tafel, .tuer_wort) > :nth-child(1) { transition-delay:0s; }
html.gang .jetzt :is(.tafel, .tuer_wort) > :nth-child(2) { transition-delay:.09s; }
html.gang .jetzt :is(.tafel, .tuer_wort) > :nth-child(3) { transition-delay:.18s; }
html.gang .jetzt :is(.tafel, .tuer_wort) > :nth-child(4) { transition-delay:.27s; }
html.gang .jetzt :is(.tafel, .tuer_wort) > :nth-child(n+5) { transition-delay:.36s; }
html.gang .jetzt .tore, html.gang .jetzt footer { transition-delay:.45s; }
/* P10E: fertig ausgeleuchtet (gang.js setzt «hell» am Ende der clip-path-Transition) – kein Clip mehr, nichts wird an
   der Kastenkante abgeschnitten (Simon 11.11.2026 22:20, «Software.» an Halt 6). */
html.gang .jetzt :is(.tafel, .tuer_wort) > .hell, html.gang .jetzt .wink.hell, html.gang .jetzt .tore.hell,
html.gang .jetzt footer.hell, html.gang .jetzt .werke_stand .werk_tafel.da.hell { clip-path:none; }
/* Der Fokusrahmen und Schatten dürfen über die Zeile hinaus */
html.gang .jetzt .weg { clip-path:none; }

/* Die Tür ist der einzige Ort, an dem man liest und ausfüllt: sie rollt in sich, das Blatt nicht. */
html.gang .tuer { overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y; -webkit-overflow-scrolling:touch;
  box-sizing:border-box; }
/* P10D: die Werke stehen übereinander am selben Ort, eines ist ausgeleuchtet (gang.js, zahn()). Kein Band, das rollt. */
html.gang .werke_stand { display:grid; padding:6px var(--achse) 0; touch-action:none; }
html.gang .werke_stand .werk_tafel { grid-area:1 / 1; width:min(100%, 34rem); margin:0;
  opacity:0; clip-path:inset(0 100% 0 0); filter:brightness(2.2) blur(1.5px); visibility:hidden;
  transition:opacity .22s ease, clip-path 0s linear .22s, filter 0s linear .22s, visibility 0s linear .22s; }
html.gang .jetzt .werke_stand .werk_tafel.da { opacity:1; clip-path:inset(0 -2% 0 0); filter:none; visibility:visible;
  transition:opacity .5s ease .12s, clip-path .9s cubic-bezier(.2,.7,.2,1) .12s, filter 1.1s ease .12s, visibility 0s; }
html.gang .werke_stand .werk_tafel img { aspect-ratio:16/9; }
@media (orientation: landscape) { html.gang .werke_stand .werk_tafel { width:min(100%, 40vw, 36rem); } }
@media (max-width: 600px) { html.gang .werke_stand { padding-left:22px; padding-right:22px; } }
html.gang .halt6 { display:flex; }

@media (prefers-reduced-motion: reduce) {
  html.gang .tafel > *, html.gang .tuer_wort > *, html.gang .wink, html.gang .tore, html.gang footer {
    clip-path:none; filter:none; transition:opacity .2s linear !important; }
}
