:root {
  --ink: #0a0b0b;
  --muted: #68706d;
  --paper: #f3f5f3;
  --surface: #ffffff;
  --line: #d9dedb;
  --green: #83ef37;
  --green-dark: #347c13;
  --blue: #2699f4;
  --blue-dark: #0967ad;
  --orange: #ff7043;
  font-family: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
}

button, input { font: inherit; }

button { letter-spacing: 0; }

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 50;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  overflow: hidden;
  background: var(--ink);
  color: #f6f8f7;
}

.nav-shell,
.masthead,
.page-shell,
.site-footer {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #303431;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-jump {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #56605a;
  border-radius: 4px;
  color: #f6f8f7;
  font: 700 10px ui-monospace, "SFMono-Regular", Consolas, monospace;
  text-decoration: none;
}

.nav-jump:hover { border-color: var(--green); color: var(--green); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 18px;
  font-weight: 760;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding: 6px;
  background: var(--green);
}

.brand-mark i {
  width: 3px;
  display: block;
  background: var(--ink);
}

.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 11px; }

.nav-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b9c0bc;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(131, 239, 55, 0.12);
}

.masthead {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 64px;
  padding-block: 46px 50px;
}

.eyebrow,
.section-index {
  margin: 0 0 18px;
  color: var(--green);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  max-width: 780px;
  font-size: 64px;
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 760;
}

.lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: #b7bfba;
  font-size: 17px;
  line-height: 1.75;
}

