 
.projects-page {
  --project-paper: #efeded;
  --project-ink: #26221c;
  --project-navy: #143b55;
  --project-green: #81b435;
  --project-light: #e6e6e6;
   
  --project-heading-font: "PPNeueMontreal", sans-serif;
  --project-h1-size: 3.128rem;
  --project-h2-size: 2.3rem;
  --project-h3-size: 1.8rem;
  --project-body-size: 1.2rem;
  --project-detail-size: 1.1rem;
  --project-gutter: 8rem;
  --project-hero-inset: 22px;
  --project-gap: clamp(16px, 1.3889vw, 28px);
  color: var(--project-ink);
}

.project-page-wrapper {
  padding: 0 0 128px;
}

.project-page-wrapper :is(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
.project-page-wrapper :is(h1, h2, h3) { font-family: var(--project-heading-font); font-weight: 400; letter-spacing: normal; }
.project-page-wrapper h1 { font-size: var(--project-h1-size); line-height: 1.05; }
.project-page-wrapper h2 { font-size: var(--project-h2-size); line-height: 1.05; }
.project-page-wrapper h3 { font-size: var(--project-h3-size); line-height: 1.1; }
.project-page-wrapper p { font-weight: 200; }
.project-container { width: 100%; padding-inline: var(--project-gutter); }
.project-skip-link { position: fixed; top: 12px; left: 12px; z-index: 2000; padding: 12px 20px; background: var(--project-paper); color: var(--project-navy); transform: translateY(-200%); }
.project-skip-link:focus { transform: translateY(0); }
.project-page-wrapper :is(a, button, [tabindex]):focus-visible { outline: 3px solid var(--project-green); outline-offset: 5px; }

 
.project-hero { position: relative; display: flex; align-items: flex-end; width: calc(100% - 2 * var(--project-hero-inset)); min-height: min(90vh, 56rem); min-height: min(90svh, 56rem); margin-inline: var(--project-hero-inset); padding: 10rem 0 6rem; border-radius: 0 0 15px 15px; overflow: hidden; isolation: isolate; color: var(--project-light); background: var(--project-navy); }
.project-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.project-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,4,4,.42) 0%, rgba(20,59,85,.18) 42%, rgba(0,0,0,.72) 100%), linear-gradient(90deg, rgba(0,0,0,.48) 0%, rgba(0,0,0,.1) 52%, rgba(0,0,0,.34) 100%); }
.project-hero-content { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-inline: max(1.25rem, calc(var(--project-gutter) - var(--project-hero-inset))); }
.project-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.project-hero-actions .main-cta { min-height: 44px; }
.project-status { display: inline-flex; align-items: center; gap: .75rem; color: var(--project-light); font-size: .9rem; font-weight: 200; line-height: 1.35; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.project-status::before { content: ""; flex: 0 0 1.5rem; width: 1.5rem; height: 2px; background: var(--project-green); }
.project-hero h1 { max-width: 60rem; }
.project-hero-summary { max-width: 68rem; font-size: var(--project-body-size); line-height: 1.35; }
.project-hero-location { width: 100%; padding-top: 16px; border-top: 1px solid rgba(230,230,230,.35); font-size: 1rem; line-height: 1.4; }
.project-hero-location span { padding-inline: 8px; }
.project-information { padding-top: 64px; padding-bottom: 96px; }
.project-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(38,34,28,.2); }
.project-facts > div::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 12px; background: var(--project-green); }
.project-facts dt { margin-bottom: 12px; color: var(--project-navy); font-size: 1rem; font-weight: 200; }
.project-facts dd { font-size: var(--project-body-size); font-weight: 300; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }
.project-scope { display: grid; grid-template-columns: minmax(0, 672fr) minmax(0, 736fr); gap: clamp(48px, 7.4074vw, 144px); margin-top: 80px; align-items: start; }
.project-detail-photo img { display: block; width: 100%; height: auto; max-height: 40rem; aspect-ratio: 672 / 836; object-fit: cover; border-radius: 4px; }
.project-detail-photo figcaption { margin-top: 16px; font-size: 1rem; font-weight: 200; line-height: 1.35; }
.project-services { display: flex; flex-direction: column; gap: 32px; }
.project-services-intro p { max-width: 680px; margin-top: 1.2rem; font-size: var(--project-body-size); line-height: 1.35; }
.project-service-list { list-style: none; counter-reset: services; padding: 0; margin: 0; }
.project-service-list li { position: relative; counter-increment: services; border-top: 1px solid var(--project-ink); padding: 24px 0 24px 56px; }
.project-service-list li::before { content: counter(services, decimal-leading-zero); position: absolute; top: 26px; left: 0; color: var(--project-navy); font-size: 1rem; font-weight: 200; }
.project-service-list h3 { margin-bottom: 8px; }
.project-service-list p { font-size: var(--project-detail-size); line-height: 1.35; }

