/* Journey cards: each step leads with one large piece of real client work. */
.process-card {
  display: flex;
  flex-direction: column;
  width: 430px;
  height: 580px;
  margin-left: -215px;
  margin-top: -290px;
}
.process-card .card-title { font-size: 38px; margin-top: 16px; }

.card-work {
  position: relative;
  height: 272px;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid #ffffff1c;
  border-radius: 6px;
  background: radial-gradient(120% 90% at 50% 100%, #1f6bb833, transparent 70%), #0b1319;
}
.work-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.work-reels {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}
.work-reels img {
  height: 100%;
  width: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 12px 28px #000a;
}
.work-reels img:nth-child(1) { transform: rotate(-5deg); }
.work-reels img:nth-child(2) { position: relative; z-index: 1; margin-inline: -12px; transform: translateY(8px); }
.work-reels img:nth-child(3) { transform: rotate(5deg); }
/* Reels laid over the corner of a website screenshot. */
.work-reels.is-inset {
  inset: auto 12px 12px auto;
  height: 62%;
  padding: 0;
  z-index: 2;
}
.work-reels.is-inset img:nth-child(2) { margin-inline: -14px 0; }
.work-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  color: white;
  background: #080e12d9;
  backdrop-filter: blur(6px);
}

/* A few of the services each step uses. */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 14px 0 0;
  list-style: none;
}
.card-tags li {
  padding: 5px 10px;
  border: 1px solid #4597eb59;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.3;
  color: #dfe7ee;
  background: #1f6bb81f;
}
.card-client {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #b8c7d3;
}
.card-client b {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.card-proof {
  display: flex;
  gap: 18px;
  margin: 14px 0 0;
}
.card-proof div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 10px;
  border-top: 1px solid #4597eb55;
}
.card-proof dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--blue-light);
  white-space: nowrap;
}
.card-proof dt { order: 2; margin-top: 5px; font-size: 10px; line-height: 1.45; color: #b8c7d3; }

@media (min-width: 1600px) {
  .process-card { width: 480px; height: 640px; margin-left: -240px; margin-top: -320px; }
  .process-card .card-title { font-size: 46px; }
  .card-work { height: 310px; }
  .card-client { font-size: 13px; }
}
/* Short laptops: the stage is shorter, so the card is too. */
@media (min-width: 1101px) and (max-height: 860px) {
  .process-card { height: 540px; margin-top: -270px; }
  .card-work { height: 240px; }
}
@media (max-width: 1100px) {
  .process-card { width: 380px; height: 560px; margin-left: -190px; margin-top: -280px; }
  .process-card .card-title { font-size: 36px; }
  .card-work { height: 250px; }
}
@media (max-width: 800px) {
  .process-card { width: 350px; height: 540px; margin-left: -175px; margin-top: -270px; }
  .card-work { height: 236px; }
}
@media (max-width: 600px) {
  /* The deck sits just above the step tabs; the cards already say what the intro line said. */
  .journey-heading p { display: none; }
  .journey-world { top: auto; bottom: 84px; height: 420px; }
  .process-card { width: 292px; height: 412px; margin-left: -146px; margin-top: -206px; }
  .process-card .card-title { font-size: 30px; margin-top: 10px; }
  .card-work { height: 196px; margin-top: 12px; }
  .card-client { margin-top: 10px; font-size: 11px; line-height: 1.5; }
  .card-proof { margin-top: 10px; gap: 12px; }
  .card-proof dd { font-size: 22px; }
  .card-proof dt { font-size: 8px; }
  .card-tags { gap: 4px; padding-top: 10px; }
  .card-tags li { padding: 4px 8px; font-size: 9px; }
  .card-tags li:nth-child(n+3) { display: none; }
}
@media (max-width: 370px) {
  .process-card { width: 270px; margin-left: -135px; }
}
/* Portrait tablets: the heading sits above the deck so the side cards never run under it. */
@media (min-width: 601px) and (max-width: 1100px) and (orientation: portrait) and (min-height: 701px) and (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .journey-heading { width: 100%; }
  .journey-world { top: 360px; right: 0; width: 100%; height: calc(100% - 480px); perspective-origin: 50% 40%; }
}
/* Laid-out (non-rolling) versions of the deck grow with their content. */
@media (prefers-reduced-motion: reduce), (max-height: 700px), (scripting: none) {
  .journey-world { bottom: auto; height: auto; }
  .journey-heading p { display: block; }
  .process-card { height: auto !important; min-height: 0; margin: 0; }
  .card-tags { margin-top: 18px; }
}
