section {
  padding: 0 8rem 8rem 8rem;
}

#hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding-block: 13rem 6rem;
}

#hero h1, #hero h2 {
  width: clamp(33rem, 70%, 66rem);
  text-align: center;
}

#hero h1 {
  color: var(--primary-color);
  text-align: center;
  font-family: Quicksand, sans-serif;
  font-size: 96px;
  font-style: normal;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -4.8px;
}

#hero h2 {
  color: var(--primary-color);
  text-align: center;
  font-family: Urbanist, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
}

#last-articles h3 {
  font-family: Quicksand, sans-serif;
  font-size: 64px;
  font-style: normal;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -3.2px;
  color: var(--primary-color);
}

.scrolling_bar {
  background-color: var(--accent-color);
  padding: 1rem 0;
  width: 100vw;
  display: flex;
  position: relative;
  overflow: hidden;
  margin: 0;
  z-index: 1;
}

.scrolling_bar_content {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.75rem;
  animation: scrolling 20s linear infinite;
  transform: translate3d(0, 0, 0); /* ensures GPU optimization */
  will-change: transform;
  align-items: center;
  justify-content: center;
}

.scrolling_bar_content li {
  color: white;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  text-align: center;
  font-family: Quicksand, sans-serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%; /* 33.6px */
  letter-spacing: -1.4px;
  display: flex;
  align-items: center;
}


.scrolling_bar_content li::after {
  content: url('/assets/images/ellipse.svg');
  margin-left: 1.75rem;
  line-height: 0;
  display: inline-block;
}

@keyframes scrolling {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
    will-change: transform;
  }

}

.scrolling_bar_content {
  display: flex;
  width: max-content;
}

.splide {
  display: grid;
  grid-template-areas: "figcaption arrows""slider slider";
}

.splide__track {
  grid-area: slider;
}

.splide__arrows {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  grid-area: arrows;
  margin-bottom: 3rem;
}

.splide__arrow {
  position: relative !important;
  top: unset !important;
  transform: unset !important;
  background: none !important;
  border: 1px solid var(--medium-grey) !important;
}

.splide__arrow--next, .splide__arrow--prev {
  right: unset !important;
  left: unset !important;
}

.splide figcaption {
  font-family: Urbanist, sans-serif;
  font-size: 2rem;
  line-height: 1.2; /* 38.4px */
  font-weight: 500;
  max-width: clamp(28rem, 5vw, 31rem);
  grid-area: figcaption;
  margin-bottom: 3rem;
}

#last-articles .splide__slide .article-link {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#last-articles .splide__slide:hover .infos::before {
  transform: translate3d(0, 0, 0);
}

#last-articles .splide__slide:hover .illustration img {
  transform: scale3d(1.1, 1.1, 1); /* reduces GPU processing */
  will-change: transform;
}

#last-articles li > a {
  text-decoration: none;
}

#last-articles .illustration {
  display: flex;
  position: relative;
  height: 30rem;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 2rem;
  overflow: hidden;
  border-radius: 48px;
  border: 1px solid #E8E7E0;
}

#last-articles .illustration img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: -1;
  transition: all .3s;
  transform: scale(1);
translateZ(0); /* ensure smooth GPU animation */
  will-change: transform;
}

#last-articles .infos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--light-grey);
  position: relative;
  overflow: hidden;
}

#last-articles .infos::before {
  content: '';
  position: absolute;
  inset: 0;
  border-left: 1px solid var(--accent-color);
  transform: translate3d(0, 100%, 0); /* simpler CPU operation on GPU */
  will-change: transform;
  transition: all 0.3s;
}

#last-articles .infos time {
  color: var(--smoke-grey);
  font-family: Quicksand, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%; /* 19.2px */
  text-transform: uppercase;
}

#last-articles .infos .article-title {
  color: var(--primary-color);
  font-family: Quicksand, sans-serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%; /* 43.2px */
  letter-spacing: -1.8px;
  transform: translateZ(0); /* ensures GPU rendering improvements */
}

#last-articles .infos .article-summary {
  color: var(--smoke-grey);
  font-family: Urbanist, sans-serif;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
}

.keywords {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  color: var(--light-citron);
}

