/* ============================================================
   SUNVANTAGE SOLUTIONS — design tokens + base system
   Warm, human, credible. Restrained.
   ============================================================ */

:root {
  /* palette */
  --paper: #FBFAF7;
  --paper-deep: #F4F2EB;
  --ink: #1E2019;
  --steel: #5A5E54;
  --amber: #C8873F;        /* graphics, rules, large display only */
  --amber-text: #8F5A1D;   /* >=4.5:1 on paper — use for text/links */
  --hairline: #E5E3DC;
  --ink-deep: #14160F;          /* image overlays, footer */
  --overlay: linear-gradient(180deg, rgba(20,22,15,0) 30%, rgba(20,22,15,.78) 100%);
  /* brand (from the Sunvantage logo) — green + gold, used for the identity
     mark and the audit/dashboard feature block */
  --green: #0F7C3E;
  --green-deep: #0B5730;
  --gold: #F2C712;

  /* one shared warm grade wash — pulls every hero/band to one golden-hour point (SPEC §6) */
  --img-grade: saturate(.9) contrast(1.03) sepia(.06) brightness(1.015);
  --warm-wash: linear-gradient(0deg, rgba(200,135,63,.10), rgba(200,135,63,.045));

  /* type */
  --sans: 'Hanken Grotesk', system-ui, 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  /* rhythm */
  --w-max: 1200px;
  --w-prose: 62ch;
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: 6rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.58;
  font-kerning: normal;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--amber-text); outline-offset: 2px; }

/* ---------- type ---------- */
h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
h1.on-img { color: var(--paper); text-shadow: 0 1px 24px rgba(20,22,15,.35); }
h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 30ch;
}
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
body { font-weight: 400; }
strong { font-weight: 600; }
p  { max-width: var(--w-prose); }
.lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
  color: var(--steel);
  max-width: 52ch;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin-bottom: var(--sp-2);
}
a { color: var(--amber-text); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color .15s ease; }
a:hover { color: var(--ink); }

/* ---------- layout ---------- */
.wrap { max-width: var(--w-max); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(2.8rem, 7vw, 5.5rem); }
.section--alt { background: var(--paper-deep); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section--hairline { border-top: 1px solid var(--hairline); }
.section--tall { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--tight { padding-block: clamp(1.8rem, 4vw, 3rem); }
.stack > * + * { margin-top: var(--sp-3); }
.grid-3 {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}
/* heading-left / body-right sections: weight to the body and rule the heading
   so the left column reads as intentional structure, not an empty gutter */
.grid-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--sp-5); }
.grid-head > h2 { padding-top: var(--sp-2); border-top: 2px solid var(--ink); align-self: start; }
.grid-head .stack > p { max-width: 54ch; }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; gap: var(--sp-3); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-head { grid-template-columns: 1fr; }
  .grid-head > h2 { border-top: none; padding-top: 0; }
}

/* restatement aside: hairline-ruled key points, no new copy */
.key-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.key-list li {
  border-bottom: 1px solid var(--hairline);
  padding: var(--sp-3) 0 var(--sp-3) 2.6rem;
  position: relative; color: var(--steel);
}
.key-list li::before {
  content: ""; position: absolute; left: 0; top: calc(var(--sp-3) + 0.55em);
  width: 1.5rem; height: 2px; background: var(--amber);
}
.key-list strong { color: var(--ink); font-weight: 700; }

