/* ==========================================================================
   Community-Led Housing at Scale — page styles (community-housing.html)
   Builds on styles.css. Monochrome system; no new colours.
   ========================================================================== */

/* Hero */
.ch-hero .hero__media img { object-position: 50% 62%; }
@media (max-width: 700px) { .ch-hero .hero__media img { object-position: 22% 60%; } }
.ch-hero h1 { max-width: 13ch; margin-top: 24px; }
.ch-hero .lede { max-width: 30ch; }
.ch-hero .ch-hero__body { color: rgba(255,255,255,.72); max-width: 58ch; margin-top: 22px; font-size: 17px; }
.ch-hero .concept { display: block; }

/* Section heads */
.ch-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(40px, 6vw, 96px); align-items: end; }
.ch-head .h2 { max-width: 15ch; }
.ch-head .body { margin: 0; }
@media (max-width: 860px) { .ch-head { grid-template-columns: 1fr; } }

/* The housing challenge — numbered conditions */
.ch-list { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 5vw, 80px); counter-reset: ch; border-top: 1px solid var(--rule); }
.ch-list li { counter-increment: ch; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--rule); font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.5; color: var(--carbon); }
.ch-list li::before { content: counter(ch, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--steel); padding-top: 6px; }
.ch-list li:last-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .ch-list { grid-template-columns: 1fr; } }

/* How we work — four questions */
.ch-q { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: clamp(56px, 7vw, 96px); }
.ch-q > div { background: var(--white); padding: clamp(28px, 3.6vw, 52px); display: flex; flex-direction: column; gap: 16px; min-height: 260px; }
.screen--mist .ch-q > div { background: var(--mist); }
.ch-q .ch-q__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--steel); text-transform: uppercase; }
.ch-q h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.02; }
.ch-q p { margin: 0; max-width: 40ch; }
@media (max-width: 760px) { .ch-q { grid-template-columns: 1fr; } .ch-q > div { min-height: 0; } }
.ch-key { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 32px; padding-top: 32px; border-top: 2px solid var(--carbon); }
.ch-key p { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.35rem, 2.3vw, 2.1rem); line-height: 1.18; letter-spacing: -0.03em; color: var(--carbon); max-width: 34ch; }
@media (max-width: 760px) { .ch-key { grid-template-columns: 1fr; } }

/* From needs to delivery — process */
.ch-flow { list-style: none; padding: 0; margin: clamp(56px, 7vw, 96px) 0 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.ch-flow::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--rule-rev); }
.ch-flow li { position: relative; padding-right: 20px; }
.ch-flow .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: var(--carbon); font-family: var(--f-mono); font-size: 13px; color: var(--white); transition: background .4s var(--ease), color .4s var(--ease); }
.ch-flow li:first-child .dot, .ch-flow li:last-child .dot { background: var(--white); color: var(--carbon); border-color: var(--white); }
.ch-flow h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); letter-spacing: -0.02em; line-height: 1.15; margin-top: 26px; }
.ch-flow p { font-size: 15px; line-height: 1.5; margin: 12px 0 0; color: rgba(255,255,255,.62); }
.ch-loop { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.ch-loop svg { width: 120px; height: 18px; flex: none; color: rgba(255,255,255,.5); }
@media (max-width: 1000px) {
  .ch-flow { grid-template-columns: 1fr; gap: 0; }
  .ch-flow::before { left: 23px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; }
  .ch-flow li { display: grid; grid-template-columns: 46px 1fr; gap: 0 24px; padding: 0 0 36px; }
  .ch-flow h3 { margin-top: 10px; }
  .ch-flow p { grid-column: 2; }
}
.ch-flow-note { margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--rule-rev); }
.ch-flow-note p { margin: 0; font-family: var(--f-display); font-weight: 600; color: var(--white); font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -0.03em; max-width: 38ch; }

