/* case.css — a case page: the same markup on the scene's overlay (main.js caseHTML) and on the static /works/<slug>/ pages */
.case-lead { margin: 0 var(--m); height: calc(100vh - 150px); }
.case-lead img, .case-lead video { width: 100%; height: 100%; object-fit: contain; display: block; }
.case-head { height: auto; border: 0; align-items: start; padding: 9vh var(--m) 6vh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 22px; }
.case-head > p.mono { grid-column: 1 / -1; }
.case-head h1 { grid-column: 1 / -1; margin: 0; font: 300 clamp(56px, 9vw, 168px)/.9 var(--sans); letter-spacing: -.05em; }
.case-head .task { grid-column: 1 / 8; margin: 12px 0 0; font: italic 500 clamp(24px, 2.4vw, 38px)/1.2 'Cormorant Garamond'; color: var(--fg); }
.case-head dl { grid-column: 9 / 13; margin: 14px 0 0; display: grid; gap: 14px; align-self: end; }
.case-head dl div { display: grid; grid-template-columns: 90px 1fr; border-top: 1px solid var(--line); padding-top: 10px; }
.case-head dt { color: var(--mute); } .case-head dd { margin: 0; color: var(--fg); }
.case-grid { padding: 0 var(--m) 8vh; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.case-grid figure { margin: 0; grid-column: span 2; }
.case-grid figcaption { margin-top: 10px; }
.case-grid figure.wide, .case-grid .was { grid-column: 1 / -1; } .case-grid figure.tall { grid-column: span 1; }
.case-grid img, .case-grid video { width: 100%; height: auto; display: block; background: #0e0e0e; opacity: 0; transition: opacity .8s; }
.case-grid img.in, .case-grid video { opacity: 1; }
.was { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.was img { opacity: 1; width: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; }
.was figure:first-child img { max-width: min(100%, 720px); } /* the old banner is small: never upscale it into mush */
/* the client's request, in their words */
.case-brief { margin: 0 var(--m) 7vh; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.case-brief h2 { grid-column: 1 / 4; margin: 0; }
.case-brief blockquote { grid-column: 4 / 11; margin: 0; display: grid; gap: 14px; font: italic 500 clamp(22px, 2vw, 32px)/1.3 'Cormorant Garamond', serif; color: var(--fg); }
.case-brief p { margin: 0; } .case-brief p::before { content: '«'; } .case-brief p::after { content: '»'; }
/* what the project is made of: its colours as a proportion bar, its frame formats */
.case-sys { margin: 0 var(--m) 7vh; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 14px; }
.case-sys h2 { grid-column: 1 / 4; margin: 0; }
.case-sys .pal { grid-column: 4 / 13; display: flex; gap: 2px; height: 96px; }
.case-sys .sw { display: flex; flex-direction: column; gap: 8px; min-width: 52px; flex-basis: 0; }
.case-sys .sw i { flex: 1; background: var(--c); box-shadow: inset 0 0 0 1px rgba(236,235,232,.08); }
.case-sys .sw span { line-height: 1.35; }
.case-sys .fm { grid-column: 4 / 13; margin: 6px 0 0; }
.case-foot a { color: var(--fg); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; text-decoration: none; }
.case-foot { padding: 6vh var(--m) 10vh; border-top: 1px solid var(--line); margin: 0 var(--m); display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.case-foot [data-act="next"] { display: grid; gap: 10px; font: 300 clamp(32px, 4.6vw, 80px)/1 var(--sans); letter-spacing: -.04em; color: var(--fg); }
.case-foot a[data-act="next"] { background: none; padding: 0; text-decoration: none; }
@media (max-width: 760px) {
  .case-head h1 { font-size: clamp(38px, 11.5vw, 56px); overflow-wrap: anywhere; } /* «Коррупционеры» fits a 360 px phone */
  .case-lead { height: auto; max-height: 70vh; } .case-lead img, .case-lead video { height: auto; max-height: 70vh; }
  .case-head .task, .case-head dl { grid-column: 1 / -1; }
  .case-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .was { gap: 14px; }
  .case-sys h2, .case-sys .pal, .case-sys .fm, .case-brief h2, .case-brief blockquote { grid-column: 1 / -1; } .case-brief h2 { margin-bottom: 14px; } .case-sys .pal { height: 72px; } .case-sys .sw { min-width: 0; } .case-sys .sw span { overflow: hidden; font-size: 9px; } /* a thin share keeps its true width; its label is cut, not the page */
}
