/* Shared “What we build” product cards — homepage, /products, custom-projects */
.gn-build-host {
  background: #0f1419;
  color: #e8edf2;
}

.gn-build-host .cp-products {
  padding: 4rem 0;
  background: transparent;
}

.gn-build-host--page {
  padding: 0 0 4rem;
}

.gn-build-host .cp-section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  margin-bottom: 0.5rem;
  color: #fff;
}

.gn-build-host .cp-section-sub {
  text-align: center;
  color: rgba(232, 237, 242, 0.6);
  margin-bottom: 2.5rem;
}

.gn-build-host .cp-build-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .gn-build-host .cp-build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gn-build-host .cp-build-grid {
    grid-template-columns: 1fr;
  }
}

.gn-build-host .cp-build-card {
  background: linear-gradient(165deg, #1a2332 0%, #141b28 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.gn-build-host .cp-build-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.gn-build-host .cp-build-card__media {
  margin: 0.85rem 0.85rem 0;
  border-radius: 10px;
  overflow: hidden;
  height: 130px;
  max-height: 130px;
  background: #0a0e17;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gn-build-host .cp-build-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gn-build-host .cp-build-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: rgba(212, 175, 55, 0.35);
}

.gn-build-host .cp-build-card__media--video iframe,
.gn-build-host .cp-build-card__media--video video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}

.gn-build-host .cp-build-card__body {
  padding: 0.85rem 1rem 1.1rem;
}

.gn-build-host .cp-build-card__body h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.gn-build-host .cp-build-card__body p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(232, 237, 242, 0.65);
  margin: 0 0 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gn-build-host .cp-card__btn {
  background: transparent;
  border: none;
  color: #ffd700;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gn-build-host .cp-card__btn:hover {
  text-decoration: underline;
}

.gn-build-loading {
  text-align: center;
  color: rgba(232, 237, 242, 0.55);
  padding: 3rem 1rem;
}

.gn-build-foot {
  text-align: center;
  margin-top: 2rem;
}

.gn-build-foot a {
  color: #ffd700;
  font-weight: 700;
  text-decoration: none;
}

.gn-build-foot a:hover {
  text-decoration: underline;
}

/* Modal */
.gn-build-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gn-build-modal[hidden] {
  display: none;
}

.gn-build-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.gn-build-modal__panel {
  position: relative;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #141b28;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.gn-build-detail[hidden] {
  display: none !important;
}

.gn-build-detail:not([hidden]) {
  display: block;
}

.gn-build-detail__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.gn-build-detail__head h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: #fff;
  margin: 0.5rem 0;
}

.gn-build-detail__badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.5);
  background: rgba(10, 14, 23, 0.85);
}

.gn-build-detail__desc {
  color: rgba(232, 237, 242, 0.85);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.gn-build-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.gn-build-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.gn-build-media--video iframe,
.gn-build-media--video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  background: #000;
  border-radius: 12px;
}

.gn-build-detail__icon {
  max-width: 200px;
  margin: 0 auto 1.25rem;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ffd700;
  border-radius: 16px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
}
