/* ══════════════════════════════════════════════
   CASE STUDY — Shared structural base
   Loaded after global.css, before brand CSS
   Brand files override --cs-* variables
   ══════════════════════════════════════════════ */

/* ── DEFAULT ACCENT VARIABLES ──────────────── */
:root {
  --cs-navy: #1B1B1B;
  --cs-accent: #EEF4A9;
  --cs-accent-secondary: #767676;
  --cs-orb-color: rgba(27, 27, 27, 0.06);
  --cs-scroll-color: #767676;
  --rule: rgba(27,27,27,0.09);
  --cream-dark: #EEEBE5;
  --sans: 'Syne', system-ui, sans-serif;
  --image-background: #E8E5DE;
  --cs-body-color: #767676;
}

/* ── NOISE TEXTURE ─────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── SCROLL PROGRESS ───────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--cs-scroll-color);
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
}

/* ── NAV OVERRIDES (dark hero context) ─────── */
.nav-links a { color: rgba(247,245,243,0.5); }
.nav-links a:hover { color: var(--cream); }
.btn-ink { background: var(--cream); color: var(--ink); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(247,245,243,0.2); }

/* ── BTN MORPH (dark hero context) ─────────── */
.btn-morph { border-color: var(--cream); color: var(--cream); }
.btn-morph:hover { box-shadow: 5px 6px 0 0 var(--cream); }
.btn-morph.btn-morph-ink { background: var(--cream); border-color: var(--ink); color: var(--ink); }
.btn-morph.btn-morph-ink:hover { box-shadow: 5px 6px 0 0 #C5CA7A; }
#nav.scrolled .btn-morph.btn-morph-ink { background: var(--cream); border-color: var(--ink); color: var(--ink); }
#nav.scrolled .btn-morph.btn-morph-ink:hover { box-shadow: 5px 6px 0 0 #C5CA7A; }
#nav.scrolled .btn-morph:not(.btn-morph-ink) { border-color: var(--cream); color: var(--cream); }
#nav.scrolled .btn-morph:not(.btn-morph-ink):hover { box-shadow: 5px 6px 0 0 var(--cream); }

/* ── HERO ──────────────────────────────────── */
.cs-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 100px max(64px, calc((100vw - 1280px) / 2)) 0;
  position: relative;
  overflow: hidden;
}
.cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--cs-navy) 100%);
  z-index: 1;
}
.cs-hero-bg { position: absolute; inset: 0; background: var(--cs-navy); }
.cs-hero-content { position: relative; z-index: 2; }
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.3s;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}
.cs-back:hover { color: var(--cs-accent); }
.cs-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.cs-client {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cs-accent);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-client::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--cs-accent);
}
.cs-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 120px;
  line-height: 108px;
  letter-spacing: 0;
  color: var(--cream);
  max-width: 1100px;
}
.cs-hero h1 em { font-style: normal; color: var(--cs-accent); }
.cs-hero h1 .line { display: block; opacity: 0; animation: fadeUp 0.9s forwards; }
.cs-hero h1 .line:nth-child(1) { animation-delay: 0.6s; }
.cs-hero h1 .line:nth-child(2) { animation-delay: 0.8s; }
.cs-hero-sub {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  color: rgba(245,240,232,0.45);
  max-width: 600px;
  margin-top: 16px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s 1.0s forwards;
}

/* ── METRICS BAR ───────────────────────────── */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--cs-navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%;
  position: relative;
  z-index: 2;
}
.metric-cell {
  text-align: center;
  padding: 24px 24px;
  position: relative;
}
.metric-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.06);
}
.metric-num {
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 500;
  letter-spacing: -1.8px;
  color: var(--cs-accent);
  line-height: 1;
  margin-bottom: 8px;
}
.metric-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.metric-context {
  font-size: 16px;
  line-height: 26px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ── META BAR ──────────────────────────────── */
.cs-meta-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 40px 56px;
}
.cs-meta-bar-inner { max-width: 1140px; margin: 0 auto; display: flex; gap: 48px; justify-content: space-between; }
.cs-meta-item {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.cs-meta-item span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 4px;
}

