/* ============================================================
   2AM CREW — projects.html specific styles
   extends style.css (base layer)
   ============================================================ */

/* ---------- PAGE HERO (collage) ---------- */
.projects-hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
@media (min-width: 768px) { .projects-hero { height: 85vh; } }
.projects-hero .collage img {
  position: absolute;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.projects-hero .collage .c1 {
  top: 0; left: 0;
  width: 55%; height: 70%;
  opacity: 0.12;
}
.projects-hero .collage .c2 {
  top: 15%; right: 0;
  width: 50%; height: 65%;
  opacity: 0.08;
}
.projects-hero .collage .c3 {
  bottom: 0; left: 30%;
  width: 45%; height: 55%;
  opacity: 0.06;
}
.projects-hero .fade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(8,8,8,0.6) 45%, rgba(8,8,8,0.3) 100%);
  z-index: 1;
}
.projects-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) 3rem;
}
@media (min-width: 768px) { .projects-hero-content { padding: 0 var(--gutter-lg) 5rem; } }
.projects-meta {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: #404040;
  display: block;
  margin-bottom: 1rem;
}
.projects-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.82;
  font-size: clamp(5rem, 20vw, 22rem);
  letter-spacing: -0.01em;
  font-feature-settings: "kern" 1, "ss01" 1;
  animation: clipUp 1s var(--ease-chrome) 0.2s both;
}
.projects-intro {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.95vw, 0.78rem);
  color: var(--text-mute);
  max-width: 36ch;
  line-height: 1.6;
  margin-top: 1.5rem;
  text-wrap: balance;
  animation: riseIn 0.9s var(--ease-chrome) 0.8s both;
}

/* ---------- FILTER ---------- */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 8, 8, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
          backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.filter-bar-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
@media (min-width: 768px) { .filter-bar-inner { padding-inline: var(--gutter-lg); } }
.filter-bar-inner::-webkit-scrollbar { display: none; }
.pill {
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  background: transparent;
  color: #555;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.pill:hover {
  border-color: #555;
  color: var(--text);
}
.pill.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 700;
}
.pill-sep {
  align-self: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  margin: 0 0.5rem;
  flex-shrink: 0;
}

/* ---------- ARTIST SECTION ---------- */
.artist-section {
  position: relative;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s var(--ease-chrome), transform 0.85s var(--ease-chrome);
}
.artist-section + .artist-section { margin-top: 2.5rem; }
.artist-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Giant faint background name */
.bg-name {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(6rem, 14vw, 18rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.artist-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter) 0.75rem;
  flex-wrap: wrap;
}
@media (min-width: 768px) { .artist-head { padding-inline: var(--gutter-lg); } }
.artist-head .title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.artist-head .num {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text-faint);
}
.artist-head h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.005em;
  font-feature-settings: "kern" 1, "ss01" 1;
}
.artist-head .sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

/* Strip scroll */
.strip-scroll {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem var(--gutter);
  scrollbar-width: none;
}
@media (min-width: 768px) { .strip-scroll { padding-inline: var(--gutter-lg); } }
.strip-scroll::-webkit-scrollbar { display: none; }
.strip-img {
  flex: 0 0 auto;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}
.strip-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.4s ease, transform 0.7s var(--ease-chrome);
}
.strip-img:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.counter-line {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12) 0%, transparent 100%);
}

/* ---------- VIDEO SECTIONS ---------- */
.video-divider {
  max-width: var(--max);
  margin: 4rem auto 2rem;
  padding: 0 var(--gutter);
  text-align: center;
}
@media (min-width: 768px) { .video-divider { padding-inline: var(--gutter-lg); } }
.video-divider .label {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #404040;
}
.video-list {
  padding: 0 var(--gutter);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  max-width: var(--max);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .video-list { padding-inline: var(--gutter-lg); }
  .video-list.cols-2 { grid-template-columns: 1fr 1fr; }
  .video-list.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .video-list.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.video-list.single { max-width: calc(var(--max) * 0.7); }
.vframe {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.vframe .box {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.vframe .box iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  /* Chrome cursor stays visible over Vimeo previews permanently.
     Clicks on the .box wrapper toggle play/pause via postMessage
     because the iframe never re-enables pointer-events. */
  pointer-events: none;
}
.vframe .box { cursor: pointer; }
.vframe .cap {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: #555;
  letter-spacing: 0.05em;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-active {
  display: flex;
  opacity: 1;
}
.lightbox img {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lb-btn {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(16,16,16,0.3);
  color: var(--text);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.lb-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
}
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #666;
  letter-spacing: 0.1em;
}

/* Nav active state for Work */
.nav-link.is-active {
  color: var(--text);
}
.nav-link.is-active::after {
  width: 100%;
}
