/* ==========================================================
   SS Construction — inner pages, projects listing & project page
   Extends style.css (uses its colour, font, radius and shadow tokens)
   ========================================================== */

[hidden] {
  display: none !important;
}
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.empty-note {
  padding: 24px;
  color: var(--gray);
}

/* ---------- Project cards on touch devices ----------
   No hover on touch, so cards stay in their resting look:
   photo + category badge + "View Project" button. The title
   panel only unfolds on hover-capable (desktop) devices. */
.pgrid__item .psingle__btn i .ico,
.psingle__btn i .ico {
  width: 13px;
  height: 13px;
}

/* Whole project card is one link (thumbnail, tag, hover panel and button) */
.psingle__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: var(--r);
  cursor: pointer;
}
.psingle__link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* "View Project" button: ALWAYS visible, bottom-right of the thumbnail (also while the title panel is open) */
.psingle .psingle__btn,
.psingle:hover .psingle__btn {
  position: absolute;
  top: auto;
  bottom: 28px;
  right: 30px;
  z-index: 2;
  margin: 0;
  padding: 6px 7px 6px 16px;
  gap: 8px;
  background: #fff;
  color: var(--base-d);
  border: 2px solid var(--base);
  font: 700 12px var(--font-h);
  letter-spacing: 0.05em;
  opacity: 1;
  transform: none;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  transition-delay: 0s;
  box-shadow: 0 8px 20px -8px rgba(14, 18, 29, 0.55);
}
.psingle .psingle__btn i {
  width: 26px;
  height: 26px;
  background: var(--base);
  color: #fff;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s;
}
/* hover: the button lights up gold */
.psingle__link:hover ~ .psingle__btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 22px -8px rgba(243, 193, 44, 0.85);
}
.psingle__link:hover ~ .psingle__btn i {
  background: var(--ink);
  color: var(--gold);
  transform: translateX(3px);
}
.pgrid__item .psingle__btn i .ico,
.psingle__btn i .ico {
  width: 13px;
  height: 13px;
}
/* Card width drives the hover-panel layout (not the viewport). */
.psingle {
  container-type: inline-size;
}
/* Compact hover panel: title/location on the left, always-visible button bottom-right.
   The bottom padding is just enough to keep the text clear of the button. */
.psingle__content {
  padding: 16px 24px 56px 34px;
  text-align: left;
}
.psingle__text-box h3 {
  font-size: 20px;
  margin-bottom: 3px;
}
.psingle__text-box p {
  text-align: left;
}
@media (max-width: 480px) {
  .psingle .psingle__btn,
  .psingle:hover .psingle__btn {
    bottom: 24px;
    right: 24px;
    padding: 6px 6px 6px 12px;
    font-size: 11px;
  }
  .psingle .psingle__btn i {
    width: 22px;
    height: 22px;
  }
  .psingle__content {
    padding: 14px 20px 50px 30px;
  }
}
/* Wide cards: title/location sits beside the always-visible button, so the
   panel has no empty band under the text. */
@container (min-width: 360px) {
  .psingle__content {
    padding: 14px 168px 14px 34px;
  }
  .psingle__content::after {
    bottom: 8px;
  }
}

