/* Flowing Gradient Text — original, pure CSS.
   Oversized display type with a living solar→lime→solar gradient flowing through
   the glyphs (background-clip:text) plus a slow sheen that sweeps across the
   accent line. No JS. Every selector is scoped to .byq-gem--gradient-text-flow-01. */

.byq-gem--gradient-text-flow-01 {
  font-family: var(--byq-font-sans);
  color: var(--byq-fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 62rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

/* Headline block. */
.byq-gem--gradient-text-flow-01__headline {
  margin: 0;
  font-family: var(--byq-font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 5.2vw, 4.5rem);
}

.byq-gem--gradient-text-flow-01__line {
  display: block;
  white-space: nowrap;
}

/* First half stays a solid brand-white. */
.byq-gem--gradient-text-flow-01__plain {
  color: var(--byq-fg);
}

/* The flowing gradient: solar and lime are both bright yellows, so pure
   accent→accent barely reads. Deep amber/olive valley stops (accents mixed
   toward the dark on-accent tone) put real luminance contrast into the band,
   making the flow unmistakable. Ends match so the drift loops seamlessly. */
.byq-gem--gradient-text-flow-01__sheen {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(
    100deg,
    var(--byq-accent-solar) 0%,
    var(--byq-accent-lime) 18%,
    color-mix(in oklab, var(--byq-accent-lime) 56%, var(--byq-on-accent)) 32%,
    var(--byq-accent-solar) 50%,
    var(--byq-accent-lime) 68%,
    color-mix(in oklab, var(--byq-accent-solar) 56%, var(--byq-on-accent)) 84%,
    var(--byq-accent-solar) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 0.6em color-mix(in srgb, var(--byq-accent-solar) 35%, transparent));
  animation: byq-gem--gradient-text-flow-01-flow 5s linear infinite;
}

/* Sheen sweep: a duplicated copy of the same word (via data-text) laid exactly
   over the line, filled with a narrow bright highlight that slides across and
   is also clipped to the glyphs — a moving glint on top of the flowing colour. */
.byq-gem--gradient-text-flow-01__sheen::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    100deg,
    transparent 38%,
    rgba(255, 255, 255, 0.92) 50%,
    transparent 62%
  );
  background-size: 260% 100%;
  background-position: 120% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  mix-blend-mode: screen;
  animation: byq-gem--gradient-text-flow-01-sheen 7s cubic-bezier(0.16, 1, 0.3, 1)
    infinite;
}

@keyframes byq-gem--gradient-text-flow-01-flow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: -220% 50%;
  }
}

@keyframes byq-gem--gradient-text-flow-01-sheen {
  0% {
    background-position: 120% 50%;
  }
  55%,
  100% {
    background-position: -60% 50%;
  }
}

/* Respect users who prefer less motion: hold a static, on-brand gradient still. */
@media (prefers-reduced-motion: reduce) {
  .byq-gem--gradient-text-flow-01__sheen {
    animation: none;
    /* Hold between the two dark valley stops so the frozen word stays bright. */
    background-position: 66% 50%;
  }
  .byq-gem--gradient-text-flow-01__sheen::after {
    display: none;
  }
}
