/* Hemora Energy. Navy and Canola (fills only, never text) carry the brand. Paper and Sky come from the prairie photos.
   Blueprint is for links, Steel for secondary text, Redline for exceptions only. */
:root {
  color-scheme: light;
  --navy: #12233A;
  --navy-deep: #0C192B;
  --canola: #F2C230;
  --canola-hover: #FFD95C;
  --paper: #F8F6F0;
  --sky: #DCE8EF;
  --blueprint: #0F3557;
  --steel: #3C5368;
  --redline: #C23B2E;
  --line: #D2D6D4;
  --line-strong: #B6C0C6;
  --mist: #DCE8EF;
  --pale: #C5D1DB;
  --white: #fff;
  --font: Archivo, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --space: clamp(3rem, 6vw, 5.5rem);
  --head: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 1.0625rem/1.6 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--blueprint); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blueprint); outline-offset: 3px; }
.on-navy :focus-visible { outline-color: var(--canola); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--head) + 3.5rem); }

/* Headings use Archivo's wide end, the same lettering as the wordmark. */
h1, h2, h3 { text-wrap: balance; }
.nb { white-space: nowrap; } /* keeps "utility-scale" on one line */
h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.85rem);
  font-weight: 800;
  font-stretch: 120%;
  line-height: 1.02;
  letter-spacing: -.022em;
}
h2 {
  font-size: clamp(1.65rem, 2.9vw, 2.5rem);
  font-weight: 760;
  font-stretch: 118%;
  line-height: 1.08;
  letter-spacing: -.015em;
}
h3 { font-size: 1.125rem; font-weight: 700; font-stretch: 110%; line-height: 1.25; }

.wrap { width: min(100%, 88rem); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; z-index: 40; top: .75rem; left: .75rem;
  padding: .7rem 1rem; background: var(--canola); color: var(--navy); font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-head > .wrap {
  min-height: var(--head);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem);
}
.logo { margin-right: auto; color: var(--navy); flex: none; }
.logo svg { width: clamp(6.75rem, 8.8vw, 8.25rem); height: auto; }
.links ul { display: flex; gap: clamp(1rem, 2vw, 2.25rem); }
.links a, .mobile-nav a { color: var(--navy); font-weight: 620; text-decoration: none; }
.links a {
  display: block; padding-block: .6rem;
  border-bottom: 3px solid transparent;
  transition: border-color .15s ease;
}
.links a:hover, .links a[aria-current] { border-bottom-color: var(--canola); }
.head-actions { display: flex; align-items: center; gap: .6rem; }

.btn, .menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 3rem; padding: .65rem 1.25rem;
  border: 1.5px solid transparent; border-radius: 2px;
  font: 700 1rem/1.2 var(--font); font-stretch: 106%;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--canola); color: var(--navy); }
