/* ================================================================
   project-page.css — v2.1
   ----------------------------------------------------------------
   ISOLATION GUARANTEE
   Every selector is prefixed with .pv2-*.
   Zero collision with style.css or main.js.

   SHARED UTILITIES FROM style.css (intentional reuse):
   · CSS custom properties (:root tokens)
   · .reveal / .delay-* / .decode  (motion system)
   · .section-form / .cta          (shared components)
================================================================ */


/* ================================================================
   0. LOCAL TOKENS
================================================================ */
:root {
  --pv2-section-v:  clamp(60px, 8vw, 100px);
  --pv2-gap:        clamp(28px, 4vw, 56px);
  --pv2-strip-gap:  8px;
  --pv2-radius:     12px;
}


/* ================================================================
   1. HERO
================================================================ */
.pv2-hero {
  padding: 0;
  margin-top: var(--header-h);
  height: clamp(280px, 52vh, 680px);
  overflow: hidden;
  position: relative;
}

.pv2-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  animation: pv2-hero-entrance 1.2s var(--ease-out) both;
}

@keyframes pv2-hero-entrance {
  from { transform: scale(1.04); opacity: 0.6; }
  to   { transform: scale(1);    opacity: 1;   }
}

.pv2-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}


/* ================================================================
   2. CAPTION BAR
================================================================ */
.pv2-caption {
  padding-block: 0 !important;
  padding-inline: 0 !important;
  border-bottom: 1px solid var(--border);
  background: rgba(14, 14, 14, 0.88);
}

.pv2-caption-inner {
  display: flex;
  align-items: stretch;
  padding-inline: var(--gutter);
  min-height: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pv2-caption-inner::-webkit-scrollbar { display: none; }

.pv2-caption-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  display: flex;
  align-items: center;
  padding-right: clamp(16px, 3vw, 36px);
  white-space: nowrap;
  flex-shrink: 0;
}

.pv2-caption-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: clamp(14px, 2.5vw, 28px);
  border-left: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}

.pv2-caption-label {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  line-height: 1.4;
}

.pv2-caption-value {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-2);
  line-height: 1.4;
}


/* ================================================================
   3. CHAPTER — base editorial section
================================================================ */
.pv2-chapter {
  position: relative;
  padding-block: var(--pv2-section-v);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--border);
  overflow: visible;
}

.pv2-chapter-bg-num {
  position: absolute;
  top: calc(var(--pv2-section-v) * 0.5);
  right: var(--gutter);
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 148px);
  font-weight: 800;
  color: rgba(240, 240, 240, 0.025);
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.pv2-chapter-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: block;
  max-width: 1200px;
  margin: 0 auto clamp(24px, 3.5vw, 40px);
  min-height: 1em;
  position: relative;
  z-index: 1;
}


/* ================================================================
   4. SPLIT LAYOUT
================================================================ */
.pv2-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pv2-gap);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pv2-split--reverse { direction: rtl; }
.pv2-split--reverse > * { direction: ltr; }

.pv2-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pv2-text p {
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  color: var(--fg-2);
  line-height: 1.85;
  margin: 0;
}

.pv2-text-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--fg);
  font-weight: 500;
  line-height: 1.65;
  margin: 0;
}

.pv2-img {
  border-radius: var(--pv2-radius);
  overflow: hidden;
  background: var(--bg-2);
  position: sticky;
  top: calc(var(--header-h) + 48px + 32px);
  align-self: start;
}

.pv2-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease-out);
}

.pv2-img:hover img { transform: scale(1.02); }

.pv2-img--full {
  position: static;
  border-radius: var(--pv2-radius);
  overflow: hidden;
  background: var(--bg-2);
  max-width: 1200px;
  margin: clamp(32px, 4vw, 56px) auto 0;
}

.pv2-img--full img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}


/* ================================================================
   5. FULL-WIDTH TEXT CHAPTER
================================================================ */
.pv2-full {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pv2-full p {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--fg-2);
  line-height: 1.88;
  margin: 0 0 1.2em;
}

.pv2-full p:last-child { margin-bottom: 0; }
.pv2-full .highlight { color: var(--fg); font-weight: 600; }


/* ================================================================
   6. SNAP STRIP — horizontal scroll carousel
   Used for: brand applications (pyrene5–11)
================================================================ */
.pv2-strip-section {
  padding: 0 !important;
  border-top: 1px solid var(--border);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.pv2-strip-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(1200px + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
  padding-block: clamp(20px, 3vw, 32px) clamp(14px, 2vw, 20px);
}

.pv2-strip-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  min-height: 1em;
}

.pv2-strip-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pv2-strip-counter {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  min-width: 40px;
  text-align: center;
}

.pv2-strip-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-2);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.pv2-strip-btn:hover {
  border-color: var(--border-hover);
  color: var(--fg);
  background: var(--bg-2);
}

