/* Geist (SIL Open Font License), variable weight 100–900, self-hosted. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-raised: #ffffff;
  --surface: #f4f4f5;
  --surface-2: #ebebee;
  --line: #e6e6e9;
  --line-strong: #d4d4d9;
  --text: #0b0b0c;
  --text-2: #3c3c43;
  --muted: #6b6b75;
  --accent: #f0532d;
  --accent-ink: #cc3d18;
  --accent-soft: #feede7;
  --header-bg: rgba(255, 255, 255, .78);
  --dot: rgba(11, 11, 12, .11);
  --glow-1: rgba(240, 83, 45, .16);
  --glow-2: rgba(84, 112, 255, .11);
  --shadow-sm: 0 1px 2px rgba(11, 11, 12, .06);
  --shadow-md: 0 12px 32px -14px rgba(11, 11, 12, .2);
  --shadow-lg: 0 40px 80px -36px rgba(11, 11, 12, .38);
  --media-shadow: 0 0 0 1px rgba(11, 11, 12, .06), 0 20px 44px -24px rgba(11, 11, 12, .45);
  --panel: #0b0b0c;
  --panel-line: transparent;
  --on-panel: #f5f5f6;
  --on-panel-muted: #a3a3ad;
  --on-panel-line: rgba(255, 255, 255, .14);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1200px;
  --gutter: 32px;
  --header-h: 68px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-raised: #131316;
  --surface: #141417;
  --surface-2: #1d1d21;
  --line: #222227;
  --line-strong: #313138;
  --text: #f4f4f5;
  --text-2: #cfcfd6;
  --muted: #9b9ba6;
  --accent: #ff6a45;
  --accent-ink: #ff8b6c;
  --accent-soft: rgba(255, 106, 69, .14);
  --header-bg: rgba(10, 10, 11, .72);
  --dot: rgba(255, 255, 255, .08);
  --glow-1: rgba(255, 106, 69, .15);
  --glow-2: rgba(92, 120, 255, .13);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 12px 32px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 80px -36px rgba(0, 0, 0, .9);
  --media-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 44px -24px rgba(0, 0, 0, .9);
  --panel: #131316;
  --panel-line: #26262c;
  --on-panel: #f4f4f5;
  --on-panel-muted: #a3a3ad;
  --on-panel-line: rgba(255, 255, 255, .14);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
img, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html:not(.js) .js-only { display: none !important; }
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .25s, transform .25s var(--ease);
}
.button .icon { width: 17px; height: 17px; }
.button-large { height: 52px; padding: 0 24px; font-size: 16px; }
.button-small { height: 38px; padding: 0 16px; font-size: 15px; }
.button-small .icon { width: 15px; height: 15px; }
.button-primary { background: var(--text); color: var(--bg); }
.button-secondary { background: var(--bg-raised); color: var(--text); border-color: var(--line-strong); }
.button-light { background: #fff; color: #0b0b0c; }
.button-outline-light { color: var(--on-panel); border-color: var(--on-panel-line); }
@media (hover: hover) {
  .button-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(11, 11, 12, .5); }
  :root[data-theme="dark"] .button-primary:hover { box-shadow: 0 10px 28px -10px rgba(255, 255, 255, .25); }
  .button-secondary:hover { background: var(--surface); border-color: var(--line-strong); }
  .button-light:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(255, 255, 255, .35); }
  .button-outline-light:hover { background: rgba(255, 255, 255, .08); }
}
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  color: var(--text-2);
  transition: background-color .2s, color .2s;
}
.icon-button .icon { width: 19px; height: 19px; }
@media (hover: hover) { .icon-button:hover { background: var(--surface); color: var(--text); } }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
}
.text-link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
@media (hover: hover) {
  .text-link:hover { color: var(--accent-ink); }
  .text-link:hover .icon { transform: translate(2px, -2px); }
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.tag .icon { width: 15px; height: 15px; }
.tag-accent { background: var(--accent-soft); color: var(--accent-ink); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark { width: 30px; height: 30px; }
.brand-mark-bg { fill: var(--text); }
.brand-mark-letter { fill: none; stroke: var(--bg); stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark-dot { fill: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background-color .2s;
}
.site-nav a[aria-current="location"] { color: var(--text); background: var(--surface); }
@media (hover: hover) { .site-nav a:hover { color: var(--text); background: var(--surface); } }
.site-nav .site-nav-cv { display: none; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
.menu-toggle { display: none !important; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip; /* only sideways, so the portrait's shadow can fall past the hero */
  padding-top: calc(var(--header-h) + clamp(40px, 7vh, 88px));
}
.hero-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 46% at 80% 30%, var(--glow-1), transparent 72%),
    radial-gradient(34% 40% at 100% 0%, var(--glow-2), transparent 70%),
    radial-gradient(30% 36% at 8% 0%, var(--glow-2), transparent 72%);
}
.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(56% 62% at 66% 34%, #000 10%, transparent 78%);
  mask-image: radial-gradient(56% 62% at 66% 34%, #000 10%, transparent 78%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.announcement {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  height: 42px;
  padding: 4px 16px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color .2s, box-shadow .25s;
}
.announcement-tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.announcement-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announcement-short { display: none; }
.announcement .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .25s var(--ease); }
@media (hover: hover) {
  .announcement:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
  .announcement:hover .icon { transform: translateX(3px); }
}
.hero h1 {
  margin: 28px 0 0 -.045em;
  font-size: clamp(52px, 7vw, 108px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.hero-lead {
  max-width: 620px;
  margin-top: 28px;
  font-size: clamp(21px, 2.05vw, 27px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text-2);
}
.hero-affiliation { margin-top: 20px; font-size: 17px; color: var(--muted); }
.hero-affiliation a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
@media (hover: hover) { .hero-affiliation a:hover { color: var(--text); text-decoration-color: currentColor; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; }
.hero-social { display: flex; align-items: center; gap: 8px; margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--line); }
.social-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text-2);
  transition: background-color .2s, color .2s;
}
.social-button .icon { width: 20px; height: 20px; }
@media (hover: hover) { .social-button:hover { background: var(--surface); color: var(--text); } }

