/* ============================================================
   Alex Johnson Portfolio — case-study.css
   Styles for individual case study pages only.
   Loaded after styles.css to extend and override as needed.
   ============================================================ */


/* ────────────────────────────────────────────────────────────
   ARTICLE WRAPPER
──────────────────────────────────────────────────────────── */
.section-case-study {
  padding-bottom: var(--sp-section);
  background: var(--bg);
}
.section-case-study--concept {
  background: var(--bg);
}


/* ────────────────────────────────────────────────────────────
   CASE HEADER
──────────────────────────────────────────────────────────── */
/* Hero frame — sits below the nav, inset with spacing on top/left/right */
.case-hero-top {
  width: 100%;
  background: var(--bg);
  padding: clamp(4.5rem, 9vw, 8rem) clamp(3rem, 7vw, 6rem) 0;
  box-sizing: border-box;
}
.case-hero-top .case-hero-frame {
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  box-shadow: 0 4px 32px rgba(0,0,0,0.28);
  transform: none;
  max-width: 100%;
  overflow: hidden;
}
.case-hero-top .hero-frame-bar {
  background: rgba(0,0,0,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.case-hero-top .hero-frame-screen {
  max-height: 80vh;
  overflow: hidden;
}
.case-hero-top .hero-frame-screen img,
.case-hero-top .hero-frame-screen video {
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
  object-position: top;
}

.case-header {
  padding: clamp(3rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--bg);
  border-bottom: none;
  margin-bottom: 0;
}
.case-header--concept {
  background: var(--bg);
}
.case-header .container {
  max-width: 1240px;
}
.case-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  margin: 1rem 0 1.25rem;
  max-width: 820px;
}
.case-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 660px;
  line-height: 1.65;
}

/* ────────────────────────────────────────────────────────────
   HERO VISUAL — cinematic product showcase
──────────────────────────────────────────────────────────── */
.case-hero-visual {
  position: relative;
  width: 100%;
  background: var(--bg-surface);
  overflow: hidden;
  padding: 3rem clamp(1.25rem, 5vw, 4rem) 0;
}

/* Atmospheric dot grid + radial glow background */
.case-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% 0%,
      rgba(74, 158, 255, 0.13) 0%,
      transparent 65%),
    radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  pointer-events: none;
}

/* Fade to page bg at the bottom */
.case-hero-visual::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
  pointer-events: none;
  z-index: 2;
}

.case-hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  z-index: 1;
}

