/* ============================================================================
   Satyajit Puhan — site design system
   Single hand-written stylesheet. No framework, no build step.
   Zola copies static/ verbatim, so editing this file is all that is required.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
/* Gold (dark) / bronze (light) brand with cyan and violet as the supporting accents.
   Dark is the default; the light palette follows below. */
:root {
  color-scheme: dark light;

  --bg:          #080b12;
  --bg-2:        #0d111b;
  --surface:     rgba(255, 255, 255, 0.035);
  --surface-2:   rgba(255, 255, 255, 0.06);
  --surface-3:   rgba(255, 255, 255, 0.10);
  --line:        rgba(255, 255, 255, 0.10);
  --line-2:      rgba(255, 255, 255, 0.18);

  --ink:         #eef2fb;
  --ink-2:       rgba(238, 242, 251, 0.72);
  --ink-3:       rgba(238, 242, 251, 0.58);

  --accent:      #e8a444;   /* gold — primary brand */
  --on-accent:   #14100a;   /* readable text on an --accent fill */
  --accent-soft: rgba(232, 164, 68, 0.14);
  --glow:        rgba(232, 164, 68, 0.30);
  --grad:        linear-gradient(120deg, #e8a444, #f6d08a);
  --grad-soft:   linear-gradient(120deg, rgba(232,164,68,.18), rgba(246,208,138,.10));
  --cyan:        #38bdf8;
  --violet:      #a78bfa;
  --mint:        #34d399;
  --rose:        #fb7185;
  /* the three accents used for stats, the hero hadron and the research areas */
  --q-red:       var(--accent);
  --q-green:     var(--cyan);
  --q-blue:      var(--violet);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .38);
  --shadow-3: 0 24px 70px rgba(0, 0, 0, .55);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-or: "Noto Sans Oriya", "Noto Serif Oriya", var(--font-body);

  --nav-h: 68px;
  --wrap: 1180px;
  --pad: clamp(18px, 4vw, 40px);
  --gap: clamp(18px, 2.4vw, 30px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Light palette. Declared twice on purpose: once for the viewer whose OS
   asks for light and who has not chosen a theme here, and once for an
   explicit choice, so the toggle wins in both directions and the page is
   still correct with JavaScript turned off. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  --bg:        #f7f5f0;
  --bg-2:      #fffdf8;
  --surface:   rgba(40, 30, 10, 0.028);
  --surface-2: rgba(40, 30, 10, 0.05);
  --surface-3: rgba(40, 30, 10, 0.09);
  --line:      rgba(40, 30, 10, 0.11);
  --line-2:    rgba(40, 30, 10, 0.20);

  --ink:       #15181f;
  --ink-2:     rgba(21, 24, 31, 0.76);
  --ink-3:     rgba(21, 24, 31, 0.62);

  --accent:      #9a5a10;
  --on-accent:   #ffffff;
  --accent-soft: rgba(154, 90, 16, 0.10);
  --glow:        rgba(154, 90, 16, 0.22);
  --grad:        linear-gradient(120deg, #9a5a10, #c98a2c);
  --grad-soft:   linear-gradient(120deg, rgba(154,90,16,.10), rgba(201,138,44,.06));
  --pill-inspire: #14508f;
  --pill-arxiv:   #a52323;
  --pill-doi:     #056a4c;
  --pill-code:    #5a3d99;
  --pill-private: #8a5a10;
  --cyan:        #0369a1;
  --violet:      #6d28d9;
  --mint:        #03634a;
  --rose:        #be123c;
  --q-red:       var(--accent);
  --q-green:     var(--cyan);
  --q-blue:      var(--violet);

  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-2: 0 10px 28px rgba(16, 24, 40, .09);
  --shadow-3: 0 24px 60px rgba(16, 24, 40, .14);
  }
}
:root[data-theme="light"] {
  --bg:        #f7f5f0;
  --bg-2:      #fffdf8;
  --surface:   rgba(40, 30, 10, 0.028);
  --surface-2: rgba(40, 30, 10, 0.05);
  --surface-3: rgba(40, 30, 10, 0.09);
  --line:      rgba(40, 30, 10, 0.11);
  --line-2:    rgba(40, 30, 10, 0.20);

  --ink:       #15181f;
  --ink-2:     rgba(21, 24, 31, 0.76);
  --ink-3:     rgba(21, 24, 31, 0.62);

  --accent:      #9a5a10;
  --on-accent:   #ffffff;
  --accent-soft: rgba(154, 90, 16, 0.10);
  --glow:        rgba(154, 90, 16, 0.22);
  --grad:        linear-gradient(120deg, #9a5a10, #c98a2c);
  --grad-soft:   linear-gradient(120deg, rgba(154,90,16,.10), rgba(201,138,44,.06));
  --pill-inspire: #14508f;
  --pill-arxiv:   #a52323;
  --pill-doi:     #056a4c;
  --pill-code:    #5a3d99;
  --pill-private: #8a5a10;
  --cyan:        #0369a1;
  --violet:      #6d28d9;
  --mint:        #03634a;
  --rose:        #be123c;
  --q-red:       var(--accent);
  --q-green:     var(--cyan);
  --q-blue:      var(--violet);

  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-2: 0 10px 28px rgba(16, 24, 40, .09);
  --shadow-3: 0 24px 60px rgba(16, 24, 40, .14);
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="or"] body { font-family: var(--font-or); }
/* Tracked-out labels pull Odia conjuncts apart into separate letters */
html[lang="or"] body *:not(h1):not(h2) { letter-spacing: normal !important; }

/* `hidden` must win over component display rules (.card is flex), or the publication filters can't hide anything */
[hidden] { display: none !important; }
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.012em; line-height: 1.04; }
h3, h4, h5 { font-family: var(--font-body); font-weight: 650; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--accent); color: var(--on-accent); }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }

