/* ==========================================================================
   HORIZON X — Project Detail Page (project.html)
   Premium architectural case study layout.
   All pd-* classes — replaces / extends the minimal pd-* in projects.css.
   ========================================================================== */

/* ==========================================================================
   PROJECT DETAIL — Hero
   ========================================================================== */

.pd-hero {
  background: var(--ink);
  padding: clamp(130px, 20vw, 200px) 0 clamp(48px, 7vw, 80px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--navy-line);
}

.pd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.025) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.025) 0 1px, transparent 1px 80px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.4), transparent 80%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.4), transparent 80%);
}

.pd-hero .container {
  position: relative;
  z-index: 1;
}

/* Eyebrow */
.pd-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0899f4;
  margin-bottom: 24px;
}

.pd-eyebrow-dash {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #0899f4;
  flex-shrink: 0;
}

/* Project title — large editorial */
.pd-hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 8.5vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--off);
  margin: 0 0 28px;
  max-width: 16ch;
}

/* Hero summary */
.pd-hero-summary {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--off-dim);
  max-width: 56ch;
  margin: 0;
}

/* Hero rule */
.pd-hero-rule {
  width: 100%;
  height: 1px;
  background: var(--navy-line);
  margin-top: clamp(40px, 6vw, 72px);
}

@media (max-width: 640px) {
  .pd-hero {
    padding-top: clamp(100px, 28vw, 140px);
  }
  .pd-hero-title {
    font-size: clamp(40px, 12vw, 72px);
  }
}


/* ==========================================================================
   PROJECT DETAIL — Information (meta grid)
   ========================================================================== */

.pd-info {
  background: var(--midnight);
  border-bottom: 1px solid var(--navy-line);
  padding: clamp(48px, 7vw, 80px) 0;
}

.pd-info-header {
  margin-bottom: clamp(32px, 4vw, 52px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--navy-line);
  display: flex;
  align-items: center;
  gap: 16px;
}

.pd-info-header-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-info-header-eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.pd-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.pd-info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-info-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
}

.pd-info-value {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--off);
  line-height: 1.45;
}

.pd-info-value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-info-value-list li {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--off);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .pd-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .pd-info-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PROJECT DETAIL — Concept / Overview
   ========================================================================== */

.pd-concept {
  background: var(--ink);
  padding: clamp(60px, 9vw, 110px) 0;
  border-bottom: 1px solid var(--navy-line);
}

.pd-concept-inner {
  max-width: 820px;
}

.pd-concept-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}

.pd-concept-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.pd-concept-heading {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--off);
  margin: 0 0 32px;
}

.pd-concept-text {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  color: var(--off-dim);
  max-width: 68ch;
}

.pd-concept-text + .pd-concept-text {
  margin-top: 18px;
}

.pd-concept-rule {
  width: 100%;
  height: 1px;
  background: var(--navy-line);
  margin-top: clamp(36px, 5vw, 56px);
}


/* ==========================================================================
   PROJECT DETAIL — Gallery (5-image editorial layout)
   ========================================================================== */

.pd-gallery-section {
  background: var(--ink);
  padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 9vw, 110px);
}

.pd-gallery-header {
  margin-bottom: clamp(32px, 4.5vw, 56px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--navy-line);
}

.pd-gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
}

.pd-gallery-eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
}

/* Editorial 5-image gallery layout:
   [         IMAGE 01 — FULL WIDTH         ]
   [ IMAGE 02 (wider) ] [ IMAGE 03 (narrower)]
   [         IMAGE 04 — FULL WIDTH         ]
   [         IMAGE 05 — FULL WIDTH         ]
*/

.pd-gallery-editorial {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 16px);
}

/* Full-width gallery image */
.pd-gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  cursor: pointer;
  line-height: 0;
}

.pd-gallery-item--full {
  width: 100%;
  aspect-ratio: 16 / 8;
}

.pd-gallery-item--half-left {
  /* handled inside .pd-gallery-duo */
}

.pd-gallery-item--half-right {
  /* handled inside .pd-gallery-duo */
}

.pd-gallery-item--cinematic {
  width: 100%;
  aspect-ratio: 16 / 7;
}

.pd-gallery-item--feature {
  width: 100%;
  aspect-ratio: 16 / 8.5;
}

/* Two-column editorial row */
.pd-gallery-duo {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(8px, 1.5vw, 16px);
}

.pd-gallery-duo .pd-gallery-item {
  aspect-ratio: 4 / 3;
}

/* Gallery image */
.pd-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.pd-gallery-item:hover .pd-gallery-img {
  transform: scale(1.03);
}

/* Zoom/expand cursor indicator */
.pd-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}

.pd-gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.06);
}

/* Image number label */
.pd-gallery-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.pd-gallery-item:hover .pd-gallery-label {
  opacity: 1;
}

/* Responsive gallery */
@media (max-width: 768px) {
  .pd-gallery-item--full,
  .pd-gallery-item--cinematic,
  .pd-gallery-item--feature {
    aspect-ratio: 4 / 3;
  }
  .pd-gallery-duo {
    grid-template-columns: 1fr;
  }
  .pd-gallery-duo .pd-gallery-item {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .pd-gallery-item--full,
  .pd-gallery-item--cinematic,
  .pd-gallery-item--feature {
    aspect-ratio: 1 / 1;
  }
}


/* ==========================================================================
   IMAGE LIGHTBOX
   ========================================================================== */

.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 12, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 0.84, 0.32, 1),
              visibility 0.3s cubic-bezier(0.16, 0.84, 0.32, 1);
}

.pd-lightbox.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pd-lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.pd-lightbox-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  padding: 0 clamp(16px, 4vw, 52px);
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pd-lightbox.is-active .pd-lightbox-container {
  transform: scale(1);
}