/* ── SECTIONS ──────────────────────────────── */
.cs-section {
  padding: 96px;
  max-width: 1400px;
  margin: 0 auto;
}
.cs-section.tight-top { padding-top: 0; }
.cs-section-inner { max-width: 1140px; margin: 0 auto; }
.cs-grid { display: grid; grid-template-columns: 200px 1fr; gap: 64px; align-items: start; }
.cs-sidebar-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-60);
  line-height: 24px;
  padding-top: 6px;
  position: sticky;
  top: 100px;
}
.cs-body h2 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  margin-bottom: 12px;
  color: var(--ink);
}
.cs-body h2 em,
.cs-body h2 span.cs-accent {
  font-style: normal;
  color: var(--cs-accent-secondary);
}
.cs-body p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--cs-body-color);
  margin-bottom: 20px;
}
.cs-body ul:not(.act-list):not(.ba-list) { list-style: disc; padding-left: 20px; margin-bottom: 20px; }
.cs-body ul:not(.act-list):not(.ba-list) li {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--cs-body-color);
  margin-bottom: 4px;
}
.cs-body ul:not(.act-list):not(.ba-list) li strong { font-weight: 400; color: var(--ink); }
.cs-body p strong { font-weight: 400; color: var(--ink); }

/* ── SECTION RULE ──────────────────────────── */
.section-rule { max-width: calc(100% - 112px); margin: 0 auto; border: none; border-top: 1px solid var(--rule); }

/* ── BEFORE / AFTER CARDS ──────────────────── */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.ba-card { border-radius: 12px; padding: 32px; }
.ba-before { background: rgba(27,27,27,0.03); border: 1px solid var(--rule); }
.ba-after {
  background: var(--lime);
  border: 1px solid rgba(27,27,27,0.06);
}
.ba-card-label { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.ba-before .ba-card-label { color: var(--ink-40); }
.ba-after .ba-card-label { color: var(--ink); }
.ba-dot { width: 7px; height: 7px; border-radius: 50%; }
.ba-before .ba-dot { background: var(--ink-20); }
.ba-after .ba-dot { background: var(--ink); }
.ba-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.ba-list li { font-size: 16px; line-height: 22px; color: var(--ink-60); display: flex; gap: 10px; align-items: flex-start; }
.ba-icon { font-size: 12px; flex-shrink: 0; width: 18px; text-align: center; padding-top: 2px; }
.ba-before .ba-icon { color: var(--ink-40); }
.ba-after .ba-icon { color: var(--ink); }
.ba-after .ba-list li { color: var(--ink); }

/* ── INSIGHT CALLOUT ───────────────────────── */
.insight-callout { background: var(--lime); border-radius: 12px; padding: 32px 36px; margin-top: 28px; }
.insight-callout p { font-family: var(--sans); font-size: 18px; line-height: 30px; color: var(--ink); margin: 0; }

/* ── IMAGE ROW & FRAMES (shared across all case studies) ── */
.cs-image-row {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px;
  align-items: stretch;
}
.cs-image-card {
  flex: 1;
  cursor: none;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-image-card:hover { opacity: 0.85; }
.cs-image-frame {
  background: var(--image-background);
  border-radius: 16px;
  padding: 32px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  height: 332px;
}
.cs-image-crop {
  width: 100%;
  flex: 1;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  background: rgba(255,255,255,0);
}
.cs-image-card.mobile .cs-image-frame { padding: 32px 60px 0; height: 340px; }
.cs-image-card.mobile .cs-image-crop { width: 22%; }
.cs-image-crop img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}
.cs-image-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.cs-image-full { max-width: 100%; }
.cs-image-crop.wide { aspect-ratio: 16/9; }

/* ── ACTS GRID — two variants ─────────── */
.acts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 32px;
}
.acts-grid.acts-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Default: dark ink card with accent title */
.act-card {
  position: relative;
  background: var(--ink);
  border-radius: 12px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.act-num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}
.act-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--cs-accent);
  margin-bottom: 4px;
}
.act-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.act-list li {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--cream);
  padding: 0;
  position: static;
}
.act-list li::before { content: none; }

