/* Shared image framing for case studies and the homepage work gallery only. */
.project-profile,
.home-overview {
  --project-card-radius: clamp(18px, 2vw, 30px);
  --project-card-gap: 22px;
}

/* The hero keeps one exact landscape frame, without a mat or device border. */
.project-profile .project-cover-placeholder {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--project-card-radius);
  box-sizing: border-box;
  height: auto;
  max-width: 1800px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  width: 100%;
}
.project-profile .project-cover-placeholder > img,
.project-profile .project-concept-card > img,
.project-profile .project-collage-card > img,
.project-profile .project-responsive-card > img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}
.project-profile .project-cover-placeholder > img { object-position: center top; }
.project-profile .project-cover-placeholder::after { display: none; }
.project-profile .project-cover-placeholder--image::before { display: none; }

/* Two edge-to-edge rows stay natively scrollable when motion is paused. */
.project-profile .project-explorations h2 {
  font-size: clamp(32px, 3.4vw, 64px);
  letter-spacing: -.07em;
  line-height: 1.05;
}
.project-concept-rows {
  display: grid;
  gap: var(--project-card-gap, 22px);
  margin: clamp(60px, 7vw, 108px) -3.2vw 0;
  min-width: 0;
}
.project-concept-row {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 0 0 8px;
  scrollbar-width: none;
  width: 100%;
}
.project-concept-row::-webkit-scrollbar { display: none; }
.project-concept-track,
.project-concept-group {
  align-items: stretch;
  display: flex;
  gap: var(--project-card-gap, 22px);
  width: max-content;
}
.project-concept-group { flex: 0 0 auto; }
.project-profile .project-concept-card,
.project-profile .project-concept-card.project-empty-card {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #efefed;
  border: 0;
  border-radius: var(--project-card-radius);
  box-shadow: none;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  grid-column: auto;
  height: auto;
  justify-content: center;
  margin: 0;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: clamp(240px, 27.5vw, 520px);
}

/* The collage is a full-bleed poster, not an inset gallery card. */
.project-collage { margin: 0; overflow: hidden; padding: 0; }
.project-profile .project-collage-card {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #efefed;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: auto;
  justify-content: center;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

/* Empty slots have quiet metadata, with no legacy rings or diagonals. */
.project-profile .project-concept-card::before,
.project-profile .project-collage-card::before {
  background: radial-gradient(circle, #0909091a .6px, transparent .8px);
  background-size: 12px 12px;
  border: 0;
  content: "";
  inset: 0;
  opacity: .3;
  pointer-events: none;
  position: absolute;
}
.project-profile .project-concept-card::after,
.project-profile .project-collage-card::after { display: none; }
.project-profile .project-concept-card--image::before,
.project-profile .project-concept-card.project-image-interactive::before,
.project-profile .project-collage-card--image::before,
.project-profile .project-collage-card.project-image-interactive::before { display: none; }
.project-concept-card > span,
.project-collage-card > span {
  font: 10px var(--mono);
  letter-spacing: .08em;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}
.project-concept-card > small,
.project-collage-card > small {
  color: #09090980;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 9px;
  position: relative;
  z-index: 1;
}
.project-collage-card > span { font-size: clamp(14px, 2vw, 30px); }
.project-concepts-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 22px;
}
.project-concepts-motion {
  background: transparent;
  border: 1px solid #09090980;
  border-radius: 999px;
  color: #090909;
  cursor: pointer;
  font: 10px var(--mono);
  min-height: 44px;
  padding: 12px 18px;
}
.project-concepts-motion:hover { background: #090909; color: #fff; }
.project-concepts-status { color: #09090980; font-size: 11px; }
.project-concepts-motion:focus-visible,
.project-concept-row:focus-visible,
.project-concept-card:focus-visible,
.project-collage-card:focus-visible,
.project-responsive-card:focus-visible,
.project-responsive-track:focus-visible {
  outline: 2px solid #090909;
  outline-offset: 4px;
}

/* All mobile screenshots, including empty PMM slots, use the same 9:16 frame. */
.project-profile .project-responsive-track {
  align-items: flex-start;
  gap: var(--project-card-gap, 22px);
  overscroll-behavior-x: contain;
  padding: 10px 0 20px;
  scroll-padding-inline: 0;
  scroll-snap-type: x proximity;
}
.project-profile .project-responsive-card {
  aspect-ratio: 9 / 16;
  background: #efefed;
  border: 0;
  border-radius: var(--project-card-radius);
  box-sizing: border-box;
  flex: 0 0 min(24vw, 360px);
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  scroll-snap-align: start;
  width: min(24vw, 360px);
}
.project-profile .project-responsive-card::before,
.project-profile .project-responsive-card::after { display: none; }
.project-responsive-controls { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.project-responsive-controls button {
  align-items: center;
  background: transparent;
  border: 1px solid #09090970;
  border-radius: 50%;
  color: #090909;
  cursor: pointer;
  display: inline-flex;
  font: 22px var(--sans);
  height: 44px;
  justify-content: center;
  width: 44px;
}
.project-responsive-controls button:disabled { cursor: default; opacity: .3; }
.project-responsive-controls button:not(:disabled):hover { background: #090909; color: #fff; }
.project-responsive-controls button:focus-visible { outline: 2px solid #090909; outline-offset: 4px; }

/* The homepage's separate feature poster keeps its existing responsive ratio. */
.home-overview .gallery .project-art--image,
.home-overview .gallery.is-list .project-art--image {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--project-card-radius);
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}
.home-overview .gallery .project-art--image > img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

@media (max-width: 800px) {
  .project-profile { --project-card-gap: 12px; }
  .project-concept-rows { margin-inline: -20px; }
  .project-profile .project-concept-card,
  .project-profile .project-concept-card.project-empty-card {
    aspect-ratio: 16 / 9;
    width: clamp(170px, 48vw, 330px);
  }
  .project-profile .project-responsive-track { gap: 22px; }
  .project-profile .project-responsive-card {
    aspect-ratio: 9 / 16;
    flex-basis: min(68vw, 330px);
    height: auto;
    width: min(68vw, 330px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-concept-group[aria-hidden="true"] { display: none; }
}
