/* ============ FEATURED WORK — showcase band (rebuild 2026-12-01) ============
   Scoped stylesheet for the #work section only; every selector carries
   the workx- prefix. The old pinned scroll carousel (200vh pin, sticky
   stage, stacked cards, arrows, scrub JS) is retired. What remains:
   the heading at its approved size, then three infinite CSS loops in
   the Design Monks band arrangement — skills marquee (right to left),
   project covers in tablet/phone device frames (right to left,
   slower), skills marquee again (left to right).
   Smoothness pass (Sami, 2026-12-01): NO hover-pause anywhere in
   the band, and the keyframes use translate3d so the tracks stay on
   their own compositor layers.
   Scale-up pass (Sami, 2026-12-01): the band read too small and the
   three rows too crammed — image band height 360px -> 450px (mobile
   228px -> 280px), inter-row gaps 30px -> 60px (mobile 18px -> 36px),
   more air between the heading and the first row and below the last
   row. This supersedes the earlier "gaps are fine" note.
   De-shader pass (Sami, 2026-12-01): the section's own backdrop is
   a STATIC gradient in the silk palette (below) — a frozen frame
   of the silk, no motion of any kind. Final seam settlement
   (2026-12-01): the section is a FULL-WIDTH panel (no side
   margins) on the black page canvas, outside #silkWrap; below it
   a plain black gap, then Services on its own silk.
   The bands have NO edge fades (Sami ordered the veils out).
   Position / z-index / radius / margins of .workx-feat are owned by
   smooth.css — do not redeclare them here. */
.workx-feat{
  --workx-ink:#F9F9F9; --workx-mute:rgba(249,249,249,.66);
  --workx-accent:#E85002; --workx-red:#e3241a;
  --workx-serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --workx-sans:"Archivo",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --workx-bandh:450px;
  width:auto; padding:110px 0 130px;
  /* Static silk (de-shader pass, 2026-12-01): a frozen frame of the
     silk in its exact palette — near-black warm base, a diagonal
     red -> orange flow, a cream highlight high right, a deep red
     pool low left, and a vignette settling the edges. Layered CSS
     gradients only; nothing here moves, ever. (The LIVE silk of
     the shared canvas shows only around the panel — smooth.css.) */
  background:
    radial-gradient(115% 92% at 50% 42%, rgba(11,5,3,0) 56%, rgba(11,5,3,.52) 100%),
    radial-gradient(55% 36% at 72% 4%, rgba(217,195,171,.70), rgba(217,195,171,0) 70%),
    radial-gradient(72% 52% at 28% 70%, rgba(241,96,1,.80), rgba(241,96,1,0) 70%),
    radial-gradient(58% 48% at 4% 98%, rgba(193,8,1,.85), rgba(193,8,1,0) 66%),
    linear-gradient(118deg, #0B0503 0%, #C10801 26%, #E85002 48%, #F16001 63%, #E85002 78%, #0B0503 106%);
  background-color:#0B0503;
  color:var(--workx-ink);
  font-family:var(--workx-sans);
  -webkit-font-smoothing:antialiased;
}

/* ---------- Heading (unchanged from the approved carousel build) ---------- */
.workx-fhead{text-align:center;padding:0 20px;margin-bottom:52px}
.workx-ftitle{display:inline-block;font-family:var(--workx-serif);font-weight:400;font-size:clamp(58px,6.6vw,100px);line-height:1;letter-spacing:-.05em;text-shadow:0 0 18px rgba(255,255,255,.55)}
.workx-fsub{margin-top:16px;font-size:clamp(16px,1.5vw,23px);color:var(--workx-mute)}

/* ---------- Bands: shared loop mechanics ----------
   Each track is its set written TWICE (two identical groups) and the
   keyframes shift it by exactly -50%, so the wrap is seamless. A group
   carries its trailing gap as padding-right, which keeps the -50%
   point exactly on the seam. */
.workx-band{
  position:relative;
  overflow:hidden;
  contain:paint;
}
/* NO edge fades (Sami, 2026-12-01): the static gradient veils that
   replaced the old mask are removed too — the bands run edge to
   edge and are clipped only by the band's own overflow and the
   panel's rounded corners. Nothing overlays the rows. */
.workx-band + .workx-band{margin-top:60px}
.workx-mtrack,.workx-itrack{display:flex;width:max-content;will-change:transform;backface-visibility:hidden}
.workx-anim-l{animation-name:workx-slide-l;animation-timing-function:linear;animation-iteration-count:infinite}
.workx-anim-r{animation-name:workx-slide-r;animation-timing-function:linear;animation-iteration-count:infinite}
.workx-mq-fast{animation-duration:45s}
.workx-mq-fast2{animation-duration:55s}
/* Image loop slowed (Sami, 2026-12-01 fix round 4): 68s -> 92s —
   the covers glide, the text rows keep their 45s / 55s. */
.workx-mq-slow{animation-duration:92s}
@keyframes workx-slide-l{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
@keyframes workx-slide-r{from{transform:translate3d(-50%,0,0)}to{transform:translate3d(0,0,0)}}
/* No hover-pause (Sami, 2026-12-01): hovering the band does nothing;
   all three rows keep sliding on their own. */
/* Off-screen pause (glide pass, 2026-12-01): an IntersectionObserver
   in index.html toggles .mq-paused on #work when the section leaves
   the viewport, so the three loops stop consuming frames while
   nobody can see them; they resume from the same spot on return. */
.mq-paused .workx-mtrack,.mq-paused .workx-itrack{animation-play-state:paused}

/* ---------- Skills marquees ---------- */
.workx-mgroup{display:flex;align-items:center;gap:46px;padding-right:46px}
.workx-skill{font-size:22px;font-weight:500;letter-spacing:.04em;color:var(--workx-ink);white-space:nowrap}
.workx-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--workx-accent)}

