/* People home "Chapters", frame 05: "One fan's journey" (DM automation).
   Hand-written (not generated). Every rule sits under .pch .dj
   (modules/home/chapters/frames/Frame05Reply.tsx). The desktop phone
   screens are authored at 390x844; phones and tablets use a compact
   280x584 screen with larger type (the block at the end), so the whole
   phone fits under the step copy and its text stays readable. Each phone
   is scaled as one device. With html.pch-motion: one sticky stage that
   engine/dmjourney.js scrubs with the scroll, copy beside the phone on
   desktop (1024px and up), above it on phones and tablets. Without it
   (reduced motion, ?still=1): the stage's finished frame on desktop, the
   five steps as a list of finished frames on phones and tablets. */

.bz2:where(.pch) .dj {
  --dk: #0a0a0a;
  --dg5: #5f5f5c;
  --dg4: #71716e;
  --dg3: #a3a3a0;
  --dg2: #e6e6e3;
  --dg1: #f7f7f5;
  --dig: #737373;
  --dline: #efefef;
  --dblue: #0095f6;
  --dok: #16a34a;
}
.bz2:where(.pch) .pj-sec.am-sec.dj {
  overflow: clip;
  display: block;
  min-height: 0;
  padding: 0;
}
.bz2:where(.pch) .dj-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.bz2:where(.pch) .dj :where(ol, ul, li) {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- the step copy ---------- */
.bz2:where(.pch) .dj-num {
  margin: 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--dg4);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.bz2:where(.pch) .dj-num b {
  font-weight: 600;
  color: var(--dk);
}
.bz2:where(.pch) .dj-heads {
  display: grid;
  margin-top: 18px;
}
.bz2:where(.pch) .dj-hd {
  grid-area: 1 / 1;
}
.bz2:where(.pch) .dj-hd .pj-p {
  margin-top: 16px;
  text-wrap: pretty;
}
.bz2:where(.pch) .dj-rail {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}
.bz2:where(.pch) .dj-rail li {
  flex: 1;
  min-width: 0;
}
.bz2:where(.pch) .dj-rail i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--dg2);
  overflow: hidden;
}
.bz2:where(.pch) .dj-rail b {
  display: block;
  height: 100%;
  background: var(--dk);
  transform-origin: 0 50%;
}
.bz2:where(.pch) .dj-rail span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--dg3);
  white-space: nowrap;
}
.bz2:where(.pch) .dj-rail .is-cur span {
  color: var(--dk);
}
.bz2:where(.pch) .dj-any {
  margin-top: 48px;
}
.bz2:where(.pch) .dj-anyl {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--dg4);
}
.bz2:where(.pch) .dj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bz2:where(.pch) .dj-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 7px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 12px 26px -16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.07);
  font-size: 14.5px;
  white-space: nowrap;
  color: var(--dk);
}
.bz2:where(.pch) .dj-chip img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.bz2:where(.pch) .dj-chip b {
  font-weight: 600;
}
.bz2:where(.pch) .dj-chip.is-on {
  box-shadow:
    0 0 0 1.5px var(--dk),
    0 14px 28px -16px rgba(0, 0, 0, 0.35);
}
.bz2:where(.pch) .dj-chip.is-off {
  color: var(--dg4);
}
.bz2:where(.pch) .dj-chip.is-off b {
  font-weight: 500;
}