/* ---------- Page banner & breadcrumbs ---------- */
.page-banner {
  position: relative;
  color: #c8cfdb;
  padding: clamp(60px, 18vw, 50px) 0 clamp(44px, 6vw, 70px);
  background:
    linear-gradient(120deg, rgba(14, 18, 29, 0.93), rgba(0, 48, 112, 0.82)),
    url("../images/banner-one-bg.jpg") center / cover no-repeat;
  overflow: hidden;
}
.page-banner .container {
  position: relative;
  z-index: 1;
}
.page-banner__title {
  font: 800 clamp(32px, 5vw, 56px) / 1.1 var(--font-h);
  color: #fff;
  margin-bottom: 12px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.page-banner__title .accent {
  color: var(--gold);
}
.page-banner__lead {
  max-width: 62ch;
  font-size: 17px;
  color: #c8cfdb;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font: 600 14px var(--font-h);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  color: #c8cfdb;
}
.crumbs a:hover {
  color: var(--gold);
}
.crumbs [aria-current] {
  color: #fff;
}
.crumbs .sep {
  opacity: 0.5;
}

/* ---------- Projects listing: homepage-style display section ---------- */
.projects--page .projects__top {
  margin-bottom: 26px;
}
.projects--page .projects__head .eyebrow {
  margin-bottom: 12px;
}
.projects--page .projects__head .title {
  margin-bottom: 0;
}
.pf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
a.pf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.pf small {
  font-size: 12px;
  opacity: 0.75;
}
.pf-meta {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 28px;
}
.pf-meta strong {
  color: var(--ink);
}
.projects__btn-box .btn--ghost {
  color: var(--base);
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.pgrid__item {
  min-width: 0;
}
.pgrid--related {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

/* Pager */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-top: clamp(34px, 5vw, 50px);
}
.pager__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pager__list a {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 700 15px var(--font-h);
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.25s;
}
.pager__list a:hover {
  border-color: var(--base);
  color: var(--base);
  transform: translateY(-2px);
}
.pager__list a.is-current,
.pager__list a.is-current:hover {
  background: var(--base);
  border-color: var(--base);
  color: #fff;
}
.pager__gap {
  display: grid;
  place-items: center;
  min-width: 28px;
  color: var(--gray);
}
.pager__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 60px;
  background: var(--base);
  color: #fff;
  font: 700 14px var(--font-h);
  letter-spacing: 0.03em;
  transition:
    background 0.25s,
    transform 0.25s;
}
.pager__btn .ico {
  width: 16px;
  height: 16px;
}
.pager__btn:hover {
  background: var(--base-d);
  transform: translateY(-2px);
}
.pager__btn.is-disabled {
  background: #e9e6dd;
  color: #9aa1ad;
  pointer-events: none;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: clamp(40px, 6vw, 70px) 20px;
  border: 1px dashed #d9d4c7;
  border-radius: var(--r);
  background: var(--cream);
}
.empty-state__ic {
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  color: var(--base);
  margin-bottom: 14px;
  box-shadow: var(--sh-1);
}
.empty-state__ic .ico {
  width: 30px;
  height: 30px;
}
.empty-state h2,
.empty-state .title {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 10px;
}
.empty-state p {
  margin-bottom: 22px;
}

/* CTA strip */
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-strip .title {
  margin-bottom: 8px;
}
.cta-strip .lead {
  margin-bottom: 0;
}

/* ==========================================================
   PROJECT PAGE
   ========================================================== */

/* Hero: full-width photo with name and icon chips over it */
.pd-hero {
  position: relative;
  min-height: clamp(460px, 74vh, 680px);
  display: flex;
  align-items: flex-end;
  color: #dbe1ea;
  overflow: hidden;
  background: var(--ink);
  padding-top: 120px;
}
.pd-hero__media,
.pd-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pd-hero__media img {
  object-fit: cover;
  transform: scale(1.04);
  animation: pdZoom 14s ease-out forwards;
}
.pd-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(8, 10, 16, 0.96) 0%,
      rgba(8, 10, 16, 0.55) 45%,
      rgba(8, 10, 16, 0.25) 100%
    ),
    linear-gradient(100deg, rgba(0, 48, 112, 0.35), transparent 60%);
}
.pd-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(30px, 5vw, 56px);
}
.crumbs--hero {
  color: #cfd6e2;
}
.crumbs--hero a:hover {
  color: var(--gold);
}
.pd-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 60px;
  background: linear-gradient(135deg, var(--base-d), var(--base));
  color: #fff;
  font: 700 12px var(--font-h);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  animation: pdRise 0.8s var(--ease) both;
}
.pd-tag .ico {
  width: 15px;
  height: 15px;
}
.pd-hero__title {
  font: 800 clamp(34px, 6vw, 72px) / 1.05 var(--font-h);
  color: #fff;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  margin-bottom: clamp(20px, 3vw, 32px);
  animation: pdRise 0.9s 0.1s var(--ease) both;
}
.pd-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pd-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  min-width: 0;
  transition:
    transform 0.35s var(--ease),
    background 0.35s;
  animation: pdRise 0.8s var(--ease) both;
}
.pd-chip:nth-child(2) {
  animation-delay: 0.08s;
}
.pd-chip:nth-child(3) {
  animation-delay: 0.16s;
}
.pd-chip:nth-child(4) {
  animation-delay: 0.24s;
}
.pd-chip:nth-child(5) {
  animation-delay: 0.32s;
}
.pd-chip:nth-child(6) {
  animation-delay: 0.4s;
}
.pd-chip:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}
.pd-chip__ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
}
.pd-chip__ic .ico {
  width: 21px;
  height: 21px;
}
.pd-chip__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pd-chip__txt small {
  font: 700 11px var(--font-h);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aeb8c8;
}
.pd-chip__txt strong {
  color: #fff;
  font: 700 16px / 1.25 var(--font-h);
  overflow-wrap: anywhere;
}

