/*
 * Who we are page. Plain sections in place of the theme rows: nothing fades in on scroll and
 * the technology list is a grid instead of a slider, so all text is always visible.
 */

.mq-who {
  color: #000000;
}

.mq-who .section-eyebrow {
  margin: 0 0 8px;
  text-align: center;
}

.mq-who h1,
.mq-who h2 {
  margin: 0 0 24px;
  text-align: center;
  color: #000000;
}

/* ---- Intro */
.mq-who__intro {
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 0 64px;
}

.mq-who__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
}

.mq-who__columns p {
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 30px;
}

/* The second paragraph sits lower, as in the original layout. */
.mq-who__columns p + p {
  margin-top: 90px;
}

/* ---- Technology */
.mq-tech,
.mq-team,
.mq-timeline {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 0 0;
}

.mq-tech__lead {
  max-width: 660px;
  margin: 0 auto;
  padding: 0;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
}

.mq-tech__list,
.mq-team__list,
.mq-timeline__list,
.mq-timeline__year ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mq-tech__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.mq-tech__item,
.mq-team__member,
.mq-timeline__year,
.mq-timeline__year li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mq-tech__item {
  text-align: center;
}

.mq-tech__item img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto 16px;
}

.mq-who .mq-tech__item h3 {
  margin: 0;
  font-family: Avenir-Medium;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: #000000;
}

/* ---- Team */
.mq-team__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.mq-team__member {
  display: flex;
  flex-direction: column;
}

.mq-team__member img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.mq-who .mq-team__member h3 {
  order: 0;
  margin: 20px 0 8px;
  font-family: Avenir-Medium;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  color: #000000;
}

.mq-team__member img { order: -1; }
.mq-team__summary { order: 1; }
.mq-team__bio { order: 2; }

.mq-team__summary,
.mq-team__bio p {
  margin: 0 0 16px;
  padding: 0;
  font-size: 16px;
  line-height: 26px;
}

.mq-team__bio summary {
  cursor: pointer;
  font-family: Avenir-Medium;
  color: #1b6f6b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mq-team__bio[open] summary {
  margin-bottom: 12px;
}

.mq-team__bio a {
  color: #1b6f6b;
}

/* ---- Timeline: a line down the left, a dot per year, months and events beside it. */
.mq-timeline {
  padding-bottom: 96px;
}

.mq-timeline__list {
  position: relative;
  max-width: 820px;
  margin: 48px auto 0;
  padding-left: 40px;
  border-left: 2px solid #979797;
}

.mq-timeline__year {
  position: relative;
}

.mq-timeline__year + .mq-timeline__year {
  margin-top: 48px;
}

.mq-timeline__year::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -52px;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border: 2px solid #1b6f6b;
  border-radius: 50%;
}

.mq-who .mq-timeline__year h3 {
  margin: 0 0 16px;
  font-family: Avenir-Medium;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: #000000;
}

.mq-timeline__year li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 10px 0;
  font-size: 18px;
  line-height: 28px;
  border-top: 1px solid #e6e6e6;
}

.mq-timeline__month {
  font-size: 13px;
  letter-spacing: 0.3em;
  line-height: 28px;
  text-transform: uppercase;
  color: #404040;
}

@media only screen and (max-width: 999px) {
  .mq-who__intro {
    padding: 56px 0 40px;
  }

  .mq-who__columns {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
  }

  .mq-who__columns p + p {
    margin-top: 0;
  }

  .mq-tech,
  .mq-team,
  .mq-timeline {
    padding-top: 64px;
  }

  .mq-tech__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .mq-team__list {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media only screen and (max-width: 690px) {

  .mq-timeline__list {
    padding-left: 28px;
  }

  .mq-timeline__year::before {
    left: -40px;
  }

  .mq-timeline__year li {
    grid-template-columns: 1fr;
    gap: 0;
    font-size: 17px;
  }
}
