/* ═══════════════════════════════════════
   PROJECTS PAGE — GRID (section2)
═══════════════════════════════════════ */

.pr-section {
  position: relative;
  background: var(--bg-primary);
  z-index: 2;
}
.pr-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(70px, 11vh, 130px) clamp(20px, 4vw, 56px);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

.pr-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.pr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px 8px 11px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary-60);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.pr-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hero-green); }
.pr-head h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.pr-head h2 .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pr-head p {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-primary-60);
}

/* ── grid ── */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.pr-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.pr-card:hover { transform: translateY(-8px); box-shadow: 0 40px 80px -36px rgba(15, 37, 67, 0.4); border-color: transparent; }

.pr-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.pr-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.pr-card:hover .pr-media img { transform: scale(1.12); }
.pr-cat {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 18, 12, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 13px;
  border-radius: 100px;
}
.pr-watt {
  position: absolute;
  bottom: 16px; right: 16px;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: var(--brand-gradient);
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 14px 30px -12px rgba(255, 77, 109, 0.6);
}

.pr-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 24px;
}
.pr-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.pr-body p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-primary-60);
  flex: 1;
}
.pr-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.pr-client {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pr-client span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary-30);
}
.pr-client img {
  height: 30px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

/* ── RTL ── */
body.rtl .pr-head { text-align: right; }
body.rtl .pr-body { text-align: right; }
body.rtl .pr-eyebrow { flex-direction: row-reverse; }
body.rtl .pr-cat { left: auto; right: 16px; }
body.rtl .pr-watt { right: auto; left: 16px; }
body.rtl .pr-client { flex-direction: row-reverse; }

/* ── Responsive ── */
@media (max-width: 820px) {
  .pr-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .pr-card, .pr-media img { transition: none; }
}