@keyframes pdZoom {
  to {
    transform: scale(1);
  }
}
@keyframes pdRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Overview */
.pd-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}
.pd-overview .eyebrow {
  margin-bottom: 14px;
}
.pd-name {
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.pd-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 18px;
}
.pd-text p {
  margin-bottom: 16px;
}
.pd-aside__card {
  position: sticky;
  top: 110px;
  padding: clamp(24px, 3vw, 30px);
  border-radius: var(--r);
  background: var(--ink);
  color: #b9c0cc;
  box-shadow: var(--sh-2);
  overflow: hidden;
  position: sticky;
}
.pd-aside__card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(243, 193, 44, 0.35),
    transparent 70%
  );
  pointer-events: none;
}
.pd-aside__card {
  position: sticky;
  top: 110px;
}
.pd-aside__ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--gold);
  color: var(--ink);
  margin-bottom: 16px;
}
.pd-aside__card h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 8px;
}
.pd-aside__card p {
  margin-bottom: 20px;
}
.pd-aside__call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font: 700 15px var(--font-h);
  color: var(--gold);
}
.pd-aside__call .ico {
  width: 17px;
  height: 17px;
}

/* Section heading helper */
.pd-heading {
  margin-bottom: clamp(22px, 3vw, 34px);
}
.pd-heading .eyebrow {
  margin-bottom: 12px;
}
.pd-heading .title {
  margin-bottom: 0;
}
.pd-heading__sub {
  margin-top: 8px;
  color: var(--gray);
  font-size: 15px;
}

/* Gallery: always 3 per row, equal thumbnails */
.pd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 18px);
}
.pd-grid__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border-radius: clamp(10px, 1.4vw, 16px);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--sh-1);
  cursor: zoom-in;
}
.pd-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.pd-grid__item:hover img {
  transform: scale(1.08);
}
.pd-grid__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 18, 29, 0.7);
  color: #fff;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition:
    opacity 0.35s,
    transform 0.35s var(--ease);
}
.pd-grid__zoom .ico {
  width: 18px;
  height: 18px;
}
.pd-grid__item:hover .pd-grid__zoom,
.pd-grid__item:focus-visible .pd-grid__zoom {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .pd-grid__zoom {
    opacity: 1;
    transform: none;
  }
}

/* Documents */
.pd-doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  overflow: hidden;
  margin-bottom: clamp(20px, 3vw, 30px);
}
.pd-doc__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 22px);
  border-bottom: 1px solid var(--line);
}
.pd-doc__ic {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--base-d), var(--base));
  color: #fff;
  flex: none;
}
.pd-doc__head > div:nth-child(2) {
  flex: 1;
  min-width: 160px;
}
.pd-doc h3 {
  font-size: 20px;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}
