:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --text: #17202a;
  --muted: #546171;
  --line: #dbe2ea;
  --accent: #0f766e;
  --accent-2: #44546a;
  --accent-3: #8a6d3b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

a:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(219, 226, 234, 0.86);
  background: rgba(247, 248, 251, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 750;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: clamp(12px, 2.8vw, 28px);
  font-size: 0.94rem;
  color: var(--muted);
}

main {
  min-height: 100vh;
}

.section-band,
.section {
  padding: clamp(40px, 6vw, 76px) clamp(18px, 5vw, 64px);
}

.profile {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.profile-main {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.1rem, 4vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.lead {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.subtitle {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 650;
}

.link-row,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-row a,
.project-item a,
.publication-top > a,
.publication-actions a,
.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 650;
}

.link-row a:hover,
.project-item a:hover,
.publication-top > a:hover,
.publication-actions a:hover,
.contact-links a:hover {
  border-color: rgba(15, 118, 110, 0.45);
  background: #f0fdfa;
}

.profile-facts {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.profile-facts div {
  padding: 18px;
  border-top: 1px solid var(--line);
}

.profile-facts div:first-child {
  border-top: 0;
}

.profile-facts span,
.timeline-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-facts strong {
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.section {
  max-width: 1260px;
  margin: 0 auto;
}

.section-band + .section {
  border-top: 1px solid var(--line);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.focus-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-radius: 8px;
  background: var(--surface);
}

.focus-item.is-active {
  border-color: rgba(15, 118, 110, 0.55);
  background: #fbfefd;
}

.focus-item:nth-child(1) {
  border-top-color: rgba(15, 118, 110, 0.65);
}

.focus-item:nth-child(2) {
  border-top-color: rgba(124, 58, 237, 0.6);
}

.focus-item:nth-child(3) {
  border-top-color: rgba(180, 83, 9, 0.6);
}

.focus-item:nth-child(4) {
  border-top-color: rgba(68, 84, 106, 0.65);
}

.focus-item:nth-child(5) {
  border-top-color: rgba(34, 113, 177, 0.6);
}

.focus-expand {
  display: inline-grid;
  place-items: center;
  align-self: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.focus-expand:hover,
.focus-expand[aria-expanded="true"] {
  border-color: rgba(15, 118, 110, 0.45);
  background: #f0fdfa;
}

.focus-expand svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
  transition: transform 160ms ease;
}

.focus-expand[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.focus-detail-list {
  margin-top: 14px;
}

.focus-detail {
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: var(--surface);
}

.focus-detail h3 {
  margin-bottom: 10px;
}

.focus-detail p {
  max-width: 980px;
  margin-bottom: 16px;
  color: var(--muted);
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skill-group {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.skill-group h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 620;
}

.focus-item p,
.timeline-item p,
.project-item p,
.contact p {
  margin-bottom: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: clamp(32px, 5vw, 68px);
}

.split .section-heading {
  display: block;
  margin-bottom: 0;
}

.experience-shell {
  position: relative;
  overflow: hidden;
}

.experience-area {
  width: 100%;
  transition: transform 220ms ease;
}

.experience-shell.has-panel .experience-area {
  transform: translateX(-71%);
}

.timeline {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.timeline-meta strong,
.timeline-meta span {
  display: block;
}

.timeline-meta,
.experience-head h3,
.experience-summary {
  transition: opacity 220ms ease;
}

.experience-shell.has-panel .timeline-meta,
.experience-shell.has-panel .experience-head h3,
.experience-shell.has-panel .experience-summary,
.experience-shell.has-panel .experience-expand {
  opacity: 0.32;
}

.experience-shell.has-panel .timeline-item.is-expanded .experience-expand {
  opacity: 1;
}

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

.experience-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.experience-head h3 {
  margin-bottom: 0;
}

.experience-expand {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
}

.experience-expand:hover,
.experience-expand[aria-expanded="true"] {
  border-color: rgba(15, 118, 110, 0.45);
  background: #f0fdfa;
}

.experience-expand svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.timeline-item.is-expanded .experience-expand svg {
  transform: rotate(180deg);
}

.experience-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(69%, 780px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(23, 32, 42, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.experience-shell.has-panel .experience-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.experience-panel-section h3 {
  margin-bottom: 12px;
}

.experience-panel-section h4 {
  margin: 18px 0 8px;
  font-size: 0.95rem;
  line-height: 1.25;
}

.experience-panel-section h3 + h4 {
  margin-top: 0;
}

.experience-panel-section p:not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--muted);
}

.experience-panel-section ul {
  margin: 0 0 16px;
  padding-left: 1.1rem;
  color: var(--muted);
}

.experience-panel-section li + li {
  margin-top: 6px;
}

.project-list,
.publication-list {
  display: grid;
  gap: 12px;
}

.project-item,
.publication-item,
.contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.project-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px;
}

.publication-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(150px, 18vw, 220px);
  align-items: start;
  gap: 22px;
  padding: 20px;
}

.publication-item > img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
}

.publication-item:nth-child(even) > img {
  order: -1;
}

.publication-item:nth-child(even) {
  grid-template-columns: clamp(150px, 18vw, 220px) minmax(0, 1fr);
}

.publication-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 18px;
}

.publication-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.publication-authors,
.publication-venue {
  margin-bottom: 0;
  color: var(--muted);
}

.publication-authors {
  margin-bottom: 4px;
}

.abstract-preview {
  max-width: 1000px;
  margin: 14px 0 0;
  color: var(--muted);
}

.publication-copy:has(.abstract-details[open]) .abstract-preview {
  display: none;
}

.abstract-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.abstract-details summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
}

.abstract-details summary::marker {
  font-size: 0.8rem;
}

.abstract-details .read-less {
  display: none;
}

.abstract-details[open] .read-more {
  display: none;
}

.abstract-details[open] .read-less {
  display: inline;
}

.abstract-details p {
  max-width: 1000px;
  margin: 12px 0 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  align-items: center;
  gap: 28px;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.contact-links {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .profile,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .skill-groups {
    grid-template-columns: 1fr;
  }

  .experience-shell {
    overflow: visible;
  }

  .experience-shell.has-panel .experience-area {
    transform: translateX(-20px);
  }

  .experience-panel {
    position: relative;
    width: 100%;
    margin-top: 16px;
  }

  .timeline-item,
  .publication-item,
  .publication-top {
    grid-template-columns: 1fr;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .focus-grid,
  .project-item {
    grid-template-columns: 1fr;
  }

  .publication-actions {
    justify-content: flex-start;
  }

  .publication-top > a,
  .publication-actions a {
    width: fit-content;
  }

  .publication-item > img {
    order: -1;
    max-width: 260px;
  }
}
