:root {
  --ink: #28232f;
  --muted: #696171;
  --purple: #7046ad;
  --deep: #533280;
  --line: #e2dce9;
  --lilac: #f1eafa;
  --paper: #fff;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.7 var(--serif); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: var(--serif); font-size: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .35; cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #9a71cc; outline-offset: 4px; }
img, video { display: block; max-width: 100%; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, p { margin-top: 0; }
h2 { margin-bottom: 0; font-size: 34px; font-weight: 700; line-height: 1.25; letter-spacing: -.6px; }
h3 { font-weight: 700; }
::selection { background: #e0d0f4; }
.section-wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.logo-window { position: relative; display: block; aspect-ratio: 2089 / 505; overflow: hidden; width: 156px; flex-shrink: 0; }
.logo-window img { position: absolute; width: 102.54%; max-width: none; height: auto; top: -23.762%; left: -1.484%; }
.site-header { height: 82px; padding-inline: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fffffff2; backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.site-header nav { display: flex; gap: 30px; font-size: 15px; font-weight: 700; }
.site-header a:hover { color: var(--purple); }
.hero { padding-top: 70px; padding-bottom: 48px; display: grid; grid-template-columns: .85fr 1.55fr; gap: 42px; align-items: center; }
h1.logo-window { width: min(100%, 370px); margin: 0 0 26px; }
.hero-title { font-size: clamp(25px, 2.3vw, 32px); font-weight: 700; line-height: 1.32; margin-bottom: 20px; letter-spacing: -.45px; }
.hero-summary { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 350px; margin-bottom: 24px; }
.hero-summary strong { color: var(--purple); }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; }
.button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; background: #fff; }
.button:hover:not(.disabled) { background: var(--lilac); border-color: #cbb8e1; }
.button small { font-size: 10px; font-weight: 400; }
.button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.button.disabled { background: #f4f0f9; color: #715887; cursor: default; }
.hero-demo { min-width: 0; }
.promo-frame { aspect-ratio: 12 / 5 !important; background: #faf8fd !important; border: 1px solid #ece6f3; border-radius: 5px !important; }
#promo-player .pair-controls { padding-inline: 4px; }
.authors { padding: 10px 0 38px; border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.author-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; color: var(--ink); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.authors sup { font-size: 9px; margin-left: 2px; }
.authors p { margin-bottom: 7px; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 15px 38px; margin-top: 20px; }
.affiliation { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.affiliation img { flex-shrink: 0; object-fit: contain; }
.affiliation .hkust-logo { width: 20px; height: 34px; }
.affiliation .ath-logo { width: 24px; height: 36px; }
section[id] { scroll-margin-top: 24px; }
.idea, .studies { padding-block: 76px; }
.section-intro { margin-bottom: 30px; }
.intro-copy { font-size: 17px; line-height: 1.8; margin: 19px 0 0; max-width: 1060px; color: var(--muted); }
.intro-copy strong { color: var(--ink); }
.idea-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin: 32px 0 30px; }
.idea-principles article { border-top: 2px solid #dacde9; padding-top: 19px; }
.idea-principles h3 { font-size: 20px; line-height: 1.35; margin-bottom: 10px; color: var(--deep); }
.idea-principles p { font-size: 15px; line-height: 1.8; margin: 0; color: var(--muted); }
.idea-principles strong { color: var(--ink); }
.method-figure { margin: 0; background: white; border: 1px solid var(--line); padding: 23px 22px 0; border-radius: 4px; }
.method-figure img { width: 100%; height: auto; }
.method-figure figcaption { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 14px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.method-figure figcaption span:first-child { color: var(--deep); font-weight: 700; }
.comparisons { background: #faf8fd; border-block: 1px solid var(--line); padding-block: 70px 52px; }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.filter-list { display: flex; gap: 19px; flex-wrap: wrap; }
.filter-list button { border: 0; border-bottom: 2px solid transparent; padding: 6px 1px; background: transparent; font-size: 15px; color: var(--muted); }
.filter-list button:hover { color: var(--purple); }
.filter-list button[aria-pressed=true] { border-color: var(--purple); color: var(--deep); font-weight: 700; }
.count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.comparison-card { min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.pair-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.video-column { min-width: 0; }
.video-label { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; color: #514958; margin-bottom: 9px; }
.video-column.ours .video-label { color: var(--purple); }
.label-line { height: 1px; flex: 1; background: var(--line); margin-left: 12px; }
.ours .label-line { background: #cbb5e3; }
.video-frame { position: relative; min-width: 0; aspect-ratio: 5 / 3; background: #f0edf4; overflow: hidden; border-radius: 3px; }
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #f0edf4; }
.video-column.ours .video-frame { box-shadow: 0 0 0 1px #c4acd9; }
.video-frame:fullscreen { background: #111; display: flex; align-items: center; justify-content: center; }
.video-frame:fullscreen video { max-height: 100vh; object-fit: contain; }
.full-button { position: absolute; right: 6px; bottom: 6px; border: 0; color: #fff; background: #30273890; border-radius: 3px; width: 26px; height: 26px; line-height: 1; opacity: 0; }
.video-frame:hover .full-button, .full-button:focus-visible { opacity: 1; }
.video-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #f5f0faee; padding: 10px; font-size: 13px; }
.video-error a { color: var(--purple); text-decoration: underline; }
.pair-controls { display: flex; align-items: center; gap: 12px; height: 39px; }
.play-button, .replay-button { border: 0; background: transparent; font-size: 12px; color: var(--deep); padding: 4px; min-width: 28px; }
.play-button { min-width: 57px; text-align: left; white-space: nowrap; flex-shrink: 0; }
.replay-button { font-size: 19px; }
.pair-progress { height: 3px; width: 100%; margin: 0; accent-color: var(--purple); cursor: pointer; }
.prompt { color: var(--muted); font-size: 13px; margin-top: 2px; }
.prompt summary { display: inline-block; cursor: pointer; font-weight: 700; }
.prompt summary::after { content: ' +'; color: var(--purple); }
.prompt[open] > summary::after, .original-prompt[open] > summary::after { content: ' −'; }
.prompt p { font-size: 14px; line-height: 1.8; margin: 10px 0 0; max-height: 180px; overflow: auto; }
.prompt .prompt-label { font-size: 11px; color: #8b7d98; margin-bottom: -6px; }
.original-prompt { margin-top: 12px; }
.original-prompt summary { font-size: 12px; font-weight: 400; }
.original-prompt p { font-size: 12px; }
.gallery-bottom { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 30px; }
.gallery-bottom p { font-size: 12px; color: var(--muted); margin: 0; }
.pagination { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.circle-button { border: 1px solid #d7cce5; border-radius: 3px; background: transparent; width: 36px; height: 36px; display: grid; place-items: center; color: var(--deep); font-size: 19px; }
.circle-button:hover:enabled { background: var(--lilac); }
.study-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 27px; overflow-x: auto; scrollbar-width: thin; }
.study-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; white-space: nowrap; padding: 11px 13px; font-size: 14px; color: var(--muted); }
.study-tabs button[aria-selected=true] { font-weight: 700; color: var(--purple); border-color: var(--purple); }
.study-topbar { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 26px; }
.study-topbar h3 { font-size: 23px; margin-bottom: 7px; }
.study-topbar p { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0; max-width: 700px; }
.segmented { display: flex; background: #f0ebf7; padding: 4px; border-radius: 4px; gap: 3px; flex-shrink: 0; }
.segmented button { border: 0; border-radius: 3px; padding: 8px 12px; font-size: 13px; background: transparent; color: var(--muted); }
.segmented button[aria-pressed=true] { font-weight: 700; color: var(--deep); background: #fff; }
.study-workspace { display: grid; grid-template-columns: 1fr 2.4fr; gap: 34px; }
.reference-caption { font-size: 12px; color: var(--muted); margin: 8px 0 22px; }
.parameter-card { border-top: 1px solid var(--line); padding-top: 17px; }
.parameter-card .eyebrow { margin-bottom: 8px; font-size: 11px; color: var(--purple); font-weight: 700; }
.parameter-card h4 { font-size: 19px; line-height: 1.4; margin: 0 0 14px; }
.parameter-values { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; font-size: 21px; font-weight: 700; color: var(--purple); }
.parameter-values span:nth-child(2) { font-size: 17px; color: #9b7ab6; }
.study-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; }
.matrix-heading { font-size: 15px; font-weight: 700; margin-bottom: -7px; }
.matrix-heading.output { color: var(--purple); }
.study-item p { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.study-item p span { float: right; font-size: 12px; color: #897697; }
.study-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.study-actions button { border: 1px solid var(--line); background: #fff; border-radius: 3px; font-size: 13px; padding: 6px 12px; margin-left: 6px; }
.study-disclosure { font-size: 13px; color: var(--muted); margin-top: 24px; max-width: 950px; }
.study-disclosure summary { cursor: pointer; }
.study-disclosure p { margin-top: 10px; font-size: 12px; }
.closing { border-top: 1px solid var(--line); padding-block: 60px; }
.closing h2 { font-size: 31px; margin-bottom: 24px; }
.closing p { max-width: 970px; font-size: 17px; line-height: 1.85; color: var(--muted); margin-bottom: 16px; }
.closing strong { color: var(--deep); }
.citation { border-top: 1px solid var(--line); padding-block: 48px 60px; }
.citation-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.citation pre { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 4px; background: #faf8fd; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.citation code { font: 13px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; border-top: 1px solid var(--line); }
footer .logo-window { width: 130px; }
footer p { color: var(--muted); font-size: 13px; margin: 0; }
.skip-link { position: absolute; top: -90px; left: 20px; background: white; padding: 12px; z-index: 30; }
.skip-link:focus { top: 15px; }
.no-script { text-align: center; color: var(--purple); padding: 30px; }
@media (max-width: 1100px) {
  .section-wrap { width: calc(100% - 64px); }
  .site-header { padding-inline: 32px; }
  .hero { gap: 30px; grid-template-columns: .9fr 1.3fr; }
  .hero-title { font-size: 27px; }
  .hero-summary { font-size: 15px; }
  .study-workspace { gap: 24px; }
  .parameter-values { font-size: 19px; gap: 8px; }
}
@media (max-width: 800px) {
  .site-header { height: 72px; }
  .site-header nav { font-size: 14px; gap: 20px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 46px; padding-bottom: 30px; }
  .hero-copy { max-width: 670px; }
  h1.logo-window { width: 350px; }
  .hero-title { font-size: 32px; max-width: 680px; }
  .hero-title br { display: none; }
  .hero-summary { max-width: none; }
  .hero-demo { width: 100%; }
  .authors { padding-bottom: 28px; }
  .idea, .studies { padding-block: 55px; }
  .idea-principles { gap: 22px; }
  .idea-principles h3 { font-size: 18px; }
  .idea-principles p { font-size: 14px; }
  .intro-copy { font-size: 16px; }
  .comparisons { padding-block: 54px 40px; }
  .comparison-grid { gap: 25px; }
  .video-label { font-size: 13px; }
  .study-workspace { grid-template-columns: 1fr; }
  .reference-box { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
  .reference-box > .video-label { grid-column: 1 / -1; }
  .reference-box .video-frame, .reference-caption { grid-column: 1; }
  .parameter-card { grid-column: 2; grid-row: 2 / 4; }
  .study-topbar { align-items: flex-start; }
  .study-topbar p { max-width: 390px; }
  .closing { padding-block: 44px; }
}
@media (max-width: 560px) {
  .section-wrap { width: calc(100% - 36px); }
  .site-header { height: 66px; padding-inline: 18px; }
  .site-header .logo-window { width: 123px; }
  .site-header nav { gap: 15px; font-size: 12px; }
  .site-header nav a:first-child { display: none; }
  .hero { padding-top: 32px; gap: 26px; }
  h1.logo-window { width: min(100%, 340px); margin-bottom: 22px; }
  .hero-title { font-size: 27px; line-height: 1.35; }
  .hero-summary { font-size: 15px; }
  .hero-links { gap: 8px; }
  .button { font-size: 12px; padding: 8px 11px; }
  .author-names { font-size: 14px; gap: 5px 15px; }
  .authors { font-size: 12px; }
  .affiliations { gap: 16px; margin-top: 18px; }
  .affiliation { gap: 9px; }
  .affiliation .hkust-logo { width: 24px; height: 36px; }
  .affiliation .ath-logo { width: 32px; height: 32px; }
  h2 { font-size: 29px; }
  .intro-copy { font-size: 15px; line-height: 1.8; }
  .idea-principles { grid-template-columns: 1fr; gap: 22px; }
  .idea-principles h3 { font-size: 20px; }
  .idea-principles p { font-size: 15px; }
  .method-figure { padding: 13px 8px 0; }
  .method-figure figcaption { display: block; font-size: 11px; line-height: 1.8; padding-block: 10px; margin-top: 12px; }
  .method-figure figcaption span { display: block; }
  .gallery-toolbar { display: block; margin-bottom: 24px; }
  .filter-list { gap: 15px; }
  .filter-list button { font-size: 13px; }
  .count { display: block; margin-top: 13px; font-size: 12px; }
  .comparison-grid { grid-template-columns: 1fr; gap: 28px; }
  .video-label { font-size: 14px; }
  .pair-controls { gap: 6px; }
  .play-button { min-width: 51px; }
  .gallery-bottom p { font-size: 11px; max-width: 140px; line-height: 1.7; }
  .pagination { gap: 12px; font-size: 13px; }
  .study-tabs { gap: 3px; }
  .study-tabs button { font-size: 13px; padding: 10px; }
  .study-topbar { display: block; }
  .segmented { display: inline-flex; margin-top: 17px; }
  .segmented button { font-size: 13px; }
  .reference-box { gap: 0 17px; }
  .parameter-card { padding-top: 8px; }
  .parameter-card .eyebrow { font-size: 9px; }
  .parameter-card h4 { font-size: 17px; }
  .parameter-values { font-size: 17px; gap: 6px; }
  .reference-caption { font-size: 11px; }
  .study-matrix { gap: 18px 10px; }
  .matrix-heading { font-size: 13px; }
  .study-item p { font-size: 12px; }
  .study-item p span { float: none; display: block; font-size: 11px; }
  .study-actions { font-size: 11px; gap: 12px; }
  .study-actions > span { max-width: 150px; }
  .study-actions button { font-size: 11px; padding: 6px 8px; }
  .full-button { opacity: 1; width: 23px; height: 23px; font-size: 13px; }
  .closing h2 { font-size: 27px; }
  .closing p { font-size: 15px; }
  footer { flex-wrap: wrap; justify-content: center; gap: 15px; }
  footer p { order: 3; text-align: center; width: 100%; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
