:root {
  --page: #101722;
  --shell: #171c25;
  --panel: #202635;
  --panel-dark: #151b24;
  --line: #303946;
  --line-soft: rgba(127, 199, 255, 0.22);
  --green: #00c80a;
  --green-dark: #008f08;
  --text: #ffffff;
  --muted: #8a909b;
  --soft: #b9c6d4;
  --shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Montserrat, Segoe UI, Arial, sans-serif;
}

body {
  display: grid;
  place-items: center;
  padding: 28px;
}

.team-page {
  width: min(1260px, 100%);
}

.team-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  min-height: min(820px, calc(100vh - 56px));
  padding: 24px 26px 26px;
  border-radius: 10px;
  background: var(--shell);
}

.team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.team-head > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.team-head span {
  color: #7c8490;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: var(--shadow);
}

.team-head strong {
  color: #fff;
  font-size: 29px;
  font-weight: 950;
  line-height: 1;
  text-shadow: var(--shadow);
}

.team-close,
.member-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #fff;
  background: var(--panel);
  font: 950 13px Montserrat, Segoe UI, Arial, sans-serif;
  text-decoration: none;
  text-shadow: var(--shadow);
  cursor: pointer;
}

.team-close {
  min-width: 112px;
  padding: 0 16px;
  border-color: var(--line-soft);
}

.team-close:hover,
.member-link:hover {
  border-color: #465162;
  background: #252c3a;
}

.team-intro {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.team-intro strong {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
  text-shadow: var(--shadow);
}

.team-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.member-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(300px, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.member-art {
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--panel-dark);
}

.member-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.cofounder .member-art img {
  object-fit: contain;
  padding: 18px;
}

.member-info {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 18px;
}

.member-info > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.member-role {
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: var(--shadow);
}

.member-info h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
  text-shadow: var(--shadow);
}

.member-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.member-link {
  flex: 0 0 auto;
  min-width: 132px;
  padding: 0 14px;
  color: #cfe0f1;
  background: #111a24;
}

@media (max-width: 900px) {
  body {
    padding: 16px;
  }

  .team-shell {
    padding: 18px;
  }

  .team-head,
  .member-info {
    align-items: stretch;
    flex-direction: column;
  }

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

  .member-card {
    grid-template-rows: 260px auto;
  }

  .member-art {
    min-height: 260px;
  }

  .team-close,
  .member-link {
    width: 100%;
  }
}