/* ---------- nav ---------- */
.site-nav {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); padding-block: 0.85rem;
  position: relative;
}
.wordmark {
  display: inline-flex; align-items: center;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.wordmark img { height: 2.6rem; width: auto; display: block; }
.wordmark span { color: var(--amber-text); }
.site-nav nav { display: flex; align-items: center; gap: var(--sp-3); flex: 1; justify-content: flex-end; }
.site-nav ul {
  display: flex; gap: clamp(0.9rem, 2.6vw, 1.8rem);
  list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.site-nav ul a:not(.btn) {
  color: var(--steel); text-decoration: none; font-size: 0.95rem;
  transition: color .15s ease;
}
.site-nav ul a:not(.btn):hover { color: var(--ink); }
.site-nav ul a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.site-nav ul .btn { font-size: 0.92rem; padding: 0.6rem 1.15rem; }
.nav-toggle {
  display: none;
  align-items: center; gap: 0.5rem;
  font: inherit; font-size: 0.95rem; font-weight: 600;
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink); padding: 0.5rem 0.95rem;
  cursor: pointer;
}
.nav-toggle::before {
  content: ""; width: 1.05em; height: 0.8em; flex: none;
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left 50% / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 100% 2px no-repeat;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav ul {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem clamp(1.1rem, 4vw, 2rem) 1rem;
    z-index: 50;
  }
  .nav-toggle[aria-expanded="true"] + ul { display: flex; }
  .site-nav ul li { border-top: 1px solid var(--hairline); }
  .site-nav ul li:first-child { border-top: 0; }
  .site-nav ul a:not(.btn) { display: block; padding: 0.95rem 0; font-size: 1rem; }
  .site-nav ul a[aria-current="page"] { border-bottom: 0; color: var(--ink); font-weight: 600; }
  .site-nav ul li.nav-cta-item { border-top: 0; padding-top: 0.85rem; }
  .site-nav ul .btn { display: block; text-align: center; }
}

/* ---------- heroes: full-bleed image (SPEC §4) ---------- */
.hero-full {
  position: relative;
  min-height: 72vh;
  display: flex; align-items: flex-end;
  background: var(--ink-deep);
}
.hero-full > img, .hero-full > picture {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-full > img, .hero-full > picture img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--img-grade);
}
/* per-hero framing so type sits over negative space, not a hot-spot (SPEC §6) */
.hero-full:not(.hero-band) > img,
.hero-full:not(.hero-band) > picture img { object-position: 30% 70%; }
.hero-band > img, .hero-band > picture img { object-position: center 42%; }
.hero-full::after {
  content: "";
  position: absolute; inset: 0;
  background:
    var(--warm-wash),
    linear-gradient(90deg, rgba(20,22,15,.52) 0%, rgba(20,22,15,.18) 45%, rgba(20,22,15,0) 68%),
    var(--overlay);
  pointer-events: none;
}
/* index hero runs bright at top-right; knock it down so the set reads as one grade */
@media (min-width: 861px) {
  .hero-full:not(.hero-band)::after {
    background:
      var(--warm-wash),
      linear-gradient(90deg, rgba(20,22,15,.52) 0%, rgba(20,22,15,.18) 45%, rgba(20,22,15,0) 68%),
      linear-gradient(160deg, rgba(20,22,15,.34) 0%, rgba(20,22,15,.05) 34%, rgba(20,22,15,0) 55%),
      var(--overlay);
  }
  /* interior heroes: lighter top ramp so they don't read dimmer than the homepage */
  .hero-band::after {
    background:
      var(--warm-wash),
      linear-gradient(90deg, rgba(20,22,15,.44) 0%, rgba(20,22,15,.12) 42%, rgba(20,22,15,0) 66%),
      linear-gradient(180deg, rgba(20,22,15,0) 46%, rgba(20,22,15,.72) 100%),
      var(--overlay);
  }
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.hero-content .eyebrow { color: #DE9E58; text-shadow: 0 1px 12px rgba(20,22,15,.55); font-weight: 600; }
.hero-content .eyebrow::before {
  content: ""; display: block; width: 2rem; height: 2px;
  background: #DE9E58; margin-bottom: 0.9rem;
}
.hero-content .lede { color: rgba(251,250,247,.92); text-shadow: 0 1px 16px rgba(20,22,15,.45); }
/* interior single-line H1s fill the band edge-to-edge (SPEC §1 confident scale) */
.hero-band h1 { font-size: clamp(2.75rem, 8vw, 6.25rem); }
.hero-full + .page-head { padding-block: var(--sp-4) 0; }
@media (max-width: 860px) {
  .hero-full::after {
    background:
      var(--warm-wash),
      linear-gradient(180deg, rgba(20,22,15,.14) 0%, rgba(20,22,15,.58) 62%),
      var(--overlay);
  }
}
.hero-caption {
  position: absolute; right: clamp(0.8rem, 2vw, 1.5rem); bottom: clamp(0.8rem, 2vw, 1.2rem);
  z-index: 1;
  font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(251,250,247,.8);
  background: rgba(20,22,15,.4);
  border: 1px solid rgba(251,250,247,.22);
  padding: 0.28rem 0.6rem;
}
.hero-band {
  min-height: 60vh;
}
/* interior heroes: pin the mono chip top-right, clear of the bottom-aligned H1 */
.hero-band .hero-caption { top: clamp(0.8rem, 2vw, 1.2rem); bottom: auto; }
@media (max-width: 860px) {
  .hero-full { min-height: 60vh; }
  .hero-band { min-height: 40vh; }
  /* keep the mono chip off the bottom-aligned H1 on interior heroes */
  .hero-band .hero-caption { top: 0.6rem; bottom: auto; }
}

/* ---------- experience strip (SPEC §3 stat band; mono numerals, Plus Power ref) ---------- */
.stat-band { background: transparent; position: relative; z-index: 2; }
.stat-band .wrap {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  box-shadow: 0 1px 2px rgba(30,32,25,.05), 0 20px 48px -24px rgba(30,32,25,.22);
  padding-block: var(--sp-4);
}
.stat-band + .section { padding-top: clamp(3.6rem, 8vw, 6rem); }
.stat-eyebrow { margin-bottom: var(--sp-3); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat-cell {
  padding-left: var(--sp-3);
  border-left: 1px solid var(--hairline);
}
.stat-cell:first-child { border-left: 0; padding-left: 0; }
.stat-value { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(1.7rem, 2.9vw, 2.5rem); letter-spacing: -0.01em; color: var(--ink); line-height: 1.05; }
.stat-label { display: block; margin-top: 0.55rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); max-width: 26ch; line-height: 1.4; }
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-cell { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; padding-block: var(--sp-2); }
  .stat-cell:first-child { border-top: 0; padding-top: 0; }
}


/* ---------- blocks ---------- */
.block h3 { margin-bottom: 0.55rem; }
.block h3::before {
  content: "";
  display: block; width: 2rem; height: 3px;
  background: var(--amber);
  margin-bottom: 0.9rem;
}
.block p { color: var(--steel); font-size: 1rem; }

/* ---------- cards (SPEC §5) ---------- */
.card {
  border: 1px solid var(--hairline);
  background: var(--paper);
  display: flex; flex-direction: column;
  color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(30,32,25,.05), 0 8px 24px -12px rgba(30,32,25,.16);
  transition: transform .32s cubic-bezier(.22,.61,.36,1), border-color .32s ease, box-shadow .32s ease;
  will-change: transform;
}
a.card:hover, a.card:focus-within { transform: translateY(-6px); border-color: var(--steel); box-shadow: 0 4px 8px rgba(30,32,25,.05), 0 22px 44px -20px rgba(30,32,25,.30); }
a.card:focus-visible { outline: 2px solid var(--amber-text); outline-offset: 3px; }
.card-media { position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline); }
.card-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: var(--img-grade); transition: transform .5s cubic-bezier(.22,.61,.36,1), filter .5s ease; }
a.card:hover .card-media img, a.card:focus-within .card-media img { transform: scale(1.05); filter: saturate(.98) contrast(1.05) sepia(.06) brightness(1.06); }
.card-media .hero-caption { font-size: 0.56rem; right: 0.5rem; bottom: 0.5rem; padding: 0.2rem 0.45rem; }
.card-body { padding: var(--sp-3); }
.card-body h3 { margin-bottom: 0.55rem; }
.card-body h3::before {
  content: "";
  display: block; width: 2rem; height: 3px;
  background: var(--amber);
  margin-bottom: 0.9rem;
}
.card-body p { color: var(--steel); font-size: 1rem; }
.card-more { margin-top: auto; padding: 0 var(--sp-3) var(--sp-3); }
.card-more span {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber-text); display: inline-block; transition: transform .3s cubic-bezier(.22,.61,.36,1), color .3s ease;
}
a.card:hover .card-more span, a.card:focus-within .card-more span { color: var(--ink); transform: translateX(3px); }

