#work {
  padding: 8rem 3rem;
  overflow: hidden;
}

.work-inner {
  max-width: 1380px;
  margin: 0 auto;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.4rem;
}

.wcard {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
  cursor: none;
  will-change: transform;
  transition: box-shadow .4s;
}
.wcard:hover { box-shadow: 0 0 0 1px rgba(255,77,0,.18); }
.wcard:first-child { grid-row: span 2; min-height: 680px; }
.wcard:not(:first-child) { min-height: 330px; }

.wcard-bg {
  position: absolute;
  inset: 0;
  transition: transform .7s cubic-bezier(.23,1,.32,1);
}
.wcard:hover .wcard-bg { transform: scale(1.055); }

.wcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,.07) 3px, rgba(0,0,0,.07) 4px
  );
  opacity: 0;
  transition: opacity .45s;
  pointer-events: none;
  z-index: 4;
}
.wcard:hover::after { opacity: 1; }

.wcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,.92) 0%, rgba(13,13,13,.12) 55%, transparent 100%);
  z-index: 3;
}

.wcard-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  z-index: 5;
}

.wcard-num {
  font-family: 'Clash Display', sans-serif;
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .28em;
  color: var(--orange);
  margin-bottom: .5rem;
}

.wcard-title {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -.015em;
  line-height: 1.08;
  transform: skewX(-2.5deg);
}

.wcard-tags {
  display: flex;
  gap: .4rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

.wtag {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(107,101,96,.25);
  padding: .2rem .6rem;
  border-radius: 2rem;
  transition: border-color .3s, color .3s;
}
.wcard:hover .wtag {
  border-color: rgba(255,77,0,.3);
  color: rgba(245,240,232,.7);
}

.wcard-line {
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width .5s cubic-bezier(.77,0,.175,1);
  z-index: 6;
}
.wcard:hover .wcard-line { width: 100%; }

/* ── WORK TOP ROW ───────────────────────────── */
.work-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  gap: 2rem;
}
.work-counter {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-shrink: 0;
}
.wc-num {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 7vw, 8rem);
  letter-spacing: -.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,77,0,.5);
  position: relative;
}
.wc-num::after {
  content: attr(data-val);
  position: absolute; inset: 0;
  color: var(--orange);
  -webkit-text-stroke: 0;
  clip-path: inset(100% 0 0 0);
  animation: counterFill 1.2s cubic-bezier(.77,0,.175,1) 1s forwards;
}
@keyframes counterFill {
  to { clip-path: inset(0% 0 0 0); }
}
.wc-label {
  font-family: 'Clash Display', sans-serif;
  font-size: .54rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

/* ── WCARD ENHANCEMENTS ─────────────────────── */
/* Scan line on hover */
.wcard-scan {
  position: absolute; left: 0; right: 0; height: 2px; top: -2px;
  background: linear-gradient(to right, transparent, rgba(255,77,0,.7), transparent);
  z-index: 5; pointer-events: none;
  transition: none;
}
.wcard:hover .wcard-scan {
  animation: scanCard .6s ease forwards;
}
@keyframes scanCard {
  from { top: 0%; }
  to   { top: 100%; }
}
