/* ==============================================
   PROJECT DETAIL — COZY EDITORIAL DESIGN SYSTEM
   Warm Oatmeal, Cream & Terracotta Coral Highlights
   Spacious, compact, and balanced editorial layout.
   ============================================== */

/* ── Suppress the village game player on detail pages ── */
.project-detail-page #player { display: none !important; }
.project-detail-page #controls-hint { display: none !important; }

/* ── Define Scoped Theme Variables ── */
:root {
  --ba-bg: #f9f6f0;            /* Warm oatmeal cream */
  --ba-card: #ffffff;          /* Ivory white */
  --ba-accent: #c25f46;        /* Terracotta red-clay */
  --ba-accent-soft: rgba(194, 95, 70, 0.12);
  --ba-text: #2c2523;          /* Dark coffee ink */
  --ba-text-sub: #6c5e5a;      /* Muted cocoa */
  --ba-border: rgba(194, 95, 70, 0.15);
}

/* Base Body Override for Detail Pages (Horizontal Scroll) */
.project-detail-page {
  background-color: var(--ba-bg) !important;
  color: var(--ba-text) !important;
  font-family: var(--body-font);
  overflow-x: auto !important;
  overflow-y: hidden !important;
  height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════
   SECTION 1 — HERO (Warm Editorial Header)
   ══════════════════════════════════════════════ */
.pd-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #221b19; /* Deep espresso base */
}

/* Hero Background image with Ken Burns effect */
.pd-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  animation: pd-kenburns 20s ease-in-out infinite alternate;
  opacity: 0.9;
}

@keyframes pd-kenburns {
  from { transform: scale(1.03) translate(0, 0); }
  to   { transform: scale(1.10) translate(-0.5%, -0.5%); }
}

/* Grid overlay for technical structure */
.pd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 16px 16px;
  z-index: 1;
  pointer-events: none;
}

/* Warm gradient overlay */
.pd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(34, 27, 25, 0.25) 0%,
    rgba(34, 27, 25, 0.65) 60%,
    #221b19 100%
  );
  z-index: 1;
}

.pd-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.5rem) 2.5rem 3rem; /* Tighter padding */
}

/* Back link capsule button */
.pd-back {
  display: inline-block;
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}
.pd-back:hover { 
  color: var(--neon-yellow); 
  border-color: var(--neon-yellow);
  transform: translateX(-3px);
  background: rgba(255, 255, 255, 0.05);
}

/* Classification stamp */
.pd-stamp {
  display: inline-block;
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--neon-yellow);
  border: 1.5px solid var(--neon-yellow);
  padding: 3px 10px;
  margin-bottom: 1.2rem;
  background: rgba(200, 164, 94, 0.05);
  text-transform: uppercase;
}

/* Giant hero title */
.pd-title {
  font-family: var(--serif-font);
  font-size: clamp(2.8rem, 7.5vw, 5.5rem); /* Slightly smaller, more balanced */
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.pd-tagline {
  font-family: var(--body-font);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  line-height: 1.55;
  margin-bottom: 2.2rem;
  border-left: 2px solid var(--neon-yellow);
  padding-left: 14px;
}

/* ── Dossier Metadata Card (Ivory Glassmorphism) ── */
.pd-dossier {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  max-width: 760px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.pd-dossier-item {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  flex: 1;
  min-width: 130px;
}
.pd-dossier-item:last-child { border-right: none; }

.pd-dossier-label {
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--neon-yellow);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pd-dossier-value {
  font-family: var(--body-font);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

/* Redacted hover reveal */
.pd-redact {
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.pd-redact:hover {
  color: var(--neon-yellow);
}
.pd-redact--revealed {
  font-family: var(--body-font);
  font-size: 0.8rem;
  color: var(--neon-yellow) !important;
  letter-spacing: normal;
}

/* Scroll indicator */
.pd-scroll-hint {
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2rem;
  animation: pd-hint-pulse 2.5s ease-in-out infinite;
}

.pd-scroll-hint::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  background-image: url('496855-200.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto 0.6rem;
  filter: brightness(0) invert(1); /* Invert pure black icon to white version */
  opacity: 0.8;
  animation: pd-mouse-bounce 2s ease-in-out infinite;
}

@keyframes pd-hint-pulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.85; }
}

@keyframes pd-mouse-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}


/* ══════════════════════════════════════════════
   SECTION 2 — EDITORIAL BODY (Option B)
   ══════════════════════════════════════════════ */
.pd-editorial {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 4rem 4rem; /* uniform top padding protects text from header overlap */
  background-color: var(--ba-bg);
  width: auto; /* shrink-wraps the editorial columns */
  height: 100vh;
  flex-shrink: 0;
  border-right: 1.5px dashed var(--ba-border);
  box-sizing: border-box;
}

/* Vertical title line tracker */
.pd-vertical-title {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--ba-accent);
  opacity: 0.35;
  white-space: nowrap;
  text-transform: uppercase;
  user-select: none;
  border-right: 1px dotted var(--ba-accent);
  padding-right: 12px;
}

