:root {
  --accent: #1A73E8; --tint: #AECBFA; --base: #8C8C8C; --base-2: #D9D9D9;
  --text: #202124; --text-2: #5F6368; --track: #EEEEEE; --ok: #188038; --fail: #D93025;
  --hair: 1px solid #D9D9D9; --radius: 10px;
    --t-xs: 12.5px; --t-s: 14px; --t-m: 16px; --t-l: 18px; --t-xl: 24px; --t-xxl: 34px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--text); font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--t-m); line-height: 1.6; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
section { padding: 56px 0; border-top: var(--hair); }
section:first-of-type { border-top: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: var(--t-xl); line-height: 1.25; text-align: center; margin-bottom: 28px; }
h3 { font-size: var(--t-l); line-height: 1.35; text-align: center; margin-bottom: 14px; }
p { margin: 0 0 14px; }
.cap { font-size: var(--t-s); color: var(--text-2); line-height: 1.6; margin-top: 12px; }
.cap b, .cap strong { color: var(--text); }
.center { text-align: center; }

.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: var(--t-xxl); line-height: 1.2; max-width: 900px; margin: 0 auto 22px; }
.authors { font-size: var(--t-l); line-height: 1.7; max-width: 860px; margin: 0 auto 6px; }
.authors .author-block { white-space: nowrap; }
.authors a { color: var(--accent); text-decoration: none; }
.authors a:hover, .authors a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.authors sup, .affils sup { font-size: 0.65em; margin-left: 1px; }
.affils { font-size: var(--t-m); color: var(--text-2); margin-bottom: 4px; }
.affils .affil { margin: 0 10px; white-space: nowrap; display: inline-block; }
.corr-note { font-size: var(--t-xs); color: var(--text-2); margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 56px; margin-bottom: 26px; }
.logo-card { display: inline-flex; align-items: center; justify-content: center; height: 44px; }
.logo-card img { display: block; width: auto; height: 44px; }

