/* ——— Project detail ——— */

.pd-hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Header is fixed + .page padding-top: remaining viewport only */
  height: calc(100vh - var(--header-height, 96px) - 1px);
  height: calc(100svh - var(--header-height, 96px) - 1px);
  height: calc(100dvh - var(--header-height, 96px) - 1px);
  overflow: hidden;
}

.pd-hero img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-hero-bar {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  height: 166px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: rgba(63, 63, 63, 0.3);
  backdrop-filter: blur(4.4px);
  -webkit-backdrop-filter: blur(4.4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pd-hero-bar-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.pd-hero-bar-text h1 {
  font-family: "Fustat", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: #fff;
}

.pd-hero-bar-text .loc {
  font-family: "Hubballi", "Figtree", sans-serif;
  font-size: 20px;
  letter-spacing: 0.92px;
  text-transform: uppercase;
  color: #fff;
}

.pd-breadcrumb {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-bottom: auto;
  background: #111;
  border: 1.333px solid rgba(255, 255, 255, 0.05);
  height: 59px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 63px;
  font-family: "Fustat", sans-serif;
  font-size: 16px;
  letter-spacing: 0.48px;
  width: 100%;
}

.pd-breadcrumb a,
.pd-breadcrumb span {
  color: #888;
}

.pd-breadcrumb .sep {
  color: #2a2a2a;
}

.pd-breadcrumb .current {
  color: #c8c8c8;
}

.pd-body {
  display: flex;
  flex-direction: column;
  gap: 94px;
  align-items: center;
  padding: 49px 120px 60px;
  width: 100%;
}

.pd-meta {
  display: flex;
  flex-direction: column;
  gap: 76px;
  width: 100%;
  max-width: 1681px;
}

.pd-row {
  display: flex;
  gap: 120px;
  align-items: flex-start;
  width: 100%;
}

.pd-row.align-center {
  align-items: center;
}

.pd-label {
  width: 294px;
  flex-shrink: 0;
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.pd-value {
  flex: 1;
  min-width: 0;
}

.pd-client-name {
  font-family: "Fustat", sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  color: #fff;
}

.pd-client-logo {
  background: #fff;
  padding: 0 22px;
  width: 177px;
  flex-shrink: 0;
}

.pd-client-logo img {
  width: 100%;
  height: auto;
  aspect-ratio: 343 / 220;
  object-fit: contain;
}

.pd-desc {
  font-family: "Fustat", sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.4;
  color: #fff;
  max-width: 1152px;
}

.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.pd-tag {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: "Fustat", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  color: #fff;
}

.pd-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1694px;
}

.pd-stat {
  background: #222;
  border: 1.333px solid rgba(255, 255, 255, 0.06);
  height: 107px;
  padding: 20px 36px;
}

.pd-stat strong {
  display: block;
  font-family: "Fustat", sans-serif;
  font-weight: 700;
  font-size: 35px;
  color: #fff;
  margin-bottom: 10px;
}

.pd-stat span {
  font-family: "Fustat", sans-serif;
  font-size: 15px;
  letter-spacing: 1.03px;
  color: #888;
  text-transform: uppercase;
}

.pd-scope {
  width: 100%;
  max-width: 1680px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pd-scope h2 {
  font-family: "Fustat", sans-serif;
  font-weight: 400;
  font-size: 50.3px;
  line-height: 62.4px;
  letter-spacing: -0.8px;
  color: #fbfbfb;
}

.pd-scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 15px;
}

.pd-scope-item {
  background: #111;
  border: 1.333px solid rgba(255, 255, 255, 0.05);
  border-radius: 5.333px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
}

.pd-scope-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: #e8571a;
  flex-shrink: 0;
}

.pd-scope-item p {
  font-family: "Fustat", sans-serif;
  font-size: 18px;
  line-height: 28px;
  color: #c8c8c8;
}

.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 1680px;
}

.pd-gallery-row {
  display: flex;
  gap: 12px;
}

.pd-gallery-row img {
  width: calc(50% - 6px);
  height: 713px;
  object-fit: cover;
}

.pd-awards {
  padding: 60px 120px;
  width: 100%;
}

.pd-awards h2 {
  font-family: "Fustat", sans-serif;
  font-weight: 400;
  font-size: 50.3px;
  line-height: 62.4px;
  letter-spacing: -0.8px;
  color: #fbfbfb;
  margin-bottom: 60px;
  max-width: 560px;
}

