/* Laplace Research — laplaceresearch.org
   One stylesheet: a left rail, a visible hairline grid, numbered sections,
   Geist headings over Source Serif reading text, Geist Mono for labels.
   Light only. */

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #0e0f11;
  --ink-2: #3c3f45;
  --muted: rgba(20, 21, 24, 0.52);
  --line: rgba(20, 21, 24, 0.1);
  --line-strong: rgba(20, 21, 24, 0.2);
  --accent: #3347d6;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --quiet: #9a9da3;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --rail: 232px;
  --gutter: 88px;
  --col: 680px;
  --mark: brightness(0);
  /* aliases for the figure, table, and release components */
  --text: var(--ink);
  --text-2: var(--ink-2);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --link-line: var(--line-strong);
  --mark-quiet: var(--quiet);
  --track: color-mix(in srgb, var(--ink) 6%, transparent);
  color-scheme: only light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- frame: rail + gutter + column, with visible hairlines ---------- */

.frame {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) var(--gutter) minmax(0, var(--col)) minmax(24px, 1fr);
  min-height: 100vh;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--line), var(--line)) 24px 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) var(--rail) 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) calc(var(--rail) + var(--gutter)) 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) calc(var(--rail) + var(--gutter) + var(--col)) 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) calc(100% - 24px) 0 / 1px 100% no-repeat;
}

/* ---------- rail ---------- */

.rail {
  position: sticky;
  top: 0;
  grid-column: 1;
  grid-row: 1 / span 20;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 160px 24px 32px 44px;
  font-family: var(--sans);
}

.rail .mark { display: block; width: 22px; height: auto; margin-bottom: 18px; filter: var(--mark); }
.rail nav { display: flex; flex-direction: column; gap: 1px; font-size: 14px; line-height: 1.45; }
.rail nav a { position: relative; text-decoration: none; color: var(--ink); }
.rail nav a:hover { color: var(--accent); }
.rail nav a[aria-current="page"] { color: var(--accent); }
.rail nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: -12px;
  width: 2px;
  background: var(--accent);
}
.rail .rail-btn {
  align-self: flex-start;
  margin-top: 14px;
  padding: 4px 9px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
}
.rail .rail-btn:hover { border-color: var(--ink); }
.rail .rail-foot { margin-top: auto; color: var(--muted); font-family: var(--mono); font-size: 11px; }

/* ---------- sections ---------- */

main { display: contents; }

.sec {
  position: relative;
  display: grid;
  grid-column: 2 / 5;
  grid-template-columns: var(--gutter) minmax(0, var(--col)) minmax(24px, 1fr);
  padding: 72px 0 88px;
}

.sec + .sec { border-top: 1px solid var(--line); }

/* crosshair where the section rule meets the column lines */
.sec + .sec::before,
.sec + .sec::after {
  content: "+";
  position: absolute;
  top: -10px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
}
.sec + .sec::before { left: calc(var(--gutter) - 4px); }
.sec + .sec::after { left: calc(var(--gutter) + min(var(--col), 100% - var(--gutter) - 24px) - 4px); }

.num {
  grid-column: 1;
  padding: 7px 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
}

.body { grid-column: 2; padding: 0 28px; }
.wide { grid-column: 2 / 4; padding: 0 28px 0 28px; }

