/* ============================================
   KAYJAH DESIGN STUDIO — Portfolio Page
   Apple HIG–inspired: clarity, depth, deference
   ============================================ */

/*
 * Design tokens (archive-scoped)
 * Reuses --pj-* tokens from .single-project where shared
 */
.post-type-archive-project {
  --pf-radius: 20px;
  --pf-radius-sm: 12px;
  --pf-radius-xs: 8px;
  --pf-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --pf-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --pf-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --pf-shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 12px 40px rgba(0,0,0,0.06);
  --pf-shadow-lg: 0 8px 32px rgba(0,0,0,0.08), 0 24px 64px rgba(0,0,0,0.08);
  --pf-gold: var(--gold);
  --pf-dark: #1a1a1e;
}


/* ═══════════════════════════════
   HERO HEADER — Non-image variant
   Apple HIG: generous space, clear hierarchy
   ═══════════════════════════════ */

.pf-hero {
  padding: calc(var(--space-xl) + 5rem) var(--gutter) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.pf-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.pf-hero-text {
  max-width: 620px;
}

.pf-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pf-gold);
  background: rgba(200, 169, 126, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.pf-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.pf-subtitle {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-2);
  max-width: 460px;
  line-height: 1.7;
}

/* Project count stat — Apple-style numeric accent */
.pf-hero-stat {
  text-align: center;
  flex-shrink: 0;
  padding: 20px 28px;
  border: 1px solid rgba(200, 169, 126, 0.2);
  border-radius: var(--pf-radius-sm);
  background: rgba(200, 169, 126, 0.04);
}

.pf-hero-stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--pf-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.pf-hero-stat-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-muted);
}


/* ═══════════════════════════════
   HERO IMAGE — Apple editorial immersive
   ═══════════════════════════════ */

.pf-hero-image {
  position: relative;
  width: 100%;
  min-height: 520px;
  height: 65vh;
  max-height: 680px;
  overflow: hidden;
}

.pf-hero-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-hero-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.2) 40%,
      rgba(0, 0, 0, 0.05) 70%,
      transparent 100%
    );
  pointer-events: none;
}

.pf-hero-image-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 0 var(--gutter) 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.pf-hero-image-text {
  max-width: 620px;
}

/* Light-on-dark modifiers */
.pf-badge--light {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--pf-gold);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-title--light {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.pf-subtitle--light {
  color: rgba(255, 255, 255, 0.8);
  max-width: 460px;
}

.pf-hero-stat--light {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--pf-radius-sm);
  padding: 20px 28px;
  text-align: center;
}

.pf-hero-stat--light .pf-hero-stat-num {
  color: var(--pf-gold);
}

.pf-hero-stat--light .pf-hero-stat-label {
  color: rgba(255, 255, 255, 0.6);
}

/* Scroll indicator — Apple-style pill */
.pf-hero-scroll {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.pf-hero-scroll-pill {
  width: 24px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.pf-hero-scroll-dot {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: pf-scroll-hint 2s var(--pf-ease) infinite;
}

@keyframes pf-scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.3; }
}

/* Hero entrance animation */
.pf-hero-image-content,
.pf-hero-inner {
  animation: pf-hero-in 1s var(--pf-spring) both;
}

@keyframes pf-hero-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero responsive */
@media (max-width: 900px) {
  .pf-hero-image {
    min-height: 400px;
    height: 55vh;
    max-height: 520px;
  }

  .pf-hero-image-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 48px;
  }

  .pf-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .pf-hero-stat--light,
  .pf-hero-stat {
    align-self: flex-start;
  }
}

@media (max-width: 600px) {
  .pf-hero-image {
    min-height: 340px;
    height: 50vh;
    max-height: 420px;
  }

  .pf-hero-image-content {
    padding-bottom: 40px;
  }

  .pf-hero-stat,
  .pf-hero-stat--light {
    display: none;
  }

  .pf-hero {
    padding-top: calc(var(--space-lg) + 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-hero-image > img {
    transition: none;
  }
  .pf-hero-image-content,
  .pf-hero-inner {
    animation: none;
  }
  .pf-hero-scroll-dot {
    animation: none;
  }
}


/* ═══════════════════════════════
   FILTER BAR — Apple segmented control
   ═══════════════════════════════ */

.pf-filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-sm);
  position: sticky;
  top: 72px;
  z-index: 50;
}

