.nav__menu a.is-active {
  color: var(--teal);
}

.references-page {
  background: #fff;
  color: #26384c;
}

.projects-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  background-image: url("../images/optimized/inner-page-building-banner-right.webp");
  background-size: cover;
  background-position: center center;
}

.projects-hero__inner {
  width: var(--content-width);
  margin: 0 auto;
}

.projects-hero h1 {
  margin: 0;
  color: #008e9f;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 1px;
  animation: projectsTitleIn .78s ease both;
}

.featured-carousel {
  width: var(--content-width);
  margin: 62px auto 88px;
}

.featured-carousel__viewport {
  position: relative;
}

.featured-project {
  min-height: 350px;
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr) 220px;
  overflow: hidden;
  border-radius: 10px;
  background: #dff5f7;
  box-shadow: 0 18px 50px rgba(25, 55, 72, .12);
  transition: box-shadow .3s ease, transform .3s ease;
}

.featured-project:not(.is-active) {
  display: none;
}

.featured-project.is-active {
  animation: featuredIn .62s ease both;
}

.featured-project:hover {
  box-shadow: 0 26px 62px rgba(25, 55, 72, .16);
  transform: translateY(-3px);
}

.featured-project > img {
  width: 100%;
  /* Let text/metrics set the card height, not the source image's aspect ratio. */
  height: 0;
  min-height: 100%;
  object-fit: cover;
  transition: transform .8s ease, filter .35s ease;
}

.featured-project:hover > img {
  filter: saturate(1.06);
  transform: scale(1.035);
}

.featured-project__copy {
  padding: 44px 28px 34px;
}

.featured-project__copy span {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .62);
  color: #48aeb7;
  font-size: 12px;
  font-weight: 700;
}

.featured-project__copy h2 {
  margin: 0 0 24px;
  color: #26384c;
  font-size: 32px;
  line-height: 1.14;
  font-weight: 800;
}

.featured-project__copy p {
  margin: 0 0 24px;
  color: #69798a;
  font-size: 15px;
  line-height: 1.75;
}

.featured-project__copy a,
.featured-project__copy button,
.project-card a,
.project-card .news-read-more,
.project-card .project-read-more {
  color: var(--teal);
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  text-align: left;
  cursor: pointer;
  transition: transform .25s ease, color .25s ease;
}

.featured-project__copy a:hover,
.featured-project__copy button:hover,
.project-card a:hover {
  color: #007f8f;
  transform: translateX(4px);
}

.news-featured__copy a.is-disabled,
.project-card a.is-disabled {
  cursor: default;
}

.news-featured__copy a.is-disabled:hover,
.project-card a.is-disabled:hover {
  color: var(--teal);
  transform: none;
}

.project-card .news-read-more:focus-visible,
.project-card .project-read-more:focus-visible,
.featured-project__copy button:focus-visible {
  outline: 2px solid rgba(0, 152, 168, .45);
  outline-offset: 4px;
}

.featured-carousel__controls {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.featured-carousel__arrow {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(0, 152, 168, .24);
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
  font-size: 18px;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.featured-carousel__arrow:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

.featured-carousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-carousel__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(0, 152, 168, .5);
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.featured-carousel__dots button.is-active {
  width: 26px;
  background: var(--teal);
}

.featured-project__metrics {
  padding: 34px 24px 30px 0;
  display: grid;
  align-content: start;
  gap: 22px;
}

.featured-project__metrics article {
  position: relative;
  min-width: 0;
  padding-left: 0;
  color: #6f8191;
}

/* Reserve icon space only for metrics that actually render an icon. */
.featured-project__metrics article:has(> img) {
  padding-left: 66px;
}

.featured-project__metrics img {
  position: absolute;
  left: 0;
  top: -4px;
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  object-fit: contain;
  transition: transform .3s ease, box-shadow .3s ease;
}

.featured-project__metrics article:hover img {
  box-shadow: 0 10px 18px rgba(0, 152, 168, .13);
  transform: translateY(-2px) scale(1.06);
}

.featured-project__metrics b {
  display: block;
  color: var(--teal);
  font-size: 20px;
  line-height: 1.2;
}

.featured-project__metrics small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
}

.projects-list {
  width: var(--content-width);
  margin: 0 auto 74px;
}

.projects-toolbar {
  margin-bottom: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.project-filters {
  position: relative;
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.project-filters button {
  position: relative;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  color: #8f98a5;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: color .25s ease, transform .25s ease;
}

.project-filters button:hover {
  color: var(--teal);
  transform: translateY(-1px);
}

.project-filters button.is-active {
  color: #26384c;
}

.project-filters button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--teal);
  animation: filterUnderline .28s ease both;
}

.projects-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8f98a5;
  font-size: 12px;
  white-space: nowrap;
}

