/* GR00T 2 blog — standalone page for /labs/gear/gr00t-2/
   Visual language matches the GEAR EgoScale post (pages/egoscale.js + styles/Home.module.css):
   cream page, NVIDIA Sans, 800px text column, 960px media column, hr between sections,
   green/gray tab buttons, NVIDIA green as the only accent. The hero is the one dark band. */

@font-face { font-family: "NVIDIA Sans"; src: url("../font/NVIDIASans_Lt.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "NVIDIA Sans"; src: url("../font/NVIDIASans_Rg.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NVIDIA Sans"; src: url("../font/NVIDIASans_Md.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "NVIDIA Sans"; src: url("../font/NVIDIASans_Bd.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f9f7f2;               /* site background (globals.css) */
  --surface: #ffffff;
  --panel: #f7f7f7;            /* EgoScale paper-info box */
  --line: #e5e7eb;
  --rule: #d1d5db;             /* EgoScale <hr> */
  --head: #333333;
  --text: #3a3a3a;             /* site body text */
  --text-2: #6b7280;           /* EgoScale captions */
  --text-3: #9ca3af;
  --green: #76b900;
  --green-ink: #4a7a00;        /* green text on cream: 4.6:1 */
  --green-tint: rgba(118, 185, 0, .13);   /* the focused Dexterity task: thumbnail, title and chart band */
  --gray-1: #5c5c5c;           /* N1.7 / primary baseline */
  --gray-2: #a6a6a6;           /* second baseline / ablation */
  --tok-video: #8b5cf6;
  --tok-text: #2563eb;
  --tok-state: #9ca3af;
  --tok-act: #f59e0b;
  --radius: 12px;
  --text-col: 800px;
  --media-col: 960px;
  --font: "NVIDIA Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: #5d5242; text-decoration: underline; text-decoration-color: rgba(93, 82, 66, .3); text-underline-offset: 2px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: #332c25; text-decoration-color: rgba(51, 44, 37, .8); }
img, video, svg { display: block; max-width: 100%; }
::selection { background: var(--green); color: #fff; }


/* ---------- site header (components/Header.js) ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--green); z-index: 120; }
.site-header {
  position: sticky; top: 0; z-index: 100; height: 72px;
  display: flex; justify-content: space-between; align-items: center; padding: 0 2.5rem;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.site-header .logo { font-weight: 600; font-size: 1.4rem; color: #333; text-decoration: none; white-space: nowrap; }
.site-header .logo:hover { opacity: .8; }
.site-nav { display: flex; gap: 2.5rem; padding-right: 3rem; }
.site-nav a { color: #111; text-decoration: none; font-size: 1.1rem; font-weight: 500; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: #111; transition: width .3s; }
.site-nav a:hover::after { width: 100%; }
.site-nav a.dd::after { content: "▾"; position: static; display: inline-block; width: auto; height: auto; background: none; margin-left: .5rem; font-size: .8rem; transition: transform .2s; }
.site-nav a.dd:hover::after { width: auto; transform: translateY(2px); }

/* ---------- hero (the one dark band) ---------- */
.hero { position: relative; height: calc(100svh - 72px); min-height: 520px; max-height: 1000px; overflow: hidden; background: #000; color: #f2f2f2; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 52%, rgba(0,0,0,.9) 100%);
}
.hero .copy { position: absolute; z-index: 2; left: clamp(16px, 4vw, 48px); right: clamp(16px, 4vw, 48px); bottom: clamp(28px, 7vh, 64px); max-width: 1240px; margin: 0 auto; }
.hero h1 { font-weight: 700; font-size: clamp(52px, 7.4vw, 104px); line-height: .92; letter-spacing: -.02em; margin: 0; color: #fff; }
.hero .tagline { font-weight: 300; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.3; margin: 10px 0 18px; max-width: 920px; }
.hero .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff;
  font: 500 15px/1 var(--font); padding: 11px 20px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.25);
  transition: background .2s, border-color .2s;
}
.btn:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.12); }
.btn.primary { background: var(--green); border-color: var(--green); }
.btn.primary:hover { background: #69a600; border-color: #69a600; }
.btn.soon { cursor: default; }
.btn.soon:hover { border-color: rgba(255,255,255,.6); background: rgba(0,0,0,.25); }
.btn.soon small { font-size: 12px; font-weight: 400; color: #cfcfcf; }
.hero .meta { margin: 0; color: #cfcfcf; font-size: 15px; display: inline-flex; align-items: center; gap: 12px; }
.replay {
  all: unset; position: absolute; z-index: 3; right: clamp(16px, 4vw, 48px); bottom: clamp(28px, 7vh, 64px);
  cursor: pointer; color: #cfcfcf; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transition: opacity .4s;
}
.replay.show { opacity: 1; }
.replay:hover { color: var(--green); }

/* ---------- article (EgoScale blogPost / blogContent) ---------- */
.post { max-width: 1000px; margin: 0 auto; padding: 0 1rem; }
.post > hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.sec { padding: 2.5rem 1.5rem 0; scroll-margin-top: 84px; }
.sec:first-child { padding-top: 3.5rem; }
.sec > *, .block > * { max-width: var(--text-col); margin-left: auto; margin-right: auto; }
.sec > .wide, .block > .wide { max-width: var(--media-col); }
.sec h2 { font-size: 1.75rem; font-weight: 500; line-height: 1.3; color: var(--head); margin-top: 0; margin-bottom: 1.25rem; }
.sec h3 { font-size: 1.3rem; font-weight: 500; line-height: 1.3; color: var(--head); margin-top: 0; margin-bottom: .75rem; }
.sec p { margin-top: 0; margin-bottom: 1.25rem; text-align: justify; }
.sec strong { color: #222; }
.sec > * + *, .block > * + * { margin-top: 1.25rem; }   /* collapses with a paragraph's bottom margin */
.sec > .block { margin-top: 3rem; scroll-margin-top: 84px; }

/* capability list (GEN-1.5-style) */
.caps { padding-left: 1.4rem; margin: 0 auto 1.5rem; }
.sec > .pillar { margin-top: 2.25rem; }
.sec .pillar > * + * { margin-top: .9rem; }
.sec .pillar > p, .pillar .caps { margin-bottom: 0; }
.sec > .pillar + p { margin-top: 2rem; }
.sec > .dexpt + p,
.block > :is(figure, .grid-2, .chart, .stats, .dexpt) + p:not(.chart-foot) { margin-top: 1.75rem; }   /* .sec p zeroes the top margin of text that follows media */
.pillar h3 { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 0; }
.pillar h3 .n { color: var(--green-ink); font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.pillar h3 a { color: inherit; text-decoration: none; }
.pillar h3 a:hover { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }
.caps li { margin-bottom: .65rem; padding-left: .2rem; text-align: justify; }
.caps li::marker { color: var(--green); }
.caps a { color: inherit; text-decoration: none; }
.caps a strong { color: #222; }
.caps a:hover strong { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }

/* ---------- tabs (EgoScale task buttons) ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; text-align: center !important; }
.facts span { font-size: 13px; color: var(--text-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }

/* ---------- media ---------- */
figure { margin: 0 auto; }
.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
/* player bar (Yuke): over the bottom of the video on hover, and while the reader has it paused */
.frame video { cursor: pointer; }
.vctl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 22px 12px 9px;
        background: linear-gradient(transparent, rgba(0, 0, 0, .62)); color: #fff; font-size: 12px; line-height: 1;
        opacity: 0; transition: opacity .2s; }
.frame:hover .vctl, .vctl:focus-within, .frame.is-paused .vctl { opacity: 1; }
.vctl button { appearance: none; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: 999px; }
.vctl button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.vc-play { width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.vc-play svg { width: 18px; height: 18px; }
.vc-play:hover, .vc-rate:hover { background: rgba(255, 255, 255, .16); }
.vc-seek { flex: 1; min-width: 40px; height: 4px; margin: 0; accent-color: var(--green); cursor: pointer; }
.vc-time { flex: none; font-variant-numeric: tabular-nums; opacity: .9; min-width: 3.2em; }
.vc-rates { flex: none; display: flex; gap: 2px; }
.vc-rate { padding: 5px 7px; font-variant-numeric: tabular-nums; opacity: .85; }
.vc-rate.on { background: #fff; color: #111; font-weight: 700; opacity: 1; }
.vctl.narrow .vc-rate:not(.on) { display: none; }   /* frame <= 520 px: the current speed only; click steps it */
.vctl.tiny .vc-time { display: none; }
.is-pend-h .vctl, .dexpt-main.is-pend .vctl { display: none; }
.frame.lift { box-shadow: 0 4px 24px rgba(0,0,0,.12); }
.frame video, .frame img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.frame.blend, .frame.blend video { background: var(--bg); }   /* a video drawn on the page colour (the 50-task reel) blends in, no card */
.frame .ovl { position: absolute; right: 8px; bottom: 8px; background: rgba(17,17,17,.82); color: #fff; font-size: 11.5px; line-height: 1; padding: 5px 8px; border-radius: 3px; pointer-events: none; }
figcaption { color: var(--text-2); font-size: 15px; line-height: 1.5; margin-top: .6rem; text-align: center; text-wrap: pretty; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
/* two videos + their chart in one row (UMI -> YAM): stacked on phone, chart under the pair on tablets */
.pair-chart { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .pair-chart { grid-template-columns: 1fr 1fr; gap: 18px; } }
.pair-chart[hidden] { display: none; }
.grid-3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* two charts side by side (50 new tasks: average | tasks by success rate), bottoms aligned */
.chart-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 32px; margin-top: 1.5rem; }
@media (min-width: 760px) { .chart-pair { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: end; } }
.chart-foot { text-align: center !important; color: var(--text-2); font-size: 13px; text-wrap: pretty; }   /* no one-word last line (Yuke) */

/* Pickers (Dexterity, contact-rich RL): one focused demo, its tasks small in a row */
.sec > #dex-tasks { margin-top: 1.5rem; }
.dexpt { scroll-margin-top: 84px; }                    /* a chart pick lands the video below the sticky header */
.dexpt-main { margin: 0; }
.dexpt-main video { aspect-ratio: 16 / 9; object-fit: contain; background: #111; }
.dexpt-main figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; text-align: left; }
.dexpt-title { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green-ink); font-weight: 700; }
/* the focused task's results, same colors as the chart below */
.dexpt-res { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--text-2); }
.dexpt-res:empty { display: none; }
.dexpt-res .r { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dexpt-res .bar { width: 36px; height: 6px; border-radius: 3px; background: #e6e2d8; overflow: hidden; }
.dexpt-res .bar i { display: block; height: 100%; min-width: 2px; }
.dexpt-res b { min-width: 2.3em; color: #222; font-weight: 500; font-variant-numeric: tabular-nums; }
.dexpt-res .top, .dexpt-res .top b { color: #222; font-weight: 700; }
.dexpt-row { display: flex; justify-content: center; align-items: flex-start; gap: 10px; margin-top: 16px; }
.dexpt-th { flex: 0 1 max(var(--thw, 0px), calc((100% - 50px) / 6));   /* six per row, or the widest label (--thw, set in JS); a shorter row stays centred */
             appearance: none; border: 0; padding: 0; background: none; cursor: pointer; font: inherit; text-align: center; color: var(--text-2); }
.dexpt-th video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #ddd;
                  outline: 2px solid transparent; outline-offset: 2px;
                  opacity: .82; transition: opacity .2s, transform .2s, box-shadow .2s, outline-color .2s; }
.dexpt-th:hover video, .dexpt-th:focus-visible video { opacity: 1; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .16); }
.dexpt-th .nm { display: inline-block; white-space: nowrap; margin-top: 7px; padding: 1px 8px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.dexpt-th .sc { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 1px; font-size: 12px; font-weight: 500; color: #222; font-variant-numeric: tabular-nums; }
.dexpt-th .sc i { width: 8px; height: 8px; border-radius: 2px; }
.dexpt-th:hover .nm { color: #222; }
.dexpt-th.on video { opacity: 1; outline-color: var(--green); }
.dexpt-th.on .nm { background: var(--green-tint); color: var(--green-ink); font-weight: 700; }
.dexpt-th:focus-visible { outline: none; }
.dexpt-th:focus-visible video, .dexpt-th:focus-visible .pend { outline-color: var(--green); }
.dexpt-row.measure .nm { font-weight: 700; }   /* JS measures every label as the bold active one */
/* a long task name (Flashlight battery replacement) wraps inside its thumbnail instead of widening it (11-07) */
.dexpt-th .nm { white-space: normal; text-wrap: balance; max-width: 100%; box-sizing: border-box; }
/* a picker task whose video is pending: striped like the .slot placeholders */
.dexpt-th .pend, .dexpt-main.is-pend .frame::after, .frame.is-pend-h::after {
  display: grid; place-items: center; box-sizing: border-box; border: 1.5px dashed #c9c2b2;
  background: repeating-linear-gradient(135deg, #f3f0e8 0 10px, #eeeae0 10px 20px);
  font: 700 10px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--green-ink);
}
.dexpt-th .pend { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.dexpt-th.on .pend { outline-color: var(--green); }
.dexpt-main.is-pend .frame::after, .frame.is-pend-h::after { content: "Video pending"; position: absolute; inset: 0; border-radius: inherit; font-size: 11px; letter-spacing: .14em;
  background: repeating-linear-gradient(135deg, #f3f0e8 0 14px, #eeeae0 14px 28px); }
.frame.is-pend-h { position: relative; }
@media (max-width: 700px) {
  .dexpt-row { justify-content: flex-start; overflow-x: auto; padding: 4px 4px 4px; margin-top: 10px; }
  .dexpt-th { flex: 0 0 max(var(--thw, 0px), 44%); }
  .dexpt-res { margin-left: 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
  .dexpt-res .r { display: grid; grid-template-columns: minmax(0, 1fr) 30px 2.3em; gap: 6px; }
  .dexpt-res .bar { width: 30px; }
  .dexpt-res .nm { white-space: normal; line-height: 1.25; }   /* long names (GRPO-induced self-imitation) wrap instead of running into the bar */
}
.chart .hl { fill: var(--green-tint); transition: x .3s, width .3s; }
.chart .cg { transition: opacity .25s; }
.chart .hit.pick { cursor: pointer; }
.chart .cat.on { fill: var(--green-ink); font-weight: 700; }

/* X-Adapt at a glance: source demonstration above, robot below */
.xa { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xa-col { display: flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.xa-col img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; transition: box-shadow .2s; }
.xa-col:hover img { box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.xa-h { font-weight: 700; font-size: 15px; color: #222; white-space: nowrap; }
.xa-h i { font-style: normal; color: var(--green-ink); }
.xa-ar { color: var(--text-3); font-size: 18px; line-height: 1; }
.sec > .xa-cap { text-align: center !important; color: var(--text-2); font-size: 14px; margin-top: 1rem; }
@media (max-width: 600px) { .xa { gap: 8px; } .xa-h { font-size: 11px; } }

/* left navigation (Yuke): fixed beside the column, shown after the hero, current part highlighted */
.toc { position: fixed; top: 96px; left: 16px; width: 184px; max-height: calc(100vh - 120px); overflow-y: auto; z-index: 20;
       font-size: 13.5px; line-height: 1.35; opacity: 0; visibility: hidden; transform: translateX(-6px);
       transition: opacity .25s, transform .25s, visibility .25s; }
.toc.show { opacity: 1; visibility: visible; transform: none; }
.toc-h { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc ol ol { margin: 0 0 4px; }
.toc a { display: block; padding: 5px 8px 5px 12px; border-left: 2px solid var(--rule); color: var(--text-2); text-decoration: none; }
.toc ol ol a { padding-left: 24px; font-size: 12.5px; }
.toc a:hover { color: #222; border-left-color: var(--text-3); }
.toc a.parent-on { color: #222; }
.toc a.on { color: var(--green-ink); border-left-color: var(--green); font-weight: 600; }
@media (max-width: 1359px) { .toc { display: none; } }
.static .toc { display: none; }
.pair-label { font: 700 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px !important; color: var(--text-2); display: flex; gap: 8px; align-items: center; text-align: left !important; }
.pair-label i { width: 8px; height: 8px; border-radius: 2px; background: var(--gray-2); display: inline-block; }
.pair-label.g { color: var(--green-ink); }
.pair-label.g i { background: var(--green); }
.paper-fig { padding: 0; }
.paper-fig img { width: 100%; height: auto; mix-blend-mode: multiply; }   /* the PNG has a white backdrop; multiply shows the page colour through it (Yuke) */
@media (max-width: 760px) {   /* wide paper diagrams scroll sideways on phones instead of shrinking past legibility, like .diagram */
  .paper-fig.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .paper-fig.scroll img { min-width: 760px; }
}

/* ---------- placeholder slots for pending videos ---------- */
.slot {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  border: 1.5px dashed #c9c2b2;
  background: repeating-linear-gradient(135deg, #f3f0e8 0 14px, #eeeae0 14px 28px);
  display: grid; place-items: center; text-align: center; padding: 24px;
}
.slot .in { display: grid; gap: 8px; justify-items: center; max-width: 520px; }
.slot .k { font: 700 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); }
.slot .t { font-weight: 500; font-size: clamp(16px, 1.8vw, 21px); line-height: 1.3; color: var(--head); }
.slot .p { color: var(--text-2); font-size: 13px; }
.slot a { font-size: 13px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: clamp(16px, 2.2vw, 24px); display: grid; gap: 6px; align-content: start; }
.stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 899px) { .stat:nth-child(odd) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }   /* two per row: no rule at a row start */
.sec h2, .block h3 { text-wrap: balance; }
.stat b { font-weight: 300; font-size: clamp(30px, 3.8vw, 46px); line-height: 1; letter-spacing: -.02em; color: #222; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .45em; color: var(--text-2); font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.stat span { color: var(--text-2); font-size: 14px; line-height: 1.4; }
.stat.g b { color: var(--green-ink); }

/* ---------- charts ---------- */
.chart { padding: clamp(6px, 1.2vw, 12px) 0 0; position: relative; }
.chart h4 { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.35; color: #222; text-align: center; }
.chart .note { margin: 4px 0 0 !important; color: var(--text-2); font-size: 13px; line-height: 1.4; text-align: center !important; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 14px 0 6px; font-size: 13px; color: var(--text); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.legend i.dot { border-radius: 50%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart svg text { font-family: var(--font); }
.chart .axis { fill: var(--text-2); font-size: 12px; }
.chart .cat { fill: #444; font-size: 13px; }
.chart .cat.sm { font-size: 11px; }
.chart .cat.xs { font-size: 9.5px; }   /* 6 one-word-per-line names at the 320 px minimum chart width keep >= 3 px apart */
.chart .val { fill: #222; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.chart .val.big { font-size: 15px; font-weight: 700; }
.chart .grid { stroke: #e6e2d8; stroke-width: 1; }
.chart .base { stroke: #bdbdbd; stroke-width: 1; }
.chart .hit { fill: transparent; cursor: default; }
.tip {
  position: fixed; z-index: 130; pointer-events: none; background: rgba(255,255,255,.96); border: 1px solid #ddd; color: #333;
  font-size: 13px; line-height: 1.35; padding: 8px 10px; border-radius: 6px; opacity: 0; transition: opacity .12s; max-width: 260px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.tip.on { opacity: 1; }
.tip b { font-weight: 700; }
.tip .s { display: flex; align-items: center; gap: 6px; color: #555; }
.tip .s i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ---------- diagrams ---------- */
.diagram { padding: clamp(4px, 1vw, 12px) 0; overflow: hidden; }
.diagram svg { width: 100%; height: auto; }
@media (max-width: 760px) {
  .diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .diagram svg { min-width: 760px; }
}
.diagram text { font-family: var(--font); }
.d-label { fill: #222; font-size: 18px; font-weight: 700; }
.d-sub { fill: var(--text-2); font-size: 14px; }
.d-mono { fill: var(--text-2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.d-mono.g { fill: var(--green-ink); }
.d-box { fill: #fff; stroke: #6b7280; stroke-width: 1.5; }
.d-box.g { stroke: var(--green); stroke-width: 2.5; }
.d-arrow { stroke: #9ca3af; stroke-width: 1.5; fill: none; }
.d-arrow.g { stroke: var(--green); stroke-width: 2.5; }
.d-arrow.dash { stroke-dasharray: 4 5; stroke: #a3a3a3; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes denoise { 0% { fill: #e5e7eb; } 45% { fill: #fcd34d; } 100% { fill: var(--tok-act); } }
@keyframes flow { to { stroke-dashoffset: -18; } }
.anim-on .tok-act { animation: denoise 2.4s ease-in-out infinite alternate; }
.anim-on .tok-act:nth-child(2) { animation-delay: .15s; } .anim-on .tok-act:nth-child(3) { animation-delay: .3s; } .anim-on .tok-act:nth-child(4) { animation-delay: .45s; }
.anim-on .flow { stroke-dasharray: 6 12; animation: flow .9s linear infinite; }
.anim-on .pulse { animation: pulse 2.4s ease-in-out infinite; }

/* ---------- benchmarks ---------- */

/* ---------- paper info (EgoScale) ---------- */
.paper-info { margin: 60px 0 0; padding: 24px; background: var(--panel); border-radius: 12px; scroll-margin-top: 84px; }
.pi-h { font-weight: 600; margin: 0 0 8px; color: #333; }
.paper-info p { margin: 0 0 20px; color: #333; }
pre.bib { margin: 0; padding: 16px; background: #fff; border-radius: 8px; overflow: auto; font: 14px/1.6 var(--mono); color: #333; border: 1px solid var(--line); }

/* ---------- NVIDIA global footer (styles/Footer.module.css) ---------- */
.global-footer { margin-top: 2rem; background: #111; color: #fff; padding: 2rem 1.5rem; display: flex; flex-direction: column; align-items: center; }
.global-footer .nv-logo { width: 120px; height: auto; fill: #fff; margin-bottom: 1.5rem; }
.global-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.global-footer a { color: #d0d0d0; text-decoration: none; font-size: .9rem; }
.global-footer a:hover { color: #fff; }
.global-footer .copyright { color: #d0d0d0; font-size: .85rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.static .reveal { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .anim-on .tok-act, .anim-on .flow, .anim-on .pulse { animation: none; }
}
@media (max-width: 768px) {
  .site-header { height: auto; flex-direction: column; gap: .6rem; padding: .9rem 1rem; }
  .site-header .logo { font-size: 1.2rem; }
  .site-nav { width: 100%; justify-content: space-around; padding: 0; gap: 1rem; }
  .site-nav a { font-size: 1rem; }
  .dexpt { scroll-margin-top: 108px; }                  /* the header is ~95px tall here */
  .global-footer ul { flex-direction: column; align-items: center; gap: 1rem; }
}
@media (max-width: 720px) {
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero video { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; }
  .hero::after { display: none; }
  .hero .copy { position: relative; left: auto; right: auto; bottom: auto; padding: 24px 16px 28px; }
  .replay { top: calc(56.25vw - 34px); bottom: auto; right: 16px; }
  .hero h1 { font-size: 56px; }
  .sec { padding-left: .25rem; padding-right: .25rem; }
  .sec p, .caps li { text-align: left; }
}
