/* Trial B, "the same page, finer": loaded after style.css on the refine-b branch. Same structure and words;
   a new typeface, a calmer palette with one accent, quieter list marks, steadier spacing, and entrances that ease in. */
@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-display: swap; src: url("fonts/hanken-grotesk.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-style: italic; font-display: swap; src: url("fonts/hanken-grotesk-italic.woff2") format("woff2"); }

:root { --sans: "Hanken Grotesk", Lato, system-ui, sans-serif; --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --ink: #23262b; --strong: #0d0e10; --ink-2: #4d535c; --ink-3: #6a707a; --nav: #16181b; --link: #2456c7; --head: #0d0e10; --line: #e7e9ec; --rule: #c9cdd3;
  --chip: rgb(15 23 42 / 0.045); --chip-2: rgb(36 86 199 / 0.09); --tile: #fff; }
:root[data-theme="dark"] { --bg: #17191c; --ink: #cfd3d9; --strong: #f4f5f6; --ink-2: #aab0b9; --ink-3: #8f95a0; --nav: #e6e8eb; --link: #8fb4ff; --head: #f4f5f6; --line: #2b2f35; --rule: #4a4f57;
  --chip: rgb(255 255 255 / 0.06); --chip-2: rgb(143 180 255 / 0.14); --tile: #eef0f2; }

html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: -0.003em; font-weight: 430; -webkit-font-smoothing: auto; text-rendering: optimizeLegibility; }
::selection { background: var(--chip-2); }
main { width: min(1040px, calc(100% - 56px)); }
b, h1, h3 { font-weight: 650; }
a { transition: color 0.2s var(--ease); }

/* the bar */
.top { height: 60px; padding: 0 22px 0 26px; }
.top a, .top button { font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: -0.005em; }
.brand { gap: 12px; font-size: 16.5px !important; font-weight: 650 !important; letter-spacing: -0.015em !important; }
.brand img { width: 34px; height: 34px; }
.navin > a, .drop > button { padding: 6px 12px; color: var(--ink-2); transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.navin > a:hover, .drop:hover > button, .drop:focus-within > button, .top [aria-current], .top .here { color: var(--strong); }
.top [aria-current], .top .here { font-weight: 600; }
.drop ul { border-radius: 14px; }
.drop li a { color: var(--ink); font-weight: 450; }
.theme { background: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease); }
.theme:hover { background: var(--chip); }

/* who */
.intro { align-items: center; padding: 44px 0 52px; }
.intro .pic { grid-column: 1 / 4; padding: 0 28px 0 0; }
.intro .pic img { border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgb(15 23 42 / 0.28); }
.row.intro > .txt { grid-column: 4 / 13; padding: 0 0 0 20px; }
h1 { margin-top: 0; font-size: clamp(34px, 4.4vw, 46px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; }
.role { margin-top: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.role:first-of-type { margin-top: 14px; color: var(--ink); font-weight: 500; }
.rule { display: none; }
.say { margin-top: 22px; font-size: 19px; line-height: 1.45; letter-spacing: -0.012em; color: var(--strong); text-wrap: balance; }
.about { margin-top: 10px; max-width: 40rem; font-size: 15px; line-height: 1.65; }
.mail { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.social { gap: 10px; margin: 16px 0 0 -2px; }
.social a { width: 40px; height: 40px; background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease); }
.social svg { width: 19px; height: 19px; stroke-width: 1.6; }
.social b { font-size: 12.5px; font-weight: 650; letter-spacing: 0.03em; }
/* under the pointer the disc fills with ink and the glyph turns to the page colour: nothing moves */
.social a:hover, .social a:focus-visible { background: var(--strong); box-shadow: inset 0 0 0 1px var(--strong); color: var(--bg); }
.social a::after, .ext::after { font-family: var(--sans); font-weight: 500; border-radius: 8px; }

/* section heads: plain words, no picture marks */
h2 { margin-top: 52px; padding: 0; font-size: 22px; line-height: 28px; font-weight: 650; letter-spacing: -0.02em; color: var(--strong); }
section:has(.list) h2 { margin-top: 52px; }

/* experience: each place's mark on its own small tile; labels quiet, values plain; no bullets */
.exp { gap: 40px 56px; padding: 26px 0 60px; }
.exp > li, .exp > li:nth-child(even) { grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; padding: 0; }
.exp > li > img { width: 56px; height: 56px; padding: 7px; border-radius: 14px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); object-fit: contain; }
[data-theme="dark"] .exp img[src*="aic"], [data-theme="dark"] .exp img[src*="sait"], [data-theme="dark"] .exp img[src*="sony"] { filter: none; }
[data-theme="dark"] .exp img[src*="yonsei"] { border-radius: 14px; }
.exp > li > div { padding-top: 3px; }
.exp h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 14px; font-size: 17px; line-height: 1.4; letter-spacing: -0.012em; }
.exp .org { display: block; flex-basis: 100%; margin-top: 1px; font-size: 14.5px; font-weight: 450; letter-spacing: 0; color: var(--ink-2); }
.exp .when { margin: 0; font-size: 13.5px; font-weight: 450; letter-spacing: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.exp .then { margin-top: 18px; }
.exp ul { margin-top: 6px; padding: 0; list-style: none; }
main .exp li li { margin-top: 4px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
main .exp li li:has(.k) { padding-left: 4.9rem; text-indent: -4.9rem; }   /* a second line hangs under the value, not under the label */
.exp li li .ext { text-indent: 0; }
.exp .k { display: inline-block; width: 4.9rem; text-indent: 0; font-size: 14px; color: var(--ink-3); }
.exp li li b { font-weight: 550; color: var(--ink); }

/* papers */
.pubs .row, .pubs .row.first { margin-top: 0; padding: 34px 0; }
.pubs .row.first { padding-top: 26px; }
.pubs .thumb { padding-right: 28px; }
.pubs .thumb img, .pubs iframe { border-radius: 12px; }
.pubs .thumb > a, .pubs .thumb > img, .pubs iframe { display: block; box-shadow: 0 0 0 1px var(--line); border-radius: 12px; }
.pubs .thumb > a img { display: block; }
.pubs .thumb img { transition: transform 0.7s var(--ease), filter 0.4s var(--ease); }
.pubs .txt, .pubs .first .txt { padding: 0; }
.row > .txt { padding-left: 0; }
.pubs .venue { margin-bottom: 10px; padding: 2px 10px; background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.pubs h3 { font-size: 21px; line-height: 1.28; letter-spacing: -0.018em; text-wrap: balance; }
.pubs .who { margin-top: 8px; font-size: 15px; line-height: 1.5; }
.pubs .desc { max-width: 48rem; margin-top: 12px; font-size: 16px; line-height: 1.62; color: var(--ink); }
.pubs .won { padding-left: 0; list-style: none; }
.pubs .won li { font-size: 14.5px; }
.links { gap: 6px; }
.pubs .links { margin-top: 16px; }
.links a { padding: 3px 12px 4px 10px; background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 14px; font-weight: 500; transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease); }
.links a:hover { background: var(--chip-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--link) 45%, transparent); color: var(--link); }
.links svg { opacity: 0.8; }

/* awards and reviewing: no bullets; a name and, under it, its quiet lines */
.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 56px; padding: 26px 0 60px; list-style: none; }
main .list > li { margin: 0; font-size: 16.5px; line-height: 1.4; letter-spacing: -0.008em; }
.list ul, .list ul.ink { margin-top: 5px; padding: 0; list-style: none; color: var(--ink-2); }
main .list li li { margin-top: 3px; font-size: 15px; line-height: 1.5; }
.list.wide { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 0; }
main .list.wide > li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.list.wide b { font-size: 14px; font-weight: 500; line-height: 24px; color: var(--ink-3); }
.foot { margin: 14px 0 72px 6.5rem; font-size: 13px; color: var(--ink-3); }

/* a paper's own page and the gallery take the same hand */
.paper h1 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.18; letter-spacing: -0.025em; }
.paper h2 { font-size: 20px; }
.paper .links { margin-top: 18px; }
.fig img, .fig video, .video { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.bib { border-radius: 12px; }
.gallery h1 { color: var(--strong); text-align: left; }
.shots img { border-radius: 12px; }

/* entrances: site.js marks things as they come into view; each eases up into place once, the ones beside it a beat later */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* legibility: no grey below 4.5:1 against the page, nothing thinner than regular, no text under 14 px.
   (Thin smoothing is kept for dark only, in style.css: light letters on dark render heavier.) */
.role, .about, .mail, .exp .org, .exp .when, main .exp li li, .exp .k, .pubs .who, .foot, main .list li li, .list.wide b, .fig figcaption, .paper .aff { font-weight: 450; }
.exp .when, .foot, .list.wide b, .exp .k { font-size: 14px; }
.mail { font-size: 14.5px; }
.pubs .venue { font-size: 13px; color: var(--ink); }
.social a::after, .ext::after { font-size: 13px; }

@media (max-width: 47.99rem) {
  /* the bar grows to hold the opened menu (its height is fixed only on wide screens) */
  .top { height: auto; min-height: 60px; padding: 0 12px 0 18px; }
  .brand { height: 60px; }
  .top.open { background: var(--bg); }   /* nothing shows through behind the opened menu */
  .navin > a, .drop > button { padding: 11px 14px; font-size: 16.5px; }
  .drop ul { border-radius: 0; }
  main { width: calc(100% - 40px); }
  .intro { padding: 28px 0 40px; }
  .intro .pic { max-width: 168px; }
  .row.intro > .txt { padding: 22px 0 0; }
  .say { font-size: 18px; }
  .exp { gap: 30px; }
  .exp .org { order: 1; }
  .exp .when { order: 2; flex-basis: 100%; }   /* phones: role, then place, then dates */
  .list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  main .list.wide > li { grid-template-columns: minmax(0, 1fr); }
  .foot { margin-left: 0; }
  .pubs .thumb { padding-right: 0; }
  .pubs .txt, .pubs .first .txt { padding-top: 16px; }
  .pubs h3 { font-size: 19.5px; }
  /* phones: running text at 16 px or more, secondary lines at 15 */
  .about, .pubs .desc { font-size: 16px; }
  .pubs .who, main .exp li li, main .list li li, .exp .org { font-size: 15px; }
  .role { font-size: 16.5px; }
  h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rv { opacity: 1; transform: none; } }