/* ---------- Device frames ----------
   One .workx-igroup = the full frame set; the track holds two groups.
   Frames share one band height and keep their natural widths: tablet
   screens are 16:10, phone screens 9:19 with the cover cropped
   (object-fit:cover, phones biased to the top of the screenshot). */
.workx-igroup{display:flex;align-items:center;gap:36px;padding-right:36px}
.workx-frame{
  flex:none;margin:0;height:var(--workx-bandh);
  background:#0A0A0C;border:1px solid rgba(255,255,255,.16);
  /* No drop shadow behind the frames/band (Sami, 2026-12-01): the
     bezel border alone defines the frame on the silk. */
  box-shadow:none;
}
.workx-frame-tab{padding:15px;border-radius:26px}
.workx-frame-phone{padding:13px;border-radius:40px}
.workx-screen{position:relative;height:100%;overflow:hidden;background:#111}
.workx-frame-tab .workx-screen{aspect-ratio:16/10;border-radius:13px}
.workx-frame-phone .workx-screen{aspect-ratio:9/19;border-radius:28px}
/* Phone notch pill */
.workx-frame-phone .workx-screen::after{
  content:"";position:absolute;top:8px;left:50%;transform:translateX(-50%);
  width:36%;height:13px;border-radius:999px;background:#0A0A0C;
}
.workx-screen img{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none;user-select:none}
.workx-img.workx-pos-top{object-position:50% 6%}

/* ---------- "See more work" glow button (mobile only, kept from the
   carousel build) — same recipe as the Services glow button,
   workx-scoped. Hidden on desktop. ---------- */
.workx-more{display:none}
.workx-glow-btn{
  --mx:50%; --my:-30%;
  position:relative; isolation:isolate; overflow:hidden;
  display:inline-flex; align-items:center; justify-content:center;
  padding:16px 33px; border-radius:999px;
  background:
    radial-gradient(120% 170% at 12% 115%,rgba(193,8,1,.36),rgba(193,8,1,0) 55%),
    #0A0503;
  border:1px solid rgba(255,255,255,.2);
  color:#F9F9F9; font-family:"Archivo",system-ui,sans-serif;
  font-size:14.5px; font-weight:700; letter-spacing:.01em;
  text-decoration:none; cursor:pointer;
  transition:border-color .35s ease,box-shadow .35s ease;
}
.workx-glow-btn .workx-gb-label{position:relative;z-index:3;pointer-events:none;white-space:nowrap}
.workx-glow-btn .workx-gb-glow{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(circle 155px at var(--mx) var(--my),rgba(255,122,26,.95) 0%,rgba(232,80,2,.45) 34%,rgba(232,80,2,0) 68%);
  opacity:.3; transition:opacity .35s ease;
}
.workx-glow-btn .workx-gb-dots{
  position:absolute;inset:0;z-index:2;pointer-events:none;
  background-image:radial-gradient(rgba(255,176,102,.6) 1.1px,transparent 1.6px);
  background-size:7px 7px;
  -webkit-mask-image:radial-gradient(circle at var(--mx) var(--my),#000 0 26%,transparent 62%);
  mask-image:radial-gradient(circle at var(--mx) var(--my),#000 0 26%,transparent 62%);
  opacity:.5; transition:opacity .35s ease;
}
.workx-glow-btn::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(to top,rgba(241,96,1,.5),rgba(241,96,1,0) 55%);
  -webkit-mask-image:radial-gradient(130% 120% at var(--mx) 120%,#000 0 30%,transparent 72%);
  mask-image:radial-gradient(130% 120% at var(--mx) 120%,#000 0 30%,transparent 72%);
  opacity:0; transition:opacity .35s ease;
}
@media (hover:hover) and (pointer:fine){
  .workx-glow-btn:hover{border-color:rgba(241,96,1,.8);box-shadow:0 10px 34px rgba(232,80,2,.22)}
  .workx-glow-btn:hover .workx-gb-glow{opacity:1}
  .workx-glow-btn:hover .workx-gb-dots{opacity:1}
  .workx-glow-btn:hover::after{opacity:1}
}
.workx-glow-btn:focus-visible{outline:2px solid var(--workx-red);outline-offset:3px}

/* ---------- Mobile ----------
   Breakpoint extended to 820px and the band zoomed out (Sami,
   2026-12-01): at 280px the tablet frames measured 436px wide —
   wider than a phone viewport, so a frame could never be seen
   whole. At 218px a tablet frame is ~337px and a phone frame
   ~113px, so a full frame fits comfortably on a 390px phone.
   Frame widths follow the band height via the screen aspect
   ratios, so both duplicate groups stay identical and the loop
   remains exactly 2x group width. */
@media (max-width:820px){
  .workx-feat{--workx-bandh:218px;padding:64px 0 76px}
  .workx-fhead{margin-bottom:36px;padding:0 16px}
  .workx-band + .workx-band{margin-top:36px}
  .workx-mgroup{gap:30px;padding-right:30px}
  .workx-skill{font-size:16px}
  .workx-igroup{gap:22px;padding-right:22px}
  .workx-frame-tab{padding:9px;border-radius:18px}
  .workx-frame-phone{padding:8px;border-radius:26px}
  .workx-frame-tab .workx-screen{border-radius:10px}
  .workx-frame-phone .workx-screen{border-radius:20px}
  .workx-frame-phone .workx-screen::after{top:6px;height:10px}
  .workx-more{display:flex;justify-content:center;margin-top:30px;padding:0 16px}
}

/* ---------- Reduced motion: loops rest, everything stays visible ---------- */
@media (prefers-reduced-motion:reduce){
  .workx-mtrack,.workx-itrack{animation:none !important}
}
