/* ============================================================
   AeroManip-VLA project page
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f3;
  --bg-dark: #0e1014;
  --ink: #16181d;
  --ink-soft: #3a3f4a;
  --muted: #6b7280;
  --line: #e5e5e0;
  --accent: #e8862a;        /* orange from the overview figure */
  --accent-soft: #fdf1e5;
  --blue: #2f6fde;          /* PPO blue in the paper plots */
  --green: #1aa37a;
  --red: #d9534f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.07);
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .88em; background: #f0f0ec; padding: 1px 5px; border-radius: 5px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }

/* ---------------- NAV ---------------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(14,16,20,.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.topnav.show { transform: none; }
.topnav-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; gap: 24px; }
.brand { color: #fff; font-weight: 800; letter-spacing: -.01em; font-size: 17px; white-space: nowrap; }
.brand span { color: var(--accent); }
.brand { display: inline-flex; align-items: center; }
.brand img { margin-right: 8px; }
.brand:hover { text-decoration: none; }
.navlinks { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a { color: rgba(255,255,255,.72); font-size: 13.5px; font-weight: 500; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.navlinks a:hover, .navlinks a.active { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.navtoggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; min-height: min(100vh, 1000px); min-height: min(100svh, 1000px);
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden; background: var(--bg-dark); color: #fff; text-align: center;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(10,12,16,.62) 0%, rgba(10,12,16,.25) 100%),
    linear-gradient(180deg, rgba(10,12,16,.15) 0%, rgba(10,12,16,.1) 55%, rgba(10,12,16,.9) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 980px; padding: 110px 20px 40px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-stats { position: relative; z-index: 2; width: 100%; padding: 0 0 40px; }
.hero-stats .stat { background: rgba(12,14,18,.5); border-color: rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.subtitle, .authors, .affil { text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.title { filter: drop-shadow(0 4px 24px rgba(0,0,0,.45)); }
.venue-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(232,134,42,.14); border: 1px solid rgba(232,134,42,.45); color: #ffc58f;
}
.venue-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232,134,42,.25); }
.title {
  font-size: clamp(44px, 8vw, 92px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  margin: 22px 0 14px;
  background: linear-gradient(180deg, #fff 30%, #ffd7b0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { font-size: clamp(18px, 2.3vw, 25px); font-weight: 500; line-height: 1.4; color: rgba(255,255,255,.9); margin: 0 auto 26px; max-width: 820px; }
.authors { font-size: 18px; font-weight: 600; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.affil { font-size: 14.5px; color: rgba(255,255,255,.65); margin: 10px 0 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 20px; }
.authors sup, .affil sup { font-size: .68em; margin-left: 1px; color: #ffc58f; }
.affil sup { margin-right: 3px; }
.affil { gap: 10px 32px; align-items: center; }
.inst { display: inline-flex; align-items: center; gap: 10px; }
.inst img { height: 38px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }

.link-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-weight: 600; font-size: 15px;
  transition: background .2s, transform .2s, border-color .2s;
}
.btn i { font-size: 17px; }
.btn .arxiv-icon { width: 17px; height: 17px; color: #b31b1b; background: #fff; border-radius: 4px; padding: 1px; }
.btn:hover { background: #fff; color: var(--ink); text-decoration: none; transform: translateY(-2px); }
.btn-yt:hover { background: #ff0033; color: #fff; border-color: #ff0033; }
.btn-bili:hover { background: #00a1d6; color: #fff; border-color: #00a1d6; }
.btn.placeholder, .cbtn.placeholder { cursor: default; opacity: .72; }
.btn.placeholder:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); transform: none; }
.cbtn.placeholder:hover { background: var(--accent); }
.soon { font-size: .82em; font-weight: 500; opacity: .8; margin-left: -2px; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.7); font-size: 20px; animation: bob 2s infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------------- STATS ---------------- */
.stats { background: var(--bg-dark); color: #fff; padding: 8px 0 44px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat { text-align: center; padding: 18px 8px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.stat .num { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); line-height: 1.1; }
.stat .lbl { font-size: 14px; color: rgba(255,255,255,.82); margin-top: 6px; line-height: 1.4; }
.stat small { color: rgba(255,255,255,.5); font-size: 12.5px; }

/* ---------------- SECTIONS ---------------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--bg-dark); color: #fff; }
.section.dark .lead { color: rgba(255,255,255,.75); }
.section-title {
  font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15;
  margin: 0 0 22px; text-align: center;
}
.section-title::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--accent); margin: 16px auto 0; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); text-align: center; margin: 0 0 10px; }

/* side-by-side sections */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.split.media-left { grid-template-columns: 7fr 5fr; }
.split .eyebrow, .split .section-title, .split .lead { text-align: left; }
.split .section-title::after { margin-left: 0; }
.split .lead { margin: 0 0 24px; }
.split .video-caption { text-align: left; }
.stack { display: grid; gap: 22px; }
.finding-grid.stacked { grid-template-columns: 1fr; gap: 12px; margin: 0; }
.finding-grid.stacked .finding { padding: 16px 20px; }
.finding-grid.stacked .finding-num { font-size: 22px; }
.figure.throughput-fig { max-width: 820px; margin: 0 auto; }
.split.media-left { align-items: start; }
.split.media-left .split-text { position: sticky; top: 90px; }
.throughput-fig img { padding: 16px; }

/* outdoor steps */
.steps { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 0 auto 34px; }
.step { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 15px; font-weight: 500; color: rgba(255,255,255,.9); }
.step span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; }
.step-arrow { color: rgba(255,255,255,.35); }

