/* Shared, photographic case previews for the AI homepage and work index. */
.ws-brand-home-visual {
  min-width: 0;
  margin: 0;
}

.ws-brand-home-visual figcaption {
  margin-top: .75rem;
  color: var(--ws-muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.ws-brand-preview {
  display: block;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  background: #123a2c;
  overflow: hidden;
  outline-offset: 6px;
}

.ws-brand-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgb(5 24 18 / 46%) 0%, rgb(5 24 18 / 14%) 31%, transparent 61%);
  pointer-events: none;
}

.ws-brand-preview > .ws-preview-scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}

.ws-brand-preview:hover > .ws-preview-scene {
  transform: scale(1.025);
}

.ws-brand-preview:hover {
  outline: 1px solid var(--ws-green);
}

.ws-brand-preview:focus-visible {
  outline: 3px solid var(--ws-orange);
}

.ws-preview-lockup {
  position: absolute;
  inset: 8% 6% auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(7px, 1.7cqw, 13px);
  color: #fff;
  pointer-events: none;
}

.ws-preview-lockup > .ws-preview-logo {
  position: static;
  display: block;
  flex: 0 0 auto;
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.ws-preview-logo--nestle {
  width: clamp(44px, 9.5cqw, 72px);
}

.ws-preview-logo--starbucks {
  width: clamp(50px, 13.8cqw, 104px);
}

.ws-preview-logo--sainsburys {
  width: clamp(90px, 24.5cqw, 184px);
}

.ws-preview-logo--seattles-best {
  width: clamp(68px, 16.5cqw, 124px);
}

.ws-preview-logo--vitality {
  width: clamp(110px, 33cqw, 224px);
}

.ws-preview-logo--carlsberg-britvic {
  width: clamp(160px, 42cqw, 300px);
}

.ws-preview-logo--affinity-water {
  width: clamp(150px, 38cqw, 270px);
}

.ws-preview-logo--muller {
  width: clamp(100px, 26cqw, 190px);
}

.ws-preview-times {
  display: block;
  flex: 0 0 auto;
  font-size: clamp(16px, 2.8cqw, 23px);
  font-weight: 400;
  line-height: 1;
  opacity: .8;
}

@media (prefers-reduced-motion: reduce) {
  .ws-brand-preview > .ws-preview-scene {
    transition: none;
  }

  .ws-brand-preview:hover > .ws-preview-scene {
    transform: none;
  }
}
