.chapter{justify-content:flex-start;align-items:flex-end;padding:100px 5vw max(7svh,42px);min-height:100svh}
.chapter .scene-frame{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border-radius:0;overflow:hidden;z-index:-2;container-type:size}
.scene-frame .scene-plane{inset:auto;width:max(100cqw,150cqh);height:auto;aspect-ratio:3/2;left:var(--x,50%);top:var(--y,40%);translate:calc(-1 * var(--x,50%)) calc(-1 * var(--y,40%))}
.chapter::before{background:linear-gradient(0deg,rgba(3,10,16,.93),rgba(3,10,16,.48) 26%,transparent 64%),linear-gradient(90deg,#040c162e,transparent 68%)}
.chapter .words{width:min(68%,780px);max-width:none}
.chapter .words h1,.chapter .words h2{font-size:clamp(2.5rem,4.5vw,5.4rem);max-width:22ch}
.chapter .description{max-width:64ch}
.chapter:nth-child(1){--x:54%;--y:35%}
.chapter:nth-child(2){--x:58%;--y:24%}
.chapter:nth-child(3){--x:47%;--y:22%}
.chapter:nth-child(5){--x:49%;--y:28%}
.chapter:nth-child(6){--x:51%;--y:16%}
.chapter:nth-child(7){--x:65%;--y:36%}
.chapter:nth-child(8){--x:57%;--y:30%}
.chapter:nth-child(9){--x:54%;--y:26%}
.chapter:nth-child(10){--x:70%;--y:25%}
.chapter:nth-child(4) .scene-frame{background:linear-gradient(100deg,#101820 5%,#1d252be8 38%,#0d13177d),url(assets/projekt/schatten.webp) center/cover}
.chapter:nth-child(4) .scene-plane{width:min(60cqw,110cqh);left:auto;right:2%;top:50%;translate:0 -50%}
.chapter:nth-child(4) .words{width:35%}
.chapter:nth-child(4)::before{background:none}
@media(max-width:800px){
 .chapter{justify-content:flex-end;align-items:flex-start;padding:76px 6vw max(70px,9svh)}
 .chapter .words{width:100%}
 .chapter .words h1,.chapter .words h2{font-size:clamp(1.9rem,7vw,3rem)}
 .chapter::before{background:linear-gradient(0deg,#030a10fa 0%,#030a10d9 22%,#030a108a 40%,transparent 66%)}
 .chapter:nth-child(4) .scene-plane{width:min(99cqw,68cqh);right:50%;top:31%;translate:50% -50%}
 .chapter:nth-child(4) .words{width:100%}
}

@media (max-width:800px) and (orientation:portrait) {
.chapter,.chapter:nth-child(4){justify-content:center;gap:clamp(10px,2svh,22px);padding:65px 0 74px}
  .chapter .scene-frame,.chapter:nth-child(4) .scene-frame{position:relative;inset:auto;height:min(66.67vw,38svh);width:100%;flex:none;background:#09131b;z-index:0}
  .chapter .scene-frame .scene-plane,.chapter:nth-child(4) .scene-plane{width:auto;height:100%;inset:0;margin:auto;translate:none;transform:none!important}
  .chapter::before{display:none}.chapter .words,.chapter:nth-child(4) .words{padding:0 6vw}
}

@media (max-width:800px) and (orientation:portrait) {
.chapter,.chapter:nth-child(4){justify-content:flex-end;padding:65px 0 max(72px,9svh)}
.chapter .scene-frame,.chapter:nth-child(4) .scene-frame{position:absolute;inset:0;height:100%;background:var(--portrait) center / 100% max(216.667vw,100%) no-repeat;z-index:-2}
.chapter .scene-frame .scene-plane,.chapter:nth-child(4) .scene-plane{width:100%;height:auto;aspect-ratio:3/2;inset:50% auto auto 0;translate:0 -50%}
.chapter::before,.chapter:nth-child(4)::before{display:block;background:linear-gradient(0deg,#030a10f0,rgba(3,10,16,.68) 24%,transparent 55%)}
}

@media (max-width:800px) and (orientation:portrait){
.chapter .scene-frame,.chapter:nth-child(4) .scene-frame{background-size:cover}.scene-plane .photo-scene{visibility:hidden}
}
