/* WOLARIX project presentation system v1 — single visual grammar for all client projects.
   Reusable classes: project-feature, project-feature__link, project-feature__copy,
   project-feature__media, project-feature__image, project-card, project-card__media.
   This stylesheet is loaded only on home/portfolio FR/EN. */

/* The portfolio features use an editorial two-column grid (text 38%, visual 62%). */
.project-feature {
  padding-block: clamp(34px, 5vw, 70px) !important;
  min-width: 0;
}
.project-feature .project-feature__link {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4vw, 68px);
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-top: clamp(24px, 3vw, 42px);
}
.project-feature .project-feature__copy {
  min-width: 0;
}
.project-feature .project-feature__copy h2 {
  font-size: clamp(38px, 4.1vw, 68px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.project-feature .project-feature__copy p {
  max-width: 36ch;
  line-height: 1.65;
}
.project-feature .project-feature__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 540px;
  min-width: 0;
  overflow: hidden;
  background: #191b19;
}
.project-feature .project-feature__image,
.project-feature .project-feature__media img {
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}
.project-feature .project-feature__link:hover .project-feature__image {
  transform: scale(1.025);
}

/* Home: matching covers, non-staggered, coherent spacing for every project. */
.home-work .showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 28px);
  align-items: start;
}
.home-work .project-card,
.home-work .showcase-item:nth-child(2) {
  transform: none !important;
  margin: 0 !important;
  min-width: 0;
}
.home-work .project-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.home-work .project-card__media img {
  width: 100%;
  height: 100% !important;
  aspect-ratio: auto !important;
  display: block;
  object-fit: cover;
  object-position: center;
}
.home-work .project-card > div:last-child {
  flex-wrap: wrap;
  gap: 8px 12px;
}

@media (max-width: 1050px) {
  .home-work .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-feature .project-feature__link {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 24px;
  }
}
@media (max-width: 750px) {
  .project-feature .project-feature__link {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .project-feature .project-feature__media {
    aspect-ratio: 16 / 10;
    max-height: none;
    order: -1;
  }
  .project-feature .project-feature__copy h2 {
    font-size: clamp(37px, 9vw, 56px);
  }
}
@media (max-width: 600px) {
  .home-work .showcase-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .home-work .project-card__media {
    aspect-ratio: 16 / 10;
  }
  .project-feature .project-feature__copy p {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-feature .project-feature__image { transition: none; }
}

/* Project label typography: identical presentation regardless of nested translation spans.
   The old selectors `.showcase-item b` (23px) and `.showcase-item span` (10px)
   caused PixelPark and Essafir Cars to render at different sizes. */
.home-work .showcase-item .project-card__type,
.home-work .showcase-item .project-card__type span {
  font-family: var(--cond), 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.home-work .showcase-item > div:last-child > span:first-child {
  font-size: 11px;
  line-height: 1.35;
}
.home-work .showcase-item > div:last-child {
  min-height: 54px;
  column-gap: 15px;
}
@media(max-width:650px){
 .home-work .showcase-item .project-card__type,
 .home-work .showcase-item .project-card__type span{font-size:12px}
}
