:root {
  --bg: #f7f8fb;
  --paper: #ffffff;
  --paper-soft: #f1f5f9;
  --ink: #18202a;
  --muted: #5e6877;
  --line: #dce3ec;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --red: #9f1239;
  --amber: #b45309;
  --blue: #1d4ed8;
  --shadow: 0 20px 50px rgba(24, 32, 42, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 40px;
  background: rgba(247, 248, 251, 0.92);
  border-bottom: 1px solid rgba(220, 227, 236, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 8px;
}

.brand-name {
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 13px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--paper-soft);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
}

.lang-toggle {
  min-height: 38px;
  padding: 7px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 760;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  color: white;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  outline: none;
}

.nav-toggle svg,
.button svg,
.research-item svg,
.pub-links svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex: 0 0 auto;
}

main {
  overflow: hidden;
}

.hero {
  min-height: auto;
  max-width: 1120px;
  margin: 0 auto;
  padding: 86px 40px 58px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: none;
  margin: 0;
  font-size: 4rem;
  line-height: 0.98;
  font-weight: 820;
}

h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.12;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.lead {
  max-width: 980px;
  margin: 26px 0 0;
  color: #334155;
  font-size: 1.18rem;
}

.email-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--teal-dark);
  font-weight: 720;
}

.email-line svg {
  width: 18px;
  height: 18px;
}

.email-line a {
  border-bottom: 1px solid rgba(11, 79, 74, 0.28);
}

.email-line a:hover,
.email-line a:focus-visible {
  border-bottom-color: var(--teal-dark);
  outline: none;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 720;
  box-shadow: 0 5px 18px rgba(24, 32, 42, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: #aab6c5;
  outline: none;
}

.button.primary {
  color: white;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.band,
.publications,
.contact {
  padding: 78px 40px;
}

.band {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 1120px;
  margin: 0 auto 28px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.research-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.research-item,
.profile-item {
  min-width: 0;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.research-item svg {
  margin-bottom: 16px;
  color: var(--teal);
}

.research-item p,
.profile-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.publications {
  max-width: 1200px;
  margin: 0 auto;
}

.pub-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.filter {
  min-height: 38px;
  padding: 7px 13px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 720;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter:hover,
.filter:focus-visible {
  color: var(--ink);
  border-color: #aab6c5;
  outline: none;
}

.filter.active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.pub-list {
  display: grid;
  gap: 14px;
}

.pub-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  min-width: 0;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(24, 32, 42, 0.04);
}

.pub-card:not(.featured) {
  grid-template-columns: minmax(0, 1fr);
  padding-left: 20px;
}

.pub-card[hidden] {
  display: none;
}

.pub-media {
  align-self: stretch;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.image-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concept-media {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  color: white;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 118, 110, 0.84)),
    #0f172a;
}

.concept-media.more-media {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(180, 83, 9, 0.82)),
    #0f172a;
}

.concept-media.crowd-media {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(29, 78, 216, 0.78)),
    #0f172a;
}

.concept-media span,
.dgr-media span {
  width: max-content;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 820;
}

.concept-media strong {
  font-size: 2rem;
  line-height: 1;
}

.concept-media.crowd-media strong {
  font-size: 1.75rem;
}

.concept-media small,
.dgr-media small {
  color: rgba(255, 255, 255, 0.86);
}

.dgr-media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  color: white;
  background: #111827;
}

.dgr-media strong {
  font-size: 2.4rem;
  line-height: 0.95;
}

.voxel-grid {
  position: absolute;
  inset: 14px;
  opacity: 0.78;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 66% 38%, rgba(20, 184, 166, 0.9) 0 6px, transparent 7px),
    radial-gradient(circle at 30% 62%, rgba(251, 191, 36, 0.84) 0 5px, transparent 6px);
  background-size: 22px 22px, 22px 22px, 100% 100%, 100% 100%;
  transform: perspective(400px) rotateX(52deg) rotateZ(-18deg);
  transform-origin: center;
}

.pub-body {
  min-width: 0;
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  color: #385064;
  background: #eef4f8;
  border: 1px solid #d6e3ee;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 820;
}

.badge.strong {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.pub-card h3 {
  max-width: 880px;
}

.authors {
  margin: 8px 0 0;
  color: #475569;
  font-size: 0.95rem;
}

.pub-card p:not(.authors) {
  margin: 10px 0 0;
  color: var(--muted);
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pub-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: var(--teal-dark);
  background: #ecfdf5;
  border: 1px solid #c9eee1;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 760;
}

.pub-links a:hover,
.pub-links a:focus-visible {
  color: white;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  outline: none;
}

.profile-band {
  background: #f3f6f9;
}

.contact {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.contact h2 {
  max-width: 600px;
}

.contact p {
  max-width: 720px;
  color: var(--muted);
}

.contact-links {
  flex: 0 0 auto;
  align-content: flex-start;
  justify-content: flex-end;
  margin-top: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 22px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    display: none;
    width: min(300px, calc(100vw - 36px));
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  h1 {
    font-size: 3rem;
  }

  .research-grid,
  .profile-grid,
  .pub-card,
  .pub-card:not(.featured) {
    grid-template-columns: 1fr;
  }

  .pub-media {
    min-height: 220px;
  }

  .contact {
    flex-direction: column;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .site-nav {
    top: 64px;
  }

  .brand-name {
    display: none;
  }

  .hero,
  .band,
  .publications,
  .contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-links,
  .pub-links {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .pub-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter {
    width: 100%;
  }

  .pub-card {
    padding: 14px;
  }

  .pub-media {
    min-height: 180px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