/* ---------- 3. Layout helpers ------------------------------------------- */
.wrap, .container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--wide { max-width: 1360px; }
.section { padding-block: clamp(56px, 8vw, 108px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section + .section { border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.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;
}

/* ---------- 4. Type ------------------------------------------------------ */
.h-hero  { font-size: clamp(3rem, 8.4vw, 6rem); letter-spacing: -0.02em; line-height: .96; }
.h-1     { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
.h-2     { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.h-3     { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.lede    { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--ink-2); }
.muted   { color: var(--ink-2); }
.dim     { color: var(--ink-3); }
.mono    { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p { margin-top: 12px; color: var(--ink-2); }

/* ---------- 5. Buttons & chips ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .92rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px var(--glow); }
.btn--primary:hover { box-shadow: 0 14px 34px var(--glow); filter: saturate(1.15); }

.btn--ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-3); border-color: var(--accent); color: var(--accent); }

.btn--inspire {
  background: linear-gradient(120deg, #1b3a6b, #2f6db3);
  color: #fff; border-color: rgba(255,255,255,.16);
  box-shadow: 0 8px 22px rgba(47,109,179,.32);
}
.btn--inspire:hover { box-shadow: 0 12px 30px rgba(47,109,179,.45); color: #fff; }
.btn--sm { padding: 8px 15px; font-size: .82rem; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em;
  color: var(--ink-2); text-transform: uppercase;
}
.chip--accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.chip--cyan { background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.32); color: var(--cyan); }
.chip--violet { background: rgba(167,139,250,.12); border-color: rgba(167,139,250,.32); color: var(--violet); }
.chip--mint { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.32); color: var(--mint); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Filter pills */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.filter {
  padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: .84rem; font-weight: 500;
  transition: all .18s var(--ease);
}
.filter:hover { border-color: var(--line-2); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }

/* ---------- 6. Cards ----------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-2); background: var(--surface-2); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 1.02rem; line-height: 1.35; }
.card__meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; color: var(--ink-3); }
.card__text { color: var(--ink-2); font-size: .9rem; }
.card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__media--paper { aspect-ratio: 1 / 1.294; object-position: top; }
.card__media--paper img { object-position: top center; }

/* ---------- 7. Navigation ------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
.nav__inner { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; min-width: 0; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), #f6d08a);
  color: #14100a; font-family: var(--font-serif); font-weight: 400; font-size: 1.2rem;
}
.brand__name { display: block; font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__role { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
/* Below this width the brand wordmark competes with the tool row and pushes
   the menu button off-screen, so the logo mark stands alone. */
@media (max-width: 479px) { .brand__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; }
.nav__link {
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: .87rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color .18s, background .18s;
}
/* Ten menu items only just fit a laptop screen: tighten them a little there.
   Below 1220px they move into the menu button (see below). */
@media (min-width: 1220px) and (max-width: 1339px) {
  .nav__inner { gap: 12px; }
  .nav__link { padding: 8px 7px; font-size: .82rem; }
}
.nav__link:hover { color: var(--ink); background: var(--surface-2); }
.nav__link.is-active { color: var(--accent); background: var(--accent-soft); }

.nav__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  transition: all .18s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.icon-btn svg { width: 17px; height: 17px; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; background: var(--surface-2); }
.lang-switch a {
  padding: 6px 11px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  color: var(--ink-3); transition: all .18s;
}
.lang-switch a.is-active { background: var(--accent); color: var(--on-accent); font-weight: 700; }

.nav__burger { display: none; }

@media (max-width: 1219px) {
  .nav__burger { display: grid; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px var(--pad) 22px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-3);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 12px 14px; font-size: .95rem; }
}

/* ---------- 8. Hero ------------------------------------------------------ */
.hero { position: relative; padding-bottom: clamp(30px, 4vw, 56px); padding-top: calc(var(--nav-h) + clamp(38px, 7vw, 82px)); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background:
    radial-gradient(46% 60% at 18% 30%, color-mix(in srgb, var(--q-red) 16%, transparent), transparent 70%),
    radial-gradient(42% 55% at 78% 12%, rgba(56,189,248,.14), transparent 70%);
  filter: blur(6px); pointer-events: none; z-index: 0;
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 8px; }
.hero__role { font-family: var(--font-body); font-size: clamp(1.02rem, 1.9vw, 1.28rem); font-weight: 450; color: var(--ink-2); margin-bottom: 18px; letter-spacing: -.01em; }
.hero__role strong { color: var(--ink); font-weight: 700; }
.hero__desc { max-width: 54ch; color: var(--ink-2); margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero__portrait { position: relative; }
.hero__portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
  border-radius: 26px; border: 1px solid var(--line-2); box-shadow: var(--shadow-3);
}
.hero__badge {
  position: absolute; left: -14px; bottom: 22px;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: var(--r-pill);
  background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
  font-size: .8rem; font-weight: 600;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
@media (max-width: 900px) { .hero__portrait { max-width: 400px; margin-inline: auto; } }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--bg); padding: 18px 16px; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.1rem, 4.2vw, 2.8rem); font-weight: 400; line-height: 1; }
.stat__label { margin-top: 7px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-3); }
.stat:nth-child(1) .stat__num { color: var(--accent); }
.stat:nth-child(2) .stat__num { color: var(--cyan); }
.stat:nth-child(3) .stat__num { color: var(--violet); }
.stat:nth-child(4) .stat__num { color: var(--mint); }
.stats__note { margin-top: 10px; text-align: center; }

/* ---------- 9. Timeline (resume) ---------------------------------------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 30px; }
.tab { padding: 9px 20px; border-radius: var(--r-pill); font-size: .87rem; font-weight: 600; color: var(--ink-2); transition: all .2s var(--ease); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--cyan), transparent); opacity: .45; border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 7px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
}
.tl-item__time { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.tl-item__title { font-size: 1.02rem; margin: 5px 0 6px; }
.tl-item__text { color: var(--ink-2); font-size: .9rem; }

/* ---------- 10. Skills --------------------------------------------------- */
.skill + .skill { margin-top: 18px; }
.skill__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: .88rem; }
.skill__pct { font-family: var(--font-mono); font-size: .76rem; color: var(--accent); }
.skill__track { height: 7px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.skill__fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--cyan)); width: 0; transition: width 1.1s var(--ease); }

