/* Featured project spotlight (Buy • Build page)
   Uses deals.css tokens: --deal-gold, --deal-navy, --deal-cream */

.project-spotlight {
  --ps-gold: var(--deal-gold, #d8a83e);
  --ps-navy: var(--deal-navy, #07111e);
  --ps-cream: var(--deal-cream, #f5f0e6);
  --ps-panel: #0c1a2b;
  --ps-line: rgba(216, 168, 62, .28);
  --ps-muted: rgba(255, 255, 255, .66);
  position: relative;
  overflow: hidden;
  padding: 110px 0 0;
  background:
    radial-gradient(1200px 500px at 100% 0%, rgba(216, 168, 62, .08), transparent 60%),
    var(--ps-navy);
  color: #fff;
}

/* Heading — matches .deal-section h2 scale */
.project-head { max-width: 980px; margin-bottom: 56px; }
.project-head h2 {
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  color: #fff;
}
.project-spotlight h2 em {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -.02em;
  color: var(--ps-gold);
}

.project-frame { border: 1px solid var(--ps-line); }

/* ---------- Media ---------- */
.project-media {
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #0f3b2e;
}
.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 30, 0) 45%, rgba(7, 17, 30, .92) 100%);
}
.project-media:hover img,
.project-media:focus-visible img { transform: scale(1.045); }
.project-media:focus-visible { outline: 2px solid var(--ps-gold); outline-offset: -2px; }

.project-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  padding: 9px 14px;
  background: var(--ps-gold);
  color: var(--ps-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.project-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-caption b { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: .02em; line-height: 1; }
.project-caption small { color: rgba(255, 255, 255, .75); font-size: 14px; }
.project-caption i {
  margin-top: 10px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--ps-gold);
  transition: letter-spacing .3s ease;
}
.project-media:hover .project-caption i { letter-spacing: .24em; }

/* ---------- Body ---------- */
.project-body { height: 100%; padding: 40px 22px; background: var(--ps-panel); }
.project-lead { margin: 16px 0 30px; font-size: 1.12rem; line-height: 1.7; color: var(--ps-muted); }
.project-label {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .5);
}

/* Strategy — 1px-gap grid like .process-grid */
.project-strategy {
  list-style: none;
  display: grid;
  gap: 1px;
  margin: 0 0 28px;
  padding: 0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
}
.project-strategy li {
  position: relative;
  padding: 17px 18px 17px 50px;
  background: var(--ps-panel);
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 2px 0 0 transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.project-strategy li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background: var(--ps-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2307111e' stroke-width='2.4' stroke-linecap='square' d='M3.5 8.4l3 3 6-6.6'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.project-strategy li:hover { background: #10233a; box-shadow: inset 2px 0 0 var(--ps-gold); }

/* Cycle — INVEST → REINVEST */
.project-cycle {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0 0 28px;
  padding: 0;
  background: var(--ps-line);
  border: 1px solid var(--ps-line);
}
.project-cycle li {
  position: relative;
  padding: 16px 8px;
  background: var(--ps-navy);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  transition: background .3s ease, color .3s ease;
}
.project-cycle li small { display: block; margin-bottom: 4px; font-size: 10px; letter-spacing: .1em; color: var(--ps-gold); }
.project-cycle li:last-child { grid-column: 1 / -1; background: var(--ps-gold); color: var(--ps-navy); }
.project-cycle li:last-child small { color: var(--ps-navy); opacity: .6; }
.project-cycle li:not(:last-child):hover { background: #10233a; }

/* Facts — mirrors .deal-statbar */
.project-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, .08);
}
.project-facts div { padding: 18px 16px; background: var(--ps-panel); }
.project-facts strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--ps-gold); }
.project-facts span { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: rgba(255, 255, 255, .6); }

.project-tagline { margin-bottom: 26px; font-size: 1.05rem; font-weight: 600; line-height: 1.6; }
.project-tagline small {
  display: block;
  margin-top: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ps-gold);
}

.project-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.project-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  transition: border-color .3s ease, color .3s ease;
}
.project-btn-ghost:hover { border-color: var(--ps-gold); color: var(--ps-gold); }
.project-actions .deal-btn,
.project-btn-ghost { flex: 1 1 100%; justify-content: center; }

.project-body .small-disclaimer { margin: 24px 0 0; font-size: 12px; line-height: 1.75; color: rgba(255, 255, 255, .45); }

/* Motto ribbon */
.project-ribbon {
  margin-top: 90px;
  overflow: hidden;
  border-top: 1px solid var(--ps-line);
  background: var(--ps-gold);
  color: var(--ps-navy);
}
.project-ribbon-track {
  display: flex;
  width: max-content;
  animation: ps-marquee 38s linear infinite;
}
.project-ribbon span { padding: 18px 0; white-space: nowrap; font-size: 13px; font-weight: 800; letter-spacing: .2em; }
.project-ribbon em { margin: 0 22px; font-style: normal; }
@keyframes ps-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .project-ribbon-track { animation: none; }
  .project-media img, .project-strategy li, .project-cycle li { transition: none; }
}

/* ---------- Breakpoints (mobile first) ---------- */
@media (min-width: 576px) {
  .project-body { padding: 48px 40px; }
  .project-facts { grid-template-columns: repeat(4, 1fr); }
  .project-cycle { grid-template-columns: repeat(5, 1fr); }
  .project-cycle li:last-child { grid-column: auto; }
  .project-actions .deal-btn,
  .project-btn-ghost { flex: 0 0 auto; }
}
@media (min-width: 768px) {
  .project-strategy { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .project-media { min-height: 560px; }
  .project-body { padding: 56px 52px; }
  .project-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .project-spotlight { padding-top: 80px; }
  .project-head { margin-bottom: 36px; }
  .project-ribbon { margin-top: 64px; }
}