/* ---------- contact form (SPEC §5) ---------- */
.contact-band .wrap {
  display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-5);
  align-items: start;
}
.contact-form { display: grid; gap: var(--sp-2); }
.contact-form label {
  display: block;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 0.35rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 0.7rem 0.85rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:hover, .contact-form textarea:hover { border-color: var(--steel); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--amber-text); outline-offset: 0;
  border-color: var(--amber-text);
}
.contact-form button.btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.contact-form button.btn[disabled] { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.98rem; color: var(--steel); }
.form-error { font-size: 0.92rem; color: var(--amber-text); }
@media (max-width: 860px) {
  .contact-band .wrap { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* ---------- CTA ---------- */
.cta-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin-top: var(--sp-3); }
.btn {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  padding: .85rem 1.6rem;
  text-decoration: none; font-weight: 600; font-size: 0.98rem;
  border: 1px solid var(--ink);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--ink-deep); color: var(--paper); transform: translateY(-1px); }
.btn:focus-visible { outline-offset: 3px; }
.btn:not(.btn--ghost):not(.btn--ghost-dark):not(.btn--gold) { position: relative; overflow: hidden; }
.btn:not(.btn--ghost):not(.btn--ghost-dark):not(.btn--gold)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(242,199,18,.16) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn:not(.btn--ghost):not(.btn--ghost-dark):not(.btn--gold):hover::after { transform: translateX(120%); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-dark { background: transparent; color: var(--paper); border-color: rgba(251,250,247,.6); }
.btn--ghost-dark:hover { background: rgba(251,250,247,.14); color: var(--paper); border-color: var(--paper); }
.btn--ghost-dark:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.contact-line { font-family: var(--mono); font-size: 0.95rem; color: var(--steel); }
.contact-line a { color: var(--amber-text); }
a[href^="tel:"] { white-space: nowrap; }

/* ---------- steps (how) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 62ch; }
.steps li {
  counter-increment: step;
  padding: var(--sp-3) 0 var(--sp-3) 3.4rem;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: var(--sp-3);
  font-family: var(--mono); font-size: 0.95rem; color: var(--amber-text);
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--steel); font-size: 1rem; line-height: 1.6; }

/* ---------- footer: title-block discipline ---------- */
.site-footer {
  margin-top: var(--sp-6);
  border-top: 2px solid var(--gold);
  background: var(--green-deep);
  color: var(--paper);
}
.footer-logo { display: block; height: 3rem; width: auto; margin-bottom: var(--sp-3); filter: brightness(0) invert(1); }
.footer-block {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-left: 1px solid rgba(251,250,247,.14);
  border-right: 1px solid rgba(251,250,247,.14);
}
.footer-cell {
  padding: var(--sp-3);
  border-right: 1px solid rgba(251,250,247,.14);
  font-size: 0.92rem;
}
.footer-cell:last-child { border-right: 0; }
.footer-label {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.7rem;
}
.footer-cell p, .footer-cell li { color: rgba(251,250,247,.78); }
.footer-cell ul { list-style: none; margin: 0; padding: 0; }
.footer-cell li + li { margin-top: 0.35rem; }
.footer-cell a { color: rgba(251,250,247,.85); text-decoration: none; transition: color .15s ease; }
.footer-cell a:hover { color: var(--paper); text-decoration: underline; }
.footer-legal {
  border-top: 1px solid rgba(251,250,247,.14);
  padding: var(--sp-2) 0;
  font-family: var(--mono); font-size: 0.78rem; color: rgba(251,250,247,.7);
  display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap;
}
@media (max-width: 760px) {
  .footer-block { grid-template-columns: 1fr; }
  .footer-cell { border-right: 0; border-bottom: 1px solid rgba(251,250,247,.14); }
  .footer-cell:last-child { border-bottom: 0; }
  .footer-cell li a { display: block; padding: 0.35rem 0; }
}

/* ---------- model flow: bespoke branded process diagram (SPEC §3) ---------- */
.model-flow { background: var(--paper-deep); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.model-flow .eyebrow { color: var(--amber-text); }
.flow {
  list-style: none; margin: var(--sp-5) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
}
.flow-stage { position: relative; padding-top: var(--sp-3); border-top: 2px solid var(--green); }
.flow-stage::before {
  content: ""; position: absolute; top: -6px; left: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--paper-deep);
}
.flow-num { font-family: var(--mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--green); }
.flow-stage h3 { margin-top: 0.5rem; }
.flow-stage p { color: var(--steel); font-size: 0.98rem; margin-top: 0.5rem; max-width: none; }
.flow-foot {
  margin-top: var(--sp-4);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber-text);
}
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 0; margin-left: 5px; }
  .flow-stage { border-top: 0; border-left: 2px solid var(--green); padding: 0 0 var(--sp-3) var(--sp-3); }
  .flow-stage::before { top: 2px; left: -6px; }
  .flow-stage:last-child { padding-bottom: 0; }
}

