:root {
  --paper: #f6f7f2;
  --white: #ffffff;
  --ink: #151817;
  --muted: #5d6561;
  --line: rgba(21, 24, 23, 0.16);
  --line-strong: rgba(21, 24, 23, 0.34);
  --red: #d71920;
  --teal: #0d766e;
  --blue: #244fc7;
  --amber: #b97d13;
  --green: #4a7c36;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
}

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

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

p,
h1,
h2,
h3,
figure,
ul {
  margin-top: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 242, 0.9);
  backdrop-filter: blur(18px);
}

.site-nav,
.language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.language-nav {
  justify-content: flex-end;
}

.site-nav a,
.language-nav a {
  padding: 8px 10px;
  border-radius: 6px;
}

.site-nav a:hover,
.language-nav a:hover,
.language-nav a[aria-current="page"] {
  background: rgba(21, 24, 23, 0.06);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 78svh;
  padding: 104px 20px 28px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(246, 247, 242, 0.98), rgba(246, 247, 242, 0.78)),
    repeating-linear-gradient(0deg, rgba(21, 24, 23, 0.045) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(21, 24, 23, 0.045) 0 1px, transparent 1px 44px);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  width: min(100%, var(--max));
  min-height: calc(78svh - 150px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 610px;
  padding-bottom: 20px;
  background: linear-gradient(90deg, rgba(246, 247, 242, 0.86), rgba(246, 247, 242, 0));
}

.kicker {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mark-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.inline-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.hero-logo {
  flex: 0 0 auto;
  width: clamp(58px, 7vw, 82px);
  height: clamp(58px, 7vw, 82px);
  filter: drop-shadow(0 12px 24px rgba(21, 24, 23, 0.12));
}

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

h1 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 1.06;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.2vw, 3.4rem);
  line-height: 1.1;
  overflow-wrap: break-word;
  hyphens: auto;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  line-height: 1.18;
}

.lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: #2d3531;
  font-size: clamp(1.05rem, 1.45vw, 1.34rem);
  line-height: 1.48;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

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

.button.ghost,
.filter-button {
  background: rgba(255, 255, 255, 0.64);
}

.portrait {
  position: relative;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(21, 24, 23, 0.14);
}

.portrait img {
  aspect-ratio: 2.13 / 1;
  object-fit: cover;
  object-position: center;
}

.portrait figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.signal-strip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: min(100%, var(--max));
  margin: 0 auto;
  overflow: auto;
  scrollbar-width: thin;
}

.signal-strip span {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding: clamp(64px, 9vw, 126px) 20px;
}

.band-light {
  background: var(--paper);
}

.band-white {
  background: var(--white);
}

.band-ink {
  background: #111614;
  color: white;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-copy-wide {
  max-width: 980px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5vw, 70px);
}

.sticky-heading {
  position: sticky;
  top: 92px;
  align-self: start;
}

.flow {
  display: grid;
  gap: 28px;
}

.large-copy {
  margin-bottom: 0;
  color: #2d3531;
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
  line-height: 1.6;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.profile-copy {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.profile-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.65;
}

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

.method,
.project-card {
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.method-number,
.tag {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.method:nth-child(1) {
  border-top: 4px solid var(--teal);
}

.method:nth-child(2) {
  border-top: 4px solid var(--amber);
}

.method:nth-child(3) {
  border-top: 4px solid var(--red);
}

.method:nth-child(4) {
  border-top: 4px solid var(--blue);
}

.method p,
.project-card p,
.data-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.data-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.band-ink .kicker {
  color: #ff6b6b;
}

.band-ink .section-heading h2 {
  color: white;
}

.data-map {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 48px);
}

.data-map::before,
.data-map::after {
  content: "";
  position: absolute;
  inset: 15% 11%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  transform: rotate(-7deg);
}

.data-map::after {
  inset: 24% 17%;
  transform: rotate(9deg);
}

.data-node {
  position: absolute;
  z-index: 2;
  max-width: 170px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-weight: 800;
}

.data-node:nth-child(1) {
  top: 42%;
  left: 31%;
}

.data-node:nth-child(2) {
  top: 12%;
  left: 12%;
}

.data-node:nth-child(3) {
  top: 14%;
  right: 10%;
}

.data-node:nth-child(4) {
  top: 45%;
  right: 6%;
}

.data-node:nth-child(5) {
  bottom: 16%;
  right: 18%;
}

.data-node:nth-child(6) {
  bottom: 12%;
  left: 16%;
}

.data-node:nth-child(7) {
  top: 45%;
  left: 5%;
}

.data-node:nth-child(8) {
  top: 8%;
  left: 44%;
}

.main-node {
  border-color: #ff6b6b;
  background: #ff6b6b;
  color: #111614;
}

.data-copy {
  display: grid;
  gap: 16px;
}

.data-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.04rem;
}

.wide-heading {
  max-width: 900px;
  margin-bottom: 32px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
}

.project-card h3 {
  max-width: none;
}

.project-card a,
.text-link {
  width: fit-content;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

.project-card a:hover,
.text-link:hover {
  text-decoration: underline;
}

.project-card.is-hidden {
  display: none;
}

.publication-layout {
  display: grid;
  gap: 36px;
}

.publication-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 74px);
}

