/* ==========================================================
   IMISI FOUNDATION — INVOLVEMENT NEXT
   05 / The Next Step
   ========================================================== */

.involvement-next {
  --teal: #0a6970;
  --green: #0c9268;
  --lime: #bed639;
  --bone: #f4f1e8;
  --charcoal: #3f3f3f;

  position: relative;

  min-height: 100vh;

  padding: 10vh 6vw 7vh;

  background: var(--bone);
  color: var(--charcoal);

  overflow: hidden;
}

/* ==========================================================
   BACKGROUND
   ========================================================== */

.involvement-next::before {
  content: "";

  position: absolute;

  width: min(65vw, 900px);
  aspect-ratio: 1;

  right: -30%;
  top: -40%;

  border: 1px solid rgba(10, 105, 112, 0.09);

  border-radius: 50%;

  pointer-events: none;
}

.involvement-next::after {
  content: "";

  position: absolute;

  width: min(40vw, 600px);
  aspect-ratio: 1;

  left: -25%;
  bottom: -45%;

  border: 1px solid rgba(12, 146, 104, 0.08);

  border-radius: 50%;

  pointer-events: none;
}

/* ==========================================================
   INNER
   ========================================================== */

.involvement-next__inner {
  position: relative;
  z-index: 2;

  width: min(1500px, 100%);
  min-height: calc(100vh - 17vh);

  margin: auto;

  display: flex;
  flex-direction: column;
}

/* ==========================================================
   HEADER
   ========================================================== */

.involvement-next__header {
  display: flex;
  justify-content: space-between;

  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;

  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.involvement-next__header span:first-child {
  color: var(--teal);
}

.involvement-next__header span:last-child {
  color: rgba(63, 63, 63, 0.4);
}

/* ==========================================================
   MAIN
   ========================================================== */

.involvement-next__main {
  width: min(950px, 100%);

  margin-top: auto;
  margin-bottom: 80px;
}

.involvement-next__number {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  margin-bottom: 28px;

  border: 1px solid rgba(10, 105, 112, 0.25);

  border-radius: 50%;

  font-family: "Manrope", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;

  color: var(--teal);
}

.involvement-next__main h2 {
  margin: 0;

  font-family: "Marcellus", serif;
  font-size: clamp(4.5rem, 9vw, 10rem);

  font-weight: 400;

  line-height: 0.86;

  letter-spacing: -0.05em;
}

.involvement-next__main h2 span {
  color: var(--green);
  font-style: italic;
}

.involvement-next__main p {
  width: min(570px, 100%);

  margin: 35px 0 0;

  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;

  line-height: 1.8;

  color: rgba(63, 63, 63, 0.67);
}

/* ==========================================================
   LINKS
   ========================================================== */

.involvement-next__links {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  border-top: 1px solid rgba(63, 63, 63, 0.16);
  border-bottom: 1px solid rgba(63, 63, 63, 0.16);
}

.involvement-next__link {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 185px;

  padding: 22px 24px;

  border-right: 1px solid rgba(63, 63, 63, 0.16);

  text-decoration: none;

  color: var(--charcoal);

  overflow: hidden;

  transition:
    background 0.4s ease,
    color 0.4s ease;
}

.involvement-next__link:first-child {
  border-left: 1px solid rgba(63, 63, 63, 0.16);
}

.involvement-next__link:last-child {
  border-right: 0;
}

.involvement-next__link > span {
  font-family: "Manrope", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;

  letter-spacing: 0.12em;

  color: rgba(63, 63, 63, 0.4);
}

.involvement-next__link strong {
  margin-top: auto;

  font-family: "Marcellus", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.involvement-next__link em {
  margin-top: 7px;

  font-family: "Manrope", sans-serif;
  font-size: 0.6rem;
  font-style: normal;

  color: rgba(63, 63, 63, 0.45);
}

.involvement-next__link b {
  position: absolute;

  right: 22px;
  bottom: 22px;

  font-size: 1rem;
  font-weight: 400;

  color: var(--teal);

  transition:
    transform 0.35s ease,
    color 0.35s ease;
}

.involvement-next__link::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 3px;

  background: var(--lime);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.45s ease;
}

.involvement-next__link:hover {
  background: var(--teal);
  color: var(--bone);
}

.involvement-next__link:hover > span,
.involvement-next__link:hover em {
  color: rgba(244, 241, 232, 0.5);
}

.involvement-next__link:hover b {
  color: var(--lime);
  transform: translate(5px, -5px);
}

.involvement-next__link:hover::after {
  transform: scaleX(1);
}

/* ==========================================================
   CYCLE
   ========================================================== */

.involvement-next__cycle {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-top: 28px;

  font-family: "Manrope", sans-serif;
  font-size: 0.57rem;
  font-weight: 700;

  letter-spacing: 0.13em;

  color: rgba(63, 63, 63, 0.38);
}

.involvement-next__cycle-mark {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 1px solid rgba(10, 105, 112, 0.25);

  border-radius: 50%;

  color: var(--teal);

  font-size: 1rem;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 950px) {
  .involvement-next__links {
    grid-template-columns: repeat(2, 1fr);
  }

  .involvement-next__link:nth-child(2) {
    border-right: 0;
  }

  .involvement-next__link:nth-child(3) {
    border-left: 1px solid rgba(63, 63, 63, 0.16);
    border-top: 1px solid rgba(63, 63, 63, 0.16);
  }

  .involvement-next__link:nth-child(4) {
    border-top: 1px solid rgba(63, 63, 63, 0.16);
  }
}

@media (max-width: 600px) {
  .involvement-next {
    min-height: auto;

    padding: 75px 5vw 65px;
  }

  .involvement-next__inner {
    min-height: auto;
  }

  .involvement-next__header span:last-child {
    display: none;
  }

  .involvement-next__main {
    margin-top: 100px;
    margin-bottom: 65px;
  }

  .involvement-next__main h2 {
    font-size: clamp(4rem, 16vw, 7rem);
  }

  .involvement-next__links {
    grid-template-columns: 1fr;
  }

  .involvement-next__link,
  .involvement-next__link:nth-child(2),
  .involvement-next__link:nth-child(3),
  .involvement-next__link:nth-child(4) {
    min-height: 145px;

    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(63, 63, 63, 0.16);
  }

  .involvement-next__link:first-child {
    border-top: 0;
  }

  .involvement-next__cycle {
    align-items: flex-start;

    line-height: 1.7;
  }
}
