/* ============================================================
   Product videos (Our Work slider + portfolio page)
   Same look as the app slides: info on the left, media on the right.
   ============================================================ */
.work-phone.work-video { position: relative; isolation: isolate; align-self: center; width: 100%; padding: 6px 0; }
/* soft accent shape behind the player, like the coloured shape behind the phone slides */
.work-video::before { content: ''; position: absolute; z-index: -1; right: -4%; bottom: -8%; width: 74%; aspect-ratio: 1; border-radius: 34%;
  background: linear-gradient(145deg, rgba(18,196,234,.30), rgba(31,61,133,.16)); filter: blur(.5px); }
.work-video::after { content: ''; position: absolute; z-index: -1; left: 4%; top: -4%; width: 90px; height: 90px; border-radius: 50%; background: rgba(18,196,234,.14); }

/* device frame */
.work-media { position: relative; width: 100%; max-width: 540px; margin-inline: auto; padding: 11px; border-radius: 28px;
  background: linear-gradient(160deg, #1b2a3d, #0b1522); box-shadow: 0 30px 60px rgba(20, 40, 60, .30), inset 0 0 0 1px rgba(255,255,255,.10); }
.work-media.ratio-portrait { max-width: 280px; padding: 12px; border-radius: 40px; }
.work-media.ratio-square { max-width: 420px; }
.wm-screen { position: relative; overflow: hidden; border-radius: 18px; background: #000; aspect-ratio: 16 / 9; }
.ratio-portrait .wm-screen { aspect-ratio: 9 / 16; border-radius: 30px; }
.ratio-square .wm-screen { aspect-ratio: 1 / 1; }
.ratio-portrait .wm-screen::before { content: ''; position: absolute; z-index: 3; top: 9px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 12px; background: #05090f; pointer-events: none; transition: opacity .2s; }
.is-playing .wm-screen::before { opacity: 0; }
.wm-screen video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.is-playing video { object-fit: contain; }

/* play button */
.wm-play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; width: 100%; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(8,20,35,0) 40%, rgba(8,20,35,.45)); transition: background .25s, opacity .25s; }
.wm-play:hover { background: linear-gradient(180deg, rgba(8,20,35,.08) 30%, rgba(8,20,35,.55)); }
.wm-play span { position: relative; width: 70px; height: 70px; border-radius: 50%; background: var(--cyan, #12c4ea);
  box-shadow: 0 10px 28px rgba(18,196,234,.55); transition: transform .2s; }
.wm-play span::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); animation: wmPulse 2.2s ease-out infinite; }
.wm-play span::after { content: ''; position: absolute; left: 28px; top: 21px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.wm-play:hover span, .wm-play:focus-visible span { transform: scale(1.08); }
.wm-play:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }
@keyframes wmPulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.is-playing .wm-play { opacity: 0; pointer-events: none; }

/* chips */
.wm-chip, .wm-dur { position: absolute; z-index: 2; display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 99px; font: 500 12px/1 var(--font-body, sans-serif);
  background: rgba(8,20,35,.62); color: #fff; backdrop-filter: blur(6px); pointer-events: none; transition: opacity .2s; }
.wm-chip { left: 12px; top: 12px; } .ratio-portrait .wm-chip { top: 38px; }
.wm-dur { right: 12px; bottom: 12px; }
.is-playing .wm-chip, .is-playing .wm-dur { opacity: 0; }
.work-media.has-error .wm-screen::after { content: 'This video could not be loaded.'; position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; color: #fff; font-size: 15px; background: rgba(8,20,35,.85); }

.work-cover img { max-height: 420px; border-radius: 18px; object-fit: cover; }
.wm-single { max-width: 860px; margin: 0 auto; }
.wm-single.ratio-portrait { max-width: 320px; }
.portfolio-card-image { position: relative; }
.wm-badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 99px; background: rgba(13,27,42,.82); color: #fff; font: 500 13px var(--font-body, sans-serif); text-decoration: none; }
.wm-badge span { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--cyan, #12c4ea); }
.wm-badge span::after { content: ''; position: absolute; left: 8px; top: 6px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

@media (max-width: 760px) {
  .work-media { max-width: 100%; padding: 8px; border-radius: 22px; }
  .work-media.ratio-portrait { max-width: 230px; border-radius: 34px; }
  .wm-screen { border-radius: 14px; }
  .wm-play span { width: 58px; height: 58px; } .wm-play span::after { left: 23px; top: 17px; border-left-width: 18px; border-top-width: 12px; border-bottom-width: 12px; }
  .work-video::before { right: 0; width: 80%; }
}
@media (prefers-reduced-motion: reduce) { .wm-play span::before { animation: none; } .wm-play span { transition: none; } }
