:root {
  --tu-red: #8ab4f8;
  --tu-red-dark: #b8d2ff;
  --ink: #f5f5f5;
  --ink-soft: #ffffff;
  --paper: #090909;
  --paper-alt: #151515;
  --line: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

.standalone-video {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.standalone-video iframe {
  width: min(560px, 100%);
  aspect-ratio: 16 / 9;
  border: 0;
}

a {
  color: #8ab4f8;
  text-decoration: none;
}

a:hover {
  color: #b8d2ff;
  text-decoration: underline;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-header .container {
  max-width: 1000px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 26px;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--tu-red);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--tu-red);
  border-bottom-color: var(--tu-red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hero {
  padding: 10px 0 24px;
  background: var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--tu-red);
  font-weight: 600;
  margin: 0 0 6px;
}

.affiliation {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.bio {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0 0 26px;
  max-width: 58ch;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--tu-red);
  border-radius: 999px;
  color: var(--tu-red);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--tu-red);
  color: #fff;
  text-decoration: none;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.hero-photo figcaption {
  margin: 14px auto 0;
  max-width: 400px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
}

.show-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1000px;
}

.show-main {
  flex: 1 1 auto;
  min-width: 0;
}

.show-side {
  flex: 0 0 300px;
}

.side-name {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
}

.side-title {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}

.portrait-small {
  width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portrait-text {
  margin: 12px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: justify;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 300px;
  margin-right: 0;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(138, 180, 248, 0.12);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.icon-pill .icon {
  margin: 0;
}

.icon-pill:hover {
  color: #8ab4f8;
  border-color: #8ab4f8;
  background: #151d2c;
  text-decoration: none;
}

.slideshow {
  position: relative;
}

.slide {
  display: none;
  margin: 0;
  text-align: center;
}

.slide.active {
  display: block;
  animation: slide-fade 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide.video-slide.active {
  display: flex;
  min-height: 680px;
  flex-direction: column;
  justify-content: center;
}

@keyframes slide-fade {
  from {
    opacity: 1;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: color 0.15s, border-color 0.15s;
}

.slide-nav:hover {
  color: var(--tu-red);
  border-color: var(--tu-red);
}

.slide-nav.prev {
  left: 0;
}

.slide-nav.next {
  right: 0;
}

.video-wrap {
  position: relative;
  padding-top: 56.25%;
  max-width: 460px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-link {
  display: block;
  color: inherit;
}

.video-link:hover {
  text-decoration: none;
}

.video-placeholder {
  background: #ffffff;
}

.paper-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 460px;
  max-width: 100%;
  height: 612px;
  margin: 0 auto;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.paper-placeholder iframe {
  width: 100%;
  height: 259px;
  border: 0;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-wrap iframe {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.video-wrap.playing iframe {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}

.play-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background 0.15s;
}

.play-btn svg {
  width: 72px;
  height: 72px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.play-btn:hover {
  background: rgba(0, 0, 0, 0.3);
}

.video-wrap.playing .play-btn,
.video-wrap.playing .video-poster {
  display: none;
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.slide-control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.slide-control-row .slide-dots {
  margin-top: 0;
}

.slide-actions {
  display: flex;
  gap: 6px;
}

.slide-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.slide-actions svg {
  width: 13px;
  height: 13px;
}

.control-play {
  display: none;
}

.slide-actions button.is-paused .control-pause {
  display: none;
}

.slide-actions button.is-paused .control-play {
  display: block;
}

.slide-actions button:hover {
  border-color: #8ab4f8;
  color: #8ab4f8;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}

.slide-dot.active {
  background: #8ab4f8;
  border-color: #8ab4f8;
}

.centerpiece {
  margin: 0;
  text-align: center;
}

.centerpiece img {
  width: 460px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.centerpiece figcaption {
  margin: 14px auto 0;
  max-width: 800px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}

.centerpiece figcaption a {
  color: var(--tu-red);
  font-weight: 600;
}

.centerpiece figcaption > a {
  display: block;
  white-space: nowrap;
  font-size: 0.76rem;
  color: #8ab4f8;
}

.video-slide .video-wrap {
  margin-top: 0;
}

.paper-authors {
  font-size: 0.7rem;
  color: #ffffff;
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

.paper-authors em {
  font-style: italic;
}

.press-link {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: #ffffff;
  text-align: center;
}

.press-link a {
  color: #8ab4f8;
  text-decoration: underline;
}

.press-link a:hover {
  color: var(--tu-red);
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: 1.7rem;
  margin: 0 0 26px;
  font-weight: 700;
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.glance-card {
  display: block;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}

.glance-card:hover {
  border-color: var(--tu-red);
  transform: translateY(-2px);
  text-decoration: none;
}

.glance-card h3 {
  margin: 0 0 6px;
  color: var(--tu-red);
  font-size: 1.05rem;
}

.glance-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.page-head {
  padding: 56px 0 20px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: 2.2rem;
  margin: 0 0 8px;
  font-weight: 800;
}

.page-head p {
  margin: 0;
  color: var(--ink-soft);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.team-card.highlight {
  border-color: var(--tu-red);
  border-width: 2px;
  background: #fdf6f7;
}

.team-card-head h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.role {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--tu-red);
  margin-bottom: 8px;
}

.team-detail {
  margin: 4px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.icon-link:hover {
  color: var(--tu-red);
}

.orcid-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid #a6ce39;
  border-radius: 50%;
  color: #a6ce39;
  font-family: Georgia, serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  font-style: italic;
}

.note {
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: 760px;
}

.news-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.news-item time {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tu-red);
  margin-bottom: 6px;
}

.news-item h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.news-item p {
  margin: 0;
  color: var(--ink-soft);
}

.site-footer {
  background: var(--paper);
  color: #ffffff;
  padding: 18px 0 0;
  font-size: 0.92rem;
}

.legal {
  max-width: 760px;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 34px;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
}

.legal p {
  color: var(--ink-soft);
  margin: 10px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  gap: 30px;
  align-items: start;
  max-width: 900px;
  padding: 14px 0;
}

.footer-col .contact-line {
  margin: 8px 0;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  color: #333333;
  font-size: 0.86rem;
}

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

.footer-meta a {
  color: #333333 !important;
}

.footer-meta a:hover {
  color: #555555 !important;
}

.tu-red {
  color: var(--ink-soft);
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer a {
  color: #8ab4f8;
}

.site-footer a:hover {
  color: #b8d2ff;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0;
  color: #ffffff;
}

.contact-line .icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
}

.copyright {
  border-top: 1px solid #333;
  padding: 18px 24px;
  font-size: 0.82rem;
  color: #ffffff;
}

.copyright p {
  margin: 0;
}

@media (max-width: 820px) {
  .slide.video-slide.active {
    min-height: 0;
  }

  .header-actions {
    width: auto;
    margin-right: 0;
  }

  .show-inner {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .show-side {
    flex: 0 0 auto;
    order: -1;
  }

  .portrait-small {
    width: 260px;
    margin: 0 auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }

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

  .site-nav a {
    padding: 12px 24px;
    border-bottom: 0;
  }

  .site-nav a.active {
    border-bottom: 0;
    color: var(--tu-red);
  }
}
