/* Cover — right under the first screen: only the feature canvas, large. A visitor who does not know
   the product yet reads one window, not twenty surfaces; the picture is the mosaic cover's own record
   (looksCoverOf), uncropped, and opens full-size on click. */
.cover-section {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 72px 24px;
  scroll-snap-align: start;
}
.cover-shot { margin: 0; width: min(1360px, 100%); display: grid; place-items: center; }
.cover-shot img { display: block; max-width: 100%; max-height: calc(100vh - 144px); width: auto; height: auto; object-fit: contain; border-radius: 18px; cursor: zoom-in; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.cover-shot img:hover { transform: scale(1.01); }
.cover-shot img:focus-visible { outline: 2px solid var(--blue-hi, #6aa8ff); outline-offset: 6px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .cover-shot img { transition: none; } .cover-shot img:hover { transform: none; } }

/* Feature mosaic — at the end of the page, under the last capability: every real surface in one rectangle.
   The cover is the feature canvas; the other tiles are the surfaces it opens. Tiles come
   from looks.json (decisions/how-is-a-site-look-written.ts looksMosaicOf); the cover's
   span is chosen there and the last tile widens so the last row closes. A picture is never cropped: it fits its
   tile and opens full-size on click (landing.js proof stage); a surface with no picture plays its film. */
.mosaic-section {
  position: relative;
  display: grid;
  place-items: center;
  padding: 96px 24px 112px;
  scroll-snap-align: start;
}
.mosaic-wrap { width: min(1360px, 100%); display: grid; gap: 34px; }
.mosaic-wrap .capability-copy h2 { font-size: clamp(40px, 4.6vw, 70px); margin-bottom: 12px; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  grid-auto-flow: row dense;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.mosaic-tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 10;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: #07080c;
  border: 1px solid var(--line);
  overflow: hidden;
}
/* The picture takes no height of its own: the row decides, the picture fits inside it uncropped. */
.mosaic-tile img, .mosaic-tile video { flex: 1 1 0; min-height: 0; height: 0; width: 100%; object-fit: contain; display: block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.mosaic-tile--wide { grid-column: span var(--tw, 1); aspect-ratio: calc(var(--tw, 1) * 1.6); }
/* The cover's other state (canvas with «Others» open) stands right beside it: one column, as tall as the cover. */
.mosaic-tile--frame { grid-row: span var(--fh, 2); aspect-ratio: auto; }
/* The cover's shape comes from the cells it spans, so it keeps its height even when no tile shares its rows. */
.mosaic-tile--cover { grid-column: span var(--cw, 2); grid-row: span var(--ch, 2); aspect-ratio: calc(var(--cw, 2) * 1.6 / var(--ch, 2)); padding: 18px 18px 14px; }
.mosaic-tile:hover img, .mosaic-tile img:focus-visible, .mosaic-tile:hover video, .mosaic-tile video:focus-visible { transform: scale(1.03); }
.mosaic-tile img:focus-visible, .mosaic-tile video:focus-visible { outline: 2px solid var(--blue-hi, #6aa8ff); outline-offset: 4px; border-radius: 8px; }
.mosaic-tile figcaption {
  flex: none;
  font-size: 13px; line-height: 1.3; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mosaic-tile--cover figcaption { font-size: 15px; color: var(--text); font-weight: 650; }
@media (max-width: 980px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic-tile--cover { grid-column: span 2; grid-row: span 1; aspect-ratio: 1.45; }
  .mosaic-tile--wide { grid-column: span 2; aspect-ratio: 3.2; }
  .mosaic-tile--frame { grid-column: span 2; grid-row: span 1; aspect-ratio: 1; }
}
@media (prefers-reduced-motion: reduce) { .mosaic-tile img, .mosaic-tile video { transition: none; } .mosaic-tile:hover img, .mosaic-tile:hover video { transform: none; } }
