/* AEIP site styles
   Layout: left-aligned editorial column on a cool paper ground; one deep-slate hero band
   carrying an EUI pathway drawn like a Front Range ridgeline. Everything else stays quiet. */

:root {
  --paper: #F6F8F7;
  --ink: #1C2A31;
  --muted: #55666F;
  --line: #D3DCE0;
  --slate: #3E6274;
  --leaf: #8DC63F;
  --leaf-ink: #4A7816;
  --sun: #F37021;
  --gold: #E3A92C;
  --gold-ink: #9A6A06;
  --band-bg: #1F3644;
  --band-fg: #EEF3F2;
  --band-muted: #A9BCC4;
  --band-line: #3B5666;
  --btn-bg: #3E6274;
  --btn-fg: #FFFFFF;
  --field: #FFFFFF;
  --map-empty: #E3E9EB;
  --map-line: #FFFFFF;
  --map-badge: #1F3644;
  --map-badge-fg: #FFFFFF;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.2vw, 3.25rem);
  --measure: 64ch;
  --wrap: 72rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121D24;
    --ink: #E4ECEE;
    --muted: #9AABB3;
    --line: #2A3A44;
    --slate: #8DB3C6;
    --leaf-ink: #A3D660;
    --gold-ink: #EBBE57;
    --band-bg: #0C171E;
    --band-line: #26404E;
    --btn-bg: #8DB3C6;
    --btn-fg: #0C171E;
    --field: #182730;
    --map-empty: #22323C;
    --map-line: #121D24;
    --map-badge: #E4ECEE;
    --map-badge-fg: #121D24;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121D24;
  --ink: #E4ECEE;
  --muted: #9AABB3;
  --line: #2A3A44;
  --slate: #8DB3C6;
  --leaf-ink: #A3D660;
  --band-bg: #0C171E;
  --band-line: #26404E;
  --btn-bg: #8DB3C6;
  --btn-fg: #0C171E;
  --field: #182730;
  --map-empty: #22323C;
  --map-line: #121D24;
  --map-badge: #E4ECEE;
  --map-badge-fg: #121D24;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img, svg { max-width: 100%; }
a { color: var(--slate); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

/* Type */
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1 { font-size: var(--step-3); font-weight: 750; font-variation-settings: "wdth" 118; letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); font-weight: 700; font-variation-settings: "wdth" 112; }
h3 { font-size: var(--step-1); font-weight: 650; font-variation-settings: "wdth" 104; }
p { margin: 0; max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { flex: none; display: block; }
.brand-mark img { display: block; width: 62px; height: auto; }
.brand-name { display: grid; line-height: 1.15; }
.brand-name b { font-size: 1.15rem; font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: 0.02em; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding-block: 6px; }
.nav a[aria-current="page"] { color: var(--slate); box-shadow: inset 0 -2px 0 var(--leaf); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 650;
  font-variation-settings: "wdth" 108;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  line-height: 1.2;
}
.btn:hover { color: var(--btn-fg); filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--slate); }
.nav .btn { padding: 9px 16px; color: var(--btn-fg); }
.band .btn { background: var(--leaf); border-color: var(--leaf); color: #142008; }
.band .btn-ghost { background: transparent; color: var(--band-fg); border-color: var(--band-line); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero band */
.band { background: var(--band-bg); color: var(--band-fg); }
.band .lede { color: var(--band-muted); }
/* Intro: the logo animation is the first thing on the home page */
.intro { background: #fff; display: flex; justify-content: center; padding: 4px 12px 0; border-bottom: 1px solid var(--line); }
/* stage = video frame plus room above and below for the full logo (frame units: 1280 x 905, video at top 95) */
.intro-stage { position: relative; width: min(100%, 1180px, calc(76vh * 1280 / 905)); aspect-ratio: 1280 / 905; }
.intro-video { position: absolute; left: 0; top: 10.497%; width: 100%; height: 79.558%; display: block; background: #fff; object-fit: cover; }
.intro-final { position: absolute; left: 1.016%; top: 1.105%; width: 98.236%; height: auto; opacity: 0; transition: opacity 0.7s ease; pointer-events: none; }
.intro-stage.is-done .intro-final { opacity: 1; }
.hero .wrap { display: grid; gap: 24px; padding-block: 48px 56px; }
.hero-center { justify-items: center; text-align: center; }
.hero-center h1 { max-width: 24ch; }
.hero-center .lede { max-width: 62ch; margin-inline: auto; }
.hero-center .tagline, .hero-center .actions { justify-content: center; }
.tagline { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: var(--step-1); max-width: none; }
.tagline b { font-weight: 750; font-variation-settings: "wdth" 112; color: var(--gold); letter-spacing: 0.01em; }
.tagline span { color: var(--leaf); font-weight: 600; }
.eyebrow { font-weight: 700; font-variation-settings: "wdth" 112; color: var(--gold-ink); letter-spacing: 0.02em; }
.hero-media { margin-top: 8px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 18px 50px rgb(0 0 0 / 0.35); }
.brand-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #fff; }
.bps-chart { margin: 12px 0 0; padding: 20px 20px 14px; border-radius: 8px; background: var(--band-bg); display: grid; gap: 4px; }
.bps-chart figcaption { font-size: var(--step--1); color: var(--band-muted); }
.video-frame { margin: 0; display: grid; gap: 6px; align-self: center; }
.video-frame .brand-video { border-radius: 8px; border: 1px solid var(--line); }
.video-frame figcaption { font-size: var(--step--1); color: var(--muted); }
.hero h1 { max-width: 18ch; }
.hero-chart { display: block; width: 100%; height: auto; margin-top: 12px; }
.hero-chart text { font-family: var(--font); font-size: 13px; fill: var(--band-muted); }
.hero-caption { font-size: var(--step--1); color: var(--band-muted); padding-block: 0 20px; }

.page-head .wrap { display: grid; gap: 16px; padding-block: 56px 48px; }

/* Sections */
.section .wrap { display: grid; gap: 28px; padding-block: 64px; }
.section + .section .wrap { border-top: 1px solid var(--line); }

.points { display: grid; gap: 32px 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .points, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .points, .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.point { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 3px solid var(--leaf); min-width: 0; }
.point p { color: var(--muted); }

.split { display: grid; gap: 28px 64px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split > * { min-width: 0; }
.stack { display: grid; gap: 16px; }

.types { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.types li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; }

.steps { counter-reset: step; display: grid; gap: 28px 40px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; gap: 6px; align-content: start; min-width: 0; }
.steps li::before {
  content: counter(step);
  font-size: 2.25rem; font-weight: 800; font-variation-settings: "wdth" 125;
  color: var(--slate); line-height: 1;
}
.steps p { color: var(--muted); }

/* Services list */
.services { display: grid; gap: 0; }
.service { display: grid; gap: 10px 48px; padding-block: 32px; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .service { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); } }
.service p { color: var(--muted); }

/* About */
.values { display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
.values li { max-width: var(--measure); }
.values b { color: var(--ink); }
.plain-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* Contact form */
.contact-details { display: grid; gap: 6px; font-size: var(--step-0); }
.contact-details strong { font-weight: 650; }
form.intake { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: var(--step--1); }
.field .hint { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
textarea { min-height: 7rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin-top: 6px; }
.checks label { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: var(--step-0); }
.checks input { width: auto; }
button.btn { cursor: pointer; font: inherit; font-weight: 650; justify-self: start; }
.form-status { font-weight: 600; }
.form-status[data-state="ok"] { color: var(--leaf-ink); }
.form-status[data-state="error"] { color: var(--sun); }

/* Closing band */
.closing .wrap { display: grid; gap: 20px; padding-block: 56px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-block: 28px; }
.site-footer p { max-width: none; }
.motto { color: var(--leaf-ink); font-weight: 650; }

@media (prefers-reduced-motion: no-preference) {
  .hero-path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s ease-out 0.2s forwards; }
  .hero-dot { opacity: 0; animation: appear 0.4s ease-out 2.4s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}

/* Key to Sustainability block with the AEI Partners logo */
.turnkey { display: grid; gap: 24px 56px; align-items: center; }
@media (min-width: 760px) { .turnkey { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }
.keys img { display: block; width: 100%; max-width: 340px; height: auto; }
@media (max-width: 759px) { .keys img { max-width: 220px; } }

/* Proof figures: the numbers are the point of this list */
.proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proof li { display: grid; gap: 4px; align-content: start; min-width: 0; }
.proof b { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; font-variation-settings: "wdth" 120; color: var(--slate); line-height: 1.05; font-variant-numeric: tabular-nums; }
.proof span { color: var(--muted); max-width: 34ch; }
.note { font-size: var(--step--1); color: var(--muted); }

/* Featured project */
.feature { display: grid; gap: 28px 64px; align-items: start; }
@media (min-width: 860px) { .feature { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: var(--step--1); color: var(--muted); }
.facts dd { margin: 0; font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 118; color: var(--leaf-ink); }

/* Services groups */
.jump { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--step--1); }
.service-group { display: grid; gap: 8px; scroll-margin-top: 24px; }
.service-group + .service-group { margin-top: 40px; }
.group-head { display: grid; gap: 6px; padding-bottom: 8px; }
.group-head p { color: var(--muted); }
.stack-tight { display: grid; gap: 10px; min-width: 0; }
.figs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.figs li { background: color-mix(in srgb, var(--leaf) 18%, transparent); color: var(--ink); border-radius: 4px; padding: 4px 10px; font-size: var(--step--1); font-weight: 600; }

/* Tables */
.table-wrap { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; color: var(--muted); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
caption { text-align: left; color: var(--muted); padding-bottom: 8px; }

/* Map */
.split-map { display: grid; gap: 28px 48px; align-items: start; }
@media (min-width: 960px) { .split-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.split-map > * { min-width: 0; }
.map-figure { margin: 0; display: grid; gap: 8px; }
.us-map { width: 100%; height: auto; display: block; }
.map-figure figcaption { font-size: var(--step--1); color: var(--muted); }

/* About */
.about-head { grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .about-head { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; } }
.headshot { width: 100%; max-width: 220px; height: auto; border-radius: 50%; display: block; }
.quote { margin: 8px 0 0; padding: 0 0 0 20px; border-left: 3px solid var(--leaf); display: grid; gap: 8px; }
.quote p { font-size: var(--step-1); line-height: 1.5; }
.quote footer { color: var(--muted); font-size: var(--step--1); }
.photo { margin: 0; display: grid; gap: 6px; }
.photo img { width: 100%; height: auto; border-radius: 4px; display: block; }
.photo figcaption { font-size: var(--step--1); color: var(--muted); }

/* Footer brand */
.footer-brand { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.footer-brand img { width: 180px; height: auto; display: block; }
.footer-brand .motto strong { color: var(--gold-ink); }

/* Career timeline: a real sequence, newest first */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; gap: 4px 32px; padding-block: 18px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .timeline li { grid-template-columns: 9rem minmax(0, 1fr); } }
.timeline .when { color: var(--slate); font-weight: 650; font-variant-numeric: tabular-nums; }
.timeline p { color: var(--muted); }

/* Case study pages */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.case-head h1 { max-width: 24ch; }
.case-meta { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.case-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .case-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case-stats li { display: grid; gap: 4px; align-content: start; padding: 18px 18px 16px; border-radius: 8px; background: color-mix(in srgb, var(--leaf) 10%, var(--paper)); border-top: 3px solid var(--leaf); min-width: 0; }
.case-stats li:first-child { background: var(--band-bg); border-top-color: var(--gold); }
.case-stats li:first-child b { color: var(--gold); }
.case-stats li:first-child span { color: var(--band-fg); }
.case-stats b { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; font-variation-settings: "wdth" 118; color: var(--slate); line-height: 1.05; font-variant-numeric: tabular-nums; }
.case-stats span { color: var(--muted); font-size: var(--step--1); }
.case-grid { display: grid; gap: 28px 56px; align-items: start; }
@media (min-width: 900px) { .case-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.case-grid > * { min-width: 0; }
.case .photo img { border: 1px solid var(--line); background: #fff; }
.photo.wide { max-width: 1000px; }
.snapshot { margin: 0; display: grid; border-top: 1px solid var(--line); }
.snapshot div { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 4px 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.snapshot dt { color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.snapshot dd { margin: 0; font-size: var(--step--1); }
@media (min-width: 1040px) { .case-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case-points .plain-list { color: var(--muted); font-size: var(--step--1); }
.case-points .plain-list b { color: var(--ink); }
.closing .lede { color: var(--band-muted); }

/* ---------- brand wordmark in header */
.brand-name { display: grid; gap: 3px; line-height: 1.1; }
.brand-word { display: flex; align-items: flex-end; gap: 8px; }
.brand-word img { display: block; height: 32px; width: auto; }
.brand-name .brand-partners { font-family: "Montserrat", var(--font); font-weight: 500; font-size: 1.28rem; line-height: 1; color: var(--ink); letter-spacing: 0.01em; }
.brand-name .brand-full { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 420px) { .brand-mark img { width: 50px; } .brand-word img { height: 24px; } .brand-partners { font-size: 1.1rem; } }

/* ---------- shared bits */
.section-lede { color: var(--muted); font-size: var(--step-1); max-width: 60ch; }
.sec-head { display: grid; gap: 8px; }
.sec-head p { color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: var(--step--1); justify-self: start; }
.callout { border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); border-left: 6px solid var(--gold); background: color-mix(in srgb, var(--gold) 9%, var(--paper)); border-radius: 8px; padding: 18px 20px; display: grid; gap: 10px; }
.callout-title { font-size: var(--step-1); font-weight: 650; }
.steps-v { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps-v li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; align-items: start; }
.steps-v li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--btn-fg); background: var(--btn-bg); }
.steps-v h4 { margin: 0; font-size: var(--step-0); }
.steps-v p { color: var(--muted); }
.bps-split { align-items: start; }

/* ---------- How we work */
.markets { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .markets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.market { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--slate) 5%, var(--paper)); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.market:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgb(0 0 0 / .12); border-color: var(--leaf); color: var(--ink); }
.market svg { width: 84px; height: 84px; }
.market p { color: var(--muted); }
.more { font-weight: 650; color: var(--slate); }
.more::after { content: " \2192"; }
.flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding: 14px 16px 14px 52px; border-radius: 10px; background: var(--band-bg); color: var(--band-fg); display: grid; gap: 2px; }
.flow li::before { content: counter(f); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); color: #142008; font-weight: 800; font-size: 0.9rem; }
.flow b { font-size: var(--step-1); }
.flow span { font-size: var(--step--1); color: var(--band-muted); }

/* ---------- building illustrations (decorative) */
.i-ground { fill: color-mix(in srgb, var(--leaf) 45%, transparent); }
.i-roof { fill: #2b3a42; }
.i-trim { fill: #c9d3d6; }
.i-facade { fill: #e9e2d4; stroke: #2b3a42; stroke-width: 1.5; }
.i-facade2 { fill: #d6e3ea; stroke: #2b3a42; stroke-width: 1.5; }
.i-glass { fill: #7fb3cf; }
.i-door { fill: #3e6274; }
.i-line { stroke: #2b3a42; stroke-width: 2.5; stroke-linecap: round; }
.i-leaf { fill: #6fa83a; }
.i-gold { fill: #e3a92c; }
.i-clock { fill: #fff; stroke: #2b3a42; stroke-width: 2; }
.i-cross { stroke: #d95c16; stroke-width: 6; stroke-linecap: round; }
.i-wave { stroke: #4b9fd0; stroke-width: 3; stroke-linecap: round; }
.i-trunk { fill: #7a5a3a; }
.i-steam { stroke: #9fb2ba; stroke-width: 3; stroke-linecap: round; }

/* ---------- featured project graphic */
.speer-graphic { margin: 0; display: grid; gap: 8px; padding: 18px; border-radius: 14px; background: color-mix(in srgb, var(--slate) 6%, var(--paper)); border: 1px solid var(--line); }
.speer-graphic svg { width: 100%; height: auto; display: block; }
.speer-graphic text { font-family: var(--font); fill: var(--ink); }
.sp-bldg { fill: #e9e2d4; stroke: #2b3a42; stroke-width: 2; }
.sp-roof, .sp-door { fill: #2b3a42; }
.sp-ground { fill: color-mix(in srgb, var(--leaf) 50%, transparent); }
.sp-win { fill: #4b9fd0; }
.speer-graphic.in .sp-win { animation: warm2cool 1.2s ease var(--d) both; }
@keyframes warm2cool { 0%, 35% { fill: #f0a03c; } 100% { fill: #4b9fd0; } }
.sp-snow path { stroke: #4b9fd0; stroke-width: 3; stroke-linecap: round; fill: none; }
.sp-label { font-size: 16px; font-weight: 700; }
.sp-small { font-size: 13.5px; fill: var(--muted) !important; }
.sp-val { font-size: 16px; font-weight: 800; }
.sp-big { font-size: 34px; font-weight: 800; }
.sp-hero { font-size: 64px; font-weight: 800; fill: var(--leaf-ink) !important; }
.sp-accent { fill: var(--leaf-ink) !important; }
.sp-seg1 { fill: var(--leaf-ink); } .sp-seg2 { fill: var(--slate); } .sp-seg3 { fill: var(--sun); }
.sp-gauge-bg { fill: none; stroke: var(--line); stroke-width: 14; stroke-linecap: round; }
.sp-gauge { fill: none; stroke: var(--leaf-ink); stroke-width: 14; stroke-linecap: round; stroke-dasharray: var(--v) 100; }
.speer-graphic.in .sp-gauge { animation: gauge 1.4s ease both; }
@keyframes gauge { from { stroke-dasharray: 0 100; } }
.sp-track { fill: var(--line); } .sp-eui { fill: var(--leaf-ink); }
.sp-target { stroke: var(--sun); stroke-width: 3; }
.sp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: var(--step--1); color: var(--muted); }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; margin-right: -10px; }
.sw-warm { background: #f0a03c; } .sw-cool { background: #4b9fd0; }

/* ---------- services */
.jump-cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 760px) { .jump-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.jump-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: var(--step-1); background: var(--paper); transition: border-color .2s, transform .2s; }
.jump-card:hover { border-color: var(--leaf); transform: translateY(-2px); color: var(--ink); }
.jump-card svg { width: 56px; height: 56px; flex: none; }
.market-sec { border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.market-sec .wrap { display: grid; gap: 28px; padding-block: 56px; }
.market-industrial { background: color-mix(in srgb, var(--gold) 6%, var(--paper)); }
.market-public { background: color-mix(in srgb, var(--slate) 7%, var(--paper)); }
.market-head { display: grid; gap: 20px 32px; align-items: center; }
@media (min-width: 900px) { .market-head { grid-template-columns: 120px minmax(0, 1.2fr) minmax(0, 1fr); } }
.market-art svg { width: 120px; height: 120px; }
.market-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.market-photo { margin: 0; }
.market-photo img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; display: block; }
.svc-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--leaf); min-width: 0; }
.svc-card h3 { font-size: 1.15rem; }
.svc-card p { color: var(--muted); font-size: 0.97rem; }
.svc-ico { width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: color-mix(in srgb, var(--leaf) 18%, transparent); stroke: var(--leaf-ink); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.partner-wrap { display: grid; gap: 28px 56px; align-items: start; }
@media (min-width: 900px) { .partner-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.partner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.partner-list li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 10px; border: 1px dashed var(--line); }
.partner-list span { color: var(--muted); font-size: var(--step--1); }

/* ---------- track record: map */
.map-wrap { position: relative; }
.map-wrap .us-map { width: 100%; height: auto; display: block; }
.st.has { cursor: pointer; transition: filter .15s; outline: none; }
.st.has:hover, .st.has:focus-visible, .st.has.sel { filter: brightness(1.15) drop-shadow(0 0 4px rgb(0 0 0 / .35)); stroke: var(--ink); stroke-width: 2; }
.map-pop { position: absolute; z-index: 5; width: min(340px, calc(100% - 16px)); padding: 16px 18px; border-radius: 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 14px 40px rgb(0 0 0 / .25); display: grid; gap: 6px; }
.map-pop::after { content: ""; position: absolute; left: calc(var(--tip, 50%) - 9px); bottom: -9px; width: 16px; height: 16px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.map-pop.below::after { bottom: auto; top: -9px; transform: rotate(225deg); }
.map-pop h3 { padding-right: 24px; }
.pop-n { color: var(--leaf-ink); font-weight: 750; }
.map-pop .plain-list { font-size: var(--step--1); }
.pop-x { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.state-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.chip b { color: var(--leaf-ink); margin-left: 4px; }
.chip[aria-pressed="true"] { border-color: var(--leaf); background: color-mix(in srgb, var(--leaf) 14%, var(--paper)); }
.chip-total { cursor: default; background: transparent; }
.data-table summary { cursor: pointer; color: var(--slate); font-weight: 600; font-size: var(--step--1); }
.data-table[open] summary { margin-bottom: 8px; }

/* ---------- explorer */
.skyline { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
@media (min-width: 900px) { .skyline { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.bldg { font: inherit; color: var(--ink); background: none; border: 1px solid transparent; border-radius: 12px; padding: 8px 6px 10px; display: grid; justify-items: center; gap: 2px; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.bldg svg { width: 100%; max-width: 104px; height: auto; transition: transform .25s; }
.bldg:hover svg { transform: translateY(-4px); }
.bldg[aria-pressed="true"] { background: color-mix(in srgb, var(--leaf) 13%, var(--paper)); border-color: var(--leaf); }
.bldg-n { font-size: 1.6rem; font-weight: 800; font-variation-settings: "wdth" 118; color: var(--slate); line-height: 1; }
.bldg-name { font-size: 0.8rem; color: var(--muted); text-align: center; line-height: 1.2; }
.explore-grid { display: grid; gap: 24px 40px; align-items: start; }
@media (min-width: 960px) { .explore-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.fam-panel { padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--slate) 5%, var(--paper)); display: grid; gap: 12px; min-width: 0; }
.fam-panel h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fam-panel h4 { margin: 0 0 6px; font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pill { font-size: var(--step--1); font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); }
.fam-cols { display: grid; gap: 16px 28px; }
@media (min-width: 640px) { .fam-cols { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.fam-types { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--step--1); }
.fam-types li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding-bottom: 3px; }
.fam-sav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fam-sav li { display: grid; padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.fam-sav b { font-size: clamp(1rem, 2.2vw, 1.35rem); font-weight: 800; color: var(--slate); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fam-sav span { font-size: 0.78rem; color: var(--muted); }
.waffle { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.waffle i { aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--slate) 22%, var(--paper)); transition: background .3s, transform .3s; }
.waffle i.on { background: var(--leaf-ink); transform: scale(1.08); }
.waffle-cap { margin-top: 10px; color: var(--muted); }
.waffle-cap b { color: var(--leaf-ink); font-size: var(--step-1); }

/* ---------- horizontal bars (single hue; values labeled) */
.hb-list, .hbars-static { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hb-list li, .hbars-static li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; align-items: center; gap: 12px; border-radius: 6px; padding: 2px 4px; outline: none; }
.hb-list li:hover, .hb-list li:focus-visible { background: color-mix(in srgb, var(--leaf) 10%, transparent); }
.hb-label { font-size: var(--step--1); line-height: 1.25; }
.hb-track { height: 14px; background: color-mix(in srgb, var(--slate) 10%, transparent); border-radius: 4px; overflow: hidden; }
.hb-fill { display: block; height: 100%; width: 0; background: var(--leaf-ink); border-radius: 0 4px 4px 0; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.in .hb-fill { width: var(--w); }
.hb-val { font-variant-numeric: tabular-nums; font-size: var(--step--1); min-width: 4.5ch; text-align: right; }
.hb-list li.zero .hb-val { color: var(--muted); }
@media (max-width: 640px) { .hb-list li, .hbars-static li { grid-template-columns: minmax(0, 1fr) auto; } .hb-track { grid-column: 1 / -1; grid-row: 2; } }
@media (prefers-reduced-motion: reduce) { .hb-fill { transition: none; } }
.viz-tip { position: absolute; z-index: 20; pointer-events: none; background: var(--ink); color: var(--paper); padding: 8px 10px; border-radius: 8px; font-size: 0.82rem; line-height: 1.4; box-shadow: 0 6px 18px rgb(0 0 0 / .25); max-width: 260px; }

/* ---------- savings explorer */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--slate) 10%, var(--paper)); justify-self: start; }
.seg button { font: inherit; font-weight: 600; font-size: var(--step--1); border: 0; border-radius: 999px; padding: 8px 16px; background: transparent; color: var(--ink); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.sav-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .sav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sav-card { padding: 22px; border-radius: 14px; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.sav-total { color: var(--muted); }
.sav-total b { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--slate); font-variant-numeric: tabular-nums; }
.sav-card .hb-list li { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto; }

/* ---------- programs orbit */
.orbit-grid { display: grid; gap: 24px 40px; align-items: center; }
@media (min-width: 960px) { .orbit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.orbit svg { width: 100%; max-width: 520px; height: auto; display: block; margin-inline: auto; }
.orbit-ring { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 6; }
.orbit-ring2 { stroke: color-mix(in srgb, var(--leaf) 50%, transparent); }
.spoke { stroke: var(--line); stroke-width: 1; }
.node { cursor: pointer; outline: none; }
.node circle { fill: var(--paper); stroke: var(--slate); stroke-width: 2.5; transition: fill .2s; }
.node text { font-family: var(--font); font-weight: 800; font-size: 15px; fill: var(--ink); pointer-events: none; }
.node:hover circle, .node:focus-visible circle { fill: color-mix(in srgb, var(--leaf) 25%, var(--paper)); }
.node.sel circle { fill: var(--leaf-ink); stroke: var(--leaf-ink); }
.node.sel text { fill: #fff; }
.orbit-side { display: grid; gap: 16px; }
.orbit-card { padding: 22px; border-radius: 14px; border: 1px solid var(--line); border-left: 6px solid var(--leaf); min-height: 150px; display: grid; gap: 8px; align-content: start; }
.orbit-card p:last-child { color: var(--muted); }
.orbit-legend { margin: 0; padding-left: 1.6em; display: grid; gap: 4px 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); font-size: var(--step--1); }
.orbit-legend button { font: inherit; background: none; border: 0; padding: 2px 0; color: var(--slate); cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- research and Denver panels */
.two-up { display: grid; gap: 24px; }
@media (min-width: 1000px) { .two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel-card { padding: 26px; border-radius: 16px; border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; min-width: 0; }
.denver-card { background: var(--band-bg); color: var(--band-fg); border-color: var(--band-bg); }
.denver-card p { color: var(--band-muted); }
.denver-card .eyebrow { color: var(--gold); }
.bubbles { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.bubble { --d: calc(70px + var(--s) * 120px); width: var(--d); height: var(--d); border-radius: 50%; display: grid; place-content: center; text-align: center; padding: 8px; background: color-mix(in srgb, var(--leaf) calc(18% + var(--s) * 40%), var(--paper)); color: var(--ink); transform: scale(.6); opacity: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1.2), opacity .6s; }
.bubbles.in .bubble { transform: scale(1); opacity: 1; }
.bubble b { font-size: calc(1rem + var(--s) * 1rem); font-weight: 800; line-height: 1; }
.bubble span { font-size: 0.72rem; line-height: 1.15; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tiles li { display: grid; padding: 12px; border-radius: 10px; background: rgb(255 255 255 / .06); border: 1px solid var(--band-line); min-width: 0; }
.tiles b { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; color: var(--gold); overflow-wrap: anywhere; }
.tiles span { font-size: 0.78rem; color: var(--band-muted); }
.denver-card .hb-track { background: rgb(255 255 255 / .1); }
.denver-card .hb-fill { background: var(--leaf); }
.denver-card .hb-label, .denver-card .hb-val { color: var(--band-fg); }
.hbars-static li { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--band-line); font-size: var(--step--1); color: var(--band-fg); }
.tags b { color: var(--leaf); }
.awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.awards li { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--gold) 7%, var(--paper)); }
.awards svg { width: 64px; height: 64px; flex: none; }
.awards div { display: grid; gap: 2px; }
.awards span { color: var(--muted); font-size: var(--step--1); }
.aw-medal { fill: #e3a92c; } .aw-ribbon { fill: #3e6274; stroke: #3e6274; stroke-width: 2; } .aw-star { fill: #fff; }

@media (min-width: 860px) { .feature { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
@media (min-width: 1040px) { .svc-grid > .svc-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
/* compact bars inside the building panel: label row, bar row */
.fam-ecm .hb-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
.fam-ecm .hb-track { grid-column: 1 / -1; grid-row: 2; height: 10px; }
.fam-sav b { font-size: clamp(0.92rem, 3.4vw, 1.35rem); overflow-wrap: normal; white-space: nowrap; }
@media (max-width: 420px) { .fam-sav { gap: 6px; } .fam-sav li { padding: 8px; } }
/* hero headline: one line on wider screens, still the largest type on the page */
.hero-center { container-type: inline-size; }
.hero-center h1 { max-width: none; font-size: max(1.75rem, min(3.4rem, 100cqi / 25.6)); font-variation-settings: "wdth" 112; letter-spacing: -0.015em; }

.hero-center h1 .hl { color: var(--leaf); }
/* display lines: hero tagline and the decarbonization line share one size and the brand gold and green */
.display { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.015em; line-height: 1.12; max-width: none; text-wrap: balance; }
.hero-center h1.display { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.hero-center .display span { display: block; }
.band .d-gold { color: var(--gold); }
.band .d-green { color: var(--leaf); }
/* on the light page, deeper steps of the same gold and green keep large text readable */
.section .d-gold { color: #B8860B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section .d-gold { color: var(--gold); } }
:root[data-theme="dark"] .section .d-gold { color: var(--gold); }
.section .d-green { color: var(--leaf-ink); }
/* home: mini map link to the track record */
.map-link { justify-self: start; display: grid; gap: 8px; width: min(100%, 340px); padding: 12px 14px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--slate); font-weight: 650; transition: border-color .2s, transform .2s, box-shadow .2s; }
.map-link:hover, .map-link:focus-visible { border-color: var(--leaf); transform: translateY(-2px); box-shadow: 0 8px 22px rgb(0 0 0 / .12); color: var(--slate); }
.map-link span { text-decoration: underline; text-underline-offset: 3px; }
.map-link span::after { content: " \2192"; }
.mini-map { width: 100%; height: auto; display: block; }
