/* ==========================================================
   VEKTOR — Project Detail page styles (shared)
   Used by /projects/<slug>/index.html
   ========================================================== */

.pd-section { padding: 72px 0; position: relative; }
.pd-section--tight { padding: 56px 0; }

/* ---------- HERO ---------- */
.pd-hero {
  padding: 134px 0 60px;
  position: relative;
}
.pd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}
.pd-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: #6b7280; font-weight: 700; text-decoration: none;
  margin-bottom: 22px;
  transition: color .2s var(--ease-out-quart), gap .25s var(--ease-out-back);
}
.pd-back:hover { color: var(--ink); gap: 12px; }

.pd-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: .96;
  font-weight: 500;
  max-width: 16ch;
  letter-spacing: -0.04em;
}
.pd-lead {
  margin-top: 22px;
  max-width: 38rem;
  font-size: 18px;
  line-height: 1.55;
  color: #5f6368;
}

.pd-meta-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 26px;
}
.pd-meta-row span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(32, 33, 36, 0.06);
  border: 1px solid rgba(32, 33, 36, 0.08);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5f6368;
}

.pd-hero-media {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background: #efeae0;
  box-shadow: 0 40px 80px -20px rgba(32, 33, 36, 0.25);
  aspect-ratio: 4 / 5;
}
.pd-hero-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.6s var(--ease-out-quart);
}
.pd-hero-media:hover img { transform: scale(1.04); }
.pd-hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(32, 33, 36, 0.22) 100%);
}
.pd-hero-tag {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: #5f6368;
}

/* ---------- KEY STATS BAR ---------- */
.pd-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.pd-stat-card {
  padding: 22px 22px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(32, 33, 36, 0.08);
  box-shadow: 0 16px 36px -16px rgba(32, 33, 36, 0.16);
  backdrop-filter: blur(8px);
}
.pd-stat-card strong {
  display: block;
  font-size: 1.85rem;
  letter-spacing: -.04em;
  color: var(--ink);
  font-weight: 500;
}
.pd-stat-card span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8b93a1;
  font-weight: 700;
}

/* ---------- NARRATIVE: TWO-COLUMN ---------- */
.pd-narrative-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: 56px;
  align-items: start;
}
.pd-narrative-grid h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-top: 14px;
}
.pd-narrative-grid .pd-eyebrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: #8b93a1; font-weight: 700;
}
.pd-narrative-grid > .pd-narrative-aside {
  position: sticky; top: 120px;
}
.pd-narrative-aside .pd-aside-quote {
  margin-top: 22px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(32, 33, 36, 0.04);
  border: 1px solid rgba(32, 33, 36, 0.08);
  font-size: 16px;
  line-height: 1.55;
  color: #3c4043;
}
.pd-narrative-aside .pd-aside-quote strong {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8b93a1;
  font-weight: 700;
}

.pd-story-list { display: grid; gap: 16px; }
.pd-story-card {
  padding: 26px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(32, 33, 36, 0.08);
  box-shadow: 0 16px 36px -16px rgba(32, 33, 36, 0.12);
  transition: transform .5s var(--ease-out-quart), box-shadow .5s var(--ease-out-quart), border-color .35s var(--ease-out-quart);
}
.pd-story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px -18px rgba(32, 33, 36, 0.2);
  border-color: rgba(32, 33, 36, 0.16);
}
.pd-story-card .pd-eyebrow { color: #5f6368; }
.pd-story-card h3 {
  margin-top: 12px;
  font-size: 1.35rem;
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 600;
}
.pd-story-card p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #5f6368;
}

/* ---------- INLINE PULL QUOTE ---------- */
.pd-pullquote {
  margin: 0 auto;
  max-width: 64ch;
  padding: 48px 24px;
  text-align: center;
}
.pd-pullquote blockquote {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}
.pd-pullquote blockquote::before { content: "“"; color: var(--blue); margin-right: 2px; }
.pd-pullquote blockquote::after  { content: "”"; color: var(--blue); margin-left: 2px; }
.pd-pullquote cite {
  display: block;
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8b93a1;
  font-weight: 700;
  font-style: normal;
}

/* ---------- SCOPE / SYSTEMS STRIP ---------- */
.pd-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.pd-scope-item {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(32, 33, 36, 0.08);
  display: grid;
  gap: 8px;
  transition: transform .35s var(--ease-out-back), border-color .3s var(--ease-out-quart), background .3s var(--ease-out-quart);
}
.pd-scope-item:hover {
  transform: translateY(-3px);
  border-color: rgba(32, 33, 36, 0.18);
  background: rgba(255, 255, 255, 0.9);
}
.pd-scope-item strong {
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--ink);
  font-weight: 600;
}
.pd-scope-item span {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
}