.pd-editorial-body {
  display: grid;
  grid-template-columns: 500px 480px; /* absolute pixel widths for perfect column display */
  gap: 4.5rem;
  align-items: center;
  width: auto;
}

/* Pull quote — elegant large serif with terracotta accents */
.pd-pullquote {
  font-family: var(--serif-font);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ba-text);
  line-height: 1.3;
  border: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.pd-pullquote::before {
  content: '“';
  font-size: 7rem;
  line-height: 0;
  vertical-align: -2.2rem;
  color: var(--ba-accent);
  opacity: 0.2;
  font-family: var(--serif-font);
  margin-right: 0.05em;
}

/* Prose columns & drop cap */
.pd-prose {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 480px;
  max-height: 60vh; /* vertical scrollbar triggers on low height viewports */
  overflow-y: auto;
  padding-right: 12px;
}

/* Custom scrollbar styling for prose columns */
.pd-prose::-webkit-scrollbar {
  width: 4px;
}
.pd-prose::-webkit-scrollbar-track {
  background: transparent;
}
.pd-prose::-webkit-scrollbar-thumb {
  background: var(--ba-border);
  border-radius: 2px;
}

.pd-reveal-text {
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--ba-text-sub);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.pd-reveal-text.pd-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Elegant Terracotta Drop cap */
.pd-prose p:first-child::first-letter {
  font-family: var(--serif-font);
  font-size: 3.5rem;
  float: left;
  line-height: 0.85;
  padding-right: 8px;
  padding-top: 3px;
  color: var(--ba-accent);
  font-weight: 500;
}

.pd-caption {
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ba-text-sub);
  opacity: 0.5;
  text-transform: uppercase;
  padding-top: 1rem;
  border-top: 1px solid rgba(194, 95, 70, 0.12);
}


/* ══════════════════════════════════════════════
   FEATURE 1 — BEFORE / AFTER SLIDER
   ══════════════════════════════════════════════ */


.pd-ba-header {
  font-family: var(--pixel-font);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--ba-text-sub);
  opacity: 0.6;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-align: center;
}

.pd-ba-container {
  position: relative;
  width: 100% !important;
  max-width: 950px !important;
  height: auto;
  aspect-ratio: 16/9;
  max-height: 65vh;
  overflow: hidden;
  cursor: ew-resize;
  border-radius: 4px;
  user-select: none;
  margin: 0 auto;
  box-shadow: 
    0 15px 35px rgba(44, 37, 35, 0.08),
    0 0 1px 1px rgba(194, 95, 70, 0.1);
}

.pd-ba-after, .pd-ba-before {
  position: absolute;
  inset: 0;
}

.pd-ba-after img, .pd-ba-before img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.pd-ba-before {
  clip-path: inset(0 50% 0 0);
  border-right: 1.5px solid #ffffff;
}

.pd-ba-side-label {
  position: absolute;
  bottom: 15px;
  font-family: var(--pixel-font);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--ba-text);
  padding: 4px 10px;
  border-radius: 2px;
  pointer-events: none;
  border: 1px solid rgba(194, 95, 70, 0.15);
}
.pd-ba-before-label { left: 15px; }
.pd-ba-after-label  { right: 15px; }

/* Handle dial */
.pd-ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  display: flex; flex-direction: column; align-items: center;
  cursor: ew-resize; z-index: 10;
}

.pd-ba-handle-line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: var(--ba-accent);
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(194, 95, 70, 0.3);
}

.pd-ba-handle-circle {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--ba-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(44, 37, 35, 0.25);
  color: var(--ba-accent);
  transition: all 0.2s;
}
.pd-ba-container:hover .pd-ba-handle-circle {
  background: var(--ba-accent);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}


/* ══════════════════════════════════════════════
   FEATURE 2 — TIMELINE SCRUBBER (Clean Editorial)
   ══════════════════════════════════════════════ */
.pd-timeline-section {
  background: #f2ede0;
  padding: calc(var(--header-h) + 2rem) 4rem 4rem;
  position: relative;
  width: auto; /* tight horizontal flow, no gaps */
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1.5px dashed var(--ba-border);
  box-sizing: border-box;
}

.pd-timeline-inner {
  width: 1050px !important;
  max-width: 1050px;
  margin: 0 auto;
}

