/* ============================================================
   MUGEN project page
   GTK4 / Adwaita design language, desktop only, single light theme.

   Desktop only is deliberate: the page is dense with tables and
   side-by-side figures, so there is no small-screen breakpoint
   anywhere in this file. A narrow window scrolls horizontally.
   ============================================================ */

:root {
  /* --- surfaces -------------------------------------------------- */
  --paper:        #faf6f0;   /* warm page ground                     */
  --paper-alt:    #f1e9dd;   /* banded section                       */
  --paper-tint:   #edf1ee;   /* second banded tone, cooler           */
  --card:         #ffffff;
  --card-hover:   #fffdfa;
  --deep:         #26302f;   /* dark band (efficiency)               */
  --deep-2:       #1e2726;
  --headerbar:    rgba(250, 246, 240, 0.88);

  /* --- ink ------------------------------------------------------- */
  --ink:          #1f1c19;
  --ink-2:        #45403a;
  --ink-3:        #756d64;
  --ink-on-deep:  #f3ede4;
  --ink-on-deep-2:#b9c4bf;

  /* --- rules and shadow ------------------------------------------ */
  --line:         rgba(31, 28, 25, 0.10);
  --line-2:       rgba(31, 28, 25, 0.20);
  --line-deep:    rgba(243, 237, 228, 0.16);

  --shadow-xs: 0 1px 2px rgba(52, 42, 32, 0.06);
  --shadow-sm: 0 1px 3px rgba(52, 42, 32, 0.07), 0 2px 8px rgba(52, 42, 32, 0.05);
  --shadow-md: 0 2px 6px rgba(52, 42, 32, 0.08), 0 10px 26px rgba(52, 42, 32, 0.07);
  --shadow-lg: 0 4px 12px rgba(52, 42, 32, 0.10), 0 20px 48px rgba(52, 42, 32, 0.09);

  /* --- accent family --------------------------------------------
     Pulled from the paper's own figures so the page and the figures
     read as one document: flame = trainable, teal = the autoencoder,
     indigo = depth routing, plum = position table, moss = the
     understanding branch. */
  --flame:      #c9541f;  --flame-soft:  #fbe6da;  --flame-line:  rgba(201, 84, 31, .28);
  --teal:       #16736f;  --teal-soft:   #d9ecea;  --teal-line:   rgba(22, 115, 111, .28);
  --indigo:     #3a4f9c;  --indigo-soft: #e1e6f7;  --indigo-line: rgba(58, 79, 156, .28);
  --plum:       #6f4194;  --plum-soft:   #ece0f6;  --plum-line:   rgba(111, 65, 148, .28);
  --moss:       #46783e;  --moss-soft:   #e4efdd;  --moss-line:   rgba(70, 120, 62, .28);
  --amber:      #a6720f;  --amber-soft:  #faeacb;  --amber-line:  rgba(166, 114, 15, .30);

  /* default accent, overridden per section */
  --accent:      var(--flame);
  --accent-soft: var(--flame-soft);
  --accent-line: var(--flame-line);

  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --headerbar-h: 56px;
  --page-w: 1180px;
  --prose-w: 74ch;

  --ease:        cubic-bezier(0.0, 0.0, 0.2, 1.0);
  --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1.0);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --fast: 140ms;
  --norm: 240ms;
  --slow: 420ms;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ============================ base ============================ */

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--headerbar-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 1160px;                 /* desktop only, on purpose */
  font-family: 'Inter', 'Cantarell', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

a { color: var(--accent); text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--ink); }

::selection { background: var(--accent-soft); color: var(--ink); }

strong { font-weight: 650; color: var(--ink); }
em { font-style: italic; }

code, .mono { font-family: var(--mono); font-variant-ligatures: none; }

/* ========================== headerbar ========================= */

.headerbar {
  position: fixed; inset: 0 0 auto 0;
  height: var(--headerbar-h);
  min-width: 1160px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: var(--headerbar);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color var(--norm) var(--ease), box-shadow var(--norm) var(--ease);
}
.headerbar.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-xs); }

.headerbar-title { display: flex; align-items: baseline; gap: 10px; }
.headerbar-title a {
  font-size: 18px; font-weight: 800; letter-spacing: .06em;
  color: var(--ink);
}
.headerbar-title .tiny {
  font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0;
}

