.projects-header .header__inner {
  height: auto;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.projects-header .header__nav {
  display: flex;
  position: static;
  width: auto;
  height: auto;
  background: transparent;
  flex-direction: row;
  justify-content: flex-end;
  gap: 24px;
}

.projects-header .header__nav-link {
  font-size: 0.85rem;
}

.projects-header .header__nav-link--cta {
  padding: 8px 18px;
  border-radius: 4px;
}

.portfolio-hero {
  min-height: 400px;
  padding: 150px 24px 64px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #172a42;
  background-image: linear-gradient(rgba(91, 207, 176, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 207, 176, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.portfolio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, #172a42 5%, rgba(23, 42, 66, 0.96) 50%, rgba(23, 42, 66, 0.62));
}

.portfolio-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.portfolio-hero__eyebrow,
.portfolio-cta__eyebrow {
  color: #71dfbf;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.portfolio-hero h1 {
  max-width: 780px;
  font-size: 3rem;
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 20px;
}

.portfolio-hero__lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 2;
}

.portfolio-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-bottom: 6px;
  color: #fff;
  border-bottom: 1px solid #71dfbf;
  font-size: 0.9rem;
  font-weight: 700;
}

.portfolio-hero__link:hover {
  color: #71dfbf;
}

.portfolio-hero__index {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100% - var(--max-width)) / 2));
  bottom: 32px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
}

.portfolio-intro {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: #f4f7f5;
  text-align: center;
}

.portfolio-intro p {
  color: #26384b;
  font-size: 0.82rem;
  font-weight: 700;
}

.portfolio-intro span {
  padding: 0 10px;
  color: #0b876a;
}

.portfolio-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px 72px;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: 48px;
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}

.case-study__meta {
  padding-top: 8px;
}

.case-study__number {
  color: #0b876a;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
}

.case-study__state {
  display: inline-flex;
  margin-top: 14px;
  padding: 4px 8px;
  color: #475569;
  background: #edf1f3;
  font-size: 0.7rem;
  font-weight: 700;
}

.case-study__state--open {
  color: #08664f;
  background: #d9f2e9;
}

.case-study__state--progress {
  color: #805b12;
  background: #fff0c5;
}

.case-study__content h2 {
  margin-bottom: 12px;
  color: #172a42;
  font-size: 1.55rem;
  line-height: 1.5;
  font-weight: 900;
}

.case-study__summary {
  margin-bottom: 14px;
  color: #26384b;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.9;
}

.case-study__content > p:not(.case-study__summary):not(.case-study__note) {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.95;
}

.case-study__points {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.case-study__points li {
  position: relative;
  padding-left: 20px;
  color: #34465a;
  font-size: 0.85rem;
  line-height: 1.75;
}

.case-study__points li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  background: #0b876a;
}

.case-study__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.case-study__tags span {
  padding: 4px 9px;
  color: #354b5d;
  background: #edf3f2;
  font-size: 0.72rem;
  font-weight: 600;
}

.case-study__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #08785d;
  font-size: 0.86rem;
  font-weight: 700;
}

.case-study__link:hover {
  color: #075b48;
}

.case-study__note {
  margin-top: 20px;
  padding: 12px 16px;
  border-left: 3px solid #d5a33b;
  color: #55441e;
  background: #fff7e3;
  font-size: 0.82rem;
  line-height: 1.8;
}

.portfolio-cta {
  padding: 64px 24px;
  color: #fff;
  background: #263d4d;
}

.portfolio-cta__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.portfolio-cta__eyebrow {
  margin-bottom: 10px;
}

.portfolio-cta h2 {
  margin-bottom: 12px;
  font-size: 1.7rem;
  line-height: 1.5;
  font-weight: 900;
}

.portfolio-cta__inner > p:not(.portfolio-cta__eyebrow) {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.portfolio-cta .btn {
  border-radius: 4px;
}

.portfolio-footer {
  margin-top: 0;
}

.portfolio-footer .footer__bottom {
  border-top: 0;
  padding-top: 0;
}

.portfolio-footer .footer__bottom a {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767px) {
  .projects-header .header__inner {
    gap: 8px 16px;
  }

  .projects-header .header__logo-img {
    height: 28px;
  }

  .projects-header .header__nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .projects-header .header__nav-link {
    font-size: 0.78rem;
  }

  .projects-header .header__nav-link--cta {
    padding: 6px 12px;
  }

  .portfolio-hero {
    min-height: 370px;
    padding: 150px 24px 54px;
  }

  .portfolio-hero h1 {
    font-size: 2.25rem;
  }

  .portfolio-hero__lead {
    font-size: 0.9rem;
  }

  .portfolio-desktop-only {
    display: none;
  }

  .portfolio-hero__index {
    right: 24px;
    bottom: 18px;
  }

  .portfolio-intro p {
    font-size: 0.72rem;
    line-height: 1.9;
  }

  .portfolio-intro span {
    padding: 0 4px;
  }

  .portfolio-list {
    padding: 0 24px 48px;
  }

  .case-study {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 36px 0;
  }

  .case-study__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .case-study__state {
    margin-top: 0;
    flex-shrink: 0;
  }

  .case-study__content h2 {
    font-size: 1.3rem;
  }

  .portfolio-cta {
    padding: 48px 24px;
  }

  .portfolio-cta h2 {
    font-size: 1.4rem;
  }
}