.pv2-strip {
  display: flex;
  gap: var(--pv2-strip-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter); /* first card snaps to gutter, not viewport edge */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-inline: var(--gutter);
  padding-bottom: clamp(24px, 3vw, 40px);
  cursor: grab;
}

.pv2-strip:active { cursor: grabbing; }
.pv2-strip::-webkit-scrollbar { display: none; }

.pv2-strip-item {
  flex: 0 0 auto;
  width: clamp(220px, 38vw, 360px);
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  border-radius: var(--pv2-radius);
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
  will-change: transform;
}

.pv2-strip--portrait .pv2-strip-item {
  width: clamp(140px, 28vw, 200px);
  aspect-ratio: 4 / 5;
}

.pv2-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out);
}

.pv2-strip-item:hover img { transform: scale(1.04); }

.pv2-strip::after {
  content: '';
  flex: 0 0 calc(var(--gutter) - var(--pv2-strip-gap));
}

.pv2-strip-section + .pv2-chapter { border-top: none; }


/* ================================================================
   7. FULL-WIDTH SLIDER — 16:9
   ----------------------------------------------------------------
   Used for: packaging (12 slides) and social media (15 slides).
   
   Unlike the strip (horizontal overflow scroll), this is a
   traditional one-at-a-time slide component:
   · Full width, edge-to-edge
   · aspect-ratio: 16/9 — no fixed heights, fully responsive
   · object-fit: contain — shows full image at its natural ratio,
     letterboxed against --bg-2 if portrait (social media images)
   · CSS transition on transform only (GPU layer)
   · Fullscreen button opens the pv2-lightbox
================================================================ */
.pv2-slider-section {
  padding: 0 !important;
  border-top: 1px solid var(--border);
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* Header row — identical pattern to .pv2-strip-hd */
.pv2-slider-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(1200px + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
  padding-block: clamp(20px, 3vw, 32px) clamp(14px, 2vw, 20px);
  max-width: 1200px;
  margin-inline: auto;
}

.pv2-slider-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  min-height: 1em;
}

.pv2-slider-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pv2-slider-counter {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  min-width: 40px;
  text-align: center;
}

/* Small arrow buttons in the header — consistent with strip */
.pv2-slider-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-2);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.pv2-slider-btn:hover {
  border-color: var(--border-hover);
  color: var(--fg);
  background: var(--bg-2);
}

/* ── Viewport — clips the sliding track ── */
.pv2-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
  max-width: 1200px;
  margin-inline: auto;
  border-radius: var(--pv2-radius);
}

/* ── Track — flex row, translates on slide change ── */
.pv2-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  /* will-change declared here so browser promotes layer at parse time */
  will-change: transform;
  transition: transform 0.55s var(--ease-out);
}

/* ── Individual slide ── */
.pv2-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.pv2-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.002);
  display: block;
  transition: transform 0.6s var(--ease-out);
}

/* ── Large overlaid navigation arrows ──
   Overlaid on the image, only on desktop hover. Hidden on touch
   because swipe is the native interaction on mobile. */
.pv2-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  /* backdrop on dark images: frosted glass pill */
  background: rgba(14, 14, 14, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--fg);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.25s var(--ease-out);
  /* Start invisible — fade in on slider hover */
  opacity: 0;
  pointer-events: none;
}

.pv2-slider-nav.prev { left: 16px; }
.pv2-slider-nav.next { right: 16px; }

/* Show on slider hover (desktop) */
.pv2-slider:hover .pv2-slider-nav {
  opacity: 1;
  pointer-events: auto;
}

.pv2-slider-nav:hover {
  background: rgba(36, 73, 255, 0.45);
  border-color: rgba(36, 73, 255, 0.4);
}

.pv2-slider-nav.prev:hover { transform: translateY(-50%) translateX(-2px); }
.pv2-slider-nav.next:hover { transform: translateY(-50%) translateX(2px); }

/* ── Fullscreen trigger button ──
   Bottom-right corner of the slider. SVG expand icon.
   Always visible (low opacity) — increases on hover. */
.pv2-slider-expand {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(14, 14, 14, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out);
  color: var(--fg);
}

.pv2-slider:hover .pv2-slider-expand,
.pv2-slider-expand:hover {
  opacity: 1;
}

.pv2-slider-expand:hover {
  background: rgba(36, 73, 255, 0.5);
  transform: scale(1.08);
}

.pv2-slider-expand svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Progress dots ── (optional: visible below slider on mobile) */
.pv2-slider-dots {
  display: none; /* hidden on desktop — header counter is sufficient */
  justify-content: center;
  gap: 6px;
  padding: 10px 0 4px;
  max-width: 1200px;
  margin-inline: auto;
}

.pv2-slider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg-3);
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.pv2-slider-dot.is-active {
  background: var(--fg);
  transform: scale(1.3);
}


