/* RAPS — anonymous project page. No external assets, no analytics. */

:root {
  --ink:        #15181e;
  --ink-soft:   #4b5361;
  --ink-faint:  #7d8592;
  --rule:       #e1e4e9;
  --rule-soft:  #eef0f3;
  --page:       #fffdfa;
  --panel:      #f6f5f1;
  --panel-2:    #efeee9;
  --accent:     #1d4ed8;

  /* policy palette of the paper's Fig. 1 and the film */
  --nominal:    #2fbf71;
  --abort:      #ff8330;
  --protect:    #4a9de8;
  --nominal-bg: #e8f7ee;
  --abort-bg:   #fff1e6;
  --protect-bg: #e9f3fd;

  --serif: "Charter", "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.wrap--wide { max-width: 1160px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
.measure { max-width: 760px; }
code { font-family: var(--mono); font-size: .9em; }

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 253, 250, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13.5px;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.topbar .brand { font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.topbar nav { display: flex; gap: 20px; }
.topbar nav a { color: var(--ink-soft); }
.topbar nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------------------------------------------------------------- hero */

header.hero { padding: 64px 0 36px; }

.venue {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 22px;
}

h1.title {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  max-width: 900px;
}
h1.title .c-nom { color: var(--nominal); }
h1.title .c-abort { color: var(--abort); }
h1.title .c-protect { color: var(--protect); }

.subtitle {
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink-soft);
  letter-spacing: -.008em;
  margin: 0 0 26px;
  max-width: 820px;
}
.subtitle b { color: var(--ink); font-weight: 600; }

.authors {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 4px;
}
.authors .note { display: block; font-size: 13.5px; color: var(--ink-faint); margin-top: 4px; }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }

.btn {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; background: #000; border-color: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--panel); border-color: var(--ink-faint); color: var(--ink); }
.btn--disabled { background: transparent; color: var(--ink-faint); border-color: var(--rule); border-style: dashed; cursor: default; pointer-events: none; }
.btn svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- hardware triptych */

.triptych { padding: 12px 0 0; }
.trip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trip figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--panel); border: 1px solid var(--rule); }
.trip video { display: block; width: 100%; height: auto; background: #0b0d11; }
.trip .tag {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 16px 4px;
  font-family: var(--sans);
}
.trip .tag .word { font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.trip .tag .pol { font-size: 13px; color: var(--ink-soft); }
.trip .desc { font-family: var(--sans); font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); padding: 0 16px 14px; margin: 0; }
.trip .t-nom .word { color: var(--nominal); }
.trip .t-abort .word { color: var(--abort); }
.trip .t-protect .word { color: var(--protect); }
.trip .t-nom { background: var(--nominal-bg); }
.trip .t-abort { background: var(--abort-bg); }
.trip .t-protect { background: var(--protect-bg); }
.tripnote { font-family: var(--sans); font-size: 13px; color: var(--ink-faint); margin: 12px 0 0; }

/* ---------------------------------------------------------------- video placeholder */

.vph {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px dashed #c9ccd3;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.025) 14px 15px),
    var(--panel);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--sans);
  color: var(--ink-soft);
}
.vph .inner { padding: 24px; }
.vph .play {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--ink-faint); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
}
.vph .play svg { width: 22px; height: 22px; margin-left: 4px; }
.vph .h { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.vph .s { font-size: 13.5px; }
.vph .dots { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }

/* ------------------------------------------------------ supplementary film */

.vfilm { max-width: 900px; margin: 0 auto; }
.vfilm video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #0b0d11;
  border-radius: 10px;
  border: 1px solid var(--rule);
}
.vfilm figcaption { max-width: 760px; }

/* ---------------------------------------------------------------- layout */

section { padding: 60px 0; border-bottom: 1px solid var(--rule-soft); }
section:last-of-type { border-bottom: none; }
section.tint { background: var(--panel); border-color: var(--rule); }

h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 20px;
}
h2 .n { color: var(--ink); margin-right: 10px; }

h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.25;
  margin: 40px 0 12px;
}
h3:first-of-type { margin-top: 0; }
h2 + h3 { margin-top: 0; }

.lede { font-size: 20px; line-height: 1.55; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.two--wide-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }

/* ---------------------------------------------------------------- figures */

figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
figcaption {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 14px;
}
figcaption b { color: var(--ink); font-weight: 600; }
.fig-narrow { max-width: 760px; margin: 0 auto; }
.fig-frame { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 14px; }
.fig-frame img { border-radius: 2px; }

/* ---------------------------------------------------------------- videos */

