/* Pictures. Shared by every page that shows one of the AI-made illustrations (front matter: css: visuals).
 * Used by {{figure name="..."}} (a .shot) and {{#spot}} (a product with its picture).
 *
 * The illustrations are light-themed, so each one sits on a white mat. In the dark theme the mat keeps
 * the picture clean instead of letting it clash with the page. Colours are tokens or the plain word white. */

/* ---------------------------------------------------------------- the picture */
.shot { margin: 0; min-width: 0; }
.shot picture {
  display: block;
  padding: 8px;
  /* See-through, so the mat takes the colour of the band it sits on (the founder, 10 Nov 2026). */
  background: color-mix(in srgb, var(--surface) 35%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
/* A different shape crops the picture rather than stretching it. The width and height in the page keep
 * the space reserved, so nothing jumps while it loads. */
.shot--r16x9 img { aspect-ratio: 16 / 9; object-fit: cover; }
.shot--r21x9 img { aspect-ratio: 21 / 9; object-fit: cover; }
.shot--r4x3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.shot__cap {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--fs--1);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: right;
}

/* The picture in a page's first screen has its own mat, so the hero's frame steps aside. */
.hero__visual:has(> .shot) {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

/* ---------------------------------------------------------------- two pictures side by side */
.shots { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 640px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
}

/* ---------------------------------------------------------------- a headline, one sentence, a picture */
.picture-lead { display: grid; gap: var(--s-6); }
.picture-lead__more { margin-top: var(--s-5); }

/* ---------------------------------------------------------------- one product with its picture */
.spot.section { padding-block: var(--s-7); }
.spot__grid { display: grid; gap: var(--s-5); align-items: center; }
.spot__copy { display: grid; gap: var(--s-2); align-content: start; max-width: 46ch; }
.spot__copy p { color: var(--ink-2); font-size: var(--fs-1); }
@media (min-width: 860px) {
  .spot__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-7); }
  .spot--reverse .spot__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .spot--reverse .spot__grid > .spot__copy { order: 2; }
}

/* A product with no picture: a small card, sitting in a grid. */
.spot--plain {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.spot--plain .spot__copy { max-width: none; }

/* ---------------------------------------------------------------- coloured mats (frames)
 * Every picture sits on a white mat by default. A page can ask for a tinted mat with
 * class="shot--mint" and so on, so a long page is not a column of identical white frames.
 * Only tokens, so light and dark both work. */
.shot--sky picture { background: color-mix(in srgb, var(--day-b) 45%, transparent); border-color: var(--line-strong); }
.shot--cream picture { background: color-mix(in srgb, var(--day-a) 45%, transparent); border-color: var(--built-line); }
.shot--mint picture { background: color-mix(in srgb, var(--live-bg) 45%, transparent); border-color: var(--live-line); }
.shot--sand picture { background: color-mix(in srgb, var(--built-bg) 45%, transparent); border-color: var(--built-line); }
.shot--soft picture { padding: 14px; border-radius: 26px; }
.shot--soft img { border-radius: 16px; }
.shot--lift picture { box-shadow: var(--shadow); border-color: var(--accent); border-width: 2px; }

/* ---------------------------------------------------------------- a tabbed gallery of pictures */
.pp-gallery { max-width: 960px; margin-inline: auto; }
.pp-gallery .tabs__panel { display: grid; gap: var(--s-3); }
.pp-gallery .tabs__panel > p { margin: 0; color: var(--ink-2); font-size: var(--fs-1); }
.pp-demo-note {
  display: inline-block;
  margin-top: var(--s-4);
  padding: 4px 12px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* the two quiet pictures under the invitation to say what a business needs */
.invite__shots { margin-top: var(--s-6); }
.invite__ideas { max-width: none; margin: var(--s-6) 0 0; color: var(--ink-2); font-size: 1.0625rem; font-weight: 600; }
.invite__idea { margin: var(--s-5) 0 var(--s-2); font-size: 1.0625rem; }
.invite__ideas + .shots, .invite__idea + .shots { margin-top: var(--s-3); }

/* Every picture drifts very slowly - a gentle zoom and pan, so the page is never quite still. The
   picture stays inside its mat (overflow hidden), and reduced motion or Pause motion stills it. */
@keyframes shot-drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.06) translate(-1.2%, -0.8%); }
}
@media (prefers-reduced-motion: no-preference) {
  .shot img { animation: shot-drift 16s ease-in-out infinite alternate; }
  .shot:nth-of-type(2n) img { animation-direction: alternate-reverse; animation-duration: 19s; }
}
html.motion-paused .shot img { animation: none; }
