:root {
  --ink: #1b2733;
  --ink-soft: #44535f;
  --ink-faint: #6b7a87;
  --bg: #fcfdfd;
  --surface: #ffffff;
  --line: #e3eaee;
  --accent: #0b7285;
  --accent-deep: #074f5c;
  --accent-soft: #e7f3f5;
  --ledger: #1c66b0;
  --ledger-bg: #eef5fc;
  --atlas: #2b8a3e;
  --atlas-bg: #ecf7ee;
  --portfolio: #d9730d;
  --portfolio-bg: #fdf2e5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 42, 56, 0.06), 0 8px 24px rgba(16, 42, 56, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 44px;
  text-align: center;
  background:
    radial-gradient(1100px 420px at 50% -120px, rgba(11, 114, 133, 0.12), transparent 70%),
    linear-gradient(180deg, #f3f9fa 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.venue-chip {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 16px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(11, 114, 133, 0.25);
  border-radius: 999px;
}

.venue-strong { font-weight: 700; }

.title {
  margin: 0 auto 22px;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(27px, 4.5vw, 42px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink);
}

.title-sub { color: var(--accent-deep); }

.authors {
  margin: 0 0 6px;
  font-size: 17.5px;
  font-weight: 500;
}

.author { white-space: nowrap; }
.author + .author::before { content: "·"; margin: 0 10px 0 6px; color: var(--ink-faint); font-weight: 400; }
.author sup { font-size: 11px; color: var(--ink-faint); }

.authors a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 114, 133, 0.35);
}
.authors a:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

.affiliations {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--ink-faint);
}

.tagline {
  max-width: 62ch;
  margin: 0 auto 30px;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 16.5px;
  color: var(--ink-soft);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 42, 56, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 114, 133, 0.45);
  box-shadow: 0 4px 14px rgba(16, 42, 56, 0.12);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: var(--accent-deep);
}

/* ---------- Teaser ---------- */
.teaser { margin: 44px auto 8px; }

.teaser img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.teaser figcaption {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-faint);
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Sections ---------- */
section { padding: 34px 24px; }

h2 {
  font-family: "Lora", Georgia, serif;
  font-size: 27px;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--ink);
}

h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(11, 114, 133, 0.15));
}

.abstract-text { text-align: justify; }

.hl-ledger { color: var(--ledger); font-weight: 600; }
.hl-atlas { color: var(--atlas); font-weight: 600; }
.hl-portfolio { color: var(--portfolio); font-weight: 600; }

/* ---------- Loop stepper ---------- */
.loop {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 26px 0;
}

.loop-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 15px;
}

.loop-step span:last-child { color: var(--ink-faint); font-size: 14px; }

.loop-num {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.loop-arrow {
  align-self: center;
  font-size: 22px;
  color: var(--accent);
  flex: none;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0;
}

.card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink-faint);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 { margin: 0 0 10px; font-size: 17.5px; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

.card-ledger { border-top-color: var(--ledger); background: linear-gradient(180deg, var(--ledger-bg), var(--surface) 38%); }
.card-atlas { border-top-color: var(--atlas); background: linear-gradient(180deg, var(--atlas-bg), var(--surface) 38%); }
.card-portfolio { border-top-color: var(--portfolio); background: linear-gradient(180deg, var(--portfolio-bg), var(--surface) 38%); }

.card-ledger h3 { color: var(--ledger); }
.card-atlas h3 { color: var(--atlas); }
.card-portfolio h3 { color: var(--portfolio); }

.objects-note {
  padding: 16px 20px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 15px;
}

/* ---------- Grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
  counter-reset: commitment;
}

.commitment::before {
  counter-increment: commitment;
  content: "0" counter(commitment);
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.commitment, .exemplar {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink-soft);
}

.exemplar { display: flex; flex-direction: column; gap: 7px; }
.exemplar strong { color: var(--ink); font-size: 15.5px; }
.exemplar span { font-size: 14.5px; }

/* ---------- AdaptBench ---------- */
.bench-list { padding-left: 22px; margin: 18px 0; }
.bench-list li { margin-bottom: 10px; }

.metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.metric-chips span {
  padding: 6px 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(11, 114, 133, 0.22);
  border-radius: 999px;
}

/* ---------- BibTeX ---------- */
.bibtex-wrap { position: relative; margin-top: 20px; }

.bibtex-wrap pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  background: #0f2430;
  color: #d7e7ee;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.55;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #d7e7ee;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-btn:hover { background: rgba(255, 255, 255, 0.22); }

.ack { font-size: 15px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer {
  margin-top: 30px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--ink-faint);
}

footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 34px; }
  .abstract-text { text-align: left; }
  .loop { flex-direction: column; }
  .loop-arrow { transform: rotate(90deg); }
  .cards, .grid-2 { grid-template-columns: 1fr; }
  .author + .author::before { margin: 0 6px 0 2px; }
  section { padding: 28px 24px; }
}