.pd-award-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  max-width: 1680px;
}

.pd-award-featured {
  background: #111;
  border: 1.33px solid rgba(255, 255, 255, 0.08);
  border-radius: 5.3px;
  height: 134px;
  padding: 23px 30px;
  position: relative;
}

.pd-award-featured strong {
  display: block;
  font-family: "Fustat", sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: #fff;
  margin-bottom: 16px;
}

.pd-award-featured p {
  font-family: "Fustat", sans-serif;
  font-size: 17px;
  color: #888;
}

.pd-award-featured .year {
  position: absolute;
  right: 77px;
  top: 39px;
  font-family: "Fustat", sans-serif;
  font-weight: 800;
  font-size: 37px;
  color: #3e3e3e;
}

.pd-award-row {
  background: #111;
  border: 1.33px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  height: 57px;
  display: flex;
  align-items: center;
  padding: 0 31px;
  gap: 0;
}

.pd-award-row strong {
  font-family: "Fustat", sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #d9d9d9;
  width: 469px;
  flex-shrink: 0;
}

.pd-award-row span:not(.arrow) {
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Fustat", sans-serif;
  font-size: 16px;
  color: #888;
}

/* Figma pins the row arrow to the right edge of the row, not to the end of the
   description column. */
.pd-award-row .arrow {
  flex: 0 0 auto;
  color: #888;
  font-size: 19px;
  margin-left: auto;
  padding-left: 24px;
  padding-right: 32px;
}

.pd-related {
  padding: 0 120px 80px;
  width: 100%;
}

.pd-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.pd-related-head h2 {
  font-family: "Fustat", sans-serif;
  font-weight: 400;
  font-size: 46.3px;
  line-height: 52.8px;
  letter-spacing: -2.4px;
  color: #fff;
}

/* ---- Related rail arrows ----------------------------------------------
   The desktop frame has no arrows on this rail (signed off), so the nav is
   hidden above 1100px and only appears on the touch widths, where a rail with
   no visible affordance reads as a dead crop. Styling mirrors the homepage
   .home-stats-arrow so the two rails feel like one control. The `is-scrollable`
   class is set by the page script only when the track actually overflows. */
.pd-rel-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.pd-rel-arrow {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f4f4;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    opacity 0.2s ease;
}

.pd-rel-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

.pd-rel-arrow:hover:not(:disabled) {
  border-color: #f68121;
  background: rgba(246, 129, 33, 0.14);
  color: #f68121;
}

.pd-rel-arrow:active:not(:disabled) {
  background: rgba(246, 129, 33, 0.22);
}

.pd-rel-arrow:disabled {
  opacity: 0.32;
  cursor: default;
}

.pd-rel-arrow:focus-visible {
  outline: 2px solid #f68121;
  outline-offset: 3px;
}

@media (max-width: 1099.98px) {
  .pd-related-head {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 12px;
    column-gap: 16px;
  }

  .pd-related-head h2 {
    flex: 1 1 100%;
  }

  .pd-related-head .link-accent {
    margin-right: auto;
  }

  .pd-rel-nav.is-scrollable {
    display: flex;
    margin-left: auto;
  }
}

.pd-related-track {
  display: flex;
  gap: 23px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.pd-related-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pd-related-track > * {
  scroll-snap-align: start;
}

.pd-rel-card {
  position: relative;
  flex-shrink: 0;
  width: 719px;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  background: #f7f7f7;
}

.pd-rel-card img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-rel-card .card-glass {
  min-height: 101px;
}

.pd-enquire {
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
  padding: 180px 215px 200px;
  width: 100%;
}

/* Figma 1639:16175 carries a bottom-centred line-art skyline that bleeds off the
   section edge — same asset the contact page uses. */
.pd-enquire::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -110px;
  width: 776px;
  height: 346px;
  transform: translateX(-50%);
  background: url("../../assets/pages/contact/building.svg") center / contain no-repeat;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}

.pd-enquire-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 111px;
  align-items: center;
}

.pd-enquire-copy {
  width: 803px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 229px;
}

.pd-enquire-copy h2 {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 64px;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #fff;
  text-transform: capitalize;
  margin-bottom: 18px;
}

