.mcs-custom-print {
  padding: clamp(48px, 5.4vw, 86px) 0;
  background: #f2f2f2;
  color: #111;
}

.mcs-custom-print *,
.mcs-custom-print *::before,
.mcs-custom-print *::after {
  box-sizing: border-box;
}

.mcs-custom-print__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 18px);
}

.mcs-custom-print__card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.mcs-custom-print__card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.mcs-custom-print__card--process > img {
  object-position: center center;
}

.mcs-custom-print__card:hover > img,
.mcs-custom-print__card:focus-visible > img {
  transform: scale(1.025);
}

.mcs-custom-print__banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 18px);
  margin-top: clamp(10px, 1vw, 18px);
}

.mcs-custom-print__banner {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #07111e;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.mcs-custom-print__banner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}

.mcs-custom-print__banner--front > img {
  object-position: 50% 50%;
}

.mcs-custom-print__banner--back > img {
  object-position: 50% 50%;
}

.mcs-custom-print__banner:hover > img,
.mcs-custom-print__banner:focus-visible > img {
  transform: scale(1.025);
}

.mcs-custom-print__banner-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(2, 8, 16, .9) 0%, rgba(2, 8, 16, .66) 34%, rgba(2, 8, 16, .12) 66%, rgba(2, 8, 16, .02) 100%);
}

.mcs-custom-print__banner--back .mcs-custom-print__banner-shade {
  background: linear-gradient(270deg, rgba(2, 8, 16, .9) 0%, rgba(2, 8, 16, .66) 34%, rgba(2, 8, 16, .12) 66%, rgba(2, 8, 16, .02) 100%);
}