/* ---------- the device ---------- */
.bz2:where(.pch) .dj-dev {
  position: absolute;
  left: 0;
  top: 0;
  width: 414px;
  height: 868px;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 64px;
  background: #0d0d0e;
  transform-origin: 0 0;
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1.5px #2a2a2c;
  color: var(--dk);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: normal;
  letter-spacing: 0;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.bz2:where(.pch) .dj-dev *,
.bz2:where(.pch) .dj-dev ::before,
.bz2:where(.pch) .dj-dev ::after {
  box-sizing: border-box;
}
.bz2:where(.pch) .dj-dev :where(p, b, small, div, span) {
  margin: 0;
  max-width: none;
  text-wrap: wrap;
}
.bz2:where(.pch) .dj-scr {
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 52px;
  overflow: hidden;
  background: #fff;
}
.bz2:where(.pch) .dj-av {
  display: block;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}
.bz2:where(.pch) .dj-ic {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bz2:where(.pch) .dj-vb {
  display: inline-block;
  flex: none;
  vertical-align: -2px;
}
.bz2:where(.pch) .dj-sb {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 30px 0 44px;
  font-size: 17px;
  font-weight: 600;
  z-index: 19;
}
.bz2:where(.pch) .dj-sbr {
  display: flex;
  gap: 6px;
  align-items: center;
}
.bz2:where(.pch) .dj-sb svg {
  display: block;
  fill: currentColor;
}

/* the screens: post (with its sheet), DM, in-app browser */
.bz2:where(.pch) .dj-l1,
.bz2:where(.pch) .dj-dmv,
.bz2:where(.pch) .dj-web {
  position: absolute;
  inset: 0;
  background: #fff;
}
.bz2:where(.pch) .dj-l1 {
  z-index: 1;
}
.bz2:where(.pch) .dj-dmv {
  z-index: 5;
  box-shadow: -18px 0 40px -24px rgba(0, 0, 0, 0.35);
}
.bz2:where(.pch) .dj-web {
  z-index: 6;
}

/* ---------- Instagram post ---------- */
.bz2:where(.pch) .dj-ignav {
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}
.bz2:where(.pch) .dj-ignav .dj-ic {
  position: absolute;
  left: 14px;
  top: 11px;
}
.bz2:where(.pch) .dj-igph {
  position: absolute;
  left: 0;
  right: 0;
  top: 96px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 19px;
}
.bz2:where(.pch) .dj-igav {
  width: 34px;
  height: 34px;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3.5px #d6d6d6;
}
.bz2:where(.pch) .dj-igwho {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bz2:where(.pch) .dj-igph small {
  display: block;
  font-size: 13.6px;
  font-weight: 400;
}
.bz2:where(.pch) .dj-more {
  display: flex;
  margin-left: auto;
}
.bz2:where(.pch) .dj-igimg {
  position: absolute;
  left: 0;
  top: 150px;
  display: block;
  width: 390px;
  height: 430px;
  max-width: none;
  object-fit: cover;
  object-position: 50% 20%;
}
.bz2:where(.pch) .dj-igacts {
  position: absolute;
  left: 0;
  right: 0;
  top: 580px;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}
.bz2:where(.pch) .dj-igacts > span {
  margin-left: -10px;
}
.bz2:where(.pch) .dj-sv {
  margin-left: auto;
}
.bz2:where(.pch) .dj-igcap {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 628px;
  font-size: 15px;
  line-height: 20px;
}
.bz2:where(.pch) .dj-igcap b {
  font-weight: 600;
}
.bz2:where(.pch) .dj-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

/* comments sheet */
.bz2:where(.pch) .dj-sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 200px;
  bottom: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.bz2:where(.pch) .dj-shh {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding-top: 9px;
  font-size: 15px;
  line-height: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--dline);
}
.bz2:where(.pch) .dj-shh::before {
  content: "";
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d4d4d4;
}
.bz2:where(.pch) .dj-cms {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 61px;
}
.bz2:where(.pch) .dj-cm {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 80px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-top: 10px;
}
.bz2:where(.pch) .dj-cm.is-new {
  left: -16px;
  right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  background: linear-gradient(
    90deg,
    rgba(0, 149, 246, 0.07),
    rgba(0, 149, 246, 0)
  );
}
.bz2:where(.pch) .dj-cmav {
  width: 36px;
  height: 36px;
}
.bz2:where(.pch) .dj-cmtx {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 21px;
}
.bz2:where(.pch) .dj-who {
  font-size: 15px;
  font-weight: 600;
}
.bz2:where(.pch) .dj-t {
  margin-left: 6px;
  font-size: 14px;
  color: var(--dig);
}
.bz2:where(.pch) .dj-rl {
  margin-top: 4px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: var(--dig);
}
.bz2:where(.pch) .dj-hr {
  width: 15px;
  height: 15px;
  margin-top: 12px;
  color: var(--dig);
  stroke-width: 2;
}
.bz2:where(.pch) .dj-rp {
  position: absolute;
  left: 48px;
  right: 0;
  top: 2px;
  height: 24px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 15.5px;
  line-height: 20px;
  white-space: nowrap;
}
.bz2:where(.pch) .dj-rp b {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}
.bz2:where(.pch) .dj-rpav {
  width: 24px;
  height: 24px;
}
.bz2:where(.pch) .dj-cmp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 2;
}
.bz2:where(.pch) .dj-emo {
  display: flex;
  justify-content: space-between;
  height: 52px;
  padding: 10px 20px;
  font-size: 25px;
  line-height: 31px;
  border-top: 1px solid var(--dline);
}
.bz2:where(.pch) .dj-cin {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 14px 30px;
}
.bz2:where(.pch) .dj-cinav {
  width: 38px;
  height: 38px;
}
.bz2:where(.pch) .dj-f {
  position: relative;
  flex: 1;
  height: 44px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px #dbdbdb;
  font-size: 15px;
  white-space: nowrap;
}
.bz2:where(.pch) .dj-ph {
  position: absolute;
  left: 16px;
  top: 0;
  line-height: 44px;
  color: var(--dig);
}
.bz2:where(.pch) .dj-typ {
  position: absolute;
  left: 16px;
  top: 0;
  height: 44px;
  display: flex;
  align-items: center;
}
.bz2:where(.pch) .dj-car {
  display: block;
  width: 2px;
  height: 20px;
  margin-left: 1px;
  background: var(--dblue);
}
.bz2:where(.pch) .dj-igpost {
  position: absolute;
  right: 16px;
  top: 0;
  line-height: 44px;
  font-weight: 600;
  color: var(--dblue);
}
.bz2:where(.pch) .dj-kb {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 300px;
  padding: 10px 4px 0;
  background: #d3d5db;
  z-index: 3;
}
.bz2:where(.pch) .dj-kr {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.bz2:where(.pch) .dj-k {
  display: grid;
  place-items: center;
  width: 33px;
  height: 44px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 0 #898a8d;
  font-size: 22px;
  color: #000;
}
.bz2:where(.pch) .dj-kg {
  width: 44px;
  background: #abb0bc;
  font-size: 15px;
}
.bz2:where(.pch) .dj-k123 {
  width: 90px;
}
.bz2:where(.pch) .dj-ksp {
  width: 186px;
  font-size: 16px;
}
.bz2:where(.pch) .dj-krt {
  width: 90px;
  font-size: 16px;
}

/* tap ring */
.bz2:where(.pch) .dj-tap {
  position: absolute;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.16);
  box-shadow:
    0 0 0 2.5px rgba(255, 255, 255, 0.95),
    0 0 0 9px rgba(10, 10, 10, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 30;
}
.bz2:where(.pch) .dj-tap::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.5);
}
.bz2:where(.pch) .dj-tapa {
  left: 50%;
  top: 60%;
}
.bz2:where(.pch) .dj-tapb {
  left: 86%;
  top: 56%;
}
.bz2:where(.pch) .dj-tapc {
  left: 72%;
  top: 56%;
}
.bz2:where(.pch) .dj-press {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.09);
}
.bz2:where(.pch) .dj-pressw {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- DM ---------- */
.bz2:where(.pch) .dj-dmh {
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border-bottom: 1px solid var(--dline);
}
.bz2:where(.pch) .dj-dmhav {
  width: 38px;
  height: 38px;
}
.bz2:where(.pch) .dj-dmn {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  line-height: 19px;
}
.bz2:where(.pch) .dj-dmn b {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.bz2:where(.pch) .dj-dmn span {
  font-size: 13.6px;
  color: var(--dig);
}
.bz2:where(.pch) .dj-dmh .dj-ic {
  width: 26px;
  height: 26px;
}
.bz2:where(.pch) .dj-dmh .dj-ic:first-child {
  width: 24px;
  height: 24px;
}
.bz2:where(.pch) .dj-dpro {
  position: absolute;
  left: 0;
  right: 0;
  top: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  color: var(--dig);
}
.bz2:where(.pch) .dj-dproav {
  width: 92px;
  height: 92px;
}
.bz2:where(.pch) .dj-dpro b {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 19px;
  font-weight: 600;
  color: var(--dk);
}
.bz2:where(.pch) .dj-dpro span {
  margin-top: 3px;
}
.bz2:where(.pch) .dj-dpro .dj-vp {
  margin-top: 12px;
  height: 34px;
  line-height: 34px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--dline);
  color: var(--dk);
  font-weight: 600;
}
.bz2:where(.pch) .dj-msgs {
  position: absolute;
  left: 0;
  right: 0;
  top: 515px;
}
.bz2:where(.pch) .dj-tsd {
  text-align: center;
  font-size: 13.6px;
  line-height: 16px;
  font-weight: 500;
  color: var(--dig);
}
.bz2:where(.pch) .dj-quote {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-top: 16px;
  padding-right: 14px;
  font-size: 13.6px;
  line-height: 17px;
  color: var(--dig);
}
.bz2:where(.pch) .dj-quote div {
  padding: 10px 15px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1.5px #dbdbdb;
  color: var(--dk);
  font-size: 15.5px;
  line-height: 19px;
}
.bz2:where(.pch) .dj-msgw {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  margin-top: 14px;
  padding-left: 14px;
  transform-origin: 14px 100%;
}
.bz2:where(.pch) .dj-msgav {
  width: 30px;
  height: 30px;
}
.bz2:where(.pch) .dj-msg {
  width: 276px;
  padding: 13px 12px 12px 15px;
  border-radius: 24px 24px 24px 8px;
  background: var(--dline);
}
.bz2:where(.pch) .dj-msg p {
  margin: 0 2px 0 0;
  font-size: 16px;
  letter-spacing: -0.2px;
  line-height: 21px;
}
.bz2:where(.pch) .dj-mbtn {
  position: relative;
  display: block;
  margin-top: 12px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  font-size: 15.5px;
  line-height: 44px;
  font-weight: 600;
  text-align: center;
}
.bz2:where(.pch) .dj-mbtn > span,
.bz2:where(.pch) .dj-pbtn > span {
  position: relative;
}
.bz2:where(.pch) .dj-dmc {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 28px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  border-radius: 24px;
  background: #f2f2f2;
  font-size: 15.5px;
}
.bz2:where(.pch) .dj-dcam {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3797f0;
  color: #fff;
}
.bz2:where(.pch) .dj-dcam .dj-ic {
  width: 19px;
  height: 19px;
}
.bz2:where(.pch) .dj-m2 {
  flex: 1;
  color: var(--dig);
}
.bz2:where(.pch) .dj-dmc > .dj-ic {
  width: 23px;
  height: 23px;
}

/* ---------- in-app browser ---------- */
.bz2:where(.pch) .dj-wb {
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--dline);
}
.bz2:where(.pch) .dj-u {
  flex: 1;
  text-align: center;
  line-height: 17px;
}
.bz2:where(.pch) .dj-u b {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 600;
}
.bz2:where(.pch) .dj-u span {
  font-size: 13.6px;
  color: var(--dig);
}
.bz2:where(.pch) .dj-lock {
  width: 13px;
  height: 13px;
  color: var(--dig);
  stroke-width: 2.4;
}
.bz2:where(.pch) .dj-pgb {
  position: absolute;
  left: 0;
  right: 0;
  top: 106px;
  bottom: 0;
  overflow: hidden;
}
.bz2:where(.pch) .dj-pimg {
  display: block;
  width: 100%;
  height: 250px;
  max-width: none;
  object-fit: cover;
  object-position: 50% 22%;
}
.bz2:where(.pch) .dj-pw {
  padding: 18px;
}
.bz2:where(.pch) .dj-pt {
  font-size: 27px;
  line-height: 31px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.bz2:where(.pch) .dj-ps {
  margin-top: 5px;
  font-size: 15px;
  line-height: 21px;
  color: var(--dg4);
}
.bz2:where(.pch) .dj-ord {
  display: grid;
  margin-top: 18px;
}
.bz2:where(.pch) .dj-buy,
.bz2:where(.pch) .dj-done {
  grid-area: 1 / 1;
}
.bz2:where(.pch) .dj-tk {
  border-radius: 18px;
  background: var(--dg1);
  box-shadow: inset 0 0 0 1px var(--dg2);
  overflow: hidden;
}
.bz2:where(.pch) .dj-r {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  font-size: 15px;
  line-height: 21px;
  border-bottom: 1px dashed #d6d6d2;
}
.bz2:where(.pch) .dj-r:last-child {
  border-bottom: 0;
}
.bz2:where(.pch) .dj-r span {
  color: var(--dg4);
}
.bz2:where(.pch) .dj-r b {
  font-weight: 600;
}
.bz2:where(.pch) .dj-rok {
  padding: 16px;
}
.bz2:where(.pch) .dj-okt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.bz2:where(.pch) .dj-okt i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dok);
}
.bz2:where(.pch) .dj-okt svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bz2:where(.pch) .dj-pbtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin-top: 16px;
  border-radius: 14px;
  background: var(--dk);
  color: #fff;
  font-size: 16.5px;
  font-weight: 600;
}
.bz2:where(.pch) .dj-pbtn-gh {
  background: #fff;
  color: var(--dk);
  box-shadow: inset 0 0 0 1px var(--dg2);
}

