.team-page {
  background: #f8fcff;
}
.site-header nav a.active {
  color: var(--blue);
}
.team-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vw, 10rem) clamp(1.25rem, 7vw, 8rem)
    clamp(4rem, 8vw, 7rem);
  background: linear-gradient(135deg, #fff 0%, #e7f6ff 100%);
}
.team-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image: linear-gradient(
      rgba(27, 117, 187, 0.11) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(27, 117, 187, 0.11) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 55%,
    transparent 100%
  );
}
.team-hero > *:not(.team-hero-grid) {
  position: relative;
  z-index: 1;
}
.team-hero h1 {
  max-width: 800px;
  font-size: clamp(4.1rem, 9vw, 9rem);
  line-height: 0.84;
  color: var(--navy);
}
.team-hero > p:last-of-type {
  max-width: 470px;
  margin: 2.2rem 0 2.1rem;
  color: #4e6d7e;
  font-size: 1.05rem;
  line-height: 1.7;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
}
.hero-scroll span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #afd9ef;
  border-radius: 50%;
  animation: arrowBounce 1.8s ease-in-out infinite;
}
.team-section {
  max-width: 1440px;
  margin: auto;
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3.7rem;
}
.section-heading h2 {
  color: var(--navy);
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 0.9;
}
.section-heading > p {
  width: min(320px, 100%);
  margin: 0;
  color: #638091;
  font-size: 0.83rem;
  line-height: 1.65;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
}
.member-card {
  overflow: hidden;
  border: 1px solid #cfe5f1;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 15px 38px rgba(11, 61, 89, 0.06);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.75, 0.25, 1),
    box-shadow 0.35s ease;
}
.member-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 24px 46px rgba(11, 61, 89, 0.14);
}
.member-photo {
  position: relative;
  height: 330px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #8ec4e2;
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  background: radial-gradient(circle at 30% 20%, #fff 0, transparent 32%),
    linear-gradient(145deg, #d9f2ff, #8dcceb);
}
.member-photo:after {
  content: "IAESTE · METU";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  color: rgba(11, 61, 89, 0.42);
  font-size: 0.54rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.member-photo img {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}
.member-card:hover .member-photo img {
  transform: scale(1.05);
  filter: saturate(1.08);
}
.member-photo img:not([src]) {
  display: none;
}
.member-info {
  padding: 1.4rem 1.45rem 1.55rem;
}
.member-role {
  min-height: 2.2em;
  margin: 0;
  color: var(--blue);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.4;
}
.member-info h3 {
  margin: 0.55rem 0 1.35rem;
  color: var(--navy);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.055em;
}
.member-links {
  display: flex;
  gap: 0.55rem;
}
.social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 2.35rem;
  height: 2.35rem;
  overflow: hidden;
  border-radius: 50%;
  background: #e9f6fd;
  color: var(--navy);
  transition:
    width 0.28s cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.social-link svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
.social-link span {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  font-size: 0.66rem;
  font-weight: 700;
  transition:
    max-width 0.28s ease,
    opacity 0.2s ease;
}
.social-link:hover,
.social-link:focus-visible {
  width: 6.75rem;
  border-radius: 99px;
  transform: translateY(-3px);
  color: #fff;
}
.social-link:hover span,
.social-link:focus-visible span {
  max-width: 4rem;
  opacity: 1;
}
.linkedin:hover,
.linkedin:focus-visible {
  background: #0a66c2;
}
.mail:hover,
.mail:focus-visible {
  background: var(--blue);
}
@keyframes arrowBounce {
  50% {
    transform: translateY(5px);
  }
}
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .member-photo {
    height: 300px;
  }
}
@media (max-width: 560px) {
  .team-hero {
    padding-top: 5rem;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .member-photo {
    height: 360px;
  }
  .section-heading {
    margin-bottom: 2.4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .member-card,
  .member-photo img,
  .social-link,
  .social-link span {
    transition: none;
  }
}
.team-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(78vh, 760px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(5rem, 12vw, 10rem) clamp(1.25rem, 7vw, 8rem);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 35, 54, 0.78), rgba(5, 35, 54, 0.16)),
    url("assets/images/team/team_hero.jpg") center 45% / cover no-repeat;
}

.team-hero-grid {
  display: none;
}

.team-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #fff;
}

.team-hero h1 em {
  color: #8ed4f6;
}

.team-hero > p:last-of-type {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin: 2.2rem 0 2.1rem;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.7;
}

.team-hero .hero-scroll {
  position: relative;
  z-index: 1;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: #fff;
  background: rgba(11, 61, 89, 0.35);
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.team-hero .hero-scroll span {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

@media (max-width: 560px) {
  .team-hero {
    min-height: 72vh;
    background-position: 58% center;
  }
}