/* Residual — energy flow chart world */

/* Archivo (SIL Open Font License 1.1), self-hosted variable font */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #eef1f3;
  --ground-deep: #e2e6ea;
  --ink: #0e1a2b;
  --ink-2: #364354;
  --ink-3: #56626f;
  --rule: #c5ccd3;
  --rule-strong: #0e1a2b;

  --elec: #2f4bd0;
  --elec-deep: #2238a8;
  --heat: #e8551c;
  --heat-deep: #a8380b;
  --warm: #f6a53a;
  --compute: #4a5563;
  --lost: #a7b0b9;

  /* on the heat field */
  --on-heat: #1b0b03;
  --on-heat-2: #240d03;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --nav-h: 64px;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 72px;
  --s9: 112px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pulse: 2.4s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-color: var(--compute) var(--ground-deep);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: var(--heat);
  color: var(--on-heat);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--ground-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--compute);
  border: 3px solid var(--ground-deep);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--heat);
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--elec);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--ground);
  padding: var(--s3) var(--s4);
  font-weight: 600;
}
.skip:focus {
  top: var(--s3);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- type ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-stretch: 115%;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1;
}

.h2 {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-stretch: 112%;
  font-weight: 750;
  letter-spacing: -0.018em;
}

.h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-stretch: 104%;
  font-weight: 700;
  letter-spacing: -0.008em;
  line-height: 1.2;
}

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 44ch;
  text-wrap: pretty;
}

.prose p,
.prose li {
  max-width: 68ch;
  text-wrap: pretty;
}
.prose p {
  margin: 0 0 1em;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose ul {
  margin: 0 0 1em;
  padding-left: 1.1em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose li::marker {
  color: var(--heat);
}
.prose strong {
  font-weight: 650;
}

.muted {
  color: var(--ink-3);
}

/* condensed label voice (flow labels, table heads, notes) */
.label {
  font-size: 0.8125rem;
  font-stretch: 78%;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
}

.note {
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ---------- layout ---------- */

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

.section {
  padding-block: var(--s9);
  border-top: 1px solid var(--rule);
}
.section--tight {
  padding-block: var(--s8);
}
.section--flush {
  border-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s6);
  row-gap: var(--s7);
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: 1 / -1; }
.start-6 { grid-column-start: 6; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s6);
  row-gap: var(--s5);
  margin-bottom: var(--s8);
  align-items: end;
}
.section-head > h2 {
  grid-column: 1 / span 7;
}
.section-head > p {
  grid-column: 8 / -1;
  margin: 0;
  color: var(--ink-2);
  max-width: 44ch;
}

@media (max-width: 900px) {
  .grid,
  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid > *,
  .section-head > * {
    grid-column: 1 / -1 !important;
  }
  .section {
    padding-block: var(--s8);
  }
}

/* heat field — heat is the subject here */
.field-heat {
  background: var(--heat);
  color: var(--on-heat);
  border-top: 0;
}
.field-heat .lede,
.field-heat .section-head > p,
.field-heat .muted,
.field-heat .note {
  color: var(--on-heat-2);
}
.field-heat a {
  text-decoration-color: var(--on-heat);
}
.field-heat ::selection {
  background: var(--ink);
  color: var(--heat);
}
.field-heat :focus-visible {
  outline-color: var(--on-heat);
}

.field-ink {
  background: var(--ink);
  color: var(--ground);
  border-top: 0;
}
.field-ink .lede,
.field-ink .muted,
.field-ink .note,
.field-ink .section-head > p {
  color: #b9c2cc;
}
.field-ink :focus-visible {
  outline-color: var(--warm);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__in {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--s6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.3rem;
  font-stretch: 122%;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-right: auto;
  flex-shrink: 0;
}
.brand svg {
  width: 30px;
  height: 22px;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 550;
  font-stretch: 92%;
  color: var(--ink-2);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  white-space: nowrap;
}
.nav__links a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule);
}
.nav__links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--heat);
}
.nav__toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  font-stretch: 85%;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  height: 40px;
  padding: 0 14px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}
