/* ============================================================
   PROJECT-DETAIL.CSS — Individual project case study page
   Extends style.css (which must load first)
============================================================ */

/* ──────────────────────────────────────────────
   PROJECT HERO (minimal, light — Boltshift style)
────────────────────────────────────────────── */
.pd-hero {
  background: #f5f5f5;
  padding: 140px 0 24px;
}

.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #999;
  margin-bottom: 56px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.pd-back:hover {
  color: #111;
  gap: 9px;
}
.pd-back svg { flex-shrink: 0; }

/* ── Title ── */
.pd-title {
  font-family: var(--font-heading);
  font-size: clamp(80px, 13vw, 180px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: #0D0D0D;
  margin-bottom: 72px;
}

/* ── Introduction row ──
   Label at far left, description starts at the 50% mark */
.pd-hero-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid #ddd;
}

.pd-intro-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #111;
  padding-top: 3px;
}

/* Lucide injects an <svg> — size and colour it */
.pd-intro-label svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: #111;
}

.pd-intro-desc {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  line-height: 1.65;
}

/* ── Metadata table ──
   Full-width separator lines; label + value sit in the right half */
.pd-hero-meta-table { /* inherits */ }

.pd-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}

/* Spacer occupies the left 50% — keeps content to the right */
.pd-meta-spacer { /* empty, sized by grid */ }

.pd-meta-row-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.pd-meta-row-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: #999;
}

.pd-meta-row-value {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: #0D0D0D;
  text-align: right;
}
.pd-meta-link {
  color: #0D0D0D;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.pd-meta-link:hover { opacity: 0.55; }

/* ──────────────────────────────────────────────
   AI SUMMARY STRIP
────────────────────────────────────────────── */
.pd-summary-section {
  padding: 16px 0 40px;
}

.pd-summary-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ══════════════════════════════════════════════
   MORPHING PILL → CARD
   Single element: starts as a pill button,
   expands + reshapes into the summary card.
   Height is JS-controlled; card state is
   position:absolute so it doesn't push layout.
══════════════════════════════════════════════ */
.pd-ai-morph {
  position: relative;
  display: grid;            /* stack btn-state in grid; card-state is absolute */
  align-self: flex-start;   /* shrinks to content width in flex column */
  border-radius: 100px;
  background: var(--text);
  overflow: hidden;
  cursor: pointer;
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  box-sizing: border-box;
  transition:
    border-radius 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
    background    0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
    width         0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
    height        0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}
.pd-ai-morph:not(.loading):not(.expanded):hover { background: #2a2a2a; }
.pd-ai-morph.loading  { pointer-events: none; }
.pd-ai-morph.expanded {
  border-radius: 16px;
  background: white;
  color: var(--text);
  cursor: default;
  pointer-events: none;
}

/* ── ① Button state ── */
.pd-ai-btn-state {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  padding: 13px 24px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.22s ease;
}
.pd-ai-morph.expanded .pd-ai-btn-state {
  opacity: 0;
  pointer-events: none;
}

/* Inner grid keeps pill the same size during idle ↔ loading swap */
.pd-ai-btn-inner { display: grid; }

.pd-ai-default {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.4, 0, 1, 1);
}
.pd-ai-morph.loading .pd-ai-default {
  opacity: 0;
  transform: translateY(10px);
}

.pd-ai-loading-layer {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.22s ease 0.1s, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.pd-ai-morph.loading .pd-ai-loading-layer {
  opacity: 1;
  transform: translateY(0);
}
/* Dots exit: fade + slide down before shape expansion */
.pd-ai-morph.dots-exit .pd-ai-loading-layer {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.4, 0, 1, 1);
}

.pd-ai-icon { display: flex; align-items: center; flex-shrink: 0; }
.pd-ai-icon svg {
  width: 18px;
  height: 18px;
  animation: logo-spin 4s linear infinite;
}
@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.pd-ai-dots { display: flex; gap: 4px; align-items: center; }
.pd-ai-dots span {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  animation: dot-pulse 1.2s ease infinite;
}
.pd-ai-dots span:nth-child(2) { animation-delay: 0.2s; }
.pd-ai-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

/* ── ② Card state (absolutely positioned — height set by JS) ── */
.pd-ai-card-state {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 28px;
  box-sizing: border-box;
  pointer-events: none;
}
.pd-ai-morph.expanded .pd-ai-card-state {
  pointer-events: auto;
}

/* Icon: slides in from the left */
.pd-summary-card-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--text);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.pd-summary-card-icon.visible {
  opacity: 1;
  transform: translateX(0);
}
.pd-summary-card-icon svg {
  width: 18px; height: 18px;
  animation: logo-spin 5s cubic-bezier(0.5, 0, 0.85, 1) infinite;
}