/* Floating metric pills row */
.case-hero-metrics {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.hero-metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-metric-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-metric-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* Browser chrome frame */
.case-hero-frame {
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 -2px 80px rgba(74, 158, 255, 0.1),
    0 40px 100px rgba(0, 0, 0, 0.6);
  transform-origin: bottom center;
}

/* Top bar of browser chrome */
.hero-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.1rem;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.hero-frame-controls {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.hero-frame-controls span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hero-frame-controls span:nth-child(1) { background: #ff5f57; }
.hero-frame-controls span:nth-child(2) { background: #febc2e; }
.hero-frame-controls span:nth-child(3) { background: #28c840; }

.hero-frame-url {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  flex: 1;
  max-width: 380px;
  margin: 0 auto;
}
.hero-frame-url svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
  opacity: 0.6;
}

/* The screenshot itself */
.hero-frame-screen {
  line-height: 0; /* remove gap under img */
  background: var(--bg);
}
.hero-frame-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 860px) {
  .case-hero-frame {
    transform: none;
  }
  .case-hero-metrics {
    gap: 0.45rem;
  }
  .hero-metric-label { display: none; }
  .hero-metric-value { font-size: 0.82rem; }
}

@media (max-width: 600px) {
  .case-hero-visual {
    padding-top: 2rem;
  }
  .case-hero-metrics { display: none; }
}


/* ────────────────────────────────────────────────────────────
   OVERVIEW GRID
──────────────────────────────────────────────────────────── */
.overview-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin: clamp(2.5rem, 5vw, 4rem) 0;
}
.overview-item {
  padding: 1.4rem 1.75rem;
  border-right: 1px solid var(--border);
}
.overview-item:last-child {
  border-right: none;
}
.overview-label {
  display: block;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.45rem;
}
.overview-value {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.55;
}


/* ────────────────────────────────────────────────────────────
   CASE BLOCKS
   Override the two-column grid in styles.css — case study HTML
   puts content directly inside .case-block without label/content
   wrapper divs.
──────────────────────────────────────────────────────────── */
.case-block {
  display: block;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.case-block h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.case-block p,
.case-block > p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 720px;
}
.case-block p:last-child { margin-bottom: 0; }

/* Highlight / callout blocks — flat, same bg as page */
.case-block--highlight {
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.case-block--highlight h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}
.case-block--highlight p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.85rem;
  max-width: 760px;
}
.case-block--highlight p:last-child { margin-bottom: 0; }


/* ────────────────────────────────────────────────────────────
   CASE SUMMARY (lead paragraph)
──────────────────────────────────────────────────────────── */
.case-summary {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 760px;
}


/* ────────────────────────────────────────────────────────────
   FIGURE LAYOUTS
──────────────────────────────────────────────────────────── */

/* Two-column side-by-side figures */
.chapter-figures-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0;
}
.chapter-figures-row--3col {
  grid-template-columns: 1fr 1fr 1fr;
}
.chapter-figures-row--bare .chapter-figure img,
.chapter-figures-row--bare .chapter-figure .img-placeholder {
  border: none;
  background: none;
  border-radius: 0;
}
.chapter-figure {
  margin: 0;
}
.chapter-figure img,
.chapter-figure .img-placeholder {
  width: 100%;
  display: block;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.chapter-figure figcaption {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  margin-top: 0.7rem;
  text-align: center;
  line-height: 1.5;
}

/* Full-width figure */
.figure-full-width {
  margin: clamp(1.75rem, 3vw, 2.75rem) 0;
}
.figure-full-width img,
.figure-full-width .img-placeholder {
  width: 100%;
  display: block;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
}
.figure-full-width figcaption {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  margin-top: 0.7rem;
  text-align: center;
  line-height: 1.5;
}

/* Images inside case study figures */
.case-block img,
.chapter-figure img,
.figure-full-width img {
  width: 100%;
  display: block;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}


/* ────────────────────────────────────────────────────────────
   SOLUTION CHAPTER LABEL
──────────────────────────────────────────────────────────── */
.solution-chapter {
  margin-bottom: 1.75rem;
}
.solution-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.65rem;
  background: var(--accent-dim);
  border-radius: 100px;
}
.solution-chapter h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}
.solution-chapter p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 720px;
}


/* ────────────────────────────────────────────────────────────
   OUTCOME CHIPS
──────────────────────────────────────────────────────────── */
.outcome-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-sage);
  background: rgba(107, 158, 122, 0.1);
  border: 1px solid rgba(107, 158, 122, 0.25);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  white-space: nowrap;
}


/* ────────────────────────────────────────────────────────────
   CHAPTER HEADERS — Part 1 / 2 / 3 dividers
──────────────────────────────────────────────────────────── */
.chapter-header {
  position: relative;
  width: 100%;
  background: var(--bg-surface);
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  margin-bottom: 0;
  overflow: hidden;
}
.chapter-header::before {
  content: attr(data-n);
  position: absolute;
  right: clamp(1.5rem, 6vw, 5rem);
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(5rem, 13vw, 10rem);
  font-weight: 800;
  color: var(--text-primary);
  opacity: 0.04;
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
.chapter-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}
.chapter-num-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.chapter-num-label::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  flex-shrink: 0;
}
.chapter-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.chapter-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin: 0;
}


/* ────────────────────────────────────────────────────────────
   CONCEPT NOTICE CALLOUT
──────────────────────────────────────────────────────────── */
.concept-notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(201, 138, 75, 0.07);
  border: 1px solid rgba(201, 138, 75, 0.22);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.4rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.concept-notice svg,
.concept-notice .concept-icon {
  flex-shrink: 0;
  color: var(--accent-amber);
  margin-top: 1px;
}
.concept-notice p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: none;
  margin-bottom: 0;
}


/* ────────────────────────────────────────────────────────────
   CASE NAVIGATION
──────────────────────────────────────────────────────────── */
.case-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.case-nav-left { display: flex; }
.case-nav-right { display: flex; }

.case-nav-back,
.case-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition:
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.case-nav-back:hover,
.case-nav-next:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}
.case-nav-back:hover { transform: translateX(-3px); }
.case-nav-next:hover { transform: translateX(3px); }