.headerbar-nav { display: flex; align-items: center; gap: 2px; }

.headerbar-nav a {
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 550; letter-spacing: .005em;
  color: var(--ink-2);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.headerbar-nav a:hover { background: rgba(31, 28, 25, .06); color: var(--ink); }
.headerbar-nav a.active { background: var(--flame-soft); color: var(--flame); }

.headerbar-nav .pill {
  margin-left: 10px; padding: 7px 15px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; font-weight: 650;
}
.headerbar-nav .pill:hover { background: var(--flame); color: #fff; }

/* ============================ shell =========================== */

.band { padding: 76px 0; }
.band--paper { background: var(--paper); }
.band--alt   { background: var(--paper-alt); }
.band--tint  { background: var(--paper-tint); }
.band--deep  { background: var(--deep); color: var(--ink-on-deep); }
.band--rule  { border-top: 1px solid var(--line); }

.wrap { max-width: var(--page-w); margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 920px; }

section[id] { scroll-margin-top: calc(var(--headerbar-h) + 20px); }

/* per-section accent ------------------------------------------------ */
[data-accent="flame"]  { --accent: var(--flame);  --accent-soft: var(--flame-soft);  --accent-line: var(--flame-line); }
[data-accent="teal"]   { --accent: var(--teal);   --accent-soft: var(--teal-soft);   --accent-line: var(--teal-line); }
[data-accent="indigo"] { --accent: var(--indigo); --accent-soft: var(--indigo-soft); --accent-line: var(--indigo-line); }
[data-accent="plum"]   { --accent: var(--plum);   --accent-soft: var(--plum-soft);   --accent-line: var(--plum-line); }
[data-accent="moss"]   { --accent: var(--moss);   --accent-soft: var(--moss-soft);   --accent-line: var(--moss-line); }
[data-accent="amber"]  { --accent: var(--amber);  --accent-soft: var(--amber-soft);  --accent-line: var(--amber-line); }

/* ====================== section headings ====================== */

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 750;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--accent); opacity: .55;
}

.sec-title {
  font-size: 40px; font-weight: 750; letter-spacing: -.022em;
  line-height: 1.14; color: var(--ink);
}
.band--deep .sec-title { color: var(--ink-on-deep); }

.sec-sub {
  margin-top: 16px; max-width: var(--prose-w);
  font-size: 18px; line-height: 1.72; color: var(--ink-2);
}
.band--deep .sec-sub { color: var(--ink-on-deep-2); }

