/* ============================================================
   WORK PAGE
   ============================================================ */

/* Hero */
.work-hero {
  padding: 160px 48px 80px;
  background: var(--black);
  text-align: center;
}

.work-hero .section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: rgba(245, 244, 240, 0.7);
  margin-bottom: 12px;
}

.work-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 78px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-top: 16px;
}

/* Filter pills */
.work-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.work-filter {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid rgba(245, 244, 240, 0.2);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: all 0.3s ease;
}

.work-filter:hover {
  border-color: rgba(245, 244, 240, 0.5);
  color: var(--white);
}

.work-filter.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Active nav link */
.nav-active {
  color: var(--white) !important;
}

/* Card transition for filtering */
.work-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.3s ease;
}

/* Project Grid */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 48px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.work-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.work-card {
  border: 1px solid transparent;
}

.work-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(245, 244, 240, 0.4);
}

/* Wide card — spans full width */
.work-card-wide {
  grid-column: 1 / -1;
  min-height: 500px;
}

/* Card background */
.work-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.work-card-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Dark overlay */
.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.6) 40%, rgba(8, 8, 8, 0.15) 100%);
  transition: background 0.4s ease;
}

.work-card:hover .work-card-overlay {
  background: linear-gradient(to top, rgba(8, 8, 8, 0.85) 0%, rgba(8, 8, 8, 0.4) 40%, rgba(8, 8, 8, 0.1) 100%);
}

/* Card content */
.work-card-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  width: 100%;
}

.work-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.85);
  margin-bottom: 8px;
}

.work-card-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.work-card-sub {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(245, 244, 240, 0.8);
  max-width: 500px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .work-hero {
    padding: 120px 20px 60px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 80px;
  }

  .work-card {
    min-height: 300px;
  }

  .work-card-wide {
    min-height: 350px;
  }

  .work-card-content {
    padding: 24px;
  }
}
