:root {
  color-scheme: light;
  --ink: #14233a;
  --muted: #5c6b7f;
  --paper: #f7f4ed;
  --surface: #fffdf8;
  --line: #d8ddd8;
  --teal: #087f75;
  --teal-dark: #065e57;
  --teal-soft: #dcefeb;
  --orange: #f26b38;
  --navy: #172c4b;
  --shadow: 0 22px 60px rgba(20, 35, 58, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 9px;
  color: #bff4e9;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover, .nav-links a:focus-visible { color: white; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 142px 0 0;
  color: white;
  background:
    radial-gradient(circle at 83% 22%, rgba(8, 127, 117, 0.75), transparent 28%),
    radial-gradient(circle at 4% 90%, rgba(242, 107, 56, 0.2), transparent 28%),
    linear-gradient(135deg, #12243e 0%, #183655 54%, #0b5d60 120%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.hero-grid {
  position: relative;
  padding-bottom: 64px;
}

.hero-compact .hero-copy { max-width: 980px; }

.eyebrow, .section-index {
  margin: 0 0 18px;
  color: #a7e9dc;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 25px;
  height: 2px;
  margin: 0 10px 3px 0;
  background: var(--orange);
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: none;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

h1 em { color: #8ee6d4; font-weight: 500; }

.hero-lede {
  max-width: 740px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.72);
  font-size: .96rem;
  font-weight: 650;
  line-height: 1.45;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 10px;
  color: white;
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); background: rgba(255,255,255,.09); }
.button-primary { border-color: white; background: white; color: var(--navy); }
.button-primary:hover, .button-primary:focus-visible { background: #dff8f3; }
.resource-icon { width: 17px; height: 17px; }
.resource-icon-github { width: 19px; height: 19px; padding: 2px; border-radius: 50%; background: white; }

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--ink);
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow);
}