.vgrid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; }
.vcard { margin: 0; }
.vcard video { display: block; width: 100%; height: auto; background: #0b0d11; border-radius: 6px; }
.vcard .label {
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin: 12px 0 4px; display: flex; align-items: center; gap: 8px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.dot--nominal { background: var(--nominal); }
.dot--abort   { background: var(--abort); }
.dot--protect { background: var(--protect); }
.vcard .desc { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* ---------------------------------------------------------------- contributions */

.contrib { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.contrib .item {
  background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 22px 22px 20px;
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
}
.contrib .k {
  font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--ink-faint);
  border: 1px solid var(--rule); border-radius: 50%; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.contrib h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
.contrib p { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* ---------------------------------------------------------------- stat strip */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin: 0;
}
/* one hairline between tiles, at any column count: the last column's and last
   row's rules fall outside the rounded box and are clipped by overflow:hidden */
.stat {
  padding: 20px 20px 18px;
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  margin: 0 -1px -1px 0;
}
.stat .num { font-family: var(--sans); font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; display: block; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 22px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0; }
.stat .cap { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

/* ---------------------------------------------------------------- rule / equation */

.rule {
  background: #fff; border: 1px solid var(--rule); border-radius: 10px;
  padding: 18px 22px; margin: 18px 0 22px;
  font-family: var(--sans); font-size: 15px;
}
.rule table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 15px; white-space: normal; }
.rule td { padding: 8px 10px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; text-align: left; }
.rule tr:last-child td { border-bottom: none; }
.rule td:first-child { width: 190px; font-weight: 700; white-space: nowrap; }
.rule .cond { color: var(--ink-soft); }
.rule .m { font-family: var(--serif); font-style: italic; font-size: 16px; }
.rule .r-nom td:first-child { color: var(--nominal); }
.rule .r-abort td:first-child { color: var(--abort); }
.rule .r-protect td:first-child { color: var(--protect); }
.chip { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; margin-right: 6px; vertical-align: middle; }
.chip--nom { background: var(--nominal-bg); color: #1d8a50; }
.chip--abort { background: var(--abort-bg); color: #d4610f; }
.chip--protect { background: var(--protect-bg); color: #2470bd; }

/* ---------------------------------------------------------------- bullets */

ul.blist {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  max-width: 820px;
}
ul.blist li {
  position: relative;
  padding-left: 24px;
  margin: 0 0 11px;
  line-height: 1.5;
}
ul.blist li:last-child { margin-bottom: 0; }
ul.blist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
}
ul.blist li b { font-weight: 600; }
ul.blist--tight li { font-family: var(--sans); font-size: 14.5px; line-height: 1.5; }
.two ul.blist, .two--wide-r ul.blist { max-width: none; }

/* ------------------------------------------------------- clip gallery bits */

.rb {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 10px;
  background: #fff;
  white-space: nowrap;
}
.tint .rb { background: var(--page); }

.vgrid--wide { grid-template-columns: minmax(0, 1fr); max-width: 660px; }
.vgrid--cf { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.vcard--lead { max-width: 640px; margin: 0 auto 30px; }
.vcard--lead .desc { max-width: 560px; }

.subhead {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

/* ---------------------------------------------------------------- tables */

.tscroll { overflow-x: auto; margin: 0 0 14px; -webkit-overflow-scrolling: touch; }
table {
  border-collapse: collapse; width: 100%;
  font-family: var(--sans); font-size: 14px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
thead th { font-weight: 600; color: var(--ink-soft); text-align: right; padding: 8px 12px; border-bottom: 1px solid var(--ink); }
thead th:first-child { text-align: left; }
thead tr.group th {
  border-bottom: 1px solid var(--rule); text-align: center; font-size: 12.5px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); padding-bottom: 6px;
}
tbody td { padding: 7px 12px; text-align: right; border-bottom: 1px solid var(--rule-soft); }
tbody td:first-child { text-align: left; white-space: nowrap; }
tbody tr.block td { font-style: italic; color: var(--ink-faint); padding-top: 16px; border-bottom: 1px solid var(--rule); }
tbody tr.ours { background: #eef4ff; }
tbody tr.ours td:first-child { font-weight: 700; }
tbody tr.ref td:first-child { font-weight: 600; }
td b, th b { font-weight: 700; color: var(--ink); }
.pm { color: var(--ink-faint); font-size: 12.5px; }
.mean { color: var(--ink-faint); }
.tnote { font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.tcap { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.tcap .tn { color: var(--ink-faint); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-right: 8px; }

/* ---------------------------------------------------------------- callout */

.callout {
  border-left: 3px solid var(--ink); padding: 4px 0 4px 20px; margin: 26px 0;
  font-size: 20px; line-height: 1.45; letter-spacing: -.005em;
}
.callout .who { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-faint); margin-top: 8px; letter-spacing: 0; }

/* ---------------------------------------------------------------- bibtex */

pre.bib {
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  background: #fff; border: 1px solid var(--rule); border-radius: 8px;
  padding: 18px 20px; overflow-x: auto; margin: 0; color: var(--ink-soft);
}

/* ---------------------------------------------------------------- footer */

footer { border-top: 1px solid var(--rule); padding: 34px 0 60px; font-family: var(--sans); font-size: 13.5px; line-height: 1.6; color: var(--ink-faint); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, .two--wide-r { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  h1.title { font-size: 36px; }
  .subtitle { font-size: 20px; }
  header.hero { padding: 40px 0 28px; }
  section { padding: 44px 0; }
  .topbar nav { display: none; }
  .trip, .vgrid, .vgrid--2, .vgrid--cf, .contrib { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .callout { font-size: 18px; }
  .rule td:first-child { width: auto; }
}
