/* Case pages only: consistent reading rhythm without changing other sections. */
body.case-editorial-rhythm main > .section,
body.case-editorial-rhythm main > .archive-section {
  padding-block: clamp(24px, 2.5vw, 36px) !important;
}
body.case-editorial-rhythm main > .section + .section,
body.case-editorial-rhythm main > .archive-section + .archive-section { padding-top: 12px !important; }
body.case-editorial-rhythm .archive-spread { align-items: start; gap: clamp(20px, 3vw, 40px); }
body.case-editorial-rhythm .archive-figure { align-self: start; }
body.case-editorial-rhythm .archive-copy h2 { margin: 0 0 12px !important; text-wrap: pretty; }
body.case-editorial-rhythm .archive-copy .eyebrow { margin-bottom: 10px; }
body.case-editorial-rhythm .archive-copy p + p { margin-top: 12px; }
body.case-editorial-rhythm .archive-case-narrative { gap: 28px; }
body.case-editorial-rhythm .archive-case-narrative .rip-card { padding: 16px 0; }
body.case-editorial-rhythm .archive-case-narrative .rip-card h2 { font-size: clamp(1.3rem, 1.9vw, 1.7rem) !important; }
body.case-editorial-rhythm .archive-case-narrative .rip-card p { margin-top: 8px; }
body.case-editorial-rhythm .archive-copy .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 24px; padding-top: 0; border: 0; }
body.case-editorial-rhythm .archive-copy .metric__num { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.1; }
body.case-editorial-rhythm .archive-copy .metric__num--phrase { font-size: 1.25rem; line-height: 1.3; }
body.case-editorial-rhythm .archive-copy .metric__label { color: var(--ink-soft); font-size: .7rem; line-height: 1.5; margin-top: 6px; }
body.case-editorial-rhythm .archive-support { margin-top: 20px; padding-top: 16px; }
body.case-editorial-rhythm .case-hero { padding-bottom: 12px; }
body.case-editorial-rhythm .case-hero > .case-facts { margin-top: 24px; padding-top: 0; }
body.case-editorial-rhythm .case-facts__grid { margin: 0; padding-block: 18px; }
body.case-editorial-rhythm .case-hero__body { gap: 10px; }
body.case-editorial-rhythm .case-cta { text-align: left; }
body.case-editorial-rhythm .case-cta h2 { max-width: 26ch; }
body.case-editorial-rhythm .case-cta .btn { margin-top: 0; }
body.case-editorial-rhythm .case-owner-actions { margin: 18px 0 0; gap: 12px; }
body.case-editorial-rhythm .case-cta .archive-spread { align-items: center; }
body.case-editorial-rhythm .case-gallery { gap: 16px; }

