/* ─── CASE STUDY — built-project pages (case-study-*.htm / vaka-*.htm) ───
   Reuses library.css (sys-name, sys-lede, sys-body, sys-spec, sys-door); adds the photo-led blocks. */

/* hero: full-bleed photograph, copy on a bone card bottom-left */
.case-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 104px var(--pad-x) var(--s-7) var(--edge); box-sizing: border-box; overflow: hidden; }
.case-hero picture, .case-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-hero__copy { position: relative; z-index: 2; max-width: 560px; background: rgba(var(--bg-rgb), 0.92); padding: var(--s-6); }

/* long-form copy */
.case-prose h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1;
  color: var(--ink); margin: 0 0 var(--s-4); }
.case-prose h2:not(:first-child) { margin-top: var(--s-7); }
.case-prose p { font-size: var(--t-body); line-height: 1.75; color: var(--ink-2); margin: 0 0 var(--s-4); max-width: 640px; }
.case-prose--solo { max-width: var(--maxw); margin: 0 auto; padding: var(--s-9) var(--pad-x); box-sizing: border-box; }

/* image blocks */
.case-pair, .case-figures, .case-details { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); box-sizing: border-box;
  display: grid; gap: var(--s-6); }
.case-pair { grid-template-columns: 1fr 1fr; }
.case-figures { grid-template-columns: 1fr 1fr; padding-bottom: var(--s-9); }
.case-figures figure:last-child { grid-column: 1 / -1; }
.case-details { grid-template-columns: repeat(3, 1fr); padding-top: var(--s-9); padding-bottom: var(--s-9); }
.case-pair figure, .case-figures figure, .case-details figure { margin: 0; }
.case-pair img, .case-figures img, .case-details img { display: block; width: 100%; height: auto; background: var(--bg-alt); }
.case-pair figcaption, .case-figures figcaption { font-size: var(--t-body-sm); color: var(--ink-muted); padding-top: var(--s-2); }

/* light series: one camera, a range scrubs the frames */
.case-light { padding: var(--s-10) var(--pad-x); }
.case-light__inner { max-width: var(--content-w); margin: 0 auto; }
.case-light h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 3.2vw, 52px); line-height: 1.05;
  color: var(--ink); margin: 0 0 var(--s-3); }
.case-light p { font-size: var(--t-body); line-height: 1.75; color: var(--ink-2); margin: 0 0 var(--s-6); max-width: 560px; }
.case-light__stage img { display: block; width: 100%; height: auto; }
.case-light__control { display: block; padding-top: var(--s-5); }
.case-light__control input { width: 100%; accent-color: var(--accent); }
.case-light__times { display: flex; justify-content: space-between; font-size: var(--t-label); letter-spacing: var(--tr-wide);
  text-transform: uppercase; color: var(--ink-muted); padding-top: var(--s-2); }

/* quote */
.case-quote { max-width: 900px; margin: 0 auto; padding: var(--s-9) var(--pad-x); box-sizing: border-box; }
.case-quote blockquote { margin: 0; }
.case-quote p { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.25; color: var(--ink); margin: 0 0 var(--s-4); }
.case-quote footer { font-size: var(--t-label); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink-muted); }

/* unfilled content: loud on purpose, so it cannot ship unnoticed */
.ph { outline: 2px dashed var(--accent); outline-offset: 3px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (orientation: portrait), (max-width: 820px) {
  .case-hero { padding: 88px var(--pad-x-sm) var(--s-6); }
  .case-hero__copy { padding: var(--s-5); }
  .case-prose--solo, .case-light, .case-quote { padding-left: var(--pad-x-sm); padding-right: var(--pad-x-sm); }
  .case-pair, .case-figures, .case-details { padding-left: var(--pad-x-sm); padding-right: var(--pad-x-sm); grid-template-columns: 1fr; }
  .case-figures figure:last-child { grid-column: auto; }
}

/* a render set into the copy column */
.case-scene { margin: var(--s-7) 0 0; }
.case-scene img { display: block; width: 100%; height: auto; background: var(--bg-alt); }
.case-scene figcaption { font-size: var(--t-body-sm); color: var(--ink-muted); padding-top: var(--s-2); }

/* maker line on a range page */
.case-maker { font-size: var(--t-label); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink-muted); margin-top: var(--s-6); }