.paper-reference {
  margin: 14px 0 0;
  color: #858e89;
  font: 11px ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.paper-reference a { color: #f6f8f7; text-underline-offset: 3px; }

.chip-visual {
  min-height: 270px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 145px;
  align-items: center;
  border-top: 1px solid #3a403c;
  border-bottom: 1px solid #3a403c;
}

.chip-visual img {
  width: 230px;
  height: 230px;
  display: block;
  object-fit: contain;
  filter: saturate(0.9) contrast(1.08);
}

.chip-visual figcaption {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding-left: 24px;
  border-left: 1px solid #3a403c;
}

.chip-visual span,
.chip-visual small {
  color: #77807a;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.chip-visual strong { font-size: 18px; }

.page-shell { padding-block: 72px 0; }

.ranking-section,
.method-section,
.scoring-section { scroll-margin-top: 24px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.ranking-note {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.ranking-note strong { color: var(--ink); }

.section-index { margin-bottom: 12px; color: var(--green-dark); }

h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: 0;
}

.snapshot-time {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

.ranking-toolbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.frequency-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid #cfd5d1;
  border-radius: 6px;
  background: #e8ebe9;
}

.frequency-tabs button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #545c58;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.frequency-tabs button:hover { color: var(--ink); }

.frequency-tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(16, 24, 20, 0.1);
}

.legend-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
}

.legend-dot.freq-350 { background: var(--green-dark); }
.legend-dot.freq-700 { background: var(--blue); }

.chart-head,
.rank-row {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 132px 104px minmax(210px, 1fr) 80px 82px 92px;
  gap: 14px;
  align-items: center;
}

.chart-head {
  min-height: 54px;
  color: #838b87;
  font: 650 13px ui-monospace, monospace;
}

.chart-head > span:nth-last-child(-n + 3) { text-align: right; }

.chart-head[data-metric="score"] > span:nth-last-child(2),
.chart-head[data-metric="roi"] > span:last-child {
  color: var(--ink);
  font-weight: 800;
}

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

.axis i { font-style: normal; }

.ranking-list { border-top: 1px solid var(--ink); }

.rank-entry {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.rank-entry[open] { background: var(--surface); }

.rank-entry summary {
  min-height: 90px;
  padding: 9px 0;
  list-style: none;
  cursor: pointer;
}

.rank-entry summary::-webkit-details-marker { display: none; }
.rank-entry[open] summary { padding-inline: 20px; }

.rank-entry:hover .model-name { color: var(--blue-dark); }

.rank-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.rank-number {
  color: #808783;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

.rank-entry:nth-child(-n + 3) .rank-number { color: var(--ink); font-weight: 800; }

.model-logo,
.architecture-logo {
  width: 42px;
  height: 42px;
  display: grid;
  position: relative;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.model-logo img { width: 24px; height: 24px; object-fit: contain; }

.architecture-logo {
  width: 34px;
  height: 34px;
  z-index: 2;
  margin-left: -4px;
  overflow: hidden;
  border-color: #bbc3be;
  background: #f5f7f5;
}

.architecture-logo img { width: 20px; height: 20px; object-fit: contain; }

.fluxeda-glyph {
  position: relative;
  color: #087eea;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}

.fluxeda-glyph::after {
  position: absolute;
  top: -2px;
  right: -5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff681f;
  content: "";
}

.architecture-cell,
.skill-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.architecture-cell strong,
.skill-cell strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.architecture-cell .architecture-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.architecture-cell .architecture-logo img { width: 18px; height: 18px; }

.skill-cell i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 2px solid #5d6762;
  transform: rotate(45deg);
}

.skill-logo {
  width: 21px;
  height: 23px;
  flex: 0 0 auto;
  object-fit: contain;
}

.skill-cell strong {
  font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.model-copy { min-width: 0; }
.model-name { display: block; overflow: hidden; font-size: 15px; font-weight: 740; text-overflow: ellipsis; white-space: nowrap; }
.model-meta { display: block; margin-top: 5px; overflow: hidden; color: var(--muted); font: 10px ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }

.score-track {
  position: relative;
  height: 26px;
  overflow: hidden;
  border: 1px solid #d5dad7;
  background: #e5e9e6;
}

.score-track::before,
.score-track::after {
  position: absolute;
  inset-block: 0;
  width: 1px;
  background: rgba(10, 11, 11, 0.14);
  content: "";
}

.score-track::before { left: 25%; }
.score-track::after { left: 50%; }
.score-gridline {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 75%;
  width: 1px;
  background: rgba(10, 11, 11, 0.14);
}

.score-fill {
  width: var(--score);
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.rank-entry.is-visible .score-fill {
  animation: bar-enter 720ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--order) * 55ms);
}

.score-fill::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.72);
  content: "";
}

.rank-entry.freq-350 .score-fill {
  background: linear-gradient(90deg, #207814 0%, #64db27 58%, #c8ff3d 100%);
}

.rank-entry.freq-700 .score-fill {
  background: linear-gradient(90deg, #0755b7 0%, #198fef 58%, #38d9ff 100%);
}

.frequency-tag {
  justify-self: end;
  min-width: 76px;
  padding: 7px 9px;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-align: center;
  font: 10px ui-monospace, monospace;
  font-weight: 700;
}

.rank-entry.freq-350 .frequency-tag { color: var(--green-dark); background: #effbe8; }
.rank-entry.freq-700 .frequency-tag { color: var(--blue-dark); background: #eaf5fd; }

.score-value,
.roi-value {
  justify-self: end;
  color: #737b77;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
}

.score-value small,
.roi-value small { color: #89918d; font-size: 9px; font-weight: 600; }

.rank-entry.metric-score .score-value,
.rank-entry.metric-roi .roi-value {
  color: var(--ink);
  font-weight: 800;
}

.run-details {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  margin: 0 20px 20px;
  border-top: 1px solid #dfe3e0;
  border-left: 1px solid #dfe3e0;
}

.run-details > div {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  border-right: 1px solid #dfe3e0;
  border-bottom: 1px solid #dfe3e0;
}

.run-details span { color: #7b837f; font: 9px ui-monospace, monospace; }
.run-details strong { overflow: hidden; font-size: 13px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }

.loading-state,
.empty-state {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--muted);
  font: 12px ui-monospace, monospace;
}

.loading-state span {
  width: 24px;
  height: 24px;
  border: 2px solid #ccd2ce;
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.method-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 64px;
  margin-top: 104px;
  padding: 62px 0 78px;
  border-top: 1px solid var(--ink);
}

.method-heading {
  max-width: 390px;
}

.method-heading .section-index { margin-bottom: 16px; }

.method-heading h2 { font-size: 34px; line-height: 1.14; }

.method-heading > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.implementation-flow {
  min-width: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr) 18px) minmax(0, 1fr);
  align-items: center;
  border: 1px solid #d9dedb;
  background: #fff;
}

.flow-step {
  min-width: 0;
  padding: 9px;
  border: 1px solid #d9dedb;
  border-top: 2px solid #7f8a83;
  background: #f5f7f5;
  color: var(--ink);
}

.flow-step img {
  width: 100%;
  aspect-ratio: 1.45;
  display: block;
  object-fit: cover;
  object-position: left center;
  margin-bottom: 10px;
  background: #edf0eb;
  filter: contrast(1.04) saturate(0.82);
}

.flow-step:nth-of-type(2) img,
.flow-step:nth-of-type(4) img { object-fit: contain; padding: 5px; filter: grayscale(0.35) contrast(1.12); }
.flow-step:last-child img { object-position: center; filter: contrast(1.06) saturate(0.9); }

.flow-step span,
.flow-step small {
  display: block;
  overflow: hidden;
  color: #68716c;
  font: 700 8px ui-monospace, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-step strong {
  min-height: 30px;
  display: block;
  margin: 7px 0 4px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
}

.flow-step small { color: #7b847f; font-weight: 500; }

.flow-arrow {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, #93a29a, #2699f4);
}

.flow-arrow::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 2px solid #7aeaf7;
  border-right: 2px solid #7aeaf7;
  transform: rotate(45deg);
  content: "";
}

.scoring-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 64px;
  padding: 70px 0 84px;
  border-top: 1px solid var(--ink);
}

.scoring-heading { max-width: 390px; }
.scoring-heading .section-index { margin-bottom: 16px; }
.scoring-heading h2 { font-size: 34px; line-height: 1.14; }

.scoring-heading > p:not(.section-index) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.scoring-heading > a {
  display: inline-block;
  margin-top: 20px;
  color: var(--green-dark);
  font: 700 10px ui-monospace, monospace;
  text-underline-offset: 3px;
}

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

.formula-sheet article {
  min-width: 0;
  min-height: 190px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.formula-sheet .formula-primary {
  min-height: 156px;
  grid-column: 1 / -1;
  background: #eef1ef;
}

.formula-sheet article > span {
  color: var(--green-dark);
  font: 700 10px ui-monospace, monospace;
}

.formula-sheet article > p {
  margin: 24px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.25;
}

.formula-sheet .formula-primary > p { font-size: 34px; }
.formula-sheet var { font-family: inherit; }
.formula-sheet sub { font-size: 58%; }

.formula-sheet article > small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.reference-values { margin: 18px 0 0; }

.reference-values div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font: 10px ui-monospace, monospace;
}

.reference-values dt { color: var(--muted); }
.reference-values dd { margin: 0; font-variant-numeric: tabular-nums; }

.site-footer {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid #cbd1cd;
  color: #656d69;
  font: 11px ui-monospace, monospace;
}

.site-footer p:last-child { justify-self: end; }
.footer-brand { color: var(--ink); font-family: Inter, sans-serif; font-size: 15px; }
.footer-brand .brand-mark { width: 23px; height: 23px; padding: 5px; }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes bar-enter {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 1040px) {
  .masthead { grid-template-columns: 1fr 330px; gap: 34px; }
  .chip-visual { grid-template-columns: 1fr; }
  .chip-visual img { width: 210px; height: 210px; margin: auto; }
  .chip-visual figcaption { display: none; }
  .chart-head, .rank-row { grid-template-columns: minmax(190px, 240px) 100px 80px minmax(150px, 1fr) 70px 68px 76px; gap: 10px; }
  .score-value, .roi-value { font-size: 20px; }
  .run-details { grid-template-columns: repeat(4, 1fr); }
  .method-section { grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr); gap: 36px; }
  .method-heading h2 { font-size: 29px; }
  .implementation-flow { grid-template-columns: repeat(4, minmax(110px, 1fr) 14px) minmax(110px, 1fr); overflow-x: auto; }
  .scoring-section { grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr); gap: 36px; }
  .scoring-heading h2 { font-size: 29px; }
  .formula-sheet article > p { font-size: 21px; }
}

@media (max-width: 760px) {
  .nav-shell, .masthead, .page-shell, .site-footer { width: min(100% - 32px, 1320px); }
  .nav-shell { min-height: 62px; }
  .nav-actions { gap: 8px; }
  .nav-jump { min-height: 30px; padding-inline: 9px; font-size: 8px; }
  .nav-meta { font-size: 9px; }
  .masthead { min-height: auto; grid-template-columns: 1fr 105px; gap: 18px; padding-block: 42px; }
  h1 { font-size: 44px; }
  .lede { font-size: 15px; line-height: 1.65; }
  .chip-visual { min-height: 140px; border: 0; }
  .chip-visual img { width: 105px; height: 140px; }
  .page-shell { padding-top: 54px; }
  h2 { font-size: 29px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .ranking-note { margin-top: 12px; font-size: 12px; }
  .ranking-toolbar { align-items: stretch; flex-direction: column; padding-block: 14px; }
  .frequency-tabs { display: grid; grid-template-columns: repeat(2, 1fr); }
  .frequency-tabs button { justify-content: center; padding-inline: 8px; }
  .chart-head { display: none; }
  .ranking-list { margin-top: 18px; }
  .rank-entry summary { min-height: 118px; padding-block: 14px; }
  .rank-row { grid-template-columns: minmax(0, 1fr) 76px; gap: 11px 12px; }
  .rank-identity { grid-column: 1; grid-row: 1; grid-template-columns: 26px 38px minmax(0, 1fr); gap: 8px; }
  .model-logo { width: 38px; height: 38px; }
  .model-name { line-height: 1.2; text-overflow: clip; white-space: normal; }
  .architecture-cell { grid-column: 1; grid-row: 2; padding-left: 34px; }
  .skill-cell { grid-column: 2; grid-row: 2; justify-self: end; }
  .architecture-cell strong { font-size: 10px; }
  .skill-cell strong { font-size: 11px; }
  .architecture-cell .architecture-logo { width: 27px; height: 27px; }
  .score-track { grid-column: 1 / -1; grid-row: 3; height: 20px; }
  .frequency-tag { grid-column: 2; grid-row: 1; min-width: 70px; }
  .score-value, .roi-value { grid-row: 4; font-size: 18px; }
  .score-value { grid-column: 1; justify-self: start; padding-left: 34px; }
  .roi-value { grid-column: 2; justify-self: end; }
  .score-value small, .roi-value small { color: rgba(10, 11, 11, 0.58); }
  .rank-entry[open] summary { padding-inline: 12px; }
  .run-details { grid-template-columns: repeat(2, 1fr); margin: 0 12px 12px; }
  .method-section { grid-template-columns: 1fr; gap: 28px; margin-top: 76px; padding-top: 46px; }
  .method-heading { max-width: none; }
  .method-heading h2 { font-size: 29px; }
  .implementation-flow { grid-template-columns: repeat(4, 150px 20px) 150px; padding: 12px; overscroll-behavior-inline: contain; }
  .scoring-section { grid-template-columns: 1fr; gap: 28px; padding: 54px 0 66px; }
  .scoring-heading { max-width: none; }
  .scoring-heading h2 { font-size: 29px; }
  .formula-sheet { grid-template-columns: 1fr; }
  .formula-sheet .formula-primary { grid-column: auto; }
  .formula-sheet article { min-height: 0; padding: 18px; }
  .formula-sheet article > p, .formula-sheet .formula-primary > p { font-size: 24px; overflow-wrap: normal; }
  .site-footer { min-height: 150px; grid-template-columns: 1fr; gap: 12px; padding-block: 28px; }
  .site-footer p { margin: 0; }
  .site-footer p:last-child { justify-self: start; }
}

@media (max-width: 480px) {
  .masthead { grid-template-columns: 1fr; }
  .chip-visual { display: none; }
  h1 { font-size: 40px; }
  .model-name { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