/* ================================================================
   8. LIGHTBOX — fullscreen image viewer
   ----------------------------------------------------------------
   One lightbox instance lives in the DOM (injected by JS on first
   open). It is shared by all sliders on the page.
   
   Open state: body gets .pv2-lb-open (overflow: hidden).
   The lightbox itself transitions from opacity 0 → 1.
   The image scales from 0.96 → 1 on entry.
   
   z-index: 9500 — above:
     · sticky caption bar (z-index: 40)
     · site header (z-index varies, typically 100–200)
     · cursor (z-index: 99999 in style.css — lightbox intentionally
       sits below the cursor so the cursor remains visible)
================================================================ */

/* Prevent scroll while lightbox is open */
body.pv2-lb-open {
  overflow: hidden;
}

/* Overlay backdrop */
.pv2-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(6, 6, 6, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Entry animation */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pv2-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Image wrapper — constrains image within safe area */
.pv2-lb-img-wrap {
  position: relative;
  max-width: calc(100vw - 96px); /* 48px gutters on each side for buttons */
  max-height: calc(100vh - 80px); /* 80px for top/bottom UI */
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.96);
  transition: transform 0.35s var(--ease-out);
}

.pv2-lightbox.is-open .pv2-lb-img-wrap {
  transform: scale(1);
}

.pv2-lb-img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  /* Fade between images */
  transition: opacity 0.2s ease;
}

.pv2-lb-img.is-transitioning {
  opacity: 0;
}

/* ── Topbar: counter left, close button right ── */
.pv2-lb-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(16px, 3vw, 28px);
  /* Subtle gradient so buttons are readable on bright images */
  background: linear-gradient(to bottom, rgba(6,6,6,0.6), transparent);
}

.pv2-lb-counter {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(240,240,240,0.6);
}

.pv2-lb-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(14,14,14,0.5);
  backdrop-filter: blur(6px);
  color: var(--fg);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
  line-height: 1;
}

.pv2-lb-close:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

/* ── Prev/Next arrow buttons — outside the image area ── */
.pv2-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(14,14,14,0.55);
  backdrop-filter: blur(8px);
  color: var(--fg);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-out);
}

.pv2-lb-nav.prev { left: 12px; }
.pv2-lb-nav.next { right: 12px; }

.pv2-lb-nav:hover {
  background: rgba(36,73,255,0.45);
  border-color: rgba(36,73,255,0.4);
}

.pv2-lb-nav.prev:hover { transform: translateY(-50%) translateX(-2px); }
.pv2-lb-nav.next:hover { transform: translateY(-50%) translateX(2px); }

/* ── Caption: source label, bottom center ── */
.pv2-lb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(6,6,6,0.5), transparent);
}

.pv2-lb-caption-text {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,240,240,0.4);
}

/* Clickable backdrop area (outside image wrap) closes the lightbox */
.pv2-lb-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: zoom-out;
}

/* img-wrap above backdrop */
.pv2-lb-img-wrap { position: relative; z-index: 1; }
.pv2-lb-bar      { z-index: 3; }
.pv2-lb-nav      { z-index: 3; }
.pv2-lb-caption  { z-index: 3; }


/* ================================================================
   9. MOSAIC GALLERY
================================================================ */
.pv2-mosaic-section {
  padding-block: var(--pv2-section-v);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--border);
}

.pv2-mosaic-hd {
  max-width: 640px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}

.pv2-mosaic-hd p {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--fg-2);
  line-height: 1.88;
  margin: 0 0 1.2em;
}

.pv2-mosaic-hd p:last-child { margin-bottom: 0; }

.pv2-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pv2-strip-gap);
  max-width: 1200px;
  margin: 0 auto;
}

.pv2-mosaic-item {
  overflow: hidden;
  border-radius: var(--pv2-radius);
  background: var(--bg-2);
}

.pv2-mosaic-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 16 / 10; }
.pv2-mosaic-item:nth-child(2),
.pv2-mosaic-item:nth-child(3) { aspect-ratio: 4 / 5; }
.pv2-mosaic-item:nth-child(4),
.pv2-mosaic-item:nth-child(5) { aspect-ratio: 4 / 3; }

.pv2-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.pv2-mosaic-item:hover img { transform: scale(1.04); }

.pv2-closing-img {
  border-radius: var(--pv2-radius);
  overflow: hidden;
  background: var(--bg-2);
  max-width: 1200px;
  margin-inline: auto;
  margin-top: var(--pv2-strip-gap);
}

.pv2-closing-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease-out);
}

.pv2-closing-img:hover img { transform: scale(1.015); }


/* ================================================================
   10. TESTIMONIALS
   ----------------------------------------------------------------
   Supports two card styles:
   · .tm-card  — homepage-style card with socials, hover FX (preferred)
   · .pv2-testimonial — legacy simple card (backward compat)
================================================================ */
.pv2-testimonials {
  padding-block: var(--pv2-section-v);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.pv2-testimonials-hd {
  margin-bottom: clamp(32px, 5vw, 52px);
}

.pv2-testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 28px);
  max-width: 1000px;
  margin: 0 auto;
}

