.education {
  background: #ece8de;
}

.education-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4vw;
  margin-bottom: 4rem;
}

.education-head .eyebrow {
  grid-column: 1 / -1;
}

.education-head > p:last-child {
  max-width: 32rem;
  margin: .5rem 0 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.degree-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.degree-card {
  display: grid;
  grid-template-columns: 11rem 1fr;
  min-height: 20rem;
  background: var(--paper);
}

.degree-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #fff;
  border-right: 1px solid var(--line);
}

.degree-logo img {
  display: block;
  max-width: 100%;
  max-height: 8rem;
  object-fit: contain;
}

.degree-logo.auckland {
  background: #0c0d48;
}

.degree-logo.auckland img {
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  object-position: 18% center;
}

.degree-logo.vtu img {
  width: 7rem;
  height: 7rem;
}

.degree-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.25rem;
}

.degree-copy > span {
  color: var(--rust);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.degree-copy h3 {
  margin: 1.4rem 0 .9rem;
  font: 600 2rem/1.1 "Playfair Display", serif;
}

.degree-copy p {
  margin: 0 0 .4rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.degree-copy small {
  color: var(--muted);
  font-size: .875rem;
}

.credential-strip {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  color: white;
  background: var(--ink);
}

.credential-strip b {
  color: var(--lime);
  font: 600 2rem "Playfair Display", serif;
}

.credential-strip span {
  font-size: 1rem;
  font-weight: 600;
}

.credential-strip small {
  color: #aaa;
  font-size: .875rem;
}

.story {
  min-height: 52rem;
}

.story:after {
  background: linear-gradient(90deg, rgba(15,15,13,.96) 0%, rgba(15,15,13,.84) 44%, rgba(15,15,13,.14) 78%);
}

.story-overlay {
  width: min(47rem, 92%);
  padding-top: 8vw;
  padding-bottom: 8vw;
}

.story-overlay .family-anchor {
  display: block;
  margin-top: 2.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255,255,255,.25);
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.family-anchor > span {
  display: block;
  margin-bottom: .75rem;
  color: var(--lime);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .17em;
}

.story-overlay .family-anchor p {
  max-width: 40rem;
  margin: 0;
  color: #f1f1ed;
  font: 500 1.28rem/1.6 "Playfair Display", serif;
}

.story-overlay .interest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 1.5rem;
}

.interest-grid span {
  display: flex;
  gap: .8rem;
  align-items: center;
  min-height: 3.3rem;
  color: #e5e5df;
  font-size: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.interest-grid span:nth-child(odd) {
  margin-right: 1.5rem;
}

.interest-grid b {
  color: var(--lime);
  font-size: .7rem;
}

@media (max-width: 1000px) {
  .education-head,
  .degree-grid {
    grid-template-columns: 1fr;
  }

  .education-head > p:last-child {
    margin-left: 0;
  }
}

@media (max-width: 650px) {
  .degree-card {
    grid-template-columns: 7.5rem 1fr;
    min-height: 17rem;
  }

  .degree-logo.auckland img {
    width: 6rem;
    height: 7rem;
  }

  .degree-logo.vtu img {
    width: 5rem;
    height: 5rem;
  }

  .degree-copy {
    padding: 1.5rem;
  }

  .degree-copy h3 {
    font-size: 1.55rem;
  }

  .credential-strip {
    grid-template-columns: 4rem 1fr;
    padding: 1.25rem;
  }

  .credential-strip small {
    grid-column: 2;
  }

  .story {
    min-height: 60rem;
  }

  .story-overlay {
    padding-top: 24rem;
  }

  .story-overlay .interest-grid {
    grid-template-columns: 1fr;
  }

  .interest-grid span:nth-child(odd) {
    margin-right: 0;
  }
}
