/* ==========================================================================
   DataWarsaw · AI Experiments & Applied Systems Stylesheet
   ========================================================================== */

:root {
  --exp-bg: #0b0c0e;
  --exp-card: #111418;
  --exp-card-hover: #161a20;
  --exp-card-subtle: #0e1115;
  --exp-border: rgba(247, 246, 241, 0.12);
  --exp-border-subtle: rgba(247, 246, 241, 0.07);
  --exp-lime: #c8ff3d;
  --exp-lime-hover: #d5ff70;
  --exp-lime-glow: rgba(200, 255, 61, 0.2);
  --exp-paper: #f7f6f1;
  --exp-muted: rgba(247, 246, 241, 0.65);
  --exp-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Courier New', Courier, monospace;
  --exp-serif: Georgia, 'Times New Roman', serif;
  --exp-display: 'Helvetica Neue', Arial, sans-serif;
  --exp-pad: clamp(1.25rem, 4vw, 4rem);
}

body.exp-body {
  background-color: var(--exp-bg);
  color: var(--exp-paper);
  font-family: var(--exp-display);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.exp-container {
  width: min(100%, 1400px);
  margin-inline: auto;
  padding-inline: var(--exp-pad);
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Header & Global Navigation
   -------------------------------------------------------------------------- */
.exp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 14, 0.92);
  border-bottom: 1px solid var(--exp-border);
  padding: 1rem 0;
}

.exp-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.exp-brand-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.exp-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--exp-paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.exp-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--exp-lime);
  box-shadow: 0 0 10px var(--exp-lime);
}

.exp-badge-section {
  font-family: var(--exp-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 255, 61, 0.9);
  background: rgba(200, 255, 61, 0.08);
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(200, 255, 61, 0.25);
  border-radius: 2px;
}

.exp-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--exp-mono);
  font-size: 0.78rem;
}

.exp-nav-link {
  color: rgba(247, 246, 241, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.exp-nav-link:hover {
  color: var(--exp-paper);
}

.exp-nav-link.is-active {
  color: var(--exp-lime);
  border-bottom: 1px solid var(--exp-lime);
}

.exp-nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  color: var(--exp-paper);
  text-decoration: none;
  transition: all 0.2s ease;
}

.exp-nav-cta:hover {
  border-color: var(--exp-lime);
  color: var(--exp-lime);
}

/* --------------------------------------------------------------------------
   Breadcrumb Navigation
   -------------------------------------------------------------------------- */
.exp-breadcrumbs {
  padding: 1.5rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--exp-mono);
  font-size: 0.72rem;
  color: var(--exp-muted);
}

.exp-breadcrumbs a {
  color: var(--exp-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.exp-breadcrumbs a:hover {
  color: var(--exp-lime);
}

.exp-breadcrumbs .crumb-sep {
  color: rgba(247, 246, 241, 0.3);
}

.exp-breadcrumbs .crumb-current {
  color: var(--exp-paper);
}

/* --------------------------------------------------------------------------
   Index Hero Section
   -------------------------------------------------------------------------- */
.exp-index-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--exp-border);
}

.exp-index-hero .eyebrow {
  display: flex;
  align-items: center;
  font-family: var(--exp-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
}

.exp-index-hero .eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--exp-lime);
  box-shadow: 0 0 12px var(--exp-lime);
  margin-right: 0.75rem;
}

.exp-index-hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 1.5rem;
  max-width: 950px;
}

.exp-index-hero h1 em {
  font-family: var(--exp-serif);
  font-style: italic;
  color: var(--exp-lime);
}

.exp-index-hero p.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--exp-muted);
  max-width: 760px;
  margin: 0 0 2rem;
}

/* --------------------------------------------------------------------------
   Category & Filter Bar
   -------------------------------------------------------------------------- */
.exp-filter-bar {
  padding: 1.5rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--exp-border-subtle);
}

.exp-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--exp-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  background: var(--exp-card-subtle);
  border: 1px solid var(--exp-border);
  color: var(--exp-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--exp-card);
  color: var(--exp-paper);
  border-color: rgba(247, 246, 241, 0.25);
}

.filter-btn.is-active {
  background: rgba(200, 255, 61, 0.12);
  color: var(--exp-lime);
  border-color: rgba(200, 255, 61, 0.4);
}

.exp-count-label {
  font-family: var(--exp-mono);
  font-size: 0.72rem;
  color: var(--exp-muted);
}

/* --------------------------------------------------------------------------
   Experiments Grid & Cards
   -------------------------------------------------------------------------- */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  padding: 3rem 0 6rem;
}

