/* ==========================================================================
   Selective Object Rearrangement in Clutter — project page
   Palette: deep slate hero, with the cyan the paper figures use to mark the
   selected object (#5ce1e6) as the accent. The accent variables keep the
   "sand" names from the Refinery stylesheet this page was built from.
   ========================================================================== */

:root {
  --surface:        #ffffff;
  --surface-alt:    #f4f7f9;
  --surface-sunken: #edf2f5;
  --plate:          #ffffff;          /* figures always sit on white */
  --border:         #dce5ea;
  --border-strong:  #c4d2da;

  --text:           #17242c;
  --text-muted:     #586a75;
  --text-faint:     #7f919b;

  --primary:        #0e6a78;
  --primary-soft:   #4fa6b2;
  --primary-tint:   #e6f3f5;
  --steel:          #345f71;
  --sand:           #5ce1e6;          /* accent: selection cyan */
  --sand-deep:      #0b7480;
  --sand-tint:      #e9f8f9;

  --bar:            #9fbfca;          /* chart: comparison bars */
  --bar-ours:       #0e6a78;          /* chart: our bar */
  --on-primary:     #ffffff;

  --hero-1:         #0f1b24;
  --hero-2:         #142a36;
  --hero-3:         #183746;
  --on-hero:        #e7f0f4;
  --on-hero-muted:  #9fb6c1;

  --radius:   14px;
  --radius-s: 9px;
  --maxw:     1080px;
  --maxw-wide: 1260px;

  --shadow-s: 0 1px 2px rgba(15, 30, 40, .05), 0 2px 8px rgba(15, 30, 40, .05);
  --shadow-m: 0 2px 4px rgba(15, 30, 40, .06), 0 10px 28px rgba(15, 30, 40, .08);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface:        #0e171d;
    --surface-alt:    #132028;
    --surface-sunken: #18262f;
    --plate:          #ffffff;
    --border:         #24363f;
    --border-strong:  #334954;

    --text:           #e4eef2;
    --text-muted:     #9db1ba;
    --text-faint:     #728891;

    --primary:        #6fd3dc;
    --primary-soft:   #4fa6b2;
    --primary-tint:   #13303a;
    --steel:          #7fa9bd;
    --sand:           #5ce1e6;
    --sand-deep:      #7fe6ea;
    --sand-tint:      #10292f;

    --bar:            #3d5a66;
    --bar-ours:       #6fd3dc;
    --on-primary:     #0b1a20;

    --shadow-s: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow-m: 0 2px 4px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);

    color-scheme: dark;
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }

