@font-face {
  font-family: "Amarna";
  src: url("assets/fonts/amarna-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Amarna";
  src: url("assets/fonts/amarna-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Amarna";
  src: url("assets/fonts/amarna-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Amarna";
  src: url("assets/fonts/amarna-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #363636;
  --muted: #626b65;
  --line: #dedfda;
  --blue: #347ee8;
  --green: #2d9b53;
  --orange: #ef7f2d;
  --sidebar: 190px;
  font-family: "Amarna", Optima, Candara, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body { margin: 0; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.65; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #f7f7f7; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 8px 12px; background: white; border: 1px solid var(--blue); }
.skip-link:focus { transform: none; }
.contents { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 30px 22px; border-right: 1px solid var(--line); background: white; }
.contents__brand { color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 600; }
.contents__mark { display: none; }
.contents__label { margin: 36px 0 12px; font-size: 13px; color: var(--muted); }
.contents nav { display: grid; gap: 12px; }
.contents nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.contents nav a:hover, .contents nav a.is-active { color: var(--blue); text-decoration: underline; }
.contents__note { position: absolute; bottom: 24px; margin: 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
main { width: min(1040px, calc(100% - var(--sidebar))); margin-left: max(var(--sidebar), calc((100% - 1040px + var(--sidebar)) / 2)); padding: 0 40px 48px; }
.hero { padding: 65px 0 44px; text-align: center; }
h1 { max-width: 900px; margin: 0 auto; font-size: clamp(32px, 4vw, 46px); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.dek { max-width: 760px; margin: 18px auto; font-size: 22px; line-height: 1.4; }
.authors { margin: 22px 0 0; font-size: 15px; }
.venue { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.resource-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 22px; }
.resource-pill { font-size: 14px; }
.resource-pill strong { font-weight: 500; }
.resource-pill > span { display: none; }
.section { margin: 0 auto; padding: 55px 0 0; }
.section--first { padding-top: 15px; }
.section-heading { margin: 0 0 24px; }
h2 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.4; font-weight: 600; }
p { margin: 12px 0 0; }
.section-heading p, .body-copy, .observation > p { max-width: 850px; }
figure { margin: 24px 0 0; }
figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hero-figure { max-width: 780px; margin-inline: auto; }
.media-card { min-width: 0; }
.transfer-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.alignment-animation { margin: 0; }
.alignment-animation video { aspect-ratio: 1380 / 1248; }
.transfer-explanation h4 { font-size: 20px; }
.transfer-explanation h4:not(:first-child) { margin-top: 28px; }
.transfer-explanation p { margin-top: 8px; }
.reprojection-figure { max-width: 820px; margin: 32px auto 0; }
.demo-selector { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.demo-selector button { padding: 10px 14px; border: 1px solid #b6bec8; border-radius: 2px; background: white; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.demo-selector button:hover { border-color: var(--blue); }
.demo-selector button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); box-shadow: inset 0 -2px var(--blue); }
.demo-panel { margin-top: 0; }
.results-table { width: 100%; border-collapse: collapse; margin: 24px 0 0; font-size: 15px; text-align: left; }
.results-table caption { text-align: left; margin-bottom: 10px; font-weight: 600; }
.results-table th, .results-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.results-table th { font-weight: 600; }
.results-table th:first-child, .results-table td:first-child { padding-left: 0; }
.observation { padding-top: 40px; margin-top: 36px; border-top: 1px solid var(--line); }
.observation .media-card { margin-top: 22px; }
.abstract-card p { margin: 0; }
.release-card { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.release-card p { margin: 0 0 12px; }
footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  html { scroll-padding-top: 80px; }
  .contents { position: sticky; top: 0; z-index: 10; width: 100%; display: flex; align-items: center; gap: 24px; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .contents__label, .contents__note { display: none; }
  .contents nav { display: flex; gap: 18px; white-space: nowrap; }
  .contents__brand { font-size: 15px; }
  main { width: 100%; margin: 0; padding-inline: 24px; }
  .transfer-layout { grid-template-columns: 1fr; gap: 24px; }
  .alignment-animation { max-width: 530px; margin-inline: auto; }
}
@media (max-width: 540px) {
  body { font-size: 15px; }
  main { padding-inline: 18px; }
  .hero { padding: 40px 0 30px; }
  .dek { font-size: 19px; }
  h2 { font-size: 25px; }
  h3 { font-size: 20px; }
  .section { padding-top: 42px; }
  .demo-selector { display: grid; grid-template-columns: 1fr 1fr; }
  .demo-selector button { padding: 10px 8px; }
  .results-table { font-size: 13px; }
  .results-table th, .results-table td { padding: 10px 6px; }
  footer { flex-direction: column; gap: 4px; }
}

/* Original CIMI typography and figure colors. */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 4px; z-index: 30; background: linear-gradient(90deg, var(--blue) 0 42%, var(--green) 42% 72%, var(--orange) 72% 100%); }
.accent { color: var(--blue); }
h1 { font-weight: 700; }
.contents__brand { display: inline-flex; align-items: center; gap: 9px; }
.contents__mark { display: inline-grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 18px; font-weight: 500; }
.resource-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--blue); border-radius: 3px; text-decoration: none; color: var(--blue); }
.resource-pill { background: var(--blue); color: white; }
.resource-pill:hover { background: #246acb; border-color: #246acb; color: white; }
.resource-row { gap: 10px; }
.section-heading h2 { padding-bottom: 12px; border-bottom: 2px solid var(--blue); }
#demonstrations .section-heading h2, #observations .section-heading h2 { border-bottom-color: var(--green); }
#abstract .section-heading h2 { border-bottom-color: var(--orange); }
.transfer-explanation h4 { color: var(--blue); }
.transfer-explanation h4:not(:first-child) { color: var(--green); }
.demo-selector button[aria-pressed="true"] { background: #edf4ff; }
.results-table thead th:nth-child(2) { color: var(--blue); }
.results-table thead th:nth-child(3) { color: var(--green); }
.observation h3 { color: var(--blue); }
@media (max-width: 900px) { .contents__mark { display: none; } }

.method-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 28px 0 24px; border-bottom: 1px solid var(--line); }
.method-tabs button { padding: 13px 10px; border: 0; border-bottom: 3px solid transparent; background: white; color: var(--muted); font: inherit; font-size: 17px; cursor: pointer; }
.method-tabs button:hover { color: var(--blue); background: #f7faff; }
.method-tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); background: #edf4ff; }
.method-panel > h3 { color: var(--blue); }
.method-panel > p { max-width: 850px; }
.method-panel .transfer-layout { margin-top: 28px; }
.transfer-explanation h4 { margin: 0 0 10px; font-size: 20px; line-height: 1.4; font-weight: 600; }
.stage-output { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }
.stage-output strong { color: var(--green); font-weight: 600; }
.observations .observation:first-child { margin-top: 0; padding-top: 10px; border-top: 0; }
@media (max-width: 540px) { .method-tabs { grid-template-columns: 1fr 1fr; } .method-tabs button { font-size: 16px; } }

.preprocessing-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; margin-top: 28px; }
.preprocessing-step { min-width: 0; }
.preprocessing-step h4, .architecture-block h4 { margin: 0 0 10px; font-size: 21px; font-weight: 600; line-height: 1.4; color: var(--blue); }
.preprocessing-step:nth-child(2) h4 { color: var(--green); }
.preprocessing-step > p { margin: 0 0 22px; }
.preprocessing-step .alignment-animation, .preprocessing-step .reprojection-figure { margin: 0; }
.preprocessing-step .reprojection-figure img { height: auto; object-fit: contain; }
.architecture-block { margin-top: 30px; }
.architecture-block + .architecture-block { padding-top: 26px; border-top: 1px solid var(--line); }
.architecture-block:nth-of-type(2) h4 { color: var(--green); }
.architecture-block figure { margin-top: 20px; }
@media (max-width: 640px) {
  .preprocessing-columns { grid-template-columns: 1fr; }
  .preprocessing-step .reprojection-figure img { aspect-ratio: auto; }
}

/* Make pipeline stages visibly actionable and show the current position. */
.method-instruction { margin-top: 28px; color: var(--muted); font-size: 15px; }
.method-tabs { gap: 10px; margin: 12px 0 16px; border: 0; }
.method-tabs button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 12px; border: 1px solid #aab8c6; border-radius: 5px; box-shadow: 0 2px 0 #e5e9ee; color: var(--ink); font-weight: 600; line-height: 1.3; }
.method-tabs button:hover { border-color: var(--blue); background: #edf4ff; box-shadow: 0 2px 0 #c7d8f3; }
.method-tabs button[aria-selected="true"] { background: var(--blue); color: white; border-color: var(--blue); box-shadow: 0 2px 0 #246acb; }
.stage-number { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; font-size: 14px; }
.method-navigation { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 0 0 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.method-navigation p { margin: 0; font-size: 15px; color: var(--blue); }
.method-navigation > div { display: flex; gap: 8px; }
.method-navigation button { border: 1px solid #bcc7d1; border-radius: 4px; padding: 7px 12px; background: white; color: var(--blue); cursor: pointer; font: inherit; font-size: 14px; }
.method-navigation button:hover:not(:disabled) { background: #edf4ff; border-color: var(--blue); }
.method-navigation button:disabled { opacity: .45; color: var(--muted); cursor: default; }
@media (max-width: 640px) { .method-tabs { grid-template-columns: 1fr 1fr; } .method-navigation { align-items: flex-start; flex-direction: column; } .method-tabs button { justify-content: flex-start; } }

/* Align the two preprocessing explanations and their visual areas. */
@media (min-width: 641px) {
  .preprocessing-columns { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 32px; row-gap: 0; }
  .preprocessing-step { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
  .preprocessing-step > p { margin-bottom: 24px; }
  .preprocessing-step figure { display: grid; grid-template-rows: auto 1fr; }
  .preprocessing-step .alignment-animation video,
  .preprocessing-step .reprojection-figure img {
    width: 100%; height: clamp(220px, 25vw, 290px); aspect-ratio: auto;
    object-fit: contain; background: white;
  }
  .preprocessing-step figcaption { margin-top: 14px; }
}

.stage-io { margin: 18px 0 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stage-io > div { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 16px; padding: 12px 0; }
.stage-io > div + div { border-top: 1px solid #edf0ed; }
.stage-io dt { font-weight: 600; color: var(--blue); }
.stage-io > div:last-child dt { color: var(--green); }
.stage-io dd { margin: 0; }
@media (max-width: 540px) { .stage-io > div { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; } }

.observation-instruction { margin-top: 24px; font-size: 15px; color: var(--muted); }
.observation[role="tabpanel"] { margin-top: 0; padding-top: 10px; border-top: 0; }
.observation-navigation > div { flex-wrap: wrap; }

/* Task choices share the method and observation button treatment. */
.demo-selector.method-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.demo-selector.method-tabs button[aria-pressed="true"] { background: var(--blue); color: white; border-color: var(--blue); box-shadow: 0 2px 0 #246acb; }
@media (max-width: 640px) { .demo-selector.method-tabs { grid-template-columns: 1fr 1fr; } }

.authors { font-size: 19px; font-weight: 400; line-height: 1.9; max-width: 880px; margin-inline: auto; }
.authors > span { display: inline-block; white-space: nowrap; }
.authors a { text-decoration: none; }
.authors a:hover { text-decoration: underline; }
.authors sup, .affiliations sup { font-size: .7em; margin-left: 2px; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-top: 12px; font-size: 16px; }

.author-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 8px 0 0; font-size: 14px; }

