/* Evidence Lens hero: intro choreography, WebGL canvas, and the DOM layer that rides on the lens. */
.hero { --hero-exit: 0; }
.hero-image { animation: none; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .7s ease; transform: scale(calc(1 + var(--hero-exit) * .05)); transform-origin: 50% 40%; }
.hero.lens-live .hero-canvas { opacity: 1; }

.hero-lens { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .9s ease .2s; --lx: 70vw; --ly: 40vh; --lr: 0px; --ls: 1; }
.hero.lens-live .hero-lens { opacity: 1; }
.lens-notes { position: absolute; inset: 0; clip-path: circle(var(--lr) at var(--lx) var(--ly)); }
.lens-note { position: absolute; left: 0; top: 0; display: grid; gap: 3px; padding-left: 20px; font: 10px/1.35 var(--mono); letter-spacing: .04em; color: #d9e8da; white-space: nowrap; }
.lens-note { text-shadow: 0 0 6px #06120e, 0 0 2px #06120e; }
.lens-note b { font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: #9fc4a6; }
.lens-note i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border: 1px solid #cfe3d1; border-radius: 50%; }
.lens-note i::before, .lens-note i::after { content: ''; position: absolute; background: #cfe3d1; }
.lens-note i::before { left: 50%; top: -6px; bottom: -6px; width: 1px; }
.lens-note i::after { top: 50%; left: -6px; right: -6px; height: 1px; }
.lens-note { margin-top: -7px; }

.lens-ring { position: absolute; left: 0; top: 0; transform: translate(var(--lx), var(--ly)) translate(-50%, -50%) scale(var(--ls)); opacity: clamp(0, calc((var(--ls) - .5) * 2.5), 1); }
.lens-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lens-ticks { stroke: #e3eee4; stroke-width: 1; opacity: .8; }
.lens-orbit { animation: lens-orbit 48s linear infinite; transform-origin: 0 0; }
.lens-orbit text { font: 9px var(--mono); letter-spacing: .14em; fill: #e6efe6; opacity: .72; }
.lens-readout { position: absolute; left: 0; top: 0; transform: translate(var(--lx), var(--ly)) translate(calc(var(--lr) * .72 + 18px), calc(var(--lr) * .72 + 10px)); font: 10px var(--mono); letter-spacing: .08em; color: #d5e2d4; white-space: pre; opacity: clamp(0, calc((var(--ls) - .5) * 2.5), 1); }

.hero-content { animation: none; }
.hero-line { display: block; }

@media (hover: hover) and (pointer: fine) {
  .hero.lens-live { cursor: none; }
  .hero.lens-live :is(a, button) { cursor: pointer; }
}

@keyframes lens-orbit { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .lens-note { font-size: 9px; padding-left: 16px; }
  .lens-orbit text { font-size: 8px; }
  .lens-readout { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .lens-orbit { animation: none; }
  .hero-content { transform: none; opacity: 1; }
  .hero-canvas { transform: none; }
}
