/* ==========================================================================
   WIZKET — Featured Work ("the desk")
   Draggable, throwable project cards over a giant type backdrop.
   Prefix: fw-  · Reuses tokens from style.css. Orange: full stop, one dot per card, CTA arrow on hover.
   ========================================================================== */
.fw {
  --fw-card-w: clamp(250px, 24vw, 400px);   /* five client videos: big enough to read the screens */
  position: relative;
  background: var(--bg);
  color: var(--text);
  padding: clamp(5rem, 9vw, 9rem) 0 clamp(4rem, 6vw, 6rem);
  overflow: clip;
}
.fw__inner { width: min(100% - clamp(2rem, 6vw, 6rem), 1680px); margin-inline: auto; }

.fw__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font: 500 0.75rem/1 "Inter", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.fw__eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text); }
.fw__rule { width: 2.25rem; height: 1px; background: var(--line2); }
.fw__count { font-variant-numeric: tabular-nums; }

/* ---------- stage ---------- */
.fw__stage {
  position: relative;
  height: clamp(680px, 96vh, 1040px);
  margin-top: clamp(1rem, 2vw, 2rem);
  touch-action: pan-y;
}
.fw__title {
  position: absolute; inset: 0; z-index: 0; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: "Anton", "Arial Narrow", Impact, sans-serif; font-weight: 400;
  font-size: clamp(5.5rem, 23vw, 22rem); line-height: 0.84; letter-spacing: -0.005em;
  text-transform: uppercase; text-align: center; pointer-events: none; user-select: none;
}
.fw__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.fw__line > span { display: block; }
.fw__line:first-child > span {
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
}
.fw__dot { color: var(--accent); font-style: normal; }