.projects-count strong {
  color: var(--teal);
  font-size: 17px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  transition: opacity .18s ease, transform .18s ease;
}

.project-grid.is-switching {
  opacity: .42;
  transform: translateY(8px);
}

.project-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 15px 34px rgba(27, 47, 63, .1);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .28s ease, transform .28s ease, box-shadow .25s ease;
  animation: projectCardIn .52s ease both;
  animation-delay: var(--card-delay, 0ms);
}

.project-card.is-hidden {
  display: none;
}

.project-card.is-entering {
  animation: projectCardIn .52s cubic-bezier(.2, .78, .25, 1) both;
  animation-delay: var(--card-delay, 0ms);
}

.project-card.is-leaving {
  opacity: 0;
  transform: translateY(12px) scale(.985);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(27, 47, 63, .14);
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  background: #c7c7c7;
  transition: transform .6s ease, filter .35s ease;
}

.project-card:hover img {
  filter: saturate(1.08);
  transform: scale(1.045);
}

.project-card__body {
  padding: 17px 18px 24px;
}

.project-card p {
  margin: 0 0 18px;
  color: #7a8795;
  font-size: 11px;
}

.project-card p::first-letter {
  color: inherit;
}

.project-card h2 {
  margin: 0 0 19px;
  color: #26384c;
  font-size: 19px;
  line-height: 1.22;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.project-card span {
  display: block;
  min-height: 76px;
  margin-bottom: 18px;
  color: #69798a;
  font-size: 13px;
  line-height: 1.45;
}

.projects-empty {
  display: none;
  padding: 42px 24px;
  border: 1px dashed rgba(0, 152, 168, .32);
  border-radius: 8px;
  background: #f3fbfc;
  color: #6f7d90;
  font-size: 15px;
  text-align: center;
}

.projects-empty.is-visible {
  display: block;
  animation: projectCardIn .38s ease both;
}

.case-dialog {
  width: min(920px, calc(100% - 40px));
  max-height: min(86vh, 820px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #26384c;
  box-shadow: 0 32px 90px rgba(17, 35, 48, .3);
}

.case-dialog[open] {
  display: grid;
  grid-template-columns: minmax(280px, 38%) 1fr;
  animation: caseDialogIn .3s ease both;
}

.case-dialog::backdrop {
  background: rgba(16, 31, 43, .64);
  backdrop-filter: blur(5px);
}

.case-dialog__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #26384c;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.case-dialog__image-wrap {
  min-height: 100%;
  background: #e7eff1;
}

.case-dialog__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-dialog__content {
  padding: 48px 48px 44px;
}

.case-dialog__category {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  background: #e5f7f8;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.case-dialog h2 {
  margin: 0 44px 24px 0;
  font-size: 30px;
  line-height: 1.18;
}

.case-dialog__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-bottom: 24px;
}

.case-dialog__fact small {
  display: block;
  margin-bottom: 3px;
  color: #8a97a4;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.case-dialog__fact strong {
  font-size: 13px;
  line-height: 1.4;
}

.case-dialog__result {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--teal);
  background: #f1fafb;
  color: #3d5968;
  font-size: 14px;
  line-height: 1.6;
}

.case-dialog__description p {
  margin: 0 0 14px;
  color: #657687;
  font-size: 14px;
  line-height: 1.75;
}

body.has-dialog {
  overflow: hidden;
}

.projects-cta {
  width: var(--content-width);
  min-height: 128px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  padding: 0 44px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(222, 247, 250, .96) 0%, rgba(222, 247, 250, .78) 62%, rgba(222, 247, 250, .2) 100%),
    url("../images/optimized/v52_7-blueprint.webp");
  background-size: cover;
  background-position: center right;
}

.projects-cta h2 {
  margin: 0;
  color: #26384c;
  font-size: 34px;
  line-height: 1.14;
  font-weight: 800;
}

