/* Cinematic design for the CogACT2 page, layered on paper.css.
   Every rule is scoped to html.cinematic: remove that class from <html> in paper.html to return to the
   plain paper.css look. Uses only the site's own fonts and media; no third-party resources. */

:root{--d-bg:#0a0f15;--d-panel:#121a24;--d-line:#253242;--d-ink:#eef3f8;--d-body:#bac6d3;--d-muted:#8d9cae;--d-red:#ef6f88}

/* ---------- Media and cards ---------- */
.cinematic .task-picture,.cinematic .long-horizon-screen{border-radius:12px}
.cinematic .generalization-grid video{border-radius:10px}
.cinematic .task-picture video{transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.cinematic .task-card:hover .task-picture video{transform:scale(1.04)}
.cinematic .benchmark-selector>button{border-radius:12px;transition:box-shadow .2s,border-color .2s}
.cinematic .benchmark-selector>button:hover{box-shadow:0 12px 26px -16px rgb(14 26 42 / .45)}
.cinematic .benchmark-feature{border-radius:16px}
/* Sections fade up as they enter the viewport (classes added by cinematic.js) */
.cinematic .reveal{opacity:0;transform:translateY(22px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
.cinematic .reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
 .cinematic .reveal{opacity:1;transform:none;transition:none}
 .cinematic .task-picture video{transition:none}
}

.cinematic :is(.paper-header, .floating-toc, #real-world, .paper-footer) {
 --selection-background: #245c93;
 --selection-text: #fff;
}

/* ---------- Page frame: no left sidebar, content centered ---------- */
.cinematic body{padding-left:0!important}
.cinematic .page-width{width:min(1280px,calc(100% - 96px));margin-inline:auto}
.cinematic .reading-width{width:min(780px,calc(100% - 96px));margin-inline:auto}
/* Contents become a frosted bar fixed to the top */
@media (min-width:1000px){
 .cinematic .floating-toc{display:flex!important;align-items:center;position:fixed;inset:0 0 auto 0;top:0;left:0;transform:none;width:auto;max-height:none;height:58px;padding:0 32px;border:0;border-radius:0;
  background:rgb(10 15 21 / .62)!important;backdrop-filter:blur(14px)!important;box-shadow:0 1px 0 #ffffff14!important;z-index:40}
 .cinematic .toc-heading{display:none}
 .cinematic .header-brand{display:inline-flex;flex-shrink:0;align-items:center;gap:8px;color:#fff;font-size:15px;font-weight:600;letter-spacing:.02em}
 .cinematic .header-brand .microsoft-mark{transform:translateY(1px)}
 .cinematic .header-wordmark{transform:translateY(1px)}
 .cinematic #navigation-links{flex-direction:row!important;gap:2px!important;margin-left:auto}
 .cinematic #navigation-links a{display:block!important;min-height:0;padding:8px 13px!important;border-radius:999px;color:#c9d4e0!important;background:transparent!important}
 .cinematic #navigation-links a:hover{color:#fff!important;background:#ffffff14!important}
 .cinematic #navigation-links a.active{color:#fff!important;background:#ffffff1f!important}
 .cinematic #navigation-links a::after,.cinematic .toc-index{display:none!important}
 .cinematic .mobile-nav-toggle{display:none!important}
}

/* ---------- Hero: full-screen video behind the title ---------- */
.cinematic .introduction-band{background:#fff;padding-bottom:0}
.cinematic .paper-header{position:relative;isolation:isolate;width:100%;max-width:none;min-height:100vh;min-height:100svh;display:grid;grid-template-rows:1fr auto auto;align-items:stretch;padding:0;color:#fff;background:var(--d-bg);overflow:hidden;
 --ink:var(--d-ink);--body:var(--d-body);--muted:var(--d-muted);--line:#ffffff2e;--red:var(--d-red);
 font-family:var(--font)}
.cinematic .paper-header :is(.hero-name,.hero-highlights li) {
 --paint-light: #c9e985;
 --paint-dark: #8ac624;
 position: relative;
 isolation: isolate;
 color: #171521;
 text-shadow: none;
}
.cinematic .paper-header :is(.hero-name,.hero-highlights li)::before {
 content: "";
 position: absolute;
 inset: 6% 0;
 z-index: -1;
 border-radius: .22em;
 pointer-events: none;
 background:
  repeating-linear-gradient(174deg, transparent 0 4px, #fff3 5px, transparent 7px 11px),
  linear-gradient(155deg, var(--paint-light), var(--paint-dark));
 clip-path: polygon(
  0% 18%, 1% 8%, 3% 4%, 6% 3%, 10% 5%, 14% 2%, 18% 4%, 23% 1%,
  28% 3%, 33% 2%, 37% 4%, 41% 2%, 46% 3%, 51% 0%, 57% 3%, 62% 2%,
  67% 4%, 73% 1%, 79% 3%, 85% 2%, 90% 5%, 94% 3%, 98% 8%, 100% 16%,
  99% 30%, 100% 44%, 99% 58%, 100% 73%, 99% 87%, 97% 94%, 94% 97%,
  89% 95%, 84% 98%, 78% 96%, 72% 99%, 66% 97%, 60% 98%, 55% 96%,
  49% 100%, 43% 97%, 37% 99%, 30% 96%, 24% 98%, 19% 96%, 13% 99%,
  8% 96%, 5% 97%, 2% 92%, 0% 82%, 1% 68%, 0% 52%, 1% 35%);
}
.cinematic .paper-header h1 > .hero-name {
 --paint-light: #ffa58b;
 --paint-dark: #f76a45;
 padding-inline: .19em;
 color: #201118;
}
.cinematic .paper-header .hero-highlights li:nth-child(2) {
 --paint-light: #96ddff;
 --paint-dark: #38b7ed;
}
.cinematic .paper-header .hero-highlights li:nth-child(3) {
 --paint-light: #ffe27e;
 --paint-dark: #ffc52c;
}
.cinematic .hero-content{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;padding:clamp(80px,10dvh,110px) 24px clamp(24px,6dvh,64px)}
/* Rows one and two hold the title and highlights. The results occupy row three. */
.cinematic .paper-header::before,
.cinematic .hero-backdrop,
.cinematic .paper-header::after{position:absolute;grid-row:1 / 3;inset:0;pointer-events:none}
.cinematic .paper-header::before{content:'';z-index:-3;background:url('assets/images/hero-task-montage.webp') center bottom/cover no-repeat}
.cinematic .hero-backdrop{z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center bottom;opacity:0;transition:opacity .45s ease-out}
.cinematic .hero-backdrop.is-playing{opacity:1}
@media(prefers-reduced-motion:reduce){.cinematic .hero-backdrop.is-playing{opacity:0;transition:none}}
.cinematic .paper-header::after{content:'';z-index:-1;background:linear-gradient(180deg,rgb(8 12 18 / .55) 0%,rgb(8 12 18 / .35) 38%,rgb(8 12 18 / .8) 100%)}
.cinematic .paper-header h1{width:100%;max-width:1200px;font-family:var(--font);font-size:clamp(28px,min(3.5vw,5.5dvh),48px);font-weight:633;line-height:1.19;letter-spacing:-.025em;text-wrap:balance;text-shadow:0 2px 30px rgb(0 0 0 / .35)}
@media (min-width:1000px){
 .cinematic .paper-header h1{max-width:none;font-size:clamp(22px,min(2.35vw,5.5dvh),48px);white-space:nowrap}
 .cinematic .hero-title-break{display:revert}
}
.cinematic .paper-header h1 > .hero-name{font-weight:inherit}
.cinematic .hero-content #paper-title{margin-bottom:calc(28px + clamp(12px,2.4dvh,22px))}
.cinematic .hero-content .paper-links{margin-top:clamp(16px,2.6dvh,24px)}

.cinematic .paper-header .resource-button{background:#ffffff14;border-color:#ffffff33;color:#fff;backdrop-filter:blur(6px)}
.cinematic .paper-header .resource-icon{width:1em;height:1em;flex:none;color:#fff}
.cinematic .paper-header .resource-button:hover{border-color:#fff;color:#fff}

.cinematic .paper-header .resource-button.unavailable{background:#ffffff0d;color:#aab6c4}
.cinematic .paper-header .resource-button.unavailable small{color:#8f9cab}

/* Keep the result strip in normal flow so its full height is reserved at every viewport size. */
.cinematic .benchmark-summary{width:100%;max-width:none;margin:0;padding:4px max(24px,calc((100% - 1280px)/2));border:0;border-top:1px solid #ffffff1f;border-radius:0;background:var(--d-bg);box-shadow:none;color:var(--d-ink)}
.cinematic .benchmark-result{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:4px;padding:clamp(10px,2dvh,18px) 20px;text-align:left;border:0!important}
.cinematic .benchmark-result dd{margin:0;font-size:clamp(24px,2.5vw,38px);font-weight:500;letter-spacing:-.04em;line-height:1.05;color:#fff}
.cinematic .benchmark-result dd>span{font-size:.45em;color:#c9d4e0;margin-left:2px}
.cinematic .benchmark-result dt{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#aab6c4}
@media (min-width:1100px){
 .cinematic .benchmark-summary{grid-template-columns:repeat(7,minmax(0,1fr))}
 .cinematic .benchmark-result{padding-inline:14px}
 .cinematic .benchmark-result{border-left:1px solid #ffffff14!important}
 .cinematic .benchmark-result:first-child{border-left:0!important}
}
@media (max-width:1099px){
 .cinematic .benchmark-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
 .cinematic .benchmark-result{padding:12px 14px}
}
@media (max-width:600px){
 .cinematic .hero-content{padding:72px 20px 28px}
 .cinematic .paper-header h1{font-size:clamp(25px,6.2vw,32px);line-height:1.2}
 .cinematic .hero-content .paper-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,360px);gap:8px}
 .cinematic .paper-header .resource-button{min-height:44px;padding:8px 5px;font-size:13px;gap:5px}
 .cinematic .paper-header .resource-button small{font-size:11px}
 .cinematic .benchmark-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:4px 12px max(4px,env(safe-area-inset-bottom))}
 .cinematic .benchmark-result{padding:10px 12px}
 .cinematic .benchmark-result dt{font-size:10px}
}
@media (max-width:600px) and (max-height:700px){
 .cinematic .hero-content{padding:60px 16px 10px}
 .cinematic .paper-header h1{font-size:clamp(22px,6vw,28px);line-height:1.2}
 .cinematic .hero-content .paper-links{margin-top:12px;gap:6px}
 .cinematic .paper-header .resource-button{min-height:44px;padding:6px 5px;font-size:12px;gap:4px}
 .cinematic .paper-header .resource-button small{font-size:10px}
 .cinematic .benchmark-summary{padding:3px 8px max(3px,env(safe-area-inset-bottom))}
 .cinematic .benchmark-result{padding:7px 10px}
 .cinematic .benchmark-result dd{font-size:22px}
}
@media (max-height:640px) and (min-width:601px){
 .cinematic .hero-content{padding:70px 24px 18px}
 .cinematic .paper-header h1{font-size:clamp(22px,min(2.35vw,6.3dvh),36px)}
 .cinematic .hero-content .paper-links{margin-top:14px}
 .cinematic .paper-header .resource-button{font-size:13px;min-height:34px;padding:6px 12px}
 .cinematic .paper-header .resource-button small{font-size:11px}
 .cinematic .benchmark-summary{padding:4px 12px}
 .cinematic .benchmark-result{padding:10px}
 .cinematic .benchmark-result dd{font-size:26px}
 .cinematic .benchmark-result dt{font-size:10px;letter-spacing:.02em}
 .cinematic .benchmark-result .benchmark-summary-note{font-size:10px;margin-top:4px}
}

/* ---------- Sections below the hero: one visual system ---------- */
/* The white data section follows the dark real-robot section. */
.cinematic .benchmark-band{background:#f4f6f9}
.cinematic .diversity-band{background:#fff}
.cinematic :is(.section-band,.tinted-section){border-top:0}
@media (min-width:900px){.cinematic .paper-section{padding-block:120px}}

/* Section headings: a large tight title and a readable lead line. */
.cinematic .section-heading{flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:52px;max-width:880px}
.cinematic .section-heading h2{font-size:clamp(34px,4.2vw,60px);line-height:1.04;letter-spacing:-.048em}
.cinematic .section-heading p{font-size:clamp(16px,1.3vw,19px);line-height:1.6;max-width:680px;margin-top:2px;color:var(--body)}
.cinematic .subsection-heading h3{font-size:clamp(22px,1.9vw,28px);letter-spacing:-.035em}

/* Abstract: centered heading above left-aligned reading text. */
.cinematic .abstract-section{padding-block:112px 104px;width:min(860px,calc(100% - 96px))}
.cinematic .abstract-section h2{text-align:center;font-family:var(--mono);font-size:13px;font-weight:400;letter-spacing:.14em;text-transform:uppercase;color:var(--red);margin-bottom:22px}
.cinematic .abstract-section p{font-size:clamp(17px,1.45vw,21px);line-height:1.75;color:#24364a;text-align:left;hyphens:manual}
.cinematic .abstract-section p+p{margin-top:1em}

/* Benchmarks: chart aligned with the selector cards; bigger numbers */
.cinematic .benchmark-selector{gap:12px;margin-bottom:18px}
@media(min-width:1100px){.cinematic .benchmark-selector{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(701px <= width < 1100px){.cinematic .benchmark-selector{grid-template-columns:repeat(4,minmax(0,1fr))}}
.cinematic .benchmark-selector>button{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;padding:20px 20px 18px;background:#fff;border-color:transparent;box-shadow:0 1px 2px rgb(14 26 42 / .06)}
.cinematic .benchmark-selector>button>strong{font-size:clamp(26px,2.4vw,36px);margin-top:10px}
.cinematic .benchmark-selector>button.active{border-color:var(--red);box-shadow:0 14px 30px -18px rgb(200 62 88 / .55)}
.cinematic .benchmark-band .benchmark-feature{max-width:none;border:0;box-shadow:0 1px 2px rgb(14 26 42 / .06),0 24px 48px -32px rgb(14 26 42 / .35)}
/* Chart SVGs set DejaVu Sans inline on every label, which most systems lack (it falls back to a serif) */
.cinematic .chart-surface svg text{font-family:var(--font)!important}
.cinematic .chart-surface svg[data-reference-value] text{font-family:var(--mono)!important}
.cinematic :is(.benchmark-selector>button>strong,.benchmark-protocol-row button>strong,.benchmark-table tbody,.chart-tooltip>strong,.chart-tooltip dd){font-family:var(--mono)}

/* A concise headline score, with all RoboTwin protocols available in the detail view. */
.cinematic .benchmark-summary-note{display:block;margin-top:6px;font:400 11px/1.35 var(--mono);letter-spacing:0;text-transform:none;color:var(--muted)}
.cinematic .benchmark-result .benchmark-summary-note{color:#aab6c4}
.cinematic .benchmark-protocols{display:grid;gap:12px;padding:0 32px 22px}
.cinematic .benchmark-protocol-group{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:center;gap:18px}
.cinematic .benchmark-protocol-group h4{margin:0;font-size:14px;font-weight:500;color:var(--body)}
.cinematic .benchmark-protocol-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cinematic .benchmark-metric-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.cinematic .benchmark-protocol-row button{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--body);text-align:left}
.cinematic .benchmark-protocol-row button>span{font:11px var(--mono)}
.cinematic .benchmark-protocol-row button>strong{font-size:22px;font-weight:500;letter-spacing:-.03em;color:var(--ink)}
.cinematic .benchmark-protocol-row button small{font-size:11px;margin-left:2px}
.cinematic .benchmark-protocol-row button:hover{border-color:var(--red)}
.cinematic .benchmark-protocol-row button.active{background:var(--red-soft);border-color:var(--red);color:var(--red)}
.cinematic .benchmark-protocol-row button.active strong{color:var(--red)}
@media(max-width:1100px){
 .cinematic .benchmark-protocol-row button{align-items:flex-start;flex-direction:column;gap:5px}
}
@media(max-width:700px){
 .cinematic #benchmarks.page-width{width:calc(100% - 36px)}
 .cinematic .benchmark-selector{gap:8px}
 .cinematic .benchmark-selector>button{padding:14px 10px}
 .cinematic .benchmark-protocols{gap:18px;padding:0 18px 22px}
 .cinematic .benchmark-protocol-group{display:block}
 .cinematic .benchmark-protocol-group h4{margin-bottom:10px}
 .cinematic .benchmark-protocol-row button{padding:10px}
 .cinematic .benchmark-protocol-row button>strong{font-size:20px}
 .cinematic .benchmark-protocol-row button small{font-size:9px;margin-left:1px}
}

/* Real robots: dark band; real-world.css places captions outside the videos. */
.cinematic #real-world{background:var(--d-bg);color:var(--d-ink);border-color:var(--d-line);
 --ink:var(--d-ink);--body:var(--d-body);--muted:var(--d-muted);--line:var(--d-line);--soft:var(--d-panel);--red:var(--d-red)}
.cinematic .task-card{position:relative}
.cinematic .task-picture{border:0;box-shadow:0 20px 44px -22px #000}
.cinematic .task-caption{position:absolute;inset:auto 0 0 0;display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding:44px 18px 16px;background:linear-gradient(180deg,transparent,rgb(4 8 12 / .82));border-radius:0 0 12px 12px;pointer-events:none}
.cinematic .task-caption h3{color:#fff;font-size:clamp(15px,1.3vw,19px)}
.cinematic .task-caption>span{color:#c9d4e0;padding-top:0}
.cinematic .task-play{top:10px;bottom:auto;opacity:0}

/* Tea preparation: the main video fills its card (paper.css caps it at 850px and centers it) */
@media (min-width:1100px){

 .cinematic .long-horizon-screen{aspect-ratio:16/9}
}

/* ---------- Citation and footer: dark, closing the page the way the hero opens it ---------- */
.cinematic .paper-footer{background:var(--d-bg);color:var(--d-ink);border-top:0;padding-top:96px;
 --ink:var(--d-ink);--body:var(--d-body);--muted:var(--d-muted);--line:var(--d-line);--red:var(--d-red)}
.cinematic .citation-heading{align-items:flex-end;margin-bottom:28px}
.cinematic .bibtex-box{background:var(--d-panel);border-color:var(--d-line);border-radius:16px}
.cinematic .bibtex-toolbar{border-color:var(--d-line)}
.cinematic .bibtex-box code,.cinematic .bibtex-box pre{color:var(--d-ink)}
.cinematic .copy-bibtex{background:transparent;border-color:var(--d-line);color:var(--d-ink)}
.cinematic .copy-bibtex:hover{border-color:var(--d-red);color:var(--d-red)}

.cinematic .footer-bottom{border-color:var(--d-line);color:var(--d-muted)}
.cinematic .footer-bottom a{color:var(--d-body)}

/* Phone and tablet layouts keep the same typography and card treatment. */
@media(max-width:1100px){
 .cinematic .page-width,.cinematic .reading-width{width:calc(100% - 64px)}
 .cinematic .abstract-section{width:min(780px,calc(100% - 64px));padding-block:72px}
 .cinematic .paper-header{width:100%}
 .cinematic .section-heading{margin-bottom:36px}
 .cinematic .paper-footer{padding-top:64px}
 .cinematic .benchmark-feature-heading{gap:16px;flex-wrap:wrap}
 .cinematic .benchmark-view-switch button{min-height:44px}
 .cinematic .chart-surface{overscroll-behavior-x:contain}
 .cinematic .modal-heading>button{width:44px;height:44px;min-width:44px}
 .cinematic .inline-video-expand{min-height:44px;display:inline-flex;align-items:center;padding:8px 12px}
}
@media(max-width:999px){
 .cinematic .mobile-contents-toggle{width:44px;height:44px;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));background:var(--d-panel);color:var(--d-ink);border-color:var(--d-line)}
 .cinematic .floating-toc.open{left:auto;right:16px;top:68px;width:min(300px,calc(100% - 32px));max-height:calc(100dvh - 84px);padding:16px;border:1px solid var(--d-line);border-radius:14px;background:rgb(10 15 21 / .97)!important;box-shadow:0 18px 48px #0005}
 .cinematic .toc-heading{color:var(--d-muted);border-color:var(--d-line)}
 .cinematic .toc-index{display:none}
 .cinematic #navigation-links a{display:block;min-height:46px;color:var(--d-body);padding:12px;border-radius:8px}
 .cinematic #navigation-links a.active,.cinematic #navigation-links a:hover{color:#fff;background:#ffffff14}
}
@media(max-width:700px){
 .cinematic .page-width,.cinematic .reading-width,.cinematic .abstract-section{width:calc(100% - 36px)}
 .cinematic .paper-header{width:100%}
 .cinematic .paper-section,.cinematic .abstract-section{padding-block:56px}
 .cinematic .section-heading{margin-bottom:28px;max-width:100%}
 .cinematic .section-heading h2{font-size:clamp(28px,7.4vw,36px);line-height:1.1;overflow-wrap:break-word}
 .cinematic .section-heading p{font-size:16px;line-height:1.6;margin-top:10px}
 .cinematic .abstract-section p{font-size:16px;line-height:1.75}
 .cinematic .benchmark-feature-heading{padding:20px 16px 0;gap:12px}
 .cinematic .benchmark-feature-heading h3{font-size:23px}
 .cinematic .benchmark-view-switch button{padding-inline:12px}
 .cinematic .benchmark-table{margin:18px 12px 12px;max-height:65dvh}
 .cinematic .benchmark-table th,.cinematic .benchmark-table td{padding:10px 8px;font-size:13px}
 .cinematic .benchmark-table thead th{font-size:11px}

 .cinematic .copy-bibtex{min-height:44px}

 .cinematic .citation-heading{gap:12px;align-items:center}

 .cinematic #media-dialog{width:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:14px;border-radius:14px}
 .cinematic .modal-heading{gap:12px;margin-bottom:12px}
 .cinematic .modal-heading h2{font-size:20px}
 .cinematic #modal-video{max-height:calc(100dvh - 150px);object-fit:contain}
}
@media(max-height:500px){
 .cinematic #media-dialog{max-height:calc(100dvh - 16px);padding:12px}
 .cinematic .modal-heading{margin-bottom:8px}
 .cinematic .modal-heading h2{font-size:18px;margin-top:0}
 .cinematic .modal-heading .overline{display:none}
 .cinematic #modal-video{max-height:calc(100dvh - 100px);object-fit:contain}
}
@media(pointer:coarse){
 .cinematic .modal-heading>button{width:44px;height:44px;min-width:44px}
 .cinematic .inline-video-expand{min-height:44px;display:inline-flex;align-items:center;padding:8px 12px}
 .cinematic .benchmark-view-switch button,.cinematic .copy-bibtex{min-height:44px}
 .cinematic #navigation-links a{min-height:44px!important}
}
@media print{.cinematic .hero-backdrop{display:none}}
