/* MarsCompute: technology visuals and motion. Loaded after styles.css. */

/* The hidden attribute wins over any display rule below */

[hidden] {
  display: none !important;
}

/* Scroll progress and header state */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.site-header {
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(23, 24, 22, 0.08);
}

/* Dark hero with a live lattice behind it */

.hero,
.page-head-night {
  position: relative;
  overflow: hidden;
  background: #0d0e0c;
  background-image: none;
  color: var(--surface);
  border-bottom: 1px solid var(--night-line);
}

.hero {
  padding: 88px 0 104px;
}

.page-head-night {
  padding: 88px 0 80px;
}

.lattice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero::after,
.page-head-night::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      60% 80% at 82% 18%,
      rgba(228, 81, 30, 0.2),
      transparent 70%
    ),
    linear-gradient(
      90deg,
      rgba(13, 14, 12, 0.94) 0%,
      rgba(13, 14, 12, 0.72) 48%,
      rgba(13, 14, 12, 0.2) 100%
    );
  pointer-events: none;
}

.hero .wrap,
.page-head-night .wrap {
  position: relative;
  z-index: 1;
}

.hero .wrap {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
}

.hero .eyebrow,
.page-head-night .eyebrow,
.hero .lede,
.page-head-night .lede,
.hero .hero-facts {
  color: var(--night-muted);
}

.hero .display em,
.page-head-night .display em,
.title em {
  font-style: normal;
  color: var(--accent);
}

.hero .button:not(.button-primary),
.page-head-night .button:not(.button-primary) {
  border-color: #4a4b45;
  color: var(--surface);
}

.hero .button:not(.button-primary):hover,
.page-head-night .button:not(.button-primary):hover {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--ink);
}

.page-head-night .wrap {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.page-head-night .lede {
  max-width: 40em;
}

/* Kernel trace widget */

.trace {
  position: relative;
  background: #090a08;
  border: 1px solid #3a3b36;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    14px 14px 0 rgba(228, 81, 30, 0.18);
  font-family: var(--mono);
  color: #d9d6ce;
}

.trace-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 0 16px;
  min-height: 44px;
  border-bottom: 1px solid var(--night-line);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.trace-bar .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trace-bar .live::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--accent);
  animation: blink 1.6s steps(2, start) infinite;
}

.trace-bar .narrow {
  display: none;
}

.trace-modes {
  display: flex;
  margin-left: auto;
  align-self: stretch;
}

.trace-modes button {
  appearance: none;
  border: 0;
  border-left: 1px solid var(--night-line);
  background: transparent;
  color: var(--night-muted);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0 14px;
  cursor: pointer;
}

.trace-modes button:hover {
  color: #fff;
}

.trace-modes button[aria-pressed="true"] {
  color: #fff;
  background: rgba(228, 81, 30, 0.2);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.trace-body {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 20px 16px 16px;
}

.trace-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.trace-row .name {
  font-size: 11px;
  color: var(--night-muted);
  white-space: nowrap;
}

.trace-lane {
  position: relative;
  height: 22px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.seg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--l, 0) * 1%);
  width: calc(var(--w, 0) * 1%);
  transition:
    left 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.15s ease;
}

.seg:hover {
  filter: brightness(1.25);
}

.seg-load {
  background: #e4511e;
}

.seg-mma {
  background: #f2b08f;
}

.seg-soft {
  background: #a9cf96;
}

.seg-epi {
  background: #86b3de;
}

.seg-wait {
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16) 0 3px,
    transparent 3px 7px
  );
}

.trace-scan {
  position: absolute;
  top: 14px;
  bottom: 10px;
  left: 114px;
  right: 16px;
  pointer-events: none;
}

.trace-scan::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: #fff;
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.45);
  animation: scan 7s linear infinite;
}

.trace-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--night-line);
}

.trace-foot .meter {
  display: grid;
  gap: 4px;
  padding: 14px 16px 16px;
}

.trace-foot .meter + .meter {
  border-left: 1px solid var(--night-line);
}

.trace-foot .label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.trace-foot .value {
  font-size: 1.6rem;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.trace-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--night-line);
  font-size: 11px;
  color: var(--night-muted);
}

.trace-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trace-legend i {
  width: 10px;
  height: 10px;
}

.trace-note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--night-muted);
}