.pd-summary-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* "AI Summary" label: slides in from the top */
.pd-summary-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.pd-summary-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.pd-summary-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
}

/* ── Word animation: each word slides in from top + fades + unblurs ── */
.ai-word {
  display: inline;
  opacity: 0;
  filter: blur(3px);
  transform: translateY(-5px);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-word.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}


/* ──────────────────────────────────────────────
   OVERVIEW STRIP (brief + details sidebar)
────────────────────────────────────────────── */
.pd-overview {
  padding: 72px 0;
}

.pd-overview-inner {
  display: block;
}

.pd-brief-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.pd-brief-text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  font-weight: 400;
}

.pd-case-overview {
  padding: 0 0 72px;
}
.pd-case-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.pd-case-overview-card {
  background: white;
  padding: 30px 28px 32px;
}
.pd-case-overview-card:first-child {
  border-radius: 16px 0 0 16px;
}
.pd-case-overview-card:last-child {
  border-radius: 0 16px 16px 0;
}
.pd-case-overview-label,
.pd-evidence-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pd-case-overview-title {
  margin-top: 18px;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pd-case-overview-text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Details sidebar — removed
.pd-details {
  display: flex;
  flex-direction: column;
} */

/* ──────────────────────────────────────────────
   HERO IMAGE (full-bleed, rounded)
────────────────────────────────────────────── */
.pd-hero-image {
  padding: 0 0 72px;
}
.pd-hero-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
}
.pd-hero-image-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pd-image-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ──────────────────────────────────────────────
   CASE STUDY SECTIONS
────────────────────────────────────────────── */
.pd-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.pd-section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
}
.pd-section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.pd-section-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ── Two-column: text + image ── */
.pd-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.pd-two-col.reverse { direction: rtl; }
.pd-two-col.reverse > * { direction: ltr; }

/* ── Text block ── */
.pd-text-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pd-text-eyebrow {
  display: none;
}
.pd-text-heading {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pd-text-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}
.pd-text-body + .pd-text-body { margin-top: -8px; }

