/* ============================================================
   PROJECT HERO
   ============================================================ */
.project-hero {
  display: flex;
  width: 100%;
  min-height: 700px;
  background-color: #fff;
}

.project-hero-left {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 60px 80px 90px;
  box-sizing: border-box;
}

.project-hero-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(17, 17, 17, 0.5);
  margin-bottom: 32px;
}

.project-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 40px 0;
}

.project-hero-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #000;
  margin: 0;
  max-width: 513px;
}

.project-hero-right {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.project-hero-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: #d5cfc4;
}

/* ============================================================
   PROJECT SERVICES MARQUEE
   ============================================================ */
.project-services-marquee {
  overflow: hidden;
  background: #f5f0e8;
  background-image: url('../images/paper-texture-light.png');
  background-repeat: repeat;
  background-size: auto;
  padding: 28px 0;
  white-space: nowrap;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.psm-track {
  display: flex;
  width: max-content;
  animation: psmScroll 35s linear infinite;
}

@keyframes psmScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.psm-items {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.psm-item {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: #111;
  padding: 0 32px;
  text-transform: none;
  letter-spacing: -0.02em;
}

.psm-dot {
  color: #111;
  font-size: 8px;
  line-height: 1;
}

/* ============================================================
   PROJECT BEFORE / AFTER SLIDER
   ============================================================ */
.project-ba-section {
  background-color: #fff;
  padding: 80px 90px;
  box-sizing: border-box;
}

.project-ba-wrap {
  position: relative;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
}

.project-ba-slider {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
}

.ba-before img,
.ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-before {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.ba-label {
  position: absolute;
  bottom: 20px;
  left: 24px;
  z-index: 3;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 12px;
  backdrop-filter: blur(4px);
}

.ba-label-after {
  left: auto;
  right: 24px;
}

.ba-divider {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 2px;
  background: #fff;
  z-index: 4;
  transform: translateX(-50%);
  cursor: col-resize;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  cursor: col-resize;
}

.ba-handle svg {
  width: 18px;
  height: 18px;
  color: #111;
}

/* ============================================================
   PROJECT CONTENT
   ============================================================ */
.project-content {
  position: relative;
  background-color: #fff;
  padding: 100px 90px;
  overflow: hidden;
}

.pc-texture {
  position: absolute;
  inset: 0;
  background-image: url('../images/paper-texture-light.png');
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.pc-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1260px;
  margin: 0 auto 100px;
}

.pc-row:last-child {
  margin-bottom: 0;
}

.pc-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pc-heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: #111;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pc-body p {
  font-size: 1rem;
  color: #111;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.pc-body p:last-child {
  margin-bottom: 0;
}

.pc-author {
  font-weight: 700;
  color: #111 !important;
  font-style: normal;
}

.pc-image {
  flex: 0 0 48%;
  overflow: hidden;
  height: 480px;
}

.pc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   PROJECT GALLERY
   ============================================================ */
.project-gallery {
  background: #fff;
  padding: 80px 0 80px 90px;
  overflow: hidden;
}

.pg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 90px;
  margin-bottom: 40px;
}

.pg-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: #111;
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.pg-nav {
  display: flex;
  gap: 16px;
}

.pg-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  padding: 0;
  transition: opacity 0.2s;
}

.pg-btn:hover {
  opacity: 0.5;
}

.pg-track-wrap {
  overflow: hidden;
}

.pg-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pg-slide {
  flex-shrink: 0;
  width: 407px;
  height: 225px;
  overflow: hidden;
  cursor: pointer;
}

.pg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pg-slide:hover img {
  transform: scale(1.03);
}

/* Lightbox */
.pg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.pg-lightbox.is-open {
  display: flex;
}

.pg-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.pg-lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 90vw;
}

.pg-lb-img {
  max-height: 90vh;
  max-width: 70vw;
  min-width: 70vw;
  object-fit: contain;
  display: block;
}