.exp-card {
  grid-column: span 6;
  background: var(--exp-card);
  border: 1px solid var(--exp-border);
  border-radius: 4px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.exp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 255, 61, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.exp-card.is-featured {
  grid-column: span 12;
  background: radial-gradient(circle at 90% 15%, rgba(200, 255, 61, 0.04), transparent 40%), var(--exp-card);
  border-color: rgba(200, 255, 61, 0.3);
  padding: 2.75rem;
}

.exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.exp-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.exp-num {
  font-family: var(--exp-mono);
  font-size: 0.75rem;
  color: var(--exp-lime);
  font-weight: 600;
}

.exp-status-badge {
  font-family: var(--exp-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  border: 1px solid transparent;
}

.exp-status-badge.status-production {
  background: rgba(200, 255, 61, 0.1);
  color: var(--exp-lime);
  border-color: rgba(200, 255, 61, 0.3);
}

.exp-status-badge.status-active {
  background: rgba(121, 184, 255, 0.1);
  color: #79b8ff;
  border-color: rgba(121, 184, 255, 0.3);
}

.exp-status-badge.status-lab {
  background: rgba(210, 168, 255, 0.1);
  color: #d2a8ff;
  border-color: rgba(210, 168, 255, 0.3);
}

.exp-card-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--exp-paper);
}

.exp-card-subtitle {
  font-family: var(--exp-mono);
  font-size: 0.76rem;
  color: rgba(200, 255, 61, 0.9);
  margin: 0 0 1rem;
}

.exp-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--exp-muted);
  margin: 0 0 1.75rem;
  max-width: 68ch;
}

.exp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.exp-tag {
  font-family: var(--exp-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  background: rgba(247, 246, 241, 0.05);
  border: 1px solid var(--exp-border-subtle);
  color: rgba(247, 246, 241, 0.75);
}

.exp-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--exp-border-subtle);
  padding-top: 1.25rem;
  margin-top: auto;
}

.exp-card-cta {
  font-family: var(--exp-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--exp-lime);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.exp-card:hover .exp-card-cta .cta-arrow {
  transform: translateX(4px);
}

.cta-arrow {
  transition: transform 0.2s ease;
}

.exp-card-metrics {
  display: flex;
  gap: 1.5rem;
  font-family: var(--exp-mono);
  font-size: 0.68rem;
  color: var(--exp-muted);
}

.exp-card-metrics span strong {
  color: var(--exp-paper);
}

/* --------------------------------------------------------------------------
   Detail / Case Study Page Layout
   -------------------------------------------------------------------------- */
.case-hero {
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid var(--exp-border);
}

.case-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.case-tag {
  font-family: var(--exp-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--exp-lime);
  background: rgba(200, 255, 61, 0.08);
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(200, 255, 61, 0.25);
  border-radius: 2px;
}

.case-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0 0 0.8rem;
}

.case-hero h1 em {
  font-family: var(--exp-serif);
  font-style: italic;
  color: var(--exp-lime);
}

.case-hero-sub {
  font-family: var(--exp-mono);
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  color: rgba(200, 255, 61, 0.9);
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

.case-hero-lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--exp-paper);
  max-width: 820px;
  margin: 0 0 2.5rem;
}

.case-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  border-top: 1px solid var(--exp-border);
  padding-top: 1.75rem;
}

.case-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.case-stat-label {
  font-family: var(--exp-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--exp-muted);
}

.case-stat-val {
  font-family: var(--exp-mono);
  font-size: 0.85rem;
  color: var(--exp-paper);
  font-weight: 600;
}

.case-stat-val.is-lime {
  color: var(--exp-lime);
}

/* --------------------------------------------------------------------------
   Case Study Content Sections
   -------------------------------------------------------------------------- */
.case-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--exp-border);
}

.case-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem;
  align-items: start;
}

.case-section-header {
  position: sticky;
  top: 6rem;
}

.case-section-header .section-index {
  font-family: var(--exp-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--exp-lime);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.case-section-header h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.case-section-header h2 em {
  font-family: var(--exp-serif);
  font-style: italic;
  color: var(--exp-lime);
}

.case-section-header p {
  color: var(--exp-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 38ch;
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.case-body p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(247, 246, 241, 0.85);
}

.case-body p.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--exp-paper);
  letter-spacing: -0.015em;
}

.case-callout {
  background: var(--exp-card);
  border-left: 3px solid var(--exp-lime);
  border-top: 1px solid var(--exp-border);
  border-right: 1px solid var(--exp-border);
  border-bottom: 1px solid var(--exp-border);
  padding: 1.75rem;
  border-radius: 0 3px 3px 0;
}

.case-callout h4 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--exp-paper);
}

.case-callout p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--exp-muted);
}

/* --------------------------------------------------------------------------
   Native Visual Architecture Pipeline Diagram
   -------------------------------------------------------------------------- */
.pipeline-stage {
  background: var(--exp-card);
  border: 1px solid var(--exp-border);
  border-radius: 4px;
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.pipeline-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--exp-border-subtle);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pipeline-stage-title {
  font-family: var(--exp-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--exp-lime);
}

.pipeline-stage-badge {
  font-family: var(--exp-mono);
  font-size: 0.65rem;
  color: var(--exp-muted);
}

.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
}

.pipeline-node {
  background: var(--exp-card-subtle);
  border: 1px solid var(--exp-border);
  border-radius: 3px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pipeline-node:hover {
  border-color: rgba(200, 255, 61, 0.5);
  transform: translateY(-2px);
}

.pipeline-node:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-family: var(--exp-mono);
  font-size: 1.1rem;
  color: var(--exp-lime);
  background: var(--exp-bg);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--exp-border);
}

