@font-face {
  font-family: Inter;
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Unbounded;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/unbounded.woff2) format("woff2");
}
@font-face {
  font-family: Unbounded;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/unbounded-alternate.woff2) format("woff2");
}
@font-face {
  font-family: "EMMath";
  src: url(../fonts/emmath.woff) format("woff");
  font-display: block;
}
.math,
svg.arch .m {
  font-family: "EMMath", "Latin Modern Math", "STIX Two Math", serif;
  font-weight: 400;
}
.math {
  font-size: 1.08em;
}
/* EM-WAM project page — PAW Team design system (same tokens as the Native LAM page). */
:root {
  --brand-blue: #3137d0;
  --brand-blue-deep: #2328a8;
  --brand-lime: #c8f53c;
  --brand-lime-deep: #a9d61e;
  --brand-pink: #f067e0;
  --bg: #ffffff;
  --surface: #f4f5fa;
  --surface-raised: #ffffff;
  --tint-blue: #ecedfb;
  --line: #e3e5ee;
  --line-strong: #d3d4e9;
  --ink: #0b0b0f;
  --ink-muted: #52525b;
  --accent: var(--brand-blue);
  --on-accent: #ffffff;
  --blue: #3137d0;
  --lime: #a9d61e;
  --pink: #f067e0;
  --endo: #3137d0;
  --exo: #d9660a;
  --exo-bg: #ffebd6;
  --endo-bg: #e4e7fb;
  --good: #2f7d1f;
  --bad: #c4302b;
  --good-bg: #e4f4dd;
  --bad-bg: #fbe3e1;
  --video-bg: #dae8fc;
  --video-ln: #6c8ebf;
  --action-bg: #d5e8d4;
  --action-ln: #5e9a56;
  --grey-bg: #e7e7eb;
  --font-display: Unbounded, Inter, system-ui, sans-serif;
  --font-sans:
    Inter, system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --shadow: 0 24px 60px -40px #23267566;
}
html[data-theme="dark"] {
  --bg: #0b0b0f;
  --surface: #15151c;
  --surface-raised: #1c1c25;
  --tint-blue: #1d1f4a;
  --line: #2a2a35;
  --line-strong: #3a3a48;
  --ink: #f5f5f7;
  --ink-muted: #a1a1aa;
  --accent: var(--brand-lime);
  --on-accent: #0b0b0f;
  --blue: #6d72f2;
  --lime: #c8f53c;
  --pink: #ff85f2;
  --endo: #8c90ff;
  --exo: #ff9f43;
  --exo-bg: #3a2410;
  --endo-bg: #1d1f4a;
  --good: #7ddb5e;
  --bad: #ff7b72;
  --good-bg: #173016;
  --bad-bg: #3a1816;
  --video-bg: #1e2b45;
  --video-ln: #5e7fb8;
  --action-bg: #1e3a24;
  --action-ln: #5aa55a;
  --grey-bg: #26262f;
  --shadow: 0 24px 60px -36px #000;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
::selection {
  background: var(--brand-lime);
  color: #0b0b0f;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
html[data-theme="dark"] :focus-visible {
  outline-color: var(--brand-lime);
}
.wrap {
  width: min(1160px, calc(100% - 72px));
  margin-inline: auto;
}
.skip {
  position: fixed;
  left: 20px;
  top: -80px;
  background: var(--bg);
  padding: 10px;
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
sup {
  font-size: 0.62em;
  line-height: 0;
}
/* ---------- header ---------- */
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(36px, calc((100vw - 1160px) / 2));
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffffed;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
html[data-theme="dark"] .site-header {
  background: rgba(11, 11, 15, 0.88);
}
.brand img {
  height: 40px;
  width: auto;
}
.brand .dk,
html[data-theme="dark"] .brand .lt {
  display: none;
}
html[data-theme="dark"] .brand .dk {
  display: block;
}
nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 550;
}
nav a {
  color: var(--ink-muted);
}
nav a:hover,
nav a.active {
  color: var(--ink);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quiet {
  background: transparent;
  border: 0;
  color: var(--ink-muted);
  padding: 8px 10px;
  font-size: 13px;
}
.theme-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 68px;
  height: 34px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
}
.theme-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 30px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-raised);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html[data-theme="dark"] .theme-switch::before {
  transform: translateX(30px);
}
.theme-switch svg {
  position: relative;
  width: 16px;
  height: 16px;
  justify-self: center;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}
html:not([data-theme="dark"]) .theme-switch .sun,
html[data-theme="dark"] .theme-switch .moon {
  opacity: 1;
  color: var(--accent);
}
/* ---------- type ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
}
h1 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-size: clamp(24px, 3.3vw, 46px);
  text-align: center;
  text-wrap: balance;
}
h1 > span,
h2 span {
  color: var(--accent);
}
h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-size: clamp(23px, 2.5vw, 34px);
  text-wrap: balance;
}
h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(19px, 1.8vw, 22px);
}
p {
  margin: 0;
}
.eyebrow {
  font: 500 12px/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.part {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint-blue);
  color: var(--brand-blue);
  font-weight: 500;
}
html[data-theme="dark"] .eyebrow.part {
  color: var(--brand-lime);
}
.section-heading {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 34px;
}
.section-heading p.lede {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 18px;
  text-wrap: balance;
}
section.block {
  padding: 92px 0 0;
}
.project-name {
  text-align: center;
  font: 700 24px/1.2 var(--font-sans);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.project-name .pn-native {
  color: var(--blue);
}
.project-name .pn-plus {
  color: var(--ink-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.pn-paw {
  width: 26px;
  height: 26px;
}
.authors {
  text-align: center;
  margin-top: 22px;
  font-size: 16px;
  color: var(--ink-muted);
}
.authors .author-list {
  font-weight: 600;
  color: var(--ink);
}
.authors .author-list {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.7;
}
.authors sup {
  font-size: 0.62em;
  font-weight: 600;
  color: var(--ink-muted);
  margin-left: 1px;
  vertical-align: super;
  line-height: 0;
}
.authors sup i {
  font-style: normal;
  font-size: 1em;
}
.authors .author-affils,
.authors .author-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-muted);
}
.authors .author-notes {
  margin-top: 2px;
  font-size: 13px;
}
.authors .author-affils sup,
.authors .author-notes sup {
  font-size: 0.7em;
  margin-right: 2px;
}
.hero {
  padding-top: 54px;
}
.hero-description {
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink-muted);
  text-align: center;
  margin: 22px auto 0;
  max-width: 1040px;
}
.hero-stats {
  display: inline-block;
}
@media (min-width: 1240px) {
  .hero-stats {
    white-space: nowrap;
  }
}
.hv {
  display: inline-block;
  font: 700 0.95em var(--font-display);
  padding: 0 0.1em;
  white-space: nowrap;
}
.hv.a {
  background: linear-gradient(90deg, #3137d0, #f067e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] .hv.a {
  background-image: linear-gradient(90deg, #8c90ff, #ff85f2);
}
.hv.b {
  background: var(--brand-lime);
  color: #0b0b0f;
  border-radius: 8px;
  padding: 0 0.35em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 18px;
  background: var(--bg);
  font-size: 15px;
  font-weight: 550;
  white-space: nowrap;
}
.button:hover {
  background: var(--tint-blue);
}
html[data-theme="dark"] .button {
  background: transparent;
  border-color: var(--line);
}
html[data-theme="dark"] .button:hover {
  background: var(--surface);
}
.button.primary {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}
.button.primary:hover {
  background: var(--brand-blue-deep);
}
html[data-theme="dark"] .button.primary {
  background: var(--brand-lime);
  border-color: var(--brand-lime);
  color: #0b0b0f;
}
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--accent);
  font-size: 17px;
}
.icon-button:hover {
  background: var(--tint-blue);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-raised);
  overflow: hidden;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  border: 1px solid var(--line);
}
.chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.tag-ours {
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--brand-lime);
  color: #0b0b0f;
  margin-left: 8px;
}
/* ---------- Figure 1 ---------- */
.fig1 {
  margin-top: 38px;
}
.fig1-wide {
  width: 100%;
  position: relative;
  margin-top: 18px;
}
.f1-grid {
  display: grid;
  grid-template-columns: 236px 1fr 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  margin-top: 16px;
}
.seedbox {
  grid-row: 1/4;
  border: 1.5px dashed var(--line-strong);
  border-radius: 18px;
  pointer-events: none;
}
.seedbox.s0,
.f1-hd.s0,
.f1-cell[data-s="s0"] {
  grid-column: 2;
}
.seedbox.s1,
.f1-hd.s1,
.f1-cell[data-s="s1"] {
  grid-column: 3;
}
.f1-hd {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 12px 4px;
  text-align: center;
}
.f1-hd b {
  font: 700 15px/1.2 var(--font-sans);
}
.f1-hd span {
  font: 500 12px var(--font-mono);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.f1-cell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 12px;
  align-self: center;
}
.rowline {
  grid-column: 1/4;
  grid-row: 3;
  border-top: 1.5px dashed var(--line-strong);
  pointer-events: none;
}
.f1-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}
.f1-cols span {
  font: 600 12px var(--font-sans);
  color: var(--ink-muted);
  text-align: center;
}
.f1-cell[data-m="lb"] {
  grid-row: 2;
}
.f1-cell[data-m="em"] {
  grid-row: 3;
}
.f1-flow {
  grid-column: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 4px;
}
.f1-flow.lb {
  grid-row: 2;
}
.f1-flow.em {
  grid-row: 3;
}
.f1-flow h3 {
  font: 700 16px/1.25 var(--font-sans);
}
.f1-flow h3 small {
  display: block;
  font: 500 11px var(--font-mono);
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  margin-top: 3px;
}
.f1-flow.em h3 {
  color: var(--exo);
}
.f1-flow .flow-row {
  display: grid;
  grid-template-columns: 56px 10px 62px 10px 66px;
  align-items: center;
  column-gap: 5px;
}
.f1-flow .flow-row .tokens {
  justify-self: start;
}
.f1-flow .flow-row .node {
  padding: 9px 0;
  text-align: center;
}
.f1-flow .flow-row .arrow {
  text-align: center;
}
svg.flowsvg {
  width: 100%;
  height: auto;
  display: block;
}
svg.flowsvg .ln {
  stroke-width: 1.3;
}
.f1-flow h3 {
  white-space: nowrap;
  font-size: 14px;
}
.f1-flow .lbl {
  font: 500 10.5px var(--font-mono);
  color: var(--ink-muted);
  margin-top: -2px;
}
.f1-flow .arrow {
  color: var(--ink-muted);
  font-size: 14px;
}
.f1-flow .arrow.bank {
  color: var(--exo);
}
.f1-flow .ne {
  font-size: 18px;
  color: var(--exo);
  line-height: 1;
}
.mini {
  width: 30px;
  height: 23px;
  border-radius: 3px;
  border: 1.5px solid var(--ink-muted);
  background: var(--surface);
  display: block;
}
.mini.dashed {
  border-style: dashed;
}
.seed-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 2px 4px 12px;
}
.seed-head b {
  font: 700 15px/1.2 var(--font-sans);
}
.seed-head span {
  font: 500 12px var(--font-mono);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.fig1-wide {
  cursor: pointer;
}
.f1-cell.ours .cell-head h3 {
  color: var(--exo);
}
.cell-head {
  padding: 0 2px;
}
.cell-head h3 {
  font: 700 15px/1.2 var(--font-sans);
}
.cell-head small {
  font: 500 10px var(--font-mono);
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  text-align: right;
}
.cell-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px 10px;
  min-height: 52px;
  border-top: 1px solid var(--line);
}
.f1-cell.ours.cue .obspred {
  opacity: 1;
}
.f1-cell.ours[data-s="s1"].cue .node.bank {
  box-shadow:
    0 0 0 3px var(--exo-bg),
    0 0 14px 2px var(--exo);
}
.fig1-wide.hold .vid-box.a {
  outline: 3px solid var(--exo);
  outline-offset: -3px;
}
.vid-box.b video {
  transition: opacity 0.4s;
}
.vid-box.b.wait video {
  opacity: 0.22;
}
.f1-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-raised);
}
.f1-bar .spacer {
  flex: 1;
}
.f1-status {
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  min-width: 170px;
  text-align: center;
}
.fig1-wide.hold .f1-status {
  background: var(--exo);
  color: #fff;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px var(--exo-bg);
  }
}
.taskbar {
  background: var(--grey-bg);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
.taskbar b {
  font-weight: 700;
}
.vid-box {
  position: relative;
  aspect-ratio: 4/3;
  background: #111;
  overflow: hidden;
  border-radius: 10px;
}
.vid-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.vid-box img.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.vid-box.cue img.overlay {
  opacity: 1;
}
.vid-box.nomap img.overlay {
  opacity: 0 !important;
}
.vid-box .verdict {
  position: absolute;
  right: 7px;
  bottom: 7px;
  white-space: nowrap;
  font: 700 12px/1 var(--font-sans);
  padding: 5px 8px;
  border-radius: 7px;
  background: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.3s;
  border: 2px solid;
}
.vid-box .verdict.ok {
  color: var(--good);
  border-color: var(--good);
}
.vid-box .verdict.fail {
  color: var(--bad);
  border-color: var(--bad);
}
.vid-box .verdict.show {
  opacity: 1;
  transform: none;
}
.node {
  font: 600 13px/1 var(--font-sans);
  padding: 9px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--video-ln);
  background: var(--video-bg);
  color: var(--ink);
}
.node.action {
  border-color: var(--action-ln);
  background: var(--action-bg);
}
.node.sm {
  padding: 7px 10px;
  font-size: 12px;
}
.node.bank {
  border-color: var(--exo);
  background: var(--exo-bg);
  color: var(--exo);
  transition: box-shadow 0.3s;
}
.cell-foot .arrow {
  color: var(--ink-muted);
  font-size: 15px;
}
.tokens {
  display: inline-flex;
  gap: 3px;
}
.tokens i {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid var(--video-ln);
  background: var(--video-bg);
  display: block;
}
.tokens.sum i {
  border-style: dashed;
  background: transparent;
  width: 13px;
  height: 13px;
}
.cell-foot .lbl {
  font-size: 10.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.obspred {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.25;
  transition: opacity 0.3s;
}
.obspred img {
  width: 40px;
  height: 30px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  image-rendering: auto;
}
.obspred b {
  font-size: 20px;
  color: var(--exo);
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}
.seg button {
  border: 0;
  background: var(--bg);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-muted);
}
html[data-theme="dark"] .seg button {
  background: transparent;
}
.seg button[aria-pressed="true"],
html[data-theme="dark"] .seg button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}
.fig-caption {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.fig-caption b {
  color: var(--ink);
}
.fig-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}
/* ---------- Figure 2 ---------- */
.arch-panel {
  padding: 0;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.arch-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.method-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.method-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  padding: 7px 11px;
  font-size: 13px;
  white-space: nowrap;
  font-weight: 550;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
html[data-theme="dark"] .method-tab {
  background: transparent;
}
.method-tab i {
  font: 600 11px var(--font-mono);
  font-style: normal;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink-muted);
}
.method-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.method-tab[aria-selected="true"] i {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}
html[data-theme="dark"] .method-tab[aria-selected="true"] i {
  background: rgba(0, 0, 0, 0.16);
}
.arch-stage {
  padding: 10px 14px 0;
}
svg.arch {
  width: 100%;
  height: auto;
  font-family: var(--font-sans);
  overflow: visible;
}
svg.arch .g {
  transition: opacity 0.45s;
}
svg.arch.focus .g:not(.on) {
  opacity: 0.24;
}
svg.arch text {
  fill: var(--ink);
}
svg.arch .mut {
  fill: var(--ink-muted);
}
svg.arch .vbar {
  fill: var(--video-bg);
  stroke: var(--video-ln);
  stroke-width: 1.5;
}
svg.arch .abar {
  fill: var(--action-bg);
  stroke: var(--action-ln);
  stroke-width: 1.5;
}
svg.arch .gbox {
  fill: var(--grey-bg);
  stroke: none;
}
svg.arch .ebox {
  fill: var(--exo-bg);
  stroke: var(--exo);
  stroke-width: 1.5;
}
svg.arch .dash {
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1.3;
  stroke-dasharray: 5 4;
}
svg.arch .ln {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  marker-end: url(#ah);
}
svg.arch .ln.o {
  stroke: var(--exo);
  marker-end: url(#aho);
}
svg.arch .full {
  fill: var(--video-bg);
  stroke: var(--endo);
  stroke-width: 1.5;
}
svg.arch .summ {
  fill: none;
  stroke: var(--endo);
  stroke-width: 1.4;
  stroke-dasharray: 3 2.5;
}
svg.arch .bar {
  fill: var(--endo);
  opacity: 0.5;
}
svg.arch .bar.hi {
  opacity: 1;
}
svg.arch .thr {
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
}
svg.arch .frame {
  stroke: var(--ink-muted);
  stroke-width: 1.2;
}
svg.arch .orange {
  fill: var(--exo);
}
svg.arch .hot {
  fill: none;
  stroke: var(--exo);
  stroke-width: 1.6;
}
svg.arch .pbox {
  fill: var(--surface);
  stroke: none;
}
svg.arch .group-endo {
  fill: var(--endo-bg);
  stroke: var(--endo);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  opacity: 0.55;
}
svg.arch .group-box {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-dasharray: 6 5;
}
.arch-note {
  padding: 10px 20px 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.arch-note .step-no {
  font: 700 28px/1 var(--font-mono);
  color: var(--accent);
  min-width: 34px;
  text-align: center;
}
.arch-note h3 {
  font: 700 17px/1.3 var(--font-sans);
  margin-bottom: 2px;
}
.arch-note p {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.arch-foot {
  font-size: 12px;
  color: var(--ink-muted);
  padding: 0 20px 14px;
}
/* ---------- benchmark ---------- */
.facts {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -6px 0 26px;
}
.event-types {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.ev-goal {
  --c: var(--blue);
}
.ev-noop {
  --c: var(--pink);
}
.ev-pert {
  --c: var(--lime);
}
.ev-defer {
  --c: var(--exo);
}
.ev {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--c);
  color: var(--ink);
}
.ev::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.gallery {
  display: block;
}
.task-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 22px;
  max-width: 980px;
}
.task-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  padding: 8px 15px 8px 12px;
  font: 600 14px/1.2 var(--font-sans);
  color: var(--ink-muted);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.task-btn::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
.task-btn b {
  font-weight: inherit;
}
.task-btn:hover {
  color: var(--ink);
  border-color: var(--c);
}
.task-btn[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--c);
  box-shadow: 0 0 0 1.5px var(--c) inset;
  background: var(--surface);
}
.player {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-raised);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
}
.player-main {
  background: #111;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.player-main::before {
  content: "";
  display: block;
  padding-top: 75%;
}
.player-main video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.player-side {
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}
.player-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.player-info h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: clamp(20px, 1.9vw, 26px);
}
.player-info .tagline {
  font: 600 16px var(--font-sans);
  margin-top: 8px;
  color: var(--accent);
}
.player-info p.desc {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.player-info details {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-muted);
}
.player-info summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.player-info details[open] p {
  max-height: 150px;
  overflow: auto;
  padding-right: 6px;
}
.samples-label {
  font: 500 11px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.samples {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.sample {
  border: 2px solid transparent;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
  padding: 0;
  opacity: 0.62;
  transition:
    opacity 0.2s,
    border-color 0.2s;
}
.sample:hover {
  opacity: 1;
}
.sample img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.sample[aria-selected="true"] {
  border-color: var(--accent);
  opacity: 1;
}
.sample-note {
  margin-top: 8px;
  font: 500 12px/1.4 var(--font-mono);
  color: var(--ink-muted);
  min-height: 34px;
}
.media-label {
  font: 500 11px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
/* ---------- leaderboard (RoboDojo style) ---------- */
.lb-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 0 18px;
}
.lb-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}
.lb-tab[aria-selected="true"] {
  background: var(--tint-blue);
  border-color: #b9bef3;
  color: var(--brand-blue);
}
html[data-theme="dark"] .lb-tab[aria-selected="true"] {
  color: var(--brand-lime);
  border-color: #4a5a1a;
  background: #232a12;
}
.lb-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lb-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px 10px;
}
.lb-top b {
  font-size: 15px;
}
.lb-top span {
  font: 500 11px var(--font-mono);
  color: var(--ink-muted);
}
.lb-scroll {
  overflow-x: auto;
}
table.lb {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11.5px;
  min-width: 900px;
}
table.lb th {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: #80868b;
  font: 700 10px/1.35 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 11px 6px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: normal;
  user-select: none;
  vertical-align: bottom;
}
table.lb th.sortable {
  cursor: pointer;
}
table.lb th.sortable:hover {
  color: var(--ink);
}
table.lb th.sorted {
  color: var(--brand-blue);
}
html[data-theme="dark"] table.lb th.sorted {
  color: var(--brand-lime);
}
table.lb th.left,
table.lb td.left {
  text-align: left;
}
table.lb td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
table.lb tr:last-child td {
  border-bottom: 0;
}
table.lb td.avg {
  background: rgba(14, 165, 233, 0.06);
  font-weight: 700;
  font-size: 12.5px;
}
table.lb td.rank {
  font-size: 15px;
  width: 56px;
}
table.lb td.model {
  font: 600 13.5px var(--font-sans);
  text-align: left;
  white-space: nowrap;
}
table.lb td.model .mono {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-right: 9px;
  font: 700 10px var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--line);
  vertical-align: middle;
}
table.lb tr.ours td {
  background: color-mix(in srgb, var(--brand-lime) 14%, transparent);
}
table.lb tr.ours td.avg {
  background: color-mix(in srgb, var(--brand-lime) 26%, transparent);
}
table.lb tr.ghost td {
  color: var(--ink-muted);
}
table.lb tr.ghost td.model {
  font-weight: 500;
}
table.lb td.best {
  font-weight: 800;
  color: var(--ink);
}
table.lb td.best::after {
  content: "";
  display: block;
  width: 14px;
  height: 2px;
  margin: 3px auto 0;
  background: var(--accent);
  border-radius: 2px;
}
table.lb td:not(.best) {
  color: var(--ink);
}
.type {
  display: inline-block;
  font: 700 10px/1 var(--font-mono);
  padding: 4px 7px;
  border-radius: 5px;
  letter-spacing: 0.04em;
}
.type.VLA {
  background: #eeeafe;
  color: #5b3fd6;
}
.type.WAM {
  background: #ddf3e8;
  color: #1e7a4f;
}
html[data-theme="dark"] .type.VLA {
  background: #2a2250;
  color: #b6a6ff;
}
html[data-theme="dark"] .type.WAM {
  background: #133324;
  color: #7fe0b0;
}
.lb-foot {
  padding: 12px 20px 16px;
  font-size: 12.5px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.sub-lb {
  margin-top: 20px;
}
.sub-lb h3 {
  font: 700 16px var(--font-sans);
  padding: 14px 20px 4px;
}
/* ---------- real world ---------- */
.video-wide {
  max-width: none;
  margin: 0 auto;
}
.rate-card.wide {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: center;
}
.rollout {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}
.rollout video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  background: #000;
}
.chapters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.chapter {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  padding: 7px 13px;
  font: 500 12px var(--font-mono);
  color: var(--ink-muted);
}
html[data-theme="dark"] .chapter {
  background: transparent;
}
.chapter:hover,
.chapter.on {
  border-color: var(--accent);
  color: var(--accent);
}
.rate-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  background: var(--surface-raised);
}
.big-rate {
  font: 700 clamp(40px, 5vw, 64px) / 1 var(--font-display);
  letter-spacing: -0.03em;
}
.big-rate .of {
  color: var(--ink-muted);
  font-size: 0.5em;
}
.bars {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}
.bar-task h4 {
  margin: 0 0 8px;
  font: 700 14px var(--font-sans);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.bar-task h4 span {
  font: 500 11px var(--font-mono);
  color: var(--ink-muted);
}
.bar-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  align-items: center;
  margin: 6px 0;
  font-size: 12.5px;
}
.bar-row .name {
  color: var(--ink-muted);
  line-height: 1.2;
}
.bar-track {
  height: 26px;
  border-radius: 7px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 9px;
  font: 700 12px var(--font-mono);
  color: #fff;
  white-space: nowrap;
  transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bar-fill.lb {
  background: #8a8ca8;
}
.bar-fill.wo {
  background: var(--blue);
}
.bar-fill.ours {
  background: var(--brand-lime);
  color: #0b0b0f;
}
html[data-theme="dark"] .bar-fill.wo {
  background: #5459d8;
}
.rate-left {
  padding: 8px 0;
}
.rate-sub {
  margin-top: 10px;
  font-size: 17px;
  color: var(--ink);
}
.rate-vs {
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-muted);
}
.rate-vs b {
  color: var(--ink);
}
.rate-fast {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink);
}
.rate-fast b {
  font: 700 20px var(--font-display);
  color: var(--accent);
}
.rate-fast span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.rate-card .fine {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.trial-ctl {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 14px;
}
.trial-ctl label {
  font: 500 11px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
select {
  font: 600 13px var(--font-sans);
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
html[data-theme="dark"] select {
  background: var(--surface);
}
.trial-pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.trial {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-raised);
}
.trial .t-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
}
.trial video {
  width: 100%;
  aspect-ratio: 4/3;
  background: #111;
  display: block;
  object-fit: cover;
}
.trial .t-foot {
  padding: 8px 14px 11px;
  font: 500 11px/1.5 var(--font-mono);
  color: var(--ink-muted);
}
.t-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.t-time {
  font: 600 12px var(--font-mono);
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  min-width: 54px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.t-time.done {
  font-weight: 700;
}
.t-time.done.ok {
  background: var(--accent);
  color: var(--on-accent);
}
.t-time.done.end {
  background: var(--grey-bg);
  color: var(--ink);
}
.trial-sum {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ink-muted);
}
.trial-sum b {
  font-size: 20px;
  color: var(--ink);
}
.trial-sum .s-em b {
  color: var(--accent);
}
.trial-sum .s-x {
  font: 700 14px var(--font-sans);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}
.res {
  font: 700 11px var(--font-mono);
  padding: 4px 8px;
  border-radius: 5px;
  letter-spacing: 0.04em;
}
.res.ok {
  background: var(--good-bg);
  color: var(--good);
}
.res.fail {
  background: var(--bad-bg);
  color: var(--bad);
}
.speed-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  font: 700 11px var(--font-mono);
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(11, 11, 15, 0.72);
  color: #fff;
}
.trial .vwrap {
  position: relative;
}
.finding {
  margin-top: 18px;
  font-size: 15.5px;
  color: var(--ink-muted);
  max-width: 900px;
}
/* ---------- footer / dialog ---------- */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 110px;
  padding: 26px 0 34px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
}
footer .footer-name {
  font: 700 18px var(--font-sans);
  color: var(--ink);
}
footer .footer-name .pn-native {
  color: var(--blue);
}
footer .footer-name .mut {
  color: var(--ink-muted);
  font-weight: 500;
}
dialog {
  width: min(800px, calc(100% - 40px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 42px;
  box-shadow: 0 15px 100px #1d206330;
  color: var(--ink);
  background: var(--bg);
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #1d1e4255;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 30px;
  margin-bottom: 6px;
}
dialog p {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-muted);
  margin-top: 18px;
}
dialog p b {
  color: var(--ink);
}
dialog .close {
  position: absolute;
  right: 14px;
  top: 14px;
}
html.still * {
  animation: none !important;
}
.hidden {
  display: none !important;
}
/* ---------- responsive ---------- */
.rw-module {
  margin-top: 48px;
}
.rw-switch {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}
.rw-switch .seg {
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  background: var(--surface);
}
.rw-switch .seg button {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14.5px;
}
.rw-panel[hidden] {
  display: none;
}
.sub-h {
  margin: 56px 0 6px;
  text-align: center;
  font-size: clamp(20px, 2.2vw, 26px);
}
.sub-h.sc-h {
  margin-top: 84px;
}
.sub-lede {
  text-align: center;
  color: var(--ink-muted);
  font-size: 16px;
  margin: 0 auto 22px;
  max-width: 760px;
}
.sc-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.sc-tabs .task-btn {
  --c: var(--accent);
}
.sc {
  display: grid;
  grid-template-columns: 1fr 20%;
  gap: 14px;
  align-items: start;
}
.sc figure {
  margin: 0;
}
.sc figcaption {
  font: 500 12px var(--font-mono);
  color: var(--ink-muted);
  margin-top: 6px;
  letter-spacing: 0.03em;
}
.sc-box {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}
.sc-box.wide {
  aspect-ratio: 16/9;
}
.sc-box.four {
  aspect-ratio: 4/3;
}
.sc-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sc-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-ctl {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.sc-ctl .button {
  min-width: 44px;
  padding: 8px 14px;
}
.sc-ctl input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}
.sc-time {
  font: 500 12px var(--font-mono);
  color: var(--ink-muted);
  min-width: 84px;
  text-align: right;
}
.sc-ctl label {
  font: 500 11px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 760px) {
  .sc {
    grid-template-columns: 1fr;
  }
  .sc-side {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .sc-time {
    min-width: 0;
  }
}
@media (max-width: 900px) {
  .rate-card.wide {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .player-grid {
    grid-template-columns: 1fr;
  }
  .player-side {
    padding: 20px;
  }
}
@media (max-width: 1100px) {
  nav {
    gap: 16px;
    font-size: 14px;
  }
}
@media (max-width: 900px) {
  .fig1-wide {
    width: 100%;
    left: 0;
    transform: none;
  }
  .f1-grid {
    grid-template-columns: 1fr 1fr;
  }
  .seedbox {
    display: none;
  }
  .f1-hd.s0,
  .f1-cell[data-s="s0"] {
    grid-column: 1;
  }
  .f1-hd.s1,
  .f1-cell[data-s="s1"] {
    grid-column: 2;
  }
  .f1-hd {
    grid-row: 1;
    padding: 8px;
  }
  .f1-flow {
    grid-column: 1/3;
    padding: 10px 0;
  }
  .f1-flow.lb {
    grid-row: 2;
  }
  .f1-cell[data-m="lb"] {
    grid-row: 3;
  }
  .f1-flow.em {
    grid-row: 4;
  }
  .f1-cell[data-m="em"] {
    grid-row: 5;
  }
  .f1-cell {
    padding: 6px 4px;
  }
  .rowline {
    display: none;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 60px;
    padding: 0 16px;
  }
  nav {
    display: none;
  }
  body {
    font-size: 16px;
  }
  .hero-description {
    font-size: 17px;
  }
  .trial-pairs {
    grid-template-columns: 1fr;
  }
  .theme-switch {
    width: 60px;
    height: 30px;
  }
  .theme-switch::before {
    width: 26px;
    height: 22px;
  }
  html[data-theme="dark"] .theme-switch::before {
    transform: translateX(26px);
  }
  .branch-tab {
    min-width: 100%;
  }
  dialog {
    padding: 36px 22px 24px;
  }
  section.block {
    padding-top: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .theme-switch::before,
  .bar-fill,
  .vid-box img.overlay {
    transition: none;
  }
}

/* 2026-11-23 */
.finding {
  margin-top: 22px;
  max-width: none;
}
.finding h4 {
  margin: 0 0 12px;
  font: 700 16px var(--font-sans);
  color: var(--ink);
}
.finding ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.finding li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface-raised);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14.5px;
  line-height: 1.55;
}
.finding li b {
  font: 600 12px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 760px) {
  .finding ul {
    grid-template-columns: 1fr;
  }
}
h3 .ev {
  display: flex;
  width: fit-content;
  margin-top: 8px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.footer-brand .brand img {
  height: 56px;
  width: auto;
}
.footer-logos {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-left: 40px;
  border-left: 1px solid var(--line);
}
.footer-logos img {
  display: block;
  width: auto;
}
.footer-logos .fl-st {
  height: 34px;
}
.footer-logos .fl-ntu {
  height: 40px;
}
.footer-logos .fl-ace {
  height: 36px;
}
.footer-logos .fl-sep {
  width: 1px;
  height: 34px;
  background: var(--line);
}
.footer-upd {
  font-size: 15px;
  color: var(--ink-muted);
}
.footer-upd b {
  color: var(--ink);
}
html[data-theme="dark"] .footer-logos {
  background: #f5f5f9;
  border: 0;
  border-radius: 12px;
  padding: 10px 20px;
}
html[data-theme="dark"] .footer-logos .fl-sep {
  background: #d9dbe8;
}
@media (max-width: 760px) {
  .footer-logos {
    padding-left: 0;
    border-left: 0;
    gap: 14px;
    flex-wrap: wrap;
  }
  .footer-logos .fl-st {
    height: 26px;
  }
  .footer-logos .fl-ntu {
    height: 30px;
  }
  .footer-logos .fl-ace {
    height: 27px;
  }
}

.player-info h3 {
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  flex-wrap: nowrap;
}
.player-info h3 .ev {
  margin-top: 0;
}

/* 2026-11-23b: summary card, done overlay, centred footer */
.trial-sum {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 720px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-raised);
  overflow: hidden;
  font-size: 14px;
}
.trial-sum .sb-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 16px 22px;
  justify-content: center;
}
.sb {
  display: grid;
  grid-template-columns: 92px 1fr 62px auto;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
}
.sb-l {
  font: 600 13px var(--font-sans);
  color: var(--ink);
}
.sb-track {
  height: 12px;
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}
.sb-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sb.em .sb-track i {
  background: var(--accent);
}
.sb.lb .sb-track i {
  background: var(--ink-muted);
  opacity: 0.55;
}
.trial-sum .sb b {
  font: 700 17px var(--font-sans);
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sb.em b {
  color: var(--accent) !important;
}
.sb em {
  font: 700 10px var(--font-mono);
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--bad-bg);
  color: var(--bad);
}
.sb.em::after {
  content: "";
}
.sum-x {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  background: var(--accent);
  color: var(--on-accent);
  min-width: 116px;
}
.trial-sum .sum-x b {
  font: 800 30px/1 var(--font-display);
  color: var(--on-accent);
}
.sum-x span {
  font: 600 12px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .sb {
    grid-template-columns: 74px 1fr 54px auto;
    gap: 8px;
  }
  .trial-sum {
    flex-direction: column;
  }
  .sum-x {
    flex-direction: row;
    gap: 8px;
    padding: 10px;
  }
}
.done-tag {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 10px 22px;
  border-radius: 999px;
  font: 700 20px var(--font-sans);
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}
.done-tag.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.done-tag.ok {
  background: var(--accent);
  color: var(--on-accent);
}
.done-tag.end {
  background: rgba(11, 11, 15, 0.78);
  color: #fff;
}
footer {
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  text-align: center;
}
.footer-brand {
  justify-content: center;
}

.done-tag {
  top: 20%;
}

/* 2026-11-23c: time summary sits under the videos, same width as the cards */
.trial-sum {
  display: none !important;
  max-width: none;
  margin: 16px 0 0;
  padding: 16px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-raised);
  overflow: visible;
}
.ts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font: 600 11px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ts-x {
  font: 700 13px var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}
