/* =====================================================================
   County Energy — homepage stylesheet
   Tokens > base > components > sections > motion states > responsive
   ===================================================================== */

:root {
  --green: #7abc63;
  --green-deep: #4f9a3a;
  --green-dark: #2f6b26;
  --ink: #0f2418;          /* deep green-black for dark bands */
  --ink-2: #163122;
  --coral: #c8605b;
  --coral-deep: #a9473f;
  --coral-btn: #b8544f;    /* 4.75:1 with white text */
  --small: clamp(16px, 1.2vw, 17px);
  --paper: #f4f7f1;        /* light with a green tint */
  --paper-2: #e8efe3;
  --white: #ffffff;
  --text: #17241d;
  --muted: #55665c;
  --line: #d6e0d1;
  --sun: #f3c04c;

  --display: 'Bricolage Grotesque', 'Bricolage Fallback', 'Segoe UI', Arial, sans-serif;
  --body: 'Schibsted Grotesk', 'Schibsted Fallback', 'Segoe UI', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --wrap: 1680px;
  --radius: 22px;
  --radius-sm: 12px;
  --header-h: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(17px, 1.1vw, 19px);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 750; line-height: 1.04; letter-spacing: -0.02em; }
/* display sizes: Bricolage's optical size narrows big type, so headlines get their own matched fallback */
h1, h2 { font-family: 'Bricolage Grotesque', 'Bricolage Head Fallback', 'Segoe UI', Arial, sans-serif; }
@media (max-width: 719px) { h1, h2 { font-family: 'Bricolage Grotesque', 'Bricolage Mid Fallback', 'Segoe UI', Arial, sans-serif; } }
[data-count], .facts b, .stat b, .scheme__amount, .fund__figure b, .touch-meter b, .day__clock span { font-variant-numeric: tabular-nums; }
h1 { font-size: clamp(40px, 5.6vw, 92px); font-stretch: 92%; }
h2 { font-size: clamp(32px, 3.5vw, 60px); font-stretch: 94%; }
h3 { font-size: clamp(22px, 1.7vw, 28px); }
.lede { font-size: clamp(18px, 1.35vw, 23px); line-height: 1.5; color: var(--muted); max-width: 110ch; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(56px, 6vw, 96px); }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 3vw, 44px); }
.section__head .lede { max-width: 120ch; }
.on-dark { color: #fff; }
.on-dark .lede { color: rgba(255,255,255,.78); }
.text-green { color: var(--green); }
.text-coral { color: var(--coral); }

/* Masked line reveals (SplitText mask: 'lines' makes .ln-mask wrappers). Each line gets .2em above and .5em below
   inside its mask; the negative margins take exactly that back, so a heading is the same height with or without motion. */
h1, h2, h3 { display: flow-root; text-wrap: balance; }
.ln-mask { padding: .2em .15em .5em; margin: -.7em -.15em -.5em; }
.ln-mask:first-child { margin-top: -.2em; }
[data-split] { display: flow-root; }

/* ------------------------------------------------------------ buttons */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 30px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.005em; text-decoration: none;
  overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.14); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 16px 30px -12px rgba(15,36,24,.45); }
