/* CHEX — chexenergy.net
   Palette taken from the CHEX logo. Type is Archivo (SIL OFL), self-hosted,
   using its width axis to echo the wide letters of the wordmark. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep: #115467;
  --teal: #2885a4;
  --teal-text: #1d6f8c;
  --sky: #53c0e4;
  --slate: #4f6573;
  --ink: #17343f;
  --mist: #eef5f7;
  --earth: #e3eef2;
  --line: #cddde3;
  --paper: #ffffff;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);

  --wide: 125%;
  --semi: 112%;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--teal-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  color: var(--deep);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-stretch: var(--wide);
  font-size: clamp(2.35rem, 5.4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.012em;
}

h2, .h2-like {
  font-stretch: var(--wide);
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -.008em;
}

h3 {
  font-stretch: var(--semi);
  font-size: 1.2rem;
  line-height: 1.25;
}

p { margin: 0; max-width: 38em; }

sub { font-size: .72em; line-height: 0; vertical-align: -.25em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--deep);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 4px;
}
.skip:focus { top: 1rem; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand img { width: 9.5rem; height: auto; }

.nav-toggle { display: none; }

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
}
.nav a:hover { color: var(--teal-text); }

.nav .nav-cta {
  color: #fff;
  background: var(--deep);
  padding: .55rem 1.05rem;
  border-radius: 999px;
}
.nav .nav-cta:hover { color: #fff; background: var(--teal-text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-stretch: var(--semi);
  text-decoration: none;
  border: 2px solid var(--deep);
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--teal-text); border-color: var(--teal-text); color: #fff; }
.btn-secondary { background: transparent; color: var(--deep); }
.btn-secondary:hover { background: var(--mist); color: var(--deep); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy { display: grid; gap: 1.5rem; }
.hero-copy .lede { font-size: 1.18rem; color: var(--slate); max-width: 31em; }
.hero-copy .actions { margin-top: .5rem; }

.dam { width: 100%; margin: 0; }
.dam figcaption {
  margin-top: .75rem;
  font-size: .85rem;
  color: var(--slate);
  max-width: none;
}

/* Diagram drawing */
.dam svg { overflow: visible; }
.d-earth { fill: var(--earth); }
.d-strata { stroke: var(--line); stroke-width: 1; fill: none; }
.d-ground { stroke: var(--deep); stroke-width: 2; }
.d-line { stroke: var(--deep); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.d-thin { stroke: var(--slate); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.d-fill { fill: var(--paper); stroke: var(--deep); stroke-width: 2; }
.d-water { fill: url(#d-water-grad); }
.d-tank { fill: #e3eaed; }
.d-cap { fill: var(--teal); }
.d-base { fill: var(--slate); }
.d-pipe { fill: none; stroke: var(--slate); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.d-flow { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 4 8; }
.d-turbine { fill: #eef3f5; stroke: var(--slate); stroke-width: 2; }
.d-wisp { fill: none; stroke: #aebdc4; stroke-width: 3; stroke-linecap: round; opacity: .8; }
.d-panel-face { fill: #cfe7f0; }
.d-panel-grid { fill: none; stroke: var(--slate); stroke-width: 1; opacity: .55; }
.d-wire { fill: none; stroke: var(--slate); stroke-width: 2; }
.d-spark path { fill: var(--sky); }
.d-spark { opacity: 0; }
.d-cavern { fill: #d6e8ee; stroke: var(--deep); stroke-width: 2; }
.d-gas { stroke: var(--teal); stroke-width: 3; fill: none; stroke-dasharray: 2 9; stroke-linecap: round; }
.d-gas-drop { stroke: var(--teal); stroke-width: 3; fill: none; stroke-dasharray: 2 9; stroke-linecap: round; }
.d-power { stroke: var(--sky); stroke-width: 3; fill: none; stroke-linecap: round; }
.d-bubble { fill: var(--teal); opacity: .45; }
.d-label { font-family: "Archivo", Arial, sans-serif; font-size: 13px; font-weight: 600; fill: var(--deep); font-stretch: 108%; }
.d-note { font-family: "Archivo", Arial, sans-serif; font-size: 12px; fill: var(--slate); }

.d-level-a { transform: translateY(96px); }
.d-level-b { transform: translateY(150px); }

@media (prefers-reduced-motion: no-preference) {
  .d-gas { animation: gasflow 1.6s linear infinite; }
  .d-power { stroke-dasharray: 6 8; animation: gasflow 1.2s linear infinite; }
  .d-flow-a { animation: gasflow 1s linear infinite, flow-a-visible 14s steps(1) infinite; }
  .d-flow-b { animation: gasflow 1s linear infinite, flow-b-visible 14s steps(1) infinite; }
  .d-gas-drop-a { animation: gasflow 1.2s linear infinite, flow-a-visible 14s steps(1) infinite; }
  .d-gas-drop-b { animation: gasflow 1.2s linear infinite, flow-b-visible 14s steps(1) infinite; }
  .d-wisp { animation: wisp 3.5s ease-in-out infinite alternate; }
  .d-wisp-2 { animation-delay: -1.75s; }
  .d-wisp-group-a { animation: flow-a-visible 14s steps(1) infinite; }
  .d-wisp-group-b { animation: flow-b-visible 14s steps(1) infinite; }
  .d-rotor { transform-box: fill-box; transform-origin: center; animation: rotor-direction 14s linear infinite; }
  .d-rotor-blades { transform-box: view-box; transform-origin: 46px 150px; animation: spin 2.4s linear infinite; }
  .d-level-a { animation: level-a 7s ease-in-out infinite alternate; }
  .d-level-b { animation: level-b 7s ease-in-out infinite alternate; }
  .d-spark { animation: spark-travel 3.2s linear infinite; }
  .d-bubble { transform-box: fill-box; transform-origin: center; animation: bubble-rise 3.8s ease-in infinite; }
  .d-bubble-1 { animation-delay: -.2s; }
  .d-bubble-2 { animation-delay: -1.7s; }
  .d-bubble-3 { animation-delay: -2.6s; }
  .d-bubble-4 { animation-delay: -.9s; }
  .d-bubble-5 { animation-delay: -3.3s; }
  .d-bubble-6 { animation-delay: -1.2s; }
  .d-bubble-7 { animation-delay: -2.1s; }
}

@keyframes gasflow { to { stroke-dashoffset: -22; } }
@keyframes spin { to { transform: rotate(360deg); } }
/* Clockwise while tank A drains (0-7s), counter-clockwise while tank B drains (7-14s),
   two full turns each way so the reversal lands back on the same visual angle. */
@keyframes rotor-direction {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(720deg); }
  100% { transform: rotate(0deg); }
}
@keyframes level-a { from { transform: translateY(96px); } to { transform: translateY(150px); } }
@keyframes level-b { from { transform: translateY(150px); } to { transform: translateY(96px); } }

/* Tank A drains during the first half of the shared 14s cycle (matching level-a),
   tank B drains during the second half (matching level-b). */
@keyframes flow-a-visible {
  0%   { opacity: 1; }
  49.9%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes flow-b-visible {
  0%   { opacity: 0; }
  49.9%  { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes wisp { from { opacity: .35; transform: translateY(4px); } to { opacity: .9; transform: translateY(-4px); } }
@keyframes spark-travel {
  0%   { transform: translate(360px, 139px); opacity: 0; }
  6%   { opacity: 1; }
  35%  { transform: translate(360px, 210px); opacity: 1; }
  38%  { transform: translate(360px, 210px); opacity: 1; }
  80%  { transform: translate(500px, 210px); opacity: 1; }
  83%  { transform: translate(500px, 210px); opacity: 1; }
  95%  { transform: translate(500px, 150px); opacity: 1; }
  100% { transform: translate(500px, 150px); opacity: 0; }
}

@keyframes bubble-rise {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: .55; }
  80%  { opacity: .55; }
  100% { transform: translateY(-18px); opacity: 0; }
}

/* ---------- Datasheet ---------- */

.spec-band { border-block: 1px solid var(--line); background: var(--mist); }

.spec {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}

.spec div {
  padding: 1.4rem 1.25rem 1.5rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: .3rem;
}
.spec div:first-child { border-left: 0; padding-left: 0; }

.spec dt { font-size: .9rem; color: var(--slate); line-height: 1.35; }
.spec dd {
  margin: 0;
  font-stretch: var(--wide);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  color: var(--deep);
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.spec dd small { font-size: .55em; font-weight: 600; margin-left: .15em; }


/* Video preview: self-hosted illustration, real video loads on click */
.video-block {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
}
.video-card .video-embed { max-width: 20rem; }
.video-embed.on-dark { border-color: rgba(255, 255, 255, .25); }

.video-embed-thumb {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.video-embed-thumb-img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--mist); }

.play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform .15s ease;
}
.play-btn svg { width: 3.25rem; height: 3.25rem; filter: drop-shadow(0 2px 6px rgba(17, 84, 103, .35)); }
.play-btn circle { fill: var(--deep); }
.play-btn path { fill: #fff; }
.video-embed-thumb:hover .play-btn,
.video-embed-thumb:focus-visible .play-btn { transform: scale(1.08); }

.video-embed-frame { width: 100%; height: 100%; border: 0; display: block; }

.video-caption { font-size: .85rem; color: var(--slate); margin-top: .5rem; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); max-width: 44rem; }
.section-head p { color: var(--slate); font-size: 1.1rem; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  gap: .6rem;
  align-content: start;
  padding-top: 1.25rem;
  border-top: 3px solid var(--sky);
}
.steps li::before {
  content: counter(step);
  font-stretch: var(--wide);
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal-text);
}

.aside-note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--mist);
  border-radius: 6px;
}
.aside-note h3 { margin-bottom: .5rem; }

/* Underground — the one dark band */
.underground { background: var(--deep); color: #dcecf1; }
.underground h2 { color: #fff; }
.underground .section-head p { color: #b9d6df; }
.underground a { color: var(--sky); }
.underground a:hover { color: #fff; }


.underground .more { margin-top: 1.75rem; }

/* About */
.about { background: var(--mist); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.about-text { display: grid; gap: 1.1rem; align-content: start; }

.founders { display: grid; gap: 1.5rem; margin-top: 1rem; }
.founder { display: grid; gap: .2rem; padding-left: 1.1rem; border-left: 3px solid var(--sky); }
.founder .role { color: var(--slate); font-size: .95rem; }
.founder p { color: var(--ink); }
.founder-links { font-size: .9rem; margin-top: .1rem; }

.photo-slot {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--teal);
  border-radius: 6px;
  color: var(--teal-text);
  background: rgba(255, 255, 255, .6);
  text-align: center;
  padding: 1.5rem;
  font-size: .95rem;
  overflow: hidden;
}
.photo-slot.is-filled {
  display: block;
  border-style: solid;
  border-color: var(--line);
  padding: 0;
  background: var(--mist);
}
.photo-slot.is-filled picture { display: block; width: 100%; height: 100%; }
.photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Wide facility photo, Technology section */
.research-note { margin-top: 1.5rem; font-size: .9rem; color: var(--slate); max-width: 40rem; }
.tech-photo { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.tech-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.tech-photo figcaption {
  margin-top: .75rem;
  font-size: .85rem;
  color: var(--slate);
}

.timeline { margin: 2.5rem 0 0; padding: 0; list-style: none; }
.timeline li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.timeline time {
  font-stretch: var(--wide);
  font-weight: 700;
  color: var(--deep);
  font-variant-numeric: lining-nums;
}
.timeline strong { color: var(--deep); font-weight: 650; }

.patents {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  background: var(--paper);
  border-radius: 6px;
  border: 1px solid var(--line);
}
.patents strong { color: var(--deep); }

/* FAQ */
.faq-list { max-width: 50rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.25rem;
  font-weight: 650;
  font-stretch: var(--semi);
  font-size: 1.1rem;
  color: var(--deep);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--teal-text);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding-bottom: 1.4rem; color: var(--slate); }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.contact .section-head { margin-bottom: 1.75rem; }
.contact-details { display: grid; gap: 1.25rem; margin: 0; }
.contact-details div { display: grid; gap: .1rem; }
.contact-details dt { font-size: .9rem; color: var(--slate); }
.contact-details dd { margin: 0; font-weight: 500; }

/* Footer */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: .92rem; color: var(--slate); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; }
.site-footer img { width: 7.5rem; }
.site-footer p { max-width: none; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 1.25rem; padding-block: var(--section); }

/* Draft markers — remove before launch */
.todo {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  color: #8a5a00;
  background: #fff4d6;
  border: 1px dashed #d9a400;
  border-radius: 4px;
  padding: .05rem .45rem;
  vertical-align: .1em;
}

.spec-note { margin: 0; padding-bottom: 1rem; font-size: .85rem; color: var(--slate); max-width: none; }

/* Comparison */
.compare { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.compare .section-head { margin-bottom: 2rem; }

.table-scroll { overflow-x: auto; }
.compare-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 1rem;
  line-height: 1.4;
}
.compare-table caption { caption-side: bottom; text-align: left; font-size: .85rem; color: var(--slate); padding-top: .9rem; }
.compare-table th,
.compare-table td {
  text-align: left;
  vertical-align: middle;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  vertical-align: bottom;
  font-weight: 700;
  font-stretch: var(--semi);
  font-size: .95rem;
  color: var(--deep);
  border-bottom: 2px solid var(--deep);
}
.compare-table thead td { border-bottom: 2px solid var(--deep); }
.compare-table tbody th { width: 24%; font-weight: 600; color: var(--ink); }
.compare-table col, .compare-table thead th { width: 19%; }

.compare-table .chex-col {
  background: var(--deep);
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .16);
}
.compare-table thead .chex-col {
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid var(--sky);
  font-size: 1.05rem;
  padding-top: 1.25rem;
}
.compare-table tbody tr:last-child .chex-col { border-radius: 0 0 8px 8px; border-bottom: 0; }
.compare-table .chex-col strong { font-weight: 700; color: #fff; font-size: 1.05rem; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
}
.mark::before {
  content: "";
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: .8rem;
}
.mark.yes::before { background-color: var(--sky); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3 4.8 9 10 3' fill='none' stroke='%23115467' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mark.no::before { background-color: #e4ecef; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3 9 9 M9 3 3 9' fill='none' stroke='%234f6573' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mark.partly::before { background-color: #e4ecef; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6 H9' fill='none' stroke='%234f6573' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mark.no, .mark.partly { color: var(--slate); font-weight: 500; }
.chex-col .mark { color: #fff; }
.chex-col .note { color: #cfe3e9; }
.note { display: block; font-size: .82rem; color: var(--slate); margin-top: .2rem; padding-left: 1.8rem; }

.video-card {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: center;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.video-card h3 { margin-bottom: .35rem; }
.video-card p { color: var(--slate); }

/* Progress */
.progress { background: var(--mist); }
.progress-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.roadmap { margin: 0; padding: 0; list-style: none; counter-reset: stage; }
.roadmap li {
  counter-increment: stage;
  position: relative;
  display: grid;
  gap: .3rem;
  padding: 0 0 1.75rem 3.25rem;
}
.roadmap li::before {
  content: counter(stage);
  position: absolute;
  left: 0;
  top: -.1rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: .95rem;
  background: var(--paper);
  color: var(--deep);
  border: 2px solid var(--deep);
}
.roadmap li::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.1rem;
  bottom: .1rem;
  width: 2px;
  background: var(--line);
}
.roadmap li:last-child::after { display: none; }
.roadmap .done::before { background: var(--deep); color: #fff; }
.roadmap .current::before { background: var(--sky); border-color: var(--sky); color: var(--deep); }
.roadmap .status { font-size: .85rem; font-weight: 600; color: var(--teal-text); }
.roadmap .current .status { color: var(--deep); }
.roadmap p { color: var(--slate); }

.progress .timeline { margin-top: 2rem; }

/* Sites and partners — the one dark band */
.partners-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.partners-intro .section-head { margin-bottom: 0; }

.photo-slot.on-dark { border-color: var(--sky); color: var(--sky); background: rgba(255, 255, 255, .05); }

.profiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 2.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.profiles li {
  display: grid;
  gap: .55rem;
  align-content: start;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.profiles h3 { color: var(--sky); }
.profiles p { color: #cfe3e9; }
.profiles .profiles-cta {
  padding: 1.5rem;
  border-top: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(83, 192, 228, .45);
}
.profiles-cta h3 { color: #fff; }
.profiles-cta .btn { justify-self: start; margin-top: .5rem; }
.btn-light { background: var(--sky); border-color: var(--sky); color: var(--deep); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--deep); }
.underground .btn-light, .underground .btn-light:hover { color: var(--deep); }

/* Recognition and press */
.recognition { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.recognition h3 { margin-bottom: 1.25rem; }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem clamp(1.5rem, 4vw, 2.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-row li {
  flex: 0 0 auto;
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.5rem;
  border-radius: 6px;
  background: var(--paper);
}
.logo-row li.fill {
  padding: 0;
  overflow: hidden;
}
.logo-row .logo-text {
  color: var(--slate);
  font-stretch: var(--wide);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  text-align: center;
}
.logo-link {
  display: block;
  height: 100%;
}
.logo-link picture { display: block; height: 100%; }
.logo-link img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}
.press { margin-top: 1.75rem; }
.press p { color: var(--slate); }
.press h4 {
  font-size: 1rem;
  font-stretch: var(--semi);
  color: var(--deep);
  margin-bottom: .75rem;
}
.press-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .6rem;
  max-width: 34rem;
}
.press-list a { font-size: .95rem; }

/* ---------- Responsive ---------- */

@media (max-width: 60rem) {
  .hero .wrap,
  .partners-intro,
  .progress-grid,
  .about-grid,
  .contact .wrap { grid-template-columns: minmax(0, 1fr); }

  .spec { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec div:nth-child(4) { border-left: 0; padding-left: 0; }
  .spec div:nth-child(n + 4) { border-top: 1px solid var(--line); }

  .profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside-note { grid-template-columns: minmax(0, 1fr); }
  .video-block { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); }
}

@media (max-width: 46rem) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.75rem;
    padding: .5rem .9rem;
    border: 1.5px solid var(--deep);
    border-radius: 999px;
    background: transparent;
    color: var(--deep);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .js .nav { display: none; }
  .js .nav.is-open {
    display: block;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0; padding: .8rem 1rem; }

  html:not(.js) .site-header .wrap { flex-direction: column; align-items: flex-start; padding-block: 1rem; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; gap: .5rem 1rem; }
  html:not(.js) .nav li a { border: 0; padding: 0; }

  .brand img { width: 8rem; }

  .steps,
  .profiles { grid-template-columns: minmax(0, 1fr); }

  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec div { padding: 1.1rem 1rem 1.2rem; }
  .spec div:nth-child(n) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); padding-left: 1rem; }
  .spec div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .spec div:nth-child(-n + 2) { border-top: 0; }
  .spec div:last-child { grid-column: 1 / -1; }

  .timeline li { grid-template-columns: minmax(0, 1fr); gap: .25rem; }

  /* comparison table becomes one card per criterion, CHEX first */
  .compare-table { min-width: 0; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
  .compare-table caption { display: block; width: 100%; }
  .compare-table tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 1rem; overflow: hidden; }
  .compare-table tbody th { width: auto; font-size: 1.05rem; font-weight: 700; color: var(--deep); border-bottom: 0; padding: .9rem 1rem .6rem; }
  .compare-table .chex-col { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .75rem; align-items: center; padding: .8rem 1rem; }
  .compare-table tbody tr:last-child .chex-col { border-radius: 0; }
  .compare-table .chex-col::before { content: "CHEX"; font-weight: 700; font-stretch: var(--wide); color: var(--sky); font-size: .9rem; }
  .compare-table td[data-label] { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .75rem; align-items: start; padding: .6rem 1rem; font-size: .95rem; }
  .compare-table td[data-label]::before { content: attr(data-label); font-size: .82rem; color: var(--slate); padding-top: .15rem; }
  .compare-table tr td:last-child { border-bottom: 0; }
  .note { padding-left: 0; }
  .video-card { grid-template-columns: minmax(0, 1fr); }
  .video-block { grid-template-columns: minmax(0, 1fr); }
  .video-card .video-embed,
  .video-block .video-embed { max-width: none; }

  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 46rem) {
  .d-label { font-size: 17px; }
  .d-note { font-size: 14.5px; }
}
