.projects-page { background: var(--color-background); }
.projects-page .desktop-nav a[aria-current="page"], .projects-page .mobile-nav a[aria-current="page"] { color: var(--color-accent-dark); text-decoration: underline; text-underline-offset: 6px; }

.projects-breadcrumb { display: flex; align-items: center; gap: 11px; padding-block: 22px; color: var(--color-muted); font-size: .82rem; }
.projects-breadcrumb a { color: var(--color-text); }
.projects-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }

.projects-hero { padding-block: 36px 62px; }
.projects-hero__inner { max-width: 970px; text-align: center; }
.projects-hero .eyebrow { justify-content: center; }
.projects-hero h1 { max-width: 900px; margin: 0 auto 25px; font-size: clamp(2.7rem, 6.1vw, 5rem); font-weight: 400; letter-spacing: -.055em; line-height: 1.07; }
.projects-hero__inner > p:not(.eyebrow) { max-width: 670px; margin: 0 auto 29px; color: var(--color-text-secondary); font-size: 1.08rem; line-height: 1.68; }
.projects-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 28px; }

.projects-cover { max-width: var(--wide-media); margin: 0 auto; }
.projects-cover__inner { overflow: hidden; background: var(--color-surface-soft); }
.projects-cover img { width: 100%; height: clamp(320px, 45vw, 590px); object-fit: cover; object-position: center 54%; }
.projects-cover figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 14px; border-bottom: 1px solid var(--color-border); font-size: .84rem; }
.projects-cover figcaption strong { font-size: .96rem; font-weight: 650; }
.projects-cover figcaption span { color: var(--color-muted); text-align: right; }

.projects-intro { background: #fff; }
.projects-intro__inner { max-width: 880px; margin-inline: auto; text-align: center; }
.projects-intro .eyebrow { justify-content: center; }
.projects-intro .section-title { margin-inline: auto; }
.projects-intro__inner > p:not(.eyebrow) { max-width: 730px; margin: 0 auto; color: var(--color-text-secondary); font-size: 1.08rem; line-height: 1.75; }
.projects-section-heading { max-width: 870px; margin: 0 auto 40px; text-align: center; }
.projects-section-heading .eyebrow { justify-content: center; }
.projects-section-heading .section-title { max-width: none; margin-inline: auto; }
.projects-section-heading > p:not(.eyebrow) { max-width: 670px; margin: 0 auto; color: var(--color-text-secondary); font-size: 1rem; line-height: 1.66; }

.projects-featured { background: #f0f4ef; }
.projects-featured__case { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.projects-featured__case figure, .projects-entry figure, .projects-selection__strip figure, .projects-details figure { min-width: 0; margin: 0; }
.projects-featured__case img { width: 100%; height: 310px; object-fit: cover; border-radius: var(--radius); }
.projects-featured__case figcaption, .projects-entry figcaption, .projects-selection__strip figcaption, .projects-details figcaption { padding-top: 10px; color: var(--color-muted); font-size: .78rem; }

.projects-selection { background: #fff; }
.projects-selection__grid, .projects-selection__strip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.projects-entry { min-width: 0; }
.projects-entry img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); }
.projects-entry__copy { padding-top: 20px; border-top: 1px solid var(--color-border); margin-top: 14px; }
.projects-entry h3 { margin-bottom: 12px; font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 500; letter-spacing: -.035em; }
.projects-entry p { max-width: 55ch; margin: 0; color: var(--color-text-secondary); font-size: 1rem; line-height: 1.65; }
.projects-selection__strip { margin-top: 58px; }
.projects-selection__strip img { width: 100%; height: 270px; object-fit: cover; border-radius: var(--radius); }

.projects-perspective { background: var(--color-forest); color: #fff; }
.projects-perspective__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 35px; }
.projects-perspective .section-title { max-width: 560px; }
.projects-perspective__grid > div:last-child > p { max-width: 580px; color: #e8ede9; font-size: 1.02rem; line-height: 1.7; }
.projects-perspective__links { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 28px; border-top: 1px solid rgba(255,255,255,.3); }
.projects-perspective__links a { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 61px; border-bottom: 1px solid rgba(255,255,255,.3); font-size: 1rem; font-weight: 500; }
.projects-perspective__links a:hover { color: #d5e2d4; }
.projects-perspective__hub { margin-top: 28px; color: #fff; border-color: #b3bfb1; }
.projects-perspective__hub:hover { color: #fff; border-color: #fff; }

.projects-details { background: #fff; }
.projects-details__grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 42px; }
.projects-details img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); }
.projects-details__copy > p:not(.eyebrow) { max-width: 53ch; color: var(--color-text-secondary); font-size: 1.02rem; line-height: 1.7; }
.projects-details__copy .text-link { margin-top: 10px; }

.projects-retrofit { background: #f0f4ef; }
.projects-retrofit__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.projects-retrofit__grid > div { min-width: 0; padding: 28px 0 25px; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.projects-retrofit__grid h3 { margin-bottom: 10px; font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 500; letter-spacing: -.035em; }
.projects-retrofit__grid p { margin: 0; color: var(--color-muted); font-size: .9rem; }
.projects-retrofit__link { margin-top: 28px; }

.projects-paths { background: #fff; }
.projects-paths__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.projects-paths__grid a { display: flex; flex-direction: column; min-width: 0; min-height: 205px; padding: 26px; border: 1px solid var(--color-border); border-radius: var(--radius-small); transition: background-color .2s ease; }
.projects-paths__grid a:hover { background: var(--color-background); }
.projects-paths__grid h3 { margin-bottom: 13px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; }
.projects-paths__grid p { color: var(--color-text-secondary); font-size: .97rem; }
.projects-paths__grid span { margin-top: auto; font-size: .87rem; font-weight: 650; }

.projects-final-cta .final-cta__canvas { background: linear-gradient(90deg, rgba(20,43,27,.42), rgba(20,43,27,.18)); }

@media (min-width: 640px) {
  .projects-featured__case, .projects-selection__grid, .projects-selection__strip, .projects-retrofit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-paths__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .projects-perspective__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-perspective__links a:nth-child(odd) { padding-right: 18px; border-right: 1px solid rgba(255,255,255,.3); }
  .projects-perspective__links a:nth-child(even) { padding-left: 18px; }
}
@media (min-width: 768px) {
  .projects-hero { padding-block: 58px 80px; }
  .projects-featured__case img { height: 390px; }
  .projects-entry img { height: 390px; }
  .projects-selection__strip img { height: 300px; }
  .projects-perspective__grid, .projects-details__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7%; }
  .projects-details img { height: 430px; }
}
@media (max-width: 639px) {
  .projects-hero__actions .button { width: 100%; }
  .projects-cover figcaption { flex-direction: column; align-items: flex-start; gap: 2px; }
  .projects-cover figcaption span { text-align: left; }
  .projects-selection__strip { margin-top: 42px; }
}
