.team-purpose {
  padding-bottom: 2rem;
}
.team-purpose-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}
.team-purpose-copy {
  max-width: 760px;
}
.team-purpose-copy .eyebrow,
.team-section .eyebrow {
  margin-bottom: .6rem;
}
.team-purpose-copy h1 {
  margin-bottom: 1rem;
  color: var(--dark);
  font-size: clamp(2rem, 4vw, 3rem);
}
.team-purpose-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.team-purpose-stat {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 22px;
  background: #f8f5e9;
  color: var(--dark);
  text-align: center;
}
.team-purpose-stat i {
  margin-bottom: .5rem;
  color: #9b7d00;
  font-size: 1.5rem;
}
.team-purpose-stat strong {
  font: 800 2.4rem/1.1 Manrope, sans-serif;
}
.team-purpose-stat span {
  margin-top: .35rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}

.team-section-soft {
  background: var(--light);
}
.team-section .section-heading {
  margin-bottom: 2.2rem;
}
.team-section .section-heading p {
  margin-bottom: 0;
}
.team-member-grid {
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
}
.team-member-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 42, 54, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.team-member-visual {
  display: flex;
  height: 250px;
  min-height: 250px;
  overflow: hidden;
  background: #edf1f3;
}
.team-member-photo {
  flex: 0 0 75%;
  overflow: hidden;
}
.team-member-social {
  display: flex;
  flex: 1 1 25%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .5rem;
  background: #f8f5e9;
}
.team-member-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform .35s ease;
}
.team-member-card:hover .team-member-photo img {
  transform: scale(1.035);
}
.team-social-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(155, 125, 0, .35);
  border-radius: 50%;
  background: #fff;
  color: #806500;
  font-size: .95rem;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.team-member-card:hover .team-social-icon {
  border-color: #dfb822;
}
.team-member-info {
  min-height: 100px;
  padding: 1.2rem 1.35rem;
}
.team-member-title {
  display: block;
  margin-bottom: .35rem;
  color: #8b7000;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.team-member-info h3 {
  margin: 0;
  color: var(--dark);
  font-size: 1.1rem;
  letter-spacing: -.02em;
}

.about-gallery {
  background: var(--light);
}
.about-gallery .section-heading {
  margin-bottom: 2rem;
}
.about-gallery-filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 1.75rem;
}
.about-gallery-filter-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.about-gallery-filter {
  display: inline-block;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}
.about-gallery-filter:hover,
.about-gallery-filter-input:checked + .about-gallery-filter {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.about-gallery-filter-input:focus-visible + .about-gallery-filter {
  outline: 3px solid rgba(155, 125, 0, .3);
  outline-offset: 3px;
}
.about-gallery-filter-input#about-gallery-projects:checked ~ .about-gallery-grid > div:not([data-about-gallery-category="projects"]),
.about-gallery-filter-input#about-gallery-installation:checked ~ .about-gallery-grid > div:not([data-about-gallery-category="installation"]) {
  display: none !important;
}
.about-gallery-card {
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 42, 54, .06);
}
.about-gallery-card img {
  display: block;
  width: 100%;
  height: 245px;
  object-fit: cover;
  transition: transform .35s ease;
}
.about-gallery-card:hover img {
  transform: scale(1.035);
}
.about-gallery-card figcaption {
  padding: 1rem 1.2rem;
  color: var(--dark);
  font-size: .95rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .team-purpose-card {
    grid-template-columns: 1fr;
  }
  .team-purpose-stat {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .55rem;
    padding: 1rem;
  }
  .team-purpose-stat i {
    margin: 0;
  }
  .team-purpose-stat span {
    flex-basis: 100%;
    margin-top: 0;
  }
  .team-member-info {
    min-height: 88px;
    padding: 1rem;
  }
  .team-member-visual {
    height: 220px;
    min-height: 220px;
  }
  .team-social-icon {
    width: 34px;
    height: 34px;
    font-size: .85rem;
  }
  .team-member-info h3 {
    font-size: 1rem;
  }
  .about-gallery-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: .6rem;
    scrollbar-width: thin;
  }
  .about-gallery-filter {
    flex: 0 0 auto;
  }
  .about-gallery-card img {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-member-card,
  .team-member-photo img,
  .team-social-icon {
    transition: none;
  }
  .about-gallery-card img,
  .about-gallery-filter {
    transition: none;
  }
}
