body.root-theme-page .projects-showcase {
  display: grid;
  gap: 2.2rem;
  margin-bottom: 2.8rem;
}

body.root-theme-page .projects-showcase-head {
  display: grid;
  gap: 1rem;
  max-width: 86rem;
}

body.root-theme-page .projects-showcase-head h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 1.04;
}

body.root-theme-page .projects-showcase-head p:not(.service-kicker) {
  max-width: 74rem;
  margin: 0;
  color: #b8b8b8;
  font-size: 1.68rem;
  line-height: 1.68;
}

body.root-theme-page .projects-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

body.root-theme-page .featured-project-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(28rem, 0.92fr) minmax(0, 1.08fr);
  min-height: 28rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2.4rem;
  background:
    radial-gradient(circle at 82% 10%, rgba(248, 180, 0, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 2rem 5.4rem rgba(0, 0, 0, 0.34);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

body.root-theme-page .featured-project-card:hover {
  transform: translateY(-0.35rem);
  border-color: rgba(248, 180, 0, 0.34);
  box-shadow: 0 2.6rem 6.8rem rgba(0, 0, 0, 0.46);
}

body.root-theme-page .project-rank {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid rgba(248, 180, 0, 0.4);
  border-radius: 50%;
  color: #070707;
  background: var(--site-gradient);
  font-family: "Outfit", sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  box-shadow: 0 1rem 2.4rem rgba(248, 180, 0, 0.18);
}

body.root-theme-page .featured-project-preview {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 1.4rem;
  background:
    radial-gradient(circle at 20% 12%, rgba(248, 180, 0, 0.18), transparent 34%),
    #0d0d0d;
}

body.root-theme-page .featured-project-preview::before {
  content: "";
  position: absolute;
  inset: 1.4rem 1.4rem auto;
  height: 3.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.6rem 1.6rem 0 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
  z-index: 2;
}

body.root-theme-page .featured-project-preview::after {
  content: "";
  position: absolute;
  top: 2.78rem;
  left: 3rem;
  z-index: 3;
  width: 0.86rem;
  height: 0.86rem;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 1.55rem 0 #ffbd2e, 3.1rem 0 #28c840;
}

body.root-theme-page .featured-project-preview img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 24rem;
  aspect-ratio: 16 / 10;
  margin-top: 5.2rem;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.6rem;
  background: #111111;
  box-shadow: 0 1.8rem 4.4rem rgba(0, 0, 0, 0.32);
}

body.root-theme-page .featured-project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(2rem, 3vw, 3rem);
  min-width: 0;
}

body.root-theme-page .featured-project-body .project-badge {
  width: fit-content;
  margin: 0;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(248, 180, 0, 0.16);
  border-radius: 999px;
  color: #ffd166;
  background: rgba(248, 180, 0, 0.08);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.root-theme-page .featured-project-body h3 {
  margin: 0;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.4rem, 3.2vw, 3.5rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

body.root-theme-page .featured-project-body p {
  margin: 0;
  color: #b8b8b8;
  font-size: 1.54rem;
  line-height: 1.66;
}

body.root-theme-page .featured-project-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.root-theme-page .featured-project-body li {
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0 1rem;
  border: 1px solid rgba(248, 180, 0, 0.16);
  border-radius: 999px;
  color: #d5d5d5;
  background: rgba(255, 255, 255, 0.045);
  font-size: 1.18rem;
  line-height: 1.2;
}

body.root-theme-page .project-live-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: fit-content;
  min-height: 4.6rem;
  margin-top: 0.3rem;
  padding: 0 1.55rem;
  border: 1px solid rgba(248, 180, 0, 0.42);
  border-radius: 999px;
  color: #070707;
  background: var(--site-gradient);
  font-size: 1.34rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 1.4rem 3rem rgba(248, 180, 0, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

body.root-theme-page .project-live-link:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 1.8rem 3.8rem rgba(248, 180, 0, 0.24);
}

@media (max-width: 920px) {
  body.root-theme-page .featured-project-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.root-theme-page .featured-project-preview {
    min-height: auto;
  }

  body.root-theme-page .featured-project-preview img {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  body.root-theme-page .featured-project-body {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body.root-theme-page .projects-showcase {
    gap: 1.6rem;
    margin-bottom: 2rem;
  }

  body.root-theme-page .projects-showcase-head h2 {
    font-size: clamp(2.7rem, 9vw, 3.6rem);
  }

  body.root-theme-page .projects-showcase-head p:not(.service-kicker) {
    font-size: 1.5rem;
  }

  body.root-theme-page .featured-project-card {
    border-radius: 2rem;
  }

  body.root-theme-page .featured-project-preview {
    min-height: auto;
    padding: 1rem;
  }

  body.root-theme-page .featured-project-preview::before {
    inset: 1rem 1rem auto;
  }

  body.root-theme-page .featured-project-preview::after {
    top: 2.35rem;
    left: 2.6rem;
  }

  body.root-theme-page .featured-project-preview img {
    margin-top: 4.6rem;
  }

  body.root-theme-page .featured-project-body {
    padding: 1.6rem;
  }

  body.root-theme-page .project-live-link {
    width: 100%;
  }
}