/* ── Image block ── */
.pd-img-block {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.pd-img-block.tall { aspect-ratio: 4/5; }
.pd-img-block.wide { aspect-ratio: 4/3; }
.pd-img-block.square { aspect-ratio: 1/1; }
.pd-img-block-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Full-width image ── */
.pd-full-image {
  padding: 0 0 72px;
}
.pd-full-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.pd-full-image-wrap.tall { aspect-ratio: 21/9; }
.pd-full-image-wrap.medium { aspect-ratio: 16/9; }
.pd-full-image-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Two images side by side ── */
.pd-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
}
.pd-image-pair-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.pd-image-pair-item-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Three-image gallery ── */
.pd-image-trio {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
  height: 480px;
}
.pd-image-trio-main {
  grid-row: 1 / -1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.pd-image-trio-side {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.pd-image-trio-main-inner,
.pd-image-trio-side-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ──────────────────────────────────────────────
   PROCESS STEPS
────────────────────────────────────────────── */
.pd-process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 40px;
}
.pd-step {
  background: white;
  padding: 32px 28px;
}
.pd-step:nth-child(1) { border-radius: 16px 0 0 0; }
.pd-step:nth-child(2) { border-radius: 0 16px 0 0; }
.pd-step:nth-child(3) { border-radius: 0 0 0 16px; }
.pd-step:nth-child(4) { border-radius: 0 0 16px 0; }
.pd-step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.pd-step-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.pd-step-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.pd-evidence-section {
  margin-top: 72px;
}
.pd-evidence-heading {
  max-width: 720px;
  margin-bottom: 28px;
}
.pd-evidence-title {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.pd-evidence-intro {
  margin-top: 14px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
.pd-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pd-evidence-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
}
.pd-evidence-card-num,
.pd-process-placeholder-num {
  display: block;
  margin-bottom: 42px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.pd-evidence-card h4,
.pd-decision-row h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pd-evidence-card p,
.pd-decision-row p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}
.pd-decision-list {
  border-top: 1px solid var(--border);
}
.pd-decision-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.3fr) 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.pd-decision-row > div {
  max-width: 760px;
}
.pd-decision-label {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pd-process-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pd-process-evidence-item {
  min-width: 0;
  margin: 0;
}
.pd-process-evidence-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 14px;
  background-color: #e3e7ef;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.pd-process-evidence-item figcaption {
  padding: 16px 2px 0;
}
.pd-process-evidence-item figcaption > span {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.pd-process-evidence-item figcaption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pd-process-evidence-item figcaption p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.pd-process-placeholder {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px dashed rgba(13,13,13,0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.1)),
    #e4e5e1;
}
.pd-process-placeholder::before,
.pd-process-placeholder::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  border: 1px solid rgba(13,13,13,0.08);
}
.pd-process-placeholder::before {
  width: 65%;
  aspect-ratio: 1;
  top: -28%;
  right: -18%;
}
.pd-process-placeholder::after {
  width: 42%;
  aspect-ratio: 1;
  top: 16%;
  left: 12%;
}
.pd-process-placeholder-num {
  position: absolute;
  top: 22px;
  left: 24px;
  margin: 0;
}
.pd-process-placeholder strong {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pd-process-placeholder > span:last-child {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* ──────────────────────────────────────────────
   OUTCOME SECTION (dark)
────────────────────────────────────────────── */
.pd-outcome {
  background: var(--bg-dark);
  border-radius: 20px;
  padding: 80px;
  margin: 80px 0;
}
.pd-outcome .pd-section-header { margin-bottom: 48px; }
.pd-outcome .pd-section-num { color: rgba(255,255,255,0.35); }
.pd-outcome .pd-section-title { color: white; }

.pd-outcome-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.pd-outcome-inner--text-only {
  grid-template-columns: minmax(0, 720px);
}

.pd-outcome-text {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.pd-outcome-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pd-outcome-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pd-outcome-stat:first-child { padding-top: 0; }
.pd-outcome-stat:last-child { border-bottom: none; }
.pd-outcome-stat-num {
  font-family: var(--font-body);
  font-size: clamp(48px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: white;
  line-height: 1;
}
.pd-outcome-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}

/* ──────────────────────────────────────────────
   QUOTE BLOCK
────────────────────────────────────────────── */
.pd-quote {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.pd-quote-mark {
  font-family: var(--font-heading);
  font-size: 80px;
  line-height: 0.5;
  color: var(--border);
  display: block;
  margin-bottom: 20px;
}
.pd-quote-text {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 720px;
  margin: 0 auto 20px;
  color: var(--text);
}
.pd-quote-attr {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ──────────────────────────────────────────────
   NEXT PROJECT TEASER
────────────────────────────────────────────── */
.pd-next {
  border-top: 1px solid var(--border);
  padding: 64px 0;
}
.pd-next-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.pd-next-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.pd-next-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: letter-spacing 0.3s ease;
}
.pd-next-link:hover .pd-next-title {
  letter-spacing: -0.01em;
}
.pd-next-link {
  text-decoration: none;
  color: inherit;
}
.pd-next-arrow {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  color: var(--text);
}
.pd-next-link:hover .pd-next-arrow {
  background: var(--text);
  color: white;
  border-color: var(--text);
  transform: translateX(4px);
}

/* ──────────────────────────────────────────────
   MOBILE
────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* .pd-overview-inner — already block, no override needed */
  .pd-outcome { padding: 48px 32px; }
  .pd-outcome-inner { grid-template-columns: 1fr; gap: 48px; }
  .pd-two-col { grid-template-columns: 1fr; gap: 32px; }
  .pd-two-col.reverse { direction: ltr; }
  .pd-case-overview-grid,
  .pd-evidence-grid,
  .pd-process-evidence-grid { grid-template-columns: 1fr; }
  .pd-case-overview-card:first-child { border-radius: 16px 16px 0 0; }
  .pd-case-overview-card:last-child { border-radius: 0 0 16px 16px; }
  .pd-evidence-card { min-height: 0; }
  .pd-process-placeholder { aspect-ratio: 16 / 9; }
  .pd-process-evidence-image { aspect-ratio: 16 / 9; }
  .pd-process-steps { grid-template-columns: 1fr; gap: 2px; }
  .pd-step:nth-child(1) { border-radius: 16px 16px 0 0; }
  .pd-step:nth-child(2) { border-radius: 0; }
  .pd-step:nth-child(3) { border-radius: 0; }
  .pd-step:nth-child(4) { border-radius: 0 0 16px 16px; }
  .pd-image-trio { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .pd-image-trio-main { grid-row: auto; aspect-ratio: 4/3; }
  .pd-image-trio-side { aspect-ratio: 4/3; }
}
@media (max-width: 768px) {
  .pd-hero { padding: 100px 0 48px; }
  .pd-back { margin-bottom: 24px; }
  .pd-title { font-size: clamp(52px, 13vw, 96px); margin-bottom: 28px; }
  .pd-hero-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pd-meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .pd-meta-spacer { display: none; }
  .pd-meta-row-inner { justify-content: space-between; }
  .pd-summary-section { padding: 28px 0; }
  .pd-ai-morph { width: 100%; align-self: stretch; }
  .pd-ai-btn-state { justify-content: center; }
  .pd-overview { padding: 48px 0; }
  .pd-section { padding: 56px 0; }
  .pd-section-header { margin-bottom: 36px; }
  .pd-evidence-section { margin-top: 56px; }
  .pd-decision-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pd-image-pair { grid-template-columns: 1fr; }
  .pd-image-pair-item { aspect-ratio: 16/9; }
  .pd-hero-image-wrap { aspect-ratio: 4/3; border-radius: 14px; }
  .pd-next-arrow { width: 48px; height: 48px; }
}

/* ──────────────────────────────────────────────
   IMAGE EXPAND BADGE
────────────────────────────────────────────── */
.pd-img-expandable {
  cursor: zoom-in;
  position: relative;
}
.pd-expand-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px 6px 9px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transform: scale(0.55) translateY(8px);
  transform-origin: bottom right;
  transition: opacity 0.2s ease,
              transform 0.45s cubic-bezier(0.34, 1.6, 0.64, 1);
}
.pd-img-expandable:hover .pd-expand-badge {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.pd-expand-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: currentColor;
}
@media (max-width: 768px) {
  .pd-expand-badge {
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
    transition: none !important;
  }
}

/* ──────────────────────────────────────────────
   LIGHTBOX
────────────────────────────────────────────── */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.pd-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.pd-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}
.pd-lightbox-wrap {
  position: relative;
  z-index: 1;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.pd-lightbox.is-open .pd-lightbox-wrap {
  transform: scale(1);
}
.pd-lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}
.pd-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  transition: background 0.18s ease, transform 0.18s ease;
  z-index: 2;
}
.pd-lightbox-close:hover {
  background: #f0f0f0;
  transform: scale(1.12);
}
.pd-lightbox-close svg {
  width: 12px;
  height: 12px;
  stroke: #111;
  flex-shrink: 0;
}