/* Short cases: a continuous story, followed by one curated image sequence. */
body.case-editorial-compact .case-hero__stage > img { height: clamp(280px, 28vw, 400px) !important; object-fit: contain; background: transparent; }
body.case-editorial-compact .case-hero__stage { gap: 32px; }
body.case-editorial-compact .case-hero__title { font-size: clamp(2rem,3.2vw,3rem) !important; }
body.case-editorial-compact .case-hero__eyebrow,
body.case-editorial-compact .case-hero__brand { text-shadow: none; }
body.case-editorial-compact .case-facts__grid { grid-template-columns: 1fr 1.2fr 1.5fr; }
.case-story-intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px,4vw,56px); align-items: start; }
.case-story-intro h2 { margin: 0; font: 400 clamp(1.65rem,2.3vw,2.15rem)/1.15 var(--font-display); letter-spacing: -.02em; text-wrap: pretty; }
.case-story-intro p { font-size: 1rem; line-height: 1.65; max-width: 65ch; margin: 0; }
.case-story-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 48px; }
.case-story-block { border-top: 1px solid var(--line); padding-top: 14px; min-width: 0; }
.case-story-block h2 { margin: 0 0 10px; font: 400 1.45rem/1.2 var(--font-display); letter-spacing: -.015em; }
.case-story-block h2 span { display: inline-block; margin-right: 12px; font: .66rem/1 var(--font-mono); color: var(--accent); vertical-align: middle; }
.case-story-block p { margin: 0; font-size: .96rem; line-height: 1.65; max-width: 64ch; }
.case-image-heading { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.case-image-heading h2 { margin: 0; font: 400 1.65rem/1.2 var(--font-display); }
.case-editorial-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 20px; align-items: start; }
.case-editorial-gallery[data-count="2"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.case-editorial-gallery[data-count="1"] { grid-template-columns: 1fr; max-width: 960px; }
.case-editorial-gallery figure { margin: 0; min-width: 0; }
.case-editorial-gallery img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; object-position: left center; border-radius: 4px; }
.case-editorial-gallery[data-count="2"] img { max-height: 420px; }
.case-editorial-gallery[data-count="1"] img { max-height: 440px; }
.case-editorial-gallery figcaption { margin-top: 8px; color: var(--ink-soft); font: .65rem/1.5 var(--font-mono); }
.case-more-heading { margin: 0 0 14px; font: 400 1.65rem/1.2 var(--font-display); }
body.case-editorial-compact .archive-cta .project-contact__photo img { height: 180px; object-position: left center; }
body.case-editorial-compact .archive-cta > .container > h2 { font-size: clamp(1.8rem,3vw,2.5rem); margin-bottom: 12px; }
@media (max-width: 860px) {
 body.case-editorial-rhythm main > .section, body.case-editorial-rhythm main > .archive-section { padding-block: 24px !important; }
 body.case-editorial-rhythm .archive-spread { gap: 18px; }
 body.case-editorial-rhythm .archive-copy h2 { font-size: 1.6rem !important; }
 body.case-editorial-rhythm .archive-case-narrative { gap: 20px; }
 body.case-editorial-compact .case-hero__stage > img { height: auto !important; aspect-ratio: auto; max-height: 350px; }
 body.case-editorial-compact .case-hero__stage { gap: 20px; }
 .case-story-intro { grid-template-columns: 1fr; gap: 12px; }
 .case-story-grid { gap: 24px; }
 .case-editorial-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
 body.case-editorial-compact .case-facts__grid { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
 body.case-editorial-compact .case-facts__grid > div:last-child { grid-column: 1/-1; }
 .case-story-grid { grid-template-columns: 1fr; gap: 20px; }
 .case-story-intro p, .case-story-block p { font-size: .95rem; line-height: 1.6; }
 .case-editorial-gallery, .case-editorial-gallery[data-count="2"] { grid-template-columns: 1fr; gap: 22px; }
 .case-editorial-gallery img, .case-editorial-gallery[data-count="2"] img { max-height: 440px; object-position: center; }
 .case-image-heading h2, .case-more-heading { font-size: 1.5rem; }
}

/* Keep figures and service lists from making the introduction a tall column. */
body.case-editorial-rhythm .case-editorial-support-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 40px; margin-top: 24px; }
body.case-editorial-rhythm .case-editorial-support-grid > .archive-support { margin: 0; padding-top: 18px; }
body.case-editorial-rhythm .case-editorial-support-grid .container { width: 100%; padding: 0; }
body.case-editorial-rhythm .case-editorial-support-grid h2 { margin: 0 0 12px !important; }
body.case-editorial-rhythm .case-editorial-support-grid .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 24px; padding: 0; border: 0; }
body.case-editorial-rhythm .case-editorial-support-grid .metric__num { font-size: clamp(2rem,3vw,2.8rem); line-height: 1.1; }
body.case-editorial-rhythm .case-editorial-support-grid .metric__num--phrase { font-size: 1.25rem; line-height: 1.3; }
body.case-editorial-rhythm .case-editorial-support-grid .metric__label { color: var(--ink-soft); font-size: .7rem; line-height: 1.5; margin-top: 6px; }
body.case-editorial-rhythm .case-editorial-support-grid .proof-note { font-size: .9rem; line-height: 1.6; }
.case-editorial-gallery--portrait { max-width: 620px; gap: 24px; }
.case-editorial-gallery--portrait img { object-position: left center; }
@media (max-width: 700px) {
 body.case-editorial-rhythm .case-editorial-support-grid { grid-template-columns: 1fr; gap: 20px; }
 .case-editorial-gallery--portrait { max-width: 100%; }
}
