/* ===============================================================
   RobotArena∞ 360 project page. A dark, full-bleed hero that is the
   reconstructed scene itself, then a light body for reading.
   Liquid glass material: glass.css + static/js/glass.js.
   Leaderboard styles (preview here, full page at leaderboard/) are in
   leaderboard.css; this file is shared by both pages.
   =============================================================== */

:root {
  --bg: #f4f5f6;
  --ink: #111317;
  --ink-2: #2c3036;
  --body: #4a4f57;
  --muted: #737983;
  --line: rgba(17, 19, 23, 0.08);
  --soft: rgba(17, 19, 23, 0.06);
  --card: #fff;
  /* Teal = reconstructed worlds, orange = agentic scoring (from the teaser). */
  --accent: #0f766e;
  --accent-hi: #6ee7d6;
  --accent-2: #e2661f;
  --shadow: 0 0 0 1px var(--line), 0 30px 60px -42px rgba(17, 19, 23, 0.45);
  --mono: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--body);
  font: 16px/1.7 'Noto Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; }
h1, h2, h3, h4 { margin: 0; font-family: 'Google Sans', 'Noto Sans', sans-serif; color: var(--ink); }
button { font: inherit; }
::selection { background: rgba(15, 118, 110, 0.22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Film grain: stops large gradients banding, adds a little depth. */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }

/* ---------------------------------------------------------------
   Shared type and controls
   --------------------------------------------------------------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.sec { position: relative; padding: 110px 0; }
.sec + .sec { padding-top: 40px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px 'Google Sans', sans-serif; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ''; width: 22px; height: 1.5px; border-radius: 1px; background: currentColor; }
.h2 { margin-top: 14px; font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.038em; text-wrap: balance; }
.h2 .dim { color: var(--muted); }
.prose { max-width: 720px; font-size: 1.04rem; line-height: 1.75; text-wrap: pretty; }
.prose p { margin: 18px 0 0; }
.prose b, .prose strong { color: var(--ink-2); font-weight: 600; }
.prose a, .fig-caption a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(15, 118, 110, 0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.inf { color: var(--accent-2); font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 500 14.5px 'Google Sans', sans-serif; color: var(--ink); white-space: nowrap;
}
.btn svg, .btn .ai { flex: none; width: 17px; height: 17px; font-size: 17px; line-height: 17px; }
.btn .soon {
  padding: 2px 7px; border-radius: 999px;
  background: rgba(226, 102, 31, 0.18); color: #ff9a5c;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.btn.is-soon { cursor: default; }
.btn.is-solid { background: var(--ink); color: #fff; box-shadow: 0 12px 30px -14px rgba(17, 19, 23, 0.7); }
.btn.is-solid:hover { background: var(--accent); }
.btn.is-solid svg { transition: transform 0.35s cubic-bezier(.2, .9, .3, 1.4); }
.btn.is-solid:hover svg { transform: translateX(3px); }

.authors { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 0; margin: 0; list-style: none; font: 500 1rem 'Google Sans', sans-serif; }
.authors a { position: relative; transition: color 0.2s; }
.authors a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}
.authors a:hover::after { transform: none; }
.authors sup { margin-left: 1px; font-size: 0.62em; opacity: 0.7; }
.affil { margin: 8px 0 0; font-size: 0.86rem; }
.affil span + span { margin-left: 16px; }

/* Title letters drop in (site.js splits them) */
.ch { display: inline-block; opacity: 0; transform: translateY(0.42em) rotate(5deg); filter: blur(6px); animation: ch 0.9s cubic-bezier(.2, .9, .3, 1.15) forwards; }
@keyframes ch { to { opacity: 1; transform: none; filter: none; } }

/* ---------------------------------------------------------------
   Top bar: brand + section tabs (liquid droplet) + phone menu.
   Light-on-dark over the hero, dark-on-light once it is behind us.
   --------------------------------------------------------------- */
.top {
  position: fixed; top: 16px; left: 16px; right: 16px; z-index: 60;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  pointer-events: none;
  --tab: rgba(255, 255, 255, 0.78); --tab-on: #fff;
}
.top > * { pointer-events: auto; }
body.is-day .top { --tab: var(--body); --tab-on: var(--ink); }
body.is-day .top .glass { --glass-tint: rgba(255, 255, 255, 0.6); --glass-shadow: 0 1px 1px rgba(17, 19, 23, 0.04), 0 14px 40px -16px rgba(17, 19, 23, 0.28); }
body.is-day .top .lg-drop { background: rgba(255, 255, 255, 0.9); box-shadow: inset 0 1px 0 #fff, 0 0 0 0.5px rgba(17, 19, 23, 0.08), 0 4px 14px -6px rgba(17, 19, 23, 0.3); }

.brand {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px 0 8px;
  border-radius: 999px; font: 700 14.5px 'Google Sans', sans-serif; color: var(--tab-on); white-space: nowrap;
  transition: color 0.3s;
}
.brand svg { width: 30px; height: 30px; }
.topnav { display: flex; align-items: center; padding: 5px; border-radius: 999px; }
.topnav .lg-tabs a {
  padding: 8px 15px; border-radius: 999px;
  font: 500 14px 'Google Sans', sans-serif; color: var(--tab); white-space: nowrap; transition: color 0.3s;
}
.topnav .lg-tabs a.is-current { color: var(--tab-on); }

.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; color: var(--tab-on); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; margin: 0 auto; border-radius: 2px; background: currentColor;
  transition: transform 0.3s, opacity 0.2s;
}
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.top.is-open .menu-btn span { background: transparent; }
.top.is-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.top.is-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(280px, calc(100vw - 32px));
  padding: 8px; border-radius: 24px; display: grid;
  opacity: 0; transform: translateY(-8px) scale(0.97); transform-origin: top right; pointer-events: none;
  transition: opacity 0.25s, transform 0.35s cubic-bezier(.2, .9, .3, 1.2);
}
.top.is-open .menu { opacity: 1; transform: none; pointer-events: auto; }
.menu a { padding: 12px 16px; border-radius: 16px; font: 500 16px 'Google Sans', sans-serif; color: var(--tab-on); }
.menu a:hover { background: rgba(255, 255, 255, 0.14); }
body.is-day .menu a:hover { background: var(--soft); }
@media (max-width: 1080px) { .topnav { display: none; } .menu-btn { display: block; } }

