/* Case cards, shared by the home and the Up next sheet at the end of the case: the
   picture slot (Figma 588 x 312, scaled to the card by alt-scale.js), title, line, tag. */
.case-card { position: relative; display: flex; flex-direction: column; gap: 16px; }
.case-card__slot { position: relative; aspect-ratio: 588 / 312; border-radius: 24px; overflow: hidden; }
/* The picture at Figma's 588 x 312, scaled to the slot's width (alt-scale.js sets --k) */
.slot__stage { position: absolute; top: 0; left: 0; width: 588px; height: 312px; transform: scale(var(--k, 1)); transform-origin: 0 0; }
.case-card__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.case-card__titles { display: flex; flex-direction: column; gap: 4px; }
.case-card__cover { position: absolute; inset: 0; z-index: 2; border-radius: 24px; }
.case-card .tag { display: inline-block; height: auto; padding: 8px 16px; border-radius: 100px; background: var(--c-tag); } /* scoped: the case pages have their own .tag pills; height: auto undoes their fixed 24px in Up next */

/* Slot pictures, from ASSETS. The live site's tile pictures, centered in the 588 x 312 slot,
   because the new card artwork in Figma is not in ASSETS yet. */
.slot__art { position: absolute; top: 0; left: 18px; width: 552px; height: 312px; }
/* Ease CheckIn, after Figma (Case_card_upd 34:5393): Rectangle 555's radial gradient, the
   large "4" and "9" of the 4.9 rating (a vector in Figma, set here in Lexend Deca SemiBold,
   whose figures it matches, at the vector's bounds: 7, -6, 566 x 327), and the phone at
   209, 32, 184 wide. The phone is the live card's black-frame one, the first frame of the
   hover video, masked to its outline (--mask-what-changed, alt-masks.css). */
.slot--checkin { background: radial-gradient(ellipse 1105px 420px at 48.9% 44.7%, #f0f6ff 0%, #6da5ff 100%); }
.checkin__digit {
  position: absolute;
  top: -79px; /* the figures' baseline lands at Figma's 321 */
  font-family: "Lexend Deca", sans-serif;
  font-weight: 600;
  font-size: 457px;
  line-height: 1;
  color: #dbe8fd;
  filter: drop-shadow(12px 12px 16px rgba(72, 143, 255, 0.07)) drop-shadow(6px 0 8px rgba(72, 143, 255, 0.04));
}
.checkin__digit--4 { left: -3px; }
.checkin__digit--9 { left: 326.5px; }
.checkin__phone {
  position: absolute;
  top: 32px;
  left: 209px;
  width: 184px;
  height: auto;
  -webkit-mask: var(--mask-what-changed) 0 0 / 100% 100% no-repeat;
  mask: var(--mask-what-changed) 0 0 / 100% 100% no-repeat;
}

.slot--construction { background: #33995c url("ASSETS/Ease%20Construction/EaseConstruction_bg.png") center / cover no-repeat; }
.construction__product { position: absolute; top: 28px; left: 50%; width: 288px; height: 263px; margin-left: -144px; border-radius: 8px; overflow: hidden; background: #fff; }
.construction__product img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }

.slot--connect { background: var(--c-connect); }
.connect__dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1.5px, transparent 2px); background-size: 28px 28px; background-position: 12px -1px; }
.connect__card { position: absolute; width: 264px; border-radius: 3.52px; overflow: hidden; }
.connect__card img { display: block; width: 100%; height: auto; }
.connect__card--back2::after, .connect__card--back1::after { content: ""; position: absolute; inset: 0; }
.connect__card--back2::after { background: rgba(72, 143, 255, 0.4); }
.connect__card--back1::after { background: rgba(73, 143, 255, 0.32); }
.connect__card--back2 { left: 142.47px; top: 48px; transform: rotate(6deg); }
.connect__card--back1 { left: 141.9px; top: 45.24px; transform: rotate(-6deg); }
.connect__card--front { left: 139.4px; top: 43.83px; border-radius: 0; }

.slot--side { background: #f3e1cc url("ASSETS/Selected%20side%20projects/Side_proj_bg.png") center / cover no-repeat; }
/* Figma: three 122 x 264 screens at 95/72, 233/24 and 371/-24 (their corners are in the images) */
.side__phone { position: absolute; width: 122px; height: auto; }
.side__phone--drinks { left: 95px; top: 72px; }
.side__phone--notifications { left: 233px; top: 24px; }
.side__phone--exercise { left: 371px; top: -24px; }
