/* Global */
:root {
  --bg: #eef1f8;
  --fg: #111;
  --accent: #394799;
  --border-color: #aaa;
  --font-stack: "Open Sans", "Segoe UI", "Roboto", "Helvetica", "Arial", "sans-serif";
  --heading-font: "Lora", "Georgia", "Times New Roman", "serif";
  --abstract-bg: #eef1f8;
  --abstract-border: #ccc;
  --hero-bg: #394799d9;
  --hero-fg: #fff;
  --card-gradient: linear-gradient(to bottom, #e7e8f4 0%, #eff0f8 40%, #fbfbfd 68%, #ffffff 100%);
  --card-shadow: 0 1px 2px rgba(47, 43, 40, 0.05), 0 10px 24px -8px rgba(47, 43, 40, 0.14);
  --hero-font: "Alegreya Sans", sans-serif;
}

[data-theme=dark] {
  --bg: #222;
  --fg: #ddd;
  --accent: #abdfec;
  --border-color: #444;
  --abstract-bg: #333;
  --abstract-border: #555;
  --hero-bg: #abdfecd9;
  --hero-fg: #111;
  --card-gradient: linear-gradient(to bottom, #2e2f33 0%, #29292c 40%, #232324 68%, #1f1f20 100%);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 28px -10px rgba(0, 0, 0, 0.7);
  --hero-font: "Alegreya Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline 2px;
  text-underline-offset: 3px;
}

main {
  flex: 1;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  margin-bottom: 40px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  margin-bottom: 0px;
  position: sticky;
  top: 0;
  background-color: var(--bg);
  z-index: 1000;
  /* Extends the opaque background to the full viewport width (behind
     the constrained nav content) so a scrolling shadow can never peek
     out past the sides of the bar. */
  /* Scroll shadow, confined to the main body column (not full-bleed)
     and feathered at both edges instead of a hard-edged rectangle. */
  /* Content underneath matches the header's own background, so fall
     back to a thin hairline instead of no separator at all. */
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: var(--bg);
  z-index: -1;
}
.site-header::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, height 0.2s ease;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.site-header.is-scrolled::after {
  opacity: 1;
}
.site-header.is-thin::after {
  height: 2px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-backdrop {
  display: none;
}

.page-link {
  color: var(--fg);
  text-decoration: none;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-logo-link {
  display: flex;
  text-decoration: none;
}
.site-logo-link:hover {
  text-decoration: none;
}
.site-logo-link:hover .site-logo {
  transform: scale(1.05);
}

.site-logo {
  height: 88px;
  width: 88px;
  display: block;
  border-radius: 8px;
  transition: transform 0.15s ease;
}

.site-logo--invert {
  display: none;
}

[data-theme=dark] .site-logo {
  display: none;
}

[data-theme=dark] .site-logo--invert {
  display: block;
}

.site-title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}

.site-name {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.site-divider {
  width: 100%;
  height: 1px;
  background: var(--border-color);
}

.site-sub {
  font-family: var(--font-stack);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.75;
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
    z-index: 1300;
  }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: auto;
    max-height: 100vh;
    width: 280px;
    max-width: 80vw;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    background-color: var(--bg);
    border-left: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    border-bottom-left-radius: 16px;
    padding: 24px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    z-index: 1200;
    overflow-y: auto;
  }
  .site-nav.open {
    transform: translateX(0);
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
  }
  .page-link {
    font-size: 18px;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    z-index: 1100;
  }
  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
.page-link:hover,
.page-link.active {
  text-decoration: underline 4px var(--accent);
  text-underline-offset: 7px;
}

.theme-toggle {
  cursor: pointer;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 24px;
  height: 24px;
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
}
.theme-toggle .sun-icon {
  display: none;
}
[data-theme=dark] .theme-toggle .moon-icon {
  display: none;
}
[data-theme=dark] .theme-toggle .sun-icon {
  display: block;
}
.theme-toggle:hover {
  color: var(--accent);
  transform: scale(1.15);
}

body.nav-anim .site-nav,
body.nav-anim .nav-backdrop {
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.hero-header {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: 16px;
  background: var(--hero-bg);
  color: var(--hero-fg);
  margin-bottom: 40px;
  --tagline-size: 38px;
  --hero-text-gap: clamp(14px, calc(var(--tagline-size) * 12 / 19), 24px);
}
.hero-header .hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--hero-text-gap);
}
.hero-header .tagline {
  margin: 0;
  font-family: var(--hero-font);
  font-size: var(--tagline-size);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hero-fg);
}
.hero-header .tagline-1,
.hero-header .tagline-2 {
  display: block;
  white-space: nowrap;
}
.hero-header .tagline-1 {
  font-size: 1.05em;
}
.hero-header .tagline-2 {
  font-size: 0.88em;
  font-weight: 400;
  color: var(--hero-fg);
  opacity: 0.65;
}
.hero-header .hero-rule {
  width: 64px;
  height: 2px;
  background: var(--hero-fg);
  opacity: 0.5;
}
.hero-header .execution {
  margin: 0;
  font-family: var(--hero-font);
  /* Keeps the same ratio to the tagline (20px at the 38px base
     size) so it scales proportionally at every breakpoint. */
  font-size: clamp(16px, var(--tagline-size) * 10 / 19, 20px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--hero-fg);
  opacity: 0.85;
  max-width: 54ch;
  text-wrap: pretty;
}
.hero-header .hero-image {
  flex-shrink: 0;
  max-width: 280px;
  width: 100%;
  height: auto;
  padding: 10px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.hero-header .hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 860px) {
  .hero-header {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 32px;
    padding: 32px;
    /* Scales continuously with viewport width (rather than a fixed
       30px plateau) so both title spans keep fitting on one line all
       the way down to narrow phones, only wrapping in unrealistic
       extreme cases. .execution follows via --tagline-size. */
    --tagline-size: clamp(16px, calc(8.8vw - 10px), 30px);
  }
  .hero-header .tagline-1,
  .hero-header .tagline-2 {
    white-space: normal;
  }
  .hero-header .hero-image {
    max-width: none;
    margin: 0 auto;
  }
}
.research-cards {
  padding-top: 0;
}
.research-cards .research-grid {
  display: grid;
  /* min(400px, 100%) keeps cards from overflowing narrow phone widths. */
  grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
  gap: 20px;
  margin: 30px 0;
}
.research-cards .research-card {
  border: none;
  padding: 20px;
  border-radius: 16px;
  background: var(--card-gradient);
  box-shadow: var(--card-shadow);
}
.research-cards .research-card ul {
  margin: 0;
  padding-left: 20px;
}
.research-cards .research-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  /* Matches the AI graphic's native ratio so it fills the full width;
     the flatter electronic graphic then also fills the width and is
     letterboxed within the same fixed height. */
  aspect-ratio: 3753/1481;
  margin-bottom: 16px;
  padding: 16px 24px;
  overflow: hidden;
}
.research-cards .research-icon .research-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.research-cards .research-icon .research-icon-img--dark {
  display: none;
}
[data-theme=dark] .research-cards .research-icon .research-icon-img--light {
  display: none;
}
[data-theme=dark] .research-cards .research-icon .research-icon-img--dark {
  display: block;
}