.sec-head { margin-bottom: 40px; }
.sec-head--center { text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .sec-sub { margin-left: auto; margin-right: auto; }

/* split heading: title left, standfirst right — a different rhythm
   from the centred headings so consecutive sections do not repeat. */
.sec-head--split {
  display: grid; grid-template-columns: minmax(330px, 0.85fr) 1.15fr;
  gap: 48px; align-items: end;
  padding-bottom: 26px; border-bottom: 2px solid var(--accent-line);
}
.sec-head--split .sec-sub { margin-top: 0; font-size: 17px; }

.subhead {
  display: flex; align-items: baseline; gap: 14px;
  margin: 54px 0 20px;
  font-size: 24px; font-weight: 700; letter-spacing: -.012em; color: var(--ink);
}
.subhead .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: none; align-self: center;
  border-radius: 9px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.subhead .rule { flex: 1; height: 1px; background: var(--line); }

/* ============================ hero ============================ */

.hero {
  padding: calc(var(--headerbar-h) + 82px) 0 74px;
  text-align: center;
  background:
    radial-gradient(900px 460px at 50% -6%, #fdf1e6 0%, rgba(253, 241, 230, 0) 68%),
    radial-gradient(700px 380px at 12% 8%, #e9f1ee 0%, rgba(233, 241, 238, 0) 70%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: 96px; font-weight: 800; letter-spacing: .01em;
  line-height: 1; color: var(--ink);
  margin-bottom: 6px;
}
.hero h1 .u { color: var(--flame); }

.hero .expand {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 26px;
}

.hero .subtitle {
  font-size: 30px; font-weight: 600; letter-spacing: -.018em; line-height: 1.28;
  color: var(--ink); max-width: 27ch; margin: 0 auto 26px;
}

.hero .tagline {
  font-size: 27px; font-weight: 700; letter-spacing: -.015em;
  color: var(--ink); margin-bottom: 8px;
}
.hero .tagline .a { color: var(--teal); }
.hero .tagline .b {
  color: var(--flame);
  box-shadow: inset 0 -.34em 0 var(--flame-soft);
}

.hero .venue {
  font-size: 15px; color: var(--ink-3); margin-bottom: 30px;
}

/* link buttons ------------------------------------------------------ */
.hero-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-links a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 16px; font-weight: 650; letter-spacing: -.005em;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--norm) var(--ease-spring),
              box-shadow var(--norm) var(--ease),
              background var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              color var(--fast) var(--ease);
}
.hero-links a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero-links svg { width: 19px; height: 19px; fill: currentColor; flex: none; }

.hero-links a.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero-links a.primary:hover { background: #000; color: #fff; }
.hero-links a.k-flame:hover  { border-color: var(--flame-line);  color: var(--flame);  background: var(--flame-soft); }
.hero-links a.k-indigo:hover { border-color: var(--indigo-line); color: var(--indigo); background: var(--indigo-soft); }
.hero-links a.k-amber:hover  { border-color: var(--amber-line);  color: var(--amber);  background: var(--amber-soft); }

/* headline numbers -------------------------------------------------- */
.figures {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.figures > div {
  padding: 26px 30px 28px; text-align: left;
  border-right: 1px solid var(--line);
}
.figures > div:last-child { border-right: 0; }

.figures .big {
  font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.figures .big .unit { font-size: 20px; font-weight: 650; letter-spacing: 0; margin-left: 3px; }
.figures .k {
  font-size: 15px; font-weight: 700; color: var(--ink); margin: 6px 0 3px;
}
.figures .d { font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }

.figures .f-1 .big { color: var(--flame); }
.figures .f-2 .big { color: var(--teal); }
.figures .f-3 .big { color: var(--indigo); }

/* =========================== teaser =========================== */

.teaser-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.teaser-grid figure {
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--norm) var(--ease), box-shadow var(--norm) var(--ease);
}
.teaser-grid figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.teaser-grid video { width: 100%; aspect-ratio: 1/1; display: block; object-fit: cover; }
.teaser-grid figcaption {
  padding: 13px 16px 16px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
}

.cap-note {
  margin-top: 20px; text-align: center;
  font-size: 14.5px; color: var(--ink-3);
}

/* =========================== method =========================== */

/* the four pieces, as a compact row rather than a wall of prose */
.pieces {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 44px;
}
.pieces li {
  background: var(--card);
  border: 1px solid var(--line); border-top: 3px solid var(--c);
  border-radius: var(--radius-md); padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}
.pieces .n { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--c); }
.pieces .k { display: block; font-size: 17px; font-weight: 700; color: var(--ink); margin: 6px 0; }
.pieces .d { font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.pieces .t-1 { --c: var(--teal); }
.pieces .t-2 { --c: var(--indigo); }
.pieces .t-3 { --c: var(--plum); }
.pieces .t-4 { --c: var(--flame); }

.fig-wide {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 20px;
  box-shadow: var(--shadow-md);
}
.fig-wide img { width: 100%; display: block; }
.fig-wide figcaption,
.fig-cap {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.65; color: var(--ink-3);
}
.fig-cap .lbl,
.fig-wide figcaption .lbl {
  font-weight: 750; color: var(--ink); margin-right: 6px;
}

/* alternating figure / text rows */
.split {
  display: grid; gap: 52px; align-items: center;
  margin-top: 34px;
  grid-template-columns: 1.05fr 0.95fr;
}
.split.flip > .split-fig { order: 2; }
.split.flip > .split-txt { order: 1; }

.split-fig {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.split-fig img { width: 100%; display: block; }
.split-fig .fig-cap { font-size: 14.5px; }

.split-txt h4 {
  font-size: 22px; font-weight: 700; letter-spacing: -.012em;
  color: var(--ink); margin-bottom: 12px;
}
.split-txt p { font-size: 17.5px; line-height: 1.74; color: var(--ink-2); }
.split-txt p + p { margin-top: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.chip .mono { font-size: 13px; }

/* the third method block has no figure of its own: give it a
   formula plate instead so the run of image/text rows breaks. */
.plate {
  margin-top: 34px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--plum-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.plate .lhs { padding: 34px 38px; }
.plate .rhs {
  padding: 34px 38px;
  background: var(--plum-soft);
  border-left: 1px solid var(--plum-line);
  display: flex; flex-direction: column; justify-content: center;
}
.plate h4 { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.plate p { font-size: 17px; line-height: 1.72; color: var(--ink-2); }
.plate p + p { margin-top: 13px; }

.formula {
  font-family: var(--mono); font-size: 15px; line-height: 1.9;
  color: var(--plum); white-space: nowrap; overflow-x: auto;
}
.formula .var { color: var(--ink); font-weight: 600; }
.plate .rhs .note-small {
  margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: var(--ink-3);
  white-space: normal;
}

/* ====================== generation gallery ==================== */

.clip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.clip {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--norm) var(--ease), box-shadow var(--norm) var(--ease),
              border-color var(--fast) var(--ease);
}
.clip:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--accent-line);
}
.clip video {
  width: 100%; aspect-ratio: 1/1; display: block; object-fit: cover;
  background: var(--paper-alt);
}
.clip .cap {
  flex: 1; padding: 14px 17px 17px;
  font-size: 14.5px; line-height: 1.58; color: var(--ink-2);
}
.clip .cap::before { content: "\201C"; color: var(--accent); font-weight: 800; }
.clip .cap::after  { content: "\201D"; color: var(--accent); font-weight: 800; }

/* ======================= motion -> text ======================= */

.m2t-list { display: grid; gap: 18px; }

.m2t {
  display: grid; grid-template-columns: 236px 1fr; gap: 30px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--moss);
  border-radius: var(--radius-md); padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--norm) var(--ease);
}
.m2t:hover { box-shadow: var(--shadow-md); }

.m2t video {
  width: 100%; aspect-ratio: 1/1; display: block; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--paper-alt);
  border: 1px solid var(--line);
}

.m2t .row + .row { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }

.m2t .tag {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 11px; border-radius: 999px; margin-bottom: 7px;
}
.m2t .tag.ours  { background: var(--moss); color: #fff; }
.m2t .tag.human { background: var(--paper-alt); color: var(--ink-3); border: 1px solid var(--line); }

.m2t .txt.ours  { font-size: 17.5px; line-height: 1.6; color: var(--ink); font-weight: 550; }
.m2t .txt.human { font-size: 16px;   line-height: 1.6; color: var(--ink-3); }

/* =========================== tables =========================== */

.table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }

table.tbl th, table.tbl td { padding: 10px 12px; white-space: nowrap; }

table.tbl thead th {
  font-size: 13px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase;
  color: var(--ink-3); text-align: right;
  border-bottom: 2px solid var(--line-2);
  background: #fcfaf7;
  position: sticky; top: 0;
}
table.tbl thead th.l, table.tbl td.l { text-align: left; }
table.tbl td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
table.tbl td.l { color: var(--ink); font-weight: 550; }

table.tbl tbody tr + tr td { border-top: 1px solid var(--line); }
table.tbl tbody tr:hover td { background: #fdfaf6; }

table.tbl tr.group td {
  padding-top: 16px;
  font-size: 12.5px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3);
}
table.tbl tr.real td { background: #f7f4ef; color: var(--ink-3); font-style: italic; }
table.tbl tr.real td.l { font-style: italic; font-weight: 500; }

table.tbl tr.ours td {
  background: var(--accent-soft);
  color: var(--ink); font-weight: 650;
  border-top: 2px solid var(--accent-line) !important;
  border-bottom: 2px solid var(--accent-line);
}
table.tbl tr.ours td.l { color: var(--accent); font-weight: 800; }
table.tbl tr.ours:hover td { background: var(--accent-soft); }

table.tbl .best { font-weight: 800; color: var(--ink); }
table.tbl tr.ours .best { color: var(--accent); }
table.tbl .dash { color: #c3bcb3; }
table.tbl .ci { font-size: 12px; color: var(--ink-3); font-weight: 400; }

.tbl-cap {
  margin-top: 16px; font-size: 15px; line-height: 1.65; color: var(--ink-3);
  max-width: 96ch;
}
.tbl-cap .lbl { font-weight: 750; color: var(--ink); margin-right: 6px; }

.table-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.table-duo .tbl-cap { font-size: 14.5px; }

/* ========================= efficiency ========================= */

.band--deep .eyebrow { color: #f0a06a; }
.band--deep .eyebrow::before { background: #f0a06a; }

.charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.chart {
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-deep);
  border-radius: var(--radius-md);
  padding: 24px 26px 22px;
}
.chart h3 { font-size: 18px; font-weight: 650; color: var(--ink-on-deep); }
.chart .unit {
  font-family: var(--mono); font-size: 12.5px; color: #8d9c96;
  margin: 4px 0 22px;
}

.bars { display: grid; gap: 15px; }

.bar-row { display: grid; grid-template-columns: 104px 1fr auto; gap: 12px; align-items: center; }
.bar-row .name { font-size: 14.5px; color: var(--ink-on-deep-2); text-align: right; }
.bar-row.ours .name { color: #ffb37a; font-weight: 750; }

.bar-track { height: 26px; border-radius: var(--radius-xs); background: rgba(255,255,255,.07); overflow: hidden; }
.bar-fill {
  height: 100%; width: 0; border-radius: var(--radius-xs);
  background: linear-gradient(90deg, #55645f, #6d7d77);
  transition: width 950ms var(--ease);
}
.bar-row.ours .bar-fill { background: linear-gradient(90deg, #d4652c, #f0a05c); }

.bar-row .val {
  min-width: 4.6em; text-align: right;
  font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums;
  color: var(--ink-on-deep-2);
}
.bar-row.ours .val { color: #ffb37a; font-weight: 700; }

.chart .foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-deep);
  font-size: 14.5px; line-height: 1.6; color: #98a7a1;
}

/* dark-band table */
.band--deep .table-wrap {
  background: rgba(255,255,255,.045); border-color: var(--line-deep); box-shadow: none;
}
.band--deep table.tbl thead th { background: transparent; color: #8d9c96; border-bottom-color: var(--line-deep); }
.band--deep table.tbl td { color: var(--ink-on-deep-2); }
.band--deep table.tbl td.l { color: var(--ink-on-deep); }
.band--deep table.tbl tbody tr + tr td { border-top-color: var(--line-deep); }
.band--deep table.tbl tbody tr:hover td { background: rgba(255,255,255,.03); }
.band--deep table.tbl tr.ours td {
  background: rgba(212, 101, 44, .18); color: #ffd9bd;
  border-top-color: rgba(240, 160, 92, .5) !important;
  border-bottom-color: rgba(240, 160, 92, .5);
}
.band--deep table.tbl tr.ours td.l { color: #ffb37a; }
.band--deep table.tbl tr.ours:hover td { background: rgba(212, 101, 44, .18); }
.band--deep .tbl-cap { color: #98a7a1; }
.band--deep .tbl-cap .lbl { color: var(--ink-on-deep); }

.callout {
  margin-top: 30px;
  border-left: 4px solid #f0a05c;
  background: rgba(255,255,255,.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 28px;
  font-size: 16.5px; line-height: 1.7; color: var(--ink-on-deep-2);
  max-width: 92ch;
}
.callout strong { color: #ffd9bd; font-weight: 700; }

/* ============================ note ============================ */

.note {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 26px;
  font-size: 16.5px; line-height: 1.7; color: var(--ink-2);
  max-width: 96ch;
}
.note strong { color: var(--ink); }

/* =========================== bibtex =========================== */

.bib {
  background: var(--deep-2); color: #cfd8d4;
  border-radius: var(--radius-md);
  padding: 26px 30px;
  /* the arXiv author line is long; 14px keeps the entry verbatim on one line
     at the full page width instead of forcing a horizontal scroll. */
  font-family: var(--mono); font-size: 14px; line-height: 1.8;
  overflow-x: auto;
  border: 1px solid rgba(0,0,0,.3);
}
.bib .key { color: #f0a05c; }
.bib .fld { color: #8fbfa8; }

/* =========================== footer =========================== */

.footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  padding: 40px 0 52px;
}
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h5 {
  font-size: 12.5px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.footer p, .footer li { font-size: 15px; line-height: 1.7; color: var(--ink-3); }
.footer ul { list-style: none; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--flame); }
.footer code {
  font-family: var(--mono); font-size: .92em;
  background: rgba(31,28,25,.06); padding: .1em .4em; border-radius: 5px;
}
