#hero {
  background: #ecf9ff;
  header {
    padding: 4rem;
    text-align: center;
    font-size: clamp(1.1rem, 0.8vw + 0.86rem, 1.5rem);
    h1 {
      margin: 0 0 1.5rem;
      font-size: clamp(2.3rem,1rem + 3vw,4rem);
    }
    p { margin: 0; }
  }
  nav {
    display: grid;
    grid: auto auto / 3fr 1fr;
    gap: 2rem 3rem;
    margin: 0 auto;
    @media (width < 700px){
      grid: auto / 1fr;
    }
  }
}

#metrics {
  display: grid;
  grid: auto auto / 1fr repeat(4, max-content) 1fr;
  gap: 1rem 0;
  padding-top: 0;
  background:
    84% 39% / 25% 25% no-repeat radial-gradient(#ffe3fc, transparent 70%),
    73% 32% / 22% 23% no-repeat radial-gradient(#ffebee, transparent 70%),
    5% 5% / 50% 52% no-repeat radial-gradient(#e4fe98, transparent 70%),
    16% 42% / 40% 40% no-repeat radial-gradient(#a7ffed, transparent 70%),
    80% 80% / 38% 38% no-repeat radial-gradient(#c6fafe, transparent 70%),
    #ecf9ff;
  h2:first-of-type { grid-column: 2; }
  h2 { margin: 0; }
  button {
    padding: .75rem;
    margin: 0 .75rem;
    color: #767d80;
    background: none;
    position: relative;
    border: none;
    font-family: inherit;
    font-size: clamp(1.1rem, .8vw + .86rem, 1.5rem);
    font-weight: 600;
    cursor: pointer;
    transition: text-decoration-color .2s, color .2s, opacity .2s;
    &::after {
      content: "";
      position: absolute;
      inset: 100% .5rem -.3rem .5rem;
      background-color: transparent;
      border-radius: 1rem;
      transition: color .2s;
    }
    &:hover, &.selected {
      color: black;
    }
    &.selected::after {
      background-color: currentcolor;
    }
  }
  nav {
    grid-area: 2 / 1 / 3 / -1;
    display: grid;
    grid: auto-flow 1fr / repeat(auto-fill, minmax(18rem, 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    height: max-content;
    padding: 3rem 0rem;
    transition: translate .3s, height 0s, visibility 0s, opacity .2s .1s;
    will-change: opacity;
    &[hidden]{
      height: 0;
      visibility: hidden;
      opacity: 0;
      translate: -2rem 0;
      transition: translate .3s, height 0s .3s, visibility 0s .3s, opacity .2s;
    }
    &:not([hidden]) ~ [hidden]{
      translate: 2rem 0;
    }
  }
  a.metric {
    min-height: 10rem;
    padding: 2rem;
    color: black;
    background: linear-gradient(to bottom, white, #eaf5fd);
    border-radius: .6rem;
    box-shadow: 0 0 .6rem rgb(0 0 0 / 20%);
    text-decoration: none;
    transition: box-shadow .2s;
    position: relative;
    &.featured {
      box-shadow: 0 0 0 2px #7c3aed, 0 0 .6rem rgb(0 0 0 / 20%);
      &::before {
        content: "\2605 Featured" / "Featured";
        position: absolute;
        top: -.7rem;
        left: 1.5rem;
        padding: .1rem .6rem;
        background: #7c3aed;
        color: white;
        border-radius: 1rem;
        font-size: .7rem;
        font-weight: 700;
      }
      &:hover {
        box-shadow: 0 0 0 2px #7c3aed, 0 0 1rem rgb(0 0 0 / 30%);
      }
    }
    .metric-header {
      display: block;
      height: 3em;
      font-weight: 600;
      line-height: 1.5;
      font-size: clamp(1.2rem, 1vw + .8rem, 1.4rem);
    }
    p:last-child { margin-bottom: 0; }
    &:hover {
      box-shadow: 0 0 1rem rgb(0 0 0 / 30%);
    }
  }
  @media(width < 600px){
    grid: auto auto auto / 1fr 1fr;
    place-items: center;
    h2:nth-of-type(2n){ place-self: start; }
    h2:nth-of-type(2n + 1){ place-self: end; }
    h2:first-of-type { grid-column: auto; }
    nav {
      grid-area: 3 / 1 / 4 / -1;
    }
  }
}

#research {
  h2 {
    padding: 2rem;
    text-align: center;
    margin: 0 auto 4rem;
    font-size: clamp(2rem, 8.3vw + .4rem, 3rem);
  }
}

article.report {
  display: grid;
  grid: auto / 1fr 32rem;
  gap: 3rem;
  background: white;
  border-radius: 1rem;
  h3 {
    margin: 2rem 0 1rem 0;
    font-size: 1.6rem;
  }
  p.report-author {
    margin: 0 0 2rem 0;
    font-weight: 700;
    font-size: 1.1rem;
  }
  ul {
    padding: 0 0 0 1.2rem;
    li {
      padding: 0 0 0 1rem;
      margin: 1rem 0;
    }
  }
  a {
    display: inline-block;
    padding: .6rem 1.2rem;
    margin: 1rem 0 -.5rem;
    color: white;
    background-color: black;
    border-radius: .3rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
    &:hover { opacity: .8; }
  }
  img {
    place-self: start;
    width: min(100%, 32rem);
    height: auto;
    margin: 0 auto;
  }
  @media(width < 1000px){
    grid: auto / 1fr;
    img {
      grid-area: 1 / 1;
    }
  }
}
