/*
 * 4 — Word-by-word plum lettering; a center-opening gold rule and one lingering jewelry glint.
 * 5 — Near-still 0.98-scale arrival; a left-to-right gold draw, then the subline.
 * 6 — Editorial curtain reveal; title, rule, and subline drift at subtly different depths.
 * Checks: isolated 390px/1100px browser checks, reduced motion, restoration of 0–3 passed.
 * Integration issue: shared variants.js resolves numeric queries as one-based positions;
 * heading IDs 4/5/6 currently use ?v-byb=5/6/7. Select by name in the existing switcher.
 * Shared loader must load these two files; no loader or registry edits made here.
 * Preview only. No font, copy, palette, switcher, or layout changes outside variants 4–6.
 */

/* Cancel incumbent reveals only here. Inner layers own our motion, so even the
   site's !important static/reduced-motion resets cannot fight their parents. */
html:is([data-v-byb="4"], [data-v-byb="5"], [data-v-byb="6"]) #bybHeading > :is(.section-title, .section-subtitle, .gold-rule) {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  clip-path: none !important;
  animation: none !important;
  transition: none !important;
}

html:is([data-v-byb="4"], [data-v-byb="5"], [data-v-byb="6"]) #bybHeading > .section-title {
  font-family: 'Glaze Display', Georgia, 'Times New Roman', serif;
  font-variant-ligatures: none;
  font-feature-settings: 'liga' 0, 'clig' 0;
  font-size: var(--text-h2, clamp(1.85rem, 3.4vw, 2.7rem));
  color: var(--plum, #4A1942);
  letter-spacing: -0.015em;
  line-height: 1.05;
  text-align: center;
}

html:is([data-v-byb="4"], [data-v-byb="5"], [data-v-byb="6"]) #bybHeading > .section-subtitle {
  color: var(--text-muted, #5A4D44);
  font-size: var(--text-body-lg, 1.05rem);
  text-align: center;
  max-width: 550px;
  margin-inline: auto;
}

html:is([data-v-byb="4"], [data-v-byb="5"], [data-v-byb="6"]) #bybHeading > .gold-rule {
  position: relative;
  width: min(120px, 40%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--honey-gold, #D4A843), transparent);
}

html:is([data-v-byb="4"], [data-v-byb="5"], [data-v-byb="6"]) #bybHeading.byb-sol-ready > .gold-rule {
  background: none;
  overflow: hidden;
}

html:is([data-v-byb="4"], [data-v-byb="5"], [data-v-byb="6"]) #bybHeading :is(.byb-sol-title-layer, .byb-sol-title-ink, .byb-sol-word, .byb-sol-sub-ink) {
  display: inline-block;
  vertical-align: baseline;
  transform-origin: 50% 70%;
}

html:is([data-v-byb="4"], [data-v-byb="5"], [data-v-byb="6"]) #bybHeading .byb-sol-rule-ink {
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--honey-gold, #D4A843), transparent);
}

/* Only the existing gold: a narrow glint, never a white streak or a loop. */
html[data-v-byb="4"] #bybHeading.byb-sol-play > .gold-rule::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 35%, var(--honey-gold, #D4A843) 50%, transparent 65%);
  opacity: 0;
  animation: byb-sol-glint 2600ms cubic-bezier(.22, 1, .36, 1) 650ms both;
}

@keyframes byb-sol-glint {
  0% { transform: translateX(-85%); opacity: 0; }
  20% { opacity: .7; }
  76% { opacity: .38; }
  100% { transform: translateX(85%); opacity: 0; }
}

html[data-v-byb="6"] #bybHeading .byb-sol-title-layer {
  transform: translate3d(0, var(--byb-sol-title-y, 0px), 0);
}
html[data-v-byb="6"] #bybHeading > .gold-rule {
  /* translate is separate from the incumbent transform reset. */
  translate: 0 var(--byb-sol-rule-y, 0px);
}
html[data-v-byb="6"] #bybHeading > .section-subtitle {
  translate: 0 var(--byb-sol-sub-y, 0px);
}

@media (prefers-reduced-motion: reduce) {
  html:is([data-v-byb="4"], [data-v-byb="5"], [data-v-byb="6"]) #bybHeading :is(.byb-sol-title-layer, .byb-sol-title-ink, .byb-sol-word, .byb-sol-rule-ink, .byb-sol-sub-ink) {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    clip-path: none !important;
    opacity: 1 !important;
  }
  html:is([data-v-byb="4"], [data-v-byb="5"], [data-v-byb="6"]) #bybHeading > :is(.gold-rule, .section-subtitle) {
    translate: none !important;
  }
  html[data-v-byb="4"] #bybHeading > .gold-rule::after {
    content: none !important;
    animation: none !important;
  }
}
