/* Detail pages only: shared site colors and typography, reference section order. */
.project-page { padding-top: 112px; }
.project-detail-hero { padding: 36px 0 80px; }
.project-breadcrumb { display: flex; gap: 12px; flex-wrap: wrap; color: #718079; font-size: 12px; }
.project-breadcrumb a { text-decoration: none; }
.project-breadcrumb [aria-current] { color: var(--ink); }
.project-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 50px 0 42px; }
.project-detail-heading h1 { margin-bottom: 0; }
.project-detail-heading > .text-link { margin-bottom: 12px; white-space: nowrap; }
.project-detail-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.project-main-image { margin: 0; position: relative; }
.project-main-image > img { display: block; width: 100%; height: 560px; object-fit: cover; }
.project-main-image > .client-image-placeholder { height: 560px; }
.project-main-image figcaption { position: absolute; left: 24px; bottom: 24px; background: var(--ink-deep); color: var(--cream); padding: 12px 18px; font-size: 11px; letter-spacing: .1em; }
.project-detail-specs { padding: 8px 0; }
.project-summary-copy { color: #6f7d75; line-height: 1.8; margin: 18px 0 26px; font-size: 15px; }
.project-specification-list { margin: 0 0 30px; }
.project-specification-list > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 13px; }
.project-specification-list dt { font-weight: 600; }
.project-specification-list dd { margin: 0; color: #6f7d75; }
.project-brochure { min-width: 210px; }
.project-source-note { font-size: 11px; line-height: 1.7; color: #718079; margin-top: 16px; max-width: 500px; }
.project-about-section { border-top: 1px solid var(--line-dark); }
.project-about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 90px; }
.project-about-copy p { color: #6f7d75; font-size: 16px; line-height: 1.9; }
.project-page .section-heading { margin-top: 0; }
.project-page .section-heading > p { max-width: 380px; line-height: 1.8; color: #718079; }
.project-page .section-dark .section-heading > p { color: var(--mist); }
.project-amenities-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-amenity { min-height: 180px; border: 1px solid var(--line); padding: 30px; background: rgba(255,255,255,.025); }
.project-amenity-index { display: block; color: var(--champagne); font-size: 11px; letter-spacing: .15em; margin-bottom: 22px; }
.project-amenity h3 { color: var(--cream); font-size: 27px; line-height: 1.2; margin: 0; }
.project-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-gallery-thumb { position: relative; border: 0; padding: 0; background: var(--cream-deep); overflow: hidden; text-align: left; }
.project-gallery-thumb img { display: block; width: 100%; height: 350px; object-fit: cover; transition: transform .4s ease; }
.project-gallery-thumb:hover img { transform: scale(1.025); }
.project-gallery-thumb:focus-visible { outline: 3px solid var(--champagne); outline-offset: 4px; }
.project-gallery-thumb > span { position: absolute; right: 18px; bottom: 18px; padding: 10px 14px; background: var(--ink-deep); color: var(--cream); font-size: 11px; letter-spacing: .08em; }
.project-gallery-more { margin-top: 32px; }
.project-gallery-more > summary { width: fit-content; margin: 0 auto 32px; list-style: none; cursor: pointer; }
.project-gallery-more > summary::-webkit-details-marker { display: none; }
.project-gallery-more[open] > summary > span { transform: rotate(180deg); }
.project-enquiry-section { border-top: 1px solid var(--line-dark); }
.project-enquiry-section .contact-grid > div { min-width: 0; }
.project-enquiry-section h2 { overflow-wrap: anywhere; }
.project-enquiry-section .form-topline { gap: 16px; flex-wrap: wrap; }
.project-direct-contact { margin-top: 38px; display: flex; align-items: start; flex-direction: column; gap: 14px; }
.project-direct-contact > small { color: #718079; }
.project-back-link { padding-top: 45px; }
@media (max-width: 1000px) {
  .project-detail-intro { gap: 30px; }
  .project-main-image > img { height: 500px; }
  .project-main-image > .client-image-placeholder { height: 500px; }
  .project-about-grid { gap: 45px; }
  .project-specification-list > div { grid-template-columns: 110px minmax(0, 1fr); }
  .project-amenities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .project-page { padding-top: 85px; }
  .project-detail-hero { padding-top: 26px; }
  .project-detail-heading { align-items: start; flex-direction: column; margin-top: 32px; gap: 12px; }
  .project-detail-heading > .text-link { white-space: normal; margin-top: 0; }
  .project-detail-intro, .project-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .project-main-image > img { height: 380px; }
  .project-main-image > .client-image-placeholder { height: 380px; }
  .project-gallery-thumb img { height: 240px; }
  .project-enquiry-section .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .project-main-image > img { height: 310px; }
  .project-main-image > .client-image-placeholder { height: 310px; }
  .project-amenities-grid, .project-gallery-grid { grid-template-columns: 1fr; }
  .project-amenity { min-height: 140px; padding: 24px; }
  .project-gallery-thumb img { height: 270px; }
  .project-main-image figcaption { left: 12px; bottom: 12px; padding: 10px; }
  .project-enquiry-section .contact-form-wrap { padding: 28px 22px; }
}

.project-gallery-placeholder { position: relative; margin: 0; background: var(--cream-deep); overflow: hidden; }
.project-gallery-placeholder img { display: block; width: 100%; height: 350px; object-fit: cover; }
.project-gallery-placeholder figcaption { position: absolute; left: 16px; bottom: 14px; color: var(--ink); font-size: 12px; }
@media (max-width: 640px) { .project-gallery-placeholder img { height: 270px; } }

/* Avoid cropping project photographs on mobile detail pages as well. */
@media (max-width: 760px) {
  .project-main-image > img, .project-gallery-thumb img { height: auto; width: 100%; object-fit: contain; }
  .project-gallery-thumb:hover img { transform: none; }
}

/* Keep project-specific captions separate from placeholder artwork text. */
.project-gallery-placeholder figcaption {
  position: static;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  background: var(--cream-deep);
  border-top: 1px solid var(--line-dark);
}

/* Previous / next project navigation at the end of every project page. */
.project-pager { border-top: 1px solid var(--line-dark); padding: 56px 0 64px; background: white; }
.project-pager-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-pager a { display: flex; flex-direction: column; gap: 8px; padding: 26px 30px; border: 1px solid var(--line-dark); color: var(--ink); text-decoration: none; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.project-pager a:hover, .project-pager a:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.project-pager .pager-label { font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #718079; transition: color .25s ease; }
.project-pager .pager-name { font: 500 clamp(26px, 3vw, 36px)/1.1 "Cormorant Garamond", serif; }
.project-pager .pager-developer { font-size: 13px; color: #718079; transition: color .25s ease; }
.project-pager a:hover .pager-label, .project-pager a:hover .pager-developer, .project-pager a:focus-visible .pager-label, .project-pager a:focus-visible .pager-developer { color: var(--champagne); }
.project-pager .project-pager-next { text-align: right; align-items: flex-end; }
@media (max-width: 700px) { .project-pager { padding: 40px 0 48px; } .project-pager-grid { grid-template-columns: 1fr; gap: 16px; } .project-pager a { padding: 22px 22px; } .project-pager .project-pager-next { text-align: left; align-items: flex-start; } }

/* Matching developer films retain the existing main-media frame. */
.project-main-image > .project-reference-video { display: block; width: 100%; height: auto; object-fit: contain; background: #0c1916; border-radius: 20px; }
.project-main-image:has(> .project-reference-video) figcaption { bottom: 24px; pointer-events: none; }

@media (max-width: 760px) { .project-main-image > .project-reference-video { height: auto; object-fit: contain; } }

/* Place project identity beside the film, with a balanced portrait column. */
.project-video-intro { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; margin-top: 40px; }
.project-video-intro .project-detail-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin: 0 0 30px; }
.project-video-intro .project-detail-heading h1 { font-size: clamp(40px, 4.4vw, 66px); line-height: 1.05; margin-top: 16px; }
.project-video-intro .project-detail-heading > .text-link { margin-bottom: 0; }
.project-video-intro .project-reference-video { width: 100%; height: auto; aspect-ratio: 2 / 3; max-height: none; object-fit: cover; background: transparent; }
.project-video-intro .project-detail-specs { padding-top: 0; }
@media (max-width: 760px) {
  .project-video-intro { grid-template-columns: 1fr; margin-top: 28px; }
  .project-video-intro .project-main-image { max-width: 430px; width: 100%; margin-inline: auto; }
  .project-video-intro .project-reference-video { max-height: none; }
}