.pd-timeline-heading {
  font-family: var(--pixel-font);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--ba-accent);
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-align: center;
}

/* Minimalist tab selectors */
.pd-timeline-phases {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(194, 95, 70, 0.1);
}

.pd-phase {
  font-family: var(--pixel-font);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ba-text-sub);
  opacity: 0.5;
  background: none; border: none;
  padding: 10px 15px;
  cursor: pointer;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: all 0.25s;
  margin-bottom: -1px;
}
.pd-phase:hover { opacity: 0.8; }
.pd-phase.active { 
  opacity: 1;
  color: var(--ba-accent); 
  border-bottom-color: var(--ba-accent);
}

/* Linear Scrubber bar */
.pd-timeline-bar {
  position: relative;
  height: 4px;
  background: rgba(194, 95, 70, 0.1);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 3rem;
}

.pd-timeline-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: var(--ba-accent);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.pd-timeline-thumb {
  position: absolute;
  top: 50%; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--ba-accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 5px rgba(0,0,0,0.15);
  cursor: grab;
  transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.pd-phase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pd-phase-content.pd-phase-out {
  opacity: 0; transform: translateY(8px);
}

.pd-phase-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(44,37,35,0.06);
  border: 1px solid rgba(194, 95, 70, 0.1);
  background: transparent;
}
.pd-phase-img-wrap img {
  width: 104% !important;
  height: 104% !important;
  margin-left: -2% !important;
  margin-top: -2% !important;
  object-fit: cover;
  display: block;
}

.pd-phase-text { display: flex; flex-direction: column; gap: 1rem; }
.pd-phase-meta {
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ba-accent);
  text-transform: uppercase;
}
.pd-phase-text p {
  font-family: var(--body-font);
  font-size: 0.92rem;
  color: var(--ba-text-sub);
  line-height: 1.7;
}


/* ══════════════════════════════════════════════
   FEATURE 5 — ANNOTATED HOTSPOTS
   ══════════════════════════════════════════════ */


.pd-annotated-heading {
  font-family: var(--pixel-font);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--ba-text-sub);
  opacity: 0.6;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-align: center;
}

.pd-annotated-img-wrap {
  position: relative;
  width: 100% !important;
  max-width: 950px !important;
  height: auto;
  aspect-ratio: 16/9;
  max-height: 65vh;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 
    0 15px 35px rgba(44, 37, 35, 0.08),
    0 0 1px 1px rgba(194, 95, 70, 0.08);
}
.pd-annotated-img-wrap > img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  animation: constant-zoom 12s ease-in-out infinite alternate;
  transform-origin: center;
}

/* Terracotta Pulse hotspot */
.pd-hotspot {
  position: absolute;
  background: none; border: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 10;
  padding: 0;
}

.pd-hotspot-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(194, 95, 70, 0.2);
  animation: pd-pulse 2.2s ease-in-out infinite;
}
.pd-hotspot.active .pd-hotspot-pulse { animation: none; opacity: 0; }

@keyframes pd-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.6); opacity: 0; }
}

.pd-hotspot-dot {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ba-accent);
  color: #ffffff;
  font-family: var(--body-font);
  font-size: 1rem; font-weight: 500; line-height: 1;
  box-shadow: 0 2px 8px rgba(194, 95, 70, 0.3);
  transition: transform 0.2s;
}
.pd-hotspot:hover .pd-hotspot-dot { transform: scale(1.15); }
.pd-hotspot.active .pd-hotspot-dot { background: var(--neon-green); transform: scale(1.15); }

/* Annotation Bubble */
.pd-annotation {
  position: absolute;
  left: 50%; bottom: calc(100% + 12px);
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid rgba(194, 95, 70, 0.25);
  border-radius: 4px;
  padding: 12px 15px;
  font-family: var(--body-font);
  font-size: 0.8rem;
  color: var(--ba-text);
  white-space: normal;
  width: 250px;
  text-align: left;
  z-index: 20;
  pointer-events: none;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(44,37,35,0.12);
  animation: pd-anno-pop 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}
.pd-annotation::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #ffffff;
}
.pd-annotation--left {
  left: auto; right: calc(100% + 12px);
  bottom: 50%; transform: translateY(50%);
}
.pd-annotation--left::after {
  top: 50%; left: 100%;
  transform: translateY(-50%);
  border-top-color: transparent;
  border-left-color: #ffffff;
}


/* ══════════════════════════════════════════════
   SECTION 3 — MASONRY GALLERY (Editorial Grid)
   ══════════════════════════════════════════════ */
