/* A consistent editorial grid for the history and referrals page. */
.history-page{--content-width:1280px;--page-gutter:clamp(22px,4vw,64px)}
.history-page main>.section,.history-page .page-opening,.history-page .history-notice,.history-page main>.statement{padding:48px max(var(--page-gutter),calc((100% - var(--content-width))/2));}
.history-page .page-opening{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:56px;align-items:center;padding-top:52px;padding-bottom:36px}
.history-page .page-opening h1{font-size:clamp(36px,3.8vw,56px);letter-spacing:-.045em;line-height:1.1;margin:16px 0 0}
.history-page .page-opening p{max-width:none;font-size:16px;line-height:1.65}
.history-page .page-opening .btn{margin-top:20px}
.history-page .history-notice{padding-top:18px;padding-bottom:18px;background:#eee9df;border-block:1px solid var(--line)}
.history-page .history-notice p{font-size:13px;line-height:1.6;margin-top:6px}
.history-page .section-head{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:start;gap:48px;margin:0 0 28px}
.history-page h2,.history-page main .section h2{font-size:clamp(28px,2.7vw,38px);line-height:1.15;letter-spacing:-.04em;margin:12px 0 0}
.history-page .section-head p{max-width:none;font-size:16px;line-height:1.7}
.history-page .section-head p+p{margin-top:14px}
.history-page .history-expertise{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:30px}
.history-page .history-expertise article{border-top:2px solid var(--accent);padding-top:18px}
.history-page h3{font-size:22px;line-height:1.25;letter-spacing:-.03em}
.history-page .history-expertise h3{margin:9px 0 10px}
.history-page .history-expertise p{font-size:15px;line-height:1.65;margin:0}
.history-page .history-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}
.history-page .history-gallery figure{margin:0;min-width:0}
.history-page .history-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.history-page .history-gallery figcaption{padding-top:14px}
.history-page .history-gallery h3{font-size:20px;margin:0 0 8px}
.history-page .history-gallery p{font-size:14px;line-height:1.6;margin:0}
.history-page main>.statement{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:48px;align-items:start}
.history-page .statement p{font-size:16px;line-height:1.7}
.history-page .referral-request{max-width:none}
.history-page #referral-form{background:#eee9df}
.history-page .recovered-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.history-page .recovered-photo-grid img{height:auto;aspect-ratio:4/3;object-fit:cover}
.history-page .recovered-photo-grid figcaption{font-size:13px}
@media(max-width:900px){
 .history-page .page-opening,.history-page .section-head,.history-page main>.statement{grid-template-columns:1fr;gap:22px}
 .history-page main>.section,.history-page .page-opening,.history-page main>.statement{padding-top:34px;padding-bottom:34px}
 .history-page .history-gallery,.history-page .recovered-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .history-page .history-expertise,.history-page .history-gallery{grid-template-columns:1fr;gap:24px}
 .history-page .history-gallery img{aspect-ratio:4/3}
 .history-page .recovered-photo-grid{grid-template-columns:1fr 1fr;gap:18px}
 .history-page .history-notice{padding-top:16px;padding-bottom:16px}
}
.history-page .history-story .section-head{display:block}
.history-page .history-story .section-head>div+div{margin-top:22px;columns:2;column-gap:40px}
.history-page .history-story .section-head p{break-inside:avoid}
.history-page .history-story .section-head p:first-child{margin-top:0}
@media(max-width:700px){.history-page .history-story .section-head>div+div{columns:1}}
