/* ========================================
   Feature case study layout (HS2 first; reusable)
   Photo hero, stat band, numbered approach, photo band, relevance block.
   Loaded after case-study.css on pages that use the .csf- classes.
   ======================================== */

.csf { --night: #1a1a2e; --deep: #2b2140; --lilac: #f6f3fa; --line: #e4deec; --graphite: #4b4c53; --teal-text: #267370; }

/* Hero */
.csf-hero { position: relative; min-height: 640px; display: flex; align-items: flex-end;
    padding: 160px 0 72px; color: #fff; overflow: hidden;
    background: var(--night) url('../images/case-studies/hs2-hero-rail-dusk.jpg') center 60% / cover no-repeat; }
.csf-hero::before { content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(26,26,46,.94) 0%, rgba(43,33,64,.82) 42%, rgba(26,26,46,.25) 100%),
                linear-gradient(0deg, rgba(26,26,46,.85) 0%, rgba(26,26,46,0) 45%); }
.csf-hero .csf-wrap { position: relative; z-index: 1; }
.csf-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.csf-back { display: inline-block; color: rgba(255,255,255,.75); font-size: .9375rem; margin-bottom: 40px; text-decoration: none; }
.csf-back:hover { color: var(--color-teal); }
.csf-hero-logo { height: 56px; width: auto; filter: brightness(0) invert(1); margin-bottom: 28px; display: block; }
.csf-eyebrow { font-family: 'ProximaNova-Semibold', var(--font-body); font-size: .8125rem; letter-spacing: .22em;
    text-transform: uppercase; color: var(--color-teal); margin-bottom: 16px; }
.csf-hero h1 { font-family: var(--font-heading); font-size: clamp(2.25rem, 5.4vw, 4rem); line-height: 1.08;
    letter-spacing: -.02em; color: #fff; max-width: 760px; margin-bottom: 24px; }
.csf-hero h1 em { font-style: normal; color: var(--color-teal); }
.csf-hero-lede { font-size: clamp(1.125rem, 2.2vw, 1.375rem); line-height: 1.6; color: rgba(255,255,255,.88); max-width: 620px; }
.csf-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 44px; padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.18); }
.csf-facts div { font-size: .9375rem; color: rgba(255,255,255,.7); }
.csf-facts b { display: block; font-family: 'ProximaNova-Semibold', var(--font-body); font-weight: 400;
    color: #fff; font-size: 1.0625rem; margin-top: 4px; }

/* Stat band */
.csf-stats { background: var(--deep); color: #fff; }
.csf-stats .csf-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.csf-stat { padding: 40px 28px; border-left: 1px solid rgba(255,255,255,.12); }
.csf-stat:first-child { border-left: 0; padding-left: 0; }
.csf-stat .n { font-family: var(--font-heading); font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--color-teal); line-height: 1.1; }
.csf-stat .d { margin-top: 10px; font-size: 1rem; line-height: 1.5; color: rgba(255,255,255,.82); }

/* Body sections */
.csf-section { padding: 96px 0; background: #fff; }
.csf-section.alt { background: var(--lilac); }
.csf-grid { display: grid; grid-template-columns: 280px 1fr; gap: 64px; }
.csf-kicker { font-family: 'ProximaNova-Semibold', var(--font-body); font-size: .8125rem; letter-spacing: .22em;
    text-transform: uppercase; color: var(--teal-text); margin-bottom: 14px; }
.csf-section h2 { font-family: var(--font-heading); color: var(--color-purple); font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    line-height: 1.15; letter-spacing: -.01em; }
.csf-body p { font-size: 1.125rem; line-height: 1.75; color: var(--graphite); margin-bottom: 22px; max-width: 680px; }
.csf-body p:last-child { margin-bottom: 0; }
.csf-body p strong { color: var(--night); font-family: 'ProximaNova-Semibold', var(--font-body); font-weight: 400; }
.csf-list { list-style: none; margin: 8px 0 0; padding: 0; max-width: 680px; }
.csf-list li { position: relative; padding: 14px 0 14px 32px; border-top: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.6; color: var(--graphite); }
.csf-list li:last-child { border-bottom: 1px solid var(--line); }
.csf-list li::before { content: ''; position: absolute; left: 0; top: 24px; width: 14px; height: 3px; background: var(--color-teal); }

/* Numbered approach */
.csf-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.csf-step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 30px 30px; position: relative; }
.csf-step .num { font-family: var(--font-heading); font-size: 2.75rem; line-height: 1; color: var(--color-purple); opacity: .9; }
.csf-step .num::after { content: ''; display: block; width: 36px; height: 3px; background: var(--color-teal); margin-top: 16px; }
.csf-step h3 { font-family: var(--font-heading); font-size: 1.375rem; color: var(--night); margin: 20px 0 12px; line-height: 1.25; }
.csf-step p { font-size: 1.0625rem; line-height: 1.65; color: var(--graphite); margin: 0; }

/* Photo band */
.csf-band { position: relative; padding: 120px 0; color: #fff; overflow: hidden;
    background: var(--night) url('../images/case-studies/hs2-band-steel-bridge.jpg') center / cover no-repeat; }
.csf-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(43,33,64,.92) 0%, rgba(26,26,46,.72) 60%, rgba(26,26,46,.55) 100%); }
.csf-band .csf-wrap { position: relative; z-index: 1; }
.csf-band blockquote { margin: 0; font-family: var(--font-heading); font-size: clamp(1.75rem, 4.2vw, 3.25rem); line-height: 1.18;
    letter-spacing: -.01em; max-width: 880px; }
