/* Euro Hydro Power. Colours are tokens here; the logo's sky blue is --accent. */
:root {
  --paper: #f5f8f9;
  --paper-2: #eaf1f3;
  --card: #ffffff;
  --ink: #0d2430;
  --ink-2: #4b616b;
  --line: #d8e3e7;
  --accent: #2fb2e6;        /* the "HYDRO" blue of the logo */
  --accent-ink: #0b7fb3;    /* accent dark enough for text on white */
  --deep: #0b3a4f;          /* river-deep panels and buttons */
  --deep-2: #072a3a;
  --forest: #2e6b4c;
  --on-deep: #e8f4f8;
  --on-deep-2: #a9c6d2;

  --sky-1: #e6f4fa; --sky-2: #f5fbfd;
  --hill-1: #6f9c7e; --hill-2: #3f6b52;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Archivo', 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 14px;
  --nav-h: 76px;
  --shadow: 0 1px 2px rgba(13, 36, 48, .06), 0 10px 30px -12px rgba(13, 36, 48, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 112%; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 750; max-width: 20ch; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head > p:last-child { color: var(--ink-2); font-size: 18px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section__head--row > p { max-width: 380px; margin: 0; }

.eyebrow { font: 500 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 18px; }
.eyebrow--light { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--deep); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { background: var(--accent); color: var(--deep-2); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.link-arrow { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.link-arrow::after { content: ' →'; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Header: always light, so the original logo artwork sits on white */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(13, 36, 48, .5); }
.nav__inner { height: var(--nav-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; width: min(1240px, 100% - 40px); margin-inline: auto; }
/* Logo: the globe symbol (img/logo-mark.png, from the owner's 2000px file) beside the lettering (img/logo-text.png).
   --logo-h is the symbol's height; everything else scales from it. */
.brand { --logo-h: 56px; display: inline-flex; align-items: center; gap: calc(var(--logo-h) * .2); text-decoration: none; }
.brand__mark { display: block; flex: none; height: var(--logo-h); width: auto; }
.brand__text { display: block; flex: none; height: calc(var(--logo-h) * .7); width: auto; }
/* Live Gotham Black lettering, used instead of the image once fonts/Gotham-Black.* is present (js/main.js adds
   .has-gotham when the font loads). Sized so its cap height and line spacing match img/logo-text.png. */
@font-face { font-family: 'Gotham Black'; font-weight: 900; font-display: swap;
  src: url(../fonts/Gotham-Black.woff2) format('woff2'), url(../fonts/Gotham-Black.woff) format('woff'),
       url(../fonts/Gotham-Black.otf) format('opentype'), url(../fonts/Gotham-Black.ttf) format('truetype'); }
.brand__live { display: none; font: 900 calc(var(--logo-h) * .3)/1.05 'Gotham Black', sans-serif; color: #000; white-space: nowrap; text-align: center; }
.brand__live > span:last-child { font-size: .82em; margin-top: .18em; }   /* second line smaller, centred, as in img/logo-text.png */
.brand__live > span { display: block; }
.brand__live b { font-weight: inherit; color: #33ccff; }
.has-gotham .brand__text { display: none; }
.has-gotham .brand__live { display: block; }
.nav__links { display: flex; justify-content: center; gap: 4px; }
.nav__links a { padding: 8px 14px; white-space: nowrap; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: var(--paper-2); }
.nav__cta { min-height: 42px; padding: 0 20px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .25s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { display: flex; flex-direction: column; padding: 8px 20px 24px; border-top: 1px solid var(--line); background: #fff; }
.nav__mobile[hidden] { display: none; }
.nav__mobile a { padding: 14px 4px; font: 600 20px/1.2 var(--display); font-stretch: 112%; text-decoration: none; border-bottom: 1px solid var(--line); }
/* "Carbon credits" button: a tiny window onto the CarbonAtmos panel (same dark space and drifting contours, drawn by
   js/carbon-bg.js on its canvas); it scrolls to #carbon-credits */
.nav a.ca-pill { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; margin-left: 6px;
  border: 1px solid rgba(46, 156, 184, .6); border-radius: 999px; color: #eef2f4;
  background: radial-gradient(120% 160% at 80% 30%, #0f2029 0%, #090c10 60%, #050507 100%); transition: border-color .2s, box-shadow .2s; }
.nav a.ca-pill canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.nav a.ca-pill span { position: relative; text-shadow: 0 0 6px #050507, 0 0 2px #050507; }
.nav a.ca-pill:hover, .nav a.ca-pill.is-active { color: #fff; background: radial-gradient(120% 160% at 80% 30%, #0f2029 0%, #090c10 60%, #050507 100%);
  border-color: #8fd0e2; box-shadow: 0 0 0 3px rgba(46, 156, 184, .18); }
.nav__mobile a.ca-pill { margin: 12px 0 4px; padding: 14px 18px; border-radius: 12px; font-size: 18px; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 900px); padding-top: var(--nav-h); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 80% at 78% 38%, #12506b 0%, var(--deep) 45%, var(--deep-2) 100%); }
/* turbine and water animation, drawn by js/hero-anim.js */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__inner { padding: 64px 0 48px; }
.hero__title { font-size: clamp(46px, 7.4vw, 92px); font-weight: 800; line-height: .98; letter-spacing: -.025em; margin-bottom: 28px; }
.hero__title span { color: var(--accent); }
.hero__lead { max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .9); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__stats { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .25); }
.hero__stats li { padding: 22px 20px 0 0; }
.hero__stats b { display: block; font: 750 clamp(30px, 3.6vw, 44px)/1 var(--display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.hero__stats li > span { font-size: 14px; color: rgba(255, 255, 255, .75); }

/* About */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__grid p { color: var(--ink-2); }
.about__photo { margin: 0; position: relative; }
.about__photo img { border-radius: var(--radius); aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about__photo figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(255, 255, 255, .92); padding: 7px 12px; border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: .06em; }
.vm { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; margin-top: clamp(48px, 7vw, 88px); }
.vm__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.vm__card--deep { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.vm__text { font: 600 clamp(20px, 2.2vw, 26px)/1.35 var(--display); font-stretch: 105%; margin: 0; }

/* How it works */
.how { background: var(--card); border-block: 1px solid var(--line); }
.flow { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
/* the diagram is a blueprint, in the same ink and water colours as the hero drawing (js/hero-anim.js) */
.flow__art { --bp-ink: rgba(236, 229, 206, .88); --bp-faint: rgba(236, 229, 206, .4); --bp-water: #78d2f0;
  width: 100%; height: auto; border-radius: var(--radius); background: var(--deep-2); display: block; }
.bp-grid-s { stroke: rgba(236, 229, 206, .045); stroke-width: 1; }
.bp-grid-l { stroke: rgba(236, 229, 206, .09); stroke-width: 1; }
.bp-hatch { stroke: rgba(236, 229, 206, .14); stroke-width: 1; }
.bp-ink { fill: none; stroke: var(--bp-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.bp-ink[fill^="url"] { fill: url(#bp-hatch); }
.bp-thin { fill: none; stroke: var(--bp-ink); stroke-width: 1.4; stroke-linecap: round; transition: stroke .3s; }
.bp-faint { fill: none; stroke: var(--bp-faint); stroke-width: 1.6; }
.bp-dash { stroke-dasharray: 6 5; }
.bp-pipe { fill: none; stroke: var(--bp-ink); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.bp-pipe-bore { fill: none; stroke: #0b3446; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.bp-river { fill: none; stroke: var(--bp-water); stroke-width: 2.6; stroke-linecap: round; opacity: .85; }
.bp-river-edge { fill: none; stroke: var(--bp-water); stroke-width: 1.4; opacity: .45; stroke-dasharray: 22 10 4 10; }
.bp-river-flow { fill: none; stroke: var(--bp-water); stroke-width: 1.8; stroke-dasharray: 18 26; opacity: .7; transform: translateY(6px); animation: flow-river 2.6s linear infinite; }
@keyframes flow-river { to { stroke-dashoffset: -44; } }
.bp-flow-arrow { fill: none; stroke: var(--bp-water); stroke-width: 2; }
.bp-arrowhead { fill: none; stroke: var(--bp-water); stroke-width: 1.4; stroke-linejoin: round; }
.bp-text .bp-arrowhead, .bp-text [marker-end] { stroke: var(--bp-ink); }
.bp-leader { fill: none; stroke: var(--bp-faint); stroke-width: 1.4; }
.bp-title { font: 500 18px var(--mono); letter-spacing: .12em; fill: var(--bp-ink); }
.bp-small { font: 500 13px var(--mono); letter-spacing: .14em; fill: var(--bp-faint); }
.flow__water { fill: none; stroke: var(--bp-water); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 14; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.flow__turbine { fill: #0b3446; stroke: var(--bp-water); stroke-width: 1.4; }
.flow__turbine > * { animation: spin 1.6s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
/* the part for the current step lights up in water blue */
.flow__part.is-active .bp-ink, .flow__part.is-active .bp-thin, .flow__part.is-active .bp-pipe { stroke: var(--bp-water); }
.flow__stop { cursor: pointer; }
.flow__stop circle { fill: #0b3446; stroke: var(--bp-ink); stroke-width: 2; transition: fill .25s, stroke .25s; }
.flow__stop text { font: 500 19px var(--mono); text-anchor: middle; fill: var(--bp-ink); pointer-events: none; transition: fill .25s; }
.flow__stop:hover circle { stroke: var(--bp-water); }
.flow__stop.is-active circle { fill: var(--bp-water); stroke: var(--bp-water); }
.flow__stop.is-active text { fill: var(--deep-2); }

.flow__steps { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.flow__steps li { position: relative; padding: 0 0 0 20px; }
.flow__steps li::before { content: ''; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .35s; }
.flow__steps button { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 11px 0; border: 0; background: none; text-align: left; cursor: pointer; font: 650 18px/1.2 var(--display); font-stretch: 108%; color: var(--ink-2); transition: color .2s; }
.flow__steps button span { font: 500 12px var(--mono); color: var(--accent-ink); }
.flow__steps p { margin: 0; max-height: 0; overflow: hidden; color: var(--ink-2); font-size: 15.5px; transition: max-height .4s, padding .35s; }
.flow__steps li.is-active::before { transform: scaleY(1); }
.flow__steps li.is-active button { color: var(--ink); }
.flow__steps li.is-active p { max-height: 8em; padding-bottom: 12px; }
.no-js .flow__steps p { max-height: none; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.benefit { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.benefit svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--deep); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.benefit p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.how__video { margin: 32px 0 0; }

/* Projects */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover .project__img img { transform: scale(1.05); }
.badge { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); font: 500 11.5px/1 var(--mono); letter-spacing: .04em; color: var(--ink); }
.badge--live { background: var(--deep); color: #fff; }
.badge--live::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #5fe0a0; box-shadow: 0 0 0 3px rgba(95, 224, 160, .25); vertical-align: 0; }
.project__body { padding: 22px 22px 24px; }
.project__mw { font: 800 40px/1 var(--display); font-stretch: 112%; color: var(--accent-ink); margin-bottom: 10px; }
.project__mw small { font-size: 18px; font-weight: 650; }
.project h3 { margin-bottom: 2px; }
.project__loc { font-size: 14.5px; color: var(--ink-2); margin-bottom: 16px; }
.project dl { margin: 0; border-top: 1px solid var(--line); }
.project__img--empty { display: grid; place-items: center; background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M24 0H0V24' fill='none' stroke='%23ece5ce' stroke-opacity='.08'/%3E%3C/svg%3E"); }
.project__soon { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(236, 229, 206, .7); }
.project__photos { display: inline-block; margin-top: 14px; font-size: 14.5px; }
.project dl div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.project dt { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 5px; }
.project dd { margin: 0; font-size: 14.5px; font-weight: 500; }

.pipeline { margin-top: 28px; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius); background: radial-gradient(120% 140% at 100% 0%, #0f5574 0%, var(--deep) 45%, var(--deep-2) 100%); color: var(--on-deep); display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.pipeline h3 { font-size: clamp(24px, 2.6vw, 32px); }
.pipeline__intro p { color: var(--on-deep-2); margin: 0; }
.pipeline__nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .14); border-radius: 12px; overflow: hidden; }
.pipeline__nums li { background: var(--deep); padding: 22px; }
.pipeline__nums b { display: block; font: 800 clamp(30px, 3.2vw, 40px)/1 var(--display); font-stretch: 112%; color: var(--accent); margin-bottom: 8px; }
.pipeline__nums span { font-size: 14px; color: var(--on-deep-2); }

/* Gallery */
.gallery { background: var(--paper-2); }
.gallery__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 24px; }
.gallery__tabs[hidden] { display: none; }
.gallery__tabs button { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); font: 600 14px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.gallery__tabs button small { font: 500 11px var(--mono); color: var(--accent-ink); margin-left: 4px; }
.gallery__tabs button:hover { border-color: var(--accent); color: var(--ink); }
.gallery__tabs button[aria-selected="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.gallery__tabs button[aria-selected="true"] small { color: var(--accent); }
/* any number of photos: some tiles are wide or tall, and dense packing fills the gaps they leave */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; }
.tile { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--line); }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.05); }
.tile span { position: absolute; left: 12px; bottom: 12px; padding: 6px 11px; border-radius: 999px; background: rgba(7, 42, 58, .78); color: #fff; font: 500 12px/1 var(--mono); letter-spacing: .05em; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4, 20, 28, .92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82vh; border-radius: 10px; }
.lightbox__cap { color: #fff; font: 500 13px var(--mono); letter-spacing: .06em; margin: 14px 0 0; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255, 255, 255, .22); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox.is-single .lightbox__nav { display: none; }
.lightbox__close { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

/* Community */
.csr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.csr__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.csr__item img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.csr__item > div { padding: 22px; }
.csr__item .eyebrow { margin-bottom: 10px; }
.csr__item p:last-child { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.values { margin-top: 56px; display: grid; grid-template-columns: 1fr 3fr; gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.values h3 { font-size: clamp(24px, 2.6vw, 30px); }
.values ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 32px; }
.values li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; position: relative; }
.values li::before { content: ''; position: absolute; left: 0; top: 21px; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); }
.values b { display: block; color: var(--ink); font-weight: 600; }
.ceo { margin: 56px 0 0; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius); background: var(--deep); color: var(--on-deep); }
.ceo__quote { font: 600 clamp(22px, 2.8vw, 34px)/1.3 var(--display); font-stretch: 105%; max-width: 32ch; }
.ceo__more summary { cursor: pointer; color: var(--accent); font-weight: 600; width: fit-content; }
.ceo__more p { color: var(--on-deep-2); max-width: 70ch; }
.ceo__more[open] summary { margin-bottom: 18px; }
/* Carbon credits partner panel: CarbonAtmos's look (their site is dark space with stars and drifting contour lines,
   teal "Atmos" accent, Fraunces / JetBrains Mono), so it reads as their corner of the page. The contours and stars are
   drawn by js/carbon-bg.js (ported from the CarbonAtmos site). Logo used unchanged. */
.cpartner { --ca-teal: #2e9cb8; --ca-label: #8fd0e2; --ca-ink: #eef2f4; position: relative; overflow: hidden; isolation: isolate;
  margin-top: 20px; border-radius: var(--radius); color: var(--ca-ink);
  background: radial-gradient(90% 120% at 82% 40%, #0f2029 0%, #090c10 55%, #050507 100%); }
.cpartner.reveal { transform: none; }   /* fade only: the menu button scrolls to it, and a slide would shift where it lands */
.cpartner__sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cpartner__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); }
.cpartner__eyebrow { font: 500 12px/1 'JetBrains Mono', var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ca-label); margin: 0 0 16px; }
.cpartner h3 { font: 600 clamp(24px, 2.8vw, 34px)/1.15 'Fraunces', Georgia, serif; font-stretch: normal; letter-spacing: -.01em; margin: 0 0 14px; max-width: 22ch; }
.cpartner p { color: rgba(238, 242, 244, .72); margin: 0 0 14px; max-width: 56ch; }
.cpartner__note { padding: 12px 16px; border-left: 2px solid var(--ca-teal); background: rgba(16, 19, 24, .6); color: var(--ca-ink) !important; }
.cpartner__note strong { color: var(--ca-label); font-weight: 600; }
.cpartner__btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 46px; padding: 0 20px; border-radius: 4px;
  background: var(--ca-teal); color: #04121a; font: 600 15px var(--sans); text-decoration: none; transition: background .2s, transform .2s; }
.cpartner__btn:hover { background: #8fd0e2; transform: translateY(-1px); }
.cpartner__logo { display: grid; justify-items: center; gap: 12px; text-decoration: none; transition: transform .3s; }
.cpartner__logo:hover { transform: translateY(-2px); }
.cpartner__logo img { width: min(100%, 300px); height: auto; }
.cpartner__logo span { font: 500 11px 'JetBrains Mono', var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ca-label); }

/* News */
.news { background: var(--card); border-top: 1px solid var(--line); }
.news__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.post--lead + .post { grid-row: span 2; }
.post--lead { grid-column: span 3; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 0; overflow: hidden; background: var(--card); }
.post--lead img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.post--lead > div { padding: 32px 32px 32px 0; }
.post--lead h3 { font-size: clamp(22px, 2.4vw, 30px); }
.post time { display: block; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.post p { color: var(--ink-2); font-size: 15.5px; }
.post__src { font: 500 12px var(--mono) !important; letter-spacing: .06em; margin: 0; }

/* Contact */
.contact { background: var(--deep-2); color: var(--on-deep); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__info > p { color: var(--on-deep-2); }
.contact__list { margin: 32px 0 0; }
.contact__list div { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.contact__list dt { font: 500 11.5px/1.8 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-2); }
.contact__list dd { margin: 0; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--accent); }
.contact .link-arrow { color: var(--accent); font-size: 15px; }
.form { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.form input, .form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); transition: border-color .2s, background .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.form .is-invalid { border-color: #d0573a; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: 15px; min-height: 1.5em; color: var(--forest); }

/* Footer */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__brand { --logo-h: 62px; margin-bottom: 16px; }
.footer__grid p { color: var(--ink-2); max-width: 38ch; }
.footer h4 { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.footer nav a { display: block; padding: 5px 0; text-decoration: none; }
.footer nav a:hover { color: var(--accent-ink); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.footer__base p { margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
/* below 1180px the hero drawing sits between the buttons and the stats; keep in step with layout() in js/hero-anim.js */
@media (max-width: 1179px) {
  .hero__inner { padding-bottom: calc(min(27vw, 220px) * 2.7 + 36px); }
  /* the menu (logo, six links incl. Carbon credits, Contact us) only fits on one row from 1180px; below that, the menu button */
  .nav__links, .nav__cta { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__toggle { display: block; }
}
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow__steps { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@media (max-width: 900px) {
  .about__grid, .vm, .pipeline, .values, .cpartner__inner, .contact__grid { grid-template-columns: 1fr; }
  .benefits, .csr { grid-template-columns: 1fr; }
  .news__list { grid-template-columns: 1fr 1fr; }
  .post--lead { grid-column: span 2; grid-template-columns: 1fr; gap: 0; }
  .post--lead > div { padding: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .tile--tall { grid-row: span 1; }
}
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .nav__inner { width: calc(100% - 32px); }
  .nav__brand { --logo-h: 42px; }
  .footer__brand { --logo-h: 48px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stats li { padding: 18px 12px 18px 0; }
  .cards, .news__list { grid-template-columns: 1fr; }
  .post--lead { grid-column: auto; }
  .flow__steps { grid-template-columns: 1fr; }
  .values ul { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact__list div { grid-template-columns: 1fr; gap: 4px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div { grid-column: span 2; }
  .grid { grid-auto-rows: 140px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
