.platform-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #ffffff2b;
  border-radius: 18px;
  background: #141515;
}
.showcase-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-width: 0;
  min-height: clamp(430px, 65svh, 680px);
  overflow: hidden;
  border-inline-end: 1px solid #ffffff2b;
  color: #fff;
}
.showcase-panel:last-child { border-inline-end: 0; }
.showcase-panel::before, .showcase-panel::after, .showcase-panel > img { position: absolute; inset: 0; }
.showcase-panel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .18;
  filter: grayscale(1);
  transform: scale(1.04);
  z-index: -2;
  transition: opacity .4s ease, filter .45s ease, transform .65s ease;
}
.showcase-panel::before {
  content: '';
  z-index: -1;
  background: linear-gradient(0deg, #101110 4%, #101110e8 23%, #10111000 73%);
}
.showcase-panel::after {
  content: '';
  inset-block-start: auto;
  height: 3px;
  background: #f23445;
  transform: scaleX(0);
  transition: transform .35s ease;
}
.showcase-panel[data-active] > img { opacity: 1; filter: none; transform: scale(1); }
.showcase-panel[data-platform="fixed-wing"] > img {
  height: 64%;
  object-fit: contain;
  transform: none;
}
.showcase-panel[data-active]::after { transform: scaleX(1); }
.showcase-panel:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.showcase-detail { width: 100%; padding: clamp(12px, 2vw, 28px); }
.showcase-detail h3 { margin: 0 0 8px; font-size: clamp(20px, 2.5vw, 38px); line-height: 1.05; }
.showcase-detail p { margin: 0 0 14px; color: #f3f0ef; font-size: .9rem; line-height: 1.45; }
.showcase-detail small { display: block; margin-top: 8px; color: #d6d3d3; font-size: .7rem; }
.showcase-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #ffffff70;
  border-radius: 999px;
  color: #fff;
  font-size: .83rem;
  font-weight: 750;
}
.showcase-action::after {
  content: '';
  width: 14px;
  height: 14px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19 19 5M8 5h11v11'/%3E%3C/svg%3E") center / contain no-repeat;
}
[dir="rtl"] .showcase-action::after { transform: scaleX(-1); }
.showcase-panel[data-active] .showcase-action { background: #b51c2b; border-color: #b51c2b; }
.showcase-picker { display: none; }
@media (max-width: 760px) {
  .platform-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-panel { min-height: clamp(250px, 74vw, 380px); border-block-end: 1px solid #ffffff2b; }
  .showcase-panel:nth-child(even) { border-inline-end: 0; }
  .showcase-picker:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-block-end: 10px;
  }
  .showcase-picker button {
    min-height: 44px;
    padding: 4px;
    border: 1px solid #ffffff42;
    border-radius: 9px;
    background: #202121;
    color: #fff;
    font: inherit;
    font-size: clamp(.68rem, 3vw, .9rem);
    font-weight: 750;
    line-height: 1.15;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  .showcase-picker button[aria-pressed="true"] { background: #b51c2b; border-color: #b51c2b; }
  .showcase-picker:not([hidden]) + .platform-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(40px, 11vh, 120px);
    overflow: visible;
    border: 0;
    background: transparent;
    isolation: isolate;
  }
  .showcase-picker:not([hidden]) + .platform-showcase .showcase-panel {
    min-height: clamp(355px, 106vw, 510px);
    border: 1px solid #ffffff2b;
    border-radius: 18px;
    background: #141515;
  }
  @media (prefers-reduced-motion: no-preference) {
    .showcase-picker:not([hidden]) + .platform-showcase .showcase-panel {
      position: sticky;
      inset-block-start: var(--chapter-pin-top, 102px);
      box-shadow: 0 -10px 40px #0008;
    }
  }
  .showcase-picker:not([hidden]) + .platform-showcase .showcase-panel > img {
    opacity: 1;
    filter: none;
    transform: none;
  }
  .showcase-picker:not([hidden]) + .platform-showcase .showcase-panel[data-platform="fixed-wing"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .showcase-picker:not([hidden]) + .platform-showcase .showcase-panel[data-platform="fixed-wing"] > img {
    position: static;
    height: auto;
    aspect-ratio: 1665 / 1080;
    z-index: auto;
  }
  .showcase-picker:not([hidden]) + .platform-showcase .showcase-panel[data-platform="fixed-wing"] .showcase-detail {
    margin-block-start: auto;
  }
  .showcase-picker:not([hidden]) + .platform-showcase .showcase-detail { padding: 18px; }
  .showcase-picker:not([hidden]) + .platform-showcase .showcase-detail h3 { font-size: 28px; }
  .showcase-picker:not([hidden]) + .platform-showcase .showcase-detail p { max-width: 38ch; }
  .showcase-picker:not([hidden]) + .platform-showcase .showcase-panel::before {
    background: linear-gradient(0deg, #101110 0%, #101110f0 30%, #10111000 78%);
  }

}
@media (prefers-reduced-motion: reduce) {
  .showcase-panel > img, .showcase-panel::after { transition: none; }
}