.pd-enquire-copy .sub {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  max-width: 726px;
}

.pd-form {
  position: relative;
  width: 576px;
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 33px;
}

.pd-form::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 471px;
  max-width: 100%;
  height: 531px;
  max-height: 100%;
  background: linear-gradient(90deg, rgba(255, 131, 43, 0.2), rgba(246, 129, 33, 0.2));
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.pd-form > * {
  position: relative;
  z-index: 1;
}

.pd-form h3 {
  font-family: "Fustat", sans-serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.56px;
  color: #fff;
  margin-bottom: 12px;
}

.pd-form .hint {
  font-family: "Fustat", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.pd-form .hint a {
  color: #fff;
  text-decoration: underline;
}

.pd-form input,
.pd-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: "Fustat", sans-serif;
  font-size: 16px;
  margin-bottom: 16px;
}

.pd-form textarea {
  min-height: 122px;
  resize: vertical;
}

.pd-form input::placeholder,
.pd-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.pd-faq {
  background: #1d1d1d;
  padding: 120px 215px;
  width: 100%;
  text-align: center;
}

.pd-faq .eyebrow {
  font-family: "Fustat", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #909090;
  margin-bottom: 24px;
}

.pd-faq h2 {
  font-family: "Fustat", sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 50px;
  color: #fff;
  margin-bottom: 95px;
}

/* Figma 1639:16264 — each question is its own #1b1b1b card (r16) with a 29px
   gutter, not a hairline-separated list, and carries a +/x affordance. */
.pd-faq-list {
  max-width: 792px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 29px;
}

.pd-faq-item {
  background: #1b1b1b;
  border-radius: 16px;
  padding: 20px 24px;
}

.pd-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.pd-faq-item summary::-webkit-details-marker {
  display: none;
}

.pd-faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--pd-faq-icon) center / contain no-repeat;
  mask: var(--pd-faq-icon) center / contain no-repeat;
  --pd-faq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3.5v13M3.5 10h13' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.pd-faq-item[open] summary::after {
  --pd-faq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.pd-faq-item p {
  font-family: "Fustat", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: rgba(250, 250, 250, 0.7);
  margin-top: 20px;
  padding-bottom: 24px;
}

.pd-faq-item p:not(:last-of-type) {
  padding-bottom: 12px;
}

.pd-faq-item p + p {
  margin-top: 0;
}

.pd-faq-more {
  margin-top: 14px;
  text-align: center;
  font-family: "Fustat", sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.384px;
  color: #fafafa;
}

.pd-faq-more a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}