/* ---------- the stage ---------- */
.bz2:where(.pch) .dj-run {
  position: relative;
}
.bz2:where(.pch) .dj-pin {
  position: relative;
  overflow: hidden;
}
.bz2:where(.pch) .dj-frame {
  position: relative;
  height: 100%;
}
.bz2:where(.pch) .dj-cam {
  position: relative;
}
/* the scrubbed run: the pin plus 440vh of scroll (djpose.ts MAP) */
html.pch-motion .bz2:where(.pch) .dj .dj-run {
  height: calc(540vh - var(--am-hh));
}
html.pch-motion .bz2:where(.pch) .dj .dj-pin {
  position: sticky;
  top: var(--am-hh);
}

/* ---------- desktop: copy and phone side by side ---------- */
@media (min-width: 1024px) {
  .bz2:where(.pch) .dj-listw {
    display: none;
  }
  .bz2:where(.pch) .dj-pin {
    height: calc(100vh - var(--am-hh));
    min-height: 600px;
  }
  /* --djb: the phone's scale, about three quarters of the screen height
     (dmjourney.js sets it exactly; these are the first paint and the
     reduced motion sizes) */
  .bz2:where(.pch) .dj-frame {
    --djb: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(56px, 8vw, 128px);
  }
  .bz2:where(.pch) .dj-copy {
    position: relative;
    flex: none;
    width: min(440px, 42%);
    z-index: 2;
  }
  .bz2:where(.pch) .dj-cam {
    flex: none;
    width: calc(414px * var(--djb));
    height: calc(868px * var(--djb));
    z-index: 1;
  }
  .bz2:where(.pch) .dj-cam > .dj-dev {
    transform: scale(var(--djb));
  }
}
@media (min-width: 1024px) and (min-height: 760px) {
  .bz2:where(.pch) .dj-frame {
    --djb: 0.66;
  }
}
@media (min-width: 1024px) and (min-height: 850px) {
  .bz2:where(.pch) .dj-frame {
    --djb: 0.74;
  }
}
@media (min-width: 1024px) and (min-height: 950px) {
  .bz2:where(.pch) .dj-frame {
    --djb: 0.82;
  }
}
@media (min-width: 1024px) and (min-height: 1050px) {
  .bz2:where(.pch) .dj-frame {
    --djb: 0.9;
  }
}