.nav__toggle svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1100px) {
  .nav__toggle {
    display: inline-flex;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ground);
    border-bottom: 1px solid var(--ink);
    padding: var(--s2) var(--gutter) var(--s5);
  }
  .nav.is-open .nav__links {
    display: flex;
  }
  .nav__links li {
    border-top: 1px solid var(--rule);
  }
  .nav__links li:first-child {
    border-top: 0;
  }
  .nav__links a {
    display: block;
    padding: 14px 0;
    font-size: 1.125rem;
    border-bottom: 0;
  }
  .nav__links a[aria-current="page"] {
    color: var(--heat-deep);
  }
  .nav__links a.btn {
    display: flex;
    margin-top: var(--s4);
    padding: 0 20px;
    justify-content: center;
    color: var(--on-heat);
  }
  .nav__cta-li {
    border-top: 0 !important;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 96%;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn--heat {
  background: var(--heat);
  color: var(--on-heat);
}
.btn--heat:hover,
.nav__links a.btn--heat:hover {
  background: var(--heat-deep);
  color: #fff;
}
.btn--ink {
  background: var(--ink);
  color: var(--ground);
}
.btn--ink:hover {
  background: #22324a;
}
.btn--line {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.btn--line:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}
.field-heat .btn--line:hover {
  background: var(--on-heat);
  border-color: var(--on-heat);
  color: var(--heat);
}
.field-ink .btn--line:hover {
  background: var(--ground);
  border-color: var(--ground);
  color: var(--ink);
}
.nav .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-stretch: 96%;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s5);
}

/* ---------- flow figures ---------- */

.flow {
  position: relative;
  margin: 0;
}
.flow__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.flow__svg text {
  font-family: var(--font);
  fill: var(--ink);
}
.flow__svg .fl-name {
  font-size: 12.5px;
  font-stretch: 78%;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.flow__svg .fl-val {
  font-size: 15px;
  font-weight: 600;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
}
.flow__svg .fl-sub {
  font-size: 12.5px;
  font-weight: 500;
  fill: var(--ink-3);
}
.flow__svg .fl-link {
  mix-blend-mode: multiply;
  transition: opacity 0.3s var(--ease-out);
}
.flow__svg .fl-link--future {
  mix-blend-mode: normal;
}
.flow__svg .fl-pulse {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: 1 26;
  opacity: 0.55;
  animation: fl-pulse var(--pulse) linear infinite;
  pointer-events: none;
}
@keyframes fl-pulse {
  to {
    stroke-dashoffset: -27;
  }
}
.flow__svg .fl-hit:hover + .fl-link,
.flow__svg .fl-link:hover {
  opacity: 0.85;
}

.flow__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-3);
}
.flow__cap details {
  flex: 1 1 100%;
}
.flow__cap summary {
  cursor: pointer;
  width: max-content;
  font-weight: 600;
  color: var(--ink-2);
}
.flow__cap summary:hover {
  color: var(--ink);
}
.flow-table {
  border-collapse: collapse;
  margin-top: var(--s3);
  font-size: 0.875rem;
  min-width: min(100%, 420px);
}
.flow-table th,
.flow-table td {
  text-align: left;
  padding: 6px 16px 6px 0;
  border-bottom: 1px solid var(--rule);
}
.flow-table td:last-child,
.flow-table th:last-child {
  text-align: right;
  padding-right: 0;
}
.flow-table th {
  font-stretch: 80%;
  font-weight: 650;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

.flow-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: var(--ink);
  color: var(--ground);
  padding: 8px 12px;
  font-size: 0.8125rem;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity 0.15s ease;
}
.flow-tip:not(.is-on) {
  visibility: hidden;
  left: 0;
  top: 0;
}
.flow-tip.is-on {
  opacity: 1;
}
.flow-tip b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(calc(100svh - var(--nav-h)), 900px);
  display: grid;
  overflow: hidden;
}
.hero__flow {
  position: absolute;
  inset: var(--s6) 0 var(--s7) 0;
}
.hero__flow .flow,
.hero__flow .flow__plot {
  height: 100%;
}
.hero__copy {
  position: relative;
  z-index: 2;
  align-self: end;
  padding-bottom: var(--s8);
  pointer-events: none;
}
.hero__copy > * {
  pointer-events: auto;
}
.hero__copy .display {
  max-width: 12ch;
}
.hero__copy .lede {
  margin: var(--s5) 0 var(--s6);
  max-width: 40ch;
}

