:root {
  --ink: #111827;
  --muted: #5b6474;
  --soft: #f2f5f9;
  --line: #dfe5ed;
  --blue: #1463ff;
  --cyan: #25bfd3;
  --orange: #ff8f3d;
  --navy: #07111f;
  --white: #fff;
  --radius: 26px;
  --shadow: 0 24px 70px rgba(20, 34, 58, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "DM Sans", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
button, a { font: inherit; }
a, button { color: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(255,255,255,.86); border-color: rgba(215,222,232,.9); box-shadow: 0 8px 30px rgba(22,30,45,.06); backdrop-filter: blur(18px); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: .06em; text-decoration: none; }
.brand-mark, .footer-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #fff; background: linear-gradient(145deg,var(--blue),var(--cyan)); font-family: "Manrope",sans-serif; font-weight: 800; box-shadow: 0 7px 18px rgba(20,99,255,.25); }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { position: relative; color: #4b5565; text-decoration: none; font-weight: 600; font-size: .91rem; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 100%; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-code { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 700; background: #fff; }
.nav-code img { width: 16px; height: 16px; }

.hero { position: relative; padding: 132px 0 72px; overflow: hidden; background: radial-gradient(circle at 50% -15%,rgba(20,99,255,.12),transparent 35%),linear-gradient(#fbfdff,#f6f8fb); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .34; background-image: linear-gradient(rgba(20,99,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(20,99,255,.055) 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom,black,transparent 75%); }
.hero-shell { position: relative; z-index: 1; }
.hero-copy { width: min(1040px,100%); margin-inline: auto; text-align: center; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .6; pointer-events: none; will-change: transform; }
.hero-orb-one { width: 300px; height: 300px; top: 15%; right: -160px; background: radial-gradient(circle at 30% 30%,rgba(37,191,211,.45),rgba(20,99,255,.05)); transform: translate3d(var(--orb-x,0),var(--orb-y,0),0); }
.hero-orb-two { width: 220px; height: 220px; left: -130px; bottom: 4%; background: radial-gradient(circle at 50% 50%,rgba(255,143,61,.25),rgba(255,143,61,0)); transform: translate3d(var(--orb-x-reverse,0),var(--orb-y-reverse,0),0); }
.venue-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #d9e0eb; border-radius: 999px; color: #445065; background: rgba(255,255,255,.8); font-weight: 600; font-size: .78rem; letter-spacing: .03em; box-shadow: 0 6px 24px rgba(20,34,58,.05); }
.venue-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,143,61,.13); }
.hero-kicker { margin: 26px 0 8px; color: var(--blue); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; font-size: .77rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope",sans-serif; letter-spacing: -.035em; }
h1 { margin-bottom: 23px; font-size: clamp(2.55rem,4vw,4rem); line-height: 1.04; font-weight: 800; }
h1 span { color: var(--blue); }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 16px; max-width: 920px; margin: 0 auto 12px; font-size: .96rem; font-weight: 600; color: #364155; }
.authors > * { white-space: nowrap; }
.authors a { color: #0759dd; text-decoration: none; border-bottom: 1px solid rgba(20,99,255,.2); }
.authors a:hover { border-color: currentColor; }
sup { font-size: .67em; vertical-align: super; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 22px; color: var(--muted); font-size: .84rem; }
.affiliations p { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 17px; border: 1px solid var(--line); border-radius: 13px; text-decoration: none; font-weight: 700; font-size: .9rem; transition: transform .2s,box-shadow .2s,border-color .2s; }
.button img { width: 17px; height: 17px; }
.button-dark { color: #fff; background: var(--navy); border-color: var(--navy); box-shadow: 0 10px 25px rgba(7,17,31,.16); }
.button-dark img { filter: invert(1); }
.button-light { background: rgba(255,255,255,.78); }
.button:not(.button-disabled):hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,34,58,.1); border-color: #c9d2df; }
.button-disabled { color: #717c8d; background: #eef1f5; cursor: not-allowed; }
.button-disabled img { opacity: .55; }
.button-note { padding-left: 8px; border-left: 1px solid #ccd3dd; font-size: .72rem; font-weight: 600; }
.section { padding: 82px 0; scroll-margin-top: 60px; }
.section-tinted { background: var(--soft); }
.section-dark { color: #fff; background: var(--navy); }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading .eyebrow, .eyebrow { margin-bottom: 10px; color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { margin-bottom: 13px; font-size: clamp(2rem,3.15vw,3.05rem); line-height: 1.08; }
.section-heading > p:last-child { color: var(--muted); font-size: 1rem; }
.split-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; max-width: none; align-items: end; }
.split-heading h2 { margin-bottom: 0; }
.split-heading > p:last-child { margin-bottom: 3px; }
.section-dark .eyebrow { color: #75d9e4; }
.section-dark .section-heading > p { color: #aeb8c8; }

.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.video-feature, .abstract-card, .figure-card, .environment-card, .sim-rollouts, .result-card, .ablation-grid, .citation-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.video-feature { align-self: start; overflow: hidden; background: #090e17; box-shadow: var(--shadow); }
.video-feature video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #05080e; }
.media-topline { display: flex; justify-content: space-between; padding: 13px 17px; color: #d9e0e9; font-size: .78rem; font-weight: 600; }
.abstract-card { padding: 25px 27px; background: linear-gradient(145deg,#fff,#f8fbff); }
.abstract-card p:not(.card-index) { margin-bottom: 12px; color: #4d586a; font-size: .85rem; line-height: 1.52; }
.abstract-card strong { color: var(--ink); }
.card-index { margin-bottom: 12px; color: var(--blue); font-family: "Manrope",sans-serif; font-weight: 800; }
.keyword-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.keyword-list span { padding: 4px 8px; border: 1px solid #dce4ef; border-radius: 999px; color: #536074; background: #fff; font-size: .66rem; font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.metrics > div { display: flex; min-height: 118px; flex-direction: column; justify-content: center; padding: 20px 25px; border-right: 1px solid var(--line); background: #fff; }
.metrics > div:last-child { border-right: 0; }
.metrics strong { color: var(--blue); font-family: "Manrope",sans-serif; font-size: 2.1rem; line-height: 1.1; letter-spacing: -.05em; }
.metrics small { font-size: .46em; letter-spacing: 0; }
.metrics span { margin-top: 7px; color: var(--muted); font-size: .78rem; line-height: 1.35; }

.figure-button { position: relative; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.figure-card { padding: 25px; overflow: hidden; }
.method-card { position: relative; }
.method-card img { width: 100%; }
.zoom-hint { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; border-radius: 9px; color: #fff; background: rgba(7,17,31,.78); font-size: .72rem; font-weight: 700; opacity: 0; transform: translateY(5px); transition: opacity .2s,transform .2s; }
.figure-button:hover .zoom-hint { opacity: 1; transform: none; }
.method-explainer { margin-top: 14px; border-top: 1px solid var(--line); }
.method-explainer summary { display: flex; width: max-content; align-items: center; gap: 8px; margin-top: 13px; color: #465268; cursor: pointer; list-style: none; font-size: .76rem; font-weight: 700; }
.method-explainer summary::-webkit-details-marker { display: none; }
.method-explainer summary span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: var(--navy); background: #75d9e4; font-family: Georgia,serif; font-weight: 800; }
.method-explainer-panel { margin-top: 11px; padding: 15px 17px; border-radius: 14px; color: #516076; background: #f3f7fc; font-size: .8rem; line-height: 1.55; }
.method-explainer-panel strong { display: block; margin-bottom: 4px; color: var(--ink); }
.method-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 20px; }
.method-steps article { position: relative; padding: 29px; border: 1px solid var(--line); border-radius: 21px; background: rgba(255,255,255,.72); overflow: hidden; }
.method-steps article::after { content: ""; position: absolute; width: 80px; height: 80px; right: -30px; top: -30px; border-radius: 50%; background: rgba(20,99,255,.06); }
.method-steps article > span { color: var(--blue); font-family: "Manrope",sans-serif; font-size: .74rem; font-weight: 800; }
.method-steps h3 { margin: 20px 0 9px; font-size: 1.15rem; }
.method-steps p { margin: 0; color: var(--muted); font-size: .88rem; }
.environment-card { padding: 25px; }
.card-heading { display: flex; justify-content: space-between; gap: 25px; align-items: end; padding: 4px 5px 22px; }
.card-heading span { color: var(--blue); font-size: .71rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.card-heading h3 { margin: 5px 0 0; font-size: 1.38rem; }
.card-heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.sim-rollouts { margin-top: 24px; padding: 25px; overflow: hidden; }
.sim-viewer { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.75fr); gap: 18px; align-items: stretch; }
.sim-stage { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid #1f2c3f; border-radius: 18px; background: var(--navy); }
.sim-stage video { width: 100%; aspect-ratio: 8/3; object-fit: contain; background: #03070d; }
.sim-now-playing { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 15px; color: #fff; }
.sim-now-playing span { color: #8291a6; font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sim-now-playing strong { font-family: "Manrope",sans-serif; font-size: .86rem; }
.sim-task-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.sim-task-picker button { display: flex; min-width: 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; color: #39465a; background: #f7f9fc; cursor: pointer; text-align: left; font-size: .78rem; font-weight: 700; line-height: 1.25; transition: color .2s,background .2s,border-color .2s,transform .2s; }
.sim-task-picker button span { color: #8a96a8; font-size: .63rem; letter-spacing: .08em; }
.sim-task-picker button:hover { transform: translateY(-1px); border-color: #bfcce0; }
.sim-task-picker button[aria-pressed="true"] { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 8px 22px rgba(20,99,255,.2); }
.sim-task-picker button[aria-pressed="true"] span { color: #cfe0ff; }
.result-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 24px; }
.result-card { padding: 25px; }
.result-card img { width: 100%; }
.ablation-grid { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 35px; margin-top: 24px; padding: 31px; background: linear-gradient(135deg,#f8fbff,#fff); }
.ablation-copy h3 { margin-bottom: 13px; font-size: 1.55rem; }
.ablation-copy p:last-child { margin: 0; color: var(--muted); font-size: .9rem; }

.demo-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 7px; border: 1px solid #263346; border-radius: 18px; background: #0d1929; }
.demo-tabs button { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border: 0; border-radius: 12px; color: #aeb8c8; background: transparent; cursor: pointer; font-weight: 700; transition: color .2s,background .2s; }
.demo-tabs button strong { font-size: .78rem; }
.demo-tabs button[aria-selected="true"] { color: #fff; background: var(--blue); box-shadow: 0 10px 28px rgba(20,99,255,.25); }
.demo-panel { margin-top: 22px; animation: panel-in .28s ease; }
.demo-panel[hidden] { display: none; }
.demo-intro { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-bottom: 18px; padding: 0 4px; }
.demo-intro span { color: #75d9e4; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.demo-intro p { margin: 0; color: #aeb8c8; font-size: .88rem; }
.erase-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.demo-card, .paired-trial { overflow: hidden; border: 1px solid #26364b; border-radius: 22px; background: #0b1726; }
.demo-label, .trial-heading { display: flex; justify-content: space-between; padding: 13px 16px; color: #dce4ee; font-size: .75rem; font-weight: 700; }
.demo-label span:last-child, .trial-heading small { color: #8090a5; font-weight: 500; }
.demo-card video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #03070d; }
.trial-stack { display: grid; gap: 18px; }
.video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #26364b; }
.video-pair > div { position: relative; background: #07111f; }
.video-pair > div > span { position: absolute; z-index: 2; left: 11px; top: 10px; padding: 4px 8px; border-radius: 7px; color: #fff; background: rgba(7,17,31,.72); backdrop-filter: blur(5px); font-size: .68rem; font-weight: 700; pointer-events: none; }
.video-pair video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #03070d; }

.citation-shell { display: grid; grid-template-columns: .6fr 1.4fr; gap: 70px; align-items: start; }
.citation-card { overflow: hidden; border-color: #ccd5e2; background: #0a1422; box-shadow: var(--shadow); }
.citation-topline { display: flex; align-items: center; justify-content: space-between; padding: 12px 17px; border-bottom: 1px solid #253247; color: #b9c4d4; font-size: .78rem; font-weight: 700; }
.citation-topline button { padding: 6px 10px; border: 1px solid #33435a; border-radius: 8px; color: #dfe7f2; background: #132036; cursor: pointer; font-size: .75rem; transition: background .2s; }
.citation-topline button:hover { background: #1d2f4d; }
pre { margin: 0; padding: 28px; overflow-x: auto; color: #c9d7e9; font: .82rem/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; white-space: pre-wrap; }

footer { padding: 48px 0; color: #97a4b6; background: #060d17; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 40px; align-items: center; font-size: .81rem; }
.footer-grid > div:first-child { display: flex; align-items: center; gap: 13px; }
.footer-grid p { margin: 0; }
.footer-mark { flex: 0 0 auto; width: 34px; height: 34px; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #d5deea; text-decoration: none; }
.footer-links a:hover { color: #fff; }

.lightbox { width: min(1200px,calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 20px; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.35); }
.lightbox::backdrop { background: rgba(3,8,16,.82); backdrop-filter: blur(5px); }
.lightbox img { width: 100%; max-height: calc(100vh - 72px); object-fit: contain; }
.lightbox > button { position: fixed; top: 18px; right: 22px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: rgba(0,0,0,.55); cursor: pointer; font-size: 1.45rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease,transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
:focus-visible { outline: 3px solid rgba(20,99,255,.45); outline-offset: 3px; }

@media (max-width: 980px) {
  .hero { padding-top: 118px; }
  .hero-copy { max-width: 800px; }
  .overview-grid, .citation-shell { grid-template-columns: 1fr; }
  .abstract-card { padding: 28px; }
  .split-heading { grid-template-columns: 1fr; gap: 16px; }
  .split-heading > p:last-child { max-width: 720px; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .metrics > div:nth-child(2) { border-right: 0; }
  .metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ablation-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px,1180px); }
  .nav { height: 64px; }
  .nav-links { display: none; }
  .nav-code { margin-left: auto; }
  .hero { min-height: auto; padding: 110px 0 80px; }
  h1 { font-size: clamp(2.25rem,11vw,3.3rem); }
  .authors { font-size: .9rem; }
  .hero-actions .button { flex: 1 1 calc(50% - 8px); }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 32px; }
  .overview-grid { gap: 16px; }
  .metrics { margin-top: 16px; }
  .metrics > div { min-height: 135px; padding: 20px; }
  .metrics strong { font-size: 2rem; }
  .figure-card, .environment-card, .result-card { padding: 14px; border-radius: 19px; }
  .sim-rollouts { padding: 14px; border-radius: 19px; }
  .sim-viewer { grid-template-columns: 1fr; }
  .sim-task-picker { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .method-steps { grid-template-columns: 1fr; }
  .method-steps article { padding: 23px; }
  .result-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .ablation-grid { padding: 22px; gap: 18px; margin-top: 16px; }
  .demo-tabs { grid-template-columns: 1fr; }
  .demo-tabs button { padding: 13px 15px; }
  .demo-intro { display: block; }
  .demo-intro p { margin-top: 7px; }
  .erase-grid, .video-pair { grid-template-columns: 1fr; }
  .citation-shell { gap: 10px; }
  pre { padding: 21px; font-size: .72rem; }
}

@media (max-width: 460px) {
  .venue-pill { font-size: .68rem; }
  .hero-actions .button { flex-basis: 100%; }
  .affiliations { display: block; }
  .metrics { grid-template-columns: 1fr; }
  .metrics > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics > div:nth-child(3) { border-bottom: 1px solid var(--line); }
  .metrics > div:last-child { border-bottom: 0; }
  .card-heading { display: block; }
  .card-heading p { margin-top: 8px; }
  .sim-task-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-orb { transform: none !important; }
}