/* ---------- 11. Publications -------------------------------------------- */
.pub-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.pub-search {
  display: flex; align-items: center; gap: 9px; flex: 1 1 250px; max-width: 360px;
  padding: 9px 15px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
}
.pub-search input { flex: 1; background: none; border: 0; outline: none; font-size: .88rem; min-width: 0; }
.pub-search svg { width: 15px; height: 15px; color: var(--ink-3); flex-shrink: 0; }

.pub-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-card__links { display: flex; flex-wrap: wrap; gap: 7px; }
.link-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface-2);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-2);
  transition: all .18s var(--ease);
}
.link-pill:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface-3); transform: translateY(-1px); }
.link-pill--inspire { color: #8fc3ff; border-color: rgba(120,170,255,.34); background: rgba(60,110,190,.16); }
.link-pill--inspire:hover { color: #fff; background: rgba(60,110,190,.32); border-color: rgba(120,170,255,.6); }
.link-pill--inspire { color: var(--pill-inspire, #8fc3ff); }
.link-pill--arxiv { color: #f9a8a8; border-color: rgba(231,110,110,.32); background: rgba(190,60,60,.14); }
.link-pill--arxiv { color: var(--pill-arxiv, #f9a8a8); }
.link-pill--doi { color: #86e0c4; border-color: rgba(52,211,153,.3); background: rgba(16,140,100,.14); }
.link-pill--doi { color: var(--pill-doi, #86e0c4); }
.link-pill--code { color: #c9b6ff; border-color: rgba(160,130,240,.34); background: rgba(110,80,200,.15); }
.link-pill--private { color: #f3c77a; border-color: rgba(230,180,90,.34); background: rgba(190,140,50,.14); }
.link-pill--code { color: var(--pill-code, #c9b6ff); }
.link-pill--private { color: var(--pill-private, #f3c77a); }

.cite-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3);
}
.cite-badge b { color: var(--accent); font-size: .78rem; }

.empty-state { padding: 40px 20px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }

/* ---------- 12. News / talks -------------------------------------------- */
.news-item {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px;
  padding: 18px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .22s, background .22s, transform .22s var(--ease);
}
.news-item:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-3px); }
.news-item__thumb { border-radius: var(--r); overflow: hidden; aspect-ratio: 1 / 1.294; background: var(--surface-2); }
.news-item__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.news-item__date { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.news-item__title { font-size: 1.03rem; margin: 6px 0 8px; line-height: 1.35; }
.news-item__text { color: var(--ink-2); font-size: .9rem; }
@media (max-width: 560px) {
  .news-item { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 14px; }
}

/* Accordion detail */
.disclosure > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); padding: 6px 0;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: "＋"; font-size: .9rem; }
.disclosure[open] > summary::after { content: "－"; }
.disclosure__body {
  margin-top: 12px; padding: 16px 18px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: .9rem; color: var(--ink-2);
}
.disclosure__body h3, .disclosure__body h4 { color: var(--ink); margin: 14px 0 8px; font-size: .98rem; }
.disclosure__body ul { list-style: disc; padding-left: 20px; margin-bottom: 1em; }
.disclosure__body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 13. Gallery / lightbox -------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.gallery__item { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap {
  position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px;
  background: linear-gradient(transparent, rgba(3,6,14,.88));
  color: #fff; font-size: .74rem; line-height: 1.35;
  opacity: 0; transform: translateY(6px); transition: all .25s var(--ease);
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 1200; display: none;
  place-items: center; padding: clamp(16px, 4vw, 48px);
  background: rgba(4, 7, 14, .93); backdrop-filter: blur(8px);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; object-fit: contain; border-radius: var(--r); box-shadow: var(--shadow-3); }
.lightbox__cap { margin-top: 14px; color: rgba(255,255,255,.8); text-align: center; font-size: .88rem; max-width: 70ch; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; font-size: 1.4rem; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

/* ---------- 14. Collaborators / people ---------------------------------- */
.person { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: all .2s var(--ease); }
.person:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.person__avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--accent); }
.person__name { font-weight: 600; font-size: .94rem; }
.person__role { font-size: .78rem; color: var(--ink-3); }

/* ---------- 15. Contact -------------------------------------------------- */
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 12px 15px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  outline: none; transition: border-color .18s, background .18s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); background: var(--surface-2); }
.field textarea { min-height: 130px; resize: vertical; }
.form-status { margin-top: 14px; padding: 11px 14px; border-radius: var(--r-sm); font-size: .88rem;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.form-status--ok  { border-color: var(--mint); color: var(--ink); }
.form-status--err { border-color: var(--rose); color: var(--ink); }
.form-status a { color: var(--accent); font-weight: 600; text-decoration: underline; }

.contact-line { display: flex; align-items: flex-start; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.contact-line__label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.contact-line__value { font-size: .92rem; word-break: break-word; }
.contact-line__value a:hover { color: var(--accent); }

/* ---------- 16. Footer --------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(40px, 6vw, 62px) 26px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(150px, 1fr)); }
.footer h4, .footer .footer__h { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 500; }
.footer li + li { margin-top: 9px; }
.footer a { color: var(--ink-2); font-size: .89rem; }
.footer a:hover { color: var(--accent); }
.footer__bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--ink-3); }

.socials { display: flex; flex-wrap: wrap; gap: 9px; }
.social {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  transition: all .2s var(--ease);
}
.social:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.social--label { width: auto; padding-inline: 14px; gap: 8px; font-size: .82rem; font-weight: 600; }

/* ---------- 17. Command palette ----------------------------------------- */
.palette { position: fixed; inset: 0; z-index: 1300; display: none; padding-top: 12vh; justify-content: center; background: rgba(4,7,14,.72); backdrop-filter: blur(6px); }
.palette.is-open { display: flex; }
.palette__box { width: min(620px, 92vw); max-height: 66vh; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-3); overflow: hidden; }
.palette__input { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.palette__input input { flex: 1; background: none; border: 0; outline: none; font-size: 1rem; }
.palette__results { overflow-y: auto; padding: 8px; }
.palette__item { display: block; width: 100%; text-align: left; padding: 10px 13px; border-radius: var(--r-sm); transition: background .12s; }
.palette__item:hover, .palette__item.is-active { background: var(--surface-2); }
.palette__item b { display: block; font-size: .92rem; font-weight: 600; }
.palette__item span { font-size: .78rem; color: var(--ink-3); }
.palette__hint { padding: 10px 18px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
kbd { font-family: var(--font-mono); font-size: .68rem; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- 18. Assistant ------------------------------------------------ */
.assistant-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 950;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #f6d08a); color: #14100a;
  display: grid; place-items: center; box-shadow: var(--shadow-2);
  transition: transform .2s var(--ease);
}
.assistant-fab:hover { transform: scale(1.07); }
.assistant-fab svg { width: 24px; height: 24px; }

.assistant {
  position: fixed; right: 20px; bottom: 86px; z-index: 951;
  width: min(370px, calc(100vw - 40px)); max-height: min(560px, calc(100dvh - 130px));
  display: none; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); overflow: hidden;
}
.assistant.is-open { display: flex; }
.assistant__head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.assistant__log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: .87rem; line-height: 1.55; }
.bubble--bot { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble--me { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble a { color: var(--cyan); text-decoration: underline; }
.bubble--me a { color: inherit; }
.assistant__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.assistant__quick button { padding: 5px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); font-size: .74rem; color: var(--ink-2); }
.assistant__quick button:hover { border-color: var(--accent); color: var(--accent); }
.assistant__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.assistant__form input { flex: 1; padding: 9px 13px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); outline: none; font-size: .86rem; }
.assistant__form input:focus { border-color: var(--accent); }

/* ---------- 19. Utility / motion ---------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .85rem;
  transition: top .2s;
}
.skip-link:focus-visible { top: 0; }

#progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 1000; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width .1s linear; }

.to-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 940;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  display: grid; place-items: center; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease), color .2s, border-color .2s;
}
.to-top.is-on { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* ---------- 20. Prose (article bodies) ---------------------------------- */
.prose { max-width: 74ch; color: var(--ink-2); font-size: 1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5rem; color: var(--ink); margin-top: 1.9em; }
.prose h3 { font-size: 1.2rem; color: var(--ink); margin-top: 1.6em; }
.prose h4 { font-size: 1.02rem; color: var(--ink); margin-top: 1.4em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--r); border: 1px solid var(--line); margin-inline: auto; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 6px 0 6px 18px; color: var(--ink-2); font-style: italic; }
.prose code { font-family: var(--font-mono); font-size: .87em; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); }
.prose pre { padding: 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); overflow-x: auto; }
.prose pre code { border: 0; background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); color: var(--ink); }

/* Page header for sub-pages */
.page-head { padding-top: calc(var(--nav-h) + clamp(34px, 5vw, 60px)); padding-bottom: clamp(22px, 3vw, 38px); position: relative; overflow: hidden; }
.page-head__glow { position: absolute; inset: -40% -20% auto -20%; height: 120%; background: radial-gradient(40% 60% at 30% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); pointer-events: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent); }

/* Paper hero on publication pages */
.paper-hero { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 40px); align-items: start; }
@media (max-width: 720px) { .paper-hero { grid-template-columns: 1fr; } .paper-hero__thumb { max-width: 260px; } }
.paper-hero__thumb { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-2); background: var(--surface-2); }
.paper-hero__thumb img { width: 100%; aspect-ratio: 1 / 1.294; object-fit: cover; object-position: top center; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .88rem; }
.kv dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.kv dd { margin: 0; color: var(--ink-2); }

.callout { padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); border-left: 3px solid var(--accent); }
.callout h4 { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* Pager */
.pager { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Print */
@media print {
  .nav, .footer, .assistant, .assistant-fab, .to-top, #progress, .palette, .hero__glow, .hero__grid-lines { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .news-item { break-inside: avoid; }
}

/* ---------- 21. Small-screen refinements -------------------------------- */
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .footer .btn--inspire { width: 100%; }
  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; padding-inline: 10px; }
}
@media (max-width: 400px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav__tools { gap: 5px; }
  .icon-btn { width: 34px; height: 34px; border-radius: 9px; }
  .lang-switch a { padding: 5px 8px; font-size: .62rem; }
}
/* Decorative hero layers must never widen the document. */
.hero__glow, .hero__grid-lines, .page-head__glow { max-width: 100vw; }
.hero, .page-head, .section { overflow-x: clip; }

/* ---------- 22. Inline-SVG sizing ---------------------------------------
   Icons are inline <svg> with no intrinsic size. Inside a flex container
   they will happily stretch to fill the line box, so every context that can
   hold an icon states its size explicitly. */
.btn svg            { width: 18px; height: 18px; flex: 0 0 auto; }
.btn--sm svg        { width: 15px; height: 15px; }
.link-pill svg      { width: 13px; height: 13px; flex: 0 0 auto; }
.chip svg           { width: 13px; height: 13px; flex: 0 0 auto; }
.contact-line__icon svg { width: 18px; height: 18px; }
.assistant-fab svg  { width: 24px; height: 24px; }
.palette__input svg { width: 17px; height: 17px; flex: 0 0 auto; }
.social svg         { width: 18px; height: 18px; flex: 0 0 auto; }
.to-top svg         { width: 17px; height: 17px; }
.footer .btn--inspire svg { width: 17px; height: 17px; }

/* ---------- 23. Compact publication list (homepage) ---------------------- */
.pub-list { border-top: 1px solid var(--line); }
.pub-row {
  display: grid; align-items: baseline; gap: 6px 18px;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  padding: 15px 4px; border-bottom: 1px solid var(--line);
  transition: background .18s;
}
.pub-row:hover { background: var(--surface); }
.pub-row__year { color: var(--accent); font-size: .78rem; }
.pub-row__main { min-width: 0; }
.pub-row__title { display: block; font-family: var(--font-body); font-weight: 650; font-size: .98rem; line-height: 1.4; }
.pub-row__title:hover { color: var(--accent); }
.pub-row__meta { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }
.pub-row__links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cited-list .pub-row__year { font-size: .7rem; white-space: nowrap; }
@media (max-width: 640px) { .cited-list .pub-row { grid-template-columns: 58px minmax(0, 1fr); } }
.cited-list__cites { display: block; margin-top: 6px; font-size: .84rem; line-height: 1.45; color: var(--ink-2); }
.cited-list__cites a { color: var(--accent); }
.cited-list__cites a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .pub-row { grid-template-columns: 44px minmax(0, 1fr); }
  .pub-row__links { grid-column: 2; justify-content: flex-start; margin-top: 4px; }
}

/* ============================================================================
   24. 2026 redesign layer — editorial type, hero with hadron field,
       numbered sections, citation chart, talks map, print CV
   ========================================================================== */
em { font-style: italic; }
.h-hero em, .h-1 em { font-style: italic; color: var(--accent); }

/* numbered section headings on the homepage */
main { counter-reset: sec; }
.section .sec-head .eyebrow::before {
  counter-increment: sec; content: counter(sec, decimal-leading-zero);
  width: auto; height: auto; background: none; opacity: 1;
  padding: 2px 7px; border: 1px solid currentColor; border-radius: 6px; font-size: .64rem; letter-spacing: .08em;
}
.eyebrow--plain::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }

/* hero */
@media (min-width: 901px) { .hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } }
.hero h1 { margin: 6px 0 14px; }
.hero__text { position: relative; z-index: 2; }
.hero__actions .btn--inspire span { font-weight: 600; }
.hero__metrics { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 14px; align-items: stretch; }
@media (max-width: 640px) { .hero__metrics { grid-template-columns: 1fr; } }
.hero__metrics .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero__metrics .stat { padding: 18px 8px; }
.hero__metrics .stat__label { letter-spacing: .09em; font-size: .6rem; }
.stats__note { text-align: left; }

.hero__visual { position: relative; display: grid; place-items: center; padding: clamp(18px, 4vw, 44px); }
.hero__hadron { position: absolute; left: -14%; top: -12%; width: 128%; height: 124%; z-index: 0; pointer-events: none; }
.hero__portrait { position: relative; z-index: 1; margin: 0; width: min(100%, 430px); }
.hero__portrait::before {
  content: ""; position: absolute; inset: -10px; border-radius: 34px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 40%, transparent);
  backdrop-filter: blur(2px); z-index: -1;
}
.hero__portrait img {
  width: 100%; aspect-ratio: 13 / 15; object-fit: cover; object-position: 50% 30%;
  border-radius: 26px; border: 1px solid var(--line-2); box-shadow: var(--shadow-3);
}
.hero__badge { left: 4%; bottom: 10%; z-index: 2; }
@media (max-width: 900px) { .hero__visual { max-width: 380px; width: 100%; margin-inline: auto; } .hero__hadron { left: -6%; width: 112%; } }

