:root {
  color-scheme: dark;
  --ink: #f7f3ea;
  --muted: rgba(247, 243, 234, .68);
  --soft: rgba(247, 243, 234, .48);
  --line: rgba(247, 243, 234, .16);
  --panel: rgba(12, 14, 20, .48);
  --panel-strong: rgba(12, 14, 20, .68);
  --aqua: #52f4d8;
  --coral: #ff6d55;
  --gold: #f6c75e;
  --violet: #8b72ff;
  --topic-color: var(--aqua);
  --topic-soft: rgba(82, 244, 216, .18);
  --night: #0b0d12;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body.modal-open {
  overflow: hidden;
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: .5;
  mix-blend-mode: screen;
}

body::after {
  background:
    radial-gradient(circle at center, transparent 0 44%, rgba(7, 8, 13, .58) 100%),
    linear-gradient(to bottom, rgba(11, 13, 18, .1), rgba(11, 13, 18, .74));
}

a {
  color: inherit;
  text-decoration: none;
}

.site {
  position: relative;
  z-index: 2;
  min-height: 100svh;
}

.shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 13, 18, .54);
  padding: 0 12px 0 16px;
}

.brand,
.badge,
.nav a,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand {
  font-weight: 760;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, .035);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
}

.brand::before,
.badge::before,
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 20px var(--aqua);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .9rem;
}

.nav a,
.action {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 11px;
  border: 1px solid transparent;
}

.nav a:hover,
.action:hover,
.card:hover,
.row:hover {
  border-color: rgba(82, 244, 216, .36);
  background: rgba(255, 255, 255, .06);
}

.signal-strip {
  padding: 8px 0 0;
}

.signal-strip-inner {
  display: flex;
  justify-content: flex-end;
}

.signal-strip-inner p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(.92rem, 1.5vw, 1.05rem);
  line-height: 1.45;
  text-align: right;
  text-wrap: balance;
}

.hero {
  display: grid;
  align-items: center;
  min-height: calc(100svh - 196px);
  padding: clamp(22px, 4vw, 56px) 0 clamp(34px, 5vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}

.hero-aside {
  display: grid;
  gap: 12px;
  align-self: start;
  padding-top: clamp(12px, 4vw, 42px);
}

.badge,
.pill {
  min-height: 34px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  padding: 0 13px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 980px;
  margin-top: 24px;
  font-size: clamp(3.25rem, 9vw, 8.8rem);
  font-weight: 840;
  line-height: .88;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 90px rgba(0, 0, 0, .55);
}

.word {
  display: inline-block;
  background: linear-gradient(115deg, var(--ink), #ffffff 38%, var(--aqua) 54%, var(--gold) 72%, var(--ink));
  background-size: 240% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 8s ease-in-out infinite;
}

.outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 243, 234, .62);
}

.lede {
  max-width: 660px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.36rem);
  line-height: 1.55;
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border-color: var(--line);
  background: rgba(247, 243, 234, .07);
  color: var(--ink);
  font-weight: 660;
}

.action.secondary {
  color: var(--muted);
  background: rgba(12, 14, 20, .34);
}

.side-panel,
.card,
.row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.side-panel {
  padding: 16px;
}

.signal-panel {
  align-self: stretch;
}

