@font-face {
  font-family: Pool Heebo;
  src: url("/regular-led-heebo.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

.pool-opening {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  background: #0c111d;
  color: #fff;
  font-family: Pool Heebo, Arial, sans-serif;
}

.pool-opening-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1672 / 941;
}

.pool-opening-stage {
  position: absolute;
  inset: auto 0 0;
  aspect-ratio: 1672 / 941;
}

.pool-opening-stage img,
.pool-opening-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pool-opening-stage canvas { pointer-events: none; }
html.still .pool-opening-stage canvas { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .pool-opening-stage canvas { visibility: hidden; }
}

.pool-opening-copy {
  position: absolute;
  z-index: 1;
  inset: .48cqw 4% auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pool-opening-logo {
  display: block;
  width: 13.16cqw;
  height: auto;
}

.pool-opening .pool-opening-title {
  color: inherit;
  font-size: 5.12cqw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.022em;
  max-width: none;
  margin: 0;
}

.pool-opening-title span { white-space: nowrap; }

.pool-opening .pool-opening-description {
  color: inherit;
  font-size: 1.79cqw;
  font-weight: 500;
  line-height: 1.3;
  margin: .2cqw 0 0;
}

.pool-opening .pool-opening-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .7em;
  min-height: 3.82cqw;
  min-width: 21cqw;
  margin-top: 1.42cqw;
  padding: .32em .68em;
  border-radius: .65em;
  background: linear-gradient(90deg, #e7a7f7, #a7a7fa);
  color: #11142a;
  font-size: 1.64cqw;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.pool-opening .pool-opening-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.pool-opening-arrow {
  flex: none;
  width: .42em;
  height: .42em;
  border: solid currentColor;
  border-width: 0 0 .085em .085em;
  transform: rotate(45deg);
}

@media (max-width: 850px) {
  .pool-opening-copy {
    position: relative;
    inset: auto;
    padding: .65rem 1.15rem 1.05rem;
  }

  .pool-opening-logo { width: min(34cqw, 10rem); }

  .pool-opening .pool-opening-title {
    font-size: clamp(2rem, 7.65cqw, 3.6rem);
    line-height: 1.08;
  }

  .pool-opening .pool-opening-description {
    max-width: 36rem;
    margin: .45rem 0 0;
    font-size: clamp(1rem, 3.7cqw, 1.25rem);
    line-height: 1.45;
  }

  .pool-opening .pool-opening-cta {
    width: min(100%, 24rem);
    min-height: 48px;
    margin-top: .9rem;
    font-size: clamp(1.05rem, 4.05cqw, 1.28rem);
  }

  /* Trim empty sky while keeping the artwork and canvas on the same coordinates. */
  .pool-opening-art { aspect-ratio: 1672 / 691; }
}
