/* ═══════════════════════════════════════════════════════════
   PROJECTS PAGE STYLES
═══════════════════════════════════════════════════════════ */

/* ─── PROJECT CARD CURSOR ───────────────────────────────── */
.cursor-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
}

.cursor-view span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #E9C91C;
  text-transform: uppercase;
}

/* ─── HERO ──────────────────────────────────────────────── */
.projects-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-hero .navbar {
  position: absolute;
  z-index: 20;
}

/* 50vw gradient fades on left and right — sit above carousel, below title */
.projects-hero::before,
.projects-hero::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50vw;
  z-index: 5;
  pointer-events: none;
}

.projects-hero::before {
  left: 0;
  background: linear-gradient(to right, #000 30%, transparent 100%);
}

.projects-hero::after {
  right: 0;
  background: linear-gradient(to left, #000 30%, transparent 100%);
}

/* ─── CAROUSEL ───────────────────────────────────────────── */
.projects-carousel-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: rotate(-10deg);
  transform-origin: center center;
}

.projects-card {
  position: absolute;
  top: 50%;
  left: 0;
  width: 280px;
  height: 400px;
  border-radius: 0;
  overflow: hidden;
  will-change: transform, opacity;
}

.projects-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark overlay — desktop only */
@media (min-width: 901px) {
  .projects-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    pointer-events: none;
    z-index: 1;
  }
}

/* ─── HERO TITLE ─────────────────────────────────────────── */
.projects-hero-title-wrap {
  position: relative;
  z-index: 10;
  perspective: 800px;
  text-align: center;
}

.projects-hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: clamp(64px, 11vw, 156px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1;
  gap: 0;
}

.plw {
  display: inline-block;
  overflow: hidden;
  line-height: 1.15;
}

.pl {
  display: inline-block;
  transform-origin: center bottom;
}

/* ─── PROJECTS GRID SECTION ─────────────────────────────── */
.projects-grid-section {
  background: #fff;
  padding-top: 58px;
}

/* ─── FILTER BAR ─────────────────────────────────────────── */
.projects-filter-bar {
  display: flex;
  align-items: center;
  padding: 0 32px 0;
  border-bottom: 1px solid var(--gs-300);
  margin-bottom: 48px;
  gap: 0;
}

.pf-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gs-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 20px;
  position: relative;
  transition: color 0.2s;
}

.pf-btn::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--yellow-600);
  transition: width 0.3s ease;
}

.pf-btn.active {
  color: var(--gs-1100);
}

.pf-btn.active::after {
  width: 100%;
}

.pf-btn:hover:not(.active) { color: var(--gs-700); }

.pf-count {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gs-500);
  padding: 14px 0;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 0 32px;
}

/* ─── PROJECT CARD ───────────────────────────────────────── */
.pci {
  display: block;
  position: relative;
  width: 100%;
  height: 92vh;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* ─── SLIDES ─────────────────────────────────────────────── */
.pci-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pci-slide.active {
  z-index: 1;
}

.pci-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* top scrim — above slides */
.pci::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

/* bottom scrim — above slides */
.pci::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

.pci-top,
.pci-bottom {
  position: absolute;
  left: 24px;
  right: 24px;
  z-index: 6;
}

.pci-top {
  top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pci-bottom {
  bottom: 24px;
}

.pci-service,
.pci-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.pci-name {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

/* ─── GALLERY PROGRESS BAR ──────────────────────────────── */
.pci-progress {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.pci-bar {
  width: 28px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: height 0.35s ease;
}

.pci-bar.active {
  height: 24px;
}

.pci-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--yellow-600);
}

/* ─── LOAD MORE ──────────────────────────────────────────── */
.projects-load-more-wrap {
  margin-top: 60px;
  padding-bottom: 80px;
  display: flex;
  justify-content: center;
}

/* inherits all styling from global .btn */

/* ─── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .projects-carousel-wrap {
    transform: rotate(-6deg);
  }

  .projects-card {
    width: 160px;
    height: 240px;
  }

  .projects-hero-title {
    font-size: clamp(48px, 14vw, 72px);
  }

  /* filter bar */
  .projects-filter-bar {
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    flex-wrap: nowrap;
    margin-bottom: 32px;
  }

  .pf-btn { padding: 12px 14px; font-size: 10px; }
  .pf-count { white-space: nowrap; }

  /* grid */
  .projects-grid {
    padding: 0 20px;
    gap: 32px;
  }

  .pci-name {
    font-size: 22px;
  }

  .projects-load-more-wrap {
    padding: 0 0 60px;
  }

  .btn-load-more {
    width: 100%;
    justify-content: center;
  }
}
