.work-showcase {
  position: relative;
  padding-bottom: 24px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 28%, rgba(216, 0, 22, .18), transparent 28rem),
    #101312;
  isolation: isolate;
}

.work-showcase::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 100% 72px;
  content: "";
  pointer-events: none;
}

.work-showcase__header {
  padding-block: 28px 18px;
}

.work-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .34fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #191d1b;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 32px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, .34);
}

.work-feature {
  position: relative;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: #080a09;
  border: 0;
  cursor: zoom-in;
}

.work-feature::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 65%, rgba(8, 10, 9, .34)),
    linear-gradient(0deg, rgba(8, 10, 9, .6), transparent 36%);
  content: "";
  pointer-events: none;
}

.work-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.03);
  transform: scale(1.04) translate3d(var(--work-x, 0), var(--work-y, 0), 0);
  transition: opacity .32s ease, filter .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}

.work-feature:hover img {
  filter: saturate(1) contrast(1.04);
}

.work-feature.is-switching img {
  opacity: 0;
  transform: scale(1.12);
}

.work-feature__index {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 28px;
  padding: 8px 11px;
  color: rgba(255, 255, 255, .74);
  background: rgba(10, 12, 11, .52);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.work-feature__open {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 15px;
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.work-feature__open svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.work-feature:hover .work-feature__open,
.work-feature:focus-visible .work-feature__open {
  color: var(--white);
  background: var(--red);
  transform: translateY(-3px);
}

.work-console {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 3.4vw, 50px);
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, .1);
}

.work-console::after {
  position: absolute;
  right: -70px;
  bottom: 108px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(216, 0, 22, .45);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 28px rgba(216, 0, 22, .04), 0 0 0 56px rgba(216, 0, 22, .025);
}

.work-console__label {
  color: var(--red);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.work-console__number {
  margin: auto 0 14px;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(4.5rem, 8vw, 8rem);
  letter-spacing: -.08em;
  line-height: .72;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
}

.work-console h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 2.4vw, 2.6rem);
}

.work-console > p:not(.work-console__label) {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .5);
}

.work-console__footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
}

.work-progress {
  height: 2px;
  flex: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, .14);
}

.work-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

.work-progress span.is-running {
  animation: work-progress 5.5s linear forwards;
}

.work-next {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  padding: 0;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  transition: background .25s ease, transform .25s ease;
}

.work-next span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.work-next svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.work-next:hover,
.work-next:focus-visible {
  background: #f4142b;
  transform: rotate(-8deg) scale(1.06);
}
