:root {
  --ink: #0d1b24;
  --ink-soft: #3a4d58;
  --ink-faint: #6f7f88;
  --paper: #fbfbf7;
  --white: #ffffff;
  --line: #dde4e6;
  --tint: #f1f5f2;
  --green: #2fae7a;
  --green-dark: #1d7f58;
  --green-soft: #d8f3e6;
  --orange: #f08a3c;
  --blue-soft: #e6eefb;
  --orange-soft: #fdeedd;
  --shadow: 0 24px 70px rgba(13, 27, 36, 0.10);
  --radius: 22px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.shell { width: var(--shell); margin-inline: auto; }

/* header */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; border-bottom: 1px solid transparent; transition: background 180ms, box-shadow 180ms; }
.site-header.is-scrolled { background: rgba(251, 251, 247, 0.9); border-bottom-color: rgba(13, 27, 36, 0.08); box-shadow: 0 8px 30px rgba(13, 27, 36, 0.05); backdrop-filter: blur(18px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(from 200deg, var(--green), #8fd9b6, var(--orange), var(--green)); box-shadow: 0 2px 8px rgba(13, 27, 36, 0.15); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.94rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-paper { padding: 7px 16px; border-radius: 999px; background: var(--ink); color: var(--white); }

/* hero */
.hero { padding: 128px 0 40px; background: radial-gradient(1100px 500px at 85% 0%, var(--green-soft), transparent 70%), radial-gradient(800px 400px at 0% 20%, #eef3ff, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: center; }
.venue-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.venue-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero-kicker { margin: 22px 0 8px; font-weight: 600; color: var(--green-dark); letter-spacing: -0.01em; }
h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 800; }
h1 em { font-style: normal; color: var(--green); }
.authors { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 26px; font-size: 1.08rem; font-weight: 600; }
.authors a { text-decoration: none; border-bottom: 1px solid rgba(13, 27, 36, 0.25); }
.authors a:hover { border-color: var(--green); color: var(--green-dark); }
.affiliations { margin-top: 6px; color: var(--ink-faint); }
.hero-summary { max-width: 720px; margin: 22px 0 0; color: var(--ink-soft); font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform 150ms, box-shadow 150ms; }
.button svg { width: 18px; height: 18px; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--ink); color: var(--white); box-shadow: 0 10px 26px rgba(13, 27, 36, 0.22); }
.button-secondary { background: var(--green); color: var(--white); box-shadow: 0 10px 26px rgba(47, 174, 122, 0.28); }
.button-quiet { background: var(--white); border: 1px solid var(--line); }

.hero-signal { position: relative; overflow: hidden; padding: 30px 28px; border-radius: var(--radius); background: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.signal-orbit span { position: absolute; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%; }
.signal-orbit span:nth-child(1) { width: 260px; height: 260px; right: -90px; top: -90px; }
.signal-orbit span:nth-child(2) { width: 380px; height: 380px; right: -150px; top: -150px; }
.signal-orbit span:nth-child(3) { width: 500px; height: 500px; right: -210px; top: -210px; }
.signal-label { position: relative; margin: 0; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.signal-number { position: relative; margin: 6px 0 0; font-size: 4.2rem; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: #7fe0b4; }
.signal-unit { position: relative; margin: 6px 0 0; color: rgba(255, 255, 255, 0.75); }
.signal-rule { height: 1px; margin: 20px 0 16px; background: rgba(255, 255, 255, 0.14); }
.signal-gain { margin: 0; font-size: 1.02rem; }
.signal-gain strong { color: #7fe0b4; }
.signal-context { margin: 6px 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

.video-wrap { margin-top: 56px; }
.video-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.video-heading h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.video-heading span { color: var(--ink-faint); font-size: 0.9rem; }
.card { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.video-card { padding: 10px; background: #0b0d11; border-color: #0b0d11; }
.video-card video { width: 100%; border-radius: 14px; }
figcaption { margin: 12px 6px 2px; font-size: 0.92rem; color: var(--ink-soft); }
.card img { width: 100%; border-radius: 12px; }

/* metrics */
.metrics-band { padding: 34px 0; background: var(--ink); color: var(--white); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metrics article { padding-left: 18px; border-left: 2px solid rgba(127, 224, 180, 0.5); }
.metric-value { margin: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: #7fe0b4; }
.metric-label { margin: 2px 0 0; font-weight: 600; }
.metric-detail { margin: 4px 0 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.62); }

/* sections */
.section { padding: 88px 0; }
.section.shell { padding-inline: 0; }
.section-tint { background: var(--tint); }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-kicker { margin: 0; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-dark); }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.18; letter-spacing: -0.03em; }
.section-lede { margin: 14px 0 0; color: var(--ink-soft); font-size: 1.04rem; }
.figure-wide { margin-top: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; align-items: center; }
.grid-2.align-start { align-items: start; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 30px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.steps li > span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-weight: 800; }
.steps h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

.table-card { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { font-weight: 700; color: var(--ink-soft); }
.row-teacher td { background: var(--blue-soft); }
.row-distill td { background: var(--orange-soft); }

.bibtex { position: relative; padding: 22px 24px; background: var(--ink); border-color: var(--ink); }
.bibtex pre { margin: 0; overflow-x: auto; color: #e6efe9; font-size: 0.9rem; line-height: 1.6; }
.copy { position: absolute; top: 14px; right: 14px; padding: 5px 14px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; background: transparent; color: var(--white); cursor: pointer; font: inherit; font-size: 0.85rem; }
.copy:hover { background: rgba(255, 255, 255, 0.1); }

.footer { padding: 30px 0 40px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-faint); }

@media (max-width: 920px) {
  .hero-grid, .grid-2, .steps { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.nav-paper) { display: none; }
}
.button.is-disabled { opacity: 0.55; pointer-events: none; box-shadow: none; }