/* ────────────────────────────────────────────────────────────
   IMG PLACEHOLDERS (case-study context)
   .img-placeholder base styles are in styles.css;
   these rules adjust sizing/rounding in figure contexts.
──────────────────────────────────────────────────────────── */
.figure-full-width .img-placeholder {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
}
.chapter-figure .img-placeholder {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}


/* ────────────────────────────────────────────────────────────
   SPACING — add top padding to clear fixed nav
──────────────────────────────────────────────────────────── */
.section-case-study > article,
.section-case-study {
  padding-top: 0;
}
.case-block.container,
.case-nav.container {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
/* First case-block after case-header gets slightly more top space */
.case-header + .case-block.container {
  margin-top: clamp(3rem, 6vw, 5rem);
}


/* ────────────────────────────────────────────────────────────
   CONTEXT & USERS
──────────────────────────────────────────────────────────── */
.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}
.context-card {
  position: relative;
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-surface);
  overflow: hidden;
}
/* Accent left bar */
.context-card::before {
  content: '';
  position: absolute;
  left: 0; top: 1.25rem; bottom: 1.25rem;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
  opacity: 0.7;
}
.context-card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.context-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 0;
  max-width: none;
}

/* CV lifecycle row */
.lifecycle-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 2.25rem 0 0.75rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.lifecycle-stage {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 0.45rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  margin:0 24px
}
.lifecycle-stage--focus {
  color: var(--accent);
  border-color: rgba(74, 158, 255, 0.35);
  background: var(--accent-dim);
  font-weight: 600;
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.07);
}
.lifecycle-divider {
  position: relative;
  width: 2.5rem;
  height: 1px;
  background: var(--border-strong);
  flex-shrink: 0;
}
/* Arrowhead */
.lifecycle-divider::after {
  content: '';
  position: absolute;
  right: -1px; top: -3px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid var(--border-strong);
}
.lifecycle-note {
  font-size: 0.8rem !important;
  color: var(--text-tertiary) !important;
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
  max-width: none !important;
  font-style: italic;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  width: 100%;
}


/* ────────────────────────────────────────────────────────────
   ROLE & TEAM
──────────────────────────────────────────────────────────── */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0 1.5rem;
}
.role-detail {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-surface);
}
.role-detail-label {
  display: block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.role-detail p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 0;
  max-width: none;
}
.partner-tags-wrap {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.partner-tags-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}
.partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1;
}
.partner-tag {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 0.28rem 0.9rem;
  letter-spacing: 0.01em;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}


/* ────────────────────────────────────────────────────────────
   RESEARCH & DISCOVERY
──────────────────────────────────────────────────────────── */
.discovery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}
.discovery-finding {
  position: relative;
  padding: 1.75rem 1.75rem 1.75rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-surface);
  overflow: hidden;
}
/* Large ghost number in corner */
.discovery-number {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  font-size: 5rem;
  font-weight: 800;
  color: var(--text-primary);
  opacity: 0.04;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
/* Small visible index above the content */
.discovery-finding::before {
  content: attr(data-index);
  display: block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.discovery-finding p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 0;
  max-width: none;
  position: relative; /* above ghost number */
}
.discovery-finding strong {
  color: var(--text-primary);
  font-weight: 600;
}


/* ────────────────────────────────────────────────────────────
   SUCCESS METRICS
──────────────────────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}
.metric-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-surface);
  gap: 0.85rem;
}
.metric-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  border-left: 2px solid var(--border-strong);
  padding-left: 0.75rem;
}
.metric-delta-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.metric-before {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.2);
  font-variant-numeric: tabular-nums;
}
.metric-arrow {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  flex-shrink: 0;
  opacity: 0.5;
}
.metric-after {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric-note {
  font-size: 0.76rem !important;
  color: var(--text-tertiary) !important;
  line-height: 1.55 !important;
  margin-bottom: 0 !important;
  max-width: none !important;
  margin-top: auto !important;
}


/* ────────────────────────────────────────────────────────────
   DESIGN EXPLORATIONS
──────────────────────────────────────────────────────────── */
.exploration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}
/* Not-shipped option looks intentionally quieter */
.exploration-option {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-surface);
  opacity: 0.75;
}
/* Shipped option stands out */
.exploration-option--shipped {
  opacity: 1;
  border: 1.5px solid rgba(74, 158, 255, 0.5);
  background: linear-gradient(
    160deg,
    rgba(74, 158, 255, 0.07) 0%,
    var(--bg-surface) 60%
  );
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.06),
              inset 0 1px 0 rgba(74, 158, 255, 0.12);
}
.option-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}
.option-tag--shipped {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(74, 158, 255, 0.35);
}
.option-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.exploration-option p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 0;
  margin-bottom: 12px;
  max-width: none;
  min-height: 110px;
}
.option-tradeoff {
  padding: 1rem 1.1rem;
  border-radius: var(--r-lg);
  margin-top: 1.25rem;
}
.option-tradeoff--risk {
  background: rgba(201, 138, 75, 0.06);
  border: 1px solid rgba(201, 138, 75, 0.22);
}
.option-tradeoff--win {
  background: rgba(74, 158, 255, 0.06);
  border: 1px solid rgba(74, 158, 255, 0.22);
}
.tradeoff-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.option-tradeoff--risk .tradeoff-label { color: var(--accent-amber); }
.option-tradeoff--win  .tradeoff-label { color: var(--accent); }
.option-tradeoff p {
  font-size: 0.84rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
  max-width: none !important;
}
/* 3-column variant — used for "before" showcases */
.exploration-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
.exploration-grid--3col .exploration-option {
  opacity: 1; /* all cards equal weight — no hierarchy */
}


