/* The Lens, set into the page (local preview, 2026-10-22).
   No frame: a transparent canvas that dissolves into the page, pinned while scroll drives the story,
   and the words in the site's own type. Every rule is scoped under .lens-section, every class is prefixed lens-.
   Scene label sizes are in px on purpose: the overlay is laid out in screen pixels. */

.lens-section {
  --lens-violet: #c8a0f0;
  --lens-rose: #e080a0;
  --lens-amber: #e8b870;
  --lens-cyan: #7fd6e8;
  position: relative;
  padding-bottom: 12rem;
}
@media (min-width: 769px) { .lens-section { padding-bottom: 14rem; } }

/* sticky needs body to clip sideways, not scroll; the page's members pin does the same */
html.lens-pinned body { overflow-x: clip !important; }

/* ---------- the pinned run ---------- */
.lens-section .lens-scrolly { position: relative; height: 500vh; height: 500svh; margin-top: 2rem; }
.lens-section .lens-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.lens-section .lens-view { position: absolute; inset: 0; pointer-events: none; }
.lens-section .lens-view canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  /* the scene has no edge: it dissolves into the page on every side */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 27%, #000 47%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, transparent 27%, #000 47%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
.lens-section .lens-view svg.lens-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lens-section .lens-labels { position: absolute; inset: 0; pointer-events: none; }
.lens-section .lens-lbl { position: absolute; left: 0; top: 0; will-change: transform, opacity; white-space: nowrap; line-height: 1.3; text-shadow: 0 0 8px var(--bg), 0 0 2px var(--bg); }

/* layer names, at each layer's edge */
.lens-section .lens-facet { text-align: center; }
.lens-section .lens-facet .lens-nm { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.lens-section .lens-facet .lens-sub { font-family: var(--sans); font-size: 12px; color: var(--text-mid); margin: 0 0 3px; white-space: normal; width: 156px; line-height: 1.3; }
.lens-section .lens-facet.lens-below .lens-sub { margin: 3px 0 0; }
.lens-section .lens-pfacet { display: none; }

/* the vision line */
.lens-section .lens-vision { font-family: var(--serif); font-style: italic; font-size: 25px; color: var(--text); text-shadow: 0 0 6px #0a0a0f, 0 0 22px rgba(200,160,240,0.35); }
.lens-section .lens-vision .lens-k { display: block; font-family: var(--mono); font-style: normal; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lens-violet); margin-bottom: 6px; text-shadow: none; }

/* research arriving from outside */
.lens-section .lens-stream { font-family: var(--mono); font-size: 11.5px; color: var(--lens-cyan); letter-spacing: 0.02em; }

/* intersections */
.lens-section .lens-meet { white-space: normal; width: 262px; }
.lens-section .lens-pair { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.lens-section .lens-pair i { font-style: normal; color: var(--text-dim); padding: 0 4px; }
.lens-section .lens-meet .lens-say { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.2; color: var(--text); margin-top: 3px; }

/* the creations */
.lens-section .lens-made { line-height: 1.25; }
.lens-section .lens-made .lens-nm { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--text); }
.lens-section .lens-made .lens-st { font-family: var(--mono); font-size: 11px; color: var(--text-mid); letter-spacing: 0.02em; }
.lens-section .lens-made.lens-held .lens-st { color: var(--lens-amber); }
.lens-section .lens-made .lens-rh { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--lens-cyan); letter-spacing: 0.02em; margin-left: 12px; }
.lens-section .lens-made .lens-rh::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; opacity: .8; }

/* what flows back into the lens */
.lens-section .lens-back { text-align: center; white-space: normal; width: 300px; }
.lens-section .lens-kick { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.lens-section .lens-kick b { font-weight: 400; }
.lens-section .lens-back .lens-line { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--text); margin-top: 3px; }

/* the time scale */
.lens-section .lens-scale { text-align: center; }
.lens-section .lens-scale .lens-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.lens-section .lens-scale .lens-old { font-family: var(--mono); font-size: 12px; color: var(--text-mid); margin-top: 5px; text-decoration-color: rgba(152,152,184,0.8); text-decoration-thickness: 1px; }
.lens-section .lens-scale .lens-new { font-family: var(--mono); font-size: 12.5px; color: var(--text); margin-top: 3px; }