.node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.node-step {
  font-family: var(--exp-mono);
  font-size: 0.65rem;
  color: var(--exp-lime);
  font-weight: 600;
}

.node-layer {
  font-family: var(--exp-mono);
  font-size: 0.6rem;
  color: var(--exp-muted);
  text-transform: uppercase;
}

.node-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--exp-paper);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.node-tech {
  font-family: var(--exp-mono);
  font-size: 0.72rem;
  color: rgba(200, 255, 61, 0.9);
  margin-bottom: 0.75rem;
}

.node-desc {
  font-size: 0.82rem;
  color: var(--exp-muted);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Scoring Rubric & Decision Matrix Components
   -------------------------------------------------------------------------- */
.scoring-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.scoring-card {
  background: var(--exp-card);
  border: 1px solid var(--exp-border);
  border-radius: 3px;
  padding: 1.35rem;
}

.scoring-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.scoring-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--exp-paper);
}

.scoring-card-scale {
  font-family: var(--exp-mono);
  font-size: 0.72rem;
  color: var(--exp-lime);
}

.scoring-card p {
  font-size: 0.85rem !important;
  color: var(--exp-muted) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.decision-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.decision-card {
  background: var(--exp-card);
  border: 1px solid var(--exp-border);
  border-radius: 3px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.decision-card.is-ignore {
  border-top: 3px solid #ff6b6b;
}

.decision-card.is-watch {
  border-top: 3px solid #ffd166;
}

.decision-card.is-test {
  border-top: 3px solid var(--exp-lime);
}

.decision-badge {
  font-family: var(--exp-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 1rem;
  width: fit-content;
}

.is-ignore .decision-badge {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.is-watch .decision-badge {
  background: rgba(255, 209, 102, 0.15);
  color: #ffd166;
}

.is-test .decision-badge {
  background: rgba(200, 255, 61, 0.15);
  color: var(--exp-lime);
}

.decision-card h4 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--exp-paper);
}

.decision-card p {
  font-size: 0.85rem !important;
  line-height: 1.55 !important;
  color: var(--exp-muted) !important;
  margin: 0 !important;
}

/* --------------------------------------------------------------------------
   Tech Stack Grid
   -------------------------------------------------------------------------- */
.tech-stack-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.tech-stack-table th {
  font-family: var(--exp-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--exp-muted);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--exp-border);
  background: var(--exp-card-subtle);
}

.tech-stack-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--exp-border-subtle);
  color: var(--exp-paper);
  vertical-align: top;
}

.tech-stack-table td.is-mono {
  font-family: var(--exp-mono);
  font-size: 0.78rem;
  color: var(--exp-lime);
}

/* --------------------------------------------------------------------------
   Scope Limits & Next Steps List
   -------------------------------------------------------------------------- */
.limits-list, .next-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.limits-list li, .next-list li {
  background: var(--exp-card);
  border: 1px solid var(--exp-border);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.limits-list .limit-icon {
  color: #ff6b6b;
  font-family: var(--exp-mono);
  font-weight: bold;
}

.next-list .next-icon {
  color: var(--exp-lime);
  font-family: var(--exp-mono);
  font-weight: bold;
}

.item-content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--exp-paper);
  margin-bottom: 0.25rem;
}

.item-content p {
  font-size: 0.85rem !important;
  color: var(--exp-muted) !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* --------------------------------------------------------------------------
   Bottom Navigation / Footers
   -------------------------------------------------------------------------- */
.case-footer-nav {
  padding: 4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--exp-border);
}

.case-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--exp-mono);
  font-size: 0.85rem;
  color: var(--exp-paper);
  text-decoration: none;
  border: 1px solid var(--exp-border);
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.case-back-link:hover {
  border-color: var(--exp-lime);
  color: var(--exp-lime);
}

.case-next-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--exp-mono);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--exp-lime);
  color: #0b1514;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.case-next-cta:hover {
  background: var(--exp-lime-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries (375, 390, 430, 768, 900, 1440)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .case-section-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .case-section-header {
    position: static;
  }
  .pipeline-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .pipeline-node:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .exp-grid {
    grid-template-columns: 1fr;
  }
  .exp-card {
    grid-column: span 1;
    padding: 1.75rem;
  }
  .exp-card.is-featured {
    grid-column: span 1;
    padding: 1.75rem;
  }
  .case-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .pipeline-flow {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pipeline-node:not(:last-child)::after {
    right: 50%;
    top: auto;
    bottom: -16px;
    transform: translateX(50%);
    content: '↓';
  }
  .scoring-grid {
    grid-template-columns: 1fr;
  }
  .decision-matrix {
    grid-template-columns: 1fr;
  }
  .exp-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 1.2rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--exp-border-subtle);
  }
}

@media (max-width: 480px) {
  .case-stats-strip {
    grid-template-columns: 1fr;
  }
  .case-hero h1 {
    font-size: 2.2rem;
  }
  .case-footer-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .case-back-link, .case-next-cta {
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