.hero-portrait { position: relative; justify-self: end; width: 100%; max-width: 460px; }
.hero-portrait::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% -8% -6% 12%;
  border-radius: 48px;
  background: linear-gradient(135deg, var(--glow-1), var(--glow-2));
  filter: blur(48px);
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
}
.portrait-frame img,
.portrait-noise { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.portrait-noise { opacity: 0; pointer-events: none; }
.portrait-frame.is-noisy .portrait-noise { opacity: 1; }
/* With JavaScript, the photo waits for its denoising intro; the delayed fade is a fallback if the script never runs. */
.js .portrait-frame img { opacity: 0; animation: portrait-fallback .6s 3s forwards; }
.js .portrait-frame.is-ready img { opacity: 1; animation: none; }
@keyframes portrait-fallback { to { opacity: 1; } }
.portrait-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .3);
  color: #0b0b0c;
  font-size: 15px;
  font-weight: 500;
}
.portrait-tag .icon { width: 16px; height: 16px; color: var(--accent-ink); }
:root[data-theme="dark"] .portrait-tag { background: rgba(20, 20, 23, .7); color: #f4f4f5; }
:root[data-theme="dark"] .portrait-tag .icon { color: var(--accent); }


@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-portrait { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.hero-rise { animation: rise .9s var(--ease) both; }
.hero-copy .hero-rise:nth-child(2) { animation-delay: .06s; }
.hero-copy .hero-rise:nth-child(3) { animation-delay: .12s; }
.hero-copy .hero-rise:nth-child(4) { animation-delay: .18s; }
.hero-copy .hero-rise:nth-child(5) { animation-delay: .24s; }
.hero-portrait.hero-rise { animation-name: rise-portrait; animation-duration: 1.1s; animation-delay: .1s; }

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(80px, 9vw, 120px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 { font-size: clamp(42px, 5.2vw, 68px); line-height: 1; letter-spacing: -0.05em; }
.section-intro { margin-top: 16px; font-size: 19px; color: var(--muted); }

/* Reveal on scroll. script.js adds .reveal-ready only when it can observe; the animation moves `translate`, so it
   never competes with the hover effects, which use `transform`. */
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; }
.reveal-ready [data-reveal].is-visible { animation: reveal-in .9s var(--ease) var(--reveal-delay, 0s) both; }
@keyframes reveal-in { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: none; } }

/* ------------------------------------------------------------------ research */
.research-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.segmented { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); }
.segmented button {
  position: relative;
  z-index: 1;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.segmented button.active { color: var(--text); }
@media (hover: hover) { .segmented button:hover { color: var(--text); } }
.segmented-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--bg-raised);
  box-shadow: 0 1px 3px rgba(11, 11, 12, .12), 0 0 0 1px var(--line);
  transition: transform .4s var(--ease), width .4s var(--ease);
}
:root[data-theme="dark"] .segmented-indicator { background: #2a2a30; box-shadow: none; }
.media-toggle { width: 46px; height: 46px; background: var(--surface); }
.media-toggle .icon { width: 17px; height: 17px; }
.play-icon { display: none; }
.previews-paused .pause-icon { display: none; }
.previews-paused .play-icon { display: block; }

.feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: 14px clamp(28px, 4vw, 56px) 14px 14px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  color: var(--on-panel);
}
.feature::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -12%;
  bottom: -55%;
  width: 70%;
  height: 130%;
  background: radial-gradient(closest-side, rgba(240, 83, 45, .34), transparent);
  filter: blur(24px);
}
.feature-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: #000; }
.feature-media video { width: 100%; height: 100%; object-fit: cover; }
.feature-expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(10, 10, 11, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: background-color .2s, transform .25s var(--ease);
}
.feature-expand .icon { width: 18px; height: 18px; }
@media (hover: hover) { .feature-expand:hover { background: rgba(10, 10, 11, .85); transform: scale(1.06); } }
.feature-body { padding-block: 24px; }
.feature .venue { color: var(--on-panel-muted); }
.feature .tag-accent { background: rgba(255, 106, 69, .16); color: #ff9a7d; }
.feature h3 { margin-top: 18px; font-size: clamp(30px, 3vw, 42px); line-height: 1.06; letter-spacing: -0.04em; }
.feature .authors { color: var(--on-panel-muted); }
.feature .authors strong { color: var(--on-panel); }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.feature-note { font-size: 15px; color: var(--on-panel-muted); }

.paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 6vw, 80px) clamp(24px, 3vw, 40px);
  margin-top: clamp(56px, 6vw, 80px);
}
.paper { display: flex; flex-direction: column; min-width: 0; }
.paper-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: clamp(18px, 2.6vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  container-type: size;
  transition: background-color .3s var(--ease);
}
.paper-media > img,
.paper-media > video {
  width: min(100cqw, 100cqh * var(--ratio, 1));
  height: auto;
  aspect-ratio: var(--ratio, 1);
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--media-shadow);
  transition: transform .7s var(--ease);
}
.media-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-6px, 6px) scale(.9);
  transition: opacity .25s, transform .35s var(--ease);
}
.media-arrow .icon { width: 17px; height: 17px; }
.paper-media:focus-visible .media-arrow { opacity: 1; transform: none; }
@media (hover: hover) {
  .paper-media:hover { background: var(--surface-2); }
  .paper-media:hover > img, .paper-media:hover > video { transform: scale(1.025); }
  .paper-media:hover .media-arrow { opacity: 1; transform: none; }
}
.paper-body { padding-top: 24px; }
.paper-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.venue { font-size: 15px; font-weight: 500; color: var(--text-2); }
.paper h3 { margin-top: 14px; font-size: clamp(21px, 1.85vw, 25px); line-height: 1.24; letter-spacing: -0.028em; }
.paper h3 a { transition: color .2s; }
@media (hover: hover) { .paper h3 a:hover { color: var(--accent-ink); } }
.authors { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.authors strong { font-weight: 600; color: var(--text); }
.paper-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.paper-links a,
.paper-links button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background-color .2s, border-color .2s;
}
.paper-links .icon { width: 14px; height: 14px; color: var(--muted); }
@media (hover: hover) { .paper-links a:hover, .paper-links button:hover { background: var(--surface); border-color: var(--muted); } }
.research-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(56px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: clamp(40px, 6vw, 96px); }
.about-bio p { font-size: 19px; line-height: 1.7; color: var(--text-2); }
.about-bio p + p { margin-top: 20px; }
.about-bio a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color .2s, text-decoration-color .2s;
}
@media (hover: hover) { .about-bio a:hover { color: var(--accent-ink); text-decoration-color: currentColor; } }
.education { padding: clamp(28px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); }
.education h3 { font-size: 21px; letter-spacing: -0.02em; }
.timeline { list-style: none; margin: 28px 0 32px; padding: 0; }
.timeline li { position: relative; display: flex; flex-direction: column; padding: 0 0 26px 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: var(--surface);
}
.timeline li:first-child::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 22px; bottom: 2px; width: 1px; background: var(--line-strong); }
.timeline-date { font-size: 14px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline strong { margin-top: 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.timeline li > span:last-child { font-size: 16px; color: var(--text-2); }

.subsection-head { margin: clamp(72px, 8vw, 104px) 0 32px; }
.subsection-head h3 { font-size: clamp(30px, 3.2vw, 40px); letter-spacing: -0.04em; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.project-image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 24px 28px 28px; }
.project-meta { font-size: 15px; font-weight: 500; color: var(--muted); }
.project h4 { margin-top: 8px; font-size: 23px; line-height: 1.25; letter-spacing: -0.03em; }
.project h4 .icon { display: inline-block; width: 18px; height: 18px; margin-left: 4px; vertical-align: -1px; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.project-body > p:not(.project-meta) { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.project .tag { margin-top: auto; }
.project-body > p:not(.project-meta) + .tag { margin-top: 20px; }
.tag-award { height: auto; min-height: 32px; padding: 5px 12px; white-space: normal; background: var(--accent-soft); color: var(--accent-ink); }
@media (hover: hover) {
  .project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
  .project:hover .project-image img { transform: scale(1.04); }
  .project:hover h4 .icon { transform: translate(2px, -2px); color: var(--text); }
}

/* ------------------------------------------------------------------ news */
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: clamp(32px, 6vw, 96px); }
.news-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.news-head h2 { font-size: clamp(42px, 5.2vw, 68px); line-height: 1; letter-spacing: -0.05em; }
.news-items { list-style: none; margin: 0; padding: 0; }
.news-items li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.news-list > .news-items > li:first-child { border-top: 0; padding-top: 6px; }
.news-items time { padding-top: 2px; font-size: 15px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-items p { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.news-items strong { color: var(--text); }
.news-items a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
@media (hover: hover) { .news-items a:hover { color: var(--accent-ink); text-decoration-color: currentColor; } }
.news-archive { border-top: 1px solid var(--line); }
.news-archive summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 4px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: background-color .2s;
}
.news-archive summary::-webkit-details-marker { display: none; }
.news-archive summary .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.news-archive[open] summary .icon { transform: rotate(180deg); }
@media (hover: hover) { .news-archive summary:hover { background: var(--surface-2); } }
.news-archive .news-items { margin-top: 14px; }

/* ------------------------------------------------------------------ contact */
.section-contact { padding-top: 0; padding-bottom: clamp(48px, 6vw, 72px); }
.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px 64px;
  padding: clamp(40px, 6vw, 80px);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  color: var(--on-panel);
}
.contact-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -20% auto auto;
  width: 70%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(240, 83, 45, .32), transparent);
  filter: blur(20px);
}
.contact-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(60% 80% at 85% 0%, #000, transparent 75%);
  mask-image: radial-gradient(60% 80% at 85% 0%, #000, transparent 75%);
}
.contact-card h2 { font-size: clamp(46px, 6.4vw, 88px); line-height: .95; letter-spacing: -0.055em; }
.contact-copy p { max-width: 460px; margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--on-panel-muted); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.contact-email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--on-panel-line);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  transition: border-color .2s;
}
.contact-email .icon { width: 22px; height: 22px; color: var(--on-panel-muted); }
@media (hover: hover) { .contact-email:hover { border-color: currentColor; } }
.contact-fallback { font-size: 16px; color: var(--on-panel-muted); }
.contact-fallback a { color: var(--on-panel); text-decoration: underline; text-underline-offset: 4px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--on-panel-line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--on-panel);
  transition: background-color .2s, border-color .2s;
}
.contact-links .icon { width: 16px; height: 16px; color: var(--on-panel-muted); }
@media (hover: hover) { .contact-links a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); } }

