/* The illustration keeps its existing place; motion stays inside this hero. */
.hero-portrait--lowpoly {
  width:clamp(350px,35vw,540px);
  aspect-ratio:1122/1402;
}
.hero-portrait--lowpoly img,
.hero-portrait--lowpoly .portrait-wind,
.about-portrait--lowpoly img,
.about-portrait--lowpoly .portrait-wind {
  display:block;
  width:100%;
  height:auto;
  filter:brightness(.88) contrast(1.03) saturate(.83);
}
.hero-portrait--lowpoly .portrait-wind,
.about-portrait--lowpoly .portrait-wind {
  position:absolute;
  inset:-4% auto auto -10%;
  right:auto;
  width:120%;
  height:108%;
  opacity:0;
  pointer-events:none;
}
.hero-portrait--lowpoly.is-wind-ready img,
.about-portrait--lowpoly.is-wind-ready img { opacity:0; }
.hero-portrait--lowpoly.is-wind-ready .portrait-wind,
.about-portrait--lowpoly.is-wind-ready .portrait-wind { opacity:1; }
.hero-portrait--lowpoly::after {
  z-index:1;
  background:linear-gradient(180deg,transparent 39%,#08080810 49%,#08080870 64%,#080808df 81%,#080808 96%);
}
@media(min-width:1700px) {
  .hero-portrait--lowpoly { width:550px; }
}
@media(max-width:1050px) {
  .hero-portrait--lowpoly { width:400px; }
}
@media(max-width:700px) {
  .hero-portrait--lowpoly {
    top:10.5%;
    width:320px;
    max-width:96vw;
  }
  .hero-portrait--lowpoly::after {
    background:linear-gradient(180deg,transparent 38%,#08080814 47%,#0808088c 64%,#080808ee 82%,#080808 96%);
  }
}
@media(max-width:370px) {
  .hero-portrait--lowpoly { width:300px; }
}

/* Fit the same animation rig into each existing About portrait area. */
.about-portrait:has(.about-portrait--lowpoly) { container-type:size; }
.about-portrait--lowpoly {
  position:absolute;
  left:50%;
  bottom:0;
  width:min(100cqw,calc(100cqh * .800285307));
  aspect-ratio:1122/1402;
  transform:translateX(-50%);
}
