.showcase {
  --face: clamp(16.5625rem, min(30vw, calc((100svh - var(--header-height) - 13.375rem) * .5625)), 26.5625rem);
  --ring-radius: 81%;
  --orbit-time: 560ms;
  --orbit-ease: cubic-bezier(.22, .68, .25, 1);
  overflow: hidden;
  padding: clamp(2.75rem, 4.9svh, 4.75rem) 0 clamp(3.625rem, 6.5vw, 5.875rem);
  background: linear-gradient(to bottom, var(--ink), transparent 20%, transparent 65%, var(--ink)),
    radial-gradient(ellipse at 50% 64%, #332337, #151019 52%, var(--ink) 80%);
}
.showcase__inner { max-width: 107.5rem; margin-inline: auto; }
.showcase h2 {
  margin: 0 auto clamp(1.5rem, 2.8svh, 2.375rem);
  padding-inline: var(--gutter);
  font: 400 clamp(min(2.5rem, 9vw), 4.5vw, 4.75rem)/1.06 var(--display);
  text-align: center;
}
.showcase h2 span {
  display: inline-block;
  border-bottom: .065em solid #d44346;
  padding-bottom: .09em;
}
.showcase__viewport { position: relative; }
.showcase__viewport:focus-visible { outline-offset: -3px; }
.showcase__track {
  display: flex;
  gap: 1.125rem;
  overflow-x: auto;
  padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
}
.showcase__slide {
  flex: 0 0 var(--face);
  position: relative;
  min-width: 0;
  aspect-ratio: 9/16;
  isolation: isolate;
  overflow: hidden;
  scroll-snap-align: center;
  background: #211925;
}
.showcase__slide > img, .showcase__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50%) center;
}
.showcase__video { opacity: 0; transition: opacity 200ms; }
.showcase__video.is-playing { opacity: 1; }
.showcase__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #b59b7970;
  background: linear-gradient(0deg, #110c15 0%, #110c15e8 15%, #110c15a0 32%, transparent 62%);
  pointer-events: none;
}
.showcase__copy {
  container-type: inline-size;
  --title-size: clamp(1.5625rem, 2.5vw, 2.625rem);
  position: absolute;
  z-index: 1;
  inset: auto 7.8% 6.2%;
  text-align: center;
}
.showcase__copy h3 {
  margin: 0 0 0.625rem;
  color: var(--paper);
  font: 400 min(var(--title-size), 12.3cqi)/1.04 var(--display);
  overflow-wrap: normal;
  text-wrap: balance;
}
.showcase__copy p {
  margin: auto;
  font: 400 clamp(0.875rem, 1.04vw, 1.0625rem)/1.48 Noto, sans-serif;
  color: #f8ece2;
  text-wrap: pretty;
}
.showcase__slide:is(.showcase__slide--portrait, .showcase__slide--emblem, .showcase__slide--jewelry, .showcase__slide--flag) {
  background: radial-gradient(ellipse at 50% 35%, #6b4b6f66, #16101cdb 77%),
    url("_shared/storm/media/chapter-observatory.webp") center/cover;
}
.showcase__slide--portrait > img { height: 79%; object-fit: contain; object-position: center bottom; }
.showcase__slide--emblem > img { inset: 17% 18% auto; width: 64%; height: 40%; object-fit: contain; }
.showcase__slide--jewelry > img { inset: 10% 20% auto; width: 60%; height: 43%; object-fit: contain; }
.showcase__slide--jewelry > img:nth-child(2) { left: 12%; top: 46%; width: 31%; height: 18%; }
.showcase__slide--jewelry > img:nth-child(3) { left: auto; right: 12%; top: 46%; width: 31%; height: 18%; }
.showcase__slide--flag > img { top: -2%; height: 70%; object-fit: contain; }
.showcase__slide--flag > img:nth-child(2) { inset: 13% 34% auto; width: 32%; height: 21%; }
.showcase__controls { display: none; }
.is-enhanced .showcase__controls { display: flex; justify-content: center; align-items: center; gap: 1.125rem; margin: 1.5rem auto 0; }
.showcase__arrow {
  display: grid; place-items: center; width: 3.5rem; height: 2.75rem;
  border: 1px solid #87909f; background: linear-gradient(#30323c, #1a1b23);
  color: #e5e9ef; cursor: pointer;
}
.showcase__arrow::before {
  content: ""; width: 1.5625rem; height: 1.125rem;
  background: url("_shared/brand/figma/elements/next.svg") center/contain no-repeat;
  filter: grayscale(1) brightness(1.4); transform: rotate(90deg);
}
.showcase__arrow[data-showcase-next]::before { transform: rotate(-90deg); }
.showcase__arrow:is(:hover, :focus-visible, :active) {
  border-color: #e4e9f3; background: linear-gradient(#57606d, #2e3440);
  box-shadow: inset 0 0 0.5625rem #c1cce433, 0 0 0.75rem #bac8e12b;
}
.showcase__slide.is-current { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.is-enhanced .showcase__viewport { overflow: hidden; touch-action: pan-y pinch-zoom; padding-block: 4px; cursor: grab; }
.is-enhanced .showcase__viewport.is-held { cursor: grabbing; }
.is-enhanced .showcase__track {
  position: relative;
  display: block;
  width: var(--face);
  aspect-ratio: 9/16;
  margin-inline: auto;
  padding: 0;
  overflow: visible;
  perspective: 75rem;
}
.is-enhanced .showcase__slide {
  position: absolute;
  inset: 0;
  transform: translateX(var(--offset)) translateZ(var(--depth)) rotateY(var(--turn)) scale(var(--scale));
  opacity: var(--visibility);
  z-index: var(--layer);
  pointer-events: none;
}
.is-enhanced .showcase__slide:not(.show-art) > img { display: none; }
.is-enhanced .showcase__slide.is-current { pointer-events: auto; }
.is-enhanced .showcase__slide.is-current::after { border-color: #d7b58c; }
.is-enhanced .showcase__slide:not(.is-current) .showcase__copy p { opacity: 0; }
.is-enhanced.has-position .showcase__slide {
  transition: transform var(--orbit-time) var(--orbit-ease), opacity var(--orbit-time), filter var(--orbit-time);
}
.is-enhanced .showcase__slide[data-place="front"] {
  --offset: 0%; --depth: 0px; --turn: 0deg; --scale: 1; --visibility: 1; --layer: 3;
}
.is-enhanced .showcase__slide:is([data-place="left"], [data-place="right"]) {
  --depth: -7.8125rem; --scale: .85; --visibility: 1; --layer: 2;
  filter: brightness(.73);
}
.is-enhanced .showcase__slide[data-place="left"] { --offset: calc(-1 * var(--ring-radius)); --turn: -24deg; }
.is-enhanced .showcase__slide[data-place="right"] { --offset: var(--ring-radius); --turn: 24deg; }
.is-enhanced .showcase__slide:is([data-place="back-left"], [data-place="back-right"]) {
  --depth: -18.75rem; --scale: .52; --visibility: 0; --layer: 1;
}
.is-enhanced .showcase__slide[data-place="back-left"] { --offset: -112%; --turn: -52deg; }
.is-enhanced .showcase__slide[data-place="back-right"] { --offset: 112%; --turn: 52deg; }
.showcase__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 680px) {
  .showcase { --face: clamp(193px, 63vw, 295px); --ring-radius: 77%; }
  .showcase__copy { inset-inline: 7%; bottom: 5.8%; }
  .showcase__copy h3 { --title-size: clamp(22px, 5.8vw, 29px); margin-bottom: 7px; }
  .showcase__copy p { font-size: clamp(12.5px, 3.25vw, 15px); line-height: 1.4; }
  .showcase__slide::after { background: linear-gradient(0deg, #110c15 0%, #110c15ed 22%, #110c158c 44%, transparent 66%); }
  .is-enhanced .showcase__controls { margin-top: 18px; }
  .is-enhanced .showcase__slide:not(.is-current) .showcase__copy { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase.is-enhanced.has-position .showcase__slide, .showcase__video { transition: none; }
}
