/* The collage (Stage B): the layout rule in beacon/src/collage.rs, the look
   Josh approved (docs/superpowers/specs/beacon-collage-mockup). Shapes are
   classes, never inline styles. Shared by the card and the About page. */
.bcn-a23 { --a: 0.6667; } .bcn-s23 { --a: 0.3333; }
.bcn-a34 { --a: 0.7500; } .bcn-s34 { --a: 0.3750; }
.bcn-a45 { --a: 0.8000; } .bcn-s45 { --a: 0.4000; }
.bcn-a11 { --a: 1.0000; } .bcn-s11 { --a: 0.5000; }
.bcn-a54 { --a: 1.2500; } .bcn-s54 { --a: 0.6250; }
.bcn-a43 { --a: 1.3333; } .bcn-s43 { --a: 0.6667; }
.bcn-a32 { --a: 1.5000; } .bcn-s32 { --a: 0.7500; }
.bcn-a169 { --a: 1.7778; } .bcn-s169 { --a: 0.8889; }
.bcn-a21 { --a: 2.0000; } .bcn-s21 { --a: 1.0000; }
.bcn-shots { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .55rem; }
.bcn-srow { display: flex; gap: .55rem; align-items: stretch; }
.bcn-ph { flex: var(--a) 1 0; min-width: 0; aspect-ratio: var(--a); border-radius: var(--radius, .625rem); overflow: hidden; display: block; }
/* A single framed photo (the site photo): the same rule as a collage tile. */
.bcn-f { width: 100%; height: 100%; object-fit: cover; display: block; object-position: var(--px, 50%) var(--py, 50%);
  transform: scale(var(--z, 1)); transform-origin: var(--px, 50%) var(--py, 50%); }
.bcn-ph img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: var(--px, 50%) var(--py, 50%);
  transform: scale(var(--z, 1)); transform-origin: var(--px, 50%) var(--py, 50%); }
/* Zoom: steps of ten, about the framing point. */
.bcn-z110 { --z: 1.1; } .bcn-z120 { --z: 1.2; } .bcn-z130 { --z: 1.3; } .bcn-z140 { --z: 1.4; } .bcn-z150 { --z: 1.5; } .bcn-z160 { --z: 1.6; } .bcn-z170 { --z: 1.7; } .bcn-z180 { --z: 1.8; } .bcn-z190 { --z: 1.9; } .bcn-z200 { --z: 2.0; }
.bcn-stack { flex: var(--a) 1 0; min-width: 0; display: flex; flex-direction: column; gap: .55rem; }
.bcn-stack .bcn-ph { flex: 1 1 0; aspect-ratio: auto; min-height: 0; }
.bcn-ph.bcn-lone { aspect-ratio: 4 / 5; }
/* Framing: where the agent placed the photo in its frame (steps of five). */
.bcn-x0 { --px: 0%; } .bcn-y0 { --py: 0%; }
.bcn-x5 { --px: 5%; } .bcn-y5 { --py: 5%; }
.bcn-x10 { --px: 10%; } .bcn-y10 { --py: 10%; }
.bcn-x15 { --px: 15%; } .bcn-y15 { --py: 15%; }
.bcn-x20 { --px: 20%; } .bcn-y20 { --py: 20%; }
.bcn-x25 { --px: 25%; } .bcn-y25 { --py: 25%; }
.bcn-x30 { --px: 30%; } .bcn-y30 { --py: 30%; }
.bcn-x35 { --px: 35%; } .bcn-y35 { --py: 35%; }
.bcn-x40 { --px: 40%; } .bcn-y40 { --py: 40%; }
.bcn-x45 { --px: 45%; } .bcn-y45 { --py: 45%; }
.bcn-x50 { --px: 50%; } .bcn-y50 { --py: 50%; }
.bcn-x55 { --px: 55%; } .bcn-y55 { --py: 55%; }
.bcn-x60 { --px: 60%; } .bcn-y60 { --py: 60%; }
.bcn-x65 { --px: 65%; } .bcn-y65 { --py: 65%; }
.bcn-x70 { --px: 70%; } .bcn-y70 { --py: 70%; }
.bcn-x75 { --px: 75%; } .bcn-y75 { --py: 75%; }
.bcn-x80 { --px: 80%; } .bcn-y80 { --py: 80%; }
.bcn-x85 { --px: 85%; } .bcn-y85 { --py: 85%; }
.bcn-x90 { --px: 90%; } .bcn-y90 { --py: 90%; }
.bcn-x95 { --px: 95%; } .bcn-y95 { --py: 95%; }
.bcn-x100 { --px: 100%; } .bcn-y100 { --py: 100%; }
@media (min-width: 40rem) {
  .bcn-shots, .bcn-srow, .bcn-stack { gap: .7rem; }
}
/* On the site's About page: the phone layout on a phone; on a wider screen the
   rows flow into two columns across the section, under its heading (Josh
   2026-11-18: it sat narrow and off to one side on a desktop). */
