/* "Our work" reels: cards, hover preview and the in-page player. */

/* card */
.pframe{position:relative;width:180px;height:320px;background:#111;border-radius:24px;overflow:hidden;border:4px solid #1e1e1e;box-shadow:0 0 0 1px rgba(255,255,255,.05),0 16px 40px rgba(0,0,0,.5);cursor:pointer}
.pcover,.pprev{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pcover{filter:brightness(.78);transition:filter .3s ease}
.pprev{opacity:0;transition:opacity .35s ease}
.pprev.on{opacity:1}
.pshade{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.8) 0%,transparent 50%);pointer-events:none}
.pviews{position:absolute;top:10px;right:10px;background:var(--green);border-radius:100px;padding:5px 12px;font-size:12px;font-weight:700;color:#0d0f0e;z-index:3}
.pbar{position:absolute;bottom:0;left:0;right:0;background:rgba(0,0,0,.65);padding:6px 10px;display:flex;align-items:center;gap:6px;z-index:3}
.pbar-ico{display:flex;color:var(--green)}
.pbar-ico svg{width:12px;height:12px;fill:var(--green);display:block}
.pbar-line{flex:1;height:2px;background:rgba(255,255,255,.2);border-radius:2px;overflow:hidden;position:relative}
.pbar-line i{position:absolute;inset:0 auto 0 0;width:0;background:var(--green)}
.pbar-time{font-size:9px;color:rgba(255,255,255,.6);font-variant-numeric:tabular-nums}
.pmeta{margin-top:14px;display:flex;align-items:center;gap:10px;padding:0 4px}
.pmeta .userpic-4qd1{width:32px;height:32px;border-radius:50%;overflow:hidden;flex-shrink:0}
.pmeta .userpic-4qd1 img{width:100%;height:100%;object-fit:cover}
.pmeta .userpic-dfdsa{font-size:14px;font-weight:700;color:var(--white)}
.pfol{font-size:12px;color:var(--muted)}

/* the whole card is the link; the play icon only shows until the card is playing */
.pframe .play-btn,.pframe .play-btn:hover,.pframe .play-btn:active{position:absolute;inset:0;top:0;left:0;width:auto;height:auto;transform:none;border-radius:20px;background:transparent;box-shadow:none;z-index:4;display:flex;align-items:center;justify-content:center}
.pb-ico{width:44px;height:44px;border-radius:50%;background:var(--green);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.35);transition:opacity .3s ease,transform .3s ease}
.pb-ico svg{width:18px;height:18px;fill:#0d0f0e;margin-left:2px}
.pcard.previewing .pb-ico{opacity:0;transform:scale(.8)}
.pframe .play-btn:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.pcard.previewing .pcover{filter:brightness(1)}

/* hover: a light sweep across the video and a lime edge */
.pframe{transition:border-color .35s ease,box-shadow .35s ease}
.pframe::after{content:"";position:absolute;inset:-20% -60%;z-index:3;pointer-events:none;background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.16) 47%,rgba(255,255,255,.05) 53%,transparent 62%);transform:translateX(-70%);opacity:0;transition:transform 0s .6s,opacity .3s ease}
.pcard:hover .pframe{border-color:rgba(168,255,62,.55);box-shadow:0 0 0 1px rgba(168,255,62,.18),0 18px 44px rgba(0,0,0,.55)}
.pcard:hover .pframe::after{transform:translateX(70%);opacity:1;transition:transform .9s cubic-bezier(.3,.7,.3,1),opacity .2s ease}
.pcard:hover .pprev{filter:brightness(1.06)}

@media (max-width:768px){
  .pframe{width:150px;height:270px}
}

/* player */
.reel-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;gap:28px;padding:24px;opacity:0;transition:opacity .25s ease}
.reel-modal[hidden]{display:none}
.reel-modal.open{opacity:1}
.rm-backdrop{position:absolute;inset:0;background:rgba(13,15,14,.86);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.rm-stage{position:relative;display:flex;flex-direction:column;gap:16px;transform:translateY(12px) scale(.98);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.reel-modal.open .rm-stage{transform:none}
.rm-frame{position:relative;height:min(74vh,700px);aspect-ratio:9/16;background:#000;border-radius:24px;overflow:hidden;border:1px solid rgba(255,255,255,.08);box-shadow:0 30px 80px rgba(0,0,0,.6)}
.rm-video{width:100%;height:100%;object-fit:cover;display:block;background:#000}
.rm-info{display:flex;align-items:center;gap:12px}
.rm-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;flex-shrink:0}
.rm-name{font-size:15px;font-weight:700;color:var(--white)}
.rm-sub{font-size:13px;color:var(--muted)}
.rm-orig{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:100px;border:1px solid rgba(255,255,255,.14);color:var(--white);font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;transition:border-color .2s ease,background-color .2s ease}
.rm-orig:hover{border-color:rgba(168,255,62,.5);background:rgba(168,255,62,.06)}
.rm-orig svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2}
.rm-close,.rm-nav{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.14);background:rgba(20,25,22,.7);color:var(--white);cursor:pointer;transition:background-color .2s ease,border-color .2s ease}
.rm-close:hover,.rm-nav:hover{background:rgba(40,46,42,.9);border-color:rgba(255,255,255,.28)}
.rm-close:focus-visible,.rm-nav:focus-visible,.rm-orig:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.rm-close{position:absolute;top:-58px;right:0}
.rm-close svg,.rm-nav svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rm-nav[disabled]{opacity:.3;cursor:default}

@media (max-width:768px){
  .reel-modal{padding:16px;gap:0}
  .rm-nav{display:none}
  .rm-frame{height:auto;width:min(calc(100% - 56px),calc((100vh - 200px) * 9 / 16));width:min(calc(100% - 56px),calc((100svh - 200px) * 9 / 16))}
  .rm-stage{width:100%;align-items:center}
  .rm-info{width:min(calc(100% - 56px),calc((100vh - 200px) * 9 / 16));width:min(calc(100% - 56px),calc((100svh - 200px) * 9 / 16))}
  .rm-close{top:-52px;right:max(0px,calc((100% - min(calc(100% - 56px),calc((100svh - 200px) * 9 / 16))) / 2));width:42px;height:42px}
  .rm-info{gap:10px}
  .rm-info > div{min-width:0}
  .rm-avatar{width:34px;height:34px}
  .rm-name{font-size:14px}
  .rm-sub{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rm-fol{display:none}
  .rm-orig{padding:9px 12px;font-size:12px}
}
@media (prefers-reduced-motion:reduce){
  .reel-modal,.rm-stage,.pprev{transition:none}
}

/* handwritten hint above the reels */
.work-hint{position:relative;align-self:flex-end;display:flex;align-items:center;gap:10px;margin:0 0 6px;transform:rotate(-3deg);transform-origin:left center;color:rgba(240,242,237,.6);font-family:var(--font-b);font-size:19px;font-weight:500;line-height:1;white-space:nowrap;pointer-events:none;user-select:none}
.wh-cursor{flex:none;width:23px;height:23px;margin-top:2px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
.wh-arrow{position:absolute;right:calc(100% + 8px);top:calc(50% + 6px);width:110px;height:77px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wh-mob{display:none}
@media (max-width:768px){
  #our-work .width1100.scrolling4334 > .work-hint{display:flex !important}
  .work-hint{align-self:flex-start;margin:18px 0 0;transform:none;font-size:15px}
  .wh-cursor{width:17px;height:17px}
  .wh-arrow,.wh-desk{display:none}
  .wh-mob{display:inline}
}
