/* Study: coming soon — the chimera from The Crisis of the Modern World gallops in place (8 drawings, 10 a second,
   as in the reference), with one line beneath it in the site's title type */
html body #app main.studyp{display:flex!important;align-items:center;justify-content:center;min-height:calc(100vh - 120px)}
.soonp{display:flex;flex-direction:column;align-items:center;gap:clamp(18px,3vh,30px);text-align:center}
.gallop{--w:clamp(220px,24vw,360px);width:var(--w);aspect-ratio:573/418;background:url("img/gallop/chimera.png?v=1") 0 0/800% 100% no-repeat;
  animation:gallop .8s steps(8) infinite;mix-blend-mode:multiply}
@keyframes gallop{to{background-position:114.2857% 0}}
html body #app .soonp .soon{margin:0!important;font:400 clamp(17px,1.5vw,21px)/1.2 "Times New Roman",Times,Tinos,serif!important;
  text-transform:uppercase;letter-spacing:.14em;color:var(--ink)!important}
html.night .gallop{mix-blend-mode:normal;filter:brightness(1.15)}
@media (prefers-reduced-motion:reduce){.gallop{animation:none}}
/* smaller, in the exact centre of the screen */
.soonp{position:fixed;inset:0;justify-content:center;pointer-events:none;z-index:1;gap:clamp(14px,2.2vh,22px)}
.gallop{--w:clamp(130px,11vw,170px)}
/* the line types itself out, letter by letter; once it is complete, a thin caret blinks at its end */
html body #app .soonp .soon{font-size:clamp(14px,1.1vw,16px)!important;white-space:nowrap;display:flex;align-items:center}
.soonp .soon span{opacity:0;animation:soon-type .01s linear var(--d) forwards}
@keyframes soon-type{to{opacity:1}}
.soonp .soon .caret{display:inline-block;width:1px;height:1.05em;margin-left:3px;background:currentColor;opacity:0;
  animation:soon-caret 1s steps(1) var(--d) infinite}
@keyframes soon-caret{0%{opacity:1}50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.soonp .soon span{opacity:1;animation:none}.soonp .soon .caret{display:none}}
/* the line reads "Coming soon": a capital at the start, the rest in lower case */
html body #app .soonp .soon{text-transform:none!important;letter-spacing:.01em!important;font-size:clamp(17px,1.35vw,20px)!important}

/* ===== Study: coming soon — the rosette from The Reign of Quantity as a phenakistiscope disc (after the Victorian spinning
   discs): its three rings cut apart by radius and turning in steps, ten a second. The spiral turns one way, the ring of
   roundels the other, the petal cells slowly with the spiral. img/soon/rosette.webp is the rosette centred in a square. ===== */
.spin{--w:clamp(150px,13vw,200px);position:relative;width:var(--w);aspect-ratio:1;mix-blend-mode:multiply}
.spin i{position:absolute;inset:0;background:url("img/soon/rosette.webp?v=1") center/100% 100% no-repeat;will-change:transform}
html.night .spin{mix-blend-mode:normal}
html.night .spin i{background-image:url("img/soon/rosette-spin.webp?v=2")}
/* the cuts, as fractions of the disc's radius (farthest-side = half the square): spiral < 35%, everything beyond it */
.spin-core{-webkit-mask:radial-gradient(circle farthest-side,#000 34.6%,transparent 35.2%);mask:radial-gradient(circle farthest-side,#000 34.6%,transparent 35.2%);
  animation:spin-cw 4s steps(40) infinite}
/* the petal cells grow out of the dotted band's hand-drawn, not-quite-round edge, so no cut there was clean. In
   img/soon/rosette-spin.webp the drawing is eased in or out along each radius (a few pixels at most) until that edge line
   is a true circle at 65.4% of the radius; the band and the cells are cut apart down the middle of the line, so its two
   halves meet at any turn and nothing is redrawn. The spiral is cut free along the empty ring around it. */
.spin-mid{-webkit-mask:radial-gradient(circle farthest-side,transparent 35%,#000 35.6%,#000 65.5%,transparent 65.8%);mask:radial-gradient(circle farthest-side,transparent 35%,#000 35.6%,#000 65.5%,transparent 65.8%);
  animation:spin-ccw 12s steps(120) infinite}
.spin-out{-webkit-mask:radial-gradient(circle farthest-side,transparent 65%,#000 65.3%);mask:radial-gradient(circle farthest-side,transparent 65%,#000 65.3%);
  animation:spin-cw 16s steps(160) infinite}
@keyframes spin-cw{to{transform:rotate(360deg)}}
@keyframes spin-ccw{to{transform:rotate(-360deg)}}
@media (prefers-reduced-motion:reduce){.spin i{animation:none}}
/* small on the page, so the thicker drawing (the night copy's weight) reads in day too; a little larger than the chimera was */
.spin{--w:clamp(180px,15vw,240px)}
.spin i{background-image:url("img/soon/rosette-spin.webp?v=2")}
/* smaller: about the chimera's old size */
.spin{--w:clamp(120px,10vw,160px)}
/* hand-drawn: the whole drawing "boils" — three slightly different tracings of every line, about eight a second, as in
   traced animation (filters in the page: #boil0–2) */
.spin{animation:spin-boil .375s steps(1) infinite}
@keyframes spin-boil{0%{filter:url(#boil0)}33.3%{filter:url(#boil1)}66.6%{filter:url(#boil2)}}
@media (prefers-reduced-motion:reduce){.spin{animation:none}}
