:root {
  color-scheme: light;
  --ink: #102b2a;
  --ink-soft: #254240;
  --muted: #607471;
  --paper: #f7f9f5;
  --mint: #edf4ef;
  --line: #dbe5dd;
  --teal: #1c8f88;
  --teal-dark: #116c66;
  --lime: #d5f872;
  --orange: #db8656;
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button, input { font: inherit; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .leaderboard-table-wrap:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 30;
  top: -80px;
  left: 16px;
  padding: 10px 15px;
  border-radius: 9px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(16, 43, 42, .08);
  background: rgba(247, 249, 245, .9);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 800; letter-spacing: -.055em; white-space: nowrap; }
.brand-accent { color: var(--teal); }
.brand-mark {
  position: relative;
  display: inline-block;
  width: 29px;
  height: 29px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  transform: rotate(-9deg);
}
.brand-mark i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.brand-mark i:nth-child(1) { left: 5px; bottom: 5px; }
.brand-mark i:nth-child(2) { left: 11px; top: 9px; }
.brand-mark i:nth-child(3) { right: 4px; bottom: 7px; }
.nav-links { display: flex; align-items: center; gap: 36px; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover, .text-link:hover { color: var(--teal-dark); }
.nav-github { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink); border-radius: 100px; padding: 10px 18px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; }
.nav-github:hover { background: var(--ink); color: var(--white); }

.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(38px, 5vw, 62px);
  padding-top: clamp(20px, 3vw, 38px);
  padding-bottom: clamp(80px, 8vw, 115px);
}
.hero-figures { display: grid; gap: 18px; min-width: 0; }
.hero-paper-figure { overflow: hidden; width: 100%; margin: 0; border: 1px solid #d5e3d8; border-radius: 22px; background: var(--white); box-shadow: 0 24px 55px rgba(16, 43, 42, .09); }
.hero-paper-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 15px 23px; color: var(--teal-dark); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.hero-paper-heading a { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 0; white-space: nowrap; }
.hero-paper-heading a:hover { color: var(--teal-dark); }
.hero-paper-image { display: block; padding: 15px 19px; }
.hero-paper-image img { display: block; width: 100%; height: auto; }
.hero-paper-figure figcaption { border-top: 1px solid var(--line); padding: 15px 23px 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.hero-paper-figure figcaption strong { color: var(--ink-soft); }
.eyebrow, .section-kicker, .card-eyebrow {
  margin: 0;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; letter-spacing: .12em; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(28, 143, 136, .13); }
.hero h1 { max-width: 900px; margin: 24px 0 24px; font-size: clamp(48px, 5vw, 68px); font-weight: 800; letter-spacing: -.075em; line-height: 1.13; }
.hero h1 span { color: var(--teal); }
.hero-description { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 53px; border-radius: 12px; padding: 0 22px; font-size: 14px; font-weight: 750; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); box-shadow: 0 13px 25px rgba(16, 43, 42, .14); }
.button-primary:hover { background: #204844; }
.button-secondary { border: 1px solid #cbd9d0; background: var(--white); }
.button-secondary:hover { background: #eaf1e9; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 23px; margin-top: 32px; color: var(--muted); font-size: 12px; font-weight: 650; }
.hero-facts span::before { content: "✦"; margin-right: 8px; color: var(--teal); }

.visual-dots { display: inline-flex; gap: 5px; }
.visual-dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #79a59b; }
.visual-dots i:first-child { background: #d89779; }
.visual-dots i:nth-child(2) { background: #d1c879; }

.section { padding: 100px 0; }
.section-features { background: var(--white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading h2, .start-copy h2 { margin: 12px 0 0; font-size: clamp(35px, 3.3vw, 49px); line-height: 1.2; letter-spacing: -.055em; }
.section-heading > p { max-width: 370px; margin: 0 0 3px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 266px; border: 1px solid var(--line); border-radius: 19px; padding: 27px; background: #fbfdf9; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(16, 43, 42, .06); }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: #e6f2e9; color: var(--teal-dark); font-size: 24px; font-weight: 700; }
.feature-index { position: absolute; top: 32px; right: 27px; color: #a5b8ae; font-size: 12px; font-weight: 750; }
.feature-card h3 { margin: 28px 0 11px; font-size: 20px; letter-spacing: -.025em; }
.feature-card p { max-width: 310px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.feature-card code, .workflow-list code { color: var(--teal-dark); font-size: .92em; }

.section-demo { background: var(--mint); }
.demo-heading { margin-bottom: 25px; }
.demo-notice { display: flex; align-items: start; gap: 12px; margin-bottom: 22px; border: 1px solid #d6e7db; border-radius: 12px; padding: 13px 16px; background: #f7fbf6; color: #4d665f; }
.demo-notice p { margin: 0; font-size: 13px; line-height: 1.7; }
.notice-icon { display: grid; flex: 0 0 auto; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #dceee4; color: var(--teal-dark); font-size: 11px; font-weight: 800; font-family: Georgia, serif; }
.explorer-layout { display: grid; grid-template-columns: 295px minmax(0, 1fr); gap: 18px; align-items: start; }
.explorer-controls, .chart-card, .timeline-card, .equation-panel, .metrics-panel { border: 1px solid #d9e5dc; border-radius: 20px; background: var(--white); box-shadow: 0 14px 32px rgba(33, 83, 62, .035); }
.explorer-controls { display: grid; gap: 10px; padding: 25px; }
.explorer-controls h3, .chart-heading h3, .timeline-heading h3, .run-details h3 { margin: 7px 0 12px; font-size: 20px; letter-spacing: -.035em; }
.explorer-controls label, .noise-options legend { color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.explorer-controls select, .timeline-footer select { width: 100%; min-height: 43px; border: 1px solid #d4e1d7; border-radius: 10px; padding: 0 11px; background: #fbfdfb; color: var(--ink); font-size: 13px; }
.explorer-controls select { margin-bottom: 13px; }
.noise-options { display: flex; gap: 7px; margin: 0 0 13px; border: 0; padding: 0; }
.noise-options legend { margin-bottom: 11px; }
.noise-choice { flex: 1; min-height: 40px; border: 1px solid #d4e1d7; border-radius: 9px; background: #fbfdfb; color: var(--ink); font-size: 12px; font-weight: 700; }
.noise-choice[aria-pressed="true"] { border-color: var(--teal); background: #e5f5ec; color: var(--teal-dark); }
.noise-choice:disabled { cursor: wait; opacity: .55; }
.selection-status { min-height: 38px; margin: 8px 0 0; color: var(--teal-dark); font-size: 12px; line-height: 1.6; }
.selection-status.error { color: #b44e43; }
.load-progress { display: grid; gap: 7px; margin-bottom: 10px; }
.load-progress[hidden] { display: none; }
.load-progress > div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.load-progress strong { color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.load-progress progress { width: 100%; height: 11px; border: 0; border-radius: 100px; accent-color: var(--teal); }
.load-progress progress::-webkit-progress-bar { border-radius: 100px; background: #e1ece3; }
.load-progress progress::-webkit-progress-value { border-radius: 100px; background: var(--teal); }
.load-progress progress::-moz-progress-bar { border-radius: 100px; background: var(--teal); }
.dataset-info { display: grid; gap: 7px; border-top: 1px solid var(--line); padding-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.dataset-info strong { color: var(--ink-soft); }
.explorer-main { display: grid; gap: 18px; min-width: 0; }
.chart-card { min-width: 0; padding: 25px 28px 18px; }
.chart-heading, .timeline-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.dimension-pill { border-radius: 100px; padding: 8px 12px; background: #eaf5ec; color: var(--teal-dark); font-size: 11px; font-weight: 750; white-space: nowrap; }
#quality-current { max-width: 100%; white-space: normal; text-align: right; }
#run-chart { width: 100%; min-height: 510px; }
#quality-chart { width: 100%; min-height: 290px; }
.quality-card { padding-bottom: 12px; }
.plot-note { min-height: 18px; margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.timeline-card { padding: 23px 28px; }
.timeline-heading h3 { margin-bottom: 4px; }
.timeline-heading strong { color: var(--teal-dark); font-size: 13px; white-space: nowrap; }
#minute-range { width: 100%; margin: 26px 0 18px; accent-color: var(--teal); }
.timeline-footer { display: flex; align-items: center; gap: 12px; }
.timeline-footer button { min-width: 95px; min-height: 39px; border: 0; border-radius: 9px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 750; }
.timeline-footer button:hover { background: #28504a; }
.timeline-footer button:disabled { cursor: wait; opacity: .55; }
.timeline-footer label, .timeline-footer span { color: var(--muted); font-size: 11px; }
.timeline-footer select { width: 70px; min-height: 38px; }
.timeline-footer span { margin-left: auto; text-align: right; }
.run-details { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 18px; }
.equation-panel, .metrics-panel { min-width: 0; padding: 24px 27px; }
.equation-panel pre { min-height: 92px; max-height: 220px; overflow: auto; margin: 0; border-radius: 11px; padding: 16px; background: #f3f7f3; color: var(--ink-soft); font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.equation-panel p, .metrics-panel p { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.metric-grid div { display: grid; gap: 6px; min-height: 67px; border-radius: 10px; padding: 11px 13px; background: #f3f8f3; }
.metric-grid span { color: var(--muted); font-size: 10px; }
.metric-grid strong { color: var(--teal-dark); font-size: 19px; font-variant-numeric: tabular-nums; }

.section-paper { background: #fafcf8; }
.section-paper .section-heading a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.paper-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 25px; }
.paper-highlights > div { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 17px; padding: 22px 25px; background: var(--white); }
.paper-highlights strong { color: var(--teal-dark); font-size: 28px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.paper-highlights span { color: var(--muted); font-size: 12px; }
.leaderboard-card { overflow: hidden; margin-bottom: 24px; border: 1px solid #cfdfd3; border-radius: 22px; background: var(--white); box-shadow: 0 20px 55px rgba(25, 76, 64, .07); }
.leaderboard-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding: 28px 29px 22px; }
.leaderboard-heading h3 { margin: 7px 0 7px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.045em; }
.leaderboard-heading p, .comparison-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.leaderboard-count { flex: 0 0 auto; border-radius: 100px; padding: 9px 13px; background: #eaf5ec; color: var(--teal-dark); font-size: 11px; font-weight: 800; }
.leaderboard-toolbar { display: flex; flex-wrap: wrap; gap: 25px 40px; border-block: 1px solid var(--line); padding: 17px 29px 20px; background: #f7faf7; }
.leaderboard-switches { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; margin: 0; border: 0; padding: 0; }
.leaderboard-switches legend { width: 100%; margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .035em; }
.leaderboard-switches button { min-width: 54px; min-height: 37px; border: 1px solid #d3e2d7; border-radius: 9px; padding: 0 12px; background: var(--white); color: var(--ink-soft); font-size: 12px; font-weight: 800; transition: background .15s, transform .15s; }
.leaderboard-switches button:hover, .compare-toggle:hover, .explore-link:hover { transform: translateY(-2px); }
.leaderboard-switches button:disabled, #comparison-clear:disabled { cursor: wait; opacity: .5; transform: none; }
.leaderboard-switches button[aria-pressed="true"] { border-color: var(--teal-dark); background: var(--ink); color: var(--white); }
.leaderboard-axis-switches button[aria-pressed="true"] { border-color: var(--teal); background: #dff3ec; color: var(--teal-dark); }
.leaderboard-summary { margin: 0; padding: 19px 29px 13px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.leaderboard-table-wrap { max-width: 100%; overflow: auto; margin: 0 17px; border: 1px solid var(--line); border-radius: 13px; }
.leaderboard-table { width: 100%; min-width: 870px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.leaderboard-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.leaderboard-table th, .leaderboard-table td { border-bottom: 1px solid #edf1ed; padding: 11px 12px; text-align: left; white-space: nowrap; }
.leaderboard-table thead th { background: #eaf2ec; color: #4a625a; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.leaderboard-table tbody tr:last-child th, .leaderboard-table tbody tr:last-child td { border-bottom: 0; }
.leaderboard-table tbody tr:hover { background: #f5faf6; }
.leaderboard-table tbody tr.rank-first { background: #f3faf5; }
.leaderboard-table tbody tr.is-explorer .method-name::after { content: "CURRENT RUN"; display: block; margin-top: 2px; color: var(--teal-dark); font-size: 8px; letter-spacing: .08em; }
.leaderboard-table .method-heading, .leaderboard-table .method-name { position: sticky; left: 0; z-index: 1; min-width: 146px; background: var(--white); box-shadow: 1px 0 0 var(--line); }
.leaderboard-table .method-heading { z-index: 2; background: #eaf2ec; }
.leaderboard-table .method-name { color: var(--ink); font-size: 13px; font-weight: 800; }
.leaderboard-table tr.rank-first .method-name { background: #f3faf5; }
.leaderboard-table tbody tr:hover .method-name { background: #f5faf6; }
.leaderboard-table .rank-cell { width: 46px; color: #708782; font-variant-numeric: tabular-nums; font-weight: 850; }
.leaderboard-table .rank-first .rank-cell { color: var(--teal-dark); }
.leaderboard-table .score-heading.is-focus { background: #d4ece0; color: var(--teal-dark); }
.leaderboard-table .score-cell { position: relative; min-width: 82px; text-align: right; font-variant-numeric: tabular-nums; }
.leaderboard-table .score-cell.is-focus { background: rgba(202, 237, 217, .32); }
.score-track { position: absolute; inset: auto 10px 8px; height: 4px; border-radius: 5px; background: #e5ede6; }
.score-fill { display: block; height: 100%; border-radius: inherit; background: #a7c8bd; }
.score-cell.is-focus .score-fill { background: var(--teal); }
.score-cell strong { position: relative; color: var(--ink-soft); font-size: 12px; }
.score-cell.is-focus strong { color: var(--teal-dark); }
.compare-toggle, .explore-link { min-height: 32px; border: 1px solid #d4e4d8; border-radius: 8px; padding: 0 10px; background: #f7faf7; color: var(--ink-soft); font-size: 11px; font-weight: 800; transition: transform .15s, background .15s; }
.compare-toggle[aria-pressed="true"] { border-color: var(--teal-dark); background: #e0f1e9; color: var(--teal-dark); }
.explore-link { border-color: transparent; background: transparent; color: var(--teal-dark); }
.leaderboard-footnote { margin: 0; padding: 12px 29px 24px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.comparison-panel { border-top: 1px solid var(--line); padding: 25px 29px 20px; background: linear-gradient(180deg, #fcfefb, #fff); }
.comparison-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.comparison-heading h4 { margin: 7px 0 5px; font-size: 20px; letter-spacing: -.035em; }
#comparison-clear { flex: 0 0 auto; min-height: 35px; border: 1px solid #d1e1d6; border-radius: 9px; padding: 0 12px; background: var(--white); color: var(--teal-dark); font-size: 11px; font-weight: 800; }
#comparison-clear:hover { background: #eaf5ec; }
#comparison-chart { width: 100%; min-height: 380px; }
#comparison-chart[hidden] { display: none; }
.paper-chart-card { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 20px; padding: 25px 28px 15px; background: var(--white); }
.paper-chart-card h3 { margin: 8px 0 0; font-size: 21px; }
#paper-chart { width: 100%; min-height: 360px; }
.paper-chart-card > p, .paper-credit { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.paper-figure { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 19px; padding: 15px; background: var(--white); }
.paper-figure img { display: block; width: 100%; height: auto; }
.paper-figure figcaption { margin: 12px 4px 3px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.paper-figure figcaption strong { color: var(--ink-soft); }
.paper-figure-wide { margin-bottom: 18px; }
.paper-figure-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.paper-figure-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.paper-figure-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.supplementary-figures { margin-top: 5px; border: 1px solid var(--line); border-radius: 17px; padding: 17px 20px 2px; background: var(--white); }
.supplementary-figures summary { margin-bottom: 15px; color: var(--teal-dark); font-size: 14px; font-weight: 750; cursor: pointer; }
.supplementary-figures .paper-figure { background: #fbfdfb; }
.paper-credit { margin-top: 16px; }

.section-start { background: var(--white); }
.start-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 7vw, 110px); align-items: center; }
.start-copy > p:not(.section-kicker) { max-width: 430px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.workflow-list { display: grid; gap: 19px; margin: 31px 0 31px; padding: 0; list-style: none; }
.workflow-list li { display: flex; align-items: start; gap: 15px; }
.workflow-list li > span { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #e9f5ed; color: var(--teal-dark); font-size: 10px; font-weight: 800; }
.workflow-list strong { font-size: 14px; }
.workflow-list p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--teal); padding-bottom: 5px; color: var(--teal-dark); font-size: 13px; font-weight: 800; }
.code-card { overflow: hidden; border: 1px solid #254a47; border-radius: 21px; background: #0f2827; box-shadow: 0 28px 45px rgba(16, 43, 42, .14); color: #d9ece2; }
.code-header { display: flex; align-items: center; gap: 14px; height: 48px; border-bottom: 1px solid #294744; padding: 0 22px; color: #96b8ad; font-size: 11px; }
.code-header span:last-child { margin-left: auto; color: #6f9d91; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.code-card pre { overflow: auto; margin: 0; padding: 26px 25px 33px; font-size: 12px; line-height: 2; tab-size: 4; }
.code-card code { color: #dceee5; }
.code-footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid #294744; padding: 15px 23px; color: #8ca99f; font-size: 10px; }
.site-footer { border-top: 1px solid #dce8dd; background: #f2f7f1; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 135px; }
.footer-brand { font-size: 19px; font-weight: 800; letter-spacing: -.05em; }
.footer-inner p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.footer-inner > div:last-child { display: grid; gap: 7px; justify-items: end; color: var(--muted); font-size: 11px; }
.footer-inner a { color: var(--teal-dark); font-weight: 750; }

@media (max-width: 1050px) {
  .hero { gap: 30px; }
  .hero h1 { font-size: clamp(45px, 5.2vw, 66px); }
  .explorer-layout { grid-template-columns: 265px minmax(0, 1fr); }
  .run-details { grid-template-columns: 1fr 1fr; }
}

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

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 620px); }
  .nav { min-height: 68px; }
  .nav-github { padding: 8px 12px; }
  .hero { padding-top: 20px; padding-bottom: 85px; }
  .hero h1 { font-size: clamp(47px, 11vw, 68px); }
  .section { padding: 74px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .section-heading > p { max-width: 590px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 210px; }
  .explorer-layout, .run-details { grid-template-columns: 1fr; }
  .paper-figure-grid-three { grid-template-columns: 1fr 1fr; }
  .explorer-controls { grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .explorer-controls > .card-eyebrow, .explorer-controls > h3, .selection-status, .load-progress, .dataset-info, .noise-options { grid-column: 1 / -1; }
  .explorer-controls label { align-self: end; }
  .start-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav { gap: 8px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 26px; height: 26px; }
  .hero h1 { font-size: clamp(32px, 9.5vw, 40px); }
  .hero-description { font-size: 16px; }
  .hero-facts { margin-top: 36px; }
  .hero-paper-figure { border-radius: 15px; }
  .hero-paper-heading { padding: 11px 13px; font-size: 9px; }
  .hero-paper-heading a { font-size: 10px; }
  .hero-paper-image { padding: 8px; }
  .hero-paper-figure figcaption { padding: 11px 13px 14px; }
  .section-heading h2, .start-copy h2 { font-size: 34px; }
  .explorer-controls { display: grid; grid-template-columns: 1fr; }
  .explorer-controls > * { grid-column: 1; }
  .chart-card { padding: 20px 17px 0; }
  .chart-heading { align-items: start; flex-direction: column; }
  #run-chart { min-height: 390px; }
  #quality-chart { min-height: 270px; }
  .timeline-card, .equation-panel, .metrics-panel { padding: 20px 17px; }
  .paper-highlights, .paper-figure-grid-three, .paper-figure-grid-two { grid-template-columns: 1fr; }
  .leaderboard-heading, .comparison-heading { align-items: start; flex-direction: column; }
  .leaderboard-heading, .leaderboard-toolbar, .comparison-panel { padding-inline: 17px; }
  .leaderboard-toolbar { gap: 20px; }
  .leaderboard-summary { padding-inline: 17px; }
  .leaderboard-table-wrap { margin-inline: 10px; }
  .leaderboard-footnote { padding-inline: 17px; }
  #comparison-chart { min-height: 340px; }
  .paper-chart-card { padding: 20px 17px 10px; }
  .paper-figure { padding: 10px; }
  .timeline-footer { flex-wrap: wrap; }
  .timeline-footer span { width: 100%; text-align: left; }
  .code-card pre { padding: 22px 17px; font-size: 10px; }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; padding-block: 28px; }
  .footer-inner > div:last-child { justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
