.home-portrait {
  /* The composition removes 456 px above the original 3840 px-wide artwork. */
  --portrait-pixel: calc(var(--portrait-width) / 3840);
  --lineup-top: round(nearest, calc(800 * var(--portrait-pixel)), 2px);
  --lineup-height: round(nearest, calc(844 * var(--portrait-pixel)), 2px);
  --lineup-pixel-y: calc(var(--lineup-height) / 844);
  --cortex-width: round(nearest, calc(1440 * var(--portrait-pixel)), 2px);
  --pixel-top-y: calc(var(--lineup-top) + 184 * var(--lineup-pixel-y));
  /* Keep the same bottom anchor behind Pixel for both Cortex layers. */
  --cortex-top: round(nearest, calc(var(--pixel-top-y) + 171 * var(--portrait-pixel) - var(--cortex-width) * 1331 / 1536), 2px);
  --cortex-left: round(nearest, calc(1889 * var(--portrait-pixel) - var(--cortex-width) * 749.5 / 1536), 2px);
  position: relative;
  width: var(--portrait-width);
  height: round(nearest, calc(1704 * var(--portrait-pixel)), 2px);
  pointer-events: none;
}
.home-portrait-cortex-layer {
  position: absolute;
  inset: 0;
  /* Hide the gold orbit inside Pixel's silhouette, measured on the 4K group artwork. */
  --pixel-top-x: calc(1733 * var(--portrait-pixel));
  clip-path: polygon(evenodd,
    0 0, 100% 0, 100% 100%, 0 100%, 0 0,
    var(--pixel-top-x) var(--pixel-top-y),
    calc(2122 * var(--portrait-pixel)) calc(var(--lineup-top) + 327 * var(--lineup-pixel-y)),
    calc(2163 * var(--portrait-pixel)) calc(var(--lineup-top) + 679 * var(--lineup-pixel-y)),
    calc(2022 * var(--portrait-pixel)) calc(var(--lineup-top) + 794 * var(--lineup-pixel-y)),
    calc(1409 * var(--portrait-pixel)) calc(var(--lineup-top) + 786 * var(--lineup-pixel-y)),
    calc(1575 * var(--portrait-pixel)) calc(var(--lineup-top) + 391 * var(--lineup-pixel-y)),
    var(--pixel-top-x) var(--pixel-top-y)
  );
}
.home-portrait-cortex {
  position: absolute;
  top: var(--cortex-top);
  left: var(--cortex-left);
  width: var(--cortex-width);
  height: auto;
}
.home-portrait-cortex-motion {
  /* Align the resting shell in the 768 px Hello viewport to the existing 1536 px artwork. */
  --live-width: round(nearest, calc(var(--cortex-width) * 1181 / 760 - 4px), 2px);
  --live-height: round(nearest, calc(var(--cortex-width) * 1135 / 772 - 4px), 2px);
  position: absolute;
  width: var(--live-width);
  height: var(--live-height);
  left: round(nearest, calc(var(--cortex-left) + var(--cortex-width) * 159 / 1536 - var(--live-width) * 193 / 768), 2px);
  top: round(nearest, calc(var(--cortex-top) + var(--cortex-width) * 196 / 1536 - var(--live-height) * 188 / 768), 2px);
  visibility: hidden;
}
.home-portrait-cortex-motion > canvas {position: absolute; display: block}
@media (prefers-reduced-motion: no-preference) {
  .home-portrait-cortex-motion.is-rendering {visibility: visible}
  .home-portrait-cortex-motion.is-rendering + .home-portrait-cortex {visibility: hidden}
}
.home-portrait-agents {
  position: absolute;
  top: var(--lineup-top);
  left: 0;
  width: 100%;
  height: var(--lineup-height);
  object-fit: contain;
}
