/* About page hero illustration: the Xcelsior X mark drawn up like a blueprint. CSS only, pausable, respects
   prefers-reduced-motion. Reworked from docs/mockups/about.html at the owner's request (see variants/about.php).

   The construction lines (grid, guides, outlines) draw in while the mark assembles and fade out
   once it is finished, so the finished picture is the mark, its six labels and their leaders and nothing else.
   The six labels sit in two columns on three shared rows. Each leader is drawn by its label: a level line from the
   label to the outside edge of the mark, ending in a gold dot. Its length is the target's position (--at, a share
   of the picture's width, set on the label) minus the label's own width, so it always meets the label. The
   position-driven chip animation (hitB0..hitB5) is in sections/hero.css; its keyframes are at the foot of this file. */
.visual.about { aspect-ratio: 560 / 470; max-width: 34rem; container-type: inline-size; }
.visual.about .frame { inset: 0; }
.visual.about .vchip { transform: translateY(-50%); }

/* The mark. The outlines draw in ink and gold (the picture's own cascade would paint them the frame grey). */
.visual.about .bp-oink { stroke: var(--ink); }
.visual.about .bp-ogold { stroke: var(--gold); }
.visual.about .bp-ink { fill: var(--ink); stroke: none; }
/* A thin gap in the background colour where the arrow crosses the stem, so the two shapes read apart. */
.visual.about .bp-gold { fill: var(--gold); stroke: var(--wf-page); stroke-width: 2.5; paint-order: stroke fill; }
.bp-outline { fill: none; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: bpdraw 10s ease-in-out infinite; }
.bp-fill { opacity: 0; animation: bpfill 10s ease-in-out infinite; }

/* Construction lines: in while the mark is built, gone once it is finished. */
.bp-grid { animation: bpcon 10s ease-in-out infinite; }
.bp-guide { stroke: var(--wf-stroke); stroke-width: 1; opacity: 0.55; stroke-dasharray: 4 4; animation: bpguide 10s ease-in-out infinite; }

/* Leaders: a level line and a dot from each label to the mark. */
.visual.about .vchip::before,
.visual.about .vchip::after { content: ""; position: absolute; top: 50%; pointer-events: none; animation-name: bplead; animation-duration: 10s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.visual.about .vchip::after { height: 1px; transform: translateY(-50%); background: var(--wf-stroke); width: calc(var(--at) * 100cqw - 100% - 2px); }
.visual.about .vchip::before { width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--gold); z-index: 1; }
.visual.about .vchip.l::after { left: calc(100% + 1px); }
.visual.about .vchip.l::before { left: calc(var(--at) * 100cqw - 4.5px); }
.visual.about .vchip.r::after { right: calc(100% + 1px); }
.visual.about .vchip.r::before { right: calc(var(--at) * 100cqw - 4.5px); }
.visual.paused .vchip::before, .visual.paused .vchip::after { animation-play-state: paused; }

@keyframes bpcon { 0%, 2% { opacity: 0; } 10%, 52% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes bpguide { 0%, 2% { opacity: 0; } 10%, 52% { opacity: 0.55; } 64%, 100% { opacity: 0; } }
@keyframes bpdraw { 0%, 8% { stroke-dashoffset: 1; opacity: 1; } 36%, 52% { stroke-dashoffset: 0; opacity: 1; } 64%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes bpfill { 0%, 34% { opacity: 0; } 48%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes bplead { 0%, 44% { opacity: 0; } 54%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
.visual.paused [class*="bp-"] { animation-play-state: paused; }

/* Phones: the labels drop their icons and shrink so they never reach the mark. */
@media (max-width: 48rem) { .visual.about .vchip .icon { display: none; } }
@media (max-width: 24rem) { .visual.about .vchip { font-size: 0.8125rem; letter-spacing: 0.04em; padding-inline: 0.375rem; } }

/* Reduced motion: the finished picture, no construction lines. */
@media (prefers-reduced-motion: reduce) {
  .bp-outline { stroke-dashoffset: 0 !important; animation: none !important; }
  .bp-outline, .bp-grid, .bp-guide { opacity: 0 !important; animation: none !important; }
  .bp-fill { opacity: 1 !important; animation: none !important; }
  .visual.about .vchip::before, .visual.about .vchip::after { animation: none !important; opacity: 1 !important; }
}

@keyframes hitB0 { 0%, 4% { border-color: var(--control-border); box-shadow: inset 0 0 0 4rem transparent; } 6%, 17% { border-color: var(--gold); box-shadow: inset 0 0 0 4rem var(--gold-wash); } 23%, 100% { border-color: var(--control-border); box-shadow: inset 0 0 0 4rem transparent; } }
@keyframes hitB1 { 0%, 15% { border-color: var(--control-border); box-shadow: inset 0 0 0 4rem transparent; } 17%, 28% { border-color: var(--gold); box-shadow: inset 0 0 0 4rem var(--gold-wash); } 34%, 100% { border-color: var(--control-border); box-shadow: inset 0 0 0 4rem transparent; } }
@keyframes hitB2 { 0%, 26% { border-color: var(--control-border); box-shadow: inset 0 0 0 4rem transparent; } 28%, 39% { border-color: var(--gold); box-shadow: inset 0 0 0 4rem var(--gold-wash); } 45%, 100% { border-color: var(--control-border); box-shadow: inset 0 0 0 4rem transparent; } }
@keyframes hitB3 { 0%, 37% { border-color: var(--control-border); box-shadow: inset 0 0 0 4rem transparent; } 39%, 50% { border-color: var(--gold); box-shadow: inset 0 0 0 4rem var(--gold-wash); } 56%, 100% { border-color: var(--control-border); box-shadow: inset 0 0 0 4rem transparent; } }
@keyframes hitB4 { 0%, 48% { border-color: var(--control-border); box-shadow: inset 0 0 0 4rem transparent; } 50%, 61% { border-color: var(--gold); box-shadow: inset 0 0 0 4rem var(--gold-wash); } 67%, 100% { border-color: var(--control-border); box-shadow: inset 0 0 0 4rem transparent; } }
@keyframes hitB5 { 0%, 59% { border-color: var(--control-border); box-shadow: inset 0 0 0 4rem transparent; } 61%, 72% { border-color: var(--gold); box-shadow: inset 0 0 0 4rem var(--gold-wash); } 78%, 100% { border-color: var(--control-border); box-shadow: inset 0 0 0 4rem transparent; } }
