.library-hero {
  min-height: 720px;
  padding-bottom: 86px;
}

.library-hero .hero-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
}

.library-hero .hero-copy {
  max-width: 720px;
}

.library-pathfinder {
  position: relative;
  padding: 18px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 8%, rgba(var(--accent-rgb), .22), transparent 34%),
    rgba(13, 15, 29, .82);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .07);
  backdrop-filter: blur(22px);
}

.pathfinder-head {
  padding: 12px 12px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.pathfinder-head span {
  color: #8e8d9d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pathfinder-head strong {
  color: var(--green);
  font-size: 11px;
}

.pathfinder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pathfinder-card {
  min-height: 148px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background: rgba(255, 255, 255, .035);
  transition: transform 220ms var(--ease), border-color 220ms ease, background 220ms ease;
}

.pathfinder-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), .42);
  background: rgba(var(--accent-rgb), .09);
}

.pathfinder-card span {
  color: #777687;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.pathfinder-card strong {
  max-width: 180px;
  font-size: 17px;
  line-height: 1.18;
}

.library-main {
  padding: 108px 0;
  color: var(--text);
  background: var(--paper);
}

.library-section + .library-section {
  margin-top: 104px;
}

.library-heading {
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 38px;
}

.library-heading h2 {
  margin: 5px 0 0;
  max-width: 760px;
  color: #171923;
  font-size: clamp(42px, 5.5vw, 74px);
  font-weight: 660;
  letter-spacing: -.065em;
  line-height: .98;
}

.library-heading h2 em {
  color: var(--purple-deep);
  font-family: Georgia, serif;
  font-weight: 400;
}

.library-heading > p {
  margin: 0;
  color: #626473;
}

.featured-path {
  min-height: 430px;
  padding: 44px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: 46px;
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 18%, rgba(67, 227, 161, .18), transparent 32%),
    radial-gradient(circle at 12% 82%, rgba(168, 85, 247, .18), transparent 34%),
    #0d0f1c;
  box-shadow: 0 35px 90px rgba(25, 27, 43, .16);
}

.featured-path::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .18;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .38) .7px, transparent .7px);
  background-size: 23px 23px;
  mask-image: linear-gradient(90deg, black, transparent 86%);
}

.featured-copy,
.featured-visual {
  position: relative;
  z-index: 1;
}

.featured-copy h3 {
  margin: 12px 0 18px;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -.06em;
  line-height: .95;
}

.featured-copy > p:not(.eyebrow) {
  max-width: 560px;
  color: #b8b7c4;
}

.featured-copy .button {
  margin-top: 18px;
}

.featured-visual {
  margin-right: -24%;
  transform: perspective(1100px) rotateY(-7deg) rotateX(2deg);
}

.featured-visual img {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .46);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.library-card {
  min-height: 310px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(8, 9, 18, .11);
  border-radius: 26px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 18px 50px rgba(42, 47, 69, .055);
  transition: transform 220ms var(--ease), border-color 220ms ease, box-shadow 220ms ease;
}

.library-card:hover {
  transform: translateY(-5px);
  border-color: rgba(109, 40, 217, .28);
  box-shadow: 0 26px 68px rgba(42, 47, 69, .1);
}

.library-card .card-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--purple-deep);
  border: 1px solid rgba(109, 40, 217, .15);
  border-radius: 13px;
  background: rgba(109, 40, 217, .06);
  font-size: 10px;
  font-weight: 900;
}

.library-card .card-type {
  margin-top: 34px;
  color: #767785;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.library-card h3 {
  margin: 9px 0 12px;
  color: #171923;
  font-size: 27px;
  letter-spacing: -.04em;
  line-height: 1.04;
}

.library-card p {
  margin: 0 0 24px;
  color: #686a78;
  font-size: 14px;
}

.library-card b {
  margin-top: auto;
  color: var(--purple-deep);
  font-size: 12px;
}

.evidence-strip {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(8, 9, 18, .1);
  border-radius: 26px;
  background: rgba(8, 9, 18, .1);
  overflow: hidden;
}

.evidence-step {
  min-height: 150px;
  padding: 24px;
  color: #171923;
  background: #f8f6f2;
}

.evidence-step span {
  color: var(--purple-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.evidence-step strong {
  margin-top: 34px;
  display: block;
  font-size: 18px;
}

@media (max-width: 920px) {
  .library-hero .hero-layout,
  .featured-path,
  .library-heading {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    margin: 0 -16% -16% 12%;
  }

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

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

@media (max-width: 620px) {
  .library-hero {
    padding-top: 132px;
  }

  .pathfinder-grid,
  .library-grid,
  .evidence-strip {
    grid-template-columns: 1fr;
  }

  .featured-path {
    min-height: auto;
    padding: 30px 24px;
  }

  .featured-visual {
    margin: 8px -42% -18% 8%;
  }

  .library-main {
    padding: 78px 0;
  }

  .library-section + .library-section {
    margin-top: 76px;
  }
}
