/* Shared case-study structure. Theme and page gutters come from theme.css. */
.project-main { padding-block: 52px 72px; }
.project-back { display: inline-flex; gap: 9px; color: var(--muted2); font-size: 12px; line-height: 1.6; transition: color .2s ease; }
.project-back:hover { color: var(--a); }
.project-intro { padding-block: 72px 56px; }
.project-body h1 { margin: 0; max-width: 20ch; color: #fff; font-size: clamp(40px, 6.2vw, 72px); font-weight: 500; line-height: 1.06; letter-spacing: -.06em; text-wrap: balance; }
.project-lede { max-width: 65ch; margin: 28px 0 0; color: var(--muted); font-size: clamp(16px, 1.7vw, 18px); line-height: 1.75; text-wrap: pretty; }
.project-overview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--stroke); border-radius: 16px; background: var(--surface); }
.project-media { display: grid; align-content: center; min-width: 0; margin: 0; background: var(--surface-deep); border-right: 1px solid var(--stroke); }
.project-media > img, .project-media video { display: block; width: 100%; max-height: 520px; object-fit: contain; }
.project-media video { min-height: 240px; background: #000; }
.project-media figcaption { padding: 16px 22px; border-top: 1px solid var(--stroke); color: var(--muted2); font-size: 12px; line-height: 1.65; }
.project-summary { align-self: center; padding: clamp(24px, 4vw, 44px); }
.project-summary h2 { margin-bottom: 24px; }
.project-points { display: grid; gap: 16px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.project-points li::marker { color: var(--b); }
.project-points strong { color: var(--text); font-weight: 500; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--stroke); }
.project-facts dt { margin-bottom: 7px; color: var(--b); font: 10px/1.5 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.project-facts dd { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.project-section { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--stroke); }
.project-section__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.project-section__head p { margin: 0; color: var(--muted2); font-size: 12px; line-height: 1.7; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project-gallery figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--stroke); border-radius: 14px; background: var(--surface); }
.project-gallery a { display: grid; place-items: center; min-height: 260px; padding: 16px; background: var(--surface-deep); transition: background .2s ease; }
.project-gallery a:hover { background: #15111e; }
.project-gallery img { width: 100%; height: 320px; object-fit: contain; }
.project-gallery figcaption { padding: 16px 20px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: 12px; line-height: 1.7; }
@media (max-width: 800px) {
  .project-overview { grid-template-columns: 1fr; }
  .project-media { border-right: 0; border-bottom: 1px solid var(--stroke); }
  .project-gallery img { height: 260px; }
}
@media (max-width: 560px) {
  .project-main { padding-block: 36px 48px; }
  .project-intro { padding-block: 52px 40px; }
  .project-body h1 { font-size: clamp(36px, 9vw, 48px); }
  .project-gallery { grid-template-columns: 1fr; gap: 16px; }
  .project-gallery img { height: auto; max-height: 360px; }
  .project-section { margin-top: 44px; padding-top: 28px; }
}
