* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red:   #c0392b;
  --blue:  #2563b0;
  --dark:  #1a1a2e;
  --mid:   #4a4a6a;
  --light: #f5f5f7;
  --white: #ffffff;
  --border: rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: #ffffff;
  width: 100vw;
  overflow-x: hidden;
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
}

canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 60px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--dark);
  text-decoration: none;
}

.nav-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-logo .nav-logo-suffix {
  font-size: 0.95rem;
  color: var(--mid);
  font-weight: 400;
}

.nav-erc {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red); }

/* ── SECTIONS LAYOUT ── */
.content {
  position: relative;
  z-index: 10;
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
}

.inner {
  max-width: 900px;
  width: 100%;
}

/* ── FADE-IN ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── TYPOGRAPHY ── */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

h1 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1.4rem;
}

.hero-logo-img {
  display: block;
  width: clamp(260px, 32vw, 480px);
  height: auto;
  margin-bottom: 0.3rem;
}

h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1.2rem;
}

.lead {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--mid);
  max-width: 620px;
}

.body-text {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--mid);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8rem 4rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(37,99,176,0.3);
  border-radius: 2px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 2rem;
}

.hero-sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--mid);
  margin-top: 0.6rem;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}
.btn-primary:hover { background: #a93226; border-color: #a93226; }

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid rgba(0,0,0,0.2);
}
.btn-outline:hover { border-color: var(--dark); }

/* ── SECTION BACKGROUNDS ── */
.bg-white  { background: rgba(255,255,255,0.88); }
.bg-light  { background: rgba(245,245,247,0.88); }

.section-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3.5rem;
}

/* ── RESEARCH GRID ── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.research-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.8rem;
  transition: border-color 0.2s, transform 0.2s;
}
.research-card:hover {
  border-color: rgba(192,57,43,0.3);
  transform: translateY(-3px);
}

.research-icon {
  width: 36px;
  height: 3px;
  margin-bottom: 1.2rem;
}

.research-card h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
  color: var(--dark);
}

/* ── PUBLICATIONS ── */
.pub-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.4rem;
  align-items: start;
}

.pub-year {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--red);
  padding-top: 0.18rem;
  min-width: 38px;
}

.pub-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.pub-authors {
  font-size: 0.82rem;
  color: var(--mid);
  font-weight: 300;
}

.pub-journal {
  font-size: 0.82rem;
  color: var(--blue);
  font-style: italic;
}

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.team-member {
  text-align: center;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'EB Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
}

.team-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.78rem;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.4;
}

/* ── NEWS ── */
.news-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.news-item {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  padding: 1.4rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.news-date {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  min-width: 70px;
  padding-top: 0.15rem;
}

.news-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.news-body {
  font-size: 0.82rem;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.6;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
  nav { padding: 0 1.2rem; }
  #hero { padding: 7rem 1.5rem 3rem; }
  .section-card { padding: 2rem 1.4rem; }
  .nav-logo img { height: 20px; }
  .nav-logo .nav-logo-suffix { display: none; }
  .nav-erc { display: none; }
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.8;
  font-weight: 300;
}

.divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  margin-bottom: 1.8rem;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 10;
  background: rgba(26,26,46,0.96);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}