/* =========================================
   Bikeshift Scaling Hero
   Based on Osmo "Scaling element on scroll with Flip"
   ========================================= */

.scaling-hero {
  position: relative;
  overflow: hidden;
}

.scaling-hero__header {
  grid-column-gap: 2em;
  grid-row-gap: 2em;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 160px 5vw 15vh;
  display: flex;
  position: relative;
  background: linear-gradient(to bottom, var(--green) 50%, #f7f7f7 50%);
}

.scaling-hero__eyebrow {
  color: var(--green);
  text-transform: uppercase;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.scaling-hero__h1 {
  text-align: center;
  max-width: 12em;
  margin-top: 0;
  margin-bottom: 0;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 4em;
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark-green);
}

.scaling-hero__intro {
  text-align: center;
  max-width: 52em;
  font-size: 1.125em;
  line-height: 1.6;
  color: var(--dark-green);
  opacity: 0.8;
}

/* Small box: starting size of the image */
.scaling-hero__small-box {
  border-radius: 1em;
  width: 20em;
  position: relative;
}

/* Big box: fullwidth target */
.scaling-hero__fullwidth {
  grid-column-gap: 15vh;
  grid-row-gap: 15vh;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 15vh;
  padding-left: 5vw;
  padding-right: 5vw;
  display: flex;
  position: relative;
}

.scaling-hero__big-box {
  border-radius: 1em;
  width: 100%;
  position: relative;
  max-width: 52em;
    margin-left: auto;
margin-right: auto;

}

/* Shared wrapper + target styles */
.scaling-hero__wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.scaling-hero__target {
  will-change: transform;
  background-color: var(--green);
  border-radius: 1em;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  isolation: isolate;
  transform: translateX(0) rotate(0.001deg);
}

/* Aspect ratio: 16:9 */
.scaling-hero__before {
  padding-top: 56.25%;
}

/* Image (replaces Osmo's video) */
.scaling-hero__image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: inherit;
}

/* =========================================
   Responsive
   ========================================= */

@media screen and (max-width: 991px) {
  .scaling-hero__header {
    min-height: 60vh;
    padding-top: 120px;
    padding-bottom: 10vh;
  }

  .scaling-hero__h1 {
    font-size: 3em;
  }

  .scaling-hero__small-box {
    width: 18em;
  }
}

@media screen and (max-width: 767px) {
  .scaling-hero__h1 {
    font-size: 2.25em;
  }

  .scaling-hero__small-box {
    width: 15em;
  }

  .scaling-hero__fullwidth {
    padding-left: 1em;
    padding-right: 1em;
  }
}

@media screen and (max-width: 479px) {
  .scaling-hero__header {
    padding-top: 100px;
    grid-column-gap: 1.5em;
    grid-row-gap: 1.5em;
  }

  .scaling-hero__h1 {
    font-size: 1.75em;
  }

  .scaling-hero__small-box {
    width: 12em;
  }
}