@keyframes projectsTitleIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes featuredIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes filterUnderline {
  from {
    opacity: 0;
    transform: scaleX(.2);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes projectCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes caseDialogIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .projects-hero h1,
  .featured-project,
  .project-card,
  .project-card.is-entering,
  .projects-empty.is-visible {
    animation: none;
  }

  .featured-project,
  .featured-project > img,
  .project-card,
  .project-card img,
  .project-grid,
  .project-filters button,
  .featured-project__copy a,
  .featured-project__copy button,
  .project-card a {
    transition: none;
  }
}

@media (max-width: 980px) {
  .projects-hero {
    min-height: 340px;
  }

  .projects-hero__inner,
  .featured-carousel,
  .projects-list,
  .projects-cta {
    width: calc(100% - 48px);
  }

  .featured-project {
    grid-template-columns: 1fr;
  }

  .featured-project > img {
    height: 300px;
    min-height: 0;
  }

  .featured-project__metrics {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    padding: 0 28px 34px;
    gap: 20px;
  }

  .projects-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-dialog[open] {
    display: block;
  }

  .case-dialog__image-wrap {
    height: 280px;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .projects-hero {
    min-height: 280px;
    background-position: 68% center;
  }

  .projects-hero__inner,
  .featured-carousel,
  .projects-list,
  .projects-cta {
    width: calc(100% - 36px);
  }

  .projects-hero h1 {
    font-size: 40px;
  }

  .featured-carousel {
    margin-top: 40px;
    margin-bottom: 54px;
  }

  .featured-project__copy {
    padding: 30px 22px 26px;
  }

  .featured-project__copy h2 {
    font-size: 26px;
  }

  .featured-project__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 22px 26px;
    gap: 18px 16px;
  }

  .featured-project > img {
    height: 230px;
  }

  .featured-project__metrics article {
    padding-left: 0;
  }

  .project-filters {
    gap: 22px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .projects-cta {
    padding: 0 26px;
  }

  .projects-cta h2 {
    font-size: 26px;
  }

  .case-dialog {
    width: calc(100% - 24px);
    max-height: 92vh;
  }

  .case-dialog__image-wrap {
    height: 210px;
  }

  .case-dialog__content {
    padding: 30px 22px 28px;
  }

  .case-dialog h2 {
    font-size: 25px;
  }

  .case-dialog__facts {
    grid-template-columns: 1fr;
  }
}

/* A balanced closing invitation, aligned with the references content. */
.projects-cta {min-height:180px;margin:32px auto 56px;padding:36px 42px;justify-content:space-between;gap:32px;border:1px solid #d2e9ed;border-radius:16px;background:linear-gradient(115deg,#eaf8fa,#f7fbfc);}
.projects-cta .references-cta__copy {max-width:650px;min-width:0;}
.projects-cta h2 {font-size:clamp(25px,2.5vw,34px);line-height:1.25;font-weight:700;text-wrap:balance;}
.projects-cta p {margin:14px 0 0;color:#617887;font-size:15px;line-height:1.6;}
.projects-cta .btn {flex-shrink:0;gap:14px;min-width:150px;}
@media(max-width:700px){.projects-cta{flex-direction:column;align-items:flex-start;padding:28px 24px;gap:24px;margin-bottom:36px;min-height:0;}.projects-cta h2{font-size:26px;}}

/* Use the news dialog's side-by-side photo and details layout. */
#case-dialog {width:min(1280px,calc(100% - 40px));max-height:92vh;overflow-y:auto;overflow-x:hidden;}
#case-dialog[open] {display:grid;grid-template-columns:minmax(0,52%) minmax(0,48%);}
#case-dialog .case-dialog__image-wrap {position:sticky;top:0;align-self:start;display:flex;align-items:center;justify-content:center;min-height:0;height:92vh;max-height:920px;padding:16px;background:#182b38;}
#case-dialog .case-dialog__image {display:block;width:100%;height:100%;object-fit:contain;}
#case-dialog .case-dialog__content {min-width:0;padding:48px 36px 40px;}
#case-dialog .case-dialog__close {box-shadow:0 2px 12px #102b3926;}
@media(max-width:800px){#case-dialog{width:calc(100% - 24px);}#case-dialog[open]{display:block;}#case-dialog .case-dialog__image-wrap{position:relative;height:auto;max-height:none;padding:12px;}#case-dialog .case-dialog__image{height:auto;max-height:55vh;}#case-dialog .case-dialog__content{padding:28px 22px;}}

.projects-toolbar:has(.references-toolbar__options) {flex-direction:row;flex-wrap:nowrap;align-items:baseline;gap:22px;}
.projects-toolbar:has(.references-toolbar__options) .project-filters {flex:1;min-width:0;flex-wrap:nowrap;align-items:baseline;gap:clamp(14px,2vw,28px);overflow-x:auto;}
.projects-toolbar:has(.references-toolbar__options) .project-filters button {flex-shrink:0;white-space:nowrap;}
.references-toolbar__options {display:flex;align-items:baseline;justify-content:flex-end;gap:12px;flex-wrap:nowrap;flex-shrink:0;}
.references-sort {display:inline-flex;align-items:center;gap:5px;color:#8f98a5;font-size:12px;white-space:nowrap;}
.references-sort select {min-width:82px;max-width:100%;border:0;background:transparent;color:var(--teal);font:inherit;font-weight:800;cursor:pointer;padding:0;outline:none;}
.references-sort select:focus-visible {box-shadow:0 2px 0 var(--teal);}
@media(max-width:640px){.projects-toolbar:has(.references-toolbar__options){gap:14px;}.references-toolbar__options{gap:8px;}.references-toolbar__options .projects-count{display:none;}}