.btn > span { display: inline-flex; align-items: center; gap: 10px; }
.btn--coral { --bg: var(--coral-btn); }
.btn--green { --bg: #3e842d; }   /* a shade under --green-deep so white button text keeps 4.5:1 */
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn--ghost.on-light { --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--sm { padding: 13px 22px; font-size: var(--small); min-height: 48px; }
.btn .arrow { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--display); font-weight: 700; text-decoration: none; color: var(--green-dark); }
.link-arrow svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------- header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; --fg: #fff; color: var(--fg); transition: background .4s, box-shadow .4s, color .3s; }
.header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6,16,10,.55), rgba(6,16,10,0)); pointer-events: none; opacity: 1; transition: opacity .4s; }
.header.is-stuck { --fg: var(--ink); background: rgba(244,247,241,.86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(15,36,24,.08); }
.header.is-stuck::before { opacity: 0; }
.header.menu-open { --fg: var(--ink); }
.header__bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: 0 0 auto; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.92); transition: background .4s; }
.brand img { width: clamp(150px, 12vw, 190px); height: auto; }
.header.is-stuck .brand { background: transparent; padding-inline: 0; }
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 10px 14px; border-radius: 999px; font-family: var(--display); font-weight: 650; font-size: 16px; text-decoration: none; color: var(--fg); transition: background .3s; }
.nav__link:hover, .nav__item.is-open > .nav__link { background: rgba(122,188,99,.22); }
.nav__link.is-current { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 6px; text-decoration-thickness: 3px; }
.nav__chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.nav__item.is-open .nav__chev { transform: translateY(1px) rotate(225deg); }
.sub { position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; padding: 10px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(15,36,24,.35), 0 0 0 1px rgba(15,36,24,.06); opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none; }
.sub::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 14px; } /* hover bridge */
.nav__item.is-open > .sub { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.sub__list li a { display: block; padding: 11px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: background .25s, color .25s; }
.sub__list li a:hover { background: var(--paper-2); color: var(--green-dark); }
.sub--wide { left: 50%; transform: translate(-50%, 10px); width: 720px; padding: 14px; }
.nav__item.is-open > .sub--wide { transform: translate(-50%, 0); }
.sub__list--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sub__all { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 44px; margin-top: 6px; padding: 8px 16px; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--green-dark); text-decoration: none; }
.sub__all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .35s var(--ease); }
.sub__all:hover svg { transform: translateX(4px); }
.sub__list a[aria-current="page"], .sub__card[aria-current="page"] { background: var(--paper-2); color: var(--green-dark); }
.menu__list a[aria-current="page"] { color: var(--green-dark); }
.sub__card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; text-decoration: none; transition: background .25s; }
.sub__card:hover { background: var(--paper-2); }
.sub__icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; color: var(--green-dark); transition: background .25s, color .25s; }
.sub__card:hover .sub__icon { background: var(--green-deep); color: #fff; }
.sub__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sub__text { display: grid; gap: 2px; }
.sub__text strong { font-family: var(--display); font-weight: 700; font-size: 16px; }
.sub__text span { font-size: 16px; color: var(--muted); line-height: 1.4; }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { display: none; align-items: center; gap: 8px; min-height: 44px; font-family: var(--display); font-weight: 700; text-decoration: none; color: var(--fg); }
.header__phone svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.header__actions .btn { display: none; }
.burger { position: relative; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.header.is-stuck .burger, .header.menu-open .burger { background: rgba(15,36,24,.08); }
.burger span { position: absolute; left: 13px; width: 20px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 1; background: var(--paper); color: var(--ink); overflow-y: auto; padding-top: var(--header-h); }
.menu[hidden] { display: none; }
.menu__inner { padding: 20px var(--gutter) 40px; display: grid; gap: 22px; }
.menu__list > li { border-bottom: 1px solid var(--line); }
.menu__list a, .menu__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 16px 0; font-family: var(--display); font-size: 24px; font-weight: 700; text-decoration: none; text-align: left; }
.menu__toggle .nav__chev { width: 11px; height: 11px; }
.menu__toggle[aria-expanded="true"] .nav__chev { transform: translateY(2px) rotate(225deg); }
.menu__sub { display: grid; overflow: hidden; height: 0; }
.menu__sub a { font-size: 18px; font-weight: 600; padding: 10px 0 10px 18px; color: var(--muted); border-left: 2px solid var(--green); margin-left: 4px; }
.menu__sub li:last-child a { margin-bottom: 12px; }
.menu__actions { display: grid; gap: 14px; }
.menu__phone { display: flex; align-items: center; justify-content: center; min-height: 48px; font-family: var(--display); font-weight: 700; font-size: 20px; text-decoration: none; color: var(--green-dark); }

/* --------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media video { position: absolute; inset: 0; }
.hero__media img { position: absolute; inset: 0; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, rgba(8,20,13,.92) 0%, rgba(8,20,13,.55) 38%, rgba(8,20,13,.08) 70%, rgba(8,20,13,.35) 100%),
  linear-gradient(100deg, rgba(8,20,13,.55) 0%, rgba(8,20,13,0) 60%); }
.hero__inner { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 7vh, 90px); display: grid; gap: 26px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--small); letter-spacing: .01em; color: rgba(255,255,255,.85); }
.hero__kicker i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(122,188,99,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(122,188,99,.65); } 100% { box-shadow: 0 0 0 14px rgba(122,188,99,0); } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__lede { font-size: clamp(18px, 1.45vw, 24px); line-height: 1.45; color: rgba(255,255,255,.88); max-width: 110ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: var(--small); color: rgba(255,255,255,.85); }
.hero__proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 18px; height: 18px; stroke: var(--green); stroke-width: 2.4; fill: none; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; font-size: var(--small); color: rgba(255,255,255,.75); }
.scroll-cue i { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.5); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ------------------------------------------------------------- ticker */
.ticker { background: var(--ink); color: #fff; padding: 18px 0; overflow: hidden; border-block: 1px solid rgba(255,255,255,.08); }
.ticker__track { display: flex; width: max-content; gap: 0; }
.ticker__list { display: flex; align-items: center; gap: 0; padding-right: 0; }
.ticker__list li { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--display); font-weight: 650; font-size: 17px; white-space: nowrap; }
.ticker__list li::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.ticker__list li.coral::after { background: var(--coral); }

/* ----------------------------------------------------- services window */
.services { background: #fff; overflow: clip; }
.services__grid { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
.window { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; aspect-ratio: 1 / 1; --media-cap: min(72vh, 720px); width: min(100%, var(--media-cap)); margin-inline: auto; }
.window__tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--ink-2); text-decoration: none; color: #fff; isolation: isolate; clip-path: inset(0 round var(--radius-sm)); }
.window__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1s var(--ease); }
.window__tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,20,13,.85) 0%, rgba(8,20,13,.15) 55%, rgba(8,20,13,0) 100%); transition: background .5s; }
.window__tile:hover img { transform: scale(1.1); }
.window__tile:hover::after { background: linear-gradient(to top, rgba(47,107,38,.9) 0%, rgba(47,107,38,.35) 60%, rgba(47,107,38,.1) 100%); }
.window__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.window__label > span:first-child { flex: 1 1 auto; }
/* top row: labels sit at the top so the centre badge never covers them */
.window__tile:nth-child(-n+2) .window__label { top: 0; bottom: auto; align-items: flex-start; }
.window__tile:nth-child(-n+2)::after { background: linear-gradient(to bottom, rgba(8,20,13,.85) 0%, rgba(8,20,13,.15) 55%, rgba(8,20,13,0) 100%); }
.window__tile:nth-child(-n+2):hover::after { background: linear-gradient(to bottom, rgba(47,107,38,.9) 0%, rgba(47,107,38,.35) 60%, rgba(47,107,38,.1) 100%); }
.window__label strong { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.35vw, 23px); line-height: 1.1; }
.window__label small { display: block; margin-top: 4px; font-size: var(--small); color: rgba(255,255,255,.8); font-weight: 400; }
.window__go { position: absolute; z-index: 2; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .3s, transform .4s var(--ease); }
.window__tile:nth-child(-n+2) .window__go { top: auto; bottom: 16px; }
.window__tile:nth-child(odd) .window__go { right: auto; left: 16px; }
.window__go svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.2; fill: none; }
.window__tile:hover .window__go { background: var(--coral); transform: rotate(-45deg); }
.window__badge { position: absolute; inset: 0; margin: auto; z-index: 3; width: clamp(110px, 29%, 210px); height: clamp(110px, 29%, 210px); border-radius: 50%; background: #fff; box-shadow: 0 20px 40px -14px rgba(15,36,24,.45), 0 0 0 10px rgba(244,247,241,.85); display: grid; place-content: center; text-align: center; padding: 10px; }
.window__badge b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.2vw, 60px); line-height: 1; color: var(--green-deep); letter-spacing: -.03em; }
.window__badge span { display: block; font-family: var(--display); font-weight: 650; font-size: clamp(12px, 1vw, 16px); line-height: 1.2; color: var(--ink); margin-top: 6px; }
.window__ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); overflow: visible; opacity: .7; pointer-events: none; }
.window__ring circle { fill: none; stroke: var(--green); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-dasharray: 6 6; animation: ringdash 6s linear infinite; }
@keyframes ringdash { to { stroke-dashoffset: -120; } }
@keyframes spin { to { transform: rotate(360deg); } }
.services__copy { display: grid; gap: 18px; align-content: center; }
.services__copy h2 em { font-style: normal; color: var(--green-deep); }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 4px; stroke: var(--green-deep); stroke-width: 2.4; fill: none; }
.services__ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* --------------------------------------------------- whole house (pinned) */
.house { background: #f4e9df; overflow: clip; }
.house__stage { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.house__figure { position: relative; overflow: hidden; border-radius: var(--radius); background: #f8f3ef; width: min(100%, calc((100svh - var(--header-h) - 56px) * 1.293)); margin-inline: auto; }
.house__figure img { width: 100%; height: auto; }
.house__cam { position: relative; will-change: transform; transform-origin: 50% 50%; }
.house__dim { position: absolute; inset: 0; background: rgba(15,36,24,.5); opacity: 0; --sx: 50%; --sy: 50%; -webkit-mask: radial-gradient(circle at var(--sx) var(--sy), transparent 0, transparent 90px, rgba(0,0,0,.6) 170px, #000 260px); mask: radial-gradient(circle at var(--sx) var(--sy), transparent 0, transparent 90px, rgba(0,0,0,.6) 170px, #000 260px); pointer-events: none; transition: opacity .6s; }
.house__figure.is-focus .house__dim { opacity: 1; }
.hot { position: absolute; z-index: 2; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(255,255,255,.9); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 14px; transform: scale(.85); opacity: .55; transition: transform .5s var(--ease), opacity .4s, background .4s; }
.hot::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--coral); opacity: 0; }
.hot.is-active { transform: scale(1.15); opacity: 1; background: var(--green-deep); }
.house__figure.is-focus .hot:not(.is-active) { opacity: 0 !important; }
.hot.is-active::before { border-color: var(--green-deep); animation: hotring 1.6s ease-out infinite; }
@keyframes hotring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.house__list { display: grid; gap: 6px; }
.house__item { position: relative; padding: 18px 20px 18px 66px; border-radius: 16px; border: 1px solid transparent; transition: background .45s, border-color .45s, box-shadow .45s; }
.house__item::before { content: attr(data-n); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; background: rgba(15,36,24,.08); color: var(--ink); transition: background .4s, color .4s; }
.house__item h3 { font-size: clamp(20px, 1.6vw, 26px); }
.house__item p { margin-top: 8px; color: var(--muted); }
.house__item .house__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.house__item .house__more > div { overflow: hidden; }
.house__item.is-active { background: #fff; border-color: rgba(15,36,24,.07); box-shadow: 0 24px 40px -24px rgba(15,36,24,.35); }
.house__item.is-active::before { background: var(--green-deep); color: #fff; }
.house__item.is-active .house__more { grid-template-rows: 1fr; }
/* Without JavaScript the house list and FAQ cannot be opened, so show them expanded. .no-js is removed by an inline
   script in <head> before first paint, so script users never see (or animate out of) this state. */
.no-js .house__more, .no-js .acc__panel { grid-template-rows: 1fr; }
.house__progress { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.house__progress i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--green-deep); transform-origin: top; transform: scaleY(0); }
.house__listwrap { position: relative; padding-left: 22px; }
.house__stage.is-pinned .house__figure { will-change: transform; }

/* ------------------------------------------------------------ funding */
.funding { background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.funding::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 85% 10%, rgba(122,188,99,.28), transparent 60%),
  radial-gradient(40% 50% at 10% 90%, rgba(200,96,91,.22), transparent 60%); }
.funding__contours { position: absolute; inset: 0; z-index: -1; opacity: .25; pointer-events: none; }
.funding__contours svg { width: 100%; height: 100%; }
.funding__contours path { fill: none; stroke: var(--green); stroke-width: 1.2; }
.funding__grid { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
.funding__copy { display: grid; gap: 18px; }
.funding__copy h2 em { font-style: normal; color: var(--green); }
.funding__figure { position: relative; --media-cap: min(50vh, 470px); }
.funding__figure .frame { position: relative; width: min(100%, calc(var(--media-cap) * 1.5)); margin-inline: auto; border-radius: var(--radius); }
.funding__figure .frame img { width: 100%; height: auto; border-radius: var(--radius); }
.funding__figure .frame::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.funding__figure .outline { position: absolute; inset: 12px -12px -12px 12px; border: 1.5px solid var(--green); border-radius: var(--radius); opacity: .7; pointer-events: none; }
.funding__figure .tag { position: absolute; left: 22px; bottom: 22px; z-index: 2; z-index: 2; background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 18px; display: grid; gap: 2px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.funding__figure .tag b { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; color: var(--green-deep); letter-spacing: -.02em; }
.funding__figure .tag span { font-size: var(--small); color: var(--muted); }
.schemes { display: grid; gap: 14px; margin-top: clamp(24px, 3vw, 40px); }
.scheme { position: relative; display: grid; gap: 8px; padding: 20px 22px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transform-style: preserve-3d; transition: background .4s, border-color .4s; }
.scheme:hover { background: rgba(255,255,255,.1); border-color: rgba(122,188,99,.55); }
.scheme__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.scheme__top h3 { flex: 1 1 auto; }
.scheme h3 { font-size: clamp(20px, 1.5vw, 26px); }
.scheme__amount { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.4vw, 40px); line-height: 1; letter-spacing: -.02em; color: var(--green); white-space: nowrap; }
.scheme p { color: rgba(255,255,255,.8); }
.scheme__glare { position: absolute; inset: 0; border-radius: 18px; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.14), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.scheme:hover .scheme__glare { opacity: 1; }
.funding__note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: rgba(122,188,99,.12); border: 1px dashed rgba(122,188,99,.5); font-size: var(--small); color: rgba(255,255,255,.88); }
.funding__note svg { flex: 0 0 24px; width: 24px; height: 24px; stroke: var(--green); stroke-width: 2; fill: none; margin-top: 2px; }

/* ---------------------------------------------------------------- why */
.why { background: var(--paper); overflow: clip; }
.why__grid { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
.why__copy { display: grid; gap: 18px; }
.why__copy h2 em { font-style: normal; color: var(--coral); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.stat { padding: 18px 18px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 2.8vw, 46px); line-height: 1; letter-spacing: -.03em; color: var(--green-deep); }
.stat b small { font-size: .5em; letter-spacing: 0; }
.stat > span { display: block; margin-top: 8px; font-size: var(--small); color: var(--muted); line-height: 1.35; }
.stat b span { display: inline; }
.why__figure { position: relative; --media-cap: min(66vh, 640px); }
.why__figure .frame { position: relative; width: min(100%, calc(var(--media-cap) * .8)); margin-inline: auto; border-radius: var(--radius); overflow: hidden; }
.why__figure .frame img { width: 100%; height: auto; }
.why__figure .frame::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,36,24,.55), transparent 50%); }
.why__figure .frame2 { position: absolute; right: -6%; bottom: -8%; width: 46%; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(15,36,24,.5), 0 0 0 8px var(--paper); }
.why__figure .frame2 img { width: 100%; height: auto; }
.why__figure .mark { position: absolute; left: -4%; top: -6%; width: clamp(90px, 9vw, 140px); padding: 18px; border-radius: 50%; background: #fff; box-shadow: 0 20px 40px -20px rgba(15,36,24,.4); }
.why__figure .mark img { width: 100%; height: auto; }
.why__figure .caption { position: absolute; left: 22px; bottom: 22px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }

/* ------------------------------------------------------------ process */
.process { background: var(--paper-2); overflow: clip; }
.process::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 60% at 100% 0%, rgba(122,188,99,.25), transparent 70%); pointer-events: none; }
.process__grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.steps { position: relative; display: grid; gap: clamp(18px, 2.4vw, 30px); padding-left: 0; }
.steps__line { position: absolute; left: 31px; top: 34px; width: 6px; height: calc(100% - 68px); }
.steps__line path { stroke: var(--green-deep); stroke-width: 3; fill: none; stroke-linecap: round; }
.step { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 18px; align-items: start; }
.step__no { width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 3px solid var(--green-deep); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--green-deep); position: relative; z-index: 1; }
.step h3 { font-size: clamp(20px, 1.5vw, 25px); padding-top: 6px; }
.step p { color: var(--muted); margin-top: 6px; }
.process__figure { position: relative; --media-cap: min(60vh, 560px); }
.process__figure .frame { position: relative; width: min(100%, calc(var(--media-cap) * 1.5)); margin-inline: auto; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.process__figure .frame img { width: 100%; height: auto; }
.process__figure .frame__copy { position: absolute; inset: auto 0 0 0; padding: clamp(20px, 2.4vw, 32px); background: linear-gradient(to top, rgba(8,20,13,.88), transparent); color: #fff; display: grid; gap: 14px; }
.process__figure .frame__copy p { font-size: clamp(18px, 1.35vw, 22px); font-family: var(--display); font-weight: 700; line-height: 1.25; }

/* --------------------------------------------------------------- work */
.work { background: var(--ink); color: #fff; overflow: clip; padding-block: clamp(72px, 9vw, 140px) 0; }
.work .section__head { margin-bottom: clamp(28px, 3vw, 48px); }
.work__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.work__counter { font-family: var(--display); font-weight: 700; font-size: 22px; color: rgba(255,255,255,.7); display: none; }
.work__counter b { color: #fff; font-size: 34px; }
.film { position: relative; }
.film__track { display: flex; gap: 18px; padding: 0 var(--gutter) 40px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.film__track::-webkit-scrollbar { display: none; }
.card { position: relative; flex: 0 0 min(86vw, 520px); aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; scroll-snap-align: start; background: var(--ink-2); isolation: isolate; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.06); }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,20,13,.85), rgba(8,20,13,0) 55%); }
.card__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 22px; display: grid; gap: 10px; justify-items: start; }
.card__cap strong { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.15; }
.card__cap span { display: block; margin-top: 4px; font-size: var(--small); color: rgba(255,255,255,.75); }
.card__cap em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: var(--small); padding: 6px 10px; border-radius: 999px; background: rgba(122,188,99,.3); color: #e4f5dc; white-space: nowrap; }
.film__bar { height: 3px; margin: 0 var(--gutter); background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
.film__bar i { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }
.work__foot { padding: 28px var(--gutter) clamp(60px, 7vw, 100px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.work__foot p { color: rgba(255,255,255,.78); }

/* ------------------------------------------------------------ reviews */
.reviews { background: var(--paper); overflow: hidden; }
.reviews__bg { position: absolute; inset: 0; opacity: .14; }
.reviews__bg img { width: 100%; height: 100%; object-fit: cover; }
.reviews::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--paper) 30%, rgba(244,247,241,.6)); pointer-events: none; }
.reviews .wrap { position: relative; z-index: 1; }
.reviews__grid { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; }
.reviews__copy { display: grid; gap: 22px; }
.rating { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; }
.rating .stars { display: flex; gap: 3px; }
.rating .stars svg { width: 22px; height: 22px; fill: var(--sun); }
.quotes { position: relative; min-height: 340px; }
.quote { position: absolute; inset: 0; display: grid; align-content: space-between; gap: 22px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(15,36,24,.3); opacity: 0; visibility: hidden; }
.quote.is-active { opacity: 1; visibility: visible; position: relative; }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1.6vw, 27px); line-height: 1.3; letter-spacing: -.01em; }
.quote blockquote::before { content: '“'; color: var(--green); font-size: 1.4em; line-height: 0; margin-right: 2px; }
.quote__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.quote cite { font-style: normal; font-weight: 700; }
.quote cite span { display: block; font-weight: 400; font-size: var(--small); color: var(--muted); }
.quote .pill { font-size: var(--small); font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--green-dark); }
.quotes__nav { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.qdot { width: 46px; height: 46px; border-radius: 50%; position: relative; display: grid; place-items: center; }
.qdot i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background .3s; }
.qdot.is-active i { background: var(--green-deep); }
.qdot svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.qdot circle { fill: none; stroke: var(--green-deep); stroke-width: 2.5; stroke-dasharray: 132; stroke-dashoffset: 132; }
.qdot.is-active circle { animation: ring var(--qdur, 7s) linear forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- faq */
.faq { background: #fff; overflow: clip; }
.faq__grid { display: grid; gap: clamp(32px, 4vw, 72px); align-items: start; }
.faq__figure { --media-cap: min(64vh, 620px); position: sticky; top: calc(var(--header-h) + 24px); }
.faq__figure .frame { position: relative; width: min(100%, calc(var(--media-cap) * .8)); border-radius: var(--radius); }
.faq__figure .frame img { width: 100%; height: auto; border-radius: var(--radius); }
.faq__figure .frame::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); background: linear-gradient(to top, rgba(15,36,24,.7), transparent 55%); }
.faq__figure .frame .frame__copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 24px; color: #fff; display: grid; gap: 12px; }
.faq__figure .frame .frame__copy p { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.2; }
.faq__figure .outline { position: absolute; inset: -10px 10px 10px -10px; border: 1.5px solid var(--coral); border-radius: var(--radius); pointer-events: none; }
.acc { display: grid; gap: 10px; }
.acc__item { border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.acc__item.is-open { border-color: rgba(79,154,58,.5); box-shadow: 0 20px 40px -28px rgba(15,36,24,.35); }
.acc__btn { position: relative; display: block; width: 100%; padding: 16px 76px 16px 22px; text-align: left; font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.35vw, 22px); line-height: 1.25; }
.acc__btn .acc__q { display: block; }
.acc__btn i { position: absolute; right: 22px; top: 50%; margin-top: -17px; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); transition: background .3s, transform .45s var(--ease); }
.acc__btn i::before, .acc__btn i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: background .3s; }
.acc__btn i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item.is-open .acc__btn i { background: var(--green-deep); transform: rotate(45deg); }
.acc__item.is-open .acc__btn i::before, .acc__item.is-open .acc__btn i::after { background: #fff; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc__panel > div { overflow: hidden; padding: 0 22px; }
.acc__panel > div > p { margin: 0 0 22px; color: var(--muted); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }

/* ---------------------------------------------------------------- cta */
.cta { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.cta__bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(8,20,13,.92) 0%, rgba(8,20,13,.75) 45%, rgba(8,20,13,.35) 100%); }
.cta__grid { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; }
.cta__copy { display: grid; gap: 20px; }
.cta__copy h2 em { font-style: normal; color: var(--green); }
.cta__copy .lede { color: rgba(255,255,255,.86); }
.cta__contact { display: flex; flex-wrap: wrap; gap: 12px 28px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.cta__contact a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.cta__contact svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2; }
.form { display: grid; gap: 14px; padding: clamp(22px, 2.6vw, 36px); border-radius: var(--radius); background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.form h3 { font-size: clamp(22px, 1.7vw, 28px); }
.form__row { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: var(--small); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 500; color: var(--ink); }
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 48px; background: #fff url("../img/chevron.svg") no-repeat right 18px center / 18px; }
.field__opt { font-weight: 400; color: var(--muted); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; scroll-margin-top: calc(var(--header-h) + 24px); }
.form__status { padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: var(--small); line-height: 1.45; }
.form__status[hidden] { display: none; }
.form__status--ok { background: #e4f5dc; color: #1f4d18; border: 1px solid rgba(79,154,58,.45); }
.form__status--err { background: #fbe9e7; color: #8a2f28; border: 1px solid rgba(184,84,79,.45); }
.form.is-sending button[type="submit"] { opacity: .7; }
.form small a { color: var(--green-dark); }
/* inline links in running text: a taller hit area without changing the line */
main p a:not(.btn):not(.link-arrow), .form small a { padding-block: 12px; }
.op.bg-green .lede, .op.bg-ink .lede { color: rgba(255,255,255,.86); }
.form[hidden] { display: none; }
.field input:focus, .field select:focus { outline: 2px solid var(--green-deep); outline-offset: 0; border-color: transparent; }
.form small { color: var(--muted); font-size: var(--small); }

/* ------------------------------------------------------------- footer */
.footer { position: relative; background: #2b4636; color: rgba(255,255,255,.82); padding: clamp(60px, 7vw, 100px) 0 28px; overflow: hidden; }
.footer__glow { position: absolute; left: -10%; top: -30%; width: 50%; height: 80%; background: radial-gradient(closest-side, rgba(122,188,99,.22), transparent); pointer-events: none; }
.footer__grid { position: relative; display: grid; gap: 40px; isolation: isolate; }
.footer__grid::before { content: ''; position: absolute; inset: -40px -10%; z-index: -1; pointer-events: none; background: radial-gradient(30% 60% at 20% 50%, rgba(122,188,99,.12), transparent 70%), radial-gradient(25% 50% at 80% 40%, rgba(200,96,91,.09), transparent 70%); animation: foot-drift 9s ease-in-out infinite alternate; }
@keyframes foot-drift { to { transform: translate3d(8%, -6%, 0) scale(1.08); } }
.footer__brand { display: grid; gap: 22px; justify-items: start; }
.footer__logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 14px; }
.footer__logo img { width: 180px; height: auto; }
.footer__col h2 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 0; }
.footer__col li { padding: 0; }
.footer__col a[aria-current="page"], .footer__legal a[aria-current="page"] { color: var(--green); }
.footer__office { display: grid; gap: 2px; padding: 8px 0; line-height: 1.45; }
.footer__live { display: inline-block; width: 9px; height: 9px; margin-left: 10px; border-radius: 50%; background: var(--green); vertical-align: middle; animation: live-dot 1.8s ease-in-out infinite; }
@keyframes live-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .55; } }
.footer__office strong { color: #fff; font-family: var(--display); font-weight: 700; }
.checks strong a { color: inherit; text-decoration-color: rgba(79,154,58,.6); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.checks strong a:hover { color: var(--green-dark); }
.acc__panel a { color: var(--green-dark); font-weight: 600; }
.footer__col a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal a, .footer__credit a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__col a { text-decoration: none; transition: color .25s; }
.footer__col a:hover { color: var(--green); }
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--small); }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { text-decoration: none; }
.footer__credit a { color: var(--green); font-weight: 700; text-decoration: none; }