/* ---------------------------------------------------------------
   HERO: the reconstructed scene, a glass title slab, live 3D on demand
   --------------------------------------------------------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; background: #0b0c0f; color: #fff; }
.hero video.v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 9s ease-out; }
.hero video.v.is-on { opacity: 1; transform: scale(1); }
.hero iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.8s; }
.hero.is-live iframe { opacity: 1; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity 0.6s;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.62) 0%, rgba(8, 9, 12, 0.15) 45%, transparent 70%),
    linear-gradient(0deg, rgba(8, 9, 12, 0.55), transparent 35%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.35), transparent 18%);
}
.hero.is-live::after { opacity: 0; }

.slab {
  position: absolute; z-index: 4; left: max(28px, calc(50vw - 660px)); bottom: 48px;
  width: min(610px, calc(100vw - 56px)); padding: 34px 34px 30px; border-radius: 40px;
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(.2, .9, .3, 1.1);
}
.slab.glass { --glass-tint: rgba(16, 18, 22, 0.22); --glass-rim: 0.8; }
.slab.is-pre { opacity: 0; transform: translateY(30px); }
.hero.is-live .slab { opacity: 0; transform: translateY(40px) scale(0.96); pointer-events: none; }
.slab > * { opacity: 0; transform: translateY(14px); animation: rise 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.slab > :nth-child(2) { animation-delay: 0.1s; } .slab > :nth-child(3) { animation-delay: 0.5s; }
.slab > :nth-child(4) { animation-delay: 0.65s; } .slab > :nth-child(5) { animation-delay: 0.8s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.slab .kicker { color: var(--accent-hi); }
.title { margin-top: 14px; font-size: clamp(2.8rem, 5.4vw, 5rem); font-weight: 700; line-height: 0.94; letter-spacing: -0.055em; color: #fff; }
.tagline { margin: 14px 0 0; font: 400 1.16rem/1.42 'Google Sans', sans-serif; color: rgba(255, 255, 255, 0.88); }
.slab .authors { margin-top: 22px; }
.slab .affil { color: rgba(255, 255, 255, 0.66); }
.slab .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.slab .btn { height: 42px; color: #fff; }
.slab .btn.is-solid { background: #fff; color: var(--ink); }
.slab .btn.is-solid:hover { background: var(--accent-hi); color: #062b26; }

.enter { position: absolute; z-index: 4; right: max(40px, calc(50vw - 600px)); top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 14px; transition: opacity 0.5s; }
.hero.is-live .enter { opacity: 0; pointer-events: none; }
.enter button { position: relative; width: 132px; height: 132px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; cursor: pointer; }
.enter button svg { width: 40px; height: 40px; }
.enter .pulse { position: absolute; inset: -1px; border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 50%; pointer-events: none; animation: pulse 2.4s ease-out infinite; }
.enter .pulse + .pulse { animation-delay: 1.2s; }
@keyframes pulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }
.enter p { margin: 0; font: 500 15px 'Google Sans', sans-serif; text-align: center; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.enter p small { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.72); }

.livebar {
  position: absolute; z-index: 5; left: 50%; top: 84px; transform: translate(-50%, -16px);
  display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 8px 0 18px; border-radius: 999px;
  color: #fff; font: 500 14px 'Google Sans', sans-serif; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.5s, transform 0.6s cubic-bezier(.2, .9, .3, 1.2);
}
.hero.is-live .livebar { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.livebar i { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 10px #3ee08f; }
.livebar .btn { height: 36px; background: #fff; color: var(--ink); }

.picker { position: absolute; z-index: 5; right: max(28px, calc(50vw - 660px)); bottom: 48px; padding: 6px; border-radius: 22px; }
.picker .lg-tabs { gap: 2px; }
.picker .lg-drop { top: 6px; bottom: 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.32); }
.picker a { display: block; padding: 4px; border-radius: 16px; }
.picker img { width: 66px; height: 40px; object-fit: cover; border-radius: 12px; opacity: 0.6; transition: opacity 0.3s; }
.picker a.is-current img, .picker a:hover img { opacity: 1; }
.picker-label { position: absolute; right: 8px; bottom: calc(100% + 10px); font: 500 13px 'Google Sans', sans-serif; color: rgba(255, 255, 255, 0.85); white-space: nowrap; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.picker-label b { font-weight: 600; color: #fff; }

@media (max-width: 900px) {
  .slab { bottom: 18px; left: 16px; width: calc(100vw - 32px); padding: 24px 22px; border-radius: 32px; }
  .enter { top: 136px; right: 20px; transform: none; }
  .enter button { width: 72px; height: 72px; }
  .enter button svg { width: 28px; height: 28px; }
  .enter p { display: none; }
  .picker { left: 16px; right: auto; top: 76px; bottom: auto; }
  .picker img { width: 46px; height: 30px; }
  .picker-label { display: none; }
  .livebar { top: auto; bottom: 24px; font-size: 13px; }
  .livebar span { display: none; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .slab { padding: 26px 30px 24px; bottom: 28px; }
  .title { font-size: clamp(2.6rem, 4.6vw, 4.2rem); }
  .slab .authors { margin-top: 16px; }
  .picker { bottom: 28px; }
}

/* ---------------------------------------------------------------
   BODY
   --------------------------------------------------------------- */