.trace-note a {
  color: #e7e4dc;
}

/* Headline numbers */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.stat {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 36px 26px 34px;
  border-right: 1px solid var(--line);
}

.stat .number {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.stat .number small {
  font-size: 0.5em;
  letter-spacing: 0;
  color: var(--accent-dark);
  margin-left: 2px;
}

.stat p {
  color: var(--muted);
  font-size: 15.5px;
}

.source {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.source a {
  text-underline-offset: 3px;
}

.source a:hover {
  color: var(--accent-dark);
}

.night .source {
  color: var(--night-muted);
}

.night .source a:hover {
  color: #fff;
}

/* Two ways to run a model platform */

.versus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--ink);
}

.versus > div {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 44px 40px 48px;
}

.versus .ordinary {
  background: var(--paper);
  color: var(--muted);
}

.versus .ours {
  background: var(--night);
  color: var(--surface);
}

.versus h3 {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.versus ul {
  display: grid;
  gap: 0;
}

.versus li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.versus .ours li {
  border-top-color: var(--night-line);
}

.versus li::before {
  content: "\2014";
  font-family: var(--mono);
  color: var(--line-strong);
}

.versus .ours li::before {
  content: "\2192";
  color: var(--accent);
}

.versus .ours .eyebrow {
  color: var(--night-muted);
}

/* Layered stack explorer */

.stack {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

.stack-layers {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 28px;
}

.stack-layers::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--night-line);
}

