.model-showcase {
  padding-top: 64px;
  padding-bottom: 28px;
}
.model-showcase-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.model-showcase-heading h2 {
  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 400;
}
.model-showcase-heading h2 span {
  color: var(--primary);
}
.model-showcase-heading p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.showcase-all {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  color: var(--primary);
  font-size: 12px;
  min-height: 44px;
}
.model-showcase-viewport {
  overflow-x: auto;
  padding: 22px 6px 30px;
  margin-inline: -6px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.model-showcase-viewport::-webkit-scrollbar {
  display: none;
}
.model-showcase-track,
.showcase-original,
.showcase-copy {
  display: flex;
  width: max-content;
  gap: 16px;
}
.showcase-copy[hidden] {
  display: none;
}
.showcase-card {
  --showcase-tint: #edf3fa;
  --showcase-accent: #3977d2;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 282px;
  width: 282px;
  min-height: 278px;
  display: flex;
  flex-direction: column;
  padding: 23px 24px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    var(--surface-grain),
    radial-gradient(ellipse at 0 0, #fff, transparent 65%),
    linear-gradient(145deg, #ffffff 22%, var(--showcase-tint));
  background-size:
    144px 144px,
    auto,
    auto;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -3px 0
      color-mix(in srgb, var(--showcase-accent) 9%, var(--showcase-tint)),
    0 3px 5px -3px #243e5726,
    0 12px 24px -14px #243e5740,
    0 24px 38px -26px
      color-mix(in srgb, var(--showcase-accent) 38%, transparent);
  transition:
    transform 380ms var(--ease),
    box-shadow 380ms var(--ease),
    border-color 250ms;
}
.showcase-card[data-tone='clay'] {
  --showcase-tint: #fbf4ee;
  --showcase-accent: #b66b49;
}
.showcase-card[data-tone='sage'] {
  --showcase-tint: #eef6f2;
  --showcase-accent: #21846b;
}
.showcase-card[data-tone='sky'] {
  --showcase-tint: #eef4ff;
}
.showcase-card[data-tone='slate'] {
  --showcase-tint: #f0f4f7;
  --showcase-accent: #617285;
}
.showcase-card[data-tone='mist'] {
  --showcase-tint: #f2f2fb;
  --showcase-accent: #7966b0;
}
.showcase-card > :not(.showcase-watermark, .showcase-ribbons) {
  position: relative;
  z-index: 1;
}
.showcase-watermark {
  position: absolute;
  width: 142px;
  height: 142px;
  right: -14px;
  top: 56px;
  opacity: 0.085;
  transform: rotate(-12deg);
  pointer-events: none;
}
.showcase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    #fff9 50%,
    transparent 65%
  );
  background-size: 260% 100%;
  background-position: 130% 0;
}
.showcase-ribbons {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
  width: 116px;
  height: 116px;
  overflow: hidden;
  pointer-events: none;
}
.showcase-ribbon {
  position: absolute;
  top: 14px;
  right: -51px;
  width: 160px;
  height: 24px;
  padding-bottom: 2px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  transform-origin: center;
  border-block: 1px solid #ffffff30;
  color: #fff;
  background: linear-gradient(180deg, #557c9f, #315779 42%, #274565);
  box-shadow:
    0 3px 5px -1px #16293d45,
    inset 0 1px 0 #ffffff30;
  text-shadow: 0 1px 1px #16293d50;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.06em;
  pointer-events: auto;
}
.showcase-ribbon.is-best {
  background: linear-gradient(180deg, #b48a50, #825a2d 42%, #69471f);
}
.showcase-ribbon + .showcase-ribbon {
  top: 34px;
  right: -31px;
}
.showcase-card:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -3px 0
      color-mix(in srgb, var(--showcase-accent) 12%, var(--showcase-tint)),
    0 6px 10px -6px #243e5740,
    0 22px 35px -18px #243e574d,
    0 36px 48px -30px
      color-mix(in srgb, var(--showcase-accent) 44%, transparent);
  border-color: color-mix(in srgb, var(--showcase-accent) 36%, var(--line));
}
.showcase-card:focus-visible,
.showcase-controls button:focus-visible,
.model-showcase-viewport:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.showcase-brand {
  display: flex;
  gap: 9px;
  align-items: center;
  color: color-mix(in srgb, var(--showcase-accent) 75%, var(--ink));
  padding-right: 42px;
  font-size: 11px;
}
.showcase-brand img {
  width: 25px;
  height: 25px;
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .showcase-card:hover {
    transform: perspective(900px) translateY(-5px)
      rotateX(var(--card-tilt-x, 0deg)) rotateY(var(--card-tilt-y, 0deg));
  }
  .showcase-card:hover::after {
    animation: showcase-shimmer 850ms ease-out both;
  }
}
@keyframes showcase-shimmer {
  0% {
    opacity: 0;
    background-position: 130% 0;
  }
  25% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    background-position: -45% 0;
  }
}
.showcase-card h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 35px;
  line-height: 1.2;
  font-weight: 450;
  letter-spacing: -0.04em;
}
.showcase-card h3 span {
  font-family: var(--font);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: normal;
  white-space: nowrap;
}
.showcase-card code {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.showcase-card > p {
  margin-block: 17px 20px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
}
.showcase-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--primary);
  font-size: 11px;
}
.showcase-open > span {
  font-size: 17px;
}
.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -9px;
  color: var(--muted);
  font-size: 11px;
}
.showcase-controls {
  display: flex;
  gap: 7px;
}
.showcase-controls[hidden] {
  display: none;
}
.showcase-controls button {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--primary);
  background: var(--surface);
  font-size: 15px;
  transition: background 180ms;
}
.showcase-controls button[hidden] {
  display: none;
}
.showcase-controls button:hover {
  background: var(--primary-soft);
}
@media (max-width: 700px) {
  .model-showcase {
    padding-top: 44px;
  }
  .model-showcase-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .model-showcase-heading h2 {
    max-width: 12em;
    line-height: 1.5;
  }
  .model-showcase-heading h2 span {
    white-space: nowrap;
  }
  .model-showcase-heading p {
    font-size: 12px;
  }
  .showcase-all {
    min-height: 36px;
    font-size: 11px;
  }
  .model-showcase-viewport {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .showcase-card {
    flex-basis: min(78vw, 282px);
    width: min(78vw, 282px);
    min-height: 270px;
    padding-inline: 22px;
  }
  .showcase-card h3 {
    font-size: 33px;
  }
  .showcase-footer {
    font-size: 10px;
    gap: 8px;
  }
  .showcase-controls {
    gap: 5px;
  }
  .showcase-controls button {
    min-width: 36px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-card {
    transition: none;
  }
  .showcase-card:hover {
    transform: none;
  }
}
