.home-pathways {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 128px) 24px;
  background:
    radial-gradient(circle at 88% 8%, rgba(181, 136, 77, .13), transparent 27%),
    linear-gradient(180deg, #f7f5f0 0%, #eeece5 100%);
  color: #12243a;
}

.home-pathways::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1160px, calc(100% - 48px));
  height: 1px;
  background: rgba(15, 42, 77, .14);
  content: "";
  transform: translateX(-50%);
}

.home-pathways__inner {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.home-pathways__header {
  display: grid;
  margin-bottom: clamp(34px, 5vw, 56px);
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 40px;
}

.home-pathways__eyebrow,
.pathway-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a51b35;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.home-pathways__eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

.home-pathways h2 {
  max-width: 660px;
  margin: 14px 0 0;
  color: #0f2a4d;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.32;
}

.home-pathways__intro {
  margin: 0;
  color: #5b6470;
  font-size: 14px;
  line-height: 2;
}

.home-pathways__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .85fr);
  gap: 18px;
}

.pathway-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 42, 77, .12);
  border-radius: 4px 28px 4px 28px;
  text-decoration: none;
}

.pathway-card--university {
  display: flex;
  min-height: 550px;
  padding: clamp(32px, 5vw, 64px);
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 93% 8%, rgba(225, 181, 122, .22), transparent 28%),
    linear-gradient(145deg, #0a1c32 0%, #12375d 100%);
  color: #fff;
}

.pathway-card--university::after {
  position: absolute;
  right: clamp(-100px, -6vw, -40px);
  bottom: -170px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, .025),
    0 0 0 84px rgba(255, 255, 255, .018);
  content: "";
  pointer-events: none;
}

.pathway-card--university .pathway-card__eyebrow {
  color: #efc98d;
}

.pathway-card__count {
  display: flex;
  margin-top: 56px;
  align-items: baseline;
  gap: 10px;
}

.pathway-card__count strong {
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(76px, 10vw, 126px);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .82;
}

.pathway-card__count span {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 700;
}

.pathway-card--university h3 {
  max-width: 680px;
  margin: 26px 0 14px;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.025em;
  line-height: 1.45;
}

.pathway-card--university p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 1.9;
}

.pathway-card__features {
  display: flex;
  margin: 34px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.pathway-card__features li {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: rgba(255, 255, 255, .8);
  font-size: 10px;
  font-weight: 700;
}

.pathway-card__action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 42px;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.pathway-card__action span {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  place-items: center;
  background: #b92340;
  transition: transform 180ms ease;
}

.pathway-card--university:hover .pathway-card__action span,
.pathway-card--university:focus-visible .pathway-card__action span {
  transform: translateX(4px);
}

.home-pathways__side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
}

.pathway-card--senpai {
  display: flex;
  min-height: 390px;
  padding: clamp(28px, 4vw, 42px);
  flex-direction: column;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 22px 60px rgba(18, 36, 58, .07);
}

.pathway-card--senpai::before {
  position: absolute;
  top: 22px;
  right: 28px;
  color: rgba(165, 27, 53, .1);
  content: "“";
  font-family: Georgia, serif;
  font-size: 110px;
  line-height: 1;
}

.pathway-card--senpai blockquote {
  position: relative;
  z-index: 1;
  margin: 42px 0 26px;
  color: #17263a;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(20px, 2.4vw, 29px);
  font-weight: 600;
  line-height: 1.8;
}

.home-senpai-person {
  display: grid;
  margin-top: auto;
  padding-top: 20px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(15, 42, 77, .1);
}

.home-senpai-person__avatar {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  place-items: center;
  background: #0f2a4d;
  color: #fff;
  font-family: "Noto Serif JP", serif;
}

.home-senpai-person b,
.home-senpai-person small {
  display: block;
}

.home-senpai-person b {
  color: #0f2a4d;
  font-size: 12px;
}

.home-senpai-person small {
  margin-top: 3px;
  overflow: hidden;
  color: #74777b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pathway-card--senpai .pathway-card__action {
  margin-top: 24px;
  color: #a51b35;
}

.pathway-card--support {
  display: grid;
  min-height: 168px;
  padding: 22px 24px;
  align-content: center;
  gap: 15px;
  background:
    radial-gradient(circle at 94% 10%, rgba(255, 255, 255, .35), transparent 30%),
    #d7c5a8;
  color: #12243a;
}

.pathway-card--support header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.pathway-card--support header small {
  color: #70512f;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

.pathway-card--support h3 {
  margin: 0;
  color: #12243a;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.45;
  text-align: right;
}

.pathway-support-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.pathway-support-links a {
  display: grid;
  min-width: 0;
  min-height: 67px;
  padding: 10px 8px;
  align-items: center;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  border: 1px solid rgba(18, 36, 58, .12);
  border-radius: 3px 13px 3px 13px;
  color: #12243a;
  background: rgba(255, 255, 255, .54);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.pathway-support-links a:hover,
.pathway-support-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(165, 27, 53, .28);
  background: rgba(255, 255, 255, .82);
}

.pathway-support-links a > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: #9d2239;
  font-family: "Noto Serif JP", serif;
  font-size: 9px;
  font-weight: 800;
}

.pathway-support-links a:nth-child(2) > span:first-child {
  background: #85653b;
}

.pathway-support-links a:nth-child(3) > span:first-child {
  background: #0f2a4d;
}

.pathway-support-links strong,
.pathway-support-links small {
  display: block;
}

.pathway-support-links strong {
  font-family: "Noto Serif JP", serif;
  font-size: 11px;
  line-height: 1.35;
}

.pathway-support-links small {
  margin-top: 3px;
  overflow: hidden;
  color: #725f49;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .home-pathways__header,
  .home-pathways__grid {
    grid-template-columns: 1fr;
  }

  .home-pathways__header {
    gap: 20px;
  }

  .pathway-card--university {
    min-height: 500px;
  }

}

@media (max-width: 560px) {
  .home-pathways {
    padding-inline: 16px;
  }

  .home-pathways__header {
    margin-bottom: 28px;
  }

  .home-pathways h2 {
    font-size: 36px;
  }

  .pathway-card--university {
    min-height: 480px;
    padding: 30px 24px;
    border-radius: 3px 22px 3px 22px;
  }

  .pathway-card__count {
    margin-top: 44px;
  }

  .pathway-card__count strong {
    font-size: 76px;
  }

  .pathway-card--senpai {
    min-height: 360px;
    padding: 28px 24px;
  }

  .pathway-card--support {
    min-height: 0;
    padding: 21px 18px;
  }

  .pathway-card--support header {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .pathway-card--support h3 {
    font-size: 19px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pathway-card__action span,
  .pathway-support-links a {
    transition: none;
  }
}