/* Delivery packages */
.ch-pk { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: clamp(56px, 7vw, 96px); }
.ch-pk article { display: flex; flex-direction: column; border: 1px solid var(--rule); background: var(--white); }
.ch-pk figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--graphite); }
.ch-pk img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 1.2s var(--ease); }
.ch-pk article:hover img { transform: scale(1.04); }
.ch-pk .lvl { position: absolute; left: 16px; top: 16px; z-index: 1; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--carbon); background: var(--white); padding: 6px 9px; }
.ch-pk .ch-pk__body { padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 16px; flex: 1; }
.ch-pk h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.035em; }
.ch-pk p { margin: 0; font-size: 16px; }
.ch-pk .fit { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--carbon); }
.ch-pk .fit b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 6px; }
/* cumulative scope bar */
.scope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.scope span { height: 8px; background: var(--mist); }
.scope span.on { background: var(--carbon); }
.scope-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-top: -8px; }
@media (max-width: 960px) { .ch-pk { grid-template-columns: 1fr; } .ch-pk figure { aspect-ratio: 16 / 9; } }
.ch-pk-note { margin-top: 28px; font-size: 15px; color: var(--steel); max-width: 80ch; }

/* Housing types */
.ch-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: clamp(56px, 7vw, 96px); }
.ch-types > div { background: var(--white); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.ch-types svg { width: 100%; height: auto; aspect-ratio: 16 / 10; color: var(--carbon); margin-bottom: 12px; }
.ch-types svg .g { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ch-types svg .f { fill: var(--mist); }
.ch-types svg .d { fill: none; stroke: var(--steel); stroke-width: 1.4; stroke-dasharray: 4 5; }
.ch-types svg .gr { stroke: var(--steel); stroke-width: 1; }
.ch-types h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); letter-spacing: -0.025em; line-height: 1.12; }
.ch-types p { margin: 0; font-size: 16px; }
@media (max-width: 1000px) { .ch-types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ch-types { grid-template-columns: 1fr; } }
.ch-types-note { margin-top: 20px; }

/* Why the system works — repeat / adapt */
.ch-ra { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--carbon); border: 1px solid var(--carbon); margin-top: clamp(56px, 7vw, 96px); }
.ch-ra > div { padding: clamp(28px, 3.6vw, 52px); }
.ch-ra .rep { background: var(--carbon); color: rgba(255,255,255,.74); }
.ch-ra .rep h3 { color: var(--white); }
.ch-ra .adp { background: var(--white); }
.ch-ra h3 { font-size: clamp(1.7rem, 3vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; margin-top: 16px; }
.ch-ra ul { list-style: none; padding: 0; margin: 32px 0 0; }
.ch-ra li { padding: 13px 0; border-top: 1px solid var(--rule); font-size: 17px; }
.ch-ra .rep li { border-color: var(--rule-rev); }
.ch-ra .rep .label { color: rgba(255,255,255,.55); }
@media (max-width: 760px) { .ch-ra { grid-template-columns: 1fr; } }

/* Proof */
.ch-attr { margin-top: 18px; font-size: 14px; color: var(--steel); }

/* Homepage feature (index.html) */
.ch-feature .split__media { aspect-ratio: 5 / 4; }
.ch-feature .btnrow { margin-top: 40px; }

/* Barrier-free homes — image mosaic */
.bf-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(220px, 24vw, 340px); gap: 8px; margin-top: clamp(56px, 7vw, 96px); }
.bf-grid figure { position: relative; overflow: hidden; background: var(--graphite); }
.bf-grid img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 1.2s var(--ease); }
.bf-grid figure:hover img { transform: scale(1.04); }
.bf-grid figure::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(27,29,31,.55)); pointer-events: none; }
.bf-grid figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: rgba(255,255,255,.9); }
.bf-a { grid-column: span 7; } .bf-b { grid-column: span 5; } .bf-c { grid-column: span 5; } .bf-d { grid-column: span 7; }
.bf-d img { object-position: 50% 40%; }
@media (max-width: 760px) { .bf-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; } .bf-a, .bf-b, .bf-c, .bf-d { grid-column: auto; } }