.sub-title { font-size: 20px; font-weight: 700; margin: 40px 0 16px; letter-spacing: -.01em; }
.lead { font-size: 17.5px; color: var(--ink-soft); max-width: 860px; margin: 0 auto 36px; text-align: center; }
.abstract { font-size: 17px; color: var(--ink-soft); margin: 0 0 16px; }
.chip { display: inline-block; font-size: 13.5px; font-weight: 600; padding: 1px 10px; margin: 0 2px; border-radius: 999px; background: var(--accent-soft); color: #b35e12; border: 1px solid #f6d3b0; }

/* ---------------- EMBED PLAYER ---------------- */
.player-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.ptab {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 8px; transition: all .2s;
}
.ptab:hover { border-color: #cfcfc8; }
.ptab.active[data-player="youtube"] { background: #ff0033; border-color: #ff0033; color: #fff; }
.ptab.active[data-player="bilibili"] { background: #00a1d6; border-color: #00a1d6; color: #fff; }
.embed-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-dark); box-shadow: var(--shadow); }
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(255,255,255,.75); text-align: center; padding: 20px; }
.embed-placeholder > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.embed-placeholder > * { position: relative; }
.embed-placeholder i { font-size: 54px; }
.embed-placeholder .fa-youtube { color: #ff0033; }
.embed-placeholder .fa-bilibili { color: #00a1d6; }
.embed-placeholder p { margin: 0; font-weight: 600; font-size: 17px; color: #fff; }
.embed-placeholder small { color: rgba(255,255,255,.6); }

/* ---------------- FIGURES ---------------- */
.figure { margin: 0 0 40px; }
.figure img { width: 100%; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.figure figcaption { font-size: 14.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.figure figcaption b { color: var(--ink-soft); }
.zoomable img { cursor: zoom-in; transition: box-shadow .2s; }
.zoomable img:hover { box-shadow: var(--shadow); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 36px; }
.two-col .figure { margin: 0; }
.triple-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 860px; margin: 0 auto; }
.portrait-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 26px; justify-content: center; }
.quad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.embed-placeholder code { background: rgba(255,255,255,.14); color: #fff; }

/* ---------------- CONTRIBUTIONS / TASKS ---------------- */
.contrib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contrib { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contrib-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 19px; margin-bottom: 14px; }
.contrib h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -.01em; }
.contrib p { font-size: 15px; color: var(--ink-soft); margin: 0; }

.task-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 44px; }
.task-card { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.task-card i { color: var(--accent); font-size: 20px; }
.task-card h4 { margin: 10px 0 6px; font-size: 16px; letter-spacing: -.01em; word-break: break-word; }
.task-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---------------- VIDEOS ---------------- */
.video-card { position: relative; border-radius: 12px; overflow: hidden; background: #111; box-shadow: var(--shadow); cursor: pointer; transition: box-shadow .3s, transform .3s; }
.video-card:hover { box-shadow: 0 14px 36px rgba(16,24,40,.2); transform: translateY(-2px); }
.video-card video { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.video-card:hover video { transform: scale(1.025); }
.vc-btn {
  position: absolute; bottom: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(10,12,16,.62); color: #fff; font-size: 14px; cursor: pointer;
  display: grid; place-items: center; opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s, background .2s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.vc-btn:hover { background: var(--accent); }
.vc-play { left: 10px; }
.vc-expand { right: 10px; }
.video-card:hover .vc-btn, .video-card:focus-within .vc-btn, .video-card.is-paused .vc-btn { opacity: 1; transform: none; }
@media (hover: none) { .vc-btn { opacity: .9; transform: none; } }
.video-card.wide { max-width: 900px; margin: 0 auto; }
.speed {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(0,0,0,.6); color: #fff; letter-spacing: .02em; pointer-events: none;
}
.speed::after { content: " speed"; font-weight: 500; opacity: .8; }
.video-caption { text-align: center; font-size: 15px; color: var(--ink-soft); margin: 12px 0 0; }
.video-caption.instr { font-style: italic; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; font-style: normal; padding: 2px 9px; border-radius: 999px; margin-right: 6px; }
.tag.ok { background: #e3f6ee; color: #11815f; }
.tag.bad { background: #fde8e7; color: #b73a36; }

.switch-tabs { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; margin: 0 auto 20px; }

/* hand-drawn "click me" hint next to tab groups */
.tab-hint {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-62%);
  display: flex; align-items: center; gap: 4px; pointer-events: none; white-space: nowrap;
  font-family: "Caveat", cursive; font-size: 25px; font-weight: 600; color: var(--accent);
  transition: opacity .4s;
}
.tab-hint svg { width: 46px; height: 30px; margin-top: 14px; animation: nudge 1.4s ease-in-out infinite; }
.tab-hint.done { opacity: 0; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (max-width: 680px) {
  .tab-hint { position: static; transform: none; width: 100%; justify-content: center; font-size: 22px; order: -1; }
  .tab-hint svg { transform: rotate(60deg); animation: none; margin-top: 0; }
}
.stab {
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  transition: all .2s;
}
.stab:hover { border-color: #cfcfc8; }
.stab.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------- RL FINDINGS ---------------- */
.finding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 40px; }
.finding { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.finding-num { font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: var(--blue); }
.finding-num span { font-size: 15px; font-weight: 600; color: var(--muted); }
.finding p { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.fig-panel { display: none; }
.fig-panel.active { display: block; }
.fig-panel img { max-width: 960px; margin: 0 auto; }
.fig-panel figcaption { max-width: 960px; margin-left: auto; margin-right: auto; }

/* ---------------- RESULTS ---------------- */
.bars { max-width: 720px; margin: 0 auto 36px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 64px; align-items: center; gap: 14px; margin-bottom: 10px; }
.bar-name { font-weight: 600; font-size: 15px; text-align: right; }
.bar-track { height: 26px; border-radius: 8px; background: #ebebe6; overflow: hidden; }
.bar { height: 100%; width: 0; border-radius: 8px; background: #9aa3b2; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.bar.vla { background: var(--blue); }
.bars.in .bar { width: calc(var(--v) * 1%); }
.bar-row.best .bar { background: var(--accent); }
.bar-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-row.best .bar-val { color: var(--accent); }
.bars-note { font-size: 13.5px; color: var(--muted); text-align: center; margin: 8px 0 0; }

/* "Your method" teaser bar */
.bar-row.yours .bar-name { color: var(--accent); font-style: italic; }
.bar-row.yours .bar-track { position: relative; background: transparent; border: 2px dashed #f0b27a; }
.bar-row.yours .bar {
  background: repeating-linear-gradient(-45deg, rgba(232,134,42,.55) 0 10px, rgba(232,134,42,.22) 10px 20px);
  background-size: 28px 28px; animation: stripes 1.2s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
          mask-image: linear-gradient(90deg, #000 70%, transparent);
}
.bar-q { position: absolute; top: 50%; left: calc(62% + 8px); transform: translateY(-50%); font-weight: 800; color: var(--accent); font-size: 16px; }
.bar-row.yours .bar-val { color: var(--accent); }
@keyframes stripes { to { background-position: 28px 0; } }

.challenge {
  max-width: 860px; margin: 8px auto 44px; padding: 22px 26px; border-radius: var(--radius);
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: linear-gradient(120deg, #fff7ef, #fff); border: 1px solid #f6d3b0; box-shadow: var(--shadow);
}
.challenge-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 22px; }
.challenge h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.01em; }
.challenge p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.challenge-actions { display: flex; flex-direction: column; gap: 8px; }
.cbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; border: 1px solid #f0b27a; color: #b35e12; background: #fff; transition: all .2s; }
.cbtn:hover { text-decoration: none; background: var(--accent-soft); }
.cbtn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.cbtn.primary:hover { background: #d4741c; }
@media (max-width: 680px) {
  .challenge { grid-template-columns: 1fr; text-align: left; }
  .challenge-actions { flex-direction: row; flex-wrap: wrap; }
}

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
table.results { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 860px; }
table.results th, table.results td { padding: 9px 10px; text-align: center; border-bottom: 1px solid #efefea; }
table.results thead th { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); background: #fafaf7; line-height: 1.3; }
table.results td.m { font-weight: 700; background: #fafaf7; }
table.results tr:nth-child(2n) td { border-bottom: 1px solid #dcdcd5; }
table.results td.mean { font-weight: 800; font-size: 15px; background: #fafaf7; }
table.results td.mean.best { color: var(--accent); }
table.results td.top { font-weight: 800; }
.table-note { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------------- SCALABILITY ---------------- */
.scal-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; margin: 40px 0; }
.scal-grid .figure { margin: 0; }
.scal-stats { display: grid; gap: 14px; }
.sstat { padding: 18px 20px; border-radius: var(--radius); background: var(--bg-alt); border-left: 4px solid var(--accent); }
.sstat .num { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sstat .num small { font-size: 15px; font-weight: 600; color: var(--muted); }
.sstat p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------------- BIBTEX ---------------- */
.bibtex { position: relative; background: var(--bg-dark); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.bibtex pre { margin: 0; color: #e6e6e6; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; overflow-x: auto; }
.copy-btn { position: absolute; top: 12px; right: 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; }
.copy-btn:hover { background: rgba(255,255,255,.18); }

/* ---------------- FOOTER / LIGHTBOX ---------------- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.55); text-align: center; padding: 34px 0; font-size: 14px; }
.footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,.88); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,9,12,.92); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 100%; border-radius: 8px; display: none; }
.lightbox img { background: #fff; }
.lightbox video { background: #000; cursor: default; }
.lightbox.img-mode img, .lightbox.video-mode video { display: block; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.25); }

/* ---------------- REVEAL ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .contrib-grid, .finding-grid { grid-template-columns: 1fr; }
  .scal-grid { grid-template-columns: 1fr; }
  .split, .split.media-left { grid-template-columns: 1fr; gap: 28px; }
  .split .split-text { order: -1; }
  .split.media-left .split-text { position: static; }
  .step-arrow { display: none; }
  .navlinks { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: rgba(14,16,20,.97); padding: 8px 16px 16px; }
  .navlinks.open { display: flex; }
  .navtoggle { display: block; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat:last-child { grid-column: span 2; }
  .two-col, .triple-grid { grid-template-columns: 1fr; }
  .quad-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .portrait-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .task-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 96px 1fr 56px; gap: 10px; }
  .abstract { text-align: left; }
  .btn { padding: 9px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}

.title-soon { font-size: .5em; font-weight: 600; color: var(--muted); letter-spacing: 0; vertical-align: middle; }
