:root {
  color-scheme: light dark;
  --page: light-dark(#ffffff, #141517);
  --hero: light-dark(#f7f8fa, #191b1e);
  --ink: light-dark(#202124, #f5f5f7);
  --copy: light-dark(#45484e, #d2d4d8);
  --quiet: light-dark(#62666d, #acb0b6);
  --blue: light-dark(#165e9f, #86bdf4);
  --rule: light-dark(#e0e3e7, #33363a);
  --glass: light-dark(rgba(255,255,255,.9), rgba(20,21,23,.9));
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  scroll-behavior: smooth;
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.56; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: #c6e1fa; color: #17293a; }
.shell { width: min(64rem, calc(100% - 6rem)); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.08em; height: 1.08em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; z-index: 20; left: 1rem; top: -5rem; padding: .65rem 1rem; background: var(--page); }
.skip:focus { top: .6rem; }
.masthead { position: sticky; top: 0; z-index: 10; background: var(--glass); border-bottom: 1px solid var(--rule); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.masthead-inner { min-height: 3.8rem; display: flex; align-items: center; gap: 1.55rem; }
.wordmark { margin-right: auto; font-size: 1.06rem; font-weight: 650; letter-spacing: -.035em; white-space: nowrap; }
nav { display: flex; gap: 1.65rem; position: relative; }
nav a { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: .91rem; color: var(--quiet); }
nav a:hover, nav a[aria-current] { color: var(--ink); }
nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: .42em; text-decoration-thickness: 1.5px; }
nav.tracked a[aria-current] { text-decoration: none; }
nav.tracked::after { content: ""; position: absolute; bottom: .4rem; left: 0; width: var(--indicator-width); height: 1.5px; border-radius: 1px; background: var(--blue); transform: translateX(var(--indicator-x)); pointer-events: none; transition: transform .28s cubic-bezier(.2,.7,.2,1), width .28s ease; }
#theme-toggle { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; border: 0; border-radius: 50%; color: var(--quiet); background: transparent; cursor: pointer; }
#theme-toggle[hidden] { display: none; }
#theme-toggle:hover { background: var(--hero); color: var(--ink); }
#theme-toggle .icon { width: 1.05rem; height: 1.05rem; }
section { scroll-margin-top: 4.7rem; }
.hero { background: radial-gradient(ellipse at 78% 30%, light-dark(#edf2f6, #212830), transparent 61%), linear-gradient(180deg, var(--hero), var(--page)); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 18.2rem); align-items: center; column-gap: clamp(2rem, 6.7vw, 6.5rem); padding-block: clamp(3.3rem, 5vw, 5.25rem) clamp(2rem, 3.1vw, 3.1rem); }
h1 { margin: 0 0 .52rem; font-size: clamp(3.3rem, 5.5vw, 4.75rem); letter-spacing: -.057em; line-height: 1.04; font-weight: 620; }
.native-name { display: inline-block; margin-left: .83rem; font-size: clamp(.95rem, 1.4vw, 1.17rem); font-weight: 430; color: var(--quiet); letter-spacing: .045em; vertical-align: .2em; }
.role { color: var(--quiet); font-size: clamp(1rem, 1.4vw, 1.14rem); font-weight: 450; letter-spacing: -.012em; }
.role span { white-space: nowrap; }
.role span + span::before { content: "·"; margin-inline: .28rem .44rem; }
.bio { max-width: 37rem; margin-block: 1.25rem .65rem; color: var(--copy); font-size: 1.06rem; line-height: 1.66; }
.contact, .resources { display: flex; align-items: center; flex-wrap: wrap; }
.contact { gap: .3rem 1.2rem; }
.contact a, .resources a { display: inline-flex; align-items: center; gap: .46rem; font-weight: 500; }
.contact a { min-height: 2.55rem; font-size: .92rem; }
.email, .resources a, .footer-inner a { color: var(--blue); }
.email:hover, .resources a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: 3px; }
.portrait-wrap { width: 100%; justify-self: end; }
.portrait-frame img { display: block; width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 0 0 1px light-dark(#172c4510, #ffffff12), 0 10px 30px -21px light-dark(#22364766, #000a); }
.works, .experience { padding-top: clamp(2.4rem, 4vw, 3.9rem); }
h2 { font-size: clamp(1.64rem, 2.5vw, 2.15rem); line-height: 1.18; letter-spacing: -.043em; font-weight: 620; margin-bottom: 1.05rem; }
.paper, .placement { display: grid; grid-template-columns: minmax(9rem, 19%) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.6rem); padding: 1.65rem 0; border-top: 1px solid var(--rule); }
.paper { grid-template-columns: minmax(12rem, 25%) minmax(0, 1fr); align-items: center; padding-block: 1.75rem; }
.paper-visual { min-width: 0; margin: 0; }
.figure-link { display: block; padding: .45rem; overflow: hidden; border-radius: .52rem; border: 1px solid var(--rule); background: white; cursor: zoom-in; transition: border-color .18s, box-shadow .2s, transform .2s; }
.paper-figure { width: 100%; height: auto; display: block; }
.venue { color: var(--blue); font-weight: 600; font-size: .86rem; line-height: 1.45; margin-bottom: .28rem; }
.paper h3 { max-width: 47rem; font-size: clamp(1.16rem, 1.65vw, 1.39rem); line-height: 1.32; letter-spacing: -.024em; font-weight: 600; }
.paper h3 a:hover { color: var(--blue); }
.authors { margin: .4rem 0 .1rem; color: var(--quiet); font-size: .94rem; line-height: 1.52; }
.authors strong { color: var(--ink); font-weight: 600; }
.contribution { color: var(--quiet); font-size: .8rem; padding-top: .4rem; }
.resources { gap: 1.05rem; }
.resources a { min-height: 2.3rem; font-size: .89rem; }
.experience { padding-bottom: 3rem; }
.placement { padding-block: 1.2rem; }
.dates, .detail { color: var(--quiet); font-size: .93rem; }
.dates { font-variant-numeric: tabular-nums; }
.placement h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.4; letter-spacing: -.021em; }
.placement h3 + p { color: var(--copy); margin: .1rem 0; }
footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 1.15rem; font-size: .88rem; color: var(--quiet); }
.footer-inner a { padding-block: .4rem; }
#figure-dialog { box-sizing: border-box; width: min(70rem, calc(100vw - 2.4rem)); max-height: calc(100dvh - 2.4rem); padding: 0; color: var(--ink); background: var(--page); border: 1px solid var(--rule); border-radius: 1.1rem; box-shadow: 0 32px 100px #0004; }
#figure-dialog::backdrop { background: #141a2480; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
:root:has(#figure-dialog[open]) { overflow: hidden; }
.figure-toolbar { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--rule); }
#figure-dialog-title { margin: 0 auto 0 0; font-size: 1.06rem; letter-spacing: -.025em; }
#figure-source { color: var(--blue); font-size: .9rem; }
#figure-close { appearance: none; padding: .4rem .7rem; border-radius: .55rem; border: none; background: var(--hero); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.figure-stage { background: white; padding: clamp(.65rem, 2vw, 1.5rem); }
#figure-original { display: block; cursor: zoom-in; }
#figure-detail { display: block; width: 100%; max-height: calc(100dvh - 10rem); object-fit: contain; }
@media (hover: hover) {
  .figure-link:hover { transform: translateY(-2px); border-color: light-dark(#b0c2d1, #718494); box-shadow: 0 7px 17px -12px #25394f55; }
  #figure-source:hover { text-decoration: underline; }
}
@media (prefers-reduced-motion: no-preference) {
  .identity, .bio, .contact, .portrait-wrap { animation: settle .45s cubic-bezier(.2,.65,.2,1) backwards; }
  .bio, .contact { animation-delay: .05s; }
  .portrait-wrap { animation-delay: .08s; }
  #figure-dialog[open] { animation: expand .18s ease-out; }
  #figure-dialog[open]::backdrop { animation: fade-in .18s ease-out; }
  @keyframes settle { from { opacity: .72; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes expand { from { opacity: .4; transform: scale(.982); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 52rem) {
  .shell { width: calc(100% - 3.6rem); }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(10rem, 31%); gap: 2rem; }
}
@media (max-width: 40rem) {
  .shell { width: calc(100% - 2.5rem); }
  .masthead-inner { min-height: 3.45rem; gap: .6rem; }
  .wordmark { font-size: .99rem; }
  nav { gap: .82rem; }
  nav a { font-size: .83rem; }
  #theme-toggle { width: 2.1rem; height: 2.4rem; }
  section { scroll-margin-top: 4rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) clamp(4.3rem, 20vw, 6.1rem); grid-template-areas: "identity portrait" "bio bio" "contact contact"; align-items: center; column-gap: .7rem; row-gap: .9rem; padding-block: 2.1rem; }
  .introduction { display: contents; }
  .identity { grid-area: identity; }
  .portrait-wrap { grid-area: portrait; }
  .portrait-frame img { border-radius: .65rem; }
  h1 { font-size: clamp(2.1rem, 7.5vw, 3rem); line-height: 1.13; letter-spacing: -.048em; margin: .23rem 0 .2rem; }
  .native-name { margin-left: .38rem; font-size: .85rem; }
  .role { font-size: .92rem; line-height: 1.45; }
  .role span { display: block; }
  .role span + span::before { content: none; }
  .bio { grid-area: bio; margin: 0; font-size: 1rem; line-height: 1.62; }
  .contact { grid-area: contact; column-gap: 1rem; }
  .contact a { font-size: .86rem; }
  .paper { grid-template-columns: clamp(5.1rem, 23vw, 8rem) minmax(0, 1fr); gap: .22rem .85rem; padding-block: 1.2rem; }
  .paper > div { display: contents; }
  .paper-visual { grid-column: 1; grid-row: 1 / 3; align-self: start; margin-top: .15rem; }
  .figure-link { padding: .2rem; }
  .venue { grid-column: 2; grid-row: 1; margin: 0; }
  .paper h3 { grid-column: 2; grid-row: 2; font-size: 1.1rem; }
  .authors, .resources { grid-column: 1 / -1; }
  .authors { margin-bottom: 0; font-size: .91rem; }
  .figure-toolbar { gap: .65rem; padding: .75rem; }
  .placement { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .experience { padding-bottom: 2rem; }
}
@media (max-width: 22rem) {
  .shell { width: calc(100% - 1.6rem); }
  .masthead-inner { gap: .2rem; }
  nav { gap: .56rem; }
  .contact { gap: .3rem .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  nav.tracked::after, .figure-link { transition: none; }
  .figure-link:hover { transform: none; }
}