.project-gallery { --gallery-image-width: clamp(300px, 38.1944vw, 760px); }
.project-gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.project-gallery-controls { display: flex; align-items: center; gap: 8px; flex: none; }
.project-gallery-controls[hidden] { display: none; }
.project-gallery-counter { min-width: 76px; font-size: 1rem; font-weight: 200; font-variant-numeric: tabular-nums; }
.project-gallery-controls button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--project-navy); border-radius: 50%; background: transparent; cursor: pointer; transition: background .2s; }
.project-gallery-controls button:hover { background: rgba(20,59,85,.09); }
.project-gallery-track { display: flex; align-items: flex-start; gap: var(--project-gap); padding-inline: var(--project-gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--project-gutter); scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
 
.project-gallery-track::after { content: ""; flex: 0 0 max(0px, calc(100% - var(--gallery-image-width) - var(--project-gap))); height: 1px; }
.project-gallery-track figure { flex: 0 0 var(--gallery-image-width); scroll-snap-align: start; scroll-snap-stop: always; }
.project-gallery-track img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; user-select: none; }
.project-gallery.is-enhanced .project-gallery-track { cursor: grab; scrollbar-width: none; }
.project-gallery.is-enhanced .project-gallery-track::-webkit-scrollbar { display: none; }
.project-gallery-track.is-dragging { cursor: grabbing !important; scroll-snap-type: none; user-select: none; }
.project-gallery-track.is-wheeling { scroll-snap-type: none; }
.project-gallery-caption { margin-top: 24px !important; font-size: 1rem; line-height: 1.4; }
.project-contact { padding-top: 96px; }
.project-contact-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding: 64px; border-radius: 10px; background: var(--project-navy); color: var(--project-light); }
.project-contact-copy p { max-width: 792px; margin-top: 1.2rem; font-size: var(--project-body-size); line-height: 1.35; }
.project-contact-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 120px; padding-left: 48px; border-left: 1px solid var(--project-paper); }
.main-cta.project-inquiry { background: var(--project-paper); color: var(--project-navy) !important; }
.project-inquiry .cta-icon { background: var(--project-navy); }
.project-overview-link { color: inherit; font-size: 1rem; font-weight: 200; text-decoration: none; text-underline-offset: 5px; }
.project-overview-link:hover { text-decoration: underline; }

 
.project-contact-banner--image {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 28rem;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 16px 40px rgba(20,59,85,.12);
}
.project-contact-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.project-contact-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.project-contact-banner--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10,31,46,.97) 0%, rgba(10,31,46,.92) 38%, rgba(10,31,46,.66) 60%, rgba(10,31,46,.12) 100%), linear-gradient(0deg, rgba(5,18,28,.35), transparent 65%);
}
.project-contact-content { position: relative; z-index: 2; width: 60%; max-width: 36rem; }
.project-contact-eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; font-size: .9rem; font-weight: 200; line-height: 1.35; }
.project-contact-eyebrow::before { content: ""; flex: 0 0 1.5rem; width: 1.5rem; height: 2px; background: var(--project-green); }
.project-contact-content .project-contact-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: .75rem 1.5rem; min-height: 0; margin-top: 1.75rem; padding: 0; border: 0; }
.project-contact-content .main-cta { min-height: 44px; }
.project-contact-content .project-overview-link { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 1025px) and (max-width: 1520px) {
  .projects-page { --project-gutter: 5rem; }
}

@media (min-width: 1025px) and (max-width: 1380px) {
  .projects-page { --project-h1-size: 2.76rem; }
}