.pf-filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--surface-0);
}

.pf-filter-pill {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.3s var(--pf-ease);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pf-filter-pill:hover {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.02);
}

.pf-filter-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface-0);
}

.pf-filter-pill:active {
  transform: scale(0.96);
  transition-duration: 0.1s;
}

.pf-filter-count {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.5;
}

.pf-filter-pill.active .pf-filter-count {
  opacity: 0.7;
}


/* ═══════════════════════════════
   PROJECT GRID
   ═══════════════════════════════ */

.pf-grid-section {
  padding: var(--space-sm) 0 var(--space-lg);
}

.pf-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}


/* ═══════════════════════════════
   PROJECT CARD — Apple-style
   ═══════════════════════════════ */

.pf-card {
  display: block;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  animation: pf-card-in 0.6s var(--pf-spring) forwards;
  animation-delay: var(--card-delay, 0s);
}

@keyframes pf-card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Featured card — spans full width */
.pf-card--featured {
  grid-column: 1 / -1;
}

/* Card image container */
.pf-card-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--pf-radius-sm);
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  box-shadow: var(--pf-shadow-sm);
  transition: box-shadow 0.5s var(--pf-ease), transform 0.5s var(--pf-ease);
}

.pf-card:hover .pf-card-visual {
  box-shadow: var(--pf-shadow-md);
  transform: translateY(-4px);
}

.pf-card--featured .pf-card-visual {
  aspect-ratio: 21 / 9;
  border-radius: var(--pf-radius);
}

.pf-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--pf-ease);
}

.pf-card:hover .pf-card-visual img {
  transform: scale(1.04);
}

/* Hover overlay */
.pf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--pf-ease);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
}

.pf-card:hover .pf-card-overlay {
  opacity: 1;
}

.pf-card-view {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s 0.1s, transform 0.3s 0.1s var(--pf-spring);
}

.pf-card:hover .pf-card-view {
  opacity: 1;
  transform: translateY(0);
}

/* Card body */
.pf-card-body {
  padding: 0 4px;
}

.pf-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pf-card-cat {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pf-gold);
}

.pf-card-year {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
}

.pf-card-year::before {
  content: '·';
  margin-right: 8px;
  opacity: 0.4;
}

.pf-card-name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.pf-card:hover .pf-card-name {
  color: var(--accent);
}

.pf-card-loc {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pf-card-loc svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Empty state */
.pf-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-lg) var(--gutter);
}

.pf-empty-icon {
  color: var(--ink-muted);
  opacity: 0.3;
  margin-bottom: 24px;
}

.pf-empty-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}

.pf-empty-text {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-muted);
}


/* ═══════════════════════════════
   CTA — dark, premium
   ═══════════════════════════════ */

.pf-cta {
  background: var(--pf-dark);
  padding: var(--space-lg) var(--gutter);
}

.pf-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.pf-cta-overline {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pf-gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pf-cta-overline::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--pf-gold);
  border-radius: 1px;
}

.pf-cta-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: #F8F6F2;
  margin-bottom: 16px;
}

.pf-cta-text {
  font-family: var(--sans);
  font-size: 16px;
  color: rgba(248, 246, 242, 0.6);
  margin-bottom: 40px;
  line-height: 1.6;
}

.pf-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 48px;
  background: var(--pf-gold);
  color: var(--pf-dark);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  min-height: 52px;
  transition: background 0.3s var(--pf-ease), transform 0.3s var(--pf-ease),
              box-shadow 0.3s var(--pf-ease);
  box-shadow: 0 4px 16px rgba(200, 169, 126, 0.3);
}

.pf-cta-btn:hover {
  background: #d4b68f;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 169, 126, 0.4);
}

