:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --ink: #12152a;
  --ink-2: #33384f;
  --muted: #6a7088;
  --faint: #9aa0b6;
  --line: #e6e8f1;
  --line-2: #d8dbea;

  --blue: #3366ee;
  --blue-2: #7aa0f5;
  --blue-bg: #eef3ff;
  --violet: #7a5ae8;
  --violet-2: #9b82f0;
  --lav: #cbbdf7;
  --lav-bg: #f2eeff;
  --coral: #ef5b3a;

  --grad: linear-gradient(100deg, #3366ee 0%, #7a5ae8 100%);
  --shadow-sm: 0 1px 2px rgba(18, 21, 42, 0.04), 0 2px 8px rgba(18, 21, 42, 0.04);
  --shadow: 0 2px 6px rgba(18, 21, 42, 0.04), 0 18px 48px -18px rgba(40, 46, 110, 0.22);

  --font-head: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-math: "STIX Two Text", "Cambria Math", Cambria, "Times New Roman", serif;

  --wrap: 1120px;
  --wrap-text: 965px;
  --wrap-wide: 1260px;
  --r: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(122, 90, 232, 0.18); }

.m {
  font-family: var(--font-math);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
}

.m sub, .m sup { font-size: 0.62em; font-style: italic; }

/* ---------- Nav ---------- */

.topnav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--wrap), calc(100% - 28px));
  z-index: 100;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(216, 219, 234, 0.7);
  transition: box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.topnav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.topnav:not(.scrolled):not(.open) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.topnav:not(.scrolled):not(.open) .nav-links a { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }

.topnav .brand { transition: opacity 0.35s ease, visibility 0s; }