@media (max-width: 1200px) {
  .project-scope { gap: 40px; }
  .project-service-list li { padding: 20px 0 20px 40px; }
  .project-service-list li::before { top: 23px; font-size: 16px; }
  .project-contact-banner { padding: 40px; gap: 32px; }
  .project-contact-actions { padding-left: 32px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .projects-page { --project-gutter: 3rem; --project-h1-size: 2.852rem; }
  .project-hero { padding-bottom: 4rem; }
}

@media (min-width: 769px) and (max-width: 1200px) and (orientation: landscape) {
  .projects-page { --project-gutter: 3rem; --project-h1-size: 2.576rem; }
  .project-hero { padding-bottom: 4rem; }
}

@media (max-width: 900px) {
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .project-scope { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .project-detail-photo img { aspect-ratio: 4 / 3; max-height: 32rem; }
  .project-services { gap: 24px; }
  .project-contact-banner { grid-template-columns: 1fr; }
  .project-contact-actions { min-height: 0; padding: 28px 0 0; border-left: 0; border-top: 1px solid rgba(239,237,237,.5); align-items: flex-start; }
  .project-contact-banner--image { align-items: flex-end; min-height: 30rem; }
  .project-contact-banner--image::before { background: linear-gradient(0deg, rgba(10,31,46,.98) 0%, rgba(10,31,46,.93) 44%, rgba(10,31,46,.72) 72%, rgba(10,31,46,.15) 100%); }
  .project-contact-content { width: 100%; }
}

@media (max-width: 768px) {
  .projects-page {
    --project-gutter: 1.25rem;
    --project-hero-inset: 12px;
    --project-gap: 16px;
    --project-h1-size: 1.9rem;
    --project-h2-size: 1.8rem;
    --project-h3-size: 1.55rem;
    --project-body-size: 1rem;
    --project-detail-size: 1rem;
  }
  .project-page-wrapper { padding-bottom: 64px; }
  .project-page-wrapper h1 { width: 100%; line-height: 1.09; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
  .project-page-wrapper h2 { max-width: 100%; }
  .project-hero { align-items: flex-start; padding-top: 11rem; padding-bottom: 4rem; }
  .project-hero-content { gap: 16px; }
  .project-status { font-size: .85rem; }
  .project-hero h1 { max-width: 100%; }
  .project-hero-location { font-size: .9rem; }
  .project-hero-location span { padding-inline: 3px; }
  .project-information { padding-top: 40px; padding-bottom: 56px; }
  .project-facts { gap: 28px 16px; padding-bottom: 32px; }
  .project-facts dt { font-size: .95rem; }
  .project-facts dd br { display: none; }
  .project-detail-photo img { max-height: 26.25rem; }
  .project-detail-photo figcaption { font-size: .9rem; }
  .project-contact h2 { font-size: 1.55rem; line-height: 1.1; }
  .project-services-intro p { margin-top: 16px; }
  .project-gallery { --gallery-image-width: calc(100vw - 72px); }
  .project-gallery-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .project-gallery-controls { align-self: flex-end; }
  .project-gallery-controls button { width: 44px; height: 44px; }
  .project-gallery-caption { font-size: .9rem; min-height: 40px; margin-top: 18px !important; }
  .project-contact { padding-top: 56px; }
  .project-contact-banner { padding: 28px 24px; gap: 28px; }
  .project-contact-banner--image { padding-top: 9rem; }
  .project-contact-media img { object-position: 62% center; }
  .project-contact-eyebrow { margin-bottom: 1rem; font-size: .85rem; }
  .project-contact-content .project-contact-actions { margin-top: 1.5rem; }
  .project-contact-copy p { line-height: 1.36; }
  .main-cta.project-inquiry { max-width: 100%; white-space: normal; }
}

@media (max-width: 480px) {
  .projects-page { --project-h1-size: 1.8rem; }
  .project-hero-summary { font-size: .95rem; line-height: 1.32; }
}

 
@media (max-height: 700px) {
  .project-hero { padding-top: 7rem; padding-bottom: 4rem; }
}

@media (max-height: 480px) {
  .project-hero { padding-top: 6rem; padding-bottom: 2rem; }
  .project-hero-content { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-page-wrapper *, .project-page-wrapper *::before { scroll-behavior: auto !important; transition: none !important; }
}
