:root {
  --ink: #222426;
  --soft: #535a60;
  --line: #d9dfe2;
  --panel: #f3f6f7;
  --link: #155a80;
  --sans: Arial, Helvetica, sans-serif;
  font: 106.25%/1.6 "Times New Roman", "Liberation Serif", serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: white; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #278ace; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; z-index: 4; left: 1rem; top: -5rem; }
.skip:focus { top: .5rem; padding: .5rem; background: white; }
.hero {
  position: relative;
  isolation: isolate;
  min-height: 35rem;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  background: linear-gradient(175deg, #2e414b 0%, #51606a 55%, #273740 100%);
  color: white;
}
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::before {
  top: 54%;
  bottom: auto;
  width: 100%;
  aspect-ratio: 20 / 9;
  transform: translateY(-50%);
  background: url("../figures/B01.png") center / 100% auto no-repeat;
  mask-image: linear-gradient(to bottom, transparent, black 9%, black 80%, transparent);
}
.hero::after {
  background: linear-gradient(180deg, rgb(13 25 33 / 43%), rgb(12 25 32 / 62%) 52%, rgb(10 24 31 / 50%));
}
.hero-copy { width: min(95%, 76rem); padding: 2.75rem 1rem; text-shadow: 0 4px 24px rgb(0 0 0 / 45%); }
h1 { font-size: clamp(4.1rem, 12.9vw, 10.6rem); font-weight: 700; line-height: .98; letter-spacing: -.035em; }
.subtitle { margin: .7rem auto 1.25rem; text-wrap: balance; font-size: clamp(1.35rem, 2.25vw, 2.15rem); line-height: 1.18; }
.authors { font-size: clamp(1.1rem, 1.65vw, 1.4rem); }
.authors a { color: white; text-decoration: none; }
.authors a:hover { text-decoration: underline; }
.authors span, .affiliation span { padding: 0 .45em; }
.affiliation { font-size: 1.02rem; }
.hero-credit {
  position: absolute; bottom: 1rem; right: clamp(1rem, 3vw, 3rem);
  font: .76rem/1.4 var(--sans); text-align: right;
}
.hero-credit a { color: white; }
.resource-bar { padding: clamp(1.75rem, 4vw, 3.25rem) 1rem .5rem; }
.buttons, .links, .controls, .selectors { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: center; }
.buttons a, .links a, .controls button {
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}
.buttons a { padding: .55rem 1.15rem; }
.buttons svg { width: 1rem; height: 1rem; margin-right: .42em; vertical-align: -.14em; stroke: currentColor; fill: none; stroke-width: 1.6; }
.buttons a:hover, .links a:hover, .controls button:hover, .selectors [aria-pressed="true"] {
  background: var(--link); border-color: var(--link); color: white;
}
section {
  position: relative;
  max-width: 74rem;
  margin: auto;
  padding: clamp(2.2rem, 5vw, 4.1rem) clamp(1rem, 4vw, 3rem);
  scroll-margin-top: .6rem;
}
section + section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(9rem, 30%); height: 1px; background: var(--line);
}
h2 { text-align: center; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; margin-bottom: 1.75rem; }
h3 { font-size: 1.22rem; line-height: 1.25; margin: 1rem 0 .35rem; }
.copy, .note, section > details, .prose { max-width: 78ch; margin: 1.15rem auto; }
.copy { font-size: 1.07rem; line-height: 1.68; }
.note, figcaption, caption { color: var(--soft); }
figure { margin: 1.5rem auto; max-width: 57rem; min-width: 0; }
figure img { display: block; width: 100%; height: auto; }
figcaption { text-align: center; margin: .65rem auto 0; max-width: 80ch; font-size: .94rem; line-height: 1.45; }
.figure-img img { max-height: 39rem; object-fit: contain; }
.figure-img a { display: block; }
.gallery { max-width: 54rem; margin: auto; }
.gallery figure { margin: .5rem auto 1rem; }
.controls { flex-wrap: nowrap; justify-content: space-between; }
.controls button { cursor: pointer; padding: .5rem .8rem; min-height: 2.6rem; font: inherit; line-height: 1.1; }
.controls > button { border-radius: 50%; min-width: 2.6rem; font-size: 1.55rem; padding: .15rem .42rem; }
.selectors { gap: .38rem; }
.selectors button { font: .85rem/1.15 var(--sans); }
.media-frame { overflow: hidden; border-radius: .6rem; border: 1px dashed #8b9da5; background: var(--panel); }
.placeholder { display: flex; align-items: center; justify-content: center; min-height: 8rem; padding: clamp(1rem, 2.7vw, 1.8rem); }
.illustrated { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); gap: 1.25rem; background: #f7f9f8; }
.illustrated .scene { width: 100%; max-height: 13.5rem; object-fit: contain; }
.slot-text small { display: block; font: 700 .76rem/1.4 var(--sans); color: #245972; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 .6rem; }
.slot-text strong { display: block; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.32; font-weight: 500; }
.split, .slotgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); align-items: start; gap: 1rem; margin: 1.5rem auto; max-width: 59rem; }
.split figure, .slotgrid figure { width: 100%; margin: 0; }
.slotgrid { max-width: 51rem; }
.split .placeholder, .slotgrid .placeholder { justify-content: flex-start; }
.slotgrid .placeholder { min-height: 0; padding: 1.1rem 1.3rem; }
.math { margin: 1.4rem auto; max-width: 65ch; text-align: center; background: var(--panel); border-block: 1px solid var(--line); padding: 1rem .7rem; font-size: 1.22rem; }
.tablewrap { max-width: 54rem; margin: 1.5rem auto; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .98rem; }
th, td { text-align: right; padding: .45rem .65rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead { border-block: 1.5px solid var(--ink); background: var(--panel); }
caption { caption-side: bottom; text-align: left; font-size: .9rem; line-height: 1.4; padding: .6rem 0; }
details { padding: .9rem 0; }
summary { cursor: pointer; color: var(--link); font-weight: 700; }
pre { overflow: auto; background: #f3f5f6; font: .82rem/1.55 ui-monospace, monospace; padding: 1rem; }
.links a { padding: .45rem .8rem; font-size: .9rem; }
.directory { margin: 1.5rem auto 0; max-width: 74ch; padding: .75rem 1.2rem; border-left: 3px solid #819ba6; background: var(--panel); }
.directory h3 { margin-top: 0; }
.jump { position: fixed; z-index: 2; right: .8rem; top: 50%; transform: translateY(-50%); display: grid; }
.jump a { position: relative; display: grid; place-items: center; width: 1.55rem; height: 1.55rem; }
.jump a::after { content: ""; width: .46rem; height: .46rem; background: #a5afb4; border: 1px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #89959a; }
.jump a[aria-current]::after, .jump a:hover::after, .jump a:focus::after { background: var(--link); }
.jump a span { position: absolute; right: 1.7rem; background: white; padding: .18rem .45rem; white-space: nowrap; font: .8rem/1.4 var(--sans); visibility: hidden; }
.jump a:hover span, .jump a:focus-visible span { visibility: visible; }
footer { border-top: 1px solid var(--line); padding: 1.5rem 1rem; text-align: center; color: var(--soft); font-size: .9rem; }
@media (max-width: 76rem) { .jump { display: none; } }
@media (max-width: 40rem) {
  .hero { min-height: 30rem; }
  .hero::before { top: 73%; }
  .hero-copy { align-self: start; padding: clamp(4rem, 15svh, 9rem) .4rem 0; }
  .hero::after { background: linear-gradient(180deg, rgb(12 25 32 / 74%), rgb(12 25 32 / 65%) 44%, rgb(12 25 32 / 24%) 75%, rgb(12 25 32 / 60%)); }
  .subtitle { max-width: 24ch; }
  .affiliation { font-size: .94rem; }
  .buttons { gap: .5rem; }
  .buttons a { padding: .46rem .9rem; font-size: .95rem; }
  .illustrated { grid-template-columns: 1fr; gap: .35rem; }
  .illustrated .scene { max-height: 8.5rem; }
  .selectors { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
  .controls { gap: .3rem; }
  .selectors button { padding: .4rem .52rem; font-size: .8rem; }
  th, td { padding: .38rem .45rem; }
  figcaption { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The archived gallery and two-column hardware comparison share a fixed media area. */
.demo-visual { position: relative; border: 1px solid var(--line); background: #17232a; }
.demo-visual .scene, .demo-visual video { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo-visual, .gallery .figure-img > a { aspect-ratio: 16 / 9; }
.gallery .figure-img > a { display: grid; place-items: center; background: #f4f6f7; }
.gallery .figure-img img { height: 100%; object-fit: contain; }
.image-origin { position: absolute; bottom: .55rem; left: .65rem; padding: .2rem .55rem; border-radius: .18rem; background: rgb(16 30 37 / 91%); color: white; font: .78rem/1.45 var(--sans); }
.footage-slot { margin: .45rem 0 0; font: .84rem/1.55 var(--sans); color: #465862; }
.footage-slot strong { color: #244f66; }
.workflow { max-width: 54rem; margin: 2rem auto; }
.workflow > h3 { text-align: center; }
.results-table td { text-align: left; white-space: normal; }
figure[id], #source { scroll-margin-top: 1rem; }
@media(max-width:40rem) {
  .results-table th { white-space: normal; }
  .workflow > h3 { text-align: left; }
}
