.str-stage {
  position:relative; display:block; width:100%; height:100%; overflow:hidden;
  isolation:isolate; container-type:inline-size; background:#2a302d;
  --str-time:5.8s;
}
.str-img,.str-paper-left,.str-paper-right,.str-zip-left,.str-zip-right {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;
}
.str-stage .animate {
  animation-duration:var(--str-time); animation-iteration-count:infinite;
  animation-timing-function:cubic-bezier(.45,.04,.22,1);
}

.str-paper-left { clip-path:polygon(0 0,55% 0,53% 12%,56% 22%,51% 33%,53% 45%,47% 58%,50% 71%,45% 82%,47% 91%,43% 100%,0 100%); transform-origin:12% 34%; animation-name:str-tear-left; background:#f0e7d9; }
.str-paper-right { clip-path:polygon(55% 0,100% 0,100% 100%,43% 100%,47% 91%,45% 82%,50% 71%,47% 58%,53% 45%,51% 33%,56% 22%,53% 12%); transform-origin:90% 62%; animation-name:str-tear-right; background:#ded4bf; }
.str-paper-left img { clip-path:polygon(0 0,54.4% 0,52.4% 12%,55.4% 22%,50.4% 33%,52.4% 45%,46.4% 58%,49.4% 71%,44.4% 82%,46.4% 91%,42.4% 100%,0 100%); }
@keyframes str-tear-left { 0%,14%,100%{transform:none} 32%{transform:translate(-7%,2%) rotate(-5deg)} 52%,75%{transform:translateX(-69%) rotate(-13deg)} }
@keyframes str-tear-right { 0%,14%,100%{transform:none} 32%{transform:translate(5%,-2%) rotate(4deg)} 52%,75%{transform:translateX(72%) rotate(15deg)} }

.str-cube { perspective:430px; background:radial-gradient(ellipse at 50% 20%,#dae1d6,#758577); }
.str-block { position:absolute; inset:13% 14%; transform-style:preserve-3d; transform:translateZ(-36cqw); animation-name:str-quarter; }
.str-face { position:absolute; inset:0; backface-visibility:hidden; }
.str-front { transform:rotateY(0deg) translateZ(36cqw); }
.str-side { transform:rotateY(90deg) translateZ(36cqw); }
.str-face:after { content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 1px #fffa; }
@keyframes str-quarter { 0%,12%,100%{transform:translateZ(-36cqw) rotateY(0)} 49%,75%{transform:translateZ(-36cqw) rotateY(-90deg)} }

.str-whip-a,.str-whip-b { transform:scale(1.12); }
.str-whip-a { animation-name:str-pan-a; }.str-whip-b { opacity:0;animation-name:str-pan-b; }
@keyframes str-pan-a {
  0%,26%,100%{opacity:1;transform:scale(1.12);filter:none}
  40%,73%{opacity:0;transform:translateX(-20%) scale(1.62,1.12);filter:blur(5px)}
  85%{opacity:1;transform:translateX(-12%) scale(1.48,1.12);filter:blur(4px)}
}
@keyframes str-pan-b {
  0%,27%,100%{opacity:0;transform:translateX(20%) scale(1.6,1.12);filter:blur(6px)}
  40%{opacity:1;transform:translateX(9%) scale(1.4,1.12);filter:blur(3px)}
  49%,72%{opacity:1;transform:scale(1.12);filter:none}
  87%{opacity:0;transform:translateX(20%) scale(1.6,1.12);filter:blur(6px)}
}

@property --str-bearing { syntax:"<angle>";inherits:false;initial-value:0deg; }
.str-clock-face { mask-image:conic-gradient(#000 0 var(--str-bearing),transparent var(--str-bearing) 360deg);animation-name:str-clock; }
.str-hand { position:absolute;top:-30%;height:80%;left:50%;width:2px;background:#f2e6c4;box-shadow:0 0 2px #423b29;transform-origin:50% 100%;animation-name:str-hand; }
@keyframes str-clock { 0%,13%,100%{--str-bearing:0deg} 56%,74%{--str-bearing:360deg} }
@keyframes str-hand { 0%,13%,100%{transform:rotate(0);opacity:.75} 56%,74%{transform:rotate(360deg);opacity:.75} }

.str-rewind .str-back-1,.str-rewind .str-back-2,.str-rewind .str-back-3 { opacity:0;animation-timing-function:steps(1,end); }
.str-back-1 {animation-name:str-rec-one}.str-back-2 {animation-name:str-rec-two}.str-back-3 {animation-name:str-rec-three}
.str-rewind-meter {position:absolute;left:9%;bottom:8%;height:3px;width:82%;transform-origin:left;background:#efdca3;box-shadow:0 1px 2px #27251c77;animation-name:str-reverse-meter}
@keyframes str-rec-one { 0%,31%,88%,100%{opacity:0} 22%,80%{opacity:1} }
@keyframes str-rec-two { 0%,43%,80%,100%{opacity:0} 31%,74%{opacity:1} }
@keyframes str-rec-three { 0%,74%,100%{opacity:0} 43%{opacity:1} }
@keyframes str-reverse-meter { 0%,20%,100%{transform:scaleX(1)} 45%,70%{transform:scaleX(.07)} }

.str-shadow-next { opacity:0;animation-name:str-hidden-cut; }
.str-pillar { position:absolute;inset:-26% -22%;background:linear-gradient(90deg,transparent,#131c19 10% 89%,transparent);transform:translateX(110%) skew(-9deg);animation-name:str-foreground; }
@keyframes str-hidden-cut { 0%,35%,85%,100%{opacity:0} 36%,84%{opacity:1} }
@keyframes str-foreground {
  0%,16%,100%{transform:translateX(110%) skew(-9deg)}
  33%,37%{transform:translateX(0) skew(-9deg)}
  54%,69%{transform:translateX(-110%) skew(-9deg)}
  83%,86%{transform:translateX(0) skew(-9deg)}
}

.str-pixel-next,.str-pixel-img { opacity:0; }
.str-pixel-img { image-rendering:pixelated; }
.str-px-a { animation-name:str-rough-a; }.str-px-b { animation-name:str-rough-b; }.str-pixel-next { animation-name:str-px-finish; }
@keyframes str-rough-a { 0%,12%,52%,76%,100%{opacity:0} 27%,38%,89%{opacity:1} }
@keyframes str-rough-b { 0%,30%,59%,70%,97%,100%{opacity:0} 42%,49%,83%{opacity:1} }
@keyframes str-px-finish { 0%,42%,91%,100%{opacity:0} 47%,84%{opacity:1} }

.str-zip-left { clip-path:polygon(0 0,50% 0,50% 100%,0 100%);animation-name:str-unzip-left; }
.str-zip-right { clip-path:polygon(50% 0,100% 0,100% 100%,50% 100%);animation-name:str-unzip-right; }
.str-zip-left:after,.str-zip-right:after { content:"";position:absolute;top:0;bottom:0;left:calc(50% - 1px);width:2px;background:repeating-linear-gradient(#e9e7dd 0 2px,#554e45 2px 4px); }
.str-zip-pull { position:absolute;bottom:3%;left:calc(50% - 3px);width:6px;height:12px;background:#dbcdb1;border:1px solid #524a3e;border-radius:2px 2px 4px 4px;box-shadow:1px 2px 2px #211b1755;animation-name:str-slider; }
@keyframes str-unzip-left { 0%,12%,100%{clip-path:polygon(0 0,50% 0,50% 100%,50% 100%,0 100%)} 40%{clip-path:polygon(0 0,50% 0,50% 38%,15% 100%,0 100%)} 60%,75%{clip-path:polygon(0 0,0 0,0 0,0 100%,0 100%)} }
@keyframes str-unzip-right { 0%,12%,100%{clip-path:polygon(50% 0,100% 0,100% 100%,50% 100%,50% 100%)} 40%{clip-path:polygon(50% 0,100% 0,100% 100%,85% 100%,50% 38%)} 60%,75%{clip-path:polygon(100% 0,100% 0,100% 100%,100% 100%,100% 0)} }
@keyframes str-slider { 0%,12%,100%{bottom:3%;opacity:1} 40%{bottom:60%;opacity:1} 60%,75%{bottom:103%;opacity:0} }

.str-band { position:absolute;top:calc(var(--i) * 100% / 9);left:-4%;width:108%;height:calc(100% / 9 + .5px);opacity:0;background:url("residences/images/skyline.webp") center var(--at) / 100% 900%;animation-name:str-waves;animation-delay:calc(var(--i) * .095s); }
@keyframes str-waves { 0%,13%,100%{opacity:0;transform:translateX(0)} 28%{opacity:.9;transform:translateX(3.7%)} 39%{opacity:1;transform:translateX(-2.5%)} 51%,71%{opacity:1;transform:translateX(0)} 85%{opacity:.25;transform:translateX(-3%)} }

.str-glass-next { clip-path:inset(0 100% 0 0);animation-name:str-prism-cut; }
.str-edge { position:absolute;top:0;bottom:0;width:17%;left:-17%;overflow:hidden;transform:skewX(-4deg);box-shadow:-1px 0 #faf4db99,2px 0 #12394955;animation-name:str-prism-pass; }
.str-prism-core { display:block;width:100%;height:100%;background:linear-gradient(90deg,#80b1b46b,transparent 42%,#f9ddb770),url("residences/images/walk.webp") 0 49% / auto 132%;filter:contrast(1.15) saturate(.75);animation-name:str-prism-reflect; }
@keyframes str-prism-pass {0%,13%,100%{left:-17%} 58%,76%{left:100%}}
@keyframes str-prism-cut {0%,16%,100%{clip-path:inset(0 100% 0 0)} 55%,76%{clip-path:inset(0 0 0 0)}}
@keyframes str-prism-reflect {0%,13%,100%{background-position:0 0,0% 49%} 58%,76%{background-position:0 0,100% 49%}}
