:root { --paper:#f5f3eb; --ink:#234c3c; --muted:#687468; --line:#d7dbcf; --orange:#bc633c; --serif:Georgia,'Times New Roman',serif; --sans:Arial,'Helvetica Neue',sans-serif; --mono:'SFMono-Regular',Consolas,monospace; color:var(--ink); background:var(--paper); font-family:var(--sans); font-synthesis:none; scroll-behavior:smooth; }
* { box-sizing:border-box; }
body { margin:0; }
button,a { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
button { font:inherit; }
a { color:inherit; text-decoration:none; }
button:focus-visible,a:focus-visible,[tabindex]:focus-visible { outline:2px solid var(--orange); outline-offset:3px; }
[hidden] { display:none!important; }
::selection { background:#dbe4ca; }
.site-shell { max-width:1580px; margin:0 auto; padding:0 4%; }
.header { height:66px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.wordmark { display:flex; align-items:center; gap:7px; font-size:34px; letter-spacing:-1.6px; font-weight:600; }
.wordmark img { width:33px; height:38px; }
.wordmark-period { color:var(--orange); }
.nav-link { font-size:13px; display:flex; align-items:center; gap:19px; }
.nav-link:hover { color:var(--orange); }
.skip-link { position:fixed; top:-80px; left:20px; padding:14px; background:var(--ink); color:var(--paper); z-index:10; }
.skip-link:focus { top:12px; }
.hero { display:grid; grid-template-columns:minmax(0,.76fr) minmax(0,1.65fr); gap:4%; align-items:start; padding:22px 0 18px; }
.hero-copy { padding-top:57px; max-width:410px; }
.eyebrow { display:flex; align-items:center; gap:8px; font:11px var(--mono); letter-spacing:1px; margin-bottom:22px; }
.status-dot { width:5px; height:5px; background:var(--orange); border-radius:50%; }
h1 { margin:0 0 23px; font:400 clamp(36px,3.12vw,48px)/1.12 var(--serif); letter-spacing:-1.4px; text-wrap:balance; }
.hero-description { margin:0 0 23px; color:var(--muted); font-size:14px; line-height:1.75; max-width:355px; }
.primary-link { display:inline-flex; align-items:center; gap:24px; background:var(--ink); color:var(--paper); padding:13px 16px; font-size:12px; }
.primary-link:hover { background:#36634e; }
.primary-link span { font-size:18px; }
.research-map { min-width:0; scroll-margin-top:20px; }
.map-heading { height:54px; display:flex; flex-direction:column; align-items:flex-start; gap:6px; border-bottom:1px solid var(--line); margin-bottom:10px; }
.example-tabs { height:35px; flex-shrink:0; display:flex; align-items:stretch; gap:20px; }
.example-tabs button { position:relative; background:none; border:0; padding:0 1px 9px; color:var(--muted); cursor:pointer; font-size:13px; }
.example-tabs button[aria-selected=true] { color:var(--ink); }
.example-tabs button[aria-selected=true]:after { position:absolute; content:''; left:0; right:0; bottom:-1px; height:2px; background:var(--ink); }
.example-label { display:block; font:10px/12px var(--mono); letter-spacing:.2px; color:var(--muted); }
.map-viewport { width:100%; overflow:auto; scrollbar-width:thin; scrollbar-color:#b8c5ae transparent; overscroll-behavior-x:contain; }
.map-stage { position:relative; min-width:720px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:60px 28px 84px 22px 84px 20px 50px 30px 72px; column-gap:30px; padding:0 12px; }
.map-lines { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.map-edge { stroke:#899982; stroke-width:1.15; }
.resource-edge { stroke:#a1ab97; stroke-dasharray:4 4; }
.output-edge { stroke:#8a9da4; }
.map-edge.selected-edge { stroke:var(--orange); stroke-width:1.8; }
.map-node { position:relative; border:1px solid #c8d0c0; border-radius:2px; padding:7px 11px; background:#f9f8f2; color:var(--ink); display:flex; flex-direction:column; justify-content:center; gap:4px; text-align:left; cursor:pointer; z-index:1; }
.map-node:hover { border-color:#6c8261; z-index:3; }
.map-node[aria-pressed=true] { border-color:var(--orange); background:#fff9ed; z-index:3; }
.node-goal { grid-column:1/-1; grid-row:1; justify-self:center; width:62%; background:var(--ink); border-color:var(--ink); padding:6px 16px; }
.node-active { grid-column:1; grid-row:3; }
.node-physics { grid-column:2; grid-row:3; }
.node-data { grid-column:3; grid-row:3; }
.node-train { grid-column:1; grid-row:5; }
.node-baseline { grid-column:2; grid-row:5; }
.node-reference { grid-column:3; grid-row:5; }
.node-gpu { grid-column:1; grid-row:7; }
.node-hpc { grid-column:3; grid-row:7; }
.node-evidence { grid-column:1; grid-row:9; }
.node-dataset { grid-column:3; grid-row:9; }
.node-top { display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:18px; }
.node-type { font:12px var(--mono); color:#6e7b63; }
.node-title { display:block; font-size:14px; font-weight:400; line-height:1.25; }
.node-status { display:flex; align-items:center; gap:5px; font-size:12px; color:#60744f; line-height:1.2; }
.node-status i { width:4px; height:4px; background:currentColor; border-radius:50%; }
.state-paused,.state-waiting { color:#8b7966; }
.state-queued,.state-pending,.state-awaiting-results { color:#8a7951; }
.state-planned,.state-needs-review,.state-reviewing { color:#6d7d89; }
.source-logo { position:relative; width:20px; height:20px; display:grid; place-items:center; }
.source-logo img { width:19px; height:19px; object-fit:contain; display:block; }
.source-logo:after { content:attr(data-tooltip); position:absolute; bottom:calc(100% + 7px); right:-6px; background:var(--ink); color:var(--paper); padding:6px 8px; font-size:11px; white-space:nowrap; opacity:0; pointer-events:none; }
.map-node:hover .source-logo:after,.map-node:focus-visible .source-logo:after { opacity:1; }
.node-goal .node-top { min-height:13px; }
.node-goal .node-type { color:#cfdbc6; font-size:12px; }
.node-goal .node-title { color:var(--paper); font:400 23px/1.2 var(--serif); }
.node-goal:hover,.node-goal[aria-pressed=true] { background:#315b47; }
.kind-note { background:#f0f0e7; border-color:#d0d4c8; }
.kind-compute,.kind-tool { background:#ecefe5; padding-top:5px; padding-bottom:5px; }
.kind-compute .node-top,.kind-tool .node-top { min-height:13px; }
.kind-compute .node-type,.kind-tool .node-type { font-size:12px; }
.kind-compute .node-title,.kind-tool .node-title { font-size:14px; }
.kind-evidence,.kind-dataset,.kind-artifact { padding-top:6px; padding-bottom:6px; border-color:#c5ced0; background:#f1f3ed; }
.kind-evidence .node-top,.kind-dataset .node-top,.kind-artifact .node-top { min-height:13px; }
.map-stage.has-selection .map-node:not([aria-pressed=true]):not(.related) { opacity:.55; }
.map-stage.has-selection .map-edge:not(.selected-edge) { opacity:.4; }
.map-legend { height:28px; display:flex; align-items:center; gap:18px; font-size:11px; color:var(--muted); }
.map-legend>span { display:flex; align-items:center; gap:6px; }
.legend-line { width:15px; height:1px; background:#899982; }
.legend-line.dashed { height:0; background:none; border-top:1px dashed #a1ab97; }
.legend-line.output { background:#8a9da4; }
.pan-hint { display:none!important; margin-left:auto; }
.node-detail { height:116px; overflow:auto; border-top:1px solid var(--line); padding:10px 0; }
#detail-intro { height:100%; display:flex; align-items:center; color:var(--muted); font-size:12px; }
.detail-heading { display:flex; align-items:center; gap:15px; margin-bottom:6px; }
.detail-heading h3 { margin:0; font-size:15px; font-weight:400; }
.detail-source { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; margin-left:auto; }
.detail-source img { width:17px; height:17px; object-fit:contain; }
.detail-close { border:0; background:none; color:var(--muted); font-size:20px; line-height:1; cursor:pointer; padding:0 3px; }
#detail-content p { color:var(--muted); font-size:12px; line-height:1.65; margin:0 0 8px; }
.detail-links { display:flex; flex-wrap:wrap; gap:6px; }
.detail-links button { border:1px solid var(--line); background:none; padding:5px 8px; color:var(--ink); cursor:pointer; font-size:11px; }
.detail-links button:hover { border-color:var(--ink); }
.overview { border-top:1px solid var(--line); display:grid; grid-template-columns:repeat(3,1fr); gap:5%; padding:12px 0 13px; scroll-margin-top:20px; }
.overview h2 { font:400 17px var(--serif); margin:0 0 7px; }
.overview p { margin:0; font-size:12px; line-height:1.6; color:var(--muted); max-width:370px; }
footer { height:37px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.footer-brand { font-size:18px; font-weight:600; letter-spacing:-.8px; }
footer>span { font-size:10px; color:var(--muted); }
@media(max-width:1150px) {
  .hero { grid-template-columns:1fr; gap:28px; padding:28px 0 22px; }
  .hero-copy { padding:0; max-width:760px; }
  h1 { font-size:43px; max-width:760px; }
  .hero-description { max-width:570px; }
  .research-map { max-width:980px; width:100%; margin:0 auto; }
}
@media(max-width:760px) {
  .site-shell { padding:0 5%; }
  .header { height:65px; }
  .wordmark { font-size:31px; gap:4px; }
  .wordmark img { width:30px; height:36px; }
  .nav-link { font-size:12px; gap:13px; }
  .hero { padding-top:30px; }
  h1 { font-size:clamp(35px,7vw,43px); line-height:1.13; letter-spacing:-1px; }
  .eyebrow { margin-bottom:20px; }
  .hero-description { font-size:14px; }
  .map-heading { margin-bottom:12px; }
  .example-tabs { gap:19px; }
  .example-label { display:block; }
  .map-stage { min-width:800px; }
  .node-goal { width:36%; }
  .node-goal .node-title { font-size:19px; }
  .map-legend { gap:14px; font-size:11px; }
  .map-legend>span:nth-child(2),.map-legend>span:nth-child(3) { display:none; }
  .pan-hint { display:flex!important; }
  .detail-heading { gap:8px; flex-wrap:wrap; }
  .detail-source { font-size:11px; }
  .node-detail { height:148px; }
  .overview { grid-template-columns:1fr; gap:20px; padding:22px 0; }
  .overview h2 { font-size:19px; }
  .overview p { font-size:13px; max-width:500px; }
}
@media(prefers-reduced-motion:reduce) { :root { scroll-behavior:auto; } *,*:before,*:after { transition:none!important; animation:none!important; } }

@media(min-width:1151px) and (max-height:850px) {
  .header { height:54px; }
  .hero { padding:12px 0 8px; }
  .hero-copy { padding-top:45px; }
  h1 { font-size:42px; }
  .map-stage { grid-template-rows:60px 14px 78px 12px 78px 8px 48px 16px 68px; }
  .node-detail { height:100px; }
  .overview { padding:5px 0; }
  .overview h2 { margin-bottom:5px; }
  .overview p { line-height:1.5; }
  footer { height:30px; }
}

/* Retain abandoned arguments and make the successful proof route explicit. */
.outcome-discarded .node-title { color:#80776b; text-decoration:line-through; text-decoration-thickness:1px; text-decoration-color:#a38b76; }
.state-abandoned,.state-ruled-out,.state-invalid-step,.state-not-a-proof { color:#987355; }
.map-node.outcome-success { border-color:#6d8660; background:#edf2e5; }
.map-node.outcome-success[aria-pressed=true] { border-color:var(--orange); }
.state-works,.state-checked { color:#3f6b3d; }
.map-edge.success-edge:not(.selected-edge) { stroke:#628052; stroke-width:1.5; }
.map-edge.discarded-edge:not(.selected-edge) { stroke:#b5a997; }

.detail-formula { font:12px/1.65 var(--mono); color:var(--ink); overflow-wrap:anywhere; }
.state-infeasible,.state-nonconvex { color:#987355; }

.kind-compute,.kind-tool { flex-direction:row; align-items:center; justify-content:flex-start; gap:10px; }
.tool-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.tool-icon { width:27px; height:27px; object-fit:contain; flex-shrink:0; }
.tool-icon-lean4 { width:60px; height:27px; }
.detail-heading .tool-icon { width:25px; height:25px; }
.detail-heading .tool-icon-lean4 { width:60px; }

/* The same research graph becomes a vertical branch tree on small screens. */
.mobile-tree { display:none; }
.mobile-sheet { border:0; padding:0; }
.mobile-sheet:not([open]) { display:none; }
.mobile-sheet[open] { position:fixed; inset:auto 0 0; margin:0 auto; width:100%; max-width:640px; max-height:80dvh; overflow:auto; overscroll-behavior:contain; background:var(--paper); color:var(--ink); border-radius:16px 16px 0 0; padding:20px 20px max(24px,env(safe-area-inset-bottom)); box-shadow:0 -8px 40px #142a2026; }
.mobile-sheet::backdrop { background:#172d2366; }
.detail-open { overflow:hidden; }
.mobile-sheet .detail-heading { gap:9px; flex-wrap:wrap; padding-right:44px; position:relative; margin-bottom:14px; min-height:32px; }
.mobile-sheet .detail-heading h3 { font:400 23px/1.2 var(--serif); overflow-wrap:anywhere; }
.mobile-sheet .detail-source { margin:0; font-size:12px; }
.mobile-sheet .detail-close { position:absolute; right:-10px; top:-9px; width:44px; height:44px; font-size:28px; }
.mobile-sheet p { font-size:15px; line-height:1.65; color:var(--muted); margin:0 0 17px; }
.mobile-sheet .detail-formula { display:block; font-size:13px; margin-top:12px; }
.mobile-sheet .detail-links { gap:8px; }
.mobile-sheet .detail-links button { min-height:44px; font-size:13px; padding:9px 12px; max-width:100%; overflow-wrap:anywhere; text-align:left; }

@media(max-width:850px) {
  .map-viewport,.map-legend,.node-detail { display:none; }
  .mobile-tree { display:block; }
  .mobile-tree .map-node { width:100%; min-width:0; min-height:48px; grid-area:auto; gap:5px; padding:10px 12px; }
  .mobile-tree .node-title { font-size:15px; line-height:1.35; overflow-wrap:anywhere; }
  .mobile-tree .node-type { font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
  .mobile-tree .node-status { font-size:12px; }
  .mobile-tree .node-goal { min-height:76px; padding:12px 15px; }
  .mobile-tree .node-goal .node-title { font:400 23px/1.2 var(--serif); }
  .mobile-tree .node-goal .node-type { font-size:11px; }
  .mobile-tree .source-logo:after { display:none; }
  .mobile-branches { padding:19px 0 0 18px; margin-left:7px; }
  .mobile-branch { position:relative; border:1px solid #c8d0c0; border-radius:3px; background:#f9f8f2; margin:0 0 12px; }
  .mobile-branch:before { content:''; position:absolute; left:-19px; top:38px; width:18px; height:1px; background:#a9b79f; }
  .mobile-branch:after { content:''; position:absolute; left:-19px; top:-12px; bottom:-13px; width:1px; background:#a9b79f; }
  .mobile-branch:first-child:after { top:-20px; }
  .mobile-branch:last-child:after { bottom:auto; height:50px; }
  .mobile-branch-heading { list-style:none; display:flex; align-items:center; gap:10px; padding:12px; min-height:84px; cursor:pointer; }
  .mobile-branch-heading::-webkit-details-marker { display:none; }
  .mobile-branch-heading:focus-visible { outline:2px solid var(--orange); outline-offset:3px; }
  .mobile-branch-copy { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
  .mobile-branch .node-title { font-size:16px; }
  .branch-chevron { color:var(--muted); font:20px var(--sans); transform:rotate(-90deg); }
  .mobile-branch[open] .branch-chevron { transform:none; }
  .mobile-branch-body { border-top:1px solid var(--line); padding:12px 12px 0; }
  .mobile-route { list-style:none; padding:0 0 0 5px; margin:0; }
  .mobile-step { position:relative; padding:0 0 16px 17px; border-left:1px solid #b7c3ae; }
  .mobile-step:before { content:''; position:absolute; left:-3px; top:10px; width:5px; height:5px; border-radius:50%; background:#607a52; }
  .mobile-step:last-child { border-left-color:transparent; padding-bottom:5px; }
  .mobile-step .map-node { background:transparent; border:0; border-radius:0; padding:2px 0 8px; }
  .mobile-step .map-node .node-title { font-size:15px; }
  .mobile-step .map-node[aria-pressed=true] { background:#fff9ed; }
  .mobile-resource { margin:3px 0 0 5px; padding:0 0 0 10px; border-left:1px dashed #a1ab97; }
  .mobile-resource .map-node { display:flex; flex-direction:row; justify-content:flex-start; align-items:center; gap:10px; background:#ecefe5; border:1px solid var(--line); border-radius:3px; padding:8px 10px; }
  .mobile-resource .map-node .node-title { font-size:14px; }
  .mobile-resource .tool-icon { width:27px; height:27px; }
  .mobile-resource .tool-icon-lean4 { width:52px; height:25px; }
  .mobile-about { border:0; background:none; color:var(--muted); font-size:12px; min-height:44px; padding:8px 0; margin-left:23px; cursor:pointer; text-align:left; }
  .mobile-shared { margin-top:20px; border-top:1px solid var(--line); padding-top:14px; }
  .mobile-shared-label { font:11px var(--mono); color:var(--muted); margin-bottom:8px; }
  .mobile-shared-links { display:flex; flex-wrap:wrap; align-items:center; gap:0 10px; color:var(--muted); font-size:12px; padding-top:5px; }
  .mobile-shared-links>span { flex-basis:100%; padding-top:6px; }
  .mobile-shared-links button { min-height:44px; border:0; background:none; padding:8px 0; color:var(--ink); font-size:12px; text-align:left; cursor:pointer; }
  .mobile-branch.outcome-success { border-color:#93a789; background:#f1f5e9; }
  .mobile-branch.outcome-discarded>.mobile-branch-heading .node-title { color:#80776b; text-decoration:line-through; text-decoration-thickness:1px; }
  .mobile-branch.outcome-discarded .mobile-step .node-title { text-decoration:none; color:var(--ink); }
  .mobile-branch.outcome-success .mobile-step:before { background:#4f7341; }
  .map-heading { height:auto; gap:7px; margin-bottom:16px; }
  .example-tabs { min-height:44px; height:auto; gap:18px; }
  .example-tabs button { min-height:44px; padding:9px 0 12px; font-size:13px; }
  .example-label { font-size:11px; }
  .research-map { scroll-margin-top:16px; }
}
@media(max-width:760px) {
  .header { height:60px; }
  .hero { padding-top:23px; gap:26px; }
  .eyebrow { font-size:10px; margin-bottom:15px; }
  h1 { font-size:clamp(30px,7.5vw,38px); line-height:1.13; margin-bottom:15px; }
  .hero-description { font-size:14px; line-height:1.6; margin-bottom:15px; }
  .primary-link { min-height:44px; font-size:13px; padding:10px 13px; }
  .overview { margin-top:8px; gap:18px; }
}
