/* =========================================================================
   MADS Lab theme. Plain modern CSS, no framework, no build step.
   ========================================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: #fafbfd;
  --surface: #ffffff;
  --surface-2: #f2f4f9;
  --text: #0e1124;
  --text-2: #33384f;
  --muted: #5d6379;
  --border: #e3e6ef;
  --border-strong: #cfd4e2;
  --brand: #4f46e5;
  --brand-strong: #4338ca;
  --brand-2: #0891b2;
  --brand-soft: #eef0ff;
  --on-brand: #ffffff;
  --grad: linear-gradient(110deg, #6366f1 0%, #8b5cf6 45%, #06b6d4 100%);
  --shadow-sm: 0 1px 2px rgba(15, 18, 40, .06), 0 1px 3px rgba(15, 18, 40, .05);
  --shadow: 0 2px 6px rgba(15, 18, 40, .05), 0 12px 32px -8px rgba(15, 18, 40, .12);
  --shadow-lg: 0 24px 60px -16px rgba(30, 27, 90, .28);

  --amber: #c26a05;  --amber-soft: #fff4e2;
  --rose: #d6204e;   --rose-soft: #ffe9ee;
  --violet: #7346e5; --violet-soft: #f1ebff;

  --hero-bg: #070a17;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090c18; --surface: #10142a; --surface-2: #161b35; --text: #eceef7; --text-2: #c9cde0;
    --muted: #979eb9; --border: #232946; --border-strong: #323a5e; --brand: #8f8cff; --brand-strong: #a5a3ff;
    --brand-2: #22d3ee; --brand-soft: #1c1f45; --on-brand: #0b0d1f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .8);
    --amber: #fbbf24; --amber-soft: #2b2110; --rose: #fb7192; --rose-soft: #2e1420; --violet: #b39dff; --violet-soft: #221a45;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090c18; --surface: #10142a; --surface-2: #161b35; --text: #eceef7; --text-2: #c9cde0;
  --muted: #979eb9; --border: #232946; --border-strong: #323a5e; --brand: #8f8cff; --brand-strong: #a5a3ff;
  --brand-2: #22d3ee; --brand-soft: #1c1f45; --on-brand: #0b0d1f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .8);
  --amber: #fbbf24; --amber-soft: #2b2110; --rose: #fb7192; --rose-soft: #2e1420; --violet: #b39dff; --violet-soft: #221a45;
  color-scheme: dark;
}

/* Per–research-area accent */
.accent-amber  { --accent: var(--amber);  --accent-soft: var(--amber-soft);  --accent-grad: linear-gradient(135deg, #f59e0b, #f97316); }
.accent-rose   { --accent: var(--rose);   --accent-soft: var(--rose-soft);   --accent-grad: linear-gradient(135deg, #f43f5e, #ec4899); }
.accent-violet { --accent: var(--violet); --accent-soft: var(--violet-soft); --accent-grad: linear-gradient(135deg, #8b5cf6, #6366f1); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { font-family: var(--font-display); font-feature-settings: normal; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tight { padding-block: 2.5rem; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  font: 600 .78rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1rem;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; max-width: none; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }
.section-lead { font-size: 1.12rem; color: var(--muted); }
.section-title { font-size: 1.5rem; margin: 0 0 1.5rem; display: flex; align-items: center; gap: .6rem; }
.count { font: 600 .8rem/1 var(--font-sans); padding: .35em .6em; border-radius: 99px; background: var(--brand-soft); color: var(--brand); letter-spacing: 0; }

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  padding: .78em 1.35em; border-radius: 999px; font: 600 .95rem/1 var(--font-sans);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); transform: translateY(-1px); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-sm { padding: .6em 1.05em; font-size: .88rem; }
.text-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 550; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35em; padding: .3em .75em; border-radius: 999px;
  font: 550 .78rem/1.3 var(--font-sans); text-decoration: none; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-2);
}
.chip[class*="accent-"] { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
a.chip:hover, button.chip:hover { border-color: var(--accent, var(--brand)); }
button.chip { cursor: pointer; font-size: .85rem; padding: .45em .95em; }
button.chip.is-active { background: var(--accent, var(--brand)); color: #fff; border-color: transparent; }
:root[data-theme="dark"] button.chip.is-active { color: #0b0d1f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.chip.is-active { color: #0b0d1f; } }
.chips-soft .chip { background: var(--surface); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li { font-size: .74rem; font-weight: 550; padding: .2em .6em; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  transition: background-color .3s, border-color .3s;
}
.site-header.is-overlay { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-overlay:not(.is-scrolled) { --text: #f1f2fa; --muted: #b5bad3; --border-strong: rgba(255,255,255,.25); --surface-2: rgba(255,255,255,.08); }
.site-header.is-overlay.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); border-color: var(--border); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.logo-mark { width: 38px; height: 38px; flex: none; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 1.22rem/1 var(--font-display); font-feature-settings: normal; letter-spacing: -.01em; }
.brand-lab { font-weight: 450; margin-left: .2em; opacity: .7; }
.brand-sub { font-size: .72rem; color: var(--muted); margin-top: .25rem; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .2rem; }
.site-nav a {
  display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--text); text-decoration: none;
  font-size: .93rem; font-weight: 520; transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a.is-active { color: var(--brand); background: var(--brand-soft); }
.site-header.is-overlay:not(.is-scrolled) .site-nav a.is-active { color: #fff; }
.site-nav a.nav-cta { background: var(--brand); color: var(--on-brand); margin-left: .4rem; padding-inline: 1rem; }
.site-nav a.nav-cta:hover { background: var(--brand-strong); }
.header-actions { display: flex; align-items: center; gap: .3rem; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--text); cursor: pointer; transition: background-color .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .icon { width: 20px; height: 20px; }
.when-dark, .when-open { display: none; }
:root[data-theme="dark"] .when-light { display: none; }
:root[data-theme="dark"] .when-dark { display: contents; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .when-light { display: none; } :root:not([data-theme="light"]) .when-dark { display: contents; } }
.nav-toggle { display: none; }
.nav-open .nav-toggle .when-closed { display: none; }
.nav-open .nav-toggle .when-open { display: contents; }

@media (max-width: 1020px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: .75rem clamp(16px, 4vw, 32px) 1.25rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .site-nav a { padding: .8rem 1rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .site-nav a.nav-cta { margin: .5rem 0 0; text-align: center; }
  .nav-open .site-header.is-overlay { background: var(--bg); border-color: var(--border); }
  .header-actions { margin-left: auto; }
}
@media (max-width: 1020px) {
  .nav-open .site-header.is-overlay:not(.is-scrolled) { --text: #0e1124; --muted: #5d6379; --surface-2: #f2f4f9; }
  :root[data-theme="dark"] .nav-open .site-header.is-overlay:not(.is-scrolled) { --text: #eceef7; --muted: #979eb9; --surface-2: #161b35; }
}
@media (max-width: 1020px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-open .site-header.is-overlay:not(.is-scrolled) { --text: #eceef7; --muted: #979eb9; --surface-2: #161b35; }
}
@media (max-width: 420px) { .brand-sub { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #eef0fb;
  background: var(--hero-bg); min-height: min(860px, 100svh);
  display: flex; align-items: center; padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(99, 102, 241, .38), transparent 70%),
    radial-gradient(45% 50% at 10% 90%, rgba(6, 182, 212, .25), transparent 70%),
    radial-gradient(35% 40% at 55% 105%, rgba(236, 72, 153, .18), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 140px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--hero-bg));
}
.hero-inner { position: relative; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .85rem; font-weight: 500; color: #cfd3ea; margin-bottom: 1.75rem; backdrop-filter: blur(6px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero-title {
  font-size: clamp(2.6rem, 7.2vw, 5.6rem); font-weight: 600; line-height: 1.02; letter-spacing: -.035em;
  margin: 0 0 1.5rem; color: #fff; max-width: 18ch;
}
.acro { display: block; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.acro:nth-child(2) { animation-delay: .08s; }
.acro:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.acro b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.08rem, 1.8vw, 1.32rem); color: #c3c8e0; max-width: 46ch; margin-bottom: 2.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 3rem; }
.hero .btn-primary { background: #fff; color: #14163a; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .9); }
.hero .btn-primary:hover { background: #eef0ff; color: #14163a; }
.hero-groups { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-groups a {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .95rem; border-radius: 12px;
  color: #e6e8f6; text-decoration: none; font-size: .92rem; font-weight: 520;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  transition: background-color .2s, border-color .2s, transform .2s;
}
.hero-groups a .icon { color: var(--accent); }
.hero-groups .accent-amber { --accent: #fbbf24; } .hero-groups .accent-rose { --accent: #fb7192; } .hero-groups .accent-violet { --accent: #b39dff; }
.hero-groups a:hover { background: rgba(255, 255, 255, .1); border-color: var(--accent); transform: translateY(-2px); color: #fff; }

/* ---------- Stats ---------- */
.stats-band { background: var(--hero-bg); color: #fff; padding-bottom: 3rem; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); overflow: hidden;
}
.stat { background: #0c1022; padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: .3rem; }
.stat-num { font: 650 clamp(2rem, 4vw, 2.8rem)/1 var(--font-display); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: #a9aecb; font-size: .92rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--border); }
.page-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 90% 0%, color-mix(in srgb, var(--accent, var(--brand)) 18%, transparent), transparent 70%),
    radial-gradient(40% 70% at 0% 100%, color-mix(in srgb, var(--brand-2) 10%, transparent), transparent 70%),
    var(--bg);
}
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 13%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 85%);
}
.page-hero h1 { max-width: 22ch; margin-bottom: .4em; }
.page-hero .lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--muted); max-width: 62ch; margin: 0; }
.page-hero[class*="accent-"] .eyebrow { color: var(--accent); }
.page-hero-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; color: var(--muted); font-size: .92rem; }
.page-hero-meta time { display: inline-flex; align-items: center; gap: .45rem; }
.meta-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.meta-list li { display: inline-flex; align-items: center; gap: .45rem; }
.page-hero .hero-cta { margin: 2rem 0 0; }
.page-hero .btn-ghost { color: var(--text); border-color: var(--border-strong); }

/* ---------- Group cards ---------- */
.group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.group-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .group-grid, .group-grid-2 { grid-template-columns: 1fr; } }
.group-card {
  position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 1.75rem;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.group-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent-grad); }
.group-card::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%;
  background: var(--accent-grad); opacity: .07; transition: opacity .3s, transform .4s;
}
.group-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); color: var(--text); }
.group-card:hover::after { opacity: .14; transform: scale(1.15); }
.group-card h3 { font-size: 1.35rem; margin: 1rem 0 .4rem; }
.group-card p { color: var(--muted); margin-bottom: 1rem; }
.group-card-sm h3 { font-size: 1.15rem; }
.group-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: var(--accent-soft, var(--brand-soft)); color: var(--accent, var(--brand));
}
.group-icon .icon { width: 24px; height: 24px; }
.group-icon-lg { width: 60px; height: 60px; border-radius: 18px; }
.group-icon-lg .icon { width: 30px; height: 30px; }
.group-topics { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .35rem; font-size: .9rem; color: var(--text-2); }
.group-topics li { display: flex; gap: .55rem; align-items: baseline; }
.group-topics li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); flex: none; transform: translateY(-2px); }
.read-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--accent, var(--brand)); }
.read-more .icon { transition: transform .2s; }
a:hover .read-more .icon { transform: translateX(4px); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.news-card-link { display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: 1.5rem; color: var(--text); text-decoration: none; }
.news-card-link:hover { color: var(--text); }
.news-card time { font-size: .82rem; font-weight: 600; color: var(--brand); letter-spacing: .02em; }
.news-card h3 { font-size: 1.12rem; margin: 0; line-height: 1.3; }
.news-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.news-card .tags { margin-top: .25rem; }
.news-card .read-more { padding-top: .5rem; }

.archive { display: grid; gap: 2rem; }
.year-label { display: flex; align-items: center; gap: 1rem; font-size: 1.05rem; color: var(--muted); margin: 0 0 1rem; }
.year-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.year-label span { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.archive-list { list-style: none; padding: 0; margin: 0; display: grid; }
.archive-list > li { display: grid; grid-template-columns: 70px 1fr auto; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px dashed var(--border); }
.archive-list time { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.archive-list a { color: var(--text); font-weight: 550; text-decoration: none; }
.archive-list a:hover { color: var(--brand); }
@media (max-width: 640px) { .archive-list > li { grid-template-columns: 56px 1fr; } .archive-list .tags { display: none; } }
.news-grid + .section-title { margin-top: 4rem; }

/* ---------- Split / misc layout ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split-top { align-items: start; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.split > div:first-child .btn { margin-top: .5rem; }
@media (max-width: 900px) { .split, .split-top { grid-template-columns: 1fr; } }

/* ---------- Publications ---------- */
.pub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.pub {
  padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.pub:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.pub-title { font: 600 1.04rem/1.35 var(--font-sans); letter-spacing: -.005em; margin: 0 0 .3rem; }
.pub-title a { color: var(--text); text-decoration: none; }
.pub-title a:hover { color: var(--brand); text-decoration: underline; }
.pub-authors { font-size: .92rem; color: var(--text-2); margin: 0 0 .15rem; }
.pub-authors strong { font-weight: 650; color: var(--text); }
.pub-venue { font-size: .88rem; color: var(--muted); margin: 0 0 .7rem; }
.pub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; font-size: .8rem; }
.pub-type { color: var(--muted); font-weight: 550; padding-right: .4rem; margin-right: .1rem; border-right: 1px solid var(--border); }
.pub-link, .pub-bib summary {
  display: inline-flex; align-items: center; gap: .3em; padding: .22em .65em; border-radius: 6px;
  border: 1px solid var(--border); color: var(--text-2); text-decoration: none; font-weight: 550; cursor: pointer; background: var(--surface);
}
.pub-link .icon { width: 1em; height: 1em; }
.pub-link:hover, .pub-bib summary:hover { border-color: var(--brand); color: var(--brand); }
.pub-bib { display: contents; }
.pub-bib summary { list-style: none; }
.pub-bib summary::-webkit-details-marker { display: none; }
.pub-bib[open] summary { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.bib-box { position: relative; flex-basis: 100%; margin-top: .4rem; }
.bib-box pre { margin: 0; max-height: 280px; }
.copy-btn {
  position: absolute; top: .5rem; right: .5rem; font: 600 .75rem/1 var(--font-sans); padding: .45em .8em;
  border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer;
}
.copy-btn:hover { border-color: var(--brand); color: var(--brand); }
.pub-list-compact .pub { padding: 1rem 1.15rem; }
.pub-list-compact .pub-bib, .pub-list-compact .pub-type { display: none; }

.pub-toolbar {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .85rem;
  margin-bottom: 2.5rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.search-field { flex: 1 1 280px; display: flex; align-items: center; gap: .6rem; padding: 0 .9rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); }
.search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); padding: .7rem 0; outline: none; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.select-field select {
  font: inherit; font-size: .9rem; padding: .6rem 2rem .6rem .8rem; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .6rem center / 16px;
  color: var(--text); appearance: none; cursor: pointer;
}
.pub-count { margin: 0 0 0 auto; font-size: .88rem; }
@media (max-width: 720px) { .pub-toolbar { position: static; } .pub-count { margin: 0; } }
.pub-year { margin-bottom: 2.5rem; }
.pub[hidden], .pub-year[hidden] { display: none; }
.empty-state { text-align: center; padding: 3rem; color: var(--muted); }

/* ---------- People ---------- */
.people-section + .people-section { margin-top: 3.5rem; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1rem; }
.person-card {
  display: flex; gap: 1.1rem; padding: 1.25rem; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.person-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent, var(--brand)) 35%, var(--border)); }
.avatar {
  width: 72px; height: 72px; border-radius: 20px; flex: none; overflow: hidden; display: grid; place-items: center;
  background: var(--accent-grad, var(--grad)); color: #fff; font: 650 1.4rem/1 var(--font-display); letter-spacing: -.02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-body { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.person-name { font-size: 1.1rem; margin: 0; }
.person-name a { color: var(--text); text-decoration: none; }
.person-name a:hover { color: var(--brand); }
.person-title { font-size: .88rem; color: var(--brand); font-weight: 550; margin: 0; }
.person-interests { font-size: .88rem; color: var(--muted); margin: 0 0 .2rem; line-height: 1.5; }
.person-links { list-style: none; padding: 0; margin: .2rem 0 0; display: flex; gap: .7rem; align-items: center; font-size: .82rem; }
.person-links a { color: var(--muted); }
.person-links a:hover { color: var(--brand); }
.alumni-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem 1.5rem; }
.alumni-list li { display: flex; flex-direction: column; padding: .55rem 0; border-bottom: 1px dashed var(--border); }
.alumni-list a, .alumni-list span { font-weight: 550; color: var(--text); text-decoration: none; }
.alumni-list a:hover { color: var(--brand); }
.alumni-list small { color: var(--muted); font-size: .8rem; }
.cta-inline {
  display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem 1.75rem; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand-soft), color-mix(in srgb, var(--brand-2) 10%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--border));
}
.cta-inline h2 { font-size: 1.25rem; margin: 0 0 .2rem; }
.cta-inline p { margin: 0; color: var(--muted); }
.cta-inline .btn { margin-left: auto; }
@media (max-width: 720px) { .cta-inline { flex-direction: column; align-items: flex-start; } .cta-inline .btn { margin-left: 0; } }

/* ---------- Projects & software ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; margin-bottom: 3.5rem; }
.project-card {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.6rem; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); color: var(--text); }
.project-card h3 { font-size: 1.5rem; margin: 0; }
.software-card h3 { margin-top: 1rem; font-size: 1.3rem; }
.project-card p { color: var(--muted); margin: 0; }
.project-funding { font-size: .78rem !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand) !important; }
.project-foot { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.project-foot .read-more { margin-top: 0; }
.past-projects { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.past-projects li { display: grid; grid-template-columns: 110px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.past-projects strong { font-family: var(--font-display); }
.past-projects small { color: var(--muted); font-size: .85rem; }
@media (max-width: 720px) { .past-projects li { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Research page ---------- */
.dependability-card { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.dependability-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.dependability-card li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--border); }
.dependability-card li:last-child { border: 0; }
.dependability-card span { font: 600 1.05rem/1.2 var(--font-display); }
.dependability-card small { color: var(--muted); text-align: right; }
.wg-list { display: grid; gap: 1.25rem; }
.wg-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: start; padding: 1.75rem;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
}
.wg-row h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.wg-row h3 a { color: var(--text); text-decoration: none; }
.wg-row h3 a:hover { color: var(--accent); }
.wg-row p { color: var(--muted); }
@media (max-width: 720px) { .wg-row { grid-template-columns: 1fr; } }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--surface); padding: 1.6rem; }
.feature h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Group page ---------- */
.group-hero-title { display: flex; align-items: center; gap: 1.1rem; margin-bottom: .6rem; }
.group-hero-title h1 { margin: 0; }
.group-hero .eyebrow { color: var(--accent); }
.group-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .group-layout { grid-template-columns: 1fr; } }
.group-aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .group-aside { position: static; } }
.aside-card { padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.aside-card h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--font-sans); margin-bottom: 1rem; }
.aside-cta { background: var(--accent-soft, var(--brand-soft)); border-color: transparent; }
.aside-cta h2 { color: var(--accent, var(--brand)); }
.group-layout .aside-cta .btn-primary { background: var(--accent); color: #fff; box-shadow: none; }
.check-list, .plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; font-size: .94rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list li::before {
  content: ""; width: 18px; height: 18px; flex: none; margin-top: .15em; border-radius: 6px; background: var(--accent-soft) no-repeat center / 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}

/* ---------- Join ---------- */
.join-banner {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: 28px; color: #eef0fb; background: var(--hero-bg);
}
.join-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 120% at 100% 0%, rgba(99, 102, 241, .55), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(6, 182, 212, .35), transparent 60%);
}
.join-banner h2 { color: #fff; max-width: 20ch; }
.join-banner p { color: #c3c8e0; max-width: 58ch; margin: 0; }
.join-banner .eyebrow { color: #a5b4fc; }
.join-banner .btn-primary { background: #fff; color: #14163a; }
.join-actions { display: flex; flex-direction: column; gap: .7rem; }
@media (max-width: 860px) { .join-banner { flex-direction: column; align-items: flex-start; } .join-actions { flex-direction: row; flex-wrap: wrap; } }
.join-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 3rem; }
.join-card { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.join-card h3 { margin: 1rem 0 .4rem; font-size: 1.1rem; }
.join-card p { margin: 0; font-size: .93rem; color: var(--muted); }
@media (max-width: 800px) { .join-cards { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1.5rem; margin-bottom: 3rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 1rem; align-content: start; }
.prose .contact-card, .contact-card {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s;
}
.contact-card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--text); }
.contact-card small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: .15rem; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); min-height: 360px; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- Partners ---------- */
.partners { text-align: center; }
.partners ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; }
.partners li { font: 600 1.1rem/1.2 var(--font-display); color: var(--muted); }
.partners a { color: inherit; text-decoration: none; }
.partners a:hover { color: var(--text); }

/* ---------- Prose ---------- */
.prose { max-width: 740px; font-size: 1.05rem; color: var(--text-2); }
.prose-wide { max-width: none; }
.prose > * + * { margin-top: 0; }
.prose h2 { color: var(--text); margin: 2.2em 0 .6em; font-size: 1.65rem; }
.prose h3 { color: var(--text); margin: 1.8em 0 .5em; font-size: 1.25rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); }
.prose img { border-radius: var(--radius); margin: 1.5em 0; border: 1px solid var(--border); }
.prose a img { margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: .5em 1.25em; border-left: 3px solid var(--brand); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .6em .8em; border-bottom: 1px solid var(--border); text-align: left; }
code, pre { font-family: var(--font-mono); font-size: .88em; }
:not(pre) > code { padding: .15em .4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); word-break: break-word; }
pre {
  padding: 1.1rem 1.25rem; border-radius: var(--radius); overflow-x: auto; line-height: 1.55;
  background: #0d1124; color: #dfe3f5; border: 1px solid #1f2547; font-size: .84rem;
}
.prose pre { margin: 1.5em 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin: 1.5em 0; }
.gallery img { margin: 0; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.02); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-nav-link { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 550; font-size: .95rem; line-height: 1.35; }
.post-nav-link:hover { border-color: var(--brand); color: var(--brand); }
.post-nav-link span { font-size: .8rem; font-weight: 500; }
.post-nav-next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav-next { grid-column: auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 4rem; margin-top: 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .brand-sub { max-width: 22ch; }
.footer-brand p { margin-top: 1.25rem; }
.footer-title { font: 600 .78rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a, .footer-contact a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--brand); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-2); }
.footer-contact .icon { margin-top: .2em; color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.4rem; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.footer-bottom a { color: inherit; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media print {
  .site-header, .site-footer, .hero-canvas, .pub-toolbar, .pub-actions { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Components placed inside prose */
.prose .pub-list { padding-left: 0; }
.prose .pub-list li { margin-bottom: 0; }
.prose .pub-title { margin: 0 0 .3rem; font-size: 1.04rem; }
.pub-title { text-wrap: pretty; }

/* Project cards: details */
.project-card .project-name { color: var(--text-2); font-weight: 550; line-height: 1.4; }
.project-card .project-summary { font-size: .93rem; margin-top: .5rem; }
.project-meta { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .35rem; font-size: .85rem; color: var(--muted); }
.project-meta li { display: flex; gap: .5rem; align-items: flex-start; }
.project-meta .icon { margin-top: .15em; color: var(--brand); }
.past-projects strong a { color: var(--text); }
.past-projects strong a:hover { color: var(--brand); }
.project-role-inline { display: block; color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.past-projects li > small { text-align: right; }
@media (max-width: 720px) { .past-projects li > small { text-align: left; } }
.pub-note { font-weight: 600; padding: .22em .65em; border-radius: 6px; background: var(--surface-2); color: var(--text-2); display: inline-flex; align-items: center; gap: .3em; }
.pub-note.is-award { background: var(--amber-soft); color: var(--amber); }
.pub-note .icon { width: 1em; height: 1em; }
