/* LITC website. One stylesheet, no build step. Palette: dark grey, red, white; type: Sora + Inter. */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.1ad231aac0a8.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/sora-latin-ext-wght-normal.adf7c421da62.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/sora-latin-wght-normal.0d0e5e4d2f9f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallbacks: text keeps its size and line breaks while the web fonts load (no layout shift). */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 107.28%;
  ascent-override: 90.3%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Sora Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 113.86%;
  ascent-override: 85.19%;
  descent-override: 25.47%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --c-ink: #1c1c1f;
  --c-ink-2: #26262b;
  --c-ink-3: #34343a;
  --c-ink-deep: #161618;
  --c-mid: #5d5d66;
  --c-line: #e6e6ea;
  --c-field: #85858f;
  --c-soft: #f4f4f6;
  --c-paper: #ffffff;
  --c-red: #c8102e;
  --c-red-hover: #a50d26;
  --c-red-tint: #faebed;
  --c-red-on-dark: #ff5a6e;
  --c-on-dark: #f2f2f5;
  --c-on-dark-muted: #b4b4be;

  --font-head: "Sora", "Sora Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;

  --radius: 6px;
  --radius-node: 28%;
  --pill: 999px;
  --shadow: 0 10px 30px rgba(28, 28, 31, 0.08);
  --shadow-hover: 0 24px 48px rgba(28, 28, 31, 0.14);
  --shadow-dark: 0 24px 48px rgba(0, 0, 0, 0.35);
  --t: all 0.4s ease;

  --section-pad: clamp(72px, 10vw, 120px);
  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
  --header-h-compact: 64px;
  --stats-overlap: 64px;
  --focus: var(--c-red);
}
@media (max-width: 399px) {
  :root { --gutter: 16px; }
}
@media (max-width: 959px) {
  :root { --header-h: 68px; --header-h-compact: 60px; --stats-overlap: 48px; }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 24px);
}
body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
abbr[title] { text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--c-red); color: #fff; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-main:focus { outline: none; }

.icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 22px;
  border-radius: var(--pill);
  background: #fff;
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-hover);
  transform: translateY(-200%);
  transition: transform 0.3s ease;
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ------------------------------------------------------------------ bands */
.band { position: relative; padding-block: var(--section-pad); }
.band--light { background: var(--c-paper); }
.band--soft { background: var(--c-soft); }
.band--dark, .hero, .page-header, .site-footer, .cta-card, .site-header, .fatal {
  --focus: #fff;
  color: var(--c-on-dark);
}
.band--dark { background: var(--c-ink); overflow-x: clip; }
.band > .container { position: relative; }

/* Decorative layers: dot grids and rings, 4-8% opacity, never interactive, never wider than their band. */
.decor-dots, .decor-rings, .hero__decor, .page-header__decor, .site-footer__decor, .cta-card__decor, .fatal__decor {
  position: absolute;
  pointer-events: none;
}
.decor-dots {
  width: 260px; height: 220px;
  background: radial-gradient(circle, rgba(28, 28, 31, 0.16) 1.3px, transparent 1.8px) 0 0 / 18px 18px;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
  mask-image: radial-gradient(closest-side, #000 40%, transparent);
  opacity: 0.5;
}
.decor-dots--about { right: max(0px, calc((100vw - var(--container)) / 2 - 60px)); top: calc(var(--section-pad) + var(--stats-overlap) - 40px); }
.decor-dots--dark {
  left: -40px; bottom: 40px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5) 1.3px, transparent 1.8px);
  opacity: 0.14;
}
.decor-rings, .site-footer__decor {
  width: 960px; height: 960px;
  right: -420px; top: -480px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 109px, rgba(255, 255, 255, 0.07) 110px 111px, transparent 112px 140px);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
}

/* ------------------------------------------------------------------ type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-red);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; background: currentColor; }
.eyebrow--on-dark { color: var(--c-red-on-dark); }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.band--dark .section-title, .cta-card .section-title { color: #fff; }
.section-head .section-title::after {
  content: "";
  display: block;
  width: 46px; height: 8px;
  margin-top: 22px;
  background:
    linear-gradient(var(--c-red), var(--c-red)) 38px 0 / 8px 8px no-repeat,
    linear-gradient(var(--c-line), var(--c-line)) 0 3px / 32px 2px no-repeat;
  border-radius: 2px;
}
.band--dark .section-head .section-title::after, .cta-card .section-title::after {
  background:
    linear-gradient(var(--c-red-on-dark), var(--c-red-on-dark)) 38px 0 / 8px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)) 0 3px / 32px 2px no-repeat;
}
.section-head--center .section-title::after { margin-inline: auto; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--c-red); font-weight: 500; }
.prose a:hover { color: var(--c-red-hover); }
.prose--lead p { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.7; color: var(--c-ink); }

/* ------------------------------------------------------------------ buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--pill);
  background: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--t);
}
.btn .btn__icon { width: 18px; height: 18px; transition: transform 0.4s ease; }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn--sm { min-height: 42px; padding: 8px 20px; font-size: 0.875rem; }
.btn--lg { min-height: 54px; padding: 14px 32px; font-size: 1rem; }
.btn--primary { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.btn--primary:hover {
  background: var(--c-red-hover);
  border-color: var(--c-red-hover);
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.3);
  transform: translateY(-2px);
}
.btn--outline-light { border-color: rgba(255, 255, 255, 0.36); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--c-ink); transform: translateY(-2px); }
.btn--outline { border-color: var(--c-ink); color: var(--c-ink); }
.btn--outline:hover { background: var(--c-ink); color: #fff; transform: translateY(-2px); }
.btn--dark { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.btn--dark:hover { background: var(--c-red); border-color: var(--c-red); transform: translateY(-2px); }
.btn--ghost { color: var(--c-mid); }
.btn--ghost:hover { color: var(--c-ink); background: var(--c-soft); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  transition: var(--t);
}
.link-arrow .icon { width: 18px; height: 18px; color: var(--c-red); transition: transform 0.4s ease; }
.link-arrow:hover { color: var(--c-red); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--back:hover .icon { transform: translateX(-4px); }
.link-arrow--on-dark { color: #fff; }
.link-arrow--on-dark .icon { color: var(--c-red-on-dark); }
.link-arrow--on-dark:hover { color: var(--c-red-on-dark); }

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--pill);
  background: #fff;
  color: var(--c-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--t);
}
.chip-link .icon { width: 18px; height: 18px; color: var(--c-red); transition: var(--t); }
.chip-link:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.chip-link:hover .icon { color: #fff; }
.chip-link__count {
  min-width: 26px;
  padding: 1px 8px;
  border-radius: var(--pill);
  background: var(--c-soft);
  color: var(--c-mid);
  font-size: 0.8125rem;
  text-align: center;
  transition: var(--t);
}
.chip-link:hover .chip-link__count { background: rgba(255, 255, 255, 0.14); color: #fff; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: var(--t);
}
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--c-red); color: #fff; transform: translateY(-2px); }
.icon-btn--dark { background: var(--c-ink-2); color: var(--c-on-dark); box-shadow: none; border: 1px solid var(--c-ink-3); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
  background: var(--c-soft);
  color: var(--c-ink);
}
.badge--journal { background: var(--c-ink); color: #fff; }
.badge--conference { background: var(--c-soft); border-color: var(--c-line); }
.badge--thesis { background: var(--c-red-tint); color: var(--c-red); }
.badge--other { background: #fff; border-color: var(--c-line); color: var(--c-mid); }

.empty-state { color: var(--c-mid); }
.empty-state--card {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 56px 24px;
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}
.empty-state__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-red);
}
.empty-state__icon .icon { width: 28px; height: 28px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(28, 28, 31, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: height 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}
.site-header.is-scrolled {
  height: var(--header-h-compact);
  background: rgba(28, 28, 31, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: rgba(28, 28, 31, 0.93); backdrop-filter: blur(14px) saturate(140%); }
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.brand__logo { width: auto; height: 38px; transition: height 0.4s ease; }
.site-header.is-scrolled .brand__logo { height: 32px; }
.brand__text { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.brand__mark {
  position: relative;
  width: 30px; height: 30px;
  border: 3px solid #fff;
  border-radius: 9px;
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: -7px; top: -7px;
  width: 11px; height: 11px;
  border-radius: 3px;
  background: var(--c-red);
}

.site-nav__list { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: var(--c-on-dark-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--c-red-on-dark);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: #fff; }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link:not([aria-current]):hover::after { transform: scaleX(1); background: rgba(255, 255, 255, 0.35); }
.site-nav__item--cta { margin-left: clamp(0px, 1vw, 10px); }
.site-nav__cta[aria-current="page"] { background: var(--c-red-hover); border-color: var(--c-red-hover); }
.site-nav__cta:hover .btn__icon { transform: translate(2px, -2px); }

.nav-toggle {
  position: relative;
  display: none;
  width: 46px; height: 46px;
  margin-right: -4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  transition: var(--t);
}
.nav-toggle:hover { border-color: rgba(255, 255, 255, 0.5); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  margin-left: -10px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.35s ease, background-color 0.2s ease, width 0.35s ease;
}
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after { transform: translateY(6px); width: 13px; background: var(--c-red-on-dark); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); width: 20px; background: #fff; }

@media (max-width: 959px) {
  .brand__logo { height: 32px; }
  .site-header.is-scrolled .brand__logo { height: 28px; }
  .js .nav-toggle:not(.nav-toggle--jump), .no-js .nav-toggle--jump { display: block; }
  .no-js .site-nav { display: none; }
  .js .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 28px;
    background: var(--c-ink);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .site-header:has(.site-nav.is-open) { background: var(--c-ink); backdrop-filter: none; }
  body:has(.site-nav.is-open)::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(12, 12, 14, 0.62); }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.3s ease; }
  .js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; max-width: var(--container); margin-inline: auto; }
  .js .site-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--c-on-dark);
  }
  .js .site-nav__link::after { left: auto; right: 0; bottom: auto; width: 8px; height: 8px; border-radius: 2px; transform: scale(0); }
  .js .site-nav__link[aria-current="page"]::after { transform: scale(1); }
  .js .site-nav__item--cta { margin: 24px 0 0; }
  .js .site-nav__cta { width: 100%; min-height: 50px; font-size: 1rem; }

  /* Without JavaScript the menu button is a link to the same navigation in the footer (no layout change when JS loads). */
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 96px);
  background: var(--c-ink);
  overflow-x: clip;
}
.hero__decor {
  inset: 0;
  background:
    radial-gradient(640px 420px at 82% 26%, rgba(200, 16, 46, 0.14), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1.2px, transparent 1.7px) 0 0 / 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 40px;
}
.hero__title {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero__line { display: block; }
@media (min-width: 1200px) {
  .hero__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
  .hero__title { font-size: clamp(2.4rem, 4.4vw, 3.4rem); }
  .hero__line { white-space: nowrap; }
}
.hero__title br { display: none; }
.hero__line:last-of-type:not(:first-of-type) { color: var(--c-on-dark-muted); }
.hero__line:last-of-type::after {
  content: "";
  display: inline-block;
  width: 0.17em; height: 0.17em;
  margin-left: 0.1em;
  border-radius: 0.05em;
  background: var(--c-red);
}
.hero__text {
  max-width: 34rem;
  margin: 0 0 40px;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.7;
  color: var(--c-on-dark-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art { position: relative; margin-right: -20px; }
.hg { width: 100%; height: auto; max-width: 580px; margin-left: auto; overflow: visible; }

.hero__stats { position: relative; z-index: 2; margin-top: clamp(56px, 7vw, 88px); margin-bottom: calc(-1 * var(--stats-overlap)); }
.stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 0;
  padding: 8px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--c-ink);
  box-shadow: 0 30px 60px rgba(28, 28, 31, 0.16);
}
.stats__item {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 2.6vw, 34px);
}
.stats__item + .stats__item::before {
  content: "";
  position: absolute;
  left: 0; top: 24%; bottom: 24%;
  width: 1px;
  background: var(--c-line);
}
.stats__value {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.4vw, 2.875rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stats__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-mid);
  font-size: 0.9375rem;
  font-weight: 500;
}
.stats__label .icon { width: 18px; height: 18px; color: var(--c-red); }

