:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7f7f8;
  --text: #111111;
  --muted: #6e6e73;
  --line: #e5e5e7;
  --accent: #1d1d1f;
  --warm: #8a6500;
  --cyan: #3a6b7a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #e8e8ed; color: var(--text); }
button { font: inherit; }
a { color: inherit; }
.section {
  position: relative;
  min-height: 100vh;
  padding: clamp(48px, 7vw, 96px) clamp(22px, 7vw, 108px);
  border-bottom: 1px solid var(--line);
}
.hero { display: grid; place-items: center; }
.hero-inner { width: min(920px, 100%); }
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 800;
}
h1, h2, h3 { margin: 0; letter-spacing: -.04em; }
h1 { font-size: clamp(64px, 12vw, 150px); line-height: .88; }
h2 { font-size: clamp(38px, 6vw, 72px); max-width: 850px; line-height: .98; }
.hero-copy {
  max-width: 700px;
  margin: 34px 0 0;
  color: #515154;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.5;
}
.flow {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 42px;
  color: var(--muted);
  font-size: 14px;
}
.flow span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.flow b { color: var(--accent); }
.down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  color: var(--muted);
  font-size: 34px;
  transition: color .2s, transform .2s;
}
.down:hover { color: var(--text); transform: translate(-50%, 4px); }
.section-head > p:last-child { max-width: 660px; color: var(--muted); font-size: 17px; line-height: 1.55; }

.projects-section { display: flex; flex-direction: column; justify-content: center; }
.projects-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 28px; }
.project-filters, .project-navigation { display: flex; gap: 8px; }
.project-navigation { align-items: center; }
.filter, .project-navigation button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
}
.filter span { color: #9a9aa0; margin-left: 4px; }
.filter:hover, .filter.active, .project-navigation button:hover { color: var(--text); border-color: #a8a8ad; }
.project-navigation button:disabled { opacity: .35; cursor: default; }
.filter.active { background: #f2f2f4; }
.project-navigation button { width: 38px; height: 38px; padding: 0; font-size: 18px; }
.project-position { min-width: 56px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.projects-track {
  display: block;
  padding: 18px 0 24px;
}
.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  min-height: 470px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 12px 38px rgba(0, 0, 0, .04);
}
.loading-card { color: var(--muted); display: grid; place-items: center; }
.project-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.project-top h3 { font-size: clamp(32px, 4vw, 54px); }
.status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.status.running, .status.starting { color: var(--accent); border-color: #b8b8bd; }
.status.completed { color: var(--cyan); border-color: #285565; }
.status.stale, .status.failed { color: #8a6500; border-color: #d8cba8; }
.project-description { color: var(--muted); max-width: 680px; line-height: 1.5; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr); gap: 28px; margin-top: 24px; }
.project-card.no-visualization .project-grid { grid-template-columns: 1fr; }
.project-card.no-visualization .best { max-width: 720px; }
.visualization-wrap {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f7;
  position: relative;
}
.visualization-loading { height: 280px; display: grid; place-items: center; color: #8e8e93; font-size: 12px; }
.project-visualization { display: block; width: 100%; min-height: 280px; height: 100%; border: 0; background: #f5f5f7; }
.best { display: flex; flex-direction: column; justify-content: center; }
.best-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; margin-bottom: 10px; }
.best-value { font-size: clamp(56px, 8vw, 94px); line-height: .9; font-weight: 780; letter-spacing: -.06em; }
.best-value small { font-size: .25em; letter-spacing: 0; color: var(--muted); }
.result-status { margin-top: 12px; color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .14em; }
.project-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-top: 24px; }
.fact { border-top: 1px solid var(--line); padding-top: 10px; }
.fact span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.fact strong { display: block; margin-top: 4px; font-size: 17px; font-weight: 650; }
.progress-line { margin-top: 22px; height: 3px; background: #e5e5e7; border-radius: 99px; overflow: hidden; }
.progress-line > div { height: 100%; background: var(--accent); }

.grid-section { display: flex; flex-direction: column; justify-content: center; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 54px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 20px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(38px, 5vw, 72px); letter-spacing: -.06em; line-height: .9; }
.stat span { display: block; color: var(--muted); margin-top: 12px; font-size: 13px; }
.grid-detail { display: grid; grid-template-columns: 1fr 320px; gap: 48px; margin-top: 40px; }
.mini-label { color: var(--muted); font-size: 11px; letter-spacing: .14em; }
.node-list { display: flex; flex-wrap: wrap; gap: 9px; }
.node {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #b0b0b5; }
.node.computing .dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(29, 29, 31, .08); }
.node-score { color: var(--muted); }
.grid-meta { border-left: 1px solid var(--line); padding-left: 28px; }
.grid-meta p { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.grid-meta span { color: var(--muted); }
.muted { color: var(--muted); }
footer {
  min-height: 100px;
  padding: 28px clamp(22px, 7vw, 108px);

  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;

  color: var(--muted);
  font-size: 12px;
}

footer a {
  color: var(--text);
  text-decoration: none;
  margin-right: 8px;
}

footer a:hover {
  opacity: .65;
}

.made-by-human,
.made-with-ai {
  color: var(--muted);
  white-space: nowrap;
}

.footer-separator {
  color: #c7c7cc;
  user-select: none;
}

.made-with-ai {
  letter-spacing: .01em;
}

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .project-grid, .grid-detail { grid-template-columns: 1fr; }
  .projects-toolbar { align-items: flex-end; }
  .project-filters { flex-wrap: wrap; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .grid-meta { border-left: 0; padding-left: 0; }
  .project-facts { grid-template-columns: 1fr 1fr; }
}
