/* ==========================================================================
   work.css
   Scoped styles for the Work page.
   Namespaced under .work-page so it can never leak into or be
   overridden by styles.css, regardless of <link> order.
   ========================================================================== */

.work-page {
  --red: #e60012;
  --ink: #0a090c;
  --paper: #121115;
  --surface: #161519;
  background: var(--ink) !important;
  color: #fff !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.work-page .hero-paper {
  background: #fff;
  color: #000;
}

.work-page .red {
  color: var(--red);
}

.work-page .chips-section {
  background: #fff;
}

.work-page .chips-section .chip {
  border-color: rgba(0,0,0,0.18);
  color: #000;
}

.work-page .work-grid-section {
  color: #000;
}

.work-page .work-grid-section .work-grid article h3,
.work-page .work-grid-section .work-grid article > p,
.work-page .work-grid-section #workShownCount {
  color: #000;
}

.work-page .work-grid-section .work-grid article h3 {
  text-transform: uppercase;
  letter-spacing: 0.015em;
  font-weight: 400;
}

.work-page .work-grid-section .work-grid article .label {
  color: #fff;
}

.work-page .chips-section .chip:hover {
  border-color: rgba(0,0,0,0.4);
  color: #000;
}

.work-page .chips-section .chip.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.work-page .footer {
  margin-top: 0;
}

.work-page .hero-video-only {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.work-page .hero-video-only .hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.work-page .chip {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.work-page .chip:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.work-page .chip.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.work-page .img-placeholder {
  background: var(--surface);
}

/* ============ HOVER LOGO REVEAL ============ */
.work-page .work-logo-reveal {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,9,12,0.72);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.work-page .work-logo-reveal img {
  width: auto;
  height: auto;
  max-width: 62%;
  max-height: 42%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.work-page .work-grid article:hover .work-logo-reveal {
  opacity: 1;
}
