/* ============================================================
 * inks & interfaces — projects showcase page styles
 * ============================================================ */

/* ===== page hero ===== */
.proj-page-hero {
  padding: calc(var(--nav-h) + 80px) var(--gutter) 64px;
  max-width: 1480px;
  margin: 0 auto;
}

.proj-page-hero .section-title {
  margin-top: 12px;
}

.pph-sub {
  font-family: var(--type-body);
  font-size: 18px;
  color: var(--ash);
  max-width: 520px;
  line-height: 1.55;
  margin: 20px 0 40px;
}

/* ===== filter strip ===== */
.filter-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--hairline-2);
  background: transparent;
  color: var(--ash);
  cursor: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s,
    transform 0.3s var(--spring);
}
.filter-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-1px);
}
.filter-btn.active {
  background: var(--coral);
  color: var(--paper);
  border-color: var(--coral);
  box-shadow: 0 6px 16px -6px rgba(217, 72, 64, 0.45);
}

/* ===== projects grid wrapper ===== */
.projects-wrapper {
  padding: 0 var(--gutter) 140px;
  max-width: 1480px;
  margin: 0 auto;
}

#projectsGrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px 24px;
}

/* ===== project card ===== */
.pc-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: none;
  background: var(--cream);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.pc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}

.pc-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.pc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}
.pc-card:hover .pc-img {
  transform: scale(1.05);
}

/* subtle coral underglow on hover */
.pc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow 0.4s;
  pointer-events: none;
}
.pc-card:hover::after {
  box-shadow: inset 0 -3px 0 0 var(--coral);
}

.pc-meta-bar {
  padding: 20px 20px 18px;
}
.pc-eyebrow {
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--coral);
  text-transform: lowercase;
  display: block;
  margin-bottom: 7px;
}
.pc-name {
  font-family: var(--type-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 32px);
  letter-spacing: -0.035em;
  text-transform: lowercase;
  color: var(--ink);
  line-height: 1.05;
  margin: 0 0 10px;
}
.pc-tags {
  font-family: var(--type-mono);
  font-size: 11px;
  color: var(--ash);
  letter-spacing: 0.04em;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pc-tags em {
  color: var(--coral);
  font-style: normal;
}

/* explore pill — floats over the image on hover */
.pc-hover-cta {
  position: absolute;
  bottom: calc(20px + 18px + 10px + 1.05em * 2.2vw + 20px); /* above meta bar */
  bottom: 78px;
  left: 20px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
  pointer-events: none;
}
.pc-card:hover .pc-hover-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* reuse wt-cta-pill from main styles */
.pc-hover-cta .wt-cta-pill {
  cursor: none;
}

/* ===== project overlay ===== */
.proj-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.proj-overlay.is-open {
  pointer-events: all;
  opacity: 1;
}

.po-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.po-panel {
  position: relative;
  width: 100%;
  max-height: 92vh;
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.po-panel::-webkit-scrollbar {
  display: none;
}
.proj-overlay.is-open .po-panel {
  transform: translateY(0);
}

/* ---- top bar (sticky) ---- */
.po-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(251, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.po-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  cursor: none;
  transition: background 0.2s, color 0.2s, transform 0.3s var(--spring);
  border: 0;
  font-family: var(--type-display);
}
.po-close:hover {
  background: var(--coral);
  color: var(--paper);
  transform: rotate(90deg);
}
.po-nav-btns {
  display: flex;
  gap: 10px;
}
.po-nav-btns button {
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ash);
  background: var(--cream);
  padding: 9px 16px;
  border-radius: 999px;
  border: 0;
  cursor: none;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
  min-width: 100px;
}
.po-nav-btns button:hover:not(:disabled) {
  background: var(--coral);
  color: var(--paper);
}
.po-nav-btns button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
#poNext {
  text-align: right;
}

/* ---- cover image ---- */
.po-cover-wrap {
  overflow: hidden;
}
.po-cover-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
  transition: transform 8s linear;
}
.proj-overlay.is-open .po-cover-img {
  transform: scale(1.04);
}

/* ---- body ---- */
.po-body {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 64px;
  padding: 52px 48px 80px;
  max-width: 1480px;
  margin: 0 auto;
}

/* ---- meta column ---- */
.po-proj-eyebrow {
  font-family: var(--type-mono);
  font-size: 11px;
  color: var(--coral);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  display: block;
  margin-bottom: 12px;
}
.po-proj-title {
  font-family: var(--type-display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 72px);
  text-transform: lowercase;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0 0 20px;
  color: var(--ink);
}
.po-sub {
  color: var(--ash);
  font-weight: 400;
}
.po-proj-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.po-proj-tags em {
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  background: var(--cream);
  border: 1px solid var(--hairline);
  color: var(--coral);
  font-style: normal;
  padding: 5px 12px;
  border-radius: 999px;
}

.po-narrative {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.po-nar-section h5 {
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--coral);
  margin: 0 0 8px;
}
.po-nar-section p {
  font-size: 16px;
  color: var(--ash);
  line-height: 1.65;
  margin: 0;
}

/* ---- gallery column ---- */
.po-gal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.po-gal-item {
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
}
.po-gal-item.po-gal-hero {
  grid-column: 1 / -1;
}
.po-gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
  transition: transform 0.6s var(--ease-out);
  cursor: zoom-in;
}
.po-gal-item.po-gal-hero img {
  aspect-ratio: 16 / 9;
}
.po-gal-item:hover img {
  transform: scale(1.03);
}

/* ===== gallery lightbox ===== */
#galLightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#galLightbox.lb-open {
  opacity: 1;
  pointer-events: all;
}
.lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#galLightbox.lb-open .lb-img {
  transform: scale(1);
}
.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lb-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ===== responsive ===== */
@media (max-width: 1100px) {
  #projectsGrid {
    grid-template-columns: 1fr 1fr;
  }
  #projectsGrid .pc-card {
    grid-column: span 1 !important;
    margin-top: 0 !important;
  }
  .po-body {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 40px 32px 72px;
  }
  .po-cover-img { aspect-ratio: 16 / 9; }
}

@media (max-width: 760px) {
  /* page hero */
  .proj-page-hero {
    padding: calc(var(--nav-h) + 36px) var(--gutter) 36px;
  }
  .proj-page-hero .section-title { font-size: clamp(36px, 10vw, 56px); }
  .pph-sub { font-size: 15px; margin-top: 16px; }

  /* filter strip */
  .filter-strip {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* project grid */
  #projectsGrid { grid-template-columns: 1fr; }

  /* overlay panel */
  .po-panel { max-height: 96vh; border-radius: 20px 20px 0 0; }
  .po-topbar { padding: 12px 16px; }
  .po-nav-btns button {
    min-width: 64px;
    font-size: 10px;
    padding: 6px 10px;
  }
  .po-cover-img { aspect-ratio: 4 / 3; }
  .po-body {
    grid-template-columns: 1fr;
    padding: 24px 16px 60px;
    gap: 32px;
  }
  .po-proj-title { font-size: 28px; }
  .po-nar-section h5 { font-size: 10px; }
  .po-nar-section p  { font-size: 15px; }

  /* gallery */
  .po-gal-grid { grid-template-columns: 1fr; }
  .po-gal-item.po-gal-hero { grid-column: span 1; }
  .po-gal-item img, .po-gal-item.po-gal-hero img { aspect-ratio: 16 / 9; }

  /* lightbox */
  .lb-img { max-width: 96vw; max-height: 80vh; border-radius: 10px; }
  .lb-close { top: 12px; right: 12px; }
}
