:root {
  --ink: #15151a;
  --ink-soft: #3a3a44;
  --muted: #6b6b76;
  --line: #e7e8ee;
  --band: #f5f6f9;
  --white: #ffffff;
  --brand-50: #eef1ff;
  --brand-100: #e0e5ff;
  --brand-300: #a3b1ff;
  --brand-500: #6d7cff;
  --brand-600: #5560f0;
  --brand-700: #454ccf;
  --coral: #ff8a7a;
  --mint: #43b89d;
  --amber: #c98a22;
  --shadow-soft: 0 1px 2px rgba(16, 18, 40, .04), 0 8px 24px rgba(16, 18, 40, .06);
  --shadow-lift: 0 12px 40px rgba(16, 18, 40, .10);
  --radius: 18px;
  --radius-lg: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--ink);
  background: var(--brand-100);
}

a {
  color: inherit;
}

img,
object {
  display: block;
  max-width: 100%;
}

button,
.button {
  font: inherit;
}

.shell {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(820px, 100%);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 68px;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .9);
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(16, 18, 40, .04);
  backdrop-filter: blur(12px);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  font-family: "Anton", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: normal;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}

.nav-links a::after {
  position: absolute;
  content: "";
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--brand-500);
  transition: right .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  right: 0;
}

.nav-cta {
  min-width: 136px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.is-disabled {
  cursor: not-allowed;
  opacity: .58;
  pointer-events: none;
}

.hero {
  position: relative;
  padding-top: 132px;
  padding-bottom: 56px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: 18px;
  left: 50%;
  width: min(900px, 90vw);
  height: 520px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 30% 30%, rgba(109, 124, 255, .14), transparent 42%),
    radial-gradient(circle at 72% 35%, rgba(255, 138, 122, .11), transparent 38%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-copy {
  width: min(900px, 100%);
  margin-inline: auto;
}

.venue-pill,
.eyebrow {
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-kickers {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.venue-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-50);
}

.romo-family-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  color: var(--brand-600);
  background: var(--brand-50);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}

.romo-family-link span {
  color: var(--brand-700);
}

.romo-family-link:hover {
  transform: translateY(-1px);
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.hero h1 {
  margin: 24px 0 12px;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(70px, 13vw, 136px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .95;
}

.hero-subtitle {
  max-width: 830px;
  margin: 28px auto 0;
  color: var(--ink-soft);
  font-size: clamp(21px, 3.2vw, 31px);
  font-weight: 650;
  line-height: 1.32;
}

.acronym u {
  text-decoration-color: var(--brand-300);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.authors {
  max-width: 900px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.authors a {
  color: var(--brand-600);
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.authors a:hover,
.affiliations a:hover {
  color: var(--brand-700);
  text-decoration: underline;
  text-decoration-color: var(--brand-300);
  text-underline-offset: 3px;
}

.authors sup,
.affiliations sup {
  position: relative;
  top: -.35em;
  margin-left: 1px;
  font-size: .68em;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 5px 9px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.affiliations a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #c6c8d1;
  text-underline-offset: 3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.button:not(.is-disabled):hover {
  transform: translateY(-2px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-lift);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-dark {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.button-light {
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
}

.teaser-frame {
  margin-top: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.teaser-frame object,
.teaser-frame img {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: calc(var(--radius-lg) - 8px);
  object-fit: contain;
}

.section {
  padding-top: 92px;
  padding-bottom: 92px;
  scroll-margin-top: 68px;
}

.band {
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--band);
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 42px;
}

.section-heading h2,
.narrow h2 {
  margin: 8px 0 14px;
  color: var(--ink);
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -.035em;
  line-height: 1.1;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.work-explorer {
  padding-bottom: 36px;
}

.work-explorer .section-heading {
  margin-bottom: 28px;
}

.work-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--band);
  box-shadow: var(--shadow-soft);
}

.work-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.work-tab span {
  color: var(--brand-600);
  font-size: 10px;
  letter-spacing: .1em;
}

.work-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .65);
}

.work-tab.active {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.work-panel {
  scroll-margin-top: 150px;
}

.abstract-copy {
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: 17px;
  text-align: justify;
}

.abstract-copy p {
  margin: 0 0 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 58px;
}

.stat {
  min-width: 0;
  padding: 22px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.04em;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dataset-feature-grid {
  margin-top: 30px;
}

.feature-card {
  position: relative;
  min-height: 240px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.feature-index {
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.feature-card h3,
.metric-family h3,
.audit-card h3,
.resource-card h3,
.result-callout h3,
.dataset-placeholder h3 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 21px;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.feature-card p,
.metric-family p,
.audit-card p,
.resource-card p,
.result-callout p,
.dataset-placeholder p {
  margin: 0;
  color: var(--muted);
}

.figure-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.figure-card.wide {
  margin-top: 30px;
}

.figure-card img {
  width: 100%;
  max-height: 650px;
  padding: 10px;
  object-fit: contain;
  background: var(--white);
}

.figure-caption {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.figure-caption strong {
  color: var(--ink-soft);
}

.motion-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-loading {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--white);
}

.gallery-loading.is-error,
.motion-loading.is-error {
  color: #b54a3f;
}

.motion-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.motion-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-lift);
}

.motion-viewport {
  position: relative;
  height: 285px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f7f8fb;
}

.motion-viewport canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.motion-viewport canvas:active {
  cursor: grabbing;
}

.motion-loading {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  background: #f7f8fb;
  font-size: 13px;
  font-weight: 650;
}

.motion-loading span {
  width: 15px;
  height: 15px;
  border: 2px solid var(--line);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

.motion-hint {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(231, 232, 238, .9);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(6px);
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}

.motion-copy {
  padding: 20px 22px 22px;
}

.motion-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--brand-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.motion-copy h3 {
  margin: 11px 0 7px;
  font-size: 18px;
  letter-spacing: -.02em;
  text-transform: capitalize;
}

.motion-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.motion-details-toggle {
  margin-top: 14px;
  padding: 0;
  border: 0;
  color: var(--brand-600);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.motion-details {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}

.gallery-footer p {
  color: var(--muted);
}

.chart-grid,
.quality-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.quality-charts {
  margin-top: 28px;
}

.chart-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.chart-card-wide {
  margin-top: 30px;
}

.chart-head {
  min-height: 92px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 12px;
}

.chart-head .eyebrow {
  margin: 0 0 4px;
}

.chart-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.02em;
}

.chart-head-link {
  flex-shrink: 0;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-600);
  background: var(--brand-50);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.chart-head-link:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.plot {
  width: 100%;
  min-height: 390px;
}

.plot-radar {
  min-height: 520px;
}

.plot-error {
  display: grid;
  place-items: center;
  color: #b54a3f;
}

.chart-caption {
  min-height: 70px;
  margin: 0;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.chart-caption strong {
  color: var(--ink-soft);
}

.chart-controls {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--band);
}

.chart-toggle {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.chart-toggle.active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(16, 18, 40, .1);
}

.statistics-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 22px 8px;
}

.statistics-tabs .chart-toggle {
  border: 1px solid var(--line);
  background: var(--band);
}

.statistics-tabs .chart-toggle.active {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
}

.chart-select-label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chart-select-label select {
  max-width: 270px;
  padding: 8px 30px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: 12px;
  font-weight: 650;
  text-transform: none;
}

.modebar {
  transform: scale(.85);
  transform-origin: top right;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.representation-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lift);
}

.repr-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.repr-total span {
  color: var(--muted);
  font-weight: 650;
}

.repr-total strong {
  font-size: 26px;
  letter-spacing: -.03em;
}

.repr-composition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 150px auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.repr-hand {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--band);
}

.repr-hand-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.repr-hand-head span,
.repr-root-card > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.repr-hand-head strong {
  color: var(--brand-700);
  font-size: 21px;
  letter-spacing: -.03em;
}

.repr-hand-channels {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 5px;
  margin-top: 16px;
}

.repr-hand-channels span {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 10px 5px;
  border-radius: 9px;
  text-align: center;
}

.repr-hand-channels strong {
  font-size: 17px;
  line-height: 1;
}

.repr-hand-channels small {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.15;
}

.repr-hand-channels .position {
  color: #72520f;
  background: #fff0c9;
}

.repr-hand-channels .velocity {
  color: #176250;
  background: #d9f5ed;
}

.repr-hand-channels .rotation {
  color: #8c3a31;
  background: #ffe0da;
}

.repr-hand p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.repr-operator {
  display: grid;
  place-items: center;
  color: var(--brand-500);
  font-size: 24px;
  font-weight: 800;
}

.repr-root-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  border: 1px solid var(--brand-300);
  border-radius: 15px;
  color: #34375e;
  background: var(--brand-50);
  text-align: center;
}

.repr-root-card strong {
  margin: 9px 0 4px;
  font-size: 30px;
  letter-spacing: -.04em;
}

.repr-root-card small {
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 750;
}

.repr-equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 11px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: var(--white);
  font-size: 12px;
  font-weight: 650;
}

.repr-equation b {
  color: var(--brand-500);
}

.repr-equation strong {
  color: var(--ink);
  font-size: 15px;
}

.repr-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.repr-notes span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.result-callout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
  margin-top: 28px;
  padding: 34px;
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: linear-gradient(135deg, var(--white), var(--brand-50));
  box-shadow: var(--shadow-soft);
}

.result-callout .eyebrow {
  color: var(--brand-600);
}

.result-callout h3 {
  color: var(--ink);
}

.result-callout p {
  color: var(--muted);
}

.result-callout table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink-soft);
  font-size: 14px;
}

.result-callout th,
.result-callout td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.result-callout th:first-child,
.result-callout td:first-child {
  text-align: left;
}

.result-callout .ours {
  color: var(--brand-700);
  background: var(--brand-100);
  font-weight: 750;
}

.benchmark-grid {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: stretch;
}

.metric-family {
  min-height: 310px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.metric-family.semantic {
  border-top: 4px solid var(--brand-500);
}

.metric-family.physical {
  border-top: 4px solid var(--coral);
}

.family-label {
  color: var(--brand-600) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.physical .family-label {
  color: #bd5547 !important;
}

.leader {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  align-items: baseline;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.leader span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.leader strong {
  font-size: 24px;
}

.leader small {
  color: var(--muted);
}

.versus {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 30px;
  font-weight: 800;
}

.resource-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.resource-link:hover {
  transform: translateY(-2px);
  border-color: var(--brand-300);
}

.resource-link span {
  font-weight: 750;
}

.resource-link small {
  color: var(--muted);
  text-align: right;
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.audit-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.audit-kicker {
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audit-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0 12px;
}

.audit-score strong {
  font-size: 34px;
  letter-spacing: -.04em;
}

.audit-score span {
  color: var(--muted);
  font-size: 13px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.resource-card {
  position: relative;
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-lift);
}

.resource-card:only-child {
  grid-column: 1 / -1;
  min-height: 220px;
}

.resource-number {
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.card-action {
  position: absolute;
  left: 30px;
  bottom: 26px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}

.card-action b {
  color: var(--brand-600);
}

.dataset-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 20px;
  padding: 30px;
  border: 1px dashed var(--brand-300);
  border-radius: var(--radius-lg);
  background: var(--brand-50);
}

.dataset-placeholder .eyebrow {
  margin: 0;
}

.dataset-placeholder h3 {
  margin: 7px 0;
}

.citation-section {
  padding-bottom: 78px;
}

.bibtex-card {
  position: relative;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--band);
}

.bibtex-card pre {
  margin: 0;
  padding-right: 72px;
  overflow-x: auto;
  color: var(--ink-soft);
  font: 13px/1.65 "SFMono-Regular", Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.bibtex-copy {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.bibtex-copy:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  font-size: 13px;
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer a {
  color: var(--ink-soft);
}

.to-top {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow-lift);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid,
  .audit-grid,
  .motion-gallery {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .result-callout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1140px);
  }

  .brand-mark {
    display: none;
  }

  .hero {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: clamp(62px, 22vw, 92px);
  }

  .teaser-frame object,
  .teaser-frame img {
    min-height: 240px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .stats-grid,
  .split-grid,
  .resources-grid,
  .resource-row,
  .chart-grid,
  .quality-charts {
    grid-template-columns: 1fr;
  }

  .work-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .work-tab {
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .representation-card {
    padding: 20px;
  }

  .repr-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .repr-composition {
    grid-template-columns: 1fr;
  }

  .repr-operator {
    min-height: 22px;
  }

  .benchmark-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .versus {
    min-height: 48px;
  }

  .dataset-placeholder,
  .footer-inner,
  .gallery-footer,
  .chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .plot {
    min-height: 350px;
  }

  .plot-radar {
    min-height: 430px;
  }

  .footer-inner {
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.result-callout .callout-note {
  margin-top: 12px;
  font-size: 13px;
}
