@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #fff; }

.section2 {
  --text: #0b435e;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  aspect-ratio: 2048 / 992;
}

.section2__picture,
.section2__artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.section2__artwork {
  object-fit: fill;
}

.section2__title {
  position: absolute;
  z-index: 2;
  top: 6.2%;
  left: 3.55%;
  width: 50.5%;
  margin: 0;
  color: var(--text);
  font-size: 3.14vw;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
}

.section2__title span { display: block; }

.section2__stat {
  position: absolute;
  z-index: 2;
  left: 5.94%;
  width: 33.30%;
  height: 17.55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text);
  text-align: center;
  line-height: 1;
}

.section2__stat--1 { top: 27.25%; }
.section2__stat--2 { top: 50.65%; }
.section2__stat--3 { top: 74.18%; }

.section2__stat strong {
  display: block;
  margin: 0;
  font-size: 3.58vw;
  line-height: .95;
  font-weight: 700;
}

.section2__stat span {
  display: block;
  margin-top: .55vw;
  font-size: 1.73vw;
  line-height: 1.05;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .section2 {
    aspect-ratio: 1000 / 1302;
  }

  .section2__title {
    top: 4.72%;
    left: 3.5%;
    width: 93%;
    font-size: 5.85vw;
    line-height: 1.12;
    font-weight: 600;
    text-align: center;
  }

  .section2__stat {
    top: 84.12%;
    height: 12.70%;
  }

  .section2__stat--1 {
    left: 2.20%;
    width: 26.85%;
  }

  .section2__stat--2 {
    left: 32.55%;
    width: 36.60%;
  }

  .section2__stat--3 {
    left: 71.05%;
    width: 26.75%;
  }

  .section2__stat strong {
    font-size: 7.15vw;
    line-height: .95;
    font-weight: 700;
  }

  .section2__stat span {
    margin-top: 1.05vw;
    font-size: 3.15vw;
    line-height: 1.05;
    font-weight: 700;
    white-space: nowrap;
  }
}


/* Repeating scroll-triggered statistic animation */
.section2__stat strong {
  font-variant-numeric: tabular-nums;
  min-width: 2.4ch;
}

.section2.is-animating .section2__stat strong {
  animation: number-pop .34s ease both;
}
.section2.is-animating .section2__stat--2 strong { animation-delay: .08s; }
.section2.is-animating .section2__stat--3 strong { animation-delay: .16s; }

@keyframes number-pop {
  0%   { transform: translateY(8px) scale(.92); opacity: .45; }
  55%  { transform: translateY(-3px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .section2.is-animating .section2__stat strong {
    animation: none !important;
  }
}