.pd-gallery-section {
  background: #f7f4ec;
  padding: 0 6rem;
  border-right: 1.5px dashed var(--ba-border);
  width: auto; /* Stretch dynamically to hold the horizontal gallery wall */
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.pd-masonry {
  display: grid;
  grid-template-rows: repeat(2, 220px); /* 2 horizontal rows */
  grid-auto-flow: column; /* horizontal packing in columns */
  grid-auto-columns: 320px; /* standard column grid unit */
  gap: 10px; /* compact padding */
  margin: 0;
  max-width: none !important;
  width: max-content;
}

.pd-img {
  position: relative;
  overflow: hidden;
  background: transparent;
  margin: 0;
  cursor: zoom-in;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  width: 100%;
  height: 100%;
}

.pd-img img {
  width: 104% !important;
  height: 104% !important;
  margin-left: -2% !important;
  margin-top: -2% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  filter: brightness(0.97) contrast(1.02);
}

.pd-img--wide {
  grid-column: span 2; /* takes up 640px width */
}

.pd-img--tall {
  grid-row: span 2; /* takes up full 450px height */
}

.pd-img:hover img {
  transform: scale(1.06);
}


/* ══════════════════════════════════════════════
   SECTION 4 — CLOSING / END OF FILE
   ══════════════════════════════════════════════ */
.pd-closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0 4rem;
  background-color: var(--ba-bg);
  width: 25vw;
  min-width: 350px;
  height: 100vh;
  flex-shrink: 0;
  box-sizing: border-box;
}

.pd-closing-stamp {
  font-family: var(--pixel-font);
  font-size: 0.44rem;
  letter-spacing: 0.25em;
  color: var(--ba-text-sub);
  opacity: 0.4;
  text-transform: uppercase;
}

.pd-closing-back {
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ba-accent);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.25s;
  border: 1px solid rgba(194, 95, 70, 0.25);
  padding: 8px 20px;
  border-radius: 4px;
}
.pd-closing-back:hover {
  background: var(--ba-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(194, 95, 70, 0.2);
}


/* ══════════════════════════════════════════════
   FEATURE 8 — QUOTE CLIP SIDEBAR (Tactile Cream)
   ══════════════════════════════════════════════ */
.pd-selection-tooltip {
  position: absolute;
  display: none;
  align-items: center;
  background: var(--ba-text);
  border-radius: 3px;
  padding: 5px 12px;
  z-index: 9000;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px rgba(44, 37, 35, 0.18);
  pointer-events: auto;
}

#clipBtn {
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: none; border: none;
  cursor: pointer;
  white-space: nowrap;
  padding: 2px 0;
}
#clipBtn:hover { color: var(--neon-yellow); }

.pd-selection-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--ba-text);
}

.pd-quote-sidebar {
  position: fixed;
  right: -300px;
  top: 50%;
  transform: translateY(-50%);
  width: 270px;
  background: #ffffff;
  border: 1px solid rgba(194, 95, 70, 0.18);
  border-right: none;
  border-radius: 8px 0 0 8px;
  box-shadow: -8px 0 30px rgba(44, 37, 35, 0.08);
  z-index: 8000;
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  max-height: 65vh;
  display: flex; flex-direction: column;
}
.pd-quote-sidebar.pd-qs-visible { right: 0; }

.pd-qs-header {
  font-family: var(--pixel-font);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ba-accent);
  padding: 14px 18px;
  border-bottom: 1px solid rgba(194, 95, 70, 0.1);
  text-transform: uppercase;
  flex-shrink: 0;
}

.pd-qs-list {
  flex: 1; overflow-y: auto;
  padding: 12px;
  display: flex; flex-direction: column;
  gap: 10px;
}

.pd-qs-item {
  position: relative;
  background: #fcfbf9;
  border-left: 3px solid var(--ba-accent);
  padding: 10px 28px 10px 12px;
  border-radius: 0 4px 4px 0;
  border-top: 1px solid rgba(194, 95, 70, 0.05);
  border-right: 1px solid rgba(194, 95, 70, 0.05);
  border-bottom: 1px solid rgba(194, 95, 70, 0.05);
}

.pd-qs-item p {
  font-family: var(--serif-font);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ba-text-sub);
  line-height: 1.5;
}

.pd-qs-remove {
  position: absolute;
  top: 6px; right: 8px;
  background: none; border: none;
  font-size: 1rem;
  color: var(--ba-text-sub);
  opacity: 0.5;
  cursor: pointer; line-height: 1; padding: 2px;
}
.pd-qs-remove:hover { opacity: 1; color: var(--neon-magenta); }


