/* Two real customer videos; nothing streams until a visitor presses play. */
.video-references .section-head {
  padding-inline: 0;
  padding-bottom: 0;
  margin-bottom: clamp(14px, 2vw, 22px);
}

.video-references__intro {
  max-width: 55ch;
  margin: 0 0 clamp(22px, 3vw, 32px);
  color: var(--mid);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
}

.video-references__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 32px);
  max-width: 1050px;
  margin: 0 auto clamp(56px, 7vw, 96px);
}

.video-reference {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2.5vw, 34px);
  border: 1px solid var(--line);
  background: var(--chalk);
}

.video-reference__frame {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  background: var(--deep);
  overflow: hidden;
}

.video-reference video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: var(--deep);
}

.video-reference__toggle {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: rgba(20, 19, 16, .78);
  color: #fff;
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  transition: background .2s ease, transform .2s ease;
}

.video-reference__toggle[aria-pressed="true"] {
  top: auto;
  left: auto;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  transform: none;
}

.video-reference.is-enhanced .video-reference__toggle {
  display: flex;
}

.video-reference__toggle::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.video-reference__toggle[aria-pressed="true"]::before {
  width: 14px;
  height: 18px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(to right, currentColor 0 5px, transparent 5px 9px, currentColor 9px 14px);
}

.video-reference__toggle:hover,
.video-reference__toggle:focus-visible {
  background: var(--deep);
}

.video-reference__toggle:not([aria-pressed="true"]):hover {
  transform: translate(-50%, -50%) scale(1.07);
}

.video-reference__toggle[aria-pressed="true"]:hover {
  transform: scale(1.07);
}

.video-reference__toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.video-reference__caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.video-reference__caption .mono-label {
  margin-bottom: 6px;
}

.video-reference__caption strong {
  font-family: var(--f-display);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.video-reference__caption a {
  width: fit-content;
  color: var(--signal);
  font-size: 13px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  overflow-wrap: anywhere;
}

.video-reference__caption a:hover,
.video-reference__caption a:focus-visible {
  color: var(--ink);
}

@media (max-width: 700px) {
  .video-references__intro {
    margin-bottom: 22px;
  }

  .video-references__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 56px;
  }

  .video-reference {
    padding: 18px;
  }

  .video-reference__frame {
    width: min(100%, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-reference__toggle {
    transition: none;
  }
}
