.featured-project {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.featured-project__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6.25vw, 4rem);
  align-items: center;
  margin-top: 3rem;
}

.featured-project__heading {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* =========================================================================
   Left column — stacked Before / After images
   ========================================================================= */
.featured-project__media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-project__image {
position: relative;
    width: 100%;
    height: 100%;
    max-height: clamp(18.75rem, 40.36vw, 25rem);
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
}

.featured-project__image img {
display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(-15%);
}

.featured-project__image-label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background-color: rgba(44, 44, 44, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================================
   Right column — copy + key list + CTA
   ========================================================================= */
.featured-project__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-project__eyebrow {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;  
  margin: 0;
  color: var(--e-global-color-accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-project__title {
  margin: 0;
  color: var(--e-global-color-secondary);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.featured-project__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: rgba(var(--e-global-color-secondary), 0.62);
  font-size: 0.9375rem;
}

.featured-project__scope-heading {
  margin: 0;
  color: var(--e-global-color-secondary);
  font-size: 1.125rem;
  font-weight: 600;
}

.featured-project__excerpt {
  margin: 0;
  color: rgba(var(--e-global-color-secondary), 0.62);
  font-size: 1rem;
  line-height: 1.6;
}

.featured-project__excerpt p {
  margin: 0 0 0.75rem;
}

.featured-project__excerpt p:last-child {
  margin-bottom: 0;
}

.featured-project__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  font-weight: 700 !important;
  color: var(--e-global-color-secondary) !important;
}

/* =========================================================================
   Key List — semantic <dl> rendered as a CSS Grid.
   Used both inside the Featured Project section and standalone via the
   [project_key_list] shortcode.

   auto-fit + minmax() lets the number of columns adapt to the number of
   items automatically: with only 2 items, only 2 columns are created
   (empty tracks collapse) rather than leaving empty grid cells, and the
   minmax() floor is what actually changes at each breakpoint below.
   ========================================================================= */
.project-key-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem 2rem;
  border-top: 1px solid rgba(var(--e-global-color-secondary), 0.12);
}

.project-key-list__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.project-key-list__label {
  margin: 0;
  color: rgba(var(--e-global-color-secondary), 0.62);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-key-list__value {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.125rem, 3vw, 1.75rem);
  line-height: 1.2;
  color: var(--e-global-color-accent);
}

/* Desktop: 1400px and up — roomier minimum column width */
@media (width >= 1400px) {
  .project-key-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem 2.5rem;
  }
}

/* Tablet: up to 1023px */
@media (width <= 1023px) {
  .featured-project {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-key-list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem 1.5rem;
  }
}

/* Mobile: up to 767px */
@media (width <= 767px) {
  .featured-project__inner {
    grid-template-columns: 1fr;
  }  

  .featured-project__image {
    flex: 1;
  }

  .project-key-list {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .featured-project__cta {
    transition: none !important;
  }
}
