:root {
    --ink: #203b32;
    --muted: #64736a;
    --paper: #f6f5ef;
    --cream: #e9ece2;
    --green: #294b3a;
    --lime: #dce8b5;
    --brass: #bd9256;
    --line: #d2d8cd;
    --width: 1240px;
    --section: clamp(5rem, 9vw, 8.5rem);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', Arial, sans-serif; line-height: 1.65; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; }
p { margin: 0 0 1.2rem; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; margin: 0; }
h1, h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(4rem, 8.4vw, 8.3rem); }
h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
h1 em, h2 em { font-style: normal; font-weight: 400; color: inherit; }
h3 { font-size: 1.35rem; }
.shell { width: min(var(--width), calc(100% - 3.5rem)); margin-inline: auto; }
.section { padding-block: var(--section); }
.skip-link { position: absolute; z-index: 100; top: -5rem; left: 1rem; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--paper); transition: transform .18s ease-out; }
.site-header.is-hidden { transform: translateY(-105%); }
.header-inner { position: relative; min-height: 104px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand-logo { display: block; width: 7.1rem; height: auto; }
.page-loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--paper); opacity: 0; visibility: hidden; pointer-events: none; }
html[data-initial-loader="loading"] .page-loader { opacity: 1; visibility: visible; pointer-events: auto; }
.page-loader__content { display: flex; flex-direction: column; align-items: center; gap: 1.35rem; }
.page-loader__content img { display: block; width: min(9rem, 42vw); height: auto; }
.page-loader__indicator { position: relative; display: block; width: 3.5rem; height: 2px; overflow: hidden; background: var(--line); }
.page-loader__indicator::after { position: absolute; inset: 0 auto 0 0; width: 38%; background: var(--green); content: ""; animation: loader-travel 1.15s ease-in-out infinite; }
@keyframes loader-travel { from { transform: translateX(-110%); } to { transform: translateX(265%); } }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); margin-left: auto; }
.desktop-nav a, .header-contact { font-size: .78rem; font-weight: 700; text-decoration: none; }
.desktop-nav > a, .desktop-nav__services > a { position: relative; padding-block: .4rem; }
.desktop-nav a:hover { color: #668345; }
.desktop-nav__services { position: relative; display: flex; align-items: center; }
.desktop-nav__submenu { position: absolute; top: 100%; left: -1rem; z-index: 40; display: grid; width: 18rem; padding: .55rem; border: 1px solid var(--line); background: var(--paper); opacity: 0; pointer-events: none; transform: translateY(.35rem); transition: opacity .16s ease-out, transform .16s ease-out; visibility: hidden; }
.desktop-nav__services:hover .desktop-nav__submenu, .desktop-nav__services:focus-within .desktop-nav__submenu { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
.desktop-nav__submenu a { padding: .55rem .65rem; }
.desktop-nav__submenu a:hover, .desktop-nav__submenu a:focus-visible { background: var(--cream); }
.header-contact { padding: .75rem 1rem; border: 1px solid var(--ink); white-space: nowrap; transition: background .18s ease-out, color .18s ease-out; }
.header-contact:hover { background: var(--ink); color: var(--paper); }
.mobile-nav { display: none; }
.hero, .service-hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .service-hero::before, .page-hero::before { position: absolute; inset: 0; z-index: -1; background: url('/images/Layout_Pic.webp') center / cover no-repeat; content: ""; opacity: .1; pointer-events: none; }
.hero { min-height: min(760px, calc(100svh - 88px)); display: flex; align-items: center; background: var(--green); color: white; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(24rem, .92fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(4rem, 8vw, 7rem); }
.service-hero { padding-block: clamp(3.5rem, 7vw, 6.5rem); background: var(--green); color: white; }
.service-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.service-hero__copy { max-width: 36rem; }
.service-hero__copy h1 { font-size: clamp(3.3rem, 5.7vw, 5.6rem); }
.service-hero__copy h1 em { font-style: normal; }
.service-hero__copy .eyebrow, .page-hero .eyebrow { color: var(--lime); }
.service-hero__copy > p:not(.eyebrow) { max-width: 34rem; margin: 1.5rem 0 2rem; color: rgb(255 255 255 / 84%); font-size: 1.08rem; }
.service-hero .button-dark { background: var(--lime); color: var(--ink); }
.service-hero .button-dark:hover { background: white; }
.service-hero__figure { margin: 0; }
.service-hero__figure img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.service-hero__figure figcaption { margin-top: .75rem; color: rgb(255 255 255 / 76%); font-size: .82rem; }
.service-detail { max-width: 1120px; }
.service-detail__intro { max-width: 48rem; }
.service-detail__intro h2, .service-detail__next h2 { font-size: clamp(2.3rem, 4vw, 3.8rem); }
.service-detail__intro .large-copy { margin-top: 1.5rem; }
.detail-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 4rem; border-top: 1px solid var(--line); }
.detail-step { padding: 1.5rem 1rem 0 0; }
.detail-step h3 { margin-bottom: .8rem; }
.detail-step p { color: var(--muted); }
.service-detail__next { max-width: 55rem; margin-top: 4rem; padding: clamp(1.5rem, 4vw, 3rem); background: var(--cream); }
.service-detail__next p { max-width: 38rem; margin: 1rem 0; color: var(--muted); }
.service-detail > .notice { margin-top: 3rem; }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { margin-bottom: 1.8rem; color: #dce8b5; font-size: .9rem; font-weight: 600; }
.eyebrow { margin-bottom: 1.5rem; color: var(--muted); font-size: .86rem; font-weight: 600; }
.hero h1 { max-width: 10ch; font-size: clamp(3.8rem, 6.6vw, 6.8rem); }
.hero h1 span { display: block; }
.hero-lead { max-width: 32rem; margin: 2rem 0 2.3rem; color: rgb(255 255 255 / 84%); font-size: clamp(1.06rem, 1.5vw, 1.2rem); }
.hero-visual { position: relative; margin: 0; padding: 1.5rem 0 0; }
.hero-visual svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-visual figcaption { max-width: 25rem; margin: .8rem 0 0 auto; color: #dce8b5; font-size: .8rem; text-align: right; }
.building-outline { fill: rgb(255 255 255 / 3%); stroke: #dce8b5; stroke-width: 3; stroke-linejoin: round; }
.building-detail { fill: none; stroke: rgb(255 255 255 / 60%); stroke-width: 2; }
.heat-flow { fill: none; stroke: var(--brass); stroke-width: 3; }
.heat-flow--dashed { stroke-dasharray: 6 8; opacity: .8; }
.ground-line { stroke: rgb(255 255 255 / 30%); stroke-width: 2; }
.button-row { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 1.25rem; font-size: .82rem; font-weight: 700; text-decoration: none; transition: background .18s ease-out, color .18s ease-out; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #466b4d; }
.button-light { background: var(--lime); color: var(--ink); }
.button-light:hover { background: white; }
.hero-phone { color: white; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.intro, .funding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.intro-heading { padding-top: .2rem; }
.intro-copy { max-width: 34rem; }
.large-copy { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.5; }
.intro-copy > p:not(.large-copy), .section-heading > p, .partner p, .page-copy p { color: var(--muted); }
.intro-copy .text-link { display: inline-block; margin-top: 1rem; }
.text-link { font-size: .85rem; font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.text-link:hover { color: #668345; }
.services { background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 3.5rem; }
.section-heading > p { max-width: 23rem; margin-bottom: .3rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.service-card { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 1.2rem; padding: 1.6rem 0 1.8rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.service-card > img { grid-column: 1 / -1; width: 100%; aspect-ratio: 1.8; margin-bottom: 1.25rem; object-fit: cover; }
.service-card:hover h3, .service-card:hover .card-link { color: var(--green); }
.card-label { grid-column: 1 / -1; grid-row: 2; margin-bottom: .6rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.service-card h3 { grid-column: 1; grid-row: 3 / span 2; align-self: start; font-size: clamp(1.2rem, 1.7vw, 1.55rem); }
.service-card p { grid-column: 2; grid-row: 3; margin-bottom: .8rem; color: var(--muted); font-size: .9rem; }
.card-link { grid-column: 2; grid-row: 4; align-self: end; padding-top: .4rem; font-size: .85rem; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; transition: color .18s ease-out; }
.funding { background: var(--green); color: #f7f8ed; }
.funding-grid > div:last-child { max-width: 34rem; }
.funding-grid > div:last-child > p:not(.large-copy) { color: rgb(247 248 237 / 75%); }
.funding .eyebrow { color: #dce8b5; }
.funding .button { margin-top: 1rem; }
.team-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: start; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.mission, .person { min-width: 0; padding: 2rem; background: var(--paper); }
.mission ul { padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.mission li { padding: .25rem 0; }
.person-portrait { display: block; width: 100%; height: auto; margin-bottom: 1.5rem; background: #dce5d2; object-fit: cover; }
.person-monogram { display: grid; aspect-ratio: 4 / 5; place-items: center; margin-bottom: 1.5rem; background: #dce5d2; color: #647e60; font: italic 3.5rem 'DM Serif Display', Georgia, serif; }
.person p { margin: 1rem 0 0; color: var(--muted); font-size: .88rem; }
.partner { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; padding-top: 4rem; }
.partner h3 { margin-bottom: 1rem; }
.partner > div:first-child { max-width: 38rem; }
.contact-band { padding: 4rem 0; background: var(--lime); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.contact-inner h2 { margin-bottom: 1rem; }
.contact-inner p:last-child { margin: 0; }
.site-footer { padding: 5rem 0 1.5rem; background: #1b3027; color: #e8eee1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 3rem; }
.footer-brand { font-weight: 700; letter-spacing: .05em; text-decoration: none; }
.footer-brand span { font-weight: 400; }
.footer-brand small { font-size: .65rem; letter-spacing: .15em; }
.footer-logo-link { width: fit-content; margin-top: 1.75rem; }
.footer-logo { display: block; width: clamp(7rem, 11vw, 9.5rem); height: auto; }
.footer-grid h2 { margin: 0 0 1.5rem; font: 700 .9rem 'DM Sans', sans-serif; }
.footer-grid p, .footer-grid a:not(.footer-brand) { font-size: .88rem; }
.footer-grid a:not(.footer-brand) { display: block; margin-bottom: .65rem; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid #53675b; font-size: .75rem; }
.footer-bottom a { margin-left: 1.5rem; }
.page-hero { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--green); color: white; }
.page-hero h1 { max-width: 15ch; }
.page-hero p:last-child { max-width: 42rem; margin: 1.5rem 0 0; color: rgb(255 255 255 / 84%); font-size: 1.1rem; }

.page-copy { max-width: 800px; }
.page-copy h2 { margin: 3rem 0 1.2rem; font-size: clamp(2rem, 4vw, 3rem); }
.page-copy h3 { margin: 2rem 0 1rem; }
.page-copy li { margin: .5rem 0; }
.page-copy a { overflow-wrap: anywhere; }
.page-copy .notice { padding: 1rem 1.2rem; border-left: 3px solid #789363; background: #edf1e5; color: var(--ink); }
.offer-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0; }
.offer-list div { padding: 1.5rem; background: #e8eddf; font-weight: 700; }
.legal { overflow-wrap: anywhere; font-size: .95rem; }
.legal h2 { font-size: 1.5rem; }
.legal p { white-space: normal; }
@media (max-width: 1050px) {
    .desktop-nav { gap: 1rem; }
    .header-inner { gap: 1.2rem; }
    .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(20rem, .9fr); gap: 2rem; }
    .hero h1 { font-size: clamp(3.4rem, 6.5vw, 5.8rem); }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .mission { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
    .desktop-nav, .header-contact { display: none; }
    .mobile-nav { position: relative; display: block; margin-left: auto; }
    .mobile-nav summary { cursor: pointer; font-weight: 700; list-style: none; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav nav { position: absolute; top: 2.5rem; right: 0; z-index: 5; min-width: 15rem; max-height: calc(100svh - 6rem); overflow-y: auto; padding: 1rem; border: 1px solid var(--line); background: var(--paper); }
    .mobile-nav nav a { display: block; padding: .6rem; text-decoration: none; }
    .hero-layout { grid-template-columns: 1fr; }
    .hero-content { max-width: 42rem; }
    .hero-visual { width: min(100%, 38rem); margin-inline: auto; }
    .service-hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .service-hero__copy { max-width: 42rem; }
    .service-hero__figure { width: min(100%, 42rem); }
    .detail-steps { grid-template-columns: 1fr; gap: .75rem; margin-top: 2.5rem; }
    .detail-step { padding-top: 1.2rem; border-bottom: 1px solid var(--line); }
    .intro, .funding-grid { gap: 3rem; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .mission { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .shell { width: min(var(--width), calc(100% - 2rem)); }
    .header-inner { min-height: 88px; }
    .brand-logo { width: 5.8rem; }
    .hero { min-height: 0; }
    .hero-layout { gap: 2.5rem; padding-block: 4.5rem; }
    .hero h1 { font-size: clamp(3.2rem, 12vw, 4.5rem); }
    .hero-visual { padding-top: 0; }
    .hero-visual figcaption { max-width: 19rem; font-size: .75rem; }
    .intro, .funding-grid, .partner { grid-template-columns: 1fr; gap: 2rem; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 1.5rem; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto auto; row-gap: .3rem; padding-block: 1.3rem; }
    .service-card > img { grid-column: 1; aspect-ratio: 1.65; margin-bottom: .8rem; }
    .card-label { grid-column: 1; grid-row: auto; margin-bottom: .4rem; }
    .service-card h3 { grid-column: 1; grid-row: auto; }
    .service-card p { grid-column: 1; grid-row: auto; margin: .5rem 0; }
    .card-link { grid-column: 1; grid-row: auto; padding-top: .2rem; }
    .service-hero { padding-block: 3rem; }
    .service-hero__copy h1 { font-size: clamp(3rem, 11vw, 4.2rem); }
    .service-detail__next { margin-top: 2.5rem; }
    .detail-step { padding-right: 0; }
    .team-grid { grid-template-columns: 1fr; }
    .mission { grid-column: auto; }
    .contact-inner { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
    .footer-bottom a { margin: 0 1.5rem 0 0; }
    .offer-list { grid-template-columns: 1fr; }
    h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
}
@media (prefers-reduced-motion: no-preference) {
    .hero-content, .hero-visual, .service-hero__copy, .service-hero__figure { animation: content-arrive .7s var(--ease) both; }
    .hero-visual, .service-hero__figure { animation-delay: .12s; }
    @keyframes content-arrive { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }
    html.has-reveal .reveal { opacity: 0; transform: translateY(1rem); transition: opacity .55s var(--ease), transform .55s var(--ease); }
    html.has-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .service-card > img { transition: transform .6s var(--ease); }
    .service-card:hover > img { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
