:root {
  /* Palette taken from the Workflow-CAD icon. */
  --navy: #0b3a73;
  --navy-deep: #071f40;
  --blue: #1f6fd1;
  --sky: #6cc8f0;
  --sky-soft: #e8f6fe;
  --ink: #142235;
  --text: #2a3a4e;
  --muted: #64748b;
  --line: #dbe6f1;
  --bg-alt: #f5f9fd;
  --best: #d6336c;
  --second: #1f6fd1;
  --radius: 14px;
  --max: 1160px;
  --shadow: 0 10px 30px rgba(11, 58, 115, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 58, 115, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial,
          "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue); }
code { font-family: var(--mono); font-size: 0.88em; }

/* ---------- Language switching ---------- */
html[data-lang="zh"] .en,
html:not([data-lang="zh"]) .zh { display: none !important; }
html[data-lang="zh"] body { line-height: 1.8; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 900px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11, 58, 115, .06); background: rgba(255,255,255,.88); }
.topbar-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 28px; height: 60px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
.brand img { width: 34px; height: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--sky-soft); color: var(--navy); }
.lang-switch { display: flex; background: #eef3f9; border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600;
  color: var(--muted); padding: 4px 12px; border-radius: 999px; transition: all .15s;
}
.lang-switch button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(11,58,115,.15); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 120px 0 72px;
  background:
    linear-gradient(rgba(31, 111, 209, .07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(31, 111, 209, .07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(31, 111, 209, .05) 1px, transparent 1px) 0 0 / 140px 140px,
    linear-gradient(90deg, rgba(31, 111, 209, .05) 1px, transparent 1px) 0 0 / 140px 140px,
    linear-gradient(180deg, #f3f9ff 0%, #ffffff 85%);
}
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 640px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(108, 200, 240, .28), transparent 70%),
    radial-gradient(35% 45% at 82% 20%, rgba(31, 111, 209, .16), transparent 70%);
}
.hero-inner { position: relative; }

.wordmark { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.wordmark-icon { width: 92px; height: auto; filter: drop-shadow(0 6px 14px rgba(31, 111, 209, .18)); }
.wordmark-text {
  font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 900; font-style: italic; letter-spacing: -.02em;
  line-height: 1;
}
.wm-a { color: var(--navy); }
.wm-b {
  background: linear-gradient(90deg, #2a9be0, var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.title {
  font-size: clamp(1.7rem, 3.6vw, 2.75rem); line-height: 1.22; margin: 0 auto 26px;
  color: var(--ink); letter-spacing: -.015em; font-weight: 800; max-width: 920px;
}

.authors {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
  font-size: 1.12rem; color: var(--navy); font-weight: 600; max-width: 860px; margin: 0 auto 10px;
}
.author sup { color: var(--blue); font-weight: 700; margin-left: 1px; }
.author-break { flex-basis: 100%; height: 0; }
.author a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(31, 111, 209, .25); transition: color .15s, border-color .15s; }
.author a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 4px 0 28px; color: var(--muted); font-size: 1rem; }
.affil { display: inline-flex; align-items: center; gap: 8px; }
.affil img { height: 28px; width: auto; }
.affil sup { color: var(--blue); font-weight: 700; margin-right: 2px; }

