/* Jinho Kang — personal site
   Layout: a fixed identity column (portrait, theme map, contact) on the page color, beside
   the work, which scrolls on its own lighter panel.
   Each kind of content has its own form: numbers for the summary, cards for projects,
   a year rail for publications, two time lines for background, plates for awards.
   One type family, Geist, in two cuts. The four research-theme hues are the only color
   on the page, plus gold for awards. */

@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #f0f2f5;        /* the page, behind the identity column */
  --surface: #ffffff;   /* boxes that sit on the page */
  --panel: #ffffff;     /* the column that scrolls */
  --card: #f5f6f9;      /* boxes that sit on the panel */
  --ink: #0e1318;
  --ink-2: #353f4c;
  --muted: #5d6978;
  --line: #dfe3e9;
  --line-2: #c5ccd6;

  /* research themes, as tagged in the CV */
  --robustness: #2a5fe0;
  --llm-vlm: #c05708;
  --generative: #0d8560;
  --causality: #7a49d6;
  --award: #a87406;

  --accent: var(--ink);

  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c10;
    --surface: #12161c;
    --panel: #10141a;
    --card: #171c24;
    --ink: #eaeef3;
    --ink-2: #c3ccd7;
    --muted: #8a96a6;
    --line: #222933;
    --line-2: #323b48;
    --robustness: #7ca8ff;
    --llm-vlm: #ffa25a;
    --generative: #4dd2a2;
    --causality: #b89dff;
    --award: #e7b84a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0c10;
  --surface: #12161c;
  --panel: #10141a;
  --card: #171c24;
  --ink: #eaeef3;
  --ink-2: #c3ccd7;
  --muted: #8a96a6;
  --line: #222933;
  --line-2: #323b48;
  --robustness: #7ca8ff;
  --llm-vlm: #ffa25a;
  --generative: #4dd2a2;
  --causality: #b89dff;
  --award: #e7b84a;
  color-scheme: dark;
}

