:root {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --ink: #121513;
  --muted: #676d68;
  --line: #dcded7;
  --accent: #315f52;
  --accent-soft: #dfeae5;
  --accent-bright: #b8d1c7;
  --dark: #18201d;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "DM Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(18, 21, 19, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
strong { font-weight: 650; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section-space { padding-top: 118px; padding-bottom: 118px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 13px 17px;
  border: 1px solid rgba(220, 222, 215, 0.82);
  border-radius: 16px;
  background: rgba(247, 247, 243, 0.86);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark { width: 15px; height: 15px; border-radius: 4px 9px 4px 9px; background: var(--accent); transform: rotate(12deg); }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav a:hover { background: #eceee9; color: var(--ink); }

.hero {
  min-height: 745px;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 64px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 86px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.hero h1 {
  max-width: 800px;
  margin: 22px 0 24px;
  font-size: clamp(54px, 6.3vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.058em;
  font-weight: 650;
}
.hero h1 span { color: var(--accent); }
.lede { max-width: 720px; margin: 0; font-size: 20px; line-height: 1.65; color: var(--muted); }
.hero-actions, .paper-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--dark); color: white; border-color: var(--dark); }
.button-primary:hover { background: #25302c; }
.button-ghost { background: rgba(255,255,255,.6); }
.button-ghost:hover { background: white; border-color: #c9ccc4; }

.hero-visual {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: #f1f3ee;
  box-shadow: var(--shadow);
}
.visual-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(49,95,82,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(49,95,82,.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.flow-card {
  position: absolute;
  width: 205px;
  padding: 16px 17px 15px;
  border: 1px solid #cfd5cf;
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(18,21,19,.06);
}
.flow-card strong { display: block; margin: 6px 0 6px; font-size: 17px; letter-spacing: -.02em; }
.flow-card small { color: var(--muted); line-height: 1.45; }
.flow-label { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: .08em; }
.flow-card-a { left: 32px; top: 64px; }
.flow-card-b { right: 32px; top: 64px; }
.flow-card-c { left: 50%; bottom: 34px; transform: translateX(-50%); width: 240px; text-align: center; }
.flow-node-center {
  position: absolute;
  left: 50%; top: 47%; transform: translate(-50%, -50%);
  width: 112px; height: 112px;
  border-radius: 50%;
  display: grid; place-items: center;
  text-align: center;
  background: var(--dark); color: white;
  border: 10px solid #dbe5df;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 40px rgba(18,21,19,.15);
}
.flow-node-center span { font-size: 12px; font-weight: 500; color: #cbd6d1; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow-lines path { stroke: #85a598; stroke-width: 2; fill: none; stroke-dasharray: 5 7; }

.section-heading { max-width: 820px; margin-bottom: 52px; }
.section-heading.compact { margin-bottom: 44px; }
.section-heading h2 { margin: 15px 0 16px; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }

.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar {
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.pillar-index { font-family: var(--mono); color: var(--accent); font-size: 12px; }
.pillar h3 { margin: 62px 0 14px; font-size: 31px; letter-spacing: -.035em; }
.pillar p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips span { padding: 8px 10px; border-radius: 999px; background: var(--accent-soft); color: #2c5449; font-family: var(--mono); font-size: 11px; }

.papers { background: #eceee9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.paper-card {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid #d3d6cf;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(18,21,19,.04);
}
.paper-card:last-child { margin-bottom: 0; }
.paper-aside {
  position: relative;
  min-height: 500px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: #f5f6f2;
}
.venue-badge { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: var(--dark); color: white; font-family: var(--mono); font-size: 10px; letter-spacing: .03em; }
.paper-number { position: absolute; right: 25px; top: 28px; color: #939a94; font-family: var(--mono); font-size: 10px; }
.mini-diagram { position: absolute; left: 28px; right: 28px; top: 50%; transform: translateY(-42%); }
.mini-box { padding: 13px 14px; border: 1px solid #cdd2cc; border-radius: 11px; background: white; text-align: center; font-size: 13px; font-weight: 650; }
.mini-box.accent { background: var(--accent-soft); color: #23463c; border-color: #bfd0c9; }
.mini-arrow { padding: 8px; text-align: center; color: #789188; }
.mini-row { display: flex; justify-content: center; gap: 14px; padding: 10px 0; }
.mini-object { width: 48px; height: 48px; border: 2px solid #9ba39d; border-radius: 50%; background: white; }
.mini-object.target { box-shadow: 0 0 0 7px var(--accent-soft); border-color: var(--accent); }
.mini-object.distractor { border-radius: 12px; }
.mini-object.distractor.alt { transform: rotate(45deg); border-radius: 9px; }
.paper-main { padding: 42px 46px 44px; }
.paper-kicker { color: var(--accent); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.paper-main h3 { margin: 12px 0 12px; max-width: 850px; font-size: clamp(30px, 3vw, 44px); line-height: 1.09; letter-spacing: -.04em; }
.authors { margin: 0 0 27px; color: #555d57; font-size: 14px; line-height: 1.55; }
.paper-summary { max-width: 880px; color: #343a36; font-size: 17px; line-height: 1.72; }
.paper-points { margin: 25px 0 0; padding: 0; list-style: none; max-width: 880px; }
.paper-points li { position: relative; padding: 11px 0 11px 25px; border-top: 1px solid #eceee9; color: var(--muted); line-height: 1.55; }
.paper-points li::before { content: "↳"; position: absolute; left: 0; color: var(--accent); }

.bibtex-card { margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.bibtex-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bibtex-header strong { font-size: 14px; }
.copy-button { border: 1px solid #cbd0ca; border-radius: 9px; background: #f5f6f2; padding: 7px 11px; cursor: pointer; font-family: var(--mono); font-size: 11px; }
.copy-button:hover { background: #eceee9; }
pre { margin: 0; overflow-x: auto; padding: 22px; background: #171d1b; color: #e8efeb; font: 13px/1.7 var(--mono); }

.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; }
.footer-inner strong { font-size: 16px; }
.footer-inner p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 10px; align-items: flex-start; }
.footer-links a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--mono); font-size: 10px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-visual { min-height: 510px; }
  .paper-card { grid-template-columns: 1fr; }
  .paper-aside { min-height: 330px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mini-diagram { max-width: 360px; left: 50%; right: auto; width: calc(100% - 56px); transform: translate(-50%, -42%); }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 30px, 1180px); }
  .site-header { width: calc(100% - 20px); }
  .brand span:last-child { display: none; }
  .nav a { padding: 8px 9px; font-size: 12px; }
  .hero { min-height: auto; gap: 40px; padding-top: 70px; }
  .hero h1 { font-size: clamp(48px, 16vw, 70px); }
  .lede { font-size: 17px; }
  .hero-visual { min-height: 560px; }
  .flow-card { width: calc(50% - 24px); }
  .flow-card-a { left: 16px; top: 35px; }
  .flow-card-b { right: 16px; top: 35px; }
  .flow-card-c { width: calc(100% - 64px); bottom: 26px; }
  .section-space { padding-top: 82px; padding-bottom: 82px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { min-height: 290px; }
  .paper-main { padding: 30px 24px 32px; }
  .paper-main h3 { font-size: 31px; }
  .paper-aside { min-height: 300px; }
  .footer-inner { flex-direction: column; }
}