/* accreditation logos: always on white */
.accred { display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(16px, 2vw, 26px); width: fit-content; max-width: 100%; margin: 0; padding: 12px 20px; list-style: none; background: #fff; border-radius: var(--radius-sm); box-shadow: 0 20px 40px -24px rgba(0,0,0,.55); }
.accred li { padding: 0; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.accred li:hover { transform: translateY(-3px); }
.accred img { display: block; width: auto; height: 62px; }
.accred--funding img { height: 74px; }

/* ------------------------------------------------- motion initial states
   Applied only when JS has run (html.has-js) and motion is allowed, so
   no-JS and reduced-motion visitors always see the finished page. */
html.has-js.motion [data-reveal], html.has-js.motion [data-stagger] > * { opacity: 0; }
html.has-js.motion .hero__inner > * { opacity: 0; }
html.has-js.motion .op [data-split] { opacity: 0; }
html.has-js.motion .window__tile { clip-path: inset(50% round var(--radius-sm)); }
html.has-js.motion .window__badge { opacity: 0; transform: scale(.6); }
html.has-js.motion .step { opacity: 0; }
html.has-js.motion .card { opacity: 0; }
html.has-js.motion .cutaway-reveal { clip-path: inset(0 100% 0 0); }
html.has-js.motion .hot { opacity: 0; }
html.has-js.motion .stat, html.has-js.motion .scheme, html.has-js.motion .acc__item { opacity: 0; }

/* ----------------------------------------------------------- responsive */
@media (min-width: 720px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
@media (min-width: 1000px) {
  .header__phone { display: inline-flex; }
  .services__grid { grid-template-columns: auto minmax(0, 1fr); }
  .services .window { width: min(72vh, 720px, 44vw); margin-inline: 0; }
  .house__stage { grid-template-columns: 1.25fr 1fr; }
  .funding__grid { grid-template-columns: 1.1fr .9fr; }
  .schemes { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: 1fr 1.1fr; }
  .process__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .reviews__grid { grid-template-columns: 1fr 1.15fr; }
  .faq__grid { grid-template-columns: auto minmax(0, 1fr); }
  .faq__figure { width: min(calc(var(--media-cap) * .8), 38vw); }
  .faq__figure .frame { width: 100%; }
  .cta__grid { grid-template-columns: 1.1fr .9fr; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .work__counter { display: block; }
}
@media (min-width: 1320px) {
  .nav { display: block; }
  .header__actions .btn { display: inline-flex; }
  .burger { display: none; }
  .menu { display: none !important; }
  .hero__inner { padding-top: calc(var(--header-h) + 24px); }
}
@media (max-width: 999px) {
  .faq__figure { position: relative; top: auto; }
  .house__progress { display: none; }
  .house__listwrap { padding-left: 0; }
  .window { max-width: 720px; margin-inline: auto; }
}
@media (max-width: 719px) {
  :root { --header-h: 72px; }
  .brand img { width: 140px; }
  .window { gap: 8px; }
  .window__label { padding: 12px 12px; }
  .window__label small { display: none; }
  .window__go { display: none; }
  .window__badge { width: 38%; height: 38%; box-shadow: 0 16px 30px -12px rgba(15,36,24,.45), 0 0 0 6px rgba(244,247,241,.85); }
  .hot { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 12px; }
  .stats { gap: 10px; }
  .stat { padding: 16px 16px 14px; }
  .why__figure .frame2 { right: 0; bottom: -6%; width: 44%; }
  .why__figure .frame::before { background: linear-gradient(to bottom, rgba(15,36,24,.6), transparent 45%); }
  .why__figure .caption { bottom: auto; top: 18px; left: 18px; right: 18px; }
  .why__figure .mark { display: none; }
  .quotes { min-height: 0; }
  .card { flex-basis: 84vw; }
  .footer__grid { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer__grid::before { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.has-js.motion [data-reveal], html.has-js.motion [data-stagger] > *, html.has-js.motion .op [data-split], html.has-js.motion .hero__inner > *, html.has-js.motion .step, html.has-js.motion .card, html.has-js.motion .stat, html.has-js.motion .scheme, html.has-js.motion .acc__item { opacity: 1; }
  html.has-js.motion .window__tile, html.has-js.motion .cutaway-reveal { clip-path: none; }
  html.has-js.motion .hot { opacity: .55; }
  html.has-js.motion .hot.is-active { opacity: 1; }
  html.has-js.motion .window__badge { opacity: 1; transform: none; }
}

/* =====================================================================
   Inner pages (2026-10-19): shared components built from the homepage system.
   Page-only styles live in assets/css/pages/<page>.css.
   ===================================================================== */

/* Header over a light opener: dark text from the first frame */
.header.on-light { --fg: var(--ink); }
.header.on-light::before { background: linear-gradient(to bottom, rgba(244,247,241,.92), rgba(244,247,241,0)); }
.header.on-light .burger { background: rgba(15,36,24,.08); }
.header.on-light .brand { background: transparent; padding-inline: 0; }

/* Backgrounds: never flat. Each band gets a texture drawn from the trade (solar cell grid, contour lines) or a photo. */
.bg-white { background-color: #fff; }
.bg-paper { background-color: var(--paper); }
.bg-paper2 { background-color: var(--paper-2); }
.bg-warm { background-color: #f3e7dc; }
.bg-ink { background-color: var(--ink); color: #fff; }
.bg-green { background-color: var(--green-dark); color: #fff; }
.bg-ink .lede, .bg-green .lede { color: rgba(255,255,255,.82); }
.bg-ink h2 em, .bg-ink h1 em { font-style: normal; color: var(--green); }
.bg-green h2 em, .bg-green h1 em { font-style: normal; color: #c9ecb9; }
.tex-cells, .tex-contour, .tex-photo { position: relative; isolation: isolate; overflow: clip; }
.tex-cells::before {
  content: ''; position: absolute; inset: -80px; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 .5H80M.5 0V80' stroke='%230f2418' stroke-opacity='.075'/%3E%3Cpath d='M20 0V80M60 0V80' stroke='%230f2418' stroke-opacity='.035'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(110% 85% at 85% 10%, #000 0%, rgba(0,0,0,.4) 45%, transparent 78%);
  mask-image: radial-gradient(110% 85% at 85% 10%, #000 0%, rgba(0,0,0,.4) 45%, transparent 78%);
  animation: cells-drift 26s linear infinite;
}
.tex-cells.bg-ink::before, .tex-cells.bg-green::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 .5H80M.5 0V80' stroke='%23ffffff' stroke-opacity='.09'/%3E%3Cpath d='M20 0V80M60 0V80' stroke='%23ffffff' stroke-opacity='.04'/%3E%3C/svg%3E");
}
@keyframes cells-drift { to { transform: translate3d(80px, 80px, 0); } }
.tex-contour::after {
  content: ''; position: absolute; inset: -6% -10%; z-index: -1; pointer-events: none;
  background: url("../img/contours.svg") center / cover no-repeat; opacity: .32;
  animation: contour-drift 16s ease-in-out infinite alternate;
}
.tex-contour.bg-ink::after, .tex-contour.bg-green::after { opacity: .2; filter: brightness(1.6); }
@keyframes contour-drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(3%, -2%, 0); } }
.tex-photo > .tex-photo__img { position: absolute; left: 0; right: 0; top: -10%; height: 120%; z-index: -2; }
.tex-photo > .tex-photo__img img { width: 100%; height: 100%; object-fit: cover; }
.tex-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tex-photo.bg-paper::before { background: linear-gradient(100deg, var(--paper) 30%, rgba(244,247,241,.86) 70%, rgba(244,247,241,.7)); }
.tex-photo.bg-white::before { background: linear-gradient(100deg, #fff 32%, rgba(255,255,255,.88) 70%, rgba(255,255,255,.72)); }
.tex-photo.bg-ink::before { background: linear-gradient(105deg, rgba(8,20,13,.94) 0%, rgba(8,20,13,.82) 50%, rgba(8,20,13,.6) 100%); }

/* Opener: shared base. Each page type adds its own form. */
.op { position: relative; padding-top: calc(var(--header-h) + clamp(20px, 3vw, 44px)); padding-bottom: clamp(36px, 4.5vw, 64px); }
.op h1 { font-size: clamp(38px, 4.4vw, 72px); font-stretch: 92%; }
.op h1 em { font-style: normal; color: var(--green-dark); display: block; }
.op.bg-ink h1 em { color: var(--green); }
.op.bg-green h1 em { color: #c9ecb9; }
.op .lede { color: var(--muted); }
.op__ctas { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }

/* Service opener: split screen, copy on the left, the job on the right bleeding to the screen edge */
.op--split { min-height: min(82svh, 880px); display: flex; }
.op--split > .wrap { display: flex; }
.op--split .op__grid { flex: 1; display: grid; gap: clamp(28px, 4vw, 72px); align-items: stretch; }
.op--split .op__copy { display: grid; align-content: center; gap: clamp(16px, 1.6vw, 22px); }
.op--split .op__media { position: relative; min-height: clamp(320px, 56vw, 520px); --bleed: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); margin-right: calc(var(--bleed) * -1); }
.op__frame { position: absolute; inset: 0; border-radius: var(--radius) 0 0 var(--radius); overflow: hidden; background: var(--ink-2); isolation: isolate; }
.op__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.op__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,20,13,.45), rgba(8,20,13,0) 45%); pointer-events: none; }
.op__tag { position: absolute; z-index: 3; left: clamp(-36px, -2vw, -16px); bottom: clamp(20px, 4vw, 48px); display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 24px 48px -24px rgba(15,36,24,.5); max-width: min(360px, 80%); }
.op__tag-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--green-deep); }
.op__tag-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.op__tag strong { display: block; font-family: var(--display); font-weight: 750; font-size: 18px; line-height: 1.15; }
.op__tag strong + span { display: block; font-size: var(--small); color: var(--muted); line-height: 1.3; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-top: 6px; border-top: 1px solid var(--line); }
.facts li { padding: 16px 18px 4px 0; display: grid; gap: 4px; align-content: start; }
.facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.facts b { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.3vw, 38px); line-height: 1; letter-spacing: -.02em; color: var(--green-deep); }
.facts span { font-size: var(--small); color: var(--muted); line-height: 1.35; }

/* Framed media used inside content sections */
.figure { position: relative; --media-cap: min(64vh, 620px); }
.figure .frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.figure .frame img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall .frame { width: min(100%, calc(var(--media-cap) * .8)); aspect-ratio: 4 / 5; margin-inline: auto; }
.figure--wide .frame { width: min(100%, calc(var(--media-cap) * 1.5)); aspect-ratio: 3 / 2; margin-inline: auto; }
.figure__set { position: relative; max-width: 100%; margin-inline: auto; }
/* the frame's box is sized from the screen height before its (lazy) photo arrives, so nothing below jumps when it loads */
.figure--tall .figure__set { width: min(100%, calc(var(--media-cap) * .8)); }
.figure--wide .figure__set { width: min(100%, calc(var(--media-cap) * 1.5)); }
.figure__set > .frame { margin-inline: 0; width: 100%; }
/* beside copy, the photo sits against the copy's side of its column */
/* desktop: the photo's column is exactly as wide as the photo and sits flush with the wrap's edge; the copy takes
   the rest of the row, so there is no empty strip beside the photo or beside the words */
@media (min-width: 1000px) {
  .split:has(> .figure) { grid-template-columns: minmax(0, 1fr) auto; }
  .split > .figure--tall { width: min(calc(var(--media-cap) * .8), 42vw); }
  .split > .figure--wide { width: min(calc(var(--media-cap) * 1.5), 48vw); }
  .split > .figure .figure__set { width: 100%; margin: 0; }
}
.figure .outline { position: absolute; inset: 14px -14px -14px 14px; border: 1.5px solid var(--green); border-radius: var(--radius); opacity: .75; pointer-events: none; z-index: -1; }
.figure .figcap { position: absolute; left: 18px; bottom: 18px; right: 18px; z-index: 2; color: #fff; font-family: var(--display); font-weight: 700; font-size: 17px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.figure .frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,36,24,.5), transparent 45%); pointer-events: none; }

/* Two-column content split (copy beside media) */
.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split__copy { display: grid; gap: 18px; align-content: center; }
.split__copy h2 em, .section__head h2 em { font-style: normal; color: var(--green-deep); }

/* Cards linking to the other services ("works with") */
.with { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.with__card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.with__card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(15,36,24,.45); border-color: rgba(79,154,58,.5); }
.with__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.with__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.with__card:hover .with__img img { transform: scale(1.07); }
.with__body { display: grid; gap: 6px; padding: 18px 20px 20px; align-content: start; }
.with__body strong { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--display); font-weight: 750; font-size: clamp(19px, 1.4vw, 23px); line-height: 1.15; }
.with__body strong svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: var(--green-deep); stroke-width: 2.2; transition: transform .35s var(--ease); }
.with__card:hover .with__body strong svg { transform: translateX(4px); }
.with__body span { font-size: var(--small); color: var(--muted); line-height: 1.45; }

/* Short numbered steps (a real sequence) */
.steps-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: st; }
.steps-row li { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px 22px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); counter-increment: st; }
.steps-row li::before { content: counter(st); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--green-deep); color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; }
.steps-row h3 { font-size: clamp(19px, 1.35vw, 22px); }
.steps-row p { color: var(--muted); font-size: var(--small); line-height: 1.5; }
.bg-ink .steps-row li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.bg-ink .steps-row p { color: rgba(255,255,255,.78); }

/* Funding note band (rich brand colour) */
.fund { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.fund__figure { display: grid; gap: 10px; }
.fund__figure b { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 7vw, 112px); line-height: .9; letter-spacing: -.04em; color: #fff; }
.fund__figure span { font-family: var(--display); font-weight: 650; font-size: clamp(18px, 1.4vw, 22px); color: #c9ecb9; }
.fund__copy { display: grid; gap: 16px; }
.btn--light { --bg: #fff; --fg: var(--green-dark); }

/* CTA band: onward links under the form */
.cta__more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); }
.cta__more > span { font-family: var(--display); font-weight: 700; color: rgba(255,255,255,.8); margin-right: 6px; }
.cta__more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; text-decoration: none; font-family: var(--display); font-weight: 650; font-size: 16px; transition: background .3s, border-color .3s; }
.cta__more a:hover { background: rgba(122,188,99,.28); border-color: var(--green); }
.cta__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* Long-form text (legal pages) */
.legal { display: grid; gap: clamp(28px, 4vw, 72px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.legal__toc strong { font-family: var(--display); font-size: 18px; margin-bottom: 6px; }
.legal__toc a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: var(--small); border-left: 2px solid var(--line); padding-left: 14px; transition: color .25s, border-color .25s; }
.legal__toc a:hover, .legal__toc a.is-on { color: var(--green-dark); border-color: var(--green-deep); }
.prose { display: grid; gap: 14px; max-width: 120ch; }
.prose h2 { font-size: clamp(24px, 2vw, 32px); margin-top: 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #2b3a31; }
.prose ul { display: grid; gap: 8px; padding-left: 0; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--green-deep); }
.prose a { color: var(--green-dark); font-weight: 600; }

@media (min-width: 1000px) {
  .op--split .op__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--media-left > :first-child { order: -1; }
  .fund { grid-template-columns: .9fr 1.1fr; }
  .legal { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 999px) {
  .op--split { min-height: 0; }
  .op__tag { left: 14px; bottom: 14px; }
  .legal__toc { position: relative; top: auto; }
}
@media (max-width: 719px) {
  .op--split .op__media { min-height: 74vw; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .facts li { padding-right: 10px; }
  .facts li + li { padding-left: 10px; }
  .facts b { font-size: 24px; }
  .facts span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tex-cells::before, .tex-contour::after { animation: none; }
}