.csf-band blockquote em { font-style: normal; color: var(--color-teal); }
.csf-band p { margin-top: 24px; font-size: 1.125rem; line-height: 1.7; color: rgba(255,255,255,.82); max-width: 640px; }

/* Results */
.csf-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.csf-result { border-top: 3px solid var(--color-teal); padding-top: 22px; }
.csf-result h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-purple); margin-bottom: 10px; line-height: 1.2; }
.csf-result p { font-size: 1.0625rem; line-height: 1.65; color: var(--graphite); margin: 0; }

/* Relevance */
.csf-related { margin-top: 36px; display: inline-flex; align-items: center; gap: 10px; font-family: 'ProximaNova-Semibold', var(--font-body);
    color: var(--color-purple); text-decoration: none; border-bottom: 2px solid var(--color-teal); padding-bottom: 4px; }
.csf-related:hover { color: var(--teal-text); }

@media (max-width: 900px) {
    .csf-grid { grid-template-columns: 1fr; gap: 20px; }
    .csf-stats .csf-wrap { grid-template-columns: repeat(2, 1fr); }
    .csf-stat { padding: 28px 16px; }
    .csf-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .csf-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
    .csf-steps, .csf-results { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .csf-wrap { padding: 0 16px; }
    .csf-hero { min-height: 560px; padding: 120px 0 48px; }
    .csf-hero::before { background: linear-gradient(0deg, rgba(26,26,46,.95) 0%, rgba(26,26,46,.75) 60%, rgba(26,26,46,.5) 100%); }
    .csf-section { padding: 64px 0; }
    .csf-band { padding: 80px 0; }
    .csf-step { padding: 26px 22px; }
}

/* Refinements: true Input Sans Medium (no synthetic bold), alignment, tighter headings */
.csf h1, .csf h2, .csf h3, .csf .csf-stat .n, .csf blockquote, .csf .num { font-weight: 400; }
.csf-hero .csf-wrap { width: 100%; }
.csf-grid { grid-template-columns: 340px 1fr; gap: 56px; }
.csf-grid h2 { font-size: clamp(1.75rem, 2.6vw, 2.125rem); line-height: 1.2; }
.csf-stat .n { font-size: clamp(1.5rem, 2.3vw, 2rem); letter-spacing: -.01em; }
.csf-band blockquote { max-width: 980px; }
@media (max-width: 900px) { .csf-grid { grid-template-columns: 1fr; } }

/* Tighter vertical rhythm (Jon, 18 Nov 2026) */
.csf-section { padding: 64px 0; }
.csf-body p { font-size: 1.0625rem; line-height: 1.6; margin-bottom: 14px; }
.csf-list li { padding: 9px 0 9px 30px; font-size: 1rem; line-height: 1.5; }
.csf-list li::before { top: 19px; }
.csf-list { margin-top: 4px; }
.csf-kicker { margin-bottom: 10px; }
.csf-hero { min-height: 560px; padding: 140px 0 56px; }
.csf-back { margin-bottom: 28px; }
.csf-hero-logo { margin-bottom: 20px; }
.csf-hero h1 { margin-bottom: 18px; }
.csf-hero-lede { line-height: 1.5; }
.csf-facts { margin-top: 32px; padding-top: 22px; }
.csf-stat { padding: 30px 24px; }
.csf-stat .d { margin-top: 6px; line-height: 1.4; }
.csf-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.csf-step { padding: 24px 24px 22px; }
.csf-step .num { font-size: 2.25rem; }
.csf-step .num::after { margin-top: 12px; }
.csf-step h3 { font-size: 1.1875rem; margin: 14px 0 8px; }
.csf-step p { font-size: 1rem; line-height: 1.55; }
.csf-band { padding: 84px 0; }
.csf-band p { margin-top: 16px; line-height: 1.55; }
.csf-results { grid-template-columns: repeat(3, 1fr); gap: 20px 28px; margin-top: 28px; }
.csf-result { padding-top: 16px; }
.csf-result h3 { font-size: 1.25rem; margin-bottom: 6px; }
.csf-result p { font-size: 1rem; line-height: 1.55; }
.csf-related { margin-top: 20px; }
.cs-cta { padding: 64px 0; }

/* Geospatial layers */
.csf-geo-grid { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: center; }
.csf-layers { margin: 0; }
.csf-layers svg { width: 100%; height: auto; display: block; }
.csf-layers figcaption { margin-top: 8px; font-size: .875rem; color: var(--graphite); text-align: center; }

@media (max-width: 1000px) {
    .csf-steps, .csf-results { grid-template-columns: repeat(2, 1fr); }
    .csf-geo-grid { grid-template-columns: 1fr; gap: 28px; }
    .csf-layers { max-width: 440px; }
}
@media (max-width: 600px) {
    .csf-steps, .csf-results { grid-template-columns: 1fr; }
    .csf-section { padding: 48px 0; }
    .csf-hero { min-height: 0; padding: 112px 0 40px; }
    .csf-band { padding: 60px 0; }
}

.csf-body .csf-kicker { font-size: .8125rem; line-height: 1.4; color: var(--teal-text); margin-bottom: 10px; }
