body:has(.panda-showcase) { overflow-x: clip; }
.panda-showcase {
  --showcase-width: 1360px;
  --showcase-top: 42px;
  --showcase-bottom: 60px;
  --showcase-heading-gap: 8px;
  --showcase-cards-top: 26px;
  --showcase-gap: 16px;
  --showcase-card-height: 405px;
  --showcase-radius: 20px;
  --showcase-border-width: 5px;
  --showcase-border-color: #ff6900;
  --showcase-label-height: 112px;
  --showcase-label-background: #050505;
  --showcase-title-color: #fff;
    --showcase-icon-size: 39px;
  --showcase-icon-circle: 116px;
  --showcase-brush-width: 270px;
  --showcase-brush-height: 32px;
  --showcase-title-brush-gap: -7px;
  --showcase-title-x: 0px;
  --showcase-title-y: 0px;
  --showcase-background: #050505;
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  padding: var(--showcase-top) 0 var(--showcase-bottom);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--showcase-background) url("../images/services-showcase-bg.png") center top / cover no-repeat;
}
.panda-showcase__wrap { width: min(calc(100% - 48px), var(--showcase-width)); max-width: var(--panda-content-width); margin-inline: auto; }
.panda-showcase__intro { text-align: center; }
.panda-showcase__heading {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  font: 400 clamp(58px, 6vw, 132px)/1.08 var(--panda-heading-font);
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(180deg, #fff 4%, #e0e5ec 47%, #747b85 84%, #f8f9fb);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(2px 3px 0 #131920) drop-shadow(3px 4px 2px #050505);
}
.panda-showcase__description {
  margin: var(--showcase-heading-gap) 0 0;
  font: italic 800 clamp(19px, 2vw, 33px)/1.2 var(--panda-body-font);
  text-shadow: 0 2px 6px #000;
}
.panda-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--showcase-gap);
  margin-top: var(--showcase-cards-top);
}
.panda-showcase__card {
  position: relative;
  display: block;
  min-width: 0;
  height: var(--showcase-card-height);
  overflow: hidden;
  border: var(--showcase-border-width) solid var(--showcase-border-color);
  border-radius: var(--showcase-radius);
  color: inherit;
  text-decoration: none;
  background: #161a20;
  box-shadow: inset 0 0 0 2px #090909, 0 0 12px rgba(255,90,0,.25);
}
.panda-showcase__photo { position: absolute; inset: 0; background: #20252b; }
.panda-showcase__photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--showcase-image-x, 50%) var(--showcase-image-y, 50%);
}
.panda-showcase__label {
  position: absolute;
  z-index: 1;
  inset: auto 9px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: var(--showcase-label-height);
  padding: 48px 10px 6px;
  border: 3px solid #ff8900;
  border-radius: 19px;
  background: var(--showcase-label-background);
  box-shadow: 0 -3px 9px rgba(0,0,0,.4);
}
.panda-showcase__icon {
  position: absolute;
  left: 50%;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--showcase-icon-circle);
  height: var(--showcase-icon-circle);
  transform: translate(-50%, -63%);
  border: 5px solid #ff7900;
  border-bottom-color: transparent;
  border-radius: 50%;
  color: var(--showcase-icon-color);
  background: #050505;
  font-size: var(--showcase-icon-size);
}
.panda-showcase__icon img { display: block; width: var(--showcase-icon-size); height: var(--showcase-icon-size); max-width: 82%; max-height: 82%; object-fit: contain; }
.panda-showcase__card-title {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0;
  font: italic 400 clamp(24px, 2vw, 42px)/1.12 var(--panda-heading-font);
  color: var(--showcase-title-color);
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 2px #555;
  overflow-wrap: normal;
  transform: translate(var(--showcase-title-x), var(--showcase-title-y));
}
.panda-showcase__brush {
  display: block;
  flex: none;
  width: min(80%, var(--showcase-brush-width));
  height: var(--showcase-brush-height);
  margin: var(--showcase-title-brush-gap) auto 0;
  background: url("../images/services-showcase-brush.png") center / 100% auto no-repeat;
}
a.panda-showcase__card:hover .panda-showcase__photo img { transform: scale(1.035); transition: transform .3s ease; }
/* Reveal content as each row enters view while keeping the brush background still. */
.panda-showcase.motion-ready .panda-showcase__heading,
.panda-showcase.motion-ready .panda-showcase__description,
.panda-showcase.motion-ready .panda-showcase__card:not(.is-visible) { opacity: 0; }
.panda-showcase.motion-ready .panda-showcase__intro.is-visible .panda-showcase__heading {
  animation: panda-showcase-enter 600ms cubic-bezier(.2,.7,.25,1) both;
}
.panda-showcase.motion-ready .panda-showcase__intro.is-visible .panda-showcase__description {
  animation: panda-showcase-enter 600ms cubic-bezier(.2,.7,.25,1) 110ms both;
}
.panda-showcase.motion-ready .panda-showcase__card.is-visible {
  animation: panda-showcase-enter 600ms cubic-bezier(.2,.7,.25,1) var(--showcase-motion-delay, 230ms) both;
}
.panda-showcase.motion-ready .panda-showcase__card.is-visible .panda-showcase__photo img {
  animation: panda-showcase-photo 850ms cubic-bezier(.2,.7,.25,1) var(--showcase-motion-delay, 230ms) both;
}
@keyframes panda-showcase-enter {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes panda-showcase-photo {
  from { scale: 1.055; }
  to { scale: 1; }
}
@media (max-width: 1050px) {
  .panda-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panda-showcase { --showcase-card-height: 370px; }
}
@media (max-width: 650px) {
  .panda-showcase { --showcase-top: 55px; --showcase-bottom: 65px; --showcase-card-height: 350px; background-size: auto 850px; }
  .panda-showcase__wrap { width: min(calc(100% - 28px), 530px); }
  .panda-showcase__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .panda-showcase__heading { font-size: clamp(44px, 11vw, 70px); }
  .panda-showcase__description { font-size: clamp(17px, 4vw, 22px); }
  .panda-showcase__card-title { font-size: clamp(23px, 6vw, 35px); }
  .panda-showcase__icon { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .panda-showcase.motion-ready .panda-showcase__heading,
  .panda-showcase.motion-ready .panda-showcase__description,
  .panda-showcase.motion-ready .panda-showcase__card:not(.is-visible) { opacity: 1; }
  .panda-showcase.motion-ready .panda-showcase__intro.is-visible .panda-showcase__heading,
  .panda-showcase.motion-ready .panda-showcase__intro.is-visible .panda-showcase__description,
  .panda-showcase.motion-ready .panda-showcase__card.is-visible,
  .panda-showcase.motion-ready .panda-showcase__card.is-visible .panda-showcase__photo img { animation: none; }
}