.sec h1 {
  max-width: 620px;
  margin: 0 0 26px;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.sec h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.body > p { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.body > p a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.body > p a:hover { text-decoration-color: currentColor; }

.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; font-family: var(--sans); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
}
.btn:hover { border-color: var(--ink); }
.btn.solid { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn.solid:hover { opacity: 0.85; }

/* ---------- 02: facts wall (hairline cells) ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.facts div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 132px;
  padding: 16px 16px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}
.facts b { font-size: 30px; font-weight: 400; line-height: 1; letter-spacing: -0.03em; }
.facts span { color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.03em; }
.facts .viz { padding: 0; }
.facts .viz svg { display: block; width: 100%; height: 100%; }
.facts .viz path { fill: none; stroke: var(--ink); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.facts .viz .soft { opacity: 0.25; }
.facts .viz .acc { stroke: var(--accent); stroke-width: 1.75; }

/* ---------- 03: results card ---------- */

.card {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-family: var(--sans);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.card-head a { color: var(--accent); text-decoration: none; }
.card-head a:hover { text-decoration: underline; }
.tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); }
.tabs button {
  margin-bottom: -1px;
  padding: 7px 10px 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { border-bottom-color: var(--ink); color: var(--ink); }
.tabs button:hover { color: var(--ink); }
.rows { margin: 0; padding: 6px 0; list-style: none; }
.rows li {
  display: grid;
  grid-template-columns: 22px 10px minmax(0, 1.2fr) minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
  padding: 8px 16px;
  font-size: 13.5px;
}
.rows .rk { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.rows .sw { width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.rows .nm small { margin-left: 6px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.rows .tr { position: relative; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 6%, transparent); overflow: hidden; }
.rows .tr i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: 2px; background: var(--c); transition: width 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.rows .vl { font-family: var(--mono); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.rows li.ref .nm { color: var(--muted); }
.card-foot { padding: 10px 16px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---------- open models: cards grouped by family ---------- */

.models-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 26px; font-family: var(--sans); }
.models-head h2 { margin: 0; }
.models-head a { color: var(--muted); font-size: 13.5px; text-decoration: none; }
.models-head a:hover { color: var(--ink); }

.mfamily {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 16px 0 14px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--sans);
}
.mfamily h3 { margin: 0 0 3px; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.mfamily p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.mfamily-meta { display: flex; align-items: center; gap: 14px; flex: none; font-size: 13.5px; }
.mfamily-meta a { text-decoration: none; }
.mfamily-meta a:hover { color: var(--accent); }
.mlicense { padding: 2px 7px 3px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--muted); font-family: var(--mono); font-size: 11px; }

.mgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.mcard {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--sans);
  transition: background-color 180ms ease;
}
.mcard:hover { background: color-mix(in srgb, var(--surface) 94%, var(--c)); }
.mcard-top { display: flex; align-items: center; gap: 8px; }
.mdot { width: 9px; height: 9px; border-radius: 2px; background: var(--c); flex: none; }
.mtag {
  margin-left: auto;
  padding: 2px 6px 3px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.mcard h3 { margin: 16px 0 6px; font-size: 25px; font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; }
.mdesc { margin: 0; color: var(--ink-2); font-family: var(--serif); font-size: 15px; line-height: 1.5; }
.mstats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.mstats div { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.mstats dt { color: var(--muted); font-family: var(--mono); font-size: 10.5px; line-height: 1.35; letter-spacing: 0.02em; text-transform: uppercase; }
.mstats dd { margin: 5px 0 0; font-size: 24px; line-height: 1; letter-spacing: -0.02em; }
.mlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; }
.mlinks a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
}
.mlinks a:hover { border-color: var(--ink); }
.mlinks .icon { width: 14px; height: 14px; }
.mlinks time { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.mnote { margin: 10px 0 40px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.mnote:last-child { margin-bottom: 0; }

/* ---------- careers: roles and application form ---------- */

.roles-count { color: var(--muted); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; }

.role { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-family: var(--sans); }
.role + .role { margin-top: 16px; }
.role-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 20px 22px 18px; border-bottom: 1px solid var(--line); }
.role-head h3 { margin: 8px 0 0; font-size: 24px; font-weight: 400; line-height: 1.15; letter-spacing: -0.025em; }
.role-meta { display: flex; gap: 22px; margin: 0; flex: none; }
.role-meta dt { color: var(--muted); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em; text-transform: uppercase; }
.role-meta dd { margin: 3px 0 0; font-size: 14px; }
.role-body { padding: 20px 22px 22px; }
.role-lede { max-width: 640px; margin: 0 0 20px; color: var(--ink-2); font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.role-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-bottom: 22px; }
.role-cols h4 { margin: 0 0 10px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.03em; text-transform: uppercase; }
.role-cols ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.role-cols li { position: relative; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-family: var(--serif); font-size: 15px; line-height: 1.5; }
.role-cols li::before { content: ""; position: absolute; top: 18px; left: 2px; width: 6px; height: 1px; background: var(--accent); }
button.btn { font-family: var(--sans); cursor: pointer; }

.apply-form { margin-top: 24px; font-family: var(--sans); }
.apply-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 500; }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font: 15px/1.45 var(--sans);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field [aria-invalid="true"] { border-color: #d03b3b; }
.field-error { margin: 6px 0 0; color: #c23333; font-size: 13px; }
.form-note { margin: 4px 0 18px; color: var(--muted); font-size: 13px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-actions .btn { padding: 10px 16px 11px; font-size: 14.5px; }
.form-actions .btn:disabled { opacity: 0.55; cursor: progress; }
.form-status { margin: 0; font-size: 14px; }
.form-status[data-kind="ok"] { color: var(--s3); }
.form-status[data-kind="error"] { color: #c23333; }

/* ---------- 04: principles ---------- */

.principles { display: grid; gap: 0; margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.principles .i { color: var(--muted); font-family: var(--mono); font-size: 11px; padding-top: 5px; }
.principles h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.principles p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

/* ---------- 06: writing carousel ---------- */

.carousel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-family: var(--sans); }
.carousel-head h2 { margin: 0; font-size: 13px; color: var(--muted); font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; }
.arrows { display: flex; gap: 4px; }
.arrows button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}
.arrows button:hover { border-color: var(--ink); }
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel::-webkit-scrollbar { display: none; }
.post { scroll-snap-align: start; text-decoration: none; font-family: var(--sans); }
.post .cover { aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); }
.post .cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.post:hover .cover img { transform: scale(1.03); }
.post h3 { margin: 12px 0 4px; font-size: 15px; line-height: 1.35; }
.post time { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.post:hover h3 { color: var(--accent); }

/* covers draw with tokens */
.cv-bg { fill: var(--surface); }
.cv-ink { stroke: var(--ink); fill: none; stroke-width: 1.4; }
.cv-soft { stroke: var(--ink); fill: none; stroke-width: 1.2; opacity: 0.22; }
.cv-acc { stroke: var(--accent); fill: none; stroke-width: 2; }
.cv-acc-fill { fill: var(--accent); }
.cv-ink-fill { fill: var(--ink); }
.cv-block { fill: var(--accent); }
.cv-block-2 { fill: var(--ink); }
.cv-label { fill: var(--surface); font-family: var(--sans); font-size: 22px; }

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

.foot {
  grid-column: 1 / 5;
  display: grid;
  grid-template-columns: var(--rail) var(--gutter) minmax(0, var(--col)) minmax(24px, 1fr);
  position: relative;
  z-index: 2;
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.8;
}
.foot .brand { display: flex; align-items: center; gap: 8px; padding-left: 44px; font-family: var(--sans); font-size: 14px; font-weight: 500; }
.foot .brand img { width: 18px; height: auto; filter: var(--mark); }
.foot .cols { grid-column: 3 / 5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0 28px; }
.foot a { display: block; color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .copy { grid-column: 3 / 5; padding: 40px 28px 0; color: var(--muted); }

/* ---------- article page ---------- */

.body > p.dek { margin: 0 0 18px; color: var(--ink); font-family: var(--sans); font-size: 21px; line-height: 1.35; letter-spacing: -0.015em; }
.body > p.lead { color: var(--ink); font-size: 18px; line-height: 1.55; }
.body > p.byline { margin: 18px 0 0; color: var(--muted); font-family: var(--sans); font-size: 14px; }
.body > p.byline a { color: var(--ink); }
.prose .btns { margin-bottom: 4px; }
.sec h2 + .table-scroll, .wide > h2 { margin-bottom: 18px; }

.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 28px; color: var(--muted); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; }
.toc { position: sticky; top: 160px; align-self: start; grid-column: 3; padding: 4px 24px 0 28px; font-family: var(--sans); font-size: 13px; }
.toc p { margin: 0 0 10px; color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.toc a { display: block; padding: 3px 0; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.prose h3 { margin: 32px 0 10px; font-size: 17px; font-weight: 500; }
.prose pre { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: 12.5px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.figure-cap { margin: 10px 0 0; color: var(--muted); font-family: var(--sans); font-size: 12.5px; line-height: 1.5; }


/* ---------- shared pieces ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }


a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

code { font-family: var(--mono); font-size: 0.88em; }

.kicker { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; }

.icon {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.icon-links {
  display: inline-flex;
  gap: 4px;
}

.icon-links a {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--muted);
}

.icon-links a:hover {
  background: var(--surface);
  color: var(--text);
}

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- lists of people, research, contact ---------- */

.people-list,
.research-list,
.contact-list {
  border-top: 1px solid var(--rule-strong);
}

.person-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.8fr;
  gap: 32px;
  align-items: baseline;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--rule);
}

.person-row h3,
.person-row p { margin: 0; }

.person-row h3 {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.022em;
}

.person-row p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.person-links,
.research-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
}

.research-links {
  flex-direction: column;
  align-items: flex-start;
}

.contact-list {
  margin: 44px 0 0;
  padding: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 15px 0 16px;
  border-bottom: 1px solid var(--rule);
}

.contact-list dt,
.contact-list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.contact-list dt { color: var(--muted); }

.research-list { grid-column: 4 / 13; }

.research-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 180px;
  gap: 40px;
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--rule);
}

.research-date { padding-top: 7px; }

.research-type {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.research-copy h2,
.research-copy h3,
.research-copy p { margin: 0; }

.research-copy h2,
.research-copy h3 {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.research-copy h2 a,
.research-copy h3 a { text-decoration: none; }
.research-copy h2 a:hover,
.research-copy h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.research-copy p {
  max-width: 620px;
  margin-top: 12px;
  color: var(--text-2);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
}

.research-copy .research-authors {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13.5px;
}

.research-copy .research-note {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
}

.list-more {
  margin: 28px 0 0;
  font-size: 14px;
}

.standards {
  padding-top: 80px;
  padding-bottom: 100px;
  border-top: 1px solid var(--rule);
}

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

.table-scroll {
  position: relative;
  overflow-x: auto;
  scrollbar-color: var(--rule-strong) transparent;
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}

.data-table caption {
  padding-bottom: 12px;
  text-align: left;
  color: var(--text);
  font-weight: 500;
}

.data-table th,
.data-table td {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
  font-weight: 400;
}

.data-table thead th {
  border-top: 1px solid var(--rule-strong);
  color: var(--muted);
  font-size: 13px;
}

.data-table tbody th { white-space: nowrap; }

.data-table td {
  color: var(--text-2);
}

.data-table td.num,
.data-table th.num {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.data-table .tag {
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
}

.table-note,
.figure-note {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- figures (see figures.js for the hover layer) ---------- */

.figure {
  margin: 0;
}

.figure + .figure,
.figure + .table-block,
.table-block + .figure { margin-top: 56px; }

.inline-figure {
  margin: 40px 0 44px;
  padding: 26px 0 4px;
  border-top: 1px solid var(--rule);
}

.figure-head {
  margin-bottom: 22px;
}

.figure-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.figure-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 13px;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.key {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c, var(--s1));
}

.key.hollow {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--mark-quiet);
}

.panels {
  display: grid;
  grid-template-columns: repeat(var(--panels, 3), minmax(0, 1fr));
  gap: 28px 36px;
}

.panel-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}

.panel-title span {
  color: var(--muted);
  font-weight: 400;
}

.chart-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chart-row {
  display: grid;
  grid-template-columns: var(--label-w, 84px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 34px;
}

.chart-row > .row-label {
  overflow: hidden;
  color: var(--text-2);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* a track is the plotting area of one row; values are fractions of the axis */
.track {
  position: relative;
  height: 34px;
  background-image: linear-gradient(var(--rule), var(--rule));
  background-size: 1px 100%;
  background-repeat: no-repeat;
}

/* recessive vertical gridlines at the axis ticks */
.track::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--rule) 0 1px, transparent 1px);
  background-size: calc(100% / var(--ticks, 4)) 100%;
  background-repeat: repeat-x;
  border-right: 1px solid var(--rule);
  pointer-events: none;
}

.dot,
.ci,
.bar {
  position: absolute;
  top: 50%;
}

.ci {
  left: calc(var(--lo) * 100%);
  width: calc((var(--hi) - var(--lo)) * 100%);
  height: 2px;
  border-radius: 1px;
  background: var(--c, var(--s1));
  opacity: 0.55;
  transform: translateY(-50%);
}

.dot {
  left: calc(var(--v) * 100%);
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--c, var(--s1));
  transform: translate(-50%, -50%);
  cursor: default;
}

/* a generous, invisible hit target around each mark */
.dot::after {
  content: "";
  position: absolute;
  inset: -10px;
}

.dot.hollow {
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--mark-quiet);
}

.chart-row.is-reference .row-label { color: var(--muted); }

.chart-row.is-reference .ci { background: var(--mark-quiet); }

.bar {
  left: 0;
  width: max(2px, calc(var(--v) * 100%));
  height: 18px;
  border-radius: 0 4px 4px 0;
  background: var(--c, var(--s1));
  transform: translateY(-50%);
}

.bar::after {
  content: "";
  position: absolute;
  inset: -8px -6px;
}

/* bar charts keep room at the right for the value printed past each bar */
.has-values .track,
.axis.has-values { margin-right: 56px; }

.has-values .track::before { border-right: 0; }

.bar-value {
  position: absolute;
  top: 50%;
  left: calc(max(2px, var(--v) * 100%) + 8px);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  transform: translateY(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.axis {
  position: relative;
  height: 22px;
  margin-left: calc(var(--label-w, 84px) + 12px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.axis span {
  position: absolute;
  top: 6px;
  left: calc(var(--t) * 100%);
  transform: translateX(-50%);
}

.axis span:first-child { transform: none; }
.axis span:last-child { transform: translateX(-100%); }

.chart-tip {
  position: fixed;
  z-index: 40;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.chart-tip.is-visible { opacity: 1; }

.chart-tip b {
  display: block;
  font-weight: 500;
}

.chart-tip span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
}

/* ---------- release page pieces ---------- */

.release-facts {
  display: grid;
  grid-column: 4 / 13;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 72px 0 0;
  border-top: 1px solid var(--rule-strong);
}

.release-facts div { padding: 16px 16px 4px 0; }

.release-facts dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.release-facts dd {
  margin: 0;
  font-size: 15px;
}

.input-output {
  display: grid;
  grid-column: 4 / 10;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
}

.input-output > div { padding: 22px 24px 24px; }

.input-output > div + div { border-left: 1px solid var(--rule); }

.input-output p {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.input-output ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.8;
}

.input-output strong {
  display: block;
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.input-output span {
  color: var(--muted);
  font-size: 13.5px;
}

.finding {
  grid-column: 4 / 11;
  margin: 40px 0;
  padding: 0;
}

.finding p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.after-finding { grid-column: 4 / 10; }

.results-figure {
  margin-inline: 0;
  margin-bottom: 0;
}

.results-figure figcaption {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.model-list {
  grid-column: 4 / 13;
  margin-top: 48px;
  border-top: 1px solid var(--rule-strong);
}

.model-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.8fr;
  gap: 28px;
  align-items: baseline;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--rule);
}

.model-row-head {
  padding: 12px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.model-row p { margin: 0; }

.model-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.model-row > div p,
.model-row > p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.artifact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
}

.verification-block {
  grid-column: 4 / 10;
  margin-top: 8px;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
}

.verification-block p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.verification-block code { font-size: 15px; }

.limitations {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: limit;
}

.limitations li {
  position: relative;
  padding: 20px 0 6px 44px;
  border-top: 1px solid var(--rule);
  counter-increment: limit;
}

.limitations li::before {
  content: counter(limit, decimal-leading-zero);
  position: absolute;
  top: 23px;
  left: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.limitations h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.limitations p { font-size: 17px; }

.publication-details {
  margin: 32px 0 0;
  border-top: 1px solid var(--rule-strong);
}

.publication-details div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.publication-details dt { color: var(--muted); }
.publication-details dd { margin: 0; }

.citation-bib {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font: 13px/1.65 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}


/* ---------- component layout inside the column ---------- */

/* charts, tables, and their notes read in the interface face */
.figure, .chart-tip, .data-table caption, .table-note, .figure-note,
.results-figure figcaption, .research-copy .research-authors,
.research-copy .research-note, .research-links, .person-links,
.contact-list, .publication-details, .release-facts, .input-output,
.model-row, .verification-block p { font-family: var(--sans); }


.body .finding { margin: 28px 0; }
.body .finding p { font-size: clamp(26px, 2.6vw, 34px); }
.body .model-list, .body .release-facts { margin-top: 28px; }
.body .verification-block, .body .input-output { margin-top: 20px; }
.wide .figure { margin-top: 8px; }
.wide .table-block, .wide .results-figure { margin-top: 40px; }
.research-list { border-top: 1px solid var(--line-strong); }
.research-row { grid-template-columns: 120px minmax(0, 1fr) 150px; gap: 28px; padding: 26px 0 28px; }
.research-copy h2 { font-family: var(--sans); font-size: 22px; letter-spacing: -0.015em; }
.research-copy p { font-size: 15.5px; }
.person-row { grid-template-columns: 1fr 1.3fr 0.8fr; }
.icon-links a { width: 28px; height: 28px; border-radius: 3px; }
.models-table th[scope="row"] { font-family: var(--sans); font-weight: 500; }
.data-table { font-family: var(--sans); }

@media (max-width: 980px) {
  .mgrid { grid-template-columns: 1fr; }
  .mcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  .mcard-top, .mcard h3, .mdesc { grid-column: 1; }
  .mstats { grid-column: 2; grid-row: 1 / 4; margin: 0; padding: 0 0 0 20px; border-top: 0; border-left: 1px solid var(--line); align-content: start; }
  .mlinks { grid-column: 1 / 3; margin-top: 16px; }
}
@media (max-width: 560px) {
  .mcard { display: flex; }
  .mstats { margin: 16px 0; padding: 12px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .mfamily { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .role-head { flex-direction: column; align-items: flex-start; }
  .role-cols, .field-row { grid-template-columns: 1fr; }
  .role-cols { gap: 20px; }
}
@media (max-width: 860px) {
  .research-row, .person-row, .model-row { grid-template-columns: 1fr; gap: 8px; }
  .research-links { flex-direction: row; }
  .model-row-head { display: none; }
  .release-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .input-output { grid-template-columns: 1fr; }
  .input-output > div + div { border-top: 1px solid var(--rule); border-left: 0; }
  .panels { --panels: 1 !important; }
}
@media (max-width: 1120px) { .panels { --panels: 1 !important; } }

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

@media (max-width: 1120px) {
  :root { --rail: 196px; --gutter: 64px; }
  .toc { display: none; }
}

@media (max-width: 860px) {
  .frame { grid-template-columns: minmax(0, 1fr); }
  .frame::before { background: none; }
  .rail {
    position: sticky;
    z-index: 5;
    grid-row: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    height: auto;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .rail .mark { margin: 0; }
  .rail nav { flex-direction: row; gap: 14px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .rail nav a[aria-current="page"]::before { display: none; }
  .rail .rail-btn, .rail .rail-foot { display: none; }
  .sec, .foot { grid-column: 1; grid-template-columns: minmax(0, 1fr); }
  .sec { padding: 52px 0 60px; }
  .sec + .sec::before, .sec + .sec::after { display: none; }
  .num { grid-column: 1; padding: 0 20px 18px; }
  .body, .wide { grid-column: 1; padding: 0 20px; }
  .sec h1 { font-size: 30px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows li { grid-template-columns: 18px 10px minmax(0, 1fr) 70px 46px; gap: 8px; padding: 8px 12px; }
  .rows .nm small { display: none; }
  .carousel { grid-auto-columns: 78%; }
  .foot { padding: 40px 0 48px; }
  .foot .brand { padding: 0 20px 24px; }
  .foot .cols, .foot .copy { grid-column: 1; padding-left: 20px; padding-right: 20px; }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