/* ---------- light-flow signature diagram (homepage dominant moment) ---------- */
.flow-viz, .flow-viz-mobile { width: 100%; height: auto; margin: var(--sp-5) 0 var(--sp-4);
  filter: drop-shadow(0 26px 60px rgba(20,22,15,.30)); }
.flow-viz { display: block; }
.flow-viz-mobile { display: none; }
.flow-viz text, .flow-viz-mobile text { font-family: var(--mono); }
.flow-lp { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 16 84; stroke-dashoffset: 100; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.js .flow-lp  { animation: flow-travel 3.4s linear infinite; }
  html.js .flow-lp.u1 { animation-delay: 1.70s; }
  html.js .flow-lp.u2 { animation-delay: 1.82s; }
  html.js .flow-lp.u3 { animation-delay: 1.94s; }
  html.js .flow-lp.u4 { animation-delay: 2.06s; }
  html.js .flow-emit { animation: flow-emit 3.4s ease-in-out infinite; }
  html.js .flow-ex   { animation: flow-pulse 3.4s ease-in-out infinite; }
  html.js .flow-un1  { animation: flow-upulse 3.4s ease-in-out infinite; animation-delay: 1.70s; }
  html.js .flow-un2  { animation: flow-upulse 3.4s ease-in-out infinite; animation-delay: 1.82s; }
  html.js .flow-un3  { animation: flow-upulse 3.4s ease-in-out infinite; animation-delay: 1.94s; }
  html.js .flow-un4  { animation: flow-upulse 3.4s ease-in-out infinite; animation-delay: 2.06s; }
}
@keyframes flow-travel { 0%{stroke-dashoffset:100;opacity:0} 7%{opacity:1} 43%{opacity:1} 50%{stroke-dashoffset:0;opacity:0} 100%{stroke-dashoffset:0;opacity:0} }
@keyframes flow-emit   { 0%,100%{opacity:.4} 10%{opacity:1} 40%{opacity:.4} }
@keyframes flow-pulse  { 0%,34%{opacity:.6} 50%{opacity:1} 72%,100%{opacity:.6} }
@keyframes flow-upulse { 0%,80%{opacity:.55} 92%{opacity:1} 100%{opacity:.62} }
@media (max-width: 860px) { .flow-viz { display: none; } .flow-viz-mobile { display: block; } }