.collage-wrap .bcn-shots { max-width: 34rem; margin-inline: auto; }
@media (min-width: 56rem) {
  .collage-wrap .bcn-shots { display: block; max-width: none; columns: 2; column-gap: 1rem; }
  .collage-wrap .bcn-srow { break-inside: avoid; margin-block-end: 1rem; }
}

/* The photo viewer (collage.js): the agency card's, with Beacon's names. The
   button fills its photo's cell, so the layout is the same with or without it. */
.bcn-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none;
            cursor: zoom-in; border-radius: inherit; }
.bcn-open:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }
html.bcn-lb-open { overflow: hidden; }
.bcn-lb { --lb-x: 3.2rem; --lb-y: 3.4rem;
          border: 0; padding: 0; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh;
          background: transparent; color: #fff; overscroll-behavior: contain; }
.bcn-lb::backdrop { background: rgb(6 22 27 / .92); }
@media (max-width: 40rem) { .bcn-lb { --lb-x: .75rem; } }
.bcn-lb-stage { position: absolute; inset: var(--lb-y) var(--lb-x); display: grid; place-items: center; }
/* Capped in viewport units against the stage's own insets: .bcn-lb is exactly
   the viewport, and a percentage cap did not bind on the agency card. */
.bcn-lb-stage img { max-width: calc(100vw - var(--lb-x) * 2); max-height: calc(100dvh - var(--lb-y) * 2);
                    width: auto; height: auto; display: block; border-radius: var(--radius, .625rem); }
/* z-index keeps the arrows above the stage, or a tap on one closes the viewer. */
.bcn-lb-nav, .bcn-lb-close { position: absolute; z-index: 1; background: rgb(255 255 255 / .12); color: #fff;
                             border: 0; border-radius: 999px; cursor: pointer; line-height: 1;
                             display: grid; place-items: center; width: 2.75rem; height: 2.75rem; }
.bcn-lb-nav[hidden], .bcn-lb-dots[hidden] { display: none; }
.bcn-lb-nav { top: 50%; transform: translateY(-50%); font-size: 1.7rem; }
.bcn-lb-prev { left: 1rem; } .bcn-lb-next { right: 1rem; }
.bcn-lb-close { top: .6rem; right: 1rem; font-size: 1.5rem; }
.bcn-lb-nav:hover, .bcn-lb-close:hover { background: rgb(255 255 255 / .22); }
.bcn-lb-nav:focus-visible, .bcn-lb-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bcn-lb-dots { position: absolute; left: 0; right: 0; bottom: 1.2rem; display: flex; justify-content: center; gap: .38rem; }
.bcn-lb-dot { width: .42rem; height: .42rem; border-radius: 999px; background: rgb(255 255 255 / .3); }
.bcn-lb-dot.is-on { background: #fff; }
.bcn-lb-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .bcn-lb[open] { animation: bcn-lb-in .18s ease-out; }
  @keyframes bcn-lb-in { from { opacity: 0; } to { opacity: 1; } }
}
