/* Preview-only home scroll cue. Self-contained; does not change the title sweep or plates. */
.scroll-cue {
  --cue-ink: #1c1914;
  --cue-mute: #5e584e;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter, 16px));
  margin: 0 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0.15rem 0.85rem 0.7rem;
  text-decoration: none;
  color: var(--cue-mute);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.scroll-cue.is-in {
  opacity: 1;
  pointer-events: auto;
}
.scroll-cue.is-out {
  opacity: 0;
  pointer-events: none;
}
.scroll-cue:focus-visible {
  outline: 2px solid #1c1914;
  outline-offset: 3px;
}
.scroll-cue:hover .scroll-cue__label,
.scroll-cue:focus-visible .scroll-cue__label {
  color: var(--cue-ink);
}

.scroll-cue__tick {
  display: block;
  width: 10px;
  height: 22px;
  flex: 0 0 22px;
}
.scroll-cue__tick svg {
  display: block;
  width: 10px;
  height: 22px;
  overflow: visible;
}
.scroll-cue__stem {
  fill: none;
  stroke: var(--cue-ink);
  stroke-width: 1.15;
  stroke-linecap: square;
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  opacity: 0.72;
}
.scroll-cue__cross {
  fill: none;
  stroke: var(--cue-ink);
  stroke-width: 1.15;
  stroke-linecap: square;
  opacity: 0;
}
.scroll-cue.is-in .scroll-cue__stem {
  animation: scroll-cue-stem 2.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.scroll-cue.is-in .scroll-cue__cross {
  animation: scroll-cue-cross 2.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes scroll-cue-stem {
  0%   { stroke-dashoffset: 18; opacity: 0; }
  12%  { opacity: 0.72; }
  52%  { stroke-dashoffset: 0; opacity: 0.72; }
  78%  { stroke-dashoffset: 0; opacity: 0; }
  79%  { stroke-dashoffset: 18; opacity: 0; }
  100% { stroke-dashoffset: 18; opacity: 0; }
}
@keyframes scroll-cue-cross {
  0%, 8%  { opacity: 0; }
  16%     { opacity: 0.72; }
  52%     { opacity: 0.72; }
  78%     { opacity: 0; }
  100%    { opacity: 0; }
}
.scroll-cue__label {
  display: block;
  white-space: nowrap;
}

/* Make room so the cue sits under the credit without hitting the title or buttons. */
.hero:has(.scroll-cue) .hero-head {
  padding-bottom: 8.25rem;
}
.hero:has(.scroll-cue) .hero-credit {
  padding-bottom: 0.2rem;
}
@media (max-width: 420px) {
  .hero:has(.scroll-cue) .hero-head {
    padding-bottom: 11.25rem;
  }
  .hero:has(.scroll-cue) .hero-cta {
    padding-bottom: 0.2rem;
  }
  .hero:has(.scroll-cue) .hero-credit {
    padding-top: 0.7rem;
    padding-bottom: 0.15rem;
  }
}

html.is-still .scroll-cue,
html.is-reduced .scroll-cue {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}
html.is-still .scroll-cue.is-out,
html.is-reduced .scroll-cue.is-out {
  opacity: 0;
  pointer-events: none;
}
html.is-still .scroll-cue__stem,
html.is-reduced .scroll-cue__stem,
html.is-still .scroll-cue.is-in .scroll-cue__stem,
html.is-reduced .scroll-cue.is-in .scroll-cue__stem {
  stroke-dashoffset: 0;
  animation: none !important;
  opacity: 0.72;
}
html.is-still .scroll-cue__cross,
html.is-reduced .scroll-cue__cross,
html.is-still .scroll-cue.is-in .scroll-cue__cross,
html.is-reduced .scroll-cue.is-in .scroll-cue__cross {
  animation: none !important;
  opacity: 0.72;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue {
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }
  .scroll-cue.is-out {
    opacity: 0;
    pointer-events: none;
  }
  .scroll-cue__stem,
  .scroll-cue.is-in .scroll-cue__stem {
    stroke-dashoffset: 0;
    animation: none !important;
    opacity: 0.72;
  }
  .scroll-cue__cross,
  .scroll-cue.is-in .scroll-cue__cross {
    animation: none !important;
    opacity: 0.72;
  }
}