/* ── tm-card inside project pages — override homepage carousel sizing ── */
.pv2-testimonials-grid .tm-card {
  width: clamp(320px, 50vw, 520px);
  flex-shrink: 0;
  animation: none;
}

/* Legacy pv2-testimonial (kept for pages not yet migrated) */
.pv2-testimonial {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s ease;
  width: clamp(320px, 50vw, 480px);
}

.pv2-testimonial:hover { border-color: var(--border-hover); }

.pv2-testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pv2-testimonial-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pv2-author-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}

.pv2-author-role {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}

.pv2-testimonial-quote {
  font-size: clamp(0.88rem, 1.2vw, 0.98rem);
  color: var(--fg-2);
  line-height: 1.78;
  font-style: italic;
  margin: 0;
  position: relative;
  padding-left: 14px;
}

.pv2-testimonial-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.6;
}


/* ================================================================
   11. PROJECT RAIL
================================================================ */
.pv2-rail-section {
  padding-block: clamp(48px, 7vw, 80px);
  padding-inline: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}

.pv2-rail-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-inline: var(--gutter);
  margin-bottom: clamp(20px, 3vw, 32px);
}

.pv2-rail-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  min-height: 1em;
}

.pv2-rail-count {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--fg-3);
  letter-spacing: 0.08em;
}

.pv2-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter); /* first card snaps to gutter, not viewport edge */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-inline: var(--gutter);
  cursor: grab;
}

.pv2-rail:active { cursor: grabbing; }
.pv2-rail::-webkit-scrollbar { display: none; }

.pv2-rail::after {
  content: '';
  flex: 0 0 calc(var(--gutter) - 12px);
}

.pv2-rail-card {
  flex: 0 0 auto;
  width: clamp(200px, 64vw, 260px);
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out);
  will-change: transform;
}

.pv2-rail-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.pv2-rail-card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
}

.pv2-rail-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
  display: block;
}

.pv2-rail-card:hover .pv2-rail-card-media img { transform: scale(1.06); }

.pv2-rail-card-body { padding: clamp(12px, 2vw, 16px); }

.pv2-rail-card-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
  display: block;
}

.pv2-rail-card-name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 4px;
  line-height: 1.2;
}

.pv2-rail-card-desc {
  font-size: 0.78rem;
  color: var(--fg-3);
  line-height: 1.5;
}

.pv2-rail-card--current {
  opacity: 0.38;
  pointer-events: none;
  cursor: default;
}

.pv2-rail-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pv2-rail-card:hover .pv2-rail-card-overlay { opacity: 1; }

.pv2-rail-card-cta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 40px;
  padding: 8px 16px;
  transform: translateY(6px);
  transition: transform 0.35s var(--ease-out);
}

.pv2-rail-card:hover .pv2-rail-card-cta { transform: translateY(0); }