.pf-cta-btn:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}


/* ---- PROJECT DETAIL PAGE — Apple HIG Inspired ---- */

/*
 * Design principles applied:
 * - Clarity: clean hierarchy, legible type, generous whitespace
 * - Deference: content commands focus, UI recedes
 * - Depth: layering via shadows, blur, translucency
 * - 8pt spacing grid, 44px touch targets
 * - Rounded corners (Apple signature)
 * - Purposeful, spring-based motion
 */

.single-project {
  --gold-subtle: rgba(200, 169, 126, 0.08);
  --pj-dark: #1a1a1e;
  --pj-dark-alt: #141416;
  --pj-light: #F8F6F2;
  --pj-body: #6B6B6B;
  --pj-body-light: rgba(248, 246, 242, 0.6);
  --pj-radius: 20px;
  --pj-radius-sm: 12px;
  --pj-radius-xs: 8px;
  --pj-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --pj-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --pj-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --pj-shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 12px 40px rgba(0,0,0,0.06);
  --pj-shadow-lg: 0 8px 32px rgba(0,0,0,0.08), 0 24px 64px rgba(0,0,0,0.08);
}


/* ▸ Shared section overline */
.pj-section-overline {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pj-section-overline::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 1px;
}

.pj-section-overline--light {
  color: var(--gold);
}


/* ▸ Scroll reveal — Apple-style fade-up */
.single-project.pj-js .pj-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--pj-spring),
              transform 0.8s var(--pj-spring);
}

.single-project.pj-js .pj-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */

.pj-hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
}

.pj-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 8s var(--pj-ease);
}

.pj-hero:hover > img {
  transform: scale(1);
}

.pj-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.pj-hero-content {
  position: absolute;
  bottom: 80px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 2;
  max-width: 720px;
}

.pj-hero-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pj-light);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.pj-hero-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 300;
  color: var(--pj-light);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.pj-hero-title em {
  font-style: italic;
  color: var(--gold);
}

.pj-hero-subtitle {
  font-family: var(--sans);
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 400;
  color: rgba(248, 246, 242, 0.7);
  line-height: 1.55;
  margin-top: 20px;
  max-width: 520px;
}

/* Scroll indicator — Apple-style pill */
.pj-hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.pj-hero-scroll-pill {
  width: 24px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.pj-hero-scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
  animation: pj-scroll-bounce 2s var(--pj-ease) infinite;
}

@keyframes pj-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(12px); opacity: 0.3; }
}


/* ═══════════════════════════════
   META BAR — frosted glass specs
   ═══════════════════════════════ */

.pj-meta-bar {
  position: relative;
  z-index: 3;
  margin-top: -48px;
}

.pj-meta-bar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--pj-radius);
  box-shadow: var(--pj-shadow-lg);
  overflow: hidden;
}

.pj-meta-item {
  flex: 1;
  padding: 28px 24px;
  text-align: center;
  min-width: 0;
}

.pj-meta-divider {
  width: 1px;
  align-self: stretch;
  margin: 16px 0;
  background: rgba(0, 0, 0, 0.08);
}

.pj-meta-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.pj-meta-value {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}


/* ═══════════════════════════════
   ABOUT — single lead paragraph
   ═══════════════════════════════ */

.pj-about {
  padding: var(--space-lg) var(--gutter);
}

.pj-about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.pj-about-lead {
  font-family: var(--sans);
  font-size: clamp(17px, 1.6vw, 18px);
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.75;
  text-align: center;
}


/* ═══════════════════════════════
   CHALLENGE / SOLUTION — card pair
   ═══════════════════════════════ */

