@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --ink: #172c37;
  --muted: #607580;
  --paper: #f5f9fa;
  --lime: #4ecfe9;
  --line: #d3e3e8;
  --dark: #123c50;
  --accent: #16849c;
  --accent-light: #e0f3f7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
}

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

a:focus-visible {
  outline: 2px solid #08788d;
  outline-offset: 4px;
}

.wrap {
  width: min(1300px, calc(100% - 90px));
  margin: auto;
}

.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  background: white;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
  border-radius: 4px;
}

.skip:focus {
  top: 10px;
}

/* Header & Navigation */
.site-header {
  height: 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}

.wordmark {
  font-weight: 700;
  letter-spacing: -.045em;
  font-size: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.wordmark-dot {
  color: #078aa6;
  margin-left: 0;
}

.brain-logo {
  display: block;
  width: 52px;
  height: 49px;
  object-fit: contain;
}

.institution-logo {
  display: flex;
  align-items: center;
  padding: 0;
  background: transparent;
}

.institution-logo img {
  display: block;
  width: 154px;
  height: 52px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 600;
  margin-left: auto;
}

.site-header nav a {
  padding: 8px 2px;
  transition: color .2s ease;
}

.site-header nav a:hover,
.text-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 685px;
  align-items: center;
  column-gap: 5%;
  position: relative;
  padding: 76px 0 93px;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #557582;
  margin: 0 0 14px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1aa5bf;
  margin-right: 8px;
}

.hero h1,
h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.hero h1.hero-title {
  font-size: clamp(40px, 4.5vw, 68px);
  margin: 24px 0 22px;
  line-height: 1.06;
}

.hero-title > span {
  display: block;
}

.hero h1 em,
h2 em {
  font-weight: 400;
  color: #16849c;
}

.period {
  color: #28b5ce;
}

.hero-intro {
  max-width: 480px;
  font-size: 19px;
  line-height: 1.55;
  color: #526c78;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}

.button {
  background: var(--dark);
  color: white;
  padding: 15px 22px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: background .2s ease;
}

.button span {
  margin-left: 20px;
}

.button:hover {
  background: #175b72;
}

.text-link {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-art {
  background: #e0f3f7;
  color: #32748b;
  aspect-ratio: 1.15;
  position: relative;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 4px;
}

.hero-art svg {
  width: 100%;
  height: 80%;
  position: absolute;
  left: 0;
  top: 10%;
}

.art-grid {
  opacity: .13;
}

.art-label,
.art-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
}

.hero-bottom {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .11em;
  color: #647b85;
}

/* Sections */
.section {
  padding: 110px 0;
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 8%;
}

.section-side h2,
.contact h2 {
  font-size: clamp(40px, 4vw, 58px);
  margin: 20px 0 16px;
  line-height: 1.08;
}

.section-content {
  min-width: 0;
}

.section-lead {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.34;
  letter-spacing: -.02em;
  margin: 0 0 22px;
  max-width: 740px;
}

.section-content > p:not(.section-lead) {
  color: #556c77;
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 690px;
}

.section-content > p a,
.people-more a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent);
}

/* Themes (Research) */
.themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}

.themes article {
  border-top: 1px solid #a6c8d1;
  padding-top: 18px;
}

.themes article span,
.paper-meta,
.people-label,
.news-meta {
  font-size: 12px;
  letter-spacing: .11em;
  font-weight: 700;
  color: #5d7983;
  text-transform: uppercase;
}

.themes h3 {
  font-size: 17px;
  margin: 18px 0 8px;
  font-weight: 700;
}

.themes p,
.side-note {
  color: #5d727b;
  font-size: 15px;
  line-height: 1.58;
}

.side-note {
  max-width: 250px;
  margin: 24px 0 28px;
}

/* Work / Selected publications */
.work-section {
  background: #e8f3f5;
}

.paper {
  padding: 0 0 35px;
  margin-bottom: 35px;
  border-bottom: 1px solid #bfd9df;
}

.paper:last-child {
  margin-bottom: 0;
}

.paper-meta {
  display: flex;
  justify-content: space-between;
  color: #4a707c;
}

.paper h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.22;
  font-weight: 400;
  max-width: 680px;
  margin: 16px 0 10px;
  letter-spacing: -.025em;
}

.paper h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.paper h3 span {
  font-family: sans-serif;
  font-size: 18px;
  color: #1689a0;
}

.paper p {
  color: #556c77;
  font-size: 15.5px;
  line-height: 1.58;
  margin: 8px 0;
}

.paper .authors {
  font-size: 14px;
  color: #697f87;
  line-height: 1.5;
  margin-top: 10px;
}

.paper-links {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
}

.paper-links a {
  color: var(--accent);
}

.paper-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* News Section */
.news-items {
  display: flex;
  flex-direction: column;
}