.keywords span {
  background-color: var(--accent-color);
  color: white;
  border-radius: 6px;
  padding: 4px 6px;
  font-family: Quicksand, sans-serif;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
}

#articles h3 {
  font-family: Quicksand, sans-serif;
  font-size: 64px;
  font-style: normal;
  font-weight: 300;
  line-height: 100%; /* 64px */
  letter-spacing: -3.2px;
  color: var(--secondary-color);
}

#articles {
  padding-top: 8rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
  position: relative;
  border-top: 1px solid var(--light-citron);
}

#articles .background {
  position: absolute;
  inset: 0;
  background: url("/assets/images/backgrounds/orange-gradient.webp") no-repeat 0 0;
  background-size: contain;
  z-index: -1;
}

#articles .articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 8.75rem;
  grid-row-gap: 6rem;
  padding-bottom: 8rem;
  list-style: none;
}

#articles .articles .article:nth-child(2n) {
  transform: translate3d(0, 8rem, 0); /* simpler transform for optimized processing */
}

#articles .article .article-link {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#articles .article:hover .infos::before {
  transform: translate3d(0, 0, 0);
}

#articles .article:hover .illustration img {
  transform: scale3d(1.1, 1.1, 1); /* reduce GPU calculation */
  will-change: transform;
}

#articles li > a {
  text-decoration: none;
}

#articles .illustration {
  display: flex;
  position: relative;
  height: 24rem;
  align-items: flex-end;
  padding: 2rem;
  overflow: hidden;
  border-radius: 48px;
  border: 1px solid #E8E7E0;
}

#articles .illustration img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform .3s, scale .3s; /* limits repaint to specific properties */
  will-change: transform, scale;
}

#articles .infos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--light-grey);
  position: relative;
  overflow: hidden;
}

#articles .infos::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  border-left: 1px solid var(--accent-color);
  transform: translate3d(0, 100%, 0);
  will-change: transform;
  transition: transform 0.3s; /* improve compositing layers rendering */
}

#articles .infos time {
  color: var(--smoke-grey);
  font-family: Quicksand, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

#articles .infos .article-title {
  color: var(--primary-color);
  font-family: Quicksand, sans-serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1.8px;
}

#articles .infos .article-summary {
  color: var(--smoke-grey);
  font-family: Urbanist, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
}

#articles .articles-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6rem;
  gap: 3rem;
  color: var(--primary-color);
  font-family: Quicksand, sans-serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 43.2px */
  letter-spacing: -1.8px;
}

#articles .articles-pagination li::before {
  display: none;
}

#articles .articles-pagination li span {
  color: var(--light-grey);
  fill: var(--light-grey);
}

#articles .articles-pagination li a:not([aria-current="page"]) {
  color: var(--medium-grey);
}

@media (max-width: 800px) {
  #hero {
    padding: 8rem 2.375rem 4rem 2.375rem;
    gap: 2rem;
  }

  #hero h1 {
    font-size: 48px;
    font-style: normal;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -2.4px;
    width: 100%;
  }

  #hero h2 {
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    width: 100%;
  }

  .splide {
    grid-template-areas: "figcaption""slider""arrows";
  }

  .splide figcaption {
    margin-bottom: 2rem;
  }

  .splide__arrows {
    gap: .75rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
  }

  #last-articles {
    display: flex;
    flex-direction: column;
    padding: 3rem .75rem;
    gap: 2rem;
  }

  #last-articles .illustration {
    height: 15rem;
  }

  #articles .background {
    width: 200rem;
  }

  #articles {
    padding: 3rem 2.375rem;
    overflow: hidden;
  }

  #articles .articles {
    grid-template-columns: 1fr;
    padding: 0;
    grid-row-gap: 3rem;
  }

  #articles .articles .article:nth-child(2n) {
  translateZ(0);
    will-change: transform;
    transform: none;
  }

  #articles .infos {
    border-left: 1px solid var(--light-grey);
  }

  .articles-pagination {
    margin-top: 0;
  }

  .articles-pagination ul {
    display: flex;
    flex: 1;
    padding: 0;
    gap: 1.5rem;
    justify-content: center;
  }

  .articles-pagination ul li {
    list-style: none;
  }
}
