:root {
    /* neutrals: cool, slightly blue-biased toward the brand */
    --ground: #EDF2F3;
    --surface: #F7FAFA;
    --ink: #0E2229;
    --ink-soft: #3F565E;
    --line: #C2D2D6;
    /* recovery-hierarchy ramp: highest value (green) to lowest (deep navy) */
    --p1: #17734A;
    --p2: #0E6C7D;
    --p3: #1A5A8F;
    --p4: #27406E;
    /* action accent */
    --accent: #17734A;
    --accent-hover: #1E8C59;
    --cta-ink: #FFFFFF;
    /* structural blue + deep band */
    --blue: #14536E;
    --deep: #0C2B36;
    --on-deep: #E6EFF1;
    --on-deep-soft: #B2C8CF;
    --on-deep-faint: #7C9AA4;
    --on-deep-accent: #6FD3A0;
    /* chart */
    --chart-good: #17734A;
    --chart-neutral: #7C8C91;
    --chart-ink: #FFFFFF;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ground: #0B171C;
      --surface: #122229;
      --ink: #E2ECEE;
      --ink-soft: #9BB0B7;
      --line: #263B43;
      --p1: #4FC48B;
      --p2: #35B0C4;
      --p3: #5AA7DD;
      --p4: #7D93CE;
      --accent: #3DBE80;
      --accent-hover: #5AD199;
      --cta-ink: #06231A;
      --blue: #6FB6D4;
      --deep: #08202A;
      --chart-good: #3FB47D;
      --chart-neutral: #6E8085;
      --chart-ink: #07231A;
    }
  }
  :root[data-theme="dark"] {
    --ground: #0B171C;
    --surface: #122229;
    --ink: #E2ECEE;
    --ink-soft: #9BB0B7;
    --line: #263B43;
    --p1: #4FC48B;
    --p2: #35B0C4;
    --p3: #5AA7DD;
    --p4: #7D93CE;
    --accent: #3DBE80;
    --accent-hover: #5AD199;
    --cta-ink: #06231A;
    --blue: #6FB6D4;
    --deep: #08202A;
    --chart-good: #3FB47D;
    --chart-neutral: #6E8085;
    --chart-ink: #07231A;
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: "Public Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  .display {
    font-family: "Archivo", "Arial Narrow", Arial, sans-serif;
    font-stretch: 115%;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    text-wrap: balance;
    margin: 0;
  }
  .mono {
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
  }
  a { color: var(--p1); }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  p { margin: 0 0 1.1rem; }
  .wrap { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
  .narrow { max-width: 46rem; }
  .soft { color: var(--ink-soft); }

  /* ---------- header / nav ---------- */
  header { position: sticky; top: 0; z-index: 30; background: var(--ground); border-bottom: 1px solid var(--line); }
  .nav { display: flex; align-items: center; gap: 1.25rem; padding: 0.85rem 0; flex-wrap: wrap; }
  .brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
  .brand-mark { width: 34px; height: 34px; flex: none; display: block; }
  .foot-mark { width: 30px; height: 30px; display: block; margin-bottom: 0.6rem; }
  .brand-name { font-family: "Archivo", Arial, sans-serif; font-stretch: 115%; font-weight: 800; text-transform: uppercase; font-size: 0.92rem; letter-spacing: 0.02em; line-height: 1.1; }
  .nav-links { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
  .nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 0.82rem; font-weight: 600; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a.active { color: var(--ink); border-bottom-color: var(--accent); }
  .nav-cta { background: var(--accent); color: var(--cta-ink) !important; padding: 0.5rem 1rem; border-radius: 2px; font-weight: 600; border-bottom: none !important; }
  .nav-cta:hover { background: var(--accent-hover); }
  .menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); font: inherit; font-size: 0.82rem; font-weight: 600; padding: 0.45rem 0.9rem; cursor: pointer; }
  @media (max-width: 1080px) {
    .menu-btn { display: inline-block; }
    .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0.2rem; padding: 0.5rem 0 1rem; }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 0.95rem; padding: 0.35rem 0; }
    .nav-cta { margin-top: 0.5rem; }
  }

  /* ---------- routing ---------- */
  .page { display: block; }

  /* ---------- shared blocks ---------- */
  section { padding: clamp(2.75rem, 6.5vw, 5rem) 0; }
  section.tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
  .rule { border-bottom: 1px solid var(--line); }
  .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
  .section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
  .section-head .mono { color: var(--accent); }
  .kicker { color: var(--accent); display: block; margin-bottom: 1rem; }
  .lede { font-size: 1.15rem; max-width: 58ch; }
  .btn { display: inline-block; text-decoration: none; border-radius: 2px; padding: 0.8rem 1.4rem; font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; }
  .btn-primary { background: var(--accent); color: var(--cta-ink); }
  .deep-band .btn-primary { background: var(--on-deep-accent); color: #06231A; }
  .deep-band .btn-primary:hover { background: #8CE0B6; }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-ghost { border-color: var(--line); color: var(--ink); }
  .btn-ghost:hover { border-color: var(--ink-soft); }
  .btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
  .surface-band { background: var(--surface); }
  ul.plain { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.45rem; }
  ul.plain li { padding-left: 1.15rem; position: relative; color: var(--ink-soft); }
  ul.plain li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 1px; background: var(--p1); }
  .cols-2 { display: grid; gap: 2.5rem; }
  @media (min-width: 860px) { .cols-2 { grid-template-columns: 1fr 1fr; } }

  /* card grids */
  .card-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
  @media (min-width: 720px) { .card-grid.two { grid-template-columns: 1fr 1fr; } .card-grid.three { grid-template-columns: 1fr 1fr 1fr; } .card-grid.four { grid-template-columns: repeat(4, 1fr); } }
  @media (min-width: 720px) and (max-width: 1000px) { .card-grid.four { grid-template-columns: 1fr 1fr; } }
  .card { background: var(--surface); padding: 1.7rem; display: flex; flex-direction: column; gap: 0.55rem; }
  .card .mono { color: var(--ink-soft); }
  .card h3 { margin: 0; font-family: "Archivo", Arial, sans-serif; font-stretch: 110%; font-weight: 700; text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.01em; }
  .card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
  .card.bar-p1 { box-shadow: inset 0 3px 0 var(--p1); }
  .card.bar-p2 { box-shadow: inset 0 3px 0 var(--p2); }
  .card.bar-p3 { box-shadow: inset 0 3px 0 var(--p3); }
  .card.bar-p4 { box-shadow: inset 0 3px 0 var(--p4); }

  /* deep CTA band */
  .deep-band { background: var(--deep); color: var(--on-deep); }
  .deep-band h2 { color: var(--on-deep); }
  .deep-band p { color: var(--on-deep-soft); }
  .deep-band .mono { color: var(--on-deep-faint); }
  .deep-band a:not(.btn) { color: var(--on-deep); }

  /* hero */
  .hero { border-bottom: 1px solid var(--line); }
  .hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
  @media (min-width: 900px) { .hero-grid { grid-template-columns: 7fr 4fr; align-items: end; } }
  .hero h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); }
  .hero h1 .em { color: var(--p1); }
  .hero-side p { color: var(--ink-soft); max-width: 38ch; }
  /* partner logo lockups */
  .logo-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 2.5rem; }
  @media (min-width: 620px) { .logo-grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 980px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
  .logo-tile { background: var(--surface); padding: 1.5rem 1.6rem; display: flex; align-items: center; gap: 0.9rem; min-height: 6rem; }
  .logo-tile .glyph { width: 42px; height: 42px; flex: none; }
  .logo-tile .lw { font-family: "Archivo", Arial, sans-serif; font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: 1rem; line-height: 1.08; letter-spacing: 0.02em; }
  .logo-tile .lw em { display: block; font-style: normal; font-weight: 500; font-size: 0.65rem; letter-spacing: 0.14em; color: var(--ink-soft); font-family: "IBM Plex Mono", "Courier New", monospace; margin-top: 0.3rem; }
  .mono-badge { width: 42px; height: 42px; flex: none; border-radius: 2px; display: grid; place-items: center; font-family: "Archivo", Arial, sans-serif; font-stretch: 112%; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.01em; color: var(--surface); }
  .lockup { display: flex; align-items: center; gap: 0.9rem; }
  .lockup .glyph { width: 48px; height: 48px; flex: none; }
  .lockup .lw { font-family: "Archivo", Arial, sans-serif; font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: 1.15rem; line-height: 1.05; letter-spacing: 0.02em; }
  .lockup .lw em { display: block; font-style: normal; font-weight: 500; font-size: 0.65rem; letter-spacing: 0.14em; color: var(--ink-soft); font-family: "IBM Plex Mono", "Courier New", monospace; margin-top: 0.3rem; }

  /* pathway strata band under hero */
  .strata { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
  @media (max-width: 719px) { .strata { grid-template-columns: 1fr 1fr; } }
  .strata a { text-decoration: none; padding: 0.9rem 1rem 1rem; color: var(--ink); background: var(--surface); border-left: 1px solid var(--line); }
  .strata a:first-child { border-left: none; }
  @media (max-width: 719px) { .strata a:nth-child(3) { border-left: none; } .strata a:nth-child(n+3) { border-top: 1px solid var(--line); } }
  .strata a:hover { background: var(--ground); }
  .strata .chip { display: block; height: 6px; border-radius: 1px; margin-bottom: 0.55rem; }
  .strata .t { font-family: "Archivo", Arial, sans-serif; font-stretch: 110%; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; display: block; }
  .strata .s { font-size: 0.8rem; color: var(--ink-soft); }
  .chip.c1 { background: var(--p1); } .chip.c2 { background: var(--p2); } .chip.c3 { background: var(--p3); } .chip.c4 { background: var(--p4); }

  /* track/route/report */
  .trr { display: grid; gap: 2rem; }
  @media (min-width: 860px) { .trr { grid-template-columns: 1fr 1fr 1fr; } }
  .trr-item { border-top: 3px solid var(--blue); padding-top: 1rem; }
  .trr-item .mono { color: var(--blue); display: block; margin-bottom: 0.5rem; font-size: 0.85rem; }
  .trr-item p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 0.7rem; }
  .trr-item ul.plain li { font-size: 0.93rem; }

  /* flow diagram (about) */
  .flow { display: grid; gap: 0; max-width: 22rem; margin: 0.5rem 0 1rem; }
  .flow span { background: var(--surface); border: 1px solid var(--line); border-top: none; padding: 0.55rem 1rem; font-size: 0.88rem; font-weight: 600; position: relative; }
  .flow span:first-child { border-top: 1px solid var(--line); }
  .flow span::after { content: "↓"; position: absolute; right: 0.9rem; color: var(--blue); }
  .flow span:last-child::after { content: ""; }

  /* steps (how it works) */
  .step-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .step-row { background: var(--surface); padding: 1.6rem 1.7rem; display: grid; gap: 0.4rem 2rem; }
  @media (min-width: 800px) { .step-row { grid-template-columns: 11rem 1fr; } }
  .step-row .mono { color: var(--blue); }
  .step-row h3 { margin: 0; font-family: "Archivo", Arial, sans-serif; font-stretch: 110%; font-weight: 700; text-transform: uppercase; font-size: 1.05rem; }
  .step-row .body { color: var(--ink-soft); font-size: 0.97rem; }
  .step-row .body p { margin-bottom: 0.6rem; }
  .step-row .body p:last-child, .step-row .body ul:last-child { margin-bottom: 0; }

  /* metric groups (impact) */
  .metric-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
  @media (min-width: 720px) { .metric-grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1020px) { .metric-grid { grid-template-columns: 1fr 1fr 1fr; } }
  .metric { background: var(--surface); padding: 1.5rem 1.6rem; }
  .metric h3 { margin: 0 0 0.7rem; font-family: "Archivo", Arial, sans-serif; font-stretch: 110%; font-weight: 700; text-transform: uppercase; font-size: 0.98rem; }
  .metric ul.plain { margin: 0; }
  .metric ul.plain li { font-size: 0.93rem; }

  /* team */
  .person { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 1.8rem; }
  .person .mono { color: var(--accent); }
  .person h3 { margin: 0.3rem 0 0.2rem; font-family: "Archivo", Arial, sans-serif; font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: 1.3rem; }
  .person .role { font-weight: 600; color: var(--p1); margin-bottom: 0.9rem; }
  .person p { color: var(--ink-soft); font-size: 0.97rem; }
  .person p:last-child { margin-bottom: 0; }
  /* portraits */
  .person-head { display: flex; gap: 1.15rem; align-items: center; margin-bottom: 1.2rem; }
  .person-head .meta { min-width: 0; }
  .person-head h3 { margin: 0.25rem 0 0.15rem; }
  .person-head .role { margin: 0; }
  .portrait { width: 104px; height: 104px; flex: none; border-radius: 2px; object-fit: cover; display: block; border: 1px solid var(--line); }
  .portrait-ph { width: 104px; height: 104px; flex: none; border-radius: 2px; display: grid; place-items: center; font-family: "Archivo", Arial, sans-serif; font-stretch: 112%; font-weight: 800; font-size: 2rem; letter-spacing: 0.02em; color: var(--surface); }
  .portrait.sm, .portrait-ph.sm { width: 66px; height: 66px; font-size: 1.3rem; }

  /* --- report data blocks --- */
  .statrow { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 2.25rem; }
  @media (min-width: 560px) { .statrow { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 860px) { .statrow { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 1100px) { .statrow { grid-template-columns: repeat(5, 1fr); } }
  .statcell { background: var(--surface); padding: 1.3rem 1.4rem; }
  .statcell b { display: block; font-family: "Archivo", Arial, sans-serif; font-stretch: 112%; font-weight: 800; font-size: 1.7rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
  .statcell > span { display: block; font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.3rem; }
  .statcell .tag { font-family: "IBM Plex Mono", "Courier New", monospace; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.55rem; }
  .tag-confirmed { color: var(--p1); }
  .tag-modeled { color: var(--ink-soft); }

  figure.chart { margin: 0 0 2rem; }
  figure.chart figcaption { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.75rem; }
  .divbar { display: flex; gap: 2px; height: 68px; }
  .divbar > div { display: flex; flex-direction: column; justify-content: center; padding: 0 0.95rem; border-radius: 2px; color: var(--chart-ink); min-width: 0; }
  .divbar .seg-good { background: var(--chart-good); }
  .divbar .seg-res { background: var(--chart-neutral); color: #FFFFFF; }
  .divbar b { font-family: "Archivo", Arial, sans-serif; font-stretch: 112%; font-weight: 800; font-size: 1.15rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .divbar span { font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .tablewrap { overflow-x: auto; border: 1px solid var(--line); }
  table.data { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: 0.92rem; background: var(--surface); }
  table.data th, table.data td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
  table.data thead th { background: var(--deep); color: var(--on-deep); font-family: "IBM Plex Mono", "Courier New", monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; border-bottom: none; }
  table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
  table.data tbody tr:last-child td { border-bottom: none; }
  table.data tr.total td { font-weight: 700; background: var(--ground); }
  .bar-cell { width: 30%; min-width: 7rem; }
  .minibar { height: 10px; border-radius: 2px; background: var(--chart-good); }
  .minibar.neutral { background: var(--chart-neutral); }

  .notebox { border: 1px solid var(--line); border-left: 3px solid var(--blue); background: var(--surface); padding: 1.25rem 1.45rem; border-radius: 2px; }
  .notebox h3 { margin: 0 0 0.55rem; font-family: "Archivo", Arial, sans-serif; font-stretch: 110%; font-weight: 700; text-transform: uppercase; font-size: 0.95rem; }
  .notebox p { font-size: 0.92rem; color: var(--ink-soft); }
  .notebox p:last-child, .notebox ul:last-child { margin-bottom: 0; }
  .notebox ul.plain li { font-size: 0.92rem; }

  /* --- trend chart --- */
  .linechart { width: 100%; height: auto; display: block; }
  .linechart .grid { stroke: var(--line); stroke-width: 1; }
  .linechart .axis-label { fill: var(--ink-soft); font-family: "IBM Plex Mono", "Courier New", monospace; font-size: 15px; letter-spacing: 0.08em; }
  .linechart .val-label { fill: var(--ink); font-family: "Archivo", Arial, sans-serif; font-weight: 800; font-size: 21px; }
  .linechart .series { stroke: var(--chart-good); stroke-width: 3; fill: none; stroke-linejoin: round; stroke-linecap: round; }
  .linechart .area { fill: var(--chart-good); opacity: 0.12; }
  .linechart .dot { fill: var(--chart-good); }
  .linechart .dot-end { fill: var(--chart-good); stroke: var(--surface); stroke-width: 3; }

  /* --- report library --- */
  .report-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
  @media (min-width: 640px) { .report-grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1000px) { .report-grid { grid-template-columns: repeat(3, 1fr); } }
  .report { background: var(--surface); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.45rem; }
  .report .yr { font-family: "IBM Plex Mono", "Courier New", monospace; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
  .report h3 { margin: 0; font-family: "Archivo", Arial, sans-serif; font-stretch: 110%; font-weight: 700; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.01em; }
  .report p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
  .report a.dl { margin-top: auto; padding-top: 0.7rem; font-size: 0.88rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
  .report a.dl:hover { text-decoration: underline; }
  .report.feature { box-shadow: inset 0 3px 0 var(--accent); }
  @media (min-width: 1000px) { .report.feature { grid-column: span 3; } }

  /* partner list */
  .partner-row { background: var(--surface); padding: 1.4rem 1.7rem; display: grid; gap: 0.2rem 2rem; }
  @media (min-width: 800px) { .partner-row { grid-template-columns: 17rem 1fr; align-items: baseline; } }
  .partner-row h3 { margin: 0; font-family: "Archivo", Arial, sans-serif; font-stretch: 110%; font-weight: 700; text-transform: uppercase; font-size: 1rem; }
  .partner-row p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

  /* audience chips (contact / partner) */
  .chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
  .chip-list li { border: 1px solid var(--line); background: var(--surface); border-radius: 2px; padding: 0.3rem 0.7rem; font-size: 0.85rem; color: var(--ink-soft); }

  /* footer */
  footer { background: var(--deep); color: var(--on-deep-faint); }
  .foot { display: grid; gap: 0.6rem; padding: 2rem 0; font-size: 0.85rem; }
  .foot .fbrand { font-family: "Archivo", Arial, sans-serif; font-stretch: 115%; font-weight: 800; text-transform: uppercase; color: var(--on-deep); font-size: 1rem; }
  .foot-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding-top: 0.6rem; }
  .foot-nav a { color: var(--on-deep-soft); text-decoration: none; font-size: 0.82rem; }
  .foot-nav a:hover { color: var(--on-deep); }

  @media (prefers-reduced-motion: no-preference) {
    .page > .hero .hero-grid > *, .page > section:first-child .wrap > * { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  }