.topnav:not(.scrolled):not(.open) .brand {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.topnav:not(.scrolled):not(.open) .brand,
.topnav:not(.scrolled):not(.open) .nav-links a { color: #fff; }

.topnav:not(.scrolled):not(.open) .nav-links a:hover,
.topnav:not(.scrolled):not(.open) .nav-links a.active {
  background: transparent;
  color: #fff;
}

.topnav:not(.scrolled):not(.open) .nav-toggle span { background: #fff; }

.topnav.open { background: rgba(255, 255, 255, 0.97); }

.nav-inner {
  height: 56px;
  padding: 0 10px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--lav-bg);
  color: var(--violet);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 12px 10px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 24px 88px;
  overflow: hidden;
  background: #0b0d18;
  color: #fff;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 10, 22, 0.78) 0%, rgba(8, 10, 22, 0.45) 38%, rgba(8, 10, 22, 0) 68%),
    linear-gradient(180deg, rgba(8, 10, 22, 0.5) 0%, rgba(8, 10, 22, 0) 22%, rgba(8, 10, 22, 0) 55%, rgba(8, 10, 22, 0.85) 100%),
    radial-gradient(60% 60% at 10% 100%, rgba(122, 90, 232, 0.28), transparent 70%);
}

.hero-head {
  position: relative;
  width: 100%;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  text-align: left;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.h1-name {
  display: block;
  font-size: clamp(56px, 10vw, 122.5px);
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 45%, #c9bcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.h1-title {
  display: block;
  margin-top: 8px;
  max-width: 900px;
  font-size: clamp(19px, 2.8vw, 33px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #fff;
}

.subtitle {
  margin: 16px 0 0;
  max-width: 640px;
  font-size: clamp(14px, 1.6vw, 17.5px);
  color: rgba(255, 255, 255, 0.74);
}

.authors {
  margin: 26px 0 0;
  max-width: 920px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 500;
  color: #fff;
}

.authors > *:not(:last-child)::after {
  content: ",";
  margin-right: 0.45em;
  color: rgba(255, 255, 255, 0.55);
}

.authors a { text-decoration: none; }
.authors a .who {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 3px;
}
.authors a:hover .who { color: #c9bcff; text-decoration-color: #c9bcff; }
.authors sup { font-size: 0.68em; color: #c9bcff; margin-left: 1px; }

.affils {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.affil-logos {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
}

.affil-logos li {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.affil-logos a {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.affil-logos sup {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
}

.affil-logos img {
  height: 32px;
  width: auto;
  opacity: 0.94;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.affil-logos li:hover img {
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .affil-logos { gap: 12px 22px; }
  .affil-logos img { height: 26px; }
}

.affils.notes {
  margin-top: 10px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}

.affils sup { font-size: 0.75em; margin-right: 2px; }

.cta-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn svg { width: 15px; height: 15px; }

.btn .soon {
  margin-left: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn.primary {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn.primary:hover { background: #ece8ff; }

.video-tag {
  position: absolute;
  right: 28px;
  bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(13, 15, 28, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.video-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5a4e;
  animation: blink 1.6s infinite;
}

@keyframes blink { 50% { opacity: 0.25; } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 24px;
  height: 38px;
  margin-left: -12px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sections ---------- */

.teaser-card {
  max-width: var(--wrap-text);
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.teaser-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.sec {
  padding: 36px 24px;
}

#highlights { padding-top: 52px; }

.sec-grid {
  max-width: var(--wrap-text);
  margin: 0 auto;
}

.sec-label {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--violet);
}

.sec-label .num { font-variant-numeric: tabular-nums; }

.ht-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: start;
}

.sec-body .ht-intro-text p { margin-bottom: 14px; }

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

.ht-intro .stat {
  padding: 11px 14px 11px 0;
  border-right: 0;
}

.ht-intro .stat:nth-child(odd) { border-right: 1px solid var(--line); }
.ht-intro .stat:nth-child(even) { padding-left: 14px; padding-right: 0; }
.ht-intro .stat:nth-child(odd) { padding-left: 0; }
.ht-intro .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

.ht-tasks { margin: 4px 0 0; }

.ht-tasks video {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #0b0d18;
}

.ht-tasks figcaption {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}

.ht-mix {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sec-body .ht-mix-head h3 { margin: 0 0 4px; font-size: 14.5px; }

.ht-mix-head span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--faint);
}

.ht-mix .mixbar { margin-top: 2px; }
.ht-mix .mixkey { margin: 0; font-size: 11.5px; }

@media (max-width: 760px) {
  .ht-intro { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ht-mix { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

.sec-body h3.ht-sub { margin: 22px 0 0; }

.ht-stage {
  max-width: calc(var(--wrap-text) + 48px);
  margin: 10px auto 4px;
  padding: 0 24px;
  font-family: Arial, Helvetica, sans-serif;
}

.ht-stage .fig {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 15925800 / 5531159;
}

@media (max-width: 560px) {
  .ht-stage { padding: 0 16px; }
}

.ht-stage .fig > * { position: absolute; box-sizing: border-box; }

.ht-stage .tx {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  line-height: 1.12;
}

.ht-stage .pill {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
}

.ht-stage .media { object-fit: cover; display: block; }

.ht-stage .ov {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.ht-stage video.sync { cursor: pointer; background: #000; }

.arena {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 20px;
}

.arena-robot {
  width: 100%;
  height: auto;
}

.tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 16px;
}

.track {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.track > b {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--violet);
}

.track h4 {
  margin: 2px 0 4px;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.sec-body .track p { margin: 0; font-size: 13.5px; color: var(--muted); }

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

.specs > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
}

.specs dt {
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 1px;
}

.specs dd { margin: 0; color: var(--ink-2); }

@media (max-width: 760px) {
  .arena { grid-template-columns: 1fr; gap: 16px; }
  .arena-robot { width: 160px; margin: 0 auto; }
  .tracks, .specs { grid-template-columns: 1fr; }
}

.sec-body h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 750;
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.sec-body h3 {
  margin: 20px 0 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.lead {
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: var(--ink) !important;
}

.sec-body p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

.abstract { margin-top: 16px; }
.sec-body > p:last-child, .abstract p:last-child { margin-bottom: 0; }
.abstract p {
  text-align: justify;
  hyphens: auto;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--ink-2);
}

.sec-body strong { color: var(--ink); font-weight: 600; }

.question {
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: var(--r);
  background: var(--lav-bg);
  border-left: 3px solid var(--violet);
  font-family: var(--font-head);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.points {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.points li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.points li:hover { border-color: var(--lav); box-shadow: var(--shadow-sm); }

.points .ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--lav-bg);
  color: var(--violet);
}

.points .ico svg { width: 18px; height: 18px; }

.points strong { display: block; margin-bottom: 2px; font-family: var(--font-head); }

.stats {
  margin: 18px 0 4px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 14px 16px 14px 0;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.stat:not(:first-child) { padding-left: 16px; }

.stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(20px, 2.1vw, 24px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--violet);
}

.stat span {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
}

.gens {
  margin: 30px 0 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gen {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
}

.gen .k {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
}

.gen h4 {
  margin: 8px 0 8px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
}

.gen p {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  color: var(--muted) !important;
}

.gen.ours {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow);
}

.gen.ours .k { color: var(--violet); }

.roles {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role {
  padding: 14px 16px;
  border-radius: var(--r);
  background: #fff;
}

.role.train { border: 1.5px dashed var(--lav); }
.role.run { border: 1.5px solid var(--blue-2); background: linear-gradient(180deg, var(--blue-bg), #fff 60%); }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.role.train .tag { background: var(--lav-bg); color: var(--violet); }
.role.run .tag { background: #fff; color: var(--blue); border: 1px solid var(--blue-bg); }

.role h4 {
  margin: 8px 0 4px;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
}

.role p {
  margin: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}

.studies {
  margin: 26px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.study {
  padding: 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.study:hover {
  transform: translateY(-2px);
  border-color: var(--lav);
  box-shadow: var(--shadow);
}

.study .head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.study .letter {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
}

.study .axis {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

.study h4 {
  margin: 14px 0 8px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
}

.study p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.suites {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.suite {
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.suite h4 {
  margin: 8px 0 4px;
  font-family: var(--font-head);
  font-size: 15.5px;
}

.suite p {
  margin: 0 !important;
  font-size: 13.5px !important;
}

.suite .tag { background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); }

/* ---------- Architecture figure ---------- */

.arch-sec {
  padding: 36px 24px;
}

.arch-wrap {
  max-width: var(--wrap-text);
  margin: 0 auto;
}

.arch-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.arch-head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 750;
  font-size: clamp(21px, 2.2vw, 25px);
  letter-spacing: -0.02em;
}

.arch-text { margin-bottom: 20px; }

.method-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.method-notes > div {
  padding-top: 14px;
  border-top: 1.5px solid var(--violet);
}

.mn-tag {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.mn-tag i {
  margin-left: 4px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--faint);
}

.mn-tag i::before { content: "Fig. "; }

.method-notes h4 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.sec-body .method-notes p { margin: 0; font-size: 13.5px; line-height: 1.6; }

@media (max-width: 760px) {
  .method-notes { grid-template-columns: 1fr; gap: 18px; }
}

.motion-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.motion-btn svg { width: 14px; height: 14px; }

.arch-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* column ratios follow each canvas's aspect ratio so paired panels end at the same height */
.arch-row {
  display: grid;
  gap: 14px;
}

.arch-row.r1 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.arch-row.r2 { grid-template-columns: minmax(0, 1.76fr) minmax(0, 1fr); }

.arch-row .panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.arch-row .panel .canvas { margin: auto 0; }

.panel {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.panel.is-linked {
  border-color: var(--violet-2);
  box-shadow: 0 0 0 4px rgba(122, 90, 232, 0.1), var(--shadow);
}

.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-title h3 {
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.panel-title h3 .pl {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 7px;
  background: var(--lav-bg);
  color: var(--violet);
  font-size: 11.5px;
}

.panel-title .note {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
}

.canvas {
  --u: calc(100cqw / var(--W));
  position: relative;
  width: 100%;
  aspect-ratio: var(--W) / var(--H);
  container-type: inline-size;
}

.canvas > .n {
  position: absolute;
  left: calc(var(--x) * 100% / var(--W));
  top: calc(var(--y) * 100% / var(--H));
  width: calc(var(--w, 0) * 100% / var(--W));
  height: calc(var(--h, 0) * 100% / var(--H));
  font-size: calc(var(--fs, 14) * var(--u));
  line-height: 1.2;
}

.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.wires path,
.wires line { fill: none; stroke-linecap: round; stroke-linejoin: round; }

.w-v { stroke: var(--violet); stroke-width: 2.2; }
.w-b { stroke: var(--blue); stroke-width: 2.2; }
.w-g { stroke: #b9bfd6; stroke-width: 1.6; }
.w-dash { stroke: #b9bfd6; stroke-width: 1.8; stroke-dasharray: 6 6; }
.chev { stroke: var(--violet); stroke-width: 2.4; }

.flow {
  stroke-dasharray: 4 10;
  stroke-width: 2.6;
  animation: flow 1.1s linear infinite;
}

@keyframes flow { to { stroke-dashoffset: -14; } }

.w-dash.flowing { animation: flowDash 1.2s linear infinite; }

@keyframes flowDash { to { stroke-dashoffset: -12; } }

.t { display: flex; align-items: center; justify-content: center; text-align: center; }
.t.l { justify-content: flex-start; text-align: left; }
.t.r { justify-content: flex-end; text-align: right; }
.col { flex-direction: column; }

.b { font-weight: 700; font-family: var(--font-head); }
.g { color: var(--muted); }
.gl { color: var(--faint); }
.cv { color: var(--violet); }
.cb { color: var(--blue); }
.cb2 { color: var(--blue-2); }
.cl { color: #b6a6f2; }
.it { font-style: italic; }
.sm { font-size: 0.72em; font-weight: 600; opacity: 0.9; margin-left: 0.3em; }
.sub2 { display: block; font-size: 0.74em; font-weight: 500; margin-top: 0.2em; color: var(--muted); font-family: var(--font-body); }

.box {
  border-radius: calc(10 * var(--u));
  border: calc(1.6 * var(--u)) solid var(--line-2);
  background: #fff;
}

.box.dash { border-style: dashed; border-color: #c9cede; background: rgba(250, 251, 255, 0.7); border-radius: calc(16 * var(--u)); }
.box.lav { border-color: var(--lav); }
.box.lavf { border-color: transparent; background: var(--lav-bg); }
.box.soft { border-color: var(--line); background: #f9fafd; }
.box.big { border-radius: calc(18 * var(--u)); border-color: var(--line); background: #fbfcff; box-shadow: 0 calc(10 * var(--u)) calc(30 * var(--u)) calc(-16 * var(--u)) rgba(40, 46, 110, 0.25); }
.box.colb { border: 0; background: rgba(238, 243, 255, 0.85); }
.box.colv { border: 0; background: rgba(242, 238, 255, 0.9); }

.blk {
  border-radius: calc(10 * var(--u));
  background: linear-gradient(180deg, #3d70f2, #2f5fe6);
  color: #fff;
  box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) calc(-6 * var(--u)) rgba(51, 102, 238, 0.55);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.blk.vio {
  background: linear-gradient(180deg, #8667ec, #7352e3);
  box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) calc(-6 * var(--u)) rgba(122, 90, 232, 0.55);
}

[data-link] { cursor: pointer; }
.blk[data-link]:hover { transform: translateY(calc(-2 * var(--u))); filter: brightness(1.06); }

.tok {
  display: flex;
  gap: calc(6 * var(--u));
}

.tok i {
  flex: 0 0 auto;
  width: calc(var(--s, 18) * var(--u));
  height: calc(var(--s, 18) * var(--u));
  border-radius: calc(4 * var(--u));
  background: var(--c, var(--violet));
  border: calc(1.6 * var(--u)) solid var(--c, var(--violet));
}

.tok i.o { background: #fff; }

.tok.pop i {
  animation: pop 3.2s ease-in-out infinite;
  animation-delay: calc(var(--k, 0) * 0.22s);
}

@keyframes pop {
  0%, 18% { transform: scale(0.4); opacity: 0.15; }
  30%, 80% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.15; }
}

.hcell {
  border-radius: calc(8 * var(--u));
  border: calc(1.6 * var(--u)) solid var(--lav);
  background: #fff;
  color: var(--muted);
}

.hcell.on {
  background: linear-gradient(180deg, #8a6cee, #7352e3);
  border-color: transparent;
  color: #fff;
  animation: hglow 3s ease-in-out infinite;
}

@keyframes hglow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(122, 90, 232, 0); }
  50% { box-shadow: 0 0 0 calc(5 * var(--u)) rgba(122, 90, 232, 0.18); }
}

.stack { position: absolute; }

.stack .ghost,
.stack .front {
  position: absolute;
  inset: 0;
  border-radius: calc(7 * var(--u));
  overflow: hidden;
  background: #0d0f1c;
  border: calc(1.6 * var(--u)) solid #fff;
  box-shadow: 0 calc(3 * var(--u)) calc(10 * var(--u)) rgba(18, 21, 42, 0.2);
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1);
}

.stack .ghost:nth-child(1) { transform: translate(calc(16 * var(--u)), calc(-16 * var(--u))); opacity: 0.55; }
.stack .ghost:nth-child(2) { transform: translate(calc(8 * var(--u)), calc(-8 * var(--u))); opacity: 0.8; }
.stack:hover .ghost:nth-child(1) { transform: translate(calc(26 * var(--u)), calc(-24 * var(--u))) rotate(2deg); }
.stack:hover .ghost:nth-child(2) { transform: translate(calc(13 * var(--u)), calc(-12 * var(--u))) rotate(1deg); }
.stack:hover .front { transform: scale(1.03); }

.stack video,
.stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack .ghost video,
.stack .ghost img { filter: saturate(0.8); }

.frozen {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.25em;
  color: #4a86f0;
  vertical-align: -0.12em;
}

/* alternating DiT phase, shared by panel (a) and (b) */
.ph-cross, .ph-self { animation: 6s ease-in-out infinite; }
.blk.ph-cross { animation-name: actBlk; }
.blk.ph-self { animation-name: actBlk; animation-delay: -3s; }
.layer.ph-cross { animation-name: actLayer; }
.layer.ph-self { animation-name: actLayer; animation-delay: -3s; }

@keyframes actBlk {
  0%, 46% { filter: brightness(1.08) saturate(1.1); box-shadow: 0 0 0 calc(4 * var(--u)) rgba(51, 102, 238, 0.2), 0 calc(10 * var(--u)) calc(26 * var(--u)) calc(-8 * var(--u)) rgba(51, 102, 238, 0.7); }
  54%, 96% { filter: brightness(0.92) saturate(0.75); box-shadow: 0 calc(4 * var(--u)) calc(10 * var(--u)) calc(-6 * var(--u)) rgba(51, 102, 238, 0.35); }
  100% { filter: brightness(1.08) saturate(1.1); }
}

@keyframes actLayer {
  0%, 46% { border-color: var(--blue-2); box-shadow: 0 0 0 calc(4 * var(--u)) rgba(122, 160, 245, 0.16); }
  54%, 96% { border-color: var(--line-2); box-shadow: none; }
  100% { border-color: var(--blue-2); }
}

.layer { border-radius: calc(14 * var(--u)); border: calc(1.6 * var(--u)) solid var(--line-2); background: #fff; }

.force-strip {
  border-radius: calc(4 * var(--u));
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.85) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.85) 1px, transparent 1px),
    linear-gradient(90deg, #fde6dd 0%, #fbb39c 35%, #ef5b3a 50%, #fbb39c 65%, #fde6dd 100%);
  background-size: calc(8 * var(--u)) 100%, 100% calc(8 * var(--u)), 220% 100%;
  animation: force 3.4s ease-in-out infinite alternate;
}

@keyframes force { from { background-position: 0 0, 0 0, 100% 0; } to { background-position: 0 0, 0 0, 0% 0; } }

.pbar {
  border-radius: 999px;
  background: linear-gradient(90deg, #a9bdf3, #f9c3b2, #ef5b3a);
}

.taxels img { width: 100%; height: 100%; object-fit: contain; }

/* attention mask */
.cell {
  border-radius: calc(10 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.c-sb { background: #7aa0f5; }
.c-v { background: #7a5ae8; }
.c-l { background: #cbbdf7; }
.c-b { background: #3366ee; }
.c-vv { background: #9b82f0; }

.c-bias {
  background: #eef3ff;
  border: calc(2 * var(--u)) solid #7aa0f5;
  color: var(--ink);
  animation: gate 4s ease-in-out infinite;
}

@keyframes gate {
  0%, 100% { background: #eef3ff; }
  50% { background: #dbe6ff; }
}

.c-hatch {
  background-color: #9b82f0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0 calc(3 * var(--u)), transparent calc(3 * var(--u)) calc(11 * var(--u)));
  background-size: 200% 200%;
  animation: hatch 6s linear infinite;
}

@keyframes hatch { to { background-position: 100% 100%; } }

.mask.hovering .cell { opacity: 0.22; }
.mask.hovering .cell.hl { opacity: 1; transform: scale(1.04); box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) calc(-6 * var(--u)) rgba(40, 46, 110, 0.45); }
.mask .lab { transition: opacity 0.25s ease, transform 0.25s ease; }
.mask.hovering .lab { opacity: 0.35; }
.mask.hovering .lab.hl { opacity: 1; }
.legend-item { cursor: pointer; }

.sw {
  display: inline-block;
  width: calc(22 * var(--u));
  height: calc(22 * var(--u));
  border-radius: calc(6 * var(--u));
  margin-right: calc(12 * var(--u));
  flex: 0 0 auto;
}

/* build-in */
.panel .canvas > .n,
.panel .wires {
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--i, 0) * 28ms);
}

.js .panel:not(.in) .canvas > .n,
.js .panel:not(.in) .wires {
  opacity: 0;
  transform: translateY(calc(8 * var(--u)));
}

.panel.in .wires { transition-delay: 0.3s; }

.arch-caption {
  margin: 12px auto 0;
  max-width: 900px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
}

.arch-caption strong { color: var(--ink); }

.paused *,
.paused *::before,
.paused *::after { animation-play-state: paused !important; }

/* ---------- Cite / footer ---------- */

.bench-gallery {
  max-width: var(--wrap-text);
  margin: 18px auto 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.result-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 750;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.bench-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.bench-head h3 {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bench-head p {
  margin: 0;
  max-width: 460px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  text-align: right;
}

.arena-mosaic {
  display: grid;
  grid-template-columns: calc(40% - 3.2px) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.arena-side {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.arena-mosaic .roll {
  position: relative;
  border: 0;
  border-radius: 12px;
  background: #10121c;
  box-shadow: 0 1px 2px rgba(16, 18, 28, 0.08), 0 6px 18px -10px rgba(16, 18, 28, 0.35);
  overflow: hidden;
  isolation: isolate;
}

.arena-mosaic .roll::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 3;
}

.arena-mosaic .feature {
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(16, 18, 28, 0.08), 0 18px 40px -20px rgba(16, 18, 28, 0.5);
}

.arena-mosaic .tile {
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease;
}

.arena-mosaic .tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(16, 18, 28, 0.08), 0 14px 28px -12px rgba(16, 18, 28, 0.45);
}

.arena-mosaic .roll-stage {
  overflow: hidden;
  background: #10121c;
  aspect-ratio: 4 / 3;
}

.arena-mosaic .roll-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #10121c;
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}

.arena-mosaic .tile:hover .roll-stage video { transform: scale(1.05); }

.feature-main {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #10121c;
}

.feature-main > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #10121c;
}

.feature-strip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(14, 16, 26, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.cam-view {
  position: relative;
  margin: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #10121c;
}

.cam-view video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  background: #10121c;
}

.cam-view figcaption {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.55);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.arena-mosaic .tile h4 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 26px 10px 8px;
  background: linear-gradient(180deg, rgba(10, 12, 20, 0) 0%, rgba(10, 12, 20, 0.5) 45%, rgba(10, 12, 20, 0.82) 100%);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.arena-mosaic .feature h4 {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  margin: 0;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  color: #171a2c;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(16, 18, 28, 0.16);
  pointer-events: none;
}

.roll-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.roll-grid.ego {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  counter-reset: ego;
}

.roll-grid.ego .roll {
  position: relative;
  border: 0;
  border-radius: 12px;
  background: #10121c;
  box-shadow: 0 1px 2px rgba(16, 18, 28, 0.08), 0 6px 18px -10px rgba(16, 18, 28, 0.35);
  overflow: hidden;
  counter-increment: ego;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease;
}

.roll-grid.ego .roll::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 2;
}

.roll-grid.ego .roll-stage { border-radius: 0; }

.roll-grid.ego .roll-stage video {
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}

.roll-grid.ego .roll-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  justify-content: flex-start;
  padding: 26px 10px 8px;
  background: linear-gradient(180deg, rgba(10, 12, 20, 0) 0%, rgba(10, 12, 20, 0.5) 45%, rgba(10, 12, 20, 0.82) 100%);
  pointer-events: none;
}

.roll-grid.ego .roll-meta h4 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.roll-grid.ego .roll-meta h4::before {
  content: counter(ego, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.roll-grid.ego .roll:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(16, 18, 28, 0.08), 0 14px 28px -12px rgba(16, 18, 28, 0.45);
}

.roll-grid.ego .roll:hover .roll-stage video { transform: scale(1.05); }

.bench-block .result-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bench-block .result-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.roll {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.roll-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #10121c;
}

.roll-stage.wide { aspect-ratio: 16 / 9; }

.roll-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roll-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 12px 14px;
}

.roll-meta h4 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cams {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}

.cam {
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.cam.on,
.cam:hover {
  border-color: var(--lav);
  background: var(--lav-bg);
  color: var(--violet);
}

.h-note {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--faint);
}

.mixbar {
  display: flex;
  height: 26px;
  margin: 8px 0 10px;
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.mixbar span {
  flex: var(--w) 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.mixbar span:last-child { border-right: 0; }
.mixbar b { font-weight: 700; opacity: 0.85; }

.mixbar .ht, .mixkey .ht { background: var(--violet); }
.mixbar .ego, .mixkey .ego { background: var(--blue); }
.mixbar .glove, .mixkey .glove { background: var(--violet-2); }
.mixbar .rob, .mixkey .rob { background: var(--blue-2); }
.mixbar .sim, .mixkey .sim { background: #9aa9cc; }
.mixbar .fa, .mixkey .fa { background: #c3cbe0; }
.mixbar .agi, .mixkey .agi { background: #dde2ef; }

.mixkey {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--muted);
}

.mixkey li { display: inline-flex; align-items: center; gap: 6px; }
.mixkey i { width: 9px; height: 9px; border-radius: 2px; }

.sec-body p.fine { font-size: 12px; color: var(--muted); }

.bench-take {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-2);
}


.takeaways-label {
  margin: 22px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.takeaways {
  display: grid;
  gap: 0;
  counter-reset: finding;
}

.takeaways article {
  counter-increment: finding;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.takeaways article:last-child { border-bottom: 0; padding-bottom: 0; }

.takeaways h4::before {
  content: counter(finding, decimal-leading-zero);
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--violet);
}

.takeaways h4 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.takeaways p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-2);
}

.bench-score { margin: 0 0 16px; }

.bench-score p {
  margin: 0 0 8px;
  max-width: 760px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.bench-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.bench-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.bench-table th,
.bench-table td {
  padding: 7px 6px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.bench-table thead th {
  background: #f7f8fc;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  position: sticky;
  top: 0;
  z-index: 2;
}

.bench-table thead tr.subhead th {
  font-weight: 600;
  font-size: 10px;
  color: var(--faint);
  top: 34px;
}

.bench-table thead th:first-child,
.bench-table tbody th {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  font-weight: 650;
  color: var(--ink-2);
  min-width: 112px;
}

.bench-table thead th:first-child {
  z-index: 3;
  background: #f7f8fc;
}

.bench-table tbody tr:last-child th,
.bench-table tbody tr:last-child td { border-bottom: 0; }

.bench-table tr.ours th,
.bench-table tr.ours td { background: #fbfaff; }

.bench-table tr.lead th,
.bench-table tr.lead td { background: var(--lav-bg); }

.bench-table tr.lead th { color: var(--ink); font-weight: 750; }

.bench-table tr.split th,
.bench-table tr.split td { box-shadow: inset 0 1px 0 var(--line-2); }

.bench-table .num { font-weight: 600; color: var(--ink-2); }

.bench-table .den {
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
}

.bench-table .den::before {
  content: "/";
  margin: 0 4px;
  color: #c3c7d6;
  font-weight: 400;
}

.bench-table .best {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
}

.bench-table .den.best {
  display: inline;
  padding: 0;
  background: none;
  color: var(--violet);
  font-weight: 700;
}

.bench-table .second { font-weight: 750; color: var(--ink); }

.bench-table .den.second { color: var(--ink-2); font-weight: 700; }

.real-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 16px;
}

.real-col {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.real-col h4 {
  margin: 0 0 8px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}

.real-note {
  margin: 0 0 10px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}

.real-frame { position: relative; }

.real-end {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: rgba(22, 140, 78, 0.72);
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(9px, 14cqw, 15px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.real-col.ended .real-end { opacity: 1; }

.real-col.partial .real-end {
  background: rgba(224, 168, 32, 0.78);
  color: #2a2208;
}

.real-head {
  border-radius: 10px;
  overflow: hidden;
  background: #10121c;
  aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 0 1px rgba(16, 18, 28, 0.06);
  container-type: inline-size;
}

.real-head video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #10121c;
}

.real-gloves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.real-gloves .real-frame {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  container-type: inline-size;
}

.real-gloves video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 0.82;
  object-fit: contain;
  background: #fff;
}

.real-legend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.01em;
}

.real-legend i {
  width: 92px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eceaf6 0%, #b7b0ee 38%, #6a5ae0 72%, #2c22b0 100%);
}

@media (max-width: 1080px) {
  .arena-mosaic { grid-template-columns: minmax(0, 1fr); }
  .real-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roll-grid.ego { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bench-head { flex-direction: column; align-items: flex-start; }
  .bench-head p { text-align: left; }
}

@media (max-width: 640px) {
  .arena-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roll-grid { grid-template-columns: 1fr; }
  .roll-grid.ego { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .real-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roll-meta { flex-wrap: wrap; }
}

.cite {
  padding: 36px 24px 64px;
}

.cite-card {
  max-width: var(--wrap-text);
  margin: 0 auto;
}

.cite-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}

.cite-head h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--violet);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover { border-color: var(--violet-2); color: var(--violet); }
.copy-btn svg { width: 12px; height: 12px; }

pre.bibtex {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px 36px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
}

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--violet); }
.visitors { display: inline-flex; }
.visitors img { display: block; height: 20px; width: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal {
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1);
}

.js .reveal:not(.in) {
  opacity: 0;
  transform: translateY(18px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .arch-row.r1, .arch-row.r2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .topnav.open { border-radius: 22px; }
  .topnav.open .nav-links {
    display: flex;
    flex-direction: column;
    padding: 0 10px 12px;
  }
  .topnav.open .nav-inner { flex-wrap: wrap; height: auto; min-height: 56px; }
  .topnav.open .nav-links { width: 100%; order: 3; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; padding-right: 0; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stat:nth-child(3) { padding-left: 0; }
  .gens, .roles, .studies, .suites { grid-template-columns: 1fr; }
  .hero { padding: 110px 20px 96px; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 10, 22, 0.55) 0%, rgba(8, 10, 22, 0.2) 30%, rgba(8, 10, 22, 0.6) 60%, rgba(8, 10, 22, 0.92) 100%);
  }
  .video-tag { display: none; }
  .arch-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .sec { padding: 28px 16px; }
  .teaser-card { padding: 6px; border-radius: 12px; }
  .teaser-card img { border-radius: 7px; }
  .panel { padding: 14px 12px 14px; border-radius: 16px; }
  pre.bibtex { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .panel .canvas > .n, .panel .wires { opacity: 1; transform: none; }
}
