/* Each reply places a photographic cutout at the edge of the same stage. */
.reply-cast {
  position: absolute;
  inset: auto 0 0 auto;
  width: 38%;
  height: min(83svh,64rem);
  pointer-events: none;
  isolation: isolate;
}
.reply-outline { position: absolute; }
.reply-pose {
  position: absolute;
  inset: 0;
  transform-origin: 65% 95%;
  opacity: 0;
  transform: translate(6%,8%) rotate(3deg) scale(.94);
  transition: opacity .4s ease-in, transform .55s ease-in;
}
.reply-pose i {
  display: block;
  width: 100%;
  height: 100%;
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: contain;
  filter: url(#reply-paper-edge);
}
.entry-sequence[data-step="shared"] .pose-shared,
.entry-sequence[data-step="comfortable"] .pose-comfortable,
.entry-sequence[data-step="sharp"] .pose-sharp,
.entry-sequence[data-step="help"] .pose-help {
  transform: none;
  opacity: 1;
  transition: opacity .42s ease-out .08s, transform .82s cubic-bezier(.2,1.1,.28,1) .08s;
}
.pose-shared i { background-image: url("assets/reply-gesture.webp"); }
.pose-comfortable i { background-image: url("assets/reply-open.webp"); }
.pose-sharp i { background-image: url("assets/reply-desk.webp"); }
.pose-help i { background-image: url("assets/reply-coach.webp"); }
.entry-response {
  width: min(62%,59rem);
  justify-self: start;
  margin-inline-start: 2.5%;
}
.entry-response p { max-width: 32em; }
.entry-foot { z-index: 2; }

@media (min-width: 741px), (orientation: landscape) {
  .entry-sequence[data-step="comfortable"] .reply-cast,
  .entry-sequence[data-step="sharp"] .reply-cast { width: 43%; }
  .entry-sequence[data-step="comfortable"] .entry-response,
  .entry-sequence[data-step="sharp"] .entry-response { width: min(57%,56rem); }
}

@media (max-width: 740px) and (orientation: portrait) {
  .entry-sequence { --reply-height: clamp(9rem,38svh,24rem); }
  .entry-sequence:is([data-step="shared"],[data-step="comfortable"],[data-step="sharp"],[data-step="help"]) .entry-composition {
    padding-block: clamp(2rem,6svh,4rem) calc(var(--reply-height) + 4.6rem);
  }
  .entry-response { width: 100%; margin: 0; justify-self: center; }
  .reply-cast {
    width: min(96%,30rem);
    height: var(--reply-height);
    bottom: 3.7rem;
    right: 50%;
    transform: translateX(50%);
    mask-image: linear-gradient(#000 88%,transparent 100%);
    -webkit-mask-image: linear-gradient(#000 88%,transparent 100%);
  }
  .reply-pose { transform: translate(0,10%) rotate(-3deg) scale(.92); }
  .entry-response .entry-actions { margin-top: 1.4rem; }
}
@media (max-height: 475px) and (orientation: landscape) {
  .reply-cast { height: 84svh; }
  .entry-response { margin: 0; }
}
@media (max-width: 740px) and (max-height: 640px) and (orientation: portrait) {
  .entry-sequence { --reply-height: clamp(7rem,32svh,12rem); }
  .entry-response h2 { font-size: clamp(2.75rem,12vw,3.6rem); }
  .entry-response .entry-actions { margin-top: .75rem; }
  .entry-response p { margin-top: .75rem; }
}