.wrap      { max-width: var(--maxw);      margin-inline: auto; padding-inline: 24px; }
.wrap-wide { max-width: var(--maxw-wide); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

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

.hero {
  background: linear-gradient(157deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  color: var(--on-hero);
  padding: 72px 0 132px;
  position: relative;
  overflow: hidden;
}
.hero::after {           /* soft radial lift, keeps the flat gradient from banding */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 420px at 72% 8%, rgba(92, 225, 230, .09), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }

.venue {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--sand);
  border: 1px solid rgba(92, 225, 230, .4);
  background: rgba(92, 225, 230, .08);
  padding: 5px 13px; border-radius: 999px;
  text-decoration: none;
}
.venue:hover { background: rgba(92, 225, 230, .16); color: var(--sand); }

h1.title {
  margin: 22px 0 0;
  font-size: clamp(2.9rem, 7.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}
.title .wordmark { color: #fff; }
.subtitle {
  margin: 14px 0 0;
  font-size: clamp(1.08rem, 2.4vw, 1.5rem);
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--on-hero);
}

.authors {
  margin: 30px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  font-size: .94rem; font-weight: 500;
}
/* every author is a link now, so keep the underline faint — it reads as a
   name list first, and still marks itself as clickable */
.authors a {
  color: var(--on-hero);
  text-decoration-color: rgba(234, 242, 238, .3);
  text-underline-offset: 3px;
}
.authors a:hover { color: #fff; text-decoration-color: var(--sand); }
.authors sup { color: var(--sand); font-size: .72em; font-weight: 600; margin-left: 1px; }

.affil {
  margin: 14px 0 0;
  font-size: .87rem; color: var(--on-hero-muted);
  display: flex; flex-wrap: wrap; gap: 4px 20px;
}
.affil sup { color: var(--sand); font-size: .74em; font-weight: 600; margin-right: 2px; }

.actions { margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 11px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 19px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(234, 242, 238, .3);
  color: var(--on-hero); background: rgba(255, 255, 255, .07);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: rgba(255, 255, 255, .15); border-color: rgba(234, 242, 238, .55); color: #fff; transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--sand); border-color: var(--sand); color: #0b1a20; }
.btn-primary:hover { background: #8aeaee; border-color: #8aeaee; color: #0b1a20; }
.btn[aria-disabled="true"] {
  opacity: .45; pointer-events: none;
  background: transparent; border-style: dashed;
}

/* ---------- sticky nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 6px; height: 54px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-brand {
  font-weight: 700; letter-spacing: -0.02em; color: var(--text);
  text-decoration: none; margin-right: 14px; flex: none;
}
.nav a.navlink {
  flex: none;
  padding: 6px 11px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--text-muted); text-decoration: none;
}
.nav a.navlink:hover { background: var(--surface-alt); color: var(--text); }

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

section { padding: 74px 0; }
section + section { border-top: 1px solid var(--border); }
.section-alt { background: var(--surface-alt); }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 10px;
}
h2.h {
  font-size: clamp(1.65rem, 3.6vw, 2.25rem); font-weight: 700; margin: 0 0 14px;
}
/* when the label IS the section heading, give it a little more presence and air */
h2.eyebrow { font-size: .85rem; margin: 0 0 22px; }

/* Abstract runs in two columns on wide screens so it fills the measure
   instead of trailing off at half width. */

.lede { font-size: 1.1rem; color: var(--text-muted); margin: 0 0 6px; }
.prose { max-width: none; }
.prose p { margin: 0 0 1.05em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- teaser (pulled up over the hero) ---------- */

.teaser-lift { position: relative; z-index: 2; margin-top: -96px; padding-top: 0; padding-bottom: 60px; border-top: 0; }

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

figure.fig { margin: 0; }
.plate {
  background: var(--plate);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-m);
  overflow: hidden;
}
.plate img { border-radius: calc(var(--radius) - 6px); width: 100%; }
figcaption {
  margin-top: 14px; font-size: .9rem; line-height: 1.6; color: var(--text-muted);
}
figcaption b, figcaption strong { color: var(--text); font-weight: 650; }

.pan-hint { display: none; }

@media (max-width: 760px) {
  /* Wide paper figures shrink below legibility on a phone — let them pan instead. */
  .plate.pan { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plate.pan img { width: 680px; max-width: none; }
  .pan-hint { display: inline; font-style: italic; color: var(--text-faint); }
}

/* ---------- stat tiles ---------- */

.stats {
  display: grid; gap: 14px; margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 20px 18px; box-shadow: var(--shadow-s);
}
.section-alt .stat { background: var(--surface); }
.stat-val {
  font-size: 2.45rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.stat-val .unit { font-size: .52em; font-weight: 600; letter-spacing: -0.01em; color: var(--text-muted); margin-left: 1px; }
.stat-label { margin-top: 8px; font-size: .92rem; line-height: 1.45; color: var(--text); font-weight: 550; }
.stat-sub { margin-top: 7px; font-size: .83rem; color: var(--text-muted); }
.chip {
  display: inline-block; margin-top: 10px;
  font-size: .78rem; font-weight: 650; font-variant-numeric: tabular-nums;
  padding: 3px 9px; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}

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

.video-frame {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: var(--radius); overflow: hidden;
  background: #0b141a; border: 1px solid var(--border-strong); box-shadow: var(--shadow-m);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- method ---------- */

.steps { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 30px; }
@media (min-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 26px; } }

.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px 24px; box-shadow: var(--shadow-s);
  display: flex; flex-direction: column;
}
.section-alt .step { background: var(--surface); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--primary); color: var(--on-primary);
  font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step h3 { font-size: 1.22rem; font-weight: 680; letter-spacing: -0.025em; }
.step-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.step p { margin: 0 0 1em; font-size: .97rem; }

/* math */
.math {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.04rem;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 13px 16px; margin: 4px 0 16px;
  text-align: center; overflow-x: auto;
  color: var(--text);
}
.math .v { font-style: italic; }
.math .lbl { font-style: normal; font-family: var(--font); font-size: .82rem; color: var(--text-muted); margin-right: 10px; font-weight: 600; }
.mathrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: center; }

/* acquisition list */
.acq { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 10px; }
.acq li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline;
  padding: 11px 14px; border-radius: var(--radius-s);
  background: var(--surface-sunken); border: 1px solid var(--border);
  font-size: .95rem;
}
.acq .tag {
  font-weight: 700; font-size: .8rem; letter-spacing: .04em;
  color: var(--text-muted);
}
.acq li.win { background: var(--sand-tint); border-color: color-mix(in srgb, var(--sand-deep) 35%, transparent); }
.acq li.win .tag { color: var(--sand-deep); }
.acq .m { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-style: italic; }
.acq .score { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--text); }

/* algorithm card */
.algo {
  margin-top: auto; padding-top: 18px;
}
.algo-box {
  background: var(--surface-sunken); border: 1px solid var(--border);
  border-radius: var(--radius-s); padding: 16px 18px;
}
.algo-title {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 10px;
}
.algo ol { margin: 0; padding-left: 1.25em; font-size: .9rem; line-height: 1.6; color: var(--text-muted); }
.algo ol li { margin-bottom: 5px; }
.algo ol li:last-child { margin-bottom: 0; }
.algo b { color: var(--text); font-weight: 650; }

/* ---------- native bar chart ---------- */

.chart-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px 20px; box-shadow: var(--shadow-s);
}
.section-alt .chart-card { background: var(--surface); }
.chart-title { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.02em; margin: 0 0 3px; }
.chart-sub { font-size: .87rem; color: var(--text-muted); margin: 0 0 26px; }

.chart {
  position: relative;
  height: 300px;
  margin-left: 42px;
  border-bottom: 1px solid var(--border-strong);
}
.gridline { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--border); }
.gridline span {
  position: absolute; right: calc(100% + 10px); top: -.7em;
  font-size: .76rem; color: var(--text-faint); font-variant-numeric: tabular-nums;
}
.bars {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; gap: clamp(10px, 4vw, 46px);
  padding-inline: clamp(6px, 3vw, 34px);
}
.bar-slot { flex: 1; position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar {
  position: relative; width: 100%; max-width: 104px;
  background: var(--bar);
  border-radius: 4px 4px 0 0;
  transition: filter .15s ease;
}
.bar.is-ours { background: var(--bar-ours); }
.bar-slot:hover .bar, .bar-slot:focus-within .bar { filter: brightness(1.08); }

.bar-val {
  position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--text); white-space: nowrap;
}
.whisker {                       /* ±1 std */
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 2px; background: color-mix(in srgb, var(--text) 42%, transparent);
}
.whisker::before, .whisker::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 15px; height: 2px; background: inherit;
}
.whisker::before { top: 0; }
.whisker::after  { bottom: 0; }

