/* ============================================================
   K4 Fit-Out — Our Projects page
   Extends the site system (fitout.css + fitout-ui.css). Only
   the header, filter bar and gallery grid are defined here;
   cards reuse the shared .fo-proj-* component styles.
   ============================================================ */

/* ---------------- HEADER ---------------- */
.op-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}
.op-hero-media { position: absolute; inset: 0; z-index: 0; }
.op-hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: foKenburns 30s ease-out forwards;
}
@media (prefers-reduced-motion: reduce) { .op-hero-media img { animation: none; } }
.op-hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.18) 32%, rgba(0,0,0,0.42) 68%, rgba(9,11,16,0.97) 100%),
    linear-gradient(to right, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 60%);
}
.op-hero-content {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--fo-maxw); margin: 0 auto;
  padding: 176px var(--fo-pad-x) 56px;
}
.op-hero-grid {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 5vw, 84px); align-items: end;
}
.op-hero-h1 { font-size: clamp(46px, 7.4vw, 108px); margin-top: 28px; }
.op-hero-lede { max-width: 480px; color: rgba(255,255,255,0.82); }
.op-hero-stats {
  margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--fo-line);
}

/* one-time entrance for header content */
@keyframes opFadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.op-anim { opacity: 0; animation: opFadeUp 1s var(--fo-ease) forwards; }
@media (prefers-reduced-motion: reduce) { .op-anim { opacity: 1; animation: none; } }

/* current page in nav */
.fo-nav-link.is-current { color: var(--fo-white); }
.fo-nav-link.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--fo-gold);
}

/* ---------------- GALLERY ---------------- */
.op-gallery { padding-top: clamp(64px, 8vw, 104px); }
.op-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 52px; padding-bottom: 28px;
  border-bottom: 1px solid var(--fo-line);
}
.op-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.op-chip {
  font-family: var(--fo-font);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fo-fg-2); background: none;
  padding: 11px 20px; border: 1px solid var(--fo-line);
  cursor: pointer; transition: color .3s var(--fo-ease), background .3s var(--fo-ease), border-color .3s var(--fo-ease);
  white-space: nowrap;
}
.op-chip:hover { color: var(--fo-white); border-color: rgba(255,255,255,0.28); }
.op-chip.is-active { background: var(--fo-white); color: #000; border-color: var(--fo-white); }
.op-count {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fo-fg-3); white-space: nowrap;
}

.op-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: 26px; row-gap: clamp(40px, 4vw, 60px);
}

/* gallery cards reuse .fo-proj-card visuals; add scroll-reveal */
.op-card {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s var(--fo-ease), transform 1s var(--fo-ease);
  will-change: opacity, transform;
}
.op-card.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .op-card { opacity: 1 !important; transform: none !important; } }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1000px) {
  .op-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .op-hero-lede { max-width: 560px; }
  .op-grid { grid-template-columns: repeat(2, 1fr); column-gap: 22px; }
}
@media (max-width: 640px) {
  .op-hero { min-height: 74vh; }
  .op-hero-content { padding-top: 132px; }
  .op-grid { grid-template-columns: 1fr; row-gap: 44px; max-width: 460px; margin: 0 auto; }
  .op-bar { flex-direction: column; align-items: flex-start; gap: 18px; }
}
