/* Current motion and cover geometry. Loaded after retained design styles. */
@keyframes yermii-ticker-pixels {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(var(--ticker-offset,-1000px),0,0); }
}
.ticker-black .ticker-motion {
  animation:yermii-ticker-pixels var(--ticker-duration,38s) linear infinite!important;
  backface-visibility:hidden;
  will-change:transform;
}
.ticker-black .ticker-set { flex:0 0 auto!important; width:max-content!important; }
.ticker-black { overflow:hidden!important; }
.ticker-pattern .ticker-motion { animation-direction:reverse!important; }
.name-rail { backface-visibility:hidden; -webkit-backface-visibility:hidden; }

/* A finite content block, with no extra viewport reserved for a sticky scene. */
.manifesto { height:auto!important; min-height:0!important; }
.manifesto-sticky {
  position:relative!important;
  top:auto!important;
  height:auto!important;
  min-height:min(82svh,760px)!important;
  padding:clamp(50px,7svh,90px) var(--frame)!important;
  justify-content:center!important;
}
.manifesto-main, .manifesto-quote { translate:none!important; }
.manifesto-line { transition:none!important; }
.manifesto-quote { min-height:1.5em; }

/* All thumbnail frames are square; opened originals retain their proportions. */
.project-stage .project-art,
.portfolio-unified .gallery-stage .gallery-art {
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  overflow:hidden!important;
}
.project-stage .project-art picture { display:block; width:100%; height:100%; }
.project-stage .project-art img,
.portfolio-unified .gallery-stage .gallery-art img {
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  aspect-ratio:auto!important;
}

/* Match the short information blocks: whole paragraphs fade and rise 8px. */
.about-intro, .about-info .about-block { opacity:1!important; transform:none!important; }
.about-intro > .scroll-copy-piece,
.about-info .about-block[data-scroll-type] > .scroll-copy-piece {
  opacity:0!important;
  transform:translate3d(0,8px,0)!important;
  transition:opacity .45s ease-out,transform .6s cubic-bezier(.2,.7,.25,1)!important;
}
.about-intro > .scroll-copy-piece.is-copy-visible,
.about-info .about-block[data-scroll-type] > .scroll-copy-piece.is-copy-visible {
  opacity:1!important;
  transform:none!important;
}

/* Equal 70px/s rates, measured from one complete repeated strip. */
@keyframes yermii-closing-loop {
  from { transform:translate3d(0,0,0); }
  to { transform:translate3d(var(--loop-offset,-1000px),0,0); }
}
.outro-marquee .outro-marquee-inner {
  display:flex!important;
  width:max-content!important;
  gap:0!important;
  animation:yermii-closing-loop var(--loop-duration,24s) linear infinite!important;
  will-change:transform;
  backface-visibility:hidden;
}
.closing-copy { display:block; flex:0 0 auto; white-space:nowrap; }
.outro-marquee.two .outro-marquee-inner { animation-direction:reverse!important; }
.footer-arrow-link:hover .footer-arrow-motion,
.footer-arrow-link:focus-visible .footer-arrow-motion { animation-play-state:paused!important; }

@media(min-width:701px) and (max-width:1024px) {
  .manifesto-sticky { min-height:min(72svh,680px)!important; }
}
@media(max-width:700px) {
  .manifesto-sticky {
    min-height:min(64svh,500px)!important;
    padding:48px 14px!important;
  }
}
@media(prefers-reduced-motion:reduce) {
  .name-rail, .ticker-black .ticker-motion,
  .outro-marquee .outro-marquee-inner, .footer-arrows .footer-arrow-motion {
    animation:none!important;
    transform:none!important;
  }
  .about-intro > .scroll-copy-piece,
  .about-info .about-block[data-scroll-type] > .scroll-copy-piece {
    opacity:1!important; transform:none!important; transition:none!important;
  }
}

/* Footer navigation is still; the contact ribbons above keep moving. */
.footer-arrows .footer-arrow-motion,
.footer-arrows .footer-arrow-track,
.footer-arrows .footer-arrow-track span {
  animation:none!important;
  transform:none!important;
  will-change:auto!important;
}
