/* Company A: the crowd sits on one fixed canvas behind the page; content stacks above it */
.sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main,
.foot {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: var(--col) minmax(0, 1fr);
  gap: 48px;
  min-height: 100svh;
  padding-top: var(--nav-h);
}

.hero__copy {
  align-self: center;
  padding-bottom: 48px;
}

.hero h1 {
  max-width: 12ch;
}

.hero .lede {
  margin-top: 28px;
  max-width: 30ch;
}

.hero__crowd {
  min-height: 520px;
  margin: 24px 0 48px;
}

.team {
  padding-top: clamp(40px, 6vw, 88px);
}

.team__intro .lede {
  margin-top: 20px;
  max-width: 40ch;
}

.members {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 32px;
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.portrait {
  aspect-ratio: 1;
  overflow: hidden;
}

/* The portrait opens out of its dot: the script drives --r from the dot's radius to the full square */
.js-reveal .portrait {
  clip-path: circle(var(--r, 0px) at 50% 50%);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: var(--shot-filter);
}

.member h3 {
  margin-top: 20px;
}

.role {
  margin-top: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
}

.bio {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.more {
  display: none;
}

@media (max-width: 1199px) {
  .members {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding-top: calc(var(--nav-h) + 32px);
  }

  .hero__copy {
    padding-bottom: 0;
  }

  .hero__crowd {
    min-height: 0;
    height: 400px;
    margin: 16px 0 0;
  }

  .members {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phones: a portrait beside the name, the bio below it, folded to three lines */
@media (max-width: 599px) {
  .members {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--rule-ink);
  }

  .member {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-content: start;
    column-gap: 18px;
    padding: 24px 0;
    border-top: 1px solid var(--rule-ink);
  }

  .portrait {
    grid-row: 1 / span 2;
  }

  .member h3 {
    align-self: end;
    margin-top: 0;
  }

  .role {
    align-self: start;
  }

  .bio {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .member.open .bio {
    display: block;
  }

  .more {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-self: start;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--rule-ink);
    text-underline-offset: 0.28em;
    cursor: pointer;
  }

  .more:hover {
    text-decoration-color: var(--accent);
  }
}