.trial-sum .sb {
  grid-template-columns: 104px 1fr 62px 74px;
  gap: 14px;
  margin-top: 10px;
}
.trial-sum .sb:first-of-type {
  margin-top: 0;
}
.trial-sum .sb-l {
  font: 600 14px var(--font-sans);
}
.trial-sum .sb-track {
  height: 14px;
}
.trial-sum .sb b {
  font-size: 18px;
}
@media (max-width: 640px) {
  .trial-sum .sb {
    grid-template-columns: 78px 1fr 52px 58px;
    gap: 8px;
  }
}

/* 2026-11-23d: live time bars, centred Done tag */
.done-tag {
  top: 50%;
}
.trial-sum .sb-track {
  height: 20px;
  overflow: visible;
}
.trial-sum .sb-track i {
  position: relative;
  transition: width 0.12s linear;
  min-width: 0;
}
.bar-done {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  font: 700 11px/1 var(--font-sans);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.bar-done.show {
  opacity: 1;
}
.bar-done.bad {
  color: var(--bad);
}
.sb.lb .bar-done:not(.bad) {
  color: var(--ink);
}

/* 2026-11-23e: footer identical to the Native LAM page */
footer.wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px 40px;
  padding: 36px 0 44px;
  margin-top: 110px;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}
footer .footer-logo {
  display: block;
}
footer .footer-logo img {
  height: 60px;
  width: auto;
  display: block;
}
footer .footer-logo .dk,
html[data-theme="dark"] footer .footer-logo .lt {
  display: none;
}
html[data-theme="dark"] footer .footer-logo .dk {
  display: block;
}
.footer-by {
  margin-left: 0;
  color: var(--ink-muted);
  font-size: 14px;
}
.footer-by strong {
  color: var(--ink);
  font-weight: 600;
}
html[data-theme="dark"] footer .footer-logos {
  margin-left: 24px;
}
@media (max-width: 760px) {
  footer.wrap {
    gap: 14px 24px;
    padding: 28px 0 34px;
  }
}