[data-theme="robustness"], [data-theme-key="robustness"] { --c: var(--robustness); }
[data-theme="llm-vlm"], [data-theme-key="llm-vlm"] { --c: var(--llm-vlm); }
[data-theme="generative"], [data-theme-key="generative"] { --c: var(--generative); }
[data-theme="causality"], [data-theme-key="causality"] { --c: var(--causality); }
/* an item takes the color of its first theme, and of its second when it has one */
.item[data-themes^="robustness"] { --c: var(--robustness); }
.item[data-themes^="llm-vlm"] { --c: var(--llm-vlm); }
.item[data-themes^="generative"] { --c: var(--generative); }
.item[data-themes^="causality"] { --c: var(--causality); }
.item { --c2: var(--c); }
.item[data-themes$=" llm-vlm"] { --c2: var(--llm-vlm); }
.item[data-themes$=" generative"] { --c2: var(--generative); }
.item[data-themes$=" causality"] { --c2: var(--causality); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
html.is-ready { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.nb { white-space: nowrap; }
@media (max-width: 36rem) { .br-wide { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--line-2); transition: color .15s, text-decoration-color .15s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
html[data-lens] { --accent: var(--lens); }

/* theme switch: cross-fade (see the toggle in site.js) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease-in-out; }
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, stroke .45s ease, box-shadow .45s ease !important;
}
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .6rem .9rem; background: var(--ink); color: var(--bg); border-radius: .5rem; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ───────── page frame ───────── */
.page {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 47rem);
  justify-content: center;
  --gap: clamp(2.5rem, 6vw, 6rem);
  column-gap: var(--gap);
  max-width: 86rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ───────── identity column ───────── */
.side { position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; min-width: 0; }
.side__inner { display: flex; flex-direction: column; justify-content: flex-start; gap: 1.6rem; height: 100%; padding-block: clamp(1.75rem, 6vh, 4rem) clamp(1.25rem, 4vh, 2.25rem); }

.id { position: relative; display: flex; flex-direction: column; gap: 1.3rem; }
.id__photo { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6.75px var(--ink); }
.id__name { font: 640 clamp(2.6rem, 3.7vw, 3.15rem)/.98 var(--font-body); letter-spacing: -.045em; }
.id__role { margin-top: .9rem; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }

.theme { position: absolute; top: .2rem; right: 0; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-2); cursor: pointer; transition: color .15s, border-color .15s; }
.theme:hover { color: var(--ink); border-color: var(--line-2); }
.theme svg { grid-area: 1 / 1; width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme__sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme__sun { display: block; } :root:not([data-theme="light"]) .theme__moon { display: none; } }
:root[data-theme="dark"] .theme__sun { display: block; }
:root[data-theme="dark"] .theme__moon { display: none; }
.no-js .theme { display: none; }

/* theme map */
.map[hidden] { display: none; }
.map__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 1.35rem; margin-bottom: .45rem; }
.map__title { font: 500 .72rem/1 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.map__clear { padding: 0; border: 0; background: none; color: var(--accent); font-size: .84rem; font-weight: 520; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.map__clear[hidden] { display: none; }
.map__field { position: relative; overflow: hidden; aspect-ratio: 100 / 70; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
/* the figure keeps its own proportions; in a flatter field it is centered and the regions run on to the edges */
.map__stage { position: absolute; top: 0; bottom: 0; left: 50%; aspect-ratio: 100 / 70; transform: translateX(-50%); }
.map__zones { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.zone { stroke: var(--c); stroke-width: 1px; stroke-opacity: .24; vector-effect: non-scaling-stroke; transition: opacity .25s; }
.zone--main { stroke-opacity: .46; }
.zstop { stop-color: var(--c); }
.zstop--0 { stop-opacity: .12; }
.zstop--1 { stop-opacity: .03; }
.zgrad--main .zstop--0 { stop-opacity: .2; }
.zgrad--main .zstop--1 { stop-opacity: .055; }
html[data-lens] .zone:not(.is-on) { opacity: .3; }
.map__dots { position: absolute; inset: 0; }
.dot {
  position: absolute; left: var(--x); top: var(--y);
  width: .8rem; height: .8rem; margin: -.4rem 0 0 -.4rem;
  border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 2px var(--surface);
  cursor: pointer;
  transition: left 1s var(--ease), top 1s var(--ease), transform .18s var(--ease), opacity .25s;
  transition-delay: calc(var(--i) * 26ms), calc(var(--i) * 26ms), 0s, 0s;
}
.dot--two { background: linear-gradient(115deg, var(--c) 50%, var(--c2) 50%); }
.dot[data-kind="project"] { width: .62rem; height: .62rem; margin: -.31rem 0 0 -.31rem; background: var(--surface); box-shadow: inset 0 0 0 2px var(--c), 0 0 0 2px var(--surface); }
.dot--two[data-kind="project"] { background: var(--surface); box-shadow: none; border: 2px solid var(--c); border-right-color: var(--c2); border-bottom-color: var(--c2); transform: rotate(-20deg); }
.dot::after { content: ""; position: absolute; inset: -.45rem; border-radius: 50%; }
.dot:hover, .dot.is-linked { transform: scale(1.6); z-index: 2; }
.dot--two[data-kind="project"]:hover, .dot--two[data-kind="project"].is-linked { transform: rotate(-20deg) scale(1.6); }
.dot.is-dim { opacity: .14; }
.map.is-collapsed .dot { left: 50%; top: 50%; }

.map__theme {
  position: absolute; z-index: 3; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .6rem .28rem .5rem; border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent); color: var(--ink-2);   /* keeps a label readable where an outline runs behind it */
  font: 450 .72rem/1.2 var(--font-mono); letter-spacing: .005em; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s, opacity .2s;
}
.map__theme::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: var(--c); }
.map__theme span { color: var(--muted); font-weight: 400; }
.map__theme--main { color: var(--ink); font-weight: 620; font-size: .76rem; }   /* the two main themes read a step stronger */
.map__theme--main::before { width: .5rem; height: .5rem; }
.map__theme:hover { background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--ink); }
.map__theme[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 15%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); color: var(--ink); }
html[data-lens] .map__theme:not(.is-on) { opacity: .5; }

.map__caption { margin-top: .6rem; color: var(--muted); font-size: .84rem; line-height: 1.5; text-wrap: pretty; }
.map__readout { color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.map__readout b { margin-right: .5rem; color: var(--muted); font: 500 .72rem/1 var(--font-mono); letter-spacing: .01em; }
.map:not(.is-reading) .map__readout { display: none; }
.map.is-reading .map__default { display: none; }
.key { display: inline-block; vertical-align: .02em; margin-inline: .08rem; border-radius: 50%; }
.key--pub { width: .5rem; height: .5rem; background: var(--ink-2); }
.key--proj { width: .46rem; height: .46rem; box-shadow: inset 0 0 0 1.5px var(--ink-2); }

/* ── "Robust to": four short animations, played once through. The resting style of every part
      is its END state, so with reduced motion (no animation) each scene shows its outcome. ── */
.shifts { --sh-dur: 1s; --sh-delay: .3s; --sh-cycle: 3.5s; --train: var(--robustness); --shift: #d6453d; }
:root[data-theme="dark"] .shifts { --shift: #ff7b72; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shifts { --shift: #ff7b72; } }
.shifts .map__title { margin-bottom: .55rem; }
.sh-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.shifts__card { display: grid; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
/* scenes and the overview share one cell, so the card keeps one height while they swap */
.shift, .shifts__all { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s .35s; }
.shift { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr); align-items: center; gap: .3rem .85rem; padding: .55rem .9rem .55rem .55rem; }
.shift.is-on, .shifts__all.is-on { visibility: visible; opacity: 1; transition: opacity .35s ease, visibility 0s; }
.no-js .shift:first-child { visibility: visible; opacity: 1; }
.shifts__all { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: .3rem; padding: .5rem .45rem; }
.ov-tile { display: grid; justify-items: center; gap: .4rem; padding: .35rem .15rem .4rem; border: 0; border-radius: .7rem; background: none; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.ov-tile:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ov-tile svg { width: 100%; max-width: 5rem; height: auto; overflow: visible; }
.ov-tile span { font-size: .76rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.shifts__all.is-on .ov-tile { animation: sh-fade-in .45s ease both; }
.shifts__all.is-on .ov-tile:nth-child(2) { animation-delay: .08s; } .shifts__all.is-on .ov-tile:nth-child(3) { animation-delay: .16s; } .shifts__all.is-on .ov-tile:nth-child(4) { animation-delay: .24s; }
.ov-a { fill: color-mix(in srgb, var(--train) 8%, transparent); stroke: var(--train); stroke-width: 1.3; }
.ov-b { fill: color-mix(in srgb, var(--shift) 8%, transparent); stroke: var(--shift); stroke-width: 1.3; }
.ov-fill-a { fill: var(--train); }
.ov-fill-b { fill: var(--shift); }
.ov-line-b { fill: none; stroke: var(--shift); stroke-width: 1.8; }
.ov-soft { filter: url(#sh-softblur); opacity: .75; }
.ov-noise circle { fill: var(--ink-2); opacity: .7; }
.ov-dash { fill: none; stroke: var(--shift); stroke-width: 1.3; stroke-dasharray: 2.4 1.6; }
.ov-q { fill: var(--shift); font: 800 8px/1 var(--font-body); text-anchor: middle; }
.ov-arrow { fill: none; stroke: var(--muted); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.shift__art { display: grid; justify-items: center; gap: .35rem; }
.shift__art svg { width: 100%; height: auto; display: block; overflow: visible; }
.shift__phase { position: relative; display: grid; justify-items: start; margin-bottom: .4rem; font: 650 .74rem/1 var(--font-body); letter-spacing: .01em; }
.shift__phase > span { grid-area: 1 / 1; justify-self: start; padding: .2rem .55rem; border-radius: 999px; }
.ph-a { color: var(--train); background: color-mix(in srgb, var(--train) 12%, transparent); opacity: 0; }
.ph-b { color: var(--shift); background: color-mix(in srgb, var(--shift) 12%, transparent); }
.shift figcaption b { display: block; font-size: .95rem; font-weight: 620; letter-spacing: -.015em; }
.shift__line { display: block; margin-top: .15rem; color: var(--ink-2); font-size: .84rem; line-height: 1.4; text-wrap: balance; }
.shifts__tabs { display: flex; justify-content: space-between; gap: .2rem; margin-top: .5rem; }
.no-js .shifts__tabs { display: none; }
.shifts__tab { position: relative; padding: .3rem .1rem .4rem; border: 0; background: none; color: var(--muted); font: 500 .74rem/1.2 var(--font-mono); cursor: pointer; white-space: nowrap; }
.shifts__tab:hover, .shifts__tab.is-on { color: var(--ink); }
.shifts__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--line); }
.shifts__tab.is-on::after { background: var(--ink); transform-origin: left; }
.shifts.is-auto .shifts__tab.is-on::after { animation: sh-progress var(--sh-cycle) linear both; }
@keyframes sh-progress { from { transform: scaleX(0); } to { transform: none; } }

.shifts.is-waiting .shift.is-on, .shifts.is-waiting .shift.is-on *, .shifts.is-waiting .shifts__tab::after { animation-play-state: paused !important; }

/* art */
.sh-frame { fill: none; stroke: var(--shift); stroke-width: 2.6; }
.sh-bg { fill: var(--card); }
.sh-box { fill: none; stroke: var(--ink-2); stroke-width: 1; opacity: .7; }
.sh-box--new { stroke: var(--shift); stroke-width: 1.4; stroke-dasharray: 3.2 2.2; opacity: 1; }
.sh-q circle { fill: var(--shift); }
.sh-q text { fill: #fff; font: 800 11px/1 var(--font-body); text-anchor: middle; }
.sl-burst { fill: none; stroke: var(--shift); stroke-width: 1.2; opacity: 0; }
.sh-a, .sh-b, .sh-new, .sl-old, .sl-new, .sl-burst { transform-box: fill-box; transform-origin: center; }

/* end states */
.shift--domain .sh-a { opacity: 0; }
.sl-old { opacity: 0; transform: scale(0); }

/* motion, only in the scene that is on */
.shift.is-on .sh-frame { animation: sh-frame var(--sh-dur) var(--sh-delay) cubic-bezier(.65, 0, .35, 1) both; }
.shift.is-on .ph-a { animation: sh-fade-out calc(var(--sh-dur) * .2) calc(var(--sh-delay) + var(--sh-dur) * .4) ease both; }
.shift.is-on .ph-b { animation: sh-fade-in calc(var(--sh-dur) * .2) calc(var(--sh-delay) + var(--sh-dur) * .5) ease both; }
.shift--domain.is-on .sh-a { animation: sh-fade-out var(--sh-dur) var(--sh-delay) ease-in-out both; }
.shift--domain.is-on .sh-b { animation: sh-fade-in var(--sh-dur) var(--sh-delay) ease-in-out both; }
.shift--corrupt.is-on .sh-b { animation: sh-fade-in var(--sh-dur) var(--sh-delay) ease-in-out both; }
.shift--label.is-on .sl-old { animation: sh-pop-out .32s calc(var(--sh-delay) + var(--d)) ease-in both; }
.shift--label.is-on .sl-burst { animation: sh-burst .45s calc(var(--sh-delay) + var(--d) + .22s) ease-out both; }
.shift--label.is-on .sl-new { animation: sh-pop-in .42s calc(var(--sh-delay) + var(--d) + .26s) cubic-bezier(.34, 1.7, .64, 1) both; }
/* the two known classes start in the middle and make room as the car arrives */
.shift--open.is-on .sh-row { animation: sh-rise .6s calc(var(--sh-delay) + .25s) cubic-bezier(.45, 0, .25, 1) both; }
.shift--open.is-on .sh-new { animation: sh-pop-in .55s calc(var(--sh-delay) + .35s) cubic-bezier(.34, 1.7, .64, 1) both; }

@keyframes sh-rise { from { transform: translateY(26px); } to { transform: none; } }
@keyframes sh-frame { from { stroke: var(--train); } to { stroke: var(--shift); } }
@keyframes sh-slide-out { from { transform: none; opacity: 1; } to { transform: translateX(-40px); opacity: 0; } }
@keyframes sh-slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sh-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sh-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sh-pop-out { from { transform: none; opacity: 1; } 40% { transform: scale(1.15); opacity: 1; } to { transform: scale(0); opacity: 0; } }
@keyframes sh-pop-in { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sh-burst { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }

/* section links and contact */
.side__foot { display: grid; gap: 1.05rem; margin-top: auto; }
.toc { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .9rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .93rem; }
.toc a { color: var(--muted); text-decoration: none; padding-block: .1rem; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); box-shadow: 0 1.5px 0 var(--accent); }

.contact { display: grid; gap: .7rem; }
.cv { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.05rem; border-radius: .85rem; background: var(--ink); color: var(--bg); font-size: 1.02rem; font-weight: 560; text-decoration: none; transition: transform .18s var(--ease), background-color .15s; }
.cv:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.cv:hover .cv__meta svg { transform: translateY(2px); }
.cv__meta { display: inline-flex; align-items: center; gap: .45rem; font: 500 .74rem/1 var(--font-mono); letter-spacing: .04em; opacity: .85; }
.cv__meta svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s var(--ease); }

.mail { display: flex; align-items: center; gap: .6rem; padding: .5rem .5rem .5rem .95rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); }
.mail > svg { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mail a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 480 .92rem/1.4 var(--font-mono); letter-spacing: -.01em; text-decoration-color: transparent; }
.mail a:hover { color: var(--accent); text-decoration-color: currentColor; }
.copy { position: relative; width: 2.1rem; height: 2.1rem; flex: none; display: grid; place-items: center; border: 0; border-radius: .6rem; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
.copy:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.copy svg { grid-area: 1 / 1; width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: opacity .15s, transform .2s var(--ease); }
.copy__done { opacity: 0; transform: scale(.6); stroke-width: 2.2 !important; }
.copy.is-done { color: var(--generative); }
.copy.is-done .copy__icon { opacity: 0; transform: scale(.6); }
.copy.is-done .copy__done { opacity: 1; transform: none; }
.no-js .copy { display: none; }

.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.socials a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .58rem .4rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); color: var(--ink-2); font-size: .94rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s; }
.socials a:hover { color: var(--ink); border-color: var(--line-2); }
.socials svg { width: 1.05rem; height: 1.05rem; fill: currentColor; flex: none; }

/* ───────── content column ───────── */
.main {
  min-width: 0; padding-block: clamp(1.75rem, 6vh, 4rem) 3rem;
  /* the panel: painted from half a gutter left of the column out to the edge of the window, with a hairline on its left */
  border-image: linear-gradient(to right, var(--line) 1px, var(--panel) 1px) fill 0 / 0 / 0 100vmax 0 calc(var(--gap) / 2);
}

/* About: the statement, then the numbers */
.hero__lead { font: 600 clamp(1.85rem, 2.8vw, 2.55rem)/1.12 var(--font-body); letter-spacing: -.035em; text-wrap: balance; }
/* the two main themes carry their color in the opening lines */
.hero__lead em { font-style: normal; color: var(--robustness); }
.hero__body em { font-style: normal; font-weight: 500; color: var(--llm-vlm); }
.hero__body { display: grid; gap: .9rem; margin-top: 1.35rem; max-width: 43rem; color: var(--ink-2); font-size: 1.08rem; line-height: 1.62; text-wrap: pretty; }
.hero__body p:first-child { color: var(--ink); font-size: 1.2rem; line-height: 1.5; }
.hero__body strong { font-weight: 500; color: var(--ink); }
.hero__body a { color: var(--ink); font-weight: 500; }
.hero__body a:hover { color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.1rem; border-block: 1px solid var(--line); }
.stat { position: relative; display: flex; flex-direction: column; padding: 1.15rem 1rem 1.2rem 1.1rem; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__n { font: 620 3.1rem/.95 var(--font-body); letter-spacing: -.055em; font-variant-numeric: lining-nums tabular-nums; }
.stat__label { margin-top: .7rem; font-size: .95rem; font-weight: 560; }
.stat__label a { text-decoration-color: transparent; }
.stat__label a::before { content: ""; position: absolute; inset: 0; }   /* the whole tile is the link */
.stat:hover .stat__label a { text-decoration-color: currentColor; }
.stat__n { transition: color .15s; }
.stat__plus { margin-left: .04em; color: var(--muted); font-weight: 500; }
.stat__sub { margin-top: .12rem; color: var(--muted); font-size: .8rem; line-height: 1.4; text-wrap: balance; }


/* sections */
.sec { margin-top: 3.2rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
/* the numbers already end on a hairline, so the first section follows them directly */
.hero + .sec { margin-top: 0; padding-top: 2.1rem; border-top: 0; }
.sec__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; font: 640 1.75rem/1.1 var(--font-body); letter-spacing: -.035em; }
.sec__count, .sec__aside { font: 450 .8rem/1 var(--font-mono); letter-spacing: .01em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* shared pieces of an item */
.item { position: relative; scroll-margin-top: 1.5rem; transition: opacity .25s, background-color .18s, border-color .18s, transform .18s var(--ease); }
.item.is-dim { opacity: .28; }
.item.is-dim:hover, .item.is-dim:focus-within { opacity: 1; }
.item[hidden] { display: none; }
.item__title { font: 560 1.04rem/1.36 var(--font-body); letter-spacing: -.008em; text-wrap: balance; }
.item__authors { margin-top: .34rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.item__authors sup { font-size: .7em; line-height: 0; }
.me { color: var(--ink); font-weight: 600; }
.item__where { margin-top: .2rem; color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.item__aside { margin-left: .45rem; color: var(--muted); font: 450 .72rem/1 var(--font-mono); white-space: nowrap; }
.item__desc { margin-top: .4rem; color: var(--ink-2); font-size: .93rem; line-height: 1.55; text-wrap: pretty; }
.item__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin-top: .65rem; }
.tags { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  display: inline-flex; align-items: center; gap: .36rem;
  padding: .2rem .55rem .2rem .46rem; border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 11%, transparent); color: color-mix(in srgb, var(--c) 82%, var(--ink));
  font: 500 .7rem/1.25 var(--font-mono); letter-spacing: .005em; cursor: pointer;
  transition: background-color .15s, box-shadow .15s;
}
.tag::before { content: ""; width: .38rem; height: .38rem; border-radius: 50%; background: var(--c); }
.tag:hover { background: color-mix(in srgb, var(--c) 20%, transparent); }
.tag[aria-pressed="true"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.no-js .tag { cursor: default; }
.lnk { margin-left: .35rem; color: var(--ink-2); font: 500 .78rem/1.25 var(--font-mono); white-space: nowrap; text-decoration-color: transparent; }
.tag + .lnk { margin-left: .5rem; }
.lnk:hover { color: var(--accent); text-decoration-color: currentColor; }
.lnk::after {
  content: ""; display: inline-block; width: .62em; height: .62em; margin-left: .28em; vertical-align: .02em;
  background: currentColor; opacity: .75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9 9 3M4.2 3H9v4.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9 9 3M4.2 3H9v4.8'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s var(--ease);
}
.lnk:hover::after { transform: translate(1.5px, -1.5px); }

/* cards: ongoing and past projects */
.cards { display: grid; gap: .85rem; margin-top: 1.4rem; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* two columns in reading order; an entry without a description takes one row, the others two,
   so short and long cards pack without stretching a short one to the height of its neighbour */
@media (min-width: 44.01rem) {
  .cards--2 .card { grid-row: span 2; }
  .cards--2 .card:not(:has(.item__desc)) { grid-row: span 1; }
}
.card { display: flex; flex-direction: column; padding: 1.05rem 1.2rem 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--card); }
.card:hover, .card.is-linked, .card:target { border-color: color-mix(in srgb, var(--c) 60%, var(--line)); transform: translateY(-1px); }
.card__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem .75rem; margin-bottom: .6rem; color: var(--muted); font: 450 .76rem/1.3 var(--font-mono); font-variant-numeric: tabular-nums; }
.card .item__foot { margin-top: auto; padding-top: .8rem; }
.card--live { padding: 1.15rem 1.3rem 1.25rem; border-left: 3px solid var(--c); }
.card--live:hover, .card--live.is-linked, .card--live:target { border-left-color: var(--c); }
.card--live .item__title { font-size: 1.14rem; }
.card--live .item__desc { max-width: 40rem; }
.live { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); }
.live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 .5rem transparent; } }

/* publications: controls, then a rail per year or type */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .7rem; margin-top: 1.25rem; }
.no-js .controls .seg, .no-js .controls .toggle { display: none; }
.seg { display: inline-flex; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg button { padding: .36rem .9rem; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: .86rem; font-weight: 520; cursor: pointer; transition: background-color .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.toggle { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .86rem; font-weight: 520; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.toggle::before { content: ""; width: .85rem; height: .85rem; border-radius: .25rem; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .15s, box-shadow .15s; }
.toggle:hover { border-color: var(--line-2); color: var(--ink); }
.toggle[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.toggle[aria-pressed="true"]::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.6 6.3 2.3 2.3 4.5-5'/%3E%3C/svg%3E") center / .7rem no-repeat; box-shadow: none; }
:root[data-theme="dark"] .toggle[aria-pressed="true"]::before { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toggle[aria-pressed="true"]::before { filter: invert(1); } }
.pub__note { margin-top: 1.4rem; padding-left: 6.7rem; color: var(--muted); font-size: .84rem; }
.pubgroups[data-view="type"] ~ .pub__note { padding-left: 8.2rem; }
.pub__note sup { font-size: .7em; line-height: 0; }

.pubgroups { transition: opacity .16s; }
.pubgroups.is-switching { opacity: 0; }
.pubgroup { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); column-gap: 1.1rem; margin-top: 1.9rem; scroll-margin-top: 1.5rem; }
.pubgroups[data-view="type"] .pubgroup { grid-template-columns: 7.1rem minmax(0, 1fr); }
.pubgroup[hidden] { display: none; }
.pubgroup__label { position: sticky; top: 1.5rem; align-self: start; font: 640 1.75rem/1 var(--font-body); letter-spacing: -.05em; font-variant-numeric: lining-nums tabular-nums; }
.pubgroup__label--text { font-size: 1.12rem; line-height: 1.15; letter-spacing: -.025em; padding-top: .32rem; }
.pubgroup__n { display: block; margin-top: .45rem; color: var(--muted); font: 450 .72rem/1.2 var(--font-mono); letter-spacing: .01em; }
.pubgroup .items { border-left: 1px solid var(--line-2); }
.pub { padding: .15rem .9rem 1.55rem 1.5rem; }
.pub:last-child { padding-bottom: .4rem; }
.pub::before { content: ""; position: absolute; left: -.36rem; top: .42rem; width: .68rem; height: .68rem; border-radius: 50%; background: linear-gradient(115deg, var(--c) 50%, var(--c2) 50%); box-shadow: 0 0 0 4px var(--panel); transition: transform .18s var(--ease); }
.pub:hover::before, .pub.is-linked::before, .pub:target::before { transform: scale(1.5); }
.pub.is-linked .item__title, .pub:target .item__title { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.pub__head { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-bottom: .5rem; }
.venue { padding: .22rem .55rem; border-radius: .4rem; background: var(--ink); color: var(--bg); font: 560 .72rem/1.25 var(--font-mono); letter-spacing: .015em; }
.venue--soft { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.pub__type { color: var(--muted); font: 450 .74rem/1.25 var(--font-mono); }
.award-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem .2rem .45rem; border-radius: 999px; background: color-mix(in srgb, var(--award) 14%, transparent); color: var(--ink); font-size: .78rem; font-weight: 540; }
.award-pill svg { width: .85rem; height: .85rem; fill: var(--award); }

/* background: two time lines */
.bg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.75rem; margin-top: 1.5rem; }
.bg__title { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.3rem; font: 600 .95rem/1 var(--font-body); letter-spacing: -.01em; color: var(--ink); }
.bg__title svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tl { margin-left: 1.05rem; border-left: 1px solid var(--line-2); }
.tl li { position: relative; padding: .2rem 0 1.6rem 2.1rem; }
.tl li:last-child { padding-bottom: .2rem; }
.tl__icon { position: absolute; left: -1.05rem; top: 0; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--line-2), 0 0 0 4px var(--panel); color: var(--ink-2); }
.tl__icon svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tl li.is-now .tl__icon { background: var(--ink); color: var(--panel); box-shadow: 0 0 0 4px var(--panel), 0 0 0 6px color-mix(in srgb, var(--ink) 14%, transparent); }
.tl__when { color: var(--muted); font: 450 .76rem/1.4 var(--font-mono); font-variant-numeric: tabular-nums; }
.tl__title { margin-top: .22rem; font: 560 1.04rem/1.35 var(--font-body); letter-spacing: -.008em; }
.tl__org { margin-top: .15rem; color: var(--ink-2); font-size: .93rem; line-height: 1.45; }
.tl__note { margin-top: .2rem; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.tl a { color: inherit; }
.tl a:hover { color: var(--accent); }
.tl__note a { color: var(--ink-2); }

/* awards */
.awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1.4rem; }
.award { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .95rem; padding: 1.15rem 1.2rem 1.2rem; border: 1px solid color-mix(in srgb, var(--award) 32%, var(--line)); border-radius: 1rem; background: color-mix(in srgb, var(--award) 7%, var(--surface)); }
.award__icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--award) 20%, transparent); }
.award__icon svg { width: 1.25rem; height: 1.25rem; fill: var(--award); }
.award__when { color: var(--muted); font: 450 .76rem/1.4 var(--font-mono); }
.award__title { margin-top: .15rem; font: 560 1.04rem/1.35 var(--font-body); letter-spacing: -.008em; text-wrap: balance; }
.award__org { margin-top: .2rem; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.award__note { margin-top: .3rem; color: var(--muted); font-size: .86rem; line-height: 1.5; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* ───────── short viewports: keep the identity column on one screen ───────── */
@media (min-width: 64.01rem) and (max-height: 72rem) {
  .map__caption { display: none; }
  .map__field { aspect-ratio: 100 / 62; }
  .side__inner { gap: 1.3rem; }
}
@media (min-width: 64.01rem) and (max-height: 66rem) {
  .side__inner { gap: 1.05rem; }
  .shift { grid-template-columns: 6.4rem minmax(0, 1fr); padding-block: .4rem; }
  .shift__art { gap: .25rem; }
  .shifts__tabs { margin-top: .3rem; }
}
@media (min-width: 64.01rem) and (max-height: 62rem) {
  .side__inner { padding-block: 2rem 1.3rem; gap: 1.2rem; }
  .id { gap: 1rem; }
  .id__photo { width: 4.2rem; height: 4.2rem; }
  .id__name { font-size: 2.8rem; }
  .id__role { margin-top: .6rem; font-size: .95rem; }
  .map__field { aspect-ratio: 100 / 60; }
  .map__caption { display: none; }
  .side__foot { gap: .8rem; }
  .toc { padding-top: .75rem; font-size: .9rem; }
  .contact { gap: .5rem; }
  .cv { padding-block: .66rem; }
  .socials a { padding-block: .46rem; }
  .mail { padding-block: .3rem; }
  .main { padding-top: 2rem; }
}
@media (min-width: 64.01rem) and (max-height: 53rem) {
  .toc { display: none; }
}
@media (min-width: 64.01rem) and (max-height: 56.5rem) {
  .side__inner { padding-block: 1.5rem 1.1rem; gap: 1rem; }
  .id { flex-direction: row; align-items: center; }
  .id__photo { width: 3.7rem; height: 3.7rem; }
  .id__name { font-size: 2.3rem; }
  .id__role { margin-top: .4rem; font-size: .87rem; }
  .theme { top: 0; }
  .main { padding-top: 1.6rem; }
}
@media (min-width: 64.01rem) and (max-height: 48rem) {
  .toc { display: none; }
  .map__field { aspect-ratio: 100 / 54; }
}
@media (min-width: 64.01rem) and (max-height: 46rem) {
  .shifts { display: none; }
}
@media (min-width: 64.01rem) and (max-height: 42rem) {
}
@media (min-width: 64.01rem) and (max-height: 35rem) {
  .side { position: static; height: auto; }
  .side__inner { height: auto; }
}

/* ───────── one column ───────── */
@media (max-width: 64rem) {
  .page { grid-template-columns: minmax(0, 47rem); }
  .side { position: static; height: auto; }
  .side__inner { height: auto; gap: 1.6rem; padding-block: clamp(1.75rem, 6vw, 3.25rem) 2.4rem; }
  .id { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; padding-right: 3rem; }
  .id__photo { width: 5.25rem; height: 5.25rem; flex: none; }
  .id__name { font-size: clamp(2.2rem, 8vw, 3rem); }
  .id__role { margin-top: .55rem; font-size: .95rem; }
  .map, .shifts, .side__foot { max-width: 31rem; }
  .toc { display: none; }
  /* stacked: the panel spans the window and starts with a hairline */
  .main { padding-top: 2.75rem; border-image: linear-gradient(var(--line) 1px, var(--panel) 1px) fill 0 / 0 / 0 100vmax; }
}
@media (max-width: 44rem) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cards--2, .awards, .bg { grid-template-columns: minmax(0, 1fr); }
  .bg { row-gap: 2.2rem; }
}
@media (max-width: 36rem) {
  .sec { margin-top: 3.2rem; padding-top: 2.2rem; }
  .sec__title { font-size: 1.55rem; }
  .hero__body { font-size: 1.03rem; }
  .hero__body p:first-child { font-size: 1.12rem; }
  .stat__n { font-size: 2.7rem; }
  .id { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .9rem 1rem; padding-right: 0; }
  .id__text { display: contents; }
  .id__photo { width: 4.25rem; height: 4.25rem; }
  .id__name { padding-right: 3rem; }
  .id__role { grid-column: 1 / -1; margin-top: 0; font-size: 1rem; }
  .theme { top: .9rem; }
  .stat { padding-right: .3rem; }
  .pubgroup, .pubgroups[data-view="type"] .pubgroup { grid-template-columns: minmax(0, 1fr); row-gap: .9rem; }
  .pubgroup__label { position: static; display: flex; align-items: baseline; gap: .7rem; }
  .pubgroup__n { margin-top: 0; }
  .pubgroup .items { margin-left: .36rem; }
  .item__aside { display: block; margin: .25rem 0 0; }
  .pub__note { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html, html.is-ready { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}

@media print {
  :root { --bg: #fff; }
  .page { display: block; }
  .main { border-image: none; }
  .side { position: static; height: auto; }
  .map, .toc, .theme, .skip, .controls, .copy, .foot a { display: none !important; }
  .item, .award, .tl li { break-inside: avoid; }
}