/* ---------- the words, in the page's type ---------- */
.lens-section .lens-copy-wrap { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.lens-section .lens-copy { width: min(40rem, 34%); }
.lens-section .lens-steps { list-style: none; margin: 0 0 4.4rem; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.lens-section .lens-steps li { display: flex; align-items: center; gap: 1.4rem; font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); opacity: 0.55; transition: opacity .4s ease, color .4s ease; }
.lens-section .lens-steps li::before { content: ''; width: 1.6rem; height: 1px; background: currentColor; opacity: 0.5; transition: width .4s cubic-bezier(0.16,1,0.3,1), opacity .4s ease, background .4s ease; }
.lens-section .lens-steps li.lens-on { opacity: 1; color: var(--text); }
.lens-section .lens-steps li.lens-on::before { width: 3.2rem; opacity: 1; background: var(--lens-violet); }
.lens-section .lens-step-n { display: none; }
.lens-section .lens-cap { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 2.5vw, 3.8rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--text); min-height: 3.45em; display: flex; align-items: flex-end; }
.lens-section .lens-detail { margin-top: 2.6rem; min-height: 6.4rem; opacity: 0; transition: opacity .35s ease; }
.lens-section .lens-detail.lens-detail-on { opacity: 1; }
.lens-section .lens-detail-k { margin: 0; font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.lens-section .lens-detail-k.lens-cyan { color: var(--lens-cyan); }
.lens-section .lens-detail-k.lens-amber { color: var(--lens-amber); }
.lens-section .lens-detail-k b { font-weight: 400; }
.lens-section .lens-detail-k i { font-style: normal; color: var(--text-dim); padding: 0 0.5rem; }
.lens-section .lens-detail-t { margin: 0.8rem 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 1.7vw, 2.6rem); line-height: 1.25; color: var(--text-mid); }
.lens-section .lens-swap { animation: lensFade .55s ease backwards; }
@keyframes lensFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- after the run ---------- */
.lens-section .lens-beats { display: none; }
.lens-section .lens-closing { margin: 0; text-align: center; font-family: var(--serif); font-size: clamp(2.8rem, 3.6vw, 4.8rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--text); }
.lens-section .lens-closing em { color: var(--lens-rose); }
.lens-section .lens-closing .lens-br { display: block; }
.lens-section .lens-note { margin: 2.4rem 0 0; text-align: center; font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.06em; line-height: 1.7; color: var(--text-dim); }

/* ---------- phones and tall screens: the vertical composition above, the words below ---------- */
.lens-section.lens-phone .lens-scrolly { height: 560vh; height: 560svh; }
.lens-section.lens-phone .lens-view { top: var(--lens-nav, 0px); bottom: 25svh; }
.lens-section.lens-phone .lens-view canvas {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 9%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 9%, #000 94%, transparent 100%);
}
.lens-section.lens-phone .lens-copy-wrap { align-items: flex-end; padding-bottom: 1.8rem; }
.lens-section.lens-phone .lens-copy { width: 100%; }
.lens-section.lens-phone .lens-steps { flex-direction: row; gap: 0.2rem; margin: 0 0 1.2rem; flex-wrap: nowrap; }
.lens-section.lens-phone .lens-steps li { gap: 0; letter-spacing: 0.06em; opacity: 0.5; }
.lens-section.lens-phone .lens-steps li::before { display: none; }
.lens-section.lens-phone .lens-step-n { display: inline-block; padding: 0.4rem 0.6rem; border-bottom: 1px solid transparent; }
.lens-section.lens-phone .lens-step-l { display: none; }
.lens-section.lens-phone .lens-steps li.lens-on { opacity: 1; }
.lens-section.lens-phone .lens-steps li.lens-on .lens-step-n { border-bottom-color: var(--lens-violet); }
.lens-section.lens-phone .lens-steps li.lens-on .lens-step-l { display: inline; margin-left: 0.8rem; }
.lens-section.lens-phone .lens-cap { font-size: 2.1rem; line-height: 1.22; min-height: 2.44em; }
.lens-section.lens-phone .lens-detail { margin-top: 1rem; min-height: 5.2rem; }
.lens-section.lens-phone .lens-detail-t { font-size: 1.8rem; margin-top: 0.5rem; }