.stack-layers::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
  box-shadow: 0 0 16px 3px rgba(228, 81, 30, 0.6);
  animation: descend 4.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.stack-layers button {
  appearance: none;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--night-line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.stack-layers button:hover {
  border-color: #5a5b55;
  transform: translateX(4px);
}

.stack-layers button[aria-selected="true"] {
  border-color: var(--accent);
  background: rgba(228, 81, 30, 0.13);
  transform: translateX(8px);
}

.stack-layers .index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.stack-layers .layer-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stack-layers .layer-kind {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.stack-detail {
  position: sticky;
  top: 100px;
  border: 1px solid var(--night-line);
  background: #0d0e0c;
  min-height: 330px;
}

.stack-detail [role="tabpanel"] {
  display: grid;
  gap: 16px;
  padding: 32px 30px 34px;
  animation: rise 0.45s ease both;
}

.stack-detail h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.stack-detail p {
  color: var(--night-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border: 1px solid var(--night-line);
  color: #d9d6ce;
}

.light .chip,
.panel-light .chip {
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

/* Agent race chart */

.race {
  display: grid;
  gap: 16px;
}

.race-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 54px;
  gap: 16px;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
}

.race-row .who {
  color: var(--muted);
}

.race-track {
  height: 26px;
  background: rgba(23, 24, 22, 0.07);
  overflow: hidden;
}

.race-fill {
  height: 100%;
  width: 0;
  background: var(--line-strong);
  transition: width 1.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.race-row.is-ours .race-fill {
  background: var(--accent);
}

.race-row.is-ours .who,
.race-row.is-ours .count {
  color: var(--ink);
  font-weight: 600;
}

.race.is-on .race-fill,
html:not(.js) .race-fill {
  width: calc(var(--v) * 1%);
}

.v-xtrace {
  --v: 16.5;
}

.v-tool-a {
  --v: 63.5;
}

.v-tool-b {
  --v: 83.5;
}

.v-counters {
  --v: 100;
}

.race-row .count {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.night .race-track {
  background: rgba(255, 255, 255, 0.07);
}

.night .race-row .who {
  color: var(--night-muted);
}

.night .race-row.is-ours .who,
.night .race-row.is-ours .count {
  color: #fff;
}

.night .race-fill {
  background: #55564f;
}

.night .race-row.is-ours .race-fill {
  background: var(--accent);
}

.replay {
  appearance: none;
  justify-self: start;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 6px 0;
}

.evidence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.evidence .copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.chart-card {
  display: grid;
  gap: 22px;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.night .chart-card {
  border-color: var(--night-line);
  background: #0d0e0c;
}

.chart-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Result cards */

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.result {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 30px 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.result .big {
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}

.result h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.result p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Cursor-following light on cards */

.spot {
  position: relative;
  isolation: isolate;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(228, 81, 30, 0.16),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.spot:hover::before {
  opacity: 1;
}

/* Request path stepper */

.flow {
  display: grid;
  gap: 26px;
}

.flow ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: flow;
  position: relative;
}

.flow ol::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 1px;
  background: var(--line-strong);
}

.flow li {
  position: relative;
  counter-increment: flow;
}

.flow button {
  appearance: none;
  display: grid;
  gap: 12px;
  justify-items: start;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0 12px 0 0;
}

.flow button::before {
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.flow button span {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
}

.flow li.is-done button::before {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.flow li.is-active button {
  color: var(--ink);
}

.flow li.is-active button::before {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(228, 81, 30, 0.18);
}

.flow-detail {
  min-height: 5.5em;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.flow-detail p {
  animation: rise 0.35s ease both;
}

/* API section */

.api {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: start;
}

.api .copy {
  display: grid;
  gap: 26px;
}

.api .code-window pre {
  font-size: 12.5px;
}

.stream {
  border-top: 1px solid var(--night-line);
  padding: 16px 24px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #ece9e1;
  min-height: 7.4em;
}

.stream .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--night-muted);
  margin-bottom: 6px;
}

.stream .caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1s steps(2, start) infinite;
}

.stream .usage {
  display: block;
  color: #8f928a;
}

/* Who we work with */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--night-line);
  border-left: 1px solid var(--night-line);
}

.partner {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 34px 28px 36px;
  border-right: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
}

.partner .tag {
  justify-self: start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(228, 81, 30, 0.5);
  padding: 4px 9px;
}

.partner .org {
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.partner h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.partner p {
  color: var(--night-muted);
  font-size: 15.5px;
}

/* Moving list of supported targets */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
  background: #0d0e0c;
  color: var(--night-muted);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 46s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker ul {
  display: flex;
  flex: none;
}

.ticker li {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* Compile pipeline diagram */

.pipeline {
  display: grid;
  gap: 18px;
  justify-self: stretch;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 120px repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  font-family: var(--mono);
  font-size: 12.5px;
}

.pipeline-row .lane-name {
  align-self: center;
  color: var(--night-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11.5px;
}

.pipeline-row .stage {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 14px 14px;
  border: 1px solid var(--night-line);
  color: #d9d6ce;
}

.pipeline-row .stage.has-probe {
  border-color: var(--accent);
  background: rgba(228, 81, 30, 0.14);
  color: #fff;
}

.pipeline-row .stage small {
  color: var(--night-muted);
  font-size: 11px;
}

.pipeline-row .stage.has-probe small {
  color: #f2b08f;
}

/* Timeline (heritage) */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}

.timeline li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 24px 0 0;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--accent);
}

.timeline .when {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
}

.timeline h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.timeline p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Two-column prose block */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.duo .copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

/* Ranges drawn on a shared scale */

.race.is-ranges .race-row {
  grid-template-columns: 150px minmax(0, 1fr) 96px;
}

.race-fill.is-range {
  margin-left: calc(var(--from) * 1%);
  min-width: 3px;
}

.race.is-on .race-fill.is-range,
html:not(.js) .race-fill.is-range {
  width: calc((var(--v) - var(--from)) * 1%);
}

.v-keep-ours {
  --from: 94;
  --v: 98;
}

.v-keep-theirs {
  --from: 8;
  --v: 48;
}

.v-cost-ours {
  --from: 1.1;
  --v: 3.5;
}

.v-cost-theirs {
  --from: 4.75;
  --v: 94.5;
}

.v-softmax {
  --v: 100;
}

.v-mma {
  --v: 55.4;
}

.v-stall {
  --v: 41.7;
}

.race-row.axis {
  font-size: 11px;
  color: var(--muted);
}

.race-row.axis .ticks {
  display: flex;
  justify-content: space-between;
}

.night .race-row.axis {
  color: var(--night-muted);
}

.chart-card .chart + .chart {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.night .chart-card .chart + .chart {
  border-top-color: var(--night-line);
}

.chart {
  display: grid;
  gap: 16px;
}

/* What the tools cover */

.coverage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid var(--night-line);
  border-left: 1px solid var(--night-line);
}

.coverage > div {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px 26px 30px;
  border-right: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
}

.coverage h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.coverage p {
  color: var(--night-muted);
  font-size: 15.5px;
}

.partner-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Arrows and probe marker in the pipeline diagram */

.pipeline-row {
  column-gap: 26px;
}

.pipeline-row .stage {
  position: relative;
}

.pipeline-row .stage:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  color: var(--night-muted);
  font-size: 13px;
}

.pipeline-row .stage.has-probe {
  animation: pulse 2.6s ease-in-out infinite;
}

.pipeline-caption {
  color: var(--night-muted);
  font-size: 15.5px;
}

td.gain {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}

td.nowrap {
  white-space: nowrap;
}

.table-wrap + .source {
  margin-top: 16px;
  max-width: 62em;
}

/* What we do: linked cards */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pillar-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pillar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 34px 30px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.pillar .index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
}

.pillar h3 {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.pillar p {
  color: var(--muted);
}

.pillar .more {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pillar .more::after {
  content: "\2192";
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.pillar:hover .more {
  color: var(--accent-dark);
}

.pillar:hover .more::after {
  transform: translateX(5px);
}

/* Strengths, each with one number */

.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--night-line);
  border-left: 1px solid var(--night-line);
}

.strength {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 32px 26px 34px;
  border-right: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
}

.strength .big {
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.strength h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.strength p {
  color: var(--night-muted);
  font-size: 15.5px;
}

.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}

/* Compact, linked version of the partner cards */

.partner-grid.compact .partner {
  padding: 28px 26px 30px;
  color: inherit;
  text-decoration: none;
}

/* Links between the pages of one topic */

.subnav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.subnav .wrap {
  display: flex;
  gap: 30px;
  overflow-x: auto;
}

.subnav a {
  padding: 16px 0 14px;
  border-bottom: 2px solid transparent;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--muted);
}

.subnav a:hover {
  color: var(--ink);
}

.subnav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Keyframes */

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(228, 81, 30, 0);
  }

  50% {
    box-shadow: 0 0 22px 0 rgba(228, 81, 30, 0.45);
  }
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

@keyframes scan {
  from {
    left: 0;
  }

  to {
    left: 100%;
  }
}

@keyframes descend {
  0% {
    top: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: calc(100% - 9px);
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trace-scan::before,
  .stack-layers::after,
  .ticker-track,
  .trace-bar .live::before,
  .stream .caret,
  .pipeline-row .stage.has-probe {
    animation: none;
  }

  .seg,
  .race-fill {
    transition: none;
  }
}

/* Responsive */

@media (max-width: 1040px) {
  .hero .wrap,
  .stack,
  .evidence,
  .api,
  .duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    border-bottom: 1px solid var(--line);
  }

  .stack-detail {
    position: static;
    min-height: 0;
  }

  .timeline {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 30px;
    border-top: 0;
    border-left: 2px solid var(--ink);
  }

  .timeline li {
    padding: 0 0 0 24px;
  }

  .timeline li::before {
    top: 4px;
    left: -7px;
  }
}

@media (max-width: 860px) {
  .versus,
  .partner-grid,
  .partner-grid.two,
  .coverage {
    grid-template-columns: minmax(0, 1fr);
  }

  .pipeline-row {
    row-gap: 26px;
  }

  .pipeline-row .lane-name {
    margin-bottom: -12px;
  }

  .pipeline-row .stage:not(:last-child)::after {
    content: "\2193";
    top: auto;
    right: auto;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
  }

  .versus > div {
    padding: 34px 26px 38px;
  }

  .flow ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .flow ol::before {
    left: 15px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }

  .flow button {
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: center;
  }

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

@media (max-width: 600px) {
  .hero {
    padding: 56px 0 72px;
  }

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

  .trace-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
  }

  .trace-scan {
    left: 88px;
  }

  .trace-bar .wide {
    display: none;
  }

  .trace-bar .narrow {
    display: inline;
  }

  .trace-modes button {
    padding: 0 10px;
  }

  .race-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 6px 12px;
  }

  .race-row .who {
    grid-column: 1 / -1;
  }

  .race.is-ranges .race-row {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .stream {
    padding: 14px 16px 18px;
  }
}

@media (max-width: 1040px) {
  .strength-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .pillar-grid,
  .pillar-grid.two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .strength-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .subnav .wrap {
    gap: 22px;
  }
}