/* Hero network graph: rounded-square nodes and elbow edges, like the lab's logo. */
.hg__rings circle { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.hg__rings .hg__ring-dash {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-dasharray: 2 10;
  transform-box: view-box;
  transform-origin: 404px 252px;
  animation: hg-spin 120s linear infinite;
}
.hg__mesh path { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.hg__edges path { fill: none; stroke: #4a4a53; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.hg__edges .hg__edge-mid { stroke-width: 5; }
.hg__edges .hg__edge-thin { stroke: #6b6b75; stroke-width: 2.5; }
.hg__signal {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 9 191;
  stroke-dashoffset: 9;
  opacity: 0.95;
  animation: hg-flow 5s ease-in infinite;
}
.hg__signal--b { animation-delay: 1.6s; }
.hg__signal--c { animation-delay: 3s; animation-duration: 4s; stroke: var(--c-red-on-dark); }
.hg__signal--d { animation-delay: 0.8s; animation-duration: 6s; stroke-width: 2.5; }
.hg__nodes rect { fill: #232327; stroke: #d4d4da; stroke-width: 6; }
.hg__nodes .hg__node-sm { stroke: #8e8e98; stroke-width: 4; }
.hg__nodes .hg__hub { fill: #2a2a30; stroke: #f2f2f5; stroke-width: 7; }
.hg__cores circle { fill: none; stroke: rgba(255, 255, 255, 0.38); stroke-width: 1.5; }
.hg__dot { fill: #8e8e98; }
.hg__red { fill: var(--c-red); }
.hg__red-core { fill: none; stroke: #fff; stroke-width: 2.5; }
.hg__pulse {
  fill: none;
  stroke: var(--c-red-on-dark);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: hg-pulse 3.2s ease-out infinite;
}
.hg__float { animation: hg-float 8s ease-in-out infinite alternate; }
@keyframes hg-flow { 0% { stroke-dashoffset: 9; } 70%, 100% { stroke-dashoffset: -100; } }
@keyframes hg-pulse { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes hg-float { from { transform: translateY(6px); } to { transform: translateY(-8px); } }
@keyframes hg-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ about */
.about--after-stats { padding-top: calc(var(--section-pad) + var(--stats-overlap)); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about__head { margin-bottom: 0; }
.about__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.about__body.prose--lead p { font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); max-width: 40rem; }
.about__grid { scroll-margin-top: calc(var(--header-h-compact) + 40px); }
.about__body { position: relative; padding-left: clamp(24px, 3.4vw, 48px); border-left: 2px solid var(--c-line); }
.about__body::before { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 56px; background: var(--c-red); }
.about__dept {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 24rem;
  margin: 28px 0 0;
  color: var(--c-mid);
  font-weight: 500;
  line-height: 1.5;
}
.about__dept-icon {
  display: grid; place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--c-soft);
  color: var(--c-red);
}

/* ------------------------------------------------------------------ research */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: area;
}
.research-grid > li { display: flex; flex-direction: column; counter-increment: area; }
.research-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  min-height: 236px;
  padding: 40px 32px 36px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--c-ink);
  box-shadow: var(--shadow);
  transition: var(--t);
}
.research-card::before {
  content: counter(area, decimal-leading-zero);
  position: absolute;
  top: 34px; right: 32px;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-mid);
  transition: var(--t);
}
.research-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.2px, transparent 1.7px) 100% 100% / 16px 16px,
    var(--c-red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s ease;
}
.research-card { scroll-margin-top: calc(var(--header-h-compact) + 32px); }
.research-card:hover, .research-card:focus-within { transform: translateY(-10px); box-shadow: 0 24px 48px rgba(200, 16, 46, 0.26); }
/* Cards that are not links (the research page) do not pretend to be clickable. */
.research-card:not(.research-card--link):hover { transform: none; box-shadow: var(--shadow); }
.research-card:not(.research-card--link):hover::after { transform: scaleY(0); }
.research-card:not(.research-card--link):hover::before { color: var(--c-mid); }
.research-card:not(.research-card--link):hover .research-card__title, .research-card:not(.research-card--link):hover .research-card__text { color: var(--c-ink); }
.research-card:not(.research-card--link):hover .research-card__icon { background: #fff; color: var(--c-red); }
.research-card:not(.research-card--link):hover .research-card__title::after { width: 32px; background: var(--c-red); }
.research-card:target { outline: 3px solid var(--c-red); outline-offset: 4px; }
.research-card__link { color: inherit; text-decoration: none; }
.research-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.research-card__link:focus-visible { outline: none; }
.research-card__link:focus-visible::after { outline: 3px solid #fff; outline-offset: 4px; }
.research-card__go {
  position: absolute;
  right: 28px; bottom: 30px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  color: var(--c-red);
  background: var(--c-red-tint);
  transition: var(--t);
}
.research-card__go .icon { width: 18px; height: 18px; }
.research-card--link:hover .research-card__go, .research-card--link:focus-within .research-card__go { background: #fff; color: var(--c-red); transform: translateX(4px); }
.research-card:hover::after, .research-card:focus-within::after { transform: scaleY(1); }
.research-card:hover::before, .research-card:focus-within::before,
.research-card:hover .research-card__title, .research-card:focus-within .research-card__title,
.research-card:hover .research-card__text, .research-card:focus-within .research-card__text { color: #fff; }
.research-card__icon {
  display: grid; place-items: center;
  flex: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-red);
  box-shadow: 0 0 40px rgba(28, 28, 31, 0.1);
  transition: var(--t);
}
.research-card__icon .icon { width: 28px; height: 28px; }
.research-card:hover .research-card__icon, .research-card:focus-within .research-card__icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.research-card__title {
  margin-top: auto;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: var(--t);
}
.research-card__title::after {
  content: "";
  display: block;
  width: 32px; height: 2px;
  margin-top: 18px;
  background: var(--c-red);
  transition: var(--t);
}
.research-card:hover .research-card__title::after, .research-card:focus-within .research-card__title::after { width: 56px; background: #fff; }
.research-card__text { margin: -6px 0 0; color: var(--c-mid); font-size: 1rem; line-height: 1.65; transition: var(--t); }
.band--dark .research-card { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }

.research-grid--page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.research-grid--page .research-card { flex-direction: row; align-items: center; min-height: 0; padding: 30px 80px 30px 30px; gap: 24px; }
.research-grid--page .research-card__title { margin-top: 0; }
.research-grid--page .research-card::before { top: 50%; transform: translateY(-50%); }
.research-page { min-height: calc(100vh - var(--header-h)); }
.research-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.research-intro .section-head { margin-bottom: 0; }
.research-item--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start;
}
.research-item--wide .research-card { height: 100%; }
.research-item__detail {
  display: grid;
  gap: 24px;
  padding: 36px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.research-item__image { width: 100%; border-radius: var(--radius); }
.next-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  text-align: center;
}

/* ------------------------------------------------------------------ people: cards */
/* One component: a portrait in a gradient frame with the lab's red corner node. Photos are monochrome at rest and
   turn to colour on hover, so webcam shots and initials tiles sit together as one set. */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 28px; }
.person {
  --halo: var(--c-paper);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.band--soft .person, .person--row, .person--feature, .person--compact { --halo: #fff; }
.person__figure { position: relative; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.person__frame {
  position: relative;
  padding: 2px;
  border-radius: 12px;
  background: linear-gradient(140deg, #d9d9de 0%, #d9d9de 42%, #6d6d76 74%, var(--c-ink) 100%);
  box-shadow: 0 22px 40px -22px rgba(28, 28, 31, 0.45);
  transition: box-shadow 0.5s ease;
}
/* The hover ring: red flowing into ink, faded in over the resting ring. */
.person__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, var(--c-red) 0%, #e2475f 30%, #4a4a53 70%, var(--c-ink) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
/* The red node from the logo, cut out of the page by a halo in the background colour. */
.person__frame::after {
  content: "";
  position: absolute;
  top: -7px; right: -7px;
  z-index: 3;
  width: 16px; height: 16px;
  border-radius: 5px;
  background: var(--c-red);
  box-shadow: 0 0 0 4px var(--halo);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.person__media {
  position: relative;
  z-index: 1;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: var(--c-ink);
}
.person__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(22, 22, 24, 0.9) 0%, rgba(22, 22, 24, 0.55) 26%, rgba(22, 22, 24, 0) 56%),
    radial-gradient(120% 70% at 100% 100%, rgba(200, 16, 46, 0.38), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.person__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: grayscale(1) contrast(1.06);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
}

/* Initials: a rounded-square node on a dark tile, wired to a satellite node like the lab's logo. The edge's
   direction changes from person to person (four variants) so a row of tiles never repeats. */
.person__avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1.2px, transparent 1.7px) 0 0 / 18px 18px,
    radial-gradient(90% 60% at 100% 100%, rgba(200, 16, 46, 0.2), transparent 70%),
    radial-gradient(130% 90% at 18% 0%, #3d3d45 0%, #27272c 46%, #19191c 100%);
}
.person__avatar::before {
  content: "";
  position: absolute;
  top: 50%; left: 14%;
  width: 14%; height: 31%;
  border: 0 solid rgba(255, 255, 255, 0.2);
  border-width: 2px 0 0 2px;
  border-top-left-radius: 10px;
}
.person__avatar::after {
  content: "";
  position: absolute;
  top: calc(81% - 7px); left: calc(14% - 6px);
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  background: #1f1f23;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}
.person__avatar--v2::before { left: auto; right: 14%; border-width: 2px 2px 0 0; border-radius: 0 10px 0 0; }
.person__avatar--v2::after { left: auto; right: calc(14% - 6px); }
.person__avatar--v3::before { top: auto; bottom: 50%; border-width: 0 0 2px 2px; border-radius: 0 0 0 10px; }
.person__avatar--v3::after { top: calc(19% - 7px); }
.person__avatar--v4::before { top: auto; bottom: 50%; left: auto; right: 14%; border-width: 0 2px 2px 0; border-radius: 0 0 10px 0; }
.person__avatar--v4::after { top: calc(19% - 7px); left: auto; right: calc(14% - 6px); }
.person__initials {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-node);
  background: linear-gradient(160deg, #303036, #1e1e22);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.7vw, 2.125rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.4s ease;
}
/* A second, fading edge leaves the node on the other side: the network carries on past the tile. */
.person__initials::before {
  content: "";
  position: absolute;
  top: 30%; left: 100%;
  width: 70%; height: 2px;
  margin-left: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}
.person__avatar--v2 .person__initials::before, .person__avatar--v4 .person__initials::before {
  left: auto; right: 100%;
  margin: 0 2px 0 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}
.person__avatar--v3 .person__initials::before, .person__avatar--v4 .person__initials::before { top: 70%; }

/* Text: the name leads, the role is a small label with the red rule used by section labels. */
.person__body { display: flex; flex-direction: column; flex: 1; padding: 22px 2px 0; }
.person__name { font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; text-wrap: balance; }
.person__role {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  color: var(--c-mid);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.person__role::before { content: ""; flex: none; width: 16px; height: 2px; background: var(--c-red); }

/* Links on the portrait card: a tidy row on the photo. With a mouse it slides in on hover or keyboard focus;
   on touch screens it is always there. */
.person__links { position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.person__link {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: #fff;
  color: var(--c-ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.person__link .icon { width: 18px; height: 18px; }
.person__link:hover { background: var(--c-red); color: #fff; transform: translateY(-2px); }
/* Two-tone ring: white with an ink rim, visible on the photo, the dark overlay and plain white alike. */
.person__links:not(.person__links--inline) .person__link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 7px var(--c-ink); }

@media (hover: hover) and (pointer: fine) {
  .person__links:not(.person__links--inline) > li { opacity: 0; transform: translateY(16px); transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .person__links > li:nth-child(2) { transition-delay: 0.04s; }
  .person__links > li:nth-child(3) { transition-delay: 0.08s; }
  .person__links > li:nth-child(4) { transition-delay: 0.12s; }
  .person__links > li:nth-child(n + 5) { transition-delay: 0.16s; }
  .person:hover .person__links > li, .person:focus-within .person__links > li { opacity: 1; transform: none; }
  .person:not(.person--compact):hover .person__figure, .person:not(.person--compact):focus-within .person__figure { transform: translateY(-8px); }
  .person:hover .person__frame, .person:focus-within .person__frame { box-shadow: 0 30px 50px -24px rgba(200, 16, 46, 0.5); }
  .person:hover .person__frame::before, .person:focus-within .person__frame::before { opacity: 1; }
  .person:hover .person__frame::after, .person:focus-within .person__frame::after { transform: rotate(90deg); }
  .person:hover .person__media::after, .person:focus-within .person__media::after { opacity: 1; }
  .person:hover .person__photo, .person:focus-within .person__photo { transform: scale(1.06); filter: none; }
  .person:hover .person__initials, .person:focus-within .person__initials { transform: translateY(-10px); border-color: rgba(255, 255, 255, 0.7); }
  .person:hover .person__avatar::after, .person:focus-within .person__avatar::after { border-color: var(--c-red-on-dark); background: var(--c-red); }
  .person--row:hover .person__initials, .person--feature:hover .person__initials,
  .person--row:focus-within .person__initials, .person--feature:focus-within .person__initials { transform: translateY(-4px); }
}
@media not ((hover: hover) and (pointer: fine)) {
  .person__frame:has(+ .person__links) .person__media::after { opacity: 0.85; }
}

/* Inline links: under the name in the people tree, always visible. */
.person__links--inline { position: static; justify-content: flex-start; gap: 6px; margin-top: 16px; }
.person__links--inline .person__link {
  width: 34px; height: 34px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-soft);
  box-shadow: none;
}
.person__links--inline .person__link .icon { width: 16px; height: 16px; }
.person__links--inline .person__link:hover { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }

/* Horizontal cards for the head of the lab (feature) and the other professors (row). */
.person--feature, .person--row, .person--compact {
  flex-direction: row;
  align-items: center;
  height: auto;
  background: #fff;
  transition: box-shadow 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.4s ease;
}
.person--feature, .person--row { gap: 24px; padding: 20px 26px 20px 20px; border-radius: 14px; box-shadow: 0 18px 40px -20px rgba(28, 28, 31, 0.28); }
.person--feature .person__figure, .person--row .person__figure { flex: none; width: 112px; }
.person--feature .person__figure { width: 148px; }
.person--feature .person__media, .person--row .person__media, .person--compact .person__media { aspect-ratio: 1; }
.person--feature .person__body, .person--row .person__body, .person--compact .person__body { min-width: 0; padding: 0; }
.person--feature .person__role, .person--row .person__role { order: -1; margin: 0 0 10px; }
.person--feature .person__role { color: var(--c-red); }
.person--feature .person__name { font-size: clamp(1.3rem, 2vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; }
.person--row .person__name { font-size: 1.1875rem; }
.person--feature .person__initials, .person--row .person__initials { width: 52%; font-size: 1.5rem; }
.person--feature .person__avatar::after, .person--row .person__avatar::after { width: 10px; height: 10px; margin: 2px 0 0 2px; border-radius: 3px; }
@media (hover: hover) {
  .person--feature:hover, .person--row:hover, .person--feature:focus-within, .person--row:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 28px 50px -22px rgba(28, 28, 31, 0.36);
  }
}

/* A member of a group: a compact node card. */
.person--compact { height: 100%; gap: 16px; padding: 14px 16px 14px 14px; border: 1px solid #e3e3e8; border-radius: 12px; }
.person--compact .person__figure { flex: none; width: 56px; }
.person--compact .person__frame { padding: 1.5px; border-radius: 17px; box-shadow: none; }
.person--compact .person__media { border-radius: 15.5px; }
.person--compact .person__frame::after { top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 3px; box-shadow: 0 0 0 3px var(--halo); }
.person--compact .person__avatar::before, .person--compact .person__avatar::after, .person--compact .person__initials::before { display: none; }
.person--compact .person__initials {
  width: 100%; height: 100%;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 1.0625rem;
}
.person--compact .person__name { font-size: 1rem; line-height: 1.35; letter-spacing: -0.01em; }
.person--compact .person__role { margin-top: 4px; letter-spacing: 0.08em; }
.person--compact .person__role::before { display: none; }
.person--compact .person__links--inline { gap: 4px; margin-top: 10px; }
.person--compact .person__links--inline .person__link { width: 30px; height: 30px; border-radius: 9px; }
.person--compact .person__links--inline .person__link .icon { width: 15px; height: 15px; }
@media (hover: hover) {
  .person--compact:hover, .person--compact:focus-within { border-color: transparent; box-shadow: 0 16px 34px -16px rgba(28, 28, 31, 0.32); transform: translateY(-3px); }
  .person--compact:hover .person__initials, .person--compact:focus-within .person__initials { transform: none; }
}

/* ------------------------------------------------------------------ people page: the lab as a tree */
.section-head--center { display: grid; justify-items: center; text-align: center; }
.section-head--center .eyebrow::after { content: ""; flex: none; width: 28px; height: 2px; background: currentColor; }
.jump { margin-top: 32px; }
.jump__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Semantic nested lists; every connector is a pseudo-element in the line colour. The tree shows how the lab is
   organised by group, not who advises whom, so groups hang from the trunk, never from a professor. */
.tree {
  --line: #cdcdd4;
  --drop: 44px;
  --gap-x: 24px;
  --spine: 120px;
  max-width: var(--container);
  margin-inline: auto;
}
.tree__root { display: flex; flex-direction: column; align-items: center; }
.tree__head { position: relative; z-index: 1; width: min(100%, 540px); }
/* Where the trunk leaves the head: a red node, the one accent of the tree. */
.tree__head::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -7px;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 4px;
  background: var(--c-red);
  box-shadow: 0 0 0 4px var(--c-soft);
}
.tree--headless .tree__branches { padding-top: 0; }
.tree--headless .tree__branches::before, .tree--headless .tree__branches::after { display: none; }
.tree__tier { position: relative; width: 100%; }
.tree__tier > li { position: relative; }

/* Tier 2: the other professors, on either side of the trunk. */
.tree__faculty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--spine) minmax(0, 1fr);
  row-gap: 28px;
  padding-top: var(--drop);
}
.tree__faculty::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--line); }
.tree__faculty:last-child::before { bottom: auto; height: var(--drop); }
.tree__faculty > li { grid-column: 1; justify-self: end; width: min(100%, 420px); }
.tree__faculty > li:nth-child(even) { grid-column: 3; justify-self: start; }
.tree__faculty > li::before {
  content: "";
  position: absolute;
  top: 50%; left: 100%;
  width: calc(var(--spine) / 2);
  height: 2px;
  margin-top: -1px;
  background: var(--line);
}
.tree__faculty > li:nth-child(even)::before { left: auto; right: 100%; }
.tree__faculty > li::after {
  content: "";
  position: absolute;
  top: 50%; left: calc(100% + var(--spine) / 2 - 6px);
  width: 12px; height: 12px;
  margin-top: -6px;
  border-radius: 4px;
  background: var(--c-ink);
  box-shadow: 0 0 0 4px var(--c-soft);
}
.tree__faculty > li:nth-child(even)::after { left: auto; right: calc(100% + var(--spine) / 2 - 6px); }

/* Tier 3: one branch per group, sharing a 12-column row by size, on a bus below the trunk. */
.tree__branches {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap-x);
  padding-top: calc(var(--drop) * 2);
}
.tree__branches::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: var(--drop); margin-left: -1px; background: var(--line); }
.tree__branches:not(.tree__branches--single)::after {
  content: "";
  position: absolute;
  left: 50%; top: var(--drop);
  width: 12px; height: 12px;
  margin: -5px 0 0 -6px;
  border-radius: 4px;
  background: var(--c-ink);
  box-shadow: 0 0 0 4px var(--c-soft);
}
.tree__branch { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.tree__branch::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--drop));
  left: calc(var(--gap-x) / -2); right: calc(var(--gap-x) / -2);
  height: 2px;
  background: var(--line);
}
.tree__branch:first-child::before { left: 50%; }
.tree__branch:last-child::before { right: 50%; }
.tree__branches--single .tree__branch::before { display: none; }
.tree__branch::after { content: ""; position: absolute; top: calc(-1 * var(--drop)); left: 50%; width: 2px; height: var(--drop); margin-left: -1px; background: var(--line); }
.tree__branch--span-2 { grid-column: span 2; }
.tree__branch--span-3 { grid-column: span 3; }
.tree__branch--span-4 { grid-column: span 4; }
.tree__branch--span-5 { grid-column: span 5; }
.tree__branch--span-6 { grid-column: span 6; }
.tree__branch--span-7 { grid-column: span 7; }
.tree__branch--span-8 { grid-column: span 8; }
.tree__branch--span-9 { grid-column: span 9; }
.tree__branch--span-10 { grid-column: span 10; }
.tree__branch--span-11 { grid-column: span 11; }
.tree__branch--span-12 { grid-column: span 12; }

.tree__hub {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 11px 12px 11px 20px;
  border-radius: 14px;
  background: var(--c-ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  box-shadow: 0 16px 30px -14px rgba(28, 28, 31, 0.55);
}
.tree__hub-count {
  flex: none;
  min-width: 32px;
  padding: 3px 10px;
  border-radius: 9px;
  background: var(--c-red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
}
.tree__members {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #e0e0e6;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
}
.tree__members::before { content: ""; position: absolute; left: 50%; top: -29px; width: 2px; height: 28px; margin-left: -1px; background: var(--line); }
.tree__member { min-width: 0; }

/* ------------------------------------------------------------------ people page: alumni */
.alumni__head { margin-bottom: clamp(36px, 4vw, 52px); }
.alumni__total { margin: 0; color: var(--c-mid); font-size: 1rem; }
.alumni__total-value { margin-right: 6px; color: var(--c-ink); font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.alumni__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 48px; align-items: start; }
.alumni__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-ink);
  font-size: 1.125rem;
  font-weight: 600;
}
.alumni__title .icon { color: var(--c-red); }
.alumni__count {
  margin-left: auto;
  padding: 1px 10px;
  border-radius: var(--pill);
  background: var(--c-soft);
  color: var(--c-mid);
  font-family: var(--font-body);
  font-size: 0.8125rem;
}
.alumni__person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.9875rem;
  line-height: 1.5;
}
.alumni__role { color: var(--c-mid); font-size: 0.875rem; }
.alumni__links { display: inline-flex; gap: 4px; margin-left: auto; }
.alumni__link { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--c-mid); transition: var(--t); }
.alumni__link .icon { width: 16px; height: 16px; }
.alumni__link:hover { background: var(--c-ink); color: #fff; }

/* ------------------------------------------------------------------ publications */
.pub { position: relative; }
.pub__date {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 64px; height: 64px;
  flex: none;
  margin: 0;
  border-radius: var(--radius);
  background: var(--c-red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}
.pub__date--undated { background: var(--c-ink); }
.pub__date--undated::after {
  content: "";
  position: absolute;
  top: 7px; right: 7px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--c-red-on-dark);
}
.pub__abbr { font-size: 1.5rem; }
.pub__nd {
  margin-top: 6px;
  color: var(--c-on-dark-muted);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pub__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.45; letter-spacing: -0.005em; text-wrap: pretty; }
.pub__title a { text-decoration: none; transition: color 0.3s ease; }
.pub__title a:hover { color: var(--c-red); text-decoration: underline; text-decoration-thickness: 1px; }
.pub__ext {
  position: absolute;
  top: 24px; right: 24px;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-red);
  transition: var(--t);
}
.pub__ext .icon { width: 18px; height: 18px; transition: transform 0.4s ease; }
.pub:hover .pub__ext { background: var(--c-red); color: #fff; }
.pub:hover .pub__ext .icon { transform: translate(1px, -1px); }
.pub__authors { margin: 8px 0 0; color: var(--c-mid); font-size: 0.9375rem; line-height: 1.6; }
.pub__venue { margin: 4px 0 0; color: var(--c-mid); font-size: 0.9375rem; font-style: italic; line-height: 1.6; }
.pub__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 16px 0 0;
  color: var(--c-mid);
  font-size: 0.875rem;
  line-height: 1.5;
}
.pub__doi { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pub__doi abbr { font-weight: 600; color: var(--c-ink); letter-spacing: 0.04em; }

.pub-list { display: grid; gap: 14px; }
.pub-list__year {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pub-list__year::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.pub-list__year:first-child { margin-top: 0; }
.pub-list .pub__date { background: var(--c-ink); transition: var(--t); }
.pub-list .pub__date:not(.pub__date--undated)::after {
  content: "";
  position: absolute;
  top: 7px; right: 7px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--c-red-on-dark);
  transition: var(--t);
}
.pub-list .pub:hover .pub__date, .pub-list .pub:focus-within .pub__date { background: var(--c-red); }
.pub-list .pub:hover .pub__date::after, .pub-list .pub:focus-within .pub__date::after { background: #fff; }
.pub-list .pub:hover .pub__nd, .pub-list .pub:focus-within .pub__nd { color: #fff; }
.pub__alt { color: var(--c-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-field); position: relative; z-index: 1; }
.pub__alt:hover { color: var(--c-red); text-decoration-color: currentColor; }
.band--dark .pub__alt { color: var(--c-on-dark); }
.pub__authors, .pub__venue { text-wrap: pretty; }
.pub-list .pub {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 80px 26px 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  transition: var(--t);
}
.pub-list .pub:hover, .pub-list .pub:focus-within { border-color: transparent; box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.pub-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pub-cards > li { display: flex; flex-direction: column; }
.pub-cards .pub {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--c-ink-3);
  border-radius: var(--radius);
  background: var(--c-ink-2);
  transition: var(--t);
}
.pub-cards .pub__body { display: flex; flex-direction: column; flex: 1; }
.pub-cards .pub__title { font-size: 1.125rem; color: #fff; }
.pub-cards .pub__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.pub-cards .pub__title a:hover { color: #fff; text-decoration: none; }
.pub-cards .pub__title a:focus-visible { outline: none; }
.pub-cards .pub__title a:focus-visible::after { outline: 3px solid #fff; outline-offset: 3px; }
.pub-cards .pub__ext { top: 32px; right: 32px; width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; }
.pub-cards .pub:hover .pub__ext { background: var(--c-red); border-color: var(--c-red); }
.pub-cards .pub__authors, .pub-cards .pub__venue, .pub-cards .pub__meta { color: var(--c-on-dark-muted); }
.pub-cards .pub__meta { margin-top: auto; padding-top: 18px; }
.pub-cards .pub__doi { display: none; }
.pub-cards .pub:hover, .pub-cards .pub:focus-within {
  transform: translateY(-10px);
  border-color: rgba(255, 90, 110, 0.55);
  box-shadow: var(--shadow-dark);
}
.pub-cards .pub:hover .pub__title { color: #fff; }
.pub-cards .pub__date--undated { background: var(--c-ink-3); }
.band--dark .badge { background: transparent; border-color: rgba(255, 255, 255, 0.24); color: var(--c-on-dark); }
.band--dark .badge--journal { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.band--dark .pub__doi abbr { color: var(--c-on-dark); }

.pubs-page__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.filters-panel { position: sticky; top: calc(var(--header-h-compact) + 24px); }
.filters {
  display: grid;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.filters__field { margin: 0; padding: 0; border: 0; min-width: 0; }
.filters__label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  color: var(--c-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.filters__input {
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 1.5px solid var(--c-field);
  border-radius: var(--radius);
  background: #fff;
  color: var(--c-ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.filters__input::placeholder { color: var(--c-mid); opacity: 1; }
.filters__input:hover { border-color: var(--c-ink); }
.filters__input:focus { border-color: var(--c-ink); box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12); outline: none; }
.filters__input:focus-visible { outline: 3px solid var(--c-red); outline-offset: 2px; }
.filters__search { position: relative; }
.filters__search .filters__input { padding-left: 44px; }
.filters__search-icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--c-mid); pointer-events: none; }
.filters__select { position: relative; }
.filters__select::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--c-ink);
  border-bottom: 2px solid var(--c-ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.filters__select .filters__input { appearance: none; padding-right: 44px; cursor: pointer; }
.type-options { display: grid; gap: 8px; }
.type-option { position: relative; display: block; cursor: pointer; }
.type-option__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.type-option__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px 8px 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--t);
}
.type-option:hover .type-option__box { border-color: var(--c-ink); }
.type-option__count {
  flex: none;
  min-width: 36px;
  padding: 1px 8px;
  border-radius: var(--pill);
  background: var(--c-soft);
  color: var(--c-mid);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  transition: var(--t);
}
.type-option__input:checked + .type-option__box { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.type-option__input:checked + .type-option__box .type-option__count { background: rgba(255, 255, 255, 0.14); color: #fff; }
.type-option__input:focus-visible + .type-option__box { outline: 3px solid var(--c-red); outline-offset: 3px; }
.filters__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.filters__submit { flex: 1; }

.results__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 20px;
}
.results__title { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; }
.results__count { color: var(--c-red); }
.results__range { margin: 0; color: var(--c-mid); font-size: 0.9375rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 24px; }
.active-filters__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--pill);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}
.active-filters__item .icon { width: 16px; height: 16px; color: var(--c-red); }

.pagination { margin-top: 48px; }
.pagination__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination__link, .pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--pill);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.pagination__link { border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); transition: var(--t); }
.pagination__link .icon { width: 18px; height: 18px; }
.pagination__link:hover { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.pagination__link[aria-current="page"] { border-color: var(--c-red); background: var(--c-red); color: #fff; }
.pagination__link--step { padding: 0 18px; }
.pagination__ellipsis { min-width: 24px; padding: 0; color: var(--c-mid); }

/* ------------------------------------------------------------------ news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.news-grid > li { display: flex; flex-direction: column; }
.news-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: var(--t);
}
.news-card:hover, .news-card:focus-within { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.news-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-ink); }
.news-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-card__image { transform: scale(1.05); }
.news-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.4);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1.2px, transparent 1.7px) 0 0 / 18px 18px,
    radial-gradient(90% 90% at 80% 10%, rgba(200, 16, 46, 0.35), transparent 60%),
    var(--c-ink);
}
.news-card__placeholder .icon { width: 44px; height: 44px; }
.date-block {
  position: absolute;
  left: 16px; top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: var(--radius);
  background: var(--c-red);
  color: #fff;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.date-block__day { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; }
.date-block__month { margin-top: 5px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.news-card__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 26px 28px 28px; }
.news-card__meta { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--c-mid); font-size: 0.875rem; }
.news-card__meta .icon { width: 16px; height: 16px; color: var(--c-red); }
.news-card__title { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.news-card__link { text-decoration: none; }
.news-card__link::after { content: ""; position: absolute; inset: 0; }
.news-card__link:focus-visible { outline: none; }
.news-card__link:focus-visible::after { outline: 3px solid var(--c-red); outline-offset: -3px; border-radius: var(--radius); }
.news-card:hover .news-card__link { color: var(--c-red); }
.news-card__text { margin: 0; color: var(--c-mid); font-size: 0.975rem; line-height: 1.65; }
.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--c-red);
  font-size: 0.9375rem;
  font-weight: 600;
}
.news-card__more .icon { width: 16px; height: 16px; transition: transform 0.4s ease; }
.news-card:hover .news-card__more .icon { transform: translateX(4px); }

.news-article__date { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--c-mid); font-weight: 500; }
.news-article__date .icon { color: var(--c-red); }
.news-article__image { width: 100%; aspect-ratio: 16 / 9; max-height: 460px; object-fit: cover; margin-bottom: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.news-article__summary { margin-bottom: 28px; font-size: 1.3125rem; line-height: 1.6; font-weight: 500; }
.news-article__body { font-size: 1.125rem; }
.news-article__back { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--c-line); }

/* ------------------------------------------------------------------ home: end band + CTA */
.news-home { margin-bottom: var(--section-pad); }
.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: clamp(36px, 5.5vw, 72px);
  border-radius: var(--radius);
  background: var(--c-ink);
  box-shadow: 0 30px 60px rgba(28, 28, 31, 0.2);
}
.cta-card__decor {
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(520px 320px at 92% 110%, rgba(200, 16, 46, 0.32), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1.2px, transparent 1.7px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3), #000 60%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3), #000 60%);
}
.cta-card__address { margin: 20px 0 0; color: var(--c-on-dark-muted); }
.cta-card__actions { justify-self: end; display: grid; gap: 28px; }
.cta-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: var(--t);
}
.cta-card__phone span { white-space: nowrap; }
.cta-card__phone .icon {
  width: 56px; height: 56px;
  padding: 16px;
  border-radius: 16px;
  background: var(--c-red);
  color: #fff;
  transition: var(--t);
}
.cta-card__phone:hover { color: var(--c-red-on-dark); }
.cta-card__phone:hover .icon { transform: rotate(-8deg); }
.cta-card__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ inner page header */
.page-header {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 8.5vw, 108px);
  background: var(--c-ink);
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 360px at 78% 50%, rgba(200, 16, 46, 0.12), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.065) 1.2px, transparent 1.7px) 0 0 / 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35), #000 70%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35), #000 70%);
}
.page-header__decor {
  top: 50%;
  right: max(-24px, calc((100vw - var(--container)) / 2 - 40px));
  width: min(520px, 46vw);
  transform: translateY(-50%);
}
.page-header__inner { position: relative; }
.page-header__title {
  max-width: 18ch;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}
.page--news-detail .page-header__title { max-width: 24ch; font-size: clamp(2rem, 4vw, 3rem); }
.page-header__lead { max-width: 36rem; margin: 20px 0 0; color: var(--c-on-dark-muted); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.crumbs { margin-bottom: 20px; }
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.crumbs__list::before { content: ""; width: 28px; height: 2px; margin-right: 2px; background: var(--c-red-on-dark); }
.crumbs__list li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs__list li + li::before { content: ""; width: 5px; height: 5px; border-radius: 1.5px; background: var(--c-on-dark-muted); opacity: 0.6; }
.crumbs a { color: var(--c-on-dark-muted); text-decoration: none; transition: color 0.3s ease; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--c-red-on-dark); }

.ph-graph { width: 100%; height: auto; }
.ph-graph__rings circle { fill: none; stroke: rgba(255, 255, 255, 0.06); }
.ph-graph__rings .ph-graph__dash { stroke: rgba(255, 255, 255, 0.13); stroke-dasharray: 2 9; }
.ph-graph__edges path { fill: none; stroke: #3d3d45; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ph-graph__edges .ph-graph__thin { stroke: #55555e; stroke-width: 2.5; }
.ph-graph__nodes rect { fill: #232327; stroke: #6e6e78; stroke-width: 5; }
.ph-graph__nodes .ph-graph__hub { fill: #28282e; stroke: #d4d4da; stroke-width: 6; }
.ph-graph__red { fill: var(--c-red); }
.ph-graph__dot { fill: #6e6e78; }
.ph-graph__icon { color: #f2f2f5; }

/* ------------------------------------------------------------------ history */
.timeline { position: relative; max-width: 1080px; margin-inline: auto; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent, var(--c-line) 4%, var(--c-line) 96%, transparent);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  align-items: center;
}
.timeline__item + .timeline__item { margin-top: clamp(16px, 2vw, 24px); }
.timeline__node {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  position: relative;
  z-index: 1;
  width: 22px; height: 22px;
  border: 4px solid var(--c-ink);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 0 0 8px #fff;
}
.timeline__item:last-child .timeline__node { border-color: var(--c-red); background: var(--c-red); }
.timeline__period {
  grid-row: 1;
  grid-column: 3;
  justify-self: start;
  margin: 0;
  color: var(--c-ink);
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: color 0.4s ease;
}
.timeline__item:last-child .timeline__period, .timeline__item:hover .timeline__period { color: var(--c-red); }
.timeline__card {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: var(--t);
}
.timeline__card::before {
  content: "";
  position: absolute;
  top: 50%; right: -8px;
  width: 14px; height: 14px;
  margin-top: -7px;
  border-top: 1px solid var(--c-line);
  border-right: 1px solid var(--c-line);
  background: #fff;
  transform: rotate(45deg);
}
.timeline__item:nth-child(even) .timeline__card { grid-column: 3; }
.timeline__item:nth-child(even) .timeline__card::before { right: auto; left: -8px; transform: rotate(-135deg); }
.timeline__item:nth-child(even) .timeline__period { grid-column: 1; justify-self: end; }
.timeline__item:hover .timeline__card { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.timeline__item:hover .timeline__node { border-color: var(--c-red); }
.timeline__image {
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s ease;
  flex: none;
  width: 104px; height: 104px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--c-line);
}
.timeline__item:hover .timeline__image { filter: none; }
.timeline__content { min-width: 0; }
.history-end { display: grid; justify-items: center; margin: clamp(40px, 5vw, 64px) 0 0; }
.history-end__logo { width: 180px; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.timeline__title { margin-bottom: 8px; font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.timeline__text { color: var(--c-mid); font-size: 1rem; line-height: 1.65; }

/* ------------------------------------------------------------------ contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact .section-head { margin-bottom: 36px; }
.contact__department { margin: 16px 0 0; color: var(--c-mid); font-size: 1.0625rem; }
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  transition: var(--t);
}
.contact-item:hover { border-color: transparent; box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.contact-item__icon {
  display: grid; place-items: center;
  flex: none;
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--c-red);
  color: #fff;
}
.contact-item__label { margin: 0 0 4px; color: var(--c-mid); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-item__value { color: var(--c-ink); font-size: 1.0625rem; line-height: 1.6; }
.contact-item__link { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; text-decoration: none; transition: color 0.3s ease; }
.contact-item__link:hover { color: var(--c-red); text-decoration: underline; }
.contact__elsewhere { margin-top: 36px; }
.contact__subtitle { margin-bottom: 14px; font-size: 1.125rem; font-weight: 600; }
.contact__social { display: flex; flex-wrap: wrap; gap: 10px; }

.map-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-ink);
  color: var(--c-on-dark);
  box-shadow: 0 30px 60px rgba(28, 28, 31, 0.18);
  --focus: #fff;
}
.map-card__art { position: relative; display: grid; place-items: center; padding: 28px; background: #fff; }
.map-card__logo { width: min(100%, 300px); height: auto; }
.map-card__body { display: grid; gap: 20px; justify-items: start; padding: 28px 32px 32px; }
.map-card__title { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--c-on-dark); font-weight: 500; line-height: 1.5; }
.map-card__title .icon { color: var(--c-red-on-dark); }

/* ------------------------------------------------------------------ footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 9vw, 104px);
  background: var(--c-ink);
  color: var(--c-on-dark-muted);
  font-size: 0.975rem;
}
.site-footer__decor { top: -560px; right: -480px; }
.site-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.25fr);
  gap: 48px 40px;
  padding-bottom: clamp(56px, 7vw, 80px);
}
.brand--footer .brand__logo { height: 40px; }
.site-footer__text { max-width: 22rem; margin: 22px 0 0; line-height: 1.7; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.site-footer__title {
  position: relative;
  margin-bottom: 26px;
  padding-bottom: 14px;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
}
.site-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--c-red-on-dark); }
.site-footer__links { display: grid; gap: 12px; }
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  color: var(--c-on-dark-muted);
  text-decoration: none;
  transition: var(--t);
}
.site-footer__links a::before {
  content: "";
  width: 0; height: 2px;
  margin-right: 0;
  background: var(--c-red-on-dark);
  transition: var(--t);
}
.site-footer__links a:hover { color: #fff; }
.site-footer__links a:hover::before { width: 12px; margin-right: 10px; }
.site-footer__all { gap: 8px; white-space: nowrap; color: var(--c-on-dark) !important; font-weight: 600; }
.site-footer__all .icon { width: 16px; height: 16px; color: var(--c-red-on-dark); }
.site-footer__all::before { display: none; }
.site-footer__contact { display: grid; gap: 14px; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: 12px; }
.site-footer__contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--c-red-on-dark); }
.site-footer__contact a { color: var(--c-on-dark); text-decoration: none; transition: color 0.3s ease; }
.site-footer__contact a:hover { color: var(--c-red-on-dark); text-decoration: underline; }
.site-footer__bar { position: relative; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); background: var(--c-ink-deep); font-size: 0.875rem; }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.site-footer__bar p { margin: 0; }
.site-footer__top { display: inline-flex; align-items: center; gap: 8px; color: var(--c-on-dark); font-weight: 600; text-decoration: none; }
.site-footer__top .icon { width: 16px; height: 16px; color: var(--c-red-on-dark); transition: transform 0.4s ease; }
.site-footer__top:hover .icon { transform: translateY(-3px); }

/* ------------------------------------------------------------------ error pages */
.error-page { padding-block: clamp(72px, 11vw, 140px); }
.error-page__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.err-graph { width: 100%; max-width: 440px; height: auto; margin-inline: auto; }
.err-graph__edges path { fill: none; stroke: #d4d4da; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.err-graph__edges .err-graph__broken { stroke: var(--c-red); stroke-width: 3; stroke-dasharray: 4 9; }
.err-graph__node { fill: #fff; stroke: var(--c-ink); stroke-width: 5; }
.err-graph__hub { fill: var(--c-ink); }
.err-graph__missing { fill: none; stroke: var(--c-red); stroke-width: 3; stroke-dasharray: 6 7; }
.err-graph__code { fill: #fff; font-family: var(--font-head); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.error-page__title { margin-bottom: 16px; font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.error-page__text { max-width: 36rem; color: var(--c-mid); font-size: 1.125rem; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.error-page__nav ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 32px 0 0; border-top: 1px solid var(--c-line); list-style: none; }

.page--fatal { padding-top: 0; background: var(--c-ink); }
.fatal { position: relative; display: grid; align-items: center; min-height: 100vh; min-height: 100dvh; padding-block: 64px; background: var(--c-ink); overflow: hidden; }
.fatal__decor {
  inset: 0;
  background:
    radial-gradient(600px 400px at 80% 30%, rgba(200, 16, 46, 0.16), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1.2px, transparent 1.7px) 0 0 / 28px 28px;
}
.fatal__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.fatal__brand { display: flex; align-items: center; gap: 14px; width: fit-content; margin-bottom: 56px; color: #fff; text-decoration: none; }
.fatal .eyebrow { display: flex; width: fit-content; }
.err-graph--dark .err-graph__edges path { stroke: #4a4a53; }
.err-graph--dark .err-graph__edges .err-graph__broken { stroke: var(--c-red-on-dark); }
.err-graph--dark .err-graph__node { fill: #232327; stroke: #d4d4da; }
.err-graph--dark .err-graph__hub { fill: #2a2a30; stroke: #f2f2f5; stroke-width: 5; }
.err-graph--dark .err-graph__missing { stroke: var(--c-red-on-dark); }
@media (max-width: 767px) {
  .fatal__inner { grid-template-columns: minmax(0, 1fr); }
  .fatal__art { display: none; }
}
.fatal__title { margin-bottom: 18px; color: #fff; font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.fatal__text { max-width: 32rem; margin-bottom: 36px; color: var(--c-on-dark-muted); font-size: 1.125rem; }

/* ------------------------------------------------------------------ reveal on scroll (only with JS and motion allowed) */
/* Movement only: colours never fade, so text keeps its contrast at every frame. */
.motion [data-reveal] { transform: translateY(36px); transition: transform 0.9s cubic-bezier(0.16, 0.8, 0.24, 1); }
.motion [data-reveal].is-visible { transform: none; }
.motion li[data-reveal]:nth-child(3n + 2) { transition-delay: 0.08s; }
.motion li[data-reveal]:nth-child(3n + 3) { transition-delay: 0.16s; }
.motion .team-grid > li[data-reveal]:nth-child(4n + 1) { transition-delay: 0s; }
.motion .team-grid > li[data-reveal]:nth-child(4n + 2) { transition-delay: 0.06s; }
.motion .team-grid > li[data-reveal]:nth-child(4n + 3) { transition-delay: 0.12s; }
.motion .team-grid > li[data-reveal]:nth-child(4n + 4) { transition-delay: 0.18s; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1199px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__col--about { grid-column: 1 / -1; }
}
@media (max-width: 1099px) {
  .pubs-page__grid { grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
  .filters { padding: 24px 22px; }
}
@media (max-width: 959px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { position: relative; z-index: 1; }
  .decor-dots--about, .motion-toggle { display: none; }
  .hero__inner { position: relative; }
  .hero__art { position: absolute; top: -8px; right: -120px; z-index: 0; width: 340px; margin: 0; opacity: 0.22; pointer-events: none; }
  .hero__art * { animation: none !important; }
  .hero__art .hg__signal, .hero__art .hg__pulse { display: none; }
  .hero__text { max-width: 36rem; }
  .stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__item:nth-child(odd)::before { display: none; }
  .stats__item:nth-child(n + 3) { border-top: 1px solid var(--c-line); }
  .stats__item + .stats__item::before { top: 20%; bottom: 20%; }
  .about__grid, .research-intro { grid-template-columns: minmax(0, 1fr); }
  .about__body { padding-left: 20px; }
  .research-grid, .pub-cards, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-item--wide { grid-template-columns: minmax(0, 1fr); }
  .pub-cards > li:last-child:nth-child(odd), .news-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pubs-page__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .filters-panel { position: static; }
  .filters { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; padding: 20px; }
  .filters__field:first-child, .filters__types { grid-column: 1 / -1; }
  .filters__types { order: 1; }
  .filters { align-items: end; }
  .filters__actions { flex-wrap: wrap; }
  .filters__label { margin-bottom: 8px; }
  .type-options {
    display: flex;
    gap: 8px;
    margin: 0 -20px;
    padding: 2px 20px 6px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-inline: 20px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }
  .type-options::-webkit-scrollbar { display: none; }
  .type-option { flex: none; }
  .type-option__box { min-height: 42px; border-radius: var(--pill); padding: 6px 8px 6px 16px; white-space: nowrap; }
  .filters:has(.btn--ghost) .filters__field, .filters__actions:has(.btn--ghost) { grid-column: 1 / -1; }
  .filters__actions .btn { flex: 1 1 auto; white-space: nowrap; }
  .cta-card { grid-template-columns: minmax(0, 1fr); }
  .cta-card__actions { justify-self: start; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .error-page__inner { grid-template-columns: minmax(0, 1fr); }
  .err-graph { max-width: 320px; margin-inline: 0; }
  .timeline { max-width: 640px; }
  .timeline::before { left: 11px; }
  .timeline__item { grid-template-columns: 22px minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .timeline__item + .timeline__item { margin-top: 40px; }
  .timeline__node { grid-column: 1; grid-row: 1; margin-top: 8px; }
  .timeline__period, .timeline__item:nth-child(even) .timeline__period { grid-column: 2; grid-row: 1; justify-self: start; margin-bottom: 14px; padding: 6px 16px; font-size: 1rem; }
  .timeline__card, .timeline__item:nth-child(even) .timeline__card { grid-column: 2; grid-row: 2; }
  .timeline__card::before, .timeline__item:nth-child(even) .timeline__card::before { display: none; }
}
@media (max-width: 767px) {
  .page-header__decor { display: none; }
  .research-grid, .pub-cards, .news-grid { grid-template-columns: minmax(0, 1fr); }
  .research-card { min-height: 0; flex-direction: row; align-items: center; gap: 20px; padding: 24px 56px 24px 22px; }
  .research-card__icon { width: 56px; height: 56px; }
  .research-card__icon .icon { width: 24px; height: 24px; }
  .research-card__title { margin-top: 0; font-size: 1.125rem; }
  .research-card__title::after { display: none; }
  .research-card::before { top: 50%; right: 22px; transform: translateY(-50%); }
  .research-card:hover, .research-card:focus-within { transform: translateY(-4px); }
  .research-card--link { padding-right: 76px; }
  .research-card--link::before { display: none; }
  .research-card__go { top: 50%; bottom: auto; right: 20px; margin-top: -20px; }
  .research-card--link:hover .research-card__go, .research-card--link:focus-within .research-card__go { transform: translateX(3px); }
  .research-grid--page .research-card { padding: 22px 56px 22px 22px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-list .pub { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 20px; }
  .pub-list .pub__date { width: auto; height: auto; min-height: 34px; justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 0.9375rem; }
  .pub-list .pub__date::after, .pub-list .pub__date:not(.pub__date--undated)::after, .pub-list .pub__abbr { display: none; }
  .pub-list .pub__nd { margin: 0; }
  .pub-cards .pub { padding: 26px 24px; }
  .timeline__card { flex-direction: column; gap: 18px; padding: 22px; }
  .timeline__image { width: 72px; height: 72px; }
  .site-footer__grid { gap: 40px 24px; }
  .site-footer__col--about, .site-footer__grid > :last-child { grid-column: 1 / -1; }
  .site-footer__bar-inner { flex-direction: column; align-items: flex-start; }
  .section-head--split { align-items: flex-start; flex-direction: column; }
  .pagination__step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pagination__link--step { padding: 0; width: 44px; }
  .pagination__list { gap: 6px; }
  .pagination__link { min-width: 40px; height: 40px; padding: 0 10px; }
  .pagination__link--step { width: 40px; }
  .cta-card__buttons .btn { flex: 1 1 auto; }
}
@media (max-width: 479px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .stats__item { padding: 20px 18px; }
  .stats__label { font-size: 0.875rem; }
  .about__links { flex-direction: column; }
  .contact-item { padding: 18px; gap: 16px; }
  .contact-item__icon { width: 44px; height: 44px; border-radius: 13px; }
  .cta-card__phone span { white-space: nowrap; }
.cta-card__phone .icon { width: 48px; height: 48px; padding: 13px; border-radius: 14px; }
}

/* ------------------------------------------------------------------ home: the red bookend */
/* The contact card is the page's one large red moment and straddles the footer, answering the stats card that
   overlaps the hero at the top. White on #c8102e is 5.9:1. */
.page--home .home-end { padding-bottom: 0; }
.page--home .cta-card {
  z-index: 2;
  margin-bottom: calc(-1 * clamp(64px, 8vw, 104px));
  background: var(--c-red);
  box-shadow: 0 30px 60px rgba(200, 16, 46, 0.28);
}
.page--home .site-footer { padding-top: calc(clamp(72px, 9vw, 104px) + clamp(64px, 8vw, 104px)); }
.page--home .cta-card__decor {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1.2px, transparent 1.7px) 0 0 / 22px 22px,
    radial-gradient(520px 320px at 92% 110%, rgba(28, 28, 31, 0.35), transparent 70%);
}
.page--home .cta-card .eyebrow--on-dark, .page--home .cta-card__address { color: #fff; }
.page--home .cta-card .section-title::after {
  background:
    linear-gradient(#fff, #fff) 38px 0 / 8px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)) 0 3px / 32px 2px no-repeat;
}
.page--home .cta-card .btn--primary { background: #fff; border-color: #fff; color: var(--c-ink); }
.page--home .cta-card .btn--primary:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; box-shadow: none; }
.page--home .cta-card .btn--outline-light { border-color: rgba(255, 255, 255, 0.6); }
.page--home .cta-card .btn--outline-light:hover { color: var(--c-red); }
.page--home .cta-card__phone .icon { background: #fff; color: var(--c-red); }
.page--home .cta-card__phone:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------ hero: pause control for the animation */
.motion-toggle {
  position: absolute;
  right: 20px; bottom: -4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--pill);
  background: rgba(28, 28, 31, 0.6);
  color: var(--c-on-dark-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--t);
}
.motion-toggle:hover { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.motion-toggle__icon { position: relative; width: 12px; height: 12px; }
.motion-toggle__icon::before, .motion-toggle__icon::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; border-radius: 1px; background: currentColor; }
.motion-toggle__icon::before { left: 1px; }
.motion-toggle__icon::after { right: 1px; }
.motion-paused .motion-toggle__icon::before {
  left: 2px; width: 0; border-radius: 0; background: none;
  border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor;
}
.motion-paused .motion-toggle__icon::after { display: none; }
.motion-paused .hg, .motion-paused .hg * { animation-play-state: paused !important; }

@media (max-width: 959px) {
  .motion-toggle { display: none; }
}
@media (max-width: 479px) {
  .chip-link { min-height: 40px; padding: 6px 12px; gap: 8px; font-size: 0.875rem; }
  .jump__list { gap: 8px; }
}
@media (max-width: 399px) {
  .filters { grid-template-columns: minmax(0, 1fr); }
  .filters__actions { grid-column: 1 / -1; }
  .cta-card__phone { font-size: 1.3rem; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .type-options { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

/* ------------------------------------------------------------------ people: responsive */
@media (max-width: 1023px) {
  .tree { --spine: 64px; }
  /* On tablets the groups share the row evenly, so a small group still gets readable cards. */
  .tree__branches { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .tree__branch[class*="tree__branch--span-"] { grid-column: auto; }
  .person--feature .person__figure { width: 124px; }
  .person--row { gap: 18px; padding: 16px 20px 16px 16px; }
  .person--row .person__figure { width: 88px; }
  .person--row .person__name { font-size: 1.0625rem; }
}
@media (max-width: 899px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 22px; }
  /* The home preview keeps whole rows: six people at three columns. */
  .team-home .team-grid > li:nth-child(n + 7) { display: none; }
}
@media (max-width: 760px) {
  /* The tree turns vertical: one indented column with the connectors on the left. */
  .tree { --x: 14px; }
  .tree__root { align-items: stretch; }
  .tree__head { width: 100%; }
  .tree__head::after { left: calc(var(--x) + 1px); bottom: -7px; }
  .tree__faculty, .tree__branches { display: block; width: auto; margin-left: var(--x); padding: 0; }
  .tree__faculty::before, .tree__branches::before, .tree__branches:not(.tree__branches--single)::after { display: none; }
  .tree__faculty > li, .tree__branch { --ey: 72px; width: auto; padding: 22px 0 0 30px; }
  .tree__branch { --ey: 45px; display: block; }
  .tree__faculty > li::before, .tree__faculty > li:nth-child(even)::before,
  .tree__branch::before, .tree__branch:first-child::before, .tree__branch:last-child::before, .tree__branches--single .tree__branch::before {
    display: block;
    top: 0; bottom: 0; left: 0; right: auto;
    width: 2px; height: auto;
    margin: 0;
  }
  .tree__faculty > li::after, .tree__faculty > li:nth-child(even)::after, .tree__branch::after {
    top: var(--ey); left: 0; right: auto;
    width: 22px; height: 2px;
    margin: 0;
    border-radius: 0;
    background: var(--line);
    box-shadow: none;
  }
  .tree__root > .tree__tier:last-child > li:last-child::before { bottom: auto; height: calc(var(--ey) + 1px); }
  .person--row { align-items: flex-start; }
  .person--row .person__figure { width: 72px; }
  .person--feature { gap: 18px; padding: 18px; }
  .person--feature .person__figure { width: 96px; }
  .person--feature .person__initials, .person--row .person__initials { font-size: 1.25rem; }
  .tree__hub { display: flex; width: fit-content; padding: 10px 10px 10px 16px; font-size: 0.9375rem; }
  .tree__members { display: block; width: auto; margin: 0 0 0 16px; padding: 12px 0 0; border: 0; border-radius: 0; background: none; }
  .tree__members::before { left: 0; top: 0; height: 12px; margin: 0; }
  .tree__member { position: relative; padding: 10px 0 0 26px; }
  .tree__member::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
  .tree__member::after { content: ""; position: absolute; left: 0; top: 49px; width: 18px; height: 2px; background: var(--line); }
  .tree__member:last-child::before { bottom: auto; height: 50px; }
  .person--compact { align-items: flex-start; gap: 14px; padding: 12px 14px 12px 12px; }
  .person--compact .person__figure { width: 52px; }
}
@media (max-width: 599px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .team-home .team-grid > li:nth-child(n + 7) { display: list-item; }
  .person__body { padding-top: 16px; }
  .person__name { font-size: 1rem; }
  .person__role { gap: 8px; margin-top: 8px; font-size: 0.6875rem; letter-spacing: 0.1em; }
  .person__role::before { width: 12px; }
  .person__links { left: 6px; right: 6px; bottom: 10px; gap: 6px; }
  .person__link { width: 32px; height: 32px; border-radius: 9px; }
  .person__link .icon { width: 16px; height: 16px; }
  .person__frame::after { top: -6px; right: -6px; width: 13px; height: 13px; border-radius: 4px; box-shadow: 0 0 0 3px var(--halo); }
  .person__initials { font-size: 1.5rem; }
}
@media (max-width: 399px) {
  .person__links { gap: 4px; }
  .person__link { width: 30px; height: 30px; }
}

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hg__signal, .hg__pulse, }

/* ------------------------------------------------------------------ print */
@media print {
  body { padding-top: 0; }
  .site-header, .skip-link, .hero__art, .site-footer__decor, .filters-panel, .pagination, .nav-toggle { display: none !important; }
  .band--dark, .hero, .page-header, .site-footer { background: #fff !important; color: #000 !important; }
  .hero__title, .page-header__title, .section-title { color: #000 !important; }
}
