:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #20242c;
  --muted: #656d7c;
  --line: #d9dee8;
  --accent: #0b6f77;
  --accent-strong: #074d55;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover,
a:focus {
  color: var(--accent-strong);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  padding: 14px 0;
  font-size: 15px;
}

.photo-showcase {
  position: relative;
  width: min(1020px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.photo-slider {
  width: 780px;
  height: 312px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.photo-track {
  display: flex;
  align-items: center;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-slide {
  flex: 0 0 384px;
  margin: 0;
  height: 246px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  opacity: 0.45;
  transform: scale(0.82);
  filter: blur(1px);
  transition: opacity 0.45s, transform 0.45s, filter 0.45s;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.photo-slide.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  z-index: 2;
}

.photo-nav {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  font-size: 30px;
  line-height: 30px;
}

.photo-nav:hover,
.photo-nav:focus {
  border-color: var(--accent);
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: -10px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.slider-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.slider-dots span.active {
  width: 22px;
  border-radius: 999px;
  background: var(--accent);
}

.layout {
  width: min(1120px, calc(100% - 32px));
  margin: 42px auto 72px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.profile {
  position: sticky;
  top: 78px;
  padding: 4px 0;
}

.avatar {
  width: 180px;
  height: 180px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
}

.profile h1 {
  margin: 20px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.subtitle,
.location,
.note,
.authors,
.venue {
  color: var(--muted);
}

.subtitle {
  margin: 0 0 14px;
}

.location {
  margin: 0 0 18px;
}

.links {
  display: grid;
  gap: 8px;
  max-width: 180px;
}

.links a {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.links a[aria-disabled="true"] {
  color: var(--muted);
  pointer-events: none;
}

.content {
  min-width: 0;
}

.section {
  padding: 0 0 34px;
  margin: 0 0 34px;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.25;
}

.section p {
  margin: 0 0 14px;
}

.timeline,
.projects {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li,
.projects li {
  margin: 0 0 10px;
}

time {
  display: inline-block;
  min-width: 82px;
  color: var(--muted);
}

.publication {
  padding: 16px 0 4px;
}

.publication h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.entry {
  padding: 14px 0 4px;
}

.education-entry,
.media-entry {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px 0;
}

.school-logo-frame,
.media-frame {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
}

.school-logo,
.media-logo {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.media-logo {
  width: 100%;
  height: 100%;
}

.publication.media-entry {
  grid-template-columns: 192px minmax(0, 1fr);
}

.publication .media-frame {
  width: 192px;
  height: 192px;
}

.education-details,
.media-details {
  min-width: 0;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}

.entry-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.entry-head time {
  min-width: auto;
  white-space: nowrap;
}

.role {
  color: var(--muted);
  font-weight: 600;
}

.paper-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.projects span {
  color: var(--muted);
}

@media (max-width: 760px) {
  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 18px;
  }

  .photo-showcase {
    width: min(100%, calc(100% - 16px));
    margin-top: 16px;
    gap: 8px;
  }

  .photo-slider {
    width: min(78vw, 420px);
    height: 188px;
  }

  .photo-slide {
    flex-basis: min(62vw, 300px);
    height: 168px;
  }

  .photo-nav {
    width: 30px;
    height: 30px;
    font-size: 24px;
  }

  .layout {
    margin-top: 28px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .profile {
    position: static;
  }

  .avatar {
    width: 132px;
    height: 132px;
  }

  .links {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
  }

  .entry-head {
    display: block;
  }

  .education-entry,
  .media-entry {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }

  .school-logo-frame,
  .media-frame {
    width: 84px;
    height: 84px;
  }

  .publication.media-entry {
    grid-template-columns: 168px minmax(0, 1fr);
  }

  .publication .media-frame {
    width: 168px;
    height: 168px;
  }
}