/* ────────────────────────────────────────────────────────────
   VALIDATION
──────────────────────────────────────────────────────────── */
.validation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}
.validation-item {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-surface);
  border-left: 3px solid var(--border-strong);
}
/* Key findings get a colored left treatment */
.validation-item:nth-child(3),
.validation-item:nth-child(4) {
  border-left-color: var(--accent-sage);
}
.validation-item-label {
  display: block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}
.validation-item:nth-child(3) .validation-item-label,
.validation-item:nth-child(4) .validation-item-label {
  color: var(--accent-sage);
}
.validation-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 0;
  max-width: none;
}


/* ────────────────────────────────────────────────────────────
   OUTCOME STATS
──────────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 2rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--border); /* shows as gap color between cells */
}
.stat-item {
  padding: 2rem 1.75rem;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
/* Faint radial glow behind each number */
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(74, 158, 255, 0.45) 50%,
    transparent 100%
  );
}
.stat-number {
  display: block;
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ────────────────────────────────────────────────────────────
   LEARNINGS GRID
──────────────────────────────────────────────────────────── */
.learnings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  counter-reset: learning;
}
.learning-item {
  position: relative;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg);
  counter-increment: learning;
}
/* Auto-numbered badge in top-right */
.learning-item::before {
  content: counter(learning, decimal-leading-zero);
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  opacity: 0.5;
}
/* Last learning ("what I'd do differently") gets a distinct amber tint */
.learning-item:last-child {
  border-color: rgba(201, 138, 75, 0.22);
  background: rgba(201, 138, 75, 0.04);
}
.learning-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin-bottom: 0.7rem;
  line-height: 1.4;
  padding-right: 2rem; /* avoid overlap with counter */
}
.learning-item p {
  font-size: 0.88rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.78 !important;
  margin-bottom: 0 !important;
  max-width: none !important;
}