.stat-card { padding: 25px 28px; }
.stat-card + .stat-card { border-left: 1px solid var(--line); }
.stat-value { display: block; font-family: inherit; font-size: 2.05rem; font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.stat-label { display: block; margin-top: 7px; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stat-note { display: block; margin-top: 3px; color: var(--muted); font-size: .73rem; }

.section { padding: 96px 0; }
.leaderboard-section { background: var(--surface); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(310px, .72fr); gap: 56px; align-items: end; margin-bottom: 28px; }
.section-index { margin-bottom: 8px; color: var(--teal); }
.section-heading h2 { margin-bottom: 0; font: 500 clamp(2.2rem, 4vw, 3.6rem)/1.05 Georgia, serif; letter-spacing: -.04em; }
.leaderboard-section .section-heading { grid-template-columns: 1fr; }
.leaderboard-section .section-heading h2 { font-size: clamp(1.32rem, 3.5vw, 3.15rem); white-space: nowrap; }
.section-heading > p { margin-bottom: 4px; color: var(--muted); font-size: .92rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 15px 38px rgba(20,35,58,.08); }
table { width: 100%; min-width: 1180px; border-collapse: collapse; }
th, td { padding: 17px 14px; border-bottom: 1px solid #e8ebe8; text-align: left; white-space: nowrap; }
th { color: #667486; background: #f3f5f2; font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
th:nth-child(n + 3), td:nth-child(n + 3) { min-width: 112px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 150ms ease; }
tbody tr:hover { background: #f7fbf9; }
tbody tr.leader { background: linear-gradient(90deg, #eaf7f3, #fff); }
.number { text-align: right; font-variant-numeric: tabular-nums; }
.primary-metric { background: rgba(8,127,117,.045); color: var(--teal-dark); }
.rank { display: inline-grid; width: 27px; height: 27px; place-items: center; border: 1px solid #cbd2d2; border-radius: 50%; color: #536173; font: 700 .75rem/1 ui-monospace, monospace; }
.leader .rank { border-color: var(--teal); background: var(--teal); color: white; }
.method-cell { min-width: 330px; }
.method-line { display: flex; align-items: baseline; gap: 7px; }
.method-name { color: var(--ink); font-size: .92rem; font-weight: 820; line-height: 1.35; letter-spacing: -.012em; }
.method-citation { color: var(--teal-dark); font-size: .72rem; font-weight: 780; text-decoration: none; }
.method-citation:hover, .method-citation:focus-visible { text-decoration: underline; }
.model-backbone { display: block; margin-top: 4px; color: #6f7d8e; font-size: .68rem; font-weight: 650; }
.sample-count { display: block; margin-top: 3px; color: #8993a0; font-size: .68rem; }
.slice-metric { color: #425267; }
.loading { padding: 42px; color: var(--muted); text-align: center; }
.loading.error { color: #a34120; }
.table-footnote { margin: 13px 4px 0; color: #788493; font-size: .75rem; }
.table-footnote code { color: var(--teal-dark); }

.example-section {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8,127,117,.035) 1px, transparent 1px),
    linear-gradient(rgba(8,127,117,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 52px 52px;
}
.example-heading h2 { max-width: 760px; }

.trajectory-example {
  overflow: hidden;
  border: 1px solid #29445f;
  border-radius: 22px;
  color: #eaf2f5;
  background:
    radial-gradient(circle at 86% 0%, rgba(8,127,117,.23), transparent 32%),
    linear-gradient(145deg, #10243d, #0d1d32 72%);
  box-shadow: 0 28px 70px rgba(20,35,58,.16);
}
.trajectory-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 29px 34px 25px; border-bottom: 1px solid rgba(255,255,255,.1); }
.case-kicker { color: #7fe2cf; font-size: .65rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.trajectory-header h3 { margin: 7px 0 8px; color: white; font: 500 1.75rem/1.12 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.trajectory-route { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 15px; margin: 0; color: rgba(255,255,255,.47); font-size: .69rem; }
.trajectory-route strong { color: rgba(255,255,255,.78); }
.status-badge { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(127,226,207,.35); border-radius: 999px; color: #9de7da; background: rgba(8,127,117,.17); font: 800 .61rem/1 ui-monospace, monospace; letter-spacing: .05em; }

.trajectory-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(255,255,255,.1); }
.trajectory-metrics > div { padding: 17px 24px; }
.trajectory-metrics > div + div { border-left: 1px solid rgba(255,255,255,.1); }
.trajectory-metrics strong { display: block; color: white; font-size: .94rem; }
.trajectory-metrics span { display: block; margin-top: 2px; color: rgba(255,255,255,.43); font-size: .61rem; }

.trajectory-tabs { display: flex; gap: 3px; padding: 18px 24px 0; }
.trajectory-tabs button { min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; color: rgba(255,255,255,.55); background: transparent; font-size: .68rem; font-weight: 750; line-height: 1; cursor: pointer; }
.trajectory-tabs button:hover, .trajectory-tabs button:focus-visible { color: white; background: rgba(255,255,255,.06); }
.trajectory-tabs button[aria-selected="true"] { border-color: rgba(127,226,207,.3); color: #9de7da; background: rgba(8,127,117,.18); }

.trajectory-view { padding: 20px 24px 28px; }
.trajectory-view[hidden] { display: none; }
.trajectory-view h4 { margin: 0 0 14px; color: white; font-size: .82rem; }
.trajectory-view-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 11px; }
.trajectory-view-heading h4 { margin: 0; }
.trajectory-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; color: rgba(255,255,255,.48); font-size: .61rem; }
.trajectory-legend span { display: inline-flex; align-items: center; gap: 7px; }
.event-mark { width: 8px; height: 8px; display: inline-block; background: #6bd6c7; }
.dispatch-mark { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #f3bc57; }
.tool-mark { background: #5aa8e8; }
.verification-mark { transform: rotate(45deg); background: #b68cff; }
.error-mark { background: #f26b38; }
.completion-mark { border-radius: 50%; background: #9de7da; box-shadow: 0 0 0 2px rgba(157,231,218,.22); }

.trajectory-map-wrap, .trajectory-table-wrap { overflow: auto; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(2,12,24,.36); scrollbar-width: thin; }
.trajectory-map { width: 100%; min-width: 1040px; display: block; }
.trace-phase-band { fill: rgba(255,255,255,.018); }
.trace-phase-band.phase-band-1 { fill: rgba(8,127,117,.05); }
.trace-phase-label { fill: rgba(255,255,255,.42); font: 700 9px/1 ui-sans-serif, sans-serif; letter-spacing: .03em; }
.trace-lane-line { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.trace-actor-label { fill: rgba(255,255,255,.56); font: 650 10px/1 ui-sans-serif, sans-serif; }
.trace-route-line { stroke: rgba(127,226,207,.34); stroke-width: 1.2; }
.selected-guide { stroke: rgba(242,107,56,.42); stroke-width: 1; stroke-dasharray: 4 4; }
.trace-axis-label { fill: rgba(255,255,255,.37); font: 600 9px/1 ui-sans-serif, sans-serif; }
.trace-event { cursor: pointer; outline: none; }
.trace-node { transition: stroke-width 120ms ease; }
.node-default { fill: #6bd6c7; stroke: #0e253c; stroke-width: 1.5; }
.node-tool { fill: #5aa8e8; stroke: #c7e5ff; stroke-width: 1.3; }
.node-dispatch { fill: #f3bc57; stroke: #ffe1a3; stroke-width: 1.3; }
.node-verification { fill: #b68cff; stroke: #e6d8ff; stroke-width: 1.3; }
.node-error { fill: #f26b38; stroke: #ffd2c2; stroke-width: 1.7; }
.node-completion { fill: #9de7da; stroke: white; stroke-width: 1.7; }
.trace-event:hover .trace-node, .trace-event:focus-visible .trace-node { stroke: white; stroke-width: 3; }
.selected-ring { fill: none; stroke: white; stroke-width: 1.5; }

.trajectory-controls { display: grid; grid-template-columns: 34px 34px minmax(180px, 1fr) auto 34px; align-items: center; gap: 8px; margin: 13px 0; }
.trajectory-controls button { width: 34px; height: 32px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: white; background: rgba(255,255,255,.055); cursor: pointer; }
.trajectory-controls button:hover, .trajectory-controls button:focus-visible { border-color: rgba(127,226,207,.5); background: rgba(8,127,117,.2); }
.trajectory-controls input { width: 100%; accent-color: #2fb7a7; }
.trajectory-controls output { min-width: 42px; color: rgba(255,255,255,.56); font: 650 .67rem/1 ui-monospace, monospace; }

.trajectory-detail { position: relative; min-height: 132px; padding: 22px 220px 22px 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.045); }
.detail-actor { display: inline-flex; padding: 3px 8px; border-radius: 999px; color: #9de7da; background: rgba(8,127,117,.22); font-size: .64rem; font-weight: 750; }
.detail-phase { margin-left: 8px; color: rgba(255,255,255,.43); font-size: .65rem; }
.trajectory-detail h4 { margin: 16px 0 0; color: white; font-size: .9rem; }
.trajectory-detail > p { margin: 8px 0 0; color: rgba(255,255,255,.58); font-size: .73rem; line-height: 1.55; }
.detail-state { position: absolute; top: 22px; right: 22px; bottom: 22px; width: 174px; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-left: 1px solid rgba(255,255,255,.1); }
.detail-state div { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; }
.detail-state dt { color: rgba(255,255,255,.4); font-size: .58rem; }
.detail-state dd { margin: 0; color: white; font-size: 1.05rem; font-weight: 800; }

.stage-ledger { margin-top: 26px; }
.trajectory-table { width: 100%; min-width: 850px; border-collapse: collapse; color: rgba(255,255,255,.65); background: transparent; font-size: .68rem; }
.trajectory-table th { color: rgba(255,255,255,.48); background: rgba(255,255,255,.045); font-size: .58rem; letter-spacing: .07em; text-transform: uppercase; }
.trajectory-table th, .trajectory-table td { padding: 13px 15px; border-bottom: 1px solid rgba(255,255,255,.085); text-align: left; vertical-align: top; white-space: normal; }
.trajectory-table tbody tr:last-child td { border-bottom: 0; }
.trajectory-table tbody tr:hover { background: #142b49; }
.trajectory-table tbody tr:hover td { color: #f4fbfa; background: #142b49; }
.compact-table td:first-child { color: white; font-weight: 700; white-space: nowrap; }
.phase-index { display: inline-block; min-width: 27px; margin-right: 7px; color: #7fe2cf; font: 750 .58rem/1 ui-monospace, monospace; }
.trajectory-caption { margin: 12px 3px 0; color: rgba(255,255,255,.36); font-size: .61rem; }

.event-table .number { width: 58px; color: rgba(255,255,255,.43); text-align: right; }
.event-table td:nth-child(2), .event-table td:nth-child(5) { white-space: nowrap; }
.event-table tr[data-tone="error"] td { color: #ff9b79; }
.event-kind { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: #9de7da; background: rgba(8,127,117,.16); font-size: .57rem; font-weight: 750; white-space: nowrap; }
.event-kind[data-kind="handoff"] { color: #f7d78d; background: rgba(243,188,87,.13); }
.event-kind[data-kind="tool"] { color: #a9d7ff; background: rgba(90,168,232,.14); }
.event-kind[data-kind="verify"] { color: #d8c4ff; background: rgba(182,140,255,.14); }
.event-kind[data-kind="error"] { color: #ffaf94; background: rgba(242,107,56,.17); }
.event-kind[data-kind="final"] { color: #9de7da; background: rgba(127,226,207,.16); }
.event-action { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; text-align: left; }
.event-action:hover, .event-action:focus-visible { color: white; text-decoration: underline; }

.blackboard-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); gap: 26px; margin-bottom: 32px; }
.state-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.state-legend button { display: inline-flex; align-items: center; gap: 7px; min-height: 31px; padding: 0 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: rgba(255,255,255,.62); background: rgba(255,255,255,.035); font-size: .61rem; cursor: pointer; }
.state-legend button[aria-pressed="false"] { opacity: .42; }
.series-swatch { width: 14px; height: 3px; display: inline-block; border-radius: 2px; }
.candidates-swatch { background: #6bd6c7; }
.checks-swatch { background: #b68cff; }
.notes-swatch { background: #f3bc57; }
.state-chart-wrap { position: relative; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(2,12,24,.36); }
.state-chart { width: 100%; display: block; }
.state-grid-line { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.state-axis-label { fill: rgba(255,255,255,.4); font: 600 9px/1 ui-sans-serif, sans-serif; }
.state-series { fill: none; stroke-width: 2.3; }
.state-series-candidates { stroke: #6bd6c7; }
.state-series-checks { stroke: #b68cff; }
.state-series-notes { stroke: #f3bc57; }
.state-marker { fill: #0d1d32; stroke-width: 2; }
.state-hover-guide { stroke: rgba(255,255,255,.33); stroke-width: 1; stroke-dasharray: 4 4; }
.state-hit-area { cursor: crosshair; }
.state-tooltip { position: absolute; top: 12px; z-index: 2; transform: translateX(-10%); padding: 7px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; color: white; background: #142b49; box-shadow: 0 8px 24px rgba(0,0,0,.24); font: 600 .58rem/1 ui-monospace, monospace; white-space: nowrap; pointer-events: none; }

.inventory-panel { padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.035); }
.inventory-row { display: grid; grid-template-columns: 78px 1fr 22px; align-items: center; gap: 10px; margin: 15px 0; color: rgba(255,255,255,.58); font-size: .64rem; }
.inventory-row > div { height: 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.inventory-row i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #2fb7a7, #7fe2cf); }
.inventory-row strong { color: white; text-align: right; }
.inventory-panel p { margin: 19px 0 0; color: rgba(255,255,255,.4); font-size: .61rem; }

.correction-loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 25px; padding: 0; list-style: none; counter-reset: issue; }
.correction-loop li { position: relative; min-height: 108px; padding: 17px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.035); counter-increment: issue; }
.correction-loop li::before { content: counter(issue, decimal-leading-zero); display: block; margin-bottom: 14px; color: #f3bc57; font: 750 .57rem/1 ui-monospace, monospace; }
.correction-loop li:not(:last-child)::after { content: "→"; position: absolute; top: 45%; right: -9px; z-index: 1; color: rgba(255,255,255,.35); }
.correction-loop strong { display: block; color: white; font-size: .65rem; }
.correction-loop span { display: block; margin-top: 6px; color: rgba(255,255,255,.43); font-size: .59rem; line-height: 1.45; }
.pass-status, .fail-status { display: inline-flex; padding: 3px 7px; border-radius: 999px; color: #9de7da; background: rgba(8,127,117,.17); font-size: .57rem; font-weight: 800; }
.fail-status { color: #ffaf94; background: rgba(242,107,56,.17); }

.budget-bar { height: 18px; display: flex; overflow: hidden; margin-top: 7px; border-radius: 999px; background: rgba(255,255,255,.08); }
.budget-bar i { height: 100%; display: block; }
.budget-transport { background: #5aa8e8; }
.budget-stay { background: #b68cff; }
.budget-food { background: #f3bc57; }
.budget-attractions { background: #f26b38; }
.budget-remaining { background: #6bd6c7; }
.budget-legend { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 13px 0 27px; color: rgba(255,255,255,.5); font-size: .62rem; }
.budget-legend span { display: inline-flex; align-items: center; gap: 6px; }
.budget-legend i { width: 8px; height: 8px; display: inline-block; border-radius: 2px; }
.budget-legend strong { color: white; }
.itinerary-table td:first-child { color: white; font-weight: 750; white-space: nowrap; }
.itinerary-table td span { color: rgba(255,255,255,.38); font-size: .6rem; }
.risk-line { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 11px; margin-top: 17px; padding: 16px 18px; border-left: 3px solid var(--orange); background: rgba(242,107,56,.1); }
.risk-line > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(255,175,148,.55); border-radius: 50%; color: #ffaf94; font-weight: 900; }
.risk-line p { margin: 0; color: rgba(255,255,255,.65); font-size: .69rem; }
.trajectory-load-error { margin: 0 24px 24px; padding: 15px; color: #ffb298; background: rgba(242,107,56,.12); }
.trajectory-error .trajectory-view { display: none; }

.submission-files code, .submission-note code { color: var(--teal-dark); font: 650 .82em/1 ui-monospace, SFMono-Regular, monospace; }

.contribute-section { position: relative; overflow: hidden; color: white; background: #10233c; }
.contribute-section::after { content: ""; position: absolute; width: 460px; height: 460px; right: -160px; bottom: -260px; border: 1px solid rgba(118,229,207,.2); border-radius: 50%; box-shadow: 0 0 0 70px rgba(118,229,207,.03), 0 0 0 140px rgba(118,229,207,.025); }
.contribute-heading { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .72fr; gap: 70px; align-items: end; }
.contribute-heading h2 { max-width: 720px; margin: 0; font: 500 clamp(2.3rem, 4.5vw, 4rem)/1.02 Georgia, serif; letter-spacing: -.045em; }
.contribute-heading > p { margin-bottom: 5px; color: rgba(255,255,255,.62); font-size: .9rem; }
.contribute-section .section-index { color: #7fe2cf; }

.submission-files { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 54px; }
.submission-files article { padding: 27px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.055); }
.file-number { display: block; margin-bottom: 34px; color: var(--orange); font: 700 .67rem/1 ui-monospace, monospace; }
.submission-files code { color: white; font-size: .87rem; }
.submission-files p { margin: 13px 0 0; color: rgba(255,255,255,.58); font-size: .77rem; }
.submission-files p code { color: #9de7da; }

.submission-note { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 22px; padding: 24px 27px; border-left: 3px solid var(--orange); background: rgba(255,255,255,.06); }
.submission-note strong { font-size: .84rem; }
.submission-note p { margin: 4px 0 0; color: rgba(255,255,255,.57); font-size: .75rem; }
.submission-note code { color: #9de7da; }
.button-light { flex: 0 0 auto; background: white; color: var(--navy); }
.button-light:hover, .button-light:focus-visible { background: #dff8f3; }

.citation-section { background: var(--surface); }
.citation-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 72px; align-items: center; }
.citation-copy h2 { margin-bottom: 16px; font: 500 clamp(2.4rem, 4.5vw, 4rem)/1.03 Georgia, serif; letter-spacing: -.045em; }
.citation-copy > p:not(.section-index) { color: var(--muted); }
.paper-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 28px 0 21px; }
.paper-meta span { padding: 5px 9px; border: 1px solid #cbd5d4; border-radius: 999px; color: #536376; font-size: .68rem; font-weight: 700; }
.text-link { color: var(--teal-dark); font-size: .82rem; font-weight: 800; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; }

.citation-box { overflow: hidden; border: 1px solid #233d58; border-radius: 16px; background: #12243b; box-shadow: var(--shadow); }
.code-toolbar { min-height: 51px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.12); color: #83dccc; font: 700 .68rem/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.code-toolbar button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; color: white; background: transparent; font: inherit; cursor: pointer; }
.code-toolbar button:hover, .code-toolbar button:focus-visible { background: rgba(255,255,255,.09); }
.citation-box pre { overflow-x: auto; margin: 0; padding: 24px; color: #dbe8e7; font: 500 .72rem/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }

.footer { padding: 48px 0; color: rgba(255,255,255,.72); background: #0b192b; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 70px; align-items: center; }
.footer-brand { color: white; }
.footer-grid > div:first-child > p { max-width: 430px; margin: 14px 0 0; color: rgba(255,255,255,.47); font-size: .73rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: .74rem; font-weight: 650; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: white; }
.footer-note { margin: 0; color: rgba(255,255,255,.42); font-size: .68rem; text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 900px) {
  h1 { white-space: normal; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat-card:nth-child(4) { border-top: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .trajectory-header { flex-direction: column; }
  .blackboard-layout { grid-template-columns: 1fr; }
  .correction-loop { grid-template-columns: repeat(3, 1fr); }
  .correction-loop li:nth-child(3)::after { display: none; }
  .contribute-heading { grid-template-columns: 1fr; gap: 20px; }
  .citation-grid { grid-template-columns: 1fr; gap: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav { min-height: 66px; }
  .nav-links { gap: 16px; }
  .nav-links a:not([href="#contribute"]) { display: none; }
  .hero { padding-top: 116px; }
  .hero-grid { padding-bottom: 48px; }
  h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .stats-grid { margin-inline: -14px; border-radius: 0; }
  .stat-card { padding: 19px 18px; }
  .stat-value { font-size: 1.8rem; }
  .section { padding: 76px 0; }
  .trajectory-header { padding: 24px 20px 20px; }
  .trajectory-header h3 { font-size: 1.65rem; }
  .trajectory-metrics { grid-template-columns: 1fr 1fr; }
  .trajectory-metrics > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .trajectory-metrics > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.1); }
  .trajectory-tabs { padding-inline: 13px; overflow-x: auto; }
  .trajectory-tabs button { flex: 0 0 auto; }
  .trajectory-view { padding: 17px 13px 22px; }
  .trajectory-view-heading { align-items: flex-start; flex-direction: column; }
  .trajectory-legend { justify-content: flex-start; gap: 10px; }
  .trajectory-controls { grid-template-columns: 32px 32px minmax(100px,1fr) 32px; }
  .trajectory-controls output { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .trajectory-controls button:last-child { grid-column: 4; grid-row: 1; }
  .trajectory-detail { display: block; min-height: 0; padding: 19px; }
  .trajectory-detail h4 { margin: 16px 0 0; }
  .trajectory-detail > p { margin: 8px 0 0; }
  .detail-state { position: static; width: auto; min-height: 74px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
  .correction-loop { grid-template-columns: 1fr; }
  .correction-loop li { min-height: 0; }
  .correction-loop li:nth-child(3)::after { display: block; }
  .correction-loop li:not(:last-child)::after { top: auto; right: 50%; bottom: -14px; transform: rotate(90deg); }
  .budget-legend { gap: 9px 13px; }
  .risk-line { grid-template-columns: 24px 1fr; padding: 14px; }
  .submission-files { grid-template-columns: 1fr; }
  .submission-files article { padding: 23px; }
  .file-number { margin-bottom: 20px; }
  .submission-note { align-items: flex-start; flex-direction: column; }
  .citation-box pre { padding: 20px; font-size: .65rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { flex-wrap: wrap; }
  .footer-note { grid-column: auto; }
}

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