/* ================================================================
   12. RESPONSIVE
================================================================ */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {

  .pv2-split {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .pv2-img {
    position: static;
    order: -1;
  }

  .pv2-split--reverse .pv2-img { order: -1; }
  .pv2-split--reverse > * { direction: ltr; }

  .pv2-mosaic { grid-template-columns: 1fr 1fr; }

  .pv2-mosaic-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 7;
  }

  .pv2-mosaic-item:nth-child(2),
  .pv2-mosaic-item:nth-child(3),
  .pv2-mosaic-item:nth-child(4),
  .pv2-mosaic-item:nth-child(5) { aspect-ratio: 4 / 3; }

  .pv2-testimonials-grid { flex-direction: column; align-items: center; }
  .pv2-testimonials-grid .tm-card { width: min(100%, 480px); }

  .pv2-rail-card { width: clamp(220px, 52vw, 300px); }

  /* Slider: nav arrows always visible on tablet (no hover on touch) */
  .pv2-slider-nav {
    opacity: 0.7;
    pointer-events: auto;
  }

  /* Show dots on tablet */
  .pv2-slider-dots { display: flex; }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {

  /* ── Hero: height -25% on mobile ── */
  .pv2-hero {
    height: clamp(210px, 39vh, 510px);
  }

  /* ── Caption bar: vertical stack on mobile ── */
  .pv2-caption {
    position: static; /* no longer sticky on mobile — stack fits better in flow */
  }

  .pv2-caption-inner {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
    padding-inline: var(--gutter);
    padding-block: 0;
  }

  .pv2-caption-title {
    padding-right: 0;
    padding-block: clamp(12px, 2vw, 16px);
    border-bottom: 1px solid var(--border);
    /* Allow long H1 titles to wrap cleanly */
    white-space: normal;
    line-height: 1.3;
  }

  /* Show all items on mobile (was hiding 3rd+ items) */
  .pv2-caption-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-inline: 0;
    padding-block: clamp(10px, 1.8vw, 14px);
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .pv2-caption-label {
    line-height: 1;
  }

  .pv2-caption-value {
    text-align: right;
  }

  .pv2-strip-item { width: clamp(220px, 72vw, 300px); }
  .pv2-strip--portrait .pv2-strip-item { width: clamp(130px, 40vw, 170px); }

  /* Full-width image below a strip: add gutter so it aligns with text/images */
  .pv2-strip-section .pv2-img--full {
    margin-inline: var(--gutter);
  }

  .pv2-mosaic { grid-template-columns: 1fr; }

  .pv2-mosaic-item:nth-child(1) {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 3 / 2;
  }

  .pv2-mosaic-item:nth-child(n) { aspect-ratio: 3 / 2; }

  .pv2-rail-card { width: clamp(200px, 78vw, 280px); }

  .pv2-strip-btn { display: none; }

  .pv2-chapter-bg-num { font-size: clamp(56px, 18vw, 100px); }

  /* Slider: side margins to match chapter images */
  .pv2-slider {
    width: auto;
    margin-inline: var(--gutter);
  }

  .pv2-slider-dots {
    margin-inline: var(--gutter);
  }

  /* Slider: hide overlaid nav arrows on mobile (swipe-first) */
  .pv2-slider-nav { display: none; }

  /* Show dots on mobile */
  .pv2-slider-dots { display: flex; }

  /* Lightbox: full-width nav buttons, tighter gutter */
  .pv2-lb-nav { width: 36px; height: 36px; }
  .pv2-lb-nav.prev { left: 6px; }
  .pv2-lb-nav.next { right: 6px; }

  .pv2-lb-img-wrap {
    max-width: calc(100vw - 72px);
    max-height: calc(100vh - 100px);
  }

  .pv2-lb-img { max-height: calc(100vh - 100px); }
}


/* ================================================================
   13. REDUCED MOTION
================================================================ */
@media (prefers-reduced-motion: reduce) {

  .pv2-hero-img { animation: none; }

  .pv2-slider-track { transition: none; }
  .pv2-lb-img { transition: none; }
  .pv2-lb-img.is-transitioning { opacity: 1; }
  .pv2-lightbox { transition: none; }
  .pv2-lb-img-wrap { transition: none; }

  .pv2-img img,
  .pv2-mosaic-item img,
  .pv2-strip-item img,
  .pv2-rail-card-media img,
  .pv2-closing-img img { transition: none; }

  .pv2-rail-card { transition: border-color 0.01ms; }
}
/* ================================================================
   pv2-vcaro — Video carousel module
   ----------------------------------------------------------------
   Append to: project-page.css

   Scoped to .pv2-vcaro-* — zero collision guarantee.

   Reuses from existing system (intentional):
   · .pv2-rail-card-tag      — tag label style
   · .pv2-rail-card-overlay  — hover overlay (secondary cards)
   · .pv2-rail-card-cta      — "Watch →" pill
   · .pv2-chapter-*          — section frame (outer chapter wrapper)
   · --pv2-radius, --pv2-gap — local tokens
   · --gutter, --border, --bg-2, --fg, --fg-2, --fg-3, --ease-out
================================================================ */


/* ================================================================
   DESKTOP LAYOUT — CSS Grid
   5 items in two rows:
   Row 1 → featured spans all 4 columns (full 1200px width)
   Row 2 → 4 secondary cards, equal columns
================================================================ */
.pv2-vcaro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(10px, 1.5vw, 16px);
  max-width: 1200px;
  margin: clamp(32px, 4vw, 56px) auto 0;
  /* No padding-inline needed — inherits from .pv2-chapter */
}

/* Featured item spans full row */
.pv2-vcaro-item--featured {
  grid-column: 1 / -1;
}

/* Secondary items auto-place into row 2 (4-col grid) */
.pv2-vcaro-item:not(.pv2-vcaro-item--featured) {
  /* Implicit grid placement — nothing extra needed */
}


/* ================================================================
   ITEM — shared card shell
   Secondary cards match pv2-rail-card aesthetics exactly.
================================================================ */
.pv2-vcaro-item {
  border-radius: var(--pv2-radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out);
  will-change: transform;
}

/* Featured card: no border, no radius on media (full bleed image) */
.pv2-vcaro-item--featured {
  background: var(--bg-3);
  border: 1px solid var(--border);
}
.pv2-vcaro-item--featured .pv2-vcaro-media {
  border-radius: 0;
}

/* Hover lift — secondary cards only */
.pv2-vcaro-item:not(.pv2-vcaro-item--featured):hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}


/* ================================================================
   MEDIA — 16:9 video container
   Houses poster image + play button + optional overlay.
   On play: replaced with <iframe> via JS.
================================================================ */
.pv2-vcaro-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  overflow: hidden;
  border-radius: var(--pv2-radius);
  cursor: pointer;
}