/* ---------- TIMELINE ---------- */
.pd-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.pd-timeline-step {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 33, 36, 0.08);
  position: relative;
}
.pd-timeline-step::before {
  content: "";
  position: absolute; right: -12px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 1px;
  background: rgba(32, 33, 36, 0.12);
}
.pd-timeline-step:last-child::before { display: none; }
.pd-timeline-step .pd-step-num {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8b93a1;
  font-weight: 700;
}
.pd-timeline-step strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--ink);
  font-weight: 600;
}
.pd-timeline-step p {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* ---------- GALLERY (clear, isolated section) ---------- */
.pd-gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.pd-gallery-count {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8b93a1;
  font-weight: 700;
}
.pd-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.pd-gallery .g-item {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(32, 33, 36, 0.08);
  background: #1d1f22;
  cursor: zoom-in;
  transition: transform .35s var(--ease-out-quart), box-shadow .35s var(--ease-out-quart);
  position: relative;
}
.pd-gallery .g-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -16px rgba(32, 33, 36, 0.24);
}
.pd-gallery .g-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
  transition: transform 1.2s var(--ease-out-quart);
  will-change: transform;
}
.pd-gallery .g-item:hover img { transform: scale(1.06); }

.pd-gallery .g-tall  { grid-column: span 2; }
.pd-gallery .g-wide  { grid-column: span 4; }
.pd-gallery .g-half  { grid-column: span 3; }
.pd-gallery .g-third { grid-column: span 2; }
.pd-gallery .g-feature { grid-column: span 6; }
.pd-gallery .g-feature img { aspect-ratio: 16 / 7; }

/* ---------- LIGHTBOX ---------- */
.pd-lightbox {
  position: fixed; inset: 0;
  background: rgba(12, 14, 17, 0.96);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.pd-lightbox.open { display: flex; }
.pd-lightbox img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.pd-lightbox .pd-close {
  position: absolute; top: 18px; right: 22px;
  color: #fff; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  width: 46px; height: 46px;
  font-size: 22px; cursor: pointer;
  transition: background .25s var(--ease-out-quart);
}
.pd-lightbox .pd-close:hover { background: rgba(255, 255, 255, 0.2); }
.pd-lightbox .pd-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  color: #fff; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  width: 52px; height: 52px;
  font-size: 24px; cursor: pointer;
  transition: background .25s var(--ease-out-quart), transform .25s var(--ease-out-back);
}
.pd-lightbox .pd-nav:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-50%) scale(1.08); }
.pd-lightbox .pd-prev { left: 22px; }
.pd-lightbox .pd-next { right: 22px; }
.pd-lightbox .pd-caption {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px; letter-spacing: .12em;
}

/* ---------- BOTTOM CTA ---------- */
.pd-cta {
  padding: 80px 0 100px;
  text-align: center;
}
.pd-cta h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: -.03em;
  margin: 0 auto 14px;
  max-width: 28ch;
  font-weight: 500;
  line-height: 1.05;
}
.pd-cta p {
  color: #5f6368;
  max-width: 52ch;
  margin: 0 auto 26px;
  font-size: 17px;
}

/* ---------- NEXT PROJECT NAV ---------- */
.pd-next-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 56px;
}
.pd-next-card {
  position: relative;
  display: block;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(32, 33, 36, 0.1);
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  min-height: 180px;
  transition: transform .55s var(--ease-out-quart), box-shadow .55s var(--ease-out-quart), border-color .35s var(--ease-out-quart);
}
.pd-next-card .pd-next-label {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: #8b93a1; font-weight: 700;
}
.pd-next-card strong {
  display: block; margin-top: 14px;
  font-size: 1.35rem; letter-spacing: -.02em;
  color: var(--ink); font-weight: 600;
}
.pd-next-card span {
  display: block; margin-top: 8px;
  font-size: 13px; color: #6b7280;
}
.pd-next-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 33, 36, 0.18);
  box-shadow: 0 28px 54px -20px rgba(32, 33, 36, 0.22);
}
.pd-next-card .pd-arrow {
  position: absolute; right: 28px; bottom: 28px;
  width: 42px; height: 42px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  transition: transform .35s var(--ease-out-back);
}
.pd-next-card:hover .pd-arrow { transform: translateX(4px) scale(1.08); }
.pd-next-card.is-prev { text-align: left; }
.pd-next-card.is-next { text-align: right; }
.pd-next-card.is-next .pd-arrow { right: auto; left: 28px; transform: rotate(180deg); }
.pd-next-card.is-next:hover .pd-arrow { transform: rotate(180deg) translateX(4px) scale(1.08); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .pd-hero-grid { grid-template-columns: 1fr; }
  .pd-hero-media { aspect-ratio: 4 / 3; }
  .pd-stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-narrative-grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-narrative-grid > .pd-narrative-aside { position: relative; top: 0; }
  .pd-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-timeline-step::before { display: none; }
  .pd-gallery .g-tall, .pd-gallery .g-wide, .pd-gallery .g-half, .pd-gallery .g-third { grid-column: span 3; }
  .pd-next-strip { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pd-hero { padding: 110px 0 36px; }
  .pd-stats-bar { grid-template-columns: 1fr 1fr; }
  .pd-timeline { grid-template-columns: 1fr; }
  .pd-gallery .g-tall, .pd-gallery .g-wide, .pd-gallery .g-half, .pd-gallery .g-third, .pd-gallery .g-feature { grid-column: span 6; }
}
