/* WDDQ presentation. Scoped to this project; shared page chrome comes from project-studio.css.
   Accents follow the paper's figures: sage for the encoder/predictor, clay for the diffuser/decoder. */
.page-project.studio-wddq { --wddq-sage:#a9cc9b; --wddq-clay:#f1ab86; --wddq-muted:#aabbd2; --wddq-line:#b0c9e522; --wddq-panel:#081426; --wddq-ink:#eef3fa; --wddq-base:#4d6e8c; }
.page-project.studio-wddq [hidden] { display:none !important; }
/* Head script sets .wddq-js, so JS-only layout is in place before first paint (no shift). */
html:not(.wddq-js) .studio-wddq [data-wddq-enhancement] { display:none !important; }
.page-project.studio-wddq .publication-title { max-width:none !important; }
.page-project.studio-wddq .studio-name { white-space:nowrap; font-size:min(70px, calc((100vw - 64px) / 14)); }
.studio-wddq :is(button,a,summary,input) { -webkit-tap-highlight-color:transparent; }
.studio-wddq :is(button,summary,input,a):focus-visible { outline:2px solid #ffa16f; outline-offset:4px; }
.studio-wddq .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.studio-wddq .wddq-caption-text { color:var(--wddq-muted); font-size:15px; line-height:1.75; }
.studio-wddq .wddq-icon-button { border:0; background:transparent; color:#d9e7f6; cursor:pointer; font:600 15px/1.5 Inter,sans-serif; min-height:44px; padding:8px 12px; }
.studio-wddq .wddq-icon-button:hover { color:var(--wddq-sage); }

/* ---------- Opening: rollout wall ---------- */
.page-project.studio-wddq .wddq-wall { margin:0; border:1px solid var(--wddq-line); border-radius:16px; overflow:hidden; background:#050b13; }
.studio-wddq .wddq-wall-media { position:relative; }
.studio-wddq .wddq-wall-media video { display:block; width:100%; height:auto; aspect-ratio:1436/824; background:#050b13; }
.studio-wddq .wddq-wall-caption { display:flex; align-items:center; justify-content:space-between; gap:28px; padding:24px 28px; }
.studio-wddq .wddq-wall-caption .wddq-caption-text { max-width:none; color:#c4d2e4; }


/* ---------- Method ---------- */
.studio-wddq .wddq-walkthrough, .studio-wddq .wddq-compare { text-align:left; }
.studio-wddq .wddq-figure { display:block; position:relative; margin:24px 0 0; border-radius:10px; overflow:hidden; background:#fff; }
.studio-wddq .wddq-figure img { display:block; width:100%; max-width:100%; margin:0 auto !important; }
.studio-wddq .wddq-step-panel { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr); gap:18px 34px; align-items:stretch; padding:32px 0 28px; }
.studio-wddq .wddq-step-panel + .wddq-step-panel { border-top:1px solid var(--wddq-line); }
.studio-wddq .wddq-step-panel:last-child { padding-bottom:0; }
.studio-wddq #studio-method > .container { padding-bottom:clamp(20px,2.5vw,28px); }
.studio-wddq .wddq-step-panel .wddq-figure { display:flex; align-items:center; align-self:stretch; min-width:0; margin:0; }
.studio-wddq .wddq-step-panel h4 { grid-column:1 / -1; font-size:clamp(20px,2vw,25px); line-height:1.25; letter-spacing:-.035em; font-weight:600; color:#f1f5fc; margin:0; }
.studio-wddq .wddq-step-body { color:#b7c7dd; font-size:16px; line-height:1.7; text-align:justify; text-align-last:left; }
.page-project.project-studio.studio-wddq main #studio-method .wddq-step-body p { margin:0 !important; font-size:inherit; line-height:inherit; text-align:justify !important; text-align-last:left; text-wrap:pretty; hyphens:auto; hyphenate-limit-chars:8 4 4; }
.page-project.project-studio.studio-wddq main #studio-method .wddq-step-body p + p { margin-top:14px !important; }
.studio-wddq .wddq-step-body + .wddq-step-body { margin-top:14px; }

/* ---------- Comparison player ---------- */
.studio-wddq .wddq-compare-labels { display:grid; grid-template-columns:640fr 16fr 640fr 16fr 640fr; margin-bottom:8px; font:600 15px/1.4 Inter,sans-serif; color:#d6e2f0; }
.studio-wddq .wddq-compare-labels span:nth-child(2) { grid-column:3; }
.studio-wddq .wddq-compare-labels span:nth-child(3) { grid-column:5; }
.studio-wddq .wddq-compare-labels .is-ours { color:var(--wddq-clay); }
.studio-wddq .wddq-compare-stage { position:relative; overflow:hidden; border-radius:10px; background:#050b13; aspect-ratio:1952/360; }
.studio-wddq .wddq-compare-stage video { display:block; width:100%; height:auto; aspect-ratio:1952/360; background:#050b13; }
.studio-wddq .wddq-transport { display:flex; align-items:center; gap:14px; padding:10px 0 4px; }
.studio-wddq .wddq-transport .wddq-icon-button { min-width:44px; font-size:15px; letter-spacing:-2px; border:1px solid var(--wddq-line); border-radius:8px; }
.studio-wddq .wddq-scrub { flex:1; display:flex; }
.studio-wddq .wddq-scrub input { width:100%; accent-color:var(--wddq-sage); cursor:pointer; min-height:30px; }
.studio-wddq .wddq-frame-readout { min-width:110px; color:#d6e2f0; font:500 14px/1.4 Inter,sans-serif; font-variant-numeric:tabular-nums; }
.studio-wddq .wddq-frame-readout span { color:#7f95b2; }
.studio-wddq .wddq-scene-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:6px; }
.studio-wddq .wddq-scene { display:block; min-width:0; border-top:2px solid transparent; padding-top:8px; text-decoration:none; transition:border-color .2s; }
.studio-wddq .wddq-scene img { display:block; width:100%; aspect-ratio:16/9; border:1px solid #ffffff14; border-radius:7px; opacity:.6; transition:opacity .2s,border-color .2s; }
.studio-wddq .wddq-scene[aria-current=true] { border-color:var(--wddq-sage); }
.studio-wddq .wddq-scene[aria-current=true] img, .studio-wddq .wddq-scene:hover img { opacity:1; border-color:#a9cc9b70; }

/* ---------- Quantitative results ---------- */
.page-project.studio-wddq .studio-quantitative .studio-result-card { padding:0 !important; background:none !important; border:0 !important; border-radius:0 !important; text-align:left; }
.page-project.project-studio.studio-wddq main .studio-quantitative .studio-result-card > h3.studio-result-title { text-align:center !important; }
.page-project.project-studio.studio-wddq main .studio-quantitative .studio-result-stack { gap:44px; }
.page-project.project-studio.studio-wddq main .studio-quantitative .studio-result-card + .studio-result-card { border-top:1px solid var(--wddq-line) !important; padding-top:44px !important; }
.studio-wddq .wddq-metric-sub + .wddq-metric-sub { margin-top:40px; }
.studio-wddq .wddq-metric-subtitle { font-size:16px; line-height:1.4; font-weight:600; color:#e3ecf7; margin:0 0 2px; }
.studio-wddq .wddq-metric-desc { font-size:18px; line-height:1.6; color:#d3e0ef; margin:4px 0 14px; }
.studio-wddq .wddq-bars { list-style:none; margin:0; padding:0 !important; }
.studio-wddq .wddq-bar-row { display:grid; grid-template-columns:minmax(150px,1fr) minmax(100px,2fr) 96px; align-items:center; gap:18px; margin-bottom:16px; padding:0 !important; font:400 15.5px/1.5 Inter,sans-serif; }
.studio-wddq .wddq-bar-label { color:#c0cfe2; }
.studio-wddq .wddq-bar-track { position:relative; height:20px; background:repeating-linear-gradient(to right,transparent,transparent calc(25% - 1px),#c0d6ee16 calc(25% - 1px),#c0d6ee16 25%); }
.studio-wddq .wddq-bar-track > span { display:block; height:100%; background:var(--wddq-base); border-radius:0 3px 3px 0; transform-origin:left; }
.studio-wddq .wddq-bars.is-pending .wddq-bar-track > span { transform:scaleX(0); }
.studio-wddq .wddq-bars.is-in .wddq-bar-track > span { animation:wddq-bar-in .5s ease both; }
@keyframes wddq-bar-in { from { transform:scaleX(0); } to { transform:scaleX(1); } }
.studio-wddq .wddq-bar-row strong { color:#d4e0ef; text-align:right; white-space:nowrap; font-size:15.5px; font-weight:500; font-variant-numeric:tabular-nums; }
.studio-wddq .wddq-bar-ours .wddq-bar-track > span { background:linear-gradient(90deg,#a9cc9b,#f1ab86); }
.studio-wddq .wddq-bar-ours :is(.wddq-bar-label,strong) { color:#f3dccd; font-weight:600; }
.page-project.studio-wddq .wddq-chart-note { font-size:13.5px; color:#8ea6c3; line-height:1.75; margin:18px 0 0 !important; }

/* ---------- BibTeX copy ---------- */
.studio-wddq .wddq-bibtex { position:relative; }
.studio-wddq .wddq-copy { position:absolute; right:10px; top:10px; z-index:1; min-height:34px; padding:5px 12px; border:1px solid #ffffff30; border-radius:6px; background:#0d2036; color:#d6e2f0; cursor:pointer; font:600 13px/1.4 Inter,sans-serif; }
.studio-wddq .wddq-copy:hover { border-color:var(--wddq-sage); color:var(--wddq-sage); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .studio-wddq .wddq-step-panel { grid-template-columns:1fr; gap:20px; }
}
@media (max-width: 720px) {
  .studio-wddq .wddq-wall-caption { flex-direction:column; align-items:start; gap:10px; }
  .studio-wddq .wddq-scene-list { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:40%; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:6px; }
  .studio-wddq .wddq-scene { scroll-snap-align:start; }
  .studio-wddq .wddq-bar-row { grid-template-columns:minmax(0,1fr) 86px; gap:6px 12px; }
  .studio-wddq .wddq-bar-track { grid-column:1/-1; grid-row:2; }
  .studio-wddq .wddq-transport { flex-wrap:wrap; }
  .studio-wddq .wddq-scrub { flex-basis:100%; order:3; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-wddq .wddq-bar-track > span { animation:none !important; transform:none !important; }
  .studio-wddq * { transition:none !important; }
}
