/* Decorative, out-of-flow art. The existing hero's layout stays authoritative. */
.qx-hero { position: relative; isolation: isolate; --ribbon-center: 77%; --ribbon-width-limit: 68%; --ribbon-shift: clamp(24px, 4vw, 56px); }
/* Keep the headline in the hero's blending context, above the artwork. */
.qx-hero-content { position: relative; z-index: auto; }
.qx-hero .qx-title-line { mix-blend-mode: exclusion; }
.qx-hero .qx-title-line:last-child, .qx-hero .qx-intro,
.qx-hero .qx-edition, .qx-hero-action p { mix-blend-mode: screen; }
/* The entrance settles back into the shared context so copy can blend with art. */
.qx-hero-content.is-entering :is(.qx-hero-top, .qx-hero-bottom) { animation-fill-mode: backwards; }
.qx-ribbon { position: absolute; inset: 0 calc(-1 * var(--ribbon-shift)) 0 0; z-index: 0; pointer-events: none; overflow: hidden; }
.qx-ribbon-art { position: absolute; inset: 0 var(--ribbon-shift) 0 0; transform: translateX(var(--ribbon-shift)); container-type: size; }
.qx-ribbon-still, .qx-ribbon-canvas { position: absolute; display: block; height: 100%; }
.qx-ribbon-canvas { inset: 0; width: 100%; }
/* Height drives both the live projection and the still: narrow screens crop
   the sides rather than reducing the sculpture's vertical presence. */
.qx-ribbon-still { top: 0; left: var(--ribbon-center); width: auto; max-width: var(--ribbon-width-limit); object-fit: fill;
  transform: translateX(-50%); opacity: 1; }
.qx-ribbon-canvas { opacity: 0; }
.qx-ribbon[data-state="running"] .qx-ribbon-canvas { opacity: 1; }
.qx-ribbon[data-state="running"] .qx-ribbon-still { opacity: 0; }
@media (min-width: 961px) and (max-width: 1200px) {
  .qx-hero { --ribbon-shift: 36px; }
}
@media (max-width: 960px) {
  .qx-hero { --ribbon-center: 65%; --ribbon-shift: 24px; }
  .qx-ribbon-art { opacity: .7; }
}
/* This also covers tall desktop windows whose page width is capped. */
@container (max-aspect-ratio: 3 / 2) {
  .qx-ribbon-still, .qx-ribbon-canvas { --ribbon-center: 60%; --ribbon-width-limit: 110%; }
}
@media (max-width: 680px) {
  /* Preserve the sculpture's proportions and keep it above the body copy. */
  .qx-hero { --ribbon-shift: 0px; }
  .qx-ribbon-art { inset: 0 -32% auto auto; width: min(145vw, 720px); height: auto;
    aspect-ratio: 15 / 11; transform: none; container-type: normal; opacity: .55;
    mask-image: linear-gradient(#000 65%, transparent); }
  .qx-ribbon-still { left: 0; width: 100%; max-width: none; height: 100%; object-fit: contain; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .qx-ribbon-canvas { transition: none; } }
