/* Figma homepage layout. Type and artwork scale from the 1280px desktop frame. */

body {
  background: #feffee;
  color: #061027;
}

.hero {
  display: block;
  max-width: 1600px;
  padding: 0;
  overflow: visible;
  background: #feffee;
  color: #061027;
}

.hero__top {
  position: relative;
  display: flex;
  height: 118px;
  padding: 20px 0;
  align-items: flex-start;
  justify-content: center;
}

.hero__top .wordmark {
  width: clamp(150px, 13.23vw, 190px);
  position: relative;
  z-index: 3;
}

.hero__social {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: auto;
  right: 24px;
  min-height: 16px;
  display: none;
  align-items: center;
  gap: 14px;
}

.hero__readme {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 24px;
  right: auto;
  color: #061027;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero__readme,
.hero__social a {
  opacity: 1;
}

.hero__readme:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.hero__social a {
  display: inline-flex;
  color: #061027;
}

.hero__social svg {
  width: 14px;
  height: 14px;
}

.hero__scene {
  position: relative;
  height: max(450px, 46.875cqw);
  margin-top: 26px;
}

.hero__disco,
.hero__horse,
.hero__right-photo,
.hero__paddle {
  position: absolute;
  display: block;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.hero__scene .cycle img {
  display: block;
  opacity: 0;
  transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.hero__scene .cycle img.is-on {
  opacity: 1;
}

.hero__disco {
  z-index: 1;
  top: -12.87cqw;
  left: 67.13%;
  width: 14.5%;
  aspect-ratio: 1;
}

.hero__scene .hero__golf {
  transform: scale(1.3);
}

.hero__left {
  position: absolute;
  z-index: 2;
  top: -9.11%;
  left: -1%;
  display: block;
  width: 27.4%;
  height: 42%;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 13px;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 25% 50%;
}

.eyebrow {
  position: absolute;
  z-index: 1;
  top: 34px;
  right: -74px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 18px;
  background: #061027;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.hero__horse {
  z-index: 2;
  top: 41.2%;
  left: 14.8%;
  width: 14.06%;
  aspect-ratio: 9 / 10;
}

.hero__right-photo {
  z-index: 1;
  top: 36.55%;
  left: 80.1%;
  width: 18.23%;
  height: 25.69%;
  object-fit: cover;
  border-radius: 12px;
  filter: brightness(0.86);
}

.hero__paddle {
  z-index: 1;
  top: 73.33%;
  left: 72.56%;
  width: 12.82%;
  aspect-ratio: 180 / 191;
}

.hero__title {
  position: absolute;
  z-index: 3;
  top: 20.25%;
  left: 50%;
  width: 47.2%;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: clamp(50px, 6.21cqw, 96px);
  font-weight: normal;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
}

.hero__title-mobile {
  display: none;
}

.hero__title .pixel {
  display: inline;
  font-size: 1em;
  line-height: inherit;
  letter-spacing: 0;
  margin: 0;
}

.hero__title .hero__title-desktop .pixel {
  font-size: calc(1em - 2px);
}

.hero__title .pixel span:nth-child(1) { color: #a4d413; }
.hero__title .pixel span:nth-child(2) { color: #ff5106; }
.hero__title .pixel span:nth-child(3) { color: #ffb2ed; }
.hero__title .pixel span:nth-child(4) { color: #4c5bfe; }
.hero__title .pixel span:nth-child(5) { color: #006861; }

.hero__scene > .waitlist {
  position: absolute;
  z-index: 5;
  top: calc(60.75% + 12px);
  left: 50%;
  display: block;
  margin: 0;
  transform: translateX(-50%);
}

.promise__heart {
  display: none;
}

.marquee {
  height: 25px;
  background: #ff5f25;
  color: #fefa8f;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.marquee__track {
  animation-duration: 180s;
}

.come {
  position: relative;
  min-height: 1072px;
  padding: 60px 24px 96px;
  overflow: hidden;
  background: #0b1023;
  color: #feffee;
}

.come__title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(41.6px, 3.4375vw, 55px);
  line-height: 1.1;
}

.come__break { display: none; }

.come__art {
  --wordmark: min(330px, 78vw);
  --frame: min(70vw, 710px);
  position: absolute;
  left: 50%;
  top: 120px;
  width: var(--frame);
  margin: 0;
  transform: translateX(-50%);
}

.come__line,
.come__copy {
  position: absolute;
  left: 50%;
  width: 280px;
  margin: 0;
  transform: translateX(-50%);
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.come__line + .come__line,
.come__copy {
  margin-top: 0;
}

.come__line:nth-of-type(1) {
  top: 850px;
  color: #a4d413;
}

.come__line:nth-of-type(2) {
  top: 908px;
  color: #a4d413;
}

.come__copy {
  top: 982px;
  color: #feffee;
}

@media (max-width: 700px) {
  .hero__top {
    height: 118px;
    padding: 20px 0;
    margin-bottom: 8px;
  }

  .hero__top .wordmark {
    width: calc(clamp(128px, 43.43vw, 169.36px) - 8px);
  }

  .hero__readme {
    font-size: 16px;
  }

  .hero__social {
    display: none;
  }

  .hero__scene {
    /* The 390px collage stays centered through the existing 700px breakpoint,
       and scales down together on narrower phones. Keep text/photo in flow. */
    --mobile-unit: min(1px, 0.25641026vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(390px, 100%);
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: calc(34.77 * var(--mobile-unit) - 2px) calc(19 * var(--mobile-unit)) 129px;
  }

  .promise {
    z-index: 3;
    height: 0;
    margin-top: 0;
    padding-bottom: 0;
  }

  .marquee {
    position: relative;
    top: -14px;
    height: 39px;
  }

  .hero__disco,
  .hero__right-photo,
  .eyebrow {
    display: none;
  }

  .hero__left {
    position: relative;
    order: 2;
    align-self: center;
    top: auto;
    left: auto;
    width: min(352px, 100%);
    height: auto;
    aspect-ratio: 352 / 192;
    margin: calc(-16.47 * var(--mobile-unit) + 44px) auto 0;
    transform: none;
  }

  .hero__photo {
    border-radius: 9px;
  }

  .hero__photo img {
    object-position: 50% 50%;
  }

  .hero__horse {
    top: calc(-50.81 * var(--mobile-unit) - 24px);
    left: calc(-3.71 * var(--mobile-unit) - 48px);
    width: calc(150 * var(--mobile-unit));
    transform: scaleX(-1);
  }

  .hero__paddle {
    display: block;
    /* Follow the bottom of the collage as the headline changes height. */
    top: auto;
    bottom: -10px;
    left: calc(280 * var(--mobile-unit));
    width: calc(140 * var(--mobile-unit));
  }

  .hero__title {
    position: relative;
    order: 1;
    top: auto;
    left: auto;
    width: min(420px, calc(100vw - 38px));
    margin: 0;
    transform: none;
    /* Match the Readme opener's fluid mobile headline size. */
    font-size: clamp(30px, 10vw, 60px);
    line-height: 0.9;
    white-space: nowrap;
  }

  .hero__title-desktop {
    display: none;
  }

  .hero__title-mobile {
    display: inline;
  }

  .hero__title .hero__title-mobile .pixel {
    font-size: calc(1em - 4px);
  }

  .hero__title-mobile br {
    display: initial;
  }

  .hero__scene > .waitlist {
    position: relative;
    order: 3;
    top: auto;
    left: auto;
    margin: calc(-13 * var(--mobile-unit) - 8px) auto 0;
    transform: none;
  }

  .come {
    min-height: 1029px;
    padding: 56.5px 24px 76px;
  }

  .come__title {
    margin: 0 auto;
    font-size: clamp(30px, 10vw, 60px);
    line-height: 0.9;
  }

  .come__title::first-letter { text-transform: uppercase; }
  .come__break { display: none; }

  .come__art {
    --wordmark: min(330px, calc(100vw - 48px));
    --frame: 594px;
    top: 152px;
  }

  .come__line,
  .come__copy {
    font-size: 18px;
  }

  .come__line:nth-of-type(1) { top: 766px; }
  .come__line:nth-of-type(2) { top: 816px; }
  .come__copy { top: 896px; }

  main + .foot { padding-block: 60px; gap: 50px; }
  main + .foot .foot__info { gap: 50px; }

}

@media (prefers-reduced-motion: reduce) {
  .hero__scene .cycle img {
    transition: none;
  }

}