video, .fig img { display: block; width: 100%; height: auto; background: #FFFFFF; }
.card { background: #FFFFFF; border: var(--hair); border-radius: var(--radius); overflow: hidden; }
.clip-wide { max-width: 920px; margin: 0 auto; }
.fig img { border-radius: 0; }

.teaser-title { font-size: var(--t-l); font-weight: 700; text-align: center; margin-bottom: 18px; }
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.world-card { padding: 0 0 12px; text-align: center; }
.world-card .vwrap { border-bottom: var(--hair); }
.world-name { font-size: var(--t-s); font-weight: 600; margin-top: 10px; line-height: 1.3; }
.world-note { font-size: var(--t-xs); color: var(--text-2); }

.method-grid { display: grid; grid-template-columns: 1fr; gap: 36px; max-width: 960px; margin: 0 auto; }

.env-tabs, .seg { display: inline-flex; border: var(--hair); border-radius: 999px; padding: 3px; gap: 2px; background: #FFFFFF; }
.env-tab, .seg button, .chip { font: inherit; font-size: var(--t-s); cursor: pointer; border: 0; background: transparent; color: var(--text-2);
  border-radius: 999px; padding: 6px 16px; line-height: 1.3; }
.env-tab[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--text); color: #FFFFFF; }
.tabs-row { display: flex; justify-content: center; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.chip { border: var(--hair); background: #FFFFFF; color: var(--text); }
.chip[aria-selected="true"] { border-color: var(--accent); color: var(--accent); }
.env-panel[hidden], .world[hidden], .t1-env[hidden] { display: none; }
.world-sub { font-size: var(--t-xs); color: var(--text-2); text-align: center; margin-bottom: 14px; }
.arms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; }
.arms.two { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
.arm { margin: 0; background: #FFFFFF; border: var(--hair); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
@supports (grid-template-rows: subgrid) {
  .arms { grid-template-rows: auto auto auto; }
  .arm { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
}
.arm.ours { border-color: var(--accent); }
.arm-label { font-size: var(--t-s); font-weight: 600; text-align: center; padding: 10px 10px 8px; line-height: 1.3; min-height: 64px; }
.arm.ours .arm-label { color: var(--accent); }
.arm-sub { display: block; font-size: var(--t-xs); font-weight: 400; color: var(--text-2); margin-top: 2px; }
.arm .vwrap { border-top: var(--hair); border-bottom: var(--hair); }
.badge { font-size: var(--t-xs); font-weight: 600; text-align: center; padding: 7px 8px; transition: opacity 0.25s; }
.badge.ok { color: var(--ok); }
.badge.fail { color: var(--fail); }
.js .badge.pending { opacity: 0; transition: none; }
.world-cap { font-size: var(--t-m); text-align: center; max-width: 760px; margin: 16px auto 0; }
.bars { max-width: 620px; margin: 22px auto 0; }
.bars-head { font-size: var(--t-xs); color: var(--text-2); text-align: center; margin-bottom: 8px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 56px; align-items: center; gap: 10px; margin-bottom: 6px; font-size: var(--t-s); }
.bar-name { text-align: right; color: var(--text-2); }
.bar-name.ours, .bar-val.ours { color: var(--accent); font-weight: 600; }
.bar-track { background: var(--track); height: 10px; border-radius: 5px; overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 5px; }
.bar.base { background: var(--base); }
.bar.ours { background: var(--accent); }
.bar-val { font-variant-numeric: tabular-nums; }
.block-cap { font-size: var(--t-xs); color: var(--text-2); text-align: center; max-width: 760px; margin: 22px auto 0; }

.t1 { margin-top: 8px; }
.t1-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 10px; }
.t1-note { font-size: var(--t-xs); color: var(--text-2); text-align: center; max-width: 760px; margin: 0 auto 16px; }
.t1-scroll { max-width: 100%; overflow-x: auto; }
.t1-table { border-collapse: collapse; margin: 0 auto; font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.t1-table th, .t1-table td { padding: 8px 12px; text-align: center; white-space: nowrap; border-bottom: var(--hair); }
.t1-table thead th { font-weight: 600; color: var(--text); border-bottom: 1px solid var(--text); }
.t1-table th.grp { text-align: left; font-weight: 600; }
.t1-table th.ours { color: var(--accent); }
.t1-table td.shade { background: rgba(174, 203, 250, 0.35); }
.t1-table .sd { font-size: var(--t-xs); color: var(--text-2); }
.t1-table u { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.t1-table tbody tr:hover th, .t1-table tbody tr:hover td { background-color: var(--track); }
.t1-table tbody tr:hover td.shade { background: rgba(174, 203, 250, 0.55); }
.t1.bb-lewm .c-ts, .t1.bb-ts .c-lewm { display: none; }
.t1-link { text-align: center; font-size: var(--t-s); margin-top: 10px; }

.bib-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bib-head h2 { margin: 0; text-align: left; }
.copy { font: inherit; font-size: var(--t-s); cursor: pointer; background: #FFFFFF; color: var(--text); border: var(--hair); border-radius: 999px; padding: 6px 16px; }
pre.bib { background: #FFFFFF; border: var(--hair); border-radius: var(--radius); padding: 16px; font-size: 13px; line-height: 1.55; overflow-x: auto; margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }

footer { border-top: var(--hair); padding: 28px 0 40px; font-size: var(--t-xs); color: var(--text-2); text-align: center; }

@media (max-width: 900px) {
  .worlds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 40px 0; }
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: var(--t-xl); }
  .authors { font-size: var(--t-m); }
  .affils .affil { display: block; }
  .worlds, .arms, .arms.two { grid-template-columns: 1fr; max-width: 300px; }
  .arms { grid-template-rows: none; }
  .arm { grid-row: auto; grid-template-rows: none; display: flex; }
  .arm-label { min-height: 0; }
  .bar-row { grid-template-columns: 100px 1fr 48px; font-size: var(--t-xs); }
  .t1-table { font-size: 11.5px; width: 100%; }
  .t1-table th, .t1-table td { padding: 6px 2px; white-space: normal; }
  .t1-table thead th { font-size: 11px; line-height: 1.25; }
  .t1-table .sd { display: block; font-size: 10px; }
  .t1-table th.grp { width: 60px; padding-right: 4px; }
  .logo-row { gap: 22px; flex-wrap: nowrap; }
  .logo-card { height: 28px; }
  .logo-card img { height: 28px; }
}

.zoom { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); display: flex; align-items: center;
  justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox img, .lightbox video { max-width: 96vw; max-height: 92vh; width: auto; height: auto; border: var(--hair); border-radius: var(--radius); background: #FFFFFF; }

.lockup { display: inline-flex; align-items: center; gap: 9px; height: 44px; }
.logo-card .lockup img { width: 40px; height: 40px; object-fit: contain; }
.wordmark { font-size: 27px; font-weight: 600; color: #922338; letter-spacing: -0.01em; line-height: 1; }
@media (max-width: 600px) {
  .lockup { height: 28px; gap: 6px; }
  .logo-card .lockup img { width: 25px; height: 25px; }
  .wordmark { font-size: 17px; }
}

.publication-links { display: flex; flex-wrap: wrap; justify-content: center; }
.link-block a { margin: 8px 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; vertical-align: top; height: 2.5em; line-height: 1.5;
  font-size: 1rem; font-weight: 600; padding: calc(.5em - 1px) calc(1em + .25em); border: none; border-radius: 12px; white-space: nowrap;
  position: relative; overflow: hidden; cursor: pointer; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.button.is-dark { background: #1e293b; color: #FFFFFF; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.button.is-dark:hover { transform: translateY(-2px); background: #2563eb; color: #FFFFFF; text-decoration: none;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.button.is-dark:active { transform: translateY(0); box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.button:focus { outline: 2px solid #2563eb; outline-offset: 2px; }
.button .icon { display: inline-flex; align-items: center; justify-content: center; height: 1.5em; width: 1.5em;
  margin-left: calc(-.5em - 1px); margin-right: .25em; }
.button .icon svg { height: 1em; width: auto; overflow: visible; }
.button[aria-disabled="true"] { opacity: 0.5; pointer-events: none; cursor: default; }
.code-note { font-size: 0.75rem; color: #64748b; margin: 0.9rem 0 0; }
@media (max-width: 768px) { .button { margin: 0.25rem; font-size: 0.875rem; padding: 0.75rem 1rem; } }
@media (max-width: 480px) { .publication-links { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .link-block { display: block; } .link-block a { margin: 0; } .button { width: 100%; } }

.explorer { margin-top: 36px; }
.ex-lead { font-size: var(--t-s); color: var(--text-2); text-align: center; max-width: 760px; margin: 0 auto 14px; }
.ex-chips { margin-bottom: 6px; }
.ex-chip.g-in_range { color: #0072B2; border-color: #0072B2; }
.ex-chip.g-out_of_range { color: #D55E00; border-color: #D55E00; }
.ex-chip.g-unseen_dynamics { color: #009E73; border-color: #009E73; }
.ex-chip.g-combinations { color: #CC79A7; border-color: #CC79A7; }
.ex-chip[aria-selected="true"] { color: #FFFFFF; background: var(--text); border-color: var(--text); }
.ex-chip.g-in_range[aria-selected="true"] { background: #0072B2; border-color: #0072B2; }
.ex-chip.g-out_of_range[aria-selected="true"] { background: #D55E00; border-color: #D55E00; }
.ex-chip.g-unseen_dynamics[aria-selected="true"] { background: #009E73; border-color: #009E73; }
.ex-chip.g-combinations[aria-selected="true"] { background: #CC79A7; border-color: #CC79A7; }
.ex-hint { font-size: var(--t-xs); color: var(--text-2); text-align: center; margin: 0 auto 14px; }
.ex-panel[hidden] { display: none; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.tile { font: inherit; padding: 0; margin: 0; background: #FFFFFF; border: var(--hair); border-top: 3px solid var(--base-2);
  border-radius: 8px; overflow: hidden; cursor: zoom-in; text-align: center; display: flex; flex-direction: column; }
.tile[hidden] { display: none; }
.tile video { width: 100%; aspect-ratio: 1 / 1; }
.tile.g-in_range { border-top-color: #0072B2; }
.tile.g-out_of_range { border-top-color: #D55E00; }
.tile.g-unseen_dynamics { border-top-color: #009E73; }
.tile.g-combinations { border-top-color: #CC79A7; }
.tile:hover, .tile:focus-visible { border-color: var(--text-2); }
.tile-label { font-size: 12px; line-height: 1.3; color: var(--text); padding: 6px 6px 8px; border-top: var(--hair); }
.ex-foot { font-size: var(--t-xs); color: var(--text-2); text-align: center; margin: 14px auto 0; }
.ex-modal { position: fixed; inset: 0; z-index: 60; background: rgba(255, 255, 255, 0.97); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ex-modal[hidden] { display: none; }
.ex-box { position: relative; background: #FFFFFF; border: var(--hair); border-radius: var(--radius); width: min(860px, 100%);
  max-height: 100%; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; padding: 20px; align-items: start; }
.ex-video { width: 100%; aspect-ratio: 1 / 1; }
.ex-box .vwrap { border: var(--hair); border-radius: 8px; overflow: hidden; }
.ex-meta h4 { margin: 4px 0 10px; font-size: var(--t-l); line-height: 1.3; }
.ex-pill { display: inline-block; font-size: var(--t-xs); font-weight: 600; color: #FFFFFF; border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; }
.ex-pill.g-in_range { background: #0072B2; } .ex-pill.g-out_of_range { background: #D55E00; }
.ex-pill.g-unseen_dynamics { background: #009E73; } .ex-pill.g-combinations { background: #CC79A7; }
.ex-change, .ex-range { font-size: var(--t-s); margin-bottom: 8px; }
.ex-range[hidden] { display: none; }
.ex-close { position: absolute; top: 8px; right: 10px; font-size: 26px; line-height: 1; border: 0; background: transparent; cursor: pointer; color: var(--text-2); }
.ex-nav { grid-column: 1 / -1; display: flex; justify-content: center; gap: 12px; }
.ex-nav button { font-size: 22px; line-height: 1; width: 44px; height: 36px; border: var(--hair); border-radius: 999px; background: #FFFFFF; cursor: pointer; color: var(--text); }
@media (max-width: 700px) {
  .ex-box { grid-template-columns: 1fr; padding: 44px 14px 14px; }
  .ex-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
}

.authors .author-line { display: block; text-wrap: balance; }

.vwrap { display: block; position: relative; background: #FFFFFF center / 100% 100% no-repeat; }
.js .vwrap > video { opacity: 0; transition: opacity 0.18s ease-out; }
.js .vwrap > video.ready { opacity: 1; }