/* match Native LAM: free space is shared by auto margins on the lockup and the credit */
footer .footer-logo {
  margin-left: auto;
}
.footer-by {
  margin-left: auto;
}
@media (max-width: 760px) {
  footer .footer-logo,
  .footer-by {
    margin-left: 0;
  }
}

.author-list a {
  text-decoration: underline;
  text-decoration-color: #c1c1d6;
  text-underline-offset: 0.18em;
}
.author-list a:hover, .author-list a:focus-visible {
  color: var(--brand-blue);
  text-decoration-color: currentColor;
}
.author-list > span {
  white-space: nowrap;
}

/* hero title: two colours */
h1 > span.h1-a {
  color: var(--brand-blue);
}
h1 > span.h1-b {
  color: var(--ink);
}
.button[aria-disabled="true"] {
  cursor: default;
}

.chapters .ch-break {
  flex-basis: 100%;
  height: 0;
  margin: -8px 0 0;
}
.chapters .chapter.r2 {
  margin-top: -8px;
}
.tldr {
  max-width: 860px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 18.5px;
  line-height: 1.65;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.tldr b {
  font: 600 12px var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-right: 8px;
  vertical-align: 2px;
}
.tldr em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}
.tldr em.t-endo {
  box-shadow: inset 0 -0.38em var(--endo-bg);
}
.tldr em.t-exo {
  box-shadow: inset 0 -0.38em var(--exo-bg);
}
#contributions {
  padding-top: 56px;
}
.contrib {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.contrib li {
  padding: 22px 28px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contrib li + li {
  border-left: 1px solid var(--line);
}
.contrib li:first-child {
  padding-left: 0;
}
.contrib li:last-child {
  padding-right: 0;
}
.contrib .c-no {
  font: 500 12px var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--accent);
}
.contrib h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}
.contrib p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.c-stats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}
.c-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.c-stats b {
  font: 700 26px/1.1 var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.c-stats span {
  font-size: 12.5px;
  color: var(--ink-muted);
  max-width: 130px;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .tldr {
    text-align: left;
    font-size: 16.5px;
  }
}
@media (max-width: 860px) {
  .contrib {
    grid-template-columns: 1fr;
  }
  .contrib li {
    padding: 20px 0 16px !important;
  }
  .contrib li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .contrib p {
    min-height: 0;
  }
}
.eyebrow.part {
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--accent) !important;
}
#teaser-sec {
  padding-top: 44px;
}
#teaser-sec .fig1 {
  margin-top: 0;
}

