/* –––––––– HERO –––––– */

section.hero {
  background-color: var(--color-primary);
  overflow: clip;
  position: relative;
  isolation: isolate;
}
section.hero .curve {
  position: absolute;
  top: -5rem;
  left: -3rem;
  transform: rotate(-7deg);
  z-index: -1;
}
section.hero > img:not(.curve) {
  position: absolute;
  bottom: -250px;
  right: -250px;
  transform: rotate(-153deg);
  z-index: -1;
}
section.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;

  color: var(--color-white);
}
section.hero .container h1 {
  text-align: center;
  margin-top: 50px;
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: 1;
}
section.hero .container p {
  margin: 1rem;
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1;
  text-align: center;
}
section.hero .container ul {
  --circle-size: 280px;

  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, var(--circle-size));
  gap: 1rem;
}
section.hero .container ul li {
  display: grid;
  grid-template-rows: subgrid;

  border-radius: 50%;
  aspect-ratio: 1/1;
  width: var(--circle-size);
  height: var(--circle-size);

  position: relative;
  overflow: clip;
  cursor: pointer;
}
section.hero .container ul li > * {
  grid-area: 1 / 1;
}
section.hero .container ul li > img {
  grid-row: span 3;
  width: 100%;
  height: var(--circle-size);
  object-fit: cover;
  object-position: center;

  transition: transform 0.3s ease;
}
section.hero .container ul li a {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  background-color: hsla(38, 94%, 59%, 0.9);
}
section.hero .container ul li a > span {
  display: none;
}
@media (hover:hover) {
  section.hero .container ul li:hover img {
    transform: scale(1.05);
  }
}

section.hero .container ul li div {
  display: grid;
  grid-template-rows: 1fr 4fr 1fr;
  justify-items: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
section.hero .container ul li div h2 {
  align-self: center;
  justify-self: center;
  grid-row: 2;

  padding-inline: 1rem;
  text-wrap: balance;

  text-align: center;
  font-weight: 600;
  font-size: var(--text-lg);
}

section.hero .container ul li div svg {
  grid-row: 3;
}

@media screen and (max-width: 1370px) {
  section.hero .container ul {
    --circle-size: 300px;
  }
}

@media screen and (max-width: 1280px) {
  section.hero .container ul {
    --circle-size: 260px;
  }
}
@media screen and (max-width: 1024px) {
  section.hero .container ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 768px) {
  section.hero .curve {
    width: 50%;
  }
}
@media screen and (max-width: 640px) {
  section.hero .container ul {
    grid-template-columns: 1fr;
  }
  section.hero .curve {
    top: 0;
    left: -1rem;
  }
}