/* the vertical composition's in-scene labels */
.lens-section.lens-phone .lens-facet { display: none; }
/* the vertical composition's in-scene labels */
.lens-section.lens-phone .lens-facet { display: none; }
.lens-section.lens-phone .lens-pfacet { display: block; text-align: left; white-space: normal; }
.lens-section.lens-phone .lens-pfacet .lens-nm { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.lens-section.lens-phone .lens-pfacet .lens-sub { font-family: var(--sans); font-size: 12px; color: var(--text-mid); line-height: 1.25; margin-top: 2px; }
.lens-section.lens-phone .lens-vision { font-size: 20px; line-height: 1.22; text-align: left; white-space: normal; }
.lens-section.lens-phone .lens-vision .lens-k { font-size: 11px; margin-bottom: 5px; }
.lens-section.lens-phone .lens-stream, .lens-section.lens-phone .lens-meet { display: none; }
.lens-section.lens-phone .lens-made .lens-rh, .lens-section.lens-phone .lens-back { display: none; }
.lens-section.lens-phone .lens-scale { text-align: left; white-space: normal; }
.lens-section.lens-phone .lens-scale .lens-k { font-size: 11px; letter-spacing: 0.02em; }
.lens-section.lens-phone .lens-scale .lens-old { font-size: 12px; }


/* the words now live in the page copy, not the scene */
.lens-section .lens-vision, .lens-section .lens-stream, .lens-section .lens-meet, .lens-section .lens-back, .lens-section .lens-made .lens-rh { display: none; }

/* ---------- reduced motion: no pinning, the final scene still, then the beats as plain text ---------- */
.lens-section.lens-reduced .lens-scrolly { height: auto; }
.lens-section.lens-reduced .lens-pin { position: relative; height: 82vh; height: 82svh; }
.lens-section.lens-reduced.lens-phone .lens-pin { height: 74svh; }
.lens-section.lens-reduced.lens-phone .lens-view { bottom: 0; }
.lens-section.lens-reduced .lens-copy-wrap { display: none; }
.lens-section.lens-reduced .lens-view canvas {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.lens-section.lens-reduced .lens-beats { display: block; list-style: none; margin: 2rem 0 8rem; padding: 0; max-width: 72rem; }
.lens-section .lens-beats > li { padding: 2.4rem 0; border-top: 1px solid var(--border); }
.lens-section .lens-beats-k { display: block; font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem; }
.lens-section .lens-beats p { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 2.2vw, 3rem); line-height: 1.2; color: var(--text); }
.lens-section .lens-beats p.lens-beats-q { margin-top: 1rem; font-style: italic; color: var(--text-mid); }
.lens-section .lens-beats ul { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.8rem; font-family: var(--mono); font-size: 1.3rem; color: var(--lens-cyan); }
.lens-section .lens-beats .lens-beats-meets { gap: 1.4rem; color: inherit; }
.lens-section .lens-beats .lens-beats-meets li { display: flex; flex-direction: column; gap: 0.4rem; }
.lens-section .lens-beats .lens-pair { font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.12em; text-transform: uppercase; }
.lens-section .lens-beats .lens-pair i { font-style: normal; color: var(--text-dim); padding: 0 0.5rem; }
.lens-section .lens-beats .lens-say { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--text-mid); }

@media (prefers-reduced-motion: reduce) {
  .lens-section .lens-swap { animation: none; }
}

/* ---------- still picture: no WebGL, too slow to draw smoothly, reduced motion, or ?lensfallback ---------- */
#lens.lens-still .lens-scrolly { height: auto; margin-top: 2rem; }
#lens.lens-still .lens-pin { position: relative; top: auto; height: auto; overflow: visible; }
#lens.lens-still .lens-view, #lens.lens-still .lens-copy-wrap { display: none; }
#lens.lens-still .lens-still-pic { display: block; max-width: 1440px; margin: 0 auto; }
#lens.lens-still .lens-still-pic img {
  display: block; width: 100%; height: auto;
  /* the picture has no edge either: its dark ground gives way to the page and its glow, and the edges fade */
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}

/* short phone screens: the ten launch rows sit closer, so their type tightens to keep them apart */
.lens-section.lens-phone.lens-tight .lens-made { line-height: 1.0; }
.lens-section.lens-phone.lens-tight .lens-made .lens-nm { font-size: 13px; }
.lens-section.lens-phone.lens-tight .lens-made .lens-st { font-size: 10.5px; }
