.showcase-page {
  background: var(--white);
}

.showcase-hero {
  height: clamp(520px, calc(100vh - 150px), 680px);
}

.showcase-hero > img {
  object-position: center 52%;
}

.showcase-proof {
  display: grid;
  color: var(--white);
  background: var(--forest-deep);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.showcase-proof div {
  min-width: 0;
  padding: 25px max(20px, calc((100vw - var(--content)) / 8));
  border-right: 1px solid var(--dark-line);
}

.showcase-proof div:last-child {
  border-right: 0;
}

.showcase-proof strong,
.showcase-proof span {
  display: block;
}

.showcase-proof strong {
  color: var(--white);
  font-size: 1.05rem;
}

.showcase-proof span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
}

.showcase-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.showcase-feature {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.showcase-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.showcase-feature figcaption {
  min-height: 176px;
  padding: 24px;
}

.showcase-feature small {
  display: block;
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.showcase-feature h3 {
  margin-top: 8px;
  font-size: 1.2rem;
}

.showcase-feature p {
  margin: 10px 0 0;
  font-size: 0.8rem;
}

.showcase-gallery-section {
  background: var(--paper);
}

.showcase-filters {
  display: flex;
  margin: 0 0 32px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.showcase-filters button {
  position: relative;
  display: inline-flex;
  min-width: max-content;
  min-height: 52px;
  align-items: center;
  padding: 0 20px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
}

.showcase-filters button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--lime);
  content: "";
  transform: scaleX(0);
}

.showcase-filters button:hover,
.showcase-filters button:focus-visible,
.showcase-filters button.is-active {
  color: var(--forest-deep);
}

.showcase-filters button.is-active::after {
  transform: scaleX(1);
}

.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.showcase-card {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.showcase-card[hidden] {
  display: none;
}

.showcase-card button {
  display: block;
  width: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: zoom-in;
  text-align: left;
}

.showcase-card-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 250ms ease;
}

.showcase-card button:hover img,
.showcase-card button:focus-visible img {
  transform: scale(1.025);
}

.showcase-card-media svg {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  padding: 7px;
  color: var(--white);
  background: rgba(11, 45, 79, 0.88);
  border-radius: 3px;
}

.showcase-card-copy {
  display: block;
  min-height: 92px;
  padding: 15px 16px 17px;
}

.showcase-card-copy small {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.showcase-card-copy strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
}

.showcase-dialog {
  width: min(92vw, 1320px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: #061a2d;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

.showcase-dialog::backdrop {
  background: rgba(3, 14, 26, 0.88);
  backdrop-filter: blur(7px);
}

.showcase-dialog img {
  width: 100%;
  max-height: calc(92vh - 62px);
  object-fit: contain;
}

.showcase-dialog p {
  min-height: 62px;
  margin: 0;
  padding: 18px 70px 18px 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
}

.showcase-dialog-close {
  position: absolute;
  right: 12px;
  bottom: 11px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.showcase-note {
  margin-top: 26px;
  padding: 20px 22px;
  color: var(--muted);
  background: var(--paper-warm);
  border-left: 4px solid var(--teal);
  font-size: 0.8rem;
}

@media (max-width: 1020px) {
  .showcase-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .showcase-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-proof div:nth-child(2) {
    border-right: 0;
  }

  .showcase-proof div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--dark-line);
  }

  .showcase-feature-grid,
  .showcase-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .showcase-hero {
    height: 600px;
  }

  .showcase-hero > img {
    object-position: 57% center;
  }

  .showcase-proof div {
    padding: 18px 16px;
  }

  .showcase-proof strong {
    font-size: 0.9rem;
  }

  .showcase-feature-grid {
    grid-template-columns: 1fr;
  }

  .showcase-feature figcaption {
    min-height: 0;
  }

  .showcase-gallery {
    gap: 10px;
  }

  .showcase-card-copy {
    min-height: 96px;
    padding: 12px;
  }

  .showcase-card-copy strong {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-card img {
    transition: none;
  }
}