.xlabels {
  display: flex; gap: clamp(10px, 4vw, 46px);
  margin-left: 42px; padding-inline: clamp(6px, 3vw, 34px); padding-top: 12px;
}
.xlab { flex: 1; text-align: center; }
.xlab .n { font-size: .9rem; font-weight: 600; color: var(--text); line-height: 1.3; display: block; }
.xlab .sd { font-size: .78rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.xlab.is-ours .n { color: var(--primary); }

.chart-foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: .84rem; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
}
.key { display: inline-flex; align-items: center; gap: 7px; }
.key .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.key .sw.a { background: var(--bar); }
.key .sw.b { background: var(--bar-ours); }
.key .wk { width: 12px; height: 12px; flex: none; position: relative; }
.key .wk::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: color-mix(in srgb, var(--text) 42%, transparent); }
.key .wk::after  { content: ""; position: absolute; left: 1px; right: 1px; top: 0; height: 2px; background: color-mix(in srgb, var(--text) 42%, transparent); box-shadow: 0 10px 0 color-mix(in srgb, var(--text) 42%, transparent); }

/* tooltip */
.tip {
  position: fixed; z-index: 60; pointer-events: none;
  background: var(--text); color: var(--surface);
  padding: 9px 12px; border-radius: 8px; font-size: .82rem; line-height: 1.45;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .25);
  opacity: 0; transform: translate(-50%, -112%); transition: opacity .12s ease;
  max-width: 260px;
}
.tip.on { opacity: 1; }
.tip b { font-weight: 700; display: block; margin-bottom: 2px; }
.tip .nums { font-variant-numeric: tabular-nums; }

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

.table-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-s);
}
.section-alt .table-wrap { background: var(--surface); }
table.data {
  width: 100%; border-collapse: collapse; font-size: .92rem;
  font-variant-numeric: tabular-nums;
}
table.data th, table.data td { padding: 11px 16px; text-align: right; white-space: nowrap; }
table.data thead th {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid var(--border-strong);
  background: var(--surface-alt);
  position: sticky; top: 0;
}
.section-alt table.data thead th { background: var(--surface-sunken); }
table.data th.l, table.data td.l { text-align: left; }
table.data tbody tr + tr > * { border-top: 1px solid var(--border); }
table.data tbody tr:hover td { background: var(--surface-alt); }
table.data td.ours, table.data th.ours { background: var(--sand-tint); }
table.data tbody tr:hover td.ours { background: color-mix(in srgb, var(--sand) 25%, var(--surface)); }
table.data th.ours { color: var(--sand-deep); }
table.data tfoot td {
  border-top: 2px solid var(--border-strong); font-weight: 700; background: var(--surface-alt);
}
.section-alt table.data tfoot td { background: var(--surface-sunken); }
table.data .delta { font-size: .8em; color: var(--primary); font-weight: 650; margin-left: 4px; }
table.data .best { font-weight: 700; }
.table-note { margin-top: 12px; font-size: .86rem; color: var(--text-muted); }

