/* ================= WORK REEL ================= */
.stats-band{ padding-bottom:70px; }
.stats-band::after{ display:none; }
@media (max-width:640px){ .stats-band{ padding-bottom:50px; } }

.reel{
  background:#151515; color:#fff;
  padding:40px 0 160px; position:relative; overflow:hidden;
}
.reel::after{
  content:''; position:absolute; bottom:0; left:0; right:0; height:150px; pointer-events:none;
  background:linear-gradient(0deg, var(--grey-band) 0%, rgba(244,242,238,.55) 32%, rgba(244,242,238,0) 100%);
}
.reel-head{ text-align:center; max-width:640px; margin:0 auto 54px; padding:0 22px; }
.reel-head .eyebrow{ color:rgba(255,255,255,.75); justify-content:center; }
.reel-head h2{
  font-family:var(--ff-serif); font-weight:400; color:#fff;
  font-size:clamp(34px,4.6vw,56px); line-height:1.05; letter-spacing:-.01em; margin:14px 0 14px;
}
.reel-head p.sub{ color:rgba(255,255,255,.75); font-size:16px; font-weight:400; line-height:1.55; margin:0; }

.reel-viewport{
  position:relative;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.reel-track{
  display:flex; gap:22px; width:max-content; padding:6px 11px 10px;
  animation:reelScroll var(--reel-dur,50s) linear infinite;
  will-change:transform;
}
/* only pause when the mouse is on an actual clip (or a keyboard user tabs to one) */
.reel.lb-open .reel-track,
.reel-track:has(.reel-card:hover),
.reel-track:has(.reel-card:focus-visible){ animation-play-state:paused; }
@keyframes reelScroll{ from{ transform:translateX(0); } to{ transform:translateX(calc(-50% - 11px)); } }

.reel-card{
  flex:none; width:220px; padding:0; border:none; background:none; color:inherit;
  cursor:pointer; text-align:left; font:inherit;
}
.reel-phone{
  position:relative; display:block; width:100%; aspect-ratio:9/16;
  border-radius:24px; overflow:hidden; background:#222;
  box-shadow:0 0 0 1px rgba(255,255,255,.12), 0 30px 60px -30px rgba(0,0,0,.8);
  transition:transform .35s var(--ease-out,ease), box-shadow .35s var(--ease-out,ease);
}
.reel-phone video{ width:100%; height:100%; object-fit:cover; display:block; }
.reel-card:hover .reel-phone{ transform:translateY(-6px); box-shadow:0 0 0 1px rgba(255,255,255,.28), 0 40px 70px -30px rgba(0,0,0,.9); }
.reel-card:focus-visible{ outline:none; }
.reel-card:focus-visible .reel-phone{ box-shadow:0 0 0 3px var(--red,#D42B1E); }
.reel-sound{
  position:absolute; right:10px; bottom:10px; width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.5); color:#fff; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  opacity:.85; transition:opacity .2s, background .2s;
}
.reel-card:hover .reel-sound{ opacity:1; background:var(--red,#D42B1E); }
.reel-tag{
  position:absolute; left:10px; top:10px; padding:4px 7px; border-radius:6px;
  font-family:var(--ff-mono); font-size:9px; letter-spacing:.12em; font-weight:600;
  background:rgba(0,0,0,.55); color:#fff;
}
.reel-cap{ display:flex; justify-content:space-between; gap:10px; margin-top:12px; padding:0 4px; font-size:13px; }
.reel-cap b{ font-weight:500; color:rgba(255,255,255,.85); }
.reel-cap i{ font-style:normal; font-family:var(--ff-mono); font-size:11px; color:rgba(255,255,255,.5); white-space:nowrap; }

/* reduced motion: no auto-scroll, swipeable row instead */
.reel.static .reel-track{ animation:none; }
.reel.static .reel-viewport{ overflow-x:auto; scroll-snap-type:x mandatory; -webkit-mask-image:none; mask-image:none; }
.reel.static .reel-card{ scroll-snap-align:center; }

@media (max-width:640px){
  .reel{ padding:30px 0 150px; }
  .reel-head{ margin-bottom:36px; }
  .reel-card{ width:158px; }
  .reel-track{ gap:14px; }
  .reel-phone{ border-radius:18px; }
  @keyframes reelScroll{ from{ transform:translateX(0); } to{ transform:translateX(calc(-50% - 7px)); } }
}

/* lightbox */
.reel-lb{
  position:fixed; inset:0; z-index:210; background:rgba(10,10,10,.92);
  display:flex; align-items:center; justify-content:center; padding:24px;
  opacity:0; visibility:hidden; transition:opacity .25s, visibility 0s linear .25s;
}
.reel-lb.open{ opacity:1; visibility:visible; transition:opacity .25s; }
.reel-lb-frame{ height:min(86vh, 860px); aspect-ratio:9/16; max-width:100%; border-radius:22px; overflow:hidden; background:#000; }
.reel-lb-frame video{ width:100%; height:100%; object-fit:contain; display:block; background:#000; }
.reel-lb-x{
  position:absolute; top:16px; right:16px; width:46px; height:46px; border-radius:50%;
  border:none; background:rgba(255,255,255,.12); color:#fff; font-size:28px; line-height:1; cursor:pointer;
}
.reel-lb-x:hover{ background:rgba(255,255,255,.22); }
.reel-lb-x:focus-visible{ outline:2px solid var(--red,#D42B1E); outline-offset:3px; }