.news-card {
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.news-card:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.news-meta time {
  color: #4a707c;
}

.news-tag {
  background: #e0f3f7;
  color: #125b70;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 11.5px;
  letter-spacing: .08em;
  font-weight: 700;
}

.news-card h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(23px, 2.3vw, 29px);
  line-height: 1.25;
  font-weight: 400;
  max-width: 680px;
  margin: 15px 0 10px;
  letter-spacing: -.02em;
}

.news-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-card h3 span {
  font-family: sans-serif;
  font-size: 18px;
  color: #1689a0;
}

.news-excerpt {
  color: #556c77;
  font-size: 15.5px;
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 680px;
}

.news-links {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 700;
}

.news-links a {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* People Section */
.people-section {
  background: #edf6f8;
}

.people-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  margin-top: 24px;
}

.people-list .person-card {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #d0e4ea;
  background-color: #eaf3f5;
}

.person-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
}

.person-info a {
  color: inherit;
  text-decoration: none;
}

.person-info a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.person-info small {
  display: block;
  font-weight: 400;
  color: #697f87;
  font-size: 13.5px;
  margin-top: 2px;
}

.people-list span {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
}

.people-list span a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.people-list small {
  display: block;
  font-weight: 400;
  color: #697f87;
  font-size: 13.5px;
  margin-top: 3px;
}

.people-more {
  font-size: 15px;
  color: #526c78;
  margin-top: 36px;
  line-height: 1.6;
}

/* Connect Section */
.contact {
  background: #123a4b;
  color: #eef8fa;
}

.contact-inner {
  padding: 95px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: end;
}

.contact h2 {
  margin-bottom: 0;
}

.contact h2 em {
  color: #65d4e8;
}

.contact-inner > div > p:not(.eyebrow) {
  color: #c3dee5;
  font-size: 17px;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  gap: 32px;
  border-top: 1px solid #6b929d;
  padding-top: 24px;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 700;
}

.contact-links span {
  color: #65d4e8;
}

.contact-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */
.footer {
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #647b85;
}

.footer .wordmark {
  color: var(--ink);
  font-size: 24px;
}

.footer p {
  line-height: 1.6;
  margin: 0;
}

.footer > a:last-child {
  font-weight: 700;
}

.footer > a:last-child:hover {
  color: var(--accent);
}

/* Interactive Network Visual */
.network-art {
  outline: none;
  touch-action: pan-y;
}

.network-art:focus-visible {
  outline: 2px solid #08788d;
  outline-offset: -4px;
}

.network-edges line {
  opacity: .48;
  transition: opacity .32s ease, stroke .32s ease, stroke-width .32s ease;
}

.network-art.has-active-node .network-edges line {
  opacity: .2;
}

.network-art.has-active-node .network-edges line.is-active {
  opacity: .9;
  stroke: #078aa6;
  stroke-width: 2;
}

.network-rest-rings circle {
  opacity: .22;
  transition: opacity .32s ease;
}

.network-art.has-active-node .network-rest-rings circle {
  opacity: .08;
}

.node-dot {
  transition: fill .3s ease;
}

.node-halo {
  fill: #4ecfe9;
  opacity: 0;
  transition: opacity .35s ease;
}

.node-ring {
  fill: none;
  stroke: #078aa6;
  stroke-width: 1;
  opacity: 0;
  transition: opacity .35s ease;
}

.network-node.is-active .node-dot {
  fill: #087e96;
}

.network-node.is-active .node-halo {
  opacity: .2;
}

.network-node.is-active .node-ring {
  opacity: .6;
  transform-box: fill-box;
  transform-origin: center;
  animation: network-ripple 2.1s ease-out infinite;
}

@keyframes network-ripple {
  0% { transform: scale(.72); opacity: .42; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .network-art * { transition: none !important; }
  .network-node.is-active .node-ring { animation: none; }
}

/* Responsive Styles for Mobile & Tablets */
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 50px);
  }
  .site-header {
    gap: 15px;
  }
  .section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 75px 0;
  }
  .side-note {
    max-width: 100%;
    margin: 16px 0 20px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 70px 0;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 50px 0 60px;
    min-height: auto;
  }
  .hero-art {
    margin-top: 40px;
    aspect-ratio: 1.35;
  }
  .hero-bottom {
    display: none;
  }
  .themes {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .site-header {
    height: auto;
    min-height: 80px;
    flex-wrap: wrap;
    padding: 14px 0;
    gap: 12px;
  }
  .site-header nav {
    flex-basis: 100%;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 14.5px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .site-header nav a {
    padding: 6px 4px;
  }
  .institution-logo {
    margin-left: auto;
  }
  .institution-logo img {
    width: 125px;
    height: 42px;
  }
  .brain-logo {
    width: 44px;
    height: 44px;
  }
  .people-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-links {
    flex-wrap: wrap;
    gap: 18px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .hero h1.hero-title {
    font-size: clamp(34px, 9.5vw, 44px);
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }
  .section {
    padding: 60px 0;
  }
}
