:root {
  --bg: #0B0D10;
  --surface: #13171C;
  --surface-2: #1A1F26;
  --line: #222830;
  --line-strong: #2A313A;
  --text: #ECEEF1;
  --text-2: #C3C9D0;
  --muted: #9AA3AD;
  --voice: #7CC4FF;
  --motion: #FF9B5E;
  --display: "Inter Tight", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--voice); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 17px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav a.pill { color: var(--text); }

.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 500; font-size: 15px; }
.pill.solid { background: var(--text); color: var(--bg); border-color: transparent; font-weight: 600; }
.pill.solid:hover { background: #fff; color: var(--bg); }
.pill.voice { background: var(--voice); color: var(--bg); border-color: transparent; font-weight: 600; }
.pill.voice:hover { color: var(--bg); filter: brightness(1.08); }
.pill.lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.nav .pill { min-height: 40px; padding: 0 16px; }

/* Hero */
.hero { padding: 88px 0 32px; }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.hero h1 { margin: 24px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(56px, 10vw, 136px); line-height: 0.95; letter-spacing: -0.045em; }
.hero h1 .v { color: var(--voice); display: block; }
.hero h1 .m { color: var(--motion); display: block; }
.lede { margin: 36px 0 0; max-width: 640px; font-size: 20px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 600px) { .hero { padding-top: 48px; } .lede { font-size: 18px; } }

.signal { margin: 24px 0 0; overflow: hidden; }
.signal svg { display: block; width: 100%; min-width: 760px; height: auto; }
@media (max-width: 760px) { .signal svg { margin-left: calc((100% - 760px) / 2); } }
.signal figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.frame { opacity: var(--o); }
@media (prefers-reduced-motion: no-preference) {
  .frame { animation: frame-in 0.7s ease-out both; animation-delay: var(--d); }
  .curve { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.8s ease-out 0.2s forwards; }
}
@keyframes frame-in { from { opacity: 0; transform: translateY(8px); } to { opacity: var(--o); transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Shipped */
.shipped { margin-top: 96px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 40px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 600px) { .shipped { padding: 24px; gap: 28px; } }
.shipped .copy { flex: 1 1 360px; min-width: 0; }
.shipped .visual { flex: 1.4 1 480px; min-width: 0; border-radius: 18px; background: var(--surface-2); overflow: hidden; }
.shipped .visual svg { display: block; width: 100%; height: auto; }
.kicker { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }
.kicker.m { color: var(--motion); }
.kicker.v { color: var(--voice); }
.shipped h2 { margin: 16px 0 0; font-family: var(--display); font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; }
.shipped .sub { margin: 8px 0 0; font-size: 18px; color: var(--text-2); }
.shipped .body { margin: 20px 0 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.authors { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.authors strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Section heads */
.section { margin-top: 120px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
h2.big { margin: 0; font-family: var(--display); font-size: 48px; letter-spacing: -0.03em; line-height: 1; }
.section-head a { font-size: 15px; font-weight: 500; color: var(--muted); }
.section-head a:hover { color: var(--text); }
@media (max-width: 600px) { .section { margin-top: 88px; } h2.big { font-size: 40px; } }

/* Themes */
.themes { display: flex; flex-wrap: wrap; gap: 24px; }
.theme { flex: 1 1 340px; min-width: 0; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.theme .media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.theme .media img, .theme .media svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.theme .head { padding: 26px 26px 18px; }
.theme h3 { margin: 10px 0 0; font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; }
.theme .head p:last-child { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.papers { list-style: none; margin: 0; padding: 0 26px 22px; }
.papers li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.papers .yr { flex: 0 0 40px; font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.papers a { font-size: 15px; line-height: 1.45; }
.papers a:hover { text-decoration: underline; text-underline-offset: 3px; }
.papers .venue { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.earlier { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.earlier a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* Path + Recently */
.split { margin-top: 120px; display: flex; flex-wrap: wrap; gap: 72px; }
.split > section { flex: 1 1 420px; min-width: 0; }
@media (max-width: 600px) { .split { margin-top: 88px; gap: 64px; } }
.split h2.big { margin-bottom: 32px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #4A525C; }
.timeline li.now::before { background: var(--motion); }
.timeline li.phd::before { background: var(--voice); }
.timeline .role { font-size: 17px; font-weight: 600; }
.timeline .where { margin-top: 4px; font-size: 15px; color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feed time { flex: 0 0 72px; font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 3px; }
.feed .txt { flex: 1 1 auto; font-size: 16px; line-height: 1.5; }
.feed .txt a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.feed .txt a:hover { text-decoration-color: currentColor; }
.tag { flex: 0 0 auto; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--text-2); }

/* Contact */
.contact { margin-top: 140px; padding: 72px 0; border-top: 1px solid var(--line); text-align: center; }
.contact h2 { margin: 0; font-family: var(--display); font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1.05; }
.contact p { margin: 16px auto 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.contact .actions { justify-content: center; margin-top: 32px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .mono { font-family: var(--mono); }

/* Publication page */
.paper-page { max-width: 820px; padding: 56px 0 40px; }
.back { font-size: 15px; color: var(--muted); }
.paper-page h1 { margin: 24px 0 0; font-family: var(--display); font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
.paper-page .meta { margin: 16px 0 0; font-family: var(--mono); font-size: 14px; color: var(--motion); }
.paper-page figure { margin: 36px 0 0; }
.paper-page figure img { display: block; width: 100%; border-radius: 18px; }
.paper-page h2 { margin: 48px 0 0; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.paper-page .abstract p { margin: 16px 0 0; font-size: 17px; line-height: 1.75; color: var(--text-2); }
.cite { margin: 16px 0 0; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
