:root {
    --bg-1: #f7f4ff;
    --bg-2: #e7f2ff;
    --accent: #5b6cff;
    --text-main: #14151a;
    --text-muted: #5f6472;
    --max-width: 880px;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
  
    /* soft animated “wavey” background around the middle pane */
    background:
      radial-gradient(circle at 0% 0%, rgba(255, 195, 166, 0.45), transparent 60%),
      radial-gradient(circle at 100% 0%, rgba(91, 108, 255, 0.35), transparent 55%),
      radial-gradient(circle at 0% 100%, rgba(231, 242, 255, 0.7), transparent 60%),
      linear-gradient(135deg, var(--bg-1), var(--bg-2));
    background-size: 180% 180%;
    background-attachment: fixed;
    animation: bg-wave 26s ease-in-out infinite alternate;
  }
  
  @keyframes bg-wave {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 100%; }
  }
  
  a {
    color: var(--accent);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* ---------- Layout ---------- */
  
  .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  /* floating middle pane */
  .page-panel {
    /* no box, just some vertical spacing */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 2.4rem 0 2.6rem;
  }
  
  @media (max-width: 640px) {
    .page-panel {
      padding: 1.8rem 1.4rem 2rem;
      border-radius: 20px;
    }
  }
  
  /* ---------- Header / nav ---------- */
  
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: linear-gradient(
      to bottom,
      rgba(247, 244, 255, 0.96),
      rgba(247, 244, 255, 0.82)
    );
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    flex-wrap: wrap;
  }
  
  .site-name {
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    text-transform: uppercase;
  }
  
  .main-nav {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .main-nav a {
    color: var(--text-muted);
    font-weight: 500;
  }
  
  .main-nav a:hover {
    color: var(--text-main);
    text-decoration: none;
  }
  
  .social {
    display: flex;
    gap: 0.6rem;
    font-size: 1.1rem;
  }
  
  .social a {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
  }
  
  .social a:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
  }
  /* ---------- Main / hero ---------- */

main {
    padding: 3.2rem 0 4rem;
  }
  
  .hero {
    text-align: left;
  }
  
  .hero-layout {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    flex-wrap: wrap;
  }
  
  .hero-text {
    flex: 1 1 260px;
  }
  
  .hero-photo-column {
    flex: 0 0 260px;
    text-align: center;
  }
  
  .hero-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.4);
    background: #ddd;
    margin-bottom: 1.2rem;
  }
  
  h1 {
    margin: 0;
    font-size: 2.1rem;
  }
  
  .subtitle {
    margin-top: 0.3rem;
    font-size: 1.05rem;
    color: var(--text-muted);
  }
  
  .advisors {
    margin-top: 0.3rem;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  
  .advisors a {
    color: var(--accent);
  }
  
  .bio {
    margin-top: 1.4rem;
    font-size: 1rem;
    text-align: left;
    max-width: 640px;
  }
  
  /* icon row under the photo */
  
  .hero-links {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.1rem;
  }

  .hero-links img {
    width: 28px;
    height: 28px;
    display: block;
  }
  
  
  .hero-links a {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(249, 250, 251, 0.96);
    color: #4b5563;
    font-size: 1.15rem;
  }
  
  .hero-links a.cv-pill {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  
  .hero-links a:hover {
    background: var(--accent);
    color: #fff;
  }
  
  /* stack text + photo nicely on small screens */
  
  @media (max-width: 700px) {
    .hero-layout {
      flex-direction: column-reverse;
      text-align: center;
    }
    .hero-text {
      text-align: center;
    }
    .bio {
      text-align: left; /* still left-align paragraph even on mobile */
      margin-left: auto;
      margin-right: auto;
    }
  }
  
  /* ---------- Papers (shared) ---------- */
  
  .home-papers {
    margin-top: 2.8rem;
    text-align: left;
  }
  
  .home-papers h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .papers-wrapper {
    padding-top: 0.5rem;
  }
  
  .papers-intro {
    margin-bottom: 2rem;
  }
  
  .papers-list {
    margin-top: 1.2rem;
  }
  
  .paper-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
  }
  
  .paper-item + .paper-item {
    margin-top: 1.6rem;
  }
  .paper-figure {
    flex: 0 0 220px;
    margin-right: 1rem;
  }
  
  .paper-figure img {
    width: 100%;
    max-width: 260px;
    border-radius: 18px;
    display: block;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
  }
  
  @media (max-width: 700px) {
    .paper-item {
      flex-direction: column;
    }
    .paper-figure {
      margin-right: 0;
      margin-bottom: 0.75rem;
      align-self: center;
    }
  }
  
  
  /* small thumbnail; on home page you can omit the <img> entirely if you want */
  .paper-thumb {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    background: #ddd;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  }
  
  .paper-text {
    flex: 1;
  }
  
  .paper-title {
    font-weight: 600;
    font-size: 1.05rem;
  }
  
  .paper-authors {
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  
  .paper-authors .me {
    font-weight: 600;
    color: #f97316; /* highlight your name */
  }
  
  .paper-venue {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
  }
  
  .paper-links a {
    color: #f97316;
    font-style: normal;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
  }
  
  .paper-links a:hover {
    text-decoration: underline;
  }
  
  @media (max-width: 600px) {
    .paper-item {
      flex-direction: row;
    }
  }
  
 /* links in News & Talks: red + underlined */
.home-news .news-text a {
    color: #d9480f;
    text-decoration: underline;
    font-weight: 500;
  }
  
  .home-news .news-text a:hover {
    color: #b43b07;
  }
  
  
  /* ---------- Footer ---------- */
  
  footer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 1.5rem 0 0.8rem;
  }
  