.hw-toggle {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 8px;
  width: 250px;
}
.hw-toggle__q {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-2);
  margin: 0;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  background: var(--ground);
}
.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  font-stretch: 86%;
  line-height: 1.2;
  padding: 9px 8px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.seg button + button {
  border-left: 1px solid var(--ink);
}
.seg button span {
  display: block;
  font-weight: 500;
  font-stretch: 90%;
  font-size: 0.75rem;
  color: var(--ink-3);
  transition: color 0.25s var(--ease-out);
}
.seg button:hover {
  background: var(--ground-deep);
}
.seg button[aria-pressed="true"] {
  background: var(--heat);
  color: var(--on-heat);
}
.seg button[aria-pressed="true"] span {
  color: var(--on-heat-2);
}
.hw-toggle__read {
  font-size: 0.8125rem;
  margin: 0;
  color: var(--ink-2);
  min-height: 2.7em;
}
.hw-toggle__read b {
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 901px) {
  .hero__copy {
    padding-top: 30vh;
    padding-bottom: var(--s7);
  }
  .hero__copy .wrap > div {
    max-width: min(600px, 42%);
  }
  .hero__copy .lede {
    margin: var(--s4) 0 var(--s5);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .hero__copy {
    order: -1;
    padding-block: var(--s7) var(--s5);
  }
  .hero__flow {
    position: relative;
    inset: auto;
    height: 360px;
    margin-top: var(--s5);
  }
  .hw-toggle {
    margin-bottom: var(--s6) !important;
  }
  .hw-toggle {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none;
    width: auto;
    margin: var(--s4) var(--gutter) 0;
    max-width: 420px;
  }
}

/* ---------- page head (inner pages) ---------- */

.page-head {
  padding-block: var(--s8) var(--s7);
}
.page-head .h1 {
  max-width: 16ch;
}
.page-head .lede {
  margin-top: var(--s5);
  max-width: 52ch;
}
.page-head__flow {
  margin-top: var(--s7);
}
.page-head__flow .flow__plot {
  height: clamp(260px, 34vw, 420px);
}
@media (max-width: 900px) {
  .page-head__flow .flow__plot {
    height: 320px;
  }
  .page-head__flow + .flow__cap,
  .page-head__flow .flow__cap {
    margin-top: var(--s4);
  }
}
.fig-block .flow__plot {
  height: clamp(220px, 26vw, 320px);
}

/* ---------- ruled rows (instead of cards) ---------- */

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}
.rows > li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--s3) var(--s6);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--rule);
}
.rows > li > :first-child {
  font-weight: 700;
  font-stretch: 100%;
  font-size: 1.125rem;
  line-height: 1.3;
}
.rows > li > :last-child {
  color: var(--ink-2);
  max-width: 64ch;
}
.rows p {
  margin: 0;
}
.field-heat .rows {
  border-top-color: var(--on-heat);
}
.field-heat .rows > li {
  border-bottom-color: rgb(27 11 3 / 0.28);
}
.field-heat .rows > li > :last-child {
  color: var(--on-heat-2);
}
.field-ink .rows {
  border-top-color: var(--ground);
}
.field-ink .rows > li {
  border-bottom-color: #2c3a4f;
}
.field-ink .rows > li > :last-child {
  color: #b9c2cc;
}
@media (max-width: 700px) {
  .rows > li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- prongs ---------- */

.prongs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}
.prong {
  padding: var(--s6) var(--s6) var(--s6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.prong + .prong {
  border-left: 1px solid var(--rule);
  padding-left: var(--s6);
}
.prong__glyph {
  height: 56px;
  width: 100%;
}
.prong p {
  margin: 0;
  color: var(--ink-2);
}
.prong .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}
@media (max-width: 900px) {
  .prongs {
    grid-template-columns: minmax(0, 1fr);
  }
  .prong,
  .prong + .prong {
    border-left: 0;
    padding: var(--s6) 0;
  }
  .prong + .prong {
    border-top: 1px solid var(--rule);
  }
}

/* ---------- signals strip (home) ---------- */

.signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.signal {
  padding: 0 var(--s6) 0 0;
}
.signal + .signal {
  padding-left: var(--s6);
  border-left: 1px solid rgb(27 11 3 / 0.3);
}
.signal h3 {
  margin-bottom: var(--s3);
}
.signal p {
  margin: 0 0 var(--s4);
  color: var(--on-heat-2);
  max-width: 40ch;
}
@media (max-width: 900px) {
  .signals {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s6);
  }
  .signal,
  .signal + .signal {
    padding: 0;
    border-left: 0;
  }
  .signal + .signal {
    padding-top: var(--s6);
    border-top: 1px solid rgb(27 11 3 / 0.3);
  }
}

