.team-page {
  background: var(--ink);
}

.team-hero {
  position: relative;
  padding: clamp(96px, 12vw, 152px) 0 clamp(72px, 10vw, 116px);
  overflow: hidden;
}

.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background:
    linear-gradient(120deg, rgba(64, 152, 249, 0.16), transparent 38%),
    radial-gradient(circle at 82% 16%, rgba(233, 178, 109, 0.18), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
}

.team-hero .container {
  position: relative;
  max-width: 920px;
  text-align: center;
}

.team-hero h1 {
  margin: 0 auto 24px;
  max-width: 840px;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: 0;
}

.team-hero .lead {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.74);
}

.team-roster {
  padding: clamp(72px, 10vw, 128px) 0 clamp(96px, 12vw, 156px);
  background: var(--ink);
}

.section-kicker {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-kicker .lead {
  margin-top: 18px;
  color: var(--muted);
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.member-card {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.member-photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(150deg, rgba(233, 178, 109, 0.3), transparent 35%),
    linear-gradient(315deg, rgba(64, 152, 249, 0.28), transparent 42%),
    #252733;
}

.member-photo::before {
  content: attr(data-initials);
  position: absolute;
  right: 28px;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.13);
  font-size: clamp(72px, 12vw, 144px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: 0;
}

.member-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(23, 24, 32, 0.78), transparent);
}

.leader-card .member-photo {
  min-height: 0;
  aspect-ratio: 1200 / 931;
}

.member-copy {
  display: grid;
  gap: 12px;
}

.member-copy h2,
.member-copy h3 {
  margin: 0;
  color: var(--paper);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.member-copy h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.member-copy h3 {
  font-size: 24px;
}

.member-role {
  margin: 0;
  color: var(--gold);
  font-size: 15px;
  line-height: 1.5;
}

.member-copy p:not(.member-role) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.roster-divider {
  margin: clamp(64px, 8vw, 104px) 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: none;
  margin-inline: auto;
}

.support-grid .member-card {
  padding-bottom: 10px;
}

.support-grid .member-photo {
  min-height: 0;
  aspect-ratio: 293 / 151;
  border-radius: 16px;
}

.careers-section {
  padding: 112px 0 96px;
  color: var(--ink);
  background: #f5f5f7;
}

.careers-intro {
  max-width: 620px;
  margin: 0 auto 64px;
  text-align: center;
}

.careers-section .eyebrow {
  margin-bottom: 16px;
  color: var(--gold);
  text-align: center;
}

.careers-section .section-title {
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 38px);
  line-height: 1.2;
}

.careers-section .lead {
  margin-top: 16px;
  color: var(--muted-dark);
  font-size: 20px;
  line-height: 1.45;
}

.job-list {
  display: grid;
  gap: 24px;
  max-width: 1288px;
  margin-inline: auto;
}

.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 132px;
  padding: 32px;
  border: 1px solid #e7e8e8;
  background: var(--paper);
}

.job-info {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.job-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.job-card h3 {
  margin: 0;
  color: #191f33;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}

.job-badge {
  flex: none;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.job-badge.risk {
  color: #e96a2c;
  background: rgba(233, 106, 44, 0.1);
}

.job-badge.design {
  color: var(--blue);
  background: rgba(64, 152, 249, 0.1);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.job-meta span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
}

.job-meta span::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  opacity: 0.9;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 20px 20px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 20px 20px;
}

.job-location::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M10 11.25a2.08 2.08 0 1 0 0-4.16 2.08 2.08 0 0 0 0 4.16Z'/%3E%3Cpath d='M4.42 8.92c0-3.08 2.5-5.58 5.58-5.58s5.58 2.5 5.58 5.58c0 3.83-4.58 7.74-5.58 7.74S4.42 12.75 4.42 8.92Z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M10 11.25a2.08 2.08 0 1 0 0-4.16 2.08 2.08 0 0 0 0 4.16Z'/%3E%3Cpath d='M4.42 8.92c0-3.08 2.5-5.58 5.58-5.58s5.58 2.5 5.58 5.58c0 3.83-4.58 7.74-5.58 7.74S4.42 12.75 4.42 8.92Z'/%3E%3C/g%3E%3C/svg%3E");
}

.job-salary::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.5' width='15' height='11' rx='2'/%3E%3Cpath d='M6.25 7.5h.01M13.75 12.5h.01M10 12.08a2.08 2.08 0 1 0 0-4.16 2.08 2.08 0 0 0 0 4.16Z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.5' width='15' height='11' rx='2'/%3E%3Cpath d='M6.25 7.5h.01M13.75 12.5h.01M10 12.08a2.08 2.08 0 1 0 0-4.16 2.08 2.08 0 0 0 0 4.16Z'/%3E%3C/g%3E%3C/svg%3E");
}

.job-time::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='6.67'/%3E%3Cpath d='M10 6.67V10l2.08 1.25'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='6.67'/%3E%3Cpath d='M10 6.67V10l2.08 1.25'/%3E%3C/g%3E%3C/svg%3E");
}

.apply-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 204px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid #0a65cc;
  color: #0a65cc;
  background: rgba(10, 101, 204, 0.1);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.apply-button:hover,
.apply-button:focus-visible {
  color: var(--paper);
  background: #0a65cc;
}

.culture-link {
  display: table;
  margin: 72px auto 0;
  color: var(--blue);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1080px) {
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .team-hero {
    padding-top: 72px;
  }

  .team-hero .container {
    text-align: left;
  }

  .leader-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .leader-card .member-photo,
  .support-grid .member-photo {
    min-height: 0;
  }

  .leader-card .member-photo {
    aspect-ratio: 1200 / 931;
  }

  .support-grid .member-photo {
    aspect-ratio: 293 / 151;
  }

  .job-card,
  .job-topline {
    display: grid;
  }

  .job-badge {
    justify-self: start;
  }

  .job-card {
    align-items: start;
  }

  .apply-button {
    width: 100%;
  }
}

/* Asset placement from Figma mockups */
.member-photo {
  background-image: var(--member-image);
  background-size: cover;
  background-position: center;
}

.member-photo::before {
  display: none;
}

.leader-grid .member-card:nth-child(1) .member-photo {
  --member-image: url("assets/difab.png");
  background-position: center 35%;
}

.leader-grid .member-card:nth-child(2) .member-photo {
  --member-image: url("assets/gev.png");
  background-position: center 32%;
}

.support-grid .member-card:nth-child(1) .member-photo {
  --member-image: url("assets/bolg.png");
}

.support-grid .member-card:nth-child(2) .member-photo {
  --member-image: url("assets/ann.png");
}

.support-grid .member-card:nth-child(3) .member-photo {
  --member-image: url("assets/plow.png");
}

.support-grid .member-card:nth-child(4) .member-photo {
  --member-image: url("assets/tijana.png");
}

@media (max-width: 760px) {
  .leader-grid .member-card:nth-child(1) .member-photo,
  .leader-grid .member-card:nth-child(2) .member-photo {
    background-position: center top;
  }

  .support-grid .member-card:nth-child(1) .member-photo {
    background-position: center 42%;
  }

  .support-grid .member-card:nth-child(2) .member-photo,
  .support-grid .member-card:nth-child(3) .member-photo,
  .support-grid .member-card:nth-child(4) .member-photo {
    background-position: center top;
  }
}