/* ---------- result blocks ---------- */

.result { margin-top: 56px; }
.result:first-of-type { margin-top: 36px; }
.result h3 {
  font-size: 1.22rem; font-weight: 680; letter-spacing: -0.025em; margin: 0 0 8px;
  display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap;
}
.qtag {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-tint);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.result > p { color: var(--text-muted); margin: 0 0 22px; font-size: .99rem; }
.result > p strong { color: var(--text); font-weight: 650; }

/* takeaway callout */
.takeaway {
  margin-top: 22px;
  border-left: 3px solid var(--primary);
  background: var(--primary-tint);
  padding: 14px 18px; border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: .95rem; color: var(--text);
}
.takeaway b { font-weight: 680; }

/* ---------- limitations ---------- */

.lims { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .lims { grid-template-columns: repeat(3, 1fr); } }
.lims li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; font-size: .95rem; color: var(--text-muted); box-shadow: var(--shadow-s);
}
.section-alt .lims li { background: var(--surface); }
.lims b { display: block; color: var(--text); font-weight: 650; margin-bottom: 6px; font-size: 1rem; }

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

.bib {
  position: relative;
  background: var(--surface-sunken); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; overflow-x: auto;
}
.bib pre { margin: 0; font-family: var(--mono); font-size: .84rem; line-height: 1.7; color: var(--text); }
.copy {
  position: absolute; top: 12px; right: 12px;
  font: inherit; font-size: .8rem; font-weight: 600;
  padding: 6px 12px; border-radius: 7px; cursor: pointer;
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--border-strong);
}
.copy:hover { color: var(--text); border-color: var(--text-faint); }
.copy.done { color: var(--primary); border-color: var(--primary); }

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

footer.site {
  background: var(--hero-1); color: var(--on-hero-muted);
  padding: 48px 0; font-size: .9rem;
}
footer.site a { color: var(--sand); }
footer.site .f-row { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; }

/* ---------- a11y ---------- */

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 54px 0; }
  .hero { padding: 52px 0 120px; }
  .chart { height: 240px; margin-left: 34px; }
  .xlabels { margin-left: 34px; }
  .xlab .n { font-size: .8rem; }
  .xlab .sd { font-size: .72rem; }
  .stat-val { font-size: 2.1rem; }
}

/* ==========================================================================
   Additions for this page
   ========================================================================== */

/* a full paper title rather than a one-word wordmark */
h1.title.long {
  /* stays on one line (it measures ~19x its font size) down to tablet widths */
  font-size: clamp(1.9rem, calc((100vw - 48px) / 20), 3.5rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.title .accent { color: var(--sand); }

/* three method stages side by side on wide screens */
@media (min-width: 1040px) { .steps.three { grid-template-columns: repeat(3, 1fr); } }
.step-q {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic; font-size: 1.05rem; color: var(--primary); margin: -4px 0 12px;
}

/* inline looping clip */
.clip {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #0b141a; border: 1px solid var(--border-strong); box-shadow: var(--shadow-m);
  aspect-ratio: 16 / 9;
}
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }

.split { display: grid; gap: 26px; align-items: start; margin-top: 30px; }
@media (min-width: 940px) { .split { grid-template-columns: 1.15fr 1fr; gap: 34px; } }

/* settings table: check / cross marks */
table.data .y, table.data .n { font-weight: 700; }
table.data .y { color: var(--primary); }
table.data .n { color: var(--text-faint); font-weight: 500; }
table.data td.c, table.data th.c { text-align: center; }
table.data tbody tr.group-start > * { border-top: 2px solid var(--border-strong); }
table.data th.method { vertical-align: top; }

/* horizontal bars (planning steps) */
.hbars { display: grid; gap: 26px; }
@media (min-width: 820px) { .hbars { grid-template-columns: 1fr 1fr; gap: 34px; } }
.hgroup h4 { margin: 0 0 12px; font-size: .9rem; font-weight: 650; color: var(--text); }
.hrow { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; align-items: center; margin-bottom: 10px; }
.hrow .lab { font-size: .86rem; color: var(--text-muted); }
.hrow.is-ours .lab { color: var(--primary); font-weight: 650; }
.htrack { position: relative; height: 26px; }
.hbar {
  height: 100%; border-radius: 0 5px 5px 0; background: var(--bar);
  display: flex; align-items: center; justify-content: flex-end;
}
.hrow.is-ours .hbar { background: var(--bar-ours); }
.hval {
  position: absolute; top: 50%; transform: translateY(-50%); margin-left: 8px;
  font-size: .84rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap;
}
.hval .sd { font-weight: 450; color: var(--text-faint); margin-left: 3px; }
@media (max-width: 560px) { .hval .sd { display: none; } }

/* four limitations as a 2 x 2 grid */
@media (min-width: 820px) { .lims.four { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