/* citations-per-year chart */
.cite-chart { margin: 0; padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: flex; flex-direction: column; }
.cite-chart__cap { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.cite-chart__bars { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; min-height: 92px; }
.cite-chart__bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.cite-chart__col { width: 100%; max-width: 34px; height: var(--h); min-height: 3px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent)); transform-origin: bottom; }
.cite-chart__n { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-2); }
.cite-chart__y { font-family: var(--font-mono); font-size: .64rem; color: var(--ink-3); }
.reveal .cite-chart__col { transform: scaleY(.02); transition: transform .9s var(--ease) .2s; }
.reveal.is-in .cite-chart__col { transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal .cite-chart__col { transform: none; } }

/* card & list polish */
.card, .news-item, .person, .pub-row { --lift: color-mix(in srgb, var(--accent) 35%, var(--line-2)); }
.card:hover, .news-item:hover, .person:hover { border-color: var(--lift); }
.news-item__title, .card__title, .tl-item__title { font-family: var(--font-body); font-weight: 650; }
.sec-head .h-1 { margin-top: 4px; }

/* publication tools */
.pub-toolbar { gap: 12px 16px; }
.pub-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.select { position: relative; display: inline-flex; }
.select select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: 9px 34px 9px 15px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .86rem;
}
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg); pointer-events: none; }
.select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.link-pill--cite { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--bg-2); }
.link-pill.is-busy { opacity: .55; pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 1400; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: .86rem; font-weight: 600;
  box-shadow: var(--shadow-3); transition: opacity .25s, transform .25s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* publications summary in the page header */
.pub-summary { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; max-width: 860px; }
@media (max-width: 720px) { .pub-summary { grid-template-columns: 1fr; } }
.pub-summary__nums { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pub-summary__nums > div { background: var(--bg); padding: 14px 18px; display: flex; flex-direction: column-reverse; gap: 4px; }
.pub-summary__nums dt { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pub-summary__nums dd { margin: 0; font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--accent); }

/* CV download (print) */
.page-head__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.print-only { display: none; }
@media print {
  @page { margin: 14mm 14mm 16mm; }
  :root { --bg: #fff; --bg-2: #fff; --ink: #111; --ink-2: #222; --ink-3: #555; --line: #ccc; --line-2: #bbb; --surface: #fff; --surface-2: #f4f4f4; --accent: #7a4a0c; }
  html, body { background: #fff !important; color: #111; font-size: 11pt; }
  .no-print, .crumbs, .skip-link, .page-head__glow, .hero__hadron, .toast, .filters, .pub-toolbar, .btn, .lang-switch { display: none !important; }
  .print-only { display: block; }
  .print-card { margin-top: 10px; font-size: 10pt; line-height: 1.5; border-top: 1px solid #999; padding-top: 8px; }
  .page-head { padding-top: 0 !important; }
  .section { padding-block: 14px !important; border: 0 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  [role="tabpanel"][hidden] { display: block !important; }
  .tabs { display: none !important; }
  .card, .tl-item, .person, .news-item { break-inside: avoid; box-shadow: none !important; transform: none !important; }
  a { color: inherit !important; text-decoration: none; }
  .h-1 { font-size: 22pt; } .h-2 { font-size: 16pt; }
}

/* talks world map */
.talk-map { margin: 0; padding: clamp(14px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.talk-map svg { width: 100%; height: auto; overflow: hidden; }
.talk-map__land { fill: color-mix(in srgb, var(--ink) 12%, transparent); stroke: color-mix(in srgb, var(--ink) 18%, transparent); stroke-width: .6; }
.talk-map__pin { cursor: default; outline: none; }
.talk-map__dot { fill: var(--pin); stroke: var(--bg); stroke-width: 1.5; }
.talk-map__halo { fill: var(--pin); opacity: .22; transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.6s var(--ease) infinite; }
.talk-map__pin:hover .talk-map__dot, .talk-map__pin:focus-visible .talk-map__dot { r: 6; }
.talk-map__pin--talk { --pin: var(--accent); }
.talk-map__pin--school { --pin: var(--cyan); }
.talk-map__pin--position { --pin: var(--violet); }
.talk-map__pin--remote { --pin: var(--mint); }
.talk-map__pin--remote .talk-map__dot { fill: var(--bg); stroke: var(--pin); stroke-width: 2; }
@keyframes pin-pulse { 0%, 100% { transform: scale(.6); opacity: .35; } 50% { transform: scale(1.35); opacity: 0; } }
.talk-map__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: .82rem; color: var(--ink-2); }
.talk-map__legend .k { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.k--talk { background: var(--accent); } .k--school { background: var(--cyan); } .k--position { background: var(--violet); } .k--remote { border: 2px solid var(--mint); }
.talk-map__list { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px 22px; font-size: .84rem; }
.talk-map__list li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--line); }
.talk-map__list b { font-weight: 600; } .talk-map__list span { color: var(--ink-3); font-size: .8rem; }

/* visualizations gallery */
.viz-card__screen {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(60% 70% at 30% 30%, color-mix(in srgb, var(--viz) 26%, transparent), transparent 70%),
              radial-gradient(50% 60% at 80% 80%, color-mix(in srgb, var(--viz) 16%, transparent), transparent 70%), #0a0d15;
  border-bottom: 1px solid var(--line);
}
.viz-card__screen::after { content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px; }
.viz-card__sym { position: relative; z-index: 1; font-family: var(--font-mono); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; color: var(--viz);
  text-shadow: 0 0 22px color-mix(in srgb, var(--viz) 70%, transparent); }
.viz-card__play { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; opacity: 0; transform: scale(.85); transition: all .25s var(--ease); }
.viz-card__play svg { width: 16px; height: 16px; fill: currentColor; }
.viz-card:hover .viz-card__play, .viz-card:focus-visible .viz-card__play { opacity: 1; transform: none; }
.viz-card .chip { align-self: flex-start; }
.viz-card__go { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--accent); }

/* research outlook roadmap */
.roadmap { display: grid; gap: 18px; }
.roadmap__lane { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .roadmap__lane { grid-template-columns: 1fr; gap: 10px; } }
.roadmap__when { position: sticky; top: calc(var(--nav-h) + 16px); padding: 8px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--lane); font-weight: 500; }
.roadmap__lane--next { --lane: var(--mint); } .roadmap__lane--mid { --lane: var(--cyan); } .roadmap__lane--hard { --lane: var(--accent); }
.roadmap__items { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.plan { position: relative; padding: 20px 22px 20px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .2s, transform .2s var(--ease); }
.plan::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lane); }
.plan:hover { border-color: color-mix(in srgb, var(--lane) 45%, var(--line-2)); transform: translateY(-2px); }
.plan__top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.plan__title { font-size: 1.04rem; line-height: 1.35; }
.plan__diff { display: inline-flex; gap: 3px; padding-top: 5px; flex-shrink: 0; }
.plan__diff i { width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); border: 1px solid var(--lane); }
.plan__diff i.on { background: var(--lane); }
.plan__text { margin-top: 10px; color: var(--ink-2); font-size: .92rem; }
.plan__hard { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: .85rem; color: var(--ink-2); }
.plan__hard b { color: var(--lane); font-weight: 650; }

/* ============================================================================
   25. Colour-charge identity (2026-10) — bold sans headings with serif-italic
       accents, the three quark colours, gradient hairlines, the hero motto,
       live metrics and the in-page visualization viewer
   ========================================================================== */
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
html[lang="or"] h1, html[lang="or"] h2 { font-family: var(--font-or); letter-spacing: -0.01em; }
.h-hero { font-size: clamp(2.9rem, 7.4vw, 5.6rem); letter-spacing: -0.045em; line-height: .95; }
.h-1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.h-hero em, .h-1 em, .h-2 em, h1 em, h2 em {
  font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em;
  padding-right: .06em; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow { color: var(--accent); }


/* nav */
.nav__link.is-active { color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.lang-switch a.is-active { background: var(--accent); color: var(--on-accent); }
.filter[aria-pressed="true"], .tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* gradient hairline under every section heading */
.sec-head .h-1::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 16px; border-radius: 3px; background: var(--grad); }
.sec-head--center .h-1::after { margin-inline: auto; }

/* cards: a gradient rim appears on hover */
.card, .news-item, .person, .plan { isolation: isolate; }
.card::before, .news-item::before, .person::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: var(--accent); opacity: 0; transition: opacity .3s var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.news-item, .person { position: relative; }
.card:hover::before, .news-item:hover::before, .person:hover::before { opacity: 1; }
.card:hover, .news-item:hover, .person:hover { box-shadow: 0 18px 44px -18px var(--glow); }

/* stats in the three colour charges */
.stat__num, .pub-summary__nums dd { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; }
.stat:nth-child(1) .stat__num { color: var(--q-red); }
.stat:nth-child(2) .stat__num { color: var(--q-green); }
.stat:nth-child(3) .stat__num { color: var(--q-blue); }
.pub-summary__nums > div:nth-child(1) dd { color: var(--q-red); }
.pub-summary__nums > div:nth-child(2) dd { color: var(--accent); }
.pub-summary__nums > div:nth-child(3) dd { color: var(--q-green); }
.pub-summary__nums > div:nth-child(4) dd { color: var(--q-blue); }
.person__avatar { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink);
  background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--line-2); }

/* hero */
.hero__glow {
  background:
    radial-gradient(46% 60% at 18% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(42% 55% at 78% 12%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 70%);
}
.hero__portrait::before { border-color: transparent; background: var(--grad); opacity: .55; filter: blur(18px); inset: -6px; }
.hero__portrait img { border-color: color-mix(in srgb, var(--ink) 18%, transparent); }

/* the motto above the portrait */
.motto { position: relative; z-index: 3; width: min(100%, 430px); margin: 0 0 18px; text-align: center; }
.motto__line { display: flex; align-items: center; justify-content: center; gap: 14px; }
.motto__laurel { width: 34px; height: 34px; flex: 0 0 auto; color: var(--accent); opacity: .9; }
.motto__laurel--r { transform: scaleX(-1); }
.motto__latin {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.05; letter-spacing: .005em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  padding-right: .08em;
}
.motto__latin i { font-style: normal; -webkit-text-fill-color: var(--ink-3); color: var(--ink-3); padding-right: .08em; }
.motto__en { margin-top: 6px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-3); }
.motto__rule { display: block; height: 1px; margin: 12px auto 0; width: 70%;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--accent) 50%, var(--line-2) 80%, transparent); }
.reveal .motto__latin { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease) .35s; }
.reveal.is-in .motto__latin { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .reveal .motto__latin { clip-path: none; } }
.hero__visual { flex-direction: column; display: flex; align-items: center; }
.hero__visual .hero__hadron { top: 2%; }