/* 2026-11-25: PAW lockup left, institution logos centred, credit right; no divider */
@media (min-width: 981px) {
  footer.wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0 40px;
  }
  footer .footer-logo {
    margin-left: 0;
    justify-self: start;
  }
  footer .footer-logos {
    justify-self: center;
    padding-left: 0;
    border-left: 0;
  }
  footer .footer-by {
    margin-left: 0;
    justify-self: end;
    text-align: right;
  }
}
@media (max-width: 980px) {
  footer .footer-logos {
    padding-left: 0;
    border-left: 0;
  }
}

table.lb tr.grp th.grp {
  background: transparent;
  text-align: center;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  position: static;
  padding-bottom: 6px;
}

.hero-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px auto 12px;
}
.hero-links .resource-link {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d9dae1;
  border-radius: 8px;
  background: #fff;
  color: #242534;
  font: 550 14px/1.2 Inter, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.hero-links svg { display: block; flex: none; }
.hero-links a:hover { color: #3433b8; border-color: #a4a3d8; background: #f8f8ff; }
.hero-links a:focus-visible { outline: 2px solid #4949cc; outline-offset: 3px; }
.hero-links .resource-pending { background: #f6f6f8; color: #666873; border-color: #e6e6eb; cursor: default; }
.hero-links .resource-pending small {
  padding-left: 8px;
  border-left: 1px solid #d6d6df;
  color: #686975;
  font: 450 11px/1.2 Inter, sans-serif;
}
@media (max-width: 520px) {
  .hero-links { gap: 6px; }
  .hero-links .resource-link { min-height: 34px; padding: 0 8px; gap: 5px; font-size: 12px; }
  .hero-links svg { width: 14px; height: 14px; }
  .hero-links .resource-pending small { padding-left: 5px; font-size: 10px; }
}
