/* Contact-WAM project page. Colors taken from the paper figures. */
:root {
  --blue: #4f8fc0;
  --blue-dark: #2f6c9e;
  --purple: #8e6fa3;
  --purple-dark: #6d4f86;
  --purple-soft: #f3eef7;
  --blue-soft: #edf4fa;
  --orange: #f08828;
  --ink: #1f2430;
  --muted: #5d6472;
  --line: #e4e6ec;
  --bg: #ffffff;
  --bg-alt: #fafafc;
  --grad: linear-gradient(90deg, var(--blue) 0%, var(--purple) 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */
.hero.is-header { padding-top: 3.5rem; padding-bottom: 1.5rem; }

.publication-title {
  font-family: 'Inter', 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 900;
  font-size: 4rem !important;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.publication-title .brand {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.publication-subtitle {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.4rem !important;
}
.venue-tag {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.publication-authors { font-size: 1.12rem; margin-top: 1.4rem; line-height: 1.9; }
.publication-authors .author-block { font-weight: 600; display: inline-block; margin: 0 0.45rem; white-space: nowrap; }
.publication-authors a { color: var(--blue-dark); }
.publication-authors a:hover { color: var(--purple-dark); text-decoration: underline; }
.publication-authors sup { font-size: 0.7em; color: var(--muted); margin-left: 1px; }

.publication-affiliations { font-size: 0.92rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.8; }
.publication-affiliations .author-block { display: inline-block; margin: 0 0.5rem; white-space: nowrap; }
.publication-notes { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem 1.25rem;
  margin: 1.8rem auto 0.4rem;
  max-width: 1120px;
}
.logo-row img { width: auto; object-fit: contain; }
/* Heights balanced by aspect ratio so the wordmarks look equally large. */
.logo-row .logo-neu { height: 20px; }
.logo-row .logo-uh { height: 34px; }
.logo-row .logo-roboforce { height: 66px; display: block; }
.logo-link { display: inline-flex; transition: opacity 0.15s; }
.logo-link:hover { opacity: 0.8; }
.publication-affiliations a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.publication-affiliations a:hover { color: var(--purple-dark); }
.logo-divider { width: 1px; height: 48px; background: var(--line); }
.logo-row .logo-asu { height: 28px; }

.publication-links { margin-top: 1.6rem; }
.link-block { display: inline-block; margin: 0.25rem; }
.button.is-paper {
  background: #fff;
  color: var(--ink);
  border: 1px solid #d9dce4;
  font-weight: 600;
  font-size: 0.95rem;
  height: 2.4em;
  padding-left: 1.05rem;
  padding-right: 1.15rem;
  box-shadow: 0 1px 3px rgba(31, 36, 48, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.button.is-paper:hover { color: var(--ink); border-color: #c3c8d4; box-shadow: 0 4px 12px rgba(31, 36, 48, 0.1); transform: translateY(-1px); }
.button.is-paper .icon { font-size: 1.05rem; }
.ic-arxiv { color: #b31b1b; }
.ic-results { color: var(--blue); }
.ic-bib { color: var(--purple); }
.button.is-paper.is-disabled { background: #9aa0aa; pointer-events: none; }

/* ---------- Teaser video ---------- */
.teaser { padding: 0.5rem 1.5rem 2rem; }
.video-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(47, 59, 90, 0.18);
  background: #0f1117;
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.6rem;
  color: #fff;
  background: radial-gradient(ellipse at 30% 20%, rgba(79, 143, 192, 0.55), transparent 60%),
              radial-gradient(ellipse at 75% 80%, rgba(142, 111, 163, 0.6), transparent 60%),
              #161a24;
  text-align: center;
  padding: 1rem;
}
.video-frame.is-missing .video-placeholder { display: flex; }
.video-frame.is-missing video { visibility: hidden; }
.video-placeholder .icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.14); font-size: 1.5rem;
}
.video-placeholder strong { color: #fff; font-size: 1.1rem; }
.video-placeholder p { opacity: 0.85; font-size: 0.95rem; }
.teaser-caption { margin-top: 1rem; color: var(--muted); font-size: 0.98rem; text-align: center; }
.teaser-caption strong { color: var(--ink); }

/* ---------- Key numbers ---------- */
.stats { padding: 0.5rem 1.5rem 2.5rem; }
.stat-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 0.9rem;
  text-align: center;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad);
}
.stat-value {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 2rem; font-weight: 700; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.9rem; font-weight: 600; margin-top: 0.35rem; }
.stat-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }

/* ---------- Sections ---------- */
.section { padding: 2.8rem 1.5rem; }
.section.is-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.9rem; font-weight: 700; text-align: center; margin-bottom: 0.4rem !important;
}
.section-title::after {
  content: ''; display: block; width: 56px; height: 4px; border-radius: 2px;
  margin: 0.7rem auto 0; background: var(--grad);
}
.section-lead { text-align: center; color: var(--muted); max-width: 760px; margin: 0.9rem auto 2rem; }
.subsection-title {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.3rem; font-weight: 700; margin: 2.2rem 0 0.8rem;
}
.content.has-text-justified p { line-height: 1.75; }

.figure-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem;
  box-shadow: 0 4px 18px rgba(31, 36, 48, 0.05);
}
.figure-card img { display: block; width: 100%; height: auto; border-radius: 6px; }
.figure-caption { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; line-height: 1.6; }

/* Method feature cards */
.feature-card {
  height: 100%; border-radius: 12px; padding: 1.2rem 1.2rem 1.1rem; background: #fff;
  border: 1px solid var(--line);
}
.feature-card .feature-icon {
  width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; margin-bottom: 0.75rem; background: var(--grad);
}
.feature-card.is-orange .feature-icon { background: var(--orange); }
.feature-card h4 { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }

/* Data pills */
.data-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.6rem; }
.data-pill {
  border-radius: 999px; padding: 0.45rem 1rem; background: var(--blue-soft); color: var(--blue-dark);
  font-size: 0.9rem; font-weight: 600;
}
.data-pill.is-purple { background: var(--purple-soft); color: var(--purple-dark); }

/* ---------- Bar charts ---------- */
.bench-card {
  height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem;
}
.bench-card h4 { font-weight: 700; font-size: 1.1rem; }
.bench-card .bench-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.9rem; }
.bar-row { display: grid; grid-template-columns: 118px 1fr 46px; align-items: center; gap: 0.6rem; margin: 0.32rem 0; }
.bar-label { font-size: 0.85rem; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 16px; background: #f0f1f5; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 4px; background: #b9bec9; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.bar-row.is-ours .bar-fill { background: var(--grad); }
.bar-row.is-ours .bar-label, .bar-row.is-ours .bar-value { font-weight: 700; color: var(--purple-dark); }
.bar-value { font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.bar-group-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0.7rem 0 0.2rem; }

/* ---------- Tables ---------- */
details.full-table { margin-top: 1.1rem; }
details.full-table summary {
  cursor: pointer; color: var(--blue-dark); font-weight: 600; font-size: 0.92rem; list-style: none;
}
details.full-table summary::-webkit-details-marker { display: none; }
details.full-table summary::before { content: '\25B8'; display: inline-block; margin-right: 0.4rem; transition: transform 0.2s; }
details.full-table[open] summary::before { transform: rotate(90deg); }
.table-wrap { overflow-x: auto; margin-top: 0.8rem; border: 1px solid var(--line); border-radius: 10px; }
table.results { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
table.results th, table.results td { padding: 0.45rem 0.55rem; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.results th { background: #f6f7fa; font-weight: 600; }
table.results td:first-child, table.results th:first-child { text-align: left; }
table.results tr.group td { background: #fbfbfd; font-style: italic; color: var(--muted); text-align: left; }
table.results tr.ours td { background: var(--purple-soft); font-weight: 600; }
table.results tr:last-child td { border-bottom: none; }
table.results .best { font-weight: 700; color: var(--purple-dark); }
.table-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }

/* Real-world rim split */
.rim-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem; height: 100%; }
.rim-card h4 { font-weight: 700; margin-bottom: 0.2rem; }
.rim-card .bench-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.6rem; }
.rim-legend { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.4rem; flex-wrap: wrap; }
.rim-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.35rem; vertical-align: -1px; }
.rim-legend .l-ours::before { background: var(--purple); }
.rim-legend .l-notouch::before { background: #c9b8d6; }
.rim-legend .l-pi::before { background: #b9bec9; }
.bar-row.is-notouch .bar-fill { background: #c9b8d6; }

/* Highlight callout */
.callout {
  border-left: 4px solid var(--purple); background: var(--purple-soft); border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.1rem; font-size: 0.95rem; margin-top: 1.4rem;
}

/* ---------- BibTeX ---------- */
.bibtex-wrap { position: relative; }
.bibtex-wrap pre {
  background: #f6f7fa; border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem;
  font-size: 0.84rem; line-height: 1.55; color: var(--ink); white-space: pre; overflow-x: auto;
}
.copy-btn {
  position: absolute; top: 0.6rem; right: 0.6rem; border: 1px solid var(--line); background: #fff;
  border-radius: 6px; padding: 0.2rem 0.6rem; font-size: 0.78rem; cursor: pointer; color: var(--muted);
}
.copy-btn:hover { color: var(--purple-dark); border-color: var(--purple); }

/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 2rem 1.5rem; font-size: 0.85rem; color: var(--muted); }
.footer a { color: var(--blue-dark); }

/* ---------- Hero tactile background ---------- */
.hero.is-header { position: relative; overflow: hidden; }
.hero.is-header .hero-body { position: relative; z-index: 1; }
#tactile-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.publication-title .brand { animation: brand-shift 8s ease-in-out infinite alternate; background-size: 200% 100%; background-image: linear-gradient(90deg, var(--blue), var(--purple), var(--blue)); }
@keyframes brand-shift { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* ---------- Sticky nav ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform 0.25s ease;
}
.topnav.is-visible { transform: translateY(0); }
.topnav-inner { max-width: 960px; margin: 0 auto; padding: 0 1.2rem; height: 52px; display: flex; align-items: center; gap: 1.2rem; }
.topnav-brand {
  font-family: 'Inter', sans-serif; font-weight: 900; font-size: 1.1rem; letter-spacing: -0.02em; white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topnav-links { display: flex; gap: 0.2rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav-links::-webkit-scrollbar { display: none; }
.topnav-links a {
  color: var(--muted); font-size: 0.88rem; font-weight: 500; padding: 0.3rem 0.65rem; border-radius: 999px; white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.topnav-links a:hover { color: var(--ink); background: #f1f2f6; }
.topnav-links a.is-active { color: var(--purple-dark); background: var(--purple-soft); }
section[id] { scroll-margin-top: 56px; }

/* ---------- Scroll reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
.stat-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(47, 59, 90, 0.1); }
html.js .stat-card.reveal.is-in:hover { transform: translateY(-3px); }

/* ---------- Interactive architecture ---------- */
.arch-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1.4rem 1rem;
  box-shadow: 0 4px 18px rgba(31, 36, 48, 0.05);
}
.arch-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 1.2rem; }
.arch-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.arch-legend i { color: var(--blue); }
.tk { display: inline-block; width: 11px; height: 11px; border-radius: 2px; background: #b4c4d6; border: 1px solid #8ea4bd; }
.tk.g, .tok b.g { background: #fdf3d4; border: 1px dashed #d9b453; }
.pv, .priv {
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.74rem; color: #fff;
  background: #6b97c3; border-radius: 4px; box-shadow: 2px -2px 0 #9cbbd9, 4px -4px 0 #c6d7ea;
}
.pv { padding: 0 0.3rem; height: 17px; margin-right: 4px; }
.arch-swipe { display: none; text-align: center; font-size: 0.76rem; color: var(--muted); margin-bottom: 0.4rem; }
@media screen and (max-width: 900px) { .arch-swipe { display: block; } }
.arch-scroll { overflow-x: auto; padding: 30px 2px 6px; }
.arch {
  position: relative; display: grid; min-width: 860px;
  grid-template-columns: auto 172px 214px; grid-template-rows: repeat(6, 46px) 54px 50px;
  column-gap: 44px; row-gap: 8px; align-items: center;
}
.arch > *:not(svg) { position: relative; z-index: 1; }
.arch > .stream { grid-column: 1; }
.arch > .core, .arch > .mot { grid-column: 2; margin-left: -30px; }
.arch > .backbone { position: absolute; z-index: 0; border-radius: 16px; border: 1px dashed #c4d3e4;
  background: linear-gradient(180deg, rgba(79,143,192,0.07), rgba(142,111,163,0.10)); pointer-events: none; }
.backbone span { position: absolute; top: 5px; left: 0; right: 0; text-align: center; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: #7f8fb0; }
.arch > .outs, .arch > .act-out { grid-column: 3; }
.stream {
  display: grid; grid-template-columns: 64px 64px 112px 66px 30px; align-items: center; column-gap: 10px;
  height: 46px; padding: 0 8px 0 4px; border-radius: 10px; cursor: pointer; outline: none;
  transition: background 0.2s, opacity 0.2s;
}
.stream:hover, .stream.is-on { background: var(--blue-soft); }
.stream.is-touch:hover, .stream.is-touch.is-on { background: var(--purple-soft); }
.s-label { font-weight: 600; font-size: 0.88rem; text-align: right; }
.stream.is-touch .s-label { color: var(--purple-dark); }
.s-thumb { height: 40px; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.s-thumb img { width: 100%; height: 100%; object-fit: cover; }
.s-text { font-size: 0.62rem; font-style: italic; line-height: 1.2; color: var(--ink); border: 1px dashed #9aa0aa; padding: 2px 4px; text-align: center; }
.s-from { font-size: 0.68rem; color: var(--muted); }
.s-svg { background: #fff; border: 1px solid var(--line); }
.s-svg svg { width: 90%; height: 80%; }
.s-noise {
  background-color: #fdf0c8; border: 1px dashed #d9b453;
  background-image: radial-gradient(#9b7a2a 1px, transparent 1.3px), radial-gradient(#b8953d 1px, transparent 1.3px);
  background-size: 7px 7px, 11px 9px; background-position: 0 0, 3px 4px;
}
.enc {
  display: flex; align-items: center; justify-content: center; gap: 0.3rem; height: 30px; border-radius: 7px;
  background: #f4f5f8; border: 1px solid #d7dae2; font-size: 0.8rem; font-weight: 500; white-space: nowrap;
}
.enc i { color: var(--blue); font-size: 0.72rem; }
.tok { display: flex; gap: 3px; }
.tok b { width: 12px; height: 12px; border-radius: 2px; background: #b4c4d6; border: 1px solid #8ea4bd; }
.priv { height: 28px; width: 26px; }
.stream.is-touch .priv { background: #9b7fb0; box-shadow: 2px -2px 0 #bba6cb, 4px -4px 0 #dacde4; }
.stream.is-touch .enc i { color: var(--purple); }
.arch .core {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  border-radius: 14px; background: var(--blue-soft); border: 1px solid #cfe0ee; cursor: pointer; outline: none;
  box-shadow: 4px -4px 0 -1px #e3eef7, 8px -8px 0 -2px #f0f6fb; transition: box-shadow 0.2s, opacity 0.2s;
}
.arch .core strong { font-family: 'Google Sans', sans-serif; font-size: 1.15rem; color: var(--blue-dark); text-align: center; line-height: 1.2; }
.arch .core span { font-size: 0.78rem; color: var(--muted); }
.arch .core.is-touch { background: var(--purple-soft); border-color: #e0d4ea; box-shadow: 4px -4px 0 -1px #efe7f5, 8px -8px 0 -2px #f7f2fa; }
.arch .core.is-touch strong { color: var(--purple-dark); font-size: 1rem; }
.arch .mot { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; cursor: pointer; outline: none; transition: opacity 0.2s; }
.mot-line { position: absolute; left: 50%; top: -10px; bottom: -10px; width: 6px; margin-left: -3px; border-radius: 3px; background: linear-gradient(180deg, var(--blue), var(--purple)); }
.mot-pill { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; font-size: 0.72rem; font-weight: 700; color: var(--purple-dark);
  background: #fff; border: 1.5px solid #cbbcd9; border-radius: 999px; padding: 0.22rem 0.65rem; box-shadow: 0 2px 8px rgba(109, 79, 134, 0.15); }
.mot-pill i { color: var(--purple); }
.arch .mot.is-on .mot-pill { border-color: var(--purple); box-shadow: 0 4px 14px rgba(109, 79, 134, 0.3); }
.outs, .act-out { background: #fafbfd; border: 1px solid var(--line); border-radius: 14px; padding: 0.55rem 0.7rem; height: 100%; transition: opacity 0.2s; }
.outs-head { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 0.88rem; text-align: center; margin-bottom: 0.35rem; }
.outs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
.out { margin: 0; cursor: pointer; outline: none; border-radius: 8px; padding: 2px; transition: background 0.2s, opacity 0.2s; }
.out img { display: block; width: 100%; height: 50px; object-fit: cover; border-radius: 6px; }
.out figcaption { font-size: 0.72rem; text-align: center; color: var(--muted); margin-top: 1px; }
.out:hover, .out.is-on { background: var(--blue-soft); }
.out.is-touch:hover, .out.is-touch.is-on { background: var(--purple-soft); }
.act-out { cursor: pointer; outline: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.act-dec { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.act-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.act-chip i { font-size: 0.7rem; }
.act-chip.is-fm { color: #2f6f9f; background: #e8f1f8; }
.act-chip.is-ode { color: #c46410; background: #fdeedd; }
.act-plus { font-size: 0.72rem; font-weight: 700; color: var(--muted); line-height: 1; }
.act-note { font-size: 0.66rem; color: var(--muted); margin-top: 3px; }
.act-curve { width: 120px; height: 34px; margin: 0.1rem 0; }
.act-sub { font-size: 0.72rem; color: var(--muted); }
.act-out:hover, .act-out.is-on { background: #fff6ec; border-color: #f6c48f; }
.arch.has-focus .stream, .arch.has-focus .core, .arch.has-focus .out, .arch.has-focus .act-out, .arch.has-focus .mot { opacity: 0.4; }
.arch .core.is-on { box-shadow: 0 6px 22px rgba(79, 143, 192, 0.28), 4px -4px 0 -1px #e3eef7, 8px -8px 0 -2px #f0f6fb; }
.arch .core.is-touch.is-on { box-shadow: 0 6px 22px rgba(142, 111, 163, 0.3), 4px -4px 0 -1px #efe7f5, 8px -8px 0 -2px #f7f2fa; }
.arch-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.arch-wires path { fill: none; stroke: #d5d9e2; stroke-width: 1.6; stroke-dasharray: 4 5; animation: wire-flow 1.6s linear infinite; transition: stroke 0.2s, stroke-width 0.2s, opacity 0.2s; }
.arch-wires path.is-touch { stroke: #d9cde3; }
.arch.has-focus .arch-wires path { opacity: 0.35; }
.arch.has-focus .arch-wires path.is-on { opacity: 1; stroke: var(--blue); stroke-width: 2.4; }
.arch.has-focus .arch-wires path.is-on.is-touch { stroke: var(--purple); }
@keyframes wire-flow { to { stroke-dashoffset: -18; } }
.arch.has-focus .is-on { opacity: 1 !important; }
.arch .mot.is-on, .arch .mot.is-on i { color: var(--purple-dark); }
.arch-caption { text-align: center; color: var(--ink); font-size: 0.95rem; min-height: 1.6em; margin-top: 1.2rem; transition: opacity 0.2s; }
.arch-foot { text-align: center; margin-top: 0.3rem; }
.link-btn {
  border: none; background: none; cursor: pointer; color: var(--blue-dark); font: inherit; font-size: 0.88rem; font-weight: 600; padding: 0.3rem 0.5rem; border-radius: 6px;
}
.link-btn:hover { color: var(--purple-dark); background: var(--purple-soft); }

/* ---------- Segmented controls ---------- */
.seg { display: inline-flex; background: #f0f1f5; border-radius: 999px; padding: 3px; gap: 2px; }
.seg button {
  border: none; background: none; cursor: pointer; font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--muted);
  padding: 0.35rem 0.9rem; border-radius: 999px; transition: background 0.2s, color 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.seg button small { font-weight: 400; opacity: 0.75; margin-left: 0.2rem; }
.seg button.is-active { background: #fff; color: var(--purple-dark); box-shadow: 0 1px 4px rgba(31, 36, 48, 0.12); }

/* Real-world interactive chart */
.rw-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem 1rem; }
.rw-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; margin-bottom: 1rem; }
.bar-row.big { grid-template-columns: 110px 1fr 52px; margin: 0.6rem 0; }
.bar-row.big .bar-track { height: 26px; border-radius: 6px; }
.bar-row.big .bar-fill { border-radius: 6px; }
.bar-row.big .bar-value { font-size: 1.05rem; font-weight: 700; }
.bar-row.big .bar-label { font-size: 0.92rem; }
.callout { margin-top: 0; }

/* Simulation tabs */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Simulation rollout gallery */
.sim-group { margin-top: 1.1rem; }
.sim-group-head { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.55rem; }
.sim-group-head span { font-family: 'Noto Sans', sans-serif; font-weight: 400; font-size: 0.85rem; color: var(--muted); margin-left: 0.4rem; }
.sim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.sim-clip { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.45rem; }
.sim-clip video { display: block; width: 100%; aspect-ratio: 3 / 1; border-radius: 6px; background: #0f1117; object-fit: cover; }
.sim-clip figcaption { display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; align-items: baseline; font-size: 0.82rem; margin: 0.4rem 0.15rem 0.1rem; }
.sim-clip figcaption strong { font-weight: 600; }
.sim-clip figcaption span { color: var(--muted); }
@media screen and (max-width: 768px) { .sim-grid { grid-template-columns: 1fr; } }
.short-text { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 0.9rem; }

/* Decoding race */
.race { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem 0.8rem; }
.race-row { display: grid; grid-template-columns: 112px 1fr 58px; gap: 0.7rem; align-items: center; margin: 0.55rem 0; }
.race-label { font-size: 0.88rem; font-weight: 600; line-height: 1.2; }
.race-label span { display: block; font-size: 0.74rem; font-weight: 400; color: var(--muted); }
.race-track { position: relative; height: 22px; background: #f0f1f5; border-radius: 6px; overflow: hidden; }
.race-fill { height: 100%; width: 0; border-radius: 6px; }
.race-row.is-ode .race-fill { background: var(--orange); }
.race-row.is-flow .race-fill { background: #b9bec9; }
.race-ticks {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 2px), rgba(255,255,255,0.95) calc(10% - 2px), rgba(255,255,255,0.95) 10%);
}
.race-time { font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.race-row.is-ode .race-time { color: #c46410; }
.race-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.4rem; }
.race-badge {
  font-weight: 700; font-size: 0.88rem; color: #fff; background: var(--orange); border-radius: 999px; padding: 0.15rem 0.7rem;
  opacity: 0; transform: scale(0.9); transition: opacity 0.3s, transform 0.3s;
}
.race.is-done .race-badge { opacity: 1; transform: none; }

/* Lightbox */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15, 17, 23, 0.86); display: flex; align-items: center; justify-content: center;
  padding: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 1.2rem; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .arch-wires path, .publication-title .brand { animation: none; }
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
  .arch-caption { font-size: 0.85rem; }
  .rw-controls { justify-content: center; }
  .seg button { font-size: 0.78rem; padding: 0.3rem 0.65rem; }
  .bar-row.big { grid-template-columns: 100px 1fr 46px; gap: 0.45rem; }
  .bar-row.big .bar-label { font-size: 0.84rem; }
  .race-row { grid-template-columns: 92px 1fr 50px; }
  .topnav-brand { font-size: 0.95rem; }
  .topnav-inner { gap: 0.6rem; padding: 0 0.8rem; }
  .topnav-links a { font-size: 0.8rem; padding: 0.3rem 0.5rem; }
}

@media screen and (max-width: 768px) {
  .hero.is-header { padding-top: 2rem; }
  .publication-title { font-size: 2.6rem !important; }
  .publication-subtitle { font-size: 1.15rem !important; }
  .logo-row { gap: 1rem 1.6rem; }
  .logo-row .logo-neu { height: 18px; }
  .logo-row .logo-uh { height: 30px; }
  .logo-row .logo-roboforce { height: 50px; }
  .logo-row .logo-link { flex-basis: 100%; justify-content: center; }
  .logo-divider { display: none; }
  .logo-row .logo-asu { height: 26px; }
  .bar-row { grid-template-columns: 92px 1fr 42px; }
  .section { padding: 2.2rem 1rem; }
  .teaser, .stats { padding-left: 1rem; padding-right: 1rem; }
  .stat-value { font-size: 1.6rem; }
}

@media screen and (max-width: 768px) {
  .content.has-text-justified p { text-align: left !important; }
}

/* Pointmap showcase */
.geom-block { margin-top: 2.6rem; }
.geom-title { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 1.3rem; text-align: center; margin-bottom: 0.4rem; }
.geom-lead { color: var(--muted); text-align: center; max-width: 46rem; margin: 0 auto 1rem; }
.geom-clip video { aspect-ratio: 1800 / 448; object-fit: cover; }
.geom-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2.2rem; margin-top: 1rem; }
.geom-stat { display: flex; flex-direction: column; align-items: center; }
.gs-label { font-size: 0.82rem; color: var(--muted); }
.gs-val { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 1.25rem; display: inline-flex; align-items: center; gap: 0.15rem; }
.gs-off { color: #9aa1ad; }
.gs-on { color: var(--purple-dark); }
.gs-gain { font-size: 0.78rem; color: #fff; background: var(--grad); border-radius: 999px; padding: 0.1rem 0.5rem; margin-left: 0.35rem; }
.gs-val i { font-size: 0.8rem; color: var(--muted); margin: 0 0.2rem; }

/* Decoder comparison (replaces the paper's scatter plot) */
.dec { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem 0.6rem; margin-top: 1rem; }
.dec-intro { font-size: 0.88rem; line-height: 1.6; color: var(--muted); margin-bottom: 0.7rem; }
.dec-intro b { color: var(--ink); font-weight: 600; }
.dec-legend { display: grid; gap: 0.25rem; font-size: 0.8rem; margin-bottom: 0.6rem; }
.dec-legend em { font-style: normal; color: var(--muted); margin-left: 0.3rem; }
.dec-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.45rem; vertical-align: -1px; }
.dec-bench { margin: 0.55rem 0 0.7rem; }
.dec-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 0.25rem; }
.dec-row { display: grid; grid-template-columns: 1fr 40px; gap: 0.6rem; align-items: center; margin: 0.22rem 0; }
.dec-track { height: 14px; background: #f0f1f5; border-radius: 4px; overflow: hidden; }
.dec-fill { height: 100%; border-radius: 4px; }
.dec-val { font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.is-ode .dec-fill, .dot.is-ode { background: var(--orange); }
.dec-row.is-ode .dec-val { color: #c46410; font-weight: 700; }
.is-same .dec-fill, .dot.is-same { background: var(--blue); }
.is-flow .dec-fill, .dot.is-flow { background: #b9bec9; }
.is-odeonly .dec-fill, .dot.is-odeonly { background: var(--purple); opacity: 0.75; }

/* ---------- What Matters (redesign) ---------- */
.wm-block { margin-top: 2.2rem; }
.wm-block + .wm-block { margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.wm-block .subsection-title { margin-top: 0; text-align: center; }
.wm-lead { color: var(--muted); max-width: 46rem; margin: 0.4rem auto 1.3rem; text-align: center; line-height: 1.65; }
.wm-lead b { color: var(--ink); font-weight: 600; }
.wm-gains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.wm-gain { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; text-align: center; }
.wm-gain-head { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 1.02rem; }
.wm-gain-head i { color: var(--purple); margin-right: 0.3rem; }
.wm-gain-task { font-size: 0.82rem; color: var(--muted); margin: 0.15rem 0 0.5rem; }
.wm-gain-val { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 1.4rem; display: inline-flex; align-items: center; gap: 0.25rem; }
.wm-gain-val > i { font-size: 0.85rem; color: var(--muted); }
.wm-gain-note { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 0.6rem 0 1.4rem; }
.wm-table { max-width: 40rem; margin: 0 auto; }
.wm-table-note { text-align: center; }
.wm-ode { margin-top: 0.2rem; }
.wm-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem 0.9rem; height: 100%; display: flex; flex-direction: column; }
.wm-card-title { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 1.02rem; margin-bottom: 0.2rem; }
.wm-card-sub { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.6rem; }
.wm-card-note { font-size: 0.78rem; color: var(--muted); margin-top: auto; padding-top: 0.6rem; }
.wm-card .race { border: 0; padding: 0.2rem 0 0; }
.pipe { margin: 0.6rem 0 0.9rem; }
.pipe-name { font-size: 0.82rem; font-weight: 700; color: #6b7280; margin: 0.55rem 0 0.25rem; }
.pipe-name.is-ode { color: #c46410; }
.pipe-row { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.pipe-io { font-size: 0.78rem; background: #f3f4f7; border-radius: 999px; padding: 0.18rem 0.6rem; white-space: nowrap; }
.pipe-io i { color: var(--muted); margin-right: 0.2rem; }
.pipe-arr { font-size: 0.7rem; color: #a3a9b4; }
.pipe-passes { display: inline-flex; gap: 3px; }
.pass { display: inline-block; width: 14px; height: 18px; border-radius: 3px; background: #b9bec9; }
.pass.is-ode { background: var(--orange); }
.pipe-key { font-size: 0.74rem; color: var(--muted); margin-top: 0.55rem; display: flex; align-items: center; gap: 0.35rem; }
.pipe-key .pass { width: 10px; height: 13px; }
.vs-bench { margin: 0.5rem 0 0.9rem; }
.vs-title { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.vs-row { display: grid; grid-template-columns: 104px 1fr 44px; gap: 0.6rem; align-items: center; margin: 0.3rem 0; }
.vs-l { font-size: 0.82rem; color: var(--muted); }
.vs-track { height: 20px; background: #f0f1f5; border-radius: 6px; overflow: hidden; }
.vs-fill { height: 100%; border-radius: 6px; background: var(--orange); }
.vs-fill.is-flow { background: #b9bec9; }
.vs-v { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.vs-row.is-ode .vs-l { color: var(--ink); font-weight: 600; }
.vs-row.is-ode .vs-v { color: #c46410; }
.vs-take { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.3rem; }
.vs-take span { background: #fff7ef; border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 0.85rem; text-align: center; }
.vs-take b { color: #c46410; }
@media (max-width: 768px) {
  .wm-gains { grid-template-columns: 1fr; }
  .vs-row { grid-template-columns: 92px 1fr 40px; }
  .vs-take { grid-template-columns: 1fr; }
  .pass { width: 9px; height: 15px; }
  .pipe-passes { gap: 2px; }
  .pipe-io { font-size: 0.72rem; padding: 0.15rem 0.45rem; }
}
