/* Layout: a forest-green brand band (header + hero) over light content sections in a 1120px column; gold is reserved for the band. */
:root {
  --forest: #0F2E24;
  --leaf: #5CC48E;
  --sun: #F2C230;

  --bg: #F5F8F4;
  --surface: #FFFFFF;
  --fg: #11251D;
  --muted: #4E6057;
  --line: #D6E0D9;
  --chip: #E4EEE7;
  --accent: #1A7A50;
  --accent-fg: #FFFFFF;
  --wordmark-x: #A87D00;

  --band: #0F2E24;
  --band-fg: #EEF5F0;
  --band-muted: #A9C2B5;
  --band-line: rgba(238, 245, 240, 0.18);
  --band-pill: #173F31;
  --cta: #F2C230;
  --cta-fg: #0F2E24;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1813; --surface: #10231B; --fg: #E3EDE7; --muted: #9DB2A7; --line: #23392F;
    --chip: #163128; --accent: #5CC48E; --accent-fg: #0A1813; --wordmark-x: #F2C230;
    --band: #0D2A20; --band-pill: #16392C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1813; --surface: #10231B; --fg: #E3EDE7; --muted: #9DB2A7; --line: #23392F;
  --chip: #163128; --accent: #5CC48E; --accent-fg: #0A1813; --wordmark-x: #F2C230;
  --band: #0D2A20; --band-pill: #16392C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Brand band ---------- */
.band { background: var(--band); color: var(--band-fg); }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 28px; padding-block: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.wordmark {
  font-family: var(--font-display); font-weight: 800; font-stretch: 110%;
  font-size: 25px; letter-spacing: -0.01em; line-height: 1;
}
.wordmark b { color: var(--sun); font-weight: 800; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-nav a {
  color: var(--band-muted); text-decoration: none; font-weight: 500; font-size: 15px;
  padding-block: 6px;
}
.site-nav a:hover { color: var(--band-fg); }
.site-nav a[aria-current="page"] { color: var(--band-fg); box-shadow: inset 0 -2px 0 var(--sun); }

.eyebrow, .kicker {
  font-family: var(--font-mono); font-weight: 500; font-size: 13px;
  letter-spacing: 0.09em; text-transform: uppercase;
}
.band .eyebrow { color: var(--leaf); }
.nocase { text-transform: none; letter-spacing: 0.02em; }
.kicker { color: var(--accent); }

.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px; align-items: center; padding-block: 48px 72px;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero h1, .page-hero h1 {
  font-weight: 750; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.04;
}
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: 16em; }
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--sun); }
.lede { font-size: 19px; color: var(--band-muted); max-width: 34em; }
.hero-note { font-family: var(--font-mono); font-size: 13px; color: var(--band-muted); }

.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; padding-block: 40px 64px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 6px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn-cta { background: var(--cta); color: var(--cta-fg); }
.btn-cta:hover { filter: brightness(1.05); }
.btn-ghost { color: var(--band-fg); box-shadow: inset 0 0 0 1.5px var(--band-line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--band-muted); }

/* Hero diagram */
.flow-figure { margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.flow-figure svg { width: 100%; height: auto; display: block; }
.flow-figure figcaption {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--band-muted);
}
.legend { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 22px; height: 0; border-top: 2px dashed var(--leaf); }
.legend.two-way i { border-top-color: var(--sun); }

.dg-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 8; }
.dg-line.one-way { stroke: var(--leaf); }
.dg-line.two-way { stroke: var(--sun); }
.dg-line.anim { animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.dg-ring { fill: none; stroke: var(--band-line); stroke-width: 1; stroke-dasharray: 3 5; }
.dg-core { fill: var(--band); stroke: var(--leaf); stroke-width: 1.5; }
.dg-pill { fill: var(--band-pill); stroke: var(--band-line); stroke-width: 1; }
.dg-icon { fill: none; stroke: var(--leaf); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dg-label { fill: var(--band-fg); font-family: var(--font-body); font-size: 14px; font-weight: 500; }
.dg-core-label { fill: var(--band-fg); font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: 0.02em; }

@media (prefers-reduced-motion: reduce) {
  .dg-line.anim { animation: none; }
}

/* ---------- Content sections ---------- */
.block { padding-block: 80px; }
.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 44em; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 18px; }
h2 {
  font-weight: 700; font-stretch: 106%; letter-spacing: -0.015em; line-height: 1.12;
  font-size: clamp(28px, 3.3vw, 40px);
}
h3 { font-weight: 700; font-stretch: 104%; font-size: 21px; line-height: 1.25; }

/* Steps: a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.step p { color: var(--muted); }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split > div { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono); font-size: 14px; line-height: 1.3;
  padding: 9px 13px; border-radius: 4px; background: var(--chip); color: var(--fg);
}
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link svg { width: 16px; height: 16px; }
.text-link:hover { text-decoration: underline; }

/* Audience cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
a.card:hover { border-color: var(--accent); }
.card p { color: var(--muted); font-size: 16px; }
.card .more { margin-top: auto; padding-top: 4px; color: var(--accent); font-weight: 600; font-size: 15px; }
.ico {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--chip); color: var(--accent);
}
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Spec-sheet grid (hardware, problems) */
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.spec { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.spec .tag { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.spec p { color: var(--muted); }

/* Audience detail (solutions page) */
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.aud {
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: 10px; background: var(--bg); border: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.aud-head { display: flex; align-items: center; gap: 14px; }
.aud .for { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.aud p { color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 4px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Services row */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; gap: 8px; }
.service p { color: var(--muted); font-size: 16px; }

/* Mission / vision */
.statements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.statement { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 10px; background: var(--chip); }
.statement p {
  font-family: var(--font-display); font-weight: 700; font-stretch: 108%;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.18; letter-spacing: -0.01em; color: var(--fg);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-list .value { font-size: 20px; font-weight: 600; color: var(--fg); text-decoration: none; user-select: all; overflow-wrap: anywhere; }
.contact-list a.value:hover { color: var(--accent); }
.contact-list .note { font-size: 14px; color: var(--muted); }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-side p { color: var(--muted); }

/* CTA band */
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; padding-block: 64px;
}
.cta-band h2 { max-width: 16em; color: var(--band-fg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px 32px; padding-block: 32px;
  font-size: 14px; color: var(--muted);
}
.site-footer .brand { color: var(--fg); }
.site-footer .brand img { width: 30px; height: 30px; }
.site-footer .wordmark { font-size: 20px; }
.site-footer .wordmark b { color: var(--wordmark-x); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero .wrap, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .audience, .statements { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .block { padding-block: 60px; }
}
@media (max-width: 600px) {
  .cards, .services, .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 32px 56px; }
  .lede { font-size: 17.5px; }
  .aud, .statement { padding: 22px; }
}