/* ══════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#lightbox.lb-active { opacity: 1; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 37, 35, 0.95);
  backdrop-filter: blur(6px);
}

.lb-img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  cursor: zoom-out;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
#lightbox.lb-active .lb-img { transform: scale(1); }


/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .pd-editorial {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }
  .pd-vertical-title { display: none; }

  .pd-ba-container  { aspect-ratio: 4/3; }
  .pd-annotated-img-wrap { aspect-ratio: 4/3; }

  .pd-timeline-phases {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .pd-phase { padding: 6px 10px; }
  .pd-phase-content { grid-template-columns: 1fr; gap: 1.5rem; padding: 15px; }

  .pd-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .pd-img--wide { grid-column: span 2; }
  .pd-img--tall { grid-row: span 1; }

  .pd-hero-content { padding: 1rem 1.5rem 2.5rem; }
  .pd-dossier { flex-direction: column; }
  .pd-dossier-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .pd-quote-sidebar { width: 220px; }
}


/* ══════════════════════════════════════════════
   PHD RESEARCH INQUIRY STYLES
   ══════════════════════════════════════════════ */
.pd-research-question {
  border-left: 2px solid var(--ba-accent);
  padding-left: 20px;
  margin-bottom: 1.5rem;
}

.pd-rq-label {
  font-family: var(--pixel-font);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--ba-accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  opacity: 0.85;
}

/* ══════════════════════════════════════════════
   PREMIUM LIGHTBOX GALLERY CAROUSEL SYSTEM
   ══════════════════════════════════════════════ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#lightbox.lb-active {
  opacity: 1;
  pointer-events: auto;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 27, 25, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lb-img-container {
  position: relative;
  z-index: 10;
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 25px 75px rgba(0,0,0,0.6);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
#lightbox.lb-active .lb-img {
  transform: scale(1);
}

/* Lightbox Actions & Control Arrows */
.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  user-select: none;
}
.lb-btn:hover {
  background: #ffffff;
  color: #2c2523;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.lb-close {
  top: -45px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}

.lb-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  font-family: system-ui, sans-serif;
  font-weight: 300;
}
.lb-prev {
  left: -70px;
}
.lb-next {
  right: -70px;
}

@media (max-width: 768px) {
  .lb-img-container {
    max-width: 90vw;
    max-height: 70vh;
  }
  .lb-prev {
    left: 20px;
    position: fixed;
    bottom: 30px;
    top: auto;
    transform: none;
  }
  .lb-next {
    right: 20px;
    position: fixed;
    bottom: 30px;
    top: auto;
    transform: none;
  }
  .lb-close {
    right: 20px;
    top: 20px;
    position: fixed;
  }
}

/* =========================================
   PINNED FOOTER OVERRIDES (DETAIL PAGES)
   ========================================= */
.project-detail-page #footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: transparent !important;
  border-top: none !important;
  pointer-events: none;
}

.project-detail-page #footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  pointer-events: auto; /* Allow links to remain clickable */
}

.project-detail-page #footer .footer-left span,
.project-detail-page #footer .footer-right a {
  color: var(--ba-text-sub);
  opacity: 0.65;
  transition: opacity 0.25s ease;
}

.project-detail-page #footer .footer-right a:hover {
  opacity: 1;
}

/* =========================================
   FEATURE 6 — TECHNICAL WORKBENCH (Combined Blueprint & Compare)
   ========================================= */
.pd-workbench-section {
  background: #f2ede0;
  padding: calc(var(--header-h) + 2rem) 4rem 4rem;
  position: relative;
  width: auto;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1.5px dashed var(--ba-border);
  box-sizing: border-box;
}

.pd-workbench-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1050px; /* Generous width to prevent squishing of slider content */
}

/* Cyberpunk-styled tab switcher */
.pd-workbench-tabs {
  display: inline-flex;
  background: rgba(44, 37, 35, 0.06);
  border: 1px solid var(--ba-border);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 2rem;
  z-index: 10;
}

.pd-workbench-tab {
  font-family: var(--pixel-font);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--ba-text-sub);
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
}

.pd-workbench-tab:hover {
  opacity: 0.8;
}

.pd-workbench-tab.active {
  background: var(--ba-accent);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(194, 95, 70, 0.18);
}

.pd-workbench-content {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pd-workbench-panel {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(12px);
}

.pd-workbench-panel.active {
  display: flex;
  animation: workbenchPanelFadeIn 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes workbenchPanelFadeIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes constant-zoom {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.08); }
}

