/* JB WEB V112 — Figma mobile node 853:177 (HOME PHONE 853:178).
   Changes: three video capsules exactly 179 × 103 px, A above RT/DIRECTOR,
   Selected Work label at (152,1986), mobile stacked cards remain vertical.
   Video compositing fix: bleed media beneath rounded crop to remove the
   thin white edge visible at the bottom on Safari/iOS.
   Scoped to phone only; desktop styles / motion remain untouched.
*/
@media (max-width:759px) {
  /* Front-to-back title order matches Figma: standalone scripted A is the
     topmost letter shape; RT and DIRECTOR remain behind it. */
  .figma-mobile .m-art {
    z-index: 16 !important;
    isolation: isolate;
  }
  .figma-mobile .m-art > .m-art-a {
    z-index: 3 !important;
  }
  .figma-mobile .m-art > .m-art-rt {
    z-index: 1 !important;
  }
  .figma-mobile .m-director {
    z-index: 10 !important;
  }

  /* Figma rounded rectangles: nodes 853:298, 872:2, 872:4.
     Actual sizes 179 × 103 with 5.544px corner radius. */
  .figma-mobile .m-manifesto.jb-manifesto-mobile-v104 > .jb-manifesto-media-row {
    height: 103px !important;
    min-height: 103px !important;
    flex: 0 0 103px !important;
  }
  .figma-mobile .m-manifesto.jb-manifesto-mobile-v104 .jb-manifesto-media-row > .manifest-media {
    width: 179px !important;
    min-width: 179px !important;
    height: 103px !important;
    flex: 0 0 179px !important;
    border-radius: 5.544px !important;
    overflow: hidden !important;
    clip-path: inset(0 round 5.544px);
    -webkit-clip-path: inset(0 round 5.544px);
  }
  /* Align card top edges to Figma Y=955, 1213 and 1558 on 393px artboard;
     manifesto starts Y=816 and contains 42px text rows. */
  .figma-mobile .m-manifesto.jb-manifesto-mobile-v104 > .jb-manifesto-media-row:nth-child(4) {
    margin-top: 3px !important;
    margin-bottom: 14px !important;
  }
  .figma-mobile .m-manifesto.jb-manifesto-mobile-v104 > .jb-manifesto-media-row:nth-child(8) {
    margin-top: 15px !important;
    margin-bottom: 3px !important;
  }
  .figma-mobile .m-manifesto.jb-manifesto-mobile-v104 > .jb-manifesto-media-row:last-child {
    margin-top: 29px !important;
    margin-bottom: 0 !important;
  }
  /* Content follows increased card height. */
  .figma-mobile > .m-agency {
    top: 1743px !important;
  }

  /* New centered Figma label (872:6), above first project at Y=2049. */
  .figma-mobile .m-selected-label.m-section-label {
    position: absolute !important;
    top: 1986px !important;
    left: 152px !important;
    width: 90px !important;
    height: 17px !important;
    color: #fff !important;
    font-family: var(--figma-haas,'neue-haas-grotesk-display',Arial,sans-serif) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 17px !important;
    text-align: left !important;
    white-space: nowrap !important;
    z-index: 10 !important;
  }
  .figma-mobile .m-project-viewport {
    top: 2049px !important;
  }

  /* Fix fine white strip underneath video on Safari: a parent clips the MP4
     2px beyond the visible rounded rectangle so antialiasing cannot reveal
     the white placeholder behind the last rendered scanline. */
  .figma-mobile .m-manifesto.jb-manifesto-mobile-v104 .manifest-media > video {
    position: absolute !important;
    inset: -2px auto auto -2px !important;
    width: calc(100% + 4px) !important;
    height: calc(100% + 4px) !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    border: 0 !important;
    outline: 0 !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
  }
  /* Apply the same safe overscan to the larger project video cards. */
  .figma-mobile .m-card-media {
    position: relative !important;
    overflow: hidden !important;
  }
  .figma-mobile .m-card-media > video {
    position: absolute !important;
    inset: -2px auto auto -2px !important;
    width: calc(100% + 4px) !important;
    height: calc(100% + 4px) !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    border: 0 !important;
    outline: 0 !important;
  }
  /* Main hero video uses its existing Figma clipping mask; trim the same
     rendering seam without modifying the outer dimensions or typography. */
  .figma-mobile .m-hero-object > video {
    position: absolute !important;
    inset: -2px auto auto -2px !important;
    width: calc(100% + 4px) !important;
    height: calc(100% + 4px) !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
  }
}