.source-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.source-grid li {
  min-width: 0;
}

.publication-links {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 18px;
}

.publication-links .text-link {
  margin-top: 0;
}

.source-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.source-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 42px rgba(21, 24, 23, 0.12);
}

.source-card img,
.source-card-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: #e7e9e4;
  object-fit: cover;
}

.source-card-visual {
  display: flex;
  align-items: flex-end;
  min-height: 130px;
  padding: 14px;
  color: white;
}

.source-card-visual span {
  max-width: 15ch;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.source-card-visual-sage {
  background:
    linear-gradient(135deg, rgba(21, 24, 23, 0.94), rgba(215, 25, 32, 0.78)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.17) 0 1px, transparent 1px 24px);
}

.source-card-visual-journal {
  background:
    linear-gradient(135deg, rgba(17, 22, 20, 0.94), rgba(13, 118, 110, 0.78)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 1px, transparent 1px 28px);
}

.source-card-visual-plos {
  background:
    linear-gradient(135deg, rgba(36, 79, 199, 0.94), rgba(13, 118, 110, 0.78)),
    radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.28), transparent 32%);
}

.source-card-visual-ser {
  background:
    linear-gradient(135deg, rgba(21, 24, 23, 0.94), rgba(74, 124, 54, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 1px, transparent 1px 26px);
}

.source-card-visual-jels {
  background:
    linear-gradient(135deg, rgba(21, 24, 23, 0.94), rgba(185, 125, 19, 0.82)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 24px);
}

.source-card-visual-tamedia {
  background:
    linear-gradient(135deg, rgba(21, 24, 23, 0.95), rgba(36, 79, 199, 0.76)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 22px);
}

.source-card-visual-tagi {
  background:
    linear-gradient(135deg, rgba(21, 24, 23, 0.95), rgba(185, 125, 19, 0.8)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 26px);
}

.source-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.source-card-kicker,
.source-card-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.source-card-kicker {
  color: var(--red);
}

.source-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.source-card-note {
  color: var(--muted);
}

.source-card:hover .source-card-note {
  color: var(--blue);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.66fr);
  gap: 28px;
  align-items: end;
}

.contact-actions {
  justify-content: flex-end;
}

.site-footer {
  padding: 24px 20px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, var(--max));
  margin: 0 auto;
  font-size: 0.9rem;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner a {
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-grid,
  .profile-layout,
  .two-column,
  .data-layout,
  .publication-columns,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy,
  .portrait {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .portrait {
    max-width: none;
  }

  .portrait img {
    aspect-ratio: 16 / 9;
  }

  .sticky-heading {
    position: static;
  }

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

@media (max-width: 680px) {
  .site-nav {
    font-size: 0.86rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .method-grid,
  .project-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .data-map {
    min-height: 430px;
  }

  .data-node {
    max-width: 140px;
    font-size: 0.82rem;
  }

  .data-node:nth-child(1) {
    left: 24%;
  }
}