/* Giant watermark number - uses data-number attribute on .act-card */
.act-card[data-number]::after {
  content: attr(data-number);
  position: absolute;
  top: -32px;
  right: 16px;
  font-family: var(--sans);
  font-size: 120px;
  line-height: 108px;
  font-weight: 400;
  letter-spacing: -0.08em;
  color: var(--cs-accent);
  opacity: 0.08;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.act-card > * {
  position: relative;
  z-index: 1;
}

/* Light variant: cream-dark card with ink title, centered content, emoji support */
.act-card.act-card-light {
  background: var(--cream-dark);
  text-align: center;
  align-items: center;
  padding: 32px 24px;
}
.act-card.act-card-light .act-num {
  color: var(--ink-40);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.act-card.act-card-light .act-title {
  color: var(--ink);
}
.act-card.act-card-light .act-list li {
  color: var(--ink-60);
  text-align: center;
}
.act-card.act-card-light::after { display: none; }
.act-card.act-card-light .act-emoji {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
}
.act-card.act-card-light .act-platform {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--cs-accent-secondary);
  margin-bottom: 8px;
}

/* ── KEY INSIGHT CARD ──────────────────── */
.key-insight {
  background: var(--ink);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--cream);
}
.key-insight-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.key-insight-body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--cream);
  margin: 0;
}
.key-insight-rule {
  height: 1px;
  background: rgba(247,245,243,0.15);
  border: none;
  margin: 0;
}
.key-insight-columns {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.key-insight-columns > .key-insight-col {
  flex: 1;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  white-space: nowrap;
}
.key-insight-col-term {
  color: var(--cs-accent);
  font-weight: 400;
}
.key-insight-col-desc {
  color: rgba(247,245,243,0.6);
  font-weight: 400;
}
/* Vertical dividers between columns */
.key-insight-columns > .key-insight-col + .key-insight-col {
  border-left: 1px solid rgba(247,245,243,0.15);
  padding-left: 8px;
}
/* When there are zero columns, hide the columns row and the rule above it */
.key-insight-columns:empty {
  display: none;
}
.key-insight-columns:empty + .key-insight-rule,
.key-insight-rule:has(+ .key-insight-columns:empty) {
  display: none;
}

/* ── PROJECT NAV ───────────────────────────── */
.project-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.project-nav a {
  padding: 48px 56px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-nav a:hover { background: var(--cream-dark); }
.project-nav a:last-child { text-align: right; border-left: 1px solid var(--rule); }
.pn-dir {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.pn-name {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.pn-client {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 18px;
  color: var(--ink-60);
}

/* ── FOOTER OVERRIDE ───────────────────────── */
footer { padding: 44px max(64px, calc((100vw - 1280px) / 2)); }

/* ── ANIMATION ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1100px) {
  .cs-hero { padding-left: 48px; padding-right: 48px; }
  .cs-hero h1 { font-size: clamp(72px, 10vw, 120px); line-height: 0.9; }
}

@media (max-width: 1023px) {
  .btn-ink { display: none; }
  .cs-grid { grid-template-columns: 1fr; gap: 16px; }
  .cs-sidebar-label { position: static; }
  .section-rule { margin-left: 24px; margin-right: 24px; }
}

@media (max-width: 767px) {
  /* ── HERO ────────────────────────────────── */
  .cs-hero {
    min-height: 100svh;
    padding: calc(var(--nav-height, 64px) + 96px) 0 0;
    gap: 48px;
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }
  .cs-hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 0 24px;
  }
  .cs-hero-content > h1 { margin-top: 0; }
  .cs-hero-content > .cs-hero-sub { margin-top: 0; }
  .cs-client {
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 0.06em;
    gap: 0;
    margin-bottom: 0;
    white-space: normal;
    display: block;
  }
  .cs-client::before { display: none; }
  .cs-client .cs-client-sep { display: none; }
  .cs-client .cs-client-name { display: block; }
  .cs-client .cs-client-desc { display: block; }
  .cs-hero h1 {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: 0;
    max-width: none;
    margin-top: 16px;
  }
  .cs-hero-sub {
    font-size: 14px;
    line-height: 22px;
    color: var(--cream);
    max-width: 450px;
    margin-top: 16px;
  }

  /* ── METRICS BAR: sits INSIDE the hero on mobile, with vertical dividers ── */
  .metrics-bar {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 0 24px 32px;
    border-top: none;
    width: 100%;
    box-sizing: border-box;
  }
  .metric-cell {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
  }
  .metric-cell:not(:last-child)::after {
    display: block;
    position: absolute;
    right: -4px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.15);
  }
  .metric-num {
    font-family: var(--sans);
    font-size: 26px;
    line-height: 34px;
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 0;
  }
  .metric-label {
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 0.06em;
    text-align: center;
    white-space: normal;
    word-spacing: normal;
    hyphens: none;
  }
  .metric-context { display: none; }

  /* ── META BAR: stacked, horizontal dividers between items ── */
  .cs-meta-bar {
    padding: 48px 24px;
  }
  .cs-meta-bar-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: none;
  }
  .cs-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 0.06em;
    color: var(--ink-60);
    position: relative;
    padding: 32px 0;
  }
  .cs-meta-item:first-child {
    padding-top: 0;
  }
  .cs-meta-item:last-child {
    padding-bottom: 0;
  }
  .cs-meta-item span {
    display: block;
    flex: 1;
    max-width: 220px;
    text-align: right;
    font-size: 14px;
    line-height: 22px;
    color: var(--ink);
    margin-top: 0;
  }
  .cs-meta-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--rule);
  }

  /* ── SECTIONS & TYPOGRAPHY ──────────────── */
  .cs-section {
    padding: 48px 24px;
    max-width: none;
  }
  .cs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cs-sidebar-label {
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 0.06em;
    padding-top: 0;
    position: static;
  }
  .cs-body h2 {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 0;
  }
  .cs-body p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 16px;
  }
  .cs-body ul:not(.act-list):not(.ba-list) li {
    font-size: 14px;
    line-height: 22px;
  }

  /* ── BEFORE / AFTER ─────────────────────── */
  .ba-grid { grid-template-columns: 1fr; gap: 16px; }
  .ba-card { padding: 32px 16px; }
  .ba-card-label {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 20px;
  }
  .ba-list { gap: 16px; }
  .ba-list li { font-size: 14px; line-height: 22px; }

  /* ── KEY INSIGHT CARD ───────────────────── */
  .key-insight { padding: 32px 16px; }
  .key-insight-eyebrow { font-size: 10px; line-height: 16px; }
  .key-insight-body { font-size: 14px; line-height: 22px; }
  .key-insight-columns {
    flex-direction: column;
    gap: 8px;
  }
  .key-insight-columns > .key-insight-col {
    justify-content: flex-start;
    gap: 16px;
    white-space: normal;
    font-size: 14px;
    line-height: 22px;
  }
  .key-insight-columns > .key-insight-col + .key-insight-col {
    border-left: none;
    padding-left: 0;
    padding-top: 0;
    border-top: none;
  }
  .key-insight-col-term { min-width: 86px; }

  /* ── ACTS GRID: vertical stack, full width cards ── */
  .acts-grid,
  .acts-grid.acts-grid-4 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .act-card { padding: 24px 16px; }
  .act-num { font-size: 10px; line-height: 16px; }
  .act-title { font-size: 18px; line-height: 26px; }
  .act-list li { font-size: 14px; line-height: 22px; }

  /* Watermark number stays upper-right but smaller-scaled */
  .act-card[data-number]::after {
    font-size: 108px;
    line-height: 108px;
    right: 16px;
    top: -32px;
  }

  /* ── IMAGE ROWS: side-by-side on mobile, fixed 180px frame height ── */
  .cs-image-row {
    flex-direction: row;
    padding: 48px 24px;
    gap: 8px;
  }
  .cs-image-card {
    flex: 1;
    min-width: 0;
  }
  .cs-image-frame {
    padding: 16px 16px 0;
    height: 180px;
    min-height: 0;
  }
  .cs-image-card.mobile .cs-image-frame {
    padding: 16px 32px 0;
    height: 180px;
  }
  .cs-image-card.mobile .cs-image-crop {
    width: 100%;
  }
  .cs-image-label {
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 0.06em;
  }
  /* For full-width image rows (single card like Module System Overview), stay full width */
  .cs-image-row:has(.cs-image-card.cs-image-full) {
    flex-direction: column;
  }
  .cs-image-card.cs-image-full .cs-image-frame {
    height: auto;
    min-height: 200px;
    padding: 24px 24px 0;
  }
  .image-strip { padding: 0 24px 16px; }
  .image-strip-inner { grid-template-columns: 1fr; }

  /* ── PROJECT NAV: side-by-side on mobile with adjusted typography ── */
  .project-nav { grid-template-columns: 1fr 1fr; }
  .project-nav a { padding: 24px; }
  .project-nav a:last-child {
    border-left: 1px solid var(--rule);
    border-top: none;
    text-align: right;
  }
  .pn-dir {
    font-size: 10px;
    letter-spacing: 0.12em;
    line-height: 16px;
    margin-bottom: 8px;
  }
  .pn-name {
    font-size: 16px;
    line-height: 22px;
    white-space: normal;
    word-wrap: break-word;
  }
  .pn-client {
    font-size: 12px;
    line-height: 16px;
  }

  /* ── FOOTER ─────────────────────────────── */
  footer { padding: 28px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; }

  .section-rule {
    max-width: 100%;
    margin-left: 24px;
    margin-right: 24px;
  }
}
