/* ============================================================
   VIDEO — shared: the YouTube facade and small bits every concept uses.
   Everything that isn't a [caption] is set in the site's Helvetica.
   The body carries `vp` (not `video`: main.css has an old .video embed rule).
   ============================================================ */

.vp {
  color: var(--primary);
  font-family: helvetica-neue-lt-pro, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}
.vp .caption {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
}

/* ---- Facade: thumbnail until pressed, then the iframe ------------------ */
.gv-fig {
  position: relative;
  display: block;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: color-mix(in srgb, var(--primary) 14%, var(--secondary));
  cursor: pointer;
  outline: none;
}
.gv-fig:focus-visible { box-shadow: 0 0 0 1px var(--primary); }
.gv-fig > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gv-fig:hover > img { transform: scale(1.03); }
.gv-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.gv-fig.is-playing { cursor: default; }
.gv-fig.is-playing > img,
.gv-fig.is-playing .gv-play { opacity: 0; pointer-events: none; }

/* "▶ Play" in the corner of the picture, inverted against whatever is behind it */
.gv-play {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: var(--text-s);
  line-height: 1;
  letter-spacing: 0.08em;
  color: #fff;
  mix-blend-mode: difference;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: transparent;
  transition: text-decoration-color 160ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gv-play::before {             /* equilateral play triangle: width = height × √3/2 */
  content: "";
  width: 0.52em;
  height: 0.6em;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.gv-fig:hover .gv-play,
.gv-fig:focus-visible .gv-play { text-decoration-color: currentColor; }

/* a text button that reads like the rest of the page */
.gv-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: transparent;
  transition: text-decoration-color 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gv-btn:hover,
.gv-btn:focus-visible { text-decoration-color: currentColor; outline: none; }

/* square end-mark, the motif the store and tour use */
.gv-mark {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: currentColor;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .gv-fig > img, .gv-play, .gv-btn, .gv-mark { transition: none !important; }
  .gv-fig:hover > img { transform: none; }
}