.cta .cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 5px;
}
.cta .cta-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--bg);
}

.pub-container {
  margin-bottom: 2rem;
}

.pub-title {
  margin-bottom: 0;
  font-weight: bold;
}

.pub-authors {
  margin: 0.5rem 0 0;
}
.pub-authors .pub-author + .pub-author::before {
  content: ", ";
  white-space: pre;
  color: var(--fg);
}
.pub-authors .group-member {
  font-weight: bold;
}
.pub-authors .group-member::before {
  font-weight: normal;
}

.pub-image {
  max-width: 100%;
  max-height: 300px;
  height: auto;
  border: 5px solid var(--border-color);
  border-radius: 4px;
  display: block;
  margin: 1rem auto;
  opacity: 0.8;
}

.pub-meta {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.pub-abstract {
  margin-top: 1rem;
}

.pub-abstract summary {
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
}

.abstract-content {
  background: var(--abstract-bg);
  border-left: 3px solid var(--abstract-border);
  padding: 15px;
  margin-top: 10px;
}

.pub-links {
  display: flex;
  gap: 10px;
  margin: 5px 0;
}

.pub-link-text {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: all 0.2s ease;
}
.pub-link-text:hover, .pub-link-text:focus {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

.people-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.group-photo-container {
  text-align: center;
  margin-bottom: 30px;
}

.group-photo {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.person-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .person-row {
    flex-direction: column;
  }
  .person-image-container {
    margin-bottom: 1rem;
    text-align: center;
  }
}
.person-image-container {
  flex-shrink: 0;
  width: 200px;
}

.person-image {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.person-content {
  flex-grow: 1;
  min-width: 0;
}

.person-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.person-name {
  margin: 0;
}

.social-icons {
  display: flex;
  gap: 5px;
}

.social-link {
  color: var(--fg);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  line-height: 0;
}
.social-link svg {
  width: 28px;
  height: 28px;
}

.social-link:hover,
.social-link:focus {
  color: var(--accent);
  transform: scale(1.15);
}

.person-prose {
  margin: 0;
}

.site-footer {
  border-top: 2px solid var(--border-color);
  color: var(--fg);
  opacity: 0.6;
  font-size: 0.9em;
}

/*# sourceMappingURL=style.css.map */