/* A single, transparent WebGL canvas lives in the current effect scene. */
.reveal :where(section.aj) .deck-fx {
  position: absolute;
  inset: -48px 0 auto;
  width: 100%;
  height: calc(100% + 96px);
  max-width: none;
  max-height: none;
  pointer-events: none;
}

:where(section.aj) .hub.webgl-fx .core,
:where(section.aj) .hub.webgl-fx .spoke.hot .ring,
:where(section.aj) .belt-stage.webgl-fx .stn.human.hot .ring,
:where(section.aj) .belt-stage.webgl-fx .links path.on {
  animation: none;
}
:where(section.aj) .belt-stage.webgl-fx .belt { visibility: hidden; animation: none; }

/* Hidden slides must not keep their infinite animations running. */
.reveal .slides section:not(.stack):not(.present) *,
.reveal .slides section:not(.stack):not(.present) *::before,
.reveal .slides section:not(.stack):not(.present) *::after,
html.fx-paused .reveal .slides *,
html.fx-paused .reveal .slides *::before,
html.fx-paused .reveal .slides *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal .slides *, .reveal .slides *::before, .reveal .slides *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  :where(section.aj) .belt-stage.run .pkg { animation: none !important; opacity: 1; }
  :where(section.aj) .belt-stage.run .pkg.p1 { transform: translateX(160px); }
  :where(section.aj) .belt-stage.run .pkg.p2 { transform: translateX(510px); }
  :where(section.aj) .belt-stage.run .pkg.p3 { transform: translateX(860px); }
  :where(section.aj) .belt-stage.run .pkg.p4 { transform: translateX(1210px); }
}

@media print {
  :where(section.aj) .deck-fx { display: none !important; }
  :where(section.aj) .belt-stage.webgl-fx .belt { visibility: visible; }
}

/* Contact: a pair of trees becomes a pair of scan-ready LINE codes. */
:where(section.aj) .contact-grove { position: relative; width: 1700px; height: 590px; margin-top: 10px; }
:where(section.aj) .grove-logo { position: absolute; left: 0; top: 125px; width: 380px; height: auto; }
:where(section.aj) .tree-card { position: absolute; top: 0; width: 550px; }
:where(section.aj) .tree-visual { position: relative; width: 550px; height: 450px; }
.reveal :where(section.aj) .tree-visual .qr-image { position: absolute; left: 60px; top: 10px; width: 430px; height: 430px; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
:where(section.aj) .tree-caption { text-align: center; margin-top: 16px; line-height: 1.3; }
:where(section.aj) .tree-caption b { display: block; font-size: 42px; font-weight: 700; color: var(--ink); }
:where(section.aj) .tree-caption span { display: block; font-size: 28px; margin-top: 8px; color: var(--muted); }
:where(section.aj) .contact-grove.webgl-fx:not(.qr-settled) .qr-link { visibility: hidden; }
@media print {
  :where(section.aj) .contact-grove.webgl-fx .qr-link { visibility: visible !important; }
}

:where(section.aj) .cover-glow { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
:where(section.aj) .hub .spoke.on:hover .ring { transform: translateY(-5px) scale(1.06); }
:where(section.aj) .hub .spoke.hot:hover .ring { transform: translateY(-5px) scale(1.12); }
@media (prefers-reduced-motion: no-preference) {
  .reveal .slides section:where(.aj).present .hdr .kicker { animation: kickerLight 1.4s ease both; }
  @keyframes kickerLight {
    0% { opacity: .25; transform: translateX(-8px); }
    50% { text-shadow: 0 0 18px rgba(31,122,140,.25); }
    100% { opacity: 1; transform: none; text-shadow: none; }
  }
}
:where(section.aj) .tree-caption { margin-top: 32px; }

:where(section.aj) .cover-art.discussion-ready > img { visibility: hidden; }
@media print { :where(section.aj) .cover-art.discussion-ready > img { visibility: visible; } }

:where(section.aj) .decode-prefix { white-space: pre; }
:where(section.aj) .decode-cell { position: relative; display: inline-block; }
:where(section.aj) .decode-measure { visibility: hidden; }
:where(section.aj) .decode-glyph { position: absolute; inset: 0; text-align: center; }
:where(section.aj) .decode-glyph.decoding { color: var(--accent); opacity: .65; }