/* ────────────────────────────────────────────────────────────
   LIGHTBOX
──────────────────────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  /* Forces a GPU compositing layer — fixes macOS cursor-disappear bug */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.lightbox-overlay.is-open {
  display: flex;
}
.lightbox-img {
  max-width: min(90vw, 1280px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.7);
  cursor: default;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.15s ease;
  z-index: 10000;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  max-width: 600px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Zoom cursor hint on expandable images */
.exploration-option .case-img {
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}
.exploration-option .case-img:hover { opacity: 0.88; }

/* ────────────────────────────────────────────────────────────
   CHAPTER SCAN GRID — three-chapter at-a-glance summary
──────────────────────────────────────────────────────────── */
.chapter-scan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.chapter-scan-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.75rem);
  background: var(--bg-surface);
  text-decoration: none;
  transition: background 0.15s ease;
}
.chapter-scan-item:hover { background: color-mix(in srgb, var(--accent) 6%, var(--bg-surface)); }
.chapter-scan-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.chapter-scan-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.chapter-scan-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}
.chapter-scan-stat {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  font-variant-numeric: tabular-nums;
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET (≤ 860px)
──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .overview-item {
    border-bottom: 1px solid var(--border);
  }
  .overview-item:nth-child(even) {
    border-right: none;
  }
  .overview-item:nth-last-child(-n+2):not(:nth-child(odd) ~ *) {
    border-bottom: none;
  }
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE (≤ 600px)
──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .case-title { font-size: clamp(1.75rem, 7vw, 2.4rem); }

  .overview-grid {
    grid-template-columns: 1fr !important;
  }
  .overview-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .overview-item:last-child { border-bottom: none; }

  .chapter-figures-row {
    grid-template-columns: 1fr;
  }

  .case-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-block--highlight {
    padding-top: 0;
    padding-bottom: 0;
  }

  .context-grid,
  .role-grid,
  .discovery-grid,
  .metrics-grid,
  .exploration-grid,
  .exploration-grid--3col,
  .validation-grid,
  .learnings-grid {
    grid-template-columns: 1fr;
  }

  .exploration-option { opacity: 1; }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }
  .stat-item { padding: 1.5rem 1.25rem; }

  .lifecycle-row { padding: 1rem 1.1rem; }
  .lifecycle-divider { width: 1rem; }
  .lifecycle-divider::after { display: none; }

  .partner-tags-wrap { flex-direction: column; align-items: flex-start; }

  .chapter-scan-grid { grid-template-columns: 1fr; }
  .decision-grid { grid-template-columns: 1fr; }
}

/* ── Decision / Thinking behind the call ── */
.decision-block {
  width: 100%;
}

.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.decision-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* "The call" card gets accent treatment */
.decision-item:last-child {
  background: rgba(74, 158, 255, 0.05);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-left: 3px solid var(--accent);
}

.decision-item-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.decision-item:last-child .decision-item-label {
  color: var(--accent);
}

.decision-item p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: none;
}


/* ================================================================
   EXTENDED COMPONENTS — MightyRecruiter + Climbr case studies
   ================================================================ */

/* ── Quote Wall ─────────────────────────────────────────────── */
.quote-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.quote-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
}
.quote-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  position: absolute;
  top: 0.6rem;
  left: 1.1rem;
}
.quote-card p {
  font-size: 0.88rem !important;
  line-height: 1.7 !important;
  color: var(--text-secondary) !important;
  font-style: italic;
  padding-top: 1.25rem;
  margin: 0 !important;
  max-width: none !important;
}

/* ── Task Timing Table (Usability Testing) ──────────────────── */
.task-timing-table {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.task-timing-thead {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.task-timing-th {
  padding: 0.65rem 1.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.task-timing-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-top: 1px solid var(--border);
}
.task-timing-row:first-child { border-top: none; }
.task-timing-td {
  padding: 0.875rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}
.task-timing-td:first-child { color: var(--text-primary); font-weight: 500; }
.task-timing-td.is-new  { color: var(--accent); font-weight: 600; }
.task-timing-td.is-old  { color: var(--text-tertiary); text-decoration: line-through; }
.task-timing-avg { background: color-mix(in srgb, var(--accent) 4%, var(--bg-surface)); }
.task-timing-avg .task-timing-td:first-child { font-weight: 700; }

/* ── Survey Bars ─────────────────────────────────────────────── */
.survey-grid { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.survey-row  { display: grid; grid-template-columns: 6.5rem 1fr 3.5rem; align-items: center; gap: 1rem; }
.survey-label { font-size: 0.84rem; color: var(--text-secondary); font-weight: 500; }
.survey-bar-track { height: 6px; background: var(--bg-elevated); border-radius: 100px; overflow: hidden; }
.survey-bar-fill { height: 100%; border-radius: 100px; background: var(--accent); }
.survey-bar-fill.good    { background: var(--accent-sage); }
.survey-bar-fill.neutral { background: var(--border-strong); }
.survey-bar-fill.poor    { background: var(--accent-amber); }
.survey-pct { font-size: 0.84rem; font-weight: 600; color: var(--text-primary); text-align: right; }

/* ── Companion Work Grid ─────────────────────────────────────── */
.companion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.companion-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.companion-img-wrap {
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  overflow: hidden;
}
.companion-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.companion-info { padding: 1rem 1.25rem; }
.companion-label {
  display: block;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 0.3rem;
}
.companion-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin: 0; }
.companion-desc { font-size: 0.82rem; color: var(--text-secondary); margin: 0.35rem 0 0; line-height: 1.55; }

/* ── Principle Cards (Climbr) ───────────────────────────────── */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.principle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.principle-num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--border-strong);
  font-weight: 400;
}
.principle-title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin: 0; }
.principle-body  { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }

/* ── Journey Flow (Climbr) ──────────────────────────────────── */
.journey-flow {
  display: flex;
  align-items: stretch;
  margin-top: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.journey-step {
  flex: 1;
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.journey-step:last-child { border-right: none; }
.journey-step.is-active  { background: rgba(74,158,255,0.05); }
.journey-step-label {
  display: block;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 0.3rem;
}
.journey-step.is-active .journey-step-label { color: var(--accent); }
.journey-step-title { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }

/* ── Workflow Cards (Climbr) ────────────────────────────────── */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.workflow-num {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.workflow-title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin: 0; }
.workflow-body  { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }

/* ── Validation Phases (Climbr) ─────────────────────────────── */
.validation-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.validation-phase {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.validation-phase:nth-child(2) { border-left-color: var(--accent); }
.validation-phase:nth-child(3) { border-left-color: var(--accent-sage); }
.phase-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-tertiary);
}
.validation-phase:nth-child(2) .phase-label { color: var(--accent); }
.validation-phase:nth-child(3) .phase-label { color: var(--accent-sage); }
.phase-title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin: 0; }
.phase-body  { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }

/* ── Concept Notice Banner ──────────────────────────────────── */
.concept-banner {
  background: rgba(74,158,255,0.06);
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: var(--r-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.concept-banner-icon { color: var(--accent); flex-shrink: 0; margin-top: 0.15rem; }
.concept-banner p {
  font-size: 0.88rem !important; color: var(--text-secondary) !important;
  margin: 0 !important; line-height: 1.65 !important; max-width: none !important;
}

/* ── Badge Variants ─────────────────────────────────────────── */
.badge-concept {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-amber);
  background: rgba(201,138,75,0.12);
  border: 1px solid rgba(201,138,75,0.25);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .quote-wall       { grid-template-columns: 1fr 1fr; }
  .principle-grid   { grid-template-columns: 1fr 1fr; }
  .companion-grid   { grid-template-columns: 1fr 1fr; }
  .workflow-grid    { grid-template-columns: 1fr 1fr; }
  .validation-phases{ grid-template-columns: 1fr 1fr; }
  .journey-flow     { flex-direction: column; }
  .journey-step     { border-right: none; border-bottom: 1px solid var(--border); }
  .journey-step:last-child { border-bottom: none; }
}
@media (max-width: 600px) {
  .quote-wall       { grid-template-columns: 1fr; }
  .principle-grid   { grid-template-columns: 1fr; }
  .companion-grid   { grid-template-columns: 1fr; }
  .workflow-grid    { grid-template-columns: 1fr; }
  .validation-phases{ grid-template-columns: 1fr; }
  .task-timing-thead{ grid-template-columns: 1fr 1fr 1fr; }
  .task-timing-row  { grid-template-columns: 1fr 1fr 1fr; }
  .cs-before-grid   { grid-template-columns: 1fr; }
  .cs-decision-grid { grid-template-columns: 1fr; }
  .cs-3col-grid     { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────────────────
   SHARED VISUAL-FORWARD COMPONENTS (used across all redesigned case studies)
──────────────────────────────────────────────────────────── */

/* Insight list — scannable numbered findings */
.insight-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 1.5rem;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.insight-row {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
}
.insight-row + .insight-row { border-top: 1px solid var(--border-subtle); }
.insight-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  padding-top: 0.15rem;
}
.insight-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.insight-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

/* Before/After 2-col image grid */
.cs-before-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.cs-before-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cs-before-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.cs-before-item img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
}
.cs-before-item figcaption {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Decision card grid — 3-up image + text */
.cs-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.cs-decision-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.cs-decision-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-elevated);
  display: block;
  border-bottom: 1px solid var(--border-subtle);
}
.cs-decision-body {
  padding: 1rem 1.1rem 1.25rem;
}
.cs-decision-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 0.35rem;
}
.cs-decision-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
}
.cs-decision-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* 3-column before images */
.cs-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.cs-3col-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cs-3col-item img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
}
.cs-3col-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.cs-3col-item figcaption {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}