/* ---------- audience routes ---------- */

.routes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}
.routes li {
  border-bottom: 1px solid var(--rule);
}
.routes a {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 32px;
  gap: var(--s5);
  align-items: center;
  padding-block: var(--s5);
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.routes a:hover {
  background: var(--ground-deep);
  box-shadow: -16px 0 0 var(--ground-deep), 16px 0 0 var(--ground-deep);
}
.routes strong {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-stretch: 108%;
  font-weight: 700;
  line-height: 1.2;
}
.routes span {
  color: var(--ink-2);
}
.routes svg {
  width: 24px;
  height: 24px;
  justify-self: end;
  color: var(--heat);
  transition: transform 0.3s var(--ease-out);
}
.routes a:hover svg {
  transform: translateX(4px);
}
@media (max-width: 700px) {
  .routes a {
    grid-template-columns: minmax(0, 1fr) 24px;
  }
  .routes span {
    grid-column: 1;
    grid-row: 2;
  }
  .routes svg {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}

/* ---------- gates (ready to build) ---------- */

.gates {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: gate;
  position: relative;
}
.gates::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--rule);
}
.gates::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 2px;
  height: calc(100% - 32px);
  background: var(--heat);
  transform-origin: top;
  transform: scaleY(var(--fill, 1));
  transition: transform 1.6s var(--ease-out);
}
.gate {
  position: relative;
  counter-increment: gate;
  display: grid;
  grid-template-columns: 32px minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--s2) var(--s5);
  padding-block: var(--s4);
  align-items: start;
}
.gate::before {
  content: counter(gate);
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--ground);
  border: 2px solid var(--rule);
  font-size: 0.8125rem;
  font-weight: 700;
  font-stretch: 85%;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    color 0.4s var(--ease-out);
}
.gate.is-met::before {
  background: var(--heat);
  border-color: var(--heat);
  color: var(--on-heat);
}
.gate h3 {
  font-size: 1.125rem;
  font-stretch: 100%;
  line-height: 1.3;
  padding-top: 3px;
}
.gate p {
  margin: 0;
  color: var(--ink-2);
  padding-top: 3px;
}
.gate--bonus::before {
  content: "+";
  border-style: dashed;
}
.gates-done {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--s5);
  align-items: center;
  padding-top: var(--s4);
  margin-top: var(--s2);
}
.gates-done::before {
  content: "";
  width: 32px;
  height: 32px;
  background: var(--ink);
}
.gates-done strong {
  font-size: 1.25rem;
  font-stretch: 110%;
  font-weight: 800;
}
@media (max-width: 700px) {
  .gate {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .gate p {
    grid-column: 2;
  }
}

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--rule-strong);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--s4) var(--s5) var(--s4) 0;
  border-bottom: 1px solid var(--rule);
}
.data-table thead th {
  font-size: 0.75rem;
  font-stretch: 80%;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  padding-block: var(--s3);
}
.data-table tbody th {
  font-weight: 700;
  width: 28%;
}
.data-table td.num {
  white-space: nowrap;
  font-weight: 650;
}
.data-table td:last-child,
.data-table th:last-child {
  padding-right: 0;
}
.data-table td {
  color: var(--ink-2);
}
.data-table td.num {
  color: var(--ink);
}

