.wlp-projects {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 18%, hsl(34 42% 20% / 0.12), transparent 30%),
    radial-gradient(circle at 86% 44%, hsl(184 42% 18% / 0.1), transparent 34%),
    linear-gradient(180deg, hsl(var(--background)) 0%, hsl(0 0% 4%) 24%, hsl(0 0% 4%) 76%, hsl(var(--background)) 100%);
  color: hsl(var(--foreground));
  padding: clamp(5rem, 8vw, 8rem) min(5vw, 4rem);
}

.wlp-head {
  width: min(1180px, 100%);
  margin: 0 auto 2.5rem;
}

.wlp-head p,
.wlp-card span,
.wlp-featured__copy span {
  margin: 0 0 1rem;
  color: hsl(34 58% 75% / 0.72);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.wlp-head h2 {
  margin: 0;
  max-width: 850px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.wlp-head > span {
  display: block;
  max-width: 690px;
  margin-top: 1.2rem;
  color: hsl(0 0% 100% / 0.58);
  font-size: 1rem;
  line-height: 1.7;
}

.wlp-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.wlp-card,
.wlp-featured {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border: 1px solid hsl(0 0% 100% / 0.1);
  border-radius: 0.75rem;
  background: linear-gradient(145deg, hsl(0 0% 8% / 0.92), hsl(0 0% 5% / 0.96));
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.wlp-card:hover,
.wlp-featured:hover {
  transform: translateY(-3px);
  border-color: hsl(34 54% 70% / 0.34);
  background: linear-gradient(145deg, hsl(0 0% 10% / 0.96), hsl(0 0% 5% / 0.98));
}

.wlp-preview,
.wlp-featured__preview {
  margin: 1rem 1rem 0;
  overflow: hidden;
  border: 1px solid hsl(0 0% 100% / 0.1);
  border-radius: 0.65rem;
  background: hsl(0 0% 3%);
}

.wlp-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.25rem;
  border-bottom: 1px solid hsl(0 0% 100% / 0.08);
  padding: 0 0.75rem;
  color: hsl(0 0% 100% / 0.42);
  font-size: 0.68rem;
}

.wlp-bar i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: hsl(0 0% 100% / 0.16);
}

.wlp-bar span {
  flex: 1;
  margin: 0 0 0 0.35rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: 0;
  text-transform: none;
}

.wlp-preview img,
.wlp-featured__preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.88) contrast(1.04) brightness(0.86);
}

.wlp-card__copy {
  min-height: 12.5rem;
  padding: 1.35rem;
}

.wlp-card h3,
.wlp-featured h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1;
}

.wlp-card h3 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.wlp-card p,
.wlp-featured p {
  margin: 1rem 0 0;
  color: hsl(0 0% 100% / 0.6);
  line-height: 1.65;
}

.wlp-card p { font-size: 0.96rem; }

.wlp-card b,
.wlp-featured b {
  display: inline-flex;
  margin-top: 1.2rem;
  color: hsl(34 72% 80%);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Featured SeeForMe card is intentionally outside the normal grid.
   This prevents desktop CSS/grid placement from compressing the preview into a narrow strip. */
.wlp-featured-wrap {
  width: min(1180px, 100%);
  margin: 1rem auto 0;
}

.wlp-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(23rem, 0.84fr);
  align-items: stretch;
}

.wlp-featured__preview {
  margin: 1rem 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(180deg, hsl(210 68% 14%), hsl(214 76% 8%));
}

.wlp-featured__preview img {
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
}

.wlp-featured__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.6rem);
}

.wlp-featured h3 {
  font-size: clamp(3rem, 5.6vw, 5rem);
}

.wlp-featured p {
  max-width: 34rem;
  font-size: 1rem;
}

.wlp-featured__copy {
  background: linear-gradient(180deg, hsl(0 0% 7% / 0.9), hsl(0 0% 5% / 0.96));
}

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

  .wlp-featured {
    grid-template-columns: 1fr;
  }

  .wlp-featured__preview {
    margin: 1rem 1rem 0;
  }

  .wlp-featured__preview img {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .wlp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wlp-projects { padding-inline: 1rem; }
  .wlp-card__copy { min-height: auto; }
  .wlp-featured h3 { font-size: clamp(2.55rem, 14vw, 3.7rem); }
  .wlp-featured__copy { padding: 1.35rem; }
}


/* v7: Stable SeeForMe project preview.
   Uses a purpose-built image so the card works on desktop and mobile without broken live-site screenshot cropping. */
.wlp-featured {
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
}

.wlp-featured__preview {
  min-width: 0;
  align-self: center;
  margin: 1rem 0 1rem 1rem;
}

.wlp-featured__preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 1080px) {
  .wlp-featured {
    grid-template-columns: 1fr;
  }

  .wlp-featured__preview {
    margin: 1rem 1rem 0;
  }
}

@media (max-width: 640px) {
  .wlp-featured__preview img {
    aspect-ratio: 16 / 10;
  }
}


/* v8: use supplied SeeForMe cover art exactly and keep it stable across desktop and mobile. */
.wlp-featured__preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 640px) {
  .wlp-featured__preview img {
    aspect-ratio: 16 / 9;
  }
}


/* v9: direct anchor target for the featured SeeForMe project. */
#webleads-project-seeforme {
  scroll-margin-top: 7rem;
}

/* v10: preserves case-study SeeForMe archive links. */
