/* A white, scroll-led project gallery adapted from the supplied video. */
.completed.completed-showcase {
  padding: 0;
  background: #fff;
  color: #000;
}
.completed-showcase .completed-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 3svh, 40px);
  padding-block: clamp(72px, 8svh, 120px) clamp(48px, 6svh, 80px);
}
.completed-showcase h2 {
  position: relative;
  z-index: 1;
  padding-inline: 24px;
  font-size: clamp(40px, 5vw, 96px);
  line-height: 1.04;
  text-align: center;
  text-transform: uppercase;
}
.completed-showcase .completed-viewport {
  --project-width: min(72vw, 840px);
  --project-gap: clamp(32px, 7vw, 160px);
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  container-type: inline-size;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #aaa transparent;
  padding-block: 20px;
}
.completed-showcase .completed-grid {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--project-gap);
  width: max-content;
  margin: 0;
  padding-inline: max(20px, calc((100cqw - var(--project-width)) / 2));
}
.completed-showcase .completed-card {
  position: relative;
  display: block;
  flex: 0 0 var(--project-width);
  width: var(--project-width);
  max-width: none;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: center;
  background: #28322d;
  color: #fff;
}
.completed-showcase .completed-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, #0003 66%, #000b 100%);
}
.completed-showcase .completed-card > img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.completed-showcase .completed-33 > img { object-position: center 43%; }
.completed-showcase .card-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: clamp(24px, 2.5vw, 48px);
  text-align: start;
}
.completed-showcase .card-caption h3 {
  font-size: clamp(28px, 2.6vw, 48px);
  font-weight: 500;
  line-height: 1;
}
.completed-showcase .card-caption p {
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.25;
}
.completed-showcase .completed-cta {
  grid-column: auto;
  grid-row: auto;
  justify-self: center;
  align-self: center;
  max-width: calc(100% - 40px);
  margin: 0;
  text-align: center;
}
.completed-showcase .completed-cta .button {
  padding: 18px 28px 14px;
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.1;
  white-space: normal;
}
.completed-showcase .completed-card:focus-visible {
  outline-color: var(--brand-brown);
  outline-offset: 6px;
}
.completed-showcase.completed--scroll .completed-stage {
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}
.completed-showcase.completed--scroll .completed-viewport {
  --project-width: min(44vw, 72svh, 900px);
  overflow: visible;
  perspective: 1800px;
  scroll-snap-type: none;
}
.completed-showcase.completed--scroll .completed-grid { transform-style: preserve-3d; }
.completed-showcase.completed--cylinder .completed-viewport {
  --project-gap: clamp(64px, 9vw, 200px);
  display: block;
}
.completed-showcase.completed--cylinder .completed-grid {
  position: relative;
  display: block;
  width: 100%;
  height: calc(var(--project-width) * 2 / 3);
  padding: 0;
}
.completed-showcase.completed--cylinder .completed-card {
  position: absolute;
  left: 50%;
  top: 50%;
  overflow: visible;
  isolation: auto;
  background: transparent;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.completed-showcase.completed--cylinder .completed-card > img,
.completed-showcase.completed--cylinder .completed-card > .card-caption { opacity: 0; }
.completed-showcase.completed--cylinder .completed-card::after { display: none; }
.completed-ribbon-surface {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.completed-ribbon-slice {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  overflow: hidden;
  background-repeat: no-repeat;
  backface-visibility: hidden;
}
.completed-showcase .completed-ribbon-slice > .card-caption { max-width: none; }
.completed-showcase.completed--active .completed-grid,
.completed-showcase.completed--active .completed-card { will-change: transform; }
html[dir='rtl'] .completed-showcase h2 { line-height: 1.3; }
html[dir='rtl'] .completed-showcase .card-caption h3 { line-height: 1.15; }
@media (max-width: 899px) {
  .completed-showcase .completed-stage { gap: 24px; }
  .completed-showcase h2 { font-size: clamp(36px, 6vw, 64px); }
  .completed-showcase .completed-viewport { --project-width: min(78vw, 650px); --project-gap: 32px; }
}
@media (max-width: 599px) {
  .completed-showcase .completed-stage { padding-block: 80px 64px; }
  .completed-showcase h2 { max-width: 480px; margin-inline: auto; font-size: 40px; line-height: 1.08; }
  .completed-showcase .completed-viewport { --project-width: 84vw; --project-gap: 20px; }
  .completed-showcase .card-caption { gap: 7px; padding: 24px; }
  .completed-showcase .card-caption h3 { font-size: 28px; }
}