/* Secondary cards: the border-radius is on .pv2-vcaro-item — reset media */
.pv2-vcaro-item:not(.pv2-vcaro-item--featured) .pv2-vcaro-media {
  border-radius: 0; /* item already clips to --pv2-radius */
}

/* Poster image — fills the container */
.pv2-vcaro-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-out);
}

/* Image scale on hover — secondary cards */
.pv2-vcaro-item:not(.pv2-vcaro-item--featured):hover .pv2-vcaro-poster {
  transform: scale(1.06);
}

/* Image subtle zoom on hover — featured */
.pv2-vcaro-item--featured:hover .pv2-vcaro-poster {
  transform: scale(1.02);
}


/* ================================================================
   VIGNETTE — dark gradient on poster, separate from the button
   Moved to ::before so the play button sits clean above it.
================================================================ */
.pv2-vcaro-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.08) 55%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pv2-vcaro-item:hover .pv2-vcaro-media::before {
  opacity: 1.4; /* boost on hover — reinforces the CTA */
}

.pv2-vcaro-media--playing::before {
  display: none; /* hide once iframe is live */
}


/* ================================================================
   PLAY BUTTON — centered frosted-glass circle
   Matches the visual grammar of .pv2-slider-nav exactly:
   same backdrop-filter, same border style, same blue hover.
================================================================ */
.pv2-vcaro-play {
  /* Positioning — centered, fixed size, above vignette */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;

  /* Size tokens */
  --_btn-size: 52px;

  width:  var(--_btn-size);
  height: var(--_btn-size);
  border-radius: 50%;

  /* Frosted glass — identical to .pv2-slider-nav */
  background: rgba(14, 14, 14, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);

  /* Reset */
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Transition — background + border + scale, matching slider timing */
  transition:
    background    0.22s ease,
    border-color  0.22s ease,
    transform     0.28s var(--ease-out),
    box-shadow    0.28s ease;
}

/* Featured card: larger button */
.pv2-vcaro-item--featured .pv2-vcaro-play {
  --_btn-size: 68px;
}

/* Hover — exact same blue as .pv2-slider-nav:hover */
.pv2-vcaro-play:hover {
  background:   rgba(36, 73, 255, 0.42);
  border-color: rgba(36, 73, 255, 0.50);
  box-shadow:   0 0 0 5px rgba(36, 73, 255, 0.12);
  transform: translate(-50%, -50%) scale(1.06);
}

/* Hide once video is active */
.pv2-vcaro-media--playing .pv2-vcaro-play {
  display: none;
}


/* ================================================================
   PLAY ICON — refined SVG triangle
   The SVG viewBox is 48×48. The outer circle is the button border
   itself now, so we suppress the SVG's stroked circle and keep
   only the triangle. We nudge it 1px right (optical centering).
================================================================ */
.pv2-vcaro-play-icon {
  /* Size relative to button, consistent across featured / secondary */
  width:  44%;
  height: 44%;

  color: #fff;
  /* Slight rightward nudge — play triangles read left-heavy */
  position: relative;
  left: 0px;

  transition:
    color      0.22s ease,
    transform  0.28s var(--ease-out);
}

/* Hide the SVG's outer stroke-circle (the button border is the circle now) */
.pv2-vcaro-play-icon circle {
  display: none;
}

/* The triangle path: fill only, no stroke */
.pv2-vcaro-play-icon path {
  fill: currentColor;
  stroke: none;
}

/* On hover: icon turns white (already white, kept for override clarity)
   and gets a micro scale for tactile feedback */
.pv2-vcaro-play:hover .pv2-vcaro-play-icon {
  color: #fff;
  transform: scale(1.08);
}


/* ================================================================
   LIVE IFRAME — injected by JS on play
================================================================ */
.pv2-vcaro-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: inherit;
  z-index: 3;
}


