@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

.page-masthead h1, .gallery-heading h2, .gallery-card h3, .page-cta h2 {
  font-family: Manrope, var(--body);
}

.page-masthead-media img {
  object-position: 61% 51%;
  filter: none;
}

.page-masthead-media::after {
  background:
    linear-gradient(90deg, #102936 1%, #102936eb 27%, #10293669 57%, #10293610 88%),
    linear-gradient(180deg, #102936ec, transparent 33%, transparent 57%, #102936ab);
}

.page-masthead-inner {
  min-height: clamp(440px, 37vw, 550px);
  padding-bottom: clamp(58px, 5.6vw, 86px);
}

.page-masthead .eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
}

.page-masthead h1 {
  max-width: 20ch;
  margin-block: 13px 14px;
  font-size: clamp(2.25rem, 4.8vw, 4.5rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.028em;
}

.page-masthead h1 span {
  color: var(--brand-green-light);
}

.page-masthead .page-intro {
  max-width: 43ch;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
}

.gallery-hero-action {
  padding-inline: 22px;
  color: var(--dark);
  background: var(--brand-green-light);
}

.gallery-hero-action:hover {
  background: #d4edc7;
}

.page-actions :is(.gallery-hero-action, .gallery-portfolio-action) {
  min-height: 44px;
  padding-inline: 18px;
  font-size: .875rem;
  font-weight: 600;
}

.page-masthead .masthead-credit {
  display: grid;
  gap: 2px;
  bottom: clamp(20px, 3.4vw, 44px);
  padding: 0;
  text-align: right;
  line-height: 1.35;
  background: transparent;
  font-size: .875rem;
}

.masthead-credit strong {
  color: #f8fcff;
  font-size: 1rem;
}

:is(#project-types, #portfolio) {
  padding-block: clamp(29px, 3.3vw, 52px);
}

.gallery-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(17px, 2vw, 28px);
}

.gallery-heading h2 {
  margin-top: 0;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.025em;
  word-spacing: normal;
}

.gallery-heading .gallery-status {
  margin-top: 5px;
  color: var(--muted);
  font-size: .875rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gallery-filters button {
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s, background .2s, border-color .2s;
}

.gallery-filters button:hover {
  border-color: #9db6c7;
  background: var(--canvas);
}

.gallery-filters button[aria-pressed="true"] {
  border-color: var(--dark);
  color: #f8fcff;
  background: var(--dark);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(17px, 3vw, 44px) clamp(14px, 2.3vw, 34px);
}

.gallery-card {
  min-width: 0;
  overflow-wrap: anywhere;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.gallery-card:target {
  outline: 2px solid var(--brand-blue);
  outline-offset: 6px;
  border-radius: 8px;
}

.gallery-card-text {
  display: grid;
  align-items: center;
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid var(--line);
  border-radius: clamp(10px, 1.25vw, 18px);
  background: #f2f7fb;
}

.gallery-card-image {
  position: relative;
}

.gallery-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.73;
  border-radius: clamp(10px, 1.25vw, 18px);
  background: var(--canvas);
  object-fit: cover;
}

.gallery-card-image figcaption {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 2px 7px;
  border-radius: 4px;
  color: #f8fcff;
  background: var(--dark);
  font-size: .6875rem;
}

.gallery-card-copy {
  padding-top: 12px;
}

.gallery-card-text .gallery-card-copy {
  padding-top: 0;
}

.gallery-card .gallery-sector {
  color: #426f36;
  font-size: .8125rem;
  font-weight: 600;
}

.gallery-card h3 {
  margin-block: 4px;
  font-size: clamp(1.125rem, 1.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.gallery-card :is(.gallery-location, .gallery-scope, .gallery-partners) {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}

.gallery-card .gallery-scope, .gallery-card .gallery-partners {
  margin-top: 4px;
}

.gallery-card .gallery-partners {
  font-size: .8125rem;
}

.page-cta h2 {
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.035em;
}

@media (max-width: 760px) {
  .page-masthead-media::after {
    background:
      linear-gradient(90deg, #102936ed, #10293694 56%, #1029362a),
      linear-gradient(180deg, #1029369c, transparent 27%, transparent 51%, #102936c9);
  }

  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-masthead-inner {
    min-height: 435px;
    padding-block: calc(var(--header-height) + 18px) 80px;
  }

  .page-masthead h1 {
    font-size: clamp(2rem, 8.8vw, 2.75rem);
  }

  .page-masthead .page-intro {
    max-width: 32ch;
  }

  .page-masthead .masthead-credit {
    bottom: 15px;
    font-size: .75rem;
  }

  .masthead-credit strong {
    font-size: .875rem;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-card:not(.gallery-card-text) {
    display: grid;
    grid-template-columns: 33% minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .gallery-card img {
    aspect-ratio: 1.38;
  }

  .gallery-card-copy {
    padding-top: 0;
  }

  .gallery-card h3 {
    font-size: clamp(1.125rem, 4.5vw, 1.425rem);
  }
}