.pj-cs {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pj-cs-card {
  padding: 40px;
  border-radius: var(--pj-radius);
  background: var(--surface-1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--pj-shadow-sm);
  transition: box-shadow 0.4s var(--pj-ease), transform 0.4s var(--pj-ease);
}

.pj-cs-card:hover {
  box-shadow: var(--pj-shadow-md);
  transform: translateY(-2px);
}

.pj-cs-card--accent {
  background: var(--pj-dark);
  border-color: rgba(255, 255, 255, 0.06);
}

.pj-cs-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.pj-cs-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pj-cs-card:not(.pj-cs-card--accent) .pj-cs-icon {
  background: var(--gold-light);
  color: var(--gold);
}

.pj-cs-card--accent .pj-cs-icon {
  background: rgba(200, 169, 126, 0.15);
  color: var(--gold);
}

.pj-cs-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

.pj-cs-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
}

.pj-cs-card:not(.pj-cs-card--accent) .pj-cs-title { color: var(--ink); }
.pj-cs-card--accent .pj-cs-title { color: var(--pj-light); }

.pj-cs-text {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}

.pj-cs-card:not(.pj-cs-card--accent) .pj-cs-text { color: var(--pj-body); }
.pj-cs-card--accent .pj-cs-text { color: var(--pj-body-light); }


/* ═══════════════════════════════
   GALLERY — rounded, spacious
   ═══════════════════════════════ */

.pj-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-lg);
}

.pj-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pj-gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--pj-radius-sm);
  box-shadow: var(--pj-shadow-sm);
  transition: box-shadow 0.5s var(--pj-ease), transform 0.5s var(--pj-ease);
}

.pj-gallery-item:hover {
  box-shadow: var(--pj-shadow-md);
  transform: translateY(-3px);
}

.pj-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s var(--pj-ease);
}

.pj-gallery-item:hover img {
  transform: scale(1.04);
}

.pj-gallery-featured {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
  border-radius: var(--pj-radius);
}

/* Single regular image after featured — go full width */
.pj-gallery-item:nth-child(2):last-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.pj-gallery-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--pj-ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pj-gallery-item:hover .pj-gallery-hover {
  opacity: 1;
}

.pj-gallery-expand-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s 0.1s, transform 0.3s 0.1s var(--pj-spring);
}

.pj-gallery-item:hover .pj-gallery-expand-btn {
  opacity: 1;
  transform: scale(1);
}

.pj-gallery-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s 0.15s, transform 0.3s 0.15s var(--pj-spring);
}

.pj-gallery-item:hover .pj-gallery-caption {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════
   MATERIALS — dark section, cards
   ═══════════════════════════════ */

.pj-materials {
  background: var(--pj-dark);
  padding: var(--space-lg) var(--gutter);
}

.pj-materials-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.pj-materials-inner .pj-section-overline {
  justify-content: center;
}

.pj-materials-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  color: var(--pj-light);
  margin-bottom: 48px;
}

.pj-materials-title em {
  font-style: italic;
  color: var(--gold);
}

.pj-materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.pj-material-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--pj-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s var(--pj-ease), border-color 0.4s var(--pj-ease),
              transform 0.4s var(--pj-ease);
}

.pj-material-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(200, 169, 126, 0.2);
  transform: translateY(-2px);
}

.pj-material-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(200, 169, 126, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
  transition: background 0.3s;
}

.pj-material-card:hover .pj-material-icon {
  background: rgba(200, 169, 126, 0.18);
}

.pj-material-name {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--pj-light);
  margin-bottom: 8px;
}

.pj-material-desc {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--pj-body-light);
  line-height: 1.55;
}


/* ═══════════════════════════════
   TESTIMONIAL — centered, elegant
   ═══════════════════════════════ */

.pj-testimonial {
  padding: var(--space-lg) var(--gutter);
}

.pj-testimonial-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.pj-testimonial-mark {
  color: rgba(200, 169, 126, 0.2);
  margin-bottom: 24px;
}

.pj-testimonial-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  border: none;
  padding: 0;
  margin: 0 0 24px;
}

.pj-testimonial-author {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  font-style: normal;
  letter-spacing: 0.3px;
}


/* ═══════════════════════════════
   VIDEO — rounded wrapper
   ═══════════════════════════════ */