/* Top controls bar */
.pd-lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pd-lightbox-counter {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.pd-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.pd-lightbox-close:hover {
  background: rgba(8, 153, 244, 0.9);
  border-color: #0899f4;
  transform: rotate(90deg) scale(1.05);
}

/* Image area */
.pd-lightbox-img-wrap {
  position: relative;
  width: 100%;
  max-height: calc(82vh - 80px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.pd-lightbox-img {
  max-width: 100%;
  max-height: calc(82vh - 80px);
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Prev/Next navigation */
.pd-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.pd-lightbox-nav:hover {
  background: rgba(8, 153, 244, 0.9);
  border-color: #0899f4;
}

.pd-lightbox-prev {
  left: 12px;
}

.pd-lightbox-next {
  right: 12px;
}

.pd-lightbox-prev:hover {
  transform: translateY(-50%) translateX(-2px);
}

.pd-lightbox-next:hover {
  transform: translateY(-50%) translateX(2px);
}

/* Navigation dots */
.pd-lightbox-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.pd-lightbox-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.25s, transform 0.25s;
  cursor: pointer;
}

.pd-lightbox-dot.is-active {
  background: #0899f4;
  transform: scale(1.25);
}

/* Single image — hide nav */
.pd-lightbox.has-one .pd-lightbox-nav,
.pd-lightbox.has-one .pd-lightbox-dots {
  display: none;
}

@media (max-width: 640px) {
  .pd-lightbox-nav {
    width: 38px;
    height: 38px;
  }
  .pd-lightbox-prev {
    left: 4px;
  }
  .pd-lightbox-next {
    right: 4px;
  }
}


/* ==========================================================================
   PROJECT DETAIL — Services
   ========================================================================== */

.pd-services {
  background: var(--midnight);
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
  padding: clamp(48px, 7vw, 80px) 0;
}

.pd-services-header {
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--navy-line);
}

.pd-services-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
}

.pd-services-eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.pd-services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pd-services-item {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(18px, 3vw, 32px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--off);
  padding: clamp(14px, 2vw, 22px) 0;
  border-bottom: 1px solid var(--navy-line);
  transition: color 0.25s, padding-left 0.25s;
}

.pd-services-item:last-child {
  border-bottom: none;
}

.pd-services-item:hover {
  color: #0899f4;
  padding-left: 6px;
}


/* ==========================================================================
   PROJECT DETAIL — Technologies / Tools
   ========================================================================== */

.pd-tools {
  background: var(--ink);
  border-bottom: 1px solid var(--navy-line);
  padding: clamp(48px, 7vw, 80px) 0;
}

.pd-tools-header {
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--navy-line);
}

.pd-tools-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
}

.pd-tools-eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.pd-tools-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 20px);
}

.pd-tools-item {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off);
  border: 1px solid var(--navy-line);
  padding: 10px 18px;
  transition: border-color 0.25s, color 0.25s;
}

.pd-tools-item:hover {
  border-color: #0899f4;
  color: #0899f4;
}


/* ==========================================================================
   PROJECT DETAIL — Related Work
   ========================================================================== */

.pd-related-section {
  background: var(--midnight);
  border-top: 1px solid var(--navy-line);
  padding: clamp(60px, 9vw, 110px) 0;
}

.pd-related-header {
  margin-bottom: clamp(36px, 5vw, 60px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--navy-line);
}

.pd-related-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
}

.pd-related-eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.pd-related-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: inherit;
}

.pd-related-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--navy-line);
  margin-bottom: 20px;
}

.pd-related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pd-related-card:hover .pd-related-card-media img {
  transform: scale(1.04);
}

.pd-related-card-cat {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0899f4;
  margin-bottom: 10px;
  display: block;
}

.pd-related-card-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 0.97;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--off);
  margin: 0 0 16px;
}

.pd-related-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-dim);
  transition: color 0.25s, gap 0.25s;
}

.pd-related-card:hover .pd-related-card-cta {
  color: #0899f4;
  gap: 12px;
}

@media (max-width: 860px) {
  .pd-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .pd-related-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PROJECT DETAIL — Navigation (Back / Next)
   ========================================================================== */

.pd-nav-section {
  background: var(--ink);
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
  padding: 28px 0;
}

.pd-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.pd-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-dim);
  text-decoration: none;
  border: 1px solid var(--navy-line);
  padding: 11px 20px;
  transition: color 0.25s, border-color 0.25s, gap 0.25s;
}

.pd-nav-back:hover {
  color: var(--off);
  border-color: var(--off);
  gap: 14px;
}

.pd-nav-back:hover .pd-nav-arrow {
  transform: translateX(-4px);
}

.pd-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-dim);
  text-decoration: none;
  border: 1px solid var(--navy-line);
  padding: 11px 20px;
  transition: color 0.25s, border-color 0.25s, gap 0.25s;
}

.pd-nav-next:hover {
  color: #0899f4;
  border-color: #0899f4;
  gap: 14px;
}

.pd-nav-next:hover .pd-nav-arrow-right {
  transform: translateX(4px);
}

.pd-nav-arrow,
.pd-nav-arrow-right {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s;
}

@media (max-width: 480px) {
  .pd-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}


/* ==========================================================================
   NOT FOUND PAGE
   ========================================================================== */

.pd-not-found {
  background: var(--ink);
  padding: clamp(140px, 20vw, 200px) 0 clamp(80px, 12vw, 140px);
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
}

.pd-not-found-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #0899f4;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-not-found-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--off);
  margin: 0 0 28px;
}

.pd-not-found-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--off-dim);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 50ch;
}