.panel-kicker {
  margin-bottom: 12px;
  color: var(--soft);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  display: block;
  min-height: 104px;
  border: 1px solid rgba(247, 243, 234, .12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, .04);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

a.metric:hover {
  border-color: rgba(82, 244, 216, .36);
  background: rgba(255, 255, 255, .065);
  transform: translateY(-2px);
}

.metric strong {
  display: block;
  font-size: clamp(1.45rem, 3.4vw, 2.2rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .9rem;
}

.section {
  padding: clamp(36px, 7vw, 86px) 0;
  scroll-margin-top: 92px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  min-height: 210px;
  padding: 18px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card small,
.row small {
  color: var(--soft);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card h3 {
  margin-top: 16px;
  font-size: 1.45rem;
  line-height: 1.05;
}

.card p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.research-radar {
  display: grid;
  gap: 14px;
}

.radar-panel {
  position: relative;
  min-height: min(72vw, 680px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(247, 243, 234, .055), rgba(12, 14, 20, .5) 58%, rgba(12, 14, 20, .18));
  backdrop-filter: blur(20px);
}

.radar-panel::before,
.radar-panel::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.radar-panel::before {
  width: 1px;
  height: 78%;
  background: linear-gradient(180deg, transparent, rgba(247, 243, 234, .18), transparent);
}

.radar-panel::after {
  width: 78%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 243, 234, .18), transparent);
}

.radar-grid span {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 0;
  border: 1px solid rgba(247, 243, 234, .11);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.radar-grid span:nth-child(1) {
  width: 30%;
  aspect-ratio: 1;
}

.radar-grid span:nth-child(2) {
  width: 52%;
  aspect-ratio: 1;
}

.radar-grid span:nth-child(3) {
  width: 74%;
  aspect-ratio: 1;
}

.radar-axis {
  position: absolute;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--topic-color, var(--ink)) 42%, rgba(247, 243, 234, .1));
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(12, 14, 20, .58);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}

.radar-axis::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--topic-color);
  box-shadow: 0 0 18px var(--topic-soft);
}

.radar-axis strong,
.radar-field-label strong {
  display: block;
  line-height: 1.05;
}

.axis-north {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.axis-east {
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

.axis-south {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.axis-west {
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
}

.radar-field-label {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.radar-field-label small,
.radar-tip small,
.radar-mobile-list small {
  color: var(--soft);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.radar-field-label strong {
  color: color-mix(in srgb, var(--topic-color) 68%, var(--ink));
  font-size: 1rem;
  text-shadow: 0 0 24px var(--topic-soft), 0 2px 18px rgba(0, 0, 0, .42);
}

.radar-blip {
  position: absolute;
  inset: var(--y) auto auto var(--x);
  z-index: 3;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  cursor: help;
  transform: translate(-50%, -50%);
}

.radar-dot {
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: var(--topic-color);
  box-shadow: 0 0 0 5px var(--topic-soft), 0 0 24px var(--topic-color);
}

.radar-blip:hover,
.radar-blip:focus-visible {
  z-index: 5;
  outline: 0;
}

.radar-blip:hover .radar-dot,
.radar-blip:focus-visible .radar-dot {
  box-shadow: 0 0 0 7px var(--topic-soft), 0 0 34px var(--topic-color);
}

.radar-tip {
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: grid;
  gap: 5px;
  width: 260px;
  border: 1px solid color-mix(in srgb, var(--topic-color) 38%, rgba(247, 243, 234, .12));
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  background: rgba(12, 14, 20, .9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease;
}

.radar-tip strong {
  line-height: 1.08;
}

.radar-tip em {
  color: var(--muted);
  font-size: .86rem;
  font-style: normal;
  line-height: 1.32;
}

.radar-blip:hover .radar-tip,
.radar-blip:focus-visible .radar-tip {
  opacity: 1;
  transform: translateY(0);
}

.radar-mobile-list {
  display: none;
}

body .mobile-only-card {
  display: none;
}

.feature-cards {
  margin-bottom: 12px;
}

.featured-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.featured-card,
.article-card {
  border-color: color-mix(in srgb, var(--topic-color) 34%, rgba(247, 243, 234, .12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 0 0 1px rgba(255, 255, 255, .01);
}

.featured-card::before,
.article-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: var(--topic-color);
  box-shadow: 0 0 18px var(--topic-soft);
}

[data-topic-slug="sustainability"] {
  --topic-color: var(--aqua);
  --topic-soft: rgba(82, 244, 216, .2);
}

[data-topic-slug="interculture"] {
  --topic-color: var(--coral);
  --topic-soft: rgba(255, 109, 85, .2);
}

[data-topic-slug="technology-and-learning"] {
  --topic-color: var(--violet);
  --topic-soft: rgba(139, 114, 255, .22);
}

[data-topic-slug="situated-methods"] {
  --topic-color: #f7f3ea;
  --topic-soft: rgba(247, 243, 234, .18);
}

[data-topic-slug="care-and-gender"] {
  --topic-color: #ff8fb7;
  --topic-soft: rgba(255, 143, 183, .2);
}

.teaching-list {
  margin-top: 12px;
}

.writing-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 10px;
  color: var(--soft);
}

.writing-tools p {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sort-menu {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(247, 243, 234, .12);
  border-radius: 999px;
  background: rgba(12, 14, 20, .22);
  backdrop-filter: blur(18px);
}

.sort-menu button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--soft);
  background: transparent;
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}

.sort-menu button:hover,
.sort-menu button.is-active {
  color: var(--ink);
  background: rgba(247, 243, 234, .1);
}

.article-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(254px, 274px);
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 14px;
  border: 1px solid rgba(247, 243, 234, .12);
  border-radius: 8px;
  background: rgba(12, 14, 20, .22);
  backdrop-filter: blur(18px);
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(247, 243, 234, .28) transparent;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 252px;
  border: 1px solid color-mix(in srgb, var(--topic-color) 34%, rgba(247, 243, 234, .12));
  border-radius: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, .035);
  scroll-snap-align: start;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.featured-card:hover,
.article-card:hover {
  border-color: color-mix(in srgb, var(--topic-color) 58%, rgba(247, 243, 234, .16));
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 26px var(--topic-soft);
}

.article-card:hover {
  transform: translateY(-2px);
}

.publication-meta {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.featured-card .publication-meta {
  margin-top: 15px;
}

.article-card .publication-meta {
  margin-top: 14px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border: 1px solid color-mix(in srgb, var(--topic-color) 42%, rgba(247, 243, 234, .12));
  border-radius: 999px;
  padding: 1px 7px 0;
  color: color-mix(in srgb, var(--topic-color) 78%, var(--ink));
  background: color-mix(in srgb, var(--topic-color) 13%, rgba(12, 14, 20, .4));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--topic-color) 10%, transparent);
  letter-spacing: .06em;
  white-space: nowrap;
}

.article-card h3 {
  margin-top: 14px;
  font-size: 1.08rem;
  line-height: 1.14;
}

.article-card h3 .title-subtitle {
  color: var(--muted);
  font-size: .96rem;
  font-weight: 450;
  line-height: 1.22;
}

.article-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

#papers .article-scroll {
  grid-auto-columns: minmax(300px, 330px);
  padding: 12px;
}

#papers .article-card {
  min-height: 170px;
  padding: 13px;
}

#papers .article-card h3 {
  font-size: 1rem;
  line-height: 1.1;
}

