/* Full-width cover, followed by a centered research article. */
:root{--font:"Source Serif 4",Georgia,serif;--paper:#faf8f3;--ink:#11120f;--muted:#73756e;--line:#deded7;--article-width:960px}
html{font-size:16px;scroll-padding-top:92px}
body{font:19px/1.6 var(--font);background:var(--paper);color:var(--ink)}
/* Keep overlays inside the contained 16:9 image, including on ultrawide screens. */
.cover-hero{--cover-frame-width:min(100vw,177.777778svh);--cover-gutter:clamp(32px,6vw,112px);--cover-inset:calc((100% - var(--cover-frame-width))/2 + var(--cover-gutter));position:relative;width:100%;aspect-ratio:16/9;max-height:100svh;overflow:hidden;background:#080b08;color:#fff;isolation:isolate}
.cover-hero>video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;aspect-ratio:auto}
.cover-shade{position:absolute;inset:0;background:linear-gradient(180deg,#050b0a70,transparent 25%),linear-gradient(270deg,#040b08d9,transparent 60%);mask-image:linear-gradient(180deg,#000,transparent 32%,#000 68%);pointer-events:none}
.cover-masthead{position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px var(--cover-inset);z-index:2}
.cover-wordmark{display:inline-flex;align-items:baseline;font-size:29px;line-height:1;font-weight:650;letter-spacing:-.055em;color:#fff;text-shadow:0 1px 16px #0005}
.cover-wordmark>span:first-child{color:inherit}
.cover-brand-dot{align-self:center;width:6px;height:6px;margin-left:10px;border-radius:50%;background:#c6ef97}
.cover-copy{position:absolute;right:var(--cover-inset);bottom:clamp(100px,13%,140px);max-width:calc(var(--cover-frame-width)*.44);text-align:right;color:#fff;text-shadow:0 2px 25px #0003}
.cover-copy h2{margin:0;font-size:clamp(40px,min(4.7vw,8.355556svh),88px);font-weight:400;line-height:1.04;letter-spacing:-.025em}
.cover-description{margin-top:22px;font-size:clamp(14px,1.16vw,19px);line-height:1.5;color:#f1f4ef;letter-spacing:-.01em}
.cover-scroll{display:inline-flex;align-items:center;gap:32px;margin-top:26px;min-height:38px;padding-bottom:5px;border-bottom:1px solid #ffffff80;font-size:13px;font-weight:500;line-height:1.4;letter-spacing:0;text-transform:none}
.cover-scroll:hover{border-color:#fff}
.cover-scroll svg{width:17px;height:17px;stroke-width:1.35}
.cover-play{position:relative;width:42px;height:42px;display:grid;place-items:center;border:1px solid #ffffff80;border-radius:50%;background:#0003;color:#fff;backdrop-filter:blur(5px);z-index:3}
.cover-play:hover{background:#0007}
.cover-play svg{width:16px;height:16px;stroke-width:1.8}
.cover-play .play-icon{display:none}
.cover-play.is-paused .play-icon{display:block}
.cover-play.is-paused .pause-icon{display:none}
/* Two chapter tracks share the video clock and remain visible through both teaser scenes. */
.cover-controls{position:absolute;inset:auto 0 0;z-index:4;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:20px;padding:8px var(--cover-inset) 9px;border-top:1px solid #ecf3df26;background:#101a12e8;backdrop-filter:blur(14px);color:#f4f5ee}
.cover-controls .cover-play{border-color:#c5d6ad66;background:#ffffff08;backdrop-filter:none;color:#eaf3db}
.cover-controls .cover-play:hover{background:#d4e9b820}
.cover-timeline{position:relative;min-width:0;--mahjong-progress:0%;--recovery-progress:0%}
.cover-chapters{display:grid;grid-template-columns:minmax(0,var(--chapter-split)) minmax(0,1fr);gap:8px}
.cover-chapter{min-width:0;display:grid;gap:9px;padding:0 0 4px;background:none;color:#acb6a5;text-align:left;cursor:pointer}
.cover-chapter-label{display:flex;align-items:baseline;gap:8px;font-size:12px;font-weight:500;line-height:1.4;white-space:nowrap}
.cover-chapter-label small{font:400 10px/1 var(--mono);color:#8d9e80}
.cover-chapter[aria-current=true],.cover-chapter:hover{color:#f2f6e9}
.cover-chapter[aria-current=true] small{color:#c1de9a}
.cover-chapter-track{display:block;height:4px;border-radius:999px;background:#d4e4c333;overflow:hidden}
.cover-chapter-fill{display:block;width:var(--mahjong-progress);height:100%;border-radius:inherit;background:#b6d98b}
.cover-chapter[data-cover-chapter=recovery] .cover-chapter-fill{width:var(--recovery-progress);background:#d3e5ba}
.cover-seek{appearance:none;-webkit-appearance:none;position:absolute;left:0;bottom:-6px;width:100%;height:24px;margin:0;background:transparent;cursor:pointer;touch-action:pan-y}
.cover-seek::-webkit-slider-runnable-track{height:4px;background:transparent}
.cover-seek::-moz-range-track{height:4px;background:transparent}
.cover-seek::-webkit-slider-thumb{-webkit-appearance:none;width:11px;height:11px;margin-top:-3.5px;border:2px solid #172410;border-radius:50%;background:#e0edcc;box-shadow:0 0 0 1px #d4e9b880;opacity:0;transition:opacity .15s}
.cover-seek::-moz-range-thumb{width:8px;height:8px;border:2px solid #172410;border-radius:50%;background:#e0edcc;box-shadow:0 0 0 1px #d4e9b880;opacity:0;transition:opacity .15s}
.cover-timeline:hover .cover-seek::-webkit-slider-thumb,.cover-seek:focus-visible::-webkit-slider-thumb{opacity:1}
.cover-timeline:hover .cover-seek::-moz-range-thumb,.cover-seek:focus-visible::-moz-range-thumb{opacity:1}
.cover-seek:disabled{cursor:default}
.cover-controls button:focus-visible,.cover-seek:focus-visible{outline:2px solid #c1de9a;outline-offset:5px;border-radius:3px}
.cover-time{align-self:end;padding-bottom:5px;font:400 11px/1.4 var(--mono);font-variant-numeric:tabular-nums;white-space:nowrap;color:#b9c6ad}
@media(min-width:701px) and (max-width:1200px),(min-width:701px) and (max-height:650px){.cover-controls{grid-template-columns:28px minmax(0,1fr) auto;gap:14px;padding-block:4px}.cover-controls .cover-play{width:28px;height:28px}.cover-chapter{gap:5px}.cover-chapter-label{font-size:11px}}
@media(max-width:700px){.cover-controls{position:relative;inset:auto;order:1;width:100%;padding:14px 20px 18px;grid-template-columns:34px minmax(0,1fr);gap:12px 14px;background:#101a12;border-bottom:1px solid #ecf3df1a}.cover-chapter-label{font-size:11px;gap:5px}.cover-chapter-label small{font-size:9px}.cover-chapters{grid-template-columns:minmax(0,var(--chapter-split)) minmax(0,1fr);gap:6px}.cover-time{grid-column:2;padding:0;font-size:10px;justify-self:end;margin-top:-3px}.cover-chapter{gap:8px}}
@media(prefers-reduced-motion:reduce){.cover-seek::-webkit-slider-thumb{transition:none}.cover-seek::-moz-range-thumb{transition:none}}
.cover-topbar{position:fixed;inset:0 0 auto;min-height:63px;padding:14px 24px;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:16px;background:rgba(250,248,243,.88);backdrop-filter:blur(10px);border-bottom:1px solid #0002;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s,visibility .2s}
.article-nav-visible .cover-topbar{opacity:1;visibility:visible;pointer-events:auto}
.cover-topbar-brand{font-size:18px;font-weight:700;letter-spacing:-.035em}
.cover-topbar-brand,.project-heading h1>span{color:#4c7300}
.cover-topbar nav,.paper-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.cover-topbar nav a,.paper-links a{display:inline-flex;align-items:center;gap:7px;border:1px solid #0003;border-radius:999px;padding:6px 13px;font-size:13px;line-height:1.55;font-weight:500;background:transparent}
.cover-topbar nav a:hover,.paper-links a:hover{background:#efeee8;border-color:#0007}
.article-layout{display:grid;position:relative;grid-template-columns:minmax(0,1fr) minmax(0,var(--article-width)) minmax(0,1fr);gap:0;width:100%;max-width:none;margin:0;padding:72px 24px 72px;align-items:start}
.article-content{grid-column:2;grid-row:1;width:100%;max-width:none;min-width:0;margin:0;container:article / inline-size}
.article-content .wrap{width:100%;max-width:none;margin-inline:0}
.contents-sidebar{grid-column:1;grid-row:1;position:sticky;top:96px;align-self:start;justify-self:start;width:200px;max-width:calc(100% - 24px);max-height:calc(100vh - 120px);margin:0;padding:0 8px 0 0;background:transparent;border:0;backdrop-filter:none;overflow:auto;z-index:10}
.contents-title{display:none}
#contents-toggle{display:none}
.contents-nav{display:flex;flex-direction:column;gap:0;padding:0;border-left:1px solid var(--line);max-height:none;overflow:visible}
.contents-nav>a{border:0;padding:5px 0 5px 16px;font-size:14px;line-height:1.4;color:#7b7d77;position:relative}
.contents-nav>a:hover{color:#111}
.contents-nav>a[aria-current]{color:#4c7300;font-weight:500}
.contents-nav>a[aria-current]:before{content:"";position:absolute;left:-1px;top:0;bottom:0;width:2px;background:#76b900}
.contents-subnav{padding:0 0 5px 26px;font-size:13px;line-height:1.65;color:#7b7d77}
.contents-subnav a{display:block;padding-block:3px}
.project-heading{padding:0 0 30px;border-bottom:1px solid var(--line);margin-bottom:0}
.project-heading h1{font-family:var(--font);font-size:clamp(34px,3.4vw,49px);line-height:1.09;letter-spacing:-.025em;font-weight:400;text-wrap:balance}
.project-heading h1>span{font-weight:500}
.project-authors{margin-top:24px;font-size:18px;line-height:1.65;color:#161713}
.project-authors a{text-decoration:underline;text-decoration-color:#b5b8ac;text-underline-offset:3px;text-decoration-thickness:1px}
.project-authors a:hover{color:#4c7300;text-decoration-color:currentColor}
.project-affiliations{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:12px;font-size:15px;line-height:1.55;color:#64665d}
.project-heading sup{color:#4c7300;font-size:.67em}
.paper-links{margin-top:22px}
.paper-links a{font-size:15px}
.affiliation-logos{display:grid;grid-template-columns:190fr 230fr 230fr;align-items:center;gap:clamp(24px,3vw,36px);width:min(100%,722px);margin-top:28px}
.affiliation-logos img{display:block;width:100%;height:auto;min-width:0}
@media(max-width:540px){.affiliation-logos{grid-template-columns:1fr 1fr;max-width:456px}}
.article-content .section{padding-block:56px}
.article-content #overview{display:block;padding-top:56px}
.article-content .section-description,.collection-intro,.twin-intro,.recovery-intro,.results-intro,.section-lead,.article-content .acknowledgements-section>p{font-size:19px;line-height:1.6;color:#31352c}
.article-content .section-heading.wide,.article-content .twin-heading{display:block}
.article-content .section-description{max-width:none}
.article-content .pipeline-figure{margin-top:32px;width:100%;max-width:100%;margin-inline:0}
.citation-code{font-size:12px}
/* Keep the recovery key inside the wider article instead of the outer margin. */
.article-content .recovery-gallery>.recovery-legend{position:static;inset:auto;width:auto;max-width:none;display:flex;flex-wrap:wrap;gap:6px 24px;justify-self:start}
.cover-review-footer{padding-top:32px;margin-top:32px;border-top:1px solid var(--line);font-size:13px;color:#70756a;display:flex;gap:20px;flex-wrap:wrap}
.cover-review-footer a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:1400px){
  body:not(.article-nav-visible) .contents-sidebar{visibility:hidden;pointer-events:none}
  .article-layout{display:block}
  .article-content{max-width:var(--article-width);margin-inline:auto}
  .contents-sidebar{position:fixed;left:auto;top:auto;right:18px;bottom:18px;width:auto;max-width:none;max-height:none;padding:0;margin:0;z-index:70;overflow:visible;background:transparent;border:0}
  #contents-toggle{display:flex;align-items:center;gap:9px;min-height:44px;border:1px solid #bdbfb5;border-radius:999px;padding:10px 18px;background:rgba(250,248,243,.96);font-size:13px;color:#22271f;box-shadow:0 6px 24px #00000010;backdrop-filter:blur(8px)}
  #contents-toggle>svg{width:16px;height:16px}
  #contents-toggle>span{display:none}
  .contents-nav{display:none;position:absolute;bottom:56px;right:0;width:min(300px,calc(100vw - 36px));max-height:calc(100svh - 150px);overflow:auto;padding:14px 10px;border:1px solid #d5d8cc;border-radius:12px;background:#faf8f3;box-shadow:0 16px 50px #0002}
  .contents-sidebar.is-open .contents-nav{display:flex}
  .contents-nav>a{padding:9px 12px;font-size:15px}
  .contents-nav>a[aria-current]:before{left:-2px;top:7px;bottom:7px}
  .contents-subnav{padding-left:26px;font-size:14px}
}
@media(min-width:701px){
  .cover-overlay{transition:opacity .3s ease,visibility .3s}
  .cover-hero.is-recovery .cover-overlay{opacity:0;visibility:hidden;pointer-events:none}
}
@media(min-width:701px) and (max-width:1100px){
  .cover-play{width:34px;height:34px}
}
@media(min-width:701px) and (max-height:550px){
  .cover-hero{min-height:300px}
  .cover-masthead{padding-block:16px}
  .cover-copy{bottom:90px}
  .cover-copy h2{font-size:clamp(34px,9svh,52px)}
  .cover-description{margin-top:12px;font-size:14px}
  .cover-scroll{margin-top:14px;min-height:32px}
}
@media(max-width:700px){
  .article-layout{padding:48px 24px 80px}
  .project-heading h1{font-size:clamp(33px,6.8vw,44px);line-height:1.1;letter-spacing:-.025em;text-wrap:initial}
  .project-authors{font-size:16px;line-height:1.6;margin-top:24px}
  .project-affiliations{font-size:14px;display:flex;flex-direction:column;gap:3px;margin-top:18px}
  .project-heading{padding-bottom:28px}
  .article-content .section{padding-block:44px}
  .article-content #overview{padding-top:44px}
  .cover-hero{display:flex;flex-direction:column;aspect-ratio:auto;max-height:none;background:#0c1410}
  .cover-hero>video{position:relative;inset:auto;height:auto;aspect-ratio:16/9}
  .cover-shade{display:none}
  .cover-masthead{position:relative;inset:auto;order:-1;min-height:72px;padding:16px 24px;gap:20px}
  .cover-wordmark{font-size:23px}
  .cover-brand-dot{width:5px;height:5px;margin-left:8px}
  .cover-copy{position:relative;order:2;right:auto;bottom:auto;max-width:none;padding:28px 32px 40px;text-shadow:none}
  .cover-copy h2{font-size:clamp(40px,11.5vw,64px);line-height:1.02;letter-spacing:-.04em}
  .cover-description{margin-top:20px;font-size:15px;line-height:1.55;color:#d0d9cf}
  .cover-scroll{margin-top:23px;font-size:12px;gap:30px}
  .cover-play{width:34px;height:34px}
  .cover-play svg{width:14px;height:14px}
  .cover-topbar{padding:11px 18px;min-height:58px}
  .cover-topbar nav a{font-size:12px;padding:6px 10px}
  .cover-topbar-brand{font-size:17px}
  .cover-review-footer{padding-bottom:30px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.cover-topbar,.cover-overlay{transition:none}}

/* Source Serif 4 heading rhythm matches the Asena reference. */
.article-content h2.section-title{margin:0 0 20px;font:400 clamp(29px,2.7vw,36px)/1.14 var(--font);letter-spacing:-.015em;color:var(--ink);text-transform:none;text-wrap:balance}
.article-content .section-heading{margin-bottom:20px}
.article-content .section-heading h2.section-title{margin:0}
.article-content .twin-heading h2.section-title{margin-bottom:20px}
.article-content .recovery-heading h2.section-title,.article-content .skills-heading h2.section-title,.article-content .collection-heading h2.section-title{align-self:center}
.article-content .subsection-title{font:500 18px/1.3 var(--font);letter-spacing:0;color:var(--ink);text-transform:none}
.article-content .section-lead{margin:0 0 28px}
.article-content .section-lead strong{color:var(--ink);font-weight:600}
.project-heading h1 .title-avocado{display:inline-block;width:auto;height:1.08em;margin:0 .14em 0 0;vertical-align:-.17em}
@media(max-width:700px){body{font-size:17px;line-height:1.55}.article-content h2.section-title{font-size:29px}.article-content .subsection-title{font-size:18px}.article-content .section-description,.collection-intro,.twin-intro,.recovery-intro,.results-intro,.section-lead,.article-content .acknowledgements-section>p{font-size:17px;line-height:1.55}}

/* No one-word last lines in prose and captions (the longhand leaves nowrap elements alone). */
.article-content p,.article-content figcaption{text-wrap-style:pretty}

/* One vertical rhythm: every section has the same padding, so titles sit an even distance apart. */
.article-content .section,.article-content #overview,.article-content #recovery,.article-content #digital-twins>.section{padding-block:48px}
/* End matter: a hairline, then compact Citation and Acknowledgements. */
.article-content #citation{margin-top:0;padding-block:28px 20px;border-top:1px solid var(--line)}
.article-content #acknowledgements{padding-block:20px 72px}
.article-content #citation h2.section-title,.article-content #acknowledgements h2.section-title{margin-bottom:14px}
.article-content #citation .section-heading,.article-content #acknowledgements .section-heading{margin-bottom:14px}
.citation-code{padding:16px 20px;border-color:var(--line);background:#f3f2ea;color:#3f4a37;font-size:12.5px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
/* Each BibTeX line is its own block: a wrapped line hangs under its value instead of restarting at the margin. */
.citation-code .bib-line{display:block;padding-left:14ch;text-indent:-14ch}
@media(max-width:700px){
  .article-content .section,.article-content #overview,.article-content #recovery,.article-content #digital-twins>.section{padding-block:36px}
  .article-content #citation{padding-block:22px 16px}
  .article-content #acknowledgements{padding-block:16px 56px}
  .citation-code{padding:14px;font-size:11px}
  .citation-code .bib-line{padding-left:8ch;text-indent:-8ch}
  .media-tag{font-size:10px;letter-spacing:0}
}

/* Keep all three project shortcuts readable on narrow screens. */
@media(max-width:600px){
  html{scroll-padding-top:112px}
  .cover-topbar{flex-wrap:wrap;gap:10px;padding:10px 18px}
  .cover-topbar nav{display:grid;grid-template-columns:.7fr 1.1fr 1.5fr;gap:6px;width:100%}
  .cover-topbar nav a{justify-content:center;gap:4px;padding:6px;font-size:11px;white-space:nowrap}
  .cover-topbar nav a>span[aria-hidden]{display:none}
}

@media(min-width:701px) and (max-height:420px){.cover-hero{min-height:400px}.cover-copy h2{font-size:32px}.cover-copy .cover-description{display:none}.cover-copy .cover-scroll{margin-top:12px}}
