.cooperation-showcase {
  --cooperation-graphite: #171b1d;
  --cooperation-ink: #121516;
  --cooperation-accent: #a9bbc8;
  padding-top: clamp(72px, 8vw, 132px);
  padding-bottom: clamp(72px, 8vw, 132px);
}

.cooperation-showcase__head {
  margin-bottom: clamp(34px, 4vw, 64px);
}

.cooperation-showcase__stage {
  position: relative;
  min-height: clamp(620px, 62vw, 790px);
  overflow: hidden;
  isolation: isolate;
  background: var(--cooperation-graphite);
}

.cooperation-showcase__stories,
.cooperation-showcase__story,
.cooperation-showcase__story picture,
.cooperation-showcase__story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cooperation-showcase__story {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition:
    opacity .45s ease,
    visibility .45s ease,
    transform 1.1s cubic-bezier(.2,.75,.2,1);
  pointer-events: none;
}

.cooperation-showcase__story.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.cooperation-showcase__story picture {
  display: block;
}

.cooperation-showcase__story img {
  object-fit: cover;
}

.cooperation-showcase__story::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,13,15,.86) 0%, rgba(9,13,15,.58) 42%, rgba(9,13,15,.12) 72%),
    linear-gradient(0deg, rgba(9,13,15,.76) 0%, rgba(9,13,15,.08) 58%);
  pointer-events: none;
}

.cooperation-showcase__caption {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 4vw, 68px);
  bottom: clamp(30px, 4vw, 64px);
  max-width: min(720px, calc(100% - 430px));
  color: #fff;
}

.cooperation-showcase__eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--cooperation-accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cooperation-showcase__caption h3 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 4.5vw, 72px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.04em;
}

.cooperation-showcase__caption > p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.5;
}

.cooperation-showcase__fit {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  max-width: 640px;
  margin-top: 30px;
  padding: 18px 20px;
  background: rgba(23,27,29,.54);
  backdrop-filter: blur(12px);
}

.cooperation-showcase__fit span {
  color: var(--cooperation-accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cooperation-showcase__fit p {
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: 15px;
  line-height: 1.5;
}

.cooperation-showcase__rail {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: clamp(28px, 4vw, 68px);
  display: flex;
  width: clamp(230px, 21vw, 310px);
  flex-direction: column;
  gap: 6px;
  transform: translateY(-50%);
}

.cooperation-showcase__tab {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.52);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .25s ease, transform .25s ease;
}

.cooperation-showcase__tab::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -28px;
  width: 0;
  height: 1px;
  background: var(--cooperation-accent);
  transition: width .25s ease;
}

.cooperation-showcase__tab:hover,
.cooperation-showcase__tab:focus-visible,
.cooperation-showcase__tab.is-active {
  color: #fff;
}

.cooperation-showcase__tab:hover {
  transform: translateX(4px);
}

.cooperation-showcase__tab:focus-visible {
  outline: 1px solid rgba(169,187,200,.6);
  outline-offset: 6px;
}

.cooperation-showcase__tab.is-active::before {
  width: 18px;
}

.cooperation-showcase__tab span {
  color: var(--cooperation-accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
}

.cooperation-showcase__tab strong {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.25;
}

.cooperation-showcase__counter {
  position: absolute;
  z-index: 3;
  top: 30px;
  right: clamp(28px, 4vw, 68px);
  color: rgba(255,255,255,.62);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .14em;
}

@media (max-width: 1100px) {
  .cooperation-showcase__caption {
    max-width: min(620px, calc(100% - 340px));
  }

  .cooperation-showcase__caption h3 {
    font-size: clamp(38px, 5.2vw, 58px);
  }

  .cooperation-showcase__rail {
    width: 230px;
  }
}

@media (max-width: 900px) {
  .cooperation-showcase {
    width: 100%;
    min-width: 0;
    padding-top: 72px;
    padding-bottom: 72px;
    overflow: hidden;
  }

  .cooperation-showcase__head {
    margin-bottom: 30px;
  }

  .cooperation-showcase__stage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: visible;
    background: transparent;
  }

  .cooperation-showcase__stories {
    position: static;
    inset: auto;
    display: grid;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
  }

  .cooperation-showcase__story,
  .cooperation-showcase__story[hidden] {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background: var(--cooperation-graphite);
  }

  .cooperation-showcase__story::after {
    display: none;
  }

  .cooperation-showcase__story picture,
  .cooperation-showcase__story img {
    position: static;
    inset: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
  }

  .cooperation-showcase__story picture {
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
  }

  .cooperation-showcase__story img {
    height: 100%;
    object-fit: cover;
  }

  .cooperation-showcase__caption {
    position: static;
    inset: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 24px 20px 26px;
    overflow: hidden;
  }

  .cooperation-showcase__eyebrow {
    margin-bottom: 14px;
  }

  .cooperation-showcase__caption h3 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: clamp(29px, 8.2vw, 38px);
    line-height: 1.06;
    letter-spacing: -.035em;
    overflow-wrap: break-word;
  }

  .cooperation-showcase__caption > p {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.48;
    overflow-wrap: anywhere;
  }

  .cooperation-showcase__fit {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 20px;
    padding: 16px;
    background: rgba(255,255,255,.06);
    backdrop-filter: none;
  }

  .cooperation-showcase__fit p {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cooperation-showcase__rail,
  .cooperation-showcase__counter {
    display: none;
  }
}

@media (max-width: 420px) {
  .cooperation-showcase {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .cooperation-showcase__head {
    margin-bottom: 24px;
  }

  .cooperation-showcase__stories {
    gap: 16px;
  }

  .cooperation-showcase__caption {
    padding: 22px 18px 24px;
  }

  .cooperation-showcase__caption h3 {
    font-size: clamp(27px, 8.4vw, 33px);
  }

  .cooperation-showcase__caption > p {
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cooperation-showcase__story,
  .cooperation-showcase__tab {
    transition: none;
  }
}