#papers .article-card h3 .title-subtitle {
  font-size: .9rem;
}

.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.article-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(247, 243, 234, .13);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  font-size: .82rem;
}

.article-links a:hover {
  border-color: rgba(82, 244, 216, .36);
  color: var(--ink);
  background: rgba(255, 255, 255, .065);
}

.project-card > .tag,
.teaching-card > .tag {
  width: fit-content;
  margin-top: auto;
  padding-top: 0;
}

.row-list {
  display: grid;
  gap: 10px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 16px 18px;
}

.row p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.signal-log {
  max-height: 345px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(12, 14, 20, .24);
  backdrop-filter: blur(18px);
  gap: 12px;
  scrollbar-color: rgba(247, 243, 234, .28) rgba(255, 255, 255, .04);
  scrollbar-width: thin;
}

.signal-log::-webkit-scrollbar {
  width: 9px;
}

.signal-log::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .035);
  border-radius: 999px;
}

.signal-log::-webkit-scrollbar-thumb {
  border: 2px solid rgba(12, 14, 20, .75);
  border-radius: 999px;
  background: rgba(247, 243, 234, .28);
}

.signal-row {
  position: relative;
  overflow: hidden;
  grid-template-columns: 1fr;
  min-height: 126px;
  background: rgba(255, 255, 255, .032);
  border-color: color-mix(in srgb, var(--topic-color) 30%, rgba(247, 243, 234, .1));
}

.signal-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--topic-color, rgba(82, 244, 216, .7));
}

.signal-row h3 {
  max-width: 780px;
}

.signal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.signal-tags span {
  border: 1px solid rgba(247, 243, 234, .11);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--soft);
  background: rgba(255, 255, 255, .032);
  font-size: .78rem;
  line-height: 1.2;
}

.signal-queue {
  background: rgba(12, 14, 20, .22);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(247, 243, 234, .13);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  font-size: .84rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
}

.section-head.stacked {
  display: block;
}

.section-head.stacked p {
  margin-top: 14px;
}

