:root {
  color-scheme: dark;
  --bg: #080d14;
  --surface: #0d1620;
  --ink: #e8eff5;
  --muted: #91a3b3;
  --line: #22313e;
  --accent: #7adfcd;
  --amber: #d4a466;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 35px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.inline-link { color: var(--accent); text-decoration: underline; text-decoration-color: #365e60; text-underline-offset: 4px; }
.inline-link:hover { text-decoration-color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
p, h1, h2, h3 { margin: 0; }
::selection { background: #7adfcd; color: #080d14; }
#particle-field { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.header { height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
nav { display: flex; gap: 34px; font-size: 14px; }
nav a { color: #b6c4cf; transition: color .2s; }
nav a:hover { color: var(--accent); }
.motion-button { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 7px; min-height: 32px; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .5px; padding: 6px 9px; background: #080d14; border: 1px solid var(--line); }
.motion-icon { color: var(--accent); font-size: 12px; }
.hero { position: relative; isolation: isolate; min-height: 820px; padding: 385px 0 112px; }
.hero-copy { position: relative; z-index: 2; width: min(500px, 100%); margin-inline: auto; text-align: center; pointer-events: none; background: radial-gradient(ellipse, #080d14eb 10%, #080d1499 48%, transparent 73%); text-shadow: 0 1px 8px var(--bg); }
.hero-copy a { pointer-events: auto; text-shadow: none; }
.hero-copy > * { transition: filter .18s ease, opacity .18s ease; }
.hero.is-operating .hero-copy > * { filter: blur(3px); opacity: .38; }
.hero.is-operating .hero-copy > :focus-within { filter: none; opacity: 1; }
.desk-surface { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.portrait-home { position: absolute; top: 126px; left: 50%; width: 128px; height: 128px; transform: translateX(-50%); z-index: 3; }
.avatar-frame { position: relative; display: block; width: 128px; height: 128px; padding: 0; overflow: hidden; border: 1px solid #72bdb5; border-radius: 50%; background: #101e28; box-shadow: 0 0 0 6px #7adfcd09, 0 0 45px #7adfcd13; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; }
.avatar-frame.is-gripped { cursor: grabbing; border-color: #c5fff0; box-shadow: 0 0 0 6px #7adfcd16, 0 0 45px #7adfcd29; }
.avatar-frame svg { display: block; width: 100%; height: 100%; padding: 13px; stroke: #6d969e; stroke-width: 1.3; pointer-events: none; }
.avatar-texture { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; }
.avatar-frame svg, .avatar-texture { transform: rotate(var(--ball-roll, 0rad)); }
.avatar-frame::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 29% 22%, #d5fff244, transparent 35%, #02091018 55%, #01050dbb 100%); box-shadow: inset -10px -14px 25px #0007, inset 2px 3px 8px #c5fff02b; }
.avatar-frame img { position: absolute; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
#robot-arms { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.robot-controls { position: absolute; bottom: 28px; left: 0; display: flex; gap: 18px; align-items: center; color: #779aab; font: 10px/1.6 var(--mono); }
.robot-controls button { color: var(--accent); background: none; border: 0; padding: 8px 0; font: inherit; }
.hero .motion-button { bottom: 22px; z-index: 4; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.eyebrow { color: var(--accent); font: 11px/1.7 var(--mono); letter-spacing: 1.8px; }
.hero h1 { font-size: clamp(34px, 3.2vw, 42px); line-height: 1.15; font-weight: 600; letter-spacing: -2px; margin: 20px 0 20px; }
.hero h1>span:first-child { color: #a7bdc9; }
.name-period { color: var(--accent); }
.hero-description { color: var(--muted); max-width: 430px; margin: 18px auto 0; font-size: 14px; line-height: 1.85; }
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; padding: 12px 22px; font-size: 14px; border-radius: 2px; transition: background .2s, border-color .2s; }
.primary { color: #0a161a; background: var(--accent); }
.primary:hover { background: #a1efdf; }
.secondary { border-color: #344653; background: #0b141c; color: var(--ink); }
.secondary:hover { border-color: var(--accent); }
.hero-note { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 44px; font: 10px var(--mono); letter-spacing: 1px; color: #8399a8; }
.hero-note i { height: 1px; width: 22px; background: #3a5361; }
.motion-paused *, .motion-paused *:before, .motion-paused *:after { animation-play-state: paused !important; }
.section { padding-block: 98px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 44px; }
h2 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 500; line-height: 1.22; letter-spacing: -1.5px; }
.section-heading h2 { margin-top: 18px; }
.section-heading>p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.news-section { display: grid; grid-template-columns: 1fr 2.1fr; gap: 40px; padding-block: 50px; border-bottom: 1px solid var(--line); }
.news-section h2 { font-size: 28px; margin-top: 12px; }
.news-item { display: grid; grid-template-columns: 65px 1fr; gap: 20px; padding-block: 12px; align-items: baseline; }
.news-item time { font: 11px var(--mono); color: var(--accent); }
.news-icon { margin-right: 8px; }
.news-item p { color: #afbeca; font-size: 16px; }
.interest-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 25px; }
.interest-tags span { border: 1px solid #2a414e; background: #0b1820; padding: 5px 10px; color: #b5c8d2; font: 11px/1.6 var(--mono); }
.experience-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.experience-grid h3 { font-size: 22px; font-weight: 500; margin-bottom: 28px; }
.timeline-item { border-left: 1px solid #355161; padding-left: 25px; position: relative; margin-top: 30px; }
.timeline-item:before { content: ''; width: 7px; height: 7px; border: 1px solid var(--accent); background: var(--bg); position: absolute; top: 6px; left: -4px; }
.timeline-item small { color: #8ba4b4; font: 11px/1.8 var(--mono); }
.timeline-item h4 { font-size: 19px; font-weight: 500; margin: 10px 0; }
.timeline-item p { font-size: 16px; color: var(--muted); }
.awards-row { margin-top: 55px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.awards-row h3 { font-size: 20px; font-weight: 500; }
.awards-row p { color: var(--muted); font-size: 16px; }
.award-year-group { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
.award-year-group + .award-year-group { margin-top: 22px; }
.award-year { color: var(--muted); font: 13px/28px var(--mono); }
.award-entries p + p { margin-top: 8px; }
.award-prize { white-space: nowrap; }
.award-medal { margin-right: 5px; font-size: 16px; }
.contact-section { border-top: 1px solid var(--line); }
.contact-section h2 { font-size: clamp(42px, 5vw, 68px); margin-top: 22px; letter-spacing: -2px; }
.contact-section h2 span { color: var(--accent); }
.contact-bottom { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-top: 32px; }
.contact-bottom p { color: var(--muted); font-size: 16px; }
.contact-actions { display: flex; gap: 12px; }
.contact-status { color: var(--accent); font-size: 14px; }
.footer { border-top: 1px solid var(--line); padding-block: 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer p, .footer>a:last-child { font-size: 12px; color: var(--muted); }
dialog { width: min(920px,calc(100% - 40px)); max-height: calc(100svh - 48px); padding: 42px; background: #0d1721; color: var(--ink); border: 1px solid #385666; box-shadow: 0 20px 120px #0009; }
dialog::backdrop { background: #03080dcc; backdrop-filter: blur(8px); }
dialog h2 { font-size: 28px; letter-spacing: -.7px; line-height: 1.4; margin: 22px 0; overflow-wrap: anywhere; }
dialog p:not(.eyebrow) { color: #adbfca; font-size: 16px; }
dialog .dialog-note { margin-top: 24px; font-size: 14px !important; }
dialog .button { margin-top: 24px; }
.dialog-close { position: absolute; top: 8px; right: 12px; width: 40px; height: 40px; background: transparent; border: 0; font-size: 28px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 8px 16px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 10px; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero { min-height: 740px; }
  .hero h1 { font-size: 38px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1px; }
}
@media (max-width: 700px) {
  .avatar-frame, .portrait-home { width: 104px; height: 104px; }
  .portrait-home { top: 92px; }
  .wrap { width: calc(100% - 40px); }
  .header { height: 83px; gap: 15px; flex-wrap: wrap; }
  nav { gap: 15px; font-size: 12px; }
  .hero { min-height: 760px; padding-block: 350px 110px; }
  .hero-copy { width: min(420px, 100%); background: linear-gradient(90deg, transparent, #080d14de 8%, #080d14de 92%, transparent); }
  .hero-description { font-size: 14px; text-shadow: 0 1px 8px var(--bg), 0 0 20px var(--bg); }
  .robot-controls { bottom: 58px; width: 100%; justify-content: center; gap: 4px 12px; flex-wrap: wrap; }
  .hero .motion-button { bottom: 10px; }
  .hero h1 { font-size: 34px; margin-top: 22px; }
  .hero-description { max-width: 100%; }
  .hero-note { font-size: 9px; gap: 10px; }
  .hero-note i { width: 15px; }
  .section { padding-block: 60px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading>p { margin-top: 20px; }
  h2 { font-size: 34px; }
  .news-section { grid-template-columns: 1fr; gap: 18px; padding-block: 35px; }
  .news-item { gap: 12px; grid-template-columns: 55px 1fr; }
  .news-item time { font-size: 10px; }
  .news-item p { font-size: 15px; }
  .experience-grid { grid-template-columns: 1fr; gap: 38px; }
  .awards-row { grid-template-columns: 1fr; gap: 18px; }
  .contact-section h2 { font-size: 44px; }
  .contact-bottom { flex-direction: column; align-items: start; gap: 25px; }
  .contact-bottom br { display: none; }
  .footer p { font-size: 11px; }
  .footer>a:last-child { font-size: 11px; }
  dialog { padding: 32px 24px; }
  dialog h2 { font-size: 24px; }
}
@media (max-width: 370px) {
  nav { gap: 10px; font-size: 11px; }
  .header { gap: 8px; }
  .hero h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
}

/* Original paper figures with full publication titles and direct resource links. */
.publication { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 34px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); }
.publication:first-child { padding-top: 0; }
.publication-figure { margin: 0; min-width: 0; }
.paper-preview { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 180px; padding: 10px; border: 1px solid #3b4b55; border-radius: 3px; background: #fff; transition: border-color .2s; }
.paper-preview:hover { border-color: var(--accent); }
.paper-preview img { width: 100%; height: auto; max-height: 210px; object-fit: contain; display: block; }
.publication-content { min-width: 0; }
.publication-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font: 11px/1.7 var(--mono); }
.publication-venue { display: inline-flex; align-items: center; color: #a2f0df; background: #153a36; border: 1px solid #2b6258; border-radius: 4px; padding: 3px 10px; font-size: 12px; font-weight: 600; letter-spacing: .2px; }
.publication-role { color: var(--muted); }
.publication h3 { margin-top: 10px; }
.publication-title { display: block; padding: 0; text-align: left; background: none; border: 0; font-size: 21px; font-weight: 500; line-height: 1.45; letter-spacing: -.35px; overflow-wrap: anywhere; }
.publication-title:hover { color: var(--accent); }
.publication-summary { color: var(--muted); font-size: 16px; line-height: 1.75; margin-top: 12px; }
.publication-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.resource-link { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border: 1px solid #304b59; border-radius: 3px; color: #bdd8df; font: 12px/1.6 var(--mono); background: #0d1922; }
.resource-link:hover { color: var(--accent); border-color: var(--accent); }
.dialog-figure { margin: 20px 0 24px; }
.dialog-figure img { display: block; width: 100%; max-height: 55svh; height: auto; object-fit: contain; padding: 12px; background: white; }
@media (max-width: 1000px) {
  .publication { grid-template-columns: 250px minmax(0, 1fr); gap: 25px; }
  .publication-title { font-size: 19px; }
}
@media (max-width: 700px) {
  .publication { grid-template-columns: 1fr; gap: 18px; padding-block: 28px; }
  .paper-preview { min-height: 0; }
  .paper-preview img { max-height: 240px; }
  .publication-title { font-size: 20px; }
  .publication-meta { font-size: 10px; }
}
