/* Friendship case study — scoped project styling. */
.friend-case { --friend-green: #1ea874; }
.friend-intro { padding-block: clamp(2rem, 5vw, 5rem) 3rem; }
.friend-intro .eyebrow { margin-top: 3rem; }
.friend-intro h1 { max-width: 19ch; font-size: clamp(2.4rem, 6vw, 6rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 500; margin: 1rem 0; }
.friend-lede { font-size: clamp(1.1rem, 2.1vw, 1.8rem); color: var(--muted); }
.friend-cover img, .friend-case figure img, .project-frame-friend-real img, .friend-work-card img { display: block; width: 100%; height: auto; }
.friend-overview { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 6vw, 6rem); }
.friend-overview h2, .friend-ending h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.2; font-weight: 500; margin: 0 0 1.3rem; }
.friend-overview p, .friend-ending p { max-width: 43rem; }
.friend-facts { margin: 0; }
.friend-facts > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; border-top: 1px solid var(--line); padding-block: 1rem; }
.friend-facts dt { color: var(--muted); font-size: .9rem; }
.friend-facts dd { margin: 0; }
.friend-chapters > section { padding-bottom: clamp(2rem, 4vw, 4rem); }
.friend-section-title { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.friend-section-title > span { padding-top: .3rem; font-size: .9rem; color: var(--muted); }
.friend-section-title h2 { margin: 0; font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.2; }
.friend-section-title p { max-width: 48rem; color: var(--muted); margin-bottom: 0; }
.friend-case figure { margin: 0 0 1.8rem; min-width: 0; }
.friend-case figcaption { font-size: .875rem; color: var(--muted); padding-block: .8rem; }
.friend-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; align-items: start; }
.friend-ending { padding-block: clamp(3rem, 6vw, 6rem); background: #e9efec; border-top: 4px solid var(--friend-green); }
.friend-ending .button { margin-top: 1rem; }
.project-frame.project-frame-friend-real { min-height: 0; padding: 0; }
.project-frame-friend-real::after { display: none; }
.friend-work-card { display: flex; flex-direction: column; background: var(--white); min-width: 0; }
.friend-work-caption { padding: clamp(1.5rem, 3vw, 2.5rem); }
.friend-work-caption h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.15; margin: 1rem 0; }
.friend-work-card:hover .arrow-link { text-decoration: underline; }
.rtl .friend-intro h1, .rtl .friend-overview h2, .rtl .friend-section-title h2, .rtl .friend-ending h2, .rtl .friend-work-caption h2 { line-height: 1.5; letter-spacing: 0; }
@media (max-width: 700px) {
 .friend-overview, .friend-pair { grid-template-columns: 1fr; }
 .friend-section-title { grid-template-columns: 2rem 1fr; }
 .friend-facts > div { grid-template-columns: 5.5rem 1fr; }
 .friend-pair { gap: 0; }
}

