/* The white areas of each alpha mask follow the photograph's actual cut edges.
   Object-position and the scroll transform must agree with house-plates.css. */
:is(.editorial-plate.plate-studio, #house-index .material-slide[data-room="studio"]) {
  --silver-mask: url("/assets/material-studies/studio-reflection.png");
  --silver-angle: 111deg;
}
:is(.editorial-plate.plate-systems, #house-index .material-slide[data-room="systems"]) {
  --silver-mask: url("/assets/material-studies/systems-reflection.png");
  --silver-angle: 74deg;
}

@supports (mask-image: linear-gradient(white,transparent)) or (-webkit-mask-image: linear-gradient(white,transparent)) {
@media screen and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  html:not(.motion-paused,.page-hidden):not(:has(.tool-motion-control[aria-pressed="true"], #house-index[open]))
    .editorial-plate:is(.plate-studio,.plate-systems).light-in-view::after,
  html:not(.motion-paused,.page-hidden):not(:has(.tool-motion-control[aria-pressed="true"])) #house-index[open] .material-plate.light-in-view
    .material-slide:is([data-room="studio"],[data-room="systems"]).exposed::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(var(--silver-angle),
      transparent 32%, rgb(221 223 239 / .10) 39%, rgb(233 235 242 / .26) 45%,
      rgb(251 248 239 / .60) 49.2%, rgb(244 240 231 / .40) 51.1%,
      rgb(235 229 219 / .12) 57%, transparent 65%);
    background-repeat: no-repeat;
    background-size: 280% 100%;
    -webkit-mask: var(--silver-mask) var(--crop-x,50%) var(--crop-y,50%) / cover no-repeat;
    mask: var(--silver-mask) var(--crop-x,50%) var(--crop-y,50%) / cover no-repeat;
    animation: silver-softbox 8s cubic-bezier(.33,.06,.64,.97) infinite;
  }
  @supports (animation-timeline: view()) {
    html:not(.motion-paused,.page-hidden):not(:has(.tool-motion-control[aria-pressed="true"], #house-index[open]))
      body.house-page main .editorial-plate:is(.plate-studio,.plate-systems).light-in-view::after {
      animation: silver-softbox 8s cubic-bezier(.33,.06,.64,.97) infinite,
                 material-plate-travel linear both;
      animation-timeline: auto, --material-travel;
      animation-range: normal, entry 0% exit 100%;
    }
  }
}
}
@keyframes silver-softbox {
  from {background-position: 93% 0}
  84%, to {background-position: 2% 0}
}