/* ------------------------------------------------------------------ footer */
.site-footer { padding: 8px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 15px; color: var(--muted); }
.back-to-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text-2); transition: color .2s; }
.back-to-top .icon { width: 16px; height: 16px; }
@media (hover: hover) { .back-to-top:hover { color: var(--text); } }

/* ------------------------------------------------------------------ toast & dialogs */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 28px;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .25s, transform .35s var(--ease);
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
dialog {
  width: 760px;
  max-width: calc(100% - 32px);
  max-height: 90dvh;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .5);
}
dialog::backdrop { background: rgba(8, 8, 10, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog[open] { animation: dialog-in .35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 26px; letter-spacing: -0.03em; }
.dialog-heading .icon-button { margin: -6px -6px 0 0; background: var(--surface); }
.dialog-eyebrow { margin-bottom: 6px; font-size: 15px; font-weight: 500; color: var(--accent-ink); }
.citation-dialog pre {
  margin: 0 0 20px;
  padding: 20px;
  overflow: auto;
  border-radius: 16px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.citation-dialog code { font: inherit; }
.film-dialog { width: 920px; }
.film-dialog video { width: 100%; aspect-ratio: 640 / 274; border-radius: 16px; background: #0b0b0c; }
.film-dialog-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; }
.film-dialog-footer p { font-size: 15px; color: var(--muted); }
body.dialog-open { overflow: hidden; }

/* ------------------------------------------------------------------ responsive */
@media (min-width: 1600px) {
  :root { --container: 1280px; }
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; }
  .hero-social { margin-left: 0; padding-left: 0; border-left: 0; }
  .feature { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .feature-body { padding: 8px 18px 22px; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; --header-h: 64px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .js .menu-toggle { display: inline-flex !important; }
  .js .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .25);
  }
  .js .site-nav.open { display: flex; }
  .js .site-nav a { padding: 14px 16px; font-size: 18px; color: var(--text); }
  .js .site-nav .site-nav-cv { display: block; }
  html:not(.js) .header-inner { grid-template-columns: 1fr; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-portrait { justify-self: start; max-width: 520px; }
  .portrait-frame { aspect-ratio: 1 / 1; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .news-head { position: static; }
  .contact-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .paper-grid, .project-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .header-cv { display: none; }
  .hero h1 { margin-top: 24px; }
  .hero-lead { margin-top: 22px; }
  .hero-actions { margin-top: 32px; }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-social { width: 100%; justify-content: flex-start; margin-left: -10px; }
  .announcement { gap: 10px; padding-right: 14px; }
  .announcement-long { display: none; }
  .announcement-short { display: inline; }
  .announcement-tag { padding: 0 10px; }
  .portrait-frame { border-radius: 24px; }
  .feature { border-radius: 26px; padding: 10px; }
  .feature-media { border-radius: 18px; }
  .feature-body { padding: 8px 12px 18px; }
  .paper-media { border-radius: 20px; }
  .news-items li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .project-body { padding: 20px 22px 24px; }
  .contact-card { border-radius: 26px; padding: 36px 24px; }
  .contact-email { font-size: 22px; }
  dialog { padding: 20px; border-radius: 22px; }
  .dialog-heading h2 { font-size: 22px; }
}
@media (max-width: 380px) {
  .brand > span { font-size: 16px; }
  .announcement-text { font-size: 14px; }
  .segmented button { padding: 0 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .hero-backdrop, .hero-actions, .hero-portrait, .research-controls, .js-only, .paper-media, .feature-media, .project-image, .section-contact, .site-footer, .news-archive summary { display: none !important; }
  body { background: #fff; color: #111; }
  .hero { padding-top: 0; }
  .hero-grid, .paper-grid, .about-grid, .project-grid, .news-grid, .feature { display: block; }
  .feature { padding: 0; background: none; color: #111; }
  .feature .authors { color: #333; }
  .section { padding-block: 24px; }
  .paper { break-inside: avoid; margin-bottom: 20px; }
  .reveal-ready [data-reveal]:not(.is-visible) { opacity: 1; }
  .paper-links a[href]::after { content: " (" attr(href) ")"; font-size: 14px; overflow-wrap: anywhere; }
}
