@font-face {
  font-family: "SmackAttack-BB";
  src: url("media/SmackAttack-BB-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SmackAttack-BB", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.page {
  width: 100%;
  background: #5283c1;
  container-type: inline-size;
}

.section {
  width: 100%;
  position: relative;
}

img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0% 0;
}

a {
  color: inherit;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.two > * {
  width: 100%;
  min-width: 0;
}

.section--hero {
  background: #5283c1 url("media/hero-bg.png") center top / cover no-repeat;
  padding-top: 2rem;
}

.section--hero > img {
  padding-top: 2rem;
}

.video-slot {
  position: relative;
  z-index: 2;
  width: 90%;
  aspect-ratio: 16 / 9;
  margin: -20% auto 0;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  background:
    repeating-conic-gradient(#cfd5dc 0% 25%, #b8c0ca 0% 50%)
    50% / 18px 18px;
}

.intro-bg {
  background: #5283c1 url("media/intro-bg.png") center top / 100% auto no-repeat;
}

.section--intro {
  position: relative;
}

@keyframes intro-pair-ghost-bob {
  0%, 100% {
    transform: translateY(-14px);
  }

  50% {
    transform: translateY(14px);
  }
}

@keyframes intro-pair-ghost-bob-tablet {
  0%, 100% {
    transform: translateY(-14px);
  }

  50% {
    transform: translateY(14px);
  }
}

@keyframes intro-pair-ghost-bob-desktop {
  0%, 100% {
    transform: translateY(-38px);
  }

  50% {
    transform: translateY(38px);
  }
}

.intro-pair-stack {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: -10%;
  display: grid;
  grid-template-columns: minmax(0, 70%) minmax(0, 30%);
  grid-template-rows: auto;
}

.intro-pair__ako-panel {
  grid-column: 1;
  grid-row: 1;
}

.intro-pair__adam {
  grid-column: 2;
  grid-row: 1;
}

.intro-pair__ghost-wrap {
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 5;
  pointer-events: none;
  display: grid;
  place-items: center;
  align-self: stretch;
  justify-self: stretch;
  min-height: 0;
}

.intro-pair__ghost-wrap .intro-pair__ghost {
  width: auto;
  height: auto;
  max-height: 67%;
  max-width: min(42cqw, 46%);
  object-fit: contain;
  animation: intro-pair-ghost-bob-tablet 3s ease-in-out infinite;
}

@media (min-width: 1200px) {
  .intro-pair__ghost-wrap .intro-pair__ghost {
    animation: intro-pair-ghost-bob-desktop 3s ease-in-out infinite;
  }
}

.download {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 2rem;
  transform: translateY(0%);
}

@media (min-width: 1024px) {
  .download {
    padding-inline: clamp(1rem, 3cqw, 2.5rem);
  }
}

.download__pair {
  --download-h: clamp(72px, max(7.5vw, 13cqw), 36rem);
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2.5cqw, 1.75rem);
  width: 100%;
}

.download__pair a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.download__pair a:first-child {
  flex: 1 1 0%;
  min-width: 0;
}

.download__pair a:last-child {
  flex: 0 0 auto;
}

.download__pair img {
  display: block;
  width: auto;
  height: var(--download-h);
  max-width: 100%;
  object-fit: contain;
}

.download__pair a:first-child img {
  width: 100%;
  height: var(--download-h);
}

.section--places {
  background: url("media/flow-line.png") center top / 100% auto repeat-y;
  padding: 1rem 0 0;
}

.places {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
}

.places a,
.places a:hover {
  display: block;
  transition: transform 0.3s ease !important;
  will-change: transform;
  backface-visibility: hidden;
}

.places a:hover {
  transform: scale(1.1) !important;
}

.places img {
  padding: 8%;
}

.adam-sedi {
  width: 70%;
  transform: translateY(-30%);
}

.challenge {
  line-height: 0;
}

.challenge > img:first-of-type {
  transform: translateY(-10%);
}

.challenge__email {
  position: absolute;
  left: 50%;
  bottom: 25%;
  z-index: 2;
  width: auto;
  max-width: min(52cqw, 82%);
  height: auto;
  transform: translateX(-50%);
}

.challenge__button {
  position: absolute;
  left: 50%;
  bottom: 46%;
  width: 30%;
  translate: -50% 0;
}

.reward-bg {
  background: #5283c1 url("media/reward-bg.png") center top / 100% auto no-repeat;
}

.reward {
  background: transparent;
}

.reward__content {
  align-items: start;
  /* padding: 0 1.25rem 1.25rem; */
}

.reward__text {
  width: 100%;
  color: #fff;
  font-size: 2.5cqw;
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.reward__text p,
.reward__text h3 {
  margin: 0 0 0 1em;
}

.reward__text h3 {
  color: #ffb23a;
  font-size: 4cqw;
  /* font-style: italic; */
  text-transform: uppercase;
  padding: 1em 0;
}

.reward__text ul {
  margin: 0;
  padding-left: 1.2em;
}

.reward__bubble {
  padding: 1.25rem 0 1.25rem 2rem;
}

.footer {
  aspect-ratio: 1608 / 2956;
  min-height: 0;
  padding-top: 2rem;
  background: #5abce5 url("media/banner-adam-s-mecom.png") center top / 100% 100% no-repeat;
  container-type: inline-size;
  transform: translateY(-5%);
  margin-bottom: calc(-5vw * 2956 / 1608);
}

.footer__top {
  width: 60%;
  margin: 0 auto 1rem;
}

.footer__panels {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.footer__panel {
  width: 100%;
  padding: 1rem 2rem;
  background: #fff;
  border-top: 4px solid #f5c400;
  border-bottom: 4px solid #f5c400;
  color: #000;
  font-size: 2.5cqw;
  font-weight: 700;
  line-height: 1.38;
}

.footer__panel p {
  width: 70%;
  margin: 6% auto;
  text-align: center;
}

.footer__button {
  display: block;
  width: 38%;
  margin: 1rem auto 2rem;
}

@media (max-width: 800px) {
  .intro-pair-stack {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    column-gap: 0;
    align-items: start;
  }

  .intro-pair__adam {
    grid-column: 1;
    grid-row: 1;
  }

  .intro-pair__ako-panel {
    grid-column: 1;
    grid-row: 2;
    z-index: 1;
  }

  .intro-pair__ghost-wrap {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    min-height: 0;
    z-index: 6;
  }

  .intro-pair__ghost-wrap .intro-pair__ghost {
    height: auto;
    width: clamp(5.9375rem, 37.5vw, 11.25rem);
    max-height: 67%;
    max-width: none;
    object-fit: contain;
    animation: intro-pair-ghost-bob 3s ease-in-out infinite;
  }
}

@media (max-width: 900px) {
  .places {
    grid-template-columns: repeat(2, 1fr);
  }

  .places a:last-child {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .two {
    grid-template-columns: 1fr;
  }

  .places {
    grid-template-columns: repeat(2, 1fr);
  }

  .download {
    padding: 1rem;
  }

  .challenge__button {
    bottom: 45%;
    width: 30%;
  }

  .adam-sedi + img {
    margin-top: -65%;
  }

  .reward__content {
    padding: 0 0 0 1rem;
  }

  .reward__bubble {
    padding: 1rem 0 0;
  }

  .footer {
    padding-top: 1rem;
  }

  .footer__top,
  .footer__button {
    width: 80%;
  }

  .footer__panel {
    padding: 0.75rem;
  }

  .footer__panel p {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-pair__ghost {
    animation: none;
  }
}
