/* Benchmarks: compute.css base (tokens, kicker, .cp-close, .cp-cta) + this page.
   One accent: Helix is the blue; everything else is ink, grey and hairlines. */

.bm-hero { padding: 8.5rem var(--gutter) 4rem; max-width: 50rem; }
.bm-back {
  display: inline-flex;
  gap: 0.55rem;
  margin-bottom: 2.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.bm-back:hover { color: var(--ink); }
.bm-hero h1 {
  margin-top: 0.7rem;
  font-weight: 500;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.bm-hero .lede {
  margin-top: 1.1rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* The two systems: Helix (the model) and the Vortex Engineering Module, side by side on tiles */
.bm-systems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem 4rem;
  padding: 0 var(--gutter) 6rem;
}
/* Plain page background; an ink rule above each system, as the section heads elsewhere on the site. */
.bm-system {
  display: flex;
  flex-direction: column;
  padding-top: 1.6rem;
  border-top: 1px solid var(--ink);
}
.bm-system h2 {
  margin-top: 0.8rem;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.bm-system h2 { color: var(--acid); }
.bm-tag { margin-top: 0.9rem; max-width: 30rem; font-size: 1.2rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.35; }
.bm-body { margin-top: 0.9rem; max-width: 32rem; color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
.bm-caps { margin: 1.8rem 0 0; }
.bm-caps div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1.2rem; padding: 0.95rem 0; border-top: 1px solid rgba(17, 17, 17, 0.1); }
.bm-caps dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); padding-top: 0.15rem; }
.bm-caps dd { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.bm-jump { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: auto; padding-top: 1.8rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.bm-jump span { color: var(--muted); }
.bm-jump a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(17, 17, 17, 0.3); transition: color 0.2s cubic-bezier(.2,.7,.2,1), border-color 0.2s cubic-bezier(.2,.7,.2,1); }
.bm-jump a:hover { color: var(--acid); border-color: currentColor; }

/* At a glance: one card per benchmark, ours (blue) against the two strongest others (grey) */
.bm-glance-wrap { padding: 0 var(--gutter) 6.5rem; }
.bm-glance-head h2 { margin-top: 0.7rem; font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; }
.bm-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.bm-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s cubic-bezier(.2,.7,.2,1);
}
.bm-card:hover { border-color: rgba(17, 17, 17, 0.25); box-shadow: var(--lift); }
.bm-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.bm-card-k { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.bm-card-m { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: right; }
.bm-card-fig { display: flex; align-items: center; gap: 0.75rem; margin: 1.1rem 0 2.6rem; }
.bm-card-fig b { font-weight: 500; font-size: clamp(2.3rem, 3.4vw, 2.9rem); letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.bm-card-fig .chip { padding: 0.3rem 0.55rem; border-radius: 999px; background: var(--acid-soft); color: var(--acid); font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap; }
.bm-cols {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.9rem;
  height: 8.5rem;
  margin-bottom: 3.1rem;
  border-bottom: 1px solid var(--ink);
}
.bm-cols .col { position: relative; height: 100%; }
.bm-cols .bar { position: absolute; left: 0; right: 0; bottom: 0; background: #d6d6db; border-radius: 6px 6px 0 0; }
.bm-cols .is-ours .bar { background: var(--acid); }
.bm-cols .val { position: absolute; left: 0; right: 0; bottom: 100%; padding-bottom: 0.35rem; text-align: center; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bm-cols .is-ours .val { color: var(--acid); font-weight: 600; }
.bm-cols .nm { position: absolute; left: -0.3rem; right: -0.3rem; top: calc(100% + 0.55rem); text-align: center; font-size: 0.76rem; line-height: 1.25; color: var(--muted); }
.bm-cols .is-ours .nm { color: var(--acid); font-weight: 500; }
.bm-cols .ref { position: absolute; left: 0; right: 0; z-index: 1; border-top: 1px dashed rgba(17, 17, 17, 0.45); pointer-events: none; }
.bm-card-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

/* Sections */
.bm-sec { padding: 6rem var(--gutter) 5rem; border-top: 1px solid var(--line); scroll-margin-top: 3.5rem; }
.bm-head { max-width: 40rem; }
.bm-num { color: var(--acid); margin-right: 0.9rem; }
.bm-head h2 {
  margin-top: 0.7rem;
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.bm-head p:not(.kicker) { margin-top: 1rem; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.bm-source {
  max-width: 52rem;
  margin-top: 2.2rem;
  color: #6f6f6f;
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.bm-source a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line); }
.bm-source a:hover { color: var(--acid); text-decoration-color: currentColor; }

/* Provider filter: mono labels in hairline pills */
.bm-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.6rem; }
.bm-filter button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.bm-filter button:hover { border-color: var(--ink); color: var(--ink); }
.bm-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bm-filter button.is-helix::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--acid);
}

/* Scatter */
.bm-plot { margin-top: 1.4rem; }
.bm-scatter { width: 100%; }
.bm-scatter svg { display: block; width: 100%; height: auto; overflow: visible; }
.bm-scatter .grid line { stroke: var(--line); }
.bm-scatter .tick { fill: #6b6b6b; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; }
.bm-scatter .axis-title { fill: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; }
.bm-scatter .pt { cursor: pointer; transition: opacity 0.2s ease; }
.bm-scatter .lbl {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  fill: var(--ink);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
}
.bm-scatter .lbl.is-dim { fill: var(--muted); font-weight: 400; }
.bm-scatter .lbl.is-helix { fill: var(--acid); font-size: 13px; font-weight: 600; }

/* Top ten */
.bm-table-wrap { margin-top: 3rem; overflow-x: auto; }
.bm-table-title { margin-bottom: 0.9rem; }
.bm-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.92rem; }
.bm-table th {
  padding: 0 0 0.7rem;
  border-bottom: 1px solid var(--ink);
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.bm-table td { padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.bm-table td:first-child, .bm-table th:first-child { width: 3rem; font-family: var(--mono); font-size: 0.7rem; color: #6b6b6b; }
.bm-table td:nth-child(3) { color: var(--muted); }
.bm-table .r { text-align: right; }
.bm-table td.r { font-family: var(--mono); font-size: 0.8rem; }
.bm-table tr.is-helix td { color: var(--acid); font-weight: 500; }
.bm-table tr.is-helix td:first-child { color: var(--acid); }

/* Ranked rows: number, model, bar on a hairline track, value */
.bm-rank { list-style: none; margin-top: 2.6rem; border-top: 1px solid var(--ink); }
.bm-rank li {
  display: grid;
  grid-template-columns: 2.6rem minmax(11rem, 17rem) minmax(0, 1fr) 4.6rem;
  align-items: center;
  column-gap: 1.2rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line);
}
.bm-rank .n { font-family: var(--mono); font-size: 0.7rem; color: #6b6b6b; }
.bm-rank .m { min-width: 0; font-size: 0.92rem; font-weight: 500; line-height: 1.3; }
.bm-rank .m small {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.bm-rank .m small em { font-style: normal; color: var(--ink); }
.bm-rank .m sup { margin-left: 0.2rem; font-family: var(--mono); font-size: 0.66rem; font-weight: 400; color: var(--muted); }
.bm-notes { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: fn; }
.bm-notes li { counter-increment: fn; margin-top: 0.3rem; font-size: 0.82rem; line-height: 1.5; color: var(--muted); }
.bm-notes li::before { content: counter(fn); display: inline-block; width: 1.2rem; font-family: var(--mono); font-size: 0.7rem; color: var(--ink); }
.bm-drow .lab .dir { display: block; margin-top: 0.2rem; font-family: var(--mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: #6b6b6b; }
.bm-rank .t { position: relative; height: 0.5rem; }
.bm-rank .t::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.bm-rank .t b {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--v);
  background: #c9c9cd;
  border-radius: 0 2px 2px 0;
  transform-origin: left;
}
.bm-rank .t s { position: absolute; top: 50%; height: 1px; background: var(--ink); opacity: 0.55; left: var(--lo); width: var(--w); }
.bm-rank .t s::before, .bm-rank .t s::after { content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: inherit; }
.bm-rank .t s::before { left: 0; }
.bm-rank .t s::after { right: 0; }
.bm-rank .v { text-align: right; font-family: var(--mono); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.bm-rank .v small { display: block; color: #6b6b6b; font-size: 0.7rem; }
.bm-rank li.is-helix .n,
.bm-rank li.is-helix .m,
.bm-rank li.is-helix .v { color: var(--acid); }
.bm-rank li.is-helix .t b { background: var(--acid); }
.bm-rank li.is-helix .m small { color: var(--acid); opacity: 0.75; }

/* EngDesign: a score bar over a lighter pass-rate bar */
.bm-rank.is-two .t { height: 1.05rem; }
.bm-rank.is-two .t::before { content: none; }
.bm-rank.is-two .t b { height: 0.5rem; }
.bm-rank.is-two .t b + b { top: auto; bottom: 0; height: 0.32rem; width: var(--p); opacity: 0.45; }
.bm-legend {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.bm-legend { flex-wrap: wrap; column-gap: 1.6rem; row-gap: 0.6rem; }
.bm-legend > span { display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap; }
.bm-key { width: 1.4rem; height: 0.5rem; background: #c9c9cd; border-radius: 0 2px 2px 0; }
.bm-key.is-pass { height: 0.32rem; opacity: 0.45; }
.bm-key.is-harness { background: var(--acid); }
.bm-key.is-human { width: 1px; height: 0.8rem; background: var(--ink); border-radius: 0; }

/* CFD meshing: one panel per metric, the human reference as a dashed baseline down each panel */
.bm-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-top: 2.8rem; }
.bm-panel .kicker { padding-bottom: 0.8rem; border-bottom: 1px solid var(--ink); }
.bm-mini { list-style: none; position: relative; }
.bm-mini li {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) 3.6rem;
  align-items: center;
  column-gap: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.bm-mini .m { min-width: 0; font-size: 0.86rem; font-weight: 500; line-height: 1.3; }
.bm-mini .m small { display: block; margin-top: 0.1rem; font-family: var(--mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: #6b6b6b; }
.bm-mini .t { position: relative; height: 0.5rem; }
.bm-mini .t b { position: absolute; left: 0; top: 0; height: 100%; width: var(--v); background: #c9c9cd; border-radius: 0 2px 2px 0; }
.bm-mini .t::after {
  content: "";
  position: absolute;
  left: var(--ref, 0);
  top: -0.7rem;
  bottom: -0.7rem;
  border-left: 1px dashed rgba(17, 17, 17, 0.45);
}
.bm-mini .v { text-align: right; font-family: var(--mono); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.bm-mini li.is-ref .t b { background: transparent; border: 1px solid var(--ink); }
.bm-mini li.is-ref .m small { color: var(--ink); }
.bm-mini li.is-helix .m, .bm-mini li.is-helix .v { color: var(--acid); }
.bm-mini li.is-helix .m small { color: var(--acid); opacity: 0.75; }
.bm-mini li.is-helix .t b { background: var(--acid); }

/* Open-weight lift: bare over harness per metric, change on the right */
.bm-delta { margin-top: 1.6rem; border-top: 1px solid var(--ink); }
.bm-drow {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr) 6rem;
  align-items: center;
  column-gap: 1.6rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.bm-drow .lab { font-size: 0.95rem; font-weight: 500; }
.bm-drow .bars { display: grid; row-gap: 0.45rem; }
.bm-drow .bar { display: grid; grid-template-columns: minmax(0, 1fr) 4.6rem; align-items: center; column-gap: 1rem; }
.bm-drow .t { position: relative; height: 0.5rem; }
.bm-drow .t::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.bm-drow .t b { position: absolute; left: 0; top: 0; height: 100%; width: var(--v); background: #c9c9cd; border-radius: 0 2px 2px 0; }
.bm-drow .is-harness .t b { background: var(--acid); }
.bm-drow .t i { position: absolute; left: var(--h); top: -0.25rem; bottom: -0.25rem; width: 1px; background: var(--ink); }
.bm-drow .v { text-align: right; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bm-drow .is-harness .v { color: var(--acid); }
.bm-drow .chg { text-align: right; font-weight: 500; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--acid); line-height: 1.1; }
.bm-drow .chg small { display: block; font-family: var(--mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: #6b6b6b; }

/* Tooltip: white card, hairline, mono rows */
.bm-tip {
  position: fixed;
  z-index: 60;
  min-width: 13rem;
  padding: 0.8rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--lift);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.bm-tip.show { opacity: 1; transform: none; }
.bm-tip .tt { font-size: 0.92rem; font-weight: 500; }
.bm-tip .tp { margin-top: 0.15rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #6b6b6b; }
.bm-tip .tr { display: flex; justify-content: space-between; gap: 1.4rem; margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.bm-tip .tp + .tr { margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.bm-tip .tr b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.bm-tip.is-helix .tt { color: var(--acid); }

#close h2 { max-width: 20ch; }

/* Link from a section head to the long-form write-up of that benchmark. */
.bm-more {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
  transition: color 0.2s cubic-bezier(.2,.7,.2,1);
}
.bm-more:hover { color: var(--acid); }
.bm-more span { transition: transform 0.2s cubic-bezier(.2,.7,.2,1); }
.bm-more:hover span { transform: translateX(3px); }
@media (max-width: 1100px) {
  .bm-panels { grid-template-columns: 1fr; gap: 2.4rem; max-width: 40rem; }
  .bm-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .bm-systems { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bm-hero { padding-top: 7.5rem; }
  .bm-caps div { grid-template-columns: 1fr; gap: 0.3rem; }
  .bm-glance { grid-template-columns: 1fr; }
  .bm-sec { padding: 4.5rem var(--gutter) 4rem; }
  .bm-rank li { grid-template-columns: 2rem minmax(0, 1fr) 4rem; row-gap: 0.45rem; padding: 0.75rem 0; }
  .bm-rank .t { grid-column: 2 / 4; grid-row: 2; }
  .bm-rank .v { grid-row: 1; grid-column: 3; }
  .bm-drow { grid-template-columns: minmax(0, 1fr) 4.6rem; row-gap: 0.7rem; }
  .bm-drow .bars { grid-column: 1 / 3; grid-row: 2; }
  .bm-drow .chg { grid-column: 2; grid-row: 1; font-size: 1.1rem; }
  .bm-mini li { grid-template-columns: minmax(0, 7rem) minmax(0, 1fr) 3.4rem; }
  /* Phones lead with the top-ten table; the scatter follows as a simplified frontier view. */
  #arc { display: flex; flex-direction: column; }
  #arc .bm-table-wrap { order: 2; margin-top: 1.6rem; }
  #arc .bm-filter { order: 3; margin-top: 2.4rem; }
  #arc .bm-plot { order: 4; }
  #arc .bm-source { order: 5; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-tip, .bm-scatter .pt { transition: none; }
}
