/* ============================================================
   PAGE PROJECT — dark editorial project page
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sidebar-w: 30%;
  --content-gap: 14px;
  --section-gap: 120px;
  --h-pad: 6%;
  --header-h: 80px;
}

html, body {
  background: #000;
  color: #fff;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

body {
  cursor: url('/images-v2/cursor-32.png') 9 2, auto;
}

/* -------- HEADER -------- */

.pp-header {
  position: relative;
  display: flex;
  align-items: center;
  padding: 32px var(--h-pad);
  z-index: 10;
}

.pp-wordmark {
  line-height: 0;
}

.pp-wordmark a {
  display: block;
  line-height: 0;
}

.pp-wordmark video {
  width: min(52px, 12vw);
  display: block;
  opacity: 0; /* animated in */
}

/* -------- MAIN LAYOUT -------- */

.pp-layout {
  display: flex;
  position: relative;
  min-height: 100vh;
}

/* spacer that reserves left column width so content doesn't hide under fixed sidebar */
.pp-sidebar-spacer {
  width: var(--sidebar-w);
  flex-shrink: 0;
}

/* fixed sidebar */
.pp-sidebar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  padding: clamp(80px, 12vh, 140px) clamp(24px, 3vw, 56px) 60px var(--h-pad);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  z-index: 10;
  pointer-events: none;
  opacity: 0; /* fades in after header scrolls away */
}

.pp-section-counter {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  font-weight: 500;
  min-height: 1em; /* keeps layout stable when empty */
}

.pp-section-title {
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  will-change: transform, opacity;
}

.pp-section-link {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s;
  will-change: transform, opacity;
  pointer-events: all;
}

.pp-section-link:hover {
  color: rgba(255,255,255,0.85);
}

.pp-section-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  will-change: transform, opacity;
}

.pp-meta-item {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: -0.01em;
}

.pp-meta-label {
  color: rgba(255,255,255,0.22);
}

.pp-section-body {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: transform, opacity;
}

.pp-section-body p {
  margin: 0;
}

.pp-back-btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  transition: color 0.2s;
  pointer-events: all;
}

.pp-back-btn:hover {
  color: rgba(255,255,255,0.7);
}

/* -------- CONTENT -------- */

.pp-content {
  flex: 1;
  padding: 40px clamp(24px, var(--h-pad), 80px) 100px 0;
  display: flex;
  flex-direction: column;
}

.pp-content-section {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
  padding-bottom: var(--section-gap);
}

.pp-content-section:last-child {
  padding-bottom: 40px;
}

/* desktop: hide mobile info blocks */
.pp-mobile-info {
  display: none;
}

.pp-media-item {
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;           /* animated in by GSAP */
  transform: translateY(48px);
  will-change: transform, opacity;
  background: #111; /* placeholder while loading */
}

.pp-media-item img,
.pp-media-item video {
  width: 100%;
  height: auto;
  display: block;
}

/* -------- RESPONSIVE -------- */

@media (max-width: 960px) {
  :root {
    --sidebar-w: 0px;
    --section-gap: 72px;
  }

  .pp-header {
    padding: 0 24px;
  }

  .pp-page-title {
    max-width: 100%;
    font-size: clamp(30px, 7vw, 56px);
  }

  /* stack sidebar above content */
  .pp-layout {
    flex-direction: column;
  }

  .pp-sidebar-spacer {
    display: none;
  }

  .pp-sidebar-fixed {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    padding: 60px var(--h-pad) 40px;
    opacity: 1 !important;      /* always visible on mobile */
    pointer-events: all;
    display: none;              /* hidden — inline section info blocks used instead */
  }

  .pp-content {
    padding: 0 var(--h-pad) 80px;
  }

  /* mobile inline section info */
  .pp-mobile-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 28px;
  }

  .pp-mobile-title {
    font-size: clamp(18px, 5vw, 26px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }

  .pp-mobile-info .pp-section-link {
    font-size: 13px;
  }

  .pp-mobile-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .pp-mobile-body {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .pp-mobile-body p {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .pp-hero {
    padding-bottom: clamp(48px, 8vh, 80px);
  }

  .footer-top {
    flex-direction: column;
    gap: 28px;
  }
}
