/* Hide standard layout breadcrumb-area on this page */
.breadcrumb-area {
  display: none !important;
}

/* ===== PROJECT DETAIL PAGE ===== */
.pd-hero, .page-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  padding-top: 140px;
}
.pd-hero::before, .page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,24,26,0.55) 0%, rgba(23,24,26,0.8) 60%, var(--ink) 100%);
}
.pd-hero::after, .page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(245,242,236,0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(245,242,236,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
}
.pd-hero-inner, .page-banner-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
  width: 100%;
}
.breadcrumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--steel-light);
}
.breadcrumb a:hover {
  color: var(--amber);
}
.breadcrumb span {
  color: var(--amber);
}
.pd-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pd-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
}
.pd-badge.division {
  background: var(--amber);
  color: #fff;
}
.pd-badge.status-completed {
  background: var(--paper);
  color: var(--ink);
}
.pd-badge.status-ongoing {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--amber);
  display: flex;
  align-items: center;
  gap: 7px;
}
.pd-badge.status-ongoing .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.pd-hero h1, .page-banner-inner h1 {
  color: var(--paper);
  font-size: clamp(30px, 4.8vw, 54px);
  font-weight: 600;
  max-width: 760px;
  line-height: 1.15;
}

.pd-meta-strip {
  background: var(--paper-dim);
  border-bottom: 1px solid var(--line);
}
.pd-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.pd-meta-cell {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}
.pd-meta-cell:last-child {
  border-right: none;
}
.pd-meta-cell span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 6px;
}
.pd-meta-cell b {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.pd-body {
  padding-top: 80px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
}
.pd-body h2 {
  font-size: 24px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.pd-body p.lead {
  font-size: 15.5px;
  color: var(--steel);
  margin-bottom: 16px;
  max-width: 640px;
  line-height: 1.7;
}
.pd-body .case-details {
  font-size: 15px;
  color: var(--steel);
  line-height: 1.7;
}
.pd-body .case-details p {
  margin-bottom: 16px;
}
.pd-scope {
  margin: 26px 0 10px;
}
.pd-scope li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14.5px;
  color: var(--ink);
  max-width: 600px;
}
.pd-scope svg {
  width: 18px;
  height: 18px;
  stroke: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.pd-side {
  background: var(--paper-dim);
  padding: 32px 28px;
  height: fit-content;
  position: sticky;
  top: 110px;
}
.pd-side h3 {
  font-size: 15px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.pd-side .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}
.pd-side-note {
  font-size: 12.5px;
  color: var(--steel);
  margin-top: 16px;
  line-height: 1.6;
}

.pd-gallery {
  padding-bottom: 90px;
}
.pd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pd-gallery-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  cursor: pointer;
  transition: transform .4s ease;
}
.pd-gallery-grid img:hover {
  transform: scale(1.03);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(23, 24, 26, 0.94);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--line-light);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 36px;
  color: var(--paper);
  font-size: 14px;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-light);
  padding: 10px 16px;
}

.pd-notfound {
  padding: 200px 0 140px;
  text-align: center;
}
.pd-notfound h1 {
  font-size: 32px;
  margin-bottom: 16px;
}
.pd-notfound p {
  color: var(--steel);
  margin-bottom: 26px;
}

@media (max-width: 1024px) {
  .pd-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pd-meta-cell:nth-child(2n) {
    border-right: none;
  }
  .pd-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pd-side {
    position: static;
  }
  .pd-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .pd-meta-grid {
    grid-template-columns: 1fr;
  }
  .pd-meta-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .pd-meta-cell:last-child {
    border-bottom: none;
  }
}

/* Override centering from layout page-banner defaults */
.page-banner {
  text-align: left !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
}
.page-banner-inner {
  text-align: left !important;
}
.page-banner-inner .breadcrumb {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.page-banner-inner .pd-badges {
  justify-content: flex-start !important;
  margin-left: 0 !important;
}
.page-banner-inner h1 {
  text-align: left !important;
}

@media (max-width: 768px) {
  .page-banner { padding-top: 110px; min-height: 40vh; }
  .page-banner-inner h1 { font-size: 26px; }
  .page-banner-inner { padding-bottom: 32px; }
  .breadcrumb { font-size: 10px; margin-bottom: 14px; gap: 6px; }
  .pd-badges { gap: 8px; margin-bottom: 14px; }
  .pd-badge { font-size: 10px; padding: 5px 10px; }
  .pd-meta-grid { grid-template-columns: 1fr; }
  .pd-meta-cell { border-right: none; border-bottom: 1px solid var(--line); padding: 20px 18px; }
  .pd-meta-cell:last-child { border-bottom: none; }
  .pd-meta-cell span { font-size: 10px; }
  .pd-meta-cell b { font-size: 14px; }
  .pd-body { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
  .pd-body h2 { font-size: 20px; }
  .pd-body .case-details { font-size: 14px; }
  .pd-side { padding: 24px 20px; }
  .pd-side h3 { font-size: 14px; }
  .pd-side-note { font-size: 12px; }
  .pd-gallery { padding-bottom: 50px; }
  .pd-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .pd-gallery-grid img { height: 150px; }
  .lightbox { padding: 20px; }
  .lightbox img { max-width: 96vw; max-height: 70vh; }
  .lightbox-close { top: 16px; right: 16px; font-size: 12px; padding: 8px 12px; }
}