.pj-video {
  padding: 0 var(--gutter) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.pj-video .container {
  max-width: 100%;
  padding: 0;
}

.pj-video-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--dark-0);
  aspect-ratio: 16 / 9;
  border-radius: var(--pj-radius);
  box-shadow: var(--pj-shadow-lg);
}

.pj-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pj-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  color: white;
  transition: background 0.4s var(--pj-ease), opacity 0.4s var(--pj-ease);
}

.pj-video-play:hover {
  background: rgba(0, 0, 0, 0.4);
}

.pj-video-play.hidden {
  opacity: 0;
  pointer-events: none;
}

.pj-video-play svg {
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
}

.pj-video-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0 0 var(--pj-radius) var(--pj-radius);
}

.pj-video-bar-fill {
  height: 100%;
  background: var(--gold);
  width: 0;
  transition: width 0.15s linear;
  border-radius: 0 0 0 var(--pj-radius);
}


/* ═══════════════════════════════
   LIGHTBOX — Apple frosted glass
   ═══════════════════════════════ */

.pj-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--pj-ease);
}

.pj-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.pj-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(40px) saturate(120%);
  -webkit-backdrop-filter: blur(40px) saturate(120%);
}

.pj-lightbox-img {
  position: relative;
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--pj-radius-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.4s var(--pj-spring);
}

.pj-lightbox.open .pj-lightbox-img {
  transform: scale(1);
}

.pj-lightbox-controls {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.pj-lightbox-counter {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.pj-lightbox-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.pj-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pj-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 2;
}

.pj-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pj-lightbox-prev { left: 24px; }
.pj-lightbox-next { right: 24px; }

.pj-lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.pj-lightbox-next:hover { transform: translateY(-50%) translateX(2px); }


/* ═══════════════════════════════
   PREV / NEXT — card navigation
   ═══════════════════════════════ */

.pj-nav {
  background: var(--surface-1);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.pj-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pj-nav-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--pj-radius-sm);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: background 0.3s var(--pj-ease), box-shadow 0.3s var(--pj-ease),
              transform 0.3s var(--pj-ease);
  flex: 1;
  max-width: 320px;
  min-height: 80px;
}

.pj-nav-card:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--pj-shadow-sm);
  transform: translateY(-1px);
}

.pj-nav-card--next {
  flex-direction: row-reverse;
  text-align: right;
}

.pj-nav-empty {
  pointer-events: none;
  opacity: 0;
}

.pj-nav-thumb-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--pj-radius-xs);
  overflow: hidden;
  flex-shrink: 0;
}

.pj-nav-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--pj-ease);
}

.pj-nav-card:hover .pj-nav-thumb {
  transform: scale(1.05);
}

.pj-nav-text {
  min-width: 0;
}

.pj-nav-dir {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.pj-nav-card--next .pj-nav-dir {
  justify-content: flex-end;
}

.pj-nav-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pj-nav-back-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-0);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.pj-nav-back-btn:hover {
  background: white;
  color: var(--ink);
  box-shadow: var(--pj-shadow-sm);
}


/* ═══════════════════════════════
   CTA BAND — dark, premium
   ═══════════════════════════════ */

.pj-cta {
  background: var(--pj-dark);
  padding: var(--space-lg) var(--gutter);
}

.pj-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.pj-cta-inner .pj-section-overline {
  justify-content: center;
}

.pj-cta-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  color: var(--pj-light);
  margin-bottom: 16px;
}

.pj-cta-title em {
  font-style: italic;
  color: var(--gold);
}

.pj-cta-sub {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--pj-body-light);
  margin: 0 auto 40px;
  line-height: 1.65;
}

.pj-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 48px;
  background: var(--gold);
  color: var(--pj-dark);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  min-height: 52px;
  transition: background 0.3s var(--pj-ease), transform 0.3s var(--pj-ease),
              box-shadow 0.3s var(--pj-ease);
  box-shadow: 0 4px 16px rgba(200, 169, 126, 0.3);
}

.pj-cta-btn:hover {
  background: #d4b68f;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 169, 126, 0.4);
}

.pj-cta-btn:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}