.pd-doc__head p {
  font-size: 14px;
  color: var(--gray);
}
.pd-doc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-doc .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pd-doc .btn .ico {
  width: 16px;
  height: 16px;
}
.pd-doc__viewer {
  background: var(--cream);
}
.pd-doc__viewer iframe {
  display: block;
  width: 100%;
  height: clamp(380px, 72vh, 720px);
  border: 0;
}
.pd-doc__note {
  padding: 12px clamp(16px, 2.4vw, 22px);
  font-size: 13px;
  color: var(--gray);
}

/* Videos */
.pd-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.pd-video {
  margin: 0;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-1);
  border: 1px solid var(--line);
}
.pd-video video,
.pd-video__frame {
  display: block;
  width: 100%;
  background: var(--ink);
}
.pd-video video {
  aspect-ratio: 16 / 9;
  height: auto;
}
.pd-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
}
.pd-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pd-video figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font: 700 15px var(--font-h);
  color: var(--ink);
}
.pd-video figcaption .ico {
  color: var(--base);
}

/* Related */
.pd-related__more {
  text-align: center;
  margin-top: clamp(28px, 4vw, 40px);
}
.pd-related__more .btn--ghost {
  color: var(--base);
}

/* Lightbox: full-size image, scaled only to fit the screen */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 40px);
  background: rgba(8, 10, 16, 0.94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: lbFade 0.25s ease both;
}
@keyframes lbFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox figure {
  margin: 0;
  text-align: center;
}
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1600px);
  max-height: 84vh;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox figcaption {
  color: #c8cfdb;
  margin-top: 12px;
  font-size: 14px;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s;
  z-index: 2;
}
.lightbox__close .ico,
.lightbox__nav .ico {
  width: 24px;
  height: 24px;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--gold);
  color: var(--ink);
}
.lightbox__close {
  top: 16px;
  right: 16px;
}
.lightbox__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__prev:hover,
.lightbox__next:hover {
  transform: translateY(-50%) scale(1.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pd-overview__grid {
    grid-template-columns: 1fr;
  }
  .pd-aside__card {
    position: static;
  }
}
@media (max-width: 760px) {
  .pd-hero {
    min-height: auto;
    padding-top: 140px;
  }
  .pd-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-doc__head {
    align-items: flex-start;
  }
  .pd-doc__actions {
    width: 100%;
  }
  .pd-doc__actions .btn {
    flex: 1;
    justify-content: center;
  }
  .pd-grid {
    gap: 6px;
  }
  .pd-grid__item {
    border-radius: 10px;
  }
  .pd-grid__zoom {
    width: 30px;
    height: 30px;
    right: 6px;
    bottom: 6px;
  }
  .pd-grid__zoom .ico {
    width: 15px;
    height: 15px;
  }
  .cta-strip .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 560px) {
  .pd-chip {
    padding: 10px;
    gap: 10px;
  }
  .pd-chip__ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .pd-chip__ic .ico {
    width: 18px;
    height: 18px;
  }
  .pd-chip__txt strong {
    font-size: 14px;
  }
  .pf-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .pf-row::-webkit-scrollbar {
    display: none;
  }
  .pf-row .pf {
    flex: none;
  }
  .pager__btn span {
    display: none;
  }
  .pager__btn {
    padding: 0 12px;
  }
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 16px;
    transform: none;
  }
  .lightbox__prev:hover,
  .lightbox__next:hover {
    transform: scale(1.06);
  }
  .lightbox img {
    max-height: 74vh;
  }
  .lightbox__close {
    top: 10px;
    right: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pd-hero__media img,
  .pd-tag,
  .pd-hero__title,
  .pd-chip,
  .lightbox {
    animation: none;
  }
  .pd-hero__media img {
    transform: none;
  }
}

/* ==========================================================
   v3 — shared page layout (projects + project page), project
   main column with gallery beside overview, similar-projects sidebar
   ========================================================== */
.pd-page {
  padding-top: clamp(30px, 4vw, 48px);
}
.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 3.2vw, 40px);
  align-items: start;
}
.pd-main {
  min-width: 0;
}
.pd-cover {
  position: relative;
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-1);
  background: var(--cream);
}
.pd-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.pd-cover .psingle__tag {
  top: 16px;
  left: 16px;
}

