/* ==========================================================================
   Pebbles (25 Nov 2026, asked by Tommy). The one shared place for pebbles.

   Every pebble is one of Odro's supplied files in assets/pebbles/, from the
   Pebbles folder in Odro's brand assets on Google Drive:
     odro-pebble-blue.svg    Odro Blue (also the mask for crops)
     odro-pebble-navy.svg    Deep Navy
     odro-pebble-gold.webp   Gold   (load lazily, only where used)
     odro-pebble-white.webp  White  (load lazily, only where used)
   All four are the same shape, 1262 x 994 (about 1.27 : 1).

   Scale, position and rotate them freely, including bleeding off the edge.
   Never stretch, flip, recolour, redraw or edit them. Never draw, trace or
   approximate a pebble (no SVG paths, border-radius blobs or clip-paths).
   Photos and video are cropped with odro-pebble-blue.svg as a mask.

   The homepage and Odro Vantage page still have Peter's own pebbles; they
   were left alone on purpose and don't use this file yet.
   ========================================================================== */

/* Icon pebble: a supplied pebble behind a small single-weight icon.
   <span class="peb-icon" aria-hidden="true">
     <img class="peb-shape" src="./assets/pebbles/odro-pebble-blue.svg" alt="" loading="lazy">
     <svg>...</svg>
   </span>
   Blue and navy take a white icon (the default). Gold and white take a
   Deep Navy icon: add .ink-navy. Set the size with --peb-w (the width). */
.peb-icon {
  --peb-w: 48px;
  position: relative;
  isolation: isolate;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--peb-w);
  aspect-ratio: 1262 / 994;
  color: #FFFFFF;
}
.peb-icon > .peb-shape {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;   /* never stretched */
  pointer-events: none;
}
.peb-icon > svg { position: relative; }
.peb-icon.ink-navy { color: #0E2050; }

/* Pebble crop: a photo, a video or its placeholder, cut to the supplied
   shape. A mask also cuts off borders and box-shadows, so put any shadow on
   a wrapper as filter: drop-shadow(...). */
.peb-crop {
  aspect-ratio: 1262 / 994;
  -webkit-mask: url("../assets/pebbles/odro-pebble-blue.svg") center / contain no-repeat;
          mask: url("../assets/pebbles/odro-pebble-blue.svg") center / contain no-repeat;
}
.peb-crop > img,
.peb-crop > video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Product page hero (Odro Capture, Odro Vision, Odro AssistCV): a flat Odro
   Blue pebble behind the clip, bleeding off to the right.
   <img class="v-hero-pebble" src="./assets/pebbles/odro-pebble-blue.svg" alt="" width="1262" height="994"> */
.v-hero-pebble { position: absolute; z-index: -1; left: 2%; top: 50%; width: 140%; max-width: none; height: auto; transform: translateY(-58%); pointer-events: none; }
@media (max-width: 900px) {
  .v-hero-pebble { left: -10%; width: 130%; top: auto; bottom: -22%; transform: none; }
}
