.hero-billboard {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  overflow: clip;
}

.hero-billboard .orbit-frame {
  --orb-x: .62;
  --orb-y: .49;
  --orb-size: .51;
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  pointer-events: none;
}

.hero-billboard .orbit-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url("assets/orbit-still.webp") 70% 50% / auto 108% no-repeat;
}

.hero-billboard::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgb(9 9 12 / 77%), rgb(9 9 12 / 54%) 23%, transparent 55%);
}

.hero-billboard::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: clamp(106px, 26%, 250px);
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 97%);
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 22%, transparent) 30%, color-mix(in srgb, var(--bg) 83%, transparent) 75%, var(--bg) 97%);
}

.hero-billboard + .directions {
  border-top: 0;
}

.orbit-touch-zone {
  display: none;
}

@media (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .orbit-touch-zone {
    display: block;
    position: absolute;
    z-index: 3;
    inset: 0 0 auto;
    height: 33.333333%;
    touch-action: pinch-zoom;
  }
}

.billboard-interior {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  width: 100%;
  min-height: inherit;
  padding-inline: var(--gutter);
  padding-block: clamp(80px, 12svh, 155px);
}

.billboard-copy {
  width: fit-content;
  max-width: 100%;
}

.billboard-wordmark {
  width: clamp(340px, 38vw, 660px);
  max-width: 100%;
  margin: 0;
  line-height: 0;
}

.billboard-wordmark img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 14px rgb(5 5 9 / 42%));
}

.billboard-description {
  max-width: 38ch;
  margin-top: clamp(25px, 3.3vw, 50px);
  font-family: var(--mono);
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  color: #d4d1da;
  text-shadow: 0 1px 9px #08080b;
}

.hero-billboard .hero-actions {
  margin-top: 24px;
}


@media (max-width: 900px) {
  .hero-billboard .orbit-frame { --orb-x: .66; }
  .billboard-wordmark { width: clamp(300px, 43vw, 400px); }
  .billboard-description { max-width: 32ch; }
}

@media (max-width: 700px) {
  .hero-billboard {
    align-items: end;
  }
  .hero-billboard .orbit-frame { --orb-x: .55; --orb-y: .37; --orb-size: .55; }
  .hero-billboard .orbit-frame canvas {
    background-position: center 22%;
    background-size: 110% auto;
  }
  .hero-billboard::before {
    background: linear-gradient(0deg, #09090c 1%, rgb(9 9 12 / 80%) 18%, rgb(9 9 12 / 16%) 48%, transparent 65%);
  }
  .billboard-interior {
    align-content: end;
    padding-block: clamp(60px, 16svh, 138px) clamp(30px, 9svh, 82px);
  }
  .billboard-wordmark { width: min(80vw, 430px); }
  .billboard-description { max-width: 37ch; margin-top: 22px; }
  .hero-billboard .hero-actions { gap: 12px 19px; margin-top: 19px; }
}

@media (max-height: 520px) and (min-width: 701px) {
  .billboard-interior { padding-block: clamp(24px, 7svh, 48px); }
  .billboard-wordmark { width: min(32vw, 385px); }
}

/* The still uses a radius of .39 in a square frame. Match its first paint
   to the live canvas on wide displays and on portrait phones. */
@supports (width: 1cqw) {
  .hero-billboard .orbit-frame { container-type: size; }
  .hero-billboard .orbit-frame canvas {
    --still-side: calc(min(100cqw, 100cqh) * var(--orb-size) / .39);
    background-size: var(--still-side) var(--still-side);
    background-position: calc(100cqw * var(--orb-x) - var(--still-side) / 2)
                         calc(100cqh * var(--orb-y) - var(--still-side) / 2);
  }
}