/* ---------- scroll reveal (progressive enhancement; JS + motion only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.22,.61,.36,1) var(--r-delay,0ms), transform .6s cubic-bezier(.22,.61,.36,1) var(--r-delay,0ms); }
  html.js [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- audit / dashboard feature block (brand green + gold) ---------- */
.feature-dark { background: radial-gradient(120% 140% at 18% 30%, #106040 0%, var(--green-deep) 62%); color: var(--paper); }
.feature-dark, .manifesto { border-top: 2px solid var(--gold); }
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5);
  align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem);
}
.feature-dark .eyebrow { color: var(--gold); }
.feature-dark .eyebrow::before {
  content: ""; display: block; width: 2rem; height: 2px;
  background: var(--gold); margin-bottom: 0.9rem;
}
.feature-dark h2 { color: var(--paper); max-width: 14ch; font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -0.025em; line-height: 1.06; }
.feature-dark p { color: rgba(251,250,247,.9); max-width: 46ch; }
.feature-media { margin: 0; }
.feature-media img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 24px 55px rgba(0,0,0,.4));
}
.feature-caption {
  font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(251,250,247,.78); margin-top: var(--sp-2);
}
.btn--gold { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }
.btn--gold:hover { background: #ffdb3d; color: var(--green-deep); border-color: #ffdb3d; }
.btn--gold:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .feature-dark h2 { max-width: none; }
}