/* Alternating Section Scroll Reveals (Aggressive 260px Offsets) */
.pd-editorial {
  opacity: 0;
  transform: translateY(260px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.pd-editorial.active {
  opacity: 1;
  transform: translateY(0);
}

.pd-timeline-section {
  opacity: 0;
  transform: translateY(-260px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.pd-timeline-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* Move Left to Reveal */
.pd-workbench-section {
  opacity: 0;
  transform: translateX(260px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.pd-workbench-section.active {
  opacity: 1;
  transform: translateX(0);
}

.pd-gallery-section {
  opacity: 0;
  transform: translateY(-260px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.pd-gallery-section.active {
  opacity: 1;
  transform: translateY(0);
}

.pd-closing {
  opacity: 0;
  transform: translateY(260px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.pd-closing.active {
  opacity: 1;
  transform: translateY(0);
}

/* Keep the scroll hint clear of the fixed footer */
.pd-hero-content { padding-bottom: 5rem; }
.pd-scroll-arrow { display: inline-block; }

/* =========================================
   PROJECT PAGES ON PHONES: stack sections vertically
   ========================================= */
@media (max-width: 768px) {
  .project-detail-page {
    display: block !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  .project-detail-page .pd-hero {
    width: 100%;
    height: auto;
    min-height: 100svh;
  }
  .project-detail-page .pd-hero-content { padding: calc(var(--header-h) + 1.5rem) 1.25rem 2.5rem; }
  .project-detail-page .pd-scroll-arrow { transform: rotate(90deg); }
  .project-detail-page .pd-editorial,
  .project-detail-page .pd-timeline-section,
  .project-detail-page .pd-workbench-section,
  .project-detail-page .pd-gallery-section,
  .project-detail-page .pd-film-section,
  .project-detail-page .pd-pipeline-section,
  .project-detail-page .pd-closing {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 3rem 1.25rem !important;
    border-right: none !important;
    border-bottom: 1.5px dashed var(--ba-border);
    opacity: 1 !important;
    transform: none !important;
    box-sizing: border-box;
  }
  .project-detail-page .pd-closing {
    display: flex;
    padding-bottom: 2rem !important;
  }
  .project-detail-page .pd-editorial-body {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .project-detail-page .pd-timeline-inner,
  .project-detail-page .pd-workbench-inner {
    width: 100% !important;
    max-width: 100% !important;
  }
  .project-detail-page .pd-phase-content { grid-template-columns: 1fr; gap: 1.25rem; }
  .project-detail-page .pd-masonry {
    grid-template-rows: none;
    grid-auto-flow: row dense;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-columns: auto;
    grid-auto-rows: 140px;
    width: 100%;
  }
  .project-detail-page .pd-img--tall { grid-row: span 2; }
  .project-detail-page .pd-film-grid,
  .project-detail-page .pd-film-col,
  .project-detail-page .pd-pipeline {
    flex-direction: column;
    height: auto !important;
  }
  .project-detail-page .pd-film,
  .project-detail-page .pd-film-col--stack .pd-film { height: auto !important; }
  .project-detail-page .pd-film video {
    width: 100%;
    height: auto !important;
    max-height: 80vh;
  }
  .project-detail-page .pd-pipe-step { width: 100%; }
  .project-detail-page #footer { position: static; }
}

/* Phones: no scroll-reveal masks or fades, content is simply there */
@media (max-width: 768px) {
  .project-detail-page .reveal-mask::before,
  .project-detail-page .reveal-mask::after { display: none !important; }
  .project-detail-page .reveal-mask > img,
  .project-detail-page .reveal-mask > video,
  .project-detail-page .pd-reveal-text,
  .project-detail-page .reveal-text,
  .project-detail-page .reveal-fade-only {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Empty image slot: black placeholder until a fitting image exists */
.pd-empty {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-empty span {
  font-family: var(--pixel-font);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}
.pd-ba-container--empty { cursor: default; }
.pd-img .pd-empty { cursor: default; }

/* =========================================
   DESIGN PASS (2026-11): project pages
   ========================================= */
/* 16 — dark scrim on the left so the title and details stay readable on busy images */
.pd-hero-overlay {
  background:
    linear-gradient(90deg, rgba(20, 16, 14, 0.86) 0%, rgba(20, 16, 14, 0.62) 38%, rgba(20, 16, 14, 0.15) 72%, rgba(20, 16, 14, 0) 100%),
    linear-gradient(to bottom, rgba(34, 27, 25, 0.2) 0%, rgba(34, 27, 25, 0.55) 60%, #221b19 100%);
}

/* 17 — even dossier columns */
.pd-dossier-item { flex: 1 1 130px; min-width: 130px; }

/* 21 — bigger gallery images (desktop) */
@media (min-width: 769px) {
  html body .pd-masonry {
    grid-template-rows: repeat(2, minmax(200px, calc((100vh - var(--header-h) - 9rem) / 2)));
    grid-auto-columns: 460px;
    gap: 12px;
  }
}

/* 18 — progress bar + section jump nav (desktop only) */
.pd-progress {
  position: fixed;
  top: calc(var(--header-h) + 3px);
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  z-index: 95;
  pointer-events: none;
}
.pd-progress-fill { height: 100%; width: 0; background: var(--ba-accent); transition: width 0.1s linear; }
.pd-section-nav {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  right: 20px;
  z-index: 95;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(20, 16, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pd-section-nav button {
  font-family: var(--pixel-font);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.pd-section-nav button:hover { color: #fff; }
.pd-section-nav button.active { background: var(--ba-accent); color: #fff; }
@media (max-width: 768px) { .pd-progress, .pd-section-nav { display: none; } }

/* 19 — next project link */
.pd-next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ba-text);
  padding: 1.25rem 1.75rem;
  border: 1.5px solid var(--ba-border);
  border-radius: 6px;
  background: var(--ba-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.pd-next:hover { transform: translateY(-3px); border-color: var(--ba-accent); }
.pd-next-label {
  font-family: var(--pixel-font);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ba-accent);
}
.pd-next-title { font-family: var(--serif-font); font-size: 1.9rem; font-style: italic; }

/* 20 — footage section */
.pd-video-section {
  background: var(--ba-bg);
  padding: calc(var(--header-h) + 2rem) 4rem 4.5rem;
  height: 100vh;
  width: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1.5px dashed var(--ba-border);
  box-sizing: border-box;
}
.pd-video-heading {
  font-family: var(--pixel-font);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--ba-text-sub);
  opacity: 0.6;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}
.pd-video-grid { display: flex; gap: 1.5rem; }
.pd-video { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.pd-video video {
  display: block;
  height: min(56vh, 520px);
  aspect-ratio: 16 / 9;
  width: auto;
  background: #000;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.pd-video figcaption {
  font-family: var(--pixel-font);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--ba-text-sub);
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .project-detail-page .pd-video-section {
    display: block;
    width: 100% !important;
    height: auto !important;
    padding: 3rem 1.25rem !important;
    border-right: none;
    border-bottom: 1.5px dashed var(--ba-border);
  }
  .project-detail-page .pd-video-grid { flex-direction: column; }
  .project-detail-page .pd-video video { width: 100%; height: auto; }
}

/* GIF moments (replacing videos) */
.pd-film img {
  display: block;
  height: calc(100% - 1.6rem);
  width: auto;
  max-width: none;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.pd-video img {
  display: block;
  height: min(56vh, 520px);
  width: auto;
  max-width: none;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
@media (max-width: 768px) {
  .project-detail-page .pd-film img,
  .project-detail-page .pd-video img { width: 100%; height: auto !important; }
}

/* ── Process images: show the whole image, click to enlarge (2026-11) ── */
.pd-phase-content { grid-template-columns: 1.35fr 1fr; }
/* Fixed-size frame so the phase buttons never move when the image changes;
   the image sits inside it whole, at its own shape. */
.pd-phase-img-wrap {
  aspect-ratio: auto;
  height: min(52vh, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: none;
  overflow: visible;
}
.pd-phase-img-wrap img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  margin: 0 !important;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(44,37,35,0.1);
}
.pd-phase-content { min-height: min(52vh, 480px); }
@media (max-width: 768px) {
  .project-detail-page .pd-phase-img-wrap { height: 58vw; }
  .project-detail-page .pd-phase-content { min-height: 0; }
}
.project-detail-page .pd-pipe-step img { object-fit: contain; }
.pd-phase-img-wrap img,
.pd-pipe-step img,
.pd-film img,
.pd-video img { cursor: zoom-in; }
.lb-zoom .lb-img-container { max-width: 90vw; max-height: 86vh; }

/* Annotation bubble flipped below a hotspot near the top of the image */
.pd-annotation.pd-annotation--below {
  bottom: auto; top: calc(100% + 12px);
}
.pd-annotation.pd-annotation--below::after {
  top: auto; bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #ffffff;
}

/* External store link in the hero */
.pd-store-link {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.25s ease;
}
.pd-store-link:hover {
  color: var(--neon-yellow);
  border-color: var(--neon-yellow);
  background: rgba(255,255,255,0.1);
}

/* Artronaut: marker on campus → AR in the app (side by side) */
.pd-pair {
  --pair-h: min(44vh, 410px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
  max-width: 100%;
}
.pd-pair-group { display: flex; flex-direction: column; gap: 0.6rem; width: min-content; }
.pd-pair-label {
  margin: 0;
  min-height: 2.4em;
  font-family: var(--pixel-font);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ba-text-sub);
}
.pd-pair-label b { color: var(--ba-accent); font-weight: normal; }
.pd-pair-imgs { display: flex; gap: 0.75rem; align-items: flex-start; }
.pd-pair-imgs--stack { flex-direction: column; }
.pd-pair-imgs img {
  display: block;
  height: var(--pair-h);
  width: auto;
  max-width: none;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  cursor: zoom-in;
}
.pd-pair-imgs--stack img { height: calc((var(--pair-h) - 0.75rem) / 2); }
.pd-pair-arrow {
  align-self: center;
  font-size: 1.6rem;
  color: var(--ba-accent);
  opacity: 0.7;
}
@media (max-width: 768px) {
  .project-detail-page .pd-pair { flex-direction: column; align-items: stretch; }
  .project-detail-page .pd-pair-group { width: 100%; }
  .project-detail-page .pd-pair-arrow { transform: rotate(90deg); }
  .project-detail-page .pd-pair-imgs,
  .project-detail-page .pd-pair-imgs--stack { flex-direction: row; }
  .project-detail-page .pd-pair-imgs img { flex: 1 1 0; width: 0; height: auto; }
}

/* Steam button with logo */
.pd-store-link { display: inline-flex; align-items: center; gap: 0.55rem; }
.pd-store-link .brand-icon { width: 16px; height: 16px; }

/* TUNE cover: awards / funding / presented-at logos (2026-11) */
.pd-awards {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  margin: var(--header-h) 5vw 0 2rem;
}
.pd-awards img { display: block; max-width: none; height: auto; }
.pd-awards-row { display: flex; align-items: center; gap: 1.75rem; }
.pd-awards-label {
  margin: 0.6rem 0 -0.4rem;
  font-family: 'Turret Road', var(--pixel-font);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}
body[data-project="tune"] .pd-hero-content { margin: 0 0 0 5vw; min-width: 0; }
@media (max-width: 1100px) {
  .pd-awards { transform: scale(0.82); transform-origin: right center; margin-right: 2vw; }
}
@media (max-width: 768px) {
  .project-detail-page .pd-awards {
    transform: none;
    margin: 0 1.25rem 2.5rem;
    align-self: flex-start;
    gap: 0.9rem;
  }
  .project-detail-page .pd-awards img { max-width: 100%; }
  body[data-project="tune"] .pd-hero-content { margin: 0; }
}
@media (max-width: 768px) {
  body[data-project="tune"].project-detail-page .pd-hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
}
/* TUNE awards column at two-thirds size */
.pd-awards { gap: 0.75rem; }
.pd-awards-row { gap: 1.15rem; }
.pd-awards img[src$="sgsc-2025-finalist.webp"] { width: 90px; }
.pd-awards img[src$="indiecade-xx-nominee.webp"] { width: 80px; }
.pd-awards img[src$="gee-2026-finalist.webp"] { width: 127px; }
.pd-awards img[src$="frank-ratchye-studio.webp"],
.pd-awards img[src$="serious-play.webp"] { width: 77px; }
.pd-awards-label { font-size: 0.7rem; margin: 0.4rem 0 -0.25rem; }
.pd-awards img[src$="frank-ratchye-studio.webp"] { width: 69px; }
/* Arts Council Korea logo next to Frank-Ratchye under "Grant funded by" */
.pd-awards-row--funders { gap: 1rem; }
.pd-awards img[src$="arts-council-korea.webp"] { width: 96px; }
.pd-awards img[src$="arts-council-korea.webp"] { filter: invert(1); }

/* Story text: long stories flow into extra columns (set by script.js) instead of a hidden scroll box */
.pd-prose.pd-prose--cols {
  display: block;
  max-width: none;
  overflow: visible;
  padding-right: 0;
  column-gap: 48px;
  column-fill: balance;
}
.pd-prose.pd-prose--cols > p { margin: 0 0 1.4rem; }
.pd-prose.pd-prose--cols > p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  .project-detail-page .pd-prose { max-height: none; overflow: visible; padding-right: 0; }
}

/* Footer text over the dark cover image (class set by script.js) */
.project-detail-page.footer-on-dark #footer .footer-left span,
.project-detail-page.footer-on-dark #footer .footer-right a {
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
}

/* Phones: + marker images with an inline width must still fit the screen */
@media (max-width: 768px) {
  .project-detail-page .pd-annotated-img-wrap { max-width: 100% !important; max-height: none; }
}

/* Play / watch links under the cover info (2026-11) */
.pd-cover-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.pd-cover-links .pd-store-link { margin-top: 0; }
.pd-dossier-value a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
}
.pd-dossier-value a:hover { color: var(--neon-yellow); }