.day { position: relative; background: var(--bg); }

/* Overview film */
.film-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 48px; }
.film-head .prose { max-width: 470px; font-size: 0.98rem; }
.film { position: relative; width: min(1320px, calc(100vw - 32px)); margin: 40px auto 0; aspect-ratio: 16 / 9; border-radius: 32px; overflow: hidden; background: #0d0f12; box-shadow: 0 60px 120px -60px rgba(17, 19, 23, 0.7); transform-origin: 50% 0; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-ctl { position: absolute; left: 18px; bottom: 18px; display: flex; gap: 8px; }
.film-ctl .btn { height: 40px; color: #fff; }
@media (max-width: 640px) { .film { border-radius: 20px; } .film-ctl { left: 10px; bottom: 10px; } .film-ctl .btn { height: 34px; padding: 0 12px; font-size: 13px; } .film-ctl .btn span { display: none; } }

/* Numbers */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.nums > div { padding: 28px 24px 0 0; }
.nums > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.nums strong { display: block; font: 700 clamp(2.6rem, 5vw, 4rem)/1 'Google Sans', sans-serif; letter-spacing: -0.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.nums strong em { font-style: normal; color: var(--accent); }
.nums span { display: block; margin-top: 12px; font-size: 0.92rem; line-height: 1.45; }
@media (max-width: 760px) { .nums { grid-template-columns: 1fr 1fr; } .nums > div:nth-child(3) { padding-left: 0; border-left: 0; } .nums > div { padding-bottom: 24px; } }

/* Abstract */
.abstract { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.abstract .prose p:first-child { margin-top: 0; }
.abstract .prose p:first-child::first-line { color: var(--ink); }
@media (max-width: 900px) { .abstract { grid-template-columns: 1fr; gap: 6px; } }

/* 3D ring of environments: full width, one card per orbit video */
.ring-wrap { position: relative; height: 380px; margin-top: 10px; overflow: hidden; perspective: 1700px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; --cw: 300px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.ring-wrap.is-drag { cursor: grabbing; }
.ring-wrap:focus-visible { outline-offset: -6px; }
.ring { position: absolute; left: 50%; top: 42%; width: 0; height: 0; transform-style: preserve-3d; }
.ring .card {
  position: absolute; width: var(--cw); height: calc(var(--cw) * 0.56); left: calc(var(--cw) / -2); top: calc(var(--cw) * -0.28);
  border-radius: 18px; overflow: hidden; background: #0d0f12; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); cursor: pointer;
  -webkit-box-reflect: below 10px linear-gradient(transparent 64%, rgba(255, 255, 255, 0.28));
}
.ring .card video, .ring .card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ring .card.is-still img { animation: pv-kb 10s ease-in-out infinite alternate; }
.ring-cap em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.ring-cap em:empty { display: none; }
.ring .card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.14); background: linear-gradient(140deg, rgba(255, 255, 255, 0.18), transparent 38%); }
.ring-floor { position: absolute; left: 50%; top: 70%; width: 60%; height: 90px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(17, 19, 23, 0.18), transparent); filter: blur(8px); pointer-events: none; }
.ring-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin-top: 6px; position: relative; }
.ring-cap { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 18px; border-radius: 999px; font: 500 14.5px 'Google Sans', sans-serif; color: var(--ink); text-align: left; }
.ring-cap small { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-variant-numeric: tabular-nums; }
.ring-cap.is-flip [data-ring-cap] { animation: flip 0.5s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes flip { from { opacity: 0; transform: translateY(6px); } }
.ring-hint { display: inline-flex; gap: 6px; align-items: center; font: 500 12px 'Google Sans', sans-serif; letter-spacing: 0.04em; color: var(--muted); }
.ring-hint i { position: relative; width: 26px; height: 16px; border: 1.5px solid currentColor; border-radius: 8px; }
.ring-hint i::after { content: ''; position: absolute; top: 50%; left: 4px; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: currentColor; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(10px); } }
@media (max-width: 760px) { .ring-wrap { height: 300px; --cw: 210px; } .ring-bar { margin-top: 0; } .ring-cap { font-size: 13.5px; } }

/* Real ↔ Sim wipe */
.compare { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; margin-top: 90px; }
.compare h3 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.2; }
.compare p { margin: 12px 0 0; }
.wipe { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #0d0f12; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: 0 50px 100px -50px rgba(17, 19, 23, 0.6); }
.wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* The two images are framed slightly differently; this lines them up. */
.wipe .sim { transform: translateY(-3%) scale(1.02); clip-path: inset(0 0 0 var(--p, 50%)); }
.wipe .bar { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 18px rgba(0, 0, 0, 0.35); }
.wipe .knob { position: absolute; top: 50%; left: var(--p, 50%); width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.wipe .knob svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
.wipe .tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 600 11px 'Google Sans', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.wipe .tag.l { left: 14px; } .wipe .tag.r { right: 14px; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; gap: 24px; margin-top: 60px; } }

/* Method */
.part { margin-top: 64px; }
.part-head { display: grid; grid-template-columns: 1fr 1.35fr; gap: 20px 56px; align-items: start; }
.part-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.15; letter-spacing: -0.028em; }
.part-head h3 small { display: block; margin-bottom: 10px; font: 700 12px 'Google Sans', sans-serif; letter-spacing: 0.16em; color: var(--accent); }
.part-head .prose p:first-child { margin-top: 0; }
.fig { margin: 34px 0 0; padding: 14px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); cursor: zoom-in; transition: transform 0.5s cubic-bezier(.2, .9, .3, 1.2); }
.fig:hover { transform: translateY(-4px); }
.fig img { width: 100%; border-radius: 18px; }
.fig figcaption { margin: 12px 8px 2px; font-size: 0.84rem; color: var(--muted); }
@media (max-width: 900px) { .part-head { grid-template-columns: 1fr; } }

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 30px; background: rgba(10, 11, 14, 0.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; pointer-events: none; cursor: zoom-out; transition: opacity 0.35s; }
.lightbox.is-on { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1500px, 100%); max-height: 100%; padding: 12px; border-radius: 18px; background: #fff; transform: scale(0.94); transition: transform 0.45s cubic-bezier(.2, .9, .3, 1.2); }
.lightbox.is-on img { transform: none; }