/* range chart */
.ranges {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  --axis-max: 30;
}
.ranges li {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) minmax(0, 7fr);
  gap: var(--s5);
  align-items: center;
  padding-block: var(--s4);
  border-bottom: 1px solid var(--rule);
}
.ranges .r-name {
  font-weight: 700;
  line-height: 1.3;
}
.ranges .r-name span {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.r-track {
  position: relative;
  height: 40px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(10% - 1px),
    var(--rule) calc(10% - 1px),
    var(--rule) 10%
  );
}
.r-bar {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(var(--lo) / var(--axis-max) * 100%);
  width: max(6px, calc((var(--hi) - var(--lo)) / var(--axis-max) * 100%));
  background: var(--heat);
}
.r-bar--open {
  background: repeating-linear-gradient(
    135deg,
    var(--heat) 0 6px,
    color-mix(in srgb, var(--heat) 55%, var(--ground)) 6px 12px
  );
}
.r-val {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: calc(var(--hi) / var(--axis-max) * 100% + 10px);
  font-weight: 650;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.r-val--in {
  background: var(--heat);
  padding: 2px 8px;
  left: auto;
  right: calc(100% - var(--hi) / var(--axis-max) * 100% + 10px);
}
.r-axis {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) minmax(0, 7fr);
  gap: var(--s5);
  padding-top: var(--s2);
  font-size: 0.75rem;
  color: var(--ink-3);
}
.r-axis div {
  display: flex;
  justify-content: space-between;
}
@media (max-width: 700px) {
  .ranges li,
  .r-axis {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s2);
  }
  .r-axis > :first-child {
    display: none;
  }
}

/* ---------- jurisdiction diagram ---------- */

.juris {
  width: 100%;
  height: auto;
}
.juris text {
  font-family: var(--font);
}

/* ---------- placeholder (content the founder must supply) ---------- */

.placeholder {
  border: 2px dashed var(--heat);
  padding: var(--s6);
  background: rgb(232 85 28 / 0.06);
}
.placeholder .label {
  color: var(--heat-deep);
  display: block;
  margin-bottom: var(--s3);
}
.placeholder p {
  margin: 0 0 0.8em;
  max-width: 60ch;
  color: var(--ink-2);
}
.placeholder p:last-child {
  margin: 0;
}