/* ================================================================
   CARD BODY — tag, title, date
================================================================ */
.pv2-vcaro-body {
  padding: clamp(12px, 1.8vw, 16px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Featured card: slightly more breathing room */
.pv2-vcaro-item--featured .pv2-vcaro-body {
  padding: clamp(12px, 1.8vw, 16px);
}

/* Tag + date on the same row */
.pv2-vcaro-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* .pv2-rail-card-tag is reused — no override needed */

/* Date label — matches pv2-rail-card metadata style */
.pv2-vcaro-date {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Video title */
.pv2-vcaro-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.2;
  margin: 0;
}

.pv2-vcaro-item--featured .pv2-vcaro-title {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.pv2-vcaro-item:not(.pv2-vcaro-item--featured) .pv2-vcaro-title {
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
}


/* ================================================================
   RESPONSIVE — Mobile carousel
   ≤ 900px: grid collapses to a horizontal snap scroll.
   All 5 items become swipeable cards, one visible at a time.
================================================================ */
@media (max-width: 900px) {

  .pv2-vcaro {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter); /* ← ajouter cette ligne */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 12px;

    /* Break out of .pv2-chapter's padding to create a full-bleed rail */
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);

    /* Reset desktop constraints */
    max-width: none;
    margin-top: clamp(28px, 4vw, 40px);

    cursor: grab;
  }

  .pv2-vcaro:active { cursor: grabbing; }
  .pv2-vcaro::-webkit-scrollbar { display: none; }

  /* Trailing spacer — same trick as pv2-rail::after */
  .pv2-vcaro::after {
    content: '';
    flex: 0 0 calc(var(--gutter) - 12px);
  }

  .pv2-vcaro-item,
  .pv2-vcaro-item--featured {
    grid-column: unset;
    flex: 0 0 clamp(280px, 85vw, 420px);
    scroll-snap-align: start;
    border: 1px solid var(--border);
    background: var(--bg-3);
    border-radius: var(--pv2-radius);
    transform: none !important;
  }

  /* Featured card: same body size as others on mobile */
  .pv2-vcaro-item--featured .pv2-vcaro-body {
    padding: clamp(12px, 1.8vw, 16px);
  }

  .pv2-vcaro-item--featured .pv2-vcaro-title {
    font-size: clamp(0.88rem, 3vw, 1rem);
  }

  .pv2-vcaro-item--featured .pv2-vcaro-media {
    border-radius: 0;
  }

  /* Featured button: same size as secondary on mobile */
  .pv2-vcaro-item--featured .pv2-vcaro-play {
    --_btn-size: 52px;
  }

  /* On touch there is no hover state — button is always clearly visible */
  .pv2-vcaro-play {
    opacity: 0.9;
  }

  /* Overlay: hidden on mobile — tap the play button directly */
  .pv2-vcaro-item .pv2-rail-card-overlay {
    opacity: 0;
  }
}

/* ── Tighter cards on small phones ── */
@media (max-width: 600px) {
  .pv2-vcaro-item,
  .pv2-vcaro-item--featured {
    flex: 0 0 clamp(240px, 82vw, 320px);
  }
}


/* ================================================================
   REDUCED MOTION
================================================================ */
@media (prefers-reduced-motion: reduce) {
  .pv2-vcaro-media::before,
  .pv2-vcaro-poster,
  .pv2-vcaro-play,
  .pv2-vcaro-play-icon,
  .pv2-vcaro-item {
    transition: none;
  }

  .pv2-vcaro-item:not(.pv2-vcaro-item--featured):hover .pv2-vcaro-poster {
    transform: none;
  }

  .pv2-vcaro-play:hover {
    transform: translate(-50%, -50%); /* no scale */
  }

  .pv2-vcaro-play:hover .pv2-vcaro-play-icon {
    transform: none;
  }
}

/* ── Project page: Brief accordion & Results statement ── */
.pv2-brief-section {
  padding-block: var(--pv2-section-v);
  border-top: 1px solid var(--border);
}

.pv2-brief-section .section-hd {
  max-width: calc(1200px + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}

.pv2-brief-section .section-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  font-weight: 400;
}

.pv2-brief-section .section-count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}

.pv2-brief-section .proc-list {
  max-width: calc(1200px + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-left: auto;
  margin-right: auto;
}

.pv2-results {
  /* spacing override handled below */
}


/* ── CTA Banner — mid-page conversion hook ── */

.pv2-cta-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg-3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.pv2-cta-social:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.pv2-cta-social svg {
  width: 16px;
  height: 16px;
}


/* ── Live site CTA ── */
.pv2-live-site {
  padding: clamp(40px, 5vw, 64px) var(--gutter);
}

.pv2-live-site-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pv2-live-site-link {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(20px, 3vw, 28px) clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.35s ease;
}

.pv2-live-site-link:hover {
  border-color: var(--accent);
  background: rgba(36, 73, 255, 0.03);
}

.pv2-live-site-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.pv2-live-site-url {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 500;
  color: var(--fg);
  flex: 1;
}

.pv2-live-site-arrow {
  width: 18px;
  height: 18px;
  color: var(--fg-2);
  transition: transform 0.3s ease, color 0.3s ease;
}

.pv2-live-site-link:hover .pv2-live-site-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

@media (max-width: 600px) {
  .pv2-live-site-link { flex-wrap: wrap; }
  .pv2-live-site-label { width: 100%; }
  .pv2-live-site-inner { grid-template-columns: 1fr; }
}


/* ── Key figures — results section ── */
.pv2-key-figures {
  max-width: 1200px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.pv2-kf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(24px, 3vw, 40px) 16px;
  background: var(--bg);
}

.pv2-kf-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.pv2-kf-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .pv2-key-figures {
    grid-template-columns: repeat(2, 1fr);
  }
}

[data-theme="light"] .pv2-kf-item {
  background: var(--bg);
}


/* ── Next / Previous project navigation ── */
.pv2-project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pv2-project-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(28px, 4vw, 48px) var(--gutter);
  background: var(--bg);
  text-decoration: none;
  transition: background 0.3s ease;
}