/* ---------- signature manifesto band (real sunburst, off-edge) ---------- */
.manifesto {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
  color: var(--paper);
  padding-block: clamp(4.5rem, 11vw, 9rem);
  isolation: isolate;
}
.manifesto-sun {
  position: absolute;
  right: -8%; bottom: -22%;
  width: clamp(360px, 52vw, 720px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
  transform-origin: center;
}
.manifesto::before {
  content: ""; position: absolute; right: -8%; bottom: -22%;
  width: clamp(360px, 52vw, 720px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242,199,18,.14), transparent 62%);
  z-index: 0; pointer-events: none;
}
@keyframes sun-rotate { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(4deg); } }
@keyframes sun-glow { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .manifesto-sun { animation: sun-rotate 14s ease-in-out infinite; }
  .manifesto::before { animation: sun-glow 14s ease-in-out infinite; }
}
.manifesto-inner { position: relative; z-index: 1; }
.manifesto-eyebrow { color: var(--gold); margin-bottom: var(--sp-3); }
.manifesto-eyebrow::before {
  content: ""; display: block; width: 2.4rem; height: 2px;
  background: var(--gold); margin-bottom: 1rem;
}
.manifesto-line {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--paper);
  max-width: 16ch;
  font-size: clamp(2.9rem, 8.5vw, 6.5rem);
  text-wrap: balance;
}
.manifesto-sub {
  font-family: var(--mono);
  font-size: clamp(.8rem, 1.4vw, .95rem);
  letter-spacing: 0.08em;
  color: rgba(251,250,247,.72);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(251,250,247,.16);
  display: inline-block;
}
@media (max-width: 860px) {
  .manifesto-sun { right: -24%; bottom: -14%; width: 82vw; opacity: .82; }
  .manifesto-line { max-width: 12ch; }
}

/* ---------- bespoke meter statement (replaces the borrowed dashboard) ---------- */
.meter-fig { margin: 0; }
.meter-statement {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--hairline);
  filter: drop-shadow(0 24px 55px rgba(0,0,0,.4));
}
.meter-statement text { font-family: var(--sans); }
.ms-ey         { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: 2px; fill: var(--amber-text); }
.ms-sub        { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; fill: var(--steel); }
.ms-k          { font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px; fill: var(--steel); }
.ms-num        { font-family: var(--mono); font-size: 34px; font-weight: 500; fill: var(--ink); letter-spacing: -.5px; }
.ms-unit       { font-size: 14px; fill: var(--steel); letter-spacing: 0; }
.ms-credit-lbl { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; fill: var(--amber-text); }
.ms-hero       { font-family: var(--mono); font-size: 76px; font-weight: 500; fill: var(--green-deep); letter-spacing: -2px; }
.ms-sub2       { font-family: var(--sans); font-size: 16px; fill: var(--steel); }
.ms-foot       { font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; fill: var(--ink); }
.ms-note       { font-family: var(--mono); font-size: 10.5px; letter-spacing: .4px; fill: var(--steel); }
/* on small screens the fixed-viewBox statement downscales; enlarge the smallest
   labels (incl. the doctrine-critical representative footnote) so they stay legible */
@media (max-width: 860px) {
  .ms-sub, .ms-credit-lbl, .ms-foot, .ms-note { font-size: 15px; }
}

/* ---------- page header pattern (interior pages) ---------- */
.page-head { padding-block: clamp(2.6rem, 6vw, 4.5rem) 0; }
.page-head .lede {
  margin-top: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.32; max-width: 40ch; color: var(--ink);
}
/* one commanding statement line per interior page (reuses existing copy) */
.page-head .lede.lede--statement {
  font-size: clamp(1.9rem, 4.6vw, 3.25rem);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 800;
  color: var(--ink); max-width: 20ch;
}
/* deliberate closing transition on interior "read next" paragraphs */
.section-next { border-top: 1px solid var(--hairline); padding-top: var(--sp-3); }
.section-next p { max-width: 46ch; color: var(--steel); }

/* ---------- 404 ---------- */
.page-404 { min-height: 55vh; display: grid; place-content: center; text-align: left; }

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