/* ---------- phones and tablets ---------- */
@media (max-width: 1023px) {
  /* without motion: the list; with motion: the stage */
  .bz2:where(.pch) .dj-run {
    display: none;
  }
  .bz2:where(.pch) .pj-sec.am-sec.dj {
    padding: 72px 0 24px;
  }
  html.pch-motion .bz2:where(.pch) .dj .dj-run {
    display: block;
  }
  html.pch-motion .bz2:where(.pch) .dj .dj-listw {
    display: none;
  }
  html.pch-motion .bz2:where(.pch) .pj-sec.am-sec.dj {
    padding: 0;
  }
  html.pch-motion .bz2:where(.pch) .dj .dj-pin {
    height: calc(100vh - var(--am-hh));
    height: calc(100svh - var(--am-hh));
  }
  .bz2:where(.pch) .dj-frame {
    display: flex;
    flex-direction: column;
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 0 62px;
    box-sizing: border-box;
  }
  .bz2:where(.pch) .dj-copy {
    display: flex;
    flex-direction: column;
    flex: none;
  }
  .bz2:where(.pch) .dj-copy .dj-rail {
    order: -1;
    margin: 0 0 14px;
  }
  .bz2:where(.pch) .dj-copy .dj-num {
    display: none;
  }
  .bz2:where(.pch) .dj-copy .dj-heads {
    margin-top: 0;
  }
  .bz2:where(.pch) .dj-copy .dj-hd .pj-h2 {
    font-size: 28px;
    line-height: 33px;
    letter-spacing: -0.7px;
  }
  .bz2:where(.pch) .dj-copy .dj-hd .pj-p {
    margin-top: 8px;
    font-size: 15px;
    line-height: 21px;
  }
  /* the phone fills what is left; dmjourney.js scales it to fit */
  .bz2:where(.pch) .dj-cam {
    flex: 1 1 0;
    min-height: 0;
    margin-top: 16px;
  }
  .bz2:where(.pch) .dj-any {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    margin: 0;
  }
  .bz2:where(.pch) .dj-any .dj-anyl {
    display: none;
  }
  .bz2:where(.pch) .dj-any .dj-chips {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 7px;
  }
  .bz2:where(.pch) .dj-any .dj-chip[data-dj="chip2"] {
    display: none;
  }
  .bz2:where(.pch) .dj :where(.dj-any, .dj-shotchips) .dj-chip {
    height: 38px;
    padding: 0 12px 0 6px;
    gap: 6px;
    font-size: 14px;
  }
  .bz2:where(.pch) .dj :where(.dj-any, .dj-shotchips) .dj-chip img {
    width: 26px;
    height: 26px;
  }

  /* the list (no motion): every step's phone whole */
  .bz2:where(.pch) .dj-list {
    display: flex;
    flex-direction: column;
    gap: 56px;
    max-width: 560px;
    margin: 0 auto;
  }
  .bz2:where(.pch) .dj-step .dj-rail {
    margin: 0 0 18px;
  }
  .bz2:where(.pch) .dj-step .pj-p {
    margin-top: 10px;
  }
  .bz2:where(.pch) .dj-shot {
    --s: 1;
    position: relative;
    height: calc(604px * var(--s));
    margin-top: 24px;
  }
  .bz2:where(.pch) .dj-step[data-k="4"] .dj-shot {
    height: calc(604px * var(--s) + 58px);
  }
  .bz2:where(.pch) .dj-shot .dj-dev {
    left: calc(50% - 150px * var(--s));
    transform: scale(var(--s));
  }
  .bz2:where(.pch) .dj-shotchips {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .bz2:where(.pch) .dj-shotchips .dj-chips {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 7px;
  }

  /* ---------- the compact phone: a 280x584 screen, type 15px and up ---------- */
  .bz2:where(.pch) .dj-dev {
    width: 300px;
    height: 604px;
    padding: 10px;
    border-radius: 48px;
  }
  .bz2:where(.pch) .dj-scr {
    width: 280px;
    height: 584px;
    border-radius: 39px;
  }
  .bz2:where(.pch) .dj-sb {
    height: 40px;
    padding: 4px 22px 0 32px;
    font-size: 15px;
  }
  .bz2:where(.pch) .dj-sbr {
    gap: 4px;
  }
  .bz2:where(.pch) .dj-sb svg:nth-child(1) {
    width: 16px;
    height: 10px;
  }
  .bz2:where(.pch) .dj-sb svg:nth-child(2) {
    width: 14px;
    height: 10px;
  }
  .bz2:where(.pch) .dj-sb svg:nth-child(3) {
    width: 23px;
    height: 11px;
  }
  .bz2:where(.pch) .dj-ic {
    width: 22px;
    height: 22px;
  }

  /* post */
  .bz2:where(.pch) .dj-ignav {
    top: 40px;
    height: 38px;
    font-size: 16px;
  }
  .bz2:where(.pch) .dj-ignav .dj-ic {
    left: 10px;
    top: 8px;
  }
  .bz2:where(.pch) .dj-igph {
    top: 78px;
    height: 46px;
    gap: 8px;
    padding: 0 12px;
    font-size: 15px;
    line-height: 18px;
  }
  .bz2:where(.pch) .dj-igav {
    width: 30px;
    height: 30px;
  }
  .bz2:where(.pch) .dj-igph small {
    font-size: 15px;
    line-height: 18px;
  }
  .bz2:where(.pch) .dj-igimg {
    top: 124px;
    width: 280px;
    height: 266px;
  }
  .bz2:where(.pch) .dj-igacts {
    top: 390px;
    gap: 13px;
    padding: 10px 12px;
    font-size: 15px;
  }
  .bz2:where(.pch) .dj-igcap {
    left: 12px;
    right: 12px;
    top: 434px;
    font-size: 15px;
    line-height: 20px;
  }

  /* comments sheet */
  .bz2:where(.pch) .dj-sheet {
    top: 112px;
    border-radius: 16px 16px 0 0;
  }
  .bz2:where(.pch) .dj-shh {
    height: 44px;
    gap: 7px;
    padding-top: 7px;
    font-size: 15px;
  }
  .bz2:where(.pch) .dj-shh::before {
    width: 36px;
  }
  .bz2:where(.pch) .dj-cms {
    left: 12px;
    right: 12px;
    top: 50px;
  }
  .bz2:where(.pch) .dj-cm {
    height: 70px;
    gap: 10px;
    padding-top: 8px;
  }
  .bz2:where(.pch) .dj-cm.is-new {
    left: -12px;
    right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .bz2:where(.pch) .dj-cmav {
    width: 30px;
    height: 30px;
  }
  .bz2:where(.pch) .dj-cmtx {
    font-size: 15px;
    line-height: 19px;
  }
  .bz2:where(.pch) .dj-who,
  .bz2:where(.pch) .dj-t {
    font-size: 15px;
  }
  .bz2:where(.pch) .dj-rl {
    margin-top: 2px;
    font-size: 15px;
    line-height: 18px;
  }
  .bz2:where(.pch) .dj-hr {
    width: 14px;
    height: 14px;
    margin-top: 10px;
  }
  /* a public reply: name over text, like Instagram's own replies */
  .bz2:where(.pch) .dj-rp {
    left: 40px;
    top: 0;
    height: 46px;
    gap: 8px;
    align-items: flex-start;
    padding-top: 4px;
    font-size: 15px;
    line-height: 19px;
  }
  .bz2:where(.pch) .dj-rp b {
    display: flex;
  }
  .bz2:where(.pch) .dj-rpav {
    width: 22px;
    height: 22px;
  }
  .bz2:where(.pch) .dj-emo {
    height: 42px;
    padding: 8px 14px;
    font-size: 20px;
    line-height: 26px;
  }
  .bz2:where(.pch) .dj-cin {
    gap: 8px;
    padding: 2px 10px 18px;
  }
  .bz2:where(.pch) .dj-cinav {
    width: 30px;
    height: 30px;
  }
  .bz2:where(.pch) .dj-f {
    height: 38px;
    border-radius: 19px;
    font-size: 15px;
  }
  .bz2:where(.pch) .dj-ph,
  .bz2:where(.pch) .dj-igpost {
    line-height: 38px;
  }
  .bz2:where(.pch) .dj-ph,
  .bz2:where(.pch) .dj-typ {
    left: 13px;
  }
  .bz2:where(.pch) .dj-typ {
    height: 38px;
  }
  .bz2:where(.pch) .dj-car {
    height: 18px;
  }
  .bz2:where(.pch) .dj-igpost {
    right: 13px;
  }
  .bz2:where(.pch) .dj-kb {
    height: 214px;
    padding: 8px 3px 0;
  }
  .bz2:where(.pch) .dj-kr {
    gap: 4px;
    margin-bottom: 9px;
  }
  .bz2:where(.pch) .dj-k {
    width: 23.4px;
    height: 40px;
    border-radius: 5px;
    font-size: 19px;
  }
  .bz2:where(.pch) .dj-kg {
    width: 34px;
    font-size: 15px;
  }
  .bz2:where(.pch) .dj-k123,
  .bz2:where(.pch) .dj-krt {
    width: 62px;
    font-size: 15px;
  }
  .bz2:where(.pch) .dj-ksp {
    width: 130px;
    font-size: 15px;
  }
  .bz2:where(.pch) .dj-tap {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
  }
  .bz2:where(.pch) .dj-tap::after {
    inset: 13px;
  }

  /* DM */
  .bz2:where(.pch) .dj-dmh {
    top: 40px;
    height: 54px;
    gap: 9px;
    padding: 0 12px;
  }
  .bz2:where(.pch) .dj-dmhav {
    width: 32px;
    height: 32px;
  }
  .bz2:where(.pch) .dj-dmn {
    font-size: 15px;
    line-height: 18px;
  }
  .bz2:where(.pch) .dj-dmn span {
    font-size: 15px;
  }
  .bz2:where(.pch) .dj-dmh .dj-ic,
  .bz2:where(.pch) .dj-dmh .dj-ic:first-child {
    width: 22px;
    height: 22px;
  }
  .bz2:where(.pch) .dj-dpro {
    top: 112px;
    font-size: 15px;
  }
  .bz2:where(.pch) .dj-dproav {
    width: 64px;
    height: 64px;
  }
  .bz2:where(.pch) .dj-dpro b {
    margin-top: 8px;
    font-size: 17px;
  }
  .bz2:where(.pch) .dj-dpro .dj-vp {
    display: none;
  }
  .bz2:where(.pch) .dj-msgs {
    top: 248px;
  }
  .bz2:where(.pch) .dj-tsd {
    font-size: 15px;
    line-height: 18px;
  }
  .bz2:where(.pch) .dj-quote {
    gap: 5px;
    margin-top: 12px;
    padding-right: 12px;
    font-size: 15px;
    line-height: 18px;
  }
  .bz2:where(.pch) .dj-quote div {
    padding: 8px 13px;
    border-radius: 19px;
    font-size: 15px;
  }
  .bz2:where(.pch) .dj-msgw {
    gap: 7px;
    margin-top: 10px;
    padding-left: 10px;
    transform-origin: 10px 100%;
  }
  .bz2:where(.pch) .dj-msgav {
    width: 26px;
    height: 26px;
  }
  .bz2:where(.pch) .dj-msg {
    width: 212px;
    padding: 11px 10px 10px 13px;
    border-radius: 20px 20px 20px 7px;
  }
  .bz2:where(.pch) .dj-msg p {
    font-size: 15px;
    line-height: 20px;
  }
  .bz2:where(.pch) .dj-mbtn {
    margin-top: 10px;
    height: 40px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 40px;
  }
  .bz2:where(.pch) .dj-dmc {
    left: 10px;
    right: 10px;
    bottom: 18px;
    height: 42px;
    gap: 9px;
    padding: 0 6px;
    border-radius: 21px;
    font-size: 15px;
  }
  .bz2:where(.pch) .dj-dcam {
    width: 30px;
    height: 30px;
  }
  .bz2:where(.pch) .dj-dcam .dj-ic {
    width: 17px;
    height: 17px;
  }
  .bz2:where(.pch) .dj-dmc > .dj-ic {
    width: 20px;
    height: 20px;
  }

  /* in-app browser */
  .bz2:where(.pch) .dj-wb {
    top: 40px;
    height: 50px;
    gap: 8px;
    padding: 0 12px;
  }
  .bz2:where(.pch) .dj-u {
    line-height: 18px;
  }
  .bz2:where(.pch) .dj-u span {
    font-size: 15px;
  }
  .bz2:where(.pch) .dj-lock {
    width: 12px;
    height: 12px;
  }
  .bz2:where(.pch) .dj-pgb {
    top: 90px;
  }
  .bz2:where(.pch) .dj-pimg {
    height: 128px;
  }
  .bz2:where(.pch) .dj-pw {
    padding: 14px;
  }
  .bz2:where(.pch) .dj-pt {
    font-size: 22px;
    line-height: 26px;
    letter-spacing: -0.4px;
  }
  .bz2:where(.pch) .dj-ps {
    margin-top: 4px;
    line-height: 20px;
  }
  .bz2:where(.pch) .dj-ord {
    margin-top: 12px;
  }
  .bz2:where(.pch) .dj-tk {
    border-radius: 14px;
  }
  .bz2:where(.pch) .dj-r {
    padding: 9px 13px;
    line-height: 20px;
  }
  .bz2:where(.pch) .dj-rok {
    padding: 11px 13px;
  }
  .bz2:where(.pch) .dj-okt {
    gap: 8px;
    font-size: 18px;
  }
  .bz2:where(.pch) .dj-okt i {
    width: 26px;
    height: 26px;
  }
  .bz2:where(.pch) .dj-okt svg {
    width: 15px;
    height: 15px;
  }
  .bz2:where(.pch) .dj-pbtn {
    height: 44px;
    margin-top: 12px;
    border-radius: 12px;
    font-size: 15.5px;
  }
}
@media (max-width: 379px) {
  .bz2:where(.pch) .dj-shot {
    --s: 0.95;
  }
}
