/* Product windows show the whole product; the viewer enlarges it. */
.venture__stage { display: flex; align-items: center; padding: clamp(28px, 3.4vw, 48px) clamp(20px, 2.6vw, 40px) clamp(28px, 3.4vw, 48px) clamp(40px, 7%, 72px); }
.venture__window { position: relative; inset: auto; left: auto; top: auto; right: auto; bottom: auto; width: 100%; border-radius: 14px; }
.venture__screens { position: relative; inset: auto; aspect-ratio: 1200 / 875; }
.venture__app { position: absolute; inset: 0; }
.venture__app.mx-host { height: auto !important; }
.venture__flow { left: 6px; top: 32%; }
.v-chip--out { right: 26px; top: 6px; }
.venture__zoom {
  position: absolute; top: 5px; right: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; font: 500 11px/1 var(--sans); color: #3b3430; background: #fff; border: 1px solid rgba(27,24,22,.12); transition: background .2s;
}
.venture__zoom:hover { background: #f4f1ec; }
.venture__zoom svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (max-width: 1023px) {
  .venture__stage { height: auto; padding: 0 clamp(16px, 4vw, 36px) clamp(20px, 4vw, 36px); }
}
@media (max-width: 560px) { .venture__zoom span, .venture__zoom { font-size: 10px; } .v-chip--out { display: none; } }

/* Hero: product cards show the full screen */
.hcard--ui .hcard__media { inset: 50px 14px 80px; border-radius: 8px; overflow: hidden; background: #fff; display: flex; align-items: center; }
.hcard--ui .hcard__media img { object-fit: contain; object-position: center; }
.hcard--ui.hcard--app .hcard__media { background: transparent; box-shadow: none; }
.hcard__app { width: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px rgba(29,26,24,.1), 0 18px 34px -20px rgba(29,26,24,.45); }
.hcard[data-dist="0"] .hcard__media img { transform: none; }

/* Case figures: live dashboard or full-resolution image, never cropped */
.case-figure--app { margin: 0; }
.case-figure--app .case-app { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -40px rgba(20,14,10,.45); }
.case-figure button.case-zoom { margin-top: 10px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.case-figure img { cursor: zoom-in; }

/* Viewer */
.pv { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #211e25; color: #fff; display: none; flex-direction: column; }
.pv[open] { display: flex; animation: pv-in .25s ease; }
@keyframes pv-in { from { opacity: 0; } }
.pv::backdrop { background: #211e25; }
.pv__bar { display: flex; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; }
.pv__tabs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.pv__tabs button, .pv__scale {
  min-height: 44px; padding: 6px 14px; border-radius: 100px; color: #eeeaf1;
  border: 1px solid #625c68; font: 500 .875rem/1.25 var(--sans);
}
.pv__tabs button[aria-selected="true"], .pv__scale[aria-pressed="true"] { background: #fff; color: #27202f; border-color: #fff; }
.pv__close { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid #625c68; }
.pv__close svg { width: 17px; height: 17px; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.pv__stage { flex: 1; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 0 16px 12px; overflow: auto; overscroll-behavior: contain; }
.pv__app { border-radius: 12px; overflow: hidden; box-shadow: 0 25px 80px -30px #000; }
.pv__img { width: 100%; height: 100%; object-fit: contain; max-height: 100%; min-height: 0; }
.pv__stage.is-original { display: block; }
.pv__stage.is-original img { display: block; width: auto; height: auto; max-width: none; max-height: none; margin: 0 auto; }
.pv__footer { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 8px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid #49434d; }
.pv__footer[hidden] { display: none; }
.pv__caption { font: 450 .95rem/1.45 var(--sans); color: #f4f1f6; max-width: 68ch; }
.pv__scale { flex: none; }
.pv :focus-visible { outline: 2px solid #e0b9ff; outline-offset: 2px; }
@media (max-width: 640px) {
  .pv__bar { align-items: flex-start; padding-inline: 10px; gap: 7px; }
  .pv__tabs { justify-content: flex-start; gap: 5px; }
  .pv__tabs button { min-height: 40px; padding: 5px 10px; font-size: .82rem; }
  .pv__stage { padding-inline: 8px; }
  .pv__footer { flex-wrap: wrap; gap: 8px; padding-inline: 14px; }
  .pv__caption { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) { .pv[open] { animation: none; } }
/* Sources slide in behind the window, as if flowing into the product */
.venture__window { z-index: 2; }
.venture__flow { z-index: 1; left: clamp(4px, 1vw, 12px); }
.v-chip--out { z-index: 3; }
/* Embedded apps keep their own image styling inside case figures and the viewer */
.case-figure .fk-app img, .case-figure .mx-app img { width: auto; max-width: none; border: 0; border-radius: 0; box-shadow: none; cursor: default; }
.case-figure .fk-app .fk-top img { width: 22px; height: auto; }
.case-figure .fk-app .fk-me img { width: 96px; height: auto; filter: drop-shadow(0 10px 14px rgba(15,23,42,.18)); }
@media (min-width: 1024px) {
  .venture__stage { padding-left: clamp(96px, 10vw, 136px); }
  .venture__flow { left: 0; }
}
