/* ============================================================
   Case-study (project detail) layout — editorial
   loaded after site.css
   ============================================================ */

.page-main { padding-top: clamp(106px, 13vh, 146px); }

/* breadcrumb */
.breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: clamp(22px, 3vw, 34px); }
.breadcrumb a { color: var(--ink-soft); transition: color .15s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 9px; color: var(--rule); }

/* hero */
.cs-hero { padding-bottom: clamp(30px, 4vw, 50px); }
.cs-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.cs-title {
  font-family: var(--serif); font-weight: 300;
  font-size: calc(clamp(34px, 5.6vw, 84px) * var(--scale));
  line-height: 1.02; letter-spacing: -0.02em; text-wrap: pretty;
  max-width: 17ch;
}
.cs-title em { font-style: normal; color: var(--accent); }

.cs-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink); margin-top: clamp(34px, 5vw, 58px); padding-top: 22px;
  gap: 16px 0;
}
.cs-meta .m { padding-right: 24px; }
.cs-meta .m-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.cs-meta .m-value { font-size: 15px; color: var(--ink); line-height: 1.35; }

/* hero figure */
.cs-figure { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-2); border: 1px solid var(--rule); }
.cs-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; display: block; }

/* content sections */
.cs-section {
  border-top: 1px solid var(--rule);
  padding: clamp(44px, 6vw, 86px) 0;
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(22px, 4vw, 72px); align-items: start;
}
.cs-section.first { border-top: none; padding-top: clamp(40px, 5vw, 70px); }
.cs-section > .label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); padding-top: 8px; position: sticky; top: 96px; }
.cs-body { max-width: 660px; }

.cs-body .lead {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 2.5vw, 33px); line-height: 1.32; letter-spacing: -0.012em;
  color: var(--ink); text-wrap: pretty; margin-bottom: 0.7em;
}
.cs-body .lead:last-child { margin-bottom: 0; }
.cs-body p { font-size: clamp(17px, 1.8vw, 22px); line-height: 1.7; color: var(--ink-soft); margin-bottom: 18px; }
.cs-body p:last-child { margin-bottom: 0; }
.cs-body p strong { font-weight: 500; color: var(--ink); }
.cs-body h3 {
  font-family: var(--serif); font-weight: 400; font-style: normal;
  font-size: clamp(21px, 2.2vw, 28px); color: var(--ink); line-height: 1.28;
  margin: 38px 0 14px;
}
.cs-body h3:first-child { margin-top: 0; }

.inline-figure { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); border: 1px solid var(--rule); margin: 34px 0; }
.inline-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inline-cap { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-faint); margin-top: -22px; margin-bottom: 34px; letter-spacing: 0.02em; }

/* outcomes */
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: 34px; }
.outcome { border-top: 1px solid var(--ink); padding-top: 16px; }
.outcome .n { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.02em; color: var(--accent); margin-bottom: 12px; }
.outcome .d { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* next project */
.next { border-top: 1px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(36px, 5vw, 60px) 0; }
.next .nlabel { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.next .ntitle { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.016em; color: var(--ink); text-wrap: pretty; max-width: 16ch; }
.next:hover .ntitle { color: var(--accent); }
.next .narrow { font-family: var(--serif); font-size: clamp(40px, 5vw, 72px); color: var(--accent); line-height: 1; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.next:hover .narrow { transform: translateX(10px); }

footer.pad { margin-top: 0; }

@media (max-width: 760px) {
  .cs-meta { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .cs-section { grid-template-columns: 1fr; gap: 14px; }
  .cs-section > .label { position: static; }
  .outcomes { grid-template-columns: 1fr; }
  .cs-figure { aspect-ratio: 4 / 3; }
  .next .narrow { font-size: 44px; }
}