/* pipeline empty state */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule-strong);
}
.pipeline > div {
  padding: var(--s5);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.pipeline > div + div {
  border-left: 1px solid var(--rule);
}
.pipeline .count {
  font-size: 3rem;
  font-stretch: 115%;
  font-weight: 800;
  line-height: 1;
  color: var(--lost);
  margin-top: auto;
}
.pipeline p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pipeline > div:nth-child(3) {
    border-left: 0;
  }
  .pipeline > div:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
}
@media (max-width: 480px) {
  .pipeline {
    grid-template-columns: minmax(0, 1fr);
  }
  .pipeline > div + div {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .pipeline > div {
    min-height: 0;
  }
}

/* ---------- contact ---------- */

.paths {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.paths__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}
.paths legend {
  padding: 0;
  margin-bottom: var(--s4);
  font-size: 1.25rem;
  font-weight: 700;
  font-stretch: 104%;
}
.path {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--s2) var(--s4);
  padding: var(--s5);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out);
}
.path:hover {
  background: var(--ground-deep);
}
.path input {
  appearance: none;
  margin: 2px 0 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ground);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.path input::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--on-heat);
  transform: scale(0);
  transition: transform 0.2s var(--ease-out);
}
.path input:checked {
  border-color: var(--on-heat);
}
.path input:checked::after {
  transform: scale(1);
}
.path strong {
  font-size: 1.125rem;
  font-stretch: 104%;
  line-height: 1.3;
}
.path span {
  grid-column: 2;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.path:has(input:checked) {
  background: var(--heat);
  color: var(--on-heat);
}
.path:has(input:checked) span {
  color: var(--on-heat-2);
}
.path:has(input:focus-visible) {
  outline: 3px solid var(--elec);
  outline-offset: -3px;
}
@media (max-width: 700px) {
  .paths__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form {
  display: grid;
  gap: var(--s5);
  max-width: 760px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
}
@media (max-width: 700px) {
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 650;
  font-size: 0.9375rem;
}
.field .hint {
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-top: -2px;
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--compute);
  border-radius: 0;
  padding: 12px 14px;
  min-height: 48px;
  caret-color: var(--heat);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6b7682;
}
.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--elec);
  box-shadow: 0 0 0 3px rgb(47 75 208 / 0.25);
}
.field [aria-invalid="true"],
.field [aria-invalid="true"]:focus {
  border-color: #b3261e;
  box-shadow: 0 0 0 3px rgb(179 38 30 / 0.15);
}
.field .err {
  color: #b3261e;
  font-size: 0.875rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 6px;
}
.field .err svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.field .err.is-on {
  display: flex;
}
.form-status {
  padding: var(--s4) var(--s5);
  border: 1px solid var(--ink);
  background: #fff;
  display: none;
}
.form-status.is-on {
  display: block;
}
.form-status p {
  margin: 0;
}
.form-status p + p {
  margin-top: 6px;
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: #b9c2cc;
  padding-block: var(--s8) var(--s6);
  font-size: 0.9375rem;
}
.footer .brand {
  color: var(--ground);
}
.footer a {
  color: var(--ground);
  text-decoration-color: var(--heat);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: var(--s6);
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer p {
  margin: var(--s4) 0 0;
  max-width: 44ch;
}
.footer__base {
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid #2c3a4f;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s3) var(--s6);
  font-size: 0.8125rem;
  color: #95a1ae;
}
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- close (end-of-page CTA) ---------- */

.close {
  padding-block: var(--s9);
}
.close .h2 {
  max-width: 18ch;
  margin-bottom: var(--s5);
}
.close p {
  max-width: 52ch;
  margin: 0 0 var(--s6);
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .flow__svg .fl-pulse {
    display: none;
  }
}

@media print {
  .nav,
  .footer,
  .hw-toggle {
    display: none;
  }
  .field-heat,
  .field-ink {
    background: none;
    color: #000;
  }
}

.juris--tall {
  display: none;
}
@media (max-width: 700px) {
  .juris--wide {
    display: none;
  }
  .juris--tall {
    display: block;
    max-width: 400px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: auto !important;
  }
  .data-table tr {
    padding-block: var(--s4);
    border-bottom: 1px solid var(--rule);
  }
  .data-table th,
  .data-table td {
    border: 0;
    padding: 2px 0;
  }
  .data-table td.num {
    white-space: normal;
    margin-top: 6px;
  }
}

.field-heat .gates::before {
  background: rgb(27 11 3 / 0.25);
}
.field-heat .gates::after {
  background: var(--on-heat);
}
.field-heat .gate::before {
  background: var(--heat);
  border-color: var(--on-heat);
}
.field-heat .gate.is-met::before {
  background: var(--on-heat);
  border-color: var(--on-heat);
  color: var(--heat);
}
.field-heat .gate p {
  color: var(--on-heat-2);
}

/* pipeline as a ruled stage table */
.stages {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}
.stages li {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: var(--s2) var(--s5);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.stages strong {
  font-size: 1.125rem;
}
.stages span {
  color: var(--ink-2);
}
.stages em {
  font-style: normal;
  color: var(--ink-3);
  font-weight: 600;
  text-align: right;
}
@media (max-width: 700px) {
  .stages li {
    grid-template-columns: minmax(0, 1fr);
  }
  .stages em {
    text-align: left;
  }
}

.signals--ground .signal + .signal {
  border-left-color: var(--rule);
  border-top-color: var(--rule);
}
.signals--ground .signal p {
  color: var(--ink-2);
}

.hw-toggle.is-onband {
  background: var(--ink);
  padding: 12px 14px 10px;
  width: 278px;
}
.hw-toggle.is-onband .hw-toggle__q,
.hw-toggle.is-onband .hw-toggle__read,
.hw-toggle.is-onband .hw-toggle__read b {
  color: #fff;
}
.hw-toggle.is-onband .seg {
  border-color: #fff;
}
.hw-toggle.is-onband :focus-visible {
  outline-color: #fff;
}