/* Project details: highlighted panel (compact) */
.pd-details {
  position: relative;
  margin-top: 14px;
  padding: 12px 14px 14px;
  border-radius: 12px;
  border-top: 3px solid var(--gold);
  color: #fff;
  background: linear-gradient(135deg, var(--base-d) 0%, var(--base) 100%);
  box-shadow: 0 14px 28px -18px rgba(0, 48, 112, 0.6);
  overflow: hidden;
}
.pd-details::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 193, 44, 0.2), transparent 70%);
  pointer-events: none;
}
.pd-details__title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font: 800 16px var(--font-h);
  color: #fff;
}
.pd-details__title .ico {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.pd-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pd-fact {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  min-width: 0;
  transition: background 0.3s;
}
.pd-fact:hover {
  background: rgba(255, 255, 255, 0.17);
}
.pd-fact__ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: var(--ink);
}
.pd-fact__ic .ico {
  width: 16px;
  height: 16px;
}
.pd-fact__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0;
}
.pd-fact__txt small {
  font: 700 9.5px var(--font-h);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9d3f0;
  line-height: 1.3;
}
.pd-fact__txt strong {
  color: #fff;
  font: 700 13.5px / 1.25 var(--font-h);
  overflow-wrap: anywhere;
}

/* Main image slider (cover + gallery photos, auto-sliding) */
.pd-slider {
  aspect-ratio: 16 / 9;
}
.pd-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.9s ease,
    transform 5.5s ease;
  cursor: zoom-in;
}
.pd-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.pd-slider .psingle__tag {
  z-index: 4;
}
.pd-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 18, 29, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.3s,
    background 0.3s;
}
.pd-slider:hover .pd-slider__btn,
.pd-slider:focus-within .pd-slider__btn {
  opacity: 1;
}
.pd-slider__btn:hover {
  background: var(--base);
}
.pd-slider__btn--prev {
  left: 12px;
}
.pd-slider__btn--next {
  right: 12px;
}
.pd-slider__btn--prev .ico {
  transform: rotate(180deg);
}
.pd-slider__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(14, 18, 29, 0.6), transparent);
  pointer-events: none;
}
.pd-slider__dots {
  display: flex;
  gap: 7px;
  pointer-events: auto;
}
.pd-slider__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    width 0.3s,
    background 0.3s;
}
.pd-slider__dots button.is-active {
  width: 26px;
  background: var(--gold);
}
.pd-slider__play {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 10px;
  cursor: pointer;
}
.pd-slider__play:hover {
  background: var(--gold);
  color: var(--ink);
}
@media (hover: none) {
  .pd-slider__btn {
    opacity: 1;
    width: 34px;
    height: 34px;
    margin-top: -17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pd-slide {
    transition: opacity 0.3s;
    transform: none;
  }
}

.pd-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 38px);
  margin-top: clamp(26px, 4vw, 38px);
}
.pd-overview .eyebrow,
.pd-gallery .eyebrow {
  margin-bottom: 10px;
}
.pd-name {
  font: 800 clamp(24px, 3vw, 34px) / 1.15 var(--font-h);
  color: var(--ink);
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.pd-text p {
  margin-bottom: 14px;
}
.pd-gallery .pd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.pd-gallery .pd-grid__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
  cursor: zoom-in;
}
.pd-gallery .pd-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.pd-gallery .pd-grid__item:hover img {
  transform: scale(1.07);
}
.pd-gallery .pd-grid__zoom {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(14, 18, 29, 0.7);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}
.pd-gallery .pd-grid__zoom .ico {
  width: 14px;
  height: 14px;
}
.pd-gallery .pd-grid__item:hover .pd-grid__zoom,
.pd-gallery .pd-grid__item:focus-visible .pd-grid__zoom {
  opacity: 1;
}
@media (hover: none) {
  .pd-gallery .pd-grid__zoom {
    opacity: 1;
  }
}
.pd-heading__sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray);
}