.pv2-project-nav-link:hover {
  background: var(--bg-2);
}

.pv2-project-nav--next {
  text-align: right;
  align-items: flex-end;
}

.pv2-project-nav-dir {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.pv2-project-nav-name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.pv2-project-nav-link:hover .pv2-project-nav-name {
  color: var(--accent);
}

@media (max-width: 600px) {
  .pv2-project-nav {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   PENTAGRAM UX — All interaction + friction components
================================================================ */

/* ── Progressive disclosure ── */
.pv2-disclosure {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease 0.1s;
}
.pv2-disclosure[hidden] { display: block; max-height: 0; opacity: 0; }
.pv2-disclosure.is-open { max-height: 600px; opacity: 1; }

.pv2-disclosure-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1em;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.pv2-disclosure-toggle:hover { opacity: 1; }
.pv2-disclosure-toggle.is-open { opacity: 0.5; }


/* ── Parallax — subtle translateY on scroll ── */
[data-parallax] img {
  transition: transform 0.1s linear;
  will-change: transform;
}


/* ── Enhanced hover on project rail cards ── */
.pv2-rail-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.pv2-rail-card:not(.pv2-rail-card--current):hover {
  transform: translateY(-3px);
}
.pv2-rail-card:not(.pv2-rail-card--current):hover .pv2-rail-card-media img {
  transform: scale(1.03);
}
.pv2-rail-card-media img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ── Page exit transition ── */
main.is-leaving {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}


/* ── Pull-quote — editorial founder testimonial ── */
.pv2-pullquote {
  padding: clamp(48px, 7vw, 80px) var(--gutter);
}
.pv2-pullquote-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
}
.pv2-pullquote-text {
  margin: 0;
  padding-left: clamp(20px, 3vw, 32px);
  border-left: 2px solid var(--accent);
}
.pv2-pullquote-text p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0;
}
.pv2-pullquote-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: clamp(20px, 3vw, 32px);
}
.pv2-pullquote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.3);
}
.pv2-pullquote-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}
.pv2-pullquote-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  line-height: 1.4;
}


/* ── Form escape route ── */
.pv2-form-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--border);
}
.pv2-form-alt-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  margin: 0;
}
.pv2-form-alt-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.3s ease;
}
.pv2-form-alt-link:hover { color: var(--accent); }


/* ── Social media masonry grid ── */
.pv2-sm-section {
  padding: 0 !important;
  border-top: 1px solid var(--border);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.pv2-sm-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  padding-block: clamp(20px, 3vw, 32px) clamp(14px, 2vw, 20px);
}
.pv2-sm-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.pv2-sm-count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.pv2-sm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-inline: var(--gutter);
}
.pv2-sm-item {
  border-radius: var(--pv2-radius);
  overflow: hidden;
  background: var(--bg-2);
}
.pv2-sm-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.pv2-sm-item:hover img { transform: scale(1.03); }

.pv2-sm-hidden {
  display: none;
}
.pv2-sm-grid.is-expanded .pv2-sm-hidden {
  display: block;
}

.pv2-sm-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: clamp(16px, 2.5vw, 24px);
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  transition: color 0.3s ease;
}
.pv2-sm-expand:hover { color: var(--accent); }
.pv2-sm-expand svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}
.pv2-sm-expand.is-open svg { transform: rotate(180deg); }

@media (max-width: 600px) {
  .pv2-sm-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .pv2-disclosure { transition: none; max-height: none; opacity: 1; }
  [data-parallax] img { transition: none; will-change: auto; }
  .pv2-rail-card { transition: none; }
  .pv2-rail-card-media img { transition: none; }
  main.is-leaving { transition: none; }
  .pv2-sm-item img { transition: none; }
}


/* ── Spacing fixes — Pentagram audit ── */

/* 1. Statements: reduce from clamp(80,12vw,160) to clamp(60,8vw,120) */
.pv2-content .statement,
.pv2-results {
  padding-block: clamp(60px, 8vw, 120px);
}

/* ── Statement source link ── */
.statement-source {
  display: inline-block;
  margin-top: clamp(16px, 2vw, 24px);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.statement-source:hover {
  opacity: 0.7;
}

/* ── Guest Reviews — uses homepage testimonials-slider ── */

/* ── Guest review cards ── */
.pv2-reviews-slider .tm-card {
  min-width: clamp(280px, 28vw, 360px);
  justify-content: space-between;
}
.pv2-reviews-slider .tm-quote {
  font-style: italic;
}
.pv2-gr-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pv2-gr-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
}
.pv2-gr-source {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
}

/* ── Prose inline links (cross-links in chapter text) ── */
.pv2-full a,
.pv2-mosaic-hd a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}
.pv2-full a:hover,
.pv2-mosaic-hd a:hover {
  text-decoration-color: currentColor;
}