/* The source pages sit beside the scene they became. */
.case-intro, .project-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(24px, 6vw, 94px);
}
.case-intro { align-items: end; padding: clamp(36px, 5.5vw, 76px) 0 clamp(38px, 5vw, 65px); }
.case-intro h1 { margin-top: 9px; }
.case-intro > p, .project-intro p { max-width: 54ch; color: var(--muted); line-height: 1.6; }
.epb-cases h2, .epb-cases h3, .epb-cases h4 { font-weight: 520; letter-spacing: -.04em; line-height: 1.1; }
.case-section > h2 {
  font-size: 1rem; font-weight: 580; letter-spacing: -.015em;
  border-top: 1px solid #606764; padding: 14px 0 0;
}
.case-section + .case-section { margin-top: clamp(54px, 7vw, 94px); }
.briefing, .film-study { margin-top: clamp(30px, 4vw, 53px); }
.case-section > div + div .briefing, .film-study + .film-study { border-top: 1px solid var(--stroke); padding-top: clamp(26px,4vw,50px); }
.project-intro { align-items: baseline; margin-bottom: clamp(20px,2.7vw,35px); }
.project-intro h3 { max-width: 21ch; font-size: clamp(1.85rem,3.5vw,3.1rem); }
.epb-cases figure { min-width: 0; margin: 0; }
.epb-cases figcaption { margin-top: 6px; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.premium-spread, .paired-media { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: clamp(15px,2.4vw,30px); }
.premium-spread.originals-3 { grid-template-columns: minmax(0,1fr) minmax(0,3fr); }
.premium-spread.originals-2 { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
.source-strip { display: grid; gap: 14px; }
.inspect, .case-video { display: block; width: 100%; aspect-ratio: 16/9; background: #111516; }
.inspect { cursor: zoom-in; }
.inspect img, .case-video { width: 100%; height: auto; object-fit: contain; }
.watch-full { display: inline-block; margin-top: 12px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #788780; font-size: .94rem; }
.watch-full:hover { color: var(--green); }
.sequence h4 { font-size: clamp(1.05rem,1.5vw,1.3rem); margin: 0 0 12px; }
.sequence + .sequence { margin-top: clamp(24px,3.3vw,45px); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: 28px; }
.video-card h3 { font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.4; margin-top: 12px; }
.video-card h3 a:hover { color: var(--green); }
.video-card a:focus-visible, .video-card button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
@media (max-width:900px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width:540px) {
  .video-grid { grid-template-columns: 1fr; }
}
.image-viewer { width: min(95vw,1650px); max-width: none; max-height: 95dvh; overflow: hidden; padding: 0; background: #0e1313; color: var(--ink); border-radius: 12px; border: 1px solid #55635b; }
.image-viewer::backdrop { background: #030706e8; }
.viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 13px; }
.viewer-bar > span { flex: 1; font-size: .9rem; }
.viewer-bar button { border: 1px solid #4f5f55; background: transparent; padding: 5px 12px; border-radius: 6px; cursor: pointer; }
.viewer-frame { max-height: calc(90dvh - 50px); overflow: auto; }
.viewer-frame img { margin-inline: auto; width: auto; height: auto; max-height: calc(90dvh - 50px); max-width: 100%; }
.zoomed .viewer-frame img { width: auto; max-width: none; max-height: none; }
body:has(.image-viewer[open]) { overflow: hidden; }

@media (max-width:700px) {
  .case-intro, .project-intro { grid-template-columns: 1fr; gap: 14px; }
  .premium-spread, .premium-spread.originals-2, .premium-spread.originals-3, .paired-media { grid-template-columns: 1fr; gap: 16px; }
  .source-strip { grid-template-columns: repeat(auto-fit,minmax(min(140px,100%),1fr)); gap: 12px; }
  .project-intro h3 { max-width: none; }
}

.lead-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: clamp(24px,4vw,60px); }
.lead-copy h3 { font-size: clamp(2rem,3.2vw,3rem); max-width: 13ch; margin: 8px 0 17px; }
.lead-copy > p:last-child { color: var(--muted); max-width: 44ch; }
.lead-sources { margin: 24px 0 0; }
.lead-sources h4 { margin: 0 0 12px; font-size: 1.05rem; }
.storyboard-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(10px,2vw,24px); }
@media (max-width:700px) {
  .lead-layout { grid-template-columns: 1fr; gap: 16px; }
  .lead-copy h3 { max-width: 23ch; }
}
@media (max-width:480px) {
  .storyboard-strip { grid-template-columns: 1fr; }
  .storyboard-strip figure { display: grid; grid-template-columns: 60% 1fr; gap: 14px; align-items: center; }
}
