.motion {display:grid;align-items:center;min-height:100vh;min-height:100dvh;position:relative;isolation:isolate;overflow:hidden;background:#d9e1e6;color:#122237}
#hero-film,.motion-picture,.motion-veil {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#hero-film {z-index:-2}
.motion-picture {display:block;object-fit:cover;object-position:center;opacity:0}
.motion-picture.is-current {opacity:1}
.motion-veil {z-index:-1;background:linear-gradient(90deg,rgba(243,247,250,.98) 0%,rgba(241,246,250,.94) 26%,rgba(239,244,249,.85) 39%,rgba(230,238,247,.25) 60%,transparent 77%),linear-gradient(0deg,#15212b52,transparent 32%)}
.hero-links,.folio {display:flex;align-items:center}
.hero-links a {font-weight:650;color:#162638;font-size:.85rem}
.hero-links a:hover {text-decoration:underline}
.folio {font-family:ui-monospace,Consolas,monospace}
.motion-body {padding-block:clamp(22px,3.2vw,54px)}
.motion-copy {width:min(48%,560px)}
.folio {gap:9px;color:#314856;font-size:.67rem;letter-spacing:.13em;font-weight:700}
.folio i {width:24px;height:2px;background:currentColor}
.motion #project-title {width:min(90%,350px);margin:.7rem 0 .8rem}
.motion .paper-title {margin-bottom:.85rem;line-height:1.12}
.motion .project-meta a {color:#1b364c}
.hero-links {flex-wrap:wrap;gap:8px;margin:1rem 0 .25rem}
.hero-links .resource-pill {display:inline-flex;align-items:center;gap:7px;border-radius:20px;padding:7px 14px;background:#102a36;color:white;font:650 .85rem/1.3 system-ui,sans-serif}
.hero-links .pending {color:#364959;background:#e4e9ec}
.resource-note {color:#364959;font-size:.73rem}
.institution-logos {display:flex;align-items:center;gap:clamp(14px,1.7vw,36px);width:min(100%,clamp(420px,32vw,740px));margin:clamp(22px,2.4vh,38px) 0 0;padding:0;list-style:none}
.institution-logos li {min-width:0;flex:1.1}
.institution-logos li:nth-child(2) {flex:1.48}
.institution-logos li:last-child {flex:1}
.institution-logos img {display:block;width:100%;height:auto}
#reconstruction-hero.theatre {background:transparent;color:var(--ink);max-width:none;margin:0;padding:clamp(24px,3.2vw,45px) 0}
.paper-title .keep-together {white-space:nowrap}
.theatre-head {margin-bottom:16px}
.theatre-head h2 {margin-top:3px;color:var(--ink);font-size:clamp(1.45rem,2.4vw,2.35rem);font-weight:650;line-height:1.13;letter-spacing:-.045em}
.reconstruction-films {position:relative}
.theatre > .wrap {max-width:var(--article-width)}
.screen {margin:0;min-width:0;overflow:hidden;border-radius:9px;background:#f3f4f9}
.screen video {display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#f3f4f9}
.screen video:not([controls]) {cursor:pointer}
.film-play {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:clamp(56px,6.5vw,72px);aspect-ratio:1;padding:0;border:0;border-radius:50%;background:#343a40;box-shadow:0 2px 10px #20272d26;color:white;cursor:pointer}
.film-play svg {width:32%;height:auto}
.film-play:hover {background:#20252a}
.film-play:focus-visible {outline:3px solid #42494f;outline-offset:3px}
.film-play[hidden] {display:none}
.film-pager {margin:0 auto 12px;display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:6px;box-sizing:border-box;width:17.5rem;max-width:calc(100% - 12px);padding:4px;border:1px solid #afb6d6;border-radius:24px;background:linear-gradient(110deg,#cfddf5,#e1d9f1);box-shadow:0 2px 8px #34316612}
.film-status {display:flex;align-items:center;justify-content:space-between;gap:.4em;white-space:nowrap}
.film-room {color:#283452;font-weight:600}
@media(max-width:520px){
 .film-pager {width:12rem;font-size:.8rem}
 .film-status {flex-direction:column;gap:0;line-height:1.15}
 .film-status .film-count {font-size:.72rem}
}
.film-pager button {display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#ffffff85;color:#374569;cursor:pointer}
.film-pager button:hover {background:#fff}
.film-pager button:focus-visible {outline:2px solid #455481;outline-offset:1px}
.film-count {color:#515974;font-size:1rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.film-pager[hidden],.screen[hidden] {display:none}
/* Scale the opening composition independently of the article's reading width. */
@media (min-width:1320px) {
 .motion-body.wrap {width:90%;max-width:none}
 .motion-copy {width:clamp(580px,43vw,1080px)}
 .motion #project-title {width:clamp(350px,26vw,680px);margin:0 0 clamp(16px,1.3vw,34px)}
 .motion .paper-title {font-size:clamp(27px,2.1vw,56px);max-width:31ch;
   text-wrap:balance;margin-bottom:clamp(16px,1.3vw,32px)}
 .motion .project-meta {font-size:clamp(15px,1.02vw,24px)}
 .motion .project-meta .publication-authors {font-size:1em!important}
 .motion .project-meta .publication-authors:last-child {font-size:.82em!important}
 .motion .hero-links {margin-top:clamp(18px,1.55vw,38px);gap:clamp(8px,.65vw,18px)}
 .motion .resource-pill {font-size:clamp(14px,.97vw,23px);padding:.55em 1em;border-radius:2em}
}
@media(max-width:740px){
 .motion-copy {width:min(100%,510px)}
 .motion-veil {background:linear-gradient(90deg,#eff4f8ee,#eff4f8cc 68%,#eff4f885),linear-gradient(0deg,#fff3,transparent 60%)}
 .motion-body {padding-block:16px 24px}.motion #project-title {width:min(75%,280px)}
}

/* Keep the scene selector inside the hero, below the title and credits. */
.motion {grid-template-rows:1fr auto}
.scene-switcher {align-self:end;justify-self:center;display:flex;align-items:center;gap:clamp(8px,1.3vw,22px);width:min(90%,1250px);box-sizing:border-box;margin-bottom:clamp(14px,2.4vh,30px);padding:10px clamp(8px,1.35vw,22px);border:1px solid #fff9;border-radius:17px;background:#faf9f4f2;box-shadow:0 3px 18px #17263818;color:#242b2c}
.scene-switcher[hidden] {display:none}
.scene-stops {display:grid;grid-template-columns:repeat(3,minmax(max-content,1fr));gap:clamp(7px,1.2vw,20px);flex:1;min-width:0}
.scene-switcher button {appearance:none;background:none;cursor:pointer;color:inherit;font:inherit}
.scene-switcher button:focus-visible {outline:2px solid #ad3444;outline-offset:3px}
.scene-arrow {border:1px solid #414a4d36;border-radius:50%;width:36px;height:36px;flex:none;display:grid;place-items:center}
.scene-arrow span {font:28px/1 system-ui;transform:translateY(-2px)}
.scene-arrow:hover {background:#fff}
.scene-stop {display:grid;grid-template-columns:auto 1fr;align-content:center;align-items:baseline;gap:5px .45em;min-width:0;min-height:44px;text-align:left;border:0;padding:2px 0;color:#666b6b!important;font-size:clamp(13px,1.25vw,21px)!important}
.scene-track {grid-column:1/-1;height:3px;overflow:hidden;border-radius:8px;background:#dadbd7}
.scene-track i {display:block;height:100%;background:#202627;transform-origin:left;transform:scaleX(var(--progress,0))}
.scene-name {white-space:nowrap}
.scene-num {color:#9a9d97;font-variant-numeric:tabular-nums}
.scene-stop[aria-pressed=true] .scene-num {color:#c03447}
.scene-stop[aria-pressed=true] .scene-name,.scene-stop:hover .scene-name {color:#192324}
@media(max-width:600px){
 .scene-switcher {width:calc(100% - 20px);padding:6px;gap:6px;border-radius:12px}
 .scene-stops {overflow-x:auto}
 .scene-arrow {width:26px;height:32px;border-radius:12px}
 .scene-stop {grid-template-columns:1fr;gap:2px;align-content:start;padding-top:4px;font-size:12px!important;line-height:1.15!important}
 .scene-num {font-size:10px}
}

/* The film spans the full hero height, including the area behind the controls. */
.motion {background:#eff4f7}
@media(min-width:901px){
  .motion {--film-start:31%}
  #hero-film {left:var(--film-start);width:calc(100% - var(--film-start))}
  .motion-veil {background:linear-gradient(90deg,#eff4f7 var(--film-start),rgba(239,244,247,.88) 38%,rgba(239,244,247,.58) 45%,transparent 57%),linear-gradient(0deg,#17263425,transparent 19%)}
  .scene-switcher {justify-self:center;position:relative;left:calc(var(--film-start) / 2);width:min(43vw,700px);min-width:max-content;margin-bottom:clamp(28px,5vh,80px);padding:5px 12px;gap:12px}
  .scene-stops {gap:12px}
  .scene-stop {font-size:clamp(12px,1vw,17px)!important}
}
@media(max-width:900px){
  .motion-veil {background:linear-gradient(90deg,#eff4f8f2,#eff4f8dc 55%,#eff4f85c),linear-gradient(0deg,#15212b30,transparent 30%)}
  .scene-switcher {width:min(calc(100% - 20px),520px)}
}

@media(max-width:360px){
 .scene-switcher {width:calc(100% - 4px);gap:3px;padding-inline:3px}
 .scene-stops {gap:3px}
}

@keyframes wordmark-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: no-preference) {
  #project-title img { animation: wordmark-float 6s ease-in-out infinite; }
  .scroll-reveal {
    animation: content-arrives 1s linear both;
    animation-timeline: view();
    animation-range: entry 0px entry 28vh;
  }
  .reveal-fallback { transition: opacity 1s ease, translate 1s ease; }
  .reveal-fallback.reveal-wait { opacity: 0; translate: 0 64px; }
  :is(.scroll-reveal,.reveal-fallback):focus-within {
    animation: none; opacity: 1; translate: none;
  }
}
@keyframes content-arrives {
  from { opacity: 0; translate: 0 64px; }
  to { opacity: 1; translate: 0 0; }
}