/* citations-per-year chart: gradient bars, live refresh, current year marked "so far" */
.cite-chart__col { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent)); }
.cite-chart__bar--partial .cite-chart__col {
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, transparent) 0 5px, color-mix(in srgb, var(--accent) 45%, transparent) 5px 10px);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cite-chart__y small { display: block; font-size: .56rem; letter-spacing: .06em; color: var(--accent); text-transform: uppercase; }
.cite-chart__cap { display: flex; justify-content: space-between; gap: 10px; }
.cite-chart__live { color: var(--q-green); letter-spacing: .1em; }
.cite-chart__live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.cite-chart__col { transition: height .6s var(--ease); }

/* research metrics dashboard (publications page) */
.metrics { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 18px; }
.metric { grid-column: span 4; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); min-width: 0; }
.metric--wide { grid-column: span 8; }
@media (max-width: 900px) { .metric, .metric--wide { grid-column: span 12; } }
.metric__cap { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.metric__big { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; letter-spacing: -.04em; line-height: 1; }
.metric__sub { font-size: .8rem; color: var(--ink-3); margin-top: 6px; }
.typebar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-2); margin: 6px 0 12px; }
.typebar span { display: block; height: 100%; }
.typebar__legend { display: grid; gap: 6px; font-size: .82rem; color: var(--ink-2); }
.typebar__legend li { display: flex; align-items: center; gap: 8px; }
.typebar__legend b { margin-left: auto; font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.typebar__legend i { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.topcited { display: grid; gap: 2px; counter-reset: tc; }
.topcited li { counter-increment: tc; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.topcited li:last-child { border-bottom: 0; }
.topcited li::before { content: counter(tc, decimal-leading-zero); font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); }
.topcited a { font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.topcited a:hover { color: var(--accent); }
.topcited b { font-family: var(--font-mono); font-size: .78rem; color: var(--q-green); white-space: nowrap; }
.spark { display: block; width: 100%; height: 72px; margin-top: 4px; overflow: visible; }
.spark__area { fill: var(--accent-soft); }
.spark__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark__dot { fill: var(--bg); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark__labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .62rem; color: var(--ink-3); margin-top: 6px; }

/* visualizations: live preview on hover, and an in-page full-screen viewer */
.viz-card__screen iframe { position: absolute; inset: 0; width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0;
  border: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); z-index: 1; }
.viz-card__screen.is-live iframe { opacity: 1; }
.viz-card__screen.is-live .viz-card__sym { opacity: 0; }
.viz-card__sym { transition: opacity .4s; }
.viz-card__play { z-index: 3; }
.viz-card__hint { position: absolute; left: 12px; bottom: 10px; z-index: 3; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.72); padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.35); }
.viewer { position: fixed; inset: 0; z-index: 1250; display: none; flex-direction: column; background: rgba(3, 5, 12, .94); backdrop-filter: blur(10px); }
.viewer.is-open { display: flex; }
.viewer__bar { display: flex; align-items: center; gap: 12px; padding: 12px clamp(14px, 3vw, 28px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.viewer__title { font-weight: 650; font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__bar .btn { margin-left: auto; }
.viewer__close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); font-size: 1.3rem; }
.viewer__close:hover { background: rgba(255,255,255,.2); }
.viewer iframe { flex: 1; width: 100%; border: 0; background: #05070e; }

/* homepage: physics lab teaser */
.lab-strip { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.metric--chart { padding: 0; border: 0; background: none; }
.metric--chart .cite-chart { height: 100%; }
.pub-summary { grid-template-columns: 1fr; max-width: 560px; }
.pub-summary__nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .pub-summary__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* closing line at the very end of every page */
.signoff { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 30px 0 0; text-align: center; }
.signoff__text {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: .005em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-right: .08em;
}
.signoff__rule { flex: 0 1 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); }
.signoff__rule:last-child { background: linear-gradient(90deg, var(--line-2), transparent); }

/* research areas: homepage cards with a figure, and feature rows on /research/ */
.areas { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.area__fig, .feature__fig img { background: #fff; }
.area__fig { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.area__fig img { width: 100%; height: 100%; object-fit: contain; padding: 8px 10px; transition: transform .5s var(--ease); }
.area:hover .area__fig img { transform: scale(1.04); }
.area__num { color: var(--lane); font-size: .68rem; }
.area .card__title { font-size: 1.08rem; }
.area__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.area__chips .link-pill { text-transform: none; letter-spacing: .02em; border-color: color-mix(in srgb, var(--lane) 35%, var(--line)); }

.feature-list { display: grid; gap: clamp(40px, 6vw, 80px); }
.feature { display: grid; gap: clamp(22px, 4vw, 52px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
.feature--flip .feature__fig { order: 2; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature--flip .feature__fig { order: 0; } }
.feature__fig { margin: 0; position: relative; }
.feature__fig::before { content: ""; position: absolute; inset: -8px; border-radius: 26px; background: var(--grad); opacity: .28; filter: blur(22px); z-index: -1; }
.feature__fig img { width: 100%; border-radius: 18px; border: 1px solid var(--line-2); padding: 14px; box-shadow: var(--shadow-3); }
.feature__fig figcaption { margin-top: 10px; font-size: .8rem; color: var(--ink-3); }
.feature__fig figcaption a { color: var(--accent); }
.feature__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.1; margin: 8px 0 14px; }
.feature__title::after { content: ""; display: block; width: 54px; height: 3px; border-radius: 3px; margin-top: 12px; background: var(--lane); }
.feature__gist { color: var(--ink); font-weight: 600; }
.feature__text { color: var(--ink-2); }
.feature__hl { display: grid; gap: 8px; margin: 18px 0; }
.feature__hl li { position: relative; padding-left: 22px; font-size: .92rem; }
.feature__hl li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--lane); }
.feature__papers { margin-top: 16px; }
.feature__papers summary { cursor: pointer; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.feature__papers ul { margin-top: 10px; display: grid; gap: 7px; font-size: .88rem; }
.feature__papers a:hover { color: var(--accent); }
.person__name, .person__role { display: block; }
.person__role { margin-top: 2px; line-height: 1.4; }
a[href^="mailto:"] { overflow-wrap: anywhere; word-break: break-word; }
html[lang="or"] .h-hero em, html[lang="or"] .h-1 em, html[lang="or"] h1 em, html[lang="or"] h2 em { font-family: var(--font-or); font-style: normal; font-weight: 700; letter-spacing: -.01em; }

/* 3D companions (static/js/dragon.js, static/js/panda.js). Fixed one layer below the page: the
   body's background is painted on the viewport, so z-index -1 sits above it and under every bit
   of content. */
.companion-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.companion-canvas.is-on { opacity: .96; }
:root[data-theme="dark"] .companion-canvas.is-on { opacity: .82; }
.companion { position: relative; }
.companion.is-off [data-companion-icon] { filter: grayscale(1); opacity: .5; }
.companion__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 950; min-width: 184px; padding: 6px;
  display: grid; gap: 2px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--bg-2); box-shadow: var(--shadow-2);
}
.companion__menu[hidden] { display: none; }
.companion__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px;
  font: inherit; font-size: .88rem; color: var(--ink-2); text-align: left; background: none; border: 0; cursor: pointer;
}
.companion__menu button[hidden] { display: none; }
.companion__menu button span { width: 18px; text-align: center; font-size: 15px; line-height: 1; }
.companion__menu button:hover, .companion__menu button:focus-visible { background: var(--surface-3); color: var(--ink); outline: none; }
.companion__menu button[aria-checked="true"] { color: var(--accent); font-weight: 600; background: var(--accent-soft); }
@media print { .companion-canvas { display: none !important; } }

/* ---- finishing touches: balanced headings, no lonely last words, the journals I publish in */
h1, h2, h3, .h-1, .h-2, .h-3, .card__title, .hero__role, .lede { text-wrap: balance; }
p, li, .card__text { text-wrap: pretty; }
.journals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.journals__label { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-right: 2px; }
.journals__item { font-family: var(--font-serif, Georgia, serif); font-style: italic; font-size: .95rem; color: var(--ink-2, var(--ink)); white-space: nowrap; }
.journals__item sup { font-family: var(--font-mono); font-style: normal; font-size: .6rem; color: var(--dim, #8b93a7); margin-left: 2px; }
