.team-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: start;
  padding: 58px 4vw;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 18%, rgba(213, 163, 42, 0.14), transparent 24%),
    linear-gradient(120deg, #050505, #111 62%, #060606);
}

.team-copy h2 {
  margin: 0 0 18px;
  color: var(--gold2);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 0.92;
  text-align: left;
  text-transform: uppercase;
}

.team-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.team-contact {
  padding: 24px;
  border: 1px solid rgba(213, 163, 42, 0.48);
  border-radius: 14px;
  background: linear-gradient(180deg, #111, #070707);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
}

.team-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.team-tab {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 14px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(213, 163, 42, 0.34);
  border-radius: 10px;
  background: #090909;
  cursor: pointer;
}

.team-tab span {
  color: var(--gold2);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-tab strong {
  font-size: 16px;
}

.team-tab.active {
  color: #050505;
  background: linear-gradient(135deg, var(--gold2), #a06b0b);
  border-color: #fff1a8;
  box-shadow: 0 0 28px rgba(244, 201, 93, 0.35);
}

.team-tab.active span {
  color: #1b1404;
}

.selected-person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  margin: 18px 0;
  padding: 16px;
  border-left: 4px solid var(--gold2);
  background: rgba(213, 163, 42, 0.1);
}

.selected-person span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-person strong {
  color: var(--gold2);
  font-size: 24px;
}

.selected-person em {
  color: #e9e9e9;
  font-style: normal;
  text-align: right;
}

.team-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.team-form label {
  display: grid;
  gap: 8px;
  color: var(--gold2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.team-form input,
.team-form textarea {
  width: 100%;
  border: 1px solid rgba(213, 163, 42, 0.45);
  border-radius: 8px;
  padding: 14px;
  color: var(--text);
  background: #050505;
  font: inherit;
}

.team-form input:focus,
.team-form textarea:focus {
  outline: 2px solid rgba(244, 201, 93, 0.45);
}

.team-form .wide,
.team-form button,
.team-form small {
  grid-column: 1 / -1;
}

.team-form button {
  min-height: 58px;
  border: 0;
  border-radius: 10px;
  color: #050505;
  background: linear-gradient(135deg, var(--gold2), #9f6c0b);
  font-size: 18px;
  font-weight: 1000;
  text-transform: uppercase;
  cursor: pointer;
}

.team-form button span {
  display: block;
  font-size: 12px;
}

.team-form small {
  color: var(--muted);
}

@media (max-width: 900px) {
  .team-section {
    grid-template-columns: 1fr;
  }

  .team-tabs,
  .team-form {
    grid-template-columns: 1fr;
  }

  .selected-person {
    grid-template-columns: 1fr;
  }

  .selected-person em {
    text-align: left;
  }
}

.team-section {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  padding: 24px;
  border-bottom: 0;
  background: transparent;
}

.team-section.is-open,
.team-section:target {
  display: grid;
}

.team-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.76);
  cursor: pointer;
}

.team-modal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 28px;
  width: min(1120px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(213, 163, 42, 0.58);
  border-radius: 16px;
  background:
    radial-gradient(circle at 14% 18%, rgba(213, 163, 42, 0.18), transparent 24%),
    linear-gradient(120deg, #050505, #111 62%, #060606);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.72);
}

.team-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #050505;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold2), #9f6c0b);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

body.team-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .team-section {
    padding: 14px;
  }

  .team-modal {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    padding-top: 58px;
  }
}