/* ---------- cards ---------- */
.fw-card {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: var(--fw-card-w); aspect-ratio: 4 / 5;
  cursor: grab; touch-action: none; will-change: transform;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  border-radius: clamp(14px, 1.6vw, 24px);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.4s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.fw-card.is-drag { cursor: grabbing; box-shadow: 0 46px 80px -26px rgba(0, 0, 0, 0.7); }
.fw-card__in { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--steel); transform: translateZ(0); }
.fw-card__img {
  position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover;
  -webkit-user-drag: none; pointer-events: none;
  transition: transform 1.1s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.fw-card:hover .fw-card__img, .fw-card.is-drag .fw-card__img { transform: scale(1.07); }
/* client videos: show the whole frame (no 8% overscan), and only a gentle zoom on hover */
.fw-card video.fw-card__img { inset: 0; width: 100%; height: 100%; }
.fw-card:hover video.fw-card__img, .fw-card.is-drag video.fw-card__img { transform: scale(1.03); }
.fw-card__in::after { /* scrim */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(6, 9, 10, 0.82), rgba(6, 9, 10, 0) 58%);
}
.fw-card__top, .fw-card__foot {
  position: absolute; left: 0; right: 0; z-index: 1; padding: clamp(0.7rem, 1.2vw, 1.1rem);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 0.5rem; color: #f2f1ed;
}
.fw-card__top { top: 0; align-items: center; font: 500 0.65rem/1 "Inter", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }
.fw-card__no { display: inline-flex; align-items: center; gap: 0.45rem; }
.fw-card__no::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.fw-card__tag { opacity: 0.8; }
.fw-card__foot { bottom: 0; }
.fw-card__name {
  margin: 0; font: 400 clamp(1.7rem, 3vw, 3.4rem)/0.95 "Anton", Impact, sans-serif; text-transform: uppercase;
}
.fw-card a, .fw-card img { -webkit-user-drag: none; user-drag: none; }
.fw-card__name a { color: inherit; text-decoration: none; }
.fw-card__name a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.fw-card__yr { font: 500 0.65rem/1 "Inter", sans-serif; letter-spacing: 0.12em; opacity: 0.7; }
/* light media (a white video): black type, smaller name, no scrim */
.fw-card--light .fw-card__in::after { display: none; }
.fw-card--light, .fw-card--light.is-drag { box-shadow: none; }   /* flat: no 3D lift shadow on this one */
/* the type sits on small solid white labels so it reads over any frame of the video */
.fw-card--light .fw-card__no, .fw-card--light .fw-card__tag, .fw-card--light .fw-card__name, .fw-card--light .fw-card__yr {
  background: #fff; border-radius: 999px; padding: 0.4em 0.7em;
}
.fw-card--light .fw-card__name { border-radius: 0.35em; padding: 0.3em 0.45em 0.22em; line-height: 1; }
.fw-card--light .fw-card__top, .fw-card--light .fw-card__foot { color: #121517; align-items: center; }
.fw-card--light .fw-card__top { align-items: center; }
.fw-card--light .fw-card__tag, .fw-card--light .fw-card__yr { opacity: 0.75; }
.fw-card--light .fw-card__name { font-size: clamp(1.05rem, 1.6vw, 1.7rem); letter-spacing: 0.01em; }
.fw-card--long .fw-card__name { font-size: clamp(1.15rem, 1.9vw, 2rem); max-width: 6em; }   /* longer client names: smaller, on two lines, clear of the next card */
.fw-card__meta { /* hover-only line */
  position: absolute; left: 0; right: 0; bottom: 100%; padding: 0 clamp(0.7rem, 1.2vw, 1.1rem) 0.35rem;
}

/* ---------- cursor chip (fine pointers only) ---------- */
.fw-cursor {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0;
  padding: 0.55rem 0.9rem; border-radius: 999px; background: var(--text); color: var(--bg);
  font: 600 0.65rem/1 "Inter", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  transition: opacity 0.3s ease;
}
.fw-cursor.is-on { opacity: 1; }

/* ---------- footer row ---------- */
.fw__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.fw__hint { display: flex; align-items: center; gap: 1.25rem; font: 400 0.9rem/1.4 "Inter", sans-serif; color: var(--muted); }
.fw__reset {
  font: 500 0.7rem/1 "Inter", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  background: none; border: 1px solid var(--line2); padding: 0.7rem 1rem; border-radius: 999px; cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.fw__reset:hover { border-color: var(--text); }
.fw__reset:focus-visible, .fw__cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.fw__cta {
  display: inline-flex; align-items: center; gap: 1.1rem; color: var(--text); text-decoration: none;
  font: 400 clamp(1.5rem, 3vw, 2.6rem)/1 "Anton", Impact, sans-serif; text-transform: uppercase; letter-spacing: 0.01em;
}
.fw__cta-txt { position: relative; }
.fw__cta-txt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.2em; height: 1px; background: var(--text);
  transform-origin: left; transform: scaleX(0.0); transition: transform 0.6s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.fw__cta-arrow {
  display: grid; place-items: center; width: 2.6em; height: 2.6em; border: 1px solid var(--line2); border-radius: 50%;
  font-size: 0.55em; overflow: hidden; position: relative;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.fw__cta-arrow svg { width: 1.1em; height: 1.1em; transition: transform 0.5s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
.fw__cta:hover .fw__cta-txt::after { transform: scaleX(1); }
.fw__cta:hover .fw__cta-arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fw__cta:hover .fw__cta-arrow svg { transform: translateX(0.18em); }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .fw { --fw-card-w: 52vw; padding-top: 4.5rem; padding-bottom: 3.5rem; }
  .fw__bar { flex-direction: column; justify-content: center; gap: 0.7rem; text-align: center; }
  .fw__eyebrow { justify-content: center; }
  .fw__eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: var(--line2); }
  .fw__stage { height: calc(var(--fw-card-w) * 1.25 * 3.1); margin-top: 1.25rem; touch-action: pan-y; }
  .fw-card { touch-action: pan-y; }
  .fw__title { font-size: clamp(5rem, 30vw, 9rem); }
  .fw__hint { justify-content: center; text-align: center; }
  .fw__hint span { display: none; }
  .fw__foot { flex-direction: column; align-items: center; gap: 1.1rem; margin-top: 1rem; padding-top: 1.25rem; }
  .fw-card__name { font-size: 1.5rem; }
  .fw-cursor { display: none; }
}
@media (hover: none) { .fw-cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .fw-card__img { transition: none; }
}