.portrait-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(.9) contrast(1.06);
}

.portrait-card figcaption {
  padding: 12px 14px 14px;
  color: var(--soft);
  font-size: .88rem;
  line-height: 1.4;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.contact-portrait img {
  height: 100%;
  min-height: 430px;
  aspect-ratio: auto;
  object-position: center 42%;
}

.contact-panel,
.lab-login {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.contact-panel div {
  min-height: 132px;
  border: 1px solid rgba(247, 243, 234, .1);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .032);
}

.contact-panel small,
.lab-login span {
  color: var(--soft);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-panel p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-panel a {
  color: var(--ink);
}

.lab-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
}

.lab-login label {
  display: grid;
  gap: 8px;
}

.lab-login input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(247, 243, 234, .13);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(12, 14, 20, .42);
  font: inherit;
}

.lab-login input::placeholder {
  color: rgba(247, 243, 234, .38);
}

.lab-login input:focus {
  outline: 0;
  border-color: rgba(82, 244, 216, .45);
  box-shadow: 0 0 0 3px rgba(82, 244, 216, .08);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, .7);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(12, 14, 20, .92);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .42);
}

.modal-card small {
  color: var(--soft);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.modal-card h3 {
  margin-top: 10px;
  font-size: 1.6rem;
  line-height: 1.05;
}

.modal-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 32px;
  border: 1px solid rgba(247, 243, 234, .13);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  font: inherit;
}

.footer {
  padding: 34px 0 48px;
  color: var(--soft);
  font-size: .9rem;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    padding-top: 10px;
  }

  .topbar-inner,
  .section-head,
  .hero-grid {
    align-items: start;
  }

  .topbar-inner {
    position: relative;
    align-items: center;
    min-height: 54px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .section-head {
    flex-direction: column;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .signal-strip-inner p {
    max-width: none;
    text-align: left;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(260px, calc(100vw - 40px));
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: rgba(11, 13, 18, .9);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .26);
  }

  .nav.is-open {
    display: grid;
  }

  .nav a {
    justify-content: space-between;
  }

  .hero-grid,
  .cards,
  .about-grid,
  .contact-grid,
  .contact-panel,
  .lab-login {
    grid-template-columns: 1fr;
  }

  .contact-portrait img {
    min-height: 360px;
  }

  #papers .feature-cards,
  #teaching .feature-cards,
  #projects .feature-cards {
    display: none;
  }

  body .mobile-only-card {
    display: flex;
  }

  .radar-panel {
    min-height: 560px;
  }

  .radar-axis {
    padding: 8px 10px;
    font-size: .86rem;
  }

  .radar-field-label {
    width: min(62%, 250px);
  }

  .radar-tip {
    display: none;
  }

  .radar-mobile-list {
    display: none;
  }

  .signal-row {
    cursor: pointer;
  }

  .signal-row p {
    display: none;
  }

  .signal-row::after {
    content: "open";
    position: absolute;
    right: 14px;
    bottom: 12px;
    border: 1px solid rgba(247, 243, 234, .12);
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--soft);
    background: rgba(255, 255, 255, .035);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .contact-panel {
    gap: 0;
  }

  .contact-panel div {
    min-height: auto;
    border: 0;
    border-radius: 0;
    padding: 12px 0;
    background: transparent;
  }

  .contact-panel div + div {
    border-top: 1px solid rgba(247, 243, 234, .1);
  }

  .writing-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-scroll {
    grid-auto-columns: minmax(240px, 78vw);
    padding: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 6.4rem);
  }

  .side-panel {
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .radar-panel {
    min-height: 500px;
  }

  .radar-axis {
    max-width: 145px;
  }

  .axis-east,
  .axis-west {
    top: 46%;
    max-width: none;
    writing-mode: vertical-lr;
    text-orientation: upright;
    white-space: nowrap;
    padding: 10px 6px;
    letter-spacing: 0;
  }

  .axis-east::before,
  .axis-west::before {
    width: 2px;
    height: 34px;
    margin: 0 auto 8px;
  }

  .axis-east {
    right: 10px;
  }

  .axis-west {
    left: 10px;
    transform: translateY(-50%);
  }

  .radar-field-label {
    width: min(68%, 220px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
