/* ════════════════════════════════════════════
   projects.css : cream editorial 65/35 split
   per-project pin + stacked thumb (no zoom)
   ════════════════════════════════════════════ */

.fw-proj-section {
  padding: 0;
  background: var(--bg-projects);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

/* ── Sticky frame: 100vh, di-pin oleh ScrollTrigger ── */
.fw-proj-sticky {
  position: relative;
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--nav-h) + 36px) 0 56px;
  gap: 28px;
  overflow: hidden;
}

/* Ghost text deep background, parallax horizontal across pin */
.fw-proj-ghost {
  position: absolute;
  left: 0;
  bottom: 4%;
  z-index: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(150px, 26vw, 400px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--text);
  opacity: 0.022;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.fw-proj-meta,
.fw-proj-body,
.fw-proj-dots {
  position: relative;
  z-index: 2;
}

/* ── Meta top: "(03) Selected Work" ── "NN / 05" ── */
.fw-proj-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 0 56px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.fw-proj-meta-left,
.fw-proj-meta-right {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.fw-proj-meta-num {
  color: var(--text-2);
}
.fw-proj-meta-label {
  color: var(--text);
}
.fw-proj-meta-right {
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}
.fw-proj-meta-sep {
  opacity: 0.5;
}

/* ── Body: 65 / 35 split ── */
.fw-proj-body {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 56px;
  align-items: center;
  padding: 0 56px;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}

/* ── LEFT: big number + title + copy + cta ── */
.fw-proj-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
}

.fw-proj-num-wrap {
  height: clamp(96px, 11vw, 168px);
  overflow: hidden;
  position: relative;
  margin-bottom: -8px;
}
.fw-proj-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(96px, 11vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text-3);
  opacity: 0.65;
  user-select: none;
  will-change: transform, opacity;
}

.fw-proj-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.28em;
}
.fw-proj-word {
  display: inline-block;
  overflow: hidden;
  line-height: 1.05;
}
.fw-proj-word-inner {
  display: inline-block;
  will-change: transform;
}

.fw-proj-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 6px 0 0;
  max-width: 520px;
  will-change: opacity, transform;
}

.fw-proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  will-change: opacity, transform;
}
.fw-proj-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: transparent;
}

.fw-proj-cta {
  align-self: flex-start;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
  will-change: opacity, transform;
}
.fw-proj-cta-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fw-proj-cta:hover {
  background: var(--text);
  color: var(--bg);
}
.fw-proj-cta:hover .fw-proj-cta-arrow {
  transform: translateX(4px);
}
.fw-proj-cta--disabled {
  pointer-events: none;
  opacity: 0.4;
  border-color: var(--border-strong);
  color: var(--text-3);
}

/* ── RIGHT: static thumbnail (no zoom) ── */
.fw-proj-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.fw-proj-thumb {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 rgba(21, 20, 15, 0.04),
    0 18px 40px rgba(21, 20, 15, 0.08);
}
.fw-proj-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease;
  will-change: opacity;
}
.fw-proj-thumb-img.is-active {
  opacity: 1;
}
.fw-proj-thumb-img.is-fit-contain {
  object-fit: contain;
  background: var(--bg-1);
  padding: 24px;
}

/* OFFLINE state */
.fw-proj-thumb.is-offline .fw-proj-thumb-img.is-active {
  filter: grayscale(0.85) brightness(0.94);
}
.fw-proj-offline-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 5px 10px;
  border-radius: 99px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fw-proj-thumb.is-offline .fw-proj-offline-badge {
  opacity: 1;
}

/* ── Dots indicator (bottom): horizontal lines ── */
.fw-proj-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 56px;
}
.fw-proj-dot {
  width: 22px;
  height: 2px;
  background: var(--border-strong);
  transition: background 0.35s ease, transform 0.35s ease;
  transform-origin: center;
}
.fw-proj-dot.is-active {
  background: var(--text);
  transform: scaleY(2);
}

/* ── More: GitHub link below section ── */
.fw-proj-more {
  position: relative;
  background: var(--bg-projects);
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.fw-proj-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 38%;
  max-width: 360px;
  height: 1px;
  background: var(--border);
  transform: translateX(-50%);
  pointer-events: none;
}
.fw-proj-more-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.fw-proj-more-arrow {
  display: inline-block;
  font-size: 13px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fw-proj-more-link:hover {
  background: var(--text);
  color: var(--bg);
}
.fw-proj-more-link:hover .fw-proj-more-arrow {
  transform: translateX(4px);
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .fw-proj-body {
    gap: 40px;
    padding: 0 40px;
  }
  .fw-proj-meta,
  .fw-proj-dots {
    padding: 0 40px;
  }
}

@media (max-width: 900px) {
  .fw-proj-sticky {
    padding: calc(var(--nav-h) + 24px) 0 40px;
    gap: 22px;
  }
  .fw-proj-meta,
  .fw-proj-dots {
    padding: 0 24px;
    font-size: 10px;
  }
  .fw-proj-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 24px;
    align-content: center;
  }
  .fw-proj-right {
    order: -1;
    justify-content: center;
  }
  .fw-proj-thumb {
    max-width: 320px;
    aspect-ratio: 4 / 5;
  }
  .fw-proj-num-wrap {
    height: clamp(64px, 14vw, 92px);
  }
  .fw-proj-num {
    font-size: clamp(64px, 14vw, 92px);
  }
  .fw-proj-title {
    font-size: clamp(32px, 8vw, 48px);
  }
  .fw-proj-desc {
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .fw-proj-cta {
    padding: 10px 18px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }
  .fw-proj-more {
    padding: 56px 20px;
  }
  .fw-proj-more-link {
    font-size: 11px;
    padding: 12px 20px;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 480px) {
  .fw-proj-meta,
  .fw-proj-dots {
    padding: 0 18px;
  }
  .fw-proj-body {
    padding: 0 18px;
  }
  .fw-proj-thumb {
    max-width: 260px;
  }
  .fw-proj-dot {
    width: 16px;
  }
  .fw-proj-more {
    padding: 44px 16px;
  }
  .fw-proj-more-link {
    font-size: 10px;
    padding: 10px 16px;
    gap: 10px;
  }
}