.mcs-custom-print__banner-copy {
  position: absolute;
  top: 50%;
  left: clamp(20px, 3vw, 50px);
  z-index: 2;
  display: flex;
  max-width: 44%;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.mcs-custom-print__banner--back .mcs-custom-print__banner-copy {
  right: clamp(20px, 3vw, 50px);
  left: auto;
  align-items: flex-end;
  text-align: right;
}

.mcs-custom-print__banner-copy small {
  margin-bottom: 10px;
  font-size: clamp(8px, .62vw, 11px);
  font-weight: 500;
  letter-spacing: .2em;
}

.mcs-custom-print__banner-copy strong {
  font-size: clamp(22px, 2.2vw, 38px);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.02;
}

.mcs-custom-print__banner-copy em {
  margin-top: 9px;
  font-size: clamp(8px, .66vw, 12px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1.4;
  opacity: .82;
}

.mcs-custom-print__banner-copy b {
  margin-top: clamp(16px, 1.7vw, 27px);
  padding: 0 0 7px;
  border-bottom: 1px solid currentColor;
  font-size: clamp(8px, .62vw, 11px);
  font-weight: 600;
  letter-spacing: .16em;
}

.mcs-custom-print__card--catalog {
  border: 1px solid #e6e0dc;
  background: #fff;
  color: #752d19;
}

.mcs-custom-print__card--catalog > .mcs-custom-print__catalog-art,
.mcs-custom-print__card--catalog:hover > .mcs-custom-print__catalog-art,
.mcs-custom-print__card--catalog:focus-within > .mcs-custom-print__catalog-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  transition: none;
}

.mcs-custom-print__catalog-items {
  position: absolute;
  inset: 2.5% 3.4% 2.5%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 37.5% 42.5%;
  gap: 17.5% 1.2%;
}

.mcs-custom-print__catalog-item {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: center;
  color: #7a321f;
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
}

.mcs-custom-print__catalog-item small {
  display: block;
  max-width: 100%;
  padding: 2px 5px;
  overflow: hidden;
  font-size: clamp(5px, 0.43vw, 7px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.mcs-custom-print__catalog-item:hover small,
.mcs-custom-print__catalog-item:focus-visible small {
  background: #7a321f;
  color: #fff;
}

.mcs-custom-print__catalog-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  min-width: clamp(118px, 10vw, 168px);
  place-items: center;
  gap: 3px;
  padding: clamp(7px, 0.7vw, 11px) clamp(12px, 1.2vw, 20px);
  border: 1px solid #7a321f;
  background: #fff;
  box-shadow: 0 4px 18px rgba(78, 32, 20, 0.08);
  color: #6f2816;
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  transform: translate(-50%, -50%);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.mcs-custom-print__catalog-cta small {
  font-size: clamp(5px, 0.42vw, 7px);
  font-weight: 500;
  letter-spacing: 0.14em;
}

.mcs-custom-print__catalog-cta strong {
  font-size: clamp(11px, 0.95vw, 16px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

.mcs-custom-print__catalog-cta:hover,
.mcs-custom-print__catalog-cta:focus-visible {
  background: #6f2816;
  color: #fff;
  transform: translate(-50%, -50%) scale(1.025);
}

.mcs-custom-print__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.76) 100%);
}

.mcs-custom-print__copy {
  position: absolute;
  right: clamp(16px, 2vw, 30px);
  bottom: clamp(15px, 1.7vw, 26px);
  left: clamp(16px, 2vw, 30px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
  text-transform: uppercase;
}

.mcs-custom-print__copy small,
.mcs-custom-print__motion-footer small {
  font-size: clamp(8px, 0.56vw, 10px);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.25;
}

.mcs-custom-print__copy strong,
.mcs-custom-print__motion-footer strong {
  font-size: clamp(18px, 1.55vw, 27px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.mcs-custom-print__copy em {
  font-size: clamp(8px, 0.6vw, 11px);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.25;
  opacity: 0.86;
}

.mcs-custom-print__card--motion {
  background:
    linear-gradient(135deg, rgba(8, 27, 52, 0.04), transparent 58%),
    #fff;
  color: #0d1c30;
}

.mcs-custom-print__motion-kicker {
  position: absolute;
  top: 4%;
  left: 3%;
  z-index: 6;
  padding-left: 7px;
  border-left: 2px solid #10243f;
  color: #10243f;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(6px, 0.46vw, 8px);
  font-weight: 600;
  letter-spacing: 0.16em;
}

.mcs-custom-print__preview {
  position: absolute;
  inset: 0 0 17% 0;
  z-index: 2;
  display: block;
  overflow: hidden;
  background: #fff;
  animation: mcs-custom-preview 7.2s infinite both;
}

.mcs-custom-print__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.mcs-custom-print__callout {
  position: absolute;
  z-index: 5;
  display: grid;
  width: clamp(50px, 4vw, 68px);
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid #d41f36;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #d41f36;
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  opacity: 0;
  transform: scale(0.72);
}

.mcs-custom-print__callout::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(60px, 5vw, 96px);
  border-top: 1px solid #d41f36;
}

.mcs-custom-print__callout b {
  font-size: clamp(7px, 0.62vw, 11px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mcs-custom-print__callout small {
  margin-top: 3px;
  font-size: clamp(5px, 0.42vw, 7px);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.mcs-custom-print__callout--front-name {
  top: 24%;
  left: 1.5%;
  animation: mcs-custom-callout-front-name 7.2s infinite both;
}

.mcs-custom-print__callout--front-name::after {
  left: 100%;
  width: clamp(62px, 4.8vw, 78px);
}

.mcs-custom-print__callout--back-name,
.mcs-custom-print__callout--back-number {
  right: 1.5%;
}

.mcs-custom-print__callout--back-name::after,
.mcs-custom-print__callout--back-number::after {
  right: 100%;
  width: clamp(58px, 4.4vw, 70px);
}

.mcs-custom-print__callout--back-name {
  top: 13.3%;
  animation: mcs-custom-callout-back-name 7.2s infinite both;
}

.mcs-custom-print__callout--back-number {
  top: 28%;
  animation: mcs-custom-callout-back-number 7.2s infinite both;
}

.mcs-custom-print__motion-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  display: flex;
  min-height: 17%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(15px, 1.4vw, 23px);
  background: #10243f;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
  text-transform: uppercase;
}

.mcs-custom-print__motion-footer strong {
  font-size: clamp(12px, 1vw, 18px);
  text-align: right;
}

@keyframes mcs-custom-preview {
  0%, 12% { opacity: 0; transform: translateY(14px) scale(0.95); }
  22%, 90% { opacity: 1; transform: translateY(0) scale(1); }
  98%, 100% { opacity: 0; transform: translateY(-5px) scale(1.01); }
}

@keyframes mcs-custom-callout-front-name {
  0%, 6% { opacity: 0; transform: scale(0.72); }
  14%, 30% { opacity: 1; transform: scale(1); }
  38%, 100% { opacity: 0; transform: scale(0.88); }
}

@keyframes mcs-custom-callout-back-name {
  0%, 36% { opacity: 0; transform: scale(0.72); }
  44%, 60% { opacity: 1; transform: scale(1); }
  68%, 100% { opacity: 0; transform: scale(0.88); }
}

@keyframes mcs-custom-callout-back-number {
  0%, 66% { opacity: 0; transform: scale(0.72); }
  74%, 90% { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(0.88); }
}

@media screen and (max-width: 989px) {
  .mcs-custom-print__grid {
    grid-template-columns: repeat(3, minmax(76vw, 1fr));
    margin-inline: calc(clamp(20px, 3.2vw, 52px) * -1);
    padding-inline: clamp(20px, 3.2vw, 52px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .mcs-custom-print__grid::-webkit-scrollbar {
    display: none;
  }

  .mcs-custom-print__card {
    scroll-snap-align: start;
  }

  .mcs-custom-print__banners {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 749px) {
  .mcs-custom-print {
    padding: 44px 0 52px;
  }

  .mcs-custom-print__grid {
    display: block;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .mcs-custom-print__card--catalog,
  .mcs-custom-print__card--process {
    display: none;
  }

  .mcs-custom-print__card--motion {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .mcs-custom-print__preview {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .mcs-custom-print__preview img {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .mcs-custom-print__copy {
    right: 18px;
    bottom: 17px;
    left: 18px;
  }

  .mcs-custom-print__copy strong {
    font-size: clamp(17px, 5.1vw, 23px);
  }

  .mcs-custom-print__callout {
    width: clamp(46px, 12vw, 56px);
  }

  .mcs-custom-print__callout::after {
    width: clamp(42px, 13vw, 54px);
  }

  .mcs-custom-print__callout--front-name::after,
  .mcs-custom-print__callout--back-name::after,
  .mcs-custom-print__callout--back-number::after {
    width: auto;
  }

  .mcs-custom-print__callout--front-name::after {
    width: clamp(58px, 16vw, 70px);
  }

  .mcs-custom-print__callout--back-name::after,
  .mcs-custom-print__callout--back-number::after {
    width: clamp(58px, 15vw, 66px);
  }

  .mcs-custom-print__motion-footer strong {
    font-size: clamp(11px, 3.4vw, 15px);
  }

  .mcs-custom-print__banner {
    aspect-ratio: 16 / 10;
  }

  .mcs-custom-print__banner > img {
    object-position: 58% center;
  }

  .mcs-custom-print__banner--back > img {
    object-position: 42% center;
  }

  .mcs-custom-print__banner-copy {
    left: 20px;
    max-width: 58%;
  }

  .mcs-custom-print__banner--back .mcs-custom-print__banner-copy {
    right: 20px;
  }

  .mcs-custom-print__banner-copy strong {
    font-size: clamp(18px, 5.6vw, 25px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcs-custom-print__card > img,
  .mcs-custom-print__banner > img,
  .mcs-custom-print__preview,
  .mcs-custom-print__callout {
    animation: none !important;
    transition: none !important;
  }

  .mcs-custom-print__preview {
    opacity: 1 !important;
  }

  .mcs-custom-print__callout {
    display: none;
  }
}