.pg-lb-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.pg-lb-prev,
.pg-lb-next {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.pg-lb-prev:hover,
.pg-lb-next:hover {
  opacity: 1;
}

/* ============================================================
   PROJECT CTA
   ============================================================ */
.resident-cta {
  position: relative;
  margin-top: 0;
  z-index: 5;
  background-color: #f0ebe0;
}

.cta-bg {
  position: relative;
  width: 100%;
  line-height: 0;
}

.cta-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.cta-card {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 720px;
  max-width: 85%;
  background: #ffffff;
  padding: 50px 60px 45px;
  text-align: center;
  overflow: hidden;
}

.cta-card .companies-texture {
  border-radius: 0;
}

.cta-leaf {
  position: absolute;
  top: -30px;
  left: -20px;
  width: 220px;
  height: auto;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.cta-flamingo {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 100px;
  height: auto;
  z-index: 0;
}

.cta-card-inner {
  position: relative;
  z-index: 1;
}

.cta-badge {
  display: inline-block;
  background: #e4b23a;
  color: #111;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 18px;
  margin-bottom: 22px;
  letter-spacing: 0.2px;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.cta-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(20, 20, 20, 0.6);
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  width: 220px;
  padding: 0 40px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-btn-dark {
  background: #3a3a2e;
  color: #fff;
  border: 2px solid #3a3a2e;
}

.cta-btn-dark:hover {
  background: transparent;
  color: #3a3a2e;
}

.cta-btn-outline {
  background: transparent;
  color: #3a3a2e;
  border: 2px solid #3a3a2e;
}

.cta-btn-outline:hover {
  background: #3a3a2e;
  color: #fff;
}

.resident-cta .ws-btn-filled:hover {
  background: transparent;
  color: #111111;
}

.resident-cta .ws-btn-outline:hover {
  background: #111111;
  color: #ffffff;
}

@media (max-width: 960px) {
  .resident-cta {
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cta-bg {
    position: absolute;
    inset: 0;
  }
  .cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .cta-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 85%;
    padding: 45px 36px 40px;
    margin: 0 auto;
  }
  .cta-title {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .resident-cta {
    padding: 60px 20px;
  }
  .cta-card {
    padding: 36px 24px 30px;
    width: 100%;
  }
  .cta-title {
    font-size: 28px;
  }
  .cta-buttons {
    flex-direction: column;
  }
  .cta-btn {
    width: 100%;
  }
  .cta-leaf {
    width: 140px;
  }
  .cta-flamingo {
    width: 60px;
    bottom: 15px;
    right: 15px;
  }
}

/* ============================================================
   OTHER PROJECTS
   ============================================================ */
.project-other {
  position: relative;
  z-index: 2;
  background-color: #fff;
  padding: 100px 90px;
  overflow: hidden;
}

.po-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.po-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: #111;
  margin: 0 0 48px;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.po-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.po-card {
  position: relative;
  display: block;
  height: 225px;
  overflow: hidden;
  text-decoration: none;
}

.po-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.po-card:hover img {
  transform: scale(1.03);
}

.po-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.po-card-name {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  color: #fff;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .project-hero,
  .project-services-marquee,
  .project-ba-section,
  .project-content,
  .project-gallery,
  .resident-cta,
  .project-other {
    margin-bottom: -1px;
  }

  .project-hero {
    flex-direction: column;
    min-height: auto;
  }

  .project-hero-right {
    flex: none;
    width: 100%;
    min-height: 420px;
    order: 1;
  }

  .project-hero-left {
    flex: none;
    width: 100%;
    padding: 60px 48px 60px 48px;
    order: 2;
  }

  .project-hero-title {
    font-size: 36px;
  }

  .project-ba-section {
    padding: 60px 40px;
  }

  .project-gallery {
    padding: 60px 0 60px 48px;
  }

  .pg-header {
    padding-right: 48px;
  }

  .pg-slide {
    width: calc((100vw - 48px - 20px) / 2);
    height: 225px;
  }

  .project-content {
    padding: 80px 48px;
  }

  .pc-row {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 64px;
  }

  .pc-image {
    flex: none;
    width: 100%;
    height: 360px;
  }

  .project-other {
    padding: 60px 48px 100px;
  }

  .po-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-footer {
    padding-top: 120px;
  }

  .footer-logo-overlap {
    top: -60px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .project-hero,
  .project-services-marquee,
  .project-ba-section,
  .project-content,
  .project-gallery,
  .resident-cta,
  .project-other {
    margin-bottom: -1px;
  }

  .project-hero-right {
    min-height: 280px;
  }

  .project-hero-left {
    padding: 40px 24px 48px;
  }

  .project-hero-title {
    font-size: 36px;
  }

  .project-hero-label {
    margin-bottom: 20px;
  }

  .project-ba-section {
    padding: 48px 24px;
  }

  .project-gallery {
    padding: 40px 0 48px 24px;
  }

  .pg-header {
    padding-right: 24px;
  }

  .pg-slide {
    width: calc(100vw - 106px);
    height: 200px;
  }

  .project-content {
    padding: 60px 24px;
  }

  .pc-image {
    height: 280px;
  }

  .project-other {
    padding: 40px 24px 90px;
  }

  .site-footer {
    padding-top: 100px;
  }

  .footer-logo-overlap {
    top: -50px;
  }
}

.page-template-page-project .site-header {
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.15)) !important;
}

.page-template-page-project .project-services-marquee {
  background: #fff !important;
  background-image: none !important;
}

/* Project page: prevent CTA torn-paper bleed from overlapping Other Projects */
.page-template-page-project .offices-workspace-cta {
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.page-template-page-project .ws-main::before {
  bottom: 0 !important;
}
.page-template-page-project .project-other {
  position: relative;
  z-index: 2;
  isolation: isolate;
}