.btn-primary:hover { background: var(--canola-hover); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blueprint); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { border-color: #8EA1B2; color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: #ffffff16; }
.btn-sm { min-height: 2.4rem; padding: .45rem .9rem; font-size: .9rem; }
.menu-btn { display: none; gap: .55rem; background: var(--white); color: var(--navy); border-color: var(--line); fill: currentColor; }
.menu-btn[aria-expanded="true"] { background: var(--mist); }
.mobile-nav { display: none; }

/* Hero. On Home the navy block, canola bar and photo stack like the wordmark. */
.hero { background: var(--navy); color: var(--white); }
.hero .lead { max-width: 54ch; color: var(--pale); font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.52; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero-home > .wrap { padding-block: clamp(2.25rem, 4.5vw, 3.75rem) clamp(1.75rem, 3.2vw, 2.6rem); }
.hero-home h1 { max-width: 18ch; }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: 1.25rem 3rem;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-top: clamp(1.1rem, 2vw, 1.6rem);
  border-top: 1px solid #ffffff24;
}
.hero-photo { border-top: clamp(8px, .9vw, 12px) solid var(--canola); background: var(--navy-deep); }
.hero-photo img { width: 100%; height: clamp(14rem, 30vw, 26rem); object-fit: cover; object-position: center 42%; }
.credit { padding: .6rem var(--gutter); color: var(--pale); font-size: .8125rem; }
.credit a { color: inherit; }

.hero-split > .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.hero-split h1 { font-size: clamp(2.25rem, 4.4vw, 4rem); }
.hero-copy { display: grid; justify-items: start; gap: clamp(1rem, 1.8vw, 1.45rem); }
.hero-plain > .wrap { padding-block: clamp(2.5rem, 4.8vw, 4.25rem); display: grid; justify-items: start; gap: 1.15rem; }
.hero-plain h1 { font-size: clamp(2.2rem, 4.4vw, 3.85rem); max-width: 21ch; }
.updated { color: var(--pale); font-size: .875rem; max-width: 60ch; }
.tech-photo img { width: 100%; height: auto; border: 1px solid #ffffff38; }

/* Block map & real extract map: one mark per unit. */
.blockmap {
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid #ffffff36;
  background: var(--navy-deep);
  display: grid; gap: .85rem;
}
.map-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: .25rem 1rem;
  font-weight: 700; font-stretch: 108%;
}
.map-head span:last-child { color: var(--pale); font-weight: 500; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.map-progress {
  height: 4px; background: #ffffff1f; overflow: hidden;
  display: flex;
}
.map-progress .bar-done { background: var(--canola); }
.map-progress .bar-exc { background: var(--redline); }
.blockmap svg { width: 100%; height: auto; display: block; }
.blockmap [data-u] { cursor: pointer; outline: none; }
.blockmap .grid-axis {
  fill: var(--pale); font-family: var(--font); font-size: 9.5px; font-weight: 500;
  font-variant-numeric: tabular-nums; user-select: none;
}
.blockmap .unit-ring {
  pointer-events: none; fill: none; stroke: var(--white); stroke-width: 2.5;
}
.map-picks {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.map-pick {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .65rem;
  border: 1px solid #ffffff33; border-radius: 2px;
  background: #ffffff0a; color: var(--pale);
  font: 600 .8125rem/1.2 var(--font); font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.map-pick:hover { border-color: #ffffff80; color: var(--white); background: #ffffff16; }
.map-pick[aria-pressed="true"] { border-color: var(--canola); color: var(--white); background: #ffffff1f; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; color: var(--pale); font-size: .875rem; }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }
.key { position: relative; flex: none; width: .8rem; height: .8rem; display: inline-block; }
.key-done { background: var(--canola); }
.key-open { border: 1.5px solid #B7C7D4; }
.key-exc { background: var(--redline); }
.key-exc::before, .key-exc::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: .55rem; height: 1.5px; background: var(--white);
}
.key-exc::before { transform: translate(-50%, -50%) rotate(45deg); }
.key-exc::after { transform: translate(-50%, -50%) rotate(-45deg); }

.readout {
  min-height: 3.4rem; padding: .7rem .9rem;
  border-left: 3px solid var(--canola);
  background: #ffffff10;
  font-size: .9375rem; line-height: 1.45;
  font-variant-numeric: tabular-nums;
  display: grid; gap: .25rem;
}
.readout[data-state="exc"] { border-left-color: var(--redline); }
.readout[data-state="open"] { border-left-color: #B7C7D4; }
.readout-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.readout-id { font-weight: 760; font-stretch: 108%; color: var(--white); }
.readout-badge {
  display: inline-block; padding: .08rem .45rem; border-radius: 2px;
  font-size: .75rem; font-weight: 700; letter-spacing: .01em;
}
.readout-badge.is-done, .readout-badge.is-today { background: var(--canola); color: var(--navy); }
.readout-badge.is-exc { background: var(--redline); color: var(--white); }
.readout-badge.is-open { border: 1px solid #B7C7D4; color: var(--pale); }
.readout-text { color: var(--pale); }
.readout a { color: var(--white); font-weight: 600; }

/* Services hero extract stats */
.extract-kpis {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #ffffff26; background: #ffffff08;
}
.extract-kpis > div { padding: .6rem .75rem; min-width: 0; }
.extract-kpis > div + div { border-left: 1px solid #ffffff26; }
.extract-kpis strong {
  display: block; font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 800; font-stretch: 116%; line-height: 1.1;
  font-variant-numeric: tabular-nums; color: var(--white);
}
.extract-kpis strong span { font-size: .6em; font-weight: 600; color: var(--pale); }
.extract-kpis .is-exc-num {
  display: inline-block; padding: .05rem .45rem; border-radius: 2px;
  background: var(--redline); color: var(--white);
}
.extract-kpis p { color: var(--pale); font-size: .8125rem; margin-top: .15rem; line-height: 1.3; }
.map-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .5rem 1rem; padding-top: .25rem;
  font-size: .875rem; color: var(--pale);
}
.map-foot a { color: var(--white); font-weight: 650; }

@keyframes unit-done { from { fill-opacity: 0; } to { fill-opacity: 1; } }
.blockmap .today { animation: unit-done .35s ease-out both; }

/* Facts row under the home & projects hero */
.facts { background: var(--sky); border-bottom: 1px solid #12233A1A; }
.facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: 1.25rem 1.5rem 1.25rem 0; display: grid; align-content: start; gap: .25rem; }
.facts li + li { padding-left: 1.5rem; border-left: 1px solid #12233A29; }
.facts .fact-key {
  font-size: clamp(1.2rem, 1.75vw, 1.45rem);
  font-weight: 800; font-stretch: 116%; line-height: 1.15;
  color: var(--navy); font-variant-numeric: tabular-nums;
}
.facts .fact-val { font-size: .9375rem; line-height: 1.4; color: var(--steel); }

/* Home: asymmetric doors (primary B2B, secondary crew) */
.doors {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-block: clamp(2.25rem, 4.5vw, 3.75rem);
}
.doors a {
  display: grid; align-content: start; gap: .75rem; height: 100%;
  padding: clamp(1.5rem, 2.8vw, 2.35rem);
  background: var(--white); border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  color: var(--navy); text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.doors li:first-child a { border-top-color: var(--canola); }
.doors a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); border-top-color: var(--canola); }
.doors .who { font-weight: 650; font-size: .9375rem; color: var(--steel); }
.doors p:not(.who) { color: var(--steel); max-width: 48ch; }
.doors a:hover p { color: var(--pale); }
.doors .go {
  margin-top: .45rem; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem;
  text-decoration: underline; text-decoration-color: var(--canola);
  text-decoration-thickness: 3px; text-underline-offset: .3em;
}
.doors .go::after { content: "→"; text-decoration: none; display: inline-block; transition: transform .15s ease; }
.doors a:hover .go::after { transform: translateX(3px); }

/* In-page navigation */
.subnav {
  position: sticky; top: var(--head); z-index: 20;
  background: var(--white); border-bottom: 1px solid var(--line);
  font-size: .9375rem;
}
.subnav ul { display: flex; flex-wrap: wrap; gap: 0 clamp(.9rem, 2vw, 1.75rem); }
.subnav a {
  display: inline-flex; align-items: center; min-height: 2.85rem;
  color: var(--steel); font-weight: 620; text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.subnav a:hover { color: var(--navy); border-bottom-color: var(--line-strong); }
.subnav a.is-active { color: var(--navy); border-bottom-color: var(--canola); }

/* Sections: heading in the left column, content on the right, like a work pack. */
.sec { padding-block: var(--space); border-top: 1px solid var(--line); }
.subnav + .sec, .facts + .sec { border-top: 0; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.75rem clamp(2rem, 5vw, 5rem); }
.sec-head { align-self: start; position: sticky; top: calc(var(--head) + 3.5rem); display: grid; gap: .85rem; }
.sec-head p { color: var(--steel); max-width: 34ch; }
.sec-head .tagline { color: var(--navy); font-weight: 700; font-stretch: 112%; font-size: 1.2rem; }
.sec-body { display: grid; gap: clamp(1.5rem, 2.8vw, 2.25rem); min-width: 0; }
.sec-body > *, .pair > *, .pair figure { min-width: 0; }
.sec-body > p { max-width: 64ch; }
.sub-h { font-size: clamp(1.25rem, 2vw, 1.55rem); font-stretch: 116%; font-weight: 740; margin-top: .4rem; }

/* Rows: a name and what it means */
.rows > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: .3rem 2rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 700; font-stretch: 110%; }
.rows dd { color: var(--steel); }
.rows dd strong { color: var(--navy); }
.rows dd a { font-weight: 650; }
.status-note {
  display: inline-block; padding: .08rem .45rem; margin-right: .35rem;
  background: var(--sky); color: var(--navy);
  font-size: .8125rem; font-weight: 700; border-radius: 2px;
}

.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem clamp(1.5rem, 3vw, 3rem); }
.points li { display: grid; align-content: start; gap: .45rem; padding-top: 1rem; border-top: 2px solid var(--navy); }
.points p { color: var(--steel); }

/* Numbered steps: the content is a real sequence */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); counter-reset: step; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; display: grid; align-content: start; gap: .5rem; }
.steps h3::before { content: counter(step) ". "; }
.steps p { color: var(--steel); }
.step-fig { padding: .9rem; margin-bottom: .4rem; background: var(--white); border: 1px solid var(--line); }
.step-fig svg { width: 100%; height: auto; }

/* Ledger: bold key on the left, explanation on the right */
.ledger > div {
  display: grid; grid-template-columns: minmax(10rem, 4.4fr) minmax(0, 8fr);
  align-items: baseline; gap: .5rem 2rem;
  padding-block: 1.25rem; border-top: 1px solid var(--line);
}
.ledger > div:last-child { border-bottom: 1px solid var(--line); }
.ledger dt {
  font-size: clamp(1.85rem, 3.6vw, 3.1rem);
  font-weight: 800; font-stretch: 118%; line-height: 1.05;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.ledger dt span { font-size: .52em; letter-spacing: 0; white-space: nowrap; }
.ledger dd { color: var(--steel); max-width: 52ch; }
.ledger dd strong { display: block; color: var(--navy); font-stretch: 108%; margin-bottom: .15rem; }
.more a { font-weight: 700; }

/* Projects: service map */
.svc-map {
  background: var(--white); border: 1px solid var(--line);
  padding: clamp(.5rem, 1.5vw, 1rem); max-width: 46rem;
}
.svc-map svg { width: 100%; height: auto; }
.svc-map text { font-family: var(--font); fill: var(--navy); }
.svc-map .mp { font-size: 14.5px; font-weight: 600; }
.svc-map .mc { font-size: 17px; font-weight: 800; font-stretch: 112%; }
.svc-map .mq { font-size: 13px; font-weight: 500; fill: var(--steel); letter-spacing: .04em; }
.svc-map .mr { font-size: 11.5px; font-weight: 600; fill: var(--steel); font-variant-numeric: tabular-nums; }
.map-key { display: grid; gap: .55rem; font-size: .9375rem; }
.map-key li { display: flex; align-items: center; gap: .6rem; }
.mk { flex: none; width: .95rem; height: .95rem; }
.mk-ours { border-radius: 50%; background: var(--canola); border: 2px solid var(--navy); }
.mk-solar { border-radius: 50%; border: 1.5px solid #6E8294; width: .7rem; height: .7rem; margin-inline: .125rem; background: var(--paper); }
.mk-bess { background: #6E8294; width: .65rem; height: .65rem; margin-inline: .15rem; }
.mk-base { background: linear-gradient(var(--navy) 38%, var(--canola) 38% 62%, var(--navy) 62%); }

/* Full-width photo band */
.band { border-top: clamp(8px, .9vw, 12px) solid var(--canola); background: var(--navy); }
.band img { width: 100%; height: clamp(12rem, 30vw, 26rem); object-fit: cover; object-position: center 60%; }
.band + .sec { border-top: 0; }

/* Block map used on a light page */
.sec-body .blockmap { max-width: 44rem; color: var(--white); }

/* Sheets: example reports, records, offers */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); align-items: start; }
.pair > div { display: grid; gap: .9rem; }
.sheet {
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 1px 2px #12233A0D;
}
.sheet-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem;
  padding: .75rem 1rem; background: var(--navy); color: var(--white);
  font-weight: 700; font-stretch: 108%;
}
.sheet-head span:last-child { color: var(--pale); font-weight: 500; font-stretch: 100%; font-size: .9rem; }
.sheet dl { display: grid; grid-template-columns: minmax(7rem, 34%) minmax(0, 1fr); font-size: .9375rem; }
.sheet dt, .sheet dd { padding: .58rem 1rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.sheet dt { color: var(--steel); font-weight: 550; }
.sheet figcaption { padding: .65rem 1rem; color: var(--steel); font-size: .875rem; }
.tally { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.tally > div { padding: .85rem .8rem; min-width: 0; }
.tally > div + div { border-left: 1px solid var(--line); }
.tally .big { font-size: clamp(1.3rem, 1.85vw, 1.75rem); font-weight: 800; font-stretch: 116%; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tally .big span { font-size: .58em; color: var(--steel); }
.tally .exc { color: var(--redline); }
.tally p:not(.big) { color: var(--steel); font-size: .85rem; margin-top: .15rem; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.photos span {
  display: flex; flex-direction: column; justify-content: flex-end; gap: .1rem;
  aspect-ratio: 4 / 3; padding: .5rem;
  border: 1px solid #C6D5E0;
  background: repeating-linear-gradient(135deg, var(--sky) 0 8px, #EDF3F6 8px 16px);
  color: var(--navy); font-size: .8125rem; font-weight: 650;
}
.photos span small { color: var(--steel); font-weight: 500; font-size: .75rem; font-variant-numeric: tabular-nums; }
.status { display: inline-block; padding: .08rem .45rem; background: var(--canola); color: var(--navy); font-weight: 700; font-size: .8125rem; border-radius: 2px; }
.scroll { overflow-x: auto; }
.sheet table { width: 100%; min-width: 30rem; border-collapse: collapse; text-align: left; font-size: .9375rem; }
.sheet th, .sheet td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet th { background: var(--mist); font-stretch: 108%; }
.sheet td:first-child { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.callout {
  padding: 1rem 1.25rem; background: var(--white);
  border: 1px solid var(--line); border-left: 4px solid var(--canola);
  max-width: 68ch;
}
.callout p + p { margin-top: .45rem; }
.big-line { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 740; font-stretch: 114%; line-height: 1.22; max-width: 32ch; }
.small { color: var(--steel); font-size: .9375rem; }

/* Proof highlight strip inside a light section */
.proof-note {
  padding: 1rem 1.25rem;
  background: var(--sky);
  border-left: 4px solid var(--navy);
  display: grid; gap: .4rem;
  max-width: 44rem;
}
.proof-note strong { color: var(--navy); font-stretch: 108%; }
.proof-note p { color: var(--steel); font-size: .9375rem; }
.proof-note a { font-weight: 700; }

/* Sample closeout download */
.sample-cta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.25rem 2rem;
  padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--navy); color: var(--white);
  border-top: 6px solid var(--canola);
}
.sample-cta h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-stretch: 116%; font-weight: 760; }
.sample-cta p { margin-top: .5rem; color: var(--pale); max-width: 48ch; }
.sample-cta .btn { white-space: nowrap; }

/* Closing band with the form */
.closing { background: var(--navy); color: var(--white); border-top: clamp(8px, .9vw, 12px) solid var(--canola); padding-block: var(--space); }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.closing.solo .wrap { align-items: center; }
.closing-copy { display: grid; justify-items: start; gap: 1rem; }
.closing-copy p { color: var(--pale); max-width: 52ch; }
.closing-copy a:not(.btn) { color: var(--white); }
.closing-copy .privacy { padding-top: 1rem; border-top: 1px solid #ffffff30; font-size: .9rem; }
.form-box { background: var(--white); color: var(--navy); border-top: 4px solid var(--canola); }
.form-fallback { display: grid; justify-items: start; gap: .85rem; padding: clamp(1.35rem, 3vw, 2.25rem); }
.form-fallback p { color: var(--steel); }
.form-checklist {
  width: 100%; display: grid; gap: .4rem;
  padding: .85rem 1rem; background: var(--paper); border: 1px solid var(--line);
  font-size: .9375rem; color: var(--navy);
}
.form-checklist li {
  display: grid; grid-template-columns: .75rem 1fr; align-items: baseline; gap: .55rem;
}
.form-checklist li::before {
  content: ""; width: .45rem; height: .45rem; background: var(--canola);
  border: 1px solid var(--navy); align-self: center;
}
.form-embed { padding: .25rem clamp(1.35rem, 3vw, 2.25rem) 1rem; border-top: 1px solid var(--line); }
.form-embed summary { min-height: 2.75rem; padding: .7rem 0; color: var(--blueprint); font-weight: 700; cursor: pointer; }
.form-embed iframe { display: block; width: 100%; border: 0; }

/* Footer */
.site-foot { background: var(--navy); color: var(--white); border-top: 1px solid #ffffff2e; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.2rem 2rem; padding-block: 2.25rem; }
.site-foot svg { width: 8rem; height: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9375rem; }
.foot-nav a { color: var(--white); }
.site-foot p { grid-column: 1 / -1; color: var(--pale); font-size: .875rem; }
.site-foot .tagline { grid-column: auto; color: var(--white); font-size: 1rem; font-weight: 700; font-stretch: 112%; }
.foot-brand { display: grid; gap: .8rem; }

/* Privacy and 404 */
.legal { max-width: 46rem; padding-block: var(--space); }
.legal h2 { margin: 2.25rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 1.5rem; }
.legal h3 { margin: 1.15rem 0 .3rem; }
.legal p + p { margin-top: .65rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: .75rem 0; }
.legal li { margin-bottom: .45rem; }
.legal .box { padding: 1.25rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--canola); }
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 main { flex: 1; background: var(--navy); }

@media (max-width: 960px) {
  .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head { position: static; }
  .sec-head p { max-width: 60ch; }
  .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid #12233A29; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --head: 4rem; }
  .links { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: block; border-top: 1px solid var(--line); background: var(--white); max-height: calc(100dvh - var(--head)); overflow-y: auto; }
  .mobile-nav ul { padding: .25rem var(--gutter) 1rem; }
  .mobile-nav a { display: block; padding-block: .85rem; border-bottom: 1px solid var(--line); }
  .mobile-nav a[aria-current] { text-decoration: underline var(--canola) 3px; text-underline-offset: .3em; }
  .mobile-nav .mobile-cta { display: none; }
  .hero-split > .wrap, .closing .wrap, .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .hero-foot { align-items: start; }
  .tech-photo { max-width: 34rem; }
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .head-actions .head-cta { display: none; }
  .mobile-nav .mobile-cta { display: block; padding-top: .9rem; }
  .mobile-nav .mobile-cta a { display: inline-flex; border-bottom: 0; color: var(--white); padding: .65rem 1.25rem; }
  .doors, .pair, .points, .steps, .steps.four { grid-template-columns: minmax(0, 1fr); }
  .rows > div, .ledger > div, .sample-cta { grid-template-columns: minmax(0, 1fr); }
  .sample-cta .btn { justify-self: start; }
  .facts ul { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li + li { padding: .9rem 0; border-left: 0; }
  .facts li + li { border-top: 1px solid #12233A29; }
  .subnav ul {
    flex-wrap: nowrap; overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-right: 2.25rem;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 2.25rem), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 2.25rem), transparent 100%);
  }
  .subnav ul::-webkit-scrollbar { display: none; }
  .hero-photo img { height: auto; aspect-ratio: 1 / 1; max-height: 24rem; }
  .extract-kpis { grid-template-columns: minmax(0, 1fr); }
  .extract-kpis > div + div { border-left: 0; border-top: 1px solid #ffffff26; }
  .tally { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tally > div { padding: .65rem .55rem; }
  .photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; padding: .75rem; }
}

/* Closeout viewer (Projects): the sample package, readable in the page. Tabs are ARIA tabs; see site.js. */
.doc-viewer {
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 10px rgba(18, 35, 58, .06);
}
.doc-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .85rem 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--navy); color: var(--white);
  border-top: 5px solid var(--canola);
}
.doc-bar-meta { display: grid; gap: .15rem; }
.doc-bar-meta strong { font-size: 1.08rem; font-stretch: 112%; font-weight: 760; }
.doc-bar-meta span { color: var(--pale); font-size: .875rem; }

.doc-tabs {
  display: flex; flex-wrap: wrap;
  background: var(--sky);
  border-bottom: 1px solid var(--line);
}
.doc-tab {
  padding: .75rem 1.1rem;
  border: 0; border-right: 1px solid #12233A1A; border-bottom: 3px solid transparent;
  background: transparent; color: var(--steel);
  font: 680 .9rem/1.2 var(--font); font-stretch: 105%;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.doc-tab:hover { color: var(--navy); background: rgba(255, 255, 255, .45); }
.doc-tab[aria-selected="true"] {
  background: var(--white); color: var(--navy); border-bottom-color: var(--canola);
}
.doc-panel { padding: clamp(1.15rem, 2.5vw, 1.75rem); display: grid; gap: 1.25rem; }
.doc-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); background: var(--paper);
}
.doc-kpis > div { padding: .9rem 1rem; }
.doc-kpis > div + div { border-left: 1px solid var(--line); }
.doc-kpis strong {
  display: block; font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800; font-stretch: 116%; line-height: 1.1;
  font-variant-numeric: tabular-nums; color: var(--navy);
}
.doc-kpis strong span { font-size: .58em; color: var(--steel); }
.doc-kpis .exc { color: var(--redline); }
.doc-kpis p { font-size: .85rem; color: var(--steel); margin-top: .2rem; line-height: 1.35; }
.doc-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.doc-table { width: 100%; min-width: 32rem; border-collapse: collapse; text-align: left; font-size: .92rem; }
.doc-table th, .doc-table td { padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { background: var(--sky); color: var(--navy); font-weight: 700; font-stretch: 108%; }
.doc-table td.num, .doc-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-table .fail-num { font-weight: 700; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table .sub { display: block; color: var(--steel); font-size: .82rem; margin-top: .15rem; }
.badge-open-exc {
  display: inline-block; padding: .1rem .5rem; border-radius: 2px;
  background: var(--redline); color: var(--white); font-size: .78rem; font-weight: 700;
}
.badge-closed {
  display: inline-block; padding: .1rem .5rem; border-radius: 2px;
  background: var(--canola); color: var(--navy); font-size: .78rem; font-weight: 700;
}
.doc-tab:focus-visible { outline-offset: -3px; }

/* Prequalification strip: the four things a procurement reviewer checks first. */
.prequal-strip { background: var(--sky); border-top: 1px solid #12233A22; padding-block: 1.35rem; }
.prequal-strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .85rem 2rem; }
.prequal-items { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; font-size: .9375rem; color: var(--navy); }
.prequal-items li { display: flex; align-items: baseline; gap: .45rem; }
.prequal-items li::before { content: ""; width: .5rem; height: .5rem; background: var(--navy); flex: none; }
.prequal-items li > span { min-width: 0; }
.prequal-items strong { font-weight: 720; }
.prequal-strip a { font-weight: 700; }

@media (max-width: 960px) {
  .doc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-kpis > div:nth-child(3) { border-left: 0; }
  .doc-kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  /* On phones the in-page nav scrolls away with the page: one pinned bar is enough. */
  .subnav { position: static; }
  .doc-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .doc-tabs::-webkit-scrollbar { display: none; }
  .doc-tab { white-space: nowrap; }
}

@media (max-width: 360px) {
  /* Long words ("manufacturer’s", "prequalification") must fit a 320 px screen. */
  .hero-split h1, .hero-plain h1 { font-size: 1.8rem; }
  .hero-home h1 { font-size: 2rem; }
  h1, h2 { overflow-wrap: break-word; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