/* Real-to-sim pipeline (site.js pipeline()): step rail + one view per step */
.pipe { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 26px; margin-top: 34px; padding: 18px; border-radius: 32px; background: var(--card); box-shadow: var(--shadow); }
.pipe-rail { position: relative; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.pipe-rail li { position: relative; }
.pipe-rail li + li::before { content: ''; position: absolute; left: 27px; top: -10px; height: 16px; width: 2px; background: var(--line); }
.pipe-rail button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 18px; background: none; text-align: left; cursor: pointer; overflow: hidden; transition: background 0.25s; }
.pipe-rail button:hover { background: var(--bg); }
.pipe-n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); font: 700 14px 'Google Sans', sans-serif; color: var(--muted); transition: background 0.3s, color 0.3s, transform 0.4s cubic-bezier(.2, .9, .3, 1.4); }
.pipe-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pipe-t b { font: 600 0.95rem 'Google Sans', sans-serif; color: var(--ink-2); }
.pipe-t small { margin-top: 2px; font-size: 0.78rem; color: var(--muted); }
.pipe-rail button.is-on { background: var(--bg); }
.pipe-rail button.is-on .pipe-n { background: var(--accent); color: #fff; transform: scale(1.08); }
.pipe-rail button.is-on .pipe-t b { color: var(--ink); }
.pipe-rail button.is-seen .pipe-n { background: rgba(15, 118, 110, 0.14); color: var(--accent); }
.pipe-prog { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.pipe.is-auto .pipe-rail button.is-on .pipe-prog { opacity: 0.8; animation: pipe-prog var(--dur, 6s) linear forwards; }
@keyframes pipe-prog { to { transform: none; } }
.pipe-stage { display: grid; min-width: 0; }
.pipe-view { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1), visibility 0s 0.6s; }
.pipe-view.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pv-media { position: relative; aspect-ratio: 1908 / 1032; border-radius: 22px; overflow: hidden; background: #0d0f12; }
.pv-media > img, .pv-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-cap { margin: 14px 4px 0; font-size: 0.95rem; line-height: 1.6; color: var(--body); max-width: 760px; }
.pv-tag { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 600 11px 'Google Sans', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.pipe-view:not(.is-on) * { animation-play-state: paused !important; }
/* Step 1: a slow push-in on the single input frame */
.pv-kb img { animation: pv-kb 14s ease-in-out infinite alternate; }
@keyframes pv-kb { from { transform: scale(1); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
/* Step 3: photo crops above the reconstructed meshes */
.pv-assets { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 22px 26px; background: radial-gradient(120% 90% at 50% 0%, #ffffff, #eef0f3); }
.pv-row-label { font: 700 10.5px 'Google Sans', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pv-crops { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pv-crops figure { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 10px 6px 8px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 20px -16px rgba(17, 19, 23, 0.4); }
.pv-crops img { height: 64px; width: 100%; object-fit: contain; }
.pv-crops figcaption { margin-top: 6px; font: 500 0.78rem 'Google Sans', sans-serif; color: var(--ink-2); white-space: nowrap; }
.pv-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; height: 18px; }
.pv-flow i { position: relative; justify-self: center; width: 2px; height: 100%; background: linear-gradient(var(--line), var(--accent)); }
.pv-flow i::after { content: ''; position: absolute; left: -4px; bottom: -1px; width: 6px; height: 6px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pv-turn { aspect-ratio: 1488 / 378; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.pv-turn video { width: 100%; height: 100%; object-fit: contain; }
/* Step 5: one frame, three clips played in turn (pose, scale, plane) */
.pv-pane { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.pv-pane.is-on { opacity: 1; }
.pv-pane.is-white { background: #fff; }
.pv-pane video { width: 100%; height: 100%; object-fit: cover; }
.pv-pane.is-white video { object-fit: contain; padding: 4% 3% 12%; }
.pv-subtabs { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.pv-subtabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, 0.78); font: 500 13px 'Google Sans', sans-serif; white-space: nowrap; cursor: pointer; transition: background 0.25s, color 0.25s; }
.pv-subtabs button.is-on { background: #fff; color: var(--ink); }
.pv-live { position: absolute; left: 14px; bottom: 14px; z-index: 2; height: 40px; color: #fff; }
@keyframes pv-in { from { opacity: 0; transform: translateY(8px); } }
@property --p { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.wipe.is-auto { animation: wipe-auto 5s ease-in-out infinite alternate; }
@keyframes wipe-auto { from { --p: 16%; } to { --p: 84%; } }
.pipe-view .wipe { box-shadow: none; }
@media (max-width: 960px) {
  .pipe { grid-template-columns: 1fr; padding: 12px; gap: 14px; }
  .pipe-rail { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .pipe-rail li + li::before { display: none; }
  .pipe-rail button { width: auto; padding: 8px 12px 10px; background: var(--bg); white-space: nowrap; }
  .pipe-t small { display: none; }
  .pipe-view:not(.is-on) { display: none; }
  .pipe-view.is-on { animation: pv-in 0.5s ease; }
  .pv-assets { aspect-ratio: auto; padding: 14px 12px; gap: 8px; }
  .pv-crops, .pv-flow { gap: 4px; }
  .pv-crops figure { padding: 6px 2px; }
  .pv-crops img { height: 40px; }
  .pv-crops figcaption { font-size: 0.62rem; white-space: normal; text-align: center; }
  .pv-subtabs button { height: 30px; padding: 0 10px; font-size: 12px; }
}

/* Evaluator synthesis diagram (data-evald) */
.evald { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.15fr) 34px minmax(0, 1fr); margin-top: 34px; }
.ev-col { display: grid; align-content: start; gap: 14px; min-width: 0; }
.ev-colhead { font: 700 11px 'Google Sans', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ev-card { position: relative; min-width: 0; padding: 16px 18px 18px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease calc(var(--i) * 0.16s), transform 0.8s cubic-bezier(.2, .9, .3, 1.15) calc(var(--i) * 0.16s); }
.evald.is-in .ev-card { opacity: 1; transform: none; }
.ev-card h5 { margin: 0 0 10px 34px; min-height: 24px; display: flex; align-items: center; font: 600 0.98rem 'Google Sans', sans-serif; color: var(--ink); }
.ev-n { position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 12px 'Google Sans', sans-serif; }
.ev-col:nth-child(3) .ev-n { background: var(--accent-2); }
.ev-col:nth-child(5) .ev-n { background: var(--accent); }
.ev-quote { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--bg); font: 500 0.95rem var(--mono); color: var(--ink); min-height: 2.9em; }
.ev-quote.is-typing::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: var(--accent); vertical-align: -2px; animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ev-chips { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ev-chips li { padding: 8px 12px; border-radius: 12px; background: var(--bg); font-size: 0.86rem; color: var(--ink-2); }
.ev-thumb { position: relative; aspect-ratio: 1908 / 1032; border-radius: 14px; overflow: hidden; background: #0d0f12; }
.ev-thumb video { width: 100%; height: 100%; object-fit: cover; }
.ev-note { margin: 10px 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.ev-spec { display: grid; gap: 6px; margin: 0; }
.ev-spec div { display: grid; grid-template-columns: 82px 1fr; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--bg); }
.ev-spec dt { font: 500 11px var(--mono); color: var(--muted); }
.ev-spec dd { margin: 0; font-size: 0.88rem; color: var(--ink); }
.ev-spec code { font: 600 0.86rem var(--mono); color: var(--accent); }
.ev-spec em { margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(15, 118, 110, 0.12); font: 600 11px var(--mono); font-style: normal; color: var(--accent); }
.ev-ground { margin: 10px 0 0; aspect-ratio: 2.2 / 1; border-radius: 14px; overflow: hidden; }
.ev-ground img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 78%; }
.ev-stages { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ev-stages li { display: grid; grid-template-columns: 1fr 1fr 44px; grid-template-areas: "n bar v" "r bar v"; align-items: center; column-gap: 12px; padding: 8px 12px; border-left: 3px solid var(--c); border-radius: 4px 12px 12px 4px; background: var(--bg); }
.ev-sn { grid-area: n; font: 600 0.9rem 'Google Sans', sans-serif; color: var(--ink); text-transform: capitalize; }
.ev-req { grid-area: r; font-size: 0.72rem; color: var(--muted); }
.ev-wb { grid-area: bar; height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.ev-wb i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--c); transition: width 1.1s cubic-bezier(.2, .8, .2, 1) 1.2s; }
.evald.is-in .ev-wb i { width: calc(var(--w) / 0.6 * 100%); }
.ev-stages b { grid-area: v; justify-self: end; font: 700 0.9rem var(--mono); color: var(--ink); }
.ev-checks { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ev-checks li { position: relative; padding: 8px 12px 8px 36px; border-radius: 12px; background: var(--bg); font-size: 0.84rem; color: var(--ink-2); }
.ev-checks li::before { content: ''; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -8px; border: 1.5px solid #c92a2a; border-radius: 50%; transition: background 0.3s; }
.ev-checks li::after { content: ''; position: absolute; left: 17px; top: 50%; width: 4px; height: 8px; margin-top: -6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.35s cubic-bezier(.2, .9, .3, 1.6); }
.evald.is-in .ev-checks li::before { background: #c92a2a; transition-delay: calc(1.6s + var(--k, 0) * 0.25s); }
.evald.is-in .ev-checks li::after { transform: rotate(45deg) scale(1); transition-delay: calc(1.65s + var(--k, 0) * 0.25s); }
.ev-checks li:nth-child(2) { --k: 1; } .ev-checks li:nth-child(3) { --k: 2; } .ev-checks li:nth-child(4) { --k: 3; }
.ev-result { margin: 10px 0 0; padding: 7px 12px; border-radius: 10px; background: rgba(201, 42, 42, 0.08); font: 600 0.78rem var(--mono); color: #c92a2a; text-align: center; }
.ev-formula { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--bg); font: 500 0.8rem/1.6 var(--mono); color: var(--ink); overflow-x: auto; white-space: nowrap; }
.ev-formula span { color: var(--muted); }
.ev-meter { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; margin-top: 12px; }
.ev-meter span { font-size: 0.8rem; color: var(--muted); }
.ev-meter b { font: 700 2rem/1 'Google Sans', sans-serif; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ev-meter i { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.ev-meter em { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #4c6ef5, #12b3c2 12%, #37b24d 22%, #f08c00 45%, #e03131); transition: width 1.6s cubic-bezier(.2, .8, .2, 1) 2.4s; }
.evald.is-in .ev-meter em { width: 100%; }
.ev-arrow { display: flex; align-items: center; justify-content: center; padding-top: 28px; }
.ev-arrow i { position: relative; width: 22px; height: 2px; background: var(--line); }
.ev-arrow i::after { content: ''; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border: solid #b6bbc3; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.ev-arrow i::before { content: ''; position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; }
.evald.is-in .ev-arrow i::before { animation: ev-pulse 2.2s ease-in-out 1s infinite; }
@keyframes ev-pulse { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: 18px; opacity: 0; } }
@media (max-width: 1000px) {
  .evald { grid-template-columns: 1fr; }
  .ev-arrow { padding: 4px 0; height: 30px; }
  .ev-arrow i { transform: rotate(90deg); }
}
.ev-code { margin-top: 18px; border-radius: 20px; background: #0f1115; color: #d7dae0; overflow: hidden; }
.ev-code summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; font: 500 0.92rem 'Google Sans', sans-serif; list-style: none; }
.ev-code summary::-webkit-details-marker { display: none; }
.ev-code summary::before { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform 0.25s; }
.ev-code[open] summary::before { transform: rotate(45deg); }
.ev-code summary code { padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font: 500 0.82rem var(--mono); color: #8be9d5; }
.ev-code pre { margin: 0; padding: 4px 22px 22px; overflow-x: auto; font: 12.5px/1.65 var(--mono); }
.ev-code .c { color: #7f8896; } .ev-code .k { color: #ff9a5c; } .ev-code .s { color: #8be9d5; } .ev-code .n { color: #f2c94c; }
.paperfig { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 2px; border: 0; background: none; font: 500 0.86rem 'Google Sans', sans-serif; color: var(--accent); cursor: zoom-in; }
.paperfig::before { content: ''; width: 14px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; }
.paperfig:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Scoring replay (static/js/replay.js): rollout video + evaluator output */
.replay-head { margin-top: 64px; }
.replay-head h4 { font-size: 1.25rem; letter-spacing: -0.02em; }
.replay-head p { margin: 6px 0 0; max-width: 760px; }
[data-replay] { --ep: #4a3aa7; margin-top: 22px; padding: 22px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); }
[data-replay]:empty { min-height: 560px; }
.rp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rp-task { font: 600 1.1rem 'Google Sans', sans-serif; color: var(--ink); text-transform: capitalize; }
.rp-task small { display: block; font: 700 11px 'Google Sans', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 13px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font: 500 13.5px 'Google Sans', sans-serif; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.3s cubic-bezier(.2, .9, .3, 1.4); }
.rp-pill i { width: 8px; height: 8px; border-radius: 50%; }
.rp-pill em { padding: 1px 7px; border-radius: 999px; font: 700 9.5px 'Google Sans', sans-serif; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; }
.rp-pill em.ok { background: rgba(12, 138, 62, 0.14); color: #0c8a3e; }
.rp-pill em.bad { background: rgba(224, 49, 49, 0.12); color: #c92a2a; }
.rp-pill:hover { transform: scale(1.04); }
.rp-pill.is-on { background: var(--ink); color: #fff; }
.rp-pill.is-on em.ok { background: rgba(62, 224, 143, 0.2); color: #6ff0ae; }
.rp-pill.is-on em.bad { background: rgba(255, 107, 107, 0.2); color: #ff9b9b; }

.rp-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 22px; margin-top: 18px; align-items: start; }
.rp-screen { position: relative; aspect-ratio: 1908 / 1032; border-radius: 22px; overflow: hidden; background: #0d0f12; }
.rp-screen video { width: 100%; height: 100%; object-fit: cover; }
.rp-hud { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 16px; height: 46px; padding: 0 16px; border-radius: 999px; color: #fff; }
.rp-hud.glass { --glass-tint: rgba(16, 18, 22, 0.35); }
.rp-stage { --c: #888; display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px 'Google Sans', sans-serif; text-transform: capitalize; }
.rp-stage::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent), 0 0 12px var(--c); }
.rp-hud-score { display: inline-flex; align-items: baseline; gap: 7px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.rp-hud-score small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.rp-hud-score b { font: 700 20px 'Google Sans', sans-serif; font-variant-numeric: tabular-nums; }
.rp-toast { position: absolute; right: 12px; top: 12px; padding: 7px 13px; border-radius: 999px; background: #f2c500; color: #2b2300; font: 600 12.5px 'Google Sans', sans-serif; opacity: 0; transform: translateY(-6px); text-transform: capitalize; }
.rp-toast.is-on { animation: rp-toast 2.4s ease forwards; }
@keyframes rp-toast { 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.rp-clock { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 10px; align-items: center; padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: 500 12.5px 'Google Sans', sans-serif; font-variant-numeric: tabular-nums; }
.rp-clock em { font-style: normal; color: rgba(255, 255, 255, 0.65); }
.rp-play { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; cursor: pointer; }
.rp-play svg { width: 18px; height: 18px; }

.rp-side .rp-k { font: 700 11px 'Google Sans', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rp-stages { margin: 12px 0 0; padding: 0; list-style: none; }
.rp-stages li { --c: #888; display: grid; grid-template-columns: 12px 1fr 38px; grid-template-areas: "dot name w" "dot bar val"; align-items: center; gap: 5px 10px; padding: 10px 12px; border-radius: 14px; transition: background 0.25s; }
.rp-stages li.is-now { background: color-mix(in srgb, var(--c) 10%, transparent); }
.rp-dot { grid-area: dot; width: 11px; height: 11px; border: 2px solid var(--c); border-radius: 50%; transition: background 0.2s; }
.is-part > .rp-dot { background: linear-gradient(90deg, var(--c) 50%, transparent 50%); }
.is-done > .rp-dot { background: var(--c); }
.rp-name { grid-area: name; font: 600 0.95rem 'Google Sans', sans-serif; color: var(--ink); text-transform: capitalize; }
.rp-w { grid-area: w; justify-self: end; padding: 1px 6px; border-radius: 6px; background: var(--soft); font: 600 11.5px var(--mono); color: var(--ink-2); }
.rp-bar { grid-area: bar; position: relative; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.rp-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--c); }
.rp-val { grid-area: val; justify-self: end; font: 600 12.5px 'Google Sans', sans-serif; color: var(--muted); font-variant-numeric: tabular-nums; }
.rp-legend { display: flex; gap: 14px; margin: 8px 12px 0; font-size: 0.76rem; color: var(--muted); }
.rp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rp-legend i { width: 9px; height: 9px; border: 1.5px solid var(--muted); border-radius: 50%; }
.rp-legend i.is-done { background: var(--muted); }
.rp-legend i.is-part { background: linear-gradient(90deg, var(--muted) 50%, transparent 50%); }
.rp-verdict { min-height: 2.6em; margin: 14px 12px 0; font: 400 0.93rem/1.5 'Google Sans', sans-serif; color: var(--muted); opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.5s cubic-bezier(.2, .9, .3, 1.3); }
.rp-verdict.is-on { opacity: 1; transform: none; }
.rp-verdict b { margin-right: 4px; padding: 3px 10px; border-radius: 999px; color: #fff; }
.rp-verdict.is-ok b { background: #0c8a3e; }
.rp-verdict.is-bad b { background: #e03131; }

.rp-chartwrap { margin-top: 18px; }
.rp-chart { display: block; width: 100%; height: auto; overflow: visible; cursor: ew-resize; touch-action: none; border-radius: 12px; }
.rp-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rp-ghost { fill: none; stroke: rgba(17, 19, 23, 0.14); stroke-width: 2; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.rp-line { fill: none; stroke: #e0b400; stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rp-area { fill: rgba(242, 197, 0, 0.16); }
.rp-succ { stroke: #0c8a3e; stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.rp-mark { fill: #fff; stroke: #a3a8b0; stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill 0.3s, stroke 0.3s; }
.rp-mark.is-on { fill: #f2c500; stroke: var(--ink); }
.rp-head-line { stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.rp-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.76rem; color: var(--muted); }
@media (max-width: 860px) { [data-replay] { padding: 14px; } .rp-main { grid-template-columns: 1fr; } .rp-hud { height: 40px; gap: 10px; padding: 0 12px; } .rp-hud-score b { font-size: 17px; } .rp-toast { display: none; } }

/* Results: paper figures drawn by static/js/figures.js */
.fig-block { margin-top: 72px; }
.fig-block > h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -0.028em; line-height: 1.15; }
.fig-block > h3 small { display: block; margin-bottom: 10px; font: 700 12px 'Google Sans', sans-serif; letter-spacing: 0.16em; color: var(--accent); }
.fig-sub { margin: 44px 0 0; font-size: 1.12rem; letter-spacing: -0.015em; }
.paper-fig { margin-top: 18px; padding: 16px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.paper-fig:empty { min-height: 240px; }
.fig-caption { max-width: 860px; margin: 14px 4px 0; font-size: 0.86rem; line-height: 1.6; color: var(--muted); }
.fig-caption b { color: var(--ink-2); font-weight: 600; }
.fig-block .prose { margin-top: 6px; }
.paper-fig .pf-hot { cursor: default; transition: opacity 0.12s; }
.paper-fig svg:hover .pf-hot:not(:hover) { opacity: 0.55; }
.paper-fig .pf-trace-hit { cursor: crosshair; }
.pf-tooltip { position: fixed; z-index: 150; max-width: 320px; padding: 5px 10px; border-radius: 8px; background: rgba(17, 19, 23, 0.92); color: #fff; font: 12.5px/1.35 'Source Sans 3', 'Noto Sans', sans-serif; font-variant-numeric: tabular-nums; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); pointer-events: none; }
.paper-fig svg { display: block; width: 100%; height: auto; font-family: 'Source Sans 3', 'Nimbus Sans', Helvetica, Arial, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
.paper-fig .pf-ink { fill: #1a1a1a; } .paper-fig .pf-ink2 { fill: #5c5b57; } .paper-fig .pf-muted { fill: #8c8a84; }
.paper-fig .pf-t8 { font-size: 8.5px; } .paper-fig .pf-t9 { font-size: 9px; }
.paper-fig .pf-t10 { font-size: 10px; } .paper-fig .pf-t11 { font-size: 11px; }
.paper-fig .pf-b { font-weight: 600; } .paper-fig .pf-i { font-style: italic; }
.paper-fig .pf-grid { stroke: #e6e4de; stroke-width: 1; } .paper-fig .pf-axis { stroke: #c9c7c0; stroke-width: 1; }
@media (max-width: 640px) { .paper-fig { padding: 10px; border-radius: 18px; } }

/* BibTeX */
.bib { position: relative; margin-top: 26px; padding: 24px 26px; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow-x: auto; }
.bib pre { margin: 0; font: 13.5px/1.7 var(--mono); color: var(--ink); }
.bib button { position: absolute; top: 14px; right: 14px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 13px 'Google Sans', sans-serif; cursor: pointer; transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.4), background 0.2s; }
.bib button:hover { transform: scale(1.06); background: var(--accent); }

.foot { padding: 30px 0 60px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }
.foot a { color: var(--accent); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; }
.foot p { margin: 0; max-width: 640px; }

/* Scroll reveal (site.js) */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal] [data-stagger] { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.2, .9, .3, 1.15); }
[data-reveal].is-in [data-stagger] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ch, .slab > *, [data-reveal], [data-reveal] [data-stagger] { opacity: 1 !important; transform: none !important; filter: none !important; }
}
