/* Congregational Development Lab: the procession film hero, a church drawing drafted onto the sheet,
   offers that light in turn, a congregation split and a country-church band, in the site palette. */

/* film hero: the procession sits a little lower so the vested clergy are in frame */
.chapter-hero > video{object-position:50% 45%}
.chapter-hero h1{max-width:16ch}
.film-hero.chapter-hero{min-height:clamp(520px,74vh,700px)}

/* the church drawing, full width, navy on sand */
.ch-serve{padding-top:0 !important;background:#fff}
.ch-bp{position:relative;margin:0;height:clamp(380px,46vw,820px);padding:clamp(16px,2vw,32px) 0;box-sizing:border-box;overflow:hidden;background:#eee5d8;border-bottom:2px solid #172c3b}
.ch-bp img{width:100%;height:100%;object-fit:contain;object-position:50% 50%;display:block;transform-origin:50% 60%}
.ch-bp::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(rgba(23,44,59,.12) 1px,transparent 1.4px);background-size:14px 14px;mix-blend-mode:multiply}
.ch-bp figcaption{position:absolute;left:max(var(--margin,24px),calc((100% - var(--wrap,1200px)) / 2));bottom:16px;z-index:3;max-width:none;margin:0;
  font-size:13px;font-weight:500;color:#172c3b;background:rgba(235,226,211,.92);padding:6px 10px;border:1px solid rgba(23,44,59,.35)}
/* the drawing settles into place once (no wipe, no scan line), then breathes slowly */
@media (prefers-reduced-motion:no-preference){
  .js .ch-bp img{opacity:0;transform:scale(.97);transition:opacity 1.4s ease,transform 1.8s cubic-bezier(.23,1,.32,1)}
  .js .ch-bp.drawn img{opacity:1;transform:none;animation:ch-drift 34s ease-in-out 1.8s infinite alternate}
  @keyframes ch-drift{from{transform:scale(1)}to{transform:scale(1.04)}}
}
.ch-serve .body{padding-top:clamp(56px,7vw,96px)}

/* the four offers */
.ch-offers{list-style:none;margin:40px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ch-offer{position:relative;max-width:none;padding:28px 24px 30px;background:#fffaf5;border:1px solid var(--hair,#eee5d8);border-radius:4px;overflow:hidden;
  transition:background-color .45s ease,transform .45s cubic-bezier(.23,1,.32,1),box-shadow .45s ease,border-color .45s ease}
.ch-offer::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--orange,#ce5b17);transform:scaleX(0);transform-origin:left}
.ch-no{display:block;font:700 15px/1 var(--font-display);color:var(--orange-ink,#172c3b)}
.ch-offer h3{margin:16px 0 0;font-size:clamp(20px,1.6vw,23px);line-height:1.2}
.ch-offer p{margin:12px 0 0;color:var(--slate,rgba(23,44,59,.78));font-size:16px;line-height:1.55;max-width:none}
.ch-offer.is-on{background:#172c3b;border-color:#172c3b;transform:translateY(-4px);box-shadow:0 18px 40px -24px rgba(23,44,59,.6)}
.ch-offer.is-on h3{color:#fff}
.ch-offer.is-on p{color:rgba(255,255,255,.85)}
.ch-offer.is-on .ch-no{color:#e9a92b}
.ch-offer.is-on::after{transform:scaleX(1);transition:transform 3.6s linear}
@media (max-width:1023px){.ch-offers{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.ch-offers{grid-template-columns:1fr}.ch-offer.is-on{transform:none}}

/* congregation split: sand text panel, the photo drifts slowly while on screen */
main > .sec.ch-why{background:#eee5d8 !important}
.ch-why > figure img{object-position:50% 55%;transform-origin:50% 60%}
.js .ch-why.on > figure img{animation:ch-kb 26s ease-in-out infinite alternate}
@keyframes ch-kb{from{transform:scale(1.02)}to{transform:scale(1.1) translate(-1.5%,0)}}
.ch-why .lede{max-width:46ch}

/* cathedral band */
.ch-band img{object-position:50% 12%;transform-origin:50% 20%}
.js .ch-band.on img{animation:ch-kb 30s ease-in-out infinite alternate}

@media (prefers-reduced-motion:reduce){
  .js .ch-why.on > figure img,.js .ch-band.on img{animation:none}
  .ch-offer,.ch-offer::after{transition:none}
}
@media (max-width:767px){.ch-bp{height:auto;padding:12px 0}.ch-bp img{height:auto}}

/* layout v2: three offers, each with a link; the link turns yellow on the lit card */
.ch-offers--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.ch-offer{display:flex;flex-direction:column}
.ch-offer .textlink{margin-top:auto;padding-top:18px;align-self:flex-start}
.ch-offer.is-on .textlink{color:#e9a92b;border-bottom-color:rgba(233,169,43,.5)}
.ch-more{background:#fffaf5}
.ch-offer:target,.svc-lead:target{scroll-margin-top:96px}
@media (max-width:1023px){.ch-offers--three{grid-template-columns:1fr}}

/* assessment facts: three larger boxes (site colours) */
.cdl-page .ch-serve .lead-cols{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}
.cdl-page .ch-serve .facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;border-top:0;margin-top:6px}
.cdl-page .ch-serve .facts > div{padding:22px 22px 24px;background:#eee5d8;border:1px solid #decebb;border-top:4px solid #172c3b;border-radius:4px}
.cdl-page .ch-serve .facts > div + div{padding-left:22px;border-left:1px solid #decebb}
.cdl-page .ch-serve .facts dt{font-size:15px;color:#172c3b;font-weight:700;margin-bottom:10px}
.cdl-page .ch-serve .facts dd{margin:0;font:600 clamp(19px,1.5vw,23px)/1.3 var(--font-display);color:#172c3b}
.cdl-page .ch-serve .actions{margin-top:28px}
@media (max-width:900px){.cdl-page .ch-serve .lead-cols{grid-template-columns:1fr}}
@media (max-width:640px){.cdl-page .ch-serve .facts{grid-template-columns:1fr}.cdl-page .ch-serve .facts > div + div{border-top:1px solid #decebb}}
/* country-church band framing */
.cdl-page .ch-band img{object-position:50% 55%;transform-origin:45% 60%}
/* heading: the practice name in brand orange text (no marker band) */
.chapter-hero h1 .cdl-o{color:#e9a92b}

/* ---------- assessment: the 1946 congregation photo beside the offer ---------- */
main > .sec.ch-assess{background:#fff !important}
.ch-assess > figure img{object-position:42% 50%;transform-origin:40% 55%}
.js .ch-assess.on > figure img{animation:ch-kb 26s ease-in-out infinite alternate}
.ch-assess .split-txt h2{font-size:clamp(30px,3vw,46px);letter-spacing:-.02em}
.ch-assess .lede{max-width:48ch}
.ch-facts{margin:8px 0 0;display:grid;gap:12px;width:100%;max-width:560px !important}
.ch-facts > div{display:grid;grid-template-columns:132px minmax(0,1fr);gap:18px;align-items:baseline;padding:20px 22px;background:#eee5d8;border:1px solid #decebb;border-top:3px solid #172c3b;border-radius:4px;
  transition:opacity .7s ease,transform .7s cubic-bezier(.23,1,.32,1)}
.ch-facts dt{font-size:15px;font-weight:700;color:#172c3b}
.ch-facts dd{margin:0;font:600 clamp(19px,1.55vw,23px)/1.3 var(--font-display);color:#172c3b}
.ch-assess .btn{margin-top:30px}
.js .ch-assess:not(.on) .ch-facts > div{opacity:0;transform:translateY(14px)}
.ch-facts > div:nth-child(2){transition-delay:.15s}
.ch-facts > div:nth-child(3){transition-delay:.3s}
@media (max-width:600px){.ch-facts > div{grid-template-columns:1fr;gap:6px}}
@media (prefers-reduced-motion:reduce){.js .ch-assess.on > figure img{animation:none}.js .ch-assess:not(.on) .ch-facts > div{opacity:1;transform:none}}