.hero-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 48px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  box-shadow: 0 6px 18px rgba(20, 34, 53, .18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 34, 53, .22); background: var(--navy); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(11,58,115,.06); }
.btn-ghost:hover { background: var(--sky-soft); color: var(--navy); }
.btn-disabled { background: #e9eef4; color: #8a97a8; box-shadow: none; cursor: default; }
.btn-disabled:hover { transform: none; box-shadow: none; background: #e9eef4; }

.hero-video { margin: 0 auto; max-width: 1040px; }

/* ---------- News ---------- */
.news {
  max-width: 820px; margin: 0 auto 44px; text-align: left;
  background: rgba(255, 255, 255, .86); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 26px 16px; box-shadow: 0 8px 24px rgba(11, 58, 115, .07);
}
.news-title {
  margin: 0 0 8px; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: flex; gap: 16px; align-items: baseline; padding: 9px 0; border-top: 1px dashed var(--line); }
.news-list li:first-child { border-top: 0; }
.news-date {
  flex: 0 0 auto; min-width: 92px; font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--navy);
  background: var(--sky-soft); border-radius: 6px; padding: 2px 8px; text-align: center;
}
.news-list p { margin: 0; font-size: .96rem; color: var(--text); line-height: 1.6; }
.news-list a { text-decoration: none; font-weight: 600; white-space: nowrap; }
.news-list a:hover { text-decoration: underline; }
.news-list li.todo .news-date { background: #fff1e6; color: #b4560f; }
.news-list li.todo p { color: var(--muted); }

/* Fake application window around videos */
.window {
  border-radius: var(--radius); overflow: hidden; background: #0d1726;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11, 58, 115, .08);
}
.window-bar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  background: linear-gradient(180deg, #1a2638, #131d2c);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; color: #8ea3bd; font-size: .78rem; font-family: var(--mono); }
.window video { width: 100%; background: #000; }
figcaption { color: var(--muted); font-size: .95rem; margin-top: 14px; text-align: center; }
.hero-video figcaption, .video-card figcaption { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark {
  color: #d5e2f2;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(108, 200, 240, .14), transparent 70%),
    radial-gradient(50% 50% at 100% 100%, rgba(31, 111, 209, .18), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px,
    #071a33;
}
.eyebrow {
  text-align: center; margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow.light { color: var(--sky); }
.section-title {
  text-align: center; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.25; margin: 0 0 18px;
  color: var(--ink); letter-spacing: -.015em; font-weight: 800;
}
.section-title.light { color: #fff; }
.section-lead { text-align: center; max-width: 820px; margin: 0 auto 44px; font-size: 1.06rem; color: var(--muted); }
.section-lead.light { color: #9fb5cf; }
.sub-title { font-size: 1.35rem; color: var(--ink); margin: 64px 0 22px; text-align: center; font-weight: 800; }

.figure img, .taxonomy img {
  width: 100%; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
}
.figure { margin: 0 0 36px; }
.figure img { padding: 18px; border: 1px solid var(--line); }

.abstract p { font-size: 1.08rem; color: var(--text); margin: 0; text-align: justify; }
.abstract { background: #fff; border-radius: var(--radius); padding: 34px 38px; box-shadow: var(--shadow); border: 1px solid var(--line); }

.pill {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: linear-gradient(90deg, #ff8a3d, #f15a24); color: #fff;
  vertical-align: middle; margin-left: 4px;
}

/* ---------- Showcase ---------- */
.showcase-list { display: flex; flex-direction: column; gap: 64px; }
.mech { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.mech-info { position: sticky; top: 92px; padding-top: 6px; }
.mech-info h3 { margin: 0 0 10px; color: #fff; font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.mech-info h3::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--sky); margin-bottom: 14px; }
.mech-info p { margin: 0; color: #9fb5cf; font-size: .95rem; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile {
  position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #eef1f5;
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  transition: transform .2s, border-color .2s;
}
.tile:hover { transform: translateY(-3px); border-color: rgba(108, 200, 240, .55); }
.tile.full { grid-column: 1 / -1; }
.tile video, .tile img { width: 100%; height: 100%; object-fit: contain; background: #eef1f5; }
.tile .badge {
  position: absolute; top: 10px; left: 10px; margin: 0; pointer-events: none;
  font-size: .76rem; font-weight: 700; letter-spacing: .02em; color: #fff;
  background: rgba(7, 26, 51, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 3px 10px; border-radius: 999px;
}

/* ---------- Why workflows ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 18px; }
.compare-card { border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); background: #fff; }
.compare-card h4 { margin: 0 0 8px; color: var(--ink); font-size: 1.05rem; }
.compare-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.compare-card.bad { border-top: 3px solid #e0a3a3; }
.compare-card.good { border: 1px solid #f7b98f; border-top: 3px solid #f15a24; background: linear-gradient(180deg, #fff8f3, #fff); box-shadow: 0 10px 30px rgba(241, 90, 36, .10); }

/* ---------- Method ---------- */
.mining { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mine-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.mine-top { display: flex; flex-direction: column; gap: 14px; }
.mine-tag {
  align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #b4560f; background: #fff1e6; padding: 4px 12px; border-radius: 999px;
}
.mine-tag.asm { color: #1d7a4f; background: #e6f7ee; }
.mine-flow { display: flex; align-items: center; gap: 16px; }
.mine-flow > div { display: flex; flex-direction: column; }
.mine-flow b { font-size: 2rem; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.mine-flow > div span { font-size: .85rem; color: var(--muted); }
.arrow { flex: 0 0 56px; height: 2px; background: linear-gradient(90deg, var(--sky), var(--blue)); position: relative; }
.arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--blue); }
.src { margin: 12px 0 8px; font-size: .85rem; color: var(--muted); }
.steps { margin: 0 0 16px; padding-left: 20px; font-size: .95rem; }
.steps li { margin: 6px 0; }
.steps li::marker { color: var(--blue); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips code, .chips .more {
  font-size: .78rem; padding: 3px 9px; border-radius: 6px; background: var(--sky-soft); color: var(--navy); border: 1px solid #cfe8f8;
}
.chips .more { background: transparent; border-style: dashed; color: var(--muted); font-family: var(--mono); }
.profiles { margin: 12px 0 0; font-size: .8rem; color: var(--muted); font-family: var(--mono); }
.profiles span { font-family: var(--font); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; position: relative;
  transition: transform .2s, box-shadow .2s;
}
.principle:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pnum { font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--sky); }
.principle h4 { margin: 4px 0 6px; color: var(--ink); font-size: 1.02rem; }
.principle p { margin: 0; font-size: .92rem; color: var(--muted); }

.loop { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.loop-step {
  position: relative; text-align: center; padding: 18px 10px 16px; background: #fff;
  border: 1px solid var(--line); margin-right: -1px; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.loop-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.loop-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; margin-right: 0; }
.loop-step:not(:last-child)::after {
  content: ""; position: absolute; right: -9px; top: 50%; transform: translateY(-50%) rotate(45deg); z-index: 2;
  width: 16px; height: 16px; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line);
}
.ls-i {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--sky), var(--blue));
}
.loop-step b { color: var(--ink); font-size: .98rem; }
.loop-step small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.loop-step.accent .ls-i { background: linear-gradient(135deg, #22c55e, #15803d); }
.finish-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.finish-rules p { margin: 0; font-size: .92rem; background: #fff; border: 1px dashed #c9d8e8; border-radius: 10px; padding: 12px 16px; color: var(--text); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-right: 8px; padding: 2px 8px; border-radius: 6px; color: #b4560f; background: #fff1e6; }
.tag.asm { color: #1d7a4f; background: #e6f7ee; }


/* ---------- Benchmark ---------- */
.video-card { margin: 0 auto 56px; max-width: 1040px; }
.video-section { padding-top: 0; }
.video-section .video-card { margin-bottom: 0; }
.bench-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.taxonomy { margin: 0; position: sticky; top: 90px; }
.taxonomy img { padding: 14px; border: 1px solid var(--line); }
.tracks { display: flex; flex-direction: column; gap: 16px; }
.track { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: 0 4px 14px rgba(11,58,115,.05); }
.track:nth-child(1) { border-left: 4px solid #5a9fd8; }
.track:nth-child(2) { border-left: 4px solid #4fb89a; }
.track:nth-child(3) { border-left: 4px solid #e57a8c; }
.track-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.track-n { font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.03em; min-width: 64px; }
.track-head h4 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.track-head small { color: var(--muted); font-size: .85rem; }
.track p { margin: 0; font-size: .93rem; color: var(--muted); }
.validated { display: flex; gap: 14px; align-items: flex-start; background: #ecfdf3; border: 1px solid #bfe9d1; border-radius: var(--radius); padding: 16px 20px; }
.validated svg { flex: 0 0 26px; width: 26px; height: 26px; color: #16a34a; margin-top: 2px; }
.validated p { margin: 0; font-size: .92rem; color: #24553b; }

/* ---------- Results ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 48px; }
.hl { background: #fff; border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hl h4 { margin: 0 0 12px; font-size: .95rem; color: var(--navy); }
.hl-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; color: var(--muted); }
.hl-row:last-of-type { border-bottom: 0; }
.hl-row b { color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.hl-row b i { font-style: normal; color: #16a34a; margin: 0 4px; }
.hl-note { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }

.result-table { margin: 0 0 48px; }
.result-table h3, .references h3 { color: var(--ink); font-size: 1.25rem; margin: 0 0 6px; }
.table-description { color: var(--muted); margin: 0 0 16px; font-size: .94rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(11,58,115,.05); }
table { width: 100%; border-collapse: collapse; font-size: .86rem; line-height: 1.35; }
th, td { padding: 9px 8px; border-bottom: 1px solid #e8eff6; }
.num-table { min-width: 1080px; text-align: center; font-variant-numeric: tabular-nums; }
.num-table.compact { min-width: 0; }
.num-table td { white-space: nowrap; }
thead th { color: var(--navy); background: #f3f8fd; font-weight: 700; white-space: nowrap; }
thead th.grp { border-bottom: 2px solid #c9def2; border-left: 1px solid #e1ebf5; }
.num-table tbody td:nth-child(2), .num-table tbody td:nth-child(6), .num-table tbody td:nth-child(10), .num-table tbody td:nth-child(14) { border-left: 1px solid #edf2f8; }
.num-table.compact tbody td { border-left: 0; }
th.sys { text-align: left; padding-left: 14px; white-space: nowrap; font-weight: 600; color: var(--ink); }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: #f8fbff; }
tr.ours { background: linear-gradient(90deg, #eaf5ff, #f3f9ff) !important; }
tr.ours th.sys { color: var(--navy); font-weight: 800; }
tr.human { background: #f6f7f9; }
td.b1 { color: var(--best); font-weight: 800; }
td.b2 { color: var(--second); font-weight: 700; }
.drop { color: var(--best); font-style: normal; font-size: .78em; margin-left: 4px; }
.cite { color: var(--blue); text-decoration: none; font-weight: 500; font-size: .85em; }
.cite:hover { text-decoration: underline; }
.legend { font-size: .84rem; color: var(--muted); margin: 10px 2px 0; display: flex; align-items: center; gap: 6px; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.legend .sw:first-child { margin-left: 0; }
.sw.b1 { background: var(--best); }
.sw.b2 { background: var(--second); }

.bars { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: 0 4px 14px rgba(11,58,115,.05); }
.bar-title { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.bar { display: grid; grid-template-columns: 170px 1fr 48px; align-items: center; gap: 14px; padding: 4px 0; font-size: .9rem; }
.bl { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt { height: 14px; background: #eef3f8; border-radius: 999px; overflow: hidden; }
.bt i {
  display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--blue));
  transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.js .bars:not(.visible) .bt i { transform: scaleX(0); }
.bar.human .bt i { background: repeating-linear-gradient(45deg, #9aa6b4, #9aa6b4 6px, #b6c0cb 6px, #b6c0cb 12px); }
.bar.human .bl { color: var(--muted); }
.bv { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); text-align: right; }

.more-table { margin-top: 14px; }
.more-table summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .93rem; padding: 6px 0; }
.more-table[open] summary { margin-bottom: 10px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two-col > *, .bench-layout > *, .mining > *, .mech > * { min-width: 0; }
.two-col .result-table { margin-bottom: 40px; }

.references { padding: 20px 24px; border-left: 4px solid var(--blue); background: #fff; border-radius: 0 12px 12px 0; }
.references h3 { font-size: 1.05rem; }
.references ol { margin: 8px 0 0; padding-left: 24px; font-size: .88rem; color: var(--muted); }
.references li { margin: 5px 0; }
.references li:target { background: #fff6d6; }

/* ---------- BibTeX ---------- */
.bibtex { position: relative; }
.bibtex pre {
  margin: 0; background: #0d1726; color: #d5e2f2; border-radius: var(--radius); padding: 24px 26px;
  overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: .88rem; line-height: 1.6; box-shadow: var(--shadow);
}
.bibtex pre.bibtex-empty { text-align: center; color: #8ea3bd; padding: 36px 26px; }
.copy-btn {
  position: absolute; top: 12px; right: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  color: #d5e2f2; border-radius: 8px; padding: 4px 12px; cursor: pointer; font: inherit; font-size: .8rem;
}
.copy-btn:hover { background: rgba(255,255,255,.14); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-logos { display: flex; align-items: center; gap: 22px; }
.footer-logos img { height: 34px; width: auto; }
.footer p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 14, 28, .88); display: grid; place-items: center;
  padding: 3vw; cursor: zoom-out; animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 94vh; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
img.zoomable { cursor: zoom-in; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bt i { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .lang-switch { margin-left: auto; }
  .compare-grid, .mining, .highlights, .two-col, .bench-layout, .finish-rules { grid-template-columns: 1fr; }
  .taxonomy { position: static; max-width: 520px; margin: 0 auto; }
  .mech { grid-template-columns: 1fr; gap: 18px; }
  .mech-info { position: static; }
  .principles { grid-template-columns: 1fr 1fr; }
  .loop { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .loop-step { border-radius: 12px !important; margin-right: 0; }
  .loop-step::after { display: none; }
}
@media (max-width: 680px) {
  .container, .topbar-inner { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 96px 0 56px; }
  .wordmark-icon { width: 64px; }
  .authors { font-size: 1rem; gap: 4px 14px; }
  .author-break { display: none; }
  .news { padding: 14px 16px 12px; }
  .news-list li { flex-direction: column; gap: 4px; }
  .news-date { min-width: 0; }
  .media-grid { grid-template-columns: 1fr; gap: 12px; }
  .principles { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr 1fr; }
  .abstract { padding: 24px 22px; }
  .abstract p { text-align: left; }
  .bar { grid-template-columns: 118px 1fr 40px; font-size: .82rem; gap: 10px; }
}