@media (max-width: 1440px) {
  .pd-body,
  .pd-awards,
  .pd-related {
    padding-left: 60px;
    padding-right: 60px;
  }

  .pd-row,
  .pd-enquire-inner {
    flex-wrap: wrap;
    gap: 40px;
  }

  .pd-hero {
    height: calc(100vh - var(--header-height, 96px) - 1px);
    height: calc(100svh - var(--header-height, 96px) - 1px);
    height: calc(100dvh - var(--header-height, 96px) - 1px);
  }

  .pd-gallery-row {
    flex-direction: column;
  }

  .pd-gallery-row img {
    width: 100%;
    height: 420px;
  }

  .pd-scope-grid,
  .pd-stats {
    grid-template-columns: 1fr;
  }

  .pd-enquire,
  .pd-faq {
    padding-left: 60px;
    padding-right: 60px;
  }

  .pd-enquire-copy,
  .pd-form {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pd-hero {
    height: calc(100vh - var(--header-height, 72px) - 1px) !important;
    height: calc(100svh - var(--header-height, 72px) - 1px) !important;
    height: calc(100dvh - var(--header-height, 72px) - 1px) !important;
    min-height: 0;
    padding: 0 !important;
  }

  .pd-hero img.cover {
    position: absolute;
    min-height: 0;
  }

  .pd-hero-bar {
    position: relative;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 16px;
  }

  .pd-hero-bar-text h1 {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.2;
  }

  .pd-hero-bar-text .loc {
    font-size: 14px;
  }

  .pd-hero-bar .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .pd-breadcrumb {
    height: auto;
    min-height: 48px;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 6px;
    font-size: 13px;
  }

  /* These four sit INSIDE .pd-body, which already carries the 16px phone
     gutter. Repeating it here pushed every meta row, stat card, scope item and
     gallery image to x=32 while the section headings and every band below
     .pd-body (awards / related / enquiry / FAQ) started at x=16 — a ragged left
     edge down the whole page. The gutter belongs to .pd-body alone. */
  .pd-meta, .pd-stats, .pd-scope-grid, .pd-gallery {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .pd-stat, .pd-scope-item, .pd-gallery img {
    width: 100% !important;
    max-width: 100% !important;
  }

  .pd-enquire, .pd-faq {
    padding: 48px 16px !important;
    flex-direction: column !important;
    display: flex !important;
    gap: 28px;
  }

  .pd-enquire-copy, .pd-form {
    width: 100% !important;
    max-width: 100%;
  }

  /* .pd-enquire-inner stayed a row with a non-shrinking 803px copy column, so the
     form was pushed off the side of the phone. */
  .pd-enquire-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .pd-enquire-copy {
    flex-shrink: 1;
    gap: 24px;
  }

  .pd-enquire-copy h2 {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 12px;
  }

  .pd-enquire-copy .sub {
    font-size: 16px;
  }

  .pd-body {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .pd-meta {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }

  .pd-row,
  .pd-row.align-center {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .pd-label {
    width: 100% !important;
    font-size: 16px !important;
  }

  .pd-value {
    width: 100%;
  }

  .pd-client-name {
    font-size: clamp(22px, 6vw, 28px) !important;
  }

  .pd-client-logo {
    width: min(177px, 50vw);
    margin-top: 8px;
  }

  .pd-desc {
    font-size: clamp(18px, 5vw, 24px) !important;
    line-height: 1.4 !important;
  }

  /* Awards rows have a fixed 469px title column on desktop (Figma) — stack them
     rather than let the row overflow on a phone. */
  .pd-awards {
    padding: 48px 16px !important;
  }

  .pd-awards h2 {
    font-size: clamp(28px, 7vw, 36px);
    line-height: 1.2;
    margin-bottom: 32px;
  }

  .pd-award-featured {
    height: auto;
    padding: 20px 16px;
  }

  .pd-award-featured .year {
    position: static;
    display: block;
    margin-top: 12px;
    font-size: 28px;
  }

  .pd-award-row {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
  }

  .pd-award-row strong {
    width: 100%;
  }

  .pd-award-row .arrow {
    display: none;
  }

  .pd-related {
    padding: 0 16px 48px !important;
  }

  .pd-related-head {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
  }

  .pd-related-head h2 {
    font-size: clamp(28px, 7vw, 36px);
    line-height: 1.2;
    letter-spacing: -1px;
  }

  .pd-rel-card {
    width: min(84vw, 719px);
    height: auto;
    aspect-ratio: 719 / 480;
  }

  .pd-faq-item summary {
    font-size: 17px;
    gap: 16px;
  }

  .pd-enquire::after {
    width: min(90%, 776px);
    height: auto;
    aspect-ratio: 776 / 346;
    bottom: -40px;
  }
}

/* ==========================================================================
   Light theme — Project detail
   Reference: Figma light landing 1264:9007 (fl-08 text bands, fl-10 blogs band,
   fl-11 enquiry section, fl-12/fl-13 FAQ). Anything sitting on a photograph —
   the hero bar and the related-rail glass plates — keeps its dark scrim and
   white type. Everything else flips to the light ground. #f68121 is never themed.
   ========================================================================== */

/* --- Hero: photo-backed, stays dark -------------------------------------- */
html[data-theme="light"] .pd-hero-bar {
  background: rgba(63, 63, 63, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .pd-hero-bar-text h1,
html[data-theme="light"] .pd-hero-bar-text .loc {
  color: #fff;
}

/* --- Breadcrumb ---------------------------------------------------------- */
html[data-theme="light"] .pd-breadcrumb {
  background: var(--bg-elevated);
  border-color: var(--border);
}

html[data-theme="light"] .pd-breadcrumb a,
html[data-theme="light"] .pd-breadcrumb span {
  color: #6b6b6b;
}

html[data-theme="light"] .pd-breadcrumb .sep {
  color: var(--border-strong);
}

html[data-theme="light"] .pd-breadcrumb .current {
  color: var(--text);
}

/* --- Meta block ---------------------------------------------------------- */
html[data-theme="light"] .pd-label {
  color: var(--text-secondary);
}

html[data-theme="light"] .pd-client-name,
html[data-theme="light"] .pd-desc {
  color: var(--text);
}

html[data-theme="light"] .pd-client-logo {
  background: #fff;
  border: 1px solid var(--border);
}

html[data-theme="light"] .pd-tag {
  /* Opaque equivalent of the wash over the paper ground. */
  background: var(--bg-sunken);
  color: var(--text);
}

html[data-theme="light"] .pd-stat {
  background: var(--bg-elevated);
  border-color: var(--border);
}

html[data-theme="light"] .pd-stat strong {
  color: var(--text);
}

html[data-theme="light"] .pd-stat span {
  color: #6b6b6b;
}

/* --- Scope / awards / related headings ----------------------------------- */
html[data-theme="light"] .pd-scope h2,
html[data-theme="light"] .pd-awards h2,
html[data-theme="light"] .pd-related-head h2 {
  color: var(--text);
}

html[data-theme="light"] .pd-scope-item {
  background: var(--bg-elevated);
  border-color: var(--border);
}

html[data-theme="light"] .pd-scope-item p {
  color: var(--text-secondary);
}

html[data-theme="light"] .pd-award-featured,
html[data-theme="light"] .pd-award-row {
  background: var(--bg-elevated);
  border-color: var(--border);
}

html[data-theme="light"] .pd-award-featured strong,
html[data-theme="light"] .pd-award-row strong {
  color: var(--text);
}

html[data-theme="light"] .pd-award-featured p,
html[data-theme="light"] .pd-award-row span:not(.arrow),
html[data-theme="light"] .pd-award-row .arrow {
  color: #6b6b6b;
}

/* The oversized year is a ghost numeral behind the award copy — it inverts from
   near-black on dark to near-white on light. */
html[data-theme="light"] .pd-award-featured .year {
  /* ghost numeral behind the award copy — #bdbdbd is 1.9:1 on the card */
  color: #938d84;
}

html[data-theme="light"] .pd-faq .eyebrow,
html[data-theme="light"] .pd-enquire .eyebrow,
html[data-theme="light"] .pd-enquire-copy .eyebrow {
  color: var(--text-grey);
}

/* --- Related rail: photo cards keep the dark glass ------------------------ */
html[data-theme="light"] .pd-rel-arrow {
  border-color: var(--border-strong);
  background: rgba(18, 18, 18, 0.04);
  color: var(--text-secondary);
}

html[data-theme="light"] .pd-rel-arrow:hover:not(:disabled) {
  border-color: #f68121;
  background: rgba(246, 129, 33, 0.12);
  color: #f68121;
}

html[data-theme="light"] .pd-rel-card {
  background: var(--bg-elevated);
}

html[data-theme="light"] .pd-rel-card .card-glass {
  background: rgba(63, 63, 63, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .pd-rel-card .card-glass .card-glass-inner {
  background: transparent;
  border-color: transparent;
}

html[data-theme="light"] .pd-rel-card .card-title,
html[data-theme="light"] .pd-rel-card .card-loc {
  color: #fff;
}

/* --- Enquiry section (fl-11) ---------------------------------------------
   White ground, a soft warm glow behind the form instead of inside it, and the
   skyline line-art dropped back so it reads as a watermark on white. */
html[data-theme="light"] .pd-enquire {
  background: var(--bg-page);
}

html[data-theme="light"] .pd-enquire::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: min(1000px, 70%);
  height: 700px;
  background: radial-gradient(
    60% 60% at 70% 25%,
    rgba(246, 129, 33, 0.16),
    rgba(246, 129, 33, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

html[data-theme="light"] .pd-enquire::after {
  opacity: 0.14;
}

html[data-theme="light"] .pd-enquire-copy h2 {
  color: var(--text);
}

html[data-theme="light"] .pd-enquire-copy .sub {
  color: var(--text-secondary);
}

html[data-theme="light"] .pd-form {
  background: var(--bg-elevated);
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(18, 18, 18, 0.07);
}

html[data-theme="light"] .pd-form::before {
  display: none;
}

html[data-theme="light"] .pd-form h3 {
  color: var(--text);
}

html[data-theme="light"] .pd-form .hint {
  color: var(--text-secondary);
}

html[data-theme="light"] .pd-form .hint a {
  color: var(--text);
}

html[data-theme="light"] .pd-form input,
html[data-theme="light"] .pd-form textarea {
  background: var(--bg-page);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="light"] .pd-form input::placeholder,
html[data-theme="light"] .pd-form textarea::placeholder {
  color: #8a8a8a;
}

/* --- FAQ (fl-12 / fl-13): sunken grey band, white question cards ---------- */
html[data-theme="light"] .pd-faq {
  background: var(--bg-elevated);
}

html[data-theme="light"] .pd-faq h2 {
  color: var(--text);
}

html[data-theme="light"] .pd-faq-item {
  background: var(--bg-elevated);
  box-shadow: 0 2px 10px rgba(18, 18, 18, 0.05);
}

html[data-theme="light"] .pd-faq-item summary {
  color: var(--text);
}

html[data-theme="light"] .pd-faq-item p {
  color: var(--text-secondary);
}

html[data-theme="light"] .pd-faq-more {
  color: var(--text-secondary);
}

html[data-theme="light"] .pd-faq-more a {
  color: var(--text);
}

/* ==========================================================================
   Phone (375) — Project detail
   ========================================================================== */
@media (max-width: 768px) {
  .pd-body {
    gap: 48px;
  }

  /* Related rail glass: a nowrap location beside a flexible title collides on a
     ~315px card, so the two run over each other. Stack them instead. */
  .pd-rel-card .card-glass {
    min-height: 0;
    padding: 12px 16px;
  }

  .pd-rel-card .card-glass-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 4px;
  }

  .pd-rel-card .card-title {
    font-size: 18px;
    line-height: 1.2;
  }

  .pd-rel-card .card-loc {
    font-size: 14px;
    white-space: normal;
  }

  .pd-tags {
    gap: 8px;
  }

  .pd-tag {
    font-size: 16px;
    padding: 10px 14px;
  }

  .pd-stat {
    height: auto;
    padding: 18px 20px;
  }

  .pd-stat strong {
    font-size: 26px;
  }

  .pd-scope {
    gap: 24px;
  }

  .pd-scope h2 {
    font-size: clamp(28px, 7.5vw, 36px);
    line-height: 1.2;
  }

  .pd-scope-item p {
    font-size: 16px;
    line-height: 24px;
  }

  /* A 420px-tall crop of a 343px-wide frame reads as a portrait sliver on a
     phone — bring it back to a landscape band. */
  .pd-gallery-row img {
    height: 240px;
  }

  .pd-form h3 {
    font-size: 24px;
  }

  /* 16px avoids the iOS focus zoom; 48px keeps the field a comfortable target. */
  .pd-form input,
  .pd-form textarea {
    font-size: 16px;
    min-height: 48px;
  }

  .pd-form textarea {
    min-height: 120px;
  }

  .pd-form .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .pd-faq h2 {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.2;
    margin-bottom: 32px;
  }

  .pd-faq-list {
    gap: 16px;
  }

  .pd-faq-item {
    padding: 16px 18px;
  }

  .pd-faq-item summary {
    min-height: 44px;
  }

  /* "Home" is only ~37px wide at the mobile type size, which is the last
     sub-44 target on these pages apart from the inline email link inside a
     sentence. Centring it in a 44px box costs ~3px either side. */
  .pd-breadcrumb a,
  .pd-breadcrumb .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .pd-breadcrumb a {
    min-width: 44px;
  }
}

/* ==========================================================================
   Short project template — Figma "Projects - <client>" frames (1920 × 5424):
   hero → meta → three stats → scope tags → one-row gallery band → related
   rail → CTA + partners. No awards / enquiry / FAQ bands on these frames.
   ========================================================================== */
.pd-status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-family: "Fustat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

.pd-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.pd-status--ongoing {
  background: #f68121;
}

.pd-stats.pd-stats--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pd-gallery.pd-gallery--band {
  flex-direction: row;
}

.pd-gallery--band img {
  flex: 1 1 0;
  min-width: 0;
  height: 500px;
  object-fit: cover;
}

@media (max-width: 1440px) {
  .pd-gallery--band img {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .pd-gallery--band img {
    flex: none;
    height: 240px;
  }

  .pd-status {
    font-size: 12px;
    padding: 4px 12px;
  }
}
