/* Agentic-WAM — a media-first academic project page. */
:root {
  --ink: #192337;
  --muted: #637086;
  --blue: #315fca;
  --blue-dark: #234ba8;
  --teal: #258375;
  --line: #e4e9f0;
  --tint: #f7f9fc;
  --width: 1100px;
  --serif: "Times New Roman", Times, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--serif); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, h4, h5, h6, strong, b, th,
.nav-brand, .nav-links a, .publication-authors, .placeholder-title, .teaser-title,
.media-variant-tabs button, .caption-tag, .comparison-label, .video-speed, .footer-brand { font-family: var(--sans); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
button { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:enabled, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #5c87df; outline-offset: 5px; }
[hidden] { display: none !important; }
.page-width { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.icon { display: inline-block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.svg-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 20; background: #fff; padding: 10px 16px; border: 1px solid var(--blue); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 96%); backdrop-filter: blur(12px); }
.site-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 32px; min-height: 68px; }
.nav-brand { display: inline-flex; align-items: center; justify-self: start; gap: 9px; font-size: 15px; font-weight: 750; letter-spacing: -.4px; color: var(--ink); white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 29px; height: 29px; background: #edf2ff; border-radius: 8px; color: var(--blue); }
.brand-icon .icon { width: 21px; height: 21px; stroke-width: 2; }
.nav-links { display: flex; justify-self: center; gap: 27px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 12px; font-weight: 550; white-space: nowrap; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--blue); }
.nav-spacer { width: 87px; justify-self: end; }
.publication-header { padding-block: 59px 39px; text-align: center; }
.project-name { display: block; margin-bottom: 15px; color: var(--blue); font-size: clamp(44px, 5.2vw, 66px); font-weight: 780; letter-spacing: -3px; line-height: 1.12; }
.paper-title { display: block; max-width: 900px; margin-inline: auto; font-size: clamp(26px, 3vw, 37px); font-weight: 650; line-height: 1.24; letter-spacing: -1px; }
.publication-authors { margin-top: 24px; color: #36445d; font-size: 16px; font-weight: 500; }
.review-status { margin-top: 3px; color: #7d8797; font-size: 12px; }
.teaser-section { padding-bottom: 52px; }
.media-frame { position: relative; display: grid; place-items: center; width: 100%; overflow: hidden; isolation: isolate; border: 1px solid #dfe6ef; border-radius: 10px; background-color: #f0f4f9; aspect-ratio: 16 / 10; }
.media-frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#8098bd0a 1px, transparent 1px), linear-gradient(90deg, #8098bd0a 1px, transparent 1px); background-size: 32px 32px; }
.media-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px 22px; width: 100%; text-align: center; }
.placeholder-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 7px; border: 1px solid #d4ddea; border-radius: 50%; background: #ffffffa8; color: #7890b3; }
.placeholder-icon .icon { width: 20px; height: 20px; }
.placeholder-title { color: #61758f; font-size: 14px; line-height: 1.4; font-weight: 550; }
.placeholder-note { color: #738299; font-size: 10px; letter-spacing: .2px; }
.frame-index { position: absolute; left: 16px; top: 13px; color: #7c8ea5; font-size: 10px; font-family: var(--serif); }
.teaser-frame { aspect-ratio: 2.3 / 1; background: #152337; border: 1px solid #27384e; border-radius: 12px; color: #fff; }
.teaser-frame::before { background-image: linear-gradient(#c2d6f406 1px, transparent 1px), linear-gradient(90deg, #c2d6f406 1px, transparent 1px); background-size: 48px 48px; }
.teaser-topline, .teaser-bottomline { position: absolute; left: 28px; right: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.teaser-topline { top: 20px; color: #b4c5d9; font-size: 9px; letter-spacing: 1.6px; }
.teaser-topline > span:first-child { display: flex; align-items: center; gap: 8px; }
.media-kind { border: 1px solid #3a4b62; border-radius: 4px; padding: 4px 8px; font-size: 9px; letter-spacing: .2px; color: #a6b8cf; }
.teaser-placeholder { gap: 13px; padding: 64px 24px 70px; }
.teaser-placeholder .placeholder-icon { width: 40px; height: 40px; margin: 0 0 1px; border-color: #4b607b; background: #25364a; color: #d6e2f4; }
.teaser-title { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.2; letter-spacing: -.9px; font-weight: 550; }
.teaser-title > span { color: #95cbbc; }
.teaser-placeholder .placeholder-note { color: #b0bfd1; font-size: 11px; }
.teaser-bottomline { bottom: 20px; justify-content: flex-start; padding-top: 15px; border-top: 1px solid #ffffff14; color: #b3c2d5; font-size: 10px; }
.teaser-bottomline > span:not(.teaser-bottom-note) { border: 1px solid #ffffff19; border-radius: 4px; padding: 3px 9px; }
.teaser-bottom-note { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.teaser-bottom-note .icon { width: 15px; height: 15px; }
figcaption { color: var(--muted); font-size: 12px; line-height: 1.7; }
.section-tint { background: var(--tint); border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
.abstract-section { padding-block: 45px; }
.abstract-layout { max-width: 900px; }
.abstract-layout > div:first-child { margin-bottom: 24px; text-align: center; }
h2 { color: var(--ink); font-size: clamp(25px, 2.6vw, 32px); font-weight: 650; letter-spacing: -.85px; line-height: 1.25; }
.abstract-content > p { color: #4c5b72; font-size: 15px; line-height: 1.95; text-align: justify; }
.content-section { padding-block: 67px; }
.section-heading { max-width: 790px; margin: 0 auto 40px; text-align: center; }
.framework-figure { text-align: center; }
.figure-button { position: relative; display: block; width: 100%; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in !important; }
.figure-button > img { display: block; width: 100%; height: auto; }
.framework-figure > figcaption { max-width: 850px; margin: 17px auto 0; }
.framework-heading { margin-bottom: 62px; }
.pipeline-heading { max-width: 100%; margin-top: 52px; margin-bottom: 56px; }
.pipeline-heading h2 { font-size: clamp(10px, 2.6vw, 32px); white-space: nowrap; }
.pipeline-figure { margin-top: 0; }
.rsi-section { overflow: hidden; background: #fff; border-top: 1px solid #ece9df; }
.rsi-section-inner { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.rsi-embed-card { overflow: hidden; border: 1px solid #dedbd1; border-radius: 20px; background: #fff; box-shadow: 0 18px 55px rgb(33 31 20 / 9%); }
.rsi-embed { display: block; width: 100%; height: clamp(680px, 82vh, 960px); border: 0; background: #fff; }
.media-grid { display: grid; gap: 25px; }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.simulation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.simulation-grid .media-frame,
.simulation-grid .media-frame.has-media { aspect-ratio: 4 / 3; }
.real-task-grid { column-gap: 28px; row-gap: 36px; }
.task-demo { min-width: 0; }
.task-demo-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.task-demo-heading h3 { margin: 0; font-size: 18px; }
.media-variant-tabs { display: flex; gap: 5px; margin-bottom: 12px; }
.media-variant-tabs button { padding: 5px 15px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #728198; font-size: 11px; font-weight: 550; line-height: 1.5; }
.media-variant-tabs button[aria-selected="true"] { background: #edf3ff; border-color: #cedbf4; color: var(--blue); }
.media-variant-tabs button:hover { border-color: #9db5e4; }
.single-variant-label { display: flex; align-items: center; min-height: 29px; margin-bottom: 12px; color: #728198; font-size: 11px; }
.media-variant-panel figcaption { margin-top: 13px; font-size: 12px; }
.media-card { min-width: 0; }
.media-card figcaption { padding: 17px 2px 0; }
.caption-tag { display: block; margin-bottom: 5px; color: var(--blue); font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.2px; }
h3 { margin-bottom: 5px; color: #2b3951; font-size: 15px; font-weight: 600; letter-spacing: -.15px; line-height: 1.5; }
.media-card figcaption p { font-size: 12px; }
.evolution-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 30px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.evolution-steps li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.step-number { display: grid; place-items: center; width: 29px; height: 29px; flex-shrink: 0; border: 1px solid #dce5f5; border-radius: 50%; color: var(--blue); font-size: 10px; }
.evolution-steps strong { display: block; font-size: 12px; font-weight: 600; }
.evolution-steps div > span { display: block; font-size: 9px; color: var(--muted); }
.evolution-steps li > .icon { width: 16px; height: 16px; color: #aab6c8; margin-left: auto; }
.comparison-label { display: flex; gap: 8px; align-items: center; margin: 0 0 11px; font-size: 12px; font-weight: 550; }
.comparison-dot { width: 7px; height: 7px; border-radius: 50%; }
.comparison-dot.before { background: #99a5b8; }
.comparison-dot.after { background: #439f8c; }
.comparison-grid .media-frame { aspect-ratio: 16 / 9; }
.accent-frame { background-color: #f0f7f5; border-color: #dbe9e3; }
.accent-frame .placeholder-icon { color: #6c978c; border-color: #ccdfd7; }
.accent-frame .placeholder-title { color: #5f8178; }
.accent-frame .placeholder-note { color: #6e877f; }
.wide-frame { aspect-ratio: 2.4 / 1; }
.wide-frame .placeholder-title { font-size: 20px; font-weight: 500; letter-spacing: -.3px; }
.wide-frame .placeholder-icon { width: 52px; height: 52px; }
.frame-corner-label { position: absolute; top: 22px; left: 24px; color: #8190a6; font-size: 9px; letter-spacing: 1.4px; }
.sequence-caption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; padding-top: 21px; color: #6c7b91; font-size: 11px; }
.sequence-caption .icon { width: 15px; height: 15px; color: #aab6c8; }
.environment-tag { padding: 2px 6px; border-radius: 4px; background: #edf1f9; color: #62799f; font-family: var(--serif); font-size: 8px; letter-spacing: .5px; }
.environment-tag.real { background: #eaf5f0; color: #3f8a73; }
.image-frame { background-color: #fff; aspect-ratio: 16 / 10; }
.image-frame .placeholder-icon { border-radius: 10px; }
.media-frame.has-media { background: #101a2a; aspect-ratio: 16 / 9; }
.media-frame.has-media::before { display: none; }
.media-frame.has-media > :not(.loaded-media):not(.video-controls) { display: none; }
.loaded-media { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.video-controls { position: absolute; z-index: 2; inset: auto 12px 7px; padding: 1px 7px 2px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 6px; background: rgb(16 22 30 / 58%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; text-align: left; box-shadow: 0 2px 10px rgb(0 0 0 / 10%); transition: opacity .2s ease, transform .2s ease; }
.is-playing:not(.controls-visible) .video-controls:not(:hover):not(:has(:focus-visible)):not(:has(select:focus)) { opacity: 0; transform: translateY(5px); pointer-events: none; }
.video-control-row { display: flex; align-items: center; gap: 5px; min-height: 20px; }
.video-controls button { display: grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: inherit; cursor: pointer; transition: background .15s ease; }
.video-controls button svg { width: 14px; height: 14px; }
.video-controls button[hidden] { display: none; }
.video-controls button:hover { background: rgb(255 255 255 / 12%); }
.video-time { flex-shrink: 0; color: rgb(255 255 255 / 78%); font-size: 10px; font-weight: 450; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; letter-spacing: .1px; }
.video-volume-control { display: flex; align-items: center; flex-shrink: 0; gap: 2px; }
.video-volume { display: block; appearance: none; width: 48px; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.video-volume::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, #fff var(--volume, 100%), rgb(255 255 255 / 25%) var(--volume, 100%)); }
.video-volume::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, #fff var(--volume, 100%), rgb(255 255 255 / 25%) var(--volume, 100%)); }
.video-volume::-webkit-slider-thumb { appearance: none; width: 7px; height: 7px; margin-top: -2.5px; border-radius: 50%; background: #fff; }
.video-volume::-moz-range-thumb { width: 7px; height: 7px; border: 0; border-radius: 50%; background: #fff; }
.video-speed { flex-shrink: 0; appearance: none; width: 36px; height: 20px; padding: 0 2px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 5px; background: rgb(255 255 255 / 5%); color: #fff; font-family: inherit; font-size: 10px; font-weight: 550; text-align: center; text-align-last: center; cursor: pointer; transition: background .15s ease; }
.video-speed:hover { background: rgb(255 255 255 / 15%); }
.video-speed option { background: #18202c; color: #fff; }
.video-seek { display: block; flex: 1; min-width: 20px; appearance: none; width: 0; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.video-seek::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, #fff var(--progress, 0%), rgb(255 255 255 / 25%) var(--progress, 0%)); }
.video-seek::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, #fff var(--progress, 0%), rgb(255 255 255 / 25%) var(--progress, 0%)); }
.video-seek::-webkit-slider-thumb { appearance: none; width: 7px; height: 7px; margin-top: -2.5px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s ease; }
.video-seek::-moz-range-thumb { width: 7px; height: 7px; border: 0; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s ease; }
.video-controls:hover .video-seek::-webkit-slider-thumb, .video-seek:focus-visible::-webkit-slider-thumb { opacity: 1; }
.video-controls:hover .video-seek::-moz-range-thumb, .video-seek:focus-visible::-moz-range-thumb { opacity: 1; }
.video-seek:disabled { cursor: default; opacity: .5; }
.video-controls :focus-visible { outline: 2px solid #aacaff; outline-offset: 2px; }
.custom-video-player:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; background: #000; }
.custom-video-player:fullscreen .video-controls { inset: auto 20px 16px; max-width: 720px; margin-inline: auto; padding: 3px 10px 5px; }
.custom-video-player:fullscreen .video-control-row { min-height: 26px; }
.custom-video-player:fullscreen .video-time { font-size: 12px; }
@media (pointer: coarse) {
  .video-controls button { width: 28px; height: 28px; }
  .video-speed { height: 28px; }
  .video-seek { height: 28px; }
  .video-volume { width: 42px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-controls { transition: none; }
}
.image-frame.has-media { background: #fff; }
.image-frame.has-media .loaded-media { position: static; height: auto; }
.image-frame.has-media { display: block; aspect-ratio: auto; }
.site-footer { padding-block: 43px 35px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 7px; color: #53647e; font-size: 15px; font-weight: 650; }
.footer-brand .icon { color: var(--blue); }
.site-footer > p { margin-top: 7px; color: #8490a2; font-size: 11px; }
.site-footer p.template-credit { margin-top: 23px; font-size: 10px; line-height: 1.9; }
.template-credit a { color: #687e9f; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #c6d0df; }
.scroll-to-top { position: fixed; right: 25px; bottom: 25px; z-index: 9; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #647895; box-shadow: 0 3px 14px #1923370a; }
.figure-dialog { width: min(1450px, 96vw); max-width: 96vw; max-height: 92vh; padding: 40px 14px 14px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 20px 70px #0004; }
.figure-dialog::backdrop { background: #101a2acc; backdrop-filter: blur(4px); }
.figure-dialog > img { display: block; width: 100%; height: auto; max-height: calc(92vh - 60px); object-fit: contain; }
.dialog-close { position: absolute; top: 8px; right: 9px; display: grid; place-items: center; width: 29px; height: 29px; background: #f3f5f9; border: none; border-radius: 50%; }
@media (max-width: 1000px) {
  .simulation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-spacer { display: none; }
  .site-nav { gap: 20px; }
  .nav-links { gap: 20px; }
  .teaser-frame { aspect-ratio: 2 / 1; }
  .evolution-steps { gap: 12px; }
  .evolution-steps li { gap: 7px; }
  .evolution-steps li > .icon { display: none; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 124px; }
  .page-width { width: calc(100% - 40px); }
  .site-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding-block: 12px 11px; }
  .nav-brand { font-size: 14px; }
  .nav-links { justify-content: space-between; gap: 15px; width: 100%; }
  .nav-links a { font-size: 11px; }
  .publication-header { padding-block: 43px 31px; }
  .project-name { font-size: 48px; letter-spacing: -2.4px; margin-bottom: 16px; }
  .paper-title { max-width: 580px; font-size: 28px; letter-spacing: -.75px; line-height: 1.3; }
  .desktop-break { display: none; }
  .publication-authors { margin-top: 22px; font-size: 14px; }
  .teaser-frame { aspect-ratio: auto; min-height: 340px; }
  .teaser-topline, .teaser-bottomline { left: 19px; right: 19px; }
  .teaser-topline { font-size: 8px; letter-spacing: .9px; }
  .teaser-bottomline { justify-content: center; font-size: 9px; gap: 8px; }
  .teaser-bottom-note { display: none; }
  .teaser-title { font-size: 30px; }
  .teaser-section { padding-bottom: 34px; }
  .abstract-section { padding-block: 33px; }
  .abstract-content > p { font-size: 14px; text-align: left; }
  .content-section { padding-block: 44px; }
  .section-heading { margin-bottom: 32px; }
  h2 { font-size: 26px; letter-spacing: -.65px; }
  .three-columns, .two-columns { grid-template-columns: 1fr; }
  .simulation-grid { grid-template-columns: 1fr; }
  .media-grid { gap: 27px; }
  .media-frame { aspect-ratio: 16 / 9; }
  .teaser-frame { aspect-ratio: auto; }
  .media-card figcaption { padding-top: 13px; }
  .evolution-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 13px; padding-block: 19px; }
  .evolution-steps li { gap: 9px; }
  .evolution-steps div > span { font-size: 9px; }
  .wide-frame { min-height: 250px; aspect-ratio: auto; }
  .wide-frame .placeholder-title { max-width: 265px; font-size: 19px; }
  .frame-corner-label { top: 17px; left: 17px; font-size: 8px; }
  .sequence-caption { gap: 8px 10px; font-size: 9px; }
  .sequence-caption .icon { width: 12px; height: 12px; }
  .framework-figure > figcaption { font-size: 11px; }
  .framework-heading { margin-bottom: 48px; }
  .pipeline-heading { margin-top: 40px; margin-bottom: 44px; }
  .rsi-section-inner { width: calc(100% - 20px); }
  .rsi-embed-card { border-radius: 14px; }
  .rsi-embed { height: clamp(620px, 78vh, 760px); }
  .figure-dialog > img { min-width: 1000px; max-height: none; }
  .scroll-to-top { right: 14px; bottom: 14px; width: 36px; height: 36px; }
  .site-footer { padding-block: 32px; }
}
@media (max-width: 380px) {
  .page-width { width: calc(100% - 30px); }
  .project-name { font-size: 42px; }
  .paper-title { font-size: 25px; }
  .nav-links { gap: 8px; }
  .nav-links a { font-size: 10px; }
  .teaser-topline { letter-spacing: .3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