.pd-resources {
  margin-top: clamp(34px, 5vw, 50px);
}
.pd-resources > .eyebrow {
  margin-bottom: 16px;
}
.pd-resources .pd-doc {
  margin-top: 0;
  margin-bottom: 22px;
}
.pd-resources .pd-videos {
  margin-top: 0;
}

/* Sidebar */
.pd-side {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 20px;
  min-width: 0;
}
.pd-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--sh-1);
}
.pd-box__title {
  font: 700 19px var(--font-h);
  color: var(--ink);
  margin-bottom: 14px;
}
.pd-sim-list {
  display: grid;
  gap: 4px;
}
.pd-sim {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.25s;
  min-width: 0;
}
.pd-sim:hover {
  background: var(--cream);
}
.pd-sim img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
  background: var(--cream);
}
.pd-sim__txt {
  min-width: 0;
}
.pd-sim__txt strong {
  display: block;
  color: var(--ink);
  font: 700 15px / 1.25 var(--font-h);
  overflow-wrap: anywhere;
}
.pd-sim__txt small {
  color: var(--gray);
  font-size: 13px;
}
.pd-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font: 700 14px var(--font-h);
  color: var(--base);
}
.pd-more .ico {
  width: 16px;
  height: 16px;
}
.pd-empty {
  font-size: 14px;
  color: var(--gray);
}
/* Sidebar: "Planning something similar?" */
.pd-cta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.pd-cta__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--base-d), var(--base));
  border-bottom: 4px solid var(--gold);
}
.pd-cta__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 6px rgba(243, 193, 44, 0.25);
}
.pd-cta__badge .ico {
  width: 26px;
  height: 26px;
}
.pd-cta__head small {
  display: block;
  font: 700 11px var(--font-h);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.pd-cta__head h3 {
  color: #fff;
  font: 800 19px / 1.2 var(--font-h);
  margin: 0;
}
.pd-cta__body {
  padding: 20px;
}
.pd-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 14px;
  position: relative;
}
.pd-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}
.pd-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: -12px;
  border-left: 2px dashed #cfd8e6;
}
.pd-steps__ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e8f1fb;
  color: var(--base);
}
.pd-steps__ic .ico {
  width: 20px;
  height: 20px;
}
.pd-steps strong {
  display: block;
  color: var(--ink);
  font: 700 15px / 1.25 var(--font-h);
}
.pd-steps small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gray);
}
.pd-cta .btn {
  width: 100%;
  justify-content: space-between;
}
.pd-reach {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.pd-reach a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  transition:
    border-color 0.25s,
    background 0.25s;
  min-width: 0;
}
.pd-reach a:hover {
  border-color: var(--base);
  background: #fff;
}
.pd-reach__ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--base);
  color: #fff;
}
.pd-reach__ic .ico {
  width: 16px;
  height: 16px;
}
.pd-reach a > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pd-reach small {
  font: 700 10px var(--font-h);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.pd-reach strong {
  color: var(--ink);
  font: 700 14px / 1.3 var(--font-h);
  overflow-wrap: anywhere;
}

/* Responsive */
@media (max-width: 1000px) {
  .pd-layout {
    grid-template-columns: 1fr;
  }
  .pd-side {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  }
}
@media (max-width: 760px) {
  .pd-gallery .pd-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
}
@media (max-width: 480px) {
  .pd-facts {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .pd-fact {
    padding: 6px 8px;
    gap: 7px;
  }
  .pd-fact__ic {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }
  .pd-fact__ic .ico {
    width: 14px;
    height: 14px;
  }
  .pd-fact__txt strong {
    font-size: 12.5px;
  }
  .pd-details {
    padding: 10px 10px 12px;
  }
  .pd-cover .psingle__tag {
    top: 10px;
    left: 10px;
  }
}

/* Anti-spam trap field on the enquiry form (invisible to people) */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Projects listing: exactly 3 columns on desktop, 2 on tablet, 1 on phone */
@media (max-width: 991px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .pgrid { grid-template-columns: 1fr; }
}
