.tutorful-card-device {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(ellipse at 50% 26%, #fcfaf7, #eeedf0 73%);
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.tutorful-card-device::before {
  content: "";
  position: absolute;
  inset: 79% 19% 10%;
  background: radial-gradient(ellipse, #57546130, transparent 73%);
  pointer-events: none;
}

.tutorful-card-device canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


.sand-card-still {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12%;
}

.sand-card-still span {
  width: 15%;
  aspect-ratio: 1 / 2.17;
  overflow: hidden;
  border: 2px solid #a1a3b4;
  outline: 1px solid #5e6274;
  border-radius: 11% / 6%;
  background: white;
  box-shadow: 4px 7px 14px #37364538;
  transform: translateY(3%) rotate(-24deg) scale(1.16);
}

.sand-card-still span:nth-child(2) { transform: translateY(-12%) rotate(-10deg); }
.sand-card-still span:nth-child(3) { transform: translateY(19%) rotate(15deg) scale(.87); }
.sand-card-still img { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .work-glass.is-liquid .work-glass-card .uui-layout70_image-wrapper {
    scale: var(--glass-image-stretch, 1);
    transform-origin: var(--glass-image-origin, center);
  }
}

.bupa-card-still { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.bupa-card-still span {
  position: absolute;
  left: var(--phone-x);
  top: var(--phone-y);
  width: 18%;
  aspect-ratio: 1 / 2.17;
  overflow: hidden;
  border: 2px solid #e1e2e9;
  border-radius: 10% / 5%;
  background: white;
  box-shadow: 4px 4px 12px #39465850;
  transform: translate(-50%, -50%) matrix(.72, -.34, .68, .39, 0, 0);
}
.bupa-card-still span:nth-child(1) { --phone-x: 47%; --phone-y: 50%; width: 22%; z-index: 1; }
.bupa-card-still span:nth-child(2) { --phone-x: 42%; --phone-y: 15%; }
.bupa-card-still span:nth-child(3) { --phone-x: 84%; --phone-y: 21%; }
.bupa-card-still span:nth-child(4) { --phone-x: 81%; --phone-y: 62%; }
.bupa-card-still span:nth-child(5) { --phone-x: 4%; --phone-y: 31%; }
.bupa-card-still span:nth-child(6) { --phone-x: 2%; --phone-y: 77%; }
.bupa-card-still span:nth-child(7) { --phone-x: 44%; --phone-y: 94%; }
.bupa-card-still span:nth-child(8) { --phone-x: 96%; --phone-y: 108%; }
.bupa-card-still img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Reserve the same image area for every card, including the two still images. */
.work-glass .work-glass-card .uui-layout70_image-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #e2e5ed;
}

.work-glass-card .uui-layout70_image-wrapper > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-device-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.is-rendered .work-device-layer {
  opacity: 1;
}

.work-glass .work-glass-card .tutorful-card-device {
  background: radial-gradient(ellipse at 22% 20%, #f1e7f3, transparent 57%),
    linear-gradient(150deg, #e7e5f0, #becadf);
}

@media (prefers-reduced-motion: no-preference) {
  .animate-work-devices .tutorful-card-device:not(.show-device-still)
    > :is(img, .sand-card-still, .bupa-card-still, .alx-card-visual, .eq-card-still) {
    opacity: 0;
  }

  .work-glass .is-rendered .work-device-layer {
    transition: opacity 320ms ease-out;
  }
}

.eq-card-still {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.eq-laptop-still,
.eq-phone-still {
  display: block;
  overflow: hidden;
  background: #9d9eac;
  box-shadow: 0 8px 22px #39395530;
}

.eq-laptop-still {
  position: relative;
  width: 68%;
  padding: 1.1% 1.1% 2.5%;
  border-radius: 5px;
  transform: rotate(-5deg);
}

.eq-shareowner-device .eq-laptop-still {
  width: 62%;
  margin-right: 16%;
}

.eq-phone-still {
  position: absolute;
  right: 10%;
  bottom: 11%;
  width: 17%;
  padding: .7%;
  border-radius: 9px;
  transform: rotate(9deg);
}

.eq-card-still img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.work-glass .work-glass-card .uui-heading-xxsmall-2 {
  color: #203858;
}

.work-glass .work-intro {
  max-inline-size: 52ch;
  text-wrap: pretty;
}

.eq-laptop-still img {
  aspect-ratio: 100 / 65;
  object-fit: cover;
  object-position: top;
}

.eq-phone-still img {
  aspect-ratio: 1 / 2.17;
  object-fit: cover;
  object-position: top;
}

.work-glass .uui-button-icon-2:has(.work-link-chevrons) {
  width: 32px;
  flex: 0 0 32px;
}

.work-link-chevrons {
  display: block;
  overflow: visible;
}

.work-link-chevrons path {
  transition: transform 240ms ease-out, opacity 240ms ease-out;
}

.work-link-chevrons path:not(:first-child) {
  opacity: 0;
}

.work-glass .uui-button-link:is(:hover, :focus-visible) .work-link-chevrons path:first-child {
  transform: translateX(2px);
}

.work-glass .uui-button-link:is(:hover, :focus-visible) .work-link-chevrons path:nth-child(2) {
  opacity: .58;
  transform: translateX(10px);
  transition-delay: 35ms;
}

.work-glass .uui-button-link:is(:hover, :focus-visible) .work-link-chevrons path:nth-child(3) {
  opacity: .28;
  transform: translateX(18px);
  transition-delay: 70ms;
}

@media (prefers-reduced-motion: reduce) {
  .work-glass .work-link-chevrons path {
    transition: none;
  }
}
