/* RoCoCo project page.
   Layout: a narrow reading column for text, a wide dark "stage" for every interactive result; colour belongs to the two people
   (green, blue) and to the interaction caption (orange), exactly as in the paper's figures, and to nothing else. */
@font-face { font-family: "Host Grotesk"; src: url("../fonts/HostGrotesk.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("../fonts/HostGrotesk-Italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("../fonts/MartianMono.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }
@font-face { font-family: "Righteous"; src: url("../fonts/Righteous.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --sunk: #F1F3F6;
  --ink: #131729; --muted: #566076; --line: #D5DBE4; --line-strong: #9AA4B5;
  --p1: #1C8A55; --p1-soft: #DDF3E6; --p1-body: #80D19E;
  --p2: #2B66C9; --p2-soft: #DEE9FB; --p2-body: #7AADEB;
  --cap: #B56A00; --cap-soft: #FCEBCB; --cap-fill: #F2A72B;
  --bad: #D2372F;
  --stage: #FFFFFF; --stage-2: #EEF1F5; --stage-line: #D5DBE4; --stage-ink: #131729; --stage-muted: #566076;
  --display: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --mark: "Righteous", "Host Grotesk", sans-serif;
  --col: 46rem; --wide: 70rem;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, canvas, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cap-fill); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wide); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.col { max-width: var(--col); }
.mono { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; font-stretch: 87.5%; }
.mark { font-family: var(--mark); letter-spacing: 0.01em; }
.mark b { font-weight: 400; }
.mark .ro { color: #F2A72B; } .mark .c1 { color: #4D8FE8; } .mark .c2 { color: #45B67B; }

/* top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 1.5rem; height: 3.25rem; }
.bar .mark { font-size: 1.35rem; text-decoration: none; }
.bar nav { display: flex; gap: 1.25rem; margin-left: auto; }
.bar nav a { text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.bar nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .bar nav { gap: 0.85rem; } .bar nav a { font-size: 0.8rem; } .bar nav a.opt { display: none; } }

/* hero */
.hero { padding-block: 3.5rem 2.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: end; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }
.hero .mark { font-size: clamp(4.2rem, 13vw, 9.5rem); line-height: 0.86; display: block; margin-left: -0.04em; }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -0.012em; margin: 1.4rem 0 0; text-wrap: balance; font-variation-settings: "opsz" 40; }
h1 em { font-style: italic; font-weight: 500; }
.people { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; margin: 0; padding: 0; list-style: none; font-size: 1.06rem; }
.people a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.people a:hover { border-color: var(--ink); }
.affil { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.affil .logo { background: #fff; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); }
.affil img { height: 30px; width: auto; }
.links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; gap: 0.55rem; height: 2.6rem; padding: 0 1.05rem; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem; background: transparent; cursor: pointer; }
.btn.fill { background: var(--ink); color: var(--bg); }
.btn:hover { transform: translateY(-1px); }
.btn[aria-disabled="true"] { border-style: dashed; border-color: var(--line-strong); color: var(--muted); cursor: not-allowed; transform: none; }
.btn small { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; }
.btn svg { width: 1rem; height: 1rem; }
.plate { margin-top: 2.75rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(10px, 2vw, 22px); }
.plate img { width: 100%; height: auto; }
.cap-line { color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; max-width: 60rem; }

/* sections */
section { padding-block: 3.25rem; }
.sec-head { display: grid; gap: 0.5rem; margin-bottom: 1.6rem; }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.05; letter-spacing: -0.015em; margin: 0; text-wrap: balance; font-variation-settings: "opsz" 60; }
h2 em { font-style: italic; }
h3 { font-family: var(--display); font-weight: 500; font-size: 1.55rem; line-height: 1.15; margin: 0; font-variation-settings: "opsz" 30; text-wrap: balance; }
.lede { color: var(--muted); max-width: var(--col); margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.abstract p { margin: 0; font-size: 1.08rem; line-height: 1.68; }
.abstract p + p { margin-top: 1em; }
.abs-grid { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 1000px) { .abs-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.keys { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.keys li { border-top: 1px solid var(--line-strong); padding-top: 0.75rem; }
.keys b { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 500; font-style: italic; line-height: 1.2; }
.keys span { color: var(--muted); font-size: 0.93rem; }
.t1 { color: var(--p1); } .t2 { color: var(--p2); } .tc { color: var(--cap); }

/* film */
.film { background: #000; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

/* method diagram */
.method-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.steps { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); align-items: center; }
.step { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 0.38rem 0.85rem; cursor: pointer; font-size: 0.88rem; color: var(--muted); display: inline-flex; gap: 0.5rem; align-items: center; }
.step i { font-style: normal; font-family: var(--mono); font-size: 0.62rem; }
.step[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.steps .auto svg { width: 0.75rem; height: 0.75rem; }
.steps .auto { margin-left: auto; white-space: nowrap; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 0.85rem; display: inline-flex; gap: 0.4rem; align-items: center; }
.diagram { overflow-x: auto; padding: 0.5rem 1rem 0.25rem; }
.diagram svg { min-width: 880px; width: 100%; height: auto; display: block; }
.step-text { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 1.25rem; align-items: start; padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); min-height: 7.2rem; }
.step-text .n { font-family: var(--text); font-weight: 300; font-size: 2.6rem; line-height: 0.9; color: var(--line-strong); min-width: 1.6ch; }
.step-text h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.step-text p { margin: 0; color: var(--muted); max-width: 46rem; }
.swap-btn { align-self: center; }
@media (max-width: 700px) { .step-text { grid-template-columns: auto minmax(0, 1fr); } .swap-btn { grid-column: 1 / -1; justify-self: start; } }
/* svg parts */
.dg text { font-family: var(--text); fill: var(--ink); font-size: 15px; }
.dg .lab { font-size: 12.5px; fill: var(--muted); }
.dg .ttl { font-weight: 700; font-size: 14.5px; }
.dg .sm { font-size: 11.5px; font-weight: 600; }
.dg .big { font-weight: 700; font-size: 16px; }
.dg .q { font-style: italic; font-size: 14px; }
.dg .box { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.4; }
.dg .mod { fill: var(--sunk); stroke: var(--line-strong); stroke-width: 1.4; }
.dg .frame { fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-dasharray: 7 6; }
.dg .wire { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.dg .w1 { stroke: var(--p1); } .dg .w2 { stroke: var(--p2); } .dg .wc { stroke: var(--cap-fill); }
.dg .ca { fill: var(--cap-fill); stroke: #B97A12; stroke-width: 1.2; }
.dg .ca1 { fill: var(--p1-body); stroke: var(--p1); stroke-width: 1.2; }
.dg .ca2 { fill: var(--p2-body); stroke: var(--p2); stroke-width: 1.2; }
.dg .on-fill { fill: #1B1505; font-weight: 700; }
.dg .b1 { fill: none; stroke: var(--p1); stroke-width: 1.6; } .dg .b2 { fill: none; stroke: var(--p2); stroke-width: 1.6; }
.dg .tokv { fill: var(--line-strong); } .dg .tok1 { fill: var(--p1-body); } .dg .tok2 { fill: var(--p2-body); }
.dg .jsa { fill: var(--p1-soft); stroke: var(--line-strong); stroke-width: 1.4; }
.dg .chipc { fill: var(--cap-fill); } .dg .chip1 { fill: var(--p1-soft); stroke: var(--p1); } .dg .chip2 { fill: var(--p2-soft); stroke: var(--p2); }
.dg .post { fill: var(--cap-soft); stroke: none; }
.dg .ah { fill: var(--ink); } .dg .ah1 { fill: var(--p1); } .dg .ah2 { fill: var(--p2); } .dg .ahc { fill: var(--cap-fill); }
.dg .frz { fill: var(--p2); font-size: 15px; }
.dg [data-s] { transition: opacity 0.45s ease; }
.dg.stepping [data-s].later { opacity: 0.13; }
.dg.stepping [data-s].now .wire { stroke-dasharray: 7 5; animation: flow 0.7s linear infinite; }
.dg .swapt { transition: transform 0.6s cubic-bezier(.6,0,.2,1); }
.dg.swapped .swap-a { transform: translateY(52px); } .dg.swapped .swap-b { transform: translateY(-52px); }
@keyframes flow { to { stroke-dashoffset: -24; } }

/* stage (results) */
.stage { background: var(--stage); color: var(--stage-ink); border-radius: 12px; border: 1px solid var(--stage-line); overflow: hidden; }
.stage-top { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center; padding: 0.85rem 1rem; border-bottom: 1px solid var(--stage-line); }
.tabs, .seg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: var(--stage-2); padding: 3px; border-radius: 9px; }
.tabs button, .seg button { border: 0; background: transparent; color: var(--stage-muted); padding: 0.4rem 0.8rem; border-radius: 7px; cursor: pointer; font-size: 0.88rem; white-space: nowrap; }
.tabs button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--stage-ink); color: var(--stage); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chips button { border: 1px solid var(--stage-line); background: transparent; color: var(--stage-muted); border-radius: 999px; padding: 0.3rem 0.75rem; cursor: pointer; font-size: 0.85rem; }
.chips button[aria-selected="true"] { border-color: var(--stage-ink); color: var(--stage-ink); }
.stage .right { margin-left: auto; }
.prompt { padding: 1rem 1rem 0.2rem; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0.9rem 2rem; }
@media (max-width: 860px) { .prompt { grid-template-columns: 1fr; } }
.prompt .k { color: var(--stage-muted); display: block; margin-bottom: 0.35rem; }
.prompt .main { font-family: var(--display); font-size: 1.22rem; line-height: 1.35; font-variation-settings: "opsz" 20; margin: 0; }
.stage .t1 { color: var(--p1); } .stage .t2 { color: var(--p2); }
.roles-list { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; font-size: 0.93rem; line-height: 1.4; }
.roles-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: start; }
.dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; margin-top: 0.3rem; }
.dot.p1 { background: #80D19E; } .dot.p2 { background: #7AADEB; }
.panels { display: grid; gap: 10px; padding: 1rem; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
@media (max-width: 760px) { .panels { grid-template-columns: 1fr; } }
.panels.many { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (min-width: 900px) { .panels.many { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; } .panels.many .panel header > span { display: none; } }
.panel { display: grid; gap: 0.45rem; align-content: start; min-width: 0; }
.panel header { display: flex; align-items: center; gap: 0.6rem; min-height: 1.8rem; white-space: nowrap; overflow: hidden; }
.panel header span { overflow: hidden; text-overflow: ellipsis; }
.panel header b { font-size: 0.98rem; font-weight: 600; }
.panel header span { color: var(--stage-muted); font-size: 0.78rem; }
.panel header b .mark { font-size: 1.15rem; line-height: 1; }
.view { position: relative; border-radius: 6px; overflow: hidden; background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: 1px solid var(--stage-line); }
.panel.ours .view { outline: 2px solid #F2A72B; }
.view canvas { width: 100%; height: auto; }
.view .divider { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); transform: translateX(-1px); pointer-events: none; }
.view .knob { position: absolute; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff; color: #10131F; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.45); cursor: ew-resize; border: 0; padding: 0; }
.view .knob svg { width: 18px; height: 18px; }
.view .tag { position: absolute; bottom: 8px; padding: 3px 7px; border-radius: 4px; background: rgba(8,10,18,.72); color: #fff; pointer-events: none; font-size: 0.58rem; }
.view .tag.l { left: 8px; } .view .tag.r { right: 8px; }
.view.wipe { cursor: ew-resize; }
.view .ring { position: absolute; border: 3px solid #FF4D42; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,0,0,.35); pointer-events: none; animation: pulse 1.1s ease-in-out infinite; }
.view .flag { position: absolute; left: 8px; top: 8px; background: #D2372F; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 0.6rem; pointer-events: none; }
.view.flagged { outline: 3px solid #FF4D42; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.transport { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 0.9rem; align-items: center; padding: 0.2rem 1rem 1rem; }
.transport .pp { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--stage-ink); color: var(--stage); display: grid; place-items: center; cursor: pointer; }
.transport .pp svg { width: 1rem; height: 1rem; }
.track { position: relative; height: 2.5rem; display: grid; align-items: center; }
.track input { width: 100%; margin: 0; accent-color: #F2A72B; }
.pin { position: absolute; top: -2px; transform: translateX(-50%); background: #D2372F; color: #fff; border: 0; border-radius: 4px 4px 4px 0; padding: 1px 6px; font-size: 0.56rem; cursor: pointer; white-space: nowrap; }
.pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 10px; background: #D2372F; margin-left: -1px; }
.clock { color: var(--stage-muted); font-variant-numeric: tabular-nums; min-width: 9ch; text-align: right; }
.speed { border: 1px solid var(--stage-line); background: transparent; color: var(--stage-muted); border-radius: 6px; padding: 0.3rem 0.5rem; cursor: pointer; min-width: 3.4rem; }
.stage-note { padding: 0 1rem 1rem; color: var(--stage-muted); font-size: 0.86rem; margin: 0; max-width: 62rem; }
.hint { color: var(--stage-muted); }
@media (max-width: 620px) { .transport { grid-template-columns: auto minmax(0, 1fr) auto; } .clock { display: none; } .track { padding-top: 0.4rem; } }

/* hero wipe */
.one { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .one { grid-template-columns: 1fr; } }
.one .panels { padding: 0; } .one .panel header { display: none; } .one .view { border-radius: 0; outline: 0; }
.one .panel.ours .view { outline: 0; }
.one aside { padding: 1.2rem 1.4rem; display: grid; gap: 1.2rem; align-content: center; }
.one aside .prompt .main { font-size: 1.08rem; }
.one .transport { padding: 0.8rem 1rem; grid-column: 1 / -1; border-top: 1px solid var(--stage-line); }

/* role switch */
.switch { display: inline-flex; align-items: center; gap: 0.8rem; cursor: pointer; border: 0; background: none; color: var(--stage-ink); font-weight: 600; padding: 0; }
.switch .rail { width: 3.4rem; height: 1.9rem; border-radius: 999px; background: var(--stage-2); border: 1px solid var(--stage-line); position: relative; transition: background 0.25s; }
.switch .rail::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--stage-ink); transition: transform 0.25s; }
.switch[aria-pressed="true"] .rail { background: #F2A72B; border-color: #F2A72B; }
.switch[aria-pressed="true"] .rail::after { transform: translateX(1.5rem); background: #10131F; }
.rolecards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 1rem 1rem 0; }
@media (max-width: 700px) { .rolecards { grid-template-columns: 1fr; } }
.rolecard { background: var(--stage-2); border-radius: 8px; padding: 0.8rem 1rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 0.8rem; border-left: 4px solid; }
.rolecard.g { border-color: #80D19E; } .rolecard.b { border-color: #7AADEB; }
.rolecard .who { grid-column: 1 / -1; color: var(--stage-muted); }
.rolecard p { grid-column: 1 / -1; margin: 0; font-family: var(--display); font-size: 1.15rem; line-height: 1.3; min-height: 2.6em; }
.rolecard p.flip { animation: flip 0.5s ease; }
@keyframes flip { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }

/* 3D viewer */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 1rem; }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }
.duo .view { aspect-ratio: 20 / 11; }
.duo .panels { padding: 0; }
.v3d { background: #fff; cursor: grab; touch-action: none; }
.v3d:active { cursor: grabbing; }
.v3d canvas { width: 100% !important; height: 100% !important; }
.v3d .tools { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
.v3d .tools button { border: 0; background: rgba(8,10,18,.72); color: #fff; border-radius: 5px; padding: 4px 8px; cursor: pointer; font-size: 0.6rem; }
.v3d .tools button[aria-pressed="true"] { background: #F2A72B; color: #10131F; }

/* bibtex / footer */
.bibcol { max-width: 60rem; }
pre.bib { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; overflow-x: auto; font-family: var(--mono); font-size: 0.72rem; line-height: 1.7; font-stretch: 87.5%; margin: 0; }
.bib-row { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.8rem; }
footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; color: var(--muted); font-size: 0.86rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---- v2 (2026-11-30): minimal, light only, centred title, sans headings */
:root { color-scheme: light; }
h1, h2, h3 { font-family: var(--text); font-weight: 600; letter-spacing: -0.015em; font-variation-settings: normal; }
h1 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.2; margin: 1.1rem auto 0; max-width: 46rem; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.2; }
h3 { font-size: 1.15rem; }
.hero { padding-block: 3.5rem 1rem; text-align: center; }
.hero .mark { font-size: clamp(3.4rem, 9vw, 6rem); line-height: 1; margin: 0; }
.people { justify-content: center; margin-top: 1.5rem; }
.affil { justify-content: center; margin-top: 1rem; }
.affil .logo { border: 0; padding: 0; }
.links { justify-content: center; margin-top: 1.4rem; }
section { padding-block: 2.5rem; }
.sec-head { text-align: center; justify-items: center; margin-bottom: 1.4rem; }
.lede { max-width: 44rem; }
.abstract { max-width: var(--col); margin-inline: auto; }
.abstract p { font-size: 1.04rem; line-height: 1.7; }
@media (min-width: 700px) { .abstract p { text-align: justify; } }
.film { max-width: 60rem; margin-inline: auto; }
.stage { border-radius: 10px; }
.stage-top { border-bottom: 0; padding-bottom: 0.2rem; justify-content: center; }
.stage .right { margin-left: 0; }
.chips { justify-content: center; align-items: center; }
.chips .grp { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0.2rem 0 0.7rem; }
.chips .grp:first-child { margin-left: 0; }
.chips button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.prompt .main, .rolecard p { font-family: var(--text); font-size: 1.02rem; line-height: 1.5; }
.rolecard p { min-height: 3em; }
.view { outline-color: var(--line); }
.panel.ours .view { outline: 2px solid #F2A72B; }
.switch[aria-pressed="true"] .rail::after { background: #fff; }
.switch .rail::after { background: var(--ink); }
.step-text .n { color: var(--line-strong); }
.one aside .prompt .main { font-size: 1rem; }
.duo .view { outline: 1px solid var(--line); }
footer .wrap { justify-content: center; }
.bibcol { margin-inline: auto; }

/* v3: one row of examples per group */
.chips.rows { flex-direction: column; align-items: center; gap: 0.5rem; }
.chiprow { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; justify-content: center; }
.chiprow .grp { margin: 0 0.5rem 0 0; min-width: 9.5rem; text-align: right; }
@media (max-width: 700px) { .chiprow .grp { min-width: 100%; text-align: center; margin: 0; } }

.panels.solo { max-width: 40rem; margin-inline: auto; }

h1 u { text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* v7: players as wide as the window allows; given inputs small, outputs large */
.wrap.big { max-width: 120rem; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
.panels { padding: 0.8rem; gap: 8px; }
.panels.solo { max-width: 64rem; }
.prompt { max-width: 76rem; margin-inline: auto; }
.rolecards { max-width: 76rem; margin-inline: auto; }
.transport { max-width: 76rem; margin-inline: auto; width: 100%; }
@media (min-width: 761px) {
  .panels.io { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .panels.io .panel.in { grid-row: 1 / span 2; }
}
@media (min-width: 761px) { .panels.io4 { max-width: min(100%, 150vh); margin-inline: auto; } }

.affil { color: var(--ink); font-size: 1.05rem; }

/* v11: inference pipeline animation at the top */
.pipe { padding: 0.9rem 1rem 1.2rem; max-width: 96rem; margin-inline: auto; }
.psteps { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; margin-bottom: 1rem; }
.psteps button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; font-size: 0.85rem; color: var(--muted); display: inline-flex; gap: 0.45rem; align-items: center; }
.psteps button i { font-style: normal; font-family: var(--mono); font-size: 0.6rem; }
.psteps button.done { color: var(--ink); }
.psteps button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.psteps .preplay { border-style: dashed; margin-left: 0.6rem; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 2.2rem minmax(0, 1fr) 6.5rem minmax(0, 1fr); gap: 0.6rem; align-items: center; }
.pcol { display: grid; gap: 0.6rem; align-content: center; min-width: 0; }
.plab { color: var(--muted); text-align: center; }
.pipe figure { margin: 0; position: relative; border-radius: 6px; overflow: hidden; outline: 1px solid var(--line); background: #fff; }
.pipe figure img, .pipe figure canvas { width: 100%; height: auto; display: block; }
.pipe figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 7px; border-radius: 4px; background: rgba(8,10,18,.72); color: #fff; font-size: 0.58rem; }
.pcap, .pcard { background: var(--sunk); border-radius: 8px; padding: 0.6rem 0.8rem; border-left: 4px solid var(--cap-fill); }
.pcap span, .pcard .who { color: var(--muted); display: block; margin-bottom: 0.2rem; }
.pcap p, .pcard p { margin: 0; font-size: 0.9rem; line-height: 1.4; }
.pcard { border-left-color: var(--line-strong); transition: border-color 0.5s, background 0.5s, opacity 0.5s, transform 0.5s; }
.pcard .who em { font-style: normal; opacity: 0; transition: opacity 0.5s; }
.pcard .who { visibility: hidden; }
.pcard.assigned .who { visibility: visible; } .pcard.assigned .who em { opacity: 1; }
.pcard.assigned[data-p="1"] { border-left-color: var(--p1-body); background: var(--p1-soft); }
.pcard.assigned[data-p="2"] { border-left-color: var(--p2-body); background: var(--p2-soft); }
.pcard.assigned[data-p="1"] .who { color: var(--p1); } .pcard.assigned[data-p="2"] .who { color: var(--p2); }
.pipe:not(.anim) .pcard .who { visibility: visible; } .pipe:not(.anim) .pcard .who em { opacity: 1; }
.pllm { display: flex; align-items: center; gap: 0.6rem; justify-content: center; color: var(--muted); font-size: 0.85rem; }
.pllm b { border: 1.4px solid var(--line-strong); background: var(--sunk); border-radius: 8px; padding: 0.25rem 0.7rem; color: var(--ink); }
.parrow { height: 2px; background: var(--ink); position: relative; align-self: center; }
.parrow::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--ink); border-right: 0; }
.parrow.big { height: auto; background: none; display: grid; justify-items: center; gap: 0.3rem; }
.parrow.big::before { content: ""; height: 2px; width: 100%; background: var(--ink); order: 2; }
.parrow.big::after { right: -1px; top: auto; bottom: -5px; }
.parrow.big .mark { font-size: 1.25rem; order: 1; }
.pipe [data-at] { transition: opacity 0.6s ease, transform 0.6s ease; }
.pipe [data-at].off { opacity: 0; transform: translateY(8px); }
@media (max-width: 860px) {
  .pgrid { grid-template-columns: 1fr; }
  .parrow { width: 2px; height: 1.6rem; justify-self: center; }
  .parrow::after { right: -5px; top: auto; bottom: -1px; border: 6px solid transparent; border-top: 9px solid var(--ink); border-bottom: 0; }
  .parrow.big { width: auto; height: auto; } .parrow.big::before { width: 2px; height: 1.4rem; } .parrow.big::after { display: none; }
}

/* v12: pipeline effects: pose scan, caption typing, captions dragged onto the people */
.pipe { position: relative; }
.pcard .who { visibility: visible; }
.pcard p { min-height: 3.9em; }
.pcard.lifted { opacity: 0.35; }
.pghost { position: absolute; z-index: 5; margin: 0; box-shadow: 0 10px 28px rgba(19,23,41,.28); transform-origin: 50% 50%; pointer-events: none; background: #fff; border-left-color: var(--line-strong); }
.pghost[data-p="1"] { border-left-color: var(--p1-body); } .pghost[data-p="2"] { border-left-color: var(--p2-body); }
.pcursor { position: absolute; right: 18%; bottom: -14px; width: 26px; height: 26px; }
.pcursor svg { width: 100%; height: 100%; }
.ppin { position: absolute; top: 5%; transform: translate(-50%, -6px) scale(0.6); opacity: 0; padding: 3px 8px; border-radius: 999px; color: #fff; font-size: 0.58rem; white-space: nowrap; transition: opacity 0.35s, transform 0.35s cubic-bezier(.3,1.6,.5,1); }
.ppin[data-p="1"] { background: var(--p1); } .ppin[data-p="2"] { background: var(--p2); }
.ppin.on, .pipe:not(.anim) .ppin { opacity: 1; transform: translate(-50%, 0) scale(1); }
.pipe figure.scan::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #F2A72B; box-shadow: 0 0 14px 5px rgba(242,167,43,.55); animation: pscan 1.5s linear forwards; }
.pipe figure.reveal { animation: preveal 1.5s linear forwards; }
@keyframes pscan { to { left: 100%; } }
@keyframes preveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.pcap.send { animation: psend 1s ease-in-out infinite; }
@keyframes psend { 50% { box-shadow: 0 0 0 3px rgba(242,167,43,.45); } }
.pllm.busy b { animation: pbusy 0.7s ease-in-out infinite; }
.pllm.busy span::after { content: " …"; }
@keyframes pbusy { 50% { background: var(--cap-soft); border-color: var(--cap-fill); transform: scale(1.06); } }
