/* ============== WORK PAGE — simple card grid ============== */
/* Title + subtitle, animated stat ribbon, and a grid of case-study cards.
   Type, color, and section system inherit from styles.css.
   Work page is intentionally monochrome — no warm accent. */

/* Flush consecutive sections — no rounded corner reveal between blocks */
.work-page .sec { border-top-left-radius: 0; border-top-right-radius: 0; }
.work-page { background: #0a0a0a; }

/* ---------- HERO ---------- */
.wpx-hero {
  padding-top: 130px;
  padding-bottom: 0;
}
.wpx-hero .sec-inner { padding-bottom: 44px; }

.wpx-hero__title {
  font-size: clamp(60px, 9vw, 156px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 14px 0 32px;
  color: #f4f1ea;
  font-weight: 400;
  max-width: 1400px;
  text-wrap: balance;
}
.wpx-hero__title .it {
  font-style: italic;
  color: #f4f1ea;
}

.wpx-hero__sub {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: #c8c2b6;
  max-width: 720px;
  text-wrap: pretty;
  margin: 0;
}

/* ---------- CASE STUDIES ---------- */
.wpx-cases {
  padding-top: 28px;
  padding-bottom: 120px;
  border-top: 1px solid rgba(244,241,234,0.08);
}
.wpx-cases__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.wpx-cases__hint {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 17px;
  color: #a09c91;
  margin: 0;
}

/* Grid */
.wpx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.wpx-card {
  display: flex;
  flex-direction: column;
  background: rgba(244,241,234,0.03);
  border: 1px solid rgba(244,241,234,0.08);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s ease, background .25s ease;
}
.wpx-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244,241,234,0.18);
  background: rgba(244,241,234,0.05);
}

/* Cover */
.wpx-card__cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0a0a;
}
.wpx-card__cover::after {
  /* unified film-grain so each brand color reads as part of the same system */
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.10;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.wpx-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .35s ease;
  /* Default: black & white. Hover restores colour. */
  filter: grayscale(1) contrast(1.05);
}
.wpx-card:hover .wpx-card__cover img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1);
}
/* Gradient fallback for cases without a cover image (e.g. OpenArt) */
.wpx-card__cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.wpx-card:hover .wpx-card__cover-fallback { transform: scale(1.04); }
.wpx-card__cover-fallback span {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.02em;
  color: rgba(244, 241, 234, 0.92);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Body — consistent dark chrome for every card */
.wpx-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  border-top: 1px solid rgba(244,241,234,0.06);
}
.wpx-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #807c72;
}
.wpx-card__meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #807c72;
  flex-shrink: 0;
}
.wpx-card__brand {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4f1ea;
}
.wpx-card__title {
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #f4f1ea;
  margin: 0;
  text-wrap: pretty;
  font-weight: 400;
}
/* ---------- CTA at the bottom ---------- */
.wpx-cta {
  margin-top: 80px;
  padding: 44px 52px;
  border-radius: 22px;
  background: rgba(244,241,234,0.04);
  border: 1px solid rgba(244,241,234,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.wpx-cta__copy {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #f4f1ea;
  margin: 0;
  text-wrap: pretty;
}
.wpx-cta__copy .it {
  font-style: italic;
  color: #d4a574;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .wpx-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 700px) {
  .wpx-hero { padding-top: 100px; }
  .wpx-hero .sec-inner { padding-bottom: 60px; }
  .wpx-grid { grid-template-columns: 1fr; }
  .wpx-card__body { padding: 20px 22px 22px; }
  .wpx-card__title { font-size: 20px; }
  .wpx-cta { padding: 28px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .wpx-cases { padding-top: 70px; padding-bottom: 100px; }
  .wpx-cases__head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 480px) {
  .wpx-hero { padding-top: 88px; }
  .wpx-hero .sec-inner { padding-bottom: 44px; }
  .wpx-card__cover { aspect-ratio: 16 / 11; }
  .wpx-card__title { font-size: 18px; }
  .wpx-cta { padding: 22px; border-radius: 18px; }
  .wpx-cases { padding-top: 56px; padding-bottom: 72px